From cfde013ac1c8366dbe0a1ebfce4be1fd4fca4242 Mon Sep 17 00:00:00 2001 From: jack ning Date: Fri, 28 Mar 2025 17:15:08 +0800 Subject: [PATCH] update --- .../core/category/CategoryRestService.java | 7 +- .../core/category/CategoryTypeEnum.java | 5 +- .../com/bytedesk/core/utils/BdDateUtils.java | 8 +- .../com/bytedesk/core/utils/ConvertUtils.java | 4 +- .../com/bytedesk/kbase/faq/FaqConsts.java | 12 +- .../bytedesk/kbase/faq/FaqRestService.java | 8 +- .../workgroup/WorkgroupEventListener.java | 17 +- .../process/TicketProcessEventListener.java | 84 +- .../process/TicketProcessInitializer.java | 92 +- .../process/TicketProcessRestService.java | 118 +- .../bytedesk/ticket/ticket/TicketService.java | 17 +- .../starter/runner/InitDataRunner.java | 8 +- .../{index-GOHxOdpv.js => index-C1jiQc_M.js} | 322 +-- .../main/resources/templates/agent/index.html | 2 +- .../templates/chat/assets/index-C5y6TUnm.js | 1761 ---------------- .../templates/chat/assets/index-COpaTw7c.js | 1794 +++++++++++++++++ .../templates/chat/icons/custom/logo_1.jpg | Bin 0 -> 231717 bytes .../templates/chat/icons/custom/readme.md | 15 + .../templates/chat/icons/generate_icns.sh | 27 + .../resources/templates/chat/icons/icon.icns | Bin 0 -> 273649 bytes .../resources/templates/chat/icons/icon.ico | Bin 0 -> 292774 bytes .../resources/templates/chat/icons/icon.png | Bin 0 -> 714 bytes .../chat/icons/logo.iconset/icon_128x128.png | Bin 0 -> 8704 bytes .../icons/logo.iconset/icon_128x128@2x.png | Bin 0 -> 18802 bytes .../chat/icons/logo.iconset/icon_16x16.png | Bin 0 -> 778 bytes .../chat/icons/logo.iconset/icon_16x16@2x.png | Bin 0 -> 1766 bytes .../chat/icons/logo.iconset/icon_256x256.png | Bin 0 -> 18802 bytes .../icons/logo.iconset/icon_256x256@2x.png | Bin 0 -> 42938 bytes .../chat/icons/logo.iconset/icon_32x32.png | Bin 0 -> 1766 bytes .../chat/icons/logo.iconset/icon_32x32@2x.png | Bin 0 -> 3916 bytes .../chat/icons/logo.iconset/icon_512x512.png | Bin 0 -> 42938 bytes .../icons/logo.iconset/icon_512x512@2x.png | Bin 0 -> 133286 bytes .../resources/templates/chat/icons/logo.png | Bin 0 -> 10590 bytes .../templates/chat/icons/logo1024.png | Bin 0 -> 29356 bytes .../templates/chat/icons/logo192.png | Bin 0 -> 10590 bytes .../templates/chat/icons/logo512.png | Bin 0 -> 36182 bytes .../main/resources/templates/chat/index.html | 2 +- 37 files changed, 2158 insertions(+), 2145 deletions(-) rename starter/src/main/resources/templates/agent/agent/assets/js/{index-GOHxOdpv.js => index-C1jiQc_M.js} (81%) delete mode 100644 starter/src/main/resources/templates/chat/assets/index-C5y6TUnm.js create mode 100644 starter/src/main/resources/templates/chat/assets/index-COpaTw7c.js create mode 100644 starter/src/main/resources/templates/chat/icons/custom/logo_1.jpg create mode 100644 starter/src/main/resources/templates/chat/icons/custom/readme.md create mode 100755 starter/src/main/resources/templates/chat/icons/generate_icns.sh create mode 100644 starter/src/main/resources/templates/chat/icons/icon.icns create mode 100644 starter/src/main/resources/templates/chat/icons/icon.ico create mode 100644 starter/src/main/resources/templates/chat/icons/icon.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_128x128.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_128x128@2x.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_16x16.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_16x16@2x.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_256x256.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_256x256@2x.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_32x32.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_32x32@2x.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_512x512.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.iconset/icon_512x512@2x.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo1024.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo192.png create mode 100644 starter/src/main/resources/templates/chat/icons/logo512.png diff --git a/modules/core/src/main/java/com/bytedesk/core/category/CategoryRestService.java b/modules/core/src/main/java/com/bytedesk/core/category/CategoryRestService.java index 3837284a34..341b2d8712 100644 --- a/modules/core/src/main/java/com/bytedesk/core/category/CategoryRestService.java +++ b/modules/core/src/main/java/com/bytedesk/core/category/CategoryRestService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-11 18:22:04 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2025-03-11 09:27:26 + * @LastEditTime: 2025-03-28 17:06:13 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -70,9 +70,7 @@ public class CategoryRestService extends BaseRestService queryByOrg(CategoryRequest request) { - - Pageable pageable = PageRequest.of(request.getPageNumber(), request.getPageSize(), Sort.Direction.ASC, - "updatedAt"); + Pageable pageable = request.getPageable(); Specification specs = CategorySpecification.search(request); Page page = categoryRepository.findAll(specs, pageable); return page.map(this::convertToResponse); @@ -117,7 +115,6 @@ public class CategoryRestService extends BaseRestService faqUids = Arrays.asList( - Utils.formatUid(orgUid, FaqConsts.FAQ_DEMO_UID_1), - Utils.formatUid(orgUid, FaqConsts.FAQ_DEMO_UID_2) - ); + // List faqUids = Arrays.asList( + // Utils.formatUid(orgUid, FaqConsts.FAQ_DEMO_UID_1), + // Utils.formatUid(orgUid, FaqConsts.FAQ_DEMO_UID_2) + // ); // List worktimeUids = new ArrayList<>(); String worktimeUid = worktimeService.createDefault(); @@ -83,8 +80,8 @@ public class WorkgroupEventListener { .build(); // workgroupRequest.setUid(uidUtils.getUid()); // workgroupRequest.setOrgUid(orgUid); - workgroupRequest.getServiceSettings().setFaqUids(faqUids); - workgroupRequest.getServiceSettings().setQuickFaqUids(faqUids); + // workgroupRequest.getServiceSettings().setFaqUids(faqUids); + // workgroupRequest.getServiceSettings().setQuickFaqUids(faqUids); workgroupRequest.getMessageLeaveSettings().setWorktimeUids(worktimeUids); workgroupService.create(workgroupRequest); diff --git a/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessEventListener.java b/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessEventListener.java index d34e39dc65..4f2f7643a9 100644 --- a/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessEventListener.java +++ b/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2025-02-15 12:39:46 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2025-02-26 12:57:35 + * @LastEditTime: 2025-03-28 16:28:43 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -13,26 +13,12 @@ */ package com.bytedesk.ticket.process; -import java.io.IOException; -import java.io.InputStream; -import java.nio.charset.StandardCharsets; -import java.util.List; -import java.util.Optional; - -import org.flowable.engine.RepositoryService; -import org.flowable.engine.repository.Deployment; import org.springframework.context.event.EventListener; import org.springframework.core.annotation.Order; -import org.springframework.core.io.Resource; -import org.springframework.core.io.ResourceLoader; import org.springframework.stereotype.Component; import com.bytedesk.core.rbac.organization.OrganizationEntity; import com.bytedesk.core.rbac.organization.event.OrganizationCreateEvent; -import com.bytedesk.core.utils.Utils; -import com.bytedesk.ticket.consts.TicketConsts; -import com.bytedesk.ticket.process.event.TicketProcessCreateEvent; - import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -41,9 +27,9 @@ import lombok.extern.slf4j.Slf4j; @RequiredArgsConstructor public class TicketProcessEventListener { - private final RepositoryService repositoryService; + // private final RepositoryService repositoryService; - private final ResourceLoader resourceLoader; + // private final ResourceLoader resourceLoader; private final TicketProcessRestService ticketProcessRestService; @@ -53,66 +39,12 @@ public class TicketProcessEventListener { OrganizationEntity organization = (OrganizationEntity) event.getSource(); String orgUid = organization.getUid(); log.info("ticket process - organization created: {}", orgUid); - - // 检查是否已经部署 - List existingDeployments = repositoryService.createDeploymentQuery() - .deploymentTenantId(orgUid) - .deploymentName(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) - .list(); - - if (!existingDeployments.isEmpty()) { - log.info("工单流程已存在,跳过部署: tenantId={}", orgUid); - return; - } - - // 读取并部署流程 - try { - Resource resource = resourceLoader.getResource("classpath:" + TicketConsts.TICKET_PROCESS_GROUP_PATH_SIMPLE); - // String groupTicketBpmn20Xml = FileUtils.readFileToString(resource.getFile(), "UTF-8"); - String groupTicketBpmn20Xml = ""; - - try (InputStream inputStream = resource.getInputStream()) { - groupTicketBpmn20Xml = new String(inputStream.readAllBytes(), StandardCharsets.UTF_8); - } - - // 生成 processUid 并创建流程记录 - String processUid = Utils.formatUid(orgUid, TicketConsts.TICKET_PROCESS_KEY_GROUP_SIMPLE); - TicketProcessRequest processRequest = TicketProcessRequest.builder() - .name(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) - .key(TicketConsts.TICKET_PROCESS_KEY_GROUP_SIMPLE) - .description(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) - .build(); - processRequest.setUid(processUid); - processRequest.setContent(groupTicketBpmn20Xml); - processRequest.setOrgUid(orgUid); - ticketProcessRestService.create(processRequest); - - // 部署流程 - Deployment deployment = repositoryService.createDeployment() - .name(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) - .addClasspathResource(TicketConsts.TICKET_PROCESS_GROUP_PATH_SIMPLE) - .tenantId(orgUid) - .deploy(); - - // 更新 TicketProcessEntity - Optional processEntity = ticketProcessRestService.findByUid(processUid); - if (processEntity.isPresent()) { - processEntity.get().setDeploymentId(deployment.getId()); - processEntity.get().setDeployed(true); - ticketProcessRestService.save(processEntity.get()); - } - - log.info("部署租户流程成功: deploymentId={}, tenantId={}", - deployment.getId(), deployment.getTenantId()); - - } catch (IOException e) { - log.error("部署工单流程失败: tenantId={}", orgUid, e); - } + ticketProcessRestService.initProcess(orgUid); } - @EventListener - public void onTicketProcessCreateEvent(TicketProcessCreateEvent event) { - log.info("TicketProcessEventListener onTicketProcessCreateEvent: {}", event); - } + // @EventListener + // public void onTicketProcessCreateEvent(TicketProcessCreateEvent event) { + // log.info("TicketProcessEventListener onTicketProcessCreateEvent: {}", event); + // } } \ No newline at end of file diff --git a/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessInitializer.java b/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessInitializer.java index 3f25642e26..fefb631247 100644 --- a/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessInitializer.java +++ b/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessInitializer.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2025-02-15 13:03:35 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2025-03-20 11:41:17 + * @LastEditTime: 2025-03-28 16:28:29 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -13,24 +13,10 @@ */ package com.bytedesk.ticket.process; -import java.io.IOException; -import java.io.InputStream; -import java.nio.charset.StandardCharsets; -import java.util.List; -import java.util.Optional; - -import org.flowable.engine.RepositoryService; -import org.flowable.engine.repository.Deployment; import org.springframework.beans.factory.SmartInitializingSingleton; -import org.springframework.core.io.Resource; -import org.springframework.core.io.ResourceLoader; import org.springframework.stereotype.Component; -import com.bytedesk.core.rbac.organization.OrganizationEntity; -import com.bytedesk.core.rbac.organization.OrganizationRestService; -import com.bytedesk.core.utils.Utils; -import com.bytedesk.ticket.consts.TicketConsts; - +import com.bytedesk.core.constant.BytedeskConsts; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -42,18 +28,22 @@ public class TicketProcessInitializer implements SmartInitializingSingleton { // private final AuthorityRestService authorityService; - private final OrganizationRestService organizationService; + // private final OrganizationRestService organizationService; private final TicketProcessRestService ticketProcessRestService; - private final RepositoryService repositoryService; + // private final RepositoryService repositoryService; - private final ResourceLoader resourceLoader; + // private final ResourceLoader resourceLoader; @Override public void afterSingletonsInstantiated() { initAuthority(); - initProcess(); + // initProcess(); + // + String orgUid = BytedeskConsts.DEFAULT_ORGANIZATION_UID; + log.info("ticket process - organization created: {}", orgUid); + ticketProcessRestService.initProcess(orgUid); } private void initAuthority() { @@ -71,66 +61,4 @@ public class TicketProcessInitializer implements SmartInitializingSingleton { // authorityService.create(authRequest); // } } - - private void initProcess() { - try { - // 使用 getInputStream() 而不是 getFile() - Resource resource = resourceLoader.getResource("classpath:" + TicketConsts.TICKET_PROCESS_GROUP_PATH_SIMPLE); - String groupTicketBpmn20Xml = ""; - - try (InputStream inputStream = resource.getInputStream()) { - groupTicketBpmn20Xml = new String(inputStream.readAllBytes(), StandardCharsets.UTF_8); - } - - // 判断所有组织是否存在 TicketProcessEntity - List organizations = organizationService.findAll(); - for (OrganizationEntity organization : organizations) { - String orgUid = organization.getUid(); - // 检查是否已经部署 - List existingDeployments = repositoryService.createDeploymentQuery() - .deploymentTenantId(orgUid) - .deploymentName(TicketConsts.TICKET_PROCESS_NAME_GROUP) - .list(); - - if (!existingDeployments.isEmpty()) { - log.info("工单流程已存在,跳过部署: tenantId={}", orgUid); - continue; - } - - String processUid = Utils.formatUid(orgUid, TicketConsts.TICKET_PROCESS_KEY_GROUP_SIMPLE); - // 初始化 TicketProcessEntity - TicketProcessRequest processRequest = TicketProcessRequest.builder() - .name(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) - .key(TicketConsts.TICKET_PROCESS_KEY_GROUP_SIMPLE) - .description(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) - .build(); - processRequest.setUid(processUid); - processRequest.setOrgUid(orgUid); - processRequest.setContent(groupTicketBpmn20Xml); - ticketProcessRestService.create(processRequest); - - // 部署流程 - Deployment deployment = repositoryService.createDeployment() - .name(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) - .addClasspathResource(TicketConsts.TICKET_PROCESS_GROUP_PATH_SIMPLE) - .tenantId(orgUid) - .deploy(); - - // 更新 TicketProcessEntity - Optional processEntity = ticketProcessRestService.findByUid(processUid); - if (processEntity.isPresent()) { - processEntity.get().setDeploymentId(deployment.getId()); - processEntity.get().setDeployed(true); - ticketProcessRestService.save(processEntity.get()); - } - - log.info("部署租户流程成功: deploymentId={}, tenantId={}", - deployment.getId(), deployment.getTenantId()); - } - - } catch (IOException e) { - log.error("读取流程文件失败", e); - throw new RuntimeException("读取流程文件失败: " + e.getMessage()); - } - } } diff --git a/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessRestService.java b/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessRestService.java index 1108c15af6..84a0bc8d7e 100644 --- a/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessRestService.java +++ b/modules/ticket/src/main/java/com/bytedesk/ticket/process/TicketProcessRestService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-11 18:25:45 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2025-02-15 14:48:40 + * @LastEditTime: 2025-03-28 16:18:36 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -13,14 +13,20 @@ */ package com.bytedesk.ticket.process; +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; +import java.util.List; import java.util.Optional; +import org.flowable.engine.RepositoryService; +import org.flowable.engine.repository.Deployment; import org.modelmapper.ModelMapper; import org.springframework.cache.annotation.Cacheable; +import org.springframework.core.io.Resource; +import org.springframework.core.io.ResourceLoader; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; -import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.orm.ObjectOptimisticLockingFailureException; import org.springframework.stereotype.Service; @@ -30,6 +36,8 @@ import com.bytedesk.core.base.BaseRestService; import com.bytedesk.core.rbac.auth.AuthService; import com.bytedesk.core.rbac.user.UserEntity; import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.core.utils.Utils; +import com.bytedesk.ticket.consts.TicketConsts; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -37,7 +45,8 @@ import lombok.extern.slf4j.Slf4j; @Slf4j @Service @AllArgsConstructor -public class TicketProcessRestService extends BaseRestService { +public class TicketProcessRestService + extends BaseRestService { private final TicketProcessRepository processRepository; @@ -47,10 +56,13 @@ public class TicketProcessRestService extends BaseRestService queryByOrg(TicketProcessRequest request) { - Pageable pageable = PageRequest.of(request.getPageNumber(), request.getPageSize(), Sort.Direction.ASC, - "updatedAt"); + Pageable pageable = request.getPageable(); Specification spec = TicketProcessSpecification.search(request); Page page = processRepository.findAll(spec, pageable); return page.map(this::convertToResponse); @@ -65,15 +77,11 @@ public class TicketProcessRestService extends BaseRestService spec = TicketProcessSpecification.search(request); - Page page = processRepository.findAll(spec, pageable); - return page.map(this::convertToResponse); + // + return queryByOrg(request); } - @Cacheable(value = "process", key = "#uid", unless="#result==null") + @Cacheable(value = "process", key = "#uid", unless = "#result==null") @Override public Optional findByUid(String uid) { return processRepository.findByUid(uid); @@ -81,7 +89,7 @@ public class TicketProcessRestService extends BaseRestService optional = processRepository.findByUid(request.getUid()); if (optional.isPresent()) { @@ -92,9 +100,11 @@ public class TicketProcessRestService extends BaseRestService optionalKey = processRepository.findByKeyAndOrgUid(request.getKey(), request.getOrgUid()); + Optional optionalKey = processRepository.findByKeyAndOrgUid(request.getKey(), + request.getOrgUid()); if (optionalKey.isPresent()) { - throw new RuntimeException("Process key " + request.getKey() + " in org " + request.getOrgUid() + " already exists"); + throw new RuntimeException( + "Process key " + request.getKey() + " in org " + request.getOrgUid() + " already exists"); } UserEntity user = authService.getUser(); @@ -103,7 +113,7 @@ public class TicketProcessRestService extends BaseRestService existingDeployments = repositoryService.createDeploymentQuery() + .deploymentTenantId(orgUid) + .deploymentName(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) + .list(); + + if (!existingDeployments.isEmpty()) { + log.info("工单流程已存在,跳过部署: tenantId={}", orgUid); + return; + } + + // 读取并部署流程 + try { + Resource resource = resourceLoader + .getResource("classpath:" + TicketConsts.TICKET_PROCESS_GROUP_PATH_SIMPLE); + // String groupTicketBpmn20Xml = FileUtils.readFileToString(resource.getFile(), + // "UTF-8"); + String groupTicketBpmn20Xml = ""; + + try (InputStream inputStream = resource.getInputStream()) { + groupTicketBpmn20Xml = new String(inputStream.readAllBytes(), StandardCharsets.UTF_8); + } + + // 生成 processUid 并创建流程记录 + String processUid = Utils.formatUid(orgUid, TicketConsts.TICKET_PROCESS_KEY_GROUP_SIMPLE); + TicketProcessRequest processRequest = TicketProcessRequest.builder() + .uid(processUid) + .name(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) + .content(groupTicketBpmn20Xml) + .key(TicketConsts.TICKET_PROCESS_KEY_GROUP_SIMPLE) + .description(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) + .orgUid(orgUid) + .build(); + // processRequest.setUid(processUid); + // processRequest.setContent(groupTicketBpmn20Xml); + // processRequest.setOrgUid(orgUid); + create(processRequest); + + // 部署流程 + Deployment deployment = repositoryService.createDeployment() + .name(TicketConsts.TICKET_PROCESS_NAME_GROUP_SIMPLE) + .addClasspathResource(TicketConsts.TICKET_PROCESS_GROUP_PATH_SIMPLE) + .tenantId(orgUid) + .deploy(); + + // 更新 TicketProcessEntity + Optional processEntity = findByUid(processUid); + if (processEntity.isPresent()) { + processEntity.get().setDeploymentId(deployment.getId()); + processEntity.get().setDeployed(true); + save(processEntity.get()); + } + + log.info("部署租户流程成功: deploymentId={}, tenantId={}", + deployment.getId(), deployment.getTenantId()); + + } catch (IOException e) { + log.error("部署工单流程失败: tenantId={}", orgUid, e); + } + } + } diff --git a/modules/ticket/src/main/java/com/bytedesk/ticket/ticket/TicketService.java b/modules/ticket/src/main/java/com/bytedesk/ticket/ticket/TicketService.java index 22dd2ad364..8e52e8adaa 100644 --- a/modules/ticket/src/main/java/com/bytedesk/ticket/ticket/TicketService.java +++ b/modules/ticket/src/main/java/com/bytedesk/ticket/ticket/TicketService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2025-01-29 12:24:32 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2025-03-26 17:45:49 + * @LastEditTime: 2025-03-28 16:43:26 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -705,17 +705,20 @@ public class TicketService { } try { - // 4. 添加评论。 - // 注意添加评论一定要放在complete之前,否则会报错找不到task + // 4. 添加评论 Comment comment = taskService.addComment(task.getId(), ticket.getProcessInstanceId(), TicketStatusEnum.RESOLVED.name(), "工单已解决"); comment.setUserId(assigneeUid); // 设置评论的userId为当前认领人 taskService.saveComment(comment); - // 5. 完成任务 - taskService.complete(task.getId()); + // 5. 设置流程变量,添加这段代码 + Map variables = new HashMap<>(); + variables.put("verified", false); // 默认设置为false,等待客户验证 + + // 6. 完成任务,传入变量 + taskService.complete(task.getId(), variables); - // 6. 更新工单状态 + // 7. 更新工单状态 ticket.setStatus(TicketStatusEnum.RESOLVED.name()); ticket.setResolvedTime(LocalDateTime.now()); ticketRepository.save(ticket); @@ -787,7 +790,7 @@ public class TicketService { // 8. 更新工单状态 if (request.getVerified()) { - ticket.setStatus(TicketStatusEnum.CLOSED.name()); + ticket.setStatus(request.getVerified() ? TicketStatusEnum.VERIFIED_OK.name() : TicketStatusEnum.VERIFIED_FAIL.name()); ticket.setVerified(true); ticket.setClosedTime(LocalDateTime.now()); } else { diff --git a/starter/src/main/java/com/bytedesk/starter/runner/InitDataRunner.java b/starter/src/main/java/com/bytedesk/starter/runner/InitDataRunner.java index f2e80642c0..eccac2545a 100644 --- a/starter/src/main/java/com/bytedesk/starter/runner/InitDataRunner.java +++ b/starter/src/main/java/com/bytedesk/starter/runner/InitDataRunner.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:17:36 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2025-03-01 08:46:58 + * @LastEditTime: 2025-03-28 14:32:22 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,6 +14,7 @@ package com.bytedesk.starter.runner; import java.util.List; + import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; @@ -38,6 +39,9 @@ public class InitDataRunner implements ApplicationRunner { @Override public void run(ApplicationArguments args) throws Exception { + // 在应用的主类或配置类中 + // TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai")); + // TimeZone.setDefault(TimeZone.getTimeZone("GMT+8")); String localIP = NetworkUtils.getFirstNonLoopbackIP(); List allIPs = NetworkUtils.getLocalIPs(); @@ -49,7 +53,7 @@ public class InitDataRunner implements ApplicationRunner { log.info("Other Network IPs:"); allIPs.stream() .filter(ip -> !ip.equals(localIP)) - .forEach(ip -> log.info(" http://{}:{}", ip, port)); + .forEach(ip -> log.info("http://{}:{}", ip, port)); } } diff --git a/starter/src/main/resources/templates/agent/agent/assets/js/index-GOHxOdpv.js b/starter/src/main/resources/templates/agent/agent/assets/js/index-C1jiQc_M.js similarity index 81% rename from starter/src/main/resources/templates/agent/agent/assets/js/index-GOHxOdpv.js rename to starter/src/main/resources/templates/agent/agent/assets/js/index-C1jiQc_M.js index 577402af07..81d2918494 100644 --- a/starter/src/main/resources/templates/agent/agent/assets/js/index-GOHxOdpv.js +++ b/starter/src/main/resources/templates/agent/agent/assets/js/index-C1jiQc_M.js @@ -1,4 +1,4 @@ -var KSe=Object.defineProperty;var mW=e=>{throw TypeError(e)};var GSe=(e,t,n)=>t in e?KSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var YSe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Gr=(e,t,n)=>GSe(e,typeof t!="symbol"?t+"":t,n),eM=(e,t,n)=>t.has(e)||mW("Cannot "+n);var Fe=(e,t,n)=>(eM(e,t,"read from private field"),n?n.call(e):t.get(e)),Un=(e,t,n)=>t.has(e)?mW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),xn=(e,t,n,r)=>(eM(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Dn=(e,t,n)=>(eM(e,t,"access private method"),n);var Lh=(e,t,n,r)=>({set _(i){xn(e,t,i,n)},get _(){return Fe(e,t,r)}});var fnn=YSe((Ml,qo)=>{function C5(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B3(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Die={exports:{}},_5={},Fie={exports:{}},Nr={};/** +var qSe=Object.defineProperty;var mW=e=>{throw TypeError(e)};var KSe=(e,t,n)=>t in e?qSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var GSe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Gr=(e,t,n)=>KSe(e,typeof t!="symbol"?t+"":t,n),eM=(e,t,n)=>t.has(e)||mW("Cannot "+n);var Fe=(e,t,n)=>(eM(e,t,"read from private field"),n?n.call(e):t.get(e)),Un=(e,t,n)=>t.has(e)?mW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),xn=(e,t,n,r)=>(eM(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Dn=(e,t,n)=>(eM(e,t,"access private method"),n);var Lh=(e,t,n,r)=>({set _(i){xn(e,t,i,n)},get _(){return Fe(e,t,r)}});var pnn=GSe(($l,Vo)=>{function S5(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B3(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Aie={exports:{}},C5={},Die={exports:{}},Nr={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var KSe=Object.defineProperty;var mW=e=>{throw TypeError(e)};var GSe=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var z3=Symbol.for("react.element"),XSe=Symbol.for("react.portal"),ZSe=Symbol.for("react.fragment"),QSe=Symbol.for("react.strict_mode"),JSe=Symbol.for("react.profiler"),eCe=Symbol.for("react.provider"),tCe=Symbol.for("react.context"),nCe=Symbol.for("react.forward_ref"),rCe=Symbol.for("react.suspense"),iCe=Symbol.for("react.memo"),aCe=Symbol.for("react.lazy"),gW=Symbol.iterator;function oCe(e){return e===null||typeof e!="object"?null:(e=gW&&e[gW]||e["@@iterator"],typeof e=="function"?e:null)}var Lie={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bie=Object.assign,zie={};function ay(e,t,n){this.props=e,this.context=t,this.refs=zie,this.updater=n||Lie}ay.prototype.isReactComponent={};ay.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ay.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hie(){}Hie.prototype=ay.prototype;function wD(e,t,n){this.props=e,this.context=t,this.refs=zie,this.updater=n||Lie}var xD=wD.prototype=new Hie;xD.constructor=wD;Bie(xD,ay.prototype);xD.isPureReactComponent=!0;var vW=Array.isArray,Uie=Object.prototype.hasOwnProperty,SD={current:null},Wie={key:!0,ref:!0,__self:!0,__source:!0};function Vie(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Uie.call(t,r)&&!Wie.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1{throw TypeError(e)};var GSe=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var dCe=d,fCe=Symbol.for("react.element"),pCe=Symbol.for("react.fragment"),hCe=Object.prototype.hasOwnProperty,mCe=dCe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gCe={key:!0,ref:!0,__self:!0,__source:!0};function Kie(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)hCe.call(t,r)&&!gCe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:fCe,type:e,key:a,ref:o,props:i,_owner:mCe.current}}_5.Fragment=pCe;_5.jsx=Kie;_5.jsxs=Kie;Die.exports=_5;var x=Die.exports,qP={},Gie={exports:{}},Bl={},Yie={exports:{}},Xie={};/** + */var uCe=d,dCe=Symbol.for("react.element"),fCe=Symbol.for("react.fragment"),pCe=Object.prototype.hasOwnProperty,hCe=uCe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mCe={key:!0,ref:!0,__self:!0,__source:!0};function qie(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)pCe.call(t,r)&&!mCe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:dCe,type:e,key:a,ref:o,props:i,_owner:hCe.current}}C5.Fragment=fCe;C5.jsx=qie;C5.jsxs=qie;Aie.exports=C5;var x=Aie.exports,qP={},Kie={exports:{}},Ll={},Gie={exports:{}},Yie={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var KSe=Object.defineProperty;var mW=e=>{throw TypeError(e)};var GSe=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(F,K){var L=F.length;F.push(K);e:for(;0>>1,B=F[V];if(0>>1;Vi(ee,L))iei(Z,ee)?(F[V]=Z,F[ie]=L,V=ie):(F[V]=ee,F[Y]=L,V=Y);else if(iei(Z,L))F[V]=Z,F[ie]=L,V=ie;else break e}}return K}function i(F,K){var L=F.sortIndex-K.sortIndex;return L!==0?L:F.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,p=3,h=!1,m=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(F){for(var K=n(c);K!==null;){if(K.callback===null)r(c);else if(K.startTime<=F)r(c),K.sortIndex=K.expirationTime,t(l,K);else break;K=n(c)}}function C(F){if(g=!1,b(F),!m)if(n(l)!==null)m=!0,A(k);else{var K=n(c);K!==null&&N(C,K.startTime-F)}}function k(F,K){m=!1,g&&(g=!1,y(E),E=-1),h=!0;var L=p;try{for(b(K),f=n(l);f!==null&&(!(f.expirationTime>K)||F&&!P());){var V=f.callback;if(typeof V=="function"){f.callback=null,p=f.priorityLevel;var B=V(f.expirationTime<=K);K=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(l)&&r(l),b(K)}else r(l);f=n(l)}if(f!==null)var U=!0;else{var Y=n(c);Y!==null&&N(C,Y.startTime-K),U=!1}return U}finally{f=null,p=L,h=!1}}var S=!1,_=null,E=-1,$=5,M=-1;function P(){return!(e.unstable_now()-M<$)}function R(){if(_!==null){var F=e.unstable_now();M=F;var K=!0;try{K=_(!0,F)}finally{K?O():(S=!1,_=null)}}else S=!1}var O;if(typeof w=="function")O=function(){w(R)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,I=j.port2;j.port1.onmessage=R,O=function(){I.postMessage(null)}}else O=function(){v(R,0)};function A(F){_=F,S||(S=!0,O())}function N(F,K){E=v(function(){F(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,A(k))},e.unstable_forceFrameRate=function(F){0>F||125V?(F.sortIndex=L,t(c,F),n(l)===null&&F===n(c)&&(g?(y(E),E=-1):g=!0,N(C,L-V))):(F.sortIndex=B,t(l,F),m||h||(m=!0,A(k))),F},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(F){var K=p;return function(){var L=p;p=K;try{return F.apply(this,arguments)}finally{p=L}}}})(Xie);Yie.exports=Xie;var vCe=Yie.exports;/** + */(function(e){function t(F,K){var L=F.length;F.push(K);e:for(;0>>1,B=F[V];if(0>>1;Vi(ee,L))iei(Z,ee)?(F[V]=Z,F[ie]=L,V=ie):(F[V]=ee,F[Y]=L,V=Y);else if(iei(Z,L))F[V]=Z,F[ie]=L,V=ie;else break e}}return K}function i(F,K){var L=F.sortIndex-K.sortIndex;return L!==0?L:F.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,p=3,h=!1,m=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(F){for(var K=n(c);K!==null;){if(K.callback===null)r(c);else if(K.startTime<=F)r(c),K.sortIndex=K.expirationTime,t(l,K);else break;K=n(c)}}function C(F){if(g=!1,b(F),!m)if(n(l)!==null)m=!0,A(k);else{var K=n(c);K!==null&&N(C,K.startTime-F)}}function k(F,K){m=!1,g&&(g=!1,y(E),E=-1),h=!0;var L=p;try{for(b(K),f=n(l);f!==null&&(!(f.expirationTime>K)||F&&!P());){var V=f.callback;if(typeof V=="function"){f.callback=null,p=f.priorityLevel;var B=V(f.expirationTime<=K);K=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(l)&&r(l),b(K)}else r(l);f=n(l)}if(f!==null)var U=!0;else{var Y=n(c);Y!==null&&N(C,Y.startTime-K),U=!1}return U}finally{f=null,p=L,h=!1}}var S=!1,_=null,E=-1,$=5,M=-1;function P(){return!(e.unstable_now()-M<$)}function R(){if(_!==null){var F=e.unstable_now();M=F;var K=!0;try{K=_(!0,F)}finally{K?O():(S=!1,_=null)}}else S=!1}var O;if(typeof w=="function")O=function(){w(R)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,I=j.port2;j.port1.onmessage=R,O=function(){I.postMessage(null)}}else O=function(){v(R,0)};function A(F){_=F,S||(S=!0,O())}function N(F,K){E=v(function(){F(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,A(k))},e.unstable_forceFrameRate=function(F){0>F||125V?(F.sortIndex=L,t(c,F),n(l)===null&&F===n(c)&&(g?(y(E),E=-1):g=!0,N(C,L-V))):(F.sortIndex=B,t(l,F),m||h||(m=!0,A(k))),F},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(F){var K=p;return function(){var L=p;p=K;try{return F.apply(this,arguments)}finally{p=L}}}})(Yie);Gie.exports=Yie;var gCe=Gie.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var KSe=Object.defineProperty;var mW=e=>{throw TypeError(e)};var GSe=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yCe=d,Rl=vCe;function hn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KP=Object.prototype.hasOwnProperty,bCe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bW={},wW={};function wCe(e){return KP.call(wW,e)?!0:KP.call(bW,e)?!1:bCe.test(e)?wW[e]=!0:(bW[e]=!0,!1)}function xCe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function SCe(e,t,n,r){if(t===null||typeof t>"u"||xCe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _s(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var So={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){So[e]=new _s(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];So[t]=new _s(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){So[e]=new _s(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){So[e]=new _s(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){So[e]=new _s(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){So[e]=new _s(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){So[e]=new _s(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){So[e]=new _s(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){So[e]=new _s(e,5,!1,e.toLowerCase(),null,!1,!1)});var _D=/[\-:]([a-z])/g;function kD(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_D,kD);So[t]=new _s(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_D,kD);So[t]=new _s(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_D,kD);So[t]=new _s(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){So[e]=new _s(e,1,!1,e.toLowerCase(),null,!1,!1)});So.xlinkHref=new _s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){So[e]=new _s(e,1,!1,e.toLowerCase(),null,!0,!0)});function ED(e,t,n,r){var i=So.hasOwnProperty(t)?So[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KP=Object.prototype.hasOwnProperty,yCe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bW={},wW={};function bCe(e){return KP.call(wW,e)?!0:KP.call(bW,e)?!1:yCe.test(e)?wW[e]=!0:(bW[e]=!0,!1)}function wCe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xCe(e,t,n,r){if(t===null||typeof t>"u"||wCe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _s(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var So={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){So[e]=new _s(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];So[t]=new _s(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){So[e]=new _s(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){So[e]=new _s(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){So[e]=new _s(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){So[e]=new _s(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){So[e]=new _s(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){So[e]=new _s(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){So[e]=new _s(e,5,!1,e.toLowerCase(),null,!1,!1)});var _D=/[\-:]([a-z])/g;function kD(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_D,kD);So[t]=new _s(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_D,kD);So[t]=new _s(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_D,kD);So[t]=new _s(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){So[e]=new _s(e,1,!1,e.toLowerCase(),null,!1,!1)});So.xlinkHref=new _s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){So[e]=new _s(e,1,!1,e.toLowerCase(),null,!0,!0)});function ED(e,t,n,r){var i=So.hasOwnProperty(t)?So[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{rM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?u2(e):""}function CCe(e){switch(e.tag){case 5:return u2(e.type);case 16:return u2("Lazy");case 13:return u2("Suspense");case 19:return u2("SuspenseList");case 0:case 2:case 15:return e=iM(e.type,!1),e;case 11:return e=iM(e.type.render,!1),e;case 1:return e=iM(e.type,!0),e;default:return""}}function ZP(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ev:return"Fragment";case J1:return"Portal";case GP:return"Profiler";case $D:return"StrictMode";case YP:return"Suspense";case XP:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jie:return(e.displayName||"Context")+".Consumer";case Qie:return(e._context.displayName||"Context")+".Provider";case MD:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case TD:return t=e.displayName||null,t!==null?t:ZP(e.type)||"Memo";case xp:t=e._payload,e=e._init;try{return ZP(e(t))}catch{}}return null}function _Ce(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ZP(t);case 8:return t===$D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kCe(e){var t=tae(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ax(e){e._valueTracker||(e._valueTracker=kCe(e))}function nae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tae(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function H_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function QP(e,t){var n=t.checked;return ra({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function SW(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lh(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rae(e,t){t=t.checked,t!=null&&ED(e,"checked",t,!1)}function JP(e,t){rae(e,t);var n=lh(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?eO(e,t.type,n):t.hasOwnProperty("defaultValue")&&eO(e,t.type,lh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function CW(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function eO(e,t,n){(t!=="number"||H_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var d2=Array.isArray;function xv(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Dx.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var O2={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ECe=["Webkit","ms","Moz","O"];Object.keys(O2).forEach(function(e){ECe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),O2[t]=O2[e]})});function sae(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||O2.hasOwnProperty(e)&&O2[e]?(""+t).trim():t+"px"}function lae(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sae(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var $Ce=ra({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rO(e,t){if(t){if($Ce[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(hn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(hn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(hn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(hn(62))}}function iO(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var aO=null;function PD(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oO=null,Sv=null,Cv=null;function EW(e){if(e=W3(e)){if(typeof oO!="function")throw Error(hn(280));var t=e.stateNode;t&&(t=T5(t),oO(e.stateNode,e.type,t))}}function cae(e){Sv?Cv?Cv.push(e):Cv=[e]:Sv=e}function uae(){if(Sv){var e=Sv,t=Cv;if(Cv=Sv=null,EW(e),t)for(e=0;e>>=0,e===0?32:31-(FCe(e)/LCe|0)|0}var Fx=64,Lx=4194304;function f2(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function q_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=f2(s):(a&=o,a!==0&&(r=f2(a)))}else o=n&~i,o!==0?r=f2(o):a!==0&&(r=f2(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function H3(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-iu(t),e[t]=n}function UCe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=I2),NW=" ",AW=!1;function Pae(e,t){switch(e){case"keyup":return v_e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oae(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tv=!1;function b_e(e,t){switch(e){case"compositionend":return Oae(t);case"keypress":return t.which!==32?null:(AW=!0,NW);case"textInput":return e=t.data,e===NW&&AW?null:e;default:return null}}function w_e(e,t){if(tv)return e==="compositionend"||!FD&&Pae(e,t)?(e=Mae(),vC=ND=Ip=null,tv=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=BW(n)}}function Nae(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nae(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Aae(){for(var e=window,t=H_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=H_(e.document)}return t}function LD(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function T_e(e){var t=Aae(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nae(n.ownerDocument.documentElement,n)){if(r!==null&&LD(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=zW(n,a);var o=zW(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nv=null,fO=null,N2=null,pO=!1;function HW(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pO||nv==null||nv!==H_(r)||(r=nv,"selectionStart"in r&&LD(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),N2&&bw(N2,r)||(N2=r,r=Y_(fO,"onSelect"),0av||(e.current=bO[av],bO[av]=null,av--)}function Mi(e,t){av++,bO[av]=e.current,e.current=t}var ch={},Yo=gh(ch),Fs=gh(!1),Jm=ch;function i0(e,t){var n=e.type.contextTypes;if(!n)return ch;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ls(e){return e=e.childContextTypes,e!=null}function Z_(){Ai(Fs),Ai(Yo)}function YW(e,t,n){if(Yo.current!==ch)throw Error(hn(168));Mi(Yo,t),Mi(Fs,n)}function Vae(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(hn(108,_Ce(e)||"Unknown",i));return ra({},n,r)}function Q_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ch,Jm=Yo.current,Mi(Yo,e),Mi(Fs,Fs.current),!0}function XW(e,t,n){var r=e.stateNode;if(!r)throw Error(hn(169));n?(e=Vae(e,t,Jm),r.__reactInternalMemoizedMergedChildContext=e,Ai(Fs),Ai(Yo),Mi(Yo,e)):Ai(Fs),Mi(Fs,n)}var rf=null,P5=!1,yM=!1;function qae(e){rf===null?rf=[e]:rf.push(e)}function z_e(e){P5=!0,qae(e)}function vh(){if(!yM&&rf!==null){yM=!0;var e=0,t=ui;try{var n=rf;for(ui=1;e>=o,i-=o,cf=1<<32-iu(t)+i|n<E?($=_,_=null):$=_.sibling;var M=p(y,_,b[E],C);if(M===null){_===null&&(_=$);break}e&&_&&M.alternate===null&&t(y,_),w=a(M,w,E),S===null?k=M:S.sibling=M,S=M,_=$}if(E===b.length)return n(y,_),Yi&&Qh(y,E),k;if(_===null){for(;EE?($=_,_=null):$=_.sibling;var P=p(y,_,M.value,C);if(P===null){_===null&&(_=$);break}e&&_&&P.alternate===null&&t(y,_),w=a(P,w,E),S===null?k=P:S.sibling=P,S=P,_=$}if(M.done)return n(y,_),Yi&&Qh(y,E),k;if(_===null){for(;!M.done;E++,M=b.next())M=f(y,M.value,C),M!==null&&(w=a(M,w,E),S===null?k=M:S.sibling=M,S=M);return Yi&&Qh(y,E),k}for(_=r(y,_);!M.done;E++,M=b.next())M=h(_,y,E,M.value,C),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?E:M.key),w=a(M,w,E),S===null?k=M:S.sibling=M,S=M);return e&&_.forEach(function(R){return t(y,R)}),Yi&&Qh(y,E),k}function v(y,w,b,C){if(typeof b=="object"&&b!==null&&b.type===ev&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Nx:e:{for(var k=b.key,S=w;S!==null;){if(S.key===k){if(k=b.type,k===ev){if(S.tag===7){n(y,S.sibling),w=i(S,b.props.children),w.return=y,y=w;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===xp&&JW(k)===S.type){n(y,S.sibling),w=i(S,b.props),w.ref=wb(y,S,b),w.return=y,y=w;break e}n(y,S);break}else t(y,S);S=S.sibling}b.type===ev?(w=Am(b.props.children,y.mode,C,b.key),w.return=y,y=w):(C=kC(b.type,b.key,b.props,null,y.mode,C),C.ref=wb(y,w,b),C.return=y,y=C)}return o(y);case J1:e:{for(S=b.key;w!==null;){if(w.key===S)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){n(y,w.sibling),w=i(w,b.children||[]),w.return=y,y=w;break e}else{n(y,w);break}else t(y,w);w=w.sibling}w=EM(b,y.mode,C),w.return=y,y=w}return o(y);case xp:return S=b._init,v(y,w,S(b._payload),C)}if(d2(b))return m(y,w,b,C);if(mb(b))return g(y,w,b,C);qx(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(n(y,w.sibling),w=i(w,b),w.return=y,y=w):(n(y,w),w=kM(b,y.mode,C),w.return=y,y=w),o(y)):n(y,w)}return v}var o0=Xae(!0),Zae=Xae(!1),tk=gh(null),nk=null,lv=null,UD=null;function WD(){UD=lv=nk=null}function VD(e){var t=tk.current;Ai(tk),e._currentValue=t}function SO(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function kv(e,t){nk=e,UD=lv=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(As=!0),e.firstContext=null)}function hc(e){var t=e._currentValue;if(UD!==e)if(e={context:e,memoizedValue:t,next:null},lv===null){if(nk===null)throw Error(hn(308));lv=e,nk.dependencies={lanes:0,firstContext:e}}else lv=lv.next=e;return t}var mm=null;function qD(e){mm===null?mm=[e]:mm.push(e)}function Qae(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qD(t)):(n.next=i.next,i.next=n),t.interleaved=n,_f(e,r)}function _f(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sp=!1;function KD(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jae(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gf(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xp(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Yr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,_f(e,n)}return i=r.interleaved,i===null?(t.next=t,qD(r)):(t.next=i.next,i.next=t),r.interleaved=t,_f(e,n)}function bC(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,RD(e,n)}}function eV(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function rk(e,t,n,r){var i=e.updateQueue;Sp=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,u=c=l=null,s=a;do{var p=s.lane,h=s.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(h,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,f,p):m,p==null)break e;f=ra({},f,p);break e;case 2:Sp=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ng|=o,e.lanes=o,e.memoizedState=f}}function tV(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=wM.transition;wM.transition={};try{e(!1),t()}finally{ui=n,wM.transition=r}}function goe(){return mc().memoizedState}function V_e(e,t,n){var r=Qp(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},voe(e))yoe(t,n);else if(n=Qae(e,t,n,r),n!==null){var i=ws();au(n,e,r,i),boe(n,t,r)}}function q_e(e,t,n){var r=Qp(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(voe(e))yoe(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,hu(s,o)){var l=t.interleaved;l===null?(i.next=i,qD(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Qae(e,t,i,r),n!==null&&(i=ws(),au(n,e,r,i),boe(n,t,r))}}function voe(e){var t=e.alternate;return e===na||t!==null&&t===na}function yoe(e,t){A2=ak=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function boe(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,RD(e,n)}}var ok={readContext:hc,useCallback:Ro,useContext:Ro,useEffect:Ro,useImperativeHandle:Ro,useInsertionEffect:Ro,useLayoutEffect:Ro,useMemo:Ro,useReducer:Ro,useRef:Ro,useState:Ro,useDebugValue:Ro,useDeferredValue:Ro,useTransition:Ro,useMutableSource:Ro,useSyncExternalStore:Ro,useId:Ro,unstable_isNewReconciler:!1},K_e={readContext:hc,useCallback:function(e,t){return Uu().memoizedState=[e,t===void 0?null:t],e},useContext:hc,useEffect:rV,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xC(4194308,4,doe.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xC(4194308,4,e,t)},useInsertionEffect:function(e,t){return xC(4,2,e,t)},useMemo:function(e,t){var n=Uu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Uu();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=V_e.bind(null,na,e),[r.memoizedState,e]},useRef:function(e){var t=Uu();return e={current:e},t.memoizedState=e},useState:nV,useDebugValue:tF,useDeferredValue:function(e){return Uu().memoizedState=e},useTransition:function(){var e=nV(!1),t=e[0];return e=W_e.bind(null,e[1]),Uu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=na,i=Uu();if(Yi){if(n===void 0)throw Error(hn(407));n=n()}else{if(n=t(),io===null)throw Error(hn(349));tg&30||roe(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,rV(aoe.bind(null,r,a,e),[e]),r.flags|=2048,$w(9,ioe.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Uu(),t=io.identifierPrefix;if(Yi){var n=uf,r=cf;n=(r&~(1<<32-iu(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kw++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{rM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?u2(e):""}function SCe(e){switch(e.tag){case 5:return u2(e.type);case 16:return u2("Lazy");case 13:return u2("Suspense");case 19:return u2("SuspenseList");case 0:case 2:case 15:return e=iM(e.type,!1),e;case 11:return e=iM(e.type.render,!1),e;case 1:return e=iM(e.type,!0),e;default:return""}}function ZP(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ev:return"Fragment";case J1:return"Portal";case GP:return"Profiler";case $D:return"StrictMode";case YP:return"Suspense";case XP:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qie:return(e.displayName||"Context")+".Consumer";case Zie:return(e._context.displayName||"Context")+".Provider";case MD:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case TD:return t=e.displayName||null,t!==null?t:ZP(e.type)||"Memo";case xp:t=e._payload,e=e._init;try{return ZP(e(t))}catch{}}return null}function CCe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ZP(t);case 8:return t===$D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _Ce(e){var t=eae(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nx(e){e._valueTracker||(e._valueTracker=_Ce(e))}function tae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eae(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function z_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function QP(e,t){var n=t.checked;return ra({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function SW(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lh(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nae(e,t){t=t.checked,t!=null&&ED(e,"checked",t,!1)}function JP(e,t){nae(e,t);var n=lh(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?eO(e,t.type,n):t.hasOwnProperty("defaultValue")&&eO(e,t.type,lh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function CW(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function eO(e,t,n){(t!=="number"||z_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var d2=Array.isArray;function xv(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ax.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var O2={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kCe=["Webkit","ms","Moz","O"];Object.keys(O2).forEach(function(e){kCe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),O2[t]=O2[e]})});function oae(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||O2.hasOwnProperty(e)&&O2[e]?(""+t).trim():t+"px"}function sae(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=oae(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ECe=ra({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rO(e,t){if(t){if(ECe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(hn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(hn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(hn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(hn(62))}}function iO(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var aO=null;function PD(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oO=null,Sv=null,Cv=null;function EW(e){if(e=W3(e)){if(typeof oO!="function")throw Error(hn(280));var t=e.stateNode;t&&(t=M5(t),oO(e.stateNode,e.type,t))}}function lae(e){Sv?Cv?Cv.push(e):Cv=[e]:Sv=e}function cae(){if(Sv){var e=Sv,t=Cv;if(Cv=Sv=null,EW(e),t)for(e=0;e>>=0,e===0?32:31-(DCe(e)/FCe|0)|0}var Dx=64,Fx=4194304;function f2(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function V_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=f2(s):(a&=o,a!==0&&(r=f2(a)))}else o=n&~i,o!==0?r=f2(o):a!==0&&(r=f2(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function H3(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-iu(t),e[t]=n}function HCe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=I2),NW=" ",AW=!1;function Tae(e,t){switch(e){case"keyup":return g_e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pae(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tv=!1;function y_e(e,t){switch(e){case"compositionend":return Pae(t);case"keypress":return t.which!==32?null:(AW=!0,NW);case"textInput":return e=t.data,e===NW&&AW?null:e;default:return null}}function b_e(e,t){if(tv)return e==="compositionend"||!FD&&Tae(e,t)?(e=$ae(),gC=ND=Ip=null,tv=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=BW(n)}}function jae(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jae(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nae(){for(var e=window,t=z_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=z_(e.document)}return t}function LD(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M_e(e){var t=Nae(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jae(n.ownerDocument.documentElement,n)){if(r!==null&&LD(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=zW(n,a);var o=zW(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nv=null,fO=null,N2=null,pO=!1;function HW(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pO||nv==null||nv!==z_(r)||(r=nv,"selectionStart"in r&&LD(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),N2&&bw(N2,r)||(N2=r,r=G_(fO,"onSelect"),0av||(e.current=bO[av],bO[av]=null,av--)}function Mi(e,t){av++,bO[av]=e.current,e.current=t}var ch={},Go=gh(ch),Fs=gh(!1),Jm=ch;function i0(e,t){var n=e.type.contextTypes;if(!n)return ch;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ls(e){return e=e.childContextTypes,e!=null}function X_(){Ai(Fs),Ai(Go)}function YW(e,t,n){if(Go.current!==ch)throw Error(hn(168));Mi(Go,t),Mi(Fs,n)}function Wae(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(hn(108,CCe(e)||"Unknown",i));return ra({},n,r)}function Z_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ch,Jm=Go.current,Mi(Go,e),Mi(Fs,Fs.current),!0}function XW(e,t,n){var r=e.stateNode;if(!r)throw Error(hn(169));n?(e=Wae(e,t,Jm),r.__reactInternalMemoizedMergedChildContext=e,Ai(Fs),Ai(Go),Mi(Go,e)):Ai(Fs),Mi(Fs,n)}var rf=null,T5=!1,yM=!1;function Vae(e){rf===null?rf=[e]:rf.push(e)}function B_e(e){T5=!0,Vae(e)}function vh(){if(!yM&&rf!==null){yM=!0;var e=0,t=ui;try{var n=rf;for(ui=1;e>=o,i-=o,cf=1<<32-iu(t)+i|n<E?($=_,_=null):$=_.sibling;var M=p(y,_,b[E],C);if(M===null){_===null&&(_=$);break}e&&_&&M.alternate===null&&t(y,_),w=a(M,w,E),S===null?k=M:S.sibling=M,S=M,_=$}if(E===b.length)return n(y,_),Yi&&Qh(y,E),k;if(_===null){for(;EE?($=_,_=null):$=_.sibling;var P=p(y,_,M.value,C);if(P===null){_===null&&(_=$);break}e&&_&&P.alternate===null&&t(y,_),w=a(P,w,E),S===null?k=P:S.sibling=P,S=P,_=$}if(M.done)return n(y,_),Yi&&Qh(y,E),k;if(_===null){for(;!M.done;E++,M=b.next())M=f(y,M.value,C),M!==null&&(w=a(M,w,E),S===null?k=M:S.sibling=M,S=M);return Yi&&Qh(y,E),k}for(_=r(y,_);!M.done;E++,M=b.next())M=h(_,y,E,M.value,C),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?E:M.key),w=a(M,w,E),S===null?k=M:S.sibling=M,S=M);return e&&_.forEach(function(R){return t(y,R)}),Yi&&Qh(y,E),k}function v(y,w,b,C){if(typeof b=="object"&&b!==null&&b.type===ev&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case jx:e:{for(var k=b.key,S=w;S!==null;){if(S.key===k){if(k=b.type,k===ev){if(S.tag===7){n(y,S.sibling),w=i(S,b.props.children),w.return=y,y=w;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===xp&&JW(k)===S.type){n(y,S.sibling),w=i(S,b.props),w.ref=wb(y,S,b),w.return=y,y=w;break e}n(y,S);break}else t(y,S);S=S.sibling}b.type===ev?(w=Am(b.props.children,y.mode,C,b.key),w.return=y,y=w):(C=_C(b.type,b.key,b.props,null,y.mode,C),C.ref=wb(y,w,b),C.return=y,y=C)}return o(y);case J1:e:{for(S=b.key;w!==null;){if(w.key===S)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){n(y,w.sibling),w=i(w,b.children||[]),w.return=y,y=w;break e}else{n(y,w);break}else t(y,w);w=w.sibling}w=EM(b,y.mode,C),w.return=y,y=w}return o(y);case xp:return S=b._init,v(y,w,S(b._payload),C)}if(d2(b))return m(y,w,b,C);if(mb(b))return g(y,w,b,C);Vx(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(n(y,w.sibling),w=i(w,b),w.return=y,y=w):(n(y,w),w=kM(b,y.mode,C),w.return=y,y=w),o(y)):n(y,w)}return v}var o0=Yae(!0),Xae=Yae(!1),ek=gh(null),tk=null,lv=null,UD=null;function WD(){UD=lv=tk=null}function VD(e){var t=ek.current;Ai(ek),e._currentValue=t}function SO(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function kv(e,t){tk=e,UD=lv=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(As=!0),e.firstContext=null)}function hc(e){var t=e._currentValue;if(UD!==e)if(e={context:e,memoizedValue:t,next:null},lv===null){if(tk===null)throw Error(hn(308));lv=e,tk.dependencies={lanes:0,firstContext:e}}else lv=lv.next=e;return t}var mm=null;function qD(e){mm===null?mm=[e]:mm.push(e)}function Zae(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qD(t)):(n.next=i.next,i.next=n),t.interleaved=n,_f(e,r)}function _f(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sp=!1;function KD(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qae(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gf(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xp(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Yr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,_f(e,n)}return i=r.interleaved,i===null?(t.next=t,qD(r)):(t.next=i.next,i.next=t),r.interleaved=t,_f(e,n)}function yC(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,RD(e,n)}}function eV(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function nk(e,t,n,r){var i=e.updateQueue;Sp=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,u=c=l=null,s=a;do{var p=s.lane,h=s.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(h,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,f,p):m,p==null)break e;f=ra({},f,p);break e;case 2:Sp=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ng|=o,e.lanes=o,e.memoizedState=f}}function tV(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=wM.transition;wM.transition={};try{e(!1),t()}finally{ui=n,wM.transition=r}}function moe(){return mc().memoizedState}function W_e(e,t,n){var r=Qp(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},goe(e))voe(t,n);else if(n=Zae(e,t,n,r),n!==null){var i=ws();au(n,e,r,i),yoe(n,t,r)}}function V_e(e,t,n){var r=Qp(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(goe(e))voe(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,hu(s,o)){var l=t.interleaved;l===null?(i.next=i,qD(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Zae(e,t,i,r),n!==null&&(i=ws(),au(n,e,r,i),yoe(n,t,r))}}function goe(e){var t=e.alternate;return e===na||t!==null&&t===na}function voe(e,t){A2=ik=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yoe(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,RD(e,n)}}var ak={readContext:hc,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useInsertionEffect:Oo,useLayoutEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useMutableSource:Oo,useSyncExternalStore:Oo,useId:Oo,unstable_isNewReconciler:!1},q_e={readContext:hc,useCallback:function(e,t){return Uu().memoizedState=[e,t===void 0?null:t],e},useContext:hc,useEffect:rV,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wC(4194308,4,uoe.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wC(4194308,4,e,t)},useInsertionEffect:function(e,t){return wC(4,2,e,t)},useMemo:function(e,t){var n=Uu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Uu();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=W_e.bind(null,na,e),[r.memoizedState,e]},useRef:function(e){var t=Uu();return e={current:e},t.memoizedState=e},useState:nV,useDebugValue:tF,useDeferredValue:function(e){return Uu().memoizedState=e},useTransition:function(){var e=nV(!1),t=e[0];return e=U_e.bind(null,e[1]),Uu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=na,i=Uu();if(Yi){if(n===void 0)throw Error(hn(407));n=n()}else{if(n=t(),io===null)throw Error(hn(349));tg&30||noe(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,rV(ioe.bind(null,r,a,e),[e]),r.flags|=2048,$w(9,roe.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Uu(),t=io.identifierPrefix;if(Yi){var n=uf,r=cf;n=(r&~(1<<32-iu(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kw++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Qu]=t,e[Sw]=r,Toe(e,t,!1,!1),t.stateNode=e;e:{switch(o=iO(n,r),n){case"dialog":Ri("cancel",e),Ri("close",e),i=r;break;case"iframe":case"object":case"embed":Ri("load",e),i=r;break;case"video":case"audio":for(i=0;ic0&&(t.flags|=128,r=!0,xb(a,!1),t.lanes=4194304)}else{if(!r)if(e=ik(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xb(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Yi)return Io(t),null}else 2*xa()-a.renderingStartTime>c0&&n!==1073741824&&(t.flags|=128,r=!0,xb(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=xa(),t.sibling=null,n=ta.current,Mi(ta,r?n&1|2:n&1),t):(Io(t),null);case 22:case 23:return sF(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?vl&1073741824&&(Io(t),t.subtreeFlags&6&&(t.flags|=8192)):Io(t),null;case 24:return null;case 25:return null}throw Error(hn(156,t.tag))}function tke(e,t){switch(zD(t),t.tag){case 1:return Ls(t.type)&&Z_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return s0(),Ai(Fs),Ai(Yo),XD(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return YD(t),null;case 13:if(Ai(ta),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(hn(340));a0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ai(ta),null;case 4:return s0(),null;case 10:return VD(t.type._context),null;case 22:case 23:return sF(),null;case 24:return null;default:return null}}var Gx=!1,Uo=!1,nke=typeof WeakSet=="function"?WeakSet:Set,Bn=null;function cv(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fa(e,t,r)}else n.current=null}function OO(e,t,n){try{n()}catch(r){fa(e,t,r)}}var hV=!1;function rke(e,t){if(hO=K_,e=Aae(),LD(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(s=o),p===a&&++u===r&&(l=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(mO={focusedElem:e,selectionRange:n},K_=!1,Bn=t;Bn!==null;)if(t=Bn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Bn=e;else for(;Bn!==null;){t=Bn;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,w=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Wc(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(hn(163))}}catch(C){fa(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Bn=e;break}Bn=t.return}return m=hV,hV=!1,m}function D2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&OO(t,n,a)}i=i.next}while(i!==r)}}function I5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function RO(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Roe(e){var t=e.alternate;t!==null&&(e.alternate=null,Roe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qu],delete t[Sw],delete t[yO],delete t[L_e],delete t[B_e])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ioe(e){return e.tag===5||e.tag===3||e.tag===4}function mV(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ioe(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function IO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=X_));else if(r!==4&&(e=e.child,e!==null))for(IO(e,t,n),e=e.sibling;e!==null;)IO(e,t,n),e=e.sibling}function jO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jO(e,t,n),e=e.sibling;e!==null;)jO(e,t,n),e=e.sibling}var ho=null,Kc=!1;function ap(e,t,n){for(n=n.child;n!==null;)joe(e,t,n),n=n.sibling}function joe(e,t,n){if(sd&&typeof sd.onCommitFiberUnmount=="function")try{sd.onCommitFiberUnmount(k5,n)}catch{}switch(n.tag){case 5:Uo||cv(n,t);case 6:var r=ho,i=Kc;ho=null,ap(e,t,n),ho=r,Kc=i,ho!==null&&(Kc?(e=ho,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ho.removeChild(n.stateNode));break;case 18:ho!==null&&(Kc?(e=ho,n=n.stateNode,e.nodeType===8?vM(e.parentNode,n):e.nodeType===1&&vM(e,n),vw(e)):vM(ho,n.stateNode));break;case 4:r=ho,i=Kc,ho=n.stateNode.containerInfo,Kc=!0,ap(e,t,n),ho=r,Kc=i;break;case 0:case 11:case 14:case 15:if(!Uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&OO(n,t,o),i=i.next}while(i!==r)}ap(e,t,n);break;case 1:if(!Uo&&(cv(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fa(n,t,s)}ap(e,t,n);break;case 21:ap(e,t,n);break;case 22:n.mode&1?(Uo=(r=Uo)||n.memoizedState!==null,ap(e,t,n),Uo=r):ap(e,t,n);break;default:ap(e,t,n)}}function gV(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nke),t.forEach(function(r){var i=fke.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function jc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=xa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ake(r/1960))-r,10e?16:e,jp===null)var r=!1;else{if(e=jp,jp=null,ck=0,Yr&6)throw Error(hn(331));var i=Yr;for(Yr|=4,Bn=e.current;Bn!==null;){var a=Bn,o=a.child;if(Bn.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lxa()-aF?Nm(e,0):iF|=n),Bs(e,t)}function Hoe(e,t){t===0&&(e.mode&1?(t=Lx,Lx<<=1,!(Lx&130023424)&&(Lx=4194304)):t=1);var n=ws();e=_f(e,t),e!==null&&(H3(e,t,n),Bs(e,n))}function dke(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hoe(e,n)}function fke(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(hn(314))}r!==null&&r.delete(t),Hoe(e,n)}var Uoe;Uoe=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fs.current)As=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return As=!1,J_e(e,t,n);As=!!(e.flags&131072)}else As=!1,Yi&&t.flags&1048576&&Kae(t,ek,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;SC(e,t),e=t.pendingProps;var i=i0(t,Yo.current);kv(t,n),i=QD(null,t,r,e,i,n);var a=JD();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ls(r)?(a=!0,Q_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,KD(t),i.updater=R5,t.stateNode=i,i._reactInternals=t,_O(t,r,e,n),t=$O(null,t,r,!0,a,n)):(t.tag=0,Yi&&a&&BD(t),fs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(SC(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=hke(r),e=Wc(r,e),i){case 0:t=EO(null,t,r,e,n);break e;case 1:t=dV(null,t,r,e,n);break e;case 11:t=cV(null,t,r,e,n);break e;case 14:t=uV(null,t,r,Wc(r.type,e),n);break e}throw Error(hn(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),EO(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),dV(e,t,r,i,n);case 3:e:{if(Eoe(t),e===null)throw Error(hn(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Jae(e,t),rk(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=l0(Error(hn(423)),t),t=fV(e,t,r,n,i);break e}else if(r!==i){i=l0(Error(hn(424)),t),t=fV(e,t,r,n,i);break e}else for(Sl=Yp(t.stateNode.containerInfo.firstChild),Tl=t,Yi=!0,Zc=null,n=Zae(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(a0(),r===i){t=kf(e,t,n);break e}fs(e,t,r,n)}t=t.child}return t;case 5:return eoe(t),e===null&&xO(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,gO(r,i)?o=null:a!==null&&gO(r,a)&&(t.flags|=32),koe(e,t),fs(e,t,o,n),t.child;case 6:return e===null&&xO(t),null;case 13:return $oe(e,t,n);case 4:return GD(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=o0(t,null,r,n):fs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),cV(e,t,r,i,n);case 7:return fs(e,t,t.pendingProps,n),t.child;case 8:return fs(e,t,t.pendingProps.children,n),t.child;case 12:return fs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Mi(tk,r._currentValue),r._currentValue=o,a!==null)if(hu(a.value,o)){if(a.children===i.children&&!Fs.current){t=kf(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=gf(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),SO(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(hn(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),SO(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}fs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,kv(t,n),i=hc(i),r=r(i),t.flags|=1,fs(e,t,r,n),t.child;case 14:return r=t.type,i=Wc(r,t.pendingProps),i=Wc(r.type,i),uV(e,t,r,i,n);case 15:return Coe(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),SC(e,t),t.tag=1,Ls(r)?(e=!0,Q_(t)):e=!1,kv(t,n),woe(t,r,i),_O(t,r,i,n),$O(null,t,r,!0,e,n);case 19:return Moe(e,t,n);case 22:return _oe(e,t,n)}throw Error(hn(156,t.tag))};function Woe(e,t){return vae(e,t)}function pke(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function uc(e,t,n,r){return new pke(e,t,n,r)}function cF(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hke(e){if(typeof e=="function")return cF(e)?1:0;if(e!=null){if(e=e.$$typeof,e===MD)return 11;if(e===TD)return 14}return 2}function Jp(e,t){var n=e.alternate;return n===null?(n=uc(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function kC(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")cF(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ev:return Am(n.children,i,a,t);case $D:o=8,i|=8;break;case GP:return e=uc(12,n,t,i|2),e.elementType=GP,e.lanes=a,e;case YP:return e=uc(13,n,t,i),e.elementType=YP,e.lanes=a,e;case XP:return e=uc(19,n,t,i),e.elementType=XP,e.lanes=a,e;case eae:return N5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qie:o=10;break e;case Jie:o=9;break e;case MD:o=11;break e;case TD:o=14;break e;case xp:o=16,r=null;break e}throw Error(hn(130,e==null?e:typeof e,""))}return t=uc(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Am(e,t,n,r){return e=uc(7,e,r,t),e.lanes=n,e}function N5(e,t,n,r){return e=uc(22,e,r,t),e.elementType=eae,e.lanes=n,e.stateNode={isHidden:!1},e}function kM(e,t,n){return e=uc(6,e,null,t),e.lanes=n,e}function EM(e,t,n){return t=uc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mke(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oM(0),this.expirationTimes=oM(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oM(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uF(e,t,n,r,i,a,o,s,l){return e=new mke(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=uc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},KD(a),e}function gke(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Goe)}catch(e){console.error(e)}}Goe(),Gie.exports=Bl;var Va=Gie.exports;const ig=ei(Va),Yoe=C5({__proto__:null,default:ig},[Va]);var _V=Va;qP.createRoot=_V.createRoot,qP.hydrateRoot=_V.hydrateRoot;const xke={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},kV=e=>{let t;const n=new Set,r=(u,f)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const h=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(m=>m(t,h))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(xke?"open":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},Ske=e=>e?kV(e):kV;var Xoe={exports:{}},Zoe={},Qoe={exports:{}},Joe={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function CM(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function kO(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Y_e=typeof WeakMap=="function"?WeakMap:Map;function woe(e,t,n){n=gf(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sk||(sk=!0,NO=r),kO(e,t)},n}function xoe(e,t,n){n=gf(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){kO(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){kO(e,t),typeof r!="function"&&(Zp===null?Zp=new Set([this]):Zp.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function oV(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Y_e;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=cke.bind(null,e,t,n),t.then(e,e))}function sV(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lV(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gf(-1,1),t.tag=2,Xp(n,t,1))),n.lanes|=1),e)}var X_e=Lf.ReactCurrentOwner,As=!1;function fs(e,t,n,r){t.child=e===null?Xae(t,null,n,r):o0(t,e.child,n,r)}function cV(e,t,n,r,i){n=n.render;var a=t.ref;return kv(t,i),r=QD(e,t,n,r,a,i),n=JD(),e!==null&&!As?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kf(e,t,i)):(Yi&&n&&BD(t),t.flags|=1,fs(e,t,r,i),t.child)}function uV(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!cF(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Soe(e,t,a,r,i)):(e=_C(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:bw,n(o,r)&&e.ref===t.ref)return kf(e,t,i)}return t.flags|=1,e=Jp(a,r),e.ref=t.ref,e.return=t,t.child=e}function Soe(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(bw(a,r)&&e.ref===t.ref)if(As=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(As=!0);else return t.lanes=e.lanes,kf(e,t,i)}return EO(e,t,n,r,i)}function Coe(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mi(uv,gl),gl|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mi(uv,gl),gl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Mi(uv,gl),gl|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Mi(uv,gl),gl|=r;return fs(e,t,i,n),t.child}function _oe(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function EO(e,t,n,r,i){var a=Ls(n)?Jm:Go.current;return a=i0(t,a),kv(t,i),n=QD(e,t,n,r,a,i),r=JD(),e!==null&&!As?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kf(e,t,i)):(Yi&&r&&BD(t),t.flags|=1,fs(e,t,n,i),t.child)}function dV(e,t,n,r,i){if(Ls(n)){var a=!0;Z_(t)}else a=!1;if(kv(t,i),t.stateNode===null)xC(e,t),boe(t,n,r),_O(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=hc(c):(c=Ls(n)?Jm:Go.current,c=i0(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||l!==c)&&aV(t,o,r,c),Sp=!1;var p=t.memoizedState;o.state=p,nk(t,r,o,i),l=t.memoizedState,s!==r||p!==l||Fs.current||Sp?(typeof u=="function"&&(CO(t,n,u,r),l=t.memoizedState),(s=Sp||iV(t,n,s,r,p,l,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Qae(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Wc(t.type,s),o.props=c,f=t.pendingProps,p=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=hc(l):(l=Ls(n)?Jm:Go.current,l=i0(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||p!==l)&&aV(t,o,r,l),Sp=!1,p=t.memoizedState,o.state=p,nk(t,r,o,i);var m=t.memoizedState;s!==f||p!==m||Fs.current||Sp?(typeof h=="function"&&(CO(t,n,h,r),m=t.memoizedState),(c=Sp||iV(t,n,c,r,p,m,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return $O(e,t,n,r,a,i)}function $O(e,t,n,r,i,a){_oe(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&XW(t,n,!1),kf(e,t,a);r=t.stateNode,X_e.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=o0(t,e.child,null,a),t.child=o0(t,null,s,a)):fs(e,t,s,a),t.memoizedState=r.state,i&&XW(t,n,!0),t.child}function koe(e){var t=e.stateNode;t.pendingContext?YW(e,t.pendingContext,t.pendingContext!==t.context):t.context&&YW(e,t.context,!1),GD(e,t.containerInfo)}function fV(e,t,n,r,i){return a0(),HD(i),t.flags|=256,fs(e,t,n,r),t.child}var MO={dehydrated:null,treeContext:null,retryLane:0};function TO(e){return{baseLanes:e,cachePool:null,transitions:null}}function Eoe(e,t,n){var r=t.pendingProps,i=ta.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Mi(ta,i&1),e===null)return xO(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=j5(o,r,0,null),e=Am(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=TO(n),t.memoizedState=MO,e):nF(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Z_e(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Jp(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Jp(s,a):(a=Am(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?TO(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=MO,r}return a=e.child,e=a.sibling,r=Jp(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function nF(e,t){return t=j5({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qx(e,t,n,r){return r!==null&&HD(r),o0(t,e.child,null,n),e=nF(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Z_e(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=CM(Error(hn(422))),qx(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=j5({mode:"visible",children:r.children},i,0,null),a=Am(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&o0(t,e.child,null,o),t.child.memoizedState=TO(o),t.memoizedState=MO,a);if(!(t.mode&1))return qx(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(hn(419)),r=CM(a,r,void 0),qx(e,t,o,r)}if(s=(o&e.childLanes)!==0,As||s){if(r=io,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,_f(e,i),au(r,e,i,-1))}return lF(),r=CM(Error(hn(421))),qx(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=uke.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,xl=Yp(i.nextSibling),Ml=t,Yi=!0,Zc=null,e!==null&&(rc[ic++]=cf,rc[ic++]=uf,rc[ic++]=eg,cf=e.id,uf=e.overflow,eg=t),t=nF(t,r.children),t.flags|=4096,t)}function pV(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),SO(e.return,t,n)}function _M(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function $oe(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(fs(e,t,r.children,n),r=ta.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pV(e,n,t);else if(e.tag===19)pV(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Mi(ta,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&rk(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_M(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&rk(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_M(t,!0,n,null,a);break;case"together":_M(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xC(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kf(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ng|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(hn(153));if(t.child!==null){for(e=t.child,n=Jp(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jp(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Q_e(e,t,n){switch(t.tag){case 3:koe(t),a0();break;case 5:Jae(t);break;case 1:Ls(t.type)&&Z_(t);break;case 4:GD(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Mi(ek,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Mi(ta,ta.current&1),t.flags|=128,null):n&t.child.childLanes?Eoe(e,t,n):(Mi(ta,ta.current&1),e=kf(e,t,n),e!==null?e.sibling:null);Mi(ta,ta.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $oe(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mi(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,Coe(e,t,n)}return kf(e,t,n)}var Moe,PO,Toe,Poe;Moe=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};PO=function(){};Toe=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,gm(ld.current);var a=null;switch(n){case"input":i=QP(e,i),r=QP(e,r),a=[];break;case"select":i=ra({},i,{value:void 0}),r=ra({},r,{value:void 0}),a=[];break;case"textarea":i=tO(e,i),r=tO(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Y_)}rO(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(fw.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(fw.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ri("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};Poe=function(e,t,n,r){n!==r&&(t.flags|=4)};function xb(e,t){if(!Yi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ro(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function J_e(e,t,n){var r=t.pendingProps;switch(zD(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ro(t),null;case 1:return Ls(t.type)&&X_(),Ro(t),null;case 3:return r=t.stateNode,s0(),Ai(Fs),Ai(Go),XD(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wx(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zc!==null&&(FO(Zc),Zc=null))),PO(e,t),Ro(t),null;case 5:YD(t);var i=gm(_w.current);if(n=t.type,e!==null&&t.stateNode!=null)Toe(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(hn(166));return Ro(t),null}if(e=gm(ld.current),Wx(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Qu]=t,r[Sw]=a,e=(t.mode&1)!==0,n){case"dialog":Ri("cancel",r),Ri("close",r);break;case"iframe":case"object":case"embed":Ri("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Qu]=t,e[Sw]=r,Moe(e,t,!1,!1),t.stateNode=e;e:{switch(o=iO(n,r),n){case"dialog":Ri("cancel",e),Ri("close",e),i=r;break;case"iframe":case"object":case"embed":Ri("load",e),i=r;break;case"video":case"audio":for(i=0;ic0&&(t.flags|=128,r=!0,xb(a,!1),t.lanes=4194304)}else{if(!r)if(e=rk(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xb(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Yi)return Ro(t),null}else 2*xa()-a.renderingStartTime>c0&&n!==1073741824&&(t.flags|=128,r=!0,xb(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=xa(),t.sibling=null,n=ta.current,Mi(ta,r?n&1|2:n&1),t):(Ro(t),null);case 22:case 23:return sF(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gl&1073741824&&(Ro(t),t.subtreeFlags&6&&(t.flags|=8192)):Ro(t),null;case 24:return null;case 25:return null}throw Error(hn(156,t.tag))}function eke(e,t){switch(zD(t),t.tag){case 1:return Ls(t.type)&&X_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return s0(),Ai(Fs),Ai(Go),XD(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return YD(t),null;case 13:if(Ai(ta),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(hn(340));a0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ai(ta),null;case 4:return s0(),null;case 10:return VD(t.type._context),null;case 22:case 23:return sF(),null;case 24:return null;default:return null}}var Kx=!1,Ho=!1,tke=typeof WeakSet=="function"?WeakSet:Set,Bn=null;function cv(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fa(e,t,r)}else n.current=null}function OO(e,t,n){try{n()}catch(r){fa(e,t,r)}}var hV=!1;function nke(e,t){if(hO=q_,e=Nae(),LD(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(s=o),p===a&&++u===r&&(l=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(mO={focusedElem:e,selectionRange:n},q_=!1,Bn=t;Bn!==null;)if(t=Bn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Bn=e;else for(;Bn!==null;){t=Bn;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,w=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Wc(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(hn(163))}}catch(C){fa(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Bn=e;break}Bn=t.return}return m=hV,hV=!1,m}function D2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&OO(t,n,a)}i=i.next}while(i!==r)}}function R5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function RO(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ooe(e){var t=e.alternate;t!==null&&(e.alternate=null,Ooe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qu],delete t[Sw],delete t[yO],delete t[F_e],delete t[L_e])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Roe(e){return e.tag===5||e.tag===3||e.tag===4}function mV(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Roe(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function IO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Y_));else if(r!==4&&(e=e.child,e!==null))for(IO(e,t,n),e=e.sibling;e!==null;)IO(e,t,n),e=e.sibling}function jO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jO(e,t,n),e=e.sibling;e!==null;)jO(e,t,n),e=e.sibling}var ho=null,Kc=!1;function ap(e,t,n){for(n=n.child;n!==null;)Ioe(e,t,n),n=n.sibling}function Ioe(e,t,n){if(sd&&typeof sd.onCommitFiberUnmount=="function")try{sd.onCommitFiberUnmount(_5,n)}catch{}switch(n.tag){case 5:Ho||cv(n,t);case 6:var r=ho,i=Kc;ho=null,ap(e,t,n),ho=r,Kc=i,ho!==null&&(Kc?(e=ho,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ho.removeChild(n.stateNode));break;case 18:ho!==null&&(Kc?(e=ho,n=n.stateNode,e.nodeType===8?vM(e.parentNode,n):e.nodeType===1&&vM(e,n),vw(e)):vM(ho,n.stateNode));break;case 4:r=ho,i=Kc,ho=n.stateNode.containerInfo,Kc=!0,ap(e,t,n),ho=r,Kc=i;break;case 0:case 11:case 14:case 15:if(!Ho&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&OO(n,t,o),i=i.next}while(i!==r)}ap(e,t,n);break;case 1:if(!Ho&&(cv(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fa(n,t,s)}ap(e,t,n);break;case 21:ap(e,t,n);break;case 22:n.mode&1?(Ho=(r=Ho)||n.memoizedState!==null,ap(e,t,n),Ho=r):ap(e,t,n);break;default:ap(e,t,n)}}function gV(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tke),t.forEach(function(r){var i=dke.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function jc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=xa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ike(r/1960))-r,10e?16:e,jp===null)var r=!1;else{if(e=jp,jp=null,lk=0,Yr&6)throw Error(hn(331));var i=Yr;for(Yr|=4,Bn=e.current;Bn!==null;){var a=Bn,o=a.child;if(Bn.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lxa()-aF?Nm(e,0):iF|=n),Bs(e,t)}function zoe(e,t){t===0&&(e.mode&1?(t=Fx,Fx<<=1,!(Fx&130023424)&&(Fx=4194304)):t=1);var n=ws();e=_f(e,t),e!==null&&(H3(e,t,n),Bs(e,n))}function uke(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zoe(e,n)}function dke(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(hn(314))}r!==null&&r.delete(t),zoe(e,n)}var Hoe;Hoe=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fs.current)As=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return As=!1,Q_e(e,t,n);As=!!(e.flags&131072)}else As=!1,Yi&&t.flags&1048576&&qae(t,J_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xC(e,t),e=t.pendingProps;var i=i0(t,Go.current);kv(t,n),i=QD(null,t,r,e,i,n);var a=JD();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ls(r)?(a=!0,Z_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,KD(t),i.updater=O5,t.stateNode=i,i._reactInternals=t,_O(t,r,e,n),t=$O(null,t,r,!0,a,n)):(t.tag=0,Yi&&a&&BD(t),fs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xC(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=pke(r),e=Wc(r,e),i){case 0:t=EO(null,t,r,e,n);break e;case 1:t=dV(null,t,r,e,n);break e;case 11:t=cV(null,t,r,e,n);break e;case 14:t=uV(null,t,r,Wc(r.type,e),n);break e}throw Error(hn(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),EO(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),dV(e,t,r,i,n);case 3:e:{if(koe(t),e===null)throw Error(hn(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Qae(e,t),nk(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=l0(Error(hn(423)),t),t=fV(e,t,r,n,i);break e}else if(r!==i){i=l0(Error(hn(424)),t),t=fV(e,t,r,n,i);break e}else for(xl=Yp(t.stateNode.containerInfo.firstChild),Ml=t,Yi=!0,Zc=null,n=Xae(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(a0(),r===i){t=kf(e,t,n);break e}fs(e,t,r,n)}t=t.child}return t;case 5:return Jae(t),e===null&&xO(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,gO(r,i)?o=null:a!==null&&gO(r,a)&&(t.flags|=32),_oe(e,t),fs(e,t,o,n),t.child;case 6:return e===null&&xO(t),null;case 13:return Eoe(e,t,n);case 4:return GD(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=o0(t,null,r,n):fs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),cV(e,t,r,i,n);case 7:return fs(e,t,t.pendingProps,n),t.child;case 8:return fs(e,t,t.pendingProps.children,n),t.child;case 12:return fs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Mi(ek,r._currentValue),r._currentValue=o,a!==null)if(hu(a.value,o)){if(a.children===i.children&&!Fs.current){t=kf(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=gf(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),SO(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(hn(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),SO(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}fs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,kv(t,n),i=hc(i),r=r(i),t.flags|=1,fs(e,t,r,n),t.child;case 14:return r=t.type,i=Wc(r,t.pendingProps),i=Wc(r.type,i),uV(e,t,r,i,n);case 15:return Soe(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wc(r,i),xC(e,t),t.tag=1,Ls(r)?(e=!0,Z_(t)):e=!1,kv(t,n),boe(t,r,i),_O(t,r,i,n),$O(null,t,r,!0,e,n);case 19:return $oe(e,t,n);case 22:return Coe(e,t,n)}throw Error(hn(156,t.tag))};function Uoe(e,t){return gae(e,t)}function fke(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function uc(e,t,n,r){return new fke(e,t,n,r)}function cF(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pke(e){if(typeof e=="function")return cF(e)?1:0;if(e!=null){if(e=e.$$typeof,e===MD)return 11;if(e===TD)return 14}return 2}function Jp(e,t){var n=e.alternate;return n===null?(n=uc(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _C(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")cF(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ev:return Am(n.children,i,a,t);case $D:o=8,i|=8;break;case GP:return e=uc(12,n,t,i|2),e.elementType=GP,e.lanes=a,e;case YP:return e=uc(13,n,t,i),e.elementType=YP,e.lanes=a,e;case XP:return e=uc(19,n,t,i),e.elementType=XP,e.lanes=a,e;case Jie:return j5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zie:o=10;break e;case Qie:o=9;break e;case MD:o=11;break e;case TD:o=14;break e;case xp:o=16,r=null;break e}throw Error(hn(130,e==null?e:typeof e,""))}return t=uc(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Am(e,t,n,r){return e=uc(7,e,r,t),e.lanes=n,e}function j5(e,t,n,r){return e=uc(22,e,r,t),e.elementType=Jie,e.lanes=n,e.stateNode={isHidden:!1},e}function kM(e,t,n){return e=uc(6,e,null,t),e.lanes=n,e}function EM(e,t,n){return t=uc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hke(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oM(0),this.expirationTimes=oM(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oM(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uF(e,t,n,r,i,a,o,s,l){return e=new hke(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=uc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},KD(a),e}function mke(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Koe)}catch(e){console.error(e)}}Koe(),Kie.exports=Ll;var Va=Kie.exports;const ig=ei(Va),Goe=S5({__proto__:null,default:ig},[Va]);var _V=Va;qP.createRoot=_V.createRoot,qP.hydrateRoot=_V.hydrateRoot;const wke={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},kV=e=>{let t;const n=new Set,r=(u,f)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const h=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(m=>m(t,h))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(wke?"open":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},xke=e=>e?kV(e):kV;var Yoe={exports:{}},Xoe={},Zoe={exports:{}},Qoe={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -45,7 +45,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var u0=d;function Cke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _ke=typeof Object.is=="function"?Object.is:Cke,kke=u0.useState,Eke=u0.useEffect,$ke=u0.useLayoutEffect,Mke=u0.useDebugValue;function Tke(e,t){var n=t(),r=kke({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return $ke(function(){i.value=n,i.getSnapshot=t,$M(i)&&a({inst:i})},[e,n,t]),Eke(function(){return $M(i)&&a({inst:i}),e(function(){$M(i)&&a({inst:i})})},[e]),Mke(n),n}function $M(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_ke(e,n)}catch{return!0}}function Pke(e,t){return t()}var Oke=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Pke:Tke;Joe.useSyncExternalStore=u0.useSyncExternalStore!==void 0?u0.useSyncExternalStore:Oke;Qoe.exports=Joe;var ese=Qoe.exports;/** + */var u0=d;function Ske(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cke=typeof Object.is=="function"?Object.is:Ske,_ke=u0.useState,kke=u0.useEffect,Eke=u0.useLayoutEffect,$ke=u0.useDebugValue;function Mke(e,t){var n=t(),r=_ke({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Eke(function(){i.value=n,i.getSnapshot=t,$M(i)&&a({inst:i})},[e,n,t]),kke(function(){return $M(i)&&a({inst:i}),e(function(){$M(i)&&a({inst:i})})},[e]),$ke(n),n}function $M(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cke(e,n)}catch{return!0}}function Tke(e,t){return t()}var Pke=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Tke:Mke;Qoe.useSyncExternalStore=u0.useSyncExternalStore!==void 0?u0.useSyncExternalStore:Pke;Zoe.exports=Qoe;var Joe=Zoe.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -53,37 +53,37 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var B5=d,Rke=ese;function Ike(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jke=typeof Object.is=="function"?Object.is:Ike,Nke=Rke.useSyncExternalStore,Ake=B5.useRef,Dke=B5.useEffect,Fke=B5.useMemo,Lke=B5.useDebugValue;Zoe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Ake(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Fke(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return f=m}return f=h}if(m=f,jke(u,h))return m;var g=r(h);return i!==void 0&&i(m,g)?m:(u=h,f=g)}var c=!1,u,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=Nke(e,a[0],a[1]);return Dke(function(){o.hasValue=!0,o.value=s},[s]),Lke(s),s};Xoe.exports=Zoe;var Bke=Xoe.exports;const zke=ei(Bke),tse={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},{useDebugValue:Hke}=te,{useSyncExternalStoreWithSelector:Uke}=zke;let EV=!1;const Wke=e=>e;function Vke(e,t=Wke,n){(tse?"open":void 0)!=="production"&&n&&!EV&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),EV=!0);const r=Uke(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Hke(r),r}const $V=e=>{(tse?"open":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Ske(e):e,n=(r,i)=>Vke(t,r,i);return Object.assign(n,t),n},so=e=>e?$V(e):$V,EC={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},LO=new Map,Zx=e=>{const t=LO.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},qke=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=LO.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return LO.set(n.name,i),{type:"tracked",store:e,...i}},Kke=(e,t={})=>(n,r,i)=>{const{enabled:a,anonymousActionType:o,store:s,...l}=t;let c;try{c=(a??(EC?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(EC?"open":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:u,...f}=qke(s,c,l);let p=!0;i.setState=(g,v,y)=>{const w=n(g,v);if(!p)return w;const b=y===void 0?{type:o||"anonymous"}:typeof y=="string"?{type:y}:y;return s===void 0?(u==null||u.send(b,r()),w):(u==null||u.send({...b,type:`${s}/${b.type}`},{...Zx(l.name),[s]:i.getState()}),w)};const h=(...g)=>{const v=p;p=!1,n(...g),p=v},m=e(i.setState,r,i);if(f.type==="untracked"?u==null||u.init(m):(f.stores[f.store]=i,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([g,v])=>[g,g===f.store?m:v.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let g=!1;const v=i.dispatch;i.dispatch=(...y)=>{(EC?"open":void 0)!=="production"&&y[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...y)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return MM(g.payload,y=>{if(y.type==="__setState"){if(s===void 0){h(y.state);return}Object.keys(y.state).length!==1&&console.error(` + */var L5=d,Oke=Joe;function Rke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ike=typeof Object.is=="function"?Object.is:Rke,jke=Oke.useSyncExternalStore,Nke=L5.useRef,Ake=L5.useEffect,Dke=L5.useMemo,Fke=L5.useDebugValue;Xoe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Nke(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Dke(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return f=m}return f=h}if(m=f,Ike(u,h))return m;var g=r(h);return i!==void 0&&i(m,g)?m:(u=h,f=g)}var c=!1,u,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=jke(e,a[0],a[1]);return Ake(function(){o.hasValue=!0,o.value=s},[s]),Fke(s),s};Yoe.exports=Xoe;var Lke=Yoe.exports;const Bke=ei(Lke),ese={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},{useDebugValue:zke}=te,{useSyncExternalStoreWithSelector:Hke}=Bke;let EV=!1;const Uke=e=>e;function Wke(e,t=Uke,n){(ese?"open":void 0)!=="production"&&n&&!EV&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),EV=!0);const r=Hke(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return zke(r),r}const $V=e=>{(ese?"open":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?xke(e):e,n=(r,i)=>Wke(t,r,i);return Object.assign(n,t),n},so=e=>e?$V(e):$V,kC={BASE_URL:"/agent",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_APP_ENV:"web",VITE_CONFIG_ENV:"prod-open"},LO=new Map,Xx=e=>{const t=LO.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Vke=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=LO.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return LO.set(n.name,i),{type:"tracked",store:e,...i}},qke=(e,t={})=>(n,r,i)=>{const{enabled:a,anonymousActionType:o,store:s,...l}=t;let c;try{c=(a??(kC?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(kC?"open":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:u,...f}=Vke(s,c,l);let p=!0;i.setState=(g,v,y)=>{const w=n(g,v);if(!p)return w;const b=y===void 0?{type:o||"anonymous"}:typeof y=="string"?{type:y}:y;return s===void 0?(u==null||u.send(b,r()),w):(u==null||u.send({...b,type:`${s}/${b.type}`},{...Xx(l.name),[s]:i.getState()}),w)};const h=(...g)=>{const v=p;p=!1,n(...g),p=v},m=e(i.setState,r,i);if(f.type==="untracked"?u==null||u.init(m):(f.stores[f.store]=i,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([g,v])=>[g,g===f.store?m:v.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let g=!1;const v=i.dispatch;i.dispatch=(...y)=>{(kC?"open":void 0)!=="production"&&y[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...y)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return MM(g.payload,y=>{if(y.type==="__setState"){if(s===void 0){h(y.state);return}Object.keys(y.state).length!==1&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const w=y.state[s];if(w==null)return;JSON.stringify(i.getState())!==JSON.stringify(w)&&h(w);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return h(m),s===void 0?u==null?void 0:u.init(i.getState()):u==null?void 0:u.init(Zx(l.name));case"COMMIT":if(s===void 0){u==null||u.init(i.getState());return}return u==null?void 0:u.init(Zx(l.name));case"ROLLBACK":return MM(g.state,y=>{if(s===void 0){h(y),u==null||u.init(i.getState());return}h(y[s]),u==null||u.init(Zx(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return MM(g.state,y=>{if(s===void 0){h(y);return}JSON.stringify(i.getState())!==JSON.stringify(y[s])&&h(y[s])});case"IMPORT_STATE":{const{nextLiftedState:y}=g.payload,w=(v=y.computedStates.slice(-1)[0])==null?void 0:v.state;if(!w)return;h(s===void 0?w:w[s]),u==null||u.send(null,y);return}case"PAUSE_RECORDING":return p=!p}return}}),m},es=Kke,MM=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function Gke(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,void 0),s=(a=n.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>n.removeItem(i)}}const Tw=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Tw(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Tw(r)(n)}}}},Yke=(e,t)=>(n,r,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch{}if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},r,i);const u=Tw(a.serialize),f=()=>{const v=a.partialize({...r()});let y;const w=u({state:v,version:a.version}).then(b=>c.setItem(a.name,b)).catch(b=>{y=b});if(y)throw y;return w},p=i.setState;i.setState=(v,y)=>{p(v,y),f()};const h=e((...v)=>{n(...v),f()},r,i);let m;const g=()=>{var v;if(!c)return;o=!1,s.forEach(w=>w(r()));const y=((v=a.onRehydrateStorage)==null?void 0:v.call(a,r()))||void 0;return Tw(c.getItem.bind(c))(a.name).then(w=>{if(w)return a.deserialize(w)}).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==a.version){if(a.migrate)return a.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var b;return m=a.merge(w,(b=r())!=null?b:h),n(m,!0),f()}).then(()=>{y==null||y(m,void 0),o=!0,l.forEach(w=>w(m))}).catch(w=>{y==null||y(void 0,w)})};return i.persist={setOptions:v=>{a={...a,...v},v.getStorage&&(c=v.getStorage())},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},g(),m||h},Xke=(e,t)=>(n,r,i)=>{let a={storage:Gke(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...t},o=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...g)},r,i);const u=()=>{const g=a.partialize({...r()});return c.setItem(a.name,{state:g,version:a.version})},f=i.setState;i.setState=(g,v)=>{f(g,v),u()};const p=e((...g)=>{n(...g),u()},r,i);i.getInitialState=()=>p;let h;const m=()=>{var g,v;if(!c)return;o=!1,s.forEach(w=>{var b;return w((b=r())!=null?b:p)});const y=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(g=r())!=null?g:p))||void 0;return Tw(c.getItem.bind(c))(a.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==a.version){if(a.migrate)return[!0,a.migrate(w.state,w.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,w.state];return[!1,void 0]}).then(w=>{var b;const[C,k]=w;if(h=a.merge(k,(b=r())!=null?b:p),n(h,!0),C)return u()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(w=>w(h))}).catch(w=>{y==null||y(void 0,w)})};return i.persist={setOptions:g=>{a={...a,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},a.skipHydration||m(),h||p},Zke=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((EC?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Yke(e,t)):Xke(e,t),ts=Zke;var nse=Symbol.for("immer-nothing"),MV=Symbol.for("immer-draftable"),Il=Symbol.for("immer-state");function Qc(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var d0=Object.getPrototypeOf;function f0(e){return!!e&&!!e[Il]}function ag(e){var t;return e?rse(e)||Array.isArray(e)||!!e[MV]||!!((t=e.constructor)!=null&&t[MV])||H5(e)||U5(e):!1}var Qke=Object.prototype.constructor.toString();function rse(e){if(!e||typeof e!="object")return!1;const t=d0(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Qke}function fk(e,t){z5(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function z5(e){const t=e[Il];return t?t.type_:Array.isArray(e)?1:H5(e)?2:U5(e)?3:0}function BO(e,t){return z5(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ise(e,t,n){const r=z5(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Jke(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function H5(e){return e instanceof Map}function U5(e){return e instanceof Set}function em(e){return e.copy_||e.base_}function zO(e,t){if(H5(e))return new Map(e);if(U5(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=rse(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Il];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=e6e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>hF(r,!0))),e}function e6e(){Qc(2)}function W5(e){return Object.isFrozen(e)}var t6e={};function og(e){const t=t6e[e];return t||Qc(0,e),t}var Pw;function ase(){return Pw}function n6e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function TV(e,t){t&&(og("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function HO(e){UO(e),e.drafts_.forEach(r6e),e.drafts_=null}function UO(e){e===Pw&&(Pw=e.parent_)}function PV(e){return Pw=n6e(Pw,e)}function r6e(e){const t=e[Il];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function OV(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Il].modified_&&(HO(t),Qc(4)),ag(e)&&(e=pk(t,e),t.parent_||hk(t,e)),t.patches_&&og("Patches").generateReplacementPatches_(n[Il].base_,e,t.patches_,t.inversePatches_)):e=pk(t,n,[]),HO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==nse?e:void 0}function pk(e,t,n){if(W5(t))return t;const r=t[Il];if(!r)return fk(t,(i,a)=>RV(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return hk(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),fk(a,(s,l)=>RV(e,r,i,s,l,n,o)),hk(e,i,!1),n&&e.patches_&&og("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function RV(e,t,n,r,i,a,o){if(f0(i)){const s=a&&t&&t.type_!==3&&!BO(t.assigned_,r)?a.concat(r):void 0,l=pk(e,i,s);if(ise(n,r,l),f0(l))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(ag(i)&&!W5(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;pk(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&hk(e,i)}}function hk(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&hF(t,n)}function i6e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ase(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=mF;n&&(i=[r],a=Ow);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var mF={get(e,t){if(t===Il)return e;const n=em(e);if(!BO(n,t))return a6e(e,n,t);const r=n[t];return e.finalized_||!ag(r)?r:r===TM(e.base_,t)?(PM(e),e.copy_[t]=VO(r,e)):r},has(e,t){return t in em(e)},ownKeys(e){return Reflect.ownKeys(em(e))},set(e,t,n){const r=ose(em(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=TM(em(e),t),a=i==null?void 0:i[Il];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Jke(n,i)&&(n!==void 0||BO(e.base_,t)))return!0;PM(e),WO(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return TM(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,PM(e),WO(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=em(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Qc(11)},getPrototypeOf(e){return d0(e.base_)},setPrototypeOf(){Qc(12)}},Ow={};fk(mF,(e,t)=>{Ow[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ow.deleteProperty=function(e,t){return Ow.set.call(this,e,t,void 0)};Ow.set=function(e,t,n){return mF.set.call(this,e[0],t,n,e[0])};function TM(e,t){const n=e[Il];return(n?em(n):e)[t]}function a6e(e,t,n){var i;const r=ose(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function ose(e,t){if(!(t in e))return;let n=d0(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=d0(n)}}function WO(e){e.modified_||(e.modified_=!0,e.parent_&&WO(e.parent_))}function PM(e){e.copy_||(e.copy_=zO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var o6e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(l=a,...c){return o.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Qc(6),r!==void 0&&typeof r!="function"&&Qc(7);let i;if(ag(t)){const a=PV(this),o=VO(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?HO(a):UO(a)}return TV(a,r),OV(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===nse&&(i=void 0),this.autoFreeze_&&hF(i,!0),r){const a=[],o=[];og("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else Qc(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ag(e)||Qc(8),f0(e)&&(e=s6e(e));const t=PV(this),n=VO(e,void 0);return n[Il].isManual_=!0,UO(t),n}finishDraft(e,t){const n=e&&e[Il];(!n||!n.isManual_)&&Qc(9);const{scope_:r}=n;return TV(r,t),OV(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=og("Patches").applyPatches_;return f0(e)?r(e,t):this.produce(e,i=>r(i,t))}};function VO(e,t){const n=H5(e)?og("MapSet").proxyMap_(e,t):U5(e)?og("MapSet").proxySet_(e,t):i6e(e,t);return(t?t.scope_:ase()).drafts_.push(n),n}function s6e(e){return f0(e)||Qc(10,e),sse(e)}function sse(e){if(!ag(e)||W5(e))return e;const t=e[Il];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zO(e,t.scope_.immer_.useStrictShallowCopy_)}else n=zO(e,!0);return fk(n,(r,i)=>{ise(n,r,sse(i))}),t&&(t.finalized_=!1),n}var jl=new o6e,l6e=jl.produce;jl.produceWithPatches.bind(jl);jl.setAutoFreeze.bind(jl);jl.setUseStrictShallowCopy.bind(jl);jl.applyPatches.bind(jl);jl.createDraft.bind(jl);jl.finishDraft.bind(jl);const c6e=e=>(t,n,r)=>(r.setState=(i,a,...o)=>{const s=typeof i=="function"?l6e(i):i;return t(s,a,...o)},e(r.setState,n,r)),ns=c6e,u6e="dev",lse="open",IV="prod",d6e="quanjing",gF="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open","configEnv:",gF);const f6e="web";console.log("Current VITE_APP_ENV:","web","appEnv:",f6e);let sc;switch(gF){case"dev":sc={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9006",IS_DEBUG:!0,SERVER_MODE:u6e,CLIENT:"WEB"};break;case"prod-open":sc={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:lse,CLIENT:"WEB"};break;case"prod-quanjing":sc={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:d6e,CLIENT:"WEB"};break;case"prod-web":sc={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:IV,CLIENT:"WEB"};break;default:sc={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:IV,CLIENT:"ELECTRON"}}console.log("config.API_BASE_URL: ",gF,sc);const ha=navigator.userAgent.toLowerCase().indexOf("electron")>-1,OM=sc.API_URL,jV=sc.MQTT_URL;sc.HTML_URL;const Nl=sc.IS_DEBUG,p6e=sc.SERVER_MODE,kn=sc.CLIENT,NV="https://cdn.weiyuai.cn/logo.png",gc="BYTEDESK",AV="locale",DV="mode",$C="team",Rw="agent",cse="personal",Iw="i18n.",Qx="i18n.new.message",use="ANONYMOUS",dse="message_list_item",yl="bytedesk_login_credentials",FV="THEME_MODE_TYPE",LV="THEME_NAME_TYPE",MC="PLAY_AUDIO",TC="NETWORK_STATUS_NOTIFICATION",B2="CONFIG_ENABLED_AGENT",PC="CONFIG_API_URL_AGENT",OC="CONFIG_WEBSOCKET_URL_AGENT",RM="CONFIG_HTML_URL_AGENT",dv="CONFIG_CUSTOM_ENABLED_AGENT",h2="CONFIG_CUSTOM_API_URL_AGENT",m2="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",h6e="CONFIG_PROPERTIES",fv=Iw+"DEPT_ALL",m6e="SCREENSHOT_OK",g6e="EVENT_BUS_SERVER_ERROR_500",eh="EVENT_BUS_TOKEN_INVALID",RC="EVENT_BUS_SEND_IMAGE_MESSAGE",IM="EVENT_BUS_SEND_FILE_MESSAGE",jw="EVENT_BUS_MQTT_MESSAGE",qO="EVENT_BUS_MQTT_CONNECTED",KO="EVENT_BUS_MQTT_OFFLINE",GO="EVENT_BUS_MQTT_CLOSE",YO="EVENT_BUS_MQTT_DISCONNECTED",XO="EVENT_BUS_MQTT_ERROR",ZO="EVENT_BUS_MQTT_END",mk="EVENT_BUS_MESSAGE_TYPE_STATUS",v6e="EVENT_BUS_MESSAGE_TYPE_TYPING",y6e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",fse="EVENT_BUS_MESSAGE_TYPE_STREAM",b6e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",pse="EVENT_BUS_MESSAGE_TYPE_TRANSFER",hse="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",mse="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",gse="EVENT_BUS_MESSAGE_TYPE_INVITE",vse="EVENT_BUS_MESSAGE_TYPE_INVITE_ACCEPT",yse="EVENT_BUS_MESSAGE_TYPE_INVITE_REJECT",QO="EVENT_BUS_SCREEN_CAPTURE_IMAGE",JO="EVENT_BUS_QUICKREPLY_SEND",eR="EVENT_BUS_QUICKREPLY_ADD",tR="EVENT_BUS_THREAD_UPDATE_NOTE",Nw="EVENT_BUS_ASK_AI_COPILOT",Aw="EVENT_BUS_SEARCH_QUICKREPLY",w6e="AUTH_STORE",Ef="ACCESS_TOKEN",x6e="ORGANIZATION_STORE",S6e="DEPARTMENT_STORE",C6e="MEMBER_STORE",_6e="VISITOR_STORE",k6e="MESSAGE_STORE",E6e="CONTACT_STORE",$6e="USER_STORE",M6e="SETTINGS_STORE",T6e="THREAD_STORE",P6e="DEVICE_STORE",O6e="AGENT_STORE",R6e="CATEGORY_STORE",I6e="WORKGROUP_STORE",j6e="PROVIDER_STORE",N6e="ROBOT_MESSAGE_STORE",A6e="member",bse="device",D6e="MOBILE_LOGIN",F6e="MOBILE_RESET",L6e="MOBILE_VERIFY",B6e="EMAIL_RESET",z6e="EMAIL_VERIFY",H6e="PENDING",U6e="SCANNED",W6e="CONFIRMED",V6e="EXPIRED",q6e="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",wse="https://cdn.weiyuai.cn/agent/assets/css/chatui/chatui-theme-dark.css",K6e="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",uh="AGENT",G6e="VISITOR",Y6e="ROBOT",gk="MEMBER",V5="USER",q3="AGENT",K3="WORKGROUP",xse="MEMBER",Sse="GROUP",Cse="TICKET",vF="LLM",BV="QUEUING",X6e="STARTED",nR="CLOSED",$p="SENDING",Dw="SUCCESS",Z6e="LEAVE_MSG_SUBMIT",Q6e="TRANSFER_PENDING",p0="TRANSFER_ACCEPTED",h0="TRANSFER_REJECTED",J6e="INVITE_PENDING",zV="INVITE_ACCEPTED",HV="INVITE_REJECTED",_se="WELCOME",m0="CONTINUE",G3="SYSTEM",e5e="QUEUE",kse="NOTICE",vo="TEXT",Cl="IMAGE",cd="FILE",Fw="AUDIO",sg="VIDEO",t5e="GOODS",rR="LEAVE_MSG",n5e="LEAVE_MSG_SUBMIT",vk="TYPING",iR="PROCESSING",$f="STREAM",r5e="STREAM_END",UV="PREVIEW",aR="RECALL",oR="DELIVERED",sR="READ",Ese="FAQ",i5e="FAQ_UP",a5e="FAQ_DOWN",o5e="ROBOT",s5e="ROBOT_UP",l5e="ROBOT_DOWN",c5e="RATE",pv="RATE_INVITE",$se="RATE_SUBMIT",u5e="RATE_CANCEL",g0="AUTO_CLOSED",v0="AGENT_CLOSED",yF="TRANSFER",bF="TRANSFER_ACCEPT",wF="TRANSFER_REJECT",xF="INVITE",SF="INVITE_ACCEPT",CF="INVITE_REJECT",d5e="LOGIN",Ld="TRANSFER",WV="TRANSFER_REJECT",VV="TRANSFER_ACCEPT",qV="TRANSFER_TIMEOUT",KV="TRANSFER_CANCEL",Bd="INVITE",GV="INVITE_REJECT",YV="INVITE_ACCEPT",XV="INVITE_TIMEOUT",ZV="INVITE_CANCEL",QV="INVITE_VISITOR",JV="INVITE_VISITOR_REJECT",eq="INVITE_VISITOR_ACCEPT",tq="INVITE_VISITOR_TIMEOUT",nq="INVITE_VISITOR_CANCEL",rq="INVITE_GROUP",iq="INVITE_GROUP_REJECT",aq="INVITE_GROUP_ACCEPT",oq="INVITE_GROUP_TIMEOUT",sq="INVITE_GROUP_CANCEL",lq="INVITE_KBASE",cq="INVITE_KBASE_REJECT",uq="INVITE_KBASE_ACCEPT",dq="INVITE_KBASE_TIMEOUT",fq="INVITE_KBASE_CANCEL",pq="INVITE_ORGANIZATION",hq="INVITE_ORGANIZATION_REJECT",mq="INVITE_ORGANIZATION_ACCEPT",gq="INVITE_ORGANIZATION_TIMEOUT",vq="INVITE_ORGANIZATION_CANCEL",y0="AVAILABLE",yq="BUSY",Dm="OFFLINE",yk="REST",_F="LLM",f5e="NORMAL",p5e="system",Mse="org/member/",Tse="org/group/",Pse="org/robot/",h5e="org/agent/",m5e="org/workgroup/",g5e="LLM",bq="AUTOREPLY",bk="TICKET",kF="CHAT",v5e="ATTACHMENT",jM="FIXED",NM="KEYWORD",AM="LLM",y5e="KB",b5e="CATEGORY",wq="lastPath",Lw="ORGANIZATION",w5e="AGENT",x5e="QUICKREPLY",S5e="ROBOT",C5e="ROLE_SUPER",_5e="ROLE_ADMIN",k5e="ROLE_MEMBER",E5e="ROLE_AGENT",lR="AGENT",Ose="LOWEST",EF="LOW",wk="MEDIUM",$F="HIGH",MF="URGENT",TF="CRITICAL",lg="NEW",Rse="ASSIGNED",Y3="CLAIMED",Ise="UNCLAIMED",ly="PROCESSING",X3="PENDING",Z3="HOLDING",PF="RESUMED",Q3="REOPENED",J3="RESOLVED",$5e="ESCALATED",e4="CLOSED",t4="CANCELLED",b0="STATUS_ALL",w0="PRIORITY_ALL",x0="ASSIGNMENT_ALL",S0="TIME_ALL",cR="UNASSIGNED",jse="MY_CREATED",Nse="MY_ASSIGNED",Ase="TODAY",Dse="YESTERDAY",Fse="THIS_WEEK",Lse="LAST_WEEK",Bse="THIS_MONTH",zse="LAST_MONTH",M5e="groupTicketSimpleProcess",T5e="agent_assistant",n4=so()(es(ts(ns((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Ef,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Ef),e({accessToken:""})}})),{name:w6e}))),OF=so()(es(ts(ns(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(t){e({currentMenu:t})},setProLayoutCollapsed(t){e(n=>({settings:{...n.settings,proLayoutCollapsed:t}}))}})),{name:M6e})));var Ig={},Hse={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Hse);var br=Hse.exports,q5={};Object.defineProperty(q5,"__esModule",{value:!0});q5.default=void 0;var P5e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};q5.default=P5e;var K5={},r4={},G5={},Use={exports:{}},Wse={exports:{}},Vse={exports:{}},qse={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(qse);var jg=qse.exports,Kse={exports:{}};(function(e){var t=jg.default;function n(r,i){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,i||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Kse);var O5e=Kse.exports;(function(e){var t=jg.default,n=O5e;function r(i){var a=n(i,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Vse);var R5e=Vse.exports;(function(e){var t=R5e;function n(r,i,a){return(i=t(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Wse);var Gse=Wse.exports;(function(e){var t=Gse;function n(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);a&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),o.push.apply(o,s)}return o}function r(i){for(var a=1;a{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{o.matches?n("dark"):n("light")}))},[]),d.useEffect(()=>{localStorage.setItem(FV,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),d.useEffect(()=>{localStorage.setItem(LV,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:a,isDarkMode:t==="dark",isLightMode:t==="light"}}function ele(e,t){return function(){return e.apply(t,arguments)}}const{toString:kEe}=Object.prototype,{getPrototypeOf:RF}=Object,oE=(e=>t=>{const n=kEe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Cu=e=>(e=e.toLowerCase(),t=>oE(t)===e),sE=e=>t=>typeof t===e,{isArray:uy}=Array,Bw=sE("undefined");function EEe(e){return e!==null&&!Bw(e)&&e.constructor!==null&&!Bw(e.constructor)&&Pl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tle=Cu("ArrayBuffer");function $Ee(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tle(e.buffer),t}const MEe=sE("string"),Pl=sE("function"),nle=sE("number"),lE=e=>e!==null&&typeof e=="object",TEe=e=>e===!0||e===!1,IC=e=>{if(oE(e)!=="object")return!1;const t=RF(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},PEe=Cu("Date"),OEe=Cu("File"),REe=Cu("Blob"),IEe=Cu("FileList"),jEe=e=>lE(e)&&Pl(e.pipe),NEe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pl(e.append)&&((t=oE(e))==="formdata"||t==="object"&&Pl(e.toString)&&e.toString()==="[object FormData]"))},AEe=Cu("URLSearchParams"),[DEe,FEe,LEe,BEe]=["ReadableStream","Request","Response","Headers"].map(Cu),zEe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function c4(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),uy(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const vm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ile=e=>!Bw(e)&&e!==vm;function uR(){const{caseless:e}=ile(this)&&this||{},t={},n=(r,i)=>{const a=e&&rle(t,i)||i;IC(t[a])&&IC(r)?t[a]=uR(t[a],r):IC(r)?t[a]=uR({},r):uy(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(c4(t,(i,a)=>{n&&Pl(i)?e[a]=ele(i,n):e[a]=i},{allOwnKeys:r}),e),UEe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),WEe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},VEe=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&RF(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qEe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},KEe=e=>{if(!e)return null;if(uy(e))return e;let t=e.length;if(!nle(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},GEe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&RF(Uint8Array)),YEe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},XEe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ZEe=Cu("HTMLFormElement"),QEe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),kq=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),JEe=Cu("RegExp"),ale=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};c4(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},e8e=e=>{ale(e,(t,n)=>{if(Pl(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Pl(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},t8e=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return uy(e)?r(e):r(String(e).split(t)),n},n8e=()=>{},r8e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,DM="abcdefghijklmnopqrstuvwxyz",Eq="0123456789",ole={DIGIT:Eq,ALPHA:DM,ALPHA_DIGIT:DM+DM.toUpperCase()+Eq},i8e=(e=16,t=ole.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function a8e(e){return!!(e&&Pl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const o8e=e=>{const t=new Array(10),n=(r,i)=>{if(lE(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=uy(r)?[]:{};return c4(r,(o,s)=>{const l=n(o,i+1);!Bw(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},s8e=Cu("AsyncFunction"),l8e=e=>e&&(lE(e)||Pl(e))&&Pl(e.then)&&Pl(e.catch),sle=((e,t)=>e?setImmediate:t?((n,r)=>(vm.addEventListener("message",({source:i,data:a})=>{i===vm&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),vm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Pl(vm.postMessage)),c8e=typeof queueMicrotask<"u"?queueMicrotask.bind(vm):typeof process<"u"&&process.nextTick||sle,Vt={isArray:uy,isArrayBuffer:tle,isBuffer:EEe,isFormData:NEe,isArrayBufferView:$Ee,isString:MEe,isNumber:nle,isBoolean:TEe,isObject:lE,isPlainObject:IC,isReadableStream:DEe,isRequest:FEe,isResponse:LEe,isHeaders:BEe,isUndefined:Bw,isDate:PEe,isFile:OEe,isBlob:REe,isRegExp:JEe,isFunction:Pl,isStream:jEe,isURLSearchParams:AEe,isTypedArray:GEe,isFileList:IEe,forEach:c4,merge:uR,extend:HEe,trim:zEe,stripBOM:UEe,inherits:WEe,toFlatObject:VEe,kindOf:oE,kindOfTest:Cu,endsWith:qEe,toArray:KEe,forEachEntry:YEe,matchAll:XEe,isHTMLForm:ZEe,hasOwnProperty:kq,hasOwnProp:kq,reduceDescriptors:ale,freezeMethods:e8e,toObjectSet:t8e,toCamelCase:QEe,noop:n8e,toFiniteNumber:r8e,findKey:rle,global:vm,isContextDefined:ile,ALPHABET:ole,generateString:i8e,isSpecCompliantForm:a8e,toJSONObject:o8e,isAsyncFn:s8e,isThenable:l8e,setImmediate:sle,asap:c8e};function _r(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Vt.inherits(_r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Vt.toJSONObject(this.config),code:this.code,status:this.status}}});const lle=_r.prototype,cle={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{cle[e]={value:e}});Object.defineProperties(_r,cle);Object.defineProperty(lle,"isAxiosError",{value:!0});_r.from=(e,t,n,r,i,a)=>{const o=Object.create(lle);return Vt.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),_r.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const u8e=null;function dR(e){return Vt.isPlainObject(e)||Vt.isArray(e)}function ule(e){return Vt.endsWith(e,"[]")?e.slice(0,-2):e}function $q(e,t,n){return e?e.concat(t).map(function(i,a){return i=ule(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function d8e(e){return Vt.isArray(e)&&!e.some(dR)}const f8e=Vt.toFlatObject(Vt,{},null,function(t){return/^is[A-Z]/.test(t)});function cE(e,t,n){if(!Vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Vt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!Vt.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Vt.isSpecCompliantForm(t);if(!Vt.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(Vt.isDate(m))return m.toISOString();if(!l&&Vt.isBlob(m))throw new _r("Blob is not supported. Use a Buffer instead.");return Vt.isArrayBuffer(m)||Vt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,v){let y=m;if(m&&!v&&typeof m=="object"){if(Vt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(Vt.isArray(m)&&d8e(m)||(Vt.isFileList(m)||Vt.endsWith(g,"[]"))&&(y=Vt.toArray(m)))return g=ule(g),y.forEach(function(b,C){!(Vt.isUndefined(b)||b===null)&&t.append(o===!0?$q([g],C,a):o===null?g:g+"[]",c(b))}),!1}return dR(m)?!0:(t.append($q(v,g,a),c(m)),!1)}const f=[],p=Object.assign(f8e,{defaultVisitor:u,convertValue:c,isVisitable:dR});function h(m,g){if(!Vt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),Vt.forEach(m,function(y,w){(!(Vt.isUndefined(y)||y===null)&&i.call(t,y,Vt.isString(w)?w.trim():w,g,p))===!0&&h(y,g?g.concat(w):[w])}),f.pop()}}if(!Vt.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Mq(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function IF(e,t){this._pairs=[],e&&cE(e,this,t)}const dle=IF.prototype;dle.append=function(t,n){this._pairs.push([t,n])};dle.toString=function(t){const n=t?function(r){return t.call(this,r,Mq)}:Mq;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function p8e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fle(e,t,n){if(!t)return e;const r=n&&n.encode||p8e;Vt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=Vt.isURLSearchParams(t)?t.toString():new IF(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Tq{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Vt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ple={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},h8e=typeof URLSearchParams<"u"?URLSearchParams:IF,m8e=typeof FormData<"u"?FormData:null,g8e=typeof Blob<"u"?Blob:null,v8e={isBrowser:!0,classes:{URLSearchParams:h8e,FormData:m8e,Blob:g8e},protocols:["http","https","file","blob","url","data"]},jF=typeof window<"u"&&typeof document<"u",fR=typeof navigator=="object"&&navigator||void 0,y8e=jF&&(!fR||["ReactNative","NativeScript","NS"].indexOf(fR.product)<0),b8e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",w8e=jF&&window.location.href||"http://localhost",x8e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jF,hasStandardBrowserEnv:y8e,hasStandardBrowserWebWorkerEnv:b8e,navigator:fR,origin:w8e},Symbol.toStringTag,{value:"Module"})),Wo={...x8e,...v8e};function S8e(e,t){return cE(e,new Wo.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Wo.isNode&&Vt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function C8e(e){return Vt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _8e(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&Vt.isArray(i)?i.length:o,l?(Vt.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!Vt.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&Vt.isArray(i[o])&&(i[o]=_8e(i[o])),!s)}if(Vt.isFormData(e)&&Vt.isFunction(e.entries)){const n={};return Vt.forEachEntry(e,(r,i)=>{t(C8e(r),i,n,0)}),n}return null}function k8e(e,t,n){if(Vt.isString(e))try{return(t||JSON.parse)(e),Vt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const u4={transitional:ple,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Vt.isObject(t);if(a&&Vt.isHTMLForm(t)&&(t=new FormData(t)),Vt.isFormData(t))return i?JSON.stringify(hle(t)):t;if(Vt.isArrayBuffer(t)||Vt.isBuffer(t)||Vt.isStream(t)||Vt.isFile(t)||Vt.isBlob(t)||Vt.isReadableStream(t))return t;if(Vt.isArrayBufferView(t))return t.buffer;if(Vt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return S8e(t,this.formSerializer).toString();if((s=Vt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cE(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),k8e(t)):t}],transformResponse:[function(t){const n=this.transitional||u4.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Vt.isResponse(t)||Vt.isReadableStream(t))return t;if(t&&Vt.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?_r.from(s,_r.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wo.classes.FormData,Blob:Wo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vt.forEach(["delete","get","head","post","put","patch"],e=>{u4.headers[e]={}});const E8e=Vt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$8e=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&E8e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Pq=Symbol("internals");function Cb(e){return e&&String(e).trim().toLowerCase()}function jC(e){return e===!1||e==null?e:Vt.isArray(e)?e.map(jC):String(e)}function M8e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const T8e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function FM(e,t,n,r,i){if(Vt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Vt.isString(t)){if(Vt.isString(r))return t.indexOf(r)!==-1;if(Vt.isRegExp(r))return r.test(t)}}function P8e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function O8e(e,t){const n=Vt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class zs{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=Cb(l);if(!u)throw new Error("header name must be a non-empty string");const f=Vt.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=jC(s))}const o=(s,l)=>Vt.forEach(s,(c,u)=>a(c,u,l));if(Vt.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Vt.isString(t)&&(t=t.trim())&&!T8e(t))o($8e(t),n);else if(Vt.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Cb(t),t){const r=Vt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return M8e(i);if(Vt.isFunction(n))return n.call(this,i,r);if(Vt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Cb(t),t){const r=Vt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||FM(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Cb(o),o){const s=Vt.findKey(r,o);s&&(!n||FM(r,r[s],s,n))&&(delete r[s],i=!0)}}return Vt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||FM(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Vt.forEach(this,(i,a)=>{const o=Vt.findKey(r,a);if(o){n[o]=jC(i),delete n[a];return}const s=t?P8e(a):String(a).trim();s!==a&&delete n[a],n[s]=jC(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Vt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Vt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Pq]=this[Pq]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Cb(o);r[s]||(O8e(i,o),r[s]=!0)}return Vt.isArray(t)?t.forEach(a):a(t),this}}zs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Vt.reduceDescriptors(zs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Vt.freezeMethods(zs);function LM(e,t){const n=this||u4,r=t||n,i=zs.from(r.headers);let a=r.data;return Vt.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function mle(e){return!!(e&&e.__CANCEL__)}function dy(e,t,n){_r.call(this,e??"canceled",_r.ERR_CANCELED,t,n),this.name="CanceledError"}Vt.inherits(dy,_r,{__CANCEL__:!0});function gle(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _r("Request failed with status code "+n.status,[_r.ERR_BAD_REQUEST,_r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function R8e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function I8e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-f)))},()=>i&&o(i)]}const xk=(e,t,n=3)=>{let r=0;const i=I8e(50,250);return j8e(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Oq=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Rq=e=>(...t)=>Vt.asap(()=>e(...t)),N8e=Wo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Wo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Wo.origin),Wo.navigator&&/(msie|trident)/i.test(Wo.navigator.userAgent)):()=>!0,A8e=Wo.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];Vt.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Vt.isString(r)&&o.push("path="+r),Vt.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function D8e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function F8e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vle(e,t){return e&&!D8e(t)?F8e(e,t):t}const Iq=e=>e instanceof zs?{...e}:e;function cg(e,t){t=t||{};const n={};function r(c,u,f,p){return Vt.isPlainObject(c)&&Vt.isPlainObject(u)?Vt.merge.call({caseless:p},c,u):Vt.isPlainObject(u)?Vt.merge({},u):Vt.isArray(u)?u.slice():u}function i(c,u,f,p){if(Vt.isUndefined(u)){if(!Vt.isUndefined(c))return r(void 0,c,f,p)}else return r(c,u,f,p)}function a(c,u){if(!Vt.isUndefined(u))return r(void 0,u)}function o(c,u){if(Vt.isUndefined(u)){if(!Vt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,f)=>i(Iq(c),Iq(u),f,!0)};return Vt.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||i,p=f(e[u],t[u],u);Vt.isUndefined(p)&&f!==s||(n[u]=p)}),n}const yle=e=>{const t=cg({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=zs.from(o),t.url=fle(vle(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Vt.isFormData(n)){if(Wo.hasStandardBrowserEnv||Wo.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Wo.hasStandardBrowserEnv&&(r&&Vt.isFunction(r)&&(r=r(t)),r||r!==!1&&N8e(t.url))){const c=i&&a&&A8e.read(a);c&&o.set(i,c)}return t},L8e=typeof XMLHttpRequest<"u",B8e=L8e&&function(e){return new Promise(function(n,r){const i=yle(e);let a=i.data;const o=zs.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,f,p,h,m;function g(){h&&h(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function y(){if(!v)return;const b=zs.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};gle(function(_){n(_),g()},function(_){r(_),g()},k),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new _r("Request aborted",_r.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new _r("Network Error",_r.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||ple;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new _r(C,k.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&Vt.forEach(o.toJSON(),function(C,k){v.setRequestHeader(k,C)}),Vt.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([p,m]=xk(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([f,h]=xk(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=b=>{v&&(r(!b||b.type?new dy(null,e,v):b),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=R8e(i.url);if(w&&Wo.protocols.indexOf(w)===-1){r(new _r("Unsupported protocol "+w+":",_r.ERR_BAD_REQUEST,e));return}v.send(a||null)})},z8e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof _r?u:new dy(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new _r(`timeout ${t} of ms exceeded`,_r.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>Vt.asap(s),l}},H8e=function*(e,t){let n=e.byteLength;if(n{const i=U8e(e,t);let a=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let p=a+=f;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},uE=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ble=uE&&typeof ReadableStream=="function",V8e=uE&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),wle=(e,...t)=>{try{return!!e(...t)}catch{return!1}},q8e=ble&&wle(()=>{let e=!1;const t=new Request(Wo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Nq=64*1024,pR=ble&&wle(()=>Vt.isReadableStream(new Response("").body)),Sk={stream:pR&&(e=>e.body)};uE&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sk[t]&&(Sk[t]=Vt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new _r(`Response type '${t}' is not supported`,_r.ERR_NOT_SUPPORT,r)})})})(new Response);const K8e=async e=>{if(e==null)return 0;if(Vt.isBlob(e))return e.size;if(Vt.isSpecCompliantForm(e))return(await new Request(Wo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Vt.isArrayBufferView(e)||Vt.isArrayBuffer(e))return e.byteLength;if(Vt.isURLSearchParams(e)&&(e=e+""),Vt.isString(e))return(await V8e(e)).byteLength},G8e=async(e,t)=>{const n=Vt.toFiniteNumber(e.getContentLength());return n??K8e(t)},Y8e=uE&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:p}=yle(e);c=c?(c+"").toLowerCase():"text";let h=z8e([i,a&&a.toAbortSignal()],o),m;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(l&&q8e&&n!=="get"&&n!=="head"&&(v=await G8e(u,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(Vt.isFormData(r)&&(S=k.headers.get("content-type"))&&u.setContentType(S),k.body){const[_,E]=Oq(v,xk(Rq(l)));r=jq(k.body,Nq,_,E)}}Vt.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let w=await fetch(m);const b=pR&&(c==="stream"||c==="response");if(pR&&(s||b&&g)){const k={};["status","statusText","headers"].forEach($=>{k[$]=w[$]});const S=Vt.toFiniteNumber(w.headers.get("content-length")),[_,E]=s&&Oq(S,xk(Rq(s),!0))||[];w=new Response(jq(w.body,Nq,_,()=>{E&&E(),g&&g()}),k)}c=c||"text";let C=await Sk[Vt.findKey(Sk,c)||"text"](w,e);return!b&&g&&g(),await new Promise((k,S)=>{gle(k,S,{data:C,headers:zs.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:m})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new _r("Network Error",_r.ERR_NETWORK,e,m),{cause:y.cause||y}):_r.from(y,y&&y.code,e,m)}}),hR={http:u8e,xhr:B8e,fetch:Y8e};Vt.forEach(hR,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Aq=e=>`- ${e}`,X8e=e=>Vt.isFunction(e)||e===null||e===!1,xle={getAdapter:e=>{e=Vt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : + `);const w=y.state[s];if(w==null)return;JSON.stringify(i.getState())!==JSON.stringify(w)&&h(w);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return h(m),s===void 0?u==null?void 0:u.init(i.getState()):u==null?void 0:u.init(Xx(l.name));case"COMMIT":if(s===void 0){u==null||u.init(i.getState());return}return u==null?void 0:u.init(Xx(l.name));case"ROLLBACK":return MM(g.state,y=>{if(s===void 0){h(y),u==null||u.init(i.getState());return}h(y[s]),u==null||u.init(Xx(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return MM(g.state,y=>{if(s===void 0){h(y);return}JSON.stringify(i.getState())!==JSON.stringify(y[s])&&h(y[s])});case"IMPORT_STATE":{const{nextLiftedState:y}=g.payload,w=(v=y.computedStates.slice(-1)[0])==null?void 0:v.state;if(!w)return;h(s===void 0?w:w[s]),u==null||u.send(null,y);return}case"PAUSE_RECORDING":return p=!p}return}}),m},Jo=qke,MM=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function Kke(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,void 0),s=(a=n.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>n.removeItem(i)}}const Tw=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Tw(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Tw(r)(n)}}}},Gke=(e,t)=>(n,r,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch{}if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},r,i);const u=Tw(a.serialize),f=()=>{const v=a.partialize({...r()});let y;const w=u({state:v,version:a.version}).then(b=>c.setItem(a.name,b)).catch(b=>{y=b});if(y)throw y;return w},p=i.setState;i.setState=(v,y)=>{p(v,y),f()};const h=e((...v)=>{n(...v),f()},r,i);let m;const g=()=>{var v;if(!c)return;o=!1,s.forEach(w=>w(r()));const y=((v=a.onRehydrateStorage)==null?void 0:v.call(a,r()))||void 0;return Tw(c.getItem.bind(c))(a.name).then(w=>{if(w)return a.deserialize(w)}).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==a.version){if(a.migrate)return a.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var b;return m=a.merge(w,(b=r())!=null?b:h),n(m,!0),f()}).then(()=>{y==null||y(m,void 0),o=!0,l.forEach(w=>w(m))}).catch(w=>{y==null||y(void 0,w)})};return i.persist={setOptions:v=>{a={...a,...v},v.getStorage&&(c=v.getStorage())},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},g(),m||h},Yke=(e,t)=>(n,r,i)=>{let a={storage:Kke(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...t},o=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...g)},r,i);const u=()=>{const g=a.partialize({...r()});return c.setItem(a.name,{state:g,version:a.version})},f=i.setState;i.setState=(g,v)=>{f(g,v),u()};const p=e((...g)=>{n(...g),u()},r,i);i.getInitialState=()=>p;let h;const m=()=>{var g,v;if(!c)return;o=!1,s.forEach(w=>{var b;return w((b=r())!=null?b:p)});const y=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(g=r())!=null?g:p))||void 0;return Tw(c.getItem.bind(c))(a.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==a.version){if(a.migrate)return[!0,a.migrate(w.state,w.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,w.state];return[!1,void 0]}).then(w=>{var b;const[C,k]=w;if(h=a.merge(k,(b=r())!=null?b:p),n(h,!0),C)return u()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(w=>w(h))}).catch(w=>{y==null||y(void 0,w)})};return i.persist={setOptions:g=>{a={...a,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},a.skipHydration||m(),h||p},Xke=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((kC?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Gke(e,t)):Yke(e,t),es=Xke;var tse=Symbol.for("immer-nothing"),MV=Symbol.for("immer-draftable"),Rl=Symbol.for("immer-state");function Qc(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var d0=Object.getPrototypeOf;function f0(e){return!!e&&!!e[Rl]}function ag(e){var t;return e?nse(e)||Array.isArray(e)||!!e[MV]||!!((t=e.constructor)!=null&&t[MV])||z5(e)||H5(e):!1}var Zke=Object.prototype.constructor.toString();function nse(e){if(!e||typeof e!="object")return!1;const t=d0(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Zke}function dk(e,t){B5(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function B5(e){const t=e[Rl];return t?t.type_:Array.isArray(e)?1:z5(e)?2:H5(e)?3:0}function BO(e,t){return B5(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rse(e,t,n){const r=B5(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Qke(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function z5(e){return e instanceof Map}function H5(e){return e instanceof Set}function em(e){return e.copy_||e.base_}function zO(e,t){if(z5(e))return new Map(e);if(H5(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=nse(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Rl];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=Jke),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>hF(r,!0))),e}function Jke(){Qc(2)}function U5(e){return Object.isFrozen(e)}var e6e={};function og(e){const t=e6e[e];return t||Qc(0,e),t}var Pw;function ise(){return Pw}function t6e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function TV(e,t){t&&(og("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function HO(e){UO(e),e.drafts_.forEach(n6e),e.drafts_=null}function UO(e){e===Pw&&(Pw=e.parent_)}function PV(e){return Pw=t6e(Pw,e)}function n6e(e){const t=e[Rl];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function OV(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Rl].modified_&&(HO(t),Qc(4)),ag(e)&&(e=fk(t,e),t.parent_||pk(t,e)),t.patches_&&og("Patches").generateReplacementPatches_(n[Rl].base_,e,t.patches_,t.inversePatches_)):e=fk(t,n,[]),HO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==tse?e:void 0}function fk(e,t,n){if(U5(t))return t;const r=t[Rl];if(!r)return dk(t,(i,a)=>RV(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return pk(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),dk(a,(s,l)=>RV(e,r,i,s,l,n,o)),pk(e,i,!1),n&&e.patches_&&og("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function RV(e,t,n,r,i,a,o){if(f0(i)){const s=a&&t&&t.type_!==3&&!BO(t.assigned_,r)?a.concat(r):void 0,l=fk(e,i,s);if(rse(n,r,l),f0(l))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(ag(i)&&!U5(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;fk(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&pk(e,i)}}function pk(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&hF(t,n)}function r6e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ise(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=mF;n&&(i=[r],a=Ow);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var mF={get(e,t){if(t===Rl)return e;const n=em(e);if(!BO(n,t))return i6e(e,n,t);const r=n[t];return e.finalized_||!ag(r)?r:r===TM(e.base_,t)?(PM(e),e.copy_[t]=VO(r,e)):r},has(e,t){return t in em(e)},ownKeys(e){return Reflect.ownKeys(em(e))},set(e,t,n){const r=ase(em(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=TM(em(e),t),a=i==null?void 0:i[Rl];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Qke(n,i)&&(n!==void 0||BO(e.base_,t)))return!0;PM(e),WO(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return TM(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,PM(e),WO(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=em(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Qc(11)},getPrototypeOf(e){return d0(e.base_)},setPrototypeOf(){Qc(12)}},Ow={};dk(mF,(e,t)=>{Ow[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ow.deleteProperty=function(e,t){return Ow.set.call(this,e,t,void 0)};Ow.set=function(e,t,n){return mF.set.call(this,e[0],t,n,e[0])};function TM(e,t){const n=e[Rl];return(n?em(n):e)[t]}function i6e(e,t,n){var i;const r=ase(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function ase(e,t){if(!(t in e))return;let n=d0(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=d0(n)}}function WO(e){e.modified_||(e.modified_=!0,e.parent_&&WO(e.parent_))}function PM(e){e.copy_||(e.copy_=zO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var a6e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(l=a,...c){return o.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Qc(6),r!==void 0&&typeof r!="function"&&Qc(7);let i;if(ag(t)){const a=PV(this),o=VO(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?HO(a):UO(a)}return TV(a,r),OV(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===tse&&(i=void 0),this.autoFreeze_&&hF(i,!0),r){const a=[],o=[];og("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else Qc(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ag(e)||Qc(8),f0(e)&&(e=o6e(e));const t=PV(this),n=VO(e,void 0);return n[Rl].isManual_=!0,UO(t),n}finishDraft(e,t){const n=e&&e[Rl];(!n||!n.isManual_)&&Qc(9);const{scope_:r}=n;return TV(r,t),OV(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=og("Patches").applyPatches_;return f0(e)?r(e,t):this.produce(e,i=>r(i,t))}};function VO(e,t){const n=z5(e)?og("MapSet").proxyMap_(e,t):H5(e)?og("MapSet").proxySet_(e,t):r6e(e,t);return(t?t.scope_:ise()).drafts_.push(n),n}function o6e(e){return f0(e)||Qc(10,e),ose(e)}function ose(e){if(!ag(e)||U5(e))return e;const t=e[Rl];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zO(e,t.scope_.immer_.useStrictShallowCopy_)}else n=zO(e,!0);return dk(n,(r,i)=>{rse(n,r,ose(i))}),t&&(t.finalized_=!1),n}var Il=new a6e,s6e=Il.produce;Il.produceWithPatches.bind(Il);Il.setAutoFreeze.bind(Il);Il.setUseStrictShallowCopy.bind(Il);Il.applyPatches.bind(Il);Il.createDraft.bind(Il);Il.finishDraft.bind(Il);const l6e=e=>(t,n,r)=>(r.setState=(i,a,...o)=>{const s=typeof i=="function"?s6e(i):i;return t(s,a,...o)},e(r.setState,n,r)),ts=l6e,c6e="dev",sse="open",IV="prod",u6e="quanjing",gF="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open","configEnv:",gF);const d6e="web";console.log("Current VITE_APP_ENV:","web","appEnv:",d6e);let sc;switch(gF){case"dev":sc={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9006",IS_DEBUG:!0,SERVER_MODE:c6e,CLIENT:"WEB"};break;case"prod-open":sc={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:sse,CLIENT:"WEB"};break;case"prod-quanjing":sc={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:u6e,CLIENT:"WEB"};break;case"prod-web":sc={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:IV,CLIENT:"WEB"};break;default:sc={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:IV,CLIENT:"ELECTRON"}}console.log("config.API_BASE_URL: ",gF,sc);const ha=navigator.userAgent.toLowerCase().indexOf("electron")>-1,OM=sc.API_URL,jV=sc.MQTT_URL;sc.HTML_URL;const jl=sc.IS_DEBUG,f6e=sc.SERVER_MODE,_n=sc.CLIENT,NV="https://cdn.weiyuai.cn/logo.png",gc="BYTEDESK",AV="locale",DV="mode",EC="team",Rw="agent",lse="personal",Iw="i18n.",Zx="i18n.new.message",cse="ANONYMOUS",use="message_list_item",vl="bytedesk_login_credentials",FV="THEME_MODE_TYPE",LV="THEME_NAME_TYPE",$C="PLAY_AUDIO",MC="NETWORK_STATUS_NOTIFICATION",B2="CONFIG_ENABLED_AGENT",TC="CONFIG_API_URL_AGENT",PC="CONFIG_WEBSOCKET_URL_AGENT",RM="CONFIG_HTML_URL_AGENT",dv="CONFIG_CUSTOM_ENABLED_AGENT",h2="CONFIG_CUSTOM_API_URL_AGENT",m2="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",p6e="CONFIG_PROPERTIES",fv=Iw+"DEPT_ALL",h6e="SCREENSHOT_OK",m6e="EVENT_BUS_SERVER_ERROR_500",eh="EVENT_BUS_TOKEN_INVALID",OC="EVENT_BUS_SEND_IMAGE_MESSAGE",IM="EVENT_BUS_SEND_FILE_MESSAGE",jw="EVENT_BUS_MQTT_MESSAGE",qO="EVENT_BUS_MQTT_CONNECTED",KO="EVENT_BUS_MQTT_OFFLINE",GO="EVENT_BUS_MQTT_CLOSE",YO="EVENT_BUS_MQTT_DISCONNECTED",XO="EVENT_BUS_MQTT_ERROR",ZO="EVENT_BUS_MQTT_END",hk="EVENT_BUS_MESSAGE_TYPE_STATUS",g6e="EVENT_BUS_MESSAGE_TYPE_TYPING",v6e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",dse="EVENT_BUS_MESSAGE_TYPE_STREAM",y6e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",fse="EVENT_BUS_MESSAGE_TYPE_TRANSFER",pse="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",hse="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",mse="EVENT_BUS_MESSAGE_TYPE_INVITE",gse="EVENT_BUS_MESSAGE_TYPE_INVITE_ACCEPT",vse="EVENT_BUS_MESSAGE_TYPE_INVITE_REJECT",QO="EVENT_BUS_SCREEN_CAPTURE_IMAGE",JO="EVENT_BUS_QUICKREPLY_SEND",eR="EVENT_BUS_QUICKREPLY_ADD",tR="EVENT_BUS_THREAD_UPDATE_NOTE",Nw="EVENT_BUS_ASK_AI_COPILOT",Aw="EVENT_BUS_SEARCH_QUICKREPLY",b6e="AUTH_STORE",Ef="ACCESS_TOKEN",w6e="ORGANIZATION_STORE",x6e="DEPARTMENT_STORE",S6e="MEMBER_STORE",C6e="VISITOR_STORE",_6e="MESSAGE_STORE",k6e="CONTACT_STORE",E6e="USER_STORE",$6e="SETTINGS_STORE",M6e="THREAD_STORE",T6e="DEVICE_STORE",P6e="AGENT_STORE",O6e="CATEGORY_STORE",R6e="WORKGROUP_STORE",I6e="PROVIDER_STORE",j6e="ROBOT_MESSAGE_STORE",N6e="member",yse="device",A6e="MOBILE_LOGIN",D6e="MOBILE_RESET",F6e="MOBILE_VERIFY",L6e="EMAIL_RESET",B6e="EMAIL_VERIFY",z6e="PENDING",H6e="SCANNED",U6e="CONFIRMED",W6e="EXPIRED",V6e="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",bse="https://cdn.weiyuai.cn/agent/assets/css/chatui/chatui-theme-dark.css",q6e="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",uh="AGENT",K6e="VISITOR",G6e="ROBOT",mk="MEMBER",W5="USER",q3="AGENT",K3="WORKGROUP",wse="MEMBER",xse="GROUP",Sse="TICKET",vF="LLM",BV="QUEUING",Y6e="STARTED",nR="CLOSED",$p="SENDING",Dw="SUCCESS",X6e="LEAVE_MSG_SUBMIT",Z6e="TRANSFER_PENDING",p0="TRANSFER_ACCEPTED",h0="TRANSFER_REJECTED",Q6e="INVITE_PENDING",zV="INVITE_ACCEPTED",HV="INVITE_REJECTED",Cse="WELCOME",m0="CONTINUE",G3="SYSTEM",J6e="QUEUE",_se="NOTICE",vo="TEXT",Sl="IMAGE",cd="FILE",Fw="AUDIO",sg="VIDEO",e5e="GOODS",rR="LEAVE_MSG",t5e="LEAVE_MSG_SUBMIT",gk="TYPING",iR="PROCESSING",$f="STREAM",n5e="STREAM_END",UV="PREVIEW",aR="RECALL",oR="DELIVERED",sR="READ",kse="FAQ",r5e="FAQ_UP",i5e="FAQ_DOWN",a5e="ROBOT",o5e="ROBOT_UP",s5e="ROBOT_DOWN",l5e="RATE",pv="RATE_INVITE",Ese="RATE_SUBMIT",c5e="RATE_CANCEL",g0="AUTO_CLOSED",v0="AGENT_CLOSED",yF="TRANSFER",bF="TRANSFER_ACCEPT",wF="TRANSFER_REJECT",xF="INVITE",SF="INVITE_ACCEPT",CF="INVITE_REJECT",u5e="LOGIN",Ld="TRANSFER",WV="TRANSFER_REJECT",VV="TRANSFER_ACCEPT",qV="TRANSFER_TIMEOUT",KV="TRANSFER_CANCEL",Bd="INVITE",GV="INVITE_REJECT",YV="INVITE_ACCEPT",XV="INVITE_TIMEOUT",ZV="INVITE_CANCEL",QV="INVITE_VISITOR",JV="INVITE_VISITOR_REJECT",eq="INVITE_VISITOR_ACCEPT",tq="INVITE_VISITOR_TIMEOUT",nq="INVITE_VISITOR_CANCEL",rq="INVITE_GROUP",iq="INVITE_GROUP_REJECT",aq="INVITE_GROUP_ACCEPT",oq="INVITE_GROUP_TIMEOUT",sq="INVITE_GROUP_CANCEL",lq="INVITE_KBASE",cq="INVITE_KBASE_REJECT",uq="INVITE_KBASE_ACCEPT",dq="INVITE_KBASE_TIMEOUT",fq="INVITE_KBASE_CANCEL",pq="INVITE_ORGANIZATION",hq="INVITE_ORGANIZATION_REJECT",mq="INVITE_ORGANIZATION_ACCEPT",gq="INVITE_ORGANIZATION_TIMEOUT",vq="INVITE_ORGANIZATION_CANCEL",y0="AVAILABLE",yq="BUSY",Dm="OFFLINE",vk="REST",_F="LLM",d5e="NORMAL",f5e="system",$se="org/member/",Mse="org/group/",Tse="org/robot/",p5e="org/agent/",h5e="org/workgroup/",m5e="LLM",bq="AUTOREPLY",yk="TICKET",kF="CHAT",g5e="ATTACHMENT",jM="FIXED",NM="KEYWORD",AM="LLM",v5e="KB",y5e="CATEGORY",wq="lastPath",Lw="ORGANIZATION",b5e="AGENT",w5e="QUICKREPLY",x5e="ROBOT",S5e="ROLE_SUPER",C5e="ROLE_ADMIN",_5e="ROLE_MEMBER",k5e="ROLE_AGENT",lR="AGENT",Pse="LOWEST",EF="LOW",bk="MEDIUM",$F="HIGH",MF="URGENT",TF="CRITICAL",lg="NEW",Ose="ASSIGNED",Y3="CLAIMED",Rse="UNCLAIMED",ly="PROCESSING",X3="PENDING",Z3="HOLDING",PF="RESUMED",Q3="REOPENED",J3="RESOLVED",E5e="ESCALATED",V5="CLOSED",e4="CANCELLED",b0="STATUS_ALL",w0="PRIORITY_ALL",x0="ASSIGNMENT_ALL",S0="TIME_ALL",cR="UNASSIGNED",Ise="MY_CREATED",jse="MY_ASSIGNED",Nse="TODAY",Ase="YESTERDAY",Dse="THIS_WEEK",Fse="LAST_WEEK",Lse="THIS_MONTH",Bse="LAST_MONTH",$5e="groupTicketSimpleProcess",M5e="agent_assistant",t4=so()(Jo(es(ts((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Ef,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Ef),e({accessToken:""})}})),{name:b6e}))),OF=so()(Jo(es(ts(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(t){e({currentMenu:t})},setProLayoutCollapsed(t){e(n=>({settings:{...n.settings,proLayoutCollapsed:t}}))}})),{name:$6e})));var Ig={},zse={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(zse);var br=zse.exports,q5={};Object.defineProperty(q5,"__esModule",{value:!0});q5.default=void 0;var T5e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};q5.default=T5e;var K5={},n4={},G5={},Hse={exports:{}},Use={exports:{}},Wse={exports:{}},Vse={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Vse);var jg=Vse.exports,qse={exports:{}};(function(e){var t=jg.default;function n(r,i){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,i||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(qse);var P5e=qse.exports;(function(e){var t=jg.default,n=P5e;function r(i){var a=n(i,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Wse);var O5e=Wse.exports;(function(e){var t=O5e;function n(r,i,a){return(i=t(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Use);var Kse=Use.exports;(function(e){var t=Kse;function n(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);a&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),o.push.apply(o,s)}return o}function r(i){for(var a=1;a{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{o.matches?n("dark"):n("light")}))},[]),d.useEffect(()=>{localStorage.setItem(FV,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),d.useEffect(()=>{localStorage.setItem(LV,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:a,isDarkMode:t==="dark",isLightMode:t==="light"}}function Jse(e,t){return function(){return e.apply(t,arguments)}}const{toString:_Ee}=Object.prototype,{getPrototypeOf:RF}=Object,oE=(e=>t=>{const n=_Ee.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Cu=e=>(e=e.toLowerCase(),t=>oE(t)===e),sE=e=>t=>typeof t===e,{isArray:uy}=Array,Bw=sE("undefined");function kEe(e){return e!==null&&!Bw(e)&&e.constructor!==null&&!Bw(e.constructor)&&Tl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ele=Cu("ArrayBuffer");function EEe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ele(e.buffer),t}const $Ee=sE("string"),Tl=sE("function"),tle=sE("number"),lE=e=>e!==null&&typeof e=="object",MEe=e=>e===!0||e===!1,RC=e=>{if(oE(e)!=="object")return!1;const t=RF(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TEe=Cu("Date"),PEe=Cu("File"),OEe=Cu("Blob"),REe=Cu("FileList"),IEe=e=>lE(e)&&Tl(e.pipe),jEe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tl(e.append)&&((t=oE(e))==="formdata"||t==="object"&&Tl(e.toString)&&e.toString()==="[object FormData]"))},NEe=Cu("URLSearchParams"),[AEe,DEe,FEe,LEe]=["ReadableStream","Request","Response","Headers"].map(Cu),BEe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function l4(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),uy(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const vm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rle=e=>!Bw(e)&&e!==vm;function uR(){const{caseless:e}=rle(this)&&this||{},t={},n=(r,i)=>{const a=e&&nle(t,i)||i;RC(t[a])&&RC(r)?t[a]=uR(t[a],r):RC(r)?t[a]=uR({},r):uy(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(l4(t,(i,a)=>{n&&Tl(i)?e[a]=Jse(i,n):e[a]=i},{allOwnKeys:r}),e),HEe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),UEe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},WEe=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&RF(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},VEe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},qEe=e=>{if(!e)return null;if(uy(e))return e;let t=e.length;if(!tle(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},KEe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&RF(Uint8Array)),GEe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},YEe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},XEe=Cu("HTMLFormElement"),ZEe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),kq=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),QEe=Cu("RegExp"),ile=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};l4(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},JEe=e=>{ile(e,(t,n)=>{if(Tl(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Tl(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},e8e=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return uy(e)?r(e):r(String(e).split(t)),n},t8e=()=>{},n8e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,DM="abcdefghijklmnopqrstuvwxyz",Eq="0123456789",ale={DIGIT:Eq,ALPHA:DM,ALPHA_DIGIT:DM+DM.toUpperCase()+Eq},r8e=(e=16,t=ale.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function i8e(e){return!!(e&&Tl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const a8e=e=>{const t=new Array(10),n=(r,i)=>{if(lE(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=uy(r)?[]:{};return l4(r,(o,s)=>{const l=n(o,i+1);!Bw(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},o8e=Cu("AsyncFunction"),s8e=e=>e&&(lE(e)||Tl(e))&&Tl(e.then)&&Tl(e.catch),ole=((e,t)=>e?setImmediate:t?((n,r)=>(vm.addEventListener("message",({source:i,data:a})=>{i===vm&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),vm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Tl(vm.postMessage)),l8e=typeof queueMicrotask<"u"?queueMicrotask.bind(vm):typeof process<"u"&&process.nextTick||ole,Vt={isArray:uy,isArrayBuffer:ele,isBuffer:kEe,isFormData:jEe,isArrayBufferView:EEe,isString:$Ee,isNumber:tle,isBoolean:MEe,isObject:lE,isPlainObject:RC,isReadableStream:AEe,isRequest:DEe,isResponse:FEe,isHeaders:LEe,isUndefined:Bw,isDate:TEe,isFile:PEe,isBlob:OEe,isRegExp:QEe,isFunction:Tl,isStream:IEe,isURLSearchParams:NEe,isTypedArray:KEe,isFileList:REe,forEach:l4,merge:uR,extend:zEe,trim:BEe,stripBOM:HEe,inherits:UEe,toFlatObject:WEe,kindOf:oE,kindOfTest:Cu,endsWith:VEe,toArray:qEe,forEachEntry:GEe,matchAll:YEe,isHTMLForm:XEe,hasOwnProperty:kq,hasOwnProp:kq,reduceDescriptors:ile,freezeMethods:JEe,toObjectSet:e8e,toCamelCase:ZEe,noop:t8e,toFiniteNumber:n8e,findKey:nle,global:vm,isContextDefined:rle,ALPHABET:ale,generateString:r8e,isSpecCompliantForm:i8e,toJSONObject:a8e,isAsyncFn:o8e,isThenable:s8e,setImmediate:ole,asap:l8e};function _r(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Vt.inherits(_r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Vt.toJSONObject(this.config),code:this.code,status:this.status}}});const sle=_r.prototype,lle={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lle[e]={value:e}});Object.defineProperties(_r,lle);Object.defineProperty(sle,"isAxiosError",{value:!0});_r.from=(e,t,n,r,i,a)=>{const o=Object.create(sle);return Vt.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),_r.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const c8e=null;function dR(e){return Vt.isPlainObject(e)||Vt.isArray(e)}function cle(e){return Vt.endsWith(e,"[]")?e.slice(0,-2):e}function $q(e,t,n){return e?e.concat(t).map(function(i,a){return i=cle(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function u8e(e){return Vt.isArray(e)&&!e.some(dR)}const d8e=Vt.toFlatObject(Vt,{},null,function(t){return/^is[A-Z]/.test(t)});function cE(e,t,n){if(!Vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Vt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!Vt.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Vt.isSpecCompliantForm(t);if(!Vt.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(Vt.isDate(m))return m.toISOString();if(!l&&Vt.isBlob(m))throw new _r("Blob is not supported. Use a Buffer instead.");return Vt.isArrayBuffer(m)||Vt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,v){let y=m;if(m&&!v&&typeof m=="object"){if(Vt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(Vt.isArray(m)&&u8e(m)||(Vt.isFileList(m)||Vt.endsWith(g,"[]"))&&(y=Vt.toArray(m)))return g=cle(g),y.forEach(function(b,C){!(Vt.isUndefined(b)||b===null)&&t.append(o===!0?$q([g],C,a):o===null?g:g+"[]",c(b))}),!1}return dR(m)?!0:(t.append($q(v,g,a),c(m)),!1)}const f=[],p=Object.assign(d8e,{defaultVisitor:u,convertValue:c,isVisitable:dR});function h(m,g){if(!Vt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),Vt.forEach(m,function(y,w){(!(Vt.isUndefined(y)||y===null)&&i.call(t,y,Vt.isString(w)?w.trim():w,g,p))===!0&&h(y,g?g.concat(w):[w])}),f.pop()}}if(!Vt.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Mq(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function IF(e,t){this._pairs=[],e&&cE(e,this,t)}const ule=IF.prototype;ule.append=function(t,n){this._pairs.push([t,n])};ule.toString=function(t){const n=t?function(r){return t.call(this,r,Mq)}:Mq;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function f8e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dle(e,t,n){if(!t)return e;const r=n&&n.encode||f8e;Vt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=Vt.isURLSearchParams(t)?t.toString():new IF(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Tq{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Vt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fle={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},p8e=typeof URLSearchParams<"u"?URLSearchParams:IF,h8e=typeof FormData<"u"?FormData:null,m8e=typeof Blob<"u"?Blob:null,g8e={isBrowser:!0,classes:{URLSearchParams:p8e,FormData:h8e,Blob:m8e},protocols:["http","https","file","blob","url","data"]},jF=typeof window<"u"&&typeof document<"u",fR=typeof navigator=="object"&&navigator||void 0,v8e=jF&&(!fR||["ReactNative","NativeScript","NS"].indexOf(fR.product)<0),y8e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",b8e=jF&&window.location.href||"http://localhost",w8e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jF,hasStandardBrowserEnv:v8e,hasStandardBrowserWebWorkerEnv:y8e,navigator:fR,origin:b8e},Symbol.toStringTag,{value:"Module"})),Uo={...w8e,...g8e};function x8e(e,t){return cE(e,new Uo.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Uo.isNode&&Vt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function S8e(e){return Vt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function C8e(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&Vt.isArray(i)?i.length:o,l?(Vt.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!Vt.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&Vt.isArray(i[o])&&(i[o]=C8e(i[o])),!s)}if(Vt.isFormData(e)&&Vt.isFunction(e.entries)){const n={};return Vt.forEachEntry(e,(r,i)=>{t(S8e(r),i,n,0)}),n}return null}function _8e(e,t,n){if(Vt.isString(e))try{return(t||JSON.parse)(e),Vt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const c4={transitional:fle,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Vt.isObject(t);if(a&&Vt.isHTMLForm(t)&&(t=new FormData(t)),Vt.isFormData(t))return i?JSON.stringify(ple(t)):t;if(Vt.isArrayBuffer(t)||Vt.isBuffer(t)||Vt.isStream(t)||Vt.isFile(t)||Vt.isBlob(t)||Vt.isReadableStream(t))return t;if(Vt.isArrayBufferView(t))return t.buffer;if(Vt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return x8e(t,this.formSerializer).toString();if((s=Vt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cE(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),_8e(t)):t}],transformResponse:[function(t){const n=this.transitional||c4.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Vt.isResponse(t)||Vt.isReadableStream(t))return t;if(t&&Vt.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?_r.from(s,_r.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Uo.classes.FormData,Blob:Uo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vt.forEach(["delete","get","head","post","put","patch"],e=>{c4.headers[e]={}});const k8e=Vt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),E8e=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&k8e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Pq=Symbol("internals");function Cb(e){return e&&String(e).trim().toLowerCase()}function IC(e){return e===!1||e==null?e:Vt.isArray(e)?e.map(IC):String(e)}function $8e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const M8e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function FM(e,t,n,r,i){if(Vt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Vt.isString(t)){if(Vt.isString(r))return t.indexOf(r)!==-1;if(Vt.isRegExp(r))return r.test(t)}}function T8e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function P8e(e,t){const n=Vt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class zs{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=Cb(l);if(!u)throw new Error("header name must be a non-empty string");const f=Vt.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=IC(s))}const o=(s,l)=>Vt.forEach(s,(c,u)=>a(c,u,l));if(Vt.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Vt.isString(t)&&(t=t.trim())&&!M8e(t))o(E8e(t),n);else if(Vt.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Cb(t),t){const r=Vt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return $8e(i);if(Vt.isFunction(n))return n.call(this,i,r);if(Vt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Cb(t),t){const r=Vt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||FM(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Cb(o),o){const s=Vt.findKey(r,o);s&&(!n||FM(r,r[s],s,n))&&(delete r[s],i=!0)}}return Vt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||FM(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Vt.forEach(this,(i,a)=>{const o=Vt.findKey(r,a);if(o){n[o]=IC(i),delete n[a];return}const s=t?T8e(a):String(a).trim();s!==a&&delete n[a],n[s]=IC(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Vt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Vt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Pq]=this[Pq]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Cb(o);r[s]||(P8e(i,o),r[s]=!0)}return Vt.isArray(t)?t.forEach(a):a(t),this}}zs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Vt.reduceDescriptors(zs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Vt.freezeMethods(zs);function LM(e,t){const n=this||c4,r=t||n,i=zs.from(r.headers);let a=r.data;return Vt.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function hle(e){return!!(e&&e.__CANCEL__)}function dy(e,t,n){_r.call(this,e??"canceled",_r.ERR_CANCELED,t,n),this.name="CanceledError"}Vt.inherits(dy,_r,{__CANCEL__:!0});function mle(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _r("Request failed with status code "+n.status,[_r.ERR_BAD_REQUEST,_r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function O8e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function R8e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-f)))},()=>i&&o(i)]}const wk=(e,t,n=3)=>{let r=0;const i=R8e(50,250);return I8e(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Oq=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Rq=e=>(...t)=>Vt.asap(()=>e(...t)),j8e=Uo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Uo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Uo.origin),Uo.navigator&&/(msie|trident)/i.test(Uo.navigator.userAgent)):()=>!0,N8e=Uo.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];Vt.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Vt.isString(r)&&o.push("path="+r),Vt.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function A8e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function D8e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gle(e,t){return e&&!A8e(t)?D8e(e,t):t}const Iq=e=>e instanceof zs?{...e}:e;function cg(e,t){t=t||{};const n={};function r(c,u,f,p){return Vt.isPlainObject(c)&&Vt.isPlainObject(u)?Vt.merge.call({caseless:p},c,u):Vt.isPlainObject(u)?Vt.merge({},u):Vt.isArray(u)?u.slice():u}function i(c,u,f,p){if(Vt.isUndefined(u)){if(!Vt.isUndefined(c))return r(void 0,c,f,p)}else return r(c,u,f,p)}function a(c,u){if(!Vt.isUndefined(u))return r(void 0,u)}function o(c,u){if(Vt.isUndefined(u)){if(!Vt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,f)=>i(Iq(c),Iq(u),f,!0)};return Vt.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||i,p=f(e[u],t[u],u);Vt.isUndefined(p)&&f!==s||(n[u]=p)}),n}const vle=e=>{const t=cg({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=zs.from(o),t.url=dle(gle(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Vt.isFormData(n)){if(Uo.hasStandardBrowserEnv||Uo.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Uo.hasStandardBrowserEnv&&(r&&Vt.isFunction(r)&&(r=r(t)),r||r!==!1&&j8e(t.url))){const c=i&&a&&N8e.read(a);c&&o.set(i,c)}return t},F8e=typeof XMLHttpRequest<"u",L8e=F8e&&function(e){return new Promise(function(n,r){const i=vle(e);let a=i.data;const o=zs.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,f,p,h,m;function g(){h&&h(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function y(){if(!v)return;const b=zs.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};mle(function(_){n(_),g()},function(_){r(_),g()},k),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new _r("Request aborted",_r.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new _r("Network Error",_r.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||fle;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new _r(C,k.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&Vt.forEach(o.toJSON(),function(C,k){v.setRequestHeader(k,C)}),Vt.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([p,m]=wk(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([f,h]=wk(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=b=>{v&&(r(!b||b.type?new dy(null,e,v):b),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=O8e(i.url);if(w&&Uo.protocols.indexOf(w)===-1){r(new _r("Unsupported protocol "+w+":",_r.ERR_BAD_REQUEST,e));return}v.send(a||null)})},B8e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof _r?u:new dy(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new _r(`timeout ${t} of ms exceeded`,_r.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>Vt.asap(s),l}},z8e=function*(e,t){let n=e.byteLength;if(n{const i=H8e(e,t);let a=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let p=a+=f;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},uE=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yle=uE&&typeof ReadableStream=="function",W8e=uE&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ble=(e,...t)=>{try{return!!e(...t)}catch{return!1}},V8e=yle&&ble(()=>{let e=!1;const t=new Request(Uo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Nq=64*1024,pR=yle&&ble(()=>Vt.isReadableStream(new Response("").body)),xk={stream:pR&&(e=>e.body)};uE&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!xk[t]&&(xk[t]=Vt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new _r(`Response type '${t}' is not supported`,_r.ERR_NOT_SUPPORT,r)})})})(new Response);const q8e=async e=>{if(e==null)return 0;if(Vt.isBlob(e))return e.size;if(Vt.isSpecCompliantForm(e))return(await new Request(Uo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Vt.isArrayBufferView(e)||Vt.isArrayBuffer(e))return e.byteLength;if(Vt.isURLSearchParams(e)&&(e=e+""),Vt.isString(e))return(await W8e(e)).byteLength},K8e=async(e,t)=>{const n=Vt.toFiniteNumber(e.getContentLength());return n??q8e(t)},G8e=uE&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:p}=vle(e);c=c?(c+"").toLowerCase():"text";let h=B8e([i,a&&a.toAbortSignal()],o),m;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(l&&V8e&&n!=="get"&&n!=="head"&&(v=await K8e(u,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(Vt.isFormData(r)&&(S=k.headers.get("content-type"))&&u.setContentType(S),k.body){const[_,E]=Oq(v,wk(Rq(l)));r=jq(k.body,Nq,_,E)}}Vt.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let w=await fetch(m);const b=pR&&(c==="stream"||c==="response");if(pR&&(s||b&&g)){const k={};["status","statusText","headers"].forEach($=>{k[$]=w[$]});const S=Vt.toFiniteNumber(w.headers.get("content-length")),[_,E]=s&&Oq(S,wk(Rq(s),!0))||[];w=new Response(jq(w.body,Nq,_,()=>{E&&E(),g&&g()}),k)}c=c||"text";let C=await xk[Vt.findKey(xk,c)||"text"](w,e);return!b&&g&&g(),await new Promise((k,S)=>{mle(k,S,{data:C,headers:zs.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:m})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new _r("Network Error",_r.ERR_NETWORK,e,m),{cause:y.cause||y}):_r.from(y,y&&y.code,e,m)}}),hR={http:c8e,xhr:L8e,fetch:G8e};Vt.forEach(hR,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Aq=e=>`- ${e}`,Y8e=e=>Vt.isFunction(e)||e===null||e===!1,wle={getAdapter:e=>{e=Vt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : `+a.map(Aq).join(` -`):" "+Aq(a[0]):"as no adapter specified";throw new _r("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:hR};function BM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dy(null,e)}function Dq(e){return BM(e),e.headers=zs.from(e.headers),e.data=LM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xle.getAdapter(e.adapter||u4.adapter)(e).then(function(r){return BM(e),r.data=LM.call(e,e.transformResponse,r),r.headers=zs.from(r.headers),r},function(r){return mle(r)||(BM(e),r&&r.response&&(r.response.data=LM.call(e,e.transformResponse,r.response),r.response.headers=zs.from(r.response.headers))),Promise.reject(r)})}const Sle="1.7.8",dE={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dE[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Fq={};dE.transitional=function(t,n,r){function i(a,o){return"[Axios v"+Sle+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new _r(i(o," has been removed"+(n?" in "+n:"")),_r.ERR_DEPRECATED);return n&&!Fq[o]&&(Fq[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};dE.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Z8e(e,t,n){if(typeof e!="object")throw new _r("options must be an object",_r.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new _r("option "+a+" must be "+l,_r.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _r("Unknown option "+a,_r.ERR_BAD_OPTION)}}const NC={assertOptions:Z8e,validators:dE},Nu=NC.validators;class Fm{constructor(t){this.defaults=t,this.interceptors={request:new Tq,response:new Tq}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cg(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&NC.assertOptions(r,{silentJSONParsing:Nu.transitional(Nu.boolean),forcedJSONParsing:Nu.transitional(Nu.boolean),clarifyTimeoutError:Nu.transitional(Nu.boolean)},!1),i!=null&&(Vt.isFunction(i)?n.paramsSerializer={serialize:i}:NC.assertOptions(i,{encode:Nu.function,serialize:Nu.function},!0)),NC.assertOptions(n,{baseUrl:Nu.spelling("baseURL"),withXsrfToken:Nu.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&Vt.merge(a.common,a[n.method]);a&&Vt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=zs.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,p;if(!l){const m=[Dq.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),p=m.length,u=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new dy(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new NF(function(i){t=i}),cancel:t}}}function Q8e(e){return function(n){return e.apply(null,n)}}function J8e(e){return Vt.isObject(e)&&e.isAxiosError===!0}const mR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mR).forEach(([e,t])=>{mR[t]=e});function Cle(e){const t=new Fm(e),n=ele(Fm.prototype.request,t);return Vt.extend(n,Fm.prototype,t,{allOwnKeys:!0}),Vt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Cle(cg(e,i))},n}const Sa=Cle(u4);Sa.Axios=Fm;Sa.CanceledError=dy;Sa.CancelToken=NF;Sa.isCancel=mle;Sa.VERSION=Sle;Sa.toFormData=cE;Sa.AxiosError=_r;Sa.Cancel=Sa.CanceledError;Sa.all=function(t){return Promise.all(t)};Sa.spread=Q8e;Sa.isAxiosError=J8e;Sa.mergeConfig=cg;Sa.AxiosHeaders=zs;Sa.formToJSON=e=>hle(Vt.isHTMLForm(e)?new FormData(e):e);Sa.getAdapter=xle.getAdapter;Sa.HttpStatusCode=mR;Sa.default=Sa;function e$e(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const $n=e$e();async function t$e(){return bn("/config/bytedesk/properties",{method:"GET",params:{client:kn}})}async function _le(){try{const t=(await Sa.get("/agent/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(B2,"true"),localStorage.setItem(PC,t.apiUrl),localStorage.setItem(OC,t.websocketUrl),localStorage.setItem(RM,t.htmlUrl);else if(p6e===lse){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,i="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",i),localStorage.setItem(B2,"true"),localStorage.setItem(PC,r),localStorage.setItem(OC,i),localStorage.setItem(RM,r)}else console.log("config disabled"),localStorage.setItem(B2,"false"),localStorage.removeItem(PC),localStorage.removeItem(OC),localStorage.removeItem(RM)}catch(e){console.log("loadConfig error: ",e)}}function d4(){const e=localStorage.getItem(dv);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(h2);return n===null?OM:n}if(localStorage.getItem(B2)==="true"){const n=localStorage.getItem(PC);return n===null?OM:n}return OM}function fy(){return d4()+"/api/v1/upload/file"}function n$e(){const e=localStorage.getItem(dv);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(m2);return r===null?jV:r}const t=localStorage.getItem(B2),n=localStorage.getItem(OC);return t==="true"?n:jV}async function kle(){const e=await t$e();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(h6e,JSON.stringify(e.data.data)),e.data.data):null}const bn=Sa.create({timeout:2e4,baseURL:d4(),paramsSerializer:{indexes:null}});bn.interceptors.request.use(e=>{e.baseURL=d4();const t=localStorage.getItem(Ef);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(r$e):e},e=>(console.debug("request error",e),e.response.status===403&&$n.emit(eh,"403"),e.response.status===401&&$n.emit(eh,"401"),Promise.reject(e)));bn.interceptors.response.use(e=>e,e=>{var t,n,r;if(console.debug("response error",e),e!=null&&e.response)switch((t=e==null?void 0:e.response)==null?void 0:t.status){case 400:console.log("axios interception error 400"),$n.emit(eh,"400");break;case 401:console.log("axios interception error 401"),$n.emit(eh,"401");break;case 403:console.log("axios interception error 403"),$n.emit(eh,"403");break;case 500:console.log("axios interception error 500"),$n.emit(g6e,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(n=e==null?void 0:e.response)==null?void 0:n.status,data:{message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:!1}})});const zM={data:null,status:601,statusText:use,headers:{},config:{headers:void 0},request:null},r$e={message:"匿名用户,无需访问服务器接口",name:use,code:"601",config:zM.config,request:zM.request,response:zM,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};async function Ele(e){return bn("/api/v1/agent/query/org",{method:"GET",params:{...e,client:kn}})}async function $le(e){return bn("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:kn}})}async function i$e(e){return bn("/api/v1/agent/sync/current/thread/count",{method:"POST",data:{...e}})}async function a$e(e){return bn("/api/v1/agent/update",{method:"POST",data:{...e,client:kn}})}async function o$e(e){return bn("/api/v1/agent/update/status",{method:"POST",data:{...e,client:kn}})}async function s$e(e){return bn("/api/v1/agent/update/autoreply",{method:"POST",data:{...e,client:kn}})}async function l$e(e){return bn("/api/v1/message/query/topic",{method:"GET",params:{...e}})}async function c$e(e){return bn("/api/v1/message_unread/query",{method:"GET",params:{userUid:e,client:kn}})}async function u$e(e,t){return bn("/api/v1/vip/trans/baidu/translate",{method:"GET",params:{msgUid:e,content:t,client:kn}})}async function d$e(e){return bn("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:kn}})}async function Mle(e,t){console.log("sendMessageSSE: ",e);const n=`${d4()}/visitor/api/v1/member/message/sse?message=${e}`,r=new EventSource(n,{withCredentials:!1});r.onopen=i=>{console.log("sendMessageSSE onopen:",i.target)},r.onmessage=i=>{console.log("sendMessageSSE onmessage:",i.data);const a=JSON.parse(i.data);if(a.type==r5e){console.log("sendMessageSSE stream end"),$n.emit(fse),r&&r.close();return}else t(a)},r.onerror=i=>{console.log("sendMessageSSE onerror:",i),r.readyState===EventSource.CLOSED?console.log("sendMessageSSE connection is closed"):console.log("sendMessageSSE Error occurred",i),r.close()},r.addEventListener("customEventName",i=>{console.log("sendMessageSSE Message id is "+i.lastEventId)})}async function AF(){return bn("/api/v1/user/profile",{method:"GET",params:{client:kn}})}async function Tle(e){return bn("/api/v1/user/update",{method:"POST",data:{...e,client:kn}})}async function f$e(e){return bn("/api/v1/user/change/password",{method:"POST",data:{...e,client:kn}})}async function Ple(e){return bn("/api/v1/user/change/email",{method:"POST",data:{...e,client:kn}})}async function Ole(e){return bn("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:kn}})}var DF=Object.defineProperty,p$e=Object.getOwnPropertyDescriptor,h$e=Object.getOwnPropertyNames,m$e=Object.prototype.hasOwnProperty,Co=(e,t)=>()=>(e&&(t=e(e=0)),t),un=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Dg=(e,t)=>{for(var n in t)DF(e,n,{get:t[n],enumerable:!0})},g$e=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of h$e(t))!m$e.call(e,i)&&i!==n&&DF(e,i,{get:()=>t[i],enumerable:!(r=p$e(t,i))||r.enumerable});return e},Si=e=>g$e(DF({},"__esModule",{value:!0}),e),Zt=Co(()=>{}),li={};Dg(li,{_debugEnd:()=>GR,_debugProcess:()=>KR,_events:()=>cI,_eventsCount:()=>uI,_exiting:()=>IR,_fatalExceptions:()=>WR,_getActiveHandles:()=>Fle,_getActiveRequests:()=>Dle,_kill:()=>AR,_linkedBinding:()=>Nle,_maxListeners:()=>lI,_preload_modules:()=>oI,_rawDebug:()=>PR,_startProfilerIdleNotifier:()=>YR,_stopProfilerIdleNotifier:()=>XR,_tickCallback:()=>qR,abort:()=>eI,addListener:()=>dI,allowedNodeEnvironmentFlags:()=>HR,arch:()=>vR,argv:()=>wR,argv0:()=>aI,assert:()=>Lle,binding:()=>kR,chdir:()=>MR,config:()=>jR,cpuUsage:()=>g2,cwd:()=>$R,debugPort:()=>iI,default:()=>LF,dlopen:()=>Ale,domain:()=>RR,emit:()=>gI,emitWarning:()=>_R,env:()=>bR,execArgv:()=>xR,execPath:()=>rI,exit:()=>BR,features:()=>UR,hasUncaughtExceptionCaptureCallback:()=>Ble,hrtime:()=>AC,kill:()=>LR,listeners:()=>Hle,memoryUsage:()=>FR,moduleLoadList:()=>OR,nextTick:()=>Ile,off:()=>pI,on:()=>Gd,once:()=>fI,openStdin:()=>zR,pid:()=>tI,platform:()=>yR,ppid:()=>nI,prependListener:()=>vI,prependOnceListener:()=>yI,reallyExit:()=>NR,release:()=>TR,removeAllListeners:()=>mI,removeListener:()=>hI,resourceUsage:()=>DR,setSourceMapsEnabled:()=>sI,setUncaughtExceptionCaptureCallback:()=>VR,stderr:()=>QR,stdin:()=>JR,stdout:()=>ZR,title:()=>gR,umask:()=>ER,uptime:()=>zle,version:()=>SR,versions:()=>CR});function FF(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function v$e(){!Lm||!ym||(Lm=!1,ym.length?td=ym.concat(td):z2=-1,td.length&&Rle())}function Rle(){if(!Lm){var e=setTimeout(v$e,0);Lm=!0;for(var t=td.length;t;){for(ym=td,td=[];++z21)for(var n=1;n{Zt(),Jt(),Qt(),td=[],Lm=!1,z2=-1,jle.prototype.run=function(){this.fun.apply(null,this.array)},gR="browser",vR="x64",yR="browser",bR={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},wR=["/usr/bin/node"],xR=[],SR="v16.8.0",CR={},_R=function(e,t){console.warn((t?t+": ":"")+e)},kR=function(e){FF("binding")},ER=function(e){return 0},$R=function(){return"/"},MR=function(e){},TR={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},PR=jo,OR=[],RR={},IR=!1,jR={},NR=jo,AR=jo,g2=function(){return{}},DR=g2,FR=g2,LR=jo,BR=jo,zR=jo,HR={},UR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},WR=jo,VR=jo,qR=jo,KR=jo,GR=jo,YR=jo,XR=jo,ZR=void 0,QR=void 0,JR=void 0,eI=jo,tI=2,nI=1,rI="/bin/usr/node",iI=9229,aI="node",oI=[],sI=jo,af={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},af.now===void 0&&(HM=Date.now(),af.timing&&af.timing.navigationStart&&(HM=af.timing.navigationStart),af.now=()=>Date.now()-HM),DC=1e9,AC.bigint=function(e){var t=AC(e);return typeof BigInt>"u"?t[0]*DC+t[1]:BigInt(t[0]*DC)+BigInt(t[1])},lI=10,cI={},uI=0,dI=Gd,fI=Gd,pI=Gd,hI=Gd,mI=Gd,gI=jo,vI=Gd,yI=Gd,LF={version:SR,versions:CR,arch:vR,platform:yR,release:TR,_rawDebug:PR,moduleLoadList:OR,binding:kR,_linkedBinding:Nle,_events:cI,_eventsCount:uI,_maxListeners:lI,on:Gd,addListener:dI,once:fI,off:pI,removeListener:hI,removeAllListeners:mI,emit:gI,prependListener:vI,prependOnceListener:yI,listeners:Hle,domain:RR,_exiting:IR,config:jR,dlopen:Ale,uptime:zle,_getActiveRequests:Dle,_getActiveHandles:Fle,reallyExit:NR,_kill:AR,cpuUsage:g2,resourceUsage:DR,memoryUsage:FR,kill:LR,exit:BR,openStdin:zR,allowedNodeEnvironmentFlags:HR,assert:Lle,features:UR,_fatalExceptions:WR,setUncaughtExceptionCaptureCallback:VR,hasUncaughtExceptionCaptureCallback:Ble,emitWarning:_R,nextTick:Ile,_tickCallback:qR,_debugProcess:KR,_debugEnd:GR,_startProfilerIdleNotifier:YR,_stopProfilerIdleNotifier:XR,stdout:ZR,stdin:JR,stderr:QR,abort:eI,umask:ER,chdir:MR,cwd:$R,env:bR,title:gR,argv:wR,execArgv:xR,pid:tI,ppid:nI,execPath:rI,debugPort:iI,hrtime:AC,argv0:aI,_preload_modules:oI,setSourceMapsEnabled:sI}}),Qt=Co(()=>{y$e()}),_o={};Dg(_o,{Buffer:()=>Ck,INSPECT_MAX_BYTES:()=>Ule,default:()=>Yd,kMaxLength:()=>Wle});function b$e(){if(bI)return G1;bI=!0,G1.byteLength=s,G1.toByteArray=c,G1.fromByteArray=p;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var g=h.indexOf("=");g===-1&&(g=m);var v=g===m?0:4-g%4;return[g,v]}function s(h){var m=o(h),g=m[0],v=m[1];return(g+v)*3/4-v}function l(h,m,g){return(m+g)*3/4-g}function c(h){var m,g=o(h),v=g[0],y=g[1],w=new n(l(h,v,y)),b=0,C=y>0?v-4:v,k;for(k=0;k>16&255,w[b++]=m>>8&255,w[b++]=m&255;return y===2&&(m=t[h.charCodeAt(k)]<<2|t[h.charCodeAt(k+1)]>>4,w[b++]=m&255),y===1&&(m=t[h.charCodeAt(k)]<<10|t[h.charCodeAt(k+1)]<<4|t[h.charCodeAt(k+2)]>>2,w[b++]=m>>8&255,w[b++]=m&255),w}function u(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function f(h,m,g){for(var v,y=[],w=m;wC?C:b+w));return v===1?(m=h[g-1],y.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(h[g-2]<<8)+h[g-1],y.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),y.join("")}return G1}function w$e(){return wI?v2:(wI=!0,v2.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,l=(1<>1,u=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=a*256+e[t+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+f],f+=p,u-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-c}return(h?-1:1)*o*Math.pow(2,a-r)},v2.write=function(e,t,n,r,i,a){var o,s,l,c=a*8-i-1,u=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=p/l:t+=p*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=s&255,h+=m,s/=256,i-=8);for(o=o<0;e[n+h]=o&255,h+=m,o/=256,c-=8);e[n+h-m]|=g*128},v2)}function x$e(){if(xI)return fp;xI=!0;let e=b$e(),t=w$e(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;fp.Buffer=o,fp.SlowBuffer=y,fp.INSPECT_MAX_BYTES=50;let r=2147483647;fp.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let z=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(z,H),z.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(z){if(z>r)throw new RangeError('The value "'+z+'" is invalid for option "size"');let H=new Uint8Array(z);return Object.setPrototypeOf(H,o.prototype),H}function o(z,H,G){if(typeof z=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(z)}return s(z,H,G)}o.poolSize=8192;function s(z,H,G){if(typeof z=="string")return f(z,H);if(ArrayBuffer.isView(z))return h(z);if(z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(Se(z,ArrayBuffer)||z&&Se(z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(z,SharedArrayBuffer)||z&&Se(z.buffer,SharedArrayBuffer)))return m(z,H,G);if(typeof z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let de=z.valueOf&&z.valueOf();if(de!=null&&de!==z)return o.from(de,H,G);let xe=g(z);if(xe)return xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof z[Symbol.toPrimitive]=="function")return o.from(z[Symbol.toPrimitive]("string"),H,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}o.from=function(z,H,G){return s(z,H,G)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(z){if(typeof z!="number")throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function c(z,H,G){return l(z),z<=0?a(z):H!==void 0?typeof G=="string"?a(z).fill(H,G):a(z).fill(H):a(z)}o.alloc=function(z,H,G){return c(z,H,G)};function u(z){return l(z),a(z<0?0:v(z)|0)}o.allocUnsafe=function(z){return u(z)},o.allocUnsafeSlow=function(z){return u(z)};function f(z,H){if((typeof H!="string"||H==="")&&(H="utf8"),!o.isEncoding(H))throw new TypeError("Unknown encoding: "+H);let G=w(z,H)|0,de=a(G),xe=de.write(z,H);return xe!==G&&(de=de.slice(0,xe)),de}function p(z){let H=z.length<0?0:v(z.length)|0,G=a(H);for(let de=0;de=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return z|0}function y(z){return+z!=z&&(z=0),o.alloc(+z)}o.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==o.prototype},o.compare=function(z,H){if(Se(z,Uint8Array)&&(z=o.from(z,z.offset,z.byteLength)),Se(H,Uint8Array)&&(H=o.from(H,H.offset,H.byteLength)),!o.isBuffer(z)||!o.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===H)return 0;let G=z.length,de=H.length;for(let xe=0,he=Math.min(G,de);xede.length?(o.isBuffer(he)||(he=o.from(he)),he.copy(de,xe)):Uint8Array.prototype.set.call(de,he,xe);else if(o.isBuffer(he))he.copy(de,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=he.length}return de};function w(z,H){if(o.isBuffer(z))return z.length;if(ArrayBuffer.isView(z)||Se(z,ArrayBuffer))return z.byteLength;if(typeof z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);let G=z.length,de=arguments.length>2&&arguments[2]===!0;if(!de&&G===0)return 0;let xe=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return fe(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Ce(z).length;default:if(xe)return de?-1:fe(z).length;H=(""+H).toLowerCase(),xe=!0}}o.byteLength=w;function b(z,H,G){let de=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,H>>>=0,G<=H))return"";for(z||(z="utf8");;)switch(z){case"hex":return F(this,H,G);case"utf8":case"utf-8":return O(this,H,G);case"ascii":return A(this,H,G);case"latin1":case"binary":return N(this,H,G);case"base64":return R(this,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,H,G);default:if(de)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),de=!0}}o.prototype._isBuffer=!0;function C(z,H,G){let de=z[H];z[H]=z[G],z[G]=de}o.prototype.swap16=function(){let z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(z+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(z,H,G,de,xe){if(Se(z,Uint8Array)&&(z=o.from(z,z.offset,z.byteLength)),!o.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(H===void 0&&(H=0),G===void 0&&(G=z?z.length:0),de===void 0&&(de=0),xe===void 0&&(xe=this.length),H<0||G>z.length||de<0||xe>this.length)throw new RangeError("out of range index");if(de>=xe&&H>=G)return 0;if(de>=xe)return-1;if(H>=G)return 1;if(H>>>=0,G>>>=0,de>>>=0,xe>>>=0,this===z)return 0;let he=xe-de,Ue=G-H,We=Math.min(he,Ue),ge=this.slice(de,xe),ze=z.slice(H,G);for(let Ve=0;Ve2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,we(G)&&(G=xe?0:z.length-1),G<0&&(G=z.length+G),G>=z.length){if(xe)return-1;G=z.length-1}else if(G<0)if(xe)G=0;else return-1;if(typeof H=="string"&&(H=o.from(H,de)),o.isBuffer(H))return H.length===0?-1:S(z,H,G,de,xe);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?xe?Uint8Array.prototype.indexOf.call(z,H,G):Uint8Array.prototype.lastIndexOf.call(z,H,G):S(z,[H],G,de,xe);throw new TypeError("val must be string, number or Buffer")}function S(z,H,G,de,xe){let he=1,Ue=z.length,We=H.length;if(de!==void 0&&(de=String(de).toLowerCase(),de==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(z.length<2||H.length<2)return-1;he=2,Ue/=2,We/=2,G/=2}function ge(Ve,Be){return he===1?Ve[Be]:Ve.readUInt16BE(Be*he)}let ze;if(xe){let Ve=-1;for(ze=G;zeUe&&(G=Ue-We),ze=G;ze>=0;ze--){let Ve=!0;for(let Be=0;Bexe&&(de=xe)):de=xe;let he=H.length;de>he/2&&(de=he/2);let Ue;for(Ue=0;Ue>>0,isFinite(G)?(G=G>>>0,de===void 0&&(de="utf8")):(de=G,G=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let xe=this.length-H;if((G===void 0||G>xe)&&(G=xe),z.length>0&&(G<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");let he=!1;for(;;)switch(de){case"hex":return _(this,z,H,G);case"utf8":case"utf-8":return E(this,z,H,G);case"ascii":case"latin1":case"binary":return $(this,z,H,G);case"base64":return M(this,z,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,z,H,G);default:if(he)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),he=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(z,H,G){return H===0&&G===z.length?e.fromByteArray(z):e.fromByteArray(z.slice(H,G))}function O(z,H,G){G=Math.min(z.length,G);let de=[],xe=H;for(;xe239?4:he>223?3:he>191?2:1;if(xe+We<=G){let ge,ze,Ve,Be;switch(We){case 1:he<128&&(Ue=he);break;case 2:ge=z[xe+1],(ge&192)===128&&(Be=(he&31)<<6|ge&63,Be>127&&(Ue=Be));break;case 3:ge=z[xe+1],ze=z[xe+2],(ge&192)===128&&(ze&192)===128&&(Be=(he&15)<<12|(ge&63)<<6|ze&63,Be>2047&&(Be<55296||Be>57343)&&(Ue=Be));break;case 4:ge=z[xe+1],ze=z[xe+2],Ve=z[xe+3],(ge&192)===128&&(ze&192)===128&&(Ve&192)===128&&(Be=(he&15)<<18|(ge&63)<<12|(ze&63)<<6|Ve&63,Be>65535&&Be<1114112&&(Ue=Be))}}Ue===null?(Ue=65533,We=1):Ue>65535&&(Ue-=65536,de.push(Ue>>>10&1023|55296),Ue=56320|Ue&1023),de.push(Ue),xe+=We}return I(de)}let j=4096;function I(z){let H=z.length;if(H<=j)return String.fromCharCode.apply(String,z);let G="",de=0;for(;dede)&&(G=de);let xe="";for(let he=H;heG&&(z=G),H<0?(H+=G,H<0&&(H=0)):H>G&&(H=G),HG)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(z,H,G){z=z>>>0,H=H>>>0,G||L(z,H,this.length);let de=this[z],xe=1,he=0;for(;++he>>0,H=H>>>0,G||L(z,H,this.length);let de=this[z+--H],xe=1;for(;H>0&&(xe*=256);)de+=this[z+--H]*xe;return de},o.prototype.readUint8=o.prototype.readUInt8=function(z,H){return z=z>>>0,H||L(z,1,this.length),this[z]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(z,H){return z=z>>>0,H||L(z,2,this.length),this[z]|this[z+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(z,H){return z=z>>>0,H||L(z,2,this.length),this[z]<<8|this[z+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(z,H){return z=z>>>0,H||L(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(z,H){return z=z>>>0,H||L(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},o.prototype.readBigUInt64LE=ye(function(z){z=z>>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=H+this[++z]*2**8+this[++z]*2**16+this[++z]*2**24,xe=this[++z]+this[++z]*2**8+this[++z]*2**16+G*2**24;return BigInt(de)+(BigInt(xe)<>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=H*2**24+this[++z]*2**16+this[++z]*2**8+this[++z],xe=this[++z]*2**24+this[++z]*2**16+this[++z]*2**8+G;return(BigInt(de)<>>0,H=H>>>0,G||L(z,H,this.length);let de=this[z],xe=1,he=0;for(;++he=xe&&(de-=Math.pow(2,8*H)),de},o.prototype.readIntBE=function(z,H,G){z=z>>>0,H=H>>>0,G||L(z,H,this.length);let de=H,xe=1,he=this[z+--de];for(;de>0&&(xe*=256);)he+=this[z+--de]*xe;return xe*=128,he>=xe&&(he-=Math.pow(2,8*H)),he},o.prototype.readInt8=function(z,H){return z=z>>>0,H||L(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},o.prototype.readInt16LE=function(z,H){z=z>>>0,H||L(z,2,this.length);let G=this[z]|this[z+1]<<8;return G&32768?G|4294901760:G},o.prototype.readInt16BE=function(z,H){z=z>>>0,H||L(z,2,this.length);let G=this[z+1]|this[z]<<8;return G&32768?G|4294901760:G},o.prototype.readInt32LE=function(z,H){return z=z>>>0,H||L(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},o.prototype.readInt32BE=function(z,H){return z=z>>>0,H||L(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},o.prototype.readBigInt64LE=ye(function(z){z=z>>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=this[z+4]+this[z+5]*2**8+this[z+6]*2**16+(G<<24);return(BigInt(de)<>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=(H<<24)+this[++z]*2**16+this[++z]*2**8+this[++z];return(BigInt(de)<>>0,H||L(z,4,this.length),t.read(this,z,!0,23,4)},o.prototype.readFloatBE=function(z,H){return z=z>>>0,H||L(z,4,this.length),t.read(this,z,!1,23,4)},o.prototype.readDoubleLE=function(z,H){return z=z>>>0,H||L(z,8,this.length),t.read(this,z,!0,52,8)},o.prototype.readDoubleBE=function(z,H){return z=z>>>0,H||L(z,8,this.length),t.read(this,z,!1,52,8)};function V(z,H,G,de,xe,he){if(!o.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>xe||Hz.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(z,H,G,de){if(z=+z,H=H>>>0,G=G>>>0,!de){let Ue=Math.pow(2,8*G)-1;V(this,z,H,G,Ue,0)}let xe=1,he=0;for(this[H]=z&255;++he>>0,G=G>>>0,!de){let Ue=Math.pow(2,8*G)-1;V(this,z,H,G,Ue,0)}let xe=G-1,he=1;for(this[H+xe]=z&255;--xe>=0&&(he*=256);)this[H+xe]=z/he&255;return H+G},o.prototype.writeUint8=o.prototype.writeUInt8=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,1,255,0),this[H]=z&255,H+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,65535,0),this[H]=z&255,this[H+1]=z>>>8,H+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,65535,0),this[H]=z>>>8,this[H+1]=z&255,H+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,4294967295,0),this[H+3]=z>>>24,this[H+2]=z>>>16,this[H+1]=z>>>8,this[H]=z&255,H+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,4294967295,0),this[H]=z>>>24,this[H+1]=z>>>16,this[H+2]=z>>>8,this[H+3]=z&255,H+4};function B(z,H,G,de,xe){le(H,de,xe,z,G,7);let he=Number(H&BigInt(4294967295));z[G++]=he,he=he>>8,z[G++]=he,he=he>>8,z[G++]=he,he=he>>8,z[G++]=he;let Ue=Number(H>>BigInt(32)&BigInt(4294967295));return z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,G}function U(z,H,G,de,xe){le(H,de,xe,z,G,7);let he=Number(H&BigInt(4294967295));z[G+7]=he,he=he>>8,z[G+6]=he,he=he>>8,z[G+5]=he,he=he>>8,z[G+4]=he;let Ue=Number(H>>BigInt(32)&BigInt(4294967295));return z[G+3]=Ue,Ue=Ue>>8,z[G+2]=Ue,Ue=Ue>>8,z[G+1]=Ue,Ue=Ue>>8,z[G]=Ue,G+8}o.prototype.writeBigUInt64LE=ye(function(z,H=0){return B(this,z,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ye(function(z,H=0){return U(this,z,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(z,H,G,de){if(z=+z,H=H>>>0,!de){let We=Math.pow(2,8*G-1);V(this,z,H,G,We-1,-We)}let xe=0,he=1,Ue=0;for(this[H]=z&255;++xe>0)-Ue&255;return H+G},o.prototype.writeIntBE=function(z,H,G,de){if(z=+z,H=H>>>0,!de){let We=Math.pow(2,8*G-1);V(this,z,H,G,We-1,-We)}let xe=G-1,he=1,Ue=0;for(this[H+xe]=z&255;--xe>=0&&(he*=256);)z<0&&Ue===0&&this[H+xe+1]!==0&&(Ue=1),this[H+xe]=(z/he>>0)-Ue&255;return H+G},o.prototype.writeInt8=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,1,127,-128),z<0&&(z=255+z+1),this[H]=z&255,H+1},o.prototype.writeInt16LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,32767,-32768),this[H]=z&255,this[H+1]=z>>>8,H+2},o.prototype.writeInt16BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,32767,-32768),this[H]=z>>>8,this[H+1]=z&255,H+2},o.prototype.writeInt32LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,2147483647,-2147483648),this[H]=z&255,this[H+1]=z>>>8,this[H+2]=z>>>16,this[H+3]=z>>>24,H+4},o.prototype.writeInt32BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[H]=z>>>24,this[H+1]=z>>>16,this[H+2]=z>>>8,this[H+3]=z&255,H+4},o.prototype.writeBigInt64LE=ye(function(z,H=0){return B(this,z,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ye(function(z,H=0){return U(this,z,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Y(z,H,G,de,xe,he){if(G+de>z.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function ee(z,H,G,de,xe){return H=+H,G=G>>>0,xe||Y(z,H,G,4),t.write(z,H,G,de,23,4),G+4}o.prototype.writeFloatLE=function(z,H,G){return ee(this,z,H,!0,G)},o.prototype.writeFloatBE=function(z,H,G){return ee(this,z,H,!1,G)};function ie(z,H,G,de,xe){return H=+H,G=G>>>0,xe||Y(z,H,G,8),t.write(z,H,G,de,52,8),G+8}o.prototype.writeDoubleLE=function(z,H,G){return ie(this,z,H,!0,G)},o.prototype.writeDoubleBE=function(z,H,G){return ie(this,z,H,!1,G)},o.prototype.copy=function(z,H,G,de){if(!o.isBuffer(z))throw new TypeError("argument should be a Buffer");if(G||(G=0),!de&&de!==0&&(de=this.length),H>=z.length&&(H=z.length),H||(H=0),de>0&&de=this.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),z.length-H>>0,G=G===void 0?this.length:G>>>0,z||(z=0);let xe;if(typeof z=="number")for(xe=H;xe2**32?xe=ae(String(G)):typeof G=="bigint"&&(xe=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(xe=ae(xe)),xe+="n"),de+=` It must be ${H}. Received ${xe}`,de},RangeError);function ae(z){let H="",G=z.length,de=z[0]==="-"?1:0;for(;G>=de+4;G-=3)H=`_${z.slice(G-3,G)}${H}`;return`${z.slice(0,G)}${H}`}function oe(z,H,G){ce(H,"offset"),(z[H]===void 0||z[H+G]===void 0)&&pe(H,z.length-(G+1))}function le(z,H,G,de,xe,he){if(z>G||z= 0${Ue} and < 2${Ue} ** ${(he+1)*8}${Ue}`:We=`>= -(2${Ue} ** ${(he+1)*8-1}${Ue}) and < 2 ** ${(he+1)*8-1}${Ue}`,new Z.ERR_OUT_OF_RANGE("value",We,z)}oe(de,xe,he)}function ce(z,H){if(typeof z!="number")throw new Z.ERR_INVALID_ARG_TYPE(H,"number",z)}function pe(z,H,G){throw Math.floor(z)!==z?(ce(z,G),new Z.ERR_OUT_OF_RANGE("offset","an integer",z)):H<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,z)}let me=/[^+/0-9A-Za-z-_]/g;function re(z){if(z=z.split("=")[0],z=z.trim().replace(me,""),z.length<2)return"";for(;z.length%4!==0;)z=z+"=";return z}function fe(z,H){H=H||1/0;let G,de=z.length,xe=null,he=[];for(let Ue=0;Ue55295&&G<57344){if(!xe){if(G>56319){(H-=3)>-1&&he.push(239,191,189);continue}else if(Ue+1===de){(H-=3)>-1&&he.push(239,191,189);continue}xe=G;continue}if(G<56320){(H-=3)>-1&&he.push(239,191,189),xe=G;continue}G=(xe-55296<<10|G-56320)+65536}else xe&&(H-=3)>-1&&he.push(239,191,189);if(xe=null,G<128){if((H-=1)<0)break;he.push(G)}else if(G<2048){if((H-=2)<0)break;he.push(G>>6|192,G&63|128)}else if(G<65536){if((H-=3)<0)break;he.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((H-=4)<0)break;he.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return he}function ve(z){let H=[];for(let G=0;G>8,xe=G%256,he.push(xe),he.push(de);return he}function Ce(z){return e.toByteArray(re(z))}function be(z,H,G,de){let xe;for(xe=0;xe=H.length||xe>=z.length);++xe)H[xe+G]=z[xe];return xe}function Se(z,H){return z instanceof H||z!=null&&z.constructor!=null&&z.constructor.name!=null&&z.constructor.name===H.name}function we(z){return z!==z}let se=function(){let z="0123456789abcdef",H=new Array(256);for(let G=0;G<16;++G){let de=G*16;for(let xe=0;xe<16;++xe)H[de+xe]=z[G]+z[xe]}return H}();function ye(z){return typeof BigInt>"u"?Oe:z}function Oe(){throw new Error("BigInt not supported")}return fp}var G1,bI,v2,wI,fp,xI,Yd,Ck,Ule,Wle,ko=Co(()=>{Zt(),Jt(),Qt(),G1={},bI=!1,v2={},wI=!1,fp={},xI=!1,Yd=x$e(),Yd.Buffer,Yd.SlowBuffer,Yd.INSPECT_MAX_BYTES,Yd.kMaxLength,Ck=Yd.Buffer,Ule=Yd.INSPECT_MAX_BYTES,Wle=Yd.kMaxLength}),Jt=Co(()=>{ko()}),S$e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(n){this.aliasToTopic={},this.max=n}put(n,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=n,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(n){return this.aliasToTopic[n]}clear(){this.aliasToTopic={}}};e.default=t}),qa=un((e,t)=>{Zt(),Jt(),Qt(),t.exports={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,i){return n.slice(r,i)},Error,FunctionPrototypeCall(n,r,...i){return n.call(r,...i)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,i){return Object.defineProperty(n,r,i)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,i){return n.then(r,i)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,i){return n.slice(r,i)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(n,r,i){return n.set(r,i)},Uint8Array}}),Mf=un((e,t)=>{Zt(),Jt(),Qt();var n=(ko(),Si(_o)),r=Object.getPrototypeOf(async function(){}).constructor,i=globalThis.Blob||n.Blob,a=typeof i<"u"?function(s){return s instanceof i}:function(s){return!1},o=class extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let l="";for(let c=0;c{s=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...f)=>u?c(u):l(...f))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let f=l.shift();return u==="f"?f.toFixed(6):u==="j"?JSON.stringify(f):u==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}},types:{isAsyncFunction(s){return s instanceof r},isArrayBufferView(s){return ArrayBuffer.isView(s)}},isBlob:a},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),BF=un((e,t)=>{Zt(),Jt(),Qt();var{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=n,t.exports.AbortSignal=r,t.exports.default=n}),Gs=un((e,t)=>{Zt(),Jt(),Qt();var{format:n,inspect:r,AggregateError:i}=Mf(),a=globalThis.AggregateError||i,o=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function f(w,b){if(!w)throw new u.ERR_INTERNAL_ASSERTION(b)}function p(w){let b="",C=w.length,k=w[0]==="-"?1:0;for(;C>=k+4;C-=3)b=`_${w.slice(C-3,C)}${b}`;return`${w.slice(0,C)}${b}`}function h(w,b,C){if(typeof b=="function")return f(b.length<=C.length,`Code: ${w}; The provided arguments length (${C.length}) does not match the required ones (${b.length}).`),b(...C);let k=(b.match(/%[dfijoOs]/g)||[]).length;return f(k===C.length,`Code: ${w}; The provided arguments length (${C.length}) does not match the required ones (${k}).`),C.length===0?b:n(b,...C)}function m(w,b,C){C||(C=Error);class k extends C{constructor(..._){super(h(w,b,_))}toString(){return`${this.name} [${w}]: ${this.message}`}}Object.defineProperties(k.prototype,{name:{value:C.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${w}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),k.prototype.code=w,k.prototype[o]=!0,u[w]=k}function g(w){let b=c+w.name;return Object.defineProperty(w,"name",{value:b}),w}function v(w,b){if(w&&b&&w!==b){if(Array.isArray(b.errors))return b.errors.push(w),b;let C=new a([b,w],b.message);return C.code=b.code,C}return w||b}var y=class extends Error{constructor(w="The operation was aborted",b=void 0){if(b!==void 0&&typeof b!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",b);super(w,b),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(w,b,C)=>{f(typeof w=="string","'name' must be a string"),Array.isArray(b)||(b=[b]);let k="The ";w.endsWith(" argument")?k+=`${w} `:k+=`"${w}" ${w.includes(".")?"property":"argument"} `,k+="must be ";let S=[],_=[],E=[];for(let M of b)f(typeof M=="string","All expected entries have to be of type string"),s.includes(M)?S.push(M.toLowerCase()):l.test(M)?_.push(M):(f(M!=="object",'The value "object" should be written as "Object"'),E.push(M));if(_.length>0){let M=S.indexOf("object");M!==-1&&(S.splice(S,M,1),_.push("Object"))}if(S.length>0){switch(S.length){case 1:k+=`of type ${S[0]}`;break;case 2:k+=`one of type ${S[0]} or ${S[1]}`;break;default:{let M=S.pop();k+=`one of type ${S.join(", ")}, or ${M}`}}(_.length>0||E.length>0)&&(k+=" or ")}if(_.length>0){switch(_.length){case 1:k+=`an instance of ${_[0]}`;break;case 2:k+=`an instance of ${_[0]} or ${_[1]}`;break;default:{let M=_.pop();k+=`an instance of ${_.join(", ")}, or ${M}`}}E.length>0&&(k+=" or ")}switch(E.length){case 0:break;case 1:E[0].toLowerCase()!==E[0]&&(k+="an "),k+=`${E[0]}`;break;case 2:k+=`one of ${E[0]} or ${E[1]}`;break;default:{let M=E.pop();k+=`one of ${E.join(", ")}, or ${M}`}}if(C==null)k+=`. Received ${C}`;else if(typeof C=="function"&&C.name)k+=`. Received function ${C.name}`;else if(typeof C=="object"){var $;if(($=C.constructor)!==null&&$!==void 0&&$.name)k+=`. Received an instance of ${C.constructor.name}`;else{let M=r(C,{depth:-1});k+=`. Received ${M}`}}else{let M=r(C,{colors:!1});M.length>25&&(M=`${M.slice(0,25)}...`),k+=`. Received type ${typeof C} (${M})`}return k},TypeError),m("ERR_INVALID_ARG_VALUE",(w,b,C="is invalid")=>{let k=r(b);return k.length>128&&(k=k.slice(0,128)+"..."),`The ${w.includes(".")?"property":"argument"} '${w}' ${C}. Received ${k}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(w,b,C)=>{var k;let S=C!=null&&(k=C.constructor)!==null&&k!==void 0&&k.name?`instance of ${C.constructor.name}`:`type ${typeof C}`;return`Expected ${w} to be returned from the "${b}" function but got ${S}.`},TypeError),m("ERR_MISSING_ARGS",(...w)=>{f(w.length>0,"At least one arg needs to be specified");let b,C=w.length;switch(w=(Array.isArray(w)?w:[w]).map(k=>`"${k}"`).join(" or "),C){case 1:b+=`The ${w[0]} argument`;break;case 2:b+=`The ${w[0]} and ${w[1]} arguments`;break;default:{let k=w.pop();b+=`The ${w.join(", ")}, and ${k} arguments`}break}return`${b} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(w,b,C)=>{f(b,'Missing "range" argument');let k;return Number.isInteger(C)&&Math.abs(C)>2**32?k=p(String(C)):typeof C=="bigint"?(k=String(C),(C>2n**32n||C<-(2n**32n))&&(k=p(k)),k+="n"):k=r(C),`The value of "${w}" is out of range. It must be ${b}. Received ${k}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:y,aggregateTwoErrors:g(v),hideStackFrames:g,codes:u}}),fE=un((e,t)=>{Zt(),Jt(),Qt();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:o,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:p,String:h,StringPrototypeToUpperCase:m,StringPrototypeTrim:g}=qa(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:C,ERR_UNKNOWN_SIGNAL:k}}=Gs(),{normalizeEncoding:S}=Mf(),{isAsyncFunction:_,isArrayBufferView:E}=Mf().types,$={};function M(be){return be===(be|0)}function P(be){return be===be>>>0}var R=/^[0-7]+$/,O="must be a 32-bit unsigned integer or an octal string";function j(be,Se,we){if(typeof be>"u"&&(be=we),typeof be=="string"){if(p(R,be)===null)throw new b(Se,be,O);be=u(be,8)}return N(be,Se),be}var I=v((be,Se,we=c,se=l)=>{if(typeof be!="number")throw new w(Se,"number",be);if(!o(be))throw new C(Se,"an integer",be);if(bese)throw new C(Se,`>= ${we} && <= ${se}`,be)}),A=v((be,Se,we=-2147483648,se=2147483647)=>{if(typeof be!="number")throw new w(Se,"number",be);if(!o(be))throw new C(Se,"an integer",be);if(bese)throw new C(Se,`>= ${we} && <= ${se}`,be)}),N=v((be,Se,we=!1)=>{if(typeof be!="number")throw new w(Se,"number",be);if(!o(be))throw new C(Se,"an integer",be);let se=we?1:0,ye=4294967295;if(beye)throw new C(Se,`>= ${se} && <= ${ye}`,be)});function F(be,Se){if(typeof be!="string")throw new w(Se,"string",be)}function K(be,Se,we=void 0,se){if(typeof be!="number")throw new w(Se,"number",be);if(we!=null&&bese||(we!=null||se!=null)&&s(be))throw new C(Se,`${we!=null?`>= ${we}`:""}${we!=null&&se!=null?" && ":""}${se!=null?`<= ${se}`:""}`,be)}var L=v((be,Se,we)=>{if(!r(we,be)){let se="must be one of: "+i(a(we,ye=>typeof ye=="string"?`'${ye}'`:h(ye)),", ");throw new b(Se,be,se)}});function V(be,Se){if(typeof be!="boolean")throw new w(Se,"boolean",be)}function B(be,Se,we){return be==null||!f(be,Se)?we:be[Se]}var U=v((be,Se,we=null)=>{let se=B(we,"allowArray",!1),ye=B(we,"allowFunction",!1);if(!B(we,"nullable",!1)&&be===null||!se&&n(be)||typeof be!="object"&&(!ye||typeof be!="function"))throw new w(Se,"Object",be)}),Y=v((be,Se)=>{if(be!=null&&typeof be!="object"&&typeof be!="function")throw new w(Se,"a dictionary",be)}),ee=v((be,Se,we=0)=>{if(!n(be))throw new w(Se,"Array",be);if(be.length{if(!E(be))throw new w(Se,["Buffer","TypedArray","DataView"],be)});function oe(be,Se){let we=S(Se),se=be.length;if(we==="hex"&&se%2!==0)throw new b("encoding",Se,`is invalid for data of length ${se}`)}function le(be,Se="Port",we=!0){if(typeof be!="number"&&typeof be!="string"||typeof be=="string"&&g(be).length===0||+be!==+be>>>0||be>65535||be===0&&!we)throw new y(Se,be,we);return be|0}var ce=v((be,Se)=>{if(be!==void 0&&(be===null||typeof be!="object"||!("aborted"in be)))throw new w(Se,"AbortSignal",be)}),pe=v((be,Se)=>{if(typeof be!="function")throw new w(Se,"Function",be)}),me=v((be,Se)=>{if(typeof be!="function"||_(be))throw new w(Se,"Function",be)}),re=v((be,Se)=>{if(be!==void 0)throw new w(Se,"undefined",be)});function fe(be,Se,we){if(!r(we,be))throw new w(Se,`('${i(we,"|")}')`,be)}var ve=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function $e(be,Se){if(typeof be>"u"||!p(ve,be))throw new b(Se,be,'must be an array or string of format "; rel=preload; as=style"')}function Ce(be){if(typeof be=="string")return $e(be,"hints"),be;if(n(be)){let Se=be.length,we="";if(Se===0)return we;for(let se=0;se; rel=preload; as=style"')}t.exports={isInt32:M,isUint32:P,parseFileMode:j,validateArray:ee,validateStringArray:ie,validateBooleanArray:Z,validateBoolean:V,validateBuffer:ae,validateDictionary:Y,validateEncoding:oe,validateFunction:pe,validateInt32:A,validateInteger:I,validateNumber:K,validateObject:U,validateOneOf:L,validatePlainFunction:me,validatePort:le,validateSignalName:X,validateString:F,validateUint32:N,validateUndefined:re,validateUnion:fe,validateAbortSignal:ce,validateLinkHeaderValue:Ce}}),Fg=un((e,t)=>{Zt(),Jt(),Qt();var n=t.exports={},r,i;function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=a}catch{r=a}try{typeof clearTimeout=="function"?i=clearTimeout:i=o}catch{i=o}})();function s(y){if(r===setTimeout)return setTimeout(y,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(y,0);try{return r(y,0)}catch{try{return r.call(null,y,0)}catch{return r.call(this,y,0)}}}function l(y){if(i===clearTimeout)return clearTimeout(y);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(y);try{return i(y)}catch{try{return i.call(null,y)}catch{return i.call(this,y)}}}var c=[],u=!1,f,p=-1;function h(){!u||!f||(u=!1,f.length?c=f.concat(c):p=-1,c.length&&m())}function m(){if(!u){var y=s(h);u=!0;for(var w=c.length;w;){for(f=c,c=[];++p1)for(var b=1;b{Zt(),Jt(),Qt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:a}=qa(),o=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=a("nodejs.webstream.isClosedPromise"),f=a("nodejs.webstream.controllerErrorFunction");function p(B,U=!1){var Y;return!!(B&&typeof B.pipe=="function"&&typeof B.on=="function"&&(!U||typeof B.pause=="function"&&typeof B.resume=="function")&&(!B._writableState||((Y=B._readableState)===null||Y===void 0?void 0:Y.readable)!==!1)&&(!B._writableState||B._readableState))}function h(B){var U;return!!(B&&typeof B.write=="function"&&typeof B.on=="function"&&(!B._readableState||((U=B._writableState)===null||U===void 0?void 0:U.writable)!==!1))}function m(B){return!!(B&&typeof B.pipe=="function"&&B._readableState&&typeof B.on=="function"&&typeof B.write=="function")}function g(B){return B&&(B._readableState||B._writableState||typeof B.write=="function"&&typeof B.on=="function"||typeof B.pipe=="function"&&typeof B.on=="function")}function v(B){return!!(B&&!g(B)&&typeof B.pipeThrough=="function"&&typeof B.getReader=="function"&&typeof B.cancel=="function")}function y(B){return!!(B&&!g(B)&&typeof B.getWriter=="function"&&typeof B.abort=="function")}function w(B){return!!(B&&!g(B)&&typeof B.readable=="object"&&typeof B.writable=="object")}function b(B){return v(B)||y(B)||w(B)}function C(B,U){return B==null?!1:U===!0?typeof B[r]=="function":U===!1?typeof B[i]=="function":typeof B[r]=="function"||typeof B[i]=="function"}function k(B){if(!g(B))return null;let U=B._writableState,Y=B._readableState,ee=U||Y;return!!(B.destroyed||B[o]||ee!=null&&ee.destroyed)}function S(B){if(!h(B))return null;if(B.writableEnded===!0)return!0;let U=B._writableState;return U!=null&&U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function _(B,U){if(!h(B))return null;if(B.writableFinished===!0)return!0;let Y=B._writableState;return Y!=null&&Y.errored?!1:typeof(Y==null?void 0:Y.finished)!="boolean"?null:!!(Y.finished||U===!1&&Y.ended===!0&&Y.length===0)}function E(B){if(!p(B))return null;if(B.readableEnded===!0)return!0;let U=B._readableState;return!U||U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function $(B,U){if(!p(B))return null;let Y=B._readableState;return Y!=null&&Y.errored?!1:typeof(Y==null?void 0:Y.endEmitted)!="boolean"?null:!!(Y.endEmitted||U===!1&&Y.ended===!0&&Y.length===0)}function M(B){return B&&B[l]!=null?B[l]:typeof(B==null?void 0:B.readable)!="boolean"?null:k(B)?!1:p(B)&&B.readable&&!$(B)}function P(B){return typeof(B==null?void 0:B.writable)!="boolean"?null:k(B)?!1:h(B)&&B.writable&&!S(B)}function R(B,U){return g(B)?k(B)?!0:!((U==null?void 0:U.readable)!==!1&&M(B)||(U==null?void 0:U.writable)!==!1&&P(B)):null}function O(B){var U,Y;return g(B)?B.writableErrored?B.writableErrored:(U=(Y=B._writableState)===null||Y===void 0?void 0:Y.errored)!==null&&U!==void 0?U:null:null}function j(B){var U,Y;return g(B)?B.readableErrored?B.readableErrored:(U=(Y=B._readableState)===null||Y===void 0?void 0:Y.errored)!==null&&U!==void 0?U:null:null}function I(B){if(!g(B))return null;if(typeof B.closed=="boolean")return B.closed;let U=B._writableState,Y=B._readableState;return typeof(U==null?void 0:U.closed)=="boolean"||typeof(Y==null?void 0:Y.closed)=="boolean"?(U==null?void 0:U.closed)||(Y==null?void 0:Y.closed):typeof B._closed=="boolean"&&A(B)?B._closed:null}function A(B){return typeof B._closed=="boolean"&&typeof B._defaultKeepAlive=="boolean"&&typeof B._removedConnection=="boolean"&&typeof B._removedContLen=="boolean"}function N(B){return typeof B._sent100=="boolean"&&A(B)}function F(B){var U;return typeof B._consuming=="boolean"&&typeof B._dumped=="boolean"&&((U=B.req)===null||U===void 0?void 0:U.upgradeOrConnect)===void 0}function K(B){if(!g(B))return null;let U=B._writableState,Y=B._readableState,ee=U||Y;return!ee&&N(B)||!!(ee&&ee.autoDestroy&&ee.emitClose&&ee.closed===!1)}function L(B){var U;return!!(B&&((U=B[c])!==null&&U!==void 0?U:B.readableDidRead||B.readableAborted))}function V(B){var U,Y,ee,ie,Z,X,ae,oe,le,ce;return!!(B&&((U=(Y=(ee=(ie=(Z=(X=B[s])!==null&&X!==void 0?X:B.readableErrored)!==null&&Z!==void 0?Z:B.writableErrored)!==null&&ie!==void 0?ie:(ae=B._readableState)===null||ae===void 0?void 0:ae.errorEmitted)!==null&&ee!==void 0?ee:(oe=B._writableState)===null||oe===void 0?void 0:oe.errorEmitted)!==null&&Y!==void 0?Y:(le=B._readableState)===null||le===void 0?void 0:le.errored)!==null&&U!==void 0?U:!((ce=B._writableState)===null||ce===void 0)&&ce.errored))}t.exports={kDestroyed:o,isDisturbed:L,kIsDisturbed:c,isErrored:V,kIsErrored:s,isReadable:M,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:I,isDestroyed:k,isDuplexNodeStream:m,isFinished:R,isIterable:C,isReadableNodeStream:p,isReadableStream:v,isReadableEnded:E,isReadableFinished:$,isReadableErrored:j,isNodeStream:g,isWebStream:b,isWritable:P,isWritableNodeStream:h,isWritableStream:y,isWritableEnded:S,isWritableFinished:_,isWritableErrored:O,isServerRequest:F,isServerResponse:N,willEmitClose:K,isTransformStream:w}}),yh=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{AbortError:r,codes:i}=Gs(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:l}=Mf(),{validateAbortSignal:c,validateFunction:u,validateObject:f,validateBoolean:p}=fE(),{Promise:h,PromisePrototypeThen:m}=qa(),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:w,isReadableFinished:b,isReadableErrored:C,isWritable:k,isWritableNodeStream:S,isWritableStream:_,isWritableFinished:E,isWritableErrored:$,isNodeStream:M,willEmitClose:P,kIsClosedPromise:R}=Bf();function O(F){return F.setHeader&&typeof F.abort=="function"}var j=()=>{};function I(F,K,L){var V,B;if(arguments.length===2?(L=K,K=s):K==null?K=s:f(K,"options"),u(L,"callback"),c(K.signal,"options.signal"),L=l(L),w(F)||_(F))return A(F,K,L);if(!M(F))throw new a("stream",["ReadableStream","WritableStream","Stream"],F);let U=(V=K.readable)!==null&&V!==void 0?V:y(F),Y=(B=K.writable)!==null&&B!==void 0?B:S(F),ee=F._writableState,ie=F._readableState,Z=()=>{F.writable||oe()},X=P(F)&&y(F)===U&&S(F)===Y,ae=E(F,!1),oe=()=>{ae=!0,F.destroyed&&(X=!1),!(X&&(!F.readable||U))&&(!U||le)&&L.call(F)},le=b(F,!1),ce=()=>{le=!0,F.destroyed&&(X=!1),!(X&&(!F.writable||Y))&&(!Y||ae)&&L.call(F)},pe=Ce=>{L.call(F,Ce)},me=g(F),re=()=>{me=!0;let Ce=$(F)||C(F);if(Ce&&typeof Ce!="boolean")return L.call(F,Ce);if(U&&!le&&y(F,!0)&&!b(F,!1))return L.call(F,new o);if(Y&&!ae&&!E(F,!1))return L.call(F,new o);L.call(F)},fe=()=>{me=!0;let Ce=$(F)||C(F);if(Ce&&typeof Ce!="boolean")return L.call(F,Ce);L.call(F)},ve=()=>{F.req.on("finish",oe)};O(F)?(F.on("complete",oe),X||F.on("abort",re),F.req?ve():F.on("request",ve)):Y&&!ee&&(F.on("end",Z),F.on("close",Z)),!X&&typeof F.aborted=="boolean"&&F.on("aborted",re),F.on("end",ce),F.on("finish",oe),K.error!==!1&&F.on("error",pe),F.on("close",re),me?n.nextTick(re):ee!=null&&ee.errorEmitted||ie!=null&&ie.errorEmitted?X||n.nextTick(fe):(!U&&(!X||v(F))&&(ae||k(F)===!1)||!Y&&(!X||k(F))&&(le||v(F)===!1)||ie&&F.req&&F.aborted)&&n.nextTick(fe);let $e=()=>{L=j,F.removeListener("aborted",re),F.removeListener("complete",oe),F.removeListener("abort",re),F.removeListener("request",ve),F.req&&F.req.removeListener("finish",oe),F.removeListener("end",Z),F.removeListener("close",Z),F.removeListener("finish",oe),F.removeListener("end",ce),F.removeListener("error",pe),F.removeListener("close",re)};if(K.signal&&!me){let Ce=()=>{let be=L;$e(),be.call(F,new r(void 0,{cause:K.signal.reason}))};if(K.signal.aborted)n.nextTick(Ce);else{let be=L;L=l((...Se)=>{K.signal.removeEventListener("abort",Ce),be.apply(F,Se)}),K.signal.addEventListener("abort",Ce)}}return $e}function A(F,K,L){let V=!1,B=j;if(K.signal)if(B=()=>{V=!0,L.call(F,new r(void 0,{cause:K.signal.reason}))},K.signal.aborted)n.nextTick(B);else{let Y=L;L=l((...ee)=>{K.signal.removeEventListener("abort",B),Y.apply(F,ee)}),K.signal.addEventListener("abort",B)}let U=(...Y)=>{V||n.nextTick(()=>L.apply(F,Y))};return m(F[R].promise,U,U),j}function N(F,K){var L;let V=!1;return K===null&&(K=s),(L=K)!==null&&L!==void 0&&L.cleanup&&(p(K.cleanup,"cleanup"),V=K.cleanup),new h((B,U)=>{let Y=I(F,K,ee=>{V&&Y(),ee?U(ee):B()})})}t.exports=I,t.exports.finished=N}),py=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=Gs(),{Symbol:o}=qa(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=Bf(),f=o("kDestroy"),p=o("kConstruct");function h(R,O,j){R&&(R.stack,O&&!O.errored&&(O.errored=R),j&&!j.errored&&(j.errored=R))}function m(R,O){let j=this._readableState,I=this._writableState,A=I||j;return I!=null&&I.destroyed||j!=null&&j.destroyed?(typeof O=="function"&&O(),this):(h(R,I,j),I&&(I.destroyed=!0),j&&(j.destroyed=!0),A.constructed?g(this,R,O):this.once(f,function(N){g(this,r(N,R),O)}),this)}function g(R,O,j){let I=!1;function A(N){if(I)return;I=!0;let F=R._readableState,K=R._writableState;h(N,K,F),K&&(K.closed=!0),F&&(F.closed=!0),typeof j=="function"&&j(N),N?n.nextTick(v,R,N):n.nextTick(y,R)}try{R._destroy(O||null,A)}catch(N){A(N)}}function v(R,O){w(R,O),y(R)}function y(R){let O=R._readableState,j=R._writableState;j&&(j.closeEmitted=!0),O&&(O.closeEmitted=!0),(j!=null&&j.emitClose||O!=null&&O.emitClose)&&R.emit("close")}function w(R,O){let j=R._readableState,I=R._writableState;I!=null&&I.errorEmitted||j!=null&&j.errorEmitted||(I&&(I.errorEmitted=!0),j&&(j.errorEmitted=!0),R.emit("error",O))}function b(){let R=this._readableState,O=this._writableState;R&&(R.constructed=!0,R.closed=!1,R.closeEmitted=!1,R.destroyed=!1,R.errored=null,R.errorEmitted=!1,R.reading=!1,R.ended=R.readable===!1,R.endEmitted=R.readable===!1),O&&(O.constructed=!0,O.destroyed=!1,O.closed=!1,O.closeEmitted=!1,O.errored=null,O.errorEmitted=!1,O.finalCalled=!1,O.prefinished=!1,O.ended=O.writable===!1,O.ending=O.writable===!1,O.finished=O.writable===!1)}function C(R,O,j){let I=R._readableState,A=R._writableState;if(A!=null&&A.destroyed||I!=null&&I.destroyed)return this;I!=null&&I.autoDestroy||A!=null&&A.autoDestroy?R.destroy(O):O&&(O.stack,A&&!A.errored&&(A.errored=O),I&&!I.errored&&(I.errored=O),j?n.nextTick(w,R,O):w(R,O))}function k(R,O){if(typeof R._construct!="function")return;let j=R._readableState,I=R._writableState;j&&(j.constructed=!1),I&&(I.constructed=!1),R.once(p,O),!(R.listenerCount(p)>1)&&n.nextTick(S,R)}function S(R){let O=!1;function j(I){if(O){C(R,I??new i);return}O=!0;let A=R._readableState,N=R._writableState,F=N||A;A&&(A.constructed=!0),N&&(N.constructed=!0),F.destroyed?R.emit(f,I):I?C(R,I,!0):n.nextTick(_,R)}try{R._construct(I=>{n.nextTick(j,I)})}catch(I){n.nextTick(j,I)}}function _(R){R.emit(p)}function E(R){return(R==null?void 0:R.setHeader)&&typeof R.abort=="function"}function $(R){R.emit("close")}function M(R,O){R.emit("error",O),n.nextTick($,R)}function P(R,O){!R||l(R)||(!O&&!c(R)&&(O=new a),u(R)?(R.socket=null,R.destroy(O)):E(R)?R.abort():E(R.req)?R.req.abort():typeof R.destroy=="function"?R.destroy(O):typeof R.close=="function"?R.close():O?n.nextTick(M,R,O):n.nextTick($,R),R.destroyed||(R[s]=!0))}t.exports={construct:k,destroyer:P,destroy:m,undestroy:b,errorOrDestroy:C}});function mi(){mi.init.call(this)}function FC(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Vle(e){return e._maxListeners===void 0?mi.defaultMaxListeners:e._maxListeners}function Lq(e,t,n,r){var i,a,o,s;if(FC(n),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)o=a[t]=n,++e._eventsCount;else if(typeof o=="function"?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=Vle(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return e}function C$e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Bq(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=C$e.bind(r);return i.listener=n,r.wrapFn=i,i}function zq(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(a){for(var o=new Array(a.length),s=0;s{Zt(),Jt(),Qt(),Bh=typeof Reflect=="object"?Reflect:null,UM=Bh&&typeof Bh.apply=="function"?Bh.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Wq=Bh&&typeof Bh.ownKeys=="function"?Bh.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},WM=Number.isNaN||function(e){return e!=e},Uq=mi,mi.EventEmitter=mi,mi.prototype._events=void 0,mi.prototype._eventsCount=0,mi.prototype._maxListeners=void 0,VM=10,Object.defineProperty(mi,"defaultMaxListeners",{enumerable:!0,get:function(){return VM},set:function(e){if(typeof e!="number"||e<0||WM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");VM=e}}),mi.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},mi.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||WM(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},mi.prototype.getMaxListeners=function(){return Vle(this)},mi.prototype.emit=function(e){for(var t=[],n=1;n0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")UM(s,this,t);else{var l=s.length,c=qle(s,l);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():function(s,l){for(;l+1=0;r--)this.removeListener(e,t[r]);return this},mi.prototype.listeners=function(e){return zq(this,e,!0)},mi.prototype.rawListeners=function(e){return zq(this,e,!1)},mi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Hq.call(e,t)},mi.prototype.listenerCount=Hq,mi.prototype.eventNames=function(){return this._eventsCount>0?Wq(this._events):[]},gl=Uq,gl.EventEmitter,gl.defaultMaxListeners,gl.init,gl.listenerCount,gl.EventEmitter,gl.defaultMaxListeners,gl.init,gl.listenerCount}),Lg={};Dg(Lg,{EventEmitter:()=>Kle,default:()=>gl,defaultMaxListeners:()=>Gle,init:()=>Yle,listenerCount:()=>Xle,on:()=>Zle,once:()=>Qle});var Kle,Gle,Yle,Xle,Zle,Qle,hy=Co(()=>{Zt(),Jt(),Qt(),Vq(),Vq(),gl.once=function(e,t){return new Promise((n,r)=>{function i(...o){a!==void 0&&e.removeListener("error",a),n(o)}let a;t!=="error"&&(a=o=>{e.removeListener(name,i),r(o)},e.once("error",a)),e.once(t,i)})},gl.on=function(e,t){let n=[],r=[],i=null,a=!1,o={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(i){let u=Promise.reject(i);return i=null,u}return a?createIterResult(void 0,!0):new Promise((u,f)=>r.push({resolve:u,reject:f}))},async return(){e.removeListener(t,s),e.removeListener("error",l),a=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){i=c,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),o;function s(...c){let u=r.shift();u?u.resolve(createIterResult(c,!1)):n.push(c)}function l(c){a=!0;let u=r.shift();u?u.reject(c):i=c,o.return()}},{EventEmitter:Kle,defaultMaxListeners:Gle,init:Yle,listenerCount:Xle,on:Zle,once:Qle}=gl}),zF=un((e,t)=>{Zt(),Jt(),Qt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=qa(),{EventEmitter:i}=(hy(),Si(Lg));function a(s){i.call(this,s)}r(a.prototype,i.prototype),r(a,i),a.prototype.pipe=function(s,l){let c=this;function u(y){s.writable&&s.write(y)===!1&&c.pause&&c.pause()}c.on("data",u);function f(){c.readable&&c.resume&&c.resume()}s.on("drain",f),!s._isStdio&&(!l||l.end!==!1)&&(c.on("end",h),c.on("close",m));let p=!1;function h(){p||(p=!0,s.end())}function m(){p||(p=!0,typeof s.destroy=="function"&&s.destroy())}function g(y){v(),i.listenerCount(this,"error")===0&&this.emit("error",y)}o(c,"error",g),o(s,"error",g);function v(){c.removeListener("data",u),s.removeListener("drain",f),c.removeListener("end",h),c.removeListener("close",m),c.removeListener("error",g),s.removeListener("error",g),c.removeListener("end",v),c.removeListener("close",v),s.removeListener("close",v)}return c.on("end",v),c.on("close",v),s.on("close",v),s.emit("pipe",c),s};function o(s,l,c){if(typeof s.prependListener=="function")return s.prependListener(l,c);!s._events||!s._events[l]?s.on(l,c):n(s._events[l])?s._events[l].unshift(c):s._events[l]=[c,s._events[l]]}t.exports={Stream:a,prependListener:o}}),pE=un((e,t)=>{Zt(),Jt(),Qt();var{AbortError:n,codes:r}=Gs(),{isNodeStream:i,isWebStream:a,kControllerErrorFunction:o}=Bf(),s=yh(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,f)=>{if(typeof u!="object"||!("aborted"in u))throw new l(f,"AbortSignal",u)};t.exports.addAbortSignal=function(u,f){if(c(u,"signal"),!i(f)&&!a(f))throw new l("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(u,f)},t.exports.addAbortSignalNoValidate=function(u,f){if(typeof u!="object"||!("aborted"in u))return f;let p=i(f)?()=>{f.destroy(new n(void 0,{cause:u.reason}))}:()=>{f[o](new n(void 0,{cause:u.reason}))};return u.aborted?p():(u.addEventListener("abort",p),s(f,()=>u.removeEventListener("abort",p))),f}}),_$e=un((e,t)=>{Zt(),Jt(),Qt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:a}=qa(),{Buffer:o}=(ko(),Si(_o)),{inspect:s}=Mf();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(l){let c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let c=this.head,u=""+c.data;for(;(c=c.next)!==null;)u+=l+c.data;return u}concat(l){if(this.length===0)return o.alloc(0);let c=o.allocUnsafe(l>>>0),u=this.head,f=0;for(;u;)i(c,u.data,f),f+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(lp.length)c+=p,l-=p.length;else{l===p.length?(c+=p,++f,u.next?this.head=u.next:this.head=this.tail=null):(c+=n(p,0,l),this.head=u,u.data=n(p,l));break}++f}while((u=u.next)!==null);return this.length-=f,c}_getBuffer(l){let c=o.allocUnsafe(l),u=l,f=this.head,p=0;do{let h=f.data;if(l>h.length)i(c,h,u-l),l-=h.length;else{l===h.length?(i(c,h,u-l),++p,f.next?this.head=f.next:this.head=this.tail=null):(i(c,new a(h.buffer,h.byteOffset,l),u-l),this.head=f,f.data=h.slice(l));break}++p}while((f=f.next)!==null);return this.length-=p,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),HF=un((e,t)=>{Zt(),Jt(),Qt();var{MathFloor:n,NumberIsInteger:r}=qa(),{ERR_INVALID_ARG_VALUE:i}=Gs().codes;function a(l,c,u){return l.highWaterMark!=null?l.highWaterMark:c?l[u]:null}function o(l){return l?16:16*1024}function s(l,c,u,f){let p=a(c,f,u);if(p!=null){if(!r(p)||p<0){let h=f?`options.${u}`:"options.highWaterMark";throw new i(h,p)}return n(p)}return o(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:o}});function qq(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return n===-1&&(n=t),[n,n===t?0:4-n%4]}function k$e(e,t,n){for(var r,i,a=[],o=t;o>18&63]+Gc[i>>12&63]+Gc[i>>6&63]+Gc[63&i]);return a.join("")}function df(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,an.prototype),t}function an(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return SI(e)}return Jle(e,t,n)}function Jle(e,t,n){if(typeof e=="string")return function(a,o){if(typeof o=="string"&&o!==""||(o="utf8"),!an.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var s=0|tce(a,o),l=df(s),c=l.write(a,o);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return qM(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ff(e,ArrayBuffer)||e&&ff(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ff(e,SharedArrayBuffer)||e&&ff(e.buffer,SharedArrayBuffer)))return E$e(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return an.from(r,t,n);var i=function(a){if(an.isBuffer(a)){var o=0|UF(a.length),s=df(o);return s.length===0||a.copy(s,0,0,o),s}if(a.length!==void 0)return typeof a.length!="number"||WF(a.length)?df(0):qM(a);if(a.type==="Buffer"&&Array.isArray(a.data))return qM(a.data)}(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return an.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function ece(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function SI(e){return ece(e),df(e<0?0:0|UF(e))}function qM(e){for(var t=e.length<0?0:0|UF(e.length),n=df(t),r=0;r=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function tce(e,t){if(an.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ff(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return CI(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ace(e).length;default:if(i)return r?-1:CI(e).length;t=(""+t).toLowerCase(),i=!0}}function $$e(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A$e(this,t,n);case"utf8":case"utf-8":return rce(this,t,n);case"ascii":return j$e(this,t,n);case"latin1":case"binary":return N$e(this,t,n);case"base64":return I$e(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D$e(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function zh(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Kq(e,t,n,r,i){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),WF(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t=="string"&&(t=an.from(t,r)),an.isBuffer(t))return t.length===0?-1:Gq(e,t,n,r,i);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Gq(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Gq(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(h,m){return o===1?h[m]:h.readUInt16BE(m*o)}if(i){var u=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var f=!0,p=0;pi&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>8,l=o%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function I$e(e,t,n){return t===0&&n===e.length?_k.fromByteArray(e):_k.fromByteArray(e.slice(t,n))}function rce(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(p){var h=p.length;if(h<=4096)return String.fromCharCode.apply(String,p);for(var m="",g=0;gr)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function Es(e,t,n,r,i,a){if(!an.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function ice(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Yq(e,t,n,r,i){return t=+t,n>>>=0,i||ice(e,0,n,4),am.write(e,t,n,r,23,4),n+4}function Xq(e,t,n,r,i){return t=+t,n>>>=0,i||ice(e,0,n,8),am.write(e,t,n,r,52,8),n+8}function CI(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function ace(e){return _k.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(oce,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function hE(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ff(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function WF(e){return e!=e}function Zq(e,t){for(var n in e)t[n]=e[n]}function Hh(e,t,n){return Dc(e,t,n)}function _b(e){var t;switch(this.encoding=function(n){var r=function(i){if(!i)return"utf8";for(var a;;)switch(i){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return i;default:if(a)return;i=(""+i).toLowerCase(),a=!0}}(n);if(typeof r!="string"&&(kk.isEncoding===_I||!_I(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=L$e,this.end=B$e,t=4;break;case"utf8":this.fillLast=F$e,t=4;break;case"base64":this.text=z$e,this.end=H$e,t=3;break;default:return this.write=U$e,this.end=W$e,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=kk.allocUnsafe(t)}function KM(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function F$e(e){var t=this.lastTotal-this.lastNeed,n=function(r,i,a){if((192&i[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&i.length>1){if((192&i[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&i.length>2&&(192&i[2])!=128)return r.lastNeed=2,"�"}}(this,e);return n!==void 0?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function L$e(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function B$e(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function z$e(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function H$e(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function U$e(e){return e.toString(this.encoding)}function W$e(e){return e&&e.length?this.write(e):""}var Qq,Gc,nl,Jq,eS,Uh,eK,tK,Au,_k,am,GM,oce,sce,kb,Eb,Dc,nK,hv,kk,_I,rK=Co(()=>{for(Zt(),Jt(),Qt(),Qq={byteLength:function(e){var t=qq(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=qq(e),i=r[0],a=r[1],o=new Jq(function(c,u,f){return 3*(u+f)/4-f}(0,i,a)),s=0,l=a>0?i-4:i;for(n=0;n>16&255,o[s++]=t>>8&255,o[s++]=255&t;return a===2&&(t=nl[e.charCodeAt(n)]<<2|nl[e.charCodeAt(n+1)]>>4,o[s++]=255&t),a===1&&(t=nl[e.charCodeAt(n)]<<10|nl[e.charCodeAt(n+1)]<<4|nl[e.charCodeAt(n+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t),o},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],a=0,o=n-r;ao?o:a+16383));return r===1?(t=e[n-1],i.push(Gc[t>>2]+Gc[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Gc[t>>10]+Gc[t>>4&63]+Gc[t<<2&63]+"=")),i.join("")}},Gc=[],nl=[],Jq=typeof Uint8Array<"u"?Uint8Array:Array,eS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uh=0,eK=eS.length;Uh>1,u=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+f],f+=p,u-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=c}return(h?-1:1)*o*Math.pow(2,a-r)},write:function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=m,s/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=m,o/=256,c-=8);e[n+h-m]|=128*g}},Au={},_k=Qq,am=tK,GM=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,Au.Buffer=an,Au.SlowBuffer=function(e){return+e!=e&&(e=0),an.alloc(+e)},Au.INSPECT_MAX_BYTES=50,Au.kMaxLength=2147483647,an.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),an.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(an.prototype,"parent",{enumerable:!0,get:function(){if(an.isBuffer(this))return this.buffer}}),Object.defineProperty(an.prototype,"offset",{enumerable:!0,get:function(){if(an.isBuffer(this))return this.byteOffset}}),an.poolSize=8192,an.from=function(e,t,n){return Jle(e,t,n)},Object.setPrototypeOf(an.prototype,Uint8Array.prototype),Object.setPrototypeOf(an,Uint8Array),an.alloc=function(e,t,n){return function(r,i,a){return ece(r),r<=0?df(r):i!==void 0?typeof a=="string"?df(r).fill(i,a):df(r).fill(i):df(r)}(e,t,n)},an.allocUnsafe=function(e){return SI(e)},an.allocUnsafeSlow=function(e){return SI(e)},an.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==an.prototype},an.compare=function(e,t){if(ff(e,Uint8Array)&&(e=an.from(e,e.offset,e.byteLength)),ff(t,Uint8Array)&&(t=an.from(t,t.offset,t.byteLength)),!an.isBuffer(e)||!an.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);it&&(e+=" ... "),""},GM&&(an.prototype[GM]=an.prototype.inspect),an.prototype.compare=function(e,t,n,r,i){if(ff(e,Uint8Array)&&(e=an.from(e,e.offset,e.byteLength)),!an.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return M$e(this,e,t,n);case"utf8":case"utf-8":return T$e(this,e,t,n);case"ascii":return nce(this,e,t,n);case"latin1":case"binary":return P$e(this,e,t,n);case"base64":return O$e(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R$e(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},an.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},an.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},an.prototype.readUInt8=function(e,t){return e>>>=0,t||Ya(e,1,this.length),this[e]},an.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Ya(e,2,this.length),this[e]|this[e+1]<<8},an.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Ya(e,2,this.length),this[e]<<8|this[e+1]},an.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},an.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},an.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},an.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},an.prototype.readInt8=function(e,t){return e>>>=0,t||Ya(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},an.prototype.readInt16LE=function(e,t){e>>>=0,t||Ya(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},an.prototype.readInt16BE=function(e,t){e>>>=0,t||Ya(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},an.prototype.readInt32LE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},an.prototype.readInt32BE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},an.prototype.readFloatLE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),am.read(this,e,!0,23,4)},an.prototype.readFloatBE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),am.read(this,e,!1,23,4)},an.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Ya(e,8,this.length),am.read(this,e,!0,52,8)},an.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Ya(e,8,this.length),am.read(this,e,!1,52,8)},an.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,r||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},an.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,1,255,0),this[t]=255&e,t+1},an.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},an.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},an.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},an.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},an.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},an.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},an.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},an.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},an.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},an.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},an.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},an.prototype.writeFloatLE=function(e,t,n){return Yq(this,e,t,!0,n)},an.prototype.writeFloatBE=function(e,t,n){return Yq(this,e,t,!1,n)},an.prototype.writeDoubleLE=function(e,t,n){return Xq(this,e,t,!0,n)},an.prototype.writeDoubleBE=function(e,t,n){return Xq(this,e,t,!1,n)},an.prototype.copy=function(e,t,n,r){if(!an.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},an.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!an.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var i=e.charCodeAt(0);(r==="utf8"&&i<128||r==="latin1")&&(e=i)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(a=t;a=0?(l>0&&(i.lastNeed=l-1),l):--s=0?(l>0&&(i.lastNeed=l-2),l):--s=0?(l>0&&(l===2?l=0:i.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},_b.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},hv.StringDecoder,hv.StringDecoder}),lce={};Dg(lce,{StringDecoder:()=>cce,default:()=>hv});var cce,V$e=Co(()=>{Zt(),Jt(),Qt(),rK(),rK(),cce=hv.StringDecoder}),uce=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:a}=qa(),{Buffer:o}=(ko(),Si(_o)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Gs().codes;function c(u,f,p){let h;if(typeof f=="string"||f instanceof o)return new u({objectMode:!0,...p,read(){this.push(f),this.push(null)}});let m;if(f&&f[i])m=!0,h=f[i]();else if(f&&f[a])m=!1,h=f[a]();else throw new s("iterable",["Iterable"],f);let g=new u({objectMode:!0,highWaterMark:1,...p}),v=!1;g._read=function(){v||(v=!0,w())},g._destroy=function(b,C){r(y(b),()=>n.nextTick(C,b),k=>n.nextTick(C,k||b))};async function y(b){let C=b!=null,k=typeof h.throw=="function";if(C&&k){let{value:S,done:_}=await h.throw(b);if(await S,_)return}if(typeof h.return=="function"){let{value:S}=await h.return();await S}}async function w(){for(;;){try{let{value:b,done:C}=m?await h.next():h.next();if(C)g.push(null);else{let k=b&&typeof b.then=="function"?await b:b;if(k===null)throw v=!1,new l;if(g.push(k))continue;v=!1}}catch(b){g.destroy(b)}break}}return g}t.exports=c}),mE=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:o,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncIterator:p,Symbol:h}=qa();t.exports=B,B.ReadableState=V;var{EventEmitter:m}=(hy(),Si(Lg)),{Stream:g,prependListener:v}=zF(),{Buffer:y}=(ko(),Si(_o)),{addAbortSignal:w}=pE(),b=yh(),C=Mf().debuglog("stream",H=>{C=H}),k=_$e(),S=py(),{getHighWaterMark:_,getDefaultHighWaterMark:E}=HF(),{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:M,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:O,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:j}}=Gs(),{validateObject:I}=fE(),A=h("kPaused"),{StringDecoder:N}=(V$e(),Si(lce)),F=uce();c(B.prototype,g.prototype),c(B,g);var K=()=>{},{errorOrDestroy:L}=S;function V(H,G,de){typeof de!="boolean"&&(de=G instanceof Tf()),this.objectMode=!!(H&&H.objectMode),de&&(this.objectMode=this.objectMode||!!(H&&H.readableObjectMode)),this.highWaterMark=H?_(this,H,"readableHighWaterMark",de):E(!1),this.buffer=new k,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[A]=null,this.errorEmitted=!1,this.emitClose=!H||H.emitClose!==!1,this.autoDestroy=!H||H.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=H&&H.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,H&&H.encoding&&(this.decoder=new N(H.encoding),this.encoding=H.encoding)}function B(H){if(!(this instanceof B))return new B(H);let G=this instanceof Tf();this._readableState=new V(H,this,G),H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.construct=="function"&&(this._construct=H.construct),H.signal&&!G&&w(H.signal,this)),g.call(this,H),S.construct(this,()=>{this._readableState.needReadable&&le(this,this._readableState)})}B.prototype.destroy=S.destroy,B.prototype._undestroy=S.undestroy,B.prototype._destroy=function(H,G){G(H)},B.prototype[m.captureRejectionSymbol]=function(H){this.destroy(H)},B.prototype.push=function(H,G){return U(this,H,G,!1)},B.prototype.unshift=function(H,G){return U(this,H,G,!0)};function U(H,G,de,xe){C("readableAddChunk",G);let he=H._readableState,Ue;if(he.objectMode||(typeof G=="string"?(de=de||he.defaultEncoding,he.encoding!==de&&(xe&&he.encoding?G=y.from(G,de).toString(he.encoding):(G=y.from(G,de),de=""))):G instanceof y?de="":g._isUint8Array(G)?(G=g._uint8ArrayToBuffer(G),de=""):G!=null&&(Ue=new M("chunk",["string","Buffer","Uint8Array"],G))),Ue)L(H,Ue);else if(G===null)he.reading=!1,X(H,he);else if(he.objectMode||G&&G.length>0)if(xe)if(he.endEmitted)L(H,new j);else{if(he.destroyed||he.errored)return!1;Y(H,he,G,!0)}else if(he.ended)L(H,new O);else{if(he.destroyed||he.errored)return!1;he.reading=!1,he.decoder&&!de?(G=he.decoder.write(G),he.objectMode||G.length!==0?Y(H,he,G,!1):le(H,he)):Y(H,he,G,!1)}else xe||(he.reading=!1,le(H,he));return!he.ended&&(he.length0?(G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null,G.dataEmitted=!0,H.emit("data",de)):(G.length+=G.objectMode?1:de.length,xe?G.buffer.unshift(de):G.buffer.push(de),G.needReadable&&ae(H)),le(H,G)}B.prototype.isPaused=function(){let H=this._readableState;return H[A]===!0||H.flowing===!1},B.prototype.setEncoding=function(H){let G=new N(H);this._readableState.decoder=G,this._readableState.encoding=this._readableState.decoder.encoding;let de=this._readableState.buffer,xe="";for(let he of de)xe+=G.write(he);return de.clear(),xe!==""&&de.push(xe),this._readableState.length=xe.length,this};var ee=1073741824;function ie(H){if(H>ee)throw new R("size","<= 1GiB",H);return H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++,H}function Z(H,G){return H<=0||G.length===0&&G.ended?0:G.objectMode?1:a(H)?G.flowing&&G.length?G.buffer.first().length:G.length:H<=G.length?H:G.ended?G.length:0}B.prototype.read=function(H){C("read",H),H===void 0?H=NaN:i(H)||(H=o(H,10));let G=this._readableState,de=H;if(H>G.highWaterMark&&(G.highWaterMark=ie(H)),H!==0&&(G.emittedReadable=!1),H===0&&G.needReadable&&((G.highWaterMark!==0?G.length>=G.highWaterMark:G.length>0)||G.ended))return C("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?we(this):ae(this),null;if(H=Z(H,G),H===0&&G.ended)return G.length===0&&we(this),null;let xe=G.needReadable;if(C("need readable",xe),(G.length===0||G.length-H0?he=Se(H,G):he=null,he===null?(G.needReadable=G.length<=G.highWaterMark,H=0):(G.length-=H,G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null),G.length===0&&(G.ended||(G.needReadable=!0),de!==H&&G.ended&&we(this)),he!==null&&!G.errorEmitted&&!G.closeEmitted&&(G.dataEmitted=!0,this.emit("data",he)),he};function X(H,G){if(C("onEofChunk"),!G.ended){if(G.decoder){let de=G.decoder.end();de&&de.length&&(G.buffer.push(de),G.length+=G.objectMode?1:de.length)}G.ended=!0,G.sync?ae(H):(G.needReadable=!1,G.emittedReadable=!0,oe(H))}}function ae(H){let G=H._readableState;C("emitReadable",G.needReadable,G.emittedReadable),G.needReadable=!1,G.emittedReadable||(C("emitReadable",G.flowing),G.emittedReadable=!0,n.nextTick(oe,H))}function oe(H){let G=H._readableState;C("emitReadable_",G.destroyed,G.length,G.ended),!G.destroyed&&!G.errored&&(G.length||G.ended)&&(H.emit("readable"),G.emittedReadable=!1),G.needReadable=!G.flowing&&!G.ended&&G.length<=G.highWaterMark,$e(H)}function le(H,G){!G.readingMore&&G.constructed&&(G.readingMore=!0,n.nextTick(ce,H,G))}function ce(H,G){for(;!G.reading&&!G.ended&&(G.length1&&xe.pipes.includes(H)&&(C("false write response, pause",xe.awaitDrainWriters.size),xe.awaitDrainWriters.add(H)),de.pause()),ge||(ge=pe(de,H),H.on("drain",ge))}de.on("data",Xe);function Xe(gt){C("ondata");let Qe=H.write(gt);C("dest.write",Qe),Qe===!1&&Be()}function Ke(gt){if(C("onerror",gt),ut(),H.removeListener("error",Ke),H.listenerCount("error")===0){let Qe=H._writableState||H._readableState;Qe&&!Qe.errorEmitted?L(H,gt):H.emit("error",gt)}}v(H,"error",Ke);function qe(){H.removeListener("finish",Et),ut()}H.once("close",qe);function Et(){C("onfinish"),H.removeListener("close",qe),ut()}H.once("finish",Et);function ut(){C("unpipe"),de.unpipe(H)}return H.emit("pipe",de),H.writableNeedDrain===!0?xe.flowing&&Be():xe.flowing||(C("pipe resume"),de.resume()),H};function pe(H,G){return function(){let de=H._readableState;de.awaitDrainWriters===G?(C("pipeOnDrain",1),de.awaitDrainWriters=null):de.multiAwaitDrain&&(C("pipeOnDrain",de.awaitDrainWriters.size),de.awaitDrainWriters.delete(G)),(!de.awaitDrainWriters||de.awaitDrainWriters.size===0)&&H.listenerCount("data")&&H.resume()}}B.prototype.unpipe=function(H){let G=this._readableState,de={hasUnpiped:!1};if(G.pipes.length===0)return this;if(!H){let he=G.pipes;G.pipes=[],this.pause();for(let Ue=0;Ue0,xe.flowing!==!1&&this.resume()):H==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,C("on readable",xe.length,xe.reading),xe.length?ae(this):xe.reading||n.nextTick(re,this)),de},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(H,G){let de=g.prototype.removeListener.call(this,H,G);return H==="readable"&&n.nextTick(me,this),de},B.prototype.off=B.prototype.removeListener,B.prototype.removeAllListeners=function(H){let G=g.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&n.nextTick(me,this),G};function me(H){let G=H._readableState;G.readableListening=H.listenerCount("readable")>0,G.resumeScheduled&&G[A]===!1?G.flowing=!0:H.listenerCount("data")>0?H.resume():G.readableListening||(G.flowing=null)}function re(H){C("readable nexttick read 0"),H.read(0)}B.prototype.resume=function(){let H=this._readableState;return H.flowing||(C("resume"),H.flowing=!H.readableListening,fe(this,H)),H[A]=!1,this};function fe(H,G){G.resumeScheduled||(G.resumeScheduled=!0,n.nextTick(ve,H,G))}function ve(H,G){C("resume",G.reading),G.reading||H.read(0),G.resumeScheduled=!1,H.emit("resume"),$e(H),G.flowing&&!G.reading&&H.read(0)}B.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[A]=!0,this};function $e(H){let G=H._readableState;for(C("flow",G.flowing);G.flowing&&H.read()!==null;);}B.prototype.wrap=function(H){let G=!1;H.on("data",xe=>{!this.push(xe)&&H.pause&&(G=!0,H.pause())}),H.on("end",()=>{this.push(null)}),H.on("error",xe=>{L(this,xe)}),H.on("close",()=>{this.destroy()}),H.on("destroy",()=>{this.destroy()}),this._read=()=>{G&&H.resume&&(G=!1,H.resume())};let de=l(H);for(let xe=1;xe{he=We?$(he,We):null,de(),de=K});try{for(;;){let We=H.destroyed?null:H.read();if(We!==null)yield We;else{if(he)throw he;if(he===null)return;await new u(xe)}}}catch(We){throw he=$(he,We),he}finally{(he||(G==null?void 0:G.destroyOnReturn)!==!1)&&(he===void 0||H._readableState.autoDestroy)?S.destroyer(H,null):(H.off("readable",xe),Ue())}}s(B.prototype,{readable:{__proto__:null,get(){let H=this._readableState;return!!H&&H.readable!==!1&&!H.destroyed&&!H.errorEmitted&&!H.endEmitted},set(H){this._readableState&&(this._readableState.readable=!!H)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(H){this._readableState&&(this._readableState.flowing=H)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(H){this._readableState&&(this._readableState.destroyed=H)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(V.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[A]!==!1},set(H){this[A]=!!H}}}),B._fromList=Se;function Se(H,G){if(G.length===0)return null;let de;return G.objectMode?de=G.buffer.shift():!H||H>=G.length?(G.decoder?de=G.buffer.join(""):G.buffer.length===1?de=G.buffer.first():de=G.buffer.concat(G.length),G.buffer.clear()):de=G.buffer.consume(H,G.decoder),de}function we(H){let G=H._readableState;C("endReadable",G.endEmitted),G.endEmitted||(G.ended=!0,n.nextTick(se,G,H))}function se(H,G){if(C("endReadableNT",H.endEmitted,H.length),!H.errored&&!H.closeEmitted&&!H.endEmitted&&H.length===0){if(H.endEmitted=!0,G.emit("end"),G.writable&&G.allowHalfOpen===!1)n.nextTick(ye,G);else if(H.autoDestroy){let de=G._writableState;(!de||de.autoDestroy&&(de.finished||de.writable===!1))&&G.destroy()}}}function ye(H){H.writable&&!H.writableEnded&&!H.destroyed&&H.end()}B.from=function(H,G){return F(B,H,G)};var Oe;function z(){return Oe===void 0&&(Oe={}),Oe}B.fromWeb=function(H,G){return z().newStreamReadableFromReadableStream(H,G)},B.toWeb=function(H,G){return z().newReadableStreamFromStreamReadable(H,G)},B.wrap=function(H,G){var de,xe;return new B({objectMode:(de=(xe=H.readableObjectMode)!==null&&xe!==void 0?xe:H.objectMode)!==null&&de!==void 0?de:!0,...G,destroy(he,Ue){S.destroyer(H,he),Ue(he)}}).wrap(H)}}),dce=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:o,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=qa();t.exports=N,N.WritableState=I;var{EventEmitter:p}=(hy(),Si(Lg)),h=zF().Stream,{Buffer:m}=(ko(),Si(_o)),g=py(),{addAbortSignal:v}=pE(),{getHighWaterMark:y,getDefaultHighWaterMark:w}=HF(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:C,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:_,ERR_STREAM_ALREADY_FINISHED:E,ERR_STREAM_NULL_VALUES:$,ERR_STREAM_WRITE_AFTER_END:M,ERR_UNKNOWN_ENCODING:P}=Gs().codes,{errorOrDestroy:R}=g;l(N.prototype,h.prototype),l(N,h);function O(){}var j=u("kOnFinished");function I(re,fe,ve){typeof ve!="boolean"&&(ve=fe instanceof Tf()),this.objectMode=!!(re&&re.objectMode),ve&&(this.objectMode=this.objectMode||!!(re&&re.writableObjectMode)),this.highWaterMark=re?y(this,re,"writableHighWaterMark",ve):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let $e=!!(re&&re.decodeStrings===!1);this.decodeStrings=!$e,this.defaultEncoding=re&&re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=B.bind(void 0,fe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,A(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!re||re.emitClose!==!1,this.autoDestroy=!re||re.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[j]=[]}function A(re){re.buffered=[],re.bufferedIndex=0,re.allBuffers=!0,re.allNoop=!0}I.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},o(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function N(re){let fe=this instanceof Tf();if(!fe&&!a(N,this))return new N(re);this._writableState=new I(re,this,fe),re&&(typeof re.write=="function"&&(this._write=re.write),typeof re.writev=="function"&&(this._writev=re.writev),typeof re.destroy=="function"&&(this._destroy=re.destroy),typeof re.final=="function"&&(this._final=re.final),typeof re.construct=="function"&&(this._construct=re.construct),re.signal&&v(re.signal,this)),h.call(this,re),g.construct(this,()=>{let ve=this._writableState;ve.writing||ie(this,ve),oe(this,ve)})}o(N,f,{__proto__:null,value:function(re){return a(this,re)?!0:this!==N?!1:re&&re._writableState instanceof I}}),N.prototype.pipe=function(){R(this,new S)};function F(re,fe,ve,$e){let Ce=re._writableState;if(typeof ve=="function")$e=ve,ve=Ce.defaultEncoding;else{if(!ve)ve=Ce.defaultEncoding;else if(ve!=="buffer"&&!m.isEncoding(ve))throw new P(ve);typeof $e!="function"&&($e=O)}if(fe===null)throw new $;if(!Ce.objectMode)if(typeof fe=="string")Ce.decodeStrings!==!1&&(fe=m.from(fe,ve),ve="buffer");else if(fe instanceof m)ve="buffer";else if(h._isUint8Array(fe))fe=h._uint8ArrayToBuffer(fe),ve="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],fe);let be;return Ce.ending?be=new M:Ce.destroyed&&(be=new _("write")),be?(n.nextTick($e,be),R(re,be,!0),be):(Ce.pendingcb++,K(re,Ce,fe,ve,$e))}N.prototype.write=function(re,fe,ve){return F(this,re,fe,ve)===!0},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){let re=this._writableState;re.corked&&(re.corked--,re.writing||ie(this,re))},N.prototype.setDefaultEncoding=function(re){if(typeof re=="string"&&(re=c(re)),!m.isEncoding(re))throw new P(re);return this._writableState.defaultEncoding=re,this};function K(re,fe,ve,$e,Ce){let be=fe.objectMode?1:ve.length;fe.length+=be;let Se=fe.lengthve.bufferedIndex&&ie(re,ve),$e?ve.afterWriteTickInfo!==null&&ve.afterWriteTickInfo.cb===Ce?ve.afterWriteTickInfo.count++:(ve.afterWriteTickInfo={count:1,cb:Ce,stream:re,state:ve},n.nextTick(U,ve.afterWriteTickInfo)):Y(re,ve,1,Ce))}function U({stream:re,state:fe,count:ve,cb:$e}){return fe.afterWriteTickInfo=null,Y(re,fe,ve,$e)}function Y(re,fe,ve,$e){for(!fe.ending&&!re.destroyed&&fe.length===0&&fe.needDrain&&(fe.needDrain=!1,re.emit("drain"));ve-- >0;)fe.pendingcb--,$e();fe.destroyed&&ee(fe),oe(re,fe)}function ee(re){if(re.writing)return;for(let Ce=re.bufferedIndex;Ce1&&re._writev){fe.pendingcb-=be-1;let we=fe.allNoop?O:ye=>{for(let Oe=Se;Oe256?(ve.splice(0,Se),fe.bufferedIndex=0):fe.bufferedIndex=Se}fe.bufferProcessing=!1}N.prototype._write=function(re,fe,ve){if(this._writev)this._writev([{chunk:re,encoding:fe}],ve);else throw new C("_write()")},N.prototype._writev=null,N.prototype.end=function(re,fe,ve){let $e=this._writableState;typeof re=="function"?(ve=re,re=null,fe=null):typeof fe=="function"&&(ve=fe,fe=null);let Ce;if(re!=null){let be=F(this,re,fe);be instanceof i&&(Ce=be)}return $e.corked&&($e.corked=1,this.uncork()),Ce||(!$e.errored&&!$e.ending?($e.ending=!0,oe(this,$e,!0),$e.ended=!0):$e.finished?Ce=new E("end"):$e.destroyed&&(Ce=new _("end"))),typeof ve=="function"&&(Ce||$e.finished?n.nextTick(ve,Ce):$e[j].push(ve)),this};function Z(re){return re.ending&&!re.destroyed&&re.constructed&&re.length===0&&!re.errored&&re.buffered.length===0&&!re.finished&&!re.writing&&!re.errorEmitted&&!re.closeEmitted}function X(re,fe){let ve=!1;function $e(Ce){if(ve){R(re,Ce??k());return}if(ve=!0,fe.pendingcb--,Ce){let be=fe[j].splice(0);for(let Se=0;Se{Z(Ce)?le($e,Ce):Ce.pendingcb--},re,fe)):Z(fe)&&(fe.pendingcb++,le(re,fe))))}function le(re,fe){fe.pendingcb--,fe.finished=!0;let ve=fe[j].splice(0);for(let $e=0;$e{Zt(),Jt(),Qt();var n=Fg(),r=(ko(),Si(_o)),{isReadable:i,isWritable:a,isIterable:o,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=Bf(),f=yh(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:m}}=Gs(),{destroyer:g}=py(),v=Tf(),y=mE(),{createDeferredPromise:w}=Mf(),b=uce(),C=globalThis.Blob||r.Blob,k=typeof C<"u"?function(P){return P instanceof C}:function(P){return!1},S=globalThis.AbortController||BF().AbortController,{FunctionPrototypeCall:_}=qa(),E=class extends v{constructor(P){super(P),(P==null?void 0:P.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(P==null?void 0:P.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function P(R,O){if(u(R))return R;if(l(R))return M({readable:R});if(c(R))return M({writable:R});if(s(R))return M({writable:!1,readable:!1});if(typeof R=="function"){let{value:I,write:A,final:N,destroy:F}=$(R);if(o(I))return b(E,I,{objectMode:!0,write:A,final:N,destroy:F});let K=I==null?void 0:I.then;if(typeof K=="function"){let L,V=_(K,I,B=>{if(B!=null)throw new m("nully","body",B)},B=>{g(L,B)});return L=new E({objectMode:!0,readable:!1,write:A,final(B){N(async()=>{try{await V,n.nextTick(B,null)}catch(U){n.nextTick(B,U)}})},destroy:F})}throw new m("Iterable, AsyncIterable or AsyncFunction",O,I)}if(k(R))return P(R.arrayBuffer());if(o(R))return b(E,R,{objectMode:!0,writable:!1});if(typeof(R==null?void 0:R.writable)=="object"||typeof(R==null?void 0:R.readable)=="object"){let I=R!=null&&R.readable?l(R==null?void 0:R.readable)?R==null?void 0:R.readable:P(R.readable):void 0,A=R!=null&&R.writable?c(R==null?void 0:R.writable)?R==null?void 0:R.writable:P(R.writable):void 0;return M({readable:I,writable:A})}let j=R==null?void 0:R.then;if(typeof j=="function"){let I;return _(j,R,A=>{A!=null&&I.push(A),I.push(null)},A=>{g(I,A)}),I=new E({objectMode:!0,writable:!1,read(){}})}throw new h(O,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)};function $(P){let{promise:R,resolve:O}=w(),j=new S,I=j.signal;return{value:P(async function*(){for(;;){let A=R;R=null;let{chunk:N,done:F,cb:K}=await A;if(n.nextTick(K),F)return;if(I.aborted)throw new p(void 0,{cause:I.reason});({promise:R,resolve:O}=w()),yield N}}(),{signal:I}),write(A,N,F){let K=O;O=null,K({chunk:A,done:!1,cb:F})},final(A){let N=O;O=null,N({done:!0,cb:A})},destroy(A,N){j.abort(),N(A)}}}function M(P){let R=P.readable&&typeof P.readable.read!="function"?y.wrap(P.readable):P.readable,O=P.writable,j=!!i(R),I=!!a(O),A,N,F,K,L;function V(B){let U=K;K=null,U?U(B):B&&L.destroy(B)}return L=new E({readableObjectMode:!!(R!=null&&R.readableObjectMode),writableObjectMode:!!(O!=null&&O.writableObjectMode),readable:j,writable:I}),I&&(f(O,B=>{I=!1,B&&g(R,B),V(B)}),L._write=function(B,U,Y){O.write(B,U)?Y():A=Y},L._final=function(B){O.end(),N=B},O.on("drain",function(){if(A){let B=A;A=null,B()}}),O.on("finish",function(){if(N){let B=N;N=null,B()}})),j&&(f(R,B=>{j=!1,B&&g(R,B),V(B)}),R.on("readable",function(){if(F){let B=F;F=null,B()}}),R.on("end",function(){L.push(null)}),L._read=function(){for(;;){let B=R.read();if(B===null){F=L._read;return}if(!L.push(B))return}}),L._destroy=function(B,U){!B&&K!==null&&(B=new p),F=null,A=null,N=null,K===null?U(B):(K=U,g(O,B),g(R,B))},L}}),Tf=un((e,t)=>{Zt(),Jt(),Qt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=qa();t.exports=l;var o=mE(),s=dce();a(l.prototype,o.prototype),a(l,o);{let p=i(s.prototype);for(let h=0;h{Zt(),Jt(),Qt();var{ObjectSetPrototypeOf:n,Symbol:r}=qa();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Gs().codes,a=Tf(),{getHighWaterMark:o}=HF();n(l.prototype,a.prototype),n(l,a);var s=r("kCallback");function l(f){if(!(this instanceof l))return new l(f);let p=f?o(this,f,"readableHighWaterMark",!0):null;p===0&&(f={...f,highWaterMark:null,readableHighWaterMark:p,writableHighWaterMark:f.writableHighWaterMark||0}),a.call(this,f),this._readableState.sync=!1,this[s]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function c(f){typeof this._flush=="function"&&!this.destroyed?this._flush((p,h)=>{if(p){f?f(p):this.destroy(p);return}h!=null&&this.push(h),this.push(null),f&&f()}):(this.push(null),f&&f())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(f,p,h){throw new i("_transform()")},l.prototype._write=function(f,p,h){let m=this._readableState,g=this._writableState,v=m.length;this._transform(f,p,(y,w)=>{if(y){h(y);return}w!=null&&this.push(w),g.ended||v===m.length||m.length{Zt(),Jt(),Qt();var{ObjectSetPrototypeOf:n}=qa();t.exports=i;var r=fce();n(i.prototype,r.prototype),n(i,r);function i(a){if(!(this instanceof i))return new i(a);r.call(this,a)}i.prototype._transform=function(a,o,s){s(null,a)}}),VF=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:a}=qa(),o=yh(),{once:s}=Mf(),l=py(),c=Tf(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=Gs(),{validateFunction:y,validateAbortSignal:w}=fE(),{isIterable:b,isReadable:C,isReadableNodeStream:k,isNodeStream:S,isTransformStream:_,isWebStream:E,isReadableStream:$,isReadableEnded:M}=Bf(),P=globalThis.AbortController||BF().AbortController,R,O;function j(U,Y,ee){let ie=!1;U.on("close",()=>{ie=!0});let Z=o(U,{readable:Y,writable:ee},X=>{ie=!X});return{destroy:X=>{ie||(ie=!0,l.destroyer(U,X||new m("pipe")))},cleanup:Z}}function I(U){return y(U[U.length-1],"streams[stream.length - 1]"),U.pop()}function A(U){if(b(U))return U;if(k(U))return N(U);throw new f("val",["Readable","Iterable","AsyncIterable"],U)}async function*N(U){O||(O=mE()),yield*O.prototype[a].call(U)}async function F(U,Y,ee,{end:ie}){let Z,X=null,ae=ce=>{if(ce&&(Z=ce),X){let pe=X;X=null,pe()}},oe=()=>new i((ce,pe)=>{Z?pe(Z):X=()=>{Z?pe(Z):ce()}});Y.on("drain",ae);let le=o(Y,{readable:!1},ae);try{Y.writableNeedDrain&&await oe();for await(let ce of U)Y.write(ce)||await oe();ie&&Y.end(),await oe(),ee()}catch(ce){ee(Z!==ce?u(Z,ce):ce)}finally{le(),Y.off("drain",ae)}}async function K(U,Y,ee,{end:ie}){_(Y)&&(Y=Y.writable);let Z=Y.getWriter();try{for await(let X of U)await Z.ready,Z.write(X).catch(()=>{});await Z.ready,ie&&await Z.close(),ee()}catch(X){try{await Z.abort(X),ee(X)}catch(ae){ee(ae)}}}function L(...U){return V(U,s(I(U)))}function V(U,Y,ee){if(U.length===1&&r(U[0])&&(U=U[0]),U.length<2)throw new h("streams");let ie=new P,Z=ie.signal,X=ee==null?void 0:ee.signal,ae=[];w(X,"options.signal");function oe(){fe(new v)}X==null||X.addEventListener("abort",oe);let le,ce,pe=[],me=0;function re(be){fe(be,--me===0)}function fe(be,Se){if(be&&(!le||le.code==="ERR_STREAM_PREMATURE_CLOSE")&&(le=be),!(!le&&!Se)){for(;pe.length;)pe.shift()(le);X==null||X.removeEventListener("abort",oe),ie.abort(),Se&&(le||ae.forEach(we=>we()),n.nextTick(Y,le,ce))}}let ve;for(let be=0;be0,ye=we||(ee==null?void 0:ee.end)!==!1,Oe=be===U.length-1;if(S(Se)){let z=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&re(H)};if(ye){let{destroy:H,cleanup:G}=j(Se,we,se);pe.push(H),C(Se)&&Oe&&ae.push(G)}Se.on("error",z),C(Se)&&Oe&&ae.push(()=>{Se.removeListener("error",z)})}if(be===0)if(typeof Se=="function"){if(ve=Se({signal:Z}),!b(ve))throw new p("Iterable, AsyncIterable or Stream","source",ve)}else b(Se)||k(Se)||_(Se)?ve=Se:ve=c.from(Se);else if(typeof Se=="function"){if(_(ve)){var $e;ve=A(($e=ve)===null||$e===void 0?void 0:$e.readable)}else ve=A(ve);if(ve=Se(ve,{signal:Z}),we){if(!b(ve,!0))throw new p("AsyncIterable",`transform[${be-1}]`,ve)}else{var Ce;R||(R=pce());let z=new R({objectMode:!0}),H=(Ce=ve)===null||Ce===void 0?void 0:Ce.then;if(typeof H=="function")me++,H.call(ve,xe=>{ce=xe,xe!=null&&z.write(xe),ye&&z.end(),n.nextTick(re)},xe=>{z.destroy(xe),n.nextTick(re,xe)});else if(b(ve,!0))me++,F(ve,z,re,{end:ye});else if($(ve)||_(ve)){let xe=ve.readable||ve;me++,F(xe,z,re,{end:ye})}else throw new p("AsyncIterable or Promise","destination",ve);ve=z;let{destroy:G,cleanup:de}=j(ve,!1,!0);pe.push(G),Oe&&ae.push(de)}}else if(S(Se)){if(k(ve)){me+=2;let z=B(ve,Se,re,{end:ye});C(Se)&&Oe&&ae.push(z)}else if(_(ve)||$(ve)){let z=ve.readable||ve;me++,F(z,Se,re,{end:ye})}else if(b(ve))me++,F(ve,Se,re,{end:ye});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ve);ve=Se}else if(E(Se)){if(k(ve))me++,K(A(ve),Se,re,{end:ye});else if($(ve)||b(ve))me++,K(ve,Se,re,{end:ye});else if(_(ve))me++,K(ve.readable,Se,re,{end:ye});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ve);ve=Se}else ve=c.from(Se)}return(Z!=null&&Z.aborted||X!=null&&X.aborted)&&n.nextTick(oe),ve}function B(U,Y,ee,{end:ie}){let Z=!1;if(Y.on("close",()=>{Z||ee(new g)}),U.pipe(Y,{end:!1}),ie){let X=function(){Z=!0,Y.end()};M(U)?n.nextTick(X):U.once("end",X)}else ee();return o(U,{readable:!0,writable:!1},X=>{let ae=U._readableState;X&&X.code==="ERR_STREAM_PREMATURE_CLOSE"&&ae&&ae.ended&&!ae.errored&&!ae.errorEmitted?U.once("end",ee).once("error",ee):ee(X)}),o(Y,{readable:!1,writable:!0},ee)}t.exports={pipelineImpl:V,pipeline:L}}),hce=un((e,t)=>{Zt(),Jt(),Qt();var{pipeline:n}=VF(),r=Tf(),{destroyer:i}=py(),{isNodeStream:a,isReadable:o,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:f}=Bf(),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:m}}=Gs(),g=yh();t.exports=function(...v){if(v.length===0)throw new m("streams");if(v.length===1)return r.from(v[0]);let y=[...v];if(typeof v[0]=="function"&&(v[0]=r.from(v[0])),typeof v[v.length-1]=="function"){let R=v.length-1;v[R]=r.from(v[R])}for(let R=0;R0&&!(s(v[R])||u(v[R])||c(v[R])))throw new h(`streams[${R}]`,y[R],"must be writable")}let w,b,C,k,S;function _(R){let O=k;k=null,O?O(R):R?S.destroy(R):!P&&!M&&S.destroy()}let E=v[0],$=n(v,_),M=!!(s(E)||u(E)||c(E)),P=!!(o($)||f($)||c($));if(S=new r({writableObjectMode:!!(E!=null&&E.writableObjectMode),readableObjectMode:!!($!=null&&$.writableObjectMode),writable:M,readable:P}),M){if(a(E))S._write=function(O,j,I){E.write(O,j)?I():w=I},S._final=function(O){E.end(),b=O},E.on("drain",function(){if(w){let O=w;w=null,O()}});else if(l(E)){let O=(c(E)?E.writable:E).getWriter();S._write=async function(j,I,A){try{await O.ready,O.write(j).catch(()=>{}),A()}catch(N){A(N)}},S._final=async function(j){try{await O.ready,O.close().catch(()=>{}),b=j}catch(I){j(I)}}}let R=c($)?$.readable:$;g(R,()=>{if(b){let O=b;b=null,O()}})}if(P){if(a($))$.on("readable",function(){if(C){let R=C;C=null,R()}}),$.on("end",function(){S.push(null)}),S._read=function(){for(;;){let R=$.read();if(R===null){C=S._read;return}if(!S.push(R))return}};else if(l($)){let R=(c($)?$.readable:$).getReader();S._read=async function(){for(;;)try{let{value:O,done:j}=await R.read();if(!S.push(O))return;if(j){S.push(null);return}}catch{return}}}}return S._destroy=function(R,O){!R&&k!==null&&(R=new p),C=null,w=null,b=null,k===null?O(R):(k=O,a($)&&i($,R))},S}}),K$e=un((e,t)=>{Zt(),Jt(),Qt();var n=globalThis.AbortController||BF().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=Gs(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=fE(),f=qa().Symbol("kWeak"),{finished:p}=yh(),h=hce(),{addAbortSignalNoValidate:m}=pE(),{isWritable:g,isNodeStream:v}=Bf(),{ArrayPrototypePush:y,MathFloor:w,Number:b,NumberIsNaN:C,Promise:k,PromiseReject:S,PromisePrototypeThen:_,Symbol:E}=qa(),$=E("kEmpty"),M=E("kEof");function P(ie,Z){if(Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal"),v(ie)&&!g(ie))throw new r("stream",ie,"must be writable");let X=h(this,ie);return Z!=null&&Z.signal&&m(Z.signal,X),X}function R(ie,Z){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal");let X=1;return(Z==null?void 0:Z.concurrency)!=null&&(X=w(Z.concurrency)),c(X,"concurrency",1),(async function*(){var ae,oe;let le=new n,ce=this,pe=[],me=le.signal,re={signal:me},fe=()=>le.abort();Z!=null&&(ae=Z.signal)!==null&&ae!==void 0&&ae.aborted&&fe(),Z==null||(oe=Z.signal)===null||oe===void 0||oe.addEventListener("abort",fe);let ve,$e,Ce=!1;function be(){Ce=!0}async function Se(){try{for await(let ye of ce){var we;if(Ce)return;if(me.aborted)throw new s;try{ye=ie(ye,re)}catch(Oe){ye=S(Oe)}ye!==$&&(typeof((we=ye)===null||we===void 0?void 0:we.catch)=="function"&&ye.catch(be),pe.push(ye),ve&&(ve(),ve=null),!Ce&&pe.length&&pe.length>=X&&await new k(Oe=>{$e=Oe}))}pe.push(M)}catch(ye){let Oe=S(ye);_(Oe,void 0,be),pe.push(Oe)}finally{var se;Ce=!0,ve&&(ve(),ve=null),Z==null||(se=Z.signal)===null||se===void 0||se.removeEventListener("abort",fe)}}Se();try{for(;;){for(;pe.length>0;){let we=await pe[0];if(we===M)return;if(me.aborted)throw new s;we!==$&&(yield we),pe.shift(),$e&&($e(),$e=null)}await new k(we=>{ve=we})}}finally{le.abort(),Ce=!0,$e&&($e(),$e=null)}}).call(this)}function O(ie=void 0){return ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal"),(async function*(){let Z=0;for await(let ae of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s({cause:ie.signal.reason});yield[Z++,ae]}}).call(this)}async function j(ie,Z=void 0){for await(let X of F.call(this,ie,Z))return!0;return!1}async function I(ie,Z=void 0){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);return!await j.call(this,async(...X)=>!await ie(...X),Z)}async function A(ie,Z){for await(let X of F.call(this,ie,Z))return X}async function N(ie,Z){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);async function X(ae,oe){return await ie(ae,oe),$}for await(let ae of R.call(this,X,Z));}function F(ie,Z){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);async function X(ae,oe){return await ie(ae,oe)?ae:$}return R.call(this,X,Z)}var K=class extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function L(ie,Z,X){var ae;if(typeof ie!="function")throw new i("reducer",["Function","AsyncFunction"],ie);X!=null&&u(X,"options"),(X==null?void 0:X.signal)!=null&&l(X.signal,"options.signal");let oe=arguments.length>1;if(X!=null&&(ae=X.signal)!==null&&ae!==void 0&&ae.aborted){let re=new s(void 0,{cause:X.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(re)),re}let le=new n,ce=le.signal;if(X!=null&&X.signal){let re={once:!0,[f]:this};X.signal.addEventListener("abort",()=>le.abort(),re)}let pe=!1;try{for await(let re of this){var me;if(pe=!0,X!=null&&(me=X.signal)!==null&&me!==void 0&&me.aborted)throw new s;oe?Z=await ie(Z,re,{signal:ce}):(Z=re,oe=!0)}if(!pe&&!oe)throw new K}finally{le.abort()}return Z}async function V(ie){ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal");let Z=[];for await(let ae of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s(void 0,{cause:ie.signal.reason});y(Z,ae)}return Z}function B(ie,Z){let X=R.call(this,ie,Z);return(async function*(){for await(let ae of X)yield*ae}).call(this)}function U(ie){if(ie=b(ie),C(ie))return 0;if(ie<0)throw new o("number",">= 0",ie);return ie}function Y(ie,Z=void 0){return Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal"),ie=U(ie),(async function*(){var X;if(Z!=null&&(X=Z.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let oe of this){var ae;if(Z!=null&&(ae=Z.signal)!==null&&ae!==void 0&&ae.aborted)throw new s;ie--<=0&&(yield oe)}}).call(this)}function ee(ie,Z=void 0){return Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal"),ie=U(ie),(async function*(){var X;if(Z!=null&&(X=Z.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let oe of this){var ae;if(Z!=null&&(ae=Z.signal)!==null&&ae!==void 0&&ae.aborted)throw new s;if(ie-- >0)yield oe;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:O,drop:Y,filter:F,flatMap:B,map:R,take:ee,compose:P},t.exports.promiseReturningOperators={every:I,forEach:N,reduce:L,toArray:V,some:j,find:A}}),mce=un((e,t)=>{Zt(),Jt(),Qt();var{ArrayPrototypePop:n,Promise:r}=qa(),{isIterable:i,isNodeStream:a,isWebStream:o}=Bf(),{pipelineImpl:s}=VF(),{finished:l}=yh();gce();function c(...u){return new r((f,p)=>{let h,m,g=u[u.length-1];if(g&&typeof g=="object"&&!a(g)&&!i(g)&&!o(g)){let v=n(u);h=v.signal,m=v.end}s(u,(v,y)=>{v?p(v):f(y)},{signal:h,end:m})})}t.exports={finished:l,pipeline:c}}),gce=un((e,t)=>{Zt(),Jt(),Qt();var{Buffer:n}=(ko(),Si(_o)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:a}=qa(),{promisify:{custom:o}}=Mf(),{streamReturningOperators:s,promiseReturningOperators:l}=K$e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Gs(),u=hce(),{pipeline:f}=VF(),{destroyer:p}=py(),h=yh(),m=mce(),g=Bf(),v=t.exports=zF().Stream;v.isDisturbed=g.isDisturbed,v.isErrored=g.isErrored,v.isReadable=g.isReadable,v.Readable=mE();for(let w of i(s)){let b=function(...k){if(new.target)throw c();return v.Readable.from(a(C,this,k))},C=s[w];r(b,"name",{__proto__:null,value:C.name}),r(b,"length",{__proto__:null,value:C.length}),r(v.Readable.prototype,w,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(let w of i(l)){let b=function(...k){if(new.target)throw c();return a(C,this,k)},C=l[w];r(b,"name",{__proto__:null,value:C.name}),r(b,"length",{__proto__:null,value:C.length}),r(v.Readable.prototype,w,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}v.Writable=dce(),v.Duplex=Tf(),v.Transform=fce(),v.PassThrough=pce(),v.pipeline=f;var{addAbortSignal:y}=pE();v.addAbortSignal=y,v.finished=h,v.destroy=p,v.compose=u,r(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(f,o,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(h,o,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(w){return w instanceof Uint8Array},v._uint8ArrayToBuffer=function(w){return n.from(w.buffer,w.byteOffset,w.byteLength)}}),Bg=un((e,t)=>{Zt(),Jt(),Qt();var n=gce(),r=mce(),i=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=i,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports}),G$e=un((e,t)=>{Zt(),Jt(),Qt(),typeof Object.create=="function"?t.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,r){if(r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}}}),Y$e=un((e,t)=>{Zt(),Jt(),Qt();var{Buffer:n}=(ko(),Si(_o)),r=Symbol.for("BufferList");function i(a){if(!(this instanceof i))return new i(a);i._init.call(this,a)}i._init=function(a){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,a&&this.append(a)},i.prototype._new=function(a){return new i(a)},i.prototype._offset=function(a){if(a===0)return[0,0];let o=0;for(let s=0;sthis.length||a<0)return;let o=this._offset(a);return this._bufs[o[0]][o[1]]},i.prototype.slice=function(a,o){return typeof a=="number"&&a<0&&(a+=this.length),typeof o=="number"&&o<0&&(o+=this.length),this.copy(null,0,a,o)},i.prototype.copy=function(a,o,s,l){if((typeof s!="number"||s<0)&&(s=0),(typeof l!="number"||l>this.length)&&(l=this.length),s>=this.length||l<=0)return a||n.alloc(0);let c=!!a,u=this._offset(s),f=l-s,p=f,h=c&&o||0,m=u[1];if(s===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let g=0;gv)this._bufs[g].copy(a,h,m),h+=v;else{this._bufs[g].copy(a,h,m,m+p),h+=v;break}p-=v,m&&(m=0)}return a.length>h?a.slice(0,h):a},i.prototype.shallowSlice=function(a,o){if(a=a||0,o=typeof o!="number"?this.length:o,a<0&&(a+=this.length),o<0&&(o+=this.length),a===o)return this._new();let s=this._offset(a),l=this._offset(o),c=this._bufs.slice(s[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),s[1]!==0&&(c[0]=c[0].slice(s[1])),this._new(c)},i.prototype.toString=function(a,o,s){return this.slice(o,s).toString(a)},i.prototype.consume=function(a){if(a=Math.trunc(a),Number.isNaN(a)||a<=0)return this;for(;this._bufs.length;)if(a>=this._bufs[0].length)a-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(a),this.length-=a;break}return this},i.prototype.duplicate=function(){let a=this._new();for(let o=0;othis.length?this.length:o;let l=this._offset(o),c=l[0],u=l[1];for(;c=a.length){let p=f.indexOf(a,u);if(p!==-1)return this._reverseOffset([c,p]);u=f.length-a.length+1}else{let p=this._reverseOffset([c,u]);if(this._match(p,a))return p;u++}u=0}return-1},i.prototype._match=function(a,o){if(this.length-a{Zt(),Jt(),Qt();var n=Bg().Duplex,r=G$e(),i=Y$e();function a(o){if(!(this instanceof a))return new a(o);if(typeof o=="function"){this._callback=o;let s=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",s)}),this.on("unpipe",function(l){l.removeListener("error",s)}),o=null}i._init.call(this,o),n.call(this)}r(a,n),Object.assign(a.prototype,i.prototype),a.prototype._new=function(o){return new a(o)},a.prototype._write=function(o,s,l){this._appendBuffer(o),typeof l=="function"&&l()},a.prototype._read=function(o){if(!this.length)return this.push(null);o=Math.min(o,this.length),this.push(this.slice(0,o)),this.consume(o)},a.prototype.end=function(o){n.prototype.end.call(this,o),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(o,s){this._bufs.length=0,this.length=0,s(o)},a.prototype._isBufferList=function(o){return o instanceof a||o instanceof i||a.isBufferList(o)},a.isBufferList=i.isBufferList,t.exports=a,t.exports.BufferListStream=a,t.exports.BufferList=i}),Z$e=un((e,t)=>{Zt(),Jt(),Qt();var n=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};t.exports=n}),vce=un((e,t)=>{Zt(),Jt(),Qt();var n=t.exports,{Buffer:r}=(ko(),Si(_o));n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},n.requiredHeaderFlagsErrors={};for(let a in n.requiredHeaderFlags){let o=n.requiredHeaderFlags[a];n.requiredHeaderFlagsErrors[a]="Invalid header flag bits, must be 0x"+o.toString(16)+" for "+n.types[a]+" packet"}n.codes={};for(let a in n.types){let o=n.types[a];n.codes[o]=a}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=r.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=r.from([n.codes.connack<[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[a]<r.from([a])),n.EMPTY={pingreq:r.from([n.codes.pingreq<<4,0]),pingresp:r.from([n.codes.pingresp<<4,0]),disconnect:r.from([n.codes.disconnect<<4,0])},n.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},n.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},n.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},n.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),Q$e=un((e,t)=>{Zt(),Jt(),Qt();var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(p,h){h=h||{};var m=typeof p;if(m==="string"&&p.length>0)return l(p);if(m==="number"&&isFinite(p))return h.long?u(p):c(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function l(p){if(p=String(p),!(p.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(h){var m=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*a;case"hours":case"hour":case"hrs":case"hr":case"h":return m*i;case"minutes":case"minute":case"mins":case"min":case"m":return m*r;case"seconds":case"second":case"secs":case"sec":case"s":return m*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function c(p){var h=Math.abs(p);return h>=a?Math.round(p/a)+"d":h>=i?Math.round(p/i)+"h":h>=r?Math.round(p/r)+"m":h>=n?Math.round(p/n)+"s":p+"ms"}function u(p){var h=Math.abs(p);return h>=a?f(p,h,a,"day"):h>=i?f(p,h,i,"hour"):h>=r?f(p,h,r,"minute"):h>=n?f(p,h,n,"second"):p+" ms"}function f(p,h,m,g){var v=h>=m*1.5;return Math.round(p/m)+" "+g+(v?"s":"")}}),J$e=un((e,t)=>{Zt(),Jt(),Qt();function n(r){a.debug=a,a.default=a,a.coerce=f,a.disable=l,a.enable=s,a.enabled=c,a.humanize=Q$e(),a.destroy=p,Object.keys(r).forEach(h=>{a[h]=r[h]}),a.names=[],a.skips=[],a.formatters={};function i(h){let m=0;for(let g=0;g{if(E==="%%")return"%";_++;let M=a.formatters[$];if(typeof M=="function"){let P=b[_];E=M.call(C,P),b.splice(_,1),_--}return E}),a.formatArgs.call(C,b),(C.log||a.log).apply(C,b)}return w.namespace=h,w.useColors=a.useColors(),w.color=a.selectColor(h),w.extend=o,w.destroy=a.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==a.namespaces&&(v=a.namespaces,y=a.enabled(h)),y),set:b=>{g=b}}),typeof a.init=="function"&&a.init(w),w}function o(h,m){let g=a(this.namespace+(typeof m>"u"?":":m)+h);return g.log=this.log,g}function s(h){a.save(h),a.namespaces=h,a.names=[],a.skips=[];let m,g=(typeof h=="string"?h:"").split(/[\s,]+/),v=g.length;for(m=0;m"-"+m)].join(",");return a.enable(""),h}function c(h){if(h[h.length-1]==="*")return!0;let m,g;for(m=0,g=a.skips.length;m{Zt(),Jt(),Qt(),e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,f=0;l[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(u++,p==="%c"&&(f=u))}),l.splice(f,0,c)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function a(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof li<"u"&&"env"in li&&(l=li.env.DEBUG),l}function o(){try{return localStorage}catch{}}t.exports=J$e()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),e7e=un((e,t)=>{Zt(),Jt(),Qt();var n=X$e(),{EventEmitter:r}=(hy(),Si(Lg)),i=Z$e(),a=vce(),o=Pf()("mqtt-packet:parser"),s=class kI extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof kI?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new kI().parser(c)}_resetState(){o("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new i,this.error=null,this._list=n(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),o("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,o("parse: state complete. _stateCounter is now: %d",this._stateCounter),o("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return o("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let c=this._list.readUInt8(0),u=c>>a.CMD_SHIFT;this.packet.cmd=a.types[u];let f=c&15,p=a.requiredHeaderFlags[u];return p!=null&&f!==p?this._emitError(new Error(a.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&a.RETAIN_MASK)!==0,this.packet.qos=c>>a.QOS_SHIFT&a.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&a.DUP_MASK)!==0,o("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),o("_parseLength %d",c.value),!!c}_parsePayload(){o("_parsePayload: payload %O",this._list);let c=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c=!0}return o("_parsePayload complete result: %s",c),c}_parseConnect(){o("_parseConnect");let c,u,f,p,h={},m=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=g,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(m.protocolVersion=this._list.readUInt8(this._pos),m.protocolVersion>=128&&(m.bridgeMode=!0,m.protocolVersion=m.protocolVersion-128),m.protocolVersion!==3&&m.protocolVersion!==4&&m.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));h.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,h.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,h.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),y=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT;if(h.will)m.will={},m.will.retain=v,m.will.qos=y;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(y)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(m.clean=(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK)!==0,this._pos++,m.keepalive=this._parseNum(),m.keepalive===-1)return this._emitError(new Error("Packet too short"));if(m.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(m.properties=b)}let w=this._parseString();if(w===null)return this._emitError(new Error("Packet too short"));if(m.clientId=w,o("_parseConnect: packet.clientId: %s",m.clientId),h.will){if(m.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(m.will.properties=b)}if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse will topic"));if(m.will.topic=c,o("_parseConnect: packet.will.topic: %s",m.will.topic),u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse will payload"));m.will.payload=u,o("_parseConnect: packet.will.paylaod: %s",m.will.payload)}if(h.username){if(p=this._parseString(),p===null)return this._emitError(new Error("Cannot parse username"));m.username=p,o("_parseConnect: packet.username: %s",m.username)}if(h.password){if(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));m.password=f}return this.settings=m,o("_parseConnect: complete"),m}_parseConnack(){o("_parseConnack");let c=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(c.sessionPresent=!!(u&a.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}o("_parseConnack: complete")}_parsePublish(){o("_parsePublish");let c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}c.payload=this._list.slice(this._pos,c.length),o("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){o("_parseSubscribe");let c=this.packet,u,f,p,h,m,g,v;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(c.properties=y)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(p=f&a.SUBSCRIBE_OPTIONS_QOS_MASK,p>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=(f>>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(f>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,h=f>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,h>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:p},this.settings.protocolVersion===5?(v.nl=g,v.rap=m,v.rh=h):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),o("_parseSubscribe: push subscription `%s` to subscription",v),c.subscriptions.push(v)}}}_parseSuback(){o("_parseSuback");let c=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&u!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(u)}}}_parseUnsubscribe(){o("_parseUnsubscribe");let c=this.packet;if(c.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!a.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!a.MQTT5_PUBREL_PUBCOMP_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}o("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)}else c.reasonCode=0;if(c.length>3){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}}return!0}_parseDisconnect(){let c=this.packet;if(o("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(c.reasonCode=this._parseByte(),a.MQTT5_DISCONNECT_CODES[c.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):c.reasonCode=0;let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}return o("_parseDisconnect result: true"),!0}_parseAuth(){o("_parseAuth");let c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(c.reasonCode=this._parseByte(),!a.MQTT5_AUTH_CODES[c.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let u=this._parseProperties();return Object.getOwnPropertyNames(u).length&&(c.properties=u),o("_parseAuth: result: true"),!0}_parseMessageId(){let c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(o("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){let u=this._parseNum(),f=u+this._pos;if(u===-1||f>this._list.length||f>this.packet.length)return null;let p=this._list.toString("utf8",this._pos,f);return this._pos+=u,o("_parseString: result: %s",p),p}_parseStringPair(){return o("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let c=this._parseNum(),u=c+this._pos;if(c===-1||u>this._list.length||u>this.packet.length)return null;let f=this._list.slice(this._pos,u);return this._pos+=c,o("_parseBuffer: result: %o",f),f}_parseNum(){if(this._list.length-this._pos<2)return-1;let c=this._list.readUInt16BE(this._pos);return this._pos+=2,o("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let c=this._list.readUInt32BE(this._pos);return this._pos+=4,o("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){o("_parseVarByteNum");let u=4,f=0,p=1,h=0,m=!1,g,v=this._pos?this._pos:0;for(;f=f&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=f),m?c?m={bytes:f,value:h}:m=h:m=!1,o("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos{Zt(),Jt(),Qt();var{Buffer:n}=(ko(),Si(_o)),r=65536,i={},a=n.isBuffer(n.from([1,2]).subarray(0,1));function o(u){let f=n.allocUnsafe(2);return f.writeUInt8(u>>8,0),f.writeUInt8(u&255,1),f}function s(){for(let u=0;u0&&(f=f|128),h.writeUInt8(f,p++);while(u>0&&p<4);return u>0&&(p=0),a?h.subarray(0,p):h.slice(0,p)}function c(u){let f=n.allocUnsafe(4);return f.writeUInt32BE(u,0),f}t.exports={cache:i,generateCache:s,generateNumber:o,genBufVariableByteInt:l,generate4ByteBuffer:c}}),n7e=un((e,t)=>{Zt(),Jt(),Qt(),typeof li>"u"||!li.version||li.version.indexOf("v0.")===0||li.version.indexOf("v1.")===0&&li.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=li;function n(r,i,a,o){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,l,c;switch(s){case 0:case 1:return li.nextTick(r);case 2:return li.nextTick(function(){r.call(null,i)});case 3:return li.nextTick(function(){r.call(null,i,a)});case 4:return li.nextTick(function(){r.call(null,i,a,o)});default:for(l=new Array(s-1),c=0;c{Zt(),Jt(),Qt();var n=vce(),{Buffer:r}=(ko(),Si(_o)),i=r.allocUnsafe(0),a=r.from([0]),o=t7e(),s=n7e().nextTick,l=Pf()("mqtt-packet:writeToStream"),c=o.cache,u=o.generateNumber,f=o.generateCache,p=o.genBufVariableByteInt,h=o.generate4ByteBuffer,m=N,g=!0;function v(Z,X,ae){switch(l("generate called"),X.cork&&(X.cork(),s(y,X)),g&&(g=!1,f()),l("generate: packet.cmd: %s",Z.cmd),Z.cmd){case"connect":return w(Z,X);case"connack":return b(Z,X,ae);case"publish":return C(Z,X,ae);case"puback":case"pubrec":case"pubrel":case"pubcomp":return k(Z,X,ae);case"subscribe":return S(Z,X,ae);case"suback":return _(Z,X,ae);case"unsubscribe":return E(Z,X,ae);case"unsuback":return $(Z,X,ae);case"pingreq":case"pingresp":return M(Z,X);case"disconnect":return P(Z,X,ae);case"auth":return R(Z,X,ae);default:return X.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===N},set(Z){Z?((!c||Object.keys(c).length===0)&&(g=!0),m=N):(g=!1,m=F)}});function y(Z){Z.uncork()}function w(Z,X,ae){let oe=Z||{},le=oe.protocolId||"MQTT",ce=oe.protocolVersion||4,pe=oe.will,me=oe.clean,re=oe.keepalive||0,fe=oe.clientId||"",ve=oe.username,$e=oe.password,Ce=oe.properties;me===void 0&&(me=!0);let be=0;if(!le||typeof le!="string"&&!r.isBuffer(le))return X.destroy(new Error("Invalid protocolId")),!1;if(be+=le.length+2,ce!==3&&ce!==4&&ce!==5)return X.destroy(new Error("Invalid protocol version")),!1;if(be+=1,(typeof fe=="string"||r.isBuffer(fe))&&(fe||ce>=4)&&(fe||me))be+=r.byteLength(fe)+2;else{if(ce<4)return X.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(me*1===0)return X.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof re!="number"||re<0||re>65535||re%1!==0)return X.destroy(new Error("Invalid keepalive")),!1;be+=2,be+=1;let Se,we;if(ce===5){if(Se=V(X,Ce),!Se)return!1;be+=Se.length}if(pe){if(typeof pe!="object")return X.destroy(new Error("Invalid will")),!1;if(!pe.topic||typeof pe.topic!="string")return X.destroy(new Error("Invalid will topic")),!1;if(be+=r.byteLength(pe.topic)+2,be+=2,pe.payload)if(pe.payload.length>=0)typeof pe.payload=="string"?be+=r.byteLength(pe.payload):be+=pe.payload.length;else return X.destroy(new Error("Invalid will payload")),!1;if(we={},ce===5){if(we=V(X,pe.properties),!we)return!1;be+=we.length}}let se=!1;if(ve!=null)if(ie(ve))se=!0,be+=r.byteLength(ve)+2;else return X.destroy(new Error("Invalid username")),!1;if($e!=null){if(!se)return X.destroy(new Error("Username is required to use password")),!1;if(ie($e))be+=ee($e)+2;else return X.destroy(new Error("Invalid password")),!1}X.write(n.CONNECT_HEADER),j(X,be),L(X,le),oe.bridgeMode&&(ce+=128),X.write(ce===131?n.VERSION131:ce===132?n.VERSION132:ce===4?n.VERSION4:ce===5?n.VERSION5:n.VERSION3);let ye=0;return ye|=ve!=null?n.USERNAME_MASK:0,ye|=$e!=null?n.PASSWORD_MASK:0,ye|=pe&&pe.retain?n.WILL_RETAIN_MASK:0,ye|=pe&&pe.qos?pe.qos<0&&m(X,fe),Ce==null||Ce.write(),l("publish: payload: %o",re),X.write(re)}function k(Z,X,ae){let oe=ae?ae.protocolVersion:4,le=Z||{},ce=le.cmd||"puback",pe=le.messageId,me=le.dup&&ce==="pubrel"?n.DUP_MASK:0,re=0,fe=le.reasonCode,ve=le.properties,$e=oe===5?3:2;if(ce==="pubrel"&&(re=1),typeof pe!="number")return X.destroy(new Error("Invalid messageId")),!1;let Ce=null;if(oe===5&&typeof ve=="object"){if(Ce=B(X,ve,ae,$e),!Ce)return!1;$e+=Ce.length}return X.write(n.ACKS[ce][re][me][0]),$e===3&&($e+=fe!==0?1:-1),j(X,$e),m(X,pe),oe===5&&$e!==2&&X.write(r.from([fe])),Ce!==null?Ce.write():$e===4&&X.write(r.from([0])),!0}function S(Z,X,ae){l("subscribe: packet: ");let oe=ae?ae.protocolVersion:4,le=Z||{},ce=le.dup?n.DUP_MASK:0,pe=le.messageId,me=le.subscriptions,re=le.properties,fe=0;if(typeof pe!="number")return X.destroy(new Error("Invalid messageId")),!1;fe+=2;let ve=null;if(oe===5){if(ve=V(X,re),!ve)return!1;fe+=ve.length}if(typeof me=="object"&&me.length)for(let Ce=0;Ce2)return X.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}fe+=r.byteLength(be)+2+1}else return X.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),X.write(n.SUBSCRIBE_HEADER[1][ce?1:0][0]),j(X,fe),m(X,pe),ve!==null&&ve.write();let $e=!0;for(let Ce of me){let be=Ce.topic,Se=Ce.qos,we=+Ce.nl,se=+Ce.rap,ye=Ce.rh,Oe;I(X,be),Oe=n.SUBSCRIBE_OPTIONS_QOS[Se],oe===5&&(Oe|=we?n.SUBSCRIBE_OPTIONS_NL:0,Oe|=se?n.SUBSCRIBE_OPTIONS_RAP:0,Oe|=ye?n.SUBSCRIBE_OPTIONS_RH[ye]:0),$e=X.write(r.from([Oe]))}return $e}function _(Z,X,ae){let oe=ae?ae.protocolVersion:4,le=Z||{},ce=le.messageId,pe=le.granted,me=le.properties,re=0;if(typeof ce!="number")return X.destroy(new Error("Invalid messageId")),!1;if(re+=2,typeof pe=="object"&&pe.length)for(let ve=0;ven.VARBYTEINT_MAX)return Z.destroy(new Error(`Invalid variable byte integer: ${X}`)),!1;let ae=O[X];return ae||(ae=p(X),X<16384&&(O[X]=ae)),l("writeVarByteInt: writing to stream: %o",ae),Z.write(ae)}function I(Z,X){let ae=r.byteLength(X);return m(Z,ae),l("writeString: %s",X),Z.write(X,"utf8")}function A(Z,X,ae){I(Z,X),I(Z,ae)}function N(Z,X){return l("writeNumberCached: number: %d",X),l("writeNumberCached: %o",c[X]),Z.write(c[X])}function F(Z,X){let ae=u(X);return l("writeNumberGenerated: %o",ae),Z.write(ae)}function K(Z,X){let ae=h(X);return l("write4ByteNumber: %o",ae),Z.write(ae)}function L(Z,X){typeof X=="string"?I(Z,X):X?(m(Z,X.length),Z.write(X)):m(Z,0)}function V(Z,X){if(typeof X!="object"||X.length!=null)return{length:1,write(){Y(Z,{},0)}};let ae=0;function oe(le,ce){let pe=n.propertiesTypes[le],me=0;switch(pe){case"byte":{if(typeof ce!="boolean")return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=2;break}case"int8":{if(typeof ce!="number"||ce<0||ce>255)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=2;break}case"binary":{if(ce&&ce===null)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=1+r.byteLength(ce)+2;break}case"int16":{if(typeof ce!="number"||ce<0||ce>65535)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=3;break}case"int32":{if(typeof ce!="number"||ce<0||ce>4294967295)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=5;break}case"var":{if(typeof ce!="number"||ce<0||ce>268435455)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=1+r.byteLength(p(ce));break}case"string":{if(typeof ce!="string")return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=3+r.byteLength(ce.toString());break}case"pair":{if(typeof ce!="object")return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=Object.getOwnPropertyNames(ce).reduce((re,fe)=>{let ve=ce[fe];return Array.isArray(ve)?re+=ve.reduce(($e,Ce)=>($e+=3+r.byteLength(fe.toString())+2+r.byteLength(Ce.toString()),$e),0):re+=3+r.byteLength(fe.toString())+2+r.byteLength(ce[fe].toString()),re},0);break}default:return Z.destroy(new Error(`Invalid property ${le}: ${ce}`)),!1}return me}if(X)for(let le in X){let ce=0,pe=0,me=X[le];if(Array.isArray(me))for(let re=0;rece;){let me=le.shift();if(me&&X[me])delete X[me],pe=V(Z,X);else return!1}return pe}function U(Z,X,ae){switch(n.propertiesTypes[X]){case"byte":{Z.write(r.from([n.properties[X]])),Z.write(r.from([+ae]));break}case"int8":{Z.write(r.from([n.properties[X]])),Z.write(r.from([ae]));break}case"binary":{Z.write(r.from([n.properties[X]])),L(Z,ae);break}case"int16":{Z.write(r.from([n.properties[X]])),m(Z,ae);break}case"int32":{Z.write(r.from([n.properties[X]])),K(Z,ae);break}case"var":{Z.write(r.from([n.properties[X]])),j(Z,ae);break}case"string":{Z.write(r.from([n.properties[X]])),I(Z,ae);break}case"pair":{Object.getOwnPropertyNames(ae).forEach(oe=>{let le=ae[oe];Array.isArray(le)?le.forEach(ce=>{Z.write(r.from([n.properties[X]])),A(Z,oe.toString(),ce.toString())}):(Z.write(r.from([n.properties[X]])),A(Z,oe.toString(),le.toString()))});break}default:return Z.destroy(new Error(`Invalid property ${X} value: ${ae}`)),!1}}function Y(Z,X,ae){j(Z,ae);for(let oe in X)if(Object.prototype.hasOwnProperty.call(X,oe)&&X[oe]!==null){let le=X[oe];if(Array.isArray(le))for(let ce=0;ce{Zt(),Jt(),Qt();var n=yce(),{EventEmitter:r}=(hy(),Si(Lg)),{Buffer:i}=(ko(),Si(_o));function a(s,l){let c=new o;return n(s,c,l),c.concat()}var o=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s=0,l=new Array(this._array.length),c=this._array,u=0,f;for(f=0;f{Zt(),Jt(),Qt(),e.parser=e7e().parser,e.generate=r7e(),e.writeToStream=yce()}),bce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let n=this.nextId++;return this.nextId===65536&&(this.nextId=1),n}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(n){return!0}deallocate(n){}clear(){}};e.default=t}),a7e=un((e,t)=>{Zt(),Jt(),Qt(),t.exports=r;function n(a){return a instanceof Ck?Ck.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function r(a){if(a=a||{},a.circles)return i(a);return a.proto?l:s;function o(c,u){for(var f=Object.keys(c),p=new Array(f.length),h=0;h{Zt(),Jt(),Qt(),t.exports=a7e()()}),s7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let i=r.split("/");for(let a=0;a{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bg(),n={objectMode:!0},r={clean:!0},i=class{constructor(a){this.options=a||{},this.options=Object.assign(Object.assign({},r),a),this._inflights=new Map}put(a,o){return this._inflights.set(a.messageId,a),o&&o(),this}createStream(){let a=new t.Readable(n),o=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{o.push(c)}),a._read=()=>{!s&&l{if(!s)return s=!0,setTimeout(()=>{a.emit("close")},0),a},a}del(a,o){let s=this._inflights.get(a.messageId);return s?(this._inflights.delete(a.messageId),o(null,s)):o&&o(new Error("missing packet")),this}get(a,o){let s=this._inflights.get(a.messageId);return s?o(null,s):o&&o(new Error("missing packet")),this}close(a){this.options.clean&&(this._inflights=null),a&&a()}};e.default=i}),l7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,i,a)=>{r.log("handlePublish: packet %o",i),a=typeof a<"u"?a:r.noop;let o=i.topic.toString(),s=i.payload,{qos:l}=i,{messageId:c}=i,{options:u}=r;if(r.options.protocolVersion===5){let f;if(i.properties&&(f=i.properties.topicAlias),typeof f<"u")if(o.length===0)if(f>0&&f<=65535){let p=r.topicAliasRecv.getTopicByAlias(f);if(p)o=p,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",o,f);else{r.log("handlePublish :: unregistered topic alias. alias: %d",f),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(o,f))r.log("handlePublish :: registered topic: %s - alias: %d",o,f);else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(r.log("handlePublish: qos %d",l),l){case 2:{u.customHandleAcks(o,s,i,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return r.emit("error",f);if(t.indexOf(p)===-1)return r.emit("error",new Error("Wrong reason code for pubrec"));p?r._sendPacket({cmd:"pubrec",messageId:c,reasonCode:p},a):r.incomingStore.put(i,()=>{r._sendPacket({cmd:"pubrec",messageId:c},a)})});break}case 1:{u.customHandleAcks(o,s,i,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return r.emit("error",f);if(t.indexOf(p)===-1)return r.emit("error",new Error("Wrong reason code for puback"));p||r.emit("message",o,s,i),r.handleMessage(i,h=>{if(h)return a&&a(h);r._sendPacket({cmd:"puback",messageId:c,reasonCode:p},a)})});break}case 0:r.emit("message",o,s,i),r.handleMessage(i,a);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),c7e=un((e,t)=>{t.exports={version:"5.10.3"}}),my=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class xce extends Error{constructor(i,a){super(i),this.code=a,Object.setPrototypeOf(this,xce.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,i,a=!1){var o;let s=[i];for(;;){let l=s[0],c=Object.getPrototypeOf(l);if(c!=null&&c.prototype)s.unshift(c);else break}for(let l of s)for(let c of Object.getOwnPropertyNames(l.prototype))(a||c!=="constructor")&&Object.defineProperty(r.prototype,c,(o=Object.getOwnPropertyDescriptor(l.prototype,c))!==null&&o!==void 0?o:Object.create(null))}e.applyMixin=n,e.nextTick=typeof(li==null?void 0:li.nextTick)=="function"?li.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=c7e().version}),gE=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=my();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var n=(r,i)=>{let{messageId:a}=i,o=i.cmd,s=null,l=r.outgoing[a]?r.outgoing[a].cb:null,c=null;if(!l){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",o),o){case"pubcomp":case"puback":{let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(a,()=>{l(c,i)})):r._removeOutgoingAndStoreMessage(a,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:a};let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(a,()=>{l(c,i)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[a],r.messageIdProvider.deallocate(a);let u=i.granted;for(let f=0;f{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[a],r._invokeStoreProcessingQueue(),l(c,i);break}case"unsuback":{delete r.outgoing[a],r.messageIdProvider.deallocate(a),r._invokeStoreProcessingQueue(),l(null,i);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),u7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=my(),n=gE(),r=(i,a)=>{let{options:o}=i,s=o.protocolVersion,l=s===5?a.reasonCode:a.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);i.emit("error",c);return}i.handleAuth(a,(c,u)=>{if(c){i.emit("error",c);return}if(l===24)i.reconnecting=!1,i._sendPacket(u);else{let f=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);i.emit("error",f)}})};e.default=r}),d7e=un(e=>{var h,m,g,v,y,w,b,C,k,S,_,E,$,M,P,R,O,j,I,A,N,F,K,L,V,B,EI,Y,ee,ie,Z,Sce,ae,oe,le,pp,hp,$I,LC,BC,zi,MI,y2,be;Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,n=new Set,r=typeof li=="object"&&li?li:{},i=(Se,we,se,ye)=>{typeof r.emitWarning=="function"?r.emitWarning(Se,we,se,ye):console.error(`[${se}] ${we}: ${Se}`)},a=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof a>"u"){o=class{constructor(){Gr(this,"onabort");Gr(this,"_onabort",[]);Gr(this,"reason");Gr(this,"aborted",!1)}addEventListener(se,ye){this._onabort.push(ye)}},a=class{constructor(){Gr(this,"signal",new o);we()}abort(se){var ye,Oe;if(!this.signal.aborted){this.signal.reason=se,this.signal.aborted=!0;for(let z of this.signal._onabort)z(se);(Oe=(ye=this.signal).onabort)==null||Oe.call(ye,se)}}};let Se=((h=r.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1",we=()=>{Se&&(Se=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",we))}}var s=Se=>!n.has(Se),l=Se=>Se&&Se===Math.floor(Se)&&Se>0&&isFinite(Se),c=Se=>l(Se)?Se<=Math.pow(2,8)?Uint8Array:Se<=Math.pow(2,16)?Uint16Array:Se<=Math.pow(2,32)?Uint32Array:Se<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(Se){super(Se),this.fill(0)}},f=(m=class{constructor(we,se){Gr(this,"heap");Gr(this,"length");if(!Fe(m,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new se(we),this.length=0}static create(we){let se=c(we);if(!se)return[];xn(m,g,!0);let ye=new m(we,se);return xn(m,g,!1),ye}push(we){this.heap[this.length++]=we}pop(){return this.heap[--this.length]}},g=new WeakMap,Un(m,g,!1),m),p=(be=class{constructor(we){Un(this,B);Un(this,v);Un(this,y);Un(this,w);Un(this,b);Un(this,C);Gr(this,"ttl");Gr(this,"ttlResolution");Gr(this,"ttlAutopurge");Gr(this,"updateAgeOnGet");Gr(this,"updateAgeOnHas");Gr(this,"allowStale");Gr(this,"noDisposeOnSet");Gr(this,"noUpdateTTL");Gr(this,"maxEntrySize");Gr(this,"sizeCalculation");Gr(this,"noDeleteOnFetchRejection");Gr(this,"noDeleteOnStaleGet");Gr(this,"allowStaleOnFetchAbort");Gr(this,"allowStaleOnFetchRejection");Gr(this,"ignoreFetchAbort");Un(this,k);Un(this,S);Un(this,_);Un(this,E);Un(this,$);Un(this,M);Un(this,P);Un(this,R);Un(this,O);Un(this,j);Un(this,I);Un(this,A);Un(this,N);Un(this,F);Un(this,K);Un(this,L);Un(this,V);Un(this,Y,()=>{});Un(this,ee,()=>{});Un(this,ie,()=>{});Un(this,Z,()=>!1);Un(this,ae,we=>{});Un(this,oe,(we,se,ye)=>{});Un(this,le,(we,se,ye,Oe)=>{if(ye||Oe)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:se=0,ttl:ye,ttlResolution:Oe=1,ttlAutopurge:z,updateAgeOnGet:H,updateAgeOnHas:G,allowStale:de,dispose:xe,disposeAfter:he,noDisposeOnSet:Ue,noUpdateTTL:We,maxSize:ge=0,maxEntrySize:ze=0,sizeCalculation:Ve,fetchMethod:Be,noDeleteOnFetchRejection:Xe,noDeleteOnStaleGet:Ke,allowStaleOnFetchRejection:qe,allowStaleOnFetchAbort:Et,ignoreFetchAbort:ut}=we;if(se!==0&&!l(se))throw new TypeError("max option must be a nonnegative integer");let gt=se?c(se):Array;if(!gt)throw new Error("invalid max value: "+se);if(xn(this,v,se),xn(this,y,ge),this.maxEntrySize=ze||Fe(this,y),this.sizeCalculation=Ve,this.sizeCalculation){if(!Fe(this,y)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Be!==void 0&&typeof Be!="function")throw new TypeError("fetchMethod must be a function if specified");if(xn(this,C,Be),xn(this,L,!!Be),xn(this,_,new Map),xn(this,E,new Array(se).fill(void 0)),xn(this,$,new Array(se).fill(void 0)),xn(this,M,new gt(se)),xn(this,P,new gt(se)),xn(this,R,0),xn(this,O,0),xn(this,j,f.create(se)),xn(this,k,0),xn(this,S,0),typeof xe=="function"&&xn(this,w,xe),typeof he=="function"?(xn(this,b,he),xn(this,I,[])):(xn(this,b,void 0),xn(this,I,void 0)),xn(this,K,!!Fe(this,w)),xn(this,V,!!Fe(this,b)),this.noDisposeOnSet=!!Ue,this.noUpdateTTL=!!We,this.noDeleteOnFetchRejection=!!Xe,this.allowStaleOnFetchRejection=!!qe,this.allowStaleOnFetchAbort=!!Et,this.ignoreFetchAbort=!!ut,this.maxEntrySize!==0){if(Fe(this,y)!==0&&!l(Fe(this,y)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Dn(this,B,Sce).call(this)}if(this.allowStale=!!de,this.noDeleteOnStaleGet=!!Ke,this.updateAgeOnGet=!!H,this.updateAgeOnHas=!!G,this.ttlResolution=l(Oe)||Oe===0?Oe:1,this.ttlAutopurge=!!z,this.ttl=ye||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Dn(this,B,EI).call(this)}if(Fe(this,v)===0&&this.ttl===0&&Fe(this,y)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Fe(this,v)&&!Fe(this,y)){let Qe="LRU_CACHE_UNBOUNDED";s(Qe)&&(n.add(Qe),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Qe,be))}}static unsafeExposeInternals(we){return{starts:Fe(we,N),ttls:Fe(we,F),sizes:Fe(we,A),keyMap:Fe(we,_),keyList:Fe(we,E),valList:Fe(we,$),next:Fe(we,M),prev:Fe(we,P),get head(){return Fe(we,R)},get tail(){return Fe(we,O)},free:Fe(we,j),isBackgroundFetch:se=>{var ye;return Dn(ye=we,B,zi).call(ye,se)},backgroundFetch:(se,ye,Oe,z)=>{var H;return Dn(H=we,B,BC).call(H,se,ye,Oe,z)},moveToTail:se=>{var ye;return Dn(ye=we,B,y2).call(ye,se)},indexes:se=>{var ye;return Dn(ye=we,B,pp).call(ye,se)},rindexes:se=>{var ye;return Dn(ye=we,B,hp).call(ye,se)},isStale:se=>{var ye;return Fe(ye=we,Z).call(ye,se)}}}get max(){return Fe(this,v)}get maxSize(){return Fe(this,y)}get calculatedSize(){return Fe(this,S)}get size(){return Fe(this,k)}get fetchMethod(){return Fe(this,C)}get dispose(){return Fe(this,w)}get disposeAfter(){return Fe(this,b)}getRemainingTTL(we){return Fe(this,_).has(we)?1/0:0}*entries(){for(let we of Dn(this,B,pp).call(this))Fe(this,$)[we]!==void 0&&Fe(this,E)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield[Fe(this,E)[we],Fe(this,$)[we]])}*rentries(){for(let we of Dn(this,B,hp).call(this))Fe(this,$)[we]!==void 0&&Fe(this,E)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield[Fe(this,E)[we],Fe(this,$)[we]])}*keys(){for(let we of Dn(this,B,pp).call(this)){let se=Fe(this,E)[we];se!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield se)}}*rkeys(){for(let we of Dn(this,B,hp).call(this)){let se=Fe(this,E)[we];se!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield se)}}*values(){for(let we of Dn(this,B,pp).call(this))Fe(this,$)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield Fe(this,$)[we])}*rvalues(){for(let we of Dn(this,B,hp).call(this))Fe(this,$)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield Fe(this,$)[we])}[Symbol.iterator](){return this.entries()}find(we,se={}){for(let ye of Dn(this,B,pp).call(this)){let Oe=Fe(this,$)[ye],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;if(z!==void 0&&we(z,Fe(this,E)[ye],this))return this.get(Fe(this,E)[ye],se)}}forEach(we,se=this){for(let ye of Dn(this,B,pp).call(this)){let Oe=Fe(this,$)[ye],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;z!==void 0&&we.call(se,z,Fe(this,E)[ye],this)}}rforEach(we,se=this){for(let ye of Dn(this,B,hp).call(this)){let Oe=Fe(this,$)[ye],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;z!==void 0&&we.call(se,z,Fe(this,E)[ye],this)}}purgeStale(){let we=!1;for(let se of Dn(this,B,hp).call(this,{allowStale:!0}))Fe(this,Z).call(this,se)&&(this.delete(Fe(this,E)[se]),we=!0);return we}dump(){let we=[];for(let se of Dn(this,B,pp).call(this,{allowStale:!0})){let ye=Fe(this,E)[se],Oe=Fe(this,$)[se],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;if(z===void 0||ye===void 0)continue;let H={value:z};if(Fe(this,F)&&Fe(this,N)){H.ttl=Fe(this,F)[se];let G=t.now()-Fe(this,N)[se];H.start=Math.floor(Date.now()-G)}Fe(this,A)&&(H.size=Fe(this,A)[se]),we.unshift([ye,H])}return we}load(we){this.clear();for(let[se,ye]of we){if(ye.start){let Oe=Date.now()-ye.start;ye.start=t.now()-Oe}this.set(se,ye.value,ye)}}set(we,se,ye={}){var We,ge,ze,Ve,Be;if(se===void 0)return this.delete(we),this;let{ttl:Oe=this.ttl,start:z,noDisposeOnSet:H=this.noDisposeOnSet,sizeCalculation:G=this.sizeCalculation,status:de}=ye,{noUpdateTTL:xe=this.noUpdateTTL}=ye,he=Fe(this,le).call(this,we,se,ye.size||0,G);if(this.maxEntrySize&&he>this.maxEntrySize)return de&&(de.set="miss",de.maxEntrySizeExceeded=!0),this.delete(we),this;let Ue=Fe(this,k)===0?void 0:Fe(this,_).get(we);if(Ue===void 0)Ue=Fe(this,k)===0?Fe(this,O):Fe(this,j).length!==0?Fe(this,j).pop():Fe(this,k)===Fe(this,v)?Dn(this,B,LC).call(this,!1):Fe(this,k),Fe(this,E)[Ue]=we,Fe(this,$)[Ue]=se,Fe(this,_).set(we,Ue),Fe(this,M)[Fe(this,O)]=Ue,Fe(this,P)[Ue]=Fe(this,O),xn(this,O,Ue),Lh(this,k)._++,Fe(this,oe).call(this,Ue,he,de),de&&(de.set="add"),xe=!1;else{Dn(this,B,y2).call(this,Ue);let Xe=Fe(this,$)[Ue];if(se!==Xe){if(Fe(this,L)&&Dn(this,B,zi).call(this,Xe)){Xe.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ke}=Xe;Ke!==void 0&&!H&&(Fe(this,K)&&((We=Fe(this,w))==null||We.call(this,Ke,we,"set")),Fe(this,V)&&((ge=Fe(this,I))==null||ge.push([Ke,we,"set"])))}else H||(Fe(this,K)&&((ze=Fe(this,w))==null||ze.call(this,Xe,we,"set")),Fe(this,V)&&((Ve=Fe(this,I))==null||Ve.push([Xe,we,"set"])));if(Fe(this,ae).call(this,Ue),Fe(this,oe).call(this,Ue,he,de),Fe(this,$)[Ue]=se,de){de.set="replace";let Ke=Xe&&Dn(this,B,zi).call(this,Xe)?Xe.__staleWhileFetching:Xe;Ke!==void 0&&(de.oldValue=Ke)}}else de&&(de.set="update")}if(Oe!==0&&!Fe(this,F)&&Dn(this,B,EI).call(this),Fe(this,F)&&(xe||Fe(this,ie).call(this,Ue,Oe,z),de&&Fe(this,ee).call(this,de,Ue)),!H&&Fe(this,V)&&Fe(this,I)){let Xe=Fe(this,I),Ke;for(;Ke=Xe==null?void 0:Xe.shift();)(Be=Fe(this,b))==null||Be.call(this,...Ke)}return this}pop(){var we;try{for(;Fe(this,k);){let se=Fe(this,$)[Fe(this,R)];if(Dn(this,B,LC).call(this,!0),Dn(this,B,zi).call(this,se)){if(se.__staleWhileFetching)return se.__staleWhileFetching}else if(se!==void 0)return se}}finally{if(Fe(this,V)&&Fe(this,I)){let se=Fe(this,I),ye;for(;ye=se==null?void 0:se.shift();)(we=Fe(this,b))==null||we.call(this,...ye)}}}has(we,se={}){let{updateAgeOnHas:ye=this.updateAgeOnHas,status:Oe}=se,z=Fe(this,_).get(we);if(z!==void 0){let H=Fe(this,$)[z];if(Dn(this,B,zi).call(this,H)&&H.__staleWhileFetching===void 0)return!1;if(Fe(this,Z).call(this,z))Oe&&(Oe.has="stale",Fe(this,ee).call(this,Oe,z));else return ye&&Fe(this,Y).call(this,z),Oe&&(Oe.has="hit",Fe(this,ee).call(this,Oe,z)),!0}else Oe&&(Oe.has="miss");return!1}peek(we,se={}){let{allowStale:ye=this.allowStale}=se,Oe=Fe(this,_).get(we);if(Oe!==void 0&&(ye||!Fe(this,Z).call(this,Oe))){let z=Fe(this,$)[Oe];return Dn(this,B,zi).call(this,z)?z.__staleWhileFetching:z}}async fetch(we,se={}){let{allowStale:ye=this.allowStale,updateAgeOnGet:Oe=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,ttl:H=this.ttl,noDisposeOnSet:G=this.noDisposeOnSet,size:de=0,sizeCalculation:xe=this.sizeCalculation,noUpdateTTL:he=this.noUpdateTTL,noDeleteOnFetchRejection:Ue=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:We=this.allowStaleOnFetchRejection,ignoreFetchAbort:ge=this.ignoreFetchAbort,allowStaleOnFetchAbort:ze=this.allowStaleOnFetchAbort,context:Ve,forceRefresh:Be=!1,status:Xe,signal:Ke}=se;if(!Fe(this,L))return Xe&&(Xe.fetch="get"),this.get(we,{allowStale:ye,updateAgeOnGet:Oe,noDeleteOnStaleGet:z,status:Xe});let qe={allowStale:ye,updateAgeOnGet:Oe,noDeleteOnStaleGet:z,ttl:H,noDisposeOnSet:G,size:de,sizeCalculation:xe,noUpdateTTL:he,noDeleteOnFetchRejection:Ue,allowStaleOnFetchRejection:We,allowStaleOnFetchAbort:ze,ignoreFetchAbort:ge,status:Xe,signal:Ke},Et=Fe(this,_).get(we);if(Et===void 0){Xe&&(Xe.fetch="miss");let ut=Dn(this,B,BC).call(this,we,Et,qe,Ve);return ut.__returned=ut}else{let ut=Fe(this,$)[Et];if(Dn(this,B,zi).call(this,ut)){let jt=ye&&ut.__staleWhileFetching!==void 0;return Xe&&(Xe.fetch="inflight",jt&&(Xe.returnedStale=!0)),jt?ut.__staleWhileFetching:ut.__returned=ut}let gt=Fe(this,Z).call(this,Et);if(!Be&&!gt)return Xe&&(Xe.fetch="hit"),Dn(this,B,y2).call(this,Et),Oe&&Fe(this,Y).call(this,Et),Xe&&Fe(this,ee).call(this,Xe,Et),ut;let Qe=Dn(this,B,BC).call(this,we,Et,qe,Ve),nt=Qe.__staleWhileFetching!==void 0&&ye;return Xe&&(Xe.fetch=gt?"stale":"refresh",nt&>&&(Xe.returnedStale=!0)),nt?Qe.__staleWhileFetching:Qe.__returned=Qe}}get(we,se={}){let{allowStale:ye=this.allowStale,updateAgeOnGet:Oe=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,status:H}=se,G=Fe(this,_).get(we);if(G!==void 0){let de=Fe(this,$)[G],xe=Dn(this,B,zi).call(this,de);return H&&Fe(this,ee).call(this,H,G),Fe(this,Z).call(this,G)?(H&&(H.get="stale"),xe?(H&&ye&&de.__staleWhileFetching!==void 0&&(H.returnedStale=!0),ye?de.__staleWhileFetching:void 0):(z||this.delete(we),H&&ye&&(H.returnedStale=!0),ye?de:void 0)):(H&&(H.get="hit"),xe?de.__staleWhileFetching:(Dn(this,B,y2).call(this,G),Oe&&Fe(this,Y).call(this,G),de))}else H&&(H.get="miss")}delete(we){var ye,Oe,z,H;let se=!1;if(Fe(this,k)!==0){let G=Fe(this,_).get(we);if(G!==void 0)if(se=!0,Fe(this,k)===1)this.clear();else{Fe(this,ae).call(this,G);let de=Fe(this,$)[G];Dn(this,B,zi).call(this,de)?de.__abortController.abort(new Error("deleted")):(Fe(this,K)||Fe(this,V))&&(Fe(this,K)&&((ye=Fe(this,w))==null||ye.call(this,de,we,"delete")),Fe(this,V)&&((Oe=Fe(this,I))==null||Oe.push([de,we,"delete"]))),Fe(this,_).delete(we),Fe(this,E)[G]=void 0,Fe(this,$)[G]=void 0,G===Fe(this,O)?xn(this,O,Fe(this,P)[G]):G===Fe(this,R)?xn(this,R,Fe(this,M)[G]):(Fe(this,M)[Fe(this,P)[G]]=Fe(this,M)[G],Fe(this,P)[Fe(this,M)[G]]=Fe(this,P)[G]),Lh(this,k)._--,Fe(this,j).push(G)}}if(Fe(this,V)&&((z=Fe(this,I))!=null&&z.length)){let G=Fe(this,I),de;for(;de=G==null?void 0:G.shift();)(H=Fe(this,b))==null||H.call(this,...de)}return se}clear(){var we,se,ye;for(let Oe of Dn(this,B,hp).call(this,{allowStale:!0})){let z=Fe(this,$)[Oe];if(Dn(this,B,zi).call(this,z))z.__abortController.abort(new Error("deleted"));else{let H=Fe(this,E)[Oe];Fe(this,K)&&((we=Fe(this,w))==null||we.call(this,z,H,"delete")),Fe(this,V)&&((se=Fe(this,I))==null||se.push([z,H,"delete"]))}}if(Fe(this,_).clear(),Fe(this,$).fill(void 0),Fe(this,E).fill(void 0),Fe(this,F)&&Fe(this,N)&&(Fe(this,F).fill(0),Fe(this,N).fill(0)),Fe(this,A)&&Fe(this,A).fill(0),xn(this,R,0),xn(this,O,0),Fe(this,j).length=0,xn(this,S,0),xn(this,k,0),Fe(this,V)&&Fe(this,I)){let Oe=Fe(this,I),z;for(;z=Oe==null?void 0:Oe.shift();)(ye=Fe(this,b))==null||ye.call(this,...z)}}},v=new WeakMap,y=new WeakMap,w=new WeakMap,b=new WeakMap,C=new WeakMap,k=new WeakMap,S=new WeakMap,_=new WeakMap,E=new WeakMap,$=new WeakMap,M=new WeakMap,P=new WeakMap,R=new WeakMap,O=new WeakMap,j=new WeakMap,I=new WeakMap,A=new WeakMap,N=new WeakMap,F=new WeakMap,K=new WeakMap,L=new WeakMap,V=new WeakMap,B=new WeakSet,EI=function(){let we=new u(Fe(this,v)),se=new u(Fe(this,v));xn(this,F,we),xn(this,N,se),xn(this,ie,(z,H,G=t.now())=>{if(se[z]=H!==0?G:0,we[z]=H,H!==0&&this.ttlAutopurge){let de=setTimeout(()=>{Fe(this,Z).call(this,z)&&this.delete(Fe(this,E)[z])},H+1);de.unref&&de.unref()}}),xn(this,Y,z=>{se[z]=we[z]!==0?t.now():0}),xn(this,ee,(z,H)=>{if(we[H]){let G=we[H],de=se[H];z.ttl=G,z.start=de,z.now=ye||Oe();let xe=z.now-de;z.remainingTTL=G-xe}});let ye=0,Oe=()=>{let z=t.now();if(this.ttlResolution>0){ye=z;let H=setTimeout(()=>ye=0,this.ttlResolution);H.unref&&H.unref()}return z};this.getRemainingTTL=z=>{let H=Fe(this,_).get(z);if(H===void 0)return 0;let G=we[H],de=se[H];if(G===0||de===0)return 1/0;let xe=(ye||Oe())-de;return G-xe},xn(this,Z,z=>we[z]!==0&&se[z]!==0&&(ye||Oe())-se[z]>we[z])},Y=new WeakMap,ee=new WeakMap,ie=new WeakMap,Z=new WeakMap,Sce=function(){let we=new u(Fe(this,v));xn(this,S,0),xn(this,A,we),xn(this,ae,se=>{xn(this,S,Fe(this,S)-we[se]),we[se]=0}),xn(this,le,(se,ye,Oe,z)=>{if(Dn(this,B,zi).call(this,ye))return 0;if(!l(Oe))if(z){if(typeof z!="function")throw new TypeError("sizeCalculation must be a function");if(Oe=z(ye,se),!l(Oe))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Oe}),xn(this,oe,(se,ye,Oe)=>{if(we[se]=ye,Fe(this,y)){let z=Fe(this,y)-we[se];for(;Fe(this,S)>z;)Dn(this,B,LC).call(this,!0)}xn(this,S,Fe(this,S)+we[se]),Oe&&(Oe.entrySize=ye,Oe.totalCalculatedSize=Fe(this,S))})},ae=new WeakMap,oe=new WeakMap,le=new WeakMap,pp=function*({allowStale:we=this.allowStale}={}){if(Fe(this,k))for(let se=Fe(this,O);!(!Dn(this,B,$I).call(this,se)||((we||!Fe(this,Z).call(this,se))&&(yield se),se===Fe(this,R)));)se=Fe(this,P)[se]},hp=function*({allowStale:we=this.allowStale}={}){if(Fe(this,k))for(let se=Fe(this,R);!(!Dn(this,B,$I).call(this,se)||((we||!Fe(this,Z).call(this,se))&&(yield se),se===Fe(this,O)));)se=Fe(this,M)[se]},$I=function(we){return we!==void 0&&Fe(this,_).get(Fe(this,E)[we])===we},LC=function(we){var z,H;let se=Fe(this,R),ye=Fe(this,E)[se],Oe=Fe(this,$)[se];return Fe(this,L)&&Dn(this,B,zi).call(this,Oe)?Oe.__abortController.abort(new Error("evicted")):(Fe(this,K)||Fe(this,V))&&(Fe(this,K)&&((z=Fe(this,w))==null||z.call(this,Oe,ye,"evict")),Fe(this,V)&&((H=Fe(this,I))==null||H.push([Oe,ye,"evict"]))),Fe(this,ae).call(this,se),we&&(Fe(this,E)[se]=void 0,Fe(this,$)[se]=void 0,Fe(this,j).push(se)),Fe(this,k)===1?(xn(this,R,xn(this,O,0)),Fe(this,j).length=0):xn(this,R,Fe(this,M)[se]),Fe(this,_).delete(ye),Lh(this,k)._--,se},BC=function(we,se,ye,Oe){let z=se===void 0?void 0:Fe(this,$)[se];if(Dn(this,B,zi).call(this,z))return z;let H=new a,{signal:G}=ye;G==null||G.addEventListener("abort",()=>H.abort(G.reason),{signal:H.signal});let de={signal:H.signal,options:ye,context:Oe},xe=(Ve,Be=!1)=>{let{aborted:Xe}=H.signal,Ke=ye.ignoreFetchAbort&&Ve!==void 0;if(ye.status&&(Xe&&!Be?(ye.status.fetchAborted=!0,ye.status.fetchError=H.signal.reason,Ke&&(ye.status.fetchAbortIgnored=!0)):ye.status.fetchResolved=!0),Xe&&!Ke&&!Be)return Ue(H.signal.reason);let qe=ge;return Fe(this,$)[se]===ge&&(Ve===void 0?qe.__staleWhileFetching?Fe(this,$)[se]=qe.__staleWhileFetching:this.delete(we):(ye.status&&(ye.status.fetchUpdated=!0),this.set(we,Ve,de.options))),Ve},he=Ve=>(ye.status&&(ye.status.fetchRejected=!0,ye.status.fetchError=Ve),Ue(Ve)),Ue=Ve=>{let{aborted:Be}=H.signal,Xe=Be&&ye.allowStaleOnFetchAbort,Ke=Xe||ye.allowStaleOnFetchRejection,qe=Ke||ye.noDeleteOnFetchRejection,Et=ge;if(Fe(this,$)[se]===ge&&(!qe||Et.__staleWhileFetching===void 0?this.delete(we):Xe||(Fe(this,$)[se]=Et.__staleWhileFetching)),Ke)return ye.status&&Et.__staleWhileFetching!==void 0&&(ye.status.returnedStale=!0),Et.__staleWhileFetching;if(Et.__returned===Et)throw Ve},We=(Ve,Be)=>{var Ke;let Xe=(Ke=Fe(this,C))==null?void 0:Ke.call(this,we,z,de);Xe&&Xe instanceof Promise&&Xe.then(qe=>Ve(qe===void 0?void 0:qe),Be),H.signal.addEventListener("abort",()=>{(!ye.ignoreFetchAbort||ye.allowStaleOnFetchAbort)&&(Ve(void 0),ye.allowStaleOnFetchAbort&&(Ve=qe=>xe(qe,!0)))})};ye.status&&(ye.status.fetchDispatched=!0);let ge=new Promise(We).then(xe,he),ze=Object.assign(ge,{__abortController:H,__staleWhileFetching:z,__returned:void 0});return se===void 0?(this.set(we,ze,{...de.options,status:void 0}),se=Fe(this,_).get(we)):Fe(this,$)[se]=ze,ze},zi=function(we){if(!Fe(this,L))return!1;let se=we;return!!se&&se instanceof Promise&&se.hasOwnProperty("__staleWhileFetching")&&se.__abortController instanceof a},MI=function(we,se){Fe(this,P)[se]=we,Fe(this,M)[we]=se},y2=function(we){we!==Fe(this,O)&&(we===Fe(this,R)?xn(this,R,Fe(this,M)[we]):Dn(this,B,MI).call(this,Fe(this,P)[we],Fe(this,M)[we]),Dn(this,B,MI).call(this,Fe(this,O),we),xn(this,O,we))},be);e.LRUCache=p}),zf=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(i=0){this.iteratorType=i}equals(i){return this.o===i.o}};e.ContainerIterator=t;var n=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=n;var r=class extends n{};e.Container=r}),f7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[]){super(),this.S=[];let a=this;i.forEach(function(o){a.push(o)})}clear(){this.i=0,this.S=[]}push(i){return this.S.push(i),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},r=n;e.default=r}),p7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[]){super(),this.j=0,this.q=[];let a=this;i.forEach(function(o){a.push(o)})}clear(){this.q=[],this.i=this.j=0}push(i){let a=this.q.length;if(this.j/a>.5&&this.j+this.i>=a&&a>4096){let o=this.i;for(let s=0;s{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[],a=function(s,l){return s>l?-1:s>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(i){let a=this.C[i];for(;i>0;){let o=i-1>>1,s=this.C[o];if(this.v(s,a)<=0)break;this.C[i]=s,i=o}this.C[i]=a}k(i,a){let o=this.C[i];for(;i0&&(s=l,c=this.C[l]),this.v(c,o)>=0)break;this.C[i]=c,i=s}this.C[i]=o}clear(){this.i=0,this.C.length=0}push(i){this.C.push(i),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let i=this.C[0],a=this.C.pop();return this.i-=1,this.i&&(this.C[0]=a,this.k(0,this.i>>1)),i}top(){return this.C[0]}find(i){return this.C.indexOf(i)>=0}remove(i){let a=this.C.indexOf(i);return a<0?!1:(a===0?this.pop():a===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(a,1,this.C.pop()),this.i-=1,this.m(a),this.k(a,this.i>>1)),!0)}updateItem(i){let a=this.C.indexOf(i);return a<0?!1:(this.m(a),this.k(a,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),qF=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Container{},r=n;e.default=r}),Hf=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),Cce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=zf(),n=Hf(),r=class extends t.ContainerIterator{constructor(i,a){super(a),this.o=i,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,n.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,n.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,n.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(i){this.container.setElementByPos(this.o,i)}};e.RandomIterator=r}),m7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(qF()),n=Cce();function r(s){return s&&s.t?s:{default:s}}var i=class _ce extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new _ce(this.o,this.container,this.iteratorType)}},a=class extends t.default{constructor(s=[],l=!0){if(super(),Array.isArray(s))this.J=l?[...s]:s,this.i=s.length;else{this.J=[];let c=this;s.forEach(function(u){c.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let l=0;for(let c=0;cthis.i-1)throw new RangeError;this.J[s]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(c).fill(l)),this.i+=c,this.i}find(s){for(let l=0;l{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(qF()),n=zf(),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class kce extends n.ContainerIterator{constructor(c,u,f,p){super(p),this.o=c,this.h=u,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l}set pointer(c){this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l=c}copy(){return new kce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,f={l,L:c,B:u};c.B=f,u.L=f,c===this.h&&(this.p=f),u===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,r.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let f=this.p;for(let h=1;h{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(qF()),n=Cce();function r(s){return s&&s.t?s:{default:s}}var i=class Ece extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new Ece(this.o,this.container,this.iteratorType)}},a=class extends t.default{constructor(s=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let c=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(c/this.F),1);for(let p=0;p>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let f=this;s.forEach(function(p){f.pushBack(p)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c>1}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.A[l][c]}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(s);this.A[c][u]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;c--;)this.pushFront(l);else if(s===this.i)for(;c--;)this.pushBack(l);else{let u=[];for(let f=s;fthis.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let l=[];for(let u=s+1;us;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,i){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=i}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let i=r.tt;for(;i.U===r;)r=i,i=r.tt;r=i}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let i=r.tt;for(;i.W===r;)r=i,i=r.tt;return r.W!==i?i:r}}te(){let r=this.tt,i=this.W,a=i.U;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.U=this,this.tt=i,this.W=a,a&&(a.tt=this),i}se(){let r=this.tt,i=this.U,a=i.W;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.W=this,this.tt=i,this.U=a,a&&(a.tt=this),i}};e.TreeNode=t;var n=class extends t{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=n}),$ce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=y7e(),n=zf(),r=Hf(),i=class extends n.Container{constructor(o=function(l,c){return lc?1:0},s=!1){super(),this.Y=void 0,this.v=o,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let f=this.ne(l,c,u);if(f){let p=f.tt;for(;p!==this.h;)p.rt+=1,p=p.tt;let h=this.he(f);if(h){let{parentNode:m,grandParent:g,curNode:v}=h;m.ie(),g.ie(),v.ie()}}return this.i},this.V=function(l){let c=this.fe(l);for(;c!==this.h;)c.rt-=1,c=c.tt}):(this.re=t.TreeNode,this.M=function(l,c,u){let f=this.ne(l,c,u);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(o,s){let l=this.h;for(;o;){let c=this.v(o.u,s);if(c<0)o=o.W;else if(c>0)l=o,o=o.U;else return o}return l}Z(o,s){let l=this.h;for(;o;)this.v(o.u,s)<=0?o=o.W:(l=o,o=o.U);return l}$(o,s){let l=this.h;for(;o;){let c=this.v(o.u,s);if(c<0)l=o,o=o.W;else if(c>0)o=o.U;else return o}return l}rr(o,s){let l=this.h;for(;o;)this.v(o.u,s)<0?(l=o,o=o.W):o=o.U;return l}ue(o){for(;;){let s=o.tt;if(s===this.h)return;if(o.ee===1){o.ee=0;return}if(o===s.U){let l=s.W;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.te():s.te();else if(l.W&&l.W.ee===1){l.ee=s.ee,s.ee=0,l.W.ee=0,s===this.Y?this.Y=s.te():s.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,o=s)}else{let l=s.U;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.se():s.se();else if(l.U&&l.U.ee===1){l.ee=s.ee,s.ee=0,l.U.ee=0,s===this.Y?this.Y=s.se():s.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,o=s)}}}fe(o){if(this.i===1)return this.clear(),this.h;let s=o;for(;s.U||s.W;){if(s.W)for(s=s.W;s.U;)s=s.U;else s=s.U;[o.u,s.u]=[s.u,o.u],[o.l,s.l]=[s.l,o.l],o=s}this.h.U===s?this.h.U=s.tt:this.h.W===s&&(this.h.W=s.tt),this.ue(s);let l=s.tt;return s===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(o,s){return o===void 0?!1:this.oe(o.U,s)||s(o)?!0:this.oe(o.W,s)}he(o){for(;;){let s=o.tt;if(s.ee===0)return;let l=s.tt;if(s===l.U){let c=l.W;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,o=l;continue}else if(o===s.W){if(o.ee=0,o.U&&(o.U.tt=s),o.W&&(o.W.tt=l),s.W=o.U,l.U=o.W,o.U=s,o.W=l,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,s.tt=o,l.tt=o,l.ee=1,{parentNode:s,grandParent:l,curNode:o}}else s.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let c=l.U;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,o=l;continue}else if(o===s.U){if(o.ee=0,o.U&&(o.U.tt=l),o.W&&(o.W.tt=s),l.W=o.U,s.U=o.W,o.U=l,o.W=s,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,s.tt=o,l.tt=o,l.ee=1,{parentNode:s,grandParent:l,curNode:o}}else s.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(o,s,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(o,s),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let c,u=this.h.U,f=this.v(u.u,o);if(f===0){u.l=s;return}else if(f>0)u.U=new this.re(o,s),u.U.tt=u,c=u.U,this.h.U=c;else{let p=this.h.W,h=this.v(p.u,o);if(h===0){p.l=s;return}else if(h<0)p.W=new this.re(o,s),p.W.tt=p,c=p.W,this.h.W=c;else{if(l!==void 0){let m=l.o;if(m!==this.h){let g=this.v(m.u,o);if(g===0){m.l=s;return}else if(g>0){let v=m.L(),y=this.v(v.u,o);if(y===0){v.l=s;return}else y<0&&(c=new this.re(o,s),v.W===void 0?(v.W=c,c.tt=v):(m.U=c,c.tt=m))}}}if(c===void 0)for(c=this.Y;;){let m=this.v(c.u,o);if(m>0){if(c.U===void 0){c.U=new this.re(o,s),c.U.tt=c,c=c.U;break}c=c.U}else if(m<0){if(c.W===void 0){c.W=new this.re(o,s),c.W.tt=c,c=c.W;break}c=c.W}else{c.l=s;return}}}}return this.i+=1,c}I(o,s){for(;o;){let l=this.v(o.u,s);if(l<0)o=o.W;else if(l>0)o=o.U;else return o}return o||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(o,s){let l=o.o;if(l===this.h&&(0,r.throwIteratorAccessError)(),this.i===1)return l.u=s,!0;if(l===this.h.U)return this.v(l.B().u,s)>0?(l.u=s,!0):!1;if(l===this.h.W)return this.v(l.L().u,s)<0?(l.u=s,!0):!1;let c=l.L().u;if(this.v(c,s)>=0)return!1;let u=l.B().u;return this.v(u,s)<=0?!1:(l.u=s,!0)}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s=0,l=this;return this.oe(this.Y,function(c){return o===s?(l.V(c),!0):(s+=1,!1)}),this.i}eraseElementByKey(o){if(this.i===0)return!1;let s=this.I(this.Y,o);return s===this.h?!1:(this.V(s),!0)}eraseElementByIterator(o){let s=o.o;s===this.h&&(0,r.throwIteratorAccessError)();let l=s.W===void 0;return o.iteratorType===0?l&&o.next():(!l||s.U===void 0)&&o.next(),this.V(s),o}forEach(o){let s=0;for(let l of this)o(l,s++,this)}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s,l=0;for(let c of this){if(l===o){s=c;break}l+=1}return s}getHeight(){if(this.i===0)return 0;let o=function(s){return s?Math.max(o(s.U),o(s.W))+1:0};return o(this.Y)}},a=i;e.default=a}),Mce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=Hf(),r=class extends t.ContainerIterator{constructor(a,o,s){super(s),this.o=a,this.h=o,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let a=this.o,o=this.h.tt;if(a===this.h)return o?o.rt-1:0;let s=0;for(a.U&&(s+=a.U.rt);a!==o;){let l=a.tt;a===l.W&&(s+=1,l.U&&(s+=l.U.rt)),a=l}return s}},i=r;e.default=i}),b7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i($ce()),n=i(Mce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Tce extends n.default{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new Tce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(p){f.insert(p)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,c){return this.M(l,void 0,c)}find(l){let c=this.I(this.Y,l);return new a(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new a(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new a(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new a(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new a(c,this.h,this)}union(l){let c=this;return l.forEach(function(u){c.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=o;e.default=s}),w7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i($ce()),n=i(Mce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Pce extends n.default{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,p){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=p,!0}})}copy(){return new Pce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(p){f.setElement(p[0],p[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let c=this.X(this.Y,l);return new a(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new a(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new a(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new a(c,this.h,this)}setElement(l,c,u){return this.M(l,c,u)}find(l){let c=this.I(this.Y,l);return new a(c,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let c=this;return l.forEach(function(u){c.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=o;e.default=s}),Oce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),Rce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=zf(),n=i(Oce()),r=Hf();function i(s){return s&&s.t?s:{default:s}}var a=class extends t.ContainerIterator{constructor(s,l,c){super(c),this.o=s,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=a;var o=class extends t.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(s){let{L:l,B:c}=s;l.B=c,c.L=l,s===this.p&&(this.p=c),s===this._&&(this._=l),this.i-=1}M(s,l,c){c===void 0&&(c=(0,n.default)(s));let u;if(c){let f=s[this.HASH_TAG];if(f!==void 0)return this.H[f].l=l,this.i;Object.defineProperty(s,this.HASH_TAG,{value:this.H.length,configurable:!0}),u={u:s,l,L:this._,B:this.h},this.H.push(u)}else{let f=this.g[s];if(f)return f.l=l,this.i;u={u:s,l,L:this._,B:this.h},this.g[s]=u}return this.i===0?(this.p=u,this.h.B=u):this._.B=u,this._=u,this.h.L=u,++this.i}I(s,l){if(l===void 0&&(l=(0,n.default)(s)),l){let c=s[this.HASH_TAG];return c===void 0?this.h:this.H[c]}else return this.g[s]||this.h}clear(){let s=this.HASH_TAG;this.H.forEach(function(l){delete l.u[s]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(s,l){let c;if(l===void 0&&(l=(0,n.default)(s)),l){let u=s[this.HASH_TAG];if(u===void 0)return!1;delete s[this.HASH_TAG],c=this.H[u],delete this.H[u]}else{if(c=this.g[s],c===void 0)return!1;delete this.g[s]}return this.V(c),!0}eraseElementByIterator(s){let l=s.o;return l===this.h&&(0,r.throwIteratorAccessError)(),this.V(l),s.next()}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return this.V(l),this.i}};e.HashContainer=o}),x7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Rce(),n=Hf(),r=class Ice extends t.HashContainerIterator{constructor(s,l,c,u){super(s,l,u),this.container=c}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new Ice(this.o,this.h,this.container,this.iteratorType)}},i=class extends t.HashContainer{constructor(o=[]){super();let s=this;o.forEach(function(l){s.insert(l)})}begin(){return new r(this.p,this.h,this)}end(){return new r(this.h,this.h,this)}rBegin(){return new r(this._,this.h,this,1)}rEnd(){return new r(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(o,s){return this.M(o,void 0,s)}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s=this.p;for(;o--;)s=s.B;return s.u}find(o,s){let l=this.I(o,s);return new r(l,this.h,this)}forEach(o){let s=0,l=this.p;for(;l!==this.h;)o(l.u,s++,this),l=l.B}[Symbol.iterator](){return(function*(){let o=this.p;for(;o!==this.h;)yield o.u,o=o.B}).bind(this)()}},a=i;e.default=a}),S7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Rce(),n=i(Oce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class jce extends t.HashContainerIterator{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,p){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=p,!0}})}copy(){return new jce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.HashContainer{constructor(l=[]){super();let c=this;l.forEach(function(u){c.setElement(u[0],u[1])})}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,c,u){return this.M(l,c,u)}getElementByKey(l,c){if(c===void 0&&(c=(0,n.default)(l)),c){let f=l[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let u=this.g[l];return u?u.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return[c.u,c.l]}find(l,c){let u=this.I(l,c);return new a(u,this.h,this)}forEach(l){let c=0,u=this.p;for(;u!==this.h;)l([u.u,u.l],c++,this),u=u.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},s=o;e.default=s}),C7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return i.default}});var t=f(f7e()),n=f(p7e()),r=f(h7e()),i=f(m7e()),a=f(g7e()),o=f(v7e()),s=f(b7e()),l=f(w7e()),c=f(x7e()),u=f(S7e());function f(p){return p&&p.t?p:{default:p}}}),_7e=un((e,t)=>{Zt(),Jt(),Qt();var n=C7e().OrderedSet,r=Pf()("number-allocator:trace"),i=Pf()("number-allocator:error");function a(s,l){this.low=s,this.high=l}a.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},a.prototype.compare=function(s){return this.lowc.compare(u)),r("Create"),this.clear()}o.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},o.prototype.alloc=function(){if(this.ss.size()===0)return r("alloc():empty"),null;let s=this.ss.begin(),l=s.pointer.low,c=s.pointer.high,u=l;return u+1<=c?this.ss.updateKeyByIterator(s,new a(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},o.prototype.use=function(s){let l=new a(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,f=c.pointer.high;return c.pointer.equals(l)?(this.ss.eraseElementByIterator(c),r("use():"+s),!0):u>s?!1:u===s?(this.ss.updateKeyByIterator(c,new a(u+1,f)),r("use():"+s),!0):f===s?(this.ss.updateKeyByIterator(c,new a(u,f-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new a(s+1,f)),this.ss.insert(new a(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},o.prototype.free=function(s){if(sthis.max){i("free():"+s+" is out of range");return}let l=new a(s,s),c=this.ss.upperBound(l);if(c.equals(this.ss.end())){if(c.equals(this.ss.begin())){this.ss.insert(l);return}c.pre();let u=c.pointer.high;c.pointer.high+1===s?this.ss.updateKeyByIterator(c,new a(u,s)):this.ss.insert(l)}else if(c.equals(this.ss.begin()))if(s+1===c.pointer.low){let u=c.pointer.high;this.ss.updateKeyByIterator(c,new a(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,f=c.pointer.high;c.pre();let p=c.pointer.low;c.pointer.high+1===s?s+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new a(p,f))):this.ss.updateKeyByIterator(c,new a(p,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new a(s,f))):this.ss.insert(l)}r("free():"+s)},o.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new a(this.min,this.max))},o.prototype.intervalCount=function(){return this.ss.size()},o.prototype.dump=function(){console.log("length:"+this.ss.size());for(let s of this.ss)console.log(s)},t.exports=o}),Nce=un((e,t)=>{Zt(),Jt(),Qt();var n=_7e();t.exports.NumberAllocator=n}),k7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=d7e(),n=Nce(),r=class{constructor(i){i>0&&(this.aliasToTopic=new t.LRUCache({max:i}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,i),this.max=i,this.length=0)}put(i,a){if(a===0||a>this.max)return!1;let o=this.aliasToTopic.get(a);return o&&delete this.topicToAlias[o],this.aliasToTopic.set(a,i),this.topicToAlias[i]=a,this.numberAllocator.use(a),this.length=this.aliasToTopic.size,!0}getTopicByAlias(i){return this.aliasToTopic.get(i)}getAliasByTopic(i){let a=this.topicToAlias[i];return typeof a<"u"&&this.aliasToTopic.get(a),a}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=r}),E7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=gE(),r=t(k7e()),i=my(),a=(o,s)=>{o.log("_handleConnack");let{options:l}=o,c=l.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(o.connackTimer),delete o.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535){o.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}s.properties.topicAliasMaximum>0&&(o.topicAliasSend=new r.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=s.properties.serverKeepAlive),s.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(c===0)o.reconnecting=!1,o._onConnect(s);else if(c>0){let u=new i.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);o.emit("error",u),o.options.reconnectOnConnackError&&o._cleanUp(!0)}};e.default=a}),$7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,i)=>{n.log("handling pubrel packet");let a=typeof i<"u"?i:n.noop,{messageId:o}=r,s={cmd:"pubcomp",messageId:o};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,a):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return a(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,a)}))})};e.default=t}),M7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(l7e()),r=t(u7e()),i=t(E7e()),a=t(gE()),o=t($7e()),s=(l,c,u)=>{let{options:f}=l;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((hy(),Si(Lg))),r=my(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)}),vE=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var a;return typeof window<"u"?typeof navigator<"u"&&((a=navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase().indexOf(" electron/"))>-1&&li!=null&&li.versions?!Object.prototype.hasOwnProperty.call(li.versions,"electron"):typeof window.document<"u":!1},n=()=>{var a,o;return!!(typeof self=="object"&&!((o=(a=self==null?void 0:self.constructor)===null||a===void 0?void 0:a.name)===null||o===void 0)&&o.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",i=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=i}),P7e=un((e,t)=>{Zt(),Jt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))}(e,function(n){var r=function(h){return function(m){var g=h(m);return m.add(g),g}},i=function(h){return function(m,g){return h.set(m,g),g}},a=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,s=o*2,l=function(h,m){return function(g){var v=m.get(g),y=v===void 0?g.size:va)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(y);)y=Math.floor(Math.random()*a);return h(g,y)}},c=new WeakMap,u=i(c),f=l(u,c),p=r(f);n.addUniqueNumber=p,n.generateUniqueNumber=f})}),O7e=un((e,t)=>{Zt(),Jt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,P7e()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimersBroker={},n.fastUniqueNumbers))}(e,function(n,r){var i=function(s){return s.method!==void 0&&s.method==="call"},a=function(s){return s.error===null&&typeof s.id=="number"},o=function(s){var l=new Map([[0,function(){}]]),c=new Map([[0,function(){}]]),u=new Map,f=new Worker(s);f.addEventListener("message",function(v){var y=v.data;if(i(y)){var w=y.params,b=w.timerId,C=w.timerType;if(C==="interval"){var k=l.get(b);if(typeof k=="number"){var S=u.get(k);if(S===void 0||S.timerId!==b||S.timerType!==C)throw new Error("The timer is in an undefined state.")}else if(typeof k<"u")k();else throw new Error("The timer is in an undefined state.")}else if(C==="timeout"){var _=c.get(b);if(typeof _=="number"){var E=u.get(_);if(E===void 0||E.timerId!==b||E.timerType!==C)throw new Error("The timer is in an undefined state.")}else if(typeof _<"u")_(),c.delete(b);else throw new Error("The timer is in an undefined state.")}}else if(a(y)){var $=y.id,M=u.get($);if(M===void 0)throw new Error("The timer is in an undefined state.");var P=M.timerId,R=M.timerType;u.delete($),R==="interval"?l.delete(P):c.delete(P)}else{var O=y.error.message;throw new Error(O)}});var p=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"interval"}),l.set(v,y),f.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"interval"}})},h=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"timeout"}),c.set(v,y),f.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"timeout"}})},m=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=r.generateUniqueNumber(l);return l.set(w,function(){v(),typeof l.get(w)=="function"&&f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:w,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:w,timerType:"interval"}}),w},g=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=r.generateUniqueNumber(c);return c.set(w,v),f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:w,timerType:"timeout"}}),w};return{clearInterval:p,clearTimeout:h,setInterval:m,setTimeout:g}};n.load=o})}),R7e=un((e,t)=>{Zt(),Jt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,O7e()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimers={},n.workerTimersBroker))}(e,function(n,r){var i=function(f,p){var h=null;return function(){if(h!==null)return h;var m=new Blob([p],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(m);return h=f(g),setTimeout(function(){return URL.revokeObjectURL(g)}),h}},a=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,o=i(r.load,a),s=function(f){return o().clearInterval(f)},l=function(f){return o().clearTimeout(f)},c=function(){var f;return(f=o()).setInterval.apply(f,arguments)},u=function(){var f;return(f=o()).setTimeout.apply(f,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),I7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(c,u,f,p){p===void 0&&(p=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,p,h)}:function(c,u,f,p){p===void 0&&(p=f),c[p]=u[f]}),n=e&&e.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),r=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var f in c)f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)&&t(u,c,f);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var i=r(vE()),a=R7e(),o={set:a.setInterval,clear:a.clearInterval},s={set:(c,u)=>setInterval(c,u),clear:c=>clearInterval(c)},l=c=>{switch(c){case"native":return s;case"worker":return o;case"auto":default:return i.default&&!i.isWebWorker&&!i.isReactNativeBrowser?o:s}};e.default=l}),Ace=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(I7e()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(i,a){this.destroyed=!1,this.client=i,this.timer=typeof a=="object"&&"set"in a&&"clear"in a?a:(0,n.default)(a),this.setKeepalive(i.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(i){if(i*=1e3,isNaN(i)||i<=0||i>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${i}`);this._keepalive=i,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${i}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let i=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+i,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=r}),TI=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(k,S,_,E){E===void 0&&(E=_);var $=Object.getOwnPropertyDescriptor(S,_);(!$||("get"in $?!S.__esModule:$.writable||$.configurable))&&($={enumerable:!0,get:function(){return S[_]}}),Object.defineProperty(k,E,$)}:function(k,S,_,E){E===void 0&&(E=_),k[E]=S[_]}),n=e&&e.__setModuleDefault||(Object.create?function(k,S){Object.defineProperty(k,"default",{enumerable:!0,value:S})}:function(k,S){k.default=S}),r=e&&e.__importStar||function(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var _ in k)_!=="default"&&Object.prototype.hasOwnProperty.call(k,_)&&t(S,k,_);return n(S,k),S},i=e&&e.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(S$e()),o=i(i7e()),s=i(bce()),l=Bg(),c=i(o7e()),u=r(s7e()),f=i(Pf()),p=i(wce()),h=i(M7e()),m=my(),g=T7e(),v=i(Ace()),y=r(vE()),w=globalThis.setImmediate||((...k)=>{let S=k.shift();(0,m.nextTick)(()=>{S(...k)})}),b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},C=class PI extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(S,_){super(),this.options=_||{};for(let E in b)typeof this.options[E]>"u"?this.options[E]=b[E]:this.options[E]=_[E];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",PI.VERSION),y.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",y.default?"browser":"node"),this.log("MqttClient :: options.protocol",_.protocol),this.log("MqttClient :: options.protocolVersion",_.protocolVersion),this.log("MqttClient :: options.username",_.username),this.log("MqttClient :: options.keepalive",_.keepalive),this.log("MqttClient :: options.reconnectPeriod",_.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",_.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",_.properties?_.properties.topicAliasMaximum:void 0),this.options.clientId=typeof _.clientId=="string"?_.clientId:PI.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=_.protocolVersion===5&&_.customHandleAcks?_.customHandleAcks:(...E)=>{E[3](null,0)},this.options.writeCache||(o.default.writeToStream.cacheNumbers=!1),this.streamBuilder=S,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=_.outgoingStore||new p.default,this.incomingStore=_.incomingStore||new p.default,this.queueQoSZero=_.queueQoSZero===void 0?!0:_.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,_.properties&&_.properties.topicAliasMaximum>0&&(_.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new a.default(_.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:E}=this,$=()=>{let M=E.shift();this.log("deliver :: entry %o",M);let P=null;if(!M){this._resubscribe();return}P=M.packet,this.log("deliver :: call _sendPacket for %o",P);let R=!0;P.messageId&&P.messageId!==0&&(this.messageIdProvider.register(P.messageId)||(R=!1)),R?this._sendPacket(P,O=>{M.cb&&M.cb(O),$()}):(this.log("messageId: %d has already used. The message is skipped and removed.",P.messageId),$())};this.log("connect :: sending queued packets"),$()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(S,_){_()}handleMessage(S,_){_()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var S;let _=new l.Writable,E=o.default.parser(this.options),$=null,M=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),E.on("packet",I=>{this.log("parser :: on packet push to packets array."),M.push(I)});let P=()=>{this.log("work :: getting next packet in queue");let I=M.shift();if(I)this.log("work :: packet pulled from queue"),(0,h.default)(this,I,R);else{this.log("work :: no packets in queue");let A=$;$=null,this.log("work :: done flag is %s",!!A),A&&A()}},R=()=>{if(M.length)(0,m.nextTick)(P);else{let I=$;$=null,I()}};_._write=(I,A,N)=>{$=N,this.log("writable stream :: parsing buffer"),E.parse(I),P()};let O=I=>{this.log("streamErrorHandler :: error",I.message),I.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",I)):this.noop(I)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(_),this.stream.on("error",O),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let j={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(j.will=Object.assign(Object.assign({},this.options.will),{payload:(S=this.options.will)===null||S===void 0?void 0:S.payload})),this.topicAliasRecv&&(j.properties||(j.properties={}),this.topicAliasRecv&&(j.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(j),E.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let I=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(I)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(S,_,E,$){this.log("publish :: message `%s` to topic `%s`",_,S);let{options:M}=this;typeof E=="function"&&($=E,E=null),E=E||{},E=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),E);let{qos:P,retain:R,dup:O,properties:j,cbStorePut:I}=E;if(this._checkDisconnecting($))return this;let A=()=>{let N=0;if((P===1||P===2)&&(N=this._nextId(),N===null))return this.log("No messageId left"),!1;let F={cmd:"publish",topic:S,payload:_,qos:P,retain:R,messageId:N,dup:O};switch(M.protocolVersion===5&&(F.properties=j),this.log("publish :: qos",P),P){case 1:case 2:this.outgoing[F.messageId]={volatile:!1,cb:$||this.noop},this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,void 0,I);break;default:this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,$,I);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!A())&&this._storeProcessingQueue.push({invoke:A,cbStorePut:E.cbStorePut,callback:$}),this}publishAsync(S,_,E){return new Promise(($,M)=>{this.publish(S,_,E,(P,R)=>{P?M(P):$(R)})})}subscribe(S,_,E){let $=this.options.protocolVersion;typeof _=="function"&&(E=_),E=E||this.noop;let M=!1,P=[];typeof S=="string"?(S=[S],P=S):Array.isArray(S)?P=S:typeof S=="object"&&(M=S.resubscribe,delete S.resubscribe,P=Object.keys(S));let R=u.validateTopics(P);if(R!==null)return w(E,new Error(`Invalid topic ${R}`)),this;if(this._checkDisconnecting(E))return this.log("subscribe: discconecting true"),this;let O={qos:0};$===5&&(O.nl=!1,O.rap=!1,O.rh=0),_=Object.assign(Object.assign({},O),_);let j=_.properties,I=[],A=(F,K)=>{if(K=K||_,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,F)||this._resubscribeTopics[F].qos{this.log("subscribe: array topic %s",F),A(F)}):Object.keys(S).forEach(F=>{this.log("subscribe: object topic %s, %o",F,S[F]),A(F,S[F])}),!I.length)return E(null,[]),this;let N=()=>{let F=this._nextId();if(F===null)return this.log("No messageId left"),!1;let K={cmd:"subscribe",subscriptions:I,messageId:F};if(j&&(K.properties=j),this.options.resubscribe){this.log("subscribe :: resubscribe true");let L=[];I.forEach(V=>{if(this.options.reconnectPeriod>0){let B={qos:V.qos};$===5&&(B.nl=V.nl||!1,B.rap=V.rap||!1,B.rh=V.rh||0,B.properties=V.properties),this._resubscribeTopics[V.topic]=B,L.push(V.topic)}}),this.messageIdToTopic[K.messageId]=L}return this.outgoing[K.messageId]={volatile:!0,cb(L,V){if(!L){let{granted:B}=V;for(let U=0;U0||!N())&&this._storeProcessingQueue.push({invoke:N,callback:E}),this}subscribeAsync(S,_){return new Promise((E,$)=>{this.subscribe(S,_,(M,P)=>{M?$(M):E(P)})})}unsubscribe(S,_,E){typeof S=="string"&&(S=[S]),typeof _=="function"&&(E=_),E=E||this.noop;let $=u.validateTopics(S);if($!==null)return w(E,new Error(`Invalid topic ${$}`)),this;if(this._checkDisconnecting(E))return this;let M=()=>{let P=this._nextId();if(P===null)return this.log("No messageId left"),!1;let R={cmd:"unsubscribe",messageId:P,unsubscriptions:[]};return typeof S=="string"?R.unsubscriptions=[S]:Array.isArray(S)&&(R.unsubscriptions=S),this.options.resubscribe&&R.unsubscriptions.forEach(O=>{delete this._resubscribeTopics[O]}),typeof _=="object"&&_.properties&&(R.properties=_.properties),this.outgoing[R.messageId]={volatile:!0,cb:E},this.log("unsubscribe: call _sendPacket"),this._sendPacket(R),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!M())&&this._storeProcessingQueue.push({invoke:M,callback:E}),this}unsubscribeAsync(S,_){return new Promise((E,$)=>{this.unsubscribe(S,_,(M,P)=>{M?$(M):E(P)})})}end(S,_,E){this.log("end :: (%s)",this.options.clientId),(S==null||typeof S!="boolean")&&(E=E||_,_=S,S=!1),typeof _!="object"&&(E=E||_,_=null),this.log("end :: cb? %s",!!E),(!E||typeof E!="function")&&(E=this.noop);let $=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(P=>{this.outgoingStore.close(R=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),E){let O=P||R;this.log("end :: closeStores: invoking callback with args"),E(O)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},M=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,S),this._cleanUp(S,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)($)},_)};return this.disconnecting?(E(),this):(this._clearReconnect(),this.disconnecting=!0,!S&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,M,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),M()),this)}endAsync(S,_){return new Promise((E,$)=>{this.end(S,_,M=>{M?$(M):E()})})}removeOutgoingMessage(S){if(this.outgoing[S]){let{cb:_}=this.outgoing[S];this._removeOutgoingAndStoreMessage(S,()=>{_(new Error("Message removed"))})}return this}reconnect(S){this.log("client reconnect");let _=()=>{S?(this.options.incomingStore=S.incomingStore,this.options.outgoingStore=S.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=_:_(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(S=>{this.outgoing[S].volatile&&typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(S=>{typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_removeTopicAliasAndRecoverTopicName(S){let _;S.properties&&(_=S.properties.topicAlias);let E=S.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",_,E),E.length===0){if(typeof _>"u")return new Error("Unregistered Topic Alias");if(E=this.topicAliasSend.getTopicByAlias(_),typeof E>"u")return new Error("Unregistered Topic Alias");S.topic=E}_&&delete S.properties.topicAlias}_checkDisconnecting(S){return this.disconnecting&&(S&&S!==this.noop?S(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(S,_,E={}){if(_&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",_)),this.log("_cleanUp :: forced? %s",S),S)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let $=Object.assign({cmd:"disconnect"},E);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket($,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),w(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),_&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",_),_())}_storeAndSend(S,_,E){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",S.cmd);let $=S,M;if($.cmd==="publish"&&($=(0,c.default)(S),M=this._removeTopicAliasAndRecoverTopicName($),M))return _&&_(M);this.outgoingStore.put($,P=>{if(P)return _&&_(P);E(),this._writePacket(S,_)})}_applyTopicAlias(S){if(this.options.protocolVersion===5&&S.cmd==="publish"){let _;S.properties&&(_=S.properties.topicAlias);let E=S.topic.toString();if(this.topicAliasSend)if(_){if(E.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",E,_),!this.topicAliasSend.put(E,_)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",E,_),new Error("Sending Topic Alias out of range")}else E.length!==0&&(this.options.autoAssignTopicAlias?(_=this.topicAliasSend.getAliasByTopic(E),_?(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",E,_)):(_=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(E,_),S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",E,_))):this.options.autoUseTopicAlias&&(_=this.topicAliasSend.getAliasByTopic(E),_&&(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",E,_))));else if(_)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",E,_),new Error("Sending Topic Alias out of range")}}_noop(S){this.log("noop ::",S)}_writePacket(S,_){this.log("_writePacket :: packet: %O",S),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",S),this.log("_writePacket :: writing to stream");let E=o.default.writeToStream(S,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",E),!E&&_&&_!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",_)):_&&(this.log("_writePacket :: invoking cb"),_())}_sendPacket(S,_,E,$){this.log("_sendPacket :: (%s) :: start",this.options.clientId),E=E||this.noop,_=_||this.noop;let M=this._applyTopicAlias(S);if(M){_(M);return}if(!this.connected){if(S.cmd==="auth"){this._writePacket(S,_);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(S,_,E);return}if($){this._writePacket(S,_);return}switch(S.cmd){case"publish":break;case"pubrel":this._storeAndSend(S,_,E);return;default:this._writePacket(S,_);return}switch(S.qos){case 2:case 1:this._storeAndSend(S,_,E);break;case 0:default:this._writePacket(S,_);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(S,_,E){this.log("_storePacket :: packet: %o",S),this.log("_storePacket :: cb? %s",!!_),E=E||this.noop;let $=S;if($.cmd==="publish"){$=(0,c.default)(S);let P=this._removeTopicAliasAndRecoverTopicName($);if(P)return _&&_(P)}let M=$.qos||0;M===0&&this.queueQoSZero||$.cmd!=="publish"?this.queue.push({packet:$,cb:_}):M>0?(_=this.outgoing[$.messageId]?this.outgoing[$.messageId].cb:null,this.outgoingStore.put($,P=>{if(P)return _&&_(P);E()})):_&&_(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(S=!1){this.keepaliveManager&&this.options.keepalive&&(S||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let S=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&S.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let _=0;_{let E=this.outgoingStore.createStream(),$=()=>{E.destroy(),E=null,this._flushStoreProcessingQueue(),M()},M=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",$),E.on("error",R=>{M(),this._flushStoreProcessingQueue(),this.removeListener("close",$),this.emit("error",R)});let P=()=>{if(!E)return;let R=E.read(1),O;if(!R){E.once("readable",P);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[R.messageId]){P();return}!this.disconnecting&&!this.reconnectTimer?(O=this.outgoing[R.messageId]?this.outgoing[R.messageId].cb:null,this.outgoing[R.messageId]={volatile:!1,cb(j,I){O&&O(j,I),P()}},this._packetIdsDuringStoreProcessing[R.messageId]=!0,this.messageIdProvider.register(R.messageId)?this._sendPacket(R,void 0,void 0,!0):this.log("messageId: %d has already used.",R.messageId)):E.destroy&&E.destroy()};E.on("end",()=>{let R=!0;for(let O in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[O]){R=!1;break}this.removeListener("close",$),R?(M(),this._invokeAllStoreProcessingQueue(),this.emit("connect",S)):_()}),P()};_()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let S=this._storeProcessingQueue[0];if(S&&S.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let S of this._storeProcessingQueue)S.cbStorePut&&S.cbStorePut(new Error("Connection closed")),S.callback&&S.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(S,_){delete this.outgoing[S],this.outgoingStore.del({messageId:S},(E,$)=>{_(E,$),this.messageIdProvider.deallocate(S),this._invokeStoreProcessingQueue()})}};C.VERSION=m.MQTTJS_VERSION,e.default=C}),j7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Nce(),n=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}};e.default=n});function Wh(e){throw new RangeError(Fce[e])}function iK(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let i=function(a,o){let s=[],l=a.length;for(;l--;)s[l]=o(a[l]);return s}((e=e.replace(Dce,".")).split("."),t).join(".");return r+i}function aK(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&n{Zt(),Jt(),Qt(),oK=/^xn--/,sK=/[^\0-\x7E]/,Dce=/[\x2E\u3002\uFF0E\uFF61]/g,Fce={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Nc=Math.floor,tS=String.fromCharCode,YM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},XM=function(e,t,n){let r=0;for(e=n?Nc(e/700):e>>1,e+=Nc(e/t);e>455;r+=36)e=Nc(e/35);return Nc(r+36*e/(e+38))},ZM=function(e){let t=[],n=e.length,r=0,i=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let l=0;l=128&&Wh("not-basic"),t.push(e.charCodeAt(l));for(let l=o>0?o+1:0;l=n&&Wh("invalid-input");let h=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(h>=36||h>Nc((2147483647-r)/f))&&Wh("overflow"),r+=h*f;let m=p<=a?1:p>=a+26?26:p-a;if(hNc(2147483647/g)&&Wh("overflow"),f*=g}let u=t.length+1;a=XM(r-c,u,c==0),Nc(r/u)>2147483647-i&&Wh("overflow"),i+=Nc(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},QM=function(e){let t=[],n=(e=aK(e)).length,r=128,i=0,a=72;for(let l of e)l<128&&t.push(tS(l));let o=t.length,s=o;for(o&&t.push("-");s=r&&uNc((2147483647-i)/c)&&Wh("overflow"),i+=(l-r)*c,r=l;for(let u of e)if(u2147483647&&Wh("overflow"),u==r){let f=i;for(let p=36;;p+=36){let h=p<=a?1:p>=a+26?26:p-a;if(fString.fromCodePoint(...e)},decode:ZM,encode:QM,toASCII:function(e){return iK(e,function(t){return sK.test(t)?"xn--"+QM(t):t})},toUnicode:function(e){return iK(e,function(t){return oK.test(t)?ZM(t.slice(4).toLowerCase()):t})}},mp.decode,mp.encode,mp.toASCII,mp.toUnicode,mp.ucs2,mp.version});function A7e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var lK,_1,cK,Bu,D7e=Co(()=>{Zt(),Jt(),Qt(),lK=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if(typeof e!="string"||e.length===0)return i;var a=/\+/g;e=e.split(t);var o=1e3;r&&typeof r.maxKeys=="number"&&(o=r.maxKeys);var s=e.length;o>0&&s>o&&(s=o);for(var l=0;l=0?(c=h.substr(0,m),u=h.substr(m+1)):(c=h,u=""),f=decodeURIComponent(c),p=decodeURIComponent(u),A7e(i,f)?Array.isArray(i[f])?i[f].push(p):i[f]=[i[f],p]:i[f]=p}return i},_1=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},cK=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var a=encodeURIComponent(_1(i))+n;return Array.isArray(e[i])?e[i].map(function(o){return a+encodeURIComponent(_1(o))}).join(t):a+encodeURIComponent(_1(e[i]))}).join(t):r?encodeURIComponent(_1(r))+n+encodeURIComponent(_1(e)):""},Bu={},Bu.decode=Bu.parse=lK,Bu.encode=Bu.stringify=cK,Bu.decode,Bu.encode,Bu.parse,Bu.stringify});function OI(){throw new Error("setTimeout has not been defined")}function RI(){throw new Error("clearTimeout has not been defined")}function Lce(e){if(ef===setTimeout)return setTimeout(e,0);if((ef===OI||!ef)&&setTimeout)return ef=setTimeout,setTimeout(e,0);try{return ef(e,0)}catch{try{return ef.call(null,e,0)}catch{return ef.call(this||Bm,e,0)}}}function F7e(){zm&&bm&&(zm=!1,bm.length?nd=bm.concat(nd):H2=-1,nd.length&&Bce())}function Bce(){if(!zm){var e=Lce(F7e);zm=!0;for(var t=nd.length;t;){for(bm=nd,nd=[];++H2{Zt(),Jt(),Qt(),Bm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,la=dK={},function(){try{ef=typeof setTimeout=="function"?setTimeout:OI}catch{ef=OI}try{tf=typeof clearTimeout=="function"?clearTimeout:RI}catch{tf=RI}}(),nd=[],zm=!1,H2=-1,la.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n1)for(var y=1;y{Zt(),Jt(),Qt(),zC={},II=!1,tm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Hi=B7e(),Hi.platform="browser",Hi.addListener,Hi.argv,Hi.binding,Hi.browser,Hi.chdir,Hi.cwd,Hi.emit,Hi.env,Hi.listeners,Hi.nextTick,Hi.off,Hi.on,Hi.once,Hi.prependListener,Hi.prependOnceListener,Hi.removeAllListeners,Hi.removeListener,Hi.title,Hi.umask,Hi.version,Hi.versions});function z7e(){if(jI)return HC;jI=!0;var e=Hi;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,o){for(var s="",l=0,c=-1,u=0,f,p=0;p<=a.length;++p){if(p2){var h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=p,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=p,u=0;continue}}o&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+a.slice(c+1,p):s=a.slice(c+1,p),l=p-c-1;c=p,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(a,o){var s=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+l:s+a+l:l}var i={resolve:function(){for(var a="",o=!1,s,l=arguments.length-1;l>=-1&&!o;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(a=c+"/"+a,o=c.charCodeAt(0)===47)}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(t(a),a.length===0)return".";var o=a.charCodeAt(0)===47,s=a.charCodeAt(a.length-1)===47;return a=n(a,!o),a.length===0&&!o&&(a="."),a.length>0&&s&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return t(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o0&&(a===void 0?a=s:a+="/"+s)}return a===void 0?".":i.normalize(a)},relative:function(a,o){if(t(a),t(o),a===o||(a=i.resolve(a),o=i.resolve(o),a===o))return"";for(var s=1;sh){if(o.charCodeAt(u+g)===47)return o.slice(u+g+1);if(g===0)return o.slice(u+g)}else c>h&&(a.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=a.charCodeAt(s+g),y=o.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var w="";for(g=s+m+1;g<=l;++g)(g===l||a.charCodeAt(g)===47)&&(w.length===0?w+="..":w+="/..");return w.length>0?w+o.slice(u+m):(u+=m,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(a){return a},dirname:function(a){if(t(a),a.length===0)return".";for(var o=a.charCodeAt(0),s=o===47,l=-1,c=!0,u=a.length-1;u>=1;--u)if(o=a.charCodeAt(u),o===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":a.slice(0,l)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');t(a);var s=0,l=-1,c=!0,u;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var f=o.length-1,p=-1;for(u=a.length-1;u>=0;--u){var h=a.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else p===-1&&(c=!1,p=u+1),f>=0&&(h===o.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=p))}return s===l?l=p:l===-1&&(l=a.length),a.slice(s,l)}else{for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":a.slice(s,l)}},extname:function(a){t(a);for(var o=-1,s=0,l=-1,c=!0,u=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),p===46?o===-1?o=f:u!==1&&(u=1):o!==-1&&(u=-1)}return o===-1||l===-1||u===0||u===1&&o===l-1&&o===s+1?"":a.slice(o,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return r("/",a)},parse:function(a){t(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var s=a.charCodeAt(0),l=s===47,c;l?(o.root="/",c=1):c=0;for(var u=-1,f=0,p=-1,h=!0,m=a.length-1,g=0;m>=c;--m){if(s=a.charCodeAt(m),s===47){if(!h){f=m+1;break}continue}p===-1&&(h=!1,p=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||p===-1||g===0||g===1&&u===p-1&&u===f+1?p!==-1&&(f===0&&l?o.base=o.name=a.slice(1,p):o.base=o.name=a.slice(f,p)):(f===0&&l?(o.name=a.slice(1,u),o.base=a.slice(1,p)):(o.name=a.slice(f,u),o.base=a.slice(f,p)),o.ext=a.slice(u,p)),f>0?o.dir=a.slice(0,f-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,HC=i,HC}var HC,jI,NI,H7e=Co(()=>{Zt(),Jt(),Qt(),zce(),HC={},jI=!1,NI=z7e()}),Hce={};Dg(Hce,{URL:()=>oue,Url:()=>tue,default:()=>hi,fileURLToPath:()=>Uce,format:()=>nue,parse:()=>aue,pathToFileURL:()=>Wce,resolve:()=>rue,resolveObject:()=>iue});function Xl(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function $b(e,t,n){if(e&&Fc.isObject(e)&&e instanceof Xl)return e;var r=new Xl;return r.parse(e,t,n),r}function U7e(){if(AI)return UC;AI=!0;var e=Qi;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,o){for(var s="",l=0,c=-1,u=0,f,p=0;p<=a.length;++p){if(p2){var h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=p,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=p,u=0;continue}}o&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+a.slice(c+1,p):s=a.slice(c+1,p),l=p-c-1;c=p,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(a,o){var s=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+l:s+a+l:l}var i={resolve:function(){for(var a="",o=!1,s,l=arguments.length-1;l>=-1&&!o;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(a=c+"/"+a,o=c.charCodeAt(0)===47)}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(t(a),a.length===0)return".";var o=a.charCodeAt(0)===47,s=a.charCodeAt(a.length-1)===47;return a=n(a,!o),a.length===0&&!o&&(a="."),a.length>0&&s&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return t(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o0&&(a===void 0?a=s:a+="/"+s)}return a===void 0?".":i.normalize(a)},relative:function(a,o){if(t(a),t(o),a===o||(a=i.resolve(a),o=i.resolve(o),a===o))return"";for(var s=1;sh){if(o.charCodeAt(u+g)===47)return o.slice(u+g+1);if(g===0)return o.slice(u+g)}else c>h&&(a.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=a.charCodeAt(s+g),y=o.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var w="";for(g=s+m+1;g<=l;++g)(g===l||a.charCodeAt(g)===47)&&(w.length===0?w+="..":w+="/..");return w.length>0?w+o.slice(u+m):(u+=m,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(a){return a},dirname:function(a){if(t(a),a.length===0)return".";for(var o=a.charCodeAt(0),s=o===47,l=-1,c=!0,u=a.length-1;u>=1;--u)if(o=a.charCodeAt(u),o===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":a.slice(0,l)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');t(a);var s=0,l=-1,c=!0,u;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var f=o.length-1,p=-1;for(u=a.length-1;u>=0;--u){var h=a.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else p===-1&&(c=!1,p=u+1),f>=0&&(h===o.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=p))}return s===l?l=p:l===-1&&(l=a.length),a.slice(s,l)}else{for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":a.slice(s,l)}},extname:function(a){t(a);for(var o=-1,s=0,l=-1,c=!0,u=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),p===46?o===-1?o=f:u!==1&&(u=1):o!==-1&&(u=-1)}return o===-1||l===-1||u===0||u===1&&o===l-1&&o===s+1?"":a.slice(o,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return r("/",a)},parse:function(a){t(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var s=a.charCodeAt(0),l=s===47,c;l?(o.root="/",c=1):c=0;for(var u=-1,f=0,p=-1,h=!0,m=a.length-1,g=0;m>=c;--m){if(s=a.charCodeAt(m),s===47){if(!h){f=m+1;break}continue}p===-1&&(h=!1,p=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||p===-1||g===0||g===1&&u===p-1&&u===f+1?p!==-1&&(f===0&&l?o.base=o.name=a.slice(1,p):o.base=o.name=a.slice(f,p)):(f===0&&l?(o.name=a.slice(1,u),o.base=a.slice(1,p)):(o.name=a.slice(f,u),o.base=a.slice(f,p)),o.ext=a.slice(u,p)),f>0?o.dir=a.slice(0,f-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,UC=i,UC}function W7e(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return Ek?V7e(e):q7e(e)}function V7e(e){let t=e.hostname,n=e.pathname;for(let r=0;rGce||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function q7e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;nuue||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function Y7e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n{Zt(),Jt(),Qt(),N7e(),D7e(),L7e(),H7e(),zce(),hi={},fK=mp,Fc={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},hi.parse=$b,hi.resolve=function(e,t){return $b(e,!1,!0).resolve(t)},hi.resolveObject=function(e,t){return e?$b(e,!1,!0).resolveObject(t):t},hi.format=function(e){return Fc.isString(e)&&(e=$b(e)),e instanceof Xl?e.format():Xl.prototype.format.call(e)},hi.Url=Xl,pK=/^([a-z0-9.+-]+:)/i,hK=/:[0-9]*$/,mK=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,gK=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),nS=["'"].concat(gK),JM=["%","/","?",";","#"].concat(nS),e9=["/","?","#"],t9=/^[+a-z0-9A-Z_-]{0,63}$/,vK=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,yK={javascript:!0,"javascript:":!0},rS={javascript:!0,"javascript:":!0},Vh={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},iS=Bu,Xl.prototype.parse=function(e,t,n){if(!Fc.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?C+="x":C+=b[k];if(!C.match(t9)){var _=y.slice(0,m),E=y.slice(m+1),$=b.match(vK);$&&(_.push($[1]),E.unshift($[2])),E.length&&(o="/"+E.join(".")+o),this.hostname=_.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=fK.toASCII(this.hostname));var M=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+M,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),o[0]!=="/"&&(o="/"+o))}if(!yK[c])for(m=0,w=nS.length;m0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift())),n.search=e.search,n.query=e.query,Fc.isNull(n.pathname)&&Fc.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=b.slice(-1)[0],S=(n.host||e.host||b.length>1)&&(k==="."||k==="..")||k==="",_=0,E=b.length;E>=0;E--)(k=b[E])==="."?b.splice(E,1):k===".."?(b.splice(E,1),_++):_&&(b.splice(E,1),_--);if(!y&&!w)for(;_--;_)b.unshift("..");!y||b[0]===""||b[0]&&b[0].charAt(0)==="/"||b.unshift(""),S&&b.join("/").substr(-1)!=="/"&&b.push("");var $,M=b[0]===""||b[0]&&b[0].charAt(0)==="/";return C&&(n.hostname=n.host=M?"":b.length?b.shift():"",($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift())),(y=y||n.host&&b.length)&&!M&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),Fc.isNull(n.pathname)&&Fc.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Xl.prototype.parseHost=function(){var e=this.host,t=hK.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},hi.Url,hi.format,hi.resolve,hi.resolveObject,UC={},AI=!1,DI=U7e(),bK=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,hi.URL=typeof URL<"u"?URL:null,hi.pathToFileURL=K7e,hi.fileURLToPath=W7e,hi.Url,hi.format,hi.resolve,hi.resolveObject,hi.URL,Vce=92,qce=47,Kce=97,Gce=122,Ek=bK==="win32",Yce=/\//g,Xce=/%/g,Zce=/\\/g,Qce=/\n/g,Jce=/\r/g,eue=/\t/g,wK=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,hi.URL=typeof URL<"u"?URL:null,hi.pathToFileURL=Wce,hi.fileURLToPath=Uce,tue=hi.Url,nue=hi.format,rue=hi.resolve,iue=hi.resolveObject,aue=hi.parse,oue=hi.URL,sue=92,lue=47,cue=97,uue=122,$k=wK==="win32",due=/\//g,fue=/%/g,pue=/\\/g,hue=/\n/g,mue=/\r/g,gue=/\t/g}),Z7e=un((e,t)=>{Zt(),Jt(),Qt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),KF=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=Bg(),n=(ko(),Si(_o));function r(a,o){let s=new Array(a.length);for(let l=0;l{this.destroyed||this.push(l)})}_read(a){this.proxy.read(a)}_write(a,o,s){this.isSocketOpen?this.writeToProxy(a,o,s):this.writeQueue.push({chunk:a,encoding:o,cb:s})}_final(a){this.writeQueue=[],this.proxy.end(a)}_destroy(a,o){this.writeQueue=[],this.proxy.destroy(),o(a)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(a,o,s){this.proxy.write(a,o)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:a,encoding:o,cb:s}=this.writeQueue.shift();this.writeToProxy(a,o,s)}}};e.BufferedDuplex=i}),aS=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(ko(),Si(_o)),r=t(Z7e()),i=t(Pf()),a=Bg(),o=t(vE()),s=KF(),l=(0,i.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(y,w){let b=`${y.protocol}://${y.hostname}:${y.port}${y.path}`;return typeof y.transformWsUrl=="function"&&(b=y.transformWsUrl(b,y,w)),b}function f(y){let w=y;return y.port||(y.protocol==="wss"?w.port=443:w.port=80),y.path||(w.path="/"),y.wsOptions||(w.wsOptions={}),!o.default&&!y.forceNativeWebSocket&&y.protocol==="wss"&&c.forEach(b=>{Object.prototype.hasOwnProperty.call(y,b)&&!Object.prototype.hasOwnProperty.call(y.wsOptions,b)&&(w.wsOptions[b]=y[b])}),w}function p(y){let w=f(y);if(w.hostname||(w.hostname=w.host),!w.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let b=new URL(document.URL);w.hostname=b.hostname,w.port||(w.port=Number(b.port))}return w.objectMode===void 0&&(w.objectMode=!(w.binary===!0||w.binary===void 0)),w}function h(y,w,b){l("createWebSocket"),l(`protocol: ${b.protocolId} ${b.protocolVersion}`);let C=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${w} and protocol: ${C}`);let k;return b.createWebsocket?k=b.createWebsocket(w,[C],b):k=new r.default(w,[C],b.wsOptions),k}function m(y,w){let b=w.protocolId==="MQIsdp"&&w.protocolVersion===3?"mqttv3.1":"mqtt",C=u(w,y),k;return w.createWebsocket?k=w.createWebsocket(C,[b],w):k=new WebSocket(C,[b]),k.binaryType="arraybuffer",k}var g=(y,w)=>{l("streamBuilder");let b=f(w);b.hostname=b.hostname||b.host||"localhost";let C=u(b,y),k=h(y,C,b),S=r.default.createWebSocketStream(k,b.wsOptions);return S.url=C,k.on("close",()=>{S.destroy()}),S};e.streamBuilder=g;var v=(y,w)=>{l("browserStreamBuilder");let b,C=p(w).browserBufferSize||1024*512,k=w.browserBufferTimeout||1e3,S=!w.objectMode,_=m(y,w),E=M(w,I,A);w.objectMode||(E._writev=s.writev.bind(E)),E.on("close",()=>{_.close()});let $=typeof _.addEventListener<"u";_.readyState===_.OPEN?(b=E,b.socket=_):(b=new s.BufferedDuplex(w,E,_),$?_.addEventListener("open",P):_.onopen=P),$?(_.addEventListener("close",R),_.addEventListener("error",O),_.addEventListener("message",j)):(_.onclose=R,_.onerror=O,_.onmessage=j);function M(N,F,K){let L=new a.Transform({objectMode:N.objectMode});return L._write=F,L._flush=K,L}function P(){l("WebSocket onOpen"),b instanceof s.BufferedDuplex&&b.socketReady()}function R(N){l("WebSocket onClose",N),b.end(),b.destroy()}function O(N){l("WebSocket onError",N);let F=new Error("WebSocket error");F.event=N,b.destroy(F)}async function j(N){let{data:F}=N;F instanceof ArrayBuffer?F=n.Buffer.from(F):F instanceof Blob?F=n.Buffer.from(await new Response(F).arrayBuffer()):F=n.Buffer.from(F,"utf8"),E&&!E.destroyed&&E.push(F)}function I(N,F,K){if(_.bufferedAmount>C){setTimeout(I,k,N,F,K);return}S&&typeof N=="string"&&(N=n.Buffer.from(N,"utf8"));try{_.send(N)}catch(L){return K(L)}K()}function A(N){_.close(),N()}return b};e.browserStreamBuilder=v}),GF={};Dg(GF,{Server:()=>Wi,Socket:()=>Wi,Stream:()=>Wi,_createServerHandle:()=>Wi,_normalizeArgs:()=>Wi,_setSimultaneousAccepts:()=>Wi,connect:()=>Wi,createConnection:()=>Wi,createServer:()=>Wi,default:()=>vue,isIP:()=>Wi,isIPv4:()=>Wi,isIPv6:()=>Wi});function Wi(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var vue,yue=Co(()=>{Zt(),Jt(),Qt(),vue={_createServerHandle:Wi,_normalizeArgs:Wi,_setSimultaneousAccepts:Wi,connect:Wi,createConnection:Wi,createServer:Wi,isIP:Wi,isIPv4:Wi,isIPv6:Wi,Server:Wi,Socket:Wi,Stream:Wi}}),xK=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((yue(),Si(GF))),r=t(Pf()),i=(0,r.default)("mqttjs:tcp"),a=(o,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return i("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=a}),bue={};Dg(bue,{default:()=>wue});var wue,Q7e=Co(()=>{Zt(),Jt(),Qt(),wue={}}),SK=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((Q7e(),Si(bue))),r=t((yue(),Si(GF))),i=t(Pf()),a=(0,i.default)("mqttjs:tls"),o=(s,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",r.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,a("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let c=n.default.connect(l);c.on("secureConnect",()=>{l.rejectUnauthorized&&!c.authorized?c.emit("error",new Error("TLS not authorized")):c.removeListener("error",u)});function u(f){l.rejectUnauthorized&&s.emit("error",f),c.end()}return c.on("error",u),c};e.default=o}),CK=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ko(),Si(_o)),n=Bg(),r=KF(),i,a,o;function s(){let p=new n.Transform;return p._write=(h,m,g)=>{i.send({data:h.buffer,success(){g()},fail(v){g(new Error(v))}})},p._flush=h=>{i.close({success(){h()}})},p}function l(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function c(p,h){let m=p.protocol==="wxs"?"wss":"ws",g=`${m}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(g=`${m}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(g=p.transformWsUrl(g,p,h)),g}function u(){i.onOpen(()=>{o.socketReady()}),i.onMessage(p=>{let{data:h}=p;h instanceof ArrayBuffer?h=t.Buffer.from(h):h=t.Buffer.from(h,"utf8"),a.push(h)}),i.onClose(()=>{o.emit("close"),o.end(),o.destroy()}),i.onError(p=>{let h=new Error(p.errMsg);o.destroy(h)})}var f=(p,h)=>{if(h.hostname=h.hostname||h.host,!h.hostname)throw new Error("Could not determine host. Specify host manually.");let m=h.protocolId==="MQIsdp"&&h.protocolVersion===3?"mqttv3.1":"mqtt";l(h);let g=c(h,p);i=wx.connectSocket({url:g,protocols:[m]}),a=s(),o=new r.BufferedDuplex(h,a,i),o._destroy=(y,w)=>{i.close({success(){w&&w(y)}})};let v=o.destroy;return o.destroy=(y,w)=>(o.destroy=v,setTimeout(()=>{i.close({fail(){o._destroy(y,w)}})},0),o),u(),o};e.default=f}),_K=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ko(),Si(_o)),n=Bg(),r=KF(),i,a,o,s=!1;function l(){let h=new n.Transform;return h._write=(m,g,v)=>{i.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},h._flush=m=>{i.closeSocket({success(){m()}})},h}function c(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function u(h,m){let g=h.protocol==="alis"?"wss":"ws",v=`${g}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(v=`${g}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(v=h.transformWsUrl(v,h,m)),v}function f(){s||(s=!0,i.onSocketOpen(()=>{o.socketReady()}),i.onSocketMessage(h=>{if(typeof h.data=="string"){let m=t.Buffer.from(h.data,"base64");a.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let g=m.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),a.push(g)}),m.readAsArrayBuffer(h.data)}}),i.onSocketClose(()=>{o.end(),o.destroy()}),i.onSocketError(h=>{o.destroy(h)}))}var p=(h,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let g=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let v=u(m,h);return i=m.my,i.connectSocket({url:v,protocols:g}),a=l(),o=new r.BufferedDuplex(m,a,i),f(),o};e.default=p}),J7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(Pf()),r=t((X7e(),Si(Hce))),i=t(TI()),a=t(vE());typeof(li==null?void 0:li.nextTick)!="function"&&(li.nextTick=setImmediate);var o=(0,n.default)("mqttjs"),s=null;function l(f){let p;f.auth&&(p=f.auth.match(/^(.+):(.+)$/),p?(f.username=p[1],f.password=p[2]):f.username=f.auth)}function c(f,p){var h,m,g,v;if(o("connecting to an MQTT broker..."),typeof f=="object"&&!p&&(p=f,f=""),p=p||{},f&&typeof f=="string"){let b=r.default.parse(f,!0),C={};if(b.port!=null&&(C.port=Number(b.port)),C.host=b.hostname,C.query=b.query,C.auth=b.auth,C.protocol=b.protocol,C.path=b.path,C.protocol=(h=C.protocol)===null||h===void 0?void 0:h.replace(/:$/,""),p=Object.assign(Object.assign({},C),p),!p.protocol)throw new Error("Missing protocol")}if(p.unixSocket=p.unixSocket||((m=p.protocol)===null||m===void 0?void 0:m.includes("+unix")),p.unixSocket?p.protocol=p.protocol.replace("+unix",""):!(!((g=p.protocol)===null||g===void 0)&&g.startsWith("ws"))&&!(!((v=p.protocol)===null||v===void 0)&&v.startsWith("wx"))&&delete p.path,l(p),p.query&&typeof p.query.clientId=="string"&&(p.clientId=p.query.clientId),p.cert&&p.key)if(p.protocol){if(["mqtts","wss","wxs","alis"].indexOf(p.protocol)===-1)switch(p.protocol){case"mqtt":p.protocol="mqtts";break;case"ws":p.protocol="wss";break;case"wx":p.protocol="wxs";break;case"ali":p.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${p.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(s||(s={},!a.default&&!p.forceNativeWebSocket?(s.ws=aS().streamBuilder,s.wss=aS().streamBuilder,s.mqtt=xK().default,s.tcp=xK().default,s.ssl=SK().default,s.tls=s.ssl,s.mqtts=SK().default):(s.ws=aS().browserStreamBuilder,s.wss=aS().browserStreamBuilder,s.wx=CK().default,s.wxs=CK().default,s.ali=_K().default,s.alis=_K().default)),!s[p.protocol]){let b=["mqtts","wss"].indexOf(p.protocol)!==-1;p.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((C,k)=>b&&k%2===0?!1:typeof s[C]=="function")[0]}if(p.clean===!1&&!p.clientId)throw new Error("Missing clientId for unclean clients");p.protocol&&(p.defaultProtocol=p.protocol);function y(b){return p.servers&&((!b._reconnectCount||b._reconnectCount===p.servers.length)&&(b._reconnectCount=0),p.host=p.servers[b._reconnectCount].host,p.port=p.servers[b._reconnectCount].port,p.protocol=p.servers[b._reconnectCount].protocol?p.servers[b._reconnectCount].protocol:p.defaultProtocol,p.hostname=p.host,b._reconnectCount++),o("calling streambuilder for",p.protocol),s[p.protocol](b,p)}let w=new i.default(y,p);return w.on("error",()=>{}),w}function u(f,p,h=!0){return new Promise((m,g)=>{let v=c(f,p),y={connect:b=>{w(),m(v)},end:()=>{w(),m(v)},error:b=>{w(),v.end(),g(b)}};h===!1&&(y.close=()=>{y.error(new Error("Couldn't connect to server"))});function w(){Object.keys(y).forEach(b=>{v.off(b,y[b])})}Object.keys(y).forEach(b=>{v.on(b,y[b])})})}e.connectAsync=u,e.default=c}),kK=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(h,m,g,v){v===void 0&&(v=g);var y=Object.getOwnPropertyDescriptor(m,g);(!y||("get"in y?!m.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(h,v,y)}:function(h,m,g,v){v===void 0&&(v=g),h[v]=m[g]}),n=e&&e.__setModuleDefault||(Object.create?function(h,m){Object.defineProperty(h,"default",{enumerable:!0,value:m})}:function(h,m){h.default=m}),r=e&&e.__importStar||function(h){if(h&&h.__esModule)return h;var m={};if(h!=null)for(var g in h)g!=="default"&&Object.prototype.hasOwnProperty.call(h,g)&&t(m,h,g);return n(m,h),m},i=e&&e.__exportStar||function(h,m){for(var g in h)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&t(m,h,g)},a=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var o=a(TI());e.MqttClient=o.default;var s=a(bce());e.DefaultMessageIdProvider=s.default;var l=a(j7e());e.UniqueMessageIdProvider=l.default;var c=a(wce());e.Store=c.default;var u=r(J7e());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var f=a(Ace());e.KeepaliveManager=f.default,e.Client=o.default,i(TI(),e),i(my(),e);var p=gE();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return p.ReasonCodes}})}),eMe=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(o,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(o,c,u)}:function(o,s,l,c){c===void 0&&(c=l),o[c]=s[l]}),n=e&&e.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),r=e&&e.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var l in o)l!=="default"&&Object.prototype.hasOwnProperty.call(o,l)&&t(s,o,l);return n(s,o),s},i=e&&e.__exportStar||function(o,s){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var a=r(kK());e.default=a,i(kK(),e)});const tMe=eMe();/*! Bundled license information: +`):" "+Aq(a[0]):"as no adapter specified";throw new _r("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:hR};function BM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dy(null,e)}function Dq(e){return BM(e),e.headers=zs.from(e.headers),e.data=LM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wle.getAdapter(e.adapter||c4.adapter)(e).then(function(r){return BM(e),r.data=LM.call(e,e.transformResponse,r),r.headers=zs.from(r.headers),r},function(r){return hle(r)||(BM(e),r&&r.response&&(r.response.data=LM.call(e,e.transformResponse,r.response),r.response.headers=zs.from(r.response.headers))),Promise.reject(r)})}const xle="1.7.8",dE={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dE[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Fq={};dE.transitional=function(t,n,r){function i(a,o){return"[Axios v"+xle+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new _r(i(o," has been removed"+(n?" in "+n:"")),_r.ERR_DEPRECATED);return n&&!Fq[o]&&(Fq[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};dE.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function X8e(e,t,n){if(typeof e!="object")throw new _r("options must be an object",_r.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new _r("option "+a+" must be "+l,_r.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _r("Unknown option "+a,_r.ERR_BAD_OPTION)}}const jC={assertOptions:X8e,validators:dE},Nu=jC.validators;class Fm{constructor(t){this.defaults=t,this.interceptors={request:new Tq,response:new Tq}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cg(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&jC.assertOptions(r,{silentJSONParsing:Nu.transitional(Nu.boolean),forcedJSONParsing:Nu.transitional(Nu.boolean),clarifyTimeoutError:Nu.transitional(Nu.boolean)},!1),i!=null&&(Vt.isFunction(i)?n.paramsSerializer={serialize:i}:jC.assertOptions(i,{encode:Nu.function,serialize:Nu.function},!0)),jC.assertOptions(n,{baseUrl:Nu.spelling("baseURL"),withXsrfToken:Nu.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&Vt.merge(a.common,a[n.method]);a&&Vt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=zs.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,p;if(!l){const m=[Dq.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),p=m.length,u=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new dy(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new NF(function(i){t=i}),cancel:t}}}function Z8e(e){return function(n){return e.apply(null,n)}}function Q8e(e){return Vt.isObject(e)&&e.isAxiosError===!0}const mR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mR).forEach(([e,t])=>{mR[t]=e});function Sle(e){const t=new Fm(e),n=Jse(Fm.prototype.request,t);return Vt.extend(n,Fm.prototype,t,{allOwnKeys:!0}),Vt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Sle(cg(e,i))},n}const Sa=Sle(c4);Sa.Axios=Fm;Sa.CanceledError=dy;Sa.CancelToken=NF;Sa.isCancel=hle;Sa.VERSION=xle;Sa.toFormData=cE;Sa.AxiosError=_r;Sa.Cancel=Sa.CanceledError;Sa.all=function(t){return Promise.all(t)};Sa.spread=Z8e;Sa.isAxiosError=Q8e;Sa.mergeConfig=cg;Sa.AxiosHeaders=zs;Sa.formToJSON=e=>ple(Vt.isHTMLForm(e)?new FormData(e):e);Sa.getAdapter=wle.getAdapter;Sa.HttpStatusCode=mR;Sa.default=Sa;function J8e(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const $n=J8e();async function e$e(){return gn("/config/bytedesk/properties",{method:"GET",params:{client:_n}})}async function Cle(){try{const t=(await Sa.get("/agent/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(B2,"true"),localStorage.setItem(TC,t.apiUrl),localStorage.setItem(PC,t.websocketUrl),localStorage.setItem(RM,t.htmlUrl);else if(f6e===sse){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,i="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",i),localStorage.setItem(B2,"true"),localStorage.setItem(TC,r),localStorage.setItem(PC,i),localStorage.setItem(RM,r)}else console.log("config disabled"),localStorage.setItem(B2,"false"),localStorage.removeItem(TC),localStorage.removeItem(PC),localStorage.removeItem(RM)}catch(e){console.log("loadConfig error: ",e)}}function u4(){const e=localStorage.getItem(dv);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(h2);return n===null?OM:n}if(localStorage.getItem(B2)==="true"){const n=localStorage.getItem(TC);return n===null?OM:n}return OM}function fy(){return u4()+"/api/v1/upload/file"}function t$e(){const e=localStorage.getItem(dv);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(m2);return r===null?jV:r}const t=localStorage.getItem(B2),n=localStorage.getItem(PC);return t==="true"?n:jV}async function _le(){const e=await e$e();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(p6e,JSON.stringify(e.data.data)),e.data.data):null}const gn=Sa.create({timeout:2e4,baseURL:u4(),paramsSerializer:{indexes:null}});gn.interceptors.request.use(e=>{e.baseURL=u4();const t=localStorage.getItem(Ef);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(n$e):e},e=>(console.debug("request error",e),e.response.status===403&&$n.emit(eh,"403"),e.response.status===401&&$n.emit(eh,"401"),Promise.reject(e)));gn.interceptors.response.use(e=>e,e=>{var t,n,r;if(console.debug("response error",e),e!=null&&e.response)switch((t=e==null?void 0:e.response)==null?void 0:t.status){case 400:console.log("axios interception error 400"),$n.emit(eh,"400");break;case 401:console.log("axios interception error 401"),$n.emit(eh,"401");break;case 403:console.log("axios interception error 403"),$n.emit(eh,"403");break;case 500:console.log("axios interception error 500"),$n.emit(m6e,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(n=e==null?void 0:e.response)==null?void 0:n.status,data:{message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:!1}})});const zM={data:null,status:601,statusText:cse,headers:{},config:{headers:void 0},request:null},n$e={message:"匿名用户,无需访问服务器接口",name:cse,code:"601",config:zM.config,request:zM.request,response:zM,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};async function kle(e){return gn("/api/v1/agent/query/org",{method:"GET",params:{...e,client:_n}})}async function Ele(e){return gn("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:_n}})}async function r$e(e){return gn("/api/v1/agent/sync/current/thread/count",{method:"POST",data:{...e}})}async function i$e(e){return gn("/api/v1/agent/update",{method:"POST",data:{...e,client:_n}})}async function a$e(e){return gn("/api/v1/agent/update/status",{method:"POST",data:{...e,client:_n}})}async function o$e(e){return gn("/api/v1/agent/update/autoreply",{method:"POST",data:{...e,client:_n}})}async function s$e(e){return gn("/api/v1/message/query/topic",{method:"GET",params:{...e}})}async function l$e(e){return gn("/api/v1/message_unread/query",{method:"GET",params:{userUid:e,client:_n}})}async function c$e(e,t){return gn("/api/v1/vip/trans/baidu/translate",{method:"GET",params:{msgUid:e,content:t,client:_n}})}async function u$e(e){return gn("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:_n}})}async function $le(e,t){console.log("sendMessageSSE: ",e);const n=`${u4()}/visitor/api/v1/member/message/sse?message=${e}`,r=new EventSource(n,{withCredentials:!1});r.onopen=i=>{console.log("sendMessageSSE onopen:",i.target)},r.onmessage=i=>{console.log("sendMessageSSE onmessage:",i.data);const a=JSON.parse(i.data);if(a.type==n5e){console.log("sendMessageSSE stream end"),$n.emit(dse),r&&r.close();return}else t(a)},r.onerror=i=>{console.log("sendMessageSSE onerror:",i),r.readyState===EventSource.CLOSED?console.log("sendMessageSSE connection is closed"):console.log("sendMessageSSE Error occurred",i),r.close()},r.addEventListener("customEventName",i=>{console.log("sendMessageSSE Message id is "+i.lastEventId)})}async function AF(){return gn("/api/v1/user/profile",{method:"GET",params:{client:_n}})}async function Mle(e){return gn("/api/v1/user/update",{method:"POST",data:{...e,client:_n}})}async function d$e(e){return gn("/api/v1/user/change/password",{method:"POST",data:{...e,client:_n}})}async function Tle(e){return gn("/api/v1/user/change/email",{method:"POST",data:{...e,client:_n}})}async function Ple(e){return gn("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:_n}})}var DF=Object.defineProperty,f$e=Object.getOwnPropertyDescriptor,p$e=Object.getOwnPropertyNames,h$e=Object.prototype.hasOwnProperty,Co=(e,t)=>()=>(e&&(t=e(e=0)),t),un=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Dg=(e,t)=>{for(var n in t)DF(e,n,{get:t[n],enumerable:!0})},m$e=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of p$e(t))!h$e.call(e,i)&&i!==n&&DF(e,i,{get:()=>t[i],enumerable:!(r=f$e(t,i))||r.enumerable});return e},Si=e=>m$e(DF({},"__esModule",{value:!0}),e),Zt=Co(()=>{}),li={};Dg(li,{_debugEnd:()=>GR,_debugProcess:()=>KR,_events:()=>cI,_eventsCount:()=>uI,_exiting:()=>IR,_fatalExceptions:()=>WR,_getActiveHandles:()=>Dle,_getActiveRequests:()=>Ale,_kill:()=>AR,_linkedBinding:()=>jle,_maxListeners:()=>lI,_preload_modules:()=>oI,_rawDebug:()=>PR,_startProfilerIdleNotifier:()=>YR,_stopProfilerIdleNotifier:()=>XR,_tickCallback:()=>qR,abort:()=>eI,addListener:()=>dI,allowedNodeEnvironmentFlags:()=>HR,arch:()=>vR,argv:()=>wR,argv0:()=>aI,assert:()=>Fle,binding:()=>kR,chdir:()=>MR,config:()=>jR,cpuUsage:()=>g2,cwd:()=>$R,debugPort:()=>iI,default:()=>LF,dlopen:()=>Nle,domain:()=>RR,emit:()=>gI,emitWarning:()=>_R,env:()=>bR,execArgv:()=>xR,execPath:()=>rI,exit:()=>BR,features:()=>UR,hasUncaughtExceptionCaptureCallback:()=>Lle,hrtime:()=>NC,kill:()=>LR,listeners:()=>zle,memoryUsage:()=>FR,moduleLoadList:()=>OR,nextTick:()=>Rle,off:()=>pI,on:()=>Gd,once:()=>fI,openStdin:()=>zR,pid:()=>tI,platform:()=>yR,ppid:()=>nI,prependListener:()=>vI,prependOnceListener:()=>yI,reallyExit:()=>NR,release:()=>TR,removeAllListeners:()=>mI,removeListener:()=>hI,resourceUsage:()=>DR,setSourceMapsEnabled:()=>sI,setUncaughtExceptionCaptureCallback:()=>VR,stderr:()=>QR,stdin:()=>JR,stdout:()=>ZR,title:()=>gR,umask:()=>ER,uptime:()=>Ble,version:()=>SR,versions:()=>CR});function FF(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function g$e(){!Lm||!ym||(Lm=!1,ym.length?td=ym.concat(td):z2=-1,td.length&&Ole())}function Ole(){if(!Lm){var e=setTimeout(g$e,0);Lm=!0;for(var t=td.length;t;){for(ym=td,td=[];++z21)for(var n=1;n{Zt(),Jt(),Qt(),td=[],Lm=!1,z2=-1,Ile.prototype.run=function(){this.fun.apply(null,this.array)},gR="browser",vR="x64",yR="browser",bR={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},wR=["/usr/bin/node"],xR=[],SR="v16.8.0",CR={},_R=function(e,t){console.warn((t?t+": ":"")+e)},kR=function(e){FF("binding")},ER=function(e){return 0},$R=function(){return"/"},MR=function(e){},TR={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},PR=Io,OR=[],RR={},IR=!1,jR={},NR=Io,AR=Io,g2=function(){return{}},DR=g2,FR=g2,LR=Io,BR=Io,zR=Io,HR={},UR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},WR=Io,VR=Io,qR=Io,KR=Io,GR=Io,YR=Io,XR=Io,ZR=void 0,QR=void 0,JR=void 0,eI=Io,tI=2,nI=1,rI="/bin/usr/node",iI=9229,aI="node",oI=[],sI=Io,af={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},af.now===void 0&&(HM=Date.now(),af.timing&&af.timing.navigationStart&&(HM=af.timing.navigationStart),af.now=()=>Date.now()-HM),AC=1e9,NC.bigint=function(e){var t=NC(e);return typeof BigInt>"u"?t[0]*AC+t[1]:BigInt(t[0]*AC)+BigInt(t[1])},lI=10,cI={},uI=0,dI=Gd,fI=Gd,pI=Gd,hI=Gd,mI=Gd,gI=Io,vI=Gd,yI=Gd,LF={version:SR,versions:CR,arch:vR,platform:yR,release:TR,_rawDebug:PR,moduleLoadList:OR,binding:kR,_linkedBinding:jle,_events:cI,_eventsCount:uI,_maxListeners:lI,on:Gd,addListener:dI,once:fI,off:pI,removeListener:hI,removeAllListeners:mI,emit:gI,prependListener:vI,prependOnceListener:yI,listeners:zle,domain:RR,_exiting:IR,config:jR,dlopen:Nle,uptime:Ble,_getActiveRequests:Ale,_getActiveHandles:Dle,reallyExit:NR,_kill:AR,cpuUsage:g2,resourceUsage:DR,memoryUsage:FR,kill:LR,exit:BR,openStdin:zR,allowedNodeEnvironmentFlags:HR,assert:Fle,features:UR,_fatalExceptions:WR,setUncaughtExceptionCaptureCallback:VR,hasUncaughtExceptionCaptureCallback:Lle,emitWarning:_R,nextTick:Rle,_tickCallback:qR,_debugProcess:KR,_debugEnd:GR,_startProfilerIdleNotifier:YR,_stopProfilerIdleNotifier:XR,stdout:ZR,stdin:JR,stderr:QR,abort:eI,umask:ER,chdir:MR,cwd:$R,env:bR,title:gR,argv:wR,execArgv:xR,pid:tI,ppid:nI,execPath:rI,debugPort:iI,hrtime:NC,argv0:aI,_preload_modules:oI,setSourceMapsEnabled:sI}}),Qt=Co(()=>{v$e()}),_o={};Dg(_o,{Buffer:()=>Sk,INSPECT_MAX_BYTES:()=>Hle,default:()=>Yd,kMaxLength:()=>Ule});function y$e(){if(bI)return G1;bI=!0,G1.byteLength=s,G1.toByteArray=c,G1.fromByteArray=p;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var g=h.indexOf("=");g===-1&&(g=m);var v=g===m?0:4-g%4;return[g,v]}function s(h){var m=o(h),g=m[0],v=m[1];return(g+v)*3/4-v}function l(h,m,g){return(m+g)*3/4-g}function c(h){var m,g=o(h),v=g[0],y=g[1],w=new n(l(h,v,y)),b=0,C=y>0?v-4:v,k;for(k=0;k>16&255,w[b++]=m>>8&255,w[b++]=m&255;return y===2&&(m=t[h.charCodeAt(k)]<<2|t[h.charCodeAt(k+1)]>>4,w[b++]=m&255),y===1&&(m=t[h.charCodeAt(k)]<<10|t[h.charCodeAt(k+1)]<<4|t[h.charCodeAt(k+2)]>>2,w[b++]=m>>8&255,w[b++]=m&255),w}function u(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function f(h,m,g){for(var v,y=[],w=m;wC?C:b+w));return v===1?(m=h[g-1],y.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(h[g-2]<<8)+h[g-1],y.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),y.join("")}return G1}function b$e(){return wI?v2:(wI=!0,v2.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,l=(1<>1,u=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=a*256+e[t+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+f],f+=p,u-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-c}return(h?-1:1)*o*Math.pow(2,a-r)},v2.write=function(e,t,n,r,i,a){var o,s,l,c=a*8-i-1,u=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=p/l:t+=p*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=s&255,h+=m,s/=256,i-=8);for(o=o<0;e[n+h]=o&255,h+=m,o/=256,c-=8);e[n+h-m]|=g*128},v2)}function w$e(){if(xI)return fp;xI=!0;let e=y$e(),t=b$e(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;fp.Buffer=o,fp.SlowBuffer=y,fp.INSPECT_MAX_BYTES=50;let r=2147483647;fp.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let z=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(z,H),z.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(z){if(z>r)throw new RangeError('The value "'+z+'" is invalid for option "size"');let H=new Uint8Array(z);return Object.setPrototypeOf(H,o.prototype),H}function o(z,H,G){if(typeof z=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(z)}return s(z,H,G)}o.poolSize=8192;function s(z,H,G){if(typeof z=="string")return f(z,H);if(ArrayBuffer.isView(z))return h(z);if(z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(Se(z,ArrayBuffer)||z&&Se(z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(z,SharedArrayBuffer)||z&&Se(z.buffer,SharedArrayBuffer)))return m(z,H,G);if(typeof z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let de=z.valueOf&&z.valueOf();if(de!=null&&de!==z)return o.from(de,H,G);let xe=g(z);if(xe)return xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof z[Symbol.toPrimitive]=="function")return o.from(z[Symbol.toPrimitive]("string"),H,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}o.from=function(z,H,G){return s(z,H,G)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(z){if(typeof z!="number")throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function c(z,H,G){return l(z),z<=0?a(z):H!==void 0?typeof G=="string"?a(z).fill(H,G):a(z).fill(H):a(z)}o.alloc=function(z,H,G){return c(z,H,G)};function u(z){return l(z),a(z<0?0:v(z)|0)}o.allocUnsafe=function(z){return u(z)},o.allocUnsafeSlow=function(z){return u(z)};function f(z,H){if((typeof H!="string"||H==="")&&(H="utf8"),!o.isEncoding(H))throw new TypeError("Unknown encoding: "+H);let G=w(z,H)|0,de=a(G),xe=de.write(z,H);return xe!==G&&(de=de.slice(0,xe)),de}function p(z){let H=z.length<0?0:v(z.length)|0,G=a(H);for(let de=0;de=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return z|0}function y(z){return+z!=z&&(z=0),o.alloc(+z)}o.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==o.prototype},o.compare=function(z,H){if(Se(z,Uint8Array)&&(z=o.from(z,z.offset,z.byteLength)),Se(H,Uint8Array)&&(H=o.from(H,H.offset,H.byteLength)),!o.isBuffer(z)||!o.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===H)return 0;let G=z.length,de=H.length;for(let xe=0,he=Math.min(G,de);xede.length?(o.isBuffer(he)||(he=o.from(he)),he.copy(de,xe)):Uint8Array.prototype.set.call(de,he,xe);else if(o.isBuffer(he))he.copy(de,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=he.length}return de};function w(z,H){if(o.isBuffer(z))return z.length;if(ArrayBuffer.isView(z)||Se(z,ArrayBuffer))return z.byteLength;if(typeof z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);let G=z.length,de=arguments.length>2&&arguments[2]===!0;if(!de&&G===0)return 0;let xe=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return fe(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Ce(z).length;default:if(xe)return de?-1:fe(z).length;H=(""+H).toLowerCase(),xe=!0}}o.byteLength=w;function b(z,H,G){let de=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,H>>>=0,G<=H))return"";for(z||(z="utf8");;)switch(z){case"hex":return F(this,H,G);case"utf8":case"utf-8":return O(this,H,G);case"ascii":return A(this,H,G);case"latin1":case"binary":return N(this,H,G);case"base64":return R(this,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,H,G);default:if(de)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),de=!0}}o.prototype._isBuffer=!0;function C(z,H,G){let de=z[H];z[H]=z[G],z[G]=de}o.prototype.swap16=function(){let z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(z+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(z,H,G,de,xe){if(Se(z,Uint8Array)&&(z=o.from(z,z.offset,z.byteLength)),!o.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(H===void 0&&(H=0),G===void 0&&(G=z?z.length:0),de===void 0&&(de=0),xe===void 0&&(xe=this.length),H<0||G>z.length||de<0||xe>this.length)throw new RangeError("out of range index");if(de>=xe&&H>=G)return 0;if(de>=xe)return-1;if(H>=G)return 1;if(H>>>=0,G>>>=0,de>>>=0,xe>>>=0,this===z)return 0;let he=xe-de,Ue=G-H,We=Math.min(he,Ue),ge=this.slice(de,xe),ze=z.slice(H,G);for(let Ve=0;Ve2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,we(G)&&(G=xe?0:z.length-1),G<0&&(G=z.length+G),G>=z.length){if(xe)return-1;G=z.length-1}else if(G<0)if(xe)G=0;else return-1;if(typeof H=="string"&&(H=o.from(H,de)),o.isBuffer(H))return H.length===0?-1:S(z,H,G,de,xe);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?xe?Uint8Array.prototype.indexOf.call(z,H,G):Uint8Array.prototype.lastIndexOf.call(z,H,G):S(z,[H],G,de,xe);throw new TypeError("val must be string, number or Buffer")}function S(z,H,G,de,xe){let he=1,Ue=z.length,We=H.length;if(de!==void 0&&(de=String(de).toLowerCase(),de==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(z.length<2||H.length<2)return-1;he=2,Ue/=2,We/=2,G/=2}function ge(Ve,Be){return he===1?Ve[Be]:Ve.readUInt16BE(Be*he)}let ze;if(xe){let Ve=-1;for(ze=G;zeUe&&(G=Ue-We),ze=G;ze>=0;ze--){let Ve=!0;for(let Be=0;Bexe&&(de=xe)):de=xe;let he=H.length;de>he/2&&(de=he/2);let Ue;for(Ue=0;Ue>>0,isFinite(G)?(G=G>>>0,de===void 0&&(de="utf8")):(de=G,G=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let xe=this.length-H;if((G===void 0||G>xe)&&(G=xe),z.length>0&&(G<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");let he=!1;for(;;)switch(de){case"hex":return _(this,z,H,G);case"utf8":case"utf-8":return E(this,z,H,G);case"ascii":case"latin1":case"binary":return $(this,z,H,G);case"base64":return M(this,z,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,z,H,G);default:if(he)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),he=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(z,H,G){return H===0&&G===z.length?e.fromByteArray(z):e.fromByteArray(z.slice(H,G))}function O(z,H,G){G=Math.min(z.length,G);let de=[],xe=H;for(;xe239?4:he>223?3:he>191?2:1;if(xe+We<=G){let ge,ze,Ve,Be;switch(We){case 1:he<128&&(Ue=he);break;case 2:ge=z[xe+1],(ge&192)===128&&(Be=(he&31)<<6|ge&63,Be>127&&(Ue=Be));break;case 3:ge=z[xe+1],ze=z[xe+2],(ge&192)===128&&(ze&192)===128&&(Be=(he&15)<<12|(ge&63)<<6|ze&63,Be>2047&&(Be<55296||Be>57343)&&(Ue=Be));break;case 4:ge=z[xe+1],ze=z[xe+2],Ve=z[xe+3],(ge&192)===128&&(ze&192)===128&&(Ve&192)===128&&(Be=(he&15)<<18|(ge&63)<<12|(ze&63)<<6|Ve&63,Be>65535&&Be<1114112&&(Ue=Be))}}Ue===null?(Ue=65533,We=1):Ue>65535&&(Ue-=65536,de.push(Ue>>>10&1023|55296),Ue=56320|Ue&1023),de.push(Ue),xe+=We}return I(de)}let j=4096;function I(z){let H=z.length;if(H<=j)return String.fromCharCode.apply(String,z);let G="",de=0;for(;dede)&&(G=de);let xe="";for(let he=H;heG&&(z=G),H<0?(H+=G,H<0&&(H=0)):H>G&&(H=G),HG)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(z,H,G){z=z>>>0,H=H>>>0,G||L(z,H,this.length);let de=this[z],xe=1,he=0;for(;++he>>0,H=H>>>0,G||L(z,H,this.length);let de=this[z+--H],xe=1;for(;H>0&&(xe*=256);)de+=this[z+--H]*xe;return de},o.prototype.readUint8=o.prototype.readUInt8=function(z,H){return z=z>>>0,H||L(z,1,this.length),this[z]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(z,H){return z=z>>>0,H||L(z,2,this.length),this[z]|this[z+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(z,H){return z=z>>>0,H||L(z,2,this.length),this[z]<<8|this[z+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(z,H){return z=z>>>0,H||L(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(z,H){return z=z>>>0,H||L(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},o.prototype.readBigUInt64LE=ye(function(z){z=z>>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=H+this[++z]*2**8+this[++z]*2**16+this[++z]*2**24,xe=this[++z]+this[++z]*2**8+this[++z]*2**16+G*2**24;return BigInt(de)+(BigInt(xe)<>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=H*2**24+this[++z]*2**16+this[++z]*2**8+this[++z],xe=this[++z]*2**24+this[++z]*2**16+this[++z]*2**8+G;return(BigInt(de)<>>0,H=H>>>0,G||L(z,H,this.length);let de=this[z],xe=1,he=0;for(;++he=xe&&(de-=Math.pow(2,8*H)),de},o.prototype.readIntBE=function(z,H,G){z=z>>>0,H=H>>>0,G||L(z,H,this.length);let de=H,xe=1,he=this[z+--de];for(;de>0&&(xe*=256);)he+=this[z+--de]*xe;return xe*=128,he>=xe&&(he-=Math.pow(2,8*H)),he},o.prototype.readInt8=function(z,H){return z=z>>>0,H||L(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},o.prototype.readInt16LE=function(z,H){z=z>>>0,H||L(z,2,this.length);let G=this[z]|this[z+1]<<8;return G&32768?G|4294901760:G},o.prototype.readInt16BE=function(z,H){z=z>>>0,H||L(z,2,this.length);let G=this[z+1]|this[z]<<8;return G&32768?G|4294901760:G},o.prototype.readInt32LE=function(z,H){return z=z>>>0,H||L(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},o.prototype.readInt32BE=function(z,H){return z=z>>>0,H||L(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},o.prototype.readBigInt64LE=ye(function(z){z=z>>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=this[z+4]+this[z+5]*2**8+this[z+6]*2**16+(G<<24);return(BigInt(de)<>>0,ce(z,"offset");let H=this[z],G=this[z+7];(H===void 0||G===void 0)&&pe(z,this.length-8);let de=(H<<24)+this[++z]*2**16+this[++z]*2**8+this[++z];return(BigInt(de)<>>0,H||L(z,4,this.length),t.read(this,z,!0,23,4)},o.prototype.readFloatBE=function(z,H){return z=z>>>0,H||L(z,4,this.length),t.read(this,z,!1,23,4)},o.prototype.readDoubleLE=function(z,H){return z=z>>>0,H||L(z,8,this.length),t.read(this,z,!0,52,8)},o.prototype.readDoubleBE=function(z,H){return z=z>>>0,H||L(z,8,this.length),t.read(this,z,!1,52,8)};function V(z,H,G,de,xe,he){if(!o.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>xe||Hz.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(z,H,G,de){if(z=+z,H=H>>>0,G=G>>>0,!de){let Ue=Math.pow(2,8*G)-1;V(this,z,H,G,Ue,0)}let xe=1,he=0;for(this[H]=z&255;++he>>0,G=G>>>0,!de){let Ue=Math.pow(2,8*G)-1;V(this,z,H,G,Ue,0)}let xe=G-1,he=1;for(this[H+xe]=z&255;--xe>=0&&(he*=256);)this[H+xe]=z/he&255;return H+G},o.prototype.writeUint8=o.prototype.writeUInt8=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,1,255,0),this[H]=z&255,H+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,65535,0),this[H]=z&255,this[H+1]=z>>>8,H+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,65535,0),this[H]=z>>>8,this[H+1]=z&255,H+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,4294967295,0),this[H+3]=z>>>24,this[H+2]=z>>>16,this[H+1]=z>>>8,this[H]=z&255,H+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,4294967295,0),this[H]=z>>>24,this[H+1]=z>>>16,this[H+2]=z>>>8,this[H+3]=z&255,H+4};function B(z,H,G,de,xe){le(H,de,xe,z,G,7);let he=Number(H&BigInt(4294967295));z[G++]=he,he=he>>8,z[G++]=he,he=he>>8,z[G++]=he,he=he>>8,z[G++]=he;let Ue=Number(H>>BigInt(32)&BigInt(4294967295));return z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,Ue=Ue>>8,z[G++]=Ue,G}function U(z,H,G,de,xe){le(H,de,xe,z,G,7);let he=Number(H&BigInt(4294967295));z[G+7]=he,he=he>>8,z[G+6]=he,he=he>>8,z[G+5]=he,he=he>>8,z[G+4]=he;let Ue=Number(H>>BigInt(32)&BigInt(4294967295));return z[G+3]=Ue,Ue=Ue>>8,z[G+2]=Ue,Ue=Ue>>8,z[G+1]=Ue,Ue=Ue>>8,z[G]=Ue,G+8}o.prototype.writeBigUInt64LE=ye(function(z,H=0){return B(this,z,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ye(function(z,H=0){return U(this,z,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(z,H,G,de){if(z=+z,H=H>>>0,!de){let We=Math.pow(2,8*G-1);V(this,z,H,G,We-1,-We)}let xe=0,he=1,Ue=0;for(this[H]=z&255;++xe>0)-Ue&255;return H+G},o.prototype.writeIntBE=function(z,H,G,de){if(z=+z,H=H>>>0,!de){let We=Math.pow(2,8*G-1);V(this,z,H,G,We-1,-We)}let xe=G-1,he=1,Ue=0;for(this[H+xe]=z&255;--xe>=0&&(he*=256);)z<0&&Ue===0&&this[H+xe+1]!==0&&(Ue=1),this[H+xe]=(z/he>>0)-Ue&255;return H+G},o.prototype.writeInt8=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,1,127,-128),z<0&&(z=255+z+1),this[H]=z&255,H+1},o.prototype.writeInt16LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,32767,-32768),this[H]=z&255,this[H+1]=z>>>8,H+2},o.prototype.writeInt16BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,2,32767,-32768),this[H]=z>>>8,this[H+1]=z&255,H+2},o.prototype.writeInt32LE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,2147483647,-2147483648),this[H]=z&255,this[H+1]=z>>>8,this[H+2]=z>>>16,this[H+3]=z>>>24,H+4},o.prototype.writeInt32BE=function(z,H,G){return z=+z,H=H>>>0,G||V(this,z,H,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[H]=z>>>24,this[H+1]=z>>>16,this[H+2]=z>>>8,this[H+3]=z&255,H+4},o.prototype.writeBigInt64LE=ye(function(z,H=0){return B(this,z,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ye(function(z,H=0){return U(this,z,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Y(z,H,G,de,xe,he){if(G+de>z.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function ee(z,H,G,de,xe){return H=+H,G=G>>>0,xe||Y(z,H,G,4),t.write(z,H,G,de,23,4),G+4}o.prototype.writeFloatLE=function(z,H,G){return ee(this,z,H,!0,G)},o.prototype.writeFloatBE=function(z,H,G){return ee(this,z,H,!1,G)};function ie(z,H,G,de,xe){return H=+H,G=G>>>0,xe||Y(z,H,G,8),t.write(z,H,G,de,52,8),G+8}o.prototype.writeDoubleLE=function(z,H,G){return ie(this,z,H,!0,G)},o.prototype.writeDoubleBE=function(z,H,G){return ie(this,z,H,!1,G)},o.prototype.copy=function(z,H,G,de){if(!o.isBuffer(z))throw new TypeError("argument should be a Buffer");if(G||(G=0),!de&&de!==0&&(de=this.length),H>=z.length&&(H=z.length),H||(H=0),de>0&&de=this.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),z.length-H>>0,G=G===void 0?this.length:G>>>0,z||(z=0);let xe;if(typeof z=="number")for(xe=H;xe2**32?xe=ae(String(G)):typeof G=="bigint"&&(xe=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(xe=ae(xe)),xe+="n"),de+=` It must be ${H}. Received ${xe}`,de},RangeError);function ae(z){let H="",G=z.length,de=z[0]==="-"?1:0;for(;G>=de+4;G-=3)H=`_${z.slice(G-3,G)}${H}`;return`${z.slice(0,G)}${H}`}function oe(z,H,G){ce(H,"offset"),(z[H]===void 0||z[H+G]===void 0)&&pe(H,z.length-(G+1))}function le(z,H,G,de,xe,he){if(z>G||z= 0${Ue} and < 2${Ue} ** ${(he+1)*8}${Ue}`:We=`>= -(2${Ue} ** ${(he+1)*8-1}${Ue}) and < 2 ** ${(he+1)*8-1}${Ue}`,new Z.ERR_OUT_OF_RANGE("value",We,z)}oe(de,xe,he)}function ce(z,H){if(typeof z!="number")throw new Z.ERR_INVALID_ARG_TYPE(H,"number",z)}function pe(z,H,G){throw Math.floor(z)!==z?(ce(z,G),new Z.ERR_OUT_OF_RANGE("offset","an integer",z)):H<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,z)}let me=/[^+/0-9A-Za-z-_]/g;function re(z){if(z=z.split("=")[0],z=z.trim().replace(me,""),z.length<2)return"";for(;z.length%4!==0;)z=z+"=";return z}function fe(z,H){H=H||1/0;let G,de=z.length,xe=null,he=[];for(let Ue=0;Ue55295&&G<57344){if(!xe){if(G>56319){(H-=3)>-1&&he.push(239,191,189);continue}else if(Ue+1===de){(H-=3)>-1&&he.push(239,191,189);continue}xe=G;continue}if(G<56320){(H-=3)>-1&&he.push(239,191,189),xe=G;continue}G=(xe-55296<<10|G-56320)+65536}else xe&&(H-=3)>-1&&he.push(239,191,189);if(xe=null,G<128){if((H-=1)<0)break;he.push(G)}else if(G<2048){if((H-=2)<0)break;he.push(G>>6|192,G&63|128)}else if(G<65536){if((H-=3)<0)break;he.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((H-=4)<0)break;he.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return he}function ve(z){let H=[];for(let G=0;G>8,xe=G%256,he.push(xe),he.push(de);return he}function Ce(z){return e.toByteArray(re(z))}function be(z,H,G,de){let xe;for(xe=0;xe=H.length||xe>=z.length);++xe)H[xe+G]=z[xe];return xe}function Se(z,H){return z instanceof H||z!=null&&z.constructor!=null&&z.constructor.name!=null&&z.constructor.name===H.name}function we(z){return z!==z}let se=function(){let z="0123456789abcdef",H=new Array(256);for(let G=0;G<16;++G){let de=G*16;for(let xe=0;xe<16;++xe)H[de+xe]=z[G]+z[xe]}return H}();function ye(z){return typeof BigInt>"u"?Oe:z}function Oe(){throw new Error("BigInt not supported")}return fp}var G1,bI,v2,wI,fp,xI,Yd,Sk,Hle,Ule,ko=Co(()=>{Zt(),Jt(),Qt(),G1={},bI=!1,v2={},wI=!1,fp={},xI=!1,Yd=w$e(),Yd.Buffer,Yd.SlowBuffer,Yd.INSPECT_MAX_BYTES,Yd.kMaxLength,Sk=Yd.Buffer,Hle=Yd.INSPECT_MAX_BYTES,Ule=Yd.kMaxLength}),Jt=Co(()=>{ko()}),x$e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(n){this.aliasToTopic={},this.max=n}put(n,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=n,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(n){return this.aliasToTopic[n]}clear(){this.aliasToTopic={}}};e.default=t}),qa=un((e,t)=>{Zt(),Jt(),Qt(),t.exports={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,i){return n.slice(r,i)},Error,FunctionPrototypeCall(n,r,...i){return n.call(r,...i)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,i){return Object.defineProperty(n,r,i)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,i){return n.then(r,i)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,i){return n.slice(r,i)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(n,r,i){return n.set(r,i)},Uint8Array}}),Mf=un((e,t)=>{Zt(),Jt(),Qt();var n=(ko(),Si(_o)),r=Object.getPrototypeOf(async function(){}).constructor,i=globalThis.Blob||n.Blob,a=typeof i<"u"?function(s){return s instanceof i}:function(s){return!1},o=class extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let l="";for(let c=0;c{s=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...f)=>u?c(u):l(...f))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let f=l.shift();return u==="f"?f.toFixed(6):u==="j"?JSON.stringify(f):u==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}},types:{isAsyncFunction(s){return s instanceof r},isArrayBufferView(s){return ArrayBuffer.isView(s)}},isBlob:a},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),BF=un((e,t)=>{Zt(),Jt(),Qt();var{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=n,t.exports.AbortSignal=r,t.exports.default=n}),Gs=un((e,t)=>{Zt(),Jt(),Qt();var{format:n,inspect:r,AggregateError:i}=Mf(),a=globalThis.AggregateError||i,o=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function f(w,b){if(!w)throw new u.ERR_INTERNAL_ASSERTION(b)}function p(w){let b="",C=w.length,k=w[0]==="-"?1:0;for(;C>=k+4;C-=3)b=`_${w.slice(C-3,C)}${b}`;return`${w.slice(0,C)}${b}`}function h(w,b,C){if(typeof b=="function")return f(b.length<=C.length,`Code: ${w}; The provided arguments length (${C.length}) does not match the required ones (${b.length}).`),b(...C);let k=(b.match(/%[dfijoOs]/g)||[]).length;return f(k===C.length,`Code: ${w}; The provided arguments length (${C.length}) does not match the required ones (${k}).`),C.length===0?b:n(b,...C)}function m(w,b,C){C||(C=Error);class k extends C{constructor(..._){super(h(w,b,_))}toString(){return`${this.name} [${w}]: ${this.message}`}}Object.defineProperties(k.prototype,{name:{value:C.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${w}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),k.prototype.code=w,k.prototype[o]=!0,u[w]=k}function g(w){let b=c+w.name;return Object.defineProperty(w,"name",{value:b}),w}function v(w,b){if(w&&b&&w!==b){if(Array.isArray(b.errors))return b.errors.push(w),b;let C=new a([b,w],b.message);return C.code=b.code,C}return w||b}var y=class extends Error{constructor(w="The operation was aborted",b=void 0){if(b!==void 0&&typeof b!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",b);super(w,b),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(w,b,C)=>{f(typeof w=="string","'name' must be a string"),Array.isArray(b)||(b=[b]);let k="The ";w.endsWith(" argument")?k+=`${w} `:k+=`"${w}" ${w.includes(".")?"property":"argument"} `,k+="must be ";let S=[],_=[],E=[];for(let M of b)f(typeof M=="string","All expected entries have to be of type string"),s.includes(M)?S.push(M.toLowerCase()):l.test(M)?_.push(M):(f(M!=="object",'The value "object" should be written as "Object"'),E.push(M));if(_.length>0){let M=S.indexOf("object");M!==-1&&(S.splice(S,M,1),_.push("Object"))}if(S.length>0){switch(S.length){case 1:k+=`of type ${S[0]}`;break;case 2:k+=`one of type ${S[0]} or ${S[1]}`;break;default:{let M=S.pop();k+=`one of type ${S.join(", ")}, or ${M}`}}(_.length>0||E.length>0)&&(k+=" or ")}if(_.length>0){switch(_.length){case 1:k+=`an instance of ${_[0]}`;break;case 2:k+=`an instance of ${_[0]} or ${_[1]}`;break;default:{let M=_.pop();k+=`an instance of ${_.join(", ")}, or ${M}`}}E.length>0&&(k+=" or ")}switch(E.length){case 0:break;case 1:E[0].toLowerCase()!==E[0]&&(k+="an "),k+=`${E[0]}`;break;case 2:k+=`one of ${E[0]} or ${E[1]}`;break;default:{let M=E.pop();k+=`one of ${E.join(", ")}, or ${M}`}}if(C==null)k+=`. Received ${C}`;else if(typeof C=="function"&&C.name)k+=`. Received function ${C.name}`;else if(typeof C=="object"){var $;if(($=C.constructor)!==null&&$!==void 0&&$.name)k+=`. Received an instance of ${C.constructor.name}`;else{let M=r(C,{depth:-1});k+=`. Received ${M}`}}else{let M=r(C,{colors:!1});M.length>25&&(M=`${M.slice(0,25)}...`),k+=`. Received type ${typeof C} (${M})`}return k},TypeError),m("ERR_INVALID_ARG_VALUE",(w,b,C="is invalid")=>{let k=r(b);return k.length>128&&(k=k.slice(0,128)+"..."),`The ${w.includes(".")?"property":"argument"} '${w}' ${C}. Received ${k}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(w,b,C)=>{var k;let S=C!=null&&(k=C.constructor)!==null&&k!==void 0&&k.name?`instance of ${C.constructor.name}`:`type ${typeof C}`;return`Expected ${w} to be returned from the "${b}" function but got ${S}.`},TypeError),m("ERR_MISSING_ARGS",(...w)=>{f(w.length>0,"At least one arg needs to be specified");let b,C=w.length;switch(w=(Array.isArray(w)?w:[w]).map(k=>`"${k}"`).join(" or "),C){case 1:b+=`The ${w[0]} argument`;break;case 2:b+=`The ${w[0]} and ${w[1]} arguments`;break;default:{let k=w.pop();b+=`The ${w.join(", ")}, and ${k} arguments`}break}return`${b} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(w,b,C)=>{f(b,'Missing "range" argument');let k;return Number.isInteger(C)&&Math.abs(C)>2**32?k=p(String(C)):typeof C=="bigint"?(k=String(C),(C>2n**32n||C<-(2n**32n))&&(k=p(k)),k+="n"):k=r(C),`The value of "${w}" is out of range. It must be ${b}. Received ${k}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:y,aggregateTwoErrors:g(v),hideStackFrames:g,codes:u}}),fE=un((e,t)=>{Zt(),Jt(),Qt();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:o,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:p,String:h,StringPrototypeToUpperCase:m,StringPrototypeTrim:g}=qa(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:C,ERR_UNKNOWN_SIGNAL:k}}=Gs(),{normalizeEncoding:S}=Mf(),{isAsyncFunction:_,isArrayBufferView:E}=Mf().types,$={};function M(be){return be===(be|0)}function P(be){return be===be>>>0}var R=/^[0-7]+$/,O="must be a 32-bit unsigned integer or an octal string";function j(be,Se,we){if(typeof be>"u"&&(be=we),typeof be=="string"){if(p(R,be)===null)throw new b(Se,be,O);be=u(be,8)}return N(be,Se),be}var I=v((be,Se,we=c,se=l)=>{if(typeof be!="number")throw new w(Se,"number",be);if(!o(be))throw new C(Se,"an integer",be);if(bese)throw new C(Se,`>= ${we} && <= ${se}`,be)}),A=v((be,Se,we=-2147483648,se=2147483647)=>{if(typeof be!="number")throw new w(Se,"number",be);if(!o(be))throw new C(Se,"an integer",be);if(bese)throw new C(Se,`>= ${we} && <= ${se}`,be)}),N=v((be,Se,we=!1)=>{if(typeof be!="number")throw new w(Se,"number",be);if(!o(be))throw new C(Se,"an integer",be);let se=we?1:0,ye=4294967295;if(beye)throw new C(Se,`>= ${se} && <= ${ye}`,be)});function F(be,Se){if(typeof be!="string")throw new w(Se,"string",be)}function K(be,Se,we=void 0,se){if(typeof be!="number")throw new w(Se,"number",be);if(we!=null&&bese||(we!=null||se!=null)&&s(be))throw new C(Se,`${we!=null?`>= ${we}`:""}${we!=null&&se!=null?" && ":""}${se!=null?`<= ${se}`:""}`,be)}var L=v((be,Se,we)=>{if(!r(we,be)){let se="must be one of: "+i(a(we,ye=>typeof ye=="string"?`'${ye}'`:h(ye)),", ");throw new b(Se,be,se)}});function V(be,Se){if(typeof be!="boolean")throw new w(Se,"boolean",be)}function B(be,Se,we){return be==null||!f(be,Se)?we:be[Se]}var U=v((be,Se,we=null)=>{let se=B(we,"allowArray",!1),ye=B(we,"allowFunction",!1);if(!B(we,"nullable",!1)&&be===null||!se&&n(be)||typeof be!="object"&&(!ye||typeof be!="function"))throw new w(Se,"Object",be)}),Y=v((be,Se)=>{if(be!=null&&typeof be!="object"&&typeof be!="function")throw new w(Se,"a dictionary",be)}),ee=v((be,Se,we=0)=>{if(!n(be))throw new w(Se,"Array",be);if(be.length{if(!E(be))throw new w(Se,["Buffer","TypedArray","DataView"],be)});function oe(be,Se){let we=S(Se),se=be.length;if(we==="hex"&&se%2!==0)throw new b("encoding",Se,`is invalid for data of length ${se}`)}function le(be,Se="Port",we=!0){if(typeof be!="number"&&typeof be!="string"||typeof be=="string"&&g(be).length===0||+be!==+be>>>0||be>65535||be===0&&!we)throw new y(Se,be,we);return be|0}var ce=v((be,Se)=>{if(be!==void 0&&(be===null||typeof be!="object"||!("aborted"in be)))throw new w(Se,"AbortSignal",be)}),pe=v((be,Se)=>{if(typeof be!="function")throw new w(Se,"Function",be)}),me=v((be,Se)=>{if(typeof be!="function"||_(be))throw new w(Se,"Function",be)}),re=v((be,Se)=>{if(be!==void 0)throw new w(Se,"undefined",be)});function fe(be,Se,we){if(!r(we,be))throw new w(Se,`('${i(we,"|")}')`,be)}var ve=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function $e(be,Se){if(typeof be>"u"||!p(ve,be))throw new b(Se,be,'must be an array or string of format "; rel=preload; as=style"')}function Ce(be){if(typeof be=="string")return $e(be,"hints"),be;if(n(be)){let Se=be.length,we="";if(Se===0)return we;for(let se=0;se; rel=preload; as=style"')}t.exports={isInt32:M,isUint32:P,parseFileMode:j,validateArray:ee,validateStringArray:ie,validateBooleanArray:Z,validateBoolean:V,validateBuffer:ae,validateDictionary:Y,validateEncoding:oe,validateFunction:pe,validateInt32:A,validateInteger:I,validateNumber:K,validateObject:U,validateOneOf:L,validatePlainFunction:me,validatePort:le,validateSignalName:X,validateString:F,validateUint32:N,validateUndefined:re,validateUnion:fe,validateAbortSignal:ce,validateLinkHeaderValue:Ce}}),Fg=un((e,t)=>{Zt(),Jt(),Qt();var n=t.exports={},r,i;function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=a}catch{r=a}try{typeof clearTimeout=="function"?i=clearTimeout:i=o}catch{i=o}})();function s(y){if(r===setTimeout)return setTimeout(y,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(y,0);try{return r(y,0)}catch{try{return r.call(null,y,0)}catch{return r.call(this,y,0)}}}function l(y){if(i===clearTimeout)return clearTimeout(y);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(y);try{return i(y)}catch{try{return i.call(null,y)}catch{return i.call(this,y)}}}var c=[],u=!1,f,p=-1;function h(){!u||!f||(u=!1,f.length?c=f.concat(c):p=-1,c.length&&m())}function m(){if(!u){var y=s(h);u=!0;for(var w=c.length;w;){for(f=c,c=[];++p1)for(var b=1;b{Zt(),Jt(),Qt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:a}=qa(),o=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=a("nodejs.webstream.isClosedPromise"),f=a("nodejs.webstream.controllerErrorFunction");function p(B,U=!1){var Y;return!!(B&&typeof B.pipe=="function"&&typeof B.on=="function"&&(!U||typeof B.pause=="function"&&typeof B.resume=="function")&&(!B._writableState||((Y=B._readableState)===null||Y===void 0?void 0:Y.readable)!==!1)&&(!B._writableState||B._readableState))}function h(B){var U;return!!(B&&typeof B.write=="function"&&typeof B.on=="function"&&(!B._readableState||((U=B._writableState)===null||U===void 0?void 0:U.writable)!==!1))}function m(B){return!!(B&&typeof B.pipe=="function"&&B._readableState&&typeof B.on=="function"&&typeof B.write=="function")}function g(B){return B&&(B._readableState||B._writableState||typeof B.write=="function"&&typeof B.on=="function"||typeof B.pipe=="function"&&typeof B.on=="function")}function v(B){return!!(B&&!g(B)&&typeof B.pipeThrough=="function"&&typeof B.getReader=="function"&&typeof B.cancel=="function")}function y(B){return!!(B&&!g(B)&&typeof B.getWriter=="function"&&typeof B.abort=="function")}function w(B){return!!(B&&!g(B)&&typeof B.readable=="object"&&typeof B.writable=="object")}function b(B){return v(B)||y(B)||w(B)}function C(B,U){return B==null?!1:U===!0?typeof B[r]=="function":U===!1?typeof B[i]=="function":typeof B[r]=="function"||typeof B[i]=="function"}function k(B){if(!g(B))return null;let U=B._writableState,Y=B._readableState,ee=U||Y;return!!(B.destroyed||B[o]||ee!=null&&ee.destroyed)}function S(B){if(!h(B))return null;if(B.writableEnded===!0)return!0;let U=B._writableState;return U!=null&&U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function _(B,U){if(!h(B))return null;if(B.writableFinished===!0)return!0;let Y=B._writableState;return Y!=null&&Y.errored?!1:typeof(Y==null?void 0:Y.finished)!="boolean"?null:!!(Y.finished||U===!1&&Y.ended===!0&&Y.length===0)}function E(B){if(!p(B))return null;if(B.readableEnded===!0)return!0;let U=B._readableState;return!U||U.errored?!1:typeof(U==null?void 0:U.ended)!="boolean"?null:U.ended}function $(B,U){if(!p(B))return null;let Y=B._readableState;return Y!=null&&Y.errored?!1:typeof(Y==null?void 0:Y.endEmitted)!="boolean"?null:!!(Y.endEmitted||U===!1&&Y.ended===!0&&Y.length===0)}function M(B){return B&&B[l]!=null?B[l]:typeof(B==null?void 0:B.readable)!="boolean"?null:k(B)?!1:p(B)&&B.readable&&!$(B)}function P(B){return typeof(B==null?void 0:B.writable)!="boolean"?null:k(B)?!1:h(B)&&B.writable&&!S(B)}function R(B,U){return g(B)?k(B)?!0:!((U==null?void 0:U.readable)!==!1&&M(B)||(U==null?void 0:U.writable)!==!1&&P(B)):null}function O(B){var U,Y;return g(B)?B.writableErrored?B.writableErrored:(U=(Y=B._writableState)===null||Y===void 0?void 0:Y.errored)!==null&&U!==void 0?U:null:null}function j(B){var U,Y;return g(B)?B.readableErrored?B.readableErrored:(U=(Y=B._readableState)===null||Y===void 0?void 0:Y.errored)!==null&&U!==void 0?U:null:null}function I(B){if(!g(B))return null;if(typeof B.closed=="boolean")return B.closed;let U=B._writableState,Y=B._readableState;return typeof(U==null?void 0:U.closed)=="boolean"||typeof(Y==null?void 0:Y.closed)=="boolean"?(U==null?void 0:U.closed)||(Y==null?void 0:Y.closed):typeof B._closed=="boolean"&&A(B)?B._closed:null}function A(B){return typeof B._closed=="boolean"&&typeof B._defaultKeepAlive=="boolean"&&typeof B._removedConnection=="boolean"&&typeof B._removedContLen=="boolean"}function N(B){return typeof B._sent100=="boolean"&&A(B)}function F(B){var U;return typeof B._consuming=="boolean"&&typeof B._dumped=="boolean"&&((U=B.req)===null||U===void 0?void 0:U.upgradeOrConnect)===void 0}function K(B){if(!g(B))return null;let U=B._writableState,Y=B._readableState,ee=U||Y;return!ee&&N(B)||!!(ee&&ee.autoDestroy&&ee.emitClose&&ee.closed===!1)}function L(B){var U;return!!(B&&((U=B[c])!==null&&U!==void 0?U:B.readableDidRead||B.readableAborted))}function V(B){var U,Y,ee,ie,Z,X,ae,oe,le,ce;return!!(B&&((U=(Y=(ee=(ie=(Z=(X=B[s])!==null&&X!==void 0?X:B.readableErrored)!==null&&Z!==void 0?Z:B.writableErrored)!==null&&ie!==void 0?ie:(ae=B._readableState)===null||ae===void 0?void 0:ae.errorEmitted)!==null&&ee!==void 0?ee:(oe=B._writableState)===null||oe===void 0?void 0:oe.errorEmitted)!==null&&Y!==void 0?Y:(le=B._readableState)===null||le===void 0?void 0:le.errored)!==null&&U!==void 0?U:!((ce=B._writableState)===null||ce===void 0)&&ce.errored))}t.exports={kDestroyed:o,isDisturbed:L,kIsDisturbed:c,isErrored:V,kIsErrored:s,isReadable:M,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:I,isDestroyed:k,isDuplexNodeStream:m,isFinished:R,isIterable:C,isReadableNodeStream:p,isReadableStream:v,isReadableEnded:E,isReadableFinished:$,isReadableErrored:j,isNodeStream:g,isWebStream:b,isWritable:P,isWritableNodeStream:h,isWritableStream:y,isWritableEnded:S,isWritableFinished:_,isWritableErrored:O,isServerRequest:F,isServerResponse:N,willEmitClose:K,isTransformStream:w}}),yh=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{AbortError:r,codes:i}=Gs(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:l}=Mf(),{validateAbortSignal:c,validateFunction:u,validateObject:f,validateBoolean:p}=fE(),{Promise:h,PromisePrototypeThen:m}=qa(),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:w,isReadableFinished:b,isReadableErrored:C,isWritable:k,isWritableNodeStream:S,isWritableStream:_,isWritableFinished:E,isWritableErrored:$,isNodeStream:M,willEmitClose:P,kIsClosedPromise:R}=Bf();function O(F){return F.setHeader&&typeof F.abort=="function"}var j=()=>{};function I(F,K,L){var V,B;if(arguments.length===2?(L=K,K=s):K==null?K=s:f(K,"options"),u(L,"callback"),c(K.signal,"options.signal"),L=l(L),w(F)||_(F))return A(F,K,L);if(!M(F))throw new a("stream",["ReadableStream","WritableStream","Stream"],F);let U=(V=K.readable)!==null&&V!==void 0?V:y(F),Y=(B=K.writable)!==null&&B!==void 0?B:S(F),ee=F._writableState,ie=F._readableState,Z=()=>{F.writable||oe()},X=P(F)&&y(F)===U&&S(F)===Y,ae=E(F,!1),oe=()=>{ae=!0,F.destroyed&&(X=!1),!(X&&(!F.readable||U))&&(!U||le)&&L.call(F)},le=b(F,!1),ce=()=>{le=!0,F.destroyed&&(X=!1),!(X&&(!F.writable||Y))&&(!Y||ae)&&L.call(F)},pe=Ce=>{L.call(F,Ce)},me=g(F),re=()=>{me=!0;let Ce=$(F)||C(F);if(Ce&&typeof Ce!="boolean")return L.call(F,Ce);if(U&&!le&&y(F,!0)&&!b(F,!1))return L.call(F,new o);if(Y&&!ae&&!E(F,!1))return L.call(F,new o);L.call(F)},fe=()=>{me=!0;let Ce=$(F)||C(F);if(Ce&&typeof Ce!="boolean")return L.call(F,Ce);L.call(F)},ve=()=>{F.req.on("finish",oe)};O(F)?(F.on("complete",oe),X||F.on("abort",re),F.req?ve():F.on("request",ve)):Y&&!ee&&(F.on("end",Z),F.on("close",Z)),!X&&typeof F.aborted=="boolean"&&F.on("aborted",re),F.on("end",ce),F.on("finish",oe),K.error!==!1&&F.on("error",pe),F.on("close",re),me?n.nextTick(re):ee!=null&&ee.errorEmitted||ie!=null&&ie.errorEmitted?X||n.nextTick(fe):(!U&&(!X||v(F))&&(ae||k(F)===!1)||!Y&&(!X||k(F))&&(le||v(F)===!1)||ie&&F.req&&F.aborted)&&n.nextTick(fe);let $e=()=>{L=j,F.removeListener("aborted",re),F.removeListener("complete",oe),F.removeListener("abort",re),F.removeListener("request",ve),F.req&&F.req.removeListener("finish",oe),F.removeListener("end",Z),F.removeListener("close",Z),F.removeListener("finish",oe),F.removeListener("end",ce),F.removeListener("error",pe),F.removeListener("close",re)};if(K.signal&&!me){let Ce=()=>{let be=L;$e(),be.call(F,new r(void 0,{cause:K.signal.reason}))};if(K.signal.aborted)n.nextTick(Ce);else{let be=L;L=l((...Se)=>{K.signal.removeEventListener("abort",Ce),be.apply(F,Se)}),K.signal.addEventListener("abort",Ce)}}return $e}function A(F,K,L){let V=!1,B=j;if(K.signal)if(B=()=>{V=!0,L.call(F,new r(void 0,{cause:K.signal.reason}))},K.signal.aborted)n.nextTick(B);else{let Y=L;L=l((...ee)=>{K.signal.removeEventListener("abort",B),Y.apply(F,ee)}),K.signal.addEventListener("abort",B)}let U=(...Y)=>{V||n.nextTick(()=>L.apply(F,Y))};return m(F[R].promise,U,U),j}function N(F,K){var L;let V=!1;return K===null&&(K=s),(L=K)!==null&&L!==void 0&&L.cleanup&&(p(K.cleanup,"cleanup"),V=K.cleanup),new h((B,U)=>{let Y=I(F,K,ee=>{V&&Y(),ee?U(ee):B()})})}t.exports=I,t.exports.finished=N}),py=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=Gs(),{Symbol:o}=qa(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=Bf(),f=o("kDestroy"),p=o("kConstruct");function h(R,O,j){R&&(R.stack,O&&!O.errored&&(O.errored=R),j&&!j.errored&&(j.errored=R))}function m(R,O){let j=this._readableState,I=this._writableState,A=I||j;return I!=null&&I.destroyed||j!=null&&j.destroyed?(typeof O=="function"&&O(),this):(h(R,I,j),I&&(I.destroyed=!0),j&&(j.destroyed=!0),A.constructed?g(this,R,O):this.once(f,function(N){g(this,r(N,R),O)}),this)}function g(R,O,j){let I=!1;function A(N){if(I)return;I=!0;let F=R._readableState,K=R._writableState;h(N,K,F),K&&(K.closed=!0),F&&(F.closed=!0),typeof j=="function"&&j(N),N?n.nextTick(v,R,N):n.nextTick(y,R)}try{R._destroy(O||null,A)}catch(N){A(N)}}function v(R,O){w(R,O),y(R)}function y(R){let O=R._readableState,j=R._writableState;j&&(j.closeEmitted=!0),O&&(O.closeEmitted=!0),(j!=null&&j.emitClose||O!=null&&O.emitClose)&&R.emit("close")}function w(R,O){let j=R._readableState,I=R._writableState;I!=null&&I.errorEmitted||j!=null&&j.errorEmitted||(I&&(I.errorEmitted=!0),j&&(j.errorEmitted=!0),R.emit("error",O))}function b(){let R=this._readableState,O=this._writableState;R&&(R.constructed=!0,R.closed=!1,R.closeEmitted=!1,R.destroyed=!1,R.errored=null,R.errorEmitted=!1,R.reading=!1,R.ended=R.readable===!1,R.endEmitted=R.readable===!1),O&&(O.constructed=!0,O.destroyed=!1,O.closed=!1,O.closeEmitted=!1,O.errored=null,O.errorEmitted=!1,O.finalCalled=!1,O.prefinished=!1,O.ended=O.writable===!1,O.ending=O.writable===!1,O.finished=O.writable===!1)}function C(R,O,j){let I=R._readableState,A=R._writableState;if(A!=null&&A.destroyed||I!=null&&I.destroyed)return this;I!=null&&I.autoDestroy||A!=null&&A.autoDestroy?R.destroy(O):O&&(O.stack,A&&!A.errored&&(A.errored=O),I&&!I.errored&&(I.errored=O),j?n.nextTick(w,R,O):w(R,O))}function k(R,O){if(typeof R._construct!="function")return;let j=R._readableState,I=R._writableState;j&&(j.constructed=!1),I&&(I.constructed=!1),R.once(p,O),!(R.listenerCount(p)>1)&&n.nextTick(S,R)}function S(R){let O=!1;function j(I){if(O){C(R,I??new i);return}O=!0;let A=R._readableState,N=R._writableState,F=N||A;A&&(A.constructed=!0),N&&(N.constructed=!0),F.destroyed?R.emit(f,I):I?C(R,I,!0):n.nextTick(_,R)}try{R._construct(I=>{n.nextTick(j,I)})}catch(I){n.nextTick(j,I)}}function _(R){R.emit(p)}function E(R){return(R==null?void 0:R.setHeader)&&typeof R.abort=="function"}function $(R){R.emit("close")}function M(R,O){R.emit("error",O),n.nextTick($,R)}function P(R,O){!R||l(R)||(!O&&!c(R)&&(O=new a),u(R)?(R.socket=null,R.destroy(O)):E(R)?R.abort():E(R.req)?R.req.abort():typeof R.destroy=="function"?R.destroy(O):typeof R.close=="function"?R.close():O?n.nextTick(M,R,O):n.nextTick($,R),R.destroyed||(R[s]=!0))}t.exports={construct:k,destroyer:P,destroy:m,undestroy:b,errorOrDestroy:C}});function mi(){mi.init.call(this)}function DC(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Wle(e){return e._maxListeners===void 0?mi.defaultMaxListeners:e._maxListeners}function Lq(e,t,n,r){var i,a,o,s;if(DC(n),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)o=a[t]=n,++e._eventsCount;else if(typeof o=="function"?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=Wle(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return e}function S$e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Bq(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=S$e.bind(r);return i.listener=n,r.wrapFn=i,i}function zq(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(a){for(var o=new Array(a.length),s=0;s{Zt(),Jt(),Qt(),Bh=typeof Reflect=="object"?Reflect:null,UM=Bh&&typeof Bh.apply=="function"?Bh.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Wq=Bh&&typeof Bh.ownKeys=="function"?Bh.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},WM=Number.isNaN||function(e){return e!=e},Uq=mi,mi.EventEmitter=mi,mi.prototype._events=void 0,mi.prototype._eventsCount=0,mi.prototype._maxListeners=void 0,VM=10,Object.defineProperty(mi,"defaultMaxListeners",{enumerable:!0,get:function(){return VM},set:function(e){if(typeof e!="number"||e<0||WM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");VM=e}}),mi.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},mi.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||WM(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},mi.prototype.getMaxListeners=function(){return Wle(this)},mi.prototype.emit=function(e){for(var t=[],n=1;n0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")UM(s,this,t);else{var l=s.length,c=Vle(s,l);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():function(s,l){for(;l+1=0;r--)this.removeListener(e,t[r]);return this},mi.prototype.listeners=function(e){return zq(this,e,!0)},mi.prototype.rawListeners=function(e){return zq(this,e,!1)},mi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Hq.call(e,t)},mi.prototype.listenerCount=Hq,mi.prototype.eventNames=function(){return this._eventsCount>0?Wq(this._events):[]},ml=Uq,ml.EventEmitter,ml.defaultMaxListeners,ml.init,ml.listenerCount,ml.EventEmitter,ml.defaultMaxListeners,ml.init,ml.listenerCount}),Lg={};Dg(Lg,{EventEmitter:()=>qle,default:()=>ml,defaultMaxListeners:()=>Kle,init:()=>Gle,listenerCount:()=>Yle,on:()=>Xle,once:()=>Zle});var qle,Kle,Gle,Yle,Xle,Zle,hy=Co(()=>{Zt(),Jt(),Qt(),Vq(),Vq(),ml.once=function(e,t){return new Promise((n,r)=>{function i(...o){a!==void 0&&e.removeListener("error",a),n(o)}let a;t!=="error"&&(a=o=>{e.removeListener(name,i),r(o)},e.once("error",a)),e.once(t,i)})},ml.on=function(e,t){let n=[],r=[],i=null,a=!1,o={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(i){let u=Promise.reject(i);return i=null,u}return a?createIterResult(void 0,!0):new Promise((u,f)=>r.push({resolve:u,reject:f}))},async return(){e.removeListener(t,s),e.removeListener("error",l),a=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){i=c,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),o;function s(...c){let u=r.shift();u?u.resolve(createIterResult(c,!1)):n.push(c)}function l(c){a=!0;let u=r.shift();u?u.reject(c):i=c,o.return()}},{EventEmitter:qle,defaultMaxListeners:Kle,init:Gle,listenerCount:Yle,on:Xle,once:Zle}=ml}),zF=un((e,t)=>{Zt(),Jt(),Qt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=qa(),{EventEmitter:i}=(hy(),Si(Lg));function a(s){i.call(this,s)}r(a.prototype,i.prototype),r(a,i),a.prototype.pipe=function(s,l){let c=this;function u(y){s.writable&&s.write(y)===!1&&c.pause&&c.pause()}c.on("data",u);function f(){c.readable&&c.resume&&c.resume()}s.on("drain",f),!s._isStdio&&(!l||l.end!==!1)&&(c.on("end",h),c.on("close",m));let p=!1;function h(){p||(p=!0,s.end())}function m(){p||(p=!0,typeof s.destroy=="function"&&s.destroy())}function g(y){v(),i.listenerCount(this,"error")===0&&this.emit("error",y)}o(c,"error",g),o(s,"error",g);function v(){c.removeListener("data",u),s.removeListener("drain",f),c.removeListener("end",h),c.removeListener("close",m),c.removeListener("error",g),s.removeListener("error",g),c.removeListener("end",v),c.removeListener("close",v),s.removeListener("close",v)}return c.on("end",v),c.on("close",v),s.on("close",v),s.emit("pipe",c),s};function o(s,l,c){if(typeof s.prependListener=="function")return s.prependListener(l,c);!s._events||!s._events[l]?s.on(l,c):n(s._events[l])?s._events[l].unshift(c):s._events[l]=[c,s._events[l]]}t.exports={Stream:a,prependListener:o}}),pE=un((e,t)=>{Zt(),Jt(),Qt();var{AbortError:n,codes:r}=Gs(),{isNodeStream:i,isWebStream:a,kControllerErrorFunction:o}=Bf(),s=yh(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,f)=>{if(typeof u!="object"||!("aborted"in u))throw new l(f,"AbortSignal",u)};t.exports.addAbortSignal=function(u,f){if(c(u,"signal"),!i(f)&&!a(f))throw new l("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(u,f)},t.exports.addAbortSignalNoValidate=function(u,f){if(typeof u!="object"||!("aborted"in u))return f;let p=i(f)?()=>{f.destroy(new n(void 0,{cause:u.reason}))}:()=>{f[o](new n(void 0,{cause:u.reason}))};return u.aborted?p():(u.addEventListener("abort",p),s(f,()=>u.removeEventListener("abort",p))),f}}),C$e=un((e,t)=>{Zt(),Jt(),Qt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:a}=qa(),{Buffer:o}=(ko(),Si(_o)),{inspect:s}=Mf();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(l){let c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let c=this.head,u=""+c.data;for(;(c=c.next)!==null;)u+=l+c.data;return u}concat(l){if(this.length===0)return o.alloc(0);let c=o.allocUnsafe(l>>>0),u=this.head,f=0;for(;u;)i(c,u.data,f),f+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(lp.length)c+=p,l-=p.length;else{l===p.length?(c+=p,++f,u.next?this.head=u.next:this.head=this.tail=null):(c+=n(p,0,l),this.head=u,u.data=n(p,l));break}++f}while((u=u.next)!==null);return this.length-=f,c}_getBuffer(l){let c=o.allocUnsafe(l),u=l,f=this.head,p=0;do{let h=f.data;if(l>h.length)i(c,h,u-l),l-=h.length;else{l===h.length?(i(c,h,u-l),++p,f.next?this.head=f.next:this.head=this.tail=null):(i(c,new a(h.buffer,h.byteOffset,l),u-l),this.head=f,f.data=h.slice(l));break}++p}while((f=f.next)!==null);return this.length-=p,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),HF=un((e,t)=>{Zt(),Jt(),Qt();var{MathFloor:n,NumberIsInteger:r}=qa(),{ERR_INVALID_ARG_VALUE:i}=Gs().codes;function a(l,c,u){return l.highWaterMark!=null?l.highWaterMark:c?l[u]:null}function o(l){return l?16:16*1024}function s(l,c,u,f){let p=a(c,f,u);if(p!=null){if(!r(p)||p<0){let h=f?`options.${u}`:"options.highWaterMark";throw new i(h,p)}return n(p)}return o(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:o}});function qq(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return n===-1&&(n=t),[n,n===t?0:4-n%4]}function _$e(e,t,n){for(var r,i,a=[],o=t;o>18&63]+Gc[i>>12&63]+Gc[i>>6&63]+Gc[63&i]);return a.join("")}function df(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,an.prototype),t}function an(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return SI(e)}return Qle(e,t,n)}function Qle(e,t,n){if(typeof e=="string")return function(a,o){if(typeof o=="string"&&o!==""||(o="utf8"),!an.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var s=0|ece(a,o),l=df(s),c=l.write(a,o);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return qM(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ff(e,ArrayBuffer)||e&&ff(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ff(e,SharedArrayBuffer)||e&&ff(e.buffer,SharedArrayBuffer)))return k$e(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return an.from(r,t,n);var i=function(a){if(an.isBuffer(a)){var o=0|UF(a.length),s=df(o);return s.length===0||a.copy(s,0,0,o),s}if(a.length!==void 0)return typeof a.length!="number"||WF(a.length)?df(0):qM(a);if(a.type==="Buffer"&&Array.isArray(a.data))return qM(a.data)}(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return an.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function Jle(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function SI(e){return Jle(e),df(e<0?0:0|UF(e))}function qM(e){for(var t=e.length<0?0:0|UF(e.length),n=df(t),r=0;r=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function ece(e,t){if(an.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ff(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return CI(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ice(e).length;default:if(i)return r?-1:CI(e).length;t=(""+t).toLowerCase(),i=!0}}function E$e(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N$e(this,t,n);case"utf8":case"utf-8":return nce(this,t,n);case"ascii":return I$e(this,t,n);case"latin1":case"binary":return j$e(this,t,n);case"base64":return R$e(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A$e(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function zh(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Kq(e,t,n,r,i){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),WF(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t=="string"&&(t=an.from(t,r)),an.isBuffer(t))return t.length===0?-1:Gq(e,t,n,r,i);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Gq(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Gq(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(h,m){return o===1?h[m]:h.readUInt16BE(m*o)}if(i){var u=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var f=!0,p=0;pi&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>8,l=o%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function R$e(e,t,n){return t===0&&n===e.length?Ck.fromByteArray(e):Ck.fromByteArray(e.slice(t,n))}function nce(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(p){var h=p.length;if(h<=4096)return String.fromCharCode.apply(String,p);for(var m="",g=0;gr)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function Es(e,t,n,r,i,a){if(!an.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function rce(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Yq(e,t,n,r,i){return t=+t,n>>>=0,i||rce(e,0,n,4),am.write(e,t,n,r,23,4),n+4}function Xq(e,t,n,r,i){return t=+t,n>>>=0,i||rce(e,0,n,8),am.write(e,t,n,r,52,8),n+8}function CI(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function ice(e){return Ck.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(ace,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function hE(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ff(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function WF(e){return e!=e}function Zq(e,t){for(var n in e)t[n]=e[n]}function Hh(e,t,n){return Dc(e,t,n)}function _b(e){var t;switch(this.encoding=function(n){var r=function(i){if(!i)return"utf8";for(var a;;)switch(i){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return i;default:if(a)return;i=(""+i).toLowerCase(),a=!0}}(n);if(typeof r!="string"&&(_k.isEncoding===_I||!_I(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=F$e,this.end=L$e,t=4;break;case"utf8":this.fillLast=D$e,t=4;break;case"base64":this.text=B$e,this.end=z$e,t=3;break;default:return this.write=H$e,this.end=U$e,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=_k.allocUnsafe(t)}function KM(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function D$e(e){var t=this.lastTotal-this.lastNeed,n=function(r,i,a){if((192&i[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&i.length>1){if((192&i[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&i.length>2&&(192&i[2])!=128)return r.lastNeed=2,"�"}}(this,e);return n!==void 0?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function F$e(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function L$e(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function B$e(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function z$e(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function H$e(e){return e.toString(this.encoding)}function U$e(e){return e&&e.length?this.write(e):""}var Qq,Gc,nl,Jq,Jx,Uh,eK,tK,Au,Ck,am,GM,ace,oce,kb,Eb,Dc,nK,hv,_k,_I,rK=Co(()=>{for(Zt(),Jt(),Qt(),Qq={byteLength:function(e){var t=qq(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=qq(e),i=r[0],a=r[1],o=new Jq(function(c,u,f){return 3*(u+f)/4-f}(0,i,a)),s=0,l=a>0?i-4:i;for(n=0;n>16&255,o[s++]=t>>8&255,o[s++]=255&t;return a===2&&(t=nl[e.charCodeAt(n)]<<2|nl[e.charCodeAt(n+1)]>>4,o[s++]=255&t),a===1&&(t=nl[e.charCodeAt(n)]<<10|nl[e.charCodeAt(n+1)]<<4|nl[e.charCodeAt(n+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t),o},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],a=0,o=n-r;ao?o:a+16383));return r===1?(t=e[n-1],i.push(Gc[t>>2]+Gc[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Gc[t>>10]+Gc[t>>4&63]+Gc[t<<2&63]+"=")),i.join("")}},Gc=[],nl=[],Jq=typeof Uint8Array<"u"?Uint8Array:Array,Jx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uh=0,eK=Jx.length;Uh>1,u=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+f],f+=p,u-=8);if(a===0)a=1-c;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=c}return(h?-1:1)*o*Math.pow(2,a-r)},write:function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=m,s/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=m,o/=256,c-=8);e[n+h-m]|=128*g}},Au={},Ck=Qq,am=tK,GM=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,Au.Buffer=an,Au.SlowBuffer=function(e){return+e!=e&&(e=0),an.alloc(+e)},Au.INSPECT_MAX_BYTES=50,Au.kMaxLength=2147483647,an.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),an.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(an.prototype,"parent",{enumerable:!0,get:function(){if(an.isBuffer(this))return this.buffer}}),Object.defineProperty(an.prototype,"offset",{enumerable:!0,get:function(){if(an.isBuffer(this))return this.byteOffset}}),an.poolSize=8192,an.from=function(e,t,n){return Qle(e,t,n)},Object.setPrototypeOf(an.prototype,Uint8Array.prototype),Object.setPrototypeOf(an,Uint8Array),an.alloc=function(e,t,n){return function(r,i,a){return Jle(r),r<=0?df(r):i!==void 0?typeof a=="string"?df(r).fill(i,a):df(r).fill(i):df(r)}(e,t,n)},an.allocUnsafe=function(e){return SI(e)},an.allocUnsafeSlow=function(e){return SI(e)},an.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==an.prototype},an.compare=function(e,t){if(ff(e,Uint8Array)&&(e=an.from(e,e.offset,e.byteLength)),ff(t,Uint8Array)&&(t=an.from(t,t.offset,t.byteLength)),!an.isBuffer(e)||!an.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);it&&(e+=" ... "),""},GM&&(an.prototype[GM]=an.prototype.inspect),an.prototype.compare=function(e,t,n,r,i){if(ff(e,Uint8Array)&&(e=an.from(e,e.offset,e.byteLength)),!an.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return $$e(this,e,t,n);case"utf8":case"utf-8":return M$e(this,e,t,n);case"ascii":return tce(this,e,t,n);case"latin1":case"binary":return T$e(this,e,t,n);case"base64":return P$e(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O$e(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},an.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},an.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},an.prototype.readUInt8=function(e,t){return e>>>=0,t||Ya(e,1,this.length),this[e]},an.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Ya(e,2,this.length),this[e]|this[e+1]<<8},an.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Ya(e,2,this.length),this[e]<<8|this[e+1]},an.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},an.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},an.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},an.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Ya(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},an.prototype.readInt8=function(e,t){return e>>>=0,t||Ya(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},an.prototype.readInt16LE=function(e,t){e>>>=0,t||Ya(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},an.prototype.readInt16BE=function(e,t){e>>>=0,t||Ya(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},an.prototype.readInt32LE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},an.prototype.readInt32BE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},an.prototype.readFloatLE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),am.read(this,e,!0,23,4)},an.prototype.readFloatBE=function(e,t){return e>>>=0,t||Ya(e,4,this.length),am.read(this,e,!1,23,4)},an.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Ya(e,8,this.length),am.read(this,e,!0,52,8)},an.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Ya(e,8,this.length),am.read(this,e,!1,52,8)},an.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,r||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},an.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,1,255,0),this[t]=255&e,t+1},an.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},an.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},an.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},an.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},an.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},an.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);Es(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},an.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},an.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},an.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},an.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},an.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Es(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},an.prototype.writeFloatLE=function(e,t,n){return Yq(this,e,t,!0,n)},an.prototype.writeFloatBE=function(e,t,n){return Yq(this,e,t,!1,n)},an.prototype.writeDoubleLE=function(e,t,n){return Xq(this,e,t,!0,n)},an.prototype.writeDoubleBE=function(e,t,n){return Xq(this,e,t,!1,n)},an.prototype.copy=function(e,t,n,r){if(!an.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},an.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!an.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var i=e.charCodeAt(0);(r==="utf8"&&i<128||r==="latin1")&&(e=i)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(a=t;a=0?(l>0&&(i.lastNeed=l-1),l):--s=0?(l>0&&(i.lastNeed=l-2),l):--s=0?(l>0&&(l===2?l=0:i.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},_b.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},hv.StringDecoder,hv.StringDecoder}),sce={};Dg(sce,{StringDecoder:()=>lce,default:()=>hv});var lce,W$e=Co(()=>{Zt(),Jt(),Qt(),rK(),rK(),lce=hv.StringDecoder}),cce=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:a}=qa(),{Buffer:o}=(ko(),Si(_o)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Gs().codes;function c(u,f,p){let h;if(typeof f=="string"||f instanceof o)return new u({objectMode:!0,...p,read(){this.push(f),this.push(null)}});let m;if(f&&f[i])m=!0,h=f[i]();else if(f&&f[a])m=!1,h=f[a]();else throw new s("iterable",["Iterable"],f);let g=new u({objectMode:!0,highWaterMark:1,...p}),v=!1;g._read=function(){v||(v=!0,w())},g._destroy=function(b,C){r(y(b),()=>n.nextTick(C,b),k=>n.nextTick(C,k||b))};async function y(b){let C=b!=null,k=typeof h.throw=="function";if(C&&k){let{value:S,done:_}=await h.throw(b);if(await S,_)return}if(typeof h.return=="function"){let{value:S}=await h.return();await S}}async function w(){for(;;){try{let{value:b,done:C}=m?await h.next():h.next();if(C)g.push(null);else{let k=b&&typeof b.then=="function"?await b:b;if(k===null)throw v=!1,new l;if(g.push(k))continue;v=!1}}catch(b){g.destroy(b)}break}}return g}t.exports=c}),mE=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:o,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncIterator:p,Symbol:h}=qa();t.exports=B,B.ReadableState=V;var{EventEmitter:m}=(hy(),Si(Lg)),{Stream:g,prependListener:v}=zF(),{Buffer:y}=(ko(),Si(_o)),{addAbortSignal:w}=pE(),b=yh(),C=Mf().debuglog("stream",H=>{C=H}),k=C$e(),S=py(),{getHighWaterMark:_,getDefaultHighWaterMark:E}=HF(),{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:M,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:O,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:j}}=Gs(),{validateObject:I}=fE(),A=h("kPaused"),{StringDecoder:N}=(W$e(),Si(sce)),F=cce();c(B.prototype,g.prototype),c(B,g);var K=()=>{},{errorOrDestroy:L}=S;function V(H,G,de){typeof de!="boolean"&&(de=G instanceof Tf()),this.objectMode=!!(H&&H.objectMode),de&&(this.objectMode=this.objectMode||!!(H&&H.readableObjectMode)),this.highWaterMark=H?_(this,H,"readableHighWaterMark",de):E(!1),this.buffer=new k,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[A]=null,this.errorEmitted=!1,this.emitClose=!H||H.emitClose!==!1,this.autoDestroy=!H||H.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=H&&H.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,H&&H.encoding&&(this.decoder=new N(H.encoding),this.encoding=H.encoding)}function B(H){if(!(this instanceof B))return new B(H);let G=this instanceof Tf();this._readableState=new V(H,this,G),H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.construct=="function"&&(this._construct=H.construct),H.signal&&!G&&w(H.signal,this)),g.call(this,H),S.construct(this,()=>{this._readableState.needReadable&&le(this,this._readableState)})}B.prototype.destroy=S.destroy,B.prototype._undestroy=S.undestroy,B.prototype._destroy=function(H,G){G(H)},B.prototype[m.captureRejectionSymbol]=function(H){this.destroy(H)},B.prototype.push=function(H,G){return U(this,H,G,!1)},B.prototype.unshift=function(H,G){return U(this,H,G,!0)};function U(H,G,de,xe){C("readableAddChunk",G);let he=H._readableState,Ue;if(he.objectMode||(typeof G=="string"?(de=de||he.defaultEncoding,he.encoding!==de&&(xe&&he.encoding?G=y.from(G,de).toString(he.encoding):(G=y.from(G,de),de=""))):G instanceof y?de="":g._isUint8Array(G)?(G=g._uint8ArrayToBuffer(G),de=""):G!=null&&(Ue=new M("chunk",["string","Buffer","Uint8Array"],G))),Ue)L(H,Ue);else if(G===null)he.reading=!1,X(H,he);else if(he.objectMode||G&&G.length>0)if(xe)if(he.endEmitted)L(H,new j);else{if(he.destroyed||he.errored)return!1;Y(H,he,G,!0)}else if(he.ended)L(H,new O);else{if(he.destroyed||he.errored)return!1;he.reading=!1,he.decoder&&!de?(G=he.decoder.write(G),he.objectMode||G.length!==0?Y(H,he,G,!1):le(H,he)):Y(H,he,G,!1)}else xe||(he.reading=!1,le(H,he));return!he.ended&&(he.length0?(G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null,G.dataEmitted=!0,H.emit("data",de)):(G.length+=G.objectMode?1:de.length,xe?G.buffer.unshift(de):G.buffer.push(de),G.needReadable&&ae(H)),le(H,G)}B.prototype.isPaused=function(){let H=this._readableState;return H[A]===!0||H.flowing===!1},B.prototype.setEncoding=function(H){let G=new N(H);this._readableState.decoder=G,this._readableState.encoding=this._readableState.decoder.encoding;let de=this._readableState.buffer,xe="";for(let he of de)xe+=G.write(he);return de.clear(),xe!==""&&de.push(xe),this._readableState.length=xe.length,this};var ee=1073741824;function ie(H){if(H>ee)throw new R("size","<= 1GiB",H);return H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++,H}function Z(H,G){return H<=0||G.length===0&&G.ended?0:G.objectMode?1:a(H)?G.flowing&&G.length?G.buffer.first().length:G.length:H<=G.length?H:G.ended?G.length:0}B.prototype.read=function(H){C("read",H),H===void 0?H=NaN:i(H)||(H=o(H,10));let G=this._readableState,de=H;if(H>G.highWaterMark&&(G.highWaterMark=ie(H)),H!==0&&(G.emittedReadable=!1),H===0&&G.needReadable&&((G.highWaterMark!==0?G.length>=G.highWaterMark:G.length>0)||G.ended))return C("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?we(this):ae(this),null;if(H=Z(H,G),H===0&&G.ended)return G.length===0&&we(this),null;let xe=G.needReadable;if(C("need readable",xe),(G.length===0||G.length-H0?he=Se(H,G):he=null,he===null?(G.needReadable=G.length<=G.highWaterMark,H=0):(G.length-=H,G.multiAwaitDrain?G.awaitDrainWriters.clear():G.awaitDrainWriters=null),G.length===0&&(G.ended||(G.needReadable=!0),de!==H&&G.ended&&we(this)),he!==null&&!G.errorEmitted&&!G.closeEmitted&&(G.dataEmitted=!0,this.emit("data",he)),he};function X(H,G){if(C("onEofChunk"),!G.ended){if(G.decoder){let de=G.decoder.end();de&&de.length&&(G.buffer.push(de),G.length+=G.objectMode?1:de.length)}G.ended=!0,G.sync?ae(H):(G.needReadable=!1,G.emittedReadable=!0,oe(H))}}function ae(H){let G=H._readableState;C("emitReadable",G.needReadable,G.emittedReadable),G.needReadable=!1,G.emittedReadable||(C("emitReadable",G.flowing),G.emittedReadable=!0,n.nextTick(oe,H))}function oe(H){let G=H._readableState;C("emitReadable_",G.destroyed,G.length,G.ended),!G.destroyed&&!G.errored&&(G.length||G.ended)&&(H.emit("readable"),G.emittedReadable=!1),G.needReadable=!G.flowing&&!G.ended&&G.length<=G.highWaterMark,$e(H)}function le(H,G){!G.readingMore&&G.constructed&&(G.readingMore=!0,n.nextTick(ce,H,G))}function ce(H,G){for(;!G.reading&&!G.ended&&(G.length1&&xe.pipes.includes(H)&&(C("false write response, pause",xe.awaitDrainWriters.size),xe.awaitDrainWriters.add(H)),de.pause()),ge||(ge=pe(de,H),H.on("drain",ge))}de.on("data",Xe);function Xe(gt){C("ondata");let Qe=H.write(gt);C("dest.write",Qe),Qe===!1&&Be()}function Ke(gt){if(C("onerror",gt),ut(),H.removeListener("error",Ke),H.listenerCount("error")===0){let Qe=H._writableState||H._readableState;Qe&&!Qe.errorEmitted?L(H,gt):H.emit("error",gt)}}v(H,"error",Ke);function qe(){H.removeListener("finish",Et),ut()}H.once("close",qe);function Et(){C("onfinish"),H.removeListener("close",qe),ut()}H.once("finish",Et);function ut(){C("unpipe"),de.unpipe(H)}return H.emit("pipe",de),H.writableNeedDrain===!0?xe.flowing&&Be():xe.flowing||(C("pipe resume"),de.resume()),H};function pe(H,G){return function(){let de=H._readableState;de.awaitDrainWriters===G?(C("pipeOnDrain",1),de.awaitDrainWriters=null):de.multiAwaitDrain&&(C("pipeOnDrain",de.awaitDrainWriters.size),de.awaitDrainWriters.delete(G)),(!de.awaitDrainWriters||de.awaitDrainWriters.size===0)&&H.listenerCount("data")&&H.resume()}}B.prototype.unpipe=function(H){let G=this._readableState,de={hasUnpiped:!1};if(G.pipes.length===0)return this;if(!H){let he=G.pipes;G.pipes=[],this.pause();for(let Ue=0;Ue0,xe.flowing!==!1&&this.resume()):H==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,C("on readable",xe.length,xe.reading),xe.length?ae(this):xe.reading||n.nextTick(re,this)),de},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(H,G){let de=g.prototype.removeListener.call(this,H,G);return H==="readable"&&n.nextTick(me,this),de},B.prototype.off=B.prototype.removeListener,B.prototype.removeAllListeners=function(H){let G=g.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&n.nextTick(me,this),G};function me(H){let G=H._readableState;G.readableListening=H.listenerCount("readable")>0,G.resumeScheduled&&G[A]===!1?G.flowing=!0:H.listenerCount("data")>0?H.resume():G.readableListening||(G.flowing=null)}function re(H){C("readable nexttick read 0"),H.read(0)}B.prototype.resume=function(){let H=this._readableState;return H.flowing||(C("resume"),H.flowing=!H.readableListening,fe(this,H)),H[A]=!1,this};function fe(H,G){G.resumeScheduled||(G.resumeScheduled=!0,n.nextTick(ve,H,G))}function ve(H,G){C("resume",G.reading),G.reading||H.read(0),G.resumeScheduled=!1,H.emit("resume"),$e(H),G.flowing&&!G.reading&&H.read(0)}B.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[A]=!0,this};function $e(H){let G=H._readableState;for(C("flow",G.flowing);G.flowing&&H.read()!==null;);}B.prototype.wrap=function(H){let G=!1;H.on("data",xe=>{!this.push(xe)&&H.pause&&(G=!0,H.pause())}),H.on("end",()=>{this.push(null)}),H.on("error",xe=>{L(this,xe)}),H.on("close",()=>{this.destroy()}),H.on("destroy",()=>{this.destroy()}),this._read=()=>{G&&H.resume&&(G=!1,H.resume())};let de=l(H);for(let xe=1;xe{he=We?$(he,We):null,de(),de=K});try{for(;;){let We=H.destroyed?null:H.read();if(We!==null)yield We;else{if(he)throw he;if(he===null)return;await new u(xe)}}}catch(We){throw he=$(he,We),he}finally{(he||(G==null?void 0:G.destroyOnReturn)!==!1)&&(he===void 0||H._readableState.autoDestroy)?S.destroyer(H,null):(H.off("readable",xe),Ue())}}s(B.prototype,{readable:{__proto__:null,get(){let H=this._readableState;return!!H&&H.readable!==!1&&!H.destroyed&&!H.errorEmitted&&!H.endEmitted},set(H){this._readableState&&(this._readableState.readable=!!H)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(H){this._readableState&&(this._readableState.flowing=H)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(H){this._readableState&&(this._readableState.destroyed=H)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(V.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[A]!==!1},set(H){this[A]=!!H}}}),B._fromList=Se;function Se(H,G){if(G.length===0)return null;let de;return G.objectMode?de=G.buffer.shift():!H||H>=G.length?(G.decoder?de=G.buffer.join(""):G.buffer.length===1?de=G.buffer.first():de=G.buffer.concat(G.length),G.buffer.clear()):de=G.buffer.consume(H,G.decoder),de}function we(H){let G=H._readableState;C("endReadable",G.endEmitted),G.endEmitted||(G.ended=!0,n.nextTick(se,G,H))}function se(H,G){if(C("endReadableNT",H.endEmitted,H.length),!H.errored&&!H.closeEmitted&&!H.endEmitted&&H.length===0){if(H.endEmitted=!0,G.emit("end"),G.writable&&G.allowHalfOpen===!1)n.nextTick(ye,G);else if(H.autoDestroy){let de=G._writableState;(!de||de.autoDestroy&&(de.finished||de.writable===!1))&&G.destroy()}}}function ye(H){H.writable&&!H.writableEnded&&!H.destroyed&&H.end()}B.from=function(H,G){return F(B,H,G)};var Oe;function z(){return Oe===void 0&&(Oe={}),Oe}B.fromWeb=function(H,G){return z().newStreamReadableFromReadableStream(H,G)},B.toWeb=function(H,G){return z().newReadableStreamFromStreamReadable(H,G)},B.wrap=function(H,G){var de,xe;return new B({objectMode:(de=(xe=H.readableObjectMode)!==null&&xe!==void 0?xe:H.objectMode)!==null&&de!==void 0?de:!0,...G,destroy(he,Ue){S.destroyer(H,he),Ue(he)}}).wrap(H)}}),uce=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:o,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=qa();t.exports=N,N.WritableState=I;var{EventEmitter:p}=(hy(),Si(Lg)),h=zF().Stream,{Buffer:m}=(ko(),Si(_o)),g=py(),{addAbortSignal:v}=pE(),{getHighWaterMark:y,getDefaultHighWaterMark:w}=HF(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:C,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:_,ERR_STREAM_ALREADY_FINISHED:E,ERR_STREAM_NULL_VALUES:$,ERR_STREAM_WRITE_AFTER_END:M,ERR_UNKNOWN_ENCODING:P}=Gs().codes,{errorOrDestroy:R}=g;l(N.prototype,h.prototype),l(N,h);function O(){}var j=u("kOnFinished");function I(re,fe,ve){typeof ve!="boolean"&&(ve=fe instanceof Tf()),this.objectMode=!!(re&&re.objectMode),ve&&(this.objectMode=this.objectMode||!!(re&&re.writableObjectMode)),this.highWaterMark=re?y(this,re,"writableHighWaterMark",ve):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let $e=!!(re&&re.decodeStrings===!1);this.decodeStrings=!$e,this.defaultEncoding=re&&re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=B.bind(void 0,fe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,A(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!re||re.emitClose!==!1,this.autoDestroy=!re||re.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[j]=[]}function A(re){re.buffered=[],re.bufferedIndex=0,re.allBuffers=!0,re.allNoop=!0}I.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},o(I.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function N(re){let fe=this instanceof Tf();if(!fe&&!a(N,this))return new N(re);this._writableState=new I(re,this,fe),re&&(typeof re.write=="function"&&(this._write=re.write),typeof re.writev=="function"&&(this._writev=re.writev),typeof re.destroy=="function"&&(this._destroy=re.destroy),typeof re.final=="function"&&(this._final=re.final),typeof re.construct=="function"&&(this._construct=re.construct),re.signal&&v(re.signal,this)),h.call(this,re),g.construct(this,()=>{let ve=this._writableState;ve.writing||ie(this,ve),oe(this,ve)})}o(N,f,{__proto__:null,value:function(re){return a(this,re)?!0:this!==N?!1:re&&re._writableState instanceof I}}),N.prototype.pipe=function(){R(this,new S)};function F(re,fe,ve,$e){let Ce=re._writableState;if(typeof ve=="function")$e=ve,ve=Ce.defaultEncoding;else{if(!ve)ve=Ce.defaultEncoding;else if(ve!=="buffer"&&!m.isEncoding(ve))throw new P(ve);typeof $e!="function"&&($e=O)}if(fe===null)throw new $;if(!Ce.objectMode)if(typeof fe=="string")Ce.decodeStrings!==!1&&(fe=m.from(fe,ve),ve="buffer");else if(fe instanceof m)ve="buffer";else if(h._isUint8Array(fe))fe=h._uint8ArrayToBuffer(fe),ve="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],fe);let be;return Ce.ending?be=new M:Ce.destroyed&&(be=new _("write")),be?(n.nextTick($e,be),R(re,be,!0),be):(Ce.pendingcb++,K(re,Ce,fe,ve,$e))}N.prototype.write=function(re,fe,ve){return F(this,re,fe,ve)===!0},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){let re=this._writableState;re.corked&&(re.corked--,re.writing||ie(this,re))},N.prototype.setDefaultEncoding=function(re){if(typeof re=="string"&&(re=c(re)),!m.isEncoding(re))throw new P(re);return this._writableState.defaultEncoding=re,this};function K(re,fe,ve,$e,Ce){let be=fe.objectMode?1:ve.length;fe.length+=be;let Se=fe.lengthve.bufferedIndex&&ie(re,ve),$e?ve.afterWriteTickInfo!==null&&ve.afterWriteTickInfo.cb===Ce?ve.afterWriteTickInfo.count++:(ve.afterWriteTickInfo={count:1,cb:Ce,stream:re,state:ve},n.nextTick(U,ve.afterWriteTickInfo)):Y(re,ve,1,Ce))}function U({stream:re,state:fe,count:ve,cb:$e}){return fe.afterWriteTickInfo=null,Y(re,fe,ve,$e)}function Y(re,fe,ve,$e){for(!fe.ending&&!re.destroyed&&fe.length===0&&fe.needDrain&&(fe.needDrain=!1,re.emit("drain"));ve-- >0;)fe.pendingcb--,$e();fe.destroyed&&ee(fe),oe(re,fe)}function ee(re){if(re.writing)return;for(let Ce=re.bufferedIndex;Ce1&&re._writev){fe.pendingcb-=be-1;let we=fe.allNoop?O:ye=>{for(let Oe=Se;Oe256?(ve.splice(0,Se),fe.bufferedIndex=0):fe.bufferedIndex=Se}fe.bufferProcessing=!1}N.prototype._write=function(re,fe,ve){if(this._writev)this._writev([{chunk:re,encoding:fe}],ve);else throw new C("_write()")},N.prototype._writev=null,N.prototype.end=function(re,fe,ve){let $e=this._writableState;typeof re=="function"?(ve=re,re=null,fe=null):typeof fe=="function"&&(ve=fe,fe=null);let Ce;if(re!=null){let be=F(this,re,fe);be instanceof i&&(Ce=be)}return $e.corked&&($e.corked=1,this.uncork()),Ce||(!$e.errored&&!$e.ending?($e.ending=!0,oe(this,$e,!0),$e.ended=!0):$e.finished?Ce=new E("end"):$e.destroyed&&(Ce=new _("end"))),typeof ve=="function"&&(Ce||$e.finished?n.nextTick(ve,Ce):$e[j].push(ve)),this};function Z(re){return re.ending&&!re.destroyed&&re.constructed&&re.length===0&&!re.errored&&re.buffered.length===0&&!re.finished&&!re.writing&&!re.errorEmitted&&!re.closeEmitted}function X(re,fe){let ve=!1;function $e(Ce){if(ve){R(re,Ce??k());return}if(ve=!0,fe.pendingcb--,Ce){let be=fe[j].splice(0);for(let Se=0;Se{Z(Ce)?le($e,Ce):Ce.pendingcb--},re,fe)):Z(fe)&&(fe.pendingcb++,le(re,fe))))}function le(re,fe){fe.pendingcb--,fe.finished=!0;let ve=fe[j].splice(0);for(let $e=0;$e{Zt(),Jt(),Qt();var n=Fg(),r=(ko(),Si(_o)),{isReadable:i,isWritable:a,isIterable:o,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=Bf(),f=yh(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:m}}=Gs(),{destroyer:g}=py(),v=Tf(),y=mE(),{createDeferredPromise:w}=Mf(),b=cce(),C=globalThis.Blob||r.Blob,k=typeof C<"u"?function(P){return P instanceof C}:function(P){return!1},S=globalThis.AbortController||BF().AbortController,{FunctionPrototypeCall:_}=qa(),E=class extends v{constructor(P){super(P),(P==null?void 0:P.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(P==null?void 0:P.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function P(R,O){if(u(R))return R;if(l(R))return M({readable:R});if(c(R))return M({writable:R});if(s(R))return M({writable:!1,readable:!1});if(typeof R=="function"){let{value:I,write:A,final:N,destroy:F}=$(R);if(o(I))return b(E,I,{objectMode:!0,write:A,final:N,destroy:F});let K=I==null?void 0:I.then;if(typeof K=="function"){let L,V=_(K,I,B=>{if(B!=null)throw new m("nully","body",B)},B=>{g(L,B)});return L=new E({objectMode:!0,readable:!1,write:A,final(B){N(async()=>{try{await V,n.nextTick(B,null)}catch(U){n.nextTick(B,U)}})},destroy:F})}throw new m("Iterable, AsyncIterable or AsyncFunction",O,I)}if(k(R))return P(R.arrayBuffer());if(o(R))return b(E,R,{objectMode:!0,writable:!1});if(typeof(R==null?void 0:R.writable)=="object"||typeof(R==null?void 0:R.readable)=="object"){let I=R!=null&&R.readable?l(R==null?void 0:R.readable)?R==null?void 0:R.readable:P(R.readable):void 0,A=R!=null&&R.writable?c(R==null?void 0:R.writable)?R==null?void 0:R.writable:P(R.writable):void 0;return M({readable:I,writable:A})}let j=R==null?void 0:R.then;if(typeof j=="function"){let I;return _(j,R,A=>{A!=null&&I.push(A),I.push(null)},A=>{g(I,A)}),I=new E({objectMode:!0,writable:!1,read(){}})}throw new h(O,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)};function $(P){let{promise:R,resolve:O}=w(),j=new S,I=j.signal;return{value:P(async function*(){for(;;){let A=R;R=null;let{chunk:N,done:F,cb:K}=await A;if(n.nextTick(K),F)return;if(I.aborted)throw new p(void 0,{cause:I.reason});({promise:R,resolve:O}=w()),yield N}}(),{signal:I}),write(A,N,F){let K=O;O=null,K({chunk:A,done:!1,cb:F})},final(A){let N=O;O=null,N({done:!0,cb:A})},destroy(A,N){j.abort(),N(A)}}}function M(P){let R=P.readable&&typeof P.readable.read!="function"?y.wrap(P.readable):P.readable,O=P.writable,j=!!i(R),I=!!a(O),A,N,F,K,L;function V(B){let U=K;K=null,U?U(B):B&&L.destroy(B)}return L=new E({readableObjectMode:!!(R!=null&&R.readableObjectMode),writableObjectMode:!!(O!=null&&O.writableObjectMode),readable:j,writable:I}),I&&(f(O,B=>{I=!1,B&&g(R,B),V(B)}),L._write=function(B,U,Y){O.write(B,U)?Y():A=Y},L._final=function(B){O.end(),N=B},O.on("drain",function(){if(A){let B=A;A=null,B()}}),O.on("finish",function(){if(N){let B=N;N=null,B()}})),j&&(f(R,B=>{j=!1,B&&g(R,B),V(B)}),R.on("readable",function(){if(F){let B=F;F=null,B()}}),R.on("end",function(){L.push(null)}),L._read=function(){for(;;){let B=R.read();if(B===null){F=L._read;return}if(!L.push(B))return}}),L._destroy=function(B,U){!B&&K!==null&&(B=new p),F=null,A=null,N=null,K===null?U(B):(K=U,g(O,B),g(R,B))},L}}),Tf=un((e,t)=>{Zt(),Jt(),Qt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=qa();t.exports=l;var o=mE(),s=uce();a(l.prototype,o.prototype),a(l,o);{let p=i(s.prototype);for(let h=0;h{Zt(),Jt(),Qt();var{ObjectSetPrototypeOf:n,Symbol:r}=qa();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Gs().codes,a=Tf(),{getHighWaterMark:o}=HF();n(l.prototype,a.prototype),n(l,a);var s=r("kCallback");function l(f){if(!(this instanceof l))return new l(f);let p=f?o(this,f,"readableHighWaterMark",!0):null;p===0&&(f={...f,highWaterMark:null,readableHighWaterMark:p,writableHighWaterMark:f.writableHighWaterMark||0}),a.call(this,f),this._readableState.sync=!1,this[s]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function c(f){typeof this._flush=="function"&&!this.destroyed?this._flush((p,h)=>{if(p){f?f(p):this.destroy(p);return}h!=null&&this.push(h),this.push(null),f&&f()}):(this.push(null),f&&f())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(f,p,h){throw new i("_transform()")},l.prototype._write=function(f,p,h){let m=this._readableState,g=this._writableState,v=m.length;this._transform(f,p,(y,w)=>{if(y){h(y);return}w!=null&&this.push(w),g.ended||v===m.length||m.length{Zt(),Jt(),Qt();var{ObjectSetPrototypeOf:n}=qa();t.exports=i;var r=dce();n(i.prototype,r.prototype),n(i,r);function i(a){if(!(this instanceof i))return new i(a);r.call(this,a)}i.prototype._transform=function(a,o,s){s(null,a)}}),VF=un((e,t)=>{Zt(),Jt(),Qt();var n=Fg(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:a}=qa(),o=yh(),{once:s}=Mf(),l=py(),c=Tf(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=Gs(),{validateFunction:y,validateAbortSignal:w}=fE(),{isIterable:b,isReadable:C,isReadableNodeStream:k,isNodeStream:S,isTransformStream:_,isWebStream:E,isReadableStream:$,isReadableEnded:M}=Bf(),P=globalThis.AbortController||BF().AbortController,R,O;function j(U,Y,ee){let ie=!1;U.on("close",()=>{ie=!0});let Z=o(U,{readable:Y,writable:ee},X=>{ie=!X});return{destroy:X=>{ie||(ie=!0,l.destroyer(U,X||new m("pipe")))},cleanup:Z}}function I(U){return y(U[U.length-1],"streams[stream.length - 1]"),U.pop()}function A(U){if(b(U))return U;if(k(U))return N(U);throw new f("val",["Readable","Iterable","AsyncIterable"],U)}async function*N(U){O||(O=mE()),yield*O.prototype[a].call(U)}async function F(U,Y,ee,{end:ie}){let Z,X=null,ae=ce=>{if(ce&&(Z=ce),X){let pe=X;X=null,pe()}},oe=()=>new i((ce,pe)=>{Z?pe(Z):X=()=>{Z?pe(Z):ce()}});Y.on("drain",ae);let le=o(Y,{readable:!1},ae);try{Y.writableNeedDrain&&await oe();for await(let ce of U)Y.write(ce)||await oe();ie&&Y.end(),await oe(),ee()}catch(ce){ee(Z!==ce?u(Z,ce):ce)}finally{le(),Y.off("drain",ae)}}async function K(U,Y,ee,{end:ie}){_(Y)&&(Y=Y.writable);let Z=Y.getWriter();try{for await(let X of U)await Z.ready,Z.write(X).catch(()=>{});await Z.ready,ie&&await Z.close(),ee()}catch(X){try{await Z.abort(X),ee(X)}catch(ae){ee(ae)}}}function L(...U){return V(U,s(I(U)))}function V(U,Y,ee){if(U.length===1&&r(U[0])&&(U=U[0]),U.length<2)throw new h("streams");let ie=new P,Z=ie.signal,X=ee==null?void 0:ee.signal,ae=[];w(X,"options.signal");function oe(){fe(new v)}X==null||X.addEventListener("abort",oe);let le,ce,pe=[],me=0;function re(be){fe(be,--me===0)}function fe(be,Se){if(be&&(!le||le.code==="ERR_STREAM_PREMATURE_CLOSE")&&(le=be),!(!le&&!Se)){for(;pe.length;)pe.shift()(le);X==null||X.removeEventListener("abort",oe),ie.abort(),Se&&(le||ae.forEach(we=>we()),n.nextTick(Y,le,ce))}}let ve;for(let be=0;be0,ye=we||(ee==null?void 0:ee.end)!==!1,Oe=be===U.length-1;if(S(Se)){let z=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&re(H)};if(ye){let{destroy:H,cleanup:G}=j(Se,we,se);pe.push(H),C(Se)&&Oe&&ae.push(G)}Se.on("error",z),C(Se)&&Oe&&ae.push(()=>{Se.removeListener("error",z)})}if(be===0)if(typeof Se=="function"){if(ve=Se({signal:Z}),!b(ve))throw new p("Iterable, AsyncIterable or Stream","source",ve)}else b(Se)||k(Se)||_(Se)?ve=Se:ve=c.from(Se);else if(typeof Se=="function"){if(_(ve)){var $e;ve=A(($e=ve)===null||$e===void 0?void 0:$e.readable)}else ve=A(ve);if(ve=Se(ve,{signal:Z}),we){if(!b(ve,!0))throw new p("AsyncIterable",`transform[${be-1}]`,ve)}else{var Ce;R||(R=fce());let z=new R({objectMode:!0}),H=(Ce=ve)===null||Ce===void 0?void 0:Ce.then;if(typeof H=="function")me++,H.call(ve,xe=>{ce=xe,xe!=null&&z.write(xe),ye&&z.end(),n.nextTick(re)},xe=>{z.destroy(xe),n.nextTick(re,xe)});else if(b(ve,!0))me++,F(ve,z,re,{end:ye});else if($(ve)||_(ve)){let xe=ve.readable||ve;me++,F(xe,z,re,{end:ye})}else throw new p("AsyncIterable or Promise","destination",ve);ve=z;let{destroy:G,cleanup:de}=j(ve,!1,!0);pe.push(G),Oe&&ae.push(de)}}else if(S(Se)){if(k(ve)){me+=2;let z=B(ve,Se,re,{end:ye});C(Se)&&Oe&&ae.push(z)}else if(_(ve)||$(ve)){let z=ve.readable||ve;me++,F(z,Se,re,{end:ye})}else if(b(ve))me++,F(ve,Se,re,{end:ye});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ve);ve=Se}else if(E(Se)){if(k(ve))me++,K(A(ve),Se,re,{end:ye});else if($(ve)||b(ve))me++,K(ve,Se,re,{end:ye});else if(_(ve))me++,K(ve.readable,Se,re,{end:ye});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ve);ve=Se}else ve=c.from(Se)}return(Z!=null&&Z.aborted||X!=null&&X.aborted)&&n.nextTick(oe),ve}function B(U,Y,ee,{end:ie}){let Z=!1;if(Y.on("close",()=>{Z||ee(new g)}),U.pipe(Y,{end:!1}),ie){let X=function(){Z=!0,Y.end()};M(U)?n.nextTick(X):U.once("end",X)}else ee();return o(U,{readable:!0,writable:!1},X=>{let ae=U._readableState;X&&X.code==="ERR_STREAM_PREMATURE_CLOSE"&&ae&&ae.ended&&!ae.errored&&!ae.errorEmitted?U.once("end",ee).once("error",ee):ee(X)}),o(Y,{readable:!1,writable:!0},ee)}t.exports={pipelineImpl:V,pipeline:L}}),pce=un((e,t)=>{Zt(),Jt(),Qt();var{pipeline:n}=VF(),r=Tf(),{destroyer:i}=py(),{isNodeStream:a,isReadable:o,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:f}=Bf(),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:m}}=Gs(),g=yh();t.exports=function(...v){if(v.length===0)throw new m("streams");if(v.length===1)return r.from(v[0]);let y=[...v];if(typeof v[0]=="function"&&(v[0]=r.from(v[0])),typeof v[v.length-1]=="function"){let R=v.length-1;v[R]=r.from(v[R])}for(let R=0;R0&&!(s(v[R])||u(v[R])||c(v[R])))throw new h(`streams[${R}]`,y[R],"must be writable")}let w,b,C,k,S;function _(R){let O=k;k=null,O?O(R):R?S.destroy(R):!P&&!M&&S.destroy()}let E=v[0],$=n(v,_),M=!!(s(E)||u(E)||c(E)),P=!!(o($)||f($)||c($));if(S=new r({writableObjectMode:!!(E!=null&&E.writableObjectMode),readableObjectMode:!!($!=null&&$.writableObjectMode),writable:M,readable:P}),M){if(a(E))S._write=function(O,j,I){E.write(O,j)?I():w=I},S._final=function(O){E.end(),b=O},E.on("drain",function(){if(w){let O=w;w=null,O()}});else if(l(E)){let O=(c(E)?E.writable:E).getWriter();S._write=async function(j,I,A){try{await O.ready,O.write(j).catch(()=>{}),A()}catch(N){A(N)}},S._final=async function(j){try{await O.ready,O.close().catch(()=>{}),b=j}catch(I){j(I)}}}let R=c($)?$.readable:$;g(R,()=>{if(b){let O=b;b=null,O()}})}if(P){if(a($))$.on("readable",function(){if(C){let R=C;C=null,R()}}),$.on("end",function(){S.push(null)}),S._read=function(){for(;;){let R=$.read();if(R===null){C=S._read;return}if(!S.push(R))return}};else if(l($)){let R=(c($)?$.readable:$).getReader();S._read=async function(){for(;;)try{let{value:O,done:j}=await R.read();if(!S.push(O))return;if(j){S.push(null);return}}catch{return}}}}return S._destroy=function(R,O){!R&&k!==null&&(R=new p),C=null,w=null,b=null,k===null?O(R):(k=O,a($)&&i($,R))},S}}),q$e=un((e,t)=>{Zt(),Jt(),Qt();var n=globalThis.AbortController||BF().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=Gs(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=fE(),f=qa().Symbol("kWeak"),{finished:p}=yh(),h=pce(),{addAbortSignalNoValidate:m}=pE(),{isWritable:g,isNodeStream:v}=Bf(),{ArrayPrototypePush:y,MathFloor:w,Number:b,NumberIsNaN:C,Promise:k,PromiseReject:S,PromisePrototypeThen:_,Symbol:E}=qa(),$=E("kEmpty"),M=E("kEof");function P(ie,Z){if(Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal"),v(ie)&&!g(ie))throw new r("stream",ie,"must be writable");let X=h(this,ie);return Z!=null&&Z.signal&&m(Z.signal,X),X}function R(ie,Z){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal");let X=1;return(Z==null?void 0:Z.concurrency)!=null&&(X=w(Z.concurrency)),c(X,"concurrency",1),(async function*(){var ae,oe;let le=new n,ce=this,pe=[],me=le.signal,re={signal:me},fe=()=>le.abort();Z!=null&&(ae=Z.signal)!==null&&ae!==void 0&&ae.aborted&&fe(),Z==null||(oe=Z.signal)===null||oe===void 0||oe.addEventListener("abort",fe);let ve,$e,Ce=!1;function be(){Ce=!0}async function Se(){try{for await(let ye of ce){var we;if(Ce)return;if(me.aborted)throw new s;try{ye=ie(ye,re)}catch(Oe){ye=S(Oe)}ye!==$&&(typeof((we=ye)===null||we===void 0?void 0:we.catch)=="function"&&ye.catch(be),pe.push(ye),ve&&(ve(),ve=null),!Ce&&pe.length&&pe.length>=X&&await new k(Oe=>{$e=Oe}))}pe.push(M)}catch(ye){let Oe=S(ye);_(Oe,void 0,be),pe.push(Oe)}finally{var se;Ce=!0,ve&&(ve(),ve=null),Z==null||(se=Z.signal)===null||se===void 0||se.removeEventListener("abort",fe)}}Se();try{for(;;){for(;pe.length>0;){let we=await pe[0];if(we===M)return;if(me.aborted)throw new s;we!==$&&(yield we),pe.shift(),$e&&($e(),$e=null)}await new k(we=>{ve=we})}}finally{le.abort(),Ce=!0,$e&&($e(),$e=null)}}).call(this)}function O(ie=void 0){return ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal"),(async function*(){let Z=0;for await(let ae of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s({cause:ie.signal.reason});yield[Z++,ae]}}).call(this)}async function j(ie,Z=void 0){for await(let X of F.call(this,ie,Z))return!0;return!1}async function I(ie,Z=void 0){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);return!await j.call(this,async(...X)=>!await ie(...X),Z)}async function A(ie,Z){for await(let X of F.call(this,ie,Z))return X}async function N(ie,Z){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);async function X(ae,oe){return await ie(ae,oe),$}for await(let ae of R.call(this,X,Z));}function F(ie,Z){if(typeof ie!="function")throw new i("fn",["Function","AsyncFunction"],ie);async function X(ae,oe){return await ie(ae,oe)?ae:$}return R.call(this,X,Z)}var K=class extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function L(ie,Z,X){var ae;if(typeof ie!="function")throw new i("reducer",["Function","AsyncFunction"],ie);X!=null&&u(X,"options"),(X==null?void 0:X.signal)!=null&&l(X.signal,"options.signal");let oe=arguments.length>1;if(X!=null&&(ae=X.signal)!==null&&ae!==void 0&&ae.aborted){let re=new s(void 0,{cause:X.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(re)),re}let le=new n,ce=le.signal;if(X!=null&&X.signal){let re={once:!0,[f]:this};X.signal.addEventListener("abort",()=>le.abort(),re)}let pe=!1;try{for await(let re of this){var me;if(pe=!0,X!=null&&(me=X.signal)!==null&&me!==void 0&&me.aborted)throw new s;oe?Z=await ie(Z,re,{signal:ce}):(Z=re,oe=!0)}if(!pe&&!oe)throw new K}finally{le.abort()}return Z}async function V(ie){ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal");let Z=[];for await(let ae of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s(void 0,{cause:ie.signal.reason});y(Z,ae)}return Z}function B(ie,Z){let X=R.call(this,ie,Z);return(async function*(){for await(let ae of X)yield*ae}).call(this)}function U(ie){if(ie=b(ie),C(ie))return 0;if(ie<0)throw new o("number",">= 0",ie);return ie}function Y(ie,Z=void 0){return Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal"),ie=U(ie),(async function*(){var X;if(Z!=null&&(X=Z.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let oe of this){var ae;if(Z!=null&&(ae=Z.signal)!==null&&ae!==void 0&&ae.aborted)throw new s;ie--<=0&&(yield oe)}}).call(this)}function ee(ie,Z=void 0){return Z!=null&&u(Z,"options"),(Z==null?void 0:Z.signal)!=null&&l(Z.signal,"options.signal"),ie=U(ie),(async function*(){var X;if(Z!=null&&(X=Z.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let oe of this){var ae;if(Z!=null&&(ae=Z.signal)!==null&&ae!==void 0&&ae.aborted)throw new s;if(ie-- >0)yield oe;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:O,drop:Y,filter:F,flatMap:B,map:R,take:ee,compose:P},t.exports.promiseReturningOperators={every:I,forEach:N,reduce:L,toArray:V,some:j,find:A}}),hce=un((e,t)=>{Zt(),Jt(),Qt();var{ArrayPrototypePop:n,Promise:r}=qa(),{isIterable:i,isNodeStream:a,isWebStream:o}=Bf(),{pipelineImpl:s}=VF(),{finished:l}=yh();mce();function c(...u){return new r((f,p)=>{let h,m,g=u[u.length-1];if(g&&typeof g=="object"&&!a(g)&&!i(g)&&!o(g)){let v=n(u);h=v.signal,m=v.end}s(u,(v,y)=>{v?p(v):f(y)},{signal:h,end:m})})}t.exports={finished:l,pipeline:c}}),mce=un((e,t)=>{Zt(),Jt(),Qt();var{Buffer:n}=(ko(),Si(_o)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:a}=qa(),{promisify:{custom:o}}=Mf(),{streamReturningOperators:s,promiseReturningOperators:l}=q$e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Gs(),u=pce(),{pipeline:f}=VF(),{destroyer:p}=py(),h=yh(),m=hce(),g=Bf(),v=t.exports=zF().Stream;v.isDisturbed=g.isDisturbed,v.isErrored=g.isErrored,v.isReadable=g.isReadable,v.Readable=mE();for(let w of i(s)){let b=function(...k){if(new.target)throw c();return v.Readable.from(a(C,this,k))},C=s[w];r(b,"name",{__proto__:null,value:C.name}),r(b,"length",{__proto__:null,value:C.length}),r(v.Readable.prototype,w,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(let w of i(l)){let b=function(...k){if(new.target)throw c();return a(C,this,k)},C=l[w];r(b,"name",{__proto__:null,value:C.name}),r(b,"length",{__proto__:null,value:C.length}),r(v.Readable.prototype,w,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}v.Writable=uce(),v.Duplex=Tf(),v.Transform=dce(),v.PassThrough=fce(),v.pipeline=f;var{addAbortSignal:y}=pE();v.addAbortSignal=y,v.finished=h,v.destroy=p,v.compose=u,r(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(f,o,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(h,o,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(w){return w instanceof Uint8Array},v._uint8ArrayToBuffer=function(w){return n.from(w.buffer,w.byteOffset,w.byteLength)}}),Bg=un((e,t)=>{Zt(),Jt(),Qt();var n=mce(),r=hce(),i=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=i,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports}),K$e=un((e,t)=>{Zt(),Jt(),Qt(),typeof Object.create=="function"?t.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,r){if(r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}}}),G$e=un((e,t)=>{Zt(),Jt(),Qt();var{Buffer:n}=(ko(),Si(_o)),r=Symbol.for("BufferList");function i(a){if(!(this instanceof i))return new i(a);i._init.call(this,a)}i._init=function(a){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,a&&this.append(a)},i.prototype._new=function(a){return new i(a)},i.prototype._offset=function(a){if(a===0)return[0,0];let o=0;for(let s=0;sthis.length||a<0)return;let o=this._offset(a);return this._bufs[o[0]][o[1]]},i.prototype.slice=function(a,o){return typeof a=="number"&&a<0&&(a+=this.length),typeof o=="number"&&o<0&&(o+=this.length),this.copy(null,0,a,o)},i.prototype.copy=function(a,o,s,l){if((typeof s!="number"||s<0)&&(s=0),(typeof l!="number"||l>this.length)&&(l=this.length),s>=this.length||l<=0)return a||n.alloc(0);let c=!!a,u=this._offset(s),f=l-s,p=f,h=c&&o||0,m=u[1];if(s===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let g=0;gv)this._bufs[g].copy(a,h,m),h+=v;else{this._bufs[g].copy(a,h,m,m+p),h+=v;break}p-=v,m&&(m=0)}return a.length>h?a.slice(0,h):a},i.prototype.shallowSlice=function(a,o){if(a=a||0,o=typeof o!="number"?this.length:o,a<0&&(a+=this.length),o<0&&(o+=this.length),a===o)return this._new();let s=this._offset(a),l=this._offset(o),c=this._bufs.slice(s[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),s[1]!==0&&(c[0]=c[0].slice(s[1])),this._new(c)},i.prototype.toString=function(a,o,s){return this.slice(o,s).toString(a)},i.prototype.consume=function(a){if(a=Math.trunc(a),Number.isNaN(a)||a<=0)return this;for(;this._bufs.length;)if(a>=this._bufs[0].length)a-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(a),this.length-=a;break}return this},i.prototype.duplicate=function(){let a=this._new();for(let o=0;othis.length?this.length:o;let l=this._offset(o),c=l[0],u=l[1];for(;c=a.length){let p=f.indexOf(a,u);if(p!==-1)return this._reverseOffset([c,p]);u=f.length-a.length+1}else{let p=this._reverseOffset([c,u]);if(this._match(p,a))return p;u++}u=0}return-1},i.prototype._match=function(a,o){if(this.length-a{Zt(),Jt(),Qt();var n=Bg().Duplex,r=K$e(),i=G$e();function a(o){if(!(this instanceof a))return new a(o);if(typeof o=="function"){this._callback=o;let s=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",s)}),this.on("unpipe",function(l){l.removeListener("error",s)}),o=null}i._init.call(this,o),n.call(this)}r(a,n),Object.assign(a.prototype,i.prototype),a.prototype._new=function(o){return new a(o)},a.prototype._write=function(o,s,l){this._appendBuffer(o),typeof l=="function"&&l()},a.prototype._read=function(o){if(!this.length)return this.push(null);o=Math.min(o,this.length),this.push(this.slice(0,o)),this.consume(o)},a.prototype.end=function(o){n.prototype.end.call(this,o),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(o,s){this._bufs.length=0,this.length=0,s(o)},a.prototype._isBufferList=function(o){return o instanceof a||o instanceof i||a.isBufferList(o)},a.isBufferList=i.isBufferList,t.exports=a,t.exports.BufferListStream=a,t.exports.BufferList=i}),X$e=un((e,t)=>{Zt(),Jt(),Qt();var n=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};t.exports=n}),gce=un((e,t)=>{Zt(),Jt(),Qt();var n=t.exports,{Buffer:r}=(ko(),Si(_o));n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},n.requiredHeaderFlagsErrors={};for(let a in n.requiredHeaderFlags){let o=n.requiredHeaderFlags[a];n.requiredHeaderFlagsErrors[a]="Invalid header flag bits, must be 0x"+o.toString(16)+" for "+n.types[a]+" packet"}n.codes={};for(let a in n.types){let o=n.types[a];n.codes[o]=a}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=r.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=r.from([n.codes.connack<[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[a]<r.from([a])),n.EMPTY={pingreq:r.from([n.codes.pingreq<<4,0]),pingresp:r.from([n.codes.pingresp<<4,0]),disconnect:r.from([n.codes.disconnect<<4,0])},n.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},n.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},n.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},n.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),Z$e=un((e,t)=>{Zt(),Jt(),Qt();var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(p,h){h=h||{};var m=typeof p;if(m==="string"&&p.length>0)return l(p);if(m==="number"&&isFinite(p))return h.long?u(p):c(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function l(p){if(p=String(p),!(p.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(h){var m=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*a;case"hours":case"hour":case"hrs":case"hr":case"h":return m*i;case"minutes":case"minute":case"mins":case"min":case"m":return m*r;case"seconds":case"second":case"secs":case"sec":case"s":return m*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function c(p){var h=Math.abs(p);return h>=a?Math.round(p/a)+"d":h>=i?Math.round(p/i)+"h":h>=r?Math.round(p/r)+"m":h>=n?Math.round(p/n)+"s":p+"ms"}function u(p){var h=Math.abs(p);return h>=a?f(p,h,a,"day"):h>=i?f(p,h,i,"hour"):h>=r?f(p,h,r,"minute"):h>=n?f(p,h,n,"second"):p+" ms"}function f(p,h,m,g){var v=h>=m*1.5;return Math.round(p/m)+" "+g+(v?"s":"")}}),Q$e=un((e,t)=>{Zt(),Jt(),Qt();function n(r){a.debug=a,a.default=a,a.coerce=f,a.disable=l,a.enable=s,a.enabled=c,a.humanize=Z$e(),a.destroy=p,Object.keys(r).forEach(h=>{a[h]=r[h]}),a.names=[],a.skips=[],a.formatters={};function i(h){let m=0;for(let g=0;g{if(E==="%%")return"%";_++;let M=a.formatters[$];if(typeof M=="function"){let P=b[_];E=M.call(C,P),b.splice(_,1),_--}return E}),a.formatArgs.call(C,b),(C.log||a.log).apply(C,b)}return w.namespace=h,w.useColors=a.useColors(),w.color=a.selectColor(h),w.extend=o,w.destroy=a.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==a.namespaces&&(v=a.namespaces,y=a.enabled(h)),y),set:b=>{g=b}}),typeof a.init=="function"&&a.init(w),w}function o(h,m){let g=a(this.namespace+(typeof m>"u"?":":m)+h);return g.log=this.log,g}function s(h){a.save(h),a.namespaces=h,a.names=[],a.skips=[];let m,g=(typeof h=="string"?h:"").split(/[\s,]+/),v=g.length;for(m=0;m"-"+m)].join(",");return a.enable(""),h}function c(h){if(h[h.length-1]==="*")return!0;let m,g;for(m=0,g=a.skips.length;m{Zt(),Jt(),Qt(),e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,f=0;l[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(u++,p==="%c"&&(f=u))}),l.splice(f,0,c)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function a(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof li<"u"&&"env"in li&&(l=li.env.DEBUG),l}function o(){try{return localStorage}catch{}}t.exports=Q$e()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),J$e=un((e,t)=>{Zt(),Jt(),Qt();var n=Y$e(),{EventEmitter:r}=(hy(),Si(Lg)),i=X$e(),a=gce(),o=Pf()("mqtt-packet:parser"),s=class kI extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof kI?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new kI().parser(c)}_resetState(){o("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new i,this.error=null,this._list=n(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),o("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,o("parse: state complete. _stateCounter is now: %d",this._stateCounter),o("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return o("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let c=this._list.readUInt8(0),u=c>>a.CMD_SHIFT;this.packet.cmd=a.types[u];let f=c&15,p=a.requiredHeaderFlags[u];return p!=null&&f!==p?this._emitError(new Error(a.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&a.RETAIN_MASK)!==0,this.packet.qos=c>>a.QOS_SHIFT&a.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&a.DUP_MASK)!==0,o("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),o("_parseLength %d",c.value),!!c}_parsePayload(){o("_parsePayload: payload %O",this._list);let c=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c=!0}return o("_parsePayload complete result: %s",c),c}_parseConnect(){o("_parseConnect");let c,u,f,p,h={},m=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=g,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(m.protocolVersion=this._list.readUInt8(this._pos),m.protocolVersion>=128&&(m.bridgeMode=!0,m.protocolVersion=m.protocolVersion-128),m.protocolVersion!==3&&m.protocolVersion!==4&&m.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));h.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,h.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,h.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),y=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT;if(h.will)m.will={},m.will.retain=v,m.will.qos=y;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(y)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(m.clean=(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK)!==0,this._pos++,m.keepalive=this._parseNum(),m.keepalive===-1)return this._emitError(new Error("Packet too short"));if(m.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(m.properties=b)}let w=this._parseString();if(w===null)return this._emitError(new Error("Packet too short"));if(m.clientId=w,o("_parseConnect: packet.clientId: %s",m.clientId),h.will){if(m.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(m.will.properties=b)}if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse will topic"));if(m.will.topic=c,o("_parseConnect: packet.will.topic: %s",m.will.topic),u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse will payload"));m.will.payload=u,o("_parseConnect: packet.will.paylaod: %s",m.will.payload)}if(h.username){if(p=this._parseString(),p===null)return this._emitError(new Error("Cannot parse username"));m.username=p,o("_parseConnect: packet.username: %s",m.username)}if(h.password){if(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));m.password=f}return this.settings=m,o("_parseConnect: complete"),m}_parseConnack(){o("_parseConnack");let c=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(c.sessionPresent=!!(u&a.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}o("_parseConnack: complete")}_parsePublish(){o("_parsePublish");let c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}c.payload=this._list.slice(this._pos,c.length),o("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){o("_parseSubscribe");let c=this.packet,u,f,p,h,m,g,v;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(c.properties=y)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(p=f&a.SUBSCRIBE_OPTIONS_QOS_MASK,p>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=(f>>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(f>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,h=f>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,h>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:p},this.settings.protocolVersion===5?(v.nl=g,v.rap=m,v.rh=h):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),o("_parseSubscribe: push subscription `%s` to subscription",v),c.subscriptions.push(v)}}}_parseSuback(){o("_parseSuback");let c=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&u!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(u)}}}_parseUnsubscribe(){o("_parseUnsubscribe");let c=this.packet;if(c.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!a.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!a.MQTT5_PUBREL_PUBCOMP_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}o("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)}else c.reasonCode=0;if(c.length>3){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}}return!0}_parseDisconnect(){let c=this.packet;if(o("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(c.reasonCode=this._parseByte(),a.MQTT5_DISCONNECT_CODES[c.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):c.reasonCode=0;let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}return o("_parseDisconnect result: true"),!0}_parseAuth(){o("_parseAuth");let c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(c.reasonCode=this._parseByte(),!a.MQTT5_AUTH_CODES[c.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let u=this._parseProperties();return Object.getOwnPropertyNames(u).length&&(c.properties=u),o("_parseAuth: result: true"),!0}_parseMessageId(){let c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(o("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){let u=this._parseNum(),f=u+this._pos;if(u===-1||f>this._list.length||f>this.packet.length)return null;let p=this._list.toString("utf8",this._pos,f);return this._pos+=u,o("_parseString: result: %s",p),p}_parseStringPair(){return o("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let c=this._parseNum(),u=c+this._pos;if(c===-1||u>this._list.length||u>this.packet.length)return null;let f=this._list.slice(this._pos,u);return this._pos+=c,o("_parseBuffer: result: %o",f),f}_parseNum(){if(this._list.length-this._pos<2)return-1;let c=this._list.readUInt16BE(this._pos);return this._pos+=2,o("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let c=this._list.readUInt32BE(this._pos);return this._pos+=4,o("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){o("_parseVarByteNum");let u=4,f=0,p=1,h=0,m=!1,g,v=this._pos?this._pos:0;for(;f=f&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=f),m?c?m={bytes:f,value:h}:m=h:m=!1,o("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos{Zt(),Jt(),Qt();var{Buffer:n}=(ko(),Si(_o)),r=65536,i={},a=n.isBuffer(n.from([1,2]).subarray(0,1));function o(u){let f=n.allocUnsafe(2);return f.writeUInt8(u>>8,0),f.writeUInt8(u&255,1),f}function s(){for(let u=0;u0&&(f=f|128),h.writeUInt8(f,p++);while(u>0&&p<4);return u>0&&(p=0),a?h.subarray(0,p):h.slice(0,p)}function c(u){let f=n.allocUnsafe(4);return f.writeUInt32BE(u,0),f}t.exports={cache:i,generateCache:s,generateNumber:o,genBufVariableByteInt:l,generate4ByteBuffer:c}}),t7e=un((e,t)=>{Zt(),Jt(),Qt(),typeof li>"u"||!li.version||li.version.indexOf("v0.")===0||li.version.indexOf("v1.")===0&&li.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=li;function n(r,i,a,o){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,l,c;switch(s){case 0:case 1:return li.nextTick(r);case 2:return li.nextTick(function(){r.call(null,i)});case 3:return li.nextTick(function(){r.call(null,i,a)});case 4:return li.nextTick(function(){r.call(null,i,a,o)});default:for(l=new Array(s-1),c=0;c{Zt(),Jt(),Qt();var n=gce(),{Buffer:r}=(ko(),Si(_o)),i=r.allocUnsafe(0),a=r.from([0]),o=e7e(),s=t7e().nextTick,l=Pf()("mqtt-packet:writeToStream"),c=o.cache,u=o.generateNumber,f=o.generateCache,p=o.genBufVariableByteInt,h=o.generate4ByteBuffer,m=N,g=!0;function v(Z,X,ae){switch(l("generate called"),X.cork&&(X.cork(),s(y,X)),g&&(g=!1,f()),l("generate: packet.cmd: %s",Z.cmd),Z.cmd){case"connect":return w(Z,X);case"connack":return b(Z,X,ae);case"publish":return C(Z,X,ae);case"puback":case"pubrec":case"pubrel":case"pubcomp":return k(Z,X,ae);case"subscribe":return S(Z,X,ae);case"suback":return _(Z,X,ae);case"unsubscribe":return E(Z,X,ae);case"unsuback":return $(Z,X,ae);case"pingreq":case"pingresp":return M(Z,X);case"disconnect":return P(Z,X,ae);case"auth":return R(Z,X,ae);default:return X.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===N},set(Z){Z?((!c||Object.keys(c).length===0)&&(g=!0),m=N):(g=!1,m=F)}});function y(Z){Z.uncork()}function w(Z,X,ae){let oe=Z||{},le=oe.protocolId||"MQTT",ce=oe.protocolVersion||4,pe=oe.will,me=oe.clean,re=oe.keepalive||0,fe=oe.clientId||"",ve=oe.username,$e=oe.password,Ce=oe.properties;me===void 0&&(me=!0);let be=0;if(!le||typeof le!="string"&&!r.isBuffer(le))return X.destroy(new Error("Invalid protocolId")),!1;if(be+=le.length+2,ce!==3&&ce!==4&&ce!==5)return X.destroy(new Error("Invalid protocol version")),!1;if(be+=1,(typeof fe=="string"||r.isBuffer(fe))&&(fe||ce>=4)&&(fe||me))be+=r.byteLength(fe)+2;else{if(ce<4)return X.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(me*1===0)return X.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof re!="number"||re<0||re>65535||re%1!==0)return X.destroy(new Error("Invalid keepalive")),!1;be+=2,be+=1;let Se,we;if(ce===5){if(Se=V(X,Ce),!Se)return!1;be+=Se.length}if(pe){if(typeof pe!="object")return X.destroy(new Error("Invalid will")),!1;if(!pe.topic||typeof pe.topic!="string")return X.destroy(new Error("Invalid will topic")),!1;if(be+=r.byteLength(pe.topic)+2,be+=2,pe.payload)if(pe.payload.length>=0)typeof pe.payload=="string"?be+=r.byteLength(pe.payload):be+=pe.payload.length;else return X.destroy(new Error("Invalid will payload")),!1;if(we={},ce===5){if(we=V(X,pe.properties),!we)return!1;be+=we.length}}let se=!1;if(ve!=null)if(ie(ve))se=!0,be+=r.byteLength(ve)+2;else return X.destroy(new Error("Invalid username")),!1;if($e!=null){if(!se)return X.destroy(new Error("Username is required to use password")),!1;if(ie($e))be+=ee($e)+2;else return X.destroy(new Error("Invalid password")),!1}X.write(n.CONNECT_HEADER),j(X,be),L(X,le),oe.bridgeMode&&(ce+=128),X.write(ce===131?n.VERSION131:ce===132?n.VERSION132:ce===4?n.VERSION4:ce===5?n.VERSION5:n.VERSION3);let ye=0;return ye|=ve!=null?n.USERNAME_MASK:0,ye|=$e!=null?n.PASSWORD_MASK:0,ye|=pe&&pe.retain?n.WILL_RETAIN_MASK:0,ye|=pe&&pe.qos?pe.qos<0&&m(X,fe),Ce==null||Ce.write(),l("publish: payload: %o",re),X.write(re)}function k(Z,X,ae){let oe=ae?ae.protocolVersion:4,le=Z||{},ce=le.cmd||"puback",pe=le.messageId,me=le.dup&&ce==="pubrel"?n.DUP_MASK:0,re=0,fe=le.reasonCode,ve=le.properties,$e=oe===5?3:2;if(ce==="pubrel"&&(re=1),typeof pe!="number")return X.destroy(new Error("Invalid messageId")),!1;let Ce=null;if(oe===5&&typeof ve=="object"){if(Ce=B(X,ve,ae,$e),!Ce)return!1;$e+=Ce.length}return X.write(n.ACKS[ce][re][me][0]),$e===3&&($e+=fe!==0?1:-1),j(X,$e),m(X,pe),oe===5&&$e!==2&&X.write(r.from([fe])),Ce!==null?Ce.write():$e===4&&X.write(r.from([0])),!0}function S(Z,X,ae){l("subscribe: packet: ");let oe=ae?ae.protocolVersion:4,le=Z||{},ce=le.dup?n.DUP_MASK:0,pe=le.messageId,me=le.subscriptions,re=le.properties,fe=0;if(typeof pe!="number")return X.destroy(new Error("Invalid messageId")),!1;fe+=2;let ve=null;if(oe===5){if(ve=V(X,re),!ve)return!1;fe+=ve.length}if(typeof me=="object"&&me.length)for(let Ce=0;Ce2)return X.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}fe+=r.byteLength(be)+2+1}else return X.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),X.write(n.SUBSCRIBE_HEADER[1][ce?1:0][0]),j(X,fe),m(X,pe),ve!==null&&ve.write();let $e=!0;for(let Ce of me){let be=Ce.topic,Se=Ce.qos,we=+Ce.nl,se=+Ce.rap,ye=Ce.rh,Oe;I(X,be),Oe=n.SUBSCRIBE_OPTIONS_QOS[Se],oe===5&&(Oe|=we?n.SUBSCRIBE_OPTIONS_NL:0,Oe|=se?n.SUBSCRIBE_OPTIONS_RAP:0,Oe|=ye?n.SUBSCRIBE_OPTIONS_RH[ye]:0),$e=X.write(r.from([Oe]))}return $e}function _(Z,X,ae){let oe=ae?ae.protocolVersion:4,le=Z||{},ce=le.messageId,pe=le.granted,me=le.properties,re=0;if(typeof ce!="number")return X.destroy(new Error("Invalid messageId")),!1;if(re+=2,typeof pe=="object"&&pe.length)for(let ve=0;ven.VARBYTEINT_MAX)return Z.destroy(new Error(`Invalid variable byte integer: ${X}`)),!1;let ae=O[X];return ae||(ae=p(X),X<16384&&(O[X]=ae)),l("writeVarByteInt: writing to stream: %o",ae),Z.write(ae)}function I(Z,X){let ae=r.byteLength(X);return m(Z,ae),l("writeString: %s",X),Z.write(X,"utf8")}function A(Z,X,ae){I(Z,X),I(Z,ae)}function N(Z,X){return l("writeNumberCached: number: %d",X),l("writeNumberCached: %o",c[X]),Z.write(c[X])}function F(Z,X){let ae=u(X);return l("writeNumberGenerated: %o",ae),Z.write(ae)}function K(Z,X){let ae=h(X);return l("write4ByteNumber: %o",ae),Z.write(ae)}function L(Z,X){typeof X=="string"?I(Z,X):X?(m(Z,X.length),Z.write(X)):m(Z,0)}function V(Z,X){if(typeof X!="object"||X.length!=null)return{length:1,write(){Y(Z,{},0)}};let ae=0;function oe(le,ce){let pe=n.propertiesTypes[le],me=0;switch(pe){case"byte":{if(typeof ce!="boolean")return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=2;break}case"int8":{if(typeof ce!="number"||ce<0||ce>255)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=2;break}case"binary":{if(ce&&ce===null)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=1+r.byteLength(ce)+2;break}case"int16":{if(typeof ce!="number"||ce<0||ce>65535)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=3;break}case"int32":{if(typeof ce!="number"||ce<0||ce>4294967295)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=5;break}case"var":{if(typeof ce!="number"||ce<0||ce>268435455)return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=1+r.byteLength(p(ce));break}case"string":{if(typeof ce!="string")return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=3+r.byteLength(ce.toString());break}case"pair":{if(typeof ce!="object")return Z.destroy(new Error(`Invalid ${le}: ${ce}`)),!1;me+=Object.getOwnPropertyNames(ce).reduce((re,fe)=>{let ve=ce[fe];return Array.isArray(ve)?re+=ve.reduce(($e,Ce)=>($e+=3+r.byteLength(fe.toString())+2+r.byteLength(Ce.toString()),$e),0):re+=3+r.byteLength(fe.toString())+2+r.byteLength(ce[fe].toString()),re},0);break}default:return Z.destroy(new Error(`Invalid property ${le}: ${ce}`)),!1}return me}if(X)for(let le in X){let ce=0,pe=0,me=X[le];if(Array.isArray(me))for(let re=0;rece;){let me=le.shift();if(me&&X[me])delete X[me],pe=V(Z,X);else return!1}return pe}function U(Z,X,ae){switch(n.propertiesTypes[X]){case"byte":{Z.write(r.from([n.properties[X]])),Z.write(r.from([+ae]));break}case"int8":{Z.write(r.from([n.properties[X]])),Z.write(r.from([ae]));break}case"binary":{Z.write(r.from([n.properties[X]])),L(Z,ae);break}case"int16":{Z.write(r.from([n.properties[X]])),m(Z,ae);break}case"int32":{Z.write(r.from([n.properties[X]])),K(Z,ae);break}case"var":{Z.write(r.from([n.properties[X]])),j(Z,ae);break}case"string":{Z.write(r.from([n.properties[X]])),I(Z,ae);break}case"pair":{Object.getOwnPropertyNames(ae).forEach(oe=>{let le=ae[oe];Array.isArray(le)?le.forEach(ce=>{Z.write(r.from([n.properties[X]])),A(Z,oe.toString(),ce.toString())}):(Z.write(r.from([n.properties[X]])),A(Z,oe.toString(),le.toString()))});break}default:return Z.destroy(new Error(`Invalid property ${X} value: ${ae}`)),!1}}function Y(Z,X,ae){j(Z,ae);for(let oe in X)if(Object.prototype.hasOwnProperty.call(X,oe)&&X[oe]!==null){let le=X[oe];if(Array.isArray(le))for(let ce=0;ce{Zt(),Jt(),Qt();var n=vce(),{EventEmitter:r}=(hy(),Si(Lg)),{Buffer:i}=(ko(),Si(_o));function a(s,l){let c=new o;return n(s,c,l),c.concat()}var o=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s=0,l=new Array(this._array.length),c=this._array,u=0,f;for(f=0;f{Zt(),Jt(),Qt(),e.parser=J$e().parser,e.generate=n7e(),e.writeToStream=vce()}),yce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let n=this.nextId++;return this.nextId===65536&&(this.nextId=1),n}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(n){return!0}deallocate(n){}clear(){}};e.default=t}),i7e=un((e,t)=>{Zt(),Jt(),Qt(),t.exports=r;function n(a){return a instanceof Sk?Sk.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function r(a){if(a=a||{},a.circles)return i(a);return a.proto?l:s;function o(c,u){for(var f=Object.keys(c),p=new Array(f.length),h=0;h{Zt(),Jt(),Qt(),t.exports=i7e()()}),o7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let i=r.split("/");for(let a=0;a{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bg(),n={objectMode:!0},r={clean:!0},i=class{constructor(a){this.options=a||{},this.options=Object.assign(Object.assign({},r),a),this._inflights=new Map}put(a,o){return this._inflights.set(a.messageId,a),o&&o(),this}createStream(){let a=new t.Readable(n),o=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{o.push(c)}),a._read=()=>{!s&&l{if(!s)return s=!0,setTimeout(()=>{a.emit("close")},0),a},a}del(a,o){let s=this._inflights.get(a.messageId);return s?(this._inflights.delete(a.messageId),o(null,s)):o&&o(new Error("missing packet")),this}get(a,o){let s=this._inflights.get(a.messageId);return s?o(null,s):o&&o(new Error("missing packet")),this}close(a){this.options.clean&&(this._inflights=null),a&&a()}};e.default=i}),s7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,i,a)=>{r.log("handlePublish: packet %o",i),a=typeof a<"u"?a:r.noop;let o=i.topic.toString(),s=i.payload,{qos:l}=i,{messageId:c}=i,{options:u}=r;if(r.options.protocolVersion===5){let f;if(i.properties&&(f=i.properties.topicAlias),typeof f<"u")if(o.length===0)if(f>0&&f<=65535){let p=r.topicAliasRecv.getTopicByAlias(f);if(p)o=p,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",o,f);else{r.log("handlePublish :: unregistered topic alias. alias: %d",f),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(o,f))r.log("handlePublish :: registered topic: %s - alias: %d",o,f);else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(r.log("handlePublish: qos %d",l),l){case 2:{u.customHandleAcks(o,s,i,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return r.emit("error",f);if(t.indexOf(p)===-1)return r.emit("error",new Error("Wrong reason code for pubrec"));p?r._sendPacket({cmd:"pubrec",messageId:c,reasonCode:p},a):r.incomingStore.put(i,()=>{r._sendPacket({cmd:"pubrec",messageId:c},a)})});break}case 1:{u.customHandleAcks(o,s,i,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return r.emit("error",f);if(t.indexOf(p)===-1)return r.emit("error",new Error("Wrong reason code for puback"));p||r.emit("message",o,s,i),r.handleMessage(i,h=>{if(h)return a&&a(h);r._sendPacket({cmd:"puback",messageId:c,reasonCode:p},a)})});break}case 0:r.emit("message",o,s,i),r.handleMessage(i,a);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),l7e=un((e,t)=>{t.exports={version:"5.10.3"}}),my=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class wce extends Error{constructor(i,a){super(i),this.code=a,Object.setPrototypeOf(this,wce.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,i,a=!1){var o;let s=[i];for(;;){let l=s[0],c=Object.getPrototypeOf(l);if(c!=null&&c.prototype)s.unshift(c);else break}for(let l of s)for(let c of Object.getOwnPropertyNames(l.prototype))(a||c!=="constructor")&&Object.defineProperty(r.prototype,c,(o=Object.getOwnPropertyDescriptor(l.prototype,c))!==null&&o!==void 0?o:Object.create(null))}e.applyMixin=n,e.nextTick=typeof(li==null?void 0:li.nextTick)=="function"?li.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=l7e().version}),gE=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=my();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var n=(r,i)=>{let{messageId:a}=i,o=i.cmd,s=null,l=r.outgoing[a]?r.outgoing[a].cb:null,c=null;if(!l){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",o),o){case"pubcomp":case"puback":{let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(a,()=>{l(c,i)})):r._removeOutgoingAndStoreMessage(a,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:a};let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(a,()=>{l(c,i)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[a],r.messageIdProvider.deallocate(a);let u=i.granted;for(let f=0;f{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[a],r._invokeStoreProcessingQueue(),l(c,i);break}case"unsuback":{delete r.outgoing[a],r.messageIdProvider.deallocate(a),r._invokeStoreProcessingQueue(),l(null,i);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),c7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=my(),n=gE(),r=(i,a)=>{let{options:o}=i,s=o.protocolVersion,l=s===5?a.reasonCode:a.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);i.emit("error",c);return}i.handleAuth(a,(c,u)=>{if(c){i.emit("error",c);return}if(l===24)i.reconnecting=!1,i._sendPacket(u);else{let f=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);i.emit("error",f)}})};e.default=r}),u7e=un(e=>{var h,m,g,v,y,w,b,C,k,S,_,E,$,M,P,R,O,j,I,A,N,F,K,L,V,B,EI,Y,ee,ie,Z,xce,ae,oe,le,pp,hp,$I,FC,LC,zi,MI,y2,be;Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,n=new Set,r=typeof li=="object"&&li?li:{},i=(Se,we,se,ye)=>{typeof r.emitWarning=="function"?r.emitWarning(Se,we,se,ye):console.error(`[${se}] ${we}: ${Se}`)},a=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof a>"u"){o=class{constructor(){Gr(this,"onabort");Gr(this,"_onabort",[]);Gr(this,"reason");Gr(this,"aborted",!1)}addEventListener(se,ye){this._onabort.push(ye)}},a=class{constructor(){Gr(this,"signal",new o);we()}abort(se){var ye,Oe;if(!this.signal.aborted){this.signal.reason=se,this.signal.aborted=!0;for(let z of this.signal._onabort)z(se);(Oe=(ye=this.signal).onabort)==null||Oe.call(ye,se)}}};let Se=((h=r.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1",we=()=>{Se&&(Se=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",we))}}var s=Se=>!n.has(Se),l=Se=>Se&&Se===Math.floor(Se)&&Se>0&&isFinite(Se),c=Se=>l(Se)?Se<=Math.pow(2,8)?Uint8Array:Se<=Math.pow(2,16)?Uint16Array:Se<=Math.pow(2,32)?Uint32Array:Se<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(Se){super(Se),this.fill(0)}},f=(m=class{constructor(we,se){Gr(this,"heap");Gr(this,"length");if(!Fe(m,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new se(we),this.length=0}static create(we){let se=c(we);if(!se)return[];xn(m,g,!0);let ye=new m(we,se);return xn(m,g,!1),ye}push(we){this.heap[this.length++]=we}pop(){return this.heap[--this.length]}},g=new WeakMap,Un(m,g,!1),m),p=(be=class{constructor(we){Un(this,B);Un(this,v);Un(this,y);Un(this,w);Un(this,b);Un(this,C);Gr(this,"ttl");Gr(this,"ttlResolution");Gr(this,"ttlAutopurge");Gr(this,"updateAgeOnGet");Gr(this,"updateAgeOnHas");Gr(this,"allowStale");Gr(this,"noDisposeOnSet");Gr(this,"noUpdateTTL");Gr(this,"maxEntrySize");Gr(this,"sizeCalculation");Gr(this,"noDeleteOnFetchRejection");Gr(this,"noDeleteOnStaleGet");Gr(this,"allowStaleOnFetchAbort");Gr(this,"allowStaleOnFetchRejection");Gr(this,"ignoreFetchAbort");Un(this,k);Un(this,S);Un(this,_);Un(this,E);Un(this,$);Un(this,M);Un(this,P);Un(this,R);Un(this,O);Un(this,j);Un(this,I);Un(this,A);Un(this,N);Un(this,F);Un(this,K);Un(this,L);Un(this,V);Un(this,Y,()=>{});Un(this,ee,()=>{});Un(this,ie,()=>{});Un(this,Z,()=>!1);Un(this,ae,we=>{});Un(this,oe,(we,se,ye)=>{});Un(this,le,(we,se,ye,Oe)=>{if(ye||Oe)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:se=0,ttl:ye,ttlResolution:Oe=1,ttlAutopurge:z,updateAgeOnGet:H,updateAgeOnHas:G,allowStale:de,dispose:xe,disposeAfter:he,noDisposeOnSet:Ue,noUpdateTTL:We,maxSize:ge=0,maxEntrySize:ze=0,sizeCalculation:Ve,fetchMethod:Be,noDeleteOnFetchRejection:Xe,noDeleteOnStaleGet:Ke,allowStaleOnFetchRejection:qe,allowStaleOnFetchAbort:Et,ignoreFetchAbort:ut}=we;if(se!==0&&!l(se))throw new TypeError("max option must be a nonnegative integer");let gt=se?c(se):Array;if(!gt)throw new Error("invalid max value: "+se);if(xn(this,v,se),xn(this,y,ge),this.maxEntrySize=ze||Fe(this,y),this.sizeCalculation=Ve,this.sizeCalculation){if(!Fe(this,y)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Be!==void 0&&typeof Be!="function")throw new TypeError("fetchMethod must be a function if specified");if(xn(this,C,Be),xn(this,L,!!Be),xn(this,_,new Map),xn(this,E,new Array(se).fill(void 0)),xn(this,$,new Array(se).fill(void 0)),xn(this,M,new gt(se)),xn(this,P,new gt(se)),xn(this,R,0),xn(this,O,0),xn(this,j,f.create(se)),xn(this,k,0),xn(this,S,0),typeof xe=="function"&&xn(this,w,xe),typeof he=="function"?(xn(this,b,he),xn(this,I,[])):(xn(this,b,void 0),xn(this,I,void 0)),xn(this,K,!!Fe(this,w)),xn(this,V,!!Fe(this,b)),this.noDisposeOnSet=!!Ue,this.noUpdateTTL=!!We,this.noDeleteOnFetchRejection=!!Xe,this.allowStaleOnFetchRejection=!!qe,this.allowStaleOnFetchAbort=!!Et,this.ignoreFetchAbort=!!ut,this.maxEntrySize!==0){if(Fe(this,y)!==0&&!l(Fe(this,y)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Dn(this,B,xce).call(this)}if(this.allowStale=!!de,this.noDeleteOnStaleGet=!!Ke,this.updateAgeOnGet=!!H,this.updateAgeOnHas=!!G,this.ttlResolution=l(Oe)||Oe===0?Oe:1,this.ttlAutopurge=!!z,this.ttl=ye||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Dn(this,B,EI).call(this)}if(Fe(this,v)===0&&this.ttl===0&&Fe(this,y)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Fe(this,v)&&!Fe(this,y)){let Qe="LRU_CACHE_UNBOUNDED";s(Qe)&&(n.add(Qe),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Qe,be))}}static unsafeExposeInternals(we){return{starts:Fe(we,N),ttls:Fe(we,F),sizes:Fe(we,A),keyMap:Fe(we,_),keyList:Fe(we,E),valList:Fe(we,$),next:Fe(we,M),prev:Fe(we,P),get head(){return Fe(we,R)},get tail(){return Fe(we,O)},free:Fe(we,j),isBackgroundFetch:se=>{var ye;return Dn(ye=we,B,zi).call(ye,se)},backgroundFetch:(se,ye,Oe,z)=>{var H;return Dn(H=we,B,LC).call(H,se,ye,Oe,z)},moveToTail:se=>{var ye;return Dn(ye=we,B,y2).call(ye,se)},indexes:se=>{var ye;return Dn(ye=we,B,pp).call(ye,se)},rindexes:se=>{var ye;return Dn(ye=we,B,hp).call(ye,se)},isStale:se=>{var ye;return Fe(ye=we,Z).call(ye,se)}}}get max(){return Fe(this,v)}get maxSize(){return Fe(this,y)}get calculatedSize(){return Fe(this,S)}get size(){return Fe(this,k)}get fetchMethod(){return Fe(this,C)}get dispose(){return Fe(this,w)}get disposeAfter(){return Fe(this,b)}getRemainingTTL(we){return Fe(this,_).has(we)?1/0:0}*entries(){for(let we of Dn(this,B,pp).call(this))Fe(this,$)[we]!==void 0&&Fe(this,E)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield[Fe(this,E)[we],Fe(this,$)[we]])}*rentries(){for(let we of Dn(this,B,hp).call(this))Fe(this,$)[we]!==void 0&&Fe(this,E)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield[Fe(this,E)[we],Fe(this,$)[we]])}*keys(){for(let we of Dn(this,B,pp).call(this)){let se=Fe(this,E)[we];se!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield se)}}*rkeys(){for(let we of Dn(this,B,hp).call(this)){let se=Fe(this,E)[we];se!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield se)}}*values(){for(let we of Dn(this,B,pp).call(this))Fe(this,$)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield Fe(this,$)[we])}*rvalues(){for(let we of Dn(this,B,hp).call(this))Fe(this,$)[we]!==void 0&&!Dn(this,B,zi).call(this,Fe(this,$)[we])&&(yield Fe(this,$)[we])}[Symbol.iterator](){return this.entries()}find(we,se={}){for(let ye of Dn(this,B,pp).call(this)){let Oe=Fe(this,$)[ye],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;if(z!==void 0&&we(z,Fe(this,E)[ye],this))return this.get(Fe(this,E)[ye],se)}}forEach(we,se=this){for(let ye of Dn(this,B,pp).call(this)){let Oe=Fe(this,$)[ye],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;z!==void 0&&we.call(se,z,Fe(this,E)[ye],this)}}rforEach(we,se=this){for(let ye of Dn(this,B,hp).call(this)){let Oe=Fe(this,$)[ye],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;z!==void 0&&we.call(se,z,Fe(this,E)[ye],this)}}purgeStale(){let we=!1;for(let se of Dn(this,B,hp).call(this,{allowStale:!0}))Fe(this,Z).call(this,se)&&(this.delete(Fe(this,E)[se]),we=!0);return we}dump(){let we=[];for(let se of Dn(this,B,pp).call(this,{allowStale:!0})){let ye=Fe(this,E)[se],Oe=Fe(this,$)[se],z=Dn(this,B,zi).call(this,Oe)?Oe.__staleWhileFetching:Oe;if(z===void 0||ye===void 0)continue;let H={value:z};if(Fe(this,F)&&Fe(this,N)){H.ttl=Fe(this,F)[se];let G=t.now()-Fe(this,N)[se];H.start=Math.floor(Date.now()-G)}Fe(this,A)&&(H.size=Fe(this,A)[se]),we.unshift([ye,H])}return we}load(we){this.clear();for(let[se,ye]of we){if(ye.start){let Oe=Date.now()-ye.start;ye.start=t.now()-Oe}this.set(se,ye.value,ye)}}set(we,se,ye={}){var We,ge,ze,Ve,Be;if(se===void 0)return this.delete(we),this;let{ttl:Oe=this.ttl,start:z,noDisposeOnSet:H=this.noDisposeOnSet,sizeCalculation:G=this.sizeCalculation,status:de}=ye,{noUpdateTTL:xe=this.noUpdateTTL}=ye,he=Fe(this,le).call(this,we,se,ye.size||0,G);if(this.maxEntrySize&&he>this.maxEntrySize)return de&&(de.set="miss",de.maxEntrySizeExceeded=!0),this.delete(we),this;let Ue=Fe(this,k)===0?void 0:Fe(this,_).get(we);if(Ue===void 0)Ue=Fe(this,k)===0?Fe(this,O):Fe(this,j).length!==0?Fe(this,j).pop():Fe(this,k)===Fe(this,v)?Dn(this,B,FC).call(this,!1):Fe(this,k),Fe(this,E)[Ue]=we,Fe(this,$)[Ue]=se,Fe(this,_).set(we,Ue),Fe(this,M)[Fe(this,O)]=Ue,Fe(this,P)[Ue]=Fe(this,O),xn(this,O,Ue),Lh(this,k)._++,Fe(this,oe).call(this,Ue,he,de),de&&(de.set="add"),xe=!1;else{Dn(this,B,y2).call(this,Ue);let Xe=Fe(this,$)[Ue];if(se!==Xe){if(Fe(this,L)&&Dn(this,B,zi).call(this,Xe)){Xe.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ke}=Xe;Ke!==void 0&&!H&&(Fe(this,K)&&((We=Fe(this,w))==null||We.call(this,Ke,we,"set")),Fe(this,V)&&((ge=Fe(this,I))==null||ge.push([Ke,we,"set"])))}else H||(Fe(this,K)&&((ze=Fe(this,w))==null||ze.call(this,Xe,we,"set")),Fe(this,V)&&((Ve=Fe(this,I))==null||Ve.push([Xe,we,"set"])));if(Fe(this,ae).call(this,Ue),Fe(this,oe).call(this,Ue,he,de),Fe(this,$)[Ue]=se,de){de.set="replace";let Ke=Xe&&Dn(this,B,zi).call(this,Xe)?Xe.__staleWhileFetching:Xe;Ke!==void 0&&(de.oldValue=Ke)}}else de&&(de.set="update")}if(Oe!==0&&!Fe(this,F)&&Dn(this,B,EI).call(this),Fe(this,F)&&(xe||Fe(this,ie).call(this,Ue,Oe,z),de&&Fe(this,ee).call(this,de,Ue)),!H&&Fe(this,V)&&Fe(this,I)){let Xe=Fe(this,I),Ke;for(;Ke=Xe==null?void 0:Xe.shift();)(Be=Fe(this,b))==null||Be.call(this,...Ke)}return this}pop(){var we;try{for(;Fe(this,k);){let se=Fe(this,$)[Fe(this,R)];if(Dn(this,B,FC).call(this,!0),Dn(this,B,zi).call(this,se)){if(se.__staleWhileFetching)return se.__staleWhileFetching}else if(se!==void 0)return se}}finally{if(Fe(this,V)&&Fe(this,I)){let se=Fe(this,I),ye;for(;ye=se==null?void 0:se.shift();)(we=Fe(this,b))==null||we.call(this,...ye)}}}has(we,se={}){let{updateAgeOnHas:ye=this.updateAgeOnHas,status:Oe}=se,z=Fe(this,_).get(we);if(z!==void 0){let H=Fe(this,$)[z];if(Dn(this,B,zi).call(this,H)&&H.__staleWhileFetching===void 0)return!1;if(Fe(this,Z).call(this,z))Oe&&(Oe.has="stale",Fe(this,ee).call(this,Oe,z));else return ye&&Fe(this,Y).call(this,z),Oe&&(Oe.has="hit",Fe(this,ee).call(this,Oe,z)),!0}else Oe&&(Oe.has="miss");return!1}peek(we,se={}){let{allowStale:ye=this.allowStale}=se,Oe=Fe(this,_).get(we);if(Oe!==void 0&&(ye||!Fe(this,Z).call(this,Oe))){let z=Fe(this,$)[Oe];return Dn(this,B,zi).call(this,z)?z.__staleWhileFetching:z}}async fetch(we,se={}){let{allowStale:ye=this.allowStale,updateAgeOnGet:Oe=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,ttl:H=this.ttl,noDisposeOnSet:G=this.noDisposeOnSet,size:de=0,sizeCalculation:xe=this.sizeCalculation,noUpdateTTL:he=this.noUpdateTTL,noDeleteOnFetchRejection:Ue=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:We=this.allowStaleOnFetchRejection,ignoreFetchAbort:ge=this.ignoreFetchAbort,allowStaleOnFetchAbort:ze=this.allowStaleOnFetchAbort,context:Ve,forceRefresh:Be=!1,status:Xe,signal:Ke}=se;if(!Fe(this,L))return Xe&&(Xe.fetch="get"),this.get(we,{allowStale:ye,updateAgeOnGet:Oe,noDeleteOnStaleGet:z,status:Xe});let qe={allowStale:ye,updateAgeOnGet:Oe,noDeleteOnStaleGet:z,ttl:H,noDisposeOnSet:G,size:de,sizeCalculation:xe,noUpdateTTL:he,noDeleteOnFetchRejection:Ue,allowStaleOnFetchRejection:We,allowStaleOnFetchAbort:ze,ignoreFetchAbort:ge,status:Xe,signal:Ke},Et=Fe(this,_).get(we);if(Et===void 0){Xe&&(Xe.fetch="miss");let ut=Dn(this,B,LC).call(this,we,Et,qe,Ve);return ut.__returned=ut}else{let ut=Fe(this,$)[Et];if(Dn(this,B,zi).call(this,ut)){let jt=ye&&ut.__staleWhileFetching!==void 0;return Xe&&(Xe.fetch="inflight",jt&&(Xe.returnedStale=!0)),jt?ut.__staleWhileFetching:ut.__returned=ut}let gt=Fe(this,Z).call(this,Et);if(!Be&&!gt)return Xe&&(Xe.fetch="hit"),Dn(this,B,y2).call(this,Et),Oe&&Fe(this,Y).call(this,Et),Xe&&Fe(this,ee).call(this,Xe,Et),ut;let Qe=Dn(this,B,LC).call(this,we,Et,qe,Ve),nt=Qe.__staleWhileFetching!==void 0&&ye;return Xe&&(Xe.fetch=gt?"stale":"refresh",nt&>&&(Xe.returnedStale=!0)),nt?Qe.__staleWhileFetching:Qe.__returned=Qe}}get(we,se={}){let{allowStale:ye=this.allowStale,updateAgeOnGet:Oe=this.updateAgeOnGet,noDeleteOnStaleGet:z=this.noDeleteOnStaleGet,status:H}=se,G=Fe(this,_).get(we);if(G!==void 0){let de=Fe(this,$)[G],xe=Dn(this,B,zi).call(this,de);return H&&Fe(this,ee).call(this,H,G),Fe(this,Z).call(this,G)?(H&&(H.get="stale"),xe?(H&&ye&&de.__staleWhileFetching!==void 0&&(H.returnedStale=!0),ye?de.__staleWhileFetching:void 0):(z||this.delete(we),H&&ye&&(H.returnedStale=!0),ye?de:void 0)):(H&&(H.get="hit"),xe?de.__staleWhileFetching:(Dn(this,B,y2).call(this,G),Oe&&Fe(this,Y).call(this,G),de))}else H&&(H.get="miss")}delete(we){var ye,Oe,z,H;let se=!1;if(Fe(this,k)!==0){let G=Fe(this,_).get(we);if(G!==void 0)if(se=!0,Fe(this,k)===1)this.clear();else{Fe(this,ae).call(this,G);let de=Fe(this,$)[G];Dn(this,B,zi).call(this,de)?de.__abortController.abort(new Error("deleted")):(Fe(this,K)||Fe(this,V))&&(Fe(this,K)&&((ye=Fe(this,w))==null||ye.call(this,de,we,"delete")),Fe(this,V)&&((Oe=Fe(this,I))==null||Oe.push([de,we,"delete"]))),Fe(this,_).delete(we),Fe(this,E)[G]=void 0,Fe(this,$)[G]=void 0,G===Fe(this,O)?xn(this,O,Fe(this,P)[G]):G===Fe(this,R)?xn(this,R,Fe(this,M)[G]):(Fe(this,M)[Fe(this,P)[G]]=Fe(this,M)[G],Fe(this,P)[Fe(this,M)[G]]=Fe(this,P)[G]),Lh(this,k)._--,Fe(this,j).push(G)}}if(Fe(this,V)&&((z=Fe(this,I))!=null&&z.length)){let G=Fe(this,I),de;for(;de=G==null?void 0:G.shift();)(H=Fe(this,b))==null||H.call(this,...de)}return se}clear(){var we,se,ye;for(let Oe of Dn(this,B,hp).call(this,{allowStale:!0})){let z=Fe(this,$)[Oe];if(Dn(this,B,zi).call(this,z))z.__abortController.abort(new Error("deleted"));else{let H=Fe(this,E)[Oe];Fe(this,K)&&((we=Fe(this,w))==null||we.call(this,z,H,"delete")),Fe(this,V)&&((se=Fe(this,I))==null||se.push([z,H,"delete"]))}}if(Fe(this,_).clear(),Fe(this,$).fill(void 0),Fe(this,E).fill(void 0),Fe(this,F)&&Fe(this,N)&&(Fe(this,F).fill(0),Fe(this,N).fill(0)),Fe(this,A)&&Fe(this,A).fill(0),xn(this,R,0),xn(this,O,0),Fe(this,j).length=0,xn(this,S,0),xn(this,k,0),Fe(this,V)&&Fe(this,I)){let Oe=Fe(this,I),z;for(;z=Oe==null?void 0:Oe.shift();)(ye=Fe(this,b))==null||ye.call(this,...z)}}},v=new WeakMap,y=new WeakMap,w=new WeakMap,b=new WeakMap,C=new WeakMap,k=new WeakMap,S=new WeakMap,_=new WeakMap,E=new WeakMap,$=new WeakMap,M=new WeakMap,P=new WeakMap,R=new WeakMap,O=new WeakMap,j=new WeakMap,I=new WeakMap,A=new WeakMap,N=new WeakMap,F=new WeakMap,K=new WeakMap,L=new WeakMap,V=new WeakMap,B=new WeakSet,EI=function(){let we=new u(Fe(this,v)),se=new u(Fe(this,v));xn(this,F,we),xn(this,N,se),xn(this,ie,(z,H,G=t.now())=>{if(se[z]=H!==0?G:0,we[z]=H,H!==0&&this.ttlAutopurge){let de=setTimeout(()=>{Fe(this,Z).call(this,z)&&this.delete(Fe(this,E)[z])},H+1);de.unref&&de.unref()}}),xn(this,Y,z=>{se[z]=we[z]!==0?t.now():0}),xn(this,ee,(z,H)=>{if(we[H]){let G=we[H],de=se[H];z.ttl=G,z.start=de,z.now=ye||Oe();let xe=z.now-de;z.remainingTTL=G-xe}});let ye=0,Oe=()=>{let z=t.now();if(this.ttlResolution>0){ye=z;let H=setTimeout(()=>ye=0,this.ttlResolution);H.unref&&H.unref()}return z};this.getRemainingTTL=z=>{let H=Fe(this,_).get(z);if(H===void 0)return 0;let G=we[H],de=se[H];if(G===0||de===0)return 1/0;let xe=(ye||Oe())-de;return G-xe},xn(this,Z,z=>we[z]!==0&&se[z]!==0&&(ye||Oe())-se[z]>we[z])},Y=new WeakMap,ee=new WeakMap,ie=new WeakMap,Z=new WeakMap,xce=function(){let we=new u(Fe(this,v));xn(this,S,0),xn(this,A,we),xn(this,ae,se=>{xn(this,S,Fe(this,S)-we[se]),we[se]=0}),xn(this,le,(se,ye,Oe,z)=>{if(Dn(this,B,zi).call(this,ye))return 0;if(!l(Oe))if(z){if(typeof z!="function")throw new TypeError("sizeCalculation must be a function");if(Oe=z(ye,se),!l(Oe))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Oe}),xn(this,oe,(se,ye,Oe)=>{if(we[se]=ye,Fe(this,y)){let z=Fe(this,y)-we[se];for(;Fe(this,S)>z;)Dn(this,B,FC).call(this,!0)}xn(this,S,Fe(this,S)+we[se]),Oe&&(Oe.entrySize=ye,Oe.totalCalculatedSize=Fe(this,S))})},ae=new WeakMap,oe=new WeakMap,le=new WeakMap,pp=function*({allowStale:we=this.allowStale}={}){if(Fe(this,k))for(let se=Fe(this,O);!(!Dn(this,B,$I).call(this,se)||((we||!Fe(this,Z).call(this,se))&&(yield se),se===Fe(this,R)));)se=Fe(this,P)[se]},hp=function*({allowStale:we=this.allowStale}={}){if(Fe(this,k))for(let se=Fe(this,R);!(!Dn(this,B,$I).call(this,se)||((we||!Fe(this,Z).call(this,se))&&(yield se),se===Fe(this,O)));)se=Fe(this,M)[se]},$I=function(we){return we!==void 0&&Fe(this,_).get(Fe(this,E)[we])===we},FC=function(we){var z,H;let se=Fe(this,R),ye=Fe(this,E)[se],Oe=Fe(this,$)[se];return Fe(this,L)&&Dn(this,B,zi).call(this,Oe)?Oe.__abortController.abort(new Error("evicted")):(Fe(this,K)||Fe(this,V))&&(Fe(this,K)&&((z=Fe(this,w))==null||z.call(this,Oe,ye,"evict")),Fe(this,V)&&((H=Fe(this,I))==null||H.push([Oe,ye,"evict"]))),Fe(this,ae).call(this,se),we&&(Fe(this,E)[se]=void 0,Fe(this,$)[se]=void 0,Fe(this,j).push(se)),Fe(this,k)===1?(xn(this,R,xn(this,O,0)),Fe(this,j).length=0):xn(this,R,Fe(this,M)[se]),Fe(this,_).delete(ye),Lh(this,k)._--,se},LC=function(we,se,ye,Oe){let z=se===void 0?void 0:Fe(this,$)[se];if(Dn(this,B,zi).call(this,z))return z;let H=new a,{signal:G}=ye;G==null||G.addEventListener("abort",()=>H.abort(G.reason),{signal:H.signal});let de={signal:H.signal,options:ye,context:Oe},xe=(Ve,Be=!1)=>{let{aborted:Xe}=H.signal,Ke=ye.ignoreFetchAbort&&Ve!==void 0;if(ye.status&&(Xe&&!Be?(ye.status.fetchAborted=!0,ye.status.fetchError=H.signal.reason,Ke&&(ye.status.fetchAbortIgnored=!0)):ye.status.fetchResolved=!0),Xe&&!Ke&&!Be)return Ue(H.signal.reason);let qe=ge;return Fe(this,$)[se]===ge&&(Ve===void 0?qe.__staleWhileFetching?Fe(this,$)[se]=qe.__staleWhileFetching:this.delete(we):(ye.status&&(ye.status.fetchUpdated=!0),this.set(we,Ve,de.options))),Ve},he=Ve=>(ye.status&&(ye.status.fetchRejected=!0,ye.status.fetchError=Ve),Ue(Ve)),Ue=Ve=>{let{aborted:Be}=H.signal,Xe=Be&&ye.allowStaleOnFetchAbort,Ke=Xe||ye.allowStaleOnFetchRejection,qe=Ke||ye.noDeleteOnFetchRejection,Et=ge;if(Fe(this,$)[se]===ge&&(!qe||Et.__staleWhileFetching===void 0?this.delete(we):Xe||(Fe(this,$)[se]=Et.__staleWhileFetching)),Ke)return ye.status&&Et.__staleWhileFetching!==void 0&&(ye.status.returnedStale=!0),Et.__staleWhileFetching;if(Et.__returned===Et)throw Ve},We=(Ve,Be)=>{var Ke;let Xe=(Ke=Fe(this,C))==null?void 0:Ke.call(this,we,z,de);Xe&&Xe instanceof Promise&&Xe.then(qe=>Ve(qe===void 0?void 0:qe),Be),H.signal.addEventListener("abort",()=>{(!ye.ignoreFetchAbort||ye.allowStaleOnFetchAbort)&&(Ve(void 0),ye.allowStaleOnFetchAbort&&(Ve=qe=>xe(qe,!0)))})};ye.status&&(ye.status.fetchDispatched=!0);let ge=new Promise(We).then(xe,he),ze=Object.assign(ge,{__abortController:H,__staleWhileFetching:z,__returned:void 0});return se===void 0?(this.set(we,ze,{...de.options,status:void 0}),se=Fe(this,_).get(we)):Fe(this,$)[se]=ze,ze},zi=function(we){if(!Fe(this,L))return!1;let se=we;return!!se&&se instanceof Promise&&se.hasOwnProperty("__staleWhileFetching")&&se.__abortController instanceof a},MI=function(we,se){Fe(this,P)[se]=we,Fe(this,M)[we]=se},y2=function(we){we!==Fe(this,O)&&(we===Fe(this,R)?xn(this,R,Fe(this,M)[we]):Dn(this,B,MI).call(this,Fe(this,P)[we],Fe(this,M)[we]),Dn(this,B,MI).call(this,Fe(this,O),we),xn(this,O,we))},be);e.LRUCache=p}),zf=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(i=0){this.iteratorType=i}equals(i){return this.o===i.o}};e.ContainerIterator=t;var n=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=n;var r=class extends n{};e.Container=r}),d7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[]){super(),this.S=[];let a=this;i.forEach(function(o){a.push(o)})}clear(){this.i=0,this.S=[]}push(i){return this.S.push(i),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},r=n;e.default=r}),f7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[]){super(),this.j=0,this.q=[];let a=this;i.forEach(function(o){a.push(o)})}clear(){this.q=[],this.i=this.j=0}push(i){let a=this.q.length;if(this.j/a>.5&&this.j+this.i>=a&&a>4096){let o=this.i;for(let s=0;s{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Base{constructor(i=[],a=function(s,l){return s>l?-1:s>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(i){let a=this.C[i];for(;i>0;){let o=i-1>>1,s=this.C[o];if(this.v(s,a)<=0)break;this.C[i]=s,i=o}this.C[i]=a}k(i,a){let o=this.C[i];for(;i0&&(s=l,c=this.C[l]),this.v(c,o)>=0)break;this.C[i]=c,i=s}this.C[i]=o}clear(){this.i=0,this.C.length=0}push(i){this.C.push(i),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let i=this.C[0],a=this.C.pop();return this.i-=1,this.i&&(this.C[0]=a,this.k(0,this.i>>1)),i}top(){return this.C[0]}find(i){return this.C.indexOf(i)>=0}remove(i){let a=this.C.indexOf(i);return a<0?!1:(a===0?this.pop():a===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(a,1,this.C.pop()),this.i-=1,this.m(a),this.k(a,this.i>>1)),!0)}updateItem(i){let a=this.C.indexOf(i);return a<0?!1:(this.m(a),this.k(a,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),qF=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=class extends t.Container{},r=n;e.default=r}),Hf=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),Sce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=zf(),n=Hf(),r=class extends t.ContainerIterator{constructor(i,a){super(a),this.o=i,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,n.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,n.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,n.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(i){this.container.setElementByPos(this.o,i)}};e.RandomIterator=r}),h7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(qF()),n=Sce();function r(s){return s&&s.t?s:{default:s}}var i=class Cce extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new Cce(this.o,this.container,this.iteratorType)}},a=class extends t.default{constructor(s=[],l=!0){if(super(),Array.isArray(s))this.J=l?[...s]:s,this.i=s.length;else{this.J=[];let c=this;s.forEach(function(u){c.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let l=0;for(let c=0;cthis.i-1)throw new RangeError;this.J[s]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(c).fill(l)),this.i+=c,this.i}find(s){for(let l=0;l{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(qF()),n=zf(),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class _ce extends n.ContainerIterator{constructor(c,u,f,p){super(p),this.o=c,this.h=u,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l}set pointer(c){this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l=c}copy(){return new _ce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,f={l,L:c,B:u};c.B=f,u.L=f,c===this.h&&(this.p=f),u===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,r.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let f=this.p;for(let h=1;h{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(qF()),n=Sce();function r(s){return s&&s.t?s:{default:s}}var i=class kce extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new kce(this.o,this.container,this.iteratorType)}},a=class extends t.default{constructor(s=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let c=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(c/this.F),1);for(let p=0;p>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let f=this;s.forEach(function(p){f.pushBack(p)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c>1}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.A[l][c]}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(s);this.A[c][u]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;c--;)this.pushFront(l);else if(s===this.i)for(;c--;)this.pushBack(l);else{let u=[];for(let f=s;fthis.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let l=[];for(let u=s+1;us;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,i){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=i}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let i=r.tt;for(;i.U===r;)r=i,i=r.tt;r=i}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let i=r.tt;for(;i.W===r;)r=i,i=r.tt;return r.W!==i?i:r}}te(){let r=this.tt,i=this.W,a=i.U;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.U=this,this.tt=i,this.W=a,a&&(a.tt=this),i}se(){let r=this.tt,i=this.U,a=i.W;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.W=this,this.tt=i,this.U=a,a&&(a.tt=this),i}};e.TreeNode=t;var n=class extends t{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=n}),Ece=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=v7e(),n=zf(),r=Hf(),i=class extends n.Container{constructor(o=function(l,c){return lc?1:0},s=!1){super(),this.Y=void 0,this.v=o,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let f=this.ne(l,c,u);if(f){let p=f.tt;for(;p!==this.h;)p.rt+=1,p=p.tt;let h=this.he(f);if(h){let{parentNode:m,grandParent:g,curNode:v}=h;m.ie(),g.ie(),v.ie()}}return this.i},this.V=function(l){let c=this.fe(l);for(;c!==this.h;)c.rt-=1,c=c.tt}):(this.re=t.TreeNode,this.M=function(l,c,u){let f=this.ne(l,c,u);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(o,s){let l=this.h;for(;o;){let c=this.v(o.u,s);if(c<0)o=o.W;else if(c>0)l=o,o=o.U;else return o}return l}Z(o,s){let l=this.h;for(;o;)this.v(o.u,s)<=0?o=o.W:(l=o,o=o.U);return l}$(o,s){let l=this.h;for(;o;){let c=this.v(o.u,s);if(c<0)l=o,o=o.W;else if(c>0)o=o.U;else return o}return l}rr(o,s){let l=this.h;for(;o;)this.v(o.u,s)<0?(l=o,o=o.W):o=o.U;return l}ue(o){for(;;){let s=o.tt;if(s===this.h)return;if(o.ee===1){o.ee=0;return}if(o===s.U){let l=s.W;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.te():s.te();else if(l.W&&l.W.ee===1){l.ee=s.ee,s.ee=0,l.W.ee=0,s===this.Y?this.Y=s.te():s.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,o=s)}else{let l=s.U;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.se():s.se();else if(l.U&&l.U.ee===1){l.ee=s.ee,s.ee=0,l.U.ee=0,s===this.Y?this.Y=s.se():s.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,o=s)}}}fe(o){if(this.i===1)return this.clear(),this.h;let s=o;for(;s.U||s.W;){if(s.W)for(s=s.W;s.U;)s=s.U;else s=s.U;[o.u,s.u]=[s.u,o.u],[o.l,s.l]=[s.l,o.l],o=s}this.h.U===s?this.h.U=s.tt:this.h.W===s&&(this.h.W=s.tt),this.ue(s);let l=s.tt;return s===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(o,s){return o===void 0?!1:this.oe(o.U,s)||s(o)?!0:this.oe(o.W,s)}he(o){for(;;){let s=o.tt;if(s.ee===0)return;let l=s.tt;if(s===l.U){let c=l.W;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,o=l;continue}else if(o===s.W){if(o.ee=0,o.U&&(o.U.tt=s),o.W&&(o.W.tt=l),s.W=o.U,l.U=o.W,o.U=s,o.W=l,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,s.tt=o,l.tt=o,l.ee=1,{parentNode:s,grandParent:l,curNode:o}}else s.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let c=l.U;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,o=l;continue}else if(o===s.U){if(o.ee=0,o.U&&(o.U.tt=l),o.W&&(o.W.tt=s),l.W=o.U,s.U=o.W,o.U=l,o.W=s,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,s.tt=o,l.tt=o,l.ee=1,{parentNode:s,grandParent:l,curNode:o}}else s.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(o,s,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(o,s),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let c,u=this.h.U,f=this.v(u.u,o);if(f===0){u.l=s;return}else if(f>0)u.U=new this.re(o,s),u.U.tt=u,c=u.U,this.h.U=c;else{let p=this.h.W,h=this.v(p.u,o);if(h===0){p.l=s;return}else if(h<0)p.W=new this.re(o,s),p.W.tt=p,c=p.W,this.h.W=c;else{if(l!==void 0){let m=l.o;if(m!==this.h){let g=this.v(m.u,o);if(g===0){m.l=s;return}else if(g>0){let v=m.L(),y=this.v(v.u,o);if(y===0){v.l=s;return}else y<0&&(c=new this.re(o,s),v.W===void 0?(v.W=c,c.tt=v):(m.U=c,c.tt=m))}}}if(c===void 0)for(c=this.Y;;){let m=this.v(c.u,o);if(m>0){if(c.U===void 0){c.U=new this.re(o,s),c.U.tt=c,c=c.U;break}c=c.U}else if(m<0){if(c.W===void 0){c.W=new this.re(o,s),c.W.tt=c,c=c.W;break}c=c.W}else{c.l=s;return}}}}return this.i+=1,c}I(o,s){for(;o;){let l=this.v(o.u,s);if(l<0)o=o.W;else if(l>0)o=o.U;else return o}return o||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(o,s){let l=o.o;if(l===this.h&&(0,r.throwIteratorAccessError)(),this.i===1)return l.u=s,!0;if(l===this.h.U)return this.v(l.B().u,s)>0?(l.u=s,!0):!1;if(l===this.h.W)return this.v(l.L().u,s)<0?(l.u=s,!0):!1;let c=l.L().u;if(this.v(c,s)>=0)return!1;let u=l.B().u;return this.v(u,s)<=0?!1:(l.u=s,!0)}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s=0,l=this;return this.oe(this.Y,function(c){return o===s?(l.V(c),!0):(s+=1,!1)}),this.i}eraseElementByKey(o){if(this.i===0)return!1;let s=this.I(this.Y,o);return s===this.h?!1:(this.V(s),!0)}eraseElementByIterator(o){let s=o.o;s===this.h&&(0,r.throwIteratorAccessError)();let l=s.W===void 0;return o.iteratorType===0?l&&o.next():(!l||s.U===void 0)&&o.next(),this.V(s),o}forEach(o){let s=0;for(let l of this)o(l,s++,this)}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s,l=0;for(let c of this){if(l===o){s=c;break}l+=1}return s}getHeight(){if(this.i===0)return 0;let o=function(s){return s?Math.max(o(s.U),o(s.W))+1:0};return o(this.Y)}},a=i;e.default=a}),$ce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=zf(),n=Hf(),r=class extends t.ContainerIterator{constructor(a,o,s){super(s),this.o=a,this.h=o,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let a=this.o,o=this.h.tt;if(a===this.h)return o?o.rt-1:0;let s=0;for(a.U&&(s+=a.U.rt);a!==o;){let l=a.tt;a===l.W&&(s+=1,l.U&&(s+=l.U.rt)),a=l}return s}},i=r;e.default=i}),y7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(Ece()),n=i($ce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Mce extends n.default{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new Mce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(p){f.insert(p)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,c){return this.M(l,void 0,c)}find(l){let c=this.I(this.Y,l);return new a(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new a(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new a(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new a(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new a(c,this.h,this)}union(l){let c=this;return l.forEach(function(u){c.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=o;e.default=s}),b7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(Ece()),n=i($ce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Tce extends n.default{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,p){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=p,!0}})}copy(){return new Tce(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(p){f.setElement(p[0],p[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let c=this.X(this.Y,l);return new a(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new a(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new a(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new a(c,this.h,this)}setElement(l,c,u){return this.M(l,c,u)}find(l){let c=this.I(this.Y,l);return new a(c,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let c=this;return l.forEach(function(u){c.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=o;e.default=s}),Pce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),Oce=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=zf(),n=i(Pce()),r=Hf();function i(s){return s&&s.t?s:{default:s}}var a=class extends t.ContainerIterator{constructor(s,l,c){super(c),this.o=s,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=a;var o=class extends t.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(s){let{L:l,B:c}=s;l.B=c,c.L=l,s===this.p&&(this.p=c),s===this._&&(this._=l),this.i-=1}M(s,l,c){c===void 0&&(c=(0,n.default)(s));let u;if(c){let f=s[this.HASH_TAG];if(f!==void 0)return this.H[f].l=l,this.i;Object.defineProperty(s,this.HASH_TAG,{value:this.H.length,configurable:!0}),u={u:s,l,L:this._,B:this.h},this.H.push(u)}else{let f=this.g[s];if(f)return f.l=l,this.i;u={u:s,l,L:this._,B:this.h},this.g[s]=u}return this.i===0?(this.p=u,this.h.B=u):this._.B=u,this._=u,this.h.L=u,++this.i}I(s,l){if(l===void 0&&(l=(0,n.default)(s)),l){let c=s[this.HASH_TAG];return c===void 0?this.h:this.H[c]}else return this.g[s]||this.h}clear(){let s=this.HASH_TAG;this.H.forEach(function(l){delete l.u[s]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(s,l){let c;if(l===void 0&&(l=(0,n.default)(s)),l){let u=s[this.HASH_TAG];if(u===void 0)return!1;delete s[this.HASH_TAG],c=this.H[u],delete this.H[u]}else{if(c=this.g[s],c===void 0)return!1;delete this.g[s]}return this.V(c),!0}eraseElementByIterator(s){let l=s.o;return l===this.h&&(0,r.throwIteratorAccessError)(),this.V(l),s.next()}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return this.V(l),this.i}};e.HashContainer=o}),w7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Oce(),n=Hf(),r=class Rce extends t.HashContainerIterator{constructor(s,l,c,u){super(s,l,u),this.container=c}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new Rce(this.o,this.h,this.container,this.iteratorType)}},i=class extends t.HashContainer{constructor(o=[]){super();let s=this;o.forEach(function(l){s.insert(l)})}begin(){return new r(this.p,this.h,this)}end(){return new r(this.h,this.h,this)}rBegin(){return new r(this._,this.h,this,1)}rEnd(){return new r(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(o,s){return this.M(o,void 0,s)}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let s=this.p;for(;o--;)s=s.B;return s.u}find(o,s){let l=this.I(o,s);return new r(l,this.h,this)}forEach(o){let s=0,l=this.p;for(;l!==this.h;)o(l.u,s++,this),l=l.B}[Symbol.iterator](){return(function*(){let o=this.p;for(;o!==this.h;)yield o.u,o=o.B}).bind(this)()}},a=i;e.default=a}),x7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Oce(),n=i(Pce()),r=Hf();function i(l){return l&&l.t?l:{default:l}}var a=class Ice extends t.HashContainerIterator{constructor(c,u,f,p){super(c,u,p),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,p){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=p,!0}})}copy(){return new Ice(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.HashContainer{constructor(l=[]){super();let c=this;l.forEach(function(u){c.setElement(u[0],u[1])})}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,c,u){return this.M(l,c,u)}getElementByKey(l,c){if(c===void 0&&(c=(0,n.default)(l)),c){let f=l[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let u=this.g[l];return u?u.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return[c.u,c.l]}find(l,c){let u=this.I(l,c);return new a(u,this.h,this)}forEach(l){let c=0,u=this.p;for(;u!==this.h;)l([u.u,u.l],c++,this),u=u.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},s=o;e.default=s}),S7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return i.default}});var t=f(d7e()),n=f(f7e()),r=f(p7e()),i=f(h7e()),a=f(m7e()),o=f(g7e()),s=f(y7e()),l=f(b7e()),c=f(w7e()),u=f(x7e());function f(p){return p&&p.t?p:{default:p}}}),C7e=un((e,t)=>{Zt(),Jt(),Qt();var n=S7e().OrderedSet,r=Pf()("number-allocator:trace"),i=Pf()("number-allocator:error");function a(s,l){this.low=s,this.high=l}a.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},a.prototype.compare=function(s){return this.lowc.compare(u)),r("Create"),this.clear()}o.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},o.prototype.alloc=function(){if(this.ss.size()===0)return r("alloc():empty"),null;let s=this.ss.begin(),l=s.pointer.low,c=s.pointer.high,u=l;return u+1<=c?this.ss.updateKeyByIterator(s,new a(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},o.prototype.use=function(s){let l=new a(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,f=c.pointer.high;return c.pointer.equals(l)?(this.ss.eraseElementByIterator(c),r("use():"+s),!0):u>s?!1:u===s?(this.ss.updateKeyByIterator(c,new a(u+1,f)),r("use():"+s),!0):f===s?(this.ss.updateKeyByIterator(c,new a(u,f-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new a(s+1,f)),this.ss.insert(new a(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},o.prototype.free=function(s){if(sthis.max){i("free():"+s+" is out of range");return}let l=new a(s,s),c=this.ss.upperBound(l);if(c.equals(this.ss.end())){if(c.equals(this.ss.begin())){this.ss.insert(l);return}c.pre();let u=c.pointer.high;c.pointer.high+1===s?this.ss.updateKeyByIterator(c,new a(u,s)):this.ss.insert(l)}else if(c.equals(this.ss.begin()))if(s+1===c.pointer.low){let u=c.pointer.high;this.ss.updateKeyByIterator(c,new a(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,f=c.pointer.high;c.pre();let p=c.pointer.low;c.pointer.high+1===s?s+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new a(p,f))):this.ss.updateKeyByIterator(c,new a(p,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new a(s,f))):this.ss.insert(l)}r("free():"+s)},o.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new a(this.min,this.max))},o.prototype.intervalCount=function(){return this.ss.size()},o.prototype.dump=function(){console.log("length:"+this.ss.size());for(let s of this.ss)console.log(s)},t.exports=o}),jce=un((e,t)=>{Zt(),Jt(),Qt();var n=C7e();t.exports.NumberAllocator=n}),_7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=u7e(),n=jce(),r=class{constructor(i){i>0&&(this.aliasToTopic=new t.LRUCache({max:i}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,i),this.max=i,this.length=0)}put(i,a){if(a===0||a>this.max)return!1;let o=this.aliasToTopic.get(a);return o&&delete this.topicToAlias[o],this.aliasToTopic.set(a,i),this.topicToAlias[i]=a,this.numberAllocator.use(a),this.length=this.aliasToTopic.size,!0}getTopicByAlias(i){return this.aliasToTopic.get(i)}getAliasByTopic(i){let a=this.topicToAlias[i];return typeof a<"u"&&this.aliasToTopic.get(a),a}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=r}),k7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=gE(),r=t(_7e()),i=my(),a=(o,s)=>{o.log("_handleConnack");let{options:l}=o,c=l.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(o.connackTimer),delete o.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535){o.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}s.properties.topicAliasMaximum>0&&(o.topicAliasSend=new r.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=s.properties.serverKeepAlive),s.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(c===0)o.reconnecting=!1,o._onConnect(s);else if(c>0){let u=new i.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);o.emit("error",u),o.options.reconnectOnConnackError&&o._cleanUp(!0)}};e.default=a}),E7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,i)=>{n.log("handling pubrel packet");let a=typeof i<"u"?i:n.noop,{messageId:o}=r,s={cmd:"pubcomp",messageId:o};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,a):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return a(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,a)}))})};e.default=t}),$7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(s7e()),r=t(c7e()),i=t(k7e()),a=t(gE()),o=t(E7e()),s=(l,c,u)=>{let{options:f}=l;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((hy(),Si(Lg))),r=my(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)}),vE=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var a;return typeof window<"u"?typeof navigator<"u"&&((a=navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase().indexOf(" electron/"))>-1&&li!=null&&li.versions?!Object.prototype.hasOwnProperty.call(li.versions,"electron"):typeof window.document<"u":!1},n=()=>{var a,o;return!!(typeof self=="object"&&!((o=(a=self==null?void 0:self.constructor)===null||a===void 0?void 0:a.name)===null||o===void 0)&&o.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",i=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=i}),T7e=un((e,t)=>{Zt(),Jt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))}(e,function(n){var r=function(h){return function(m){var g=h(m);return m.add(g),g}},i=function(h){return function(m,g){return h.set(m,g),g}},a=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,s=o*2,l=function(h,m){return function(g){var v=m.get(g),y=v===void 0?g.size:va)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(y);)y=Math.floor(Math.random()*a);return h(g,y)}},c=new WeakMap,u=i(c),f=l(u,c),p=r(f);n.addUniqueNumber=p,n.generateUniqueNumber=f})}),P7e=un((e,t)=>{Zt(),Jt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,T7e()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimersBroker={},n.fastUniqueNumbers))}(e,function(n,r){var i=function(s){return s.method!==void 0&&s.method==="call"},a=function(s){return s.error===null&&typeof s.id=="number"},o=function(s){var l=new Map([[0,function(){}]]),c=new Map([[0,function(){}]]),u=new Map,f=new Worker(s);f.addEventListener("message",function(v){var y=v.data;if(i(y)){var w=y.params,b=w.timerId,C=w.timerType;if(C==="interval"){var k=l.get(b);if(typeof k=="number"){var S=u.get(k);if(S===void 0||S.timerId!==b||S.timerType!==C)throw new Error("The timer is in an undefined state.")}else if(typeof k<"u")k();else throw new Error("The timer is in an undefined state.")}else if(C==="timeout"){var _=c.get(b);if(typeof _=="number"){var E=u.get(_);if(E===void 0||E.timerId!==b||E.timerType!==C)throw new Error("The timer is in an undefined state.")}else if(typeof _<"u")_(),c.delete(b);else throw new Error("The timer is in an undefined state.")}}else if(a(y)){var $=y.id,M=u.get($);if(M===void 0)throw new Error("The timer is in an undefined state.");var P=M.timerId,R=M.timerType;u.delete($),R==="interval"?l.delete(P):c.delete(P)}else{var O=y.error.message;throw new Error(O)}});var p=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"interval"}),l.set(v,y),f.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"interval"}})},h=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"timeout"}),c.set(v,y),f.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"timeout"}})},m=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=r.generateUniqueNumber(l);return l.set(w,function(){v(),typeof l.get(w)=="function"&&f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:w,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:w,timerType:"interval"}}),w},g=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=r.generateUniqueNumber(c);return c.set(w,v),f.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:w,timerType:"timeout"}}),w};return{clearInterval:p,clearTimeout:h,setInterval:m,setTimeout:g}};n.load=o})}),O7e=un((e,t)=>{Zt(),Jt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,P7e()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimers={},n.workerTimersBroker))}(e,function(n,r){var i=function(f,p){var h=null;return function(){if(h!==null)return h;var m=new Blob([p],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(m);return h=f(g),setTimeout(function(){return URL.revokeObjectURL(g)}),h}},a=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,o=i(r.load,a),s=function(f){return o().clearInterval(f)},l=function(f){return o().clearTimeout(f)},c=function(){var f;return(f=o()).setInterval.apply(f,arguments)},u=function(){var f;return(f=o()).setTimeout.apply(f,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),R7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(c,u,f,p){p===void 0&&(p=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,p,h)}:function(c,u,f,p){p===void 0&&(p=f),c[p]=u[f]}),n=e&&e.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),r=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var f in c)f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)&&t(u,c,f);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var i=r(vE()),a=O7e(),o={set:a.setInterval,clear:a.clearInterval},s={set:(c,u)=>setInterval(c,u),clear:c=>clearInterval(c)},l=c=>{switch(c){case"native":return s;case"worker":return o;case"auto":default:return i.default&&!i.isWebWorker&&!i.isReactNativeBrowser?o:s}};e.default=l}),Nce=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(R7e()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(i,a){this.destroyed=!1,this.client=i,this.timer=typeof a=="object"&&"set"in a&&"clear"in a?a:(0,n.default)(a),this.setKeepalive(i.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(i){if(i*=1e3,isNaN(i)||i<=0||i>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${i}`);this._keepalive=i,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${i}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let i=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+i,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=r}),TI=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(k,S,_,E){E===void 0&&(E=_);var $=Object.getOwnPropertyDescriptor(S,_);(!$||("get"in $?!S.__esModule:$.writable||$.configurable))&&($={enumerable:!0,get:function(){return S[_]}}),Object.defineProperty(k,E,$)}:function(k,S,_,E){E===void 0&&(E=_),k[E]=S[_]}),n=e&&e.__setModuleDefault||(Object.create?function(k,S){Object.defineProperty(k,"default",{enumerable:!0,value:S})}:function(k,S){k.default=S}),r=e&&e.__importStar||function(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var _ in k)_!=="default"&&Object.prototype.hasOwnProperty.call(k,_)&&t(S,k,_);return n(S,k),S},i=e&&e.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(x$e()),o=i(r7e()),s=i(yce()),l=Bg(),c=i(a7e()),u=r(o7e()),f=i(Pf()),p=i(bce()),h=i($7e()),m=my(),g=M7e(),v=i(Nce()),y=r(vE()),w=globalThis.setImmediate||((...k)=>{let S=k.shift();(0,m.nextTick)(()=>{S(...k)})}),b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},C=class PI extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(S,_){super(),this.options=_||{};for(let E in b)typeof this.options[E]>"u"?this.options[E]=b[E]:this.options[E]=_[E];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",PI.VERSION),y.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",y.default?"browser":"node"),this.log("MqttClient :: options.protocol",_.protocol),this.log("MqttClient :: options.protocolVersion",_.protocolVersion),this.log("MqttClient :: options.username",_.username),this.log("MqttClient :: options.keepalive",_.keepalive),this.log("MqttClient :: options.reconnectPeriod",_.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",_.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",_.properties?_.properties.topicAliasMaximum:void 0),this.options.clientId=typeof _.clientId=="string"?_.clientId:PI.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=_.protocolVersion===5&&_.customHandleAcks?_.customHandleAcks:(...E)=>{E[3](null,0)},this.options.writeCache||(o.default.writeToStream.cacheNumbers=!1),this.streamBuilder=S,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=_.outgoingStore||new p.default,this.incomingStore=_.incomingStore||new p.default,this.queueQoSZero=_.queueQoSZero===void 0?!0:_.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,_.properties&&_.properties.topicAliasMaximum>0&&(_.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new a.default(_.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:E}=this,$=()=>{let M=E.shift();this.log("deliver :: entry %o",M);let P=null;if(!M){this._resubscribe();return}P=M.packet,this.log("deliver :: call _sendPacket for %o",P);let R=!0;P.messageId&&P.messageId!==0&&(this.messageIdProvider.register(P.messageId)||(R=!1)),R?this._sendPacket(P,O=>{M.cb&&M.cb(O),$()}):(this.log("messageId: %d has already used. The message is skipped and removed.",P.messageId),$())};this.log("connect :: sending queued packets"),$()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(S,_){_()}handleMessage(S,_){_()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var S;let _=new l.Writable,E=o.default.parser(this.options),$=null,M=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),E.on("packet",I=>{this.log("parser :: on packet push to packets array."),M.push(I)});let P=()=>{this.log("work :: getting next packet in queue");let I=M.shift();if(I)this.log("work :: packet pulled from queue"),(0,h.default)(this,I,R);else{this.log("work :: no packets in queue");let A=$;$=null,this.log("work :: done flag is %s",!!A),A&&A()}},R=()=>{if(M.length)(0,m.nextTick)(P);else{let I=$;$=null,I()}};_._write=(I,A,N)=>{$=N,this.log("writable stream :: parsing buffer"),E.parse(I),P()};let O=I=>{this.log("streamErrorHandler :: error",I.message),I.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",I)):this.noop(I)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(_),this.stream.on("error",O),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let j={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(j.will=Object.assign(Object.assign({},this.options.will),{payload:(S=this.options.will)===null||S===void 0?void 0:S.payload})),this.topicAliasRecv&&(j.properties||(j.properties={}),this.topicAliasRecv&&(j.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(j),E.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let I=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(I)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(S,_,E,$){this.log("publish :: message `%s` to topic `%s`",_,S);let{options:M}=this;typeof E=="function"&&($=E,E=null),E=E||{},E=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),E);let{qos:P,retain:R,dup:O,properties:j,cbStorePut:I}=E;if(this._checkDisconnecting($))return this;let A=()=>{let N=0;if((P===1||P===2)&&(N=this._nextId(),N===null))return this.log("No messageId left"),!1;let F={cmd:"publish",topic:S,payload:_,qos:P,retain:R,messageId:N,dup:O};switch(M.protocolVersion===5&&(F.properties=j),this.log("publish :: qos",P),P){case 1:case 2:this.outgoing[F.messageId]={volatile:!1,cb:$||this.noop},this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,void 0,I);break;default:this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,$,I);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!A())&&this._storeProcessingQueue.push({invoke:A,cbStorePut:E.cbStorePut,callback:$}),this}publishAsync(S,_,E){return new Promise(($,M)=>{this.publish(S,_,E,(P,R)=>{P?M(P):$(R)})})}subscribe(S,_,E){let $=this.options.protocolVersion;typeof _=="function"&&(E=_),E=E||this.noop;let M=!1,P=[];typeof S=="string"?(S=[S],P=S):Array.isArray(S)?P=S:typeof S=="object"&&(M=S.resubscribe,delete S.resubscribe,P=Object.keys(S));let R=u.validateTopics(P);if(R!==null)return w(E,new Error(`Invalid topic ${R}`)),this;if(this._checkDisconnecting(E))return this.log("subscribe: discconecting true"),this;let O={qos:0};$===5&&(O.nl=!1,O.rap=!1,O.rh=0),_=Object.assign(Object.assign({},O),_);let j=_.properties,I=[],A=(F,K)=>{if(K=K||_,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,F)||this._resubscribeTopics[F].qos{this.log("subscribe: array topic %s",F),A(F)}):Object.keys(S).forEach(F=>{this.log("subscribe: object topic %s, %o",F,S[F]),A(F,S[F])}),!I.length)return E(null,[]),this;let N=()=>{let F=this._nextId();if(F===null)return this.log("No messageId left"),!1;let K={cmd:"subscribe",subscriptions:I,messageId:F};if(j&&(K.properties=j),this.options.resubscribe){this.log("subscribe :: resubscribe true");let L=[];I.forEach(V=>{if(this.options.reconnectPeriod>0){let B={qos:V.qos};$===5&&(B.nl=V.nl||!1,B.rap=V.rap||!1,B.rh=V.rh||0,B.properties=V.properties),this._resubscribeTopics[V.topic]=B,L.push(V.topic)}}),this.messageIdToTopic[K.messageId]=L}return this.outgoing[K.messageId]={volatile:!0,cb(L,V){if(!L){let{granted:B}=V;for(let U=0;U0||!N())&&this._storeProcessingQueue.push({invoke:N,callback:E}),this}subscribeAsync(S,_){return new Promise((E,$)=>{this.subscribe(S,_,(M,P)=>{M?$(M):E(P)})})}unsubscribe(S,_,E){typeof S=="string"&&(S=[S]),typeof _=="function"&&(E=_),E=E||this.noop;let $=u.validateTopics(S);if($!==null)return w(E,new Error(`Invalid topic ${$}`)),this;if(this._checkDisconnecting(E))return this;let M=()=>{let P=this._nextId();if(P===null)return this.log("No messageId left"),!1;let R={cmd:"unsubscribe",messageId:P,unsubscriptions:[]};return typeof S=="string"?R.unsubscriptions=[S]:Array.isArray(S)&&(R.unsubscriptions=S),this.options.resubscribe&&R.unsubscriptions.forEach(O=>{delete this._resubscribeTopics[O]}),typeof _=="object"&&_.properties&&(R.properties=_.properties),this.outgoing[R.messageId]={volatile:!0,cb:E},this.log("unsubscribe: call _sendPacket"),this._sendPacket(R),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!M())&&this._storeProcessingQueue.push({invoke:M,callback:E}),this}unsubscribeAsync(S,_){return new Promise((E,$)=>{this.unsubscribe(S,_,(M,P)=>{M?$(M):E(P)})})}end(S,_,E){this.log("end :: (%s)",this.options.clientId),(S==null||typeof S!="boolean")&&(E=E||_,_=S,S=!1),typeof _!="object"&&(E=E||_,_=null),this.log("end :: cb? %s",!!E),(!E||typeof E!="function")&&(E=this.noop);let $=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(P=>{this.outgoingStore.close(R=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),E){let O=P||R;this.log("end :: closeStores: invoking callback with args"),E(O)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},M=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,S),this._cleanUp(S,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)($)},_)};return this.disconnecting?(E(),this):(this._clearReconnect(),this.disconnecting=!0,!S&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,M,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),M()),this)}endAsync(S,_){return new Promise((E,$)=>{this.end(S,_,M=>{M?$(M):E()})})}removeOutgoingMessage(S){if(this.outgoing[S]){let{cb:_}=this.outgoing[S];this._removeOutgoingAndStoreMessage(S,()=>{_(new Error("Message removed"))})}return this}reconnect(S){this.log("client reconnect");let _=()=>{S?(this.options.incomingStore=S.incomingStore,this.options.outgoingStore=S.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=_:_(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(S=>{this.outgoing[S].volatile&&typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(S=>{typeof this.outgoing[S].cb=="function"&&(this.outgoing[S].cb(new Error("Connection closed")),delete this.outgoing[S])}))}_removeTopicAliasAndRecoverTopicName(S){let _;S.properties&&(_=S.properties.topicAlias);let E=S.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",_,E),E.length===0){if(typeof _>"u")return new Error("Unregistered Topic Alias");if(E=this.topicAliasSend.getTopicByAlias(_),typeof E>"u")return new Error("Unregistered Topic Alias");S.topic=E}_&&delete S.properties.topicAlias}_checkDisconnecting(S){return this.disconnecting&&(S&&S!==this.noop?S(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(S,_,E={}){if(_&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",_)),this.log("_cleanUp :: forced? %s",S),S)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let $=Object.assign({cmd:"disconnect"},E);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket($,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),w(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),_&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",_),_())}_storeAndSend(S,_,E){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",S.cmd);let $=S,M;if($.cmd==="publish"&&($=(0,c.default)(S),M=this._removeTopicAliasAndRecoverTopicName($),M))return _&&_(M);this.outgoingStore.put($,P=>{if(P)return _&&_(P);E(),this._writePacket(S,_)})}_applyTopicAlias(S){if(this.options.protocolVersion===5&&S.cmd==="publish"){let _;S.properties&&(_=S.properties.topicAlias);let E=S.topic.toString();if(this.topicAliasSend)if(_){if(E.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",E,_),!this.topicAliasSend.put(E,_)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",E,_),new Error("Sending Topic Alias out of range")}else E.length!==0&&(this.options.autoAssignTopicAlias?(_=this.topicAliasSend.getAliasByTopic(E),_?(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",E,_)):(_=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(E,_),S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",E,_))):this.options.autoUseTopicAlias&&(_=this.topicAliasSend.getAliasByTopic(E),_&&(S.topic="",S.properties=Object.assign(Object.assign({},S.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",E,_))));else if(_)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",E,_),new Error("Sending Topic Alias out of range")}}_noop(S){this.log("noop ::",S)}_writePacket(S,_){this.log("_writePacket :: packet: %O",S),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",S),this.log("_writePacket :: writing to stream");let E=o.default.writeToStream(S,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",E),!E&&_&&_!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",_)):_&&(this.log("_writePacket :: invoking cb"),_())}_sendPacket(S,_,E,$){this.log("_sendPacket :: (%s) :: start",this.options.clientId),E=E||this.noop,_=_||this.noop;let M=this._applyTopicAlias(S);if(M){_(M);return}if(!this.connected){if(S.cmd==="auth"){this._writePacket(S,_);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(S,_,E);return}if($){this._writePacket(S,_);return}switch(S.cmd){case"publish":break;case"pubrel":this._storeAndSend(S,_,E);return;default:this._writePacket(S,_);return}switch(S.qos){case 2:case 1:this._storeAndSend(S,_,E);break;case 0:default:this._writePacket(S,_);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(S,_,E){this.log("_storePacket :: packet: %o",S),this.log("_storePacket :: cb? %s",!!_),E=E||this.noop;let $=S;if($.cmd==="publish"){$=(0,c.default)(S);let P=this._removeTopicAliasAndRecoverTopicName($);if(P)return _&&_(P)}let M=$.qos||0;M===0&&this.queueQoSZero||$.cmd!=="publish"?this.queue.push({packet:$,cb:_}):M>0?(_=this.outgoing[$.messageId]?this.outgoing[$.messageId].cb:null,this.outgoingStore.put($,P=>{if(P)return _&&_(P);E()})):_&&_(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(S=!1){this.keepaliveManager&&this.options.keepalive&&(S||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let S=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&S.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let _=0;_{let E=this.outgoingStore.createStream(),$=()=>{E.destroy(),E=null,this._flushStoreProcessingQueue(),M()},M=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",$),E.on("error",R=>{M(),this._flushStoreProcessingQueue(),this.removeListener("close",$),this.emit("error",R)});let P=()=>{if(!E)return;let R=E.read(1),O;if(!R){E.once("readable",P);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[R.messageId]){P();return}!this.disconnecting&&!this.reconnectTimer?(O=this.outgoing[R.messageId]?this.outgoing[R.messageId].cb:null,this.outgoing[R.messageId]={volatile:!1,cb(j,I){O&&O(j,I),P()}},this._packetIdsDuringStoreProcessing[R.messageId]=!0,this.messageIdProvider.register(R.messageId)?this._sendPacket(R,void 0,void 0,!0):this.log("messageId: %d has already used.",R.messageId)):E.destroy&&E.destroy()};E.on("end",()=>{let R=!0;for(let O in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[O]){R=!1;break}this.removeListener("close",$),R?(M(),this._invokeAllStoreProcessingQueue(),this.emit("connect",S)):_()}),P()};_()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let S=this._storeProcessingQueue[0];if(S&&S.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let S of this._storeProcessingQueue)S.cbStorePut&&S.cbStorePut(new Error("Connection closed")),S.callback&&S.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(S,_){delete this.outgoing[S],this.outgoingStore.del({messageId:S},(E,$)=>{_(E,$),this.messageIdProvider.deallocate(S),this._invokeStoreProcessingQueue()})}};C.VERSION=m.MQTTJS_VERSION,e.default=C}),I7e=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=jce(),n=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}};e.default=n});function Wh(e){throw new RangeError(Dce[e])}function iK(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let i=function(a,o){let s=[],l=a.length;for(;l--;)s[l]=o(a[l]);return s}((e=e.replace(Ace,".")).split("."),t).join(".");return r+i}function aK(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&n{Zt(),Jt(),Qt(),oK=/^xn--/,sK=/[^\0-\x7E]/,Ace=/[\x2E\u3002\uFF0E\uFF61]/g,Dce={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Nc=Math.floor,eS=String.fromCharCode,YM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},XM=function(e,t,n){let r=0;for(e=n?Nc(e/700):e>>1,e+=Nc(e/t);e>455;r+=36)e=Nc(e/35);return Nc(r+36*e/(e+38))},ZM=function(e){let t=[],n=e.length,r=0,i=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let l=0;l=128&&Wh("not-basic"),t.push(e.charCodeAt(l));for(let l=o>0?o+1:0;l=n&&Wh("invalid-input");let h=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(h>=36||h>Nc((2147483647-r)/f))&&Wh("overflow"),r+=h*f;let m=p<=a?1:p>=a+26?26:p-a;if(hNc(2147483647/g)&&Wh("overflow"),f*=g}let u=t.length+1;a=XM(r-c,u,c==0),Nc(r/u)>2147483647-i&&Wh("overflow"),i+=Nc(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},QM=function(e){let t=[],n=(e=aK(e)).length,r=128,i=0,a=72;for(let l of e)l<128&&t.push(eS(l));let o=t.length,s=o;for(o&&t.push("-");s=r&&uNc((2147483647-i)/c)&&Wh("overflow"),i+=(l-r)*c,r=l;for(let u of e)if(u2147483647&&Wh("overflow"),u==r){let f=i;for(let p=36;;p+=36){let h=p<=a?1:p>=a+26?26:p-a;if(fString.fromCodePoint(...e)},decode:ZM,encode:QM,toASCII:function(e){return iK(e,function(t){return sK.test(t)?"xn--"+QM(t):t})},toUnicode:function(e){return iK(e,function(t){return oK.test(t)?ZM(t.slice(4).toLowerCase()):t})}},mp.decode,mp.encode,mp.toASCII,mp.toUnicode,mp.ucs2,mp.version});function N7e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var lK,_1,cK,Bu,A7e=Co(()=>{Zt(),Jt(),Qt(),lK=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if(typeof e!="string"||e.length===0)return i;var a=/\+/g;e=e.split(t);var o=1e3;r&&typeof r.maxKeys=="number"&&(o=r.maxKeys);var s=e.length;o>0&&s>o&&(s=o);for(var l=0;l=0?(c=h.substr(0,m),u=h.substr(m+1)):(c=h,u=""),f=decodeURIComponent(c),p=decodeURIComponent(u),N7e(i,f)?Array.isArray(i[f])?i[f].push(p):i[f]=[i[f],p]:i[f]=p}return i},_1=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},cK=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var a=encodeURIComponent(_1(i))+n;return Array.isArray(e[i])?e[i].map(function(o){return a+encodeURIComponent(_1(o))}).join(t):a+encodeURIComponent(_1(e[i]))}).join(t):r?encodeURIComponent(_1(r))+n+encodeURIComponent(_1(e)):""},Bu={},Bu.decode=Bu.parse=lK,Bu.encode=Bu.stringify=cK,Bu.decode,Bu.encode,Bu.parse,Bu.stringify});function OI(){throw new Error("setTimeout has not been defined")}function RI(){throw new Error("clearTimeout has not been defined")}function Fce(e){if(ef===setTimeout)return setTimeout(e,0);if((ef===OI||!ef)&&setTimeout)return ef=setTimeout,setTimeout(e,0);try{return ef(e,0)}catch{try{return ef.call(null,e,0)}catch{return ef.call(this||Bm,e,0)}}}function D7e(){zm&&bm&&(zm=!1,bm.length?nd=bm.concat(nd):H2=-1,nd.length&&Lce())}function Lce(){if(!zm){var e=Fce(D7e);zm=!0;for(var t=nd.length;t;){for(bm=nd,nd=[];++H2{Zt(),Jt(),Qt(),Bm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,la=dK={},function(){try{ef=typeof setTimeout=="function"?setTimeout:OI}catch{ef=OI}try{tf=typeof clearTimeout=="function"?clearTimeout:RI}catch{tf=RI}}(),nd=[],zm=!1,H2=-1,la.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n1)for(var y=1;y{Zt(),Jt(),Qt(),BC={},II=!1,tm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Hi=L7e(),Hi.platform="browser",Hi.addListener,Hi.argv,Hi.binding,Hi.browser,Hi.chdir,Hi.cwd,Hi.emit,Hi.env,Hi.listeners,Hi.nextTick,Hi.off,Hi.on,Hi.once,Hi.prependListener,Hi.prependOnceListener,Hi.removeAllListeners,Hi.removeListener,Hi.title,Hi.umask,Hi.version,Hi.versions});function B7e(){if(jI)return zC;jI=!0;var e=Hi;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,o){for(var s="",l=0,c=-1,u=0,f,p=0;p<=a.length;++p){if(p2){var h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=p,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=p,u=0;continue}}o&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+a.slice(c+1,p):s=a.slice(c+1,p),l=p-c-1;c=p,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(a,o){var s=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+l:s+a+l:l}var i={resolve:function(){for(var a="",o=!1,s,l=arguments.length-1;l>=-1&&!o;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(a=c+"/"+a,o=c.charCodeAt(0)===47)}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(t(a),a.length===0)return".";var o=a.charCodeAt(0)===47,s=a.charCodeAt(a.length-1)===47;return a=n(a,!o),a.length===0&&!o&&(a="."),a.length>0&&s&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return t(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o0&&(a===void 0?a=s:a+="/"+s)}return a===void 0?".":i.normalize(a)},relative:function(a,o){if(t(a),t(o),a===o||(a=i.resolve(a),o=i.resolve(o),a===o))return"";for(var s=1;sh){if(o.charCodeAt(u+g)===47)return o.slice(u+g+1);if(g===0)return o.slice(u+g)}else c>h&&(a.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=a.charCodeAt(s+g),y=o.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var w="";for(g=s+m+1;g<=l;++g)(g===l||a.charCodeAt(g)===47)&&(w.length===0?w+="..":w+="/..");return w.length>0?w+o.slice(u+m):(u+=m,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(a){return a},dirname:function(a){if(t(a),a.length===0)return".";for(var o=a.charCodeAt(0),s=o===47,l=-1,c=!0,u=a.length-1;u>=1;--u)if(o=a.charCodeAt(u),o===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":a.slice(0,l)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');t(a);var s=0,l=-1,c=!0,u;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var f=o.length-1,p=-1;for(u=a.length-1;u>=0;--u){var h=a.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else p===-1&&(c=!1,p=u+1),f>=0&&(h===o.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=p))}return s===l?l=p:l===-1&&(l=a.length),a.slice(s,l)}else{for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":a.slice(s,l)}},extname:function(a){t(a);for(var o=-1,s=0,l=-1,c=!0,u=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),p===46?o===-1?o=f:u!==1&&(u=1):o!==-1&&(u=-1)}return o===-1||l===-1||u===0||u===1&&o===l-1&&o===s+1?"":a.slice(o,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return r("/",a)},parse:function(a){t(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var s=a.charCodeAt(0),l=s===47,c;l?(o.root="/",c=1):c=0;for(var u=-1,f=0,p=-1,h=!0,m=a.length-1,g=0;m>=c;--m){if(s=a.charCodeAt(m),s===47){if(!h){f=m+1;break}continue}p===-1&&(h=!1,p=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||p===-1||g===0||g===1&&u===p-1&&u===f+1?p!==-1&&(f===0&&l?o.base=o.name=a.slice(1,p):o.base=o.name=a.slice(f,p)):(f===0&&l?(o.name=a.slice(1,u),o.base=a.slice(1,p)):(o.name=a.slice(f,u),o.base=a.slice(f,p)),o.ext=a.slice(u,p)),f>0?o.dir=a.slice(0,f-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,zC=i,zC}var zC,jI,NI,z7e=Co(()=>{Zt(),Jt(),Qt(),Bce(),zC={},jI=!1,NI=B7e()}),zce={};Dg(zce,{URL:()=>aue,Url:()=>eue,default:()=>hi,fileURLToPath:()=>Hce,format:()=>tue,parse:()=>iue,pathToFileURL:()=>Uce,resolve:()=>nue,resolveObject:()=>rue});function Xl(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function $b(e,t,n){if(e&&Fc.isObject(e)&&e instanceof Xl)return e;var r=new Xl;return r.parse(e,t,n),r}function H7e(){if(AI)return HC;AI=!0;var e=Qi;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,o){for(var s="",l=0,c=-1,u=0,f,p=0;p<=a.length;++p){if(p2){var h=s.lastIndexOf("/");if(h!==s.length-1){h===-1?(s="",l=0):(s=s.slice(0,h),l=s.length-1-s.lastIndexOf("/")),c=p,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=p,u=0;continue}}o&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+a.slice(c+1,p):s=a.slice(c+1,p),l=p-c-1;c=p,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(a,o){var s=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return s?s===o.root?s+l:s+a+l:l}var i={resolve:function(){for(var a="",o=!1,s,l=arguments.length-1;l>=-1&&!o;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(a=c+"/"+a,o=c.charCodeAt(0)===47)}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(t(a),a.length===0)return".";var o=a.charCodeAt(0)===47,s=a.charCodeAt(a.length-1)===47;return a=n(a,!o),a.length===0&&!o&&(a="."),a.length>0&&s&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return t(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o0&&(a===void 0?a=s:a+="/"+s)}return a===void 0?".":i.normalize(a)},relative:function(a,o){if(t(a),t(o),a===o||(a=i.resolve(a),o=i.resolve(o),a===o))return"";for(var s=1;sh){if(o.charCodeAt(u+g)===47)return o.slice(u+g+1);if(g===0)return o.slice(u+g)}else c>h&&(a.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=a.charCodeAt(s+g),y=o.charCodeAt(u+g);if(v!==y)break;v===47&&(m=g)}var w="";for(g=s+m+1;g<=l;++g)(g===l||a.charCodeAt(g)===47)&&(w.length===0?w+="..":w+="/..");return w.length>0?w+o.slice(u+m):(u+=m,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(a){return a},dirname:function(a){if(t(a),a.length===0)return".";for(var o=a.charCodeAt(0),s=o===47,l=-1,c=!0,u=a.length-1;u>=1;--u)if(o=a.charCodeAt(u),o===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":a.slice(0,l)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');t(a);var s=0,l=-1,c=!0,u;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var f=o.length-1,p=-1;for(u=a.length-1;u>=0;--u){var h=a.charCodeAt(u);if(h===47){if(!c){s=u+1;break}}else p===-1&&(c=!1,p=u+1),f>=0&&(h===o.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=p))}return s===l?l=p:l===-1&&(l=a.length),a.slice(s,l)}else{for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":a.slice(s,l)}},extname:function(a){t(a);for(var o=-1,s=0,l=-1,c=!0,u=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),p===46?o===-1?o=f:u!==1&&(u=1):o!==-1&&(u=-1)}return o===-1||l===-1||u===0||u===1&&o===l-1&&o===s+1?"":a.slice(o,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return r("/",a)},parse:function(a){t(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var s=a.charCodeAt(0),l=s===47,c;l?(o.root="/",c=1):c=0;for(var u=-1,f=0,p=-1,h=!0,m=a.length-1,g=0;m>=c;--m){if(s=a.charCodeAt(m),s===47){if(!h){f=m+1;break}continue}p===-1&&(h=!1,p=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||p===-1||g===0||g===1&&u===p-1&&u===f+1?p!==-1&&(f===0&&l?o.base=o.name=a.slice(1,p):o.base=o.name=a.slice(f,p)):(f===0&&l?(o.name=a.slice(1,u),o.base=a.slice(1,p)):(o.name=a.slice(f,u),o.base=a.slice(f,p)),o.ext=a.slice(u,p)),f>0?o.dir=a.slice(0,f-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,HC=i,HC}function U7e(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return kk?W7e(e):V7e(e)}function W7e(e){let t=e.hostname,n=e.pathname;for(let r=0;rKce||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function V7e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;ncue||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function G7e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n{Zt(),Jt(),Qt(),j7e(),A7e(),F7e(),z7e(),Bce(),hi={},fK=mp,Fc={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},hi.parse=$b,hi.resolve=function(e,t){return $b(e,!1,!0).resolve(t)},hi.resolveObject=function(e,t){return e?$b(e,!1,!0).resolveObject(t):t},hi.format=function(e){return Fc.isString(e)&&(e=$b(e)),e instanceof Xl?e.format():Xl.prototype.format.call(e)},hi.Url=Xl,pK=/^([a-z0-9.+-]+:)/i,hK=/:[0-9]*$/,mK=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,gK=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` +`," "]),tS=["'"].concat(gK),JM=["%","/","?",";","#"].concat(tS),e9=["/","?","#"],t9=/^[+a-z0-9A-Z_-]{0,63}$/,vK=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,yK={javascript:!0,"javascript:":!0},nS={javascript:!0,"javascript:":!0},Vh={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},rS=Bu,Xl.prototype.parse=function(e,t,n){if(!Fc.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?C+="x":C+=b[k];if(!C.match(t9)){var _=y.slice(0,m),E=y.slice(m+1),$=b.match(vK);$&&(_.push($[1]),E.unshift($[2])),E.length&&(o="/"+E.join(".")+o),this.hostname=_.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=fK.toASCII(this.hostname));var M=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+M,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),o[0]!=="/"&&(o="/"+o))}if(!yK[c])for(m=0,w=tS.length;m0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift())),n.search=e.search,n.query=e.query,Fc.isNull(n.pathname)&&Fc.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=b.slice(-1)[0],S=(n.host||e.host||b.length>1)&&(k==="."||k==="..")||k==="",_=0,E=b.length;E>=0;E--)(k=b[E])==="."?b.splice(E,1):k===".."?(b.splice(E,1),_++):_&&(b.splice(E,1),_--);if(!y&&!w)for(;_--;_)b.unshift("..");!y||b[0]===""||b[0]&&b[0].charAt(0)==="/"||b.unshift(""),S&&b.join("/").substr(-1)!=="/"&&b.push("");var $,M=b[0]===""||b[0]&&b[0].charAt(0)==="/";return C&&(n.hostname=n.host=M?"":b.length?b.shift():"",($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift())),(y=y||n.host&&b.length)&&!M&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),Fc.isNull(n.pathname)&&Fc.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Xl.prototype.parseHost=function(){var e=this.host,t=hK.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},hi.Url,hi.format,hi.resolve,hi.resolveObject,HC={},AI=!1,DI=H7e(),bK=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,hi.URL=typeof URL<"u"?URL:null,hi.pathToFileURL=q7e,hi.fileURLToPath=U7e,hi.Url,hi.format,hi.resolve,hi.resolveObject,hi.URL,Wce=92,Vce=47,qce=97,Kce=122,kk=bK==="win32",Gce=/\//g,Yce=/%/g,Xce=/\\/g,Zce=/\n/g,Qce=/\r/g,Jce=/\t/g,wK=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,hi.URL=typeof URL<"u"?URL:null,hi.pathToFileURL=Uce,hi.fileURLToPath=Hce,eue=hi.Url,tue=hi.format,nue=hi.resolve,rue=hi.resolveObject,iue=hi.parse,aue=hi.URL,oue=92,sue=47,lue=97,cue=122,Ek=wK==="win32",uue=/\//g,due=/%/g,fue=/\\/g,pue=/\n/g,hue=/\r/g,mue=/\t/g}),X7e=un((e,t)=>{Zt(),Jt(),Qt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),KF=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=Bg(),n=(ko(),Si(_o));function r(a,o){let s=new Array(a.length);for(let l=0;l{this.destroyed||this.push(l)})}_read(a){this.proxy.read(a)}_write(a,o,s){this.isSocketOpen?this.writeToProxy(a,o,s):this.writeQueue.push({chunk:a,encoding:o,cb:s})}_final(a){this.writeQueue=[],this.proxy.end(a)}_destroy(a,o){this.writeQueue=[],this.proxy.destroy(),o(a)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(a,o,s){this.proxy.write(a,o)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:a,encoding:o,cb:s}=this.writeQueue.shift();this.writeToProxy(a,o,s)}}};e.BufferedDuplex=i}),iS=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(ko(),Si(_o)),r=t(X7e()),i=t(Pf()),a=Bg(),o=t(vE()),s=KF(),l=(0,i.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(y,w){let b=`${y.protocol}://${y.hostname}:${y.port}${y.path}`;return typeof y.transformWsUrl=="function"&&(b=y.transformWsUrl(b,y,w)),b}function f(y){let w=y;return y.port||(y.protocol==="wss"?w.port=443:w.port=80),y.path||(w.path="/"),y.wsOptions||(w.wsOptions={}),!o.default&&!y.forceNativeWebSocket&&y.protocol==="wss"&&c.forEach(b=>{Object.prototype.hasOwnProperty.call(y,b)&&!Object.prototype.hasOwnProperty.call(y.wsOptions,b)&&(w.wsOptions[b]=y[b])}),w}function p(y){let w=f(y);if(w.hostname||(w.hostname=w.host),!w.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let b=new URL(document.URL);w.hostname=b.hostname,w.port||(w.port=Number(b.port))}return w.objectMode===void 0&&(w.objectMode=!(w.binary===!0||w.binary===void 0)),w}function h(y,w,b){l("createWebSocket"),l(`protocol: ${b.protocolId} ${b.protocolVersion}`);let C=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${w} and protocol: ${C}`);let k;return b.createWebsocket?k=b.createWebsocket(w,[C],b):k=new r.default(w,[C],b.wsOptions),k}function m(y,w){let b=w.protocolId==="MQIsdp"&&w.protocolVersion===3?"mqttv3.1":"mqtt",C=u(w,y),k;return w.createWebsocket?k=w.createWebsocket(C,[b],w):k=new WebSocket(C,[b]),k.binaryType="arraybuffer",k}var g=(y,w)=>{l("streamBuilder");let b=f(w);b.hostname=b.hostname||b.host||"localhost";let C=u(b,y),k=h(y,C,b),S=r.default.createWebSocketStream(k,b.wsOptions);return S.url=C,k.on("close",()=>{S.destroy()}),S};e.streamBuilder=g;var v=(y,w)=>{l("browserStreamBuilder");let b,C=p(w).browserBufferSize||1024*512,k=w.browserBufferTimeout||1e3,S=!w.objectMode,_=m(y,w),E=M(w,I,A);w.objectMode||(E._writev=s.writev.bind(E)),E.on("close",()=>{_.close()});let $=typeof _.addEventListener<"u";_.readyState===_.OPEN?(b=E,b.socket=_):(b=new s.BufferedDuplex(w,E,_),$?_.addEventListener("open",P):_.onopen=P),$?(_.addEventListener("close",R),_.addEventListener("error",O),_.addEventListener("message",j)):(_.onclose=R,_.onerror=O,_.onmessage=j);function M(N,F,K){let L=new a.Transform({objectMode:N.objectMode});return L._write=F,L._flush=K,L}function P(){l("WebSocket onOpen"),b instanceof s.BufferedDuplex&&b.socketReady()}function R(N){l("WebSocket onClose",N),b.end(),b.destroy()}function O(N){l("WebSocket onError",N);let F=new Error("WebSocket error");F.event=N,b.destroy(F)}async function j(N){let{data:F}=N;F instanceof ArrayBuffer?F=n.Buffer.from(F):F instanceof Blob?F=n.Buffer.from(await new Response(F).arrayBuffer()):F=n.Buffer.from(F,"utf8"),E&&!E.destroyed&&E.push(F)}function I(N,F,K){if(_.bufferedAmount>C){setTimeout(I,k,N,F,K);return}S&&typeof N=="string"&&(N=n.Buffer.from(N,"utf8"));try{_.send(N)}catch(L){return K(L)}K()}function A(N){_.close(),N()}return b};e.browserStreamBuilder=v}),GF={};Dg(GF,{Server:()=>Wi,Socket:()=>Wi,Stream:()=>Wi,_createServerHandle:()=>Wi,_normalizeArgs:()=>Wi,_setSimultaneousAccepts:()=>Wi,connect:()=>Wi,createConnection:()=>Wi,createServer:()=>Wi,default:()=>gue,isIP:()=>Wi,isIPv4:()=>Wi,isIPv6:()=>Wi});function Wi(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var gue,vue=Co(()=>{Zt(),Jt(),Qt(),gue={_createServerHandle:Wi,_normalizeArgs:Wi,_setSimultaneousAccepts:Wi,connect:Wi,createConnection:Wi,createServer:Wi,isIP:Wi,isIPv4:Wi,isIPv6:Wi,Server:Wi,Socket:Wi,Stream:Wi}}),xK=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((vue(),Si(GF))),r=t(Pf()),i=(0,r.default)("mqttjs:tcp"),a=(o,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return i("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=a}),yue={};Dg(yue,{default:()=>bue});var bue,Z7e=Co(()=>{Zt(),Jt(),Qt(),bue={}}),SK=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((Z7e(),Si(yue))),r=t((vue(),Si(GF))),i=t(Pf()),a=(0,i.default)("mqttjs:tls"),o=(s,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",r.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,a("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let c=n.default.connect(l);c.on("secureConnect",()=>{l.rejectUnauthorized&&!c.authorized?c.emit("error",new Error("TLS not authorized")):c.removeListener("error",u)});function u(f){l.rejectUnauthorized&&s.emit("error",f),c.end()}return c.on("error",u),c};e.default=o}),CK=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ko(),Si(_o)),n=Bg(),r=KF(),i,a,o;function s(){let p=new n.Transform;return p._write=(h,m,g)=>{i.send({data:h.buffer,success(){g()},fail(v){g(new Error(v))}})},p._flush=h=>{i.close({success(){h()}})},p}function l(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function c(p,h){let m=p.protocol==="wxs"?"wss":"ws",g=`${m}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(g=`${m}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(g=p.transformWsUrl(g,p,h)),g}function u(){i.onOpen(()=>{o.socketReady()}),i.onMessage(p=>{let{data:h}=p;h instanceof ArrayBuffer?h=t.Buffer.from(h):h=t.Buffer.from(h,"utf8"),a.push(h)}),i.onClose(()=>{o.emit("close"),o.end(),o.destroy()}),i.onError(p=>{let h=new Error(p.errMsg);o.destroy(h)})}var f=(p,h)=>{if(h.hostname=h.hostname||h.host,!h.hostname)throw new Error("Could not determine host. Specify host manually.");let m=h.protocolId==="MQIsdp"&&h.protocolVersion===3?"mqttv3.1":"mqtt";l(h);let g=c(h,p);i=wx.connectSocket({url:g,protocols:[m]}),a=s(),o=new r.BufferedDuplex(h,a,i),o._destroy=(y,w)=>{i.close({success(){w&&w(y)}})};let v=o.destroy;return o.destroy=(y,w)=>(o.destroy=v,setTimeout(()=>{i.close({fail(){o._destroy(y,w)}})},0),o),u(),o};e.default=f}),_K=un(e=>{Zt(),Jt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ko(),Si(_o)),n=Bg(),r=KF(),i,a,o,s=!1;function l(){let h=new n.Transform;return h._write=(m,g,v)=>{i.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},h._flush=m=>{i.closeSocket({success(){m()}})},h}function c(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function u(h,m){let g=h.protocol==="alis"?"wss":"ws",v=`${g}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(v=`${g}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(v=h.transformWsUrl(v,h,m)),v}function f(){s||(s=!0,i.onSocketOpen(()=>{o.socketReady()}),i.onSocketMessage(h=>{if(typeof h.data=="string"){let m=t.Buffer.from(h.data,"base64");a.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let g=m.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),a.push(g)}),m.readAsArrayBuffer(h.data)}}),i.onSocketClose(()=>{o.end(),o.destroy()}),i.onSocketError(h=>{o.destroy(h)}))}var p=(h,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let g=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let v=u(m,h);return i=m.my,i.connectSocket({url:v,protocols:g}),a=l(),o=new r.BufferedDuplex(m,a,i),f(),o};e.default=p}),Q7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(Pf()),r=t((Y7e(),Si(zce))),i=t(TI()),a=t(vE());typeof(li==null?void 0:li.nextTick)!="function"&&(li.nextTick=setImmediate);var o=(0,n.default)("mqttjs"),s=null;function l(f){let p;f.auth&&(p=f.auth.match(/^(.+):(.+)$/),p?(f.username=p[1],f.password=p[2]):f.username=f.auth)}function c(f,p){var h,m,g,v;if(o("connecting to an MQTT broker..."),typeof f=="object"&&!p&&(p=f,f=""),p=p||{},f&&typeof f=="string"){let b=r.default.parse(f,!0),C={};if(b.port!=null&&(C.port=Number(b.port)),C.host=b.hostname,C.query=b.query,C.auth=b.auth,C.protocol=b.protocol,C.path=b.path,C.protocol=(h=C.protocol)===null||h===void 0?void 0:h.replace(/:$/,""),p=Object.assign(Object.assign({},C),p),!p.protocol)throw new Error("Missing protocol")}if(p.unixSocket=p.unixSocket||((m=p.protocol)===null||m===void 0?void 0:m.includes("+unix")),p.unixSocket?p.protocol=p.protocol.replace("+unix",""):!(!((g=p.protocol)===null||g===void 0)&&g.startsWith("ws"))&&!(!((v=p.protocol)===null||v===void 0)&&v.startsWith("wx"))&&delete p.path,l(p),p.query&&typeof p.query.clientId=="string"&&(p.clientId=p.query.clientId),p.cert&&p.key)if(p.protocol){if(["mqtts","wss","wxs","alis"].indexOf(p.protocol)===-1)switch(p.protocol){case"mqtt":p.protocol="mqtts";break;case"ws":p.protocol="wss";break;case"wx":p.protocol="wxs";break;case"ali":p.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${p.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(s||(s={},!a.default&&!p.forceNativeWebSocket?(s.ws=iS().streamBuilder,s.wss=iS().streamBuilder,s.mqtt=xK().default,s.tcp=xK().default,s.ssl=SK().default,s.tls=s.ssl,s.mqtts=SK().default):(s.ws=iS().browserStreamBuilder,s.wss=iS().browserStreamBuilder,s.wx=CK().default,s.wxs=CK().default,s.ali=_K().default,s.alis=_K().default)),!s[p.protocol]){let b=["mqtts","wss"].indexOf(p.protocol)!==-1;p.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((C,k)=>b&&k%2===0?!1:typeof s[C]=="function")[0]}if(p.clean===!1&&!p.clientId)throw new Error("Missing clientId for unclean clients");p.protocol&&(p.defaultProtocol=p.protocol);function y(b){return p.servers&&((!b._reconnectCount||b._reconnectCount===p.servers.length)&&(b._reconnectCount=0),p.host=p.servers[b._reconnectCount].host,p.port=p.servers[b._reconnectCount].port,p.protocol=p.servers[b._reconnectCount].protocol?p.servers[b._reconnectCount].protocol:p.defaultProtocol,p.hostname=p.host,b._reconnectCount++),o("calling streambuilder for",p.protocol),s[p.protocol](b,p)}let w=new i.default(y,p);return w.on("error",()=>{}),w}function u(f,p,h=!0){return new Promise((m,g)=>{let v=c(f,p),y={connect:b=>{w(),m(v)},end:()=>{w(),m(v)},error:b=>{w(),v.end(),g(b)}};h===!1&&(y.close=()=>{y.error(new Error("Couldn't connect to server"))});function w(){Object.keys(y).forEach(b=>{v.off(b,y[b])})}Object.keys(y).forEach(b=>{v.on(b,y[b])})})}e.connectAsync=u,e.default=c}),kK=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(h,m,g,v){v===void 0&&(v=g);var y=Object.getOwnPropertyDescriptor(m,g);(!y||("get"in y?!m.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(h,v,y)}:function(h,m,g,v){v===void 0&&(v=g),h[v]=m[g]}),n=e&&e.__setModuleDefault||(Object.create?function(h,m){Object.defineProperty(h,"default",{enumerable:!0,value:m})}:function(h,m){h.default=m}),r=e&&e.__importStar||function(h){if(h&&h.__esModule)return h;var m={};if(h!=null)for(var g in h)g!=="default"&&Object.prototype.hasOwnProperty.call(h,g)&&t(m,h,g);return n(m,h),m},i=e&&e.__exportStar||function(h,m){for(var g in h)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&t(m,h,g)},a=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var o=a(TI());e.MqttClient=o.default;var s=a(yce());e.DefaultMessageIdProvider=s.default;var l=a(I7e());e.UniqueMessageIdProvider=l.default;var c=a(bce());e.Store=c.default;var u=r(Q7e());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var f=a(Nce());e.KeepaliveManager=f.default,e.Client=o.default,i(TI(),e),i(my(),e);var p=gE();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return p.ReasonCodes}})}),J7e=un(e=>{Zt(),Jt(),Qt();var t=e&&e.__createBinding||(Object.create?function(o,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(o,c,u)}:function(o,s,l,c){c===void 0&&(c=l),o[c]=s[l]}),n=e&&e.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),r=e&&e.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var l in o)l!=="default"&&Object.prototype.hasOwnProperty.call(o,l)&&t(s,o,l);return n(s,o),s},i=e&&e.__exportStar||function(o,s){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var a=r(kK());e.default=a,i(kK(),e)});const eMe=J7e();/*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) -*/var Mn={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function(T,D,J){T!=Array.prototype&&T!=Object.prototype&&(T[D]=J.value)},n=(typeof window<"u"&&window===oi||typeof oi<"u"&&oi!=null,oi);function r(T,D){if(D){var J=n;T=T.split(".");for(var ke=0;ke"u"||J.execScript("var "+T[0]);for(var ke;T.length&&(ke=T.shift());)T.length||D===void 0?J[ke]&&J[ke]!==Object.prototype[ke]?J=J[ke]:J=J[ke]={}:J[ke]=D}function h(T){var D=typeof T;if(D=="object")if(T){if(T instanceof Array)return"array";if(T instanceof Object)return D;var J=Object.prototype.toString.call(T);if(J=="[object Window]")return"object";if(J=="[object Array]"||typeof T.length=="number"&&typeof T.splice<"u"&&typeof T.propertyIsEnumerable<"u"&&!T.propertyIsEnumerable("splice"))return"array";if(J=="[object Function]"||typeof T.call<"u"&&typeof T.propertyIsEnumerable<"u"&&!T.propertyIsEnumerable("call"))return"function"}else return"null";else if(D=="function"&&typeof T.call>"u")return"object";return D}function m(T){var D=typeof T;return D=="object"&&T!=null||D=="function"}function g(T,D,J){p(T,D,J)}function v(T,D){function J(){}J.prototype=D.prototype,T.prototype=new J,T.prototype.constructor=T}var y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function w(T,D){for(var J,ke,Ie=1;Ie=arguments.length?Array.prototype.slice.call(T,D):Array.prototype.slice.call(T,D,J)}function S(T,D,J,ke){var Ie="Assertion failed";if(J){Ie+=": "+J;var it=ke}else T&&(Ie+=": "+T,it=D);throw Error(Ie,it||[])}function _(T,D,J){for(var ke=[],Ie=2;Ie=T.length)return String.fromCharCode.apply(null,T);for(var D="",J=0;J>2;Ie=(Ie&3)<<4|Ft>>4,Ft=(Ft&15)<<2|On>>6,On&=63,rn||(On=64,it||(Ft=64)),J.push(D[Er],D[Ie],D[Ft]||"",D[On]||"")}return J.join("")}function Y(T){var D=T.length,J=3*D/4;J%3?J=Math.floor(J):"=.".indexOf(T[D-1])!=-1&&(J="=.".indexOf(T[D-2])!=-1?J-2:J-1);var ke=new Uint8Array(J),Ie=0;return ee(T,function(it){ke[Ie++]=it}),ke.subarray(0,Ie)}function ee(T,D){function J(On){for(;ke>4),Ft!=64&&(D(it<<4&240|Ft>>2),rn!=64&&D(Ft<<6&192|rn))}}function ie(){if(!B){B={};for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),D=["+/=","+/","-_=","-_.","-_"],J=0;5>J;J++){var ke=T.concat(D[J].split(""));V[J]=ke;for(var Ie=0;Ie>>0;T=Math.floor((T-D)/4294967296)>>>0,Z=D,X=T}p("jspb.utils.splitUint64",ae,void 0);function oe(T){var D=0>T;T=Math.abs(T);var J=T>>>0;T=Math.floor((T-J)/4294967296),T>>>=0,D&&(T=~T>>>0,J=(~J>>>0)+1,4294967295T;T=2*Math.abs(T),ae(T),T=Z;var J=X;D&&(T==0?J==0?J=T=4294967295:(J--,T=4294967295):T--),Z=T,X=J}p("jspb.utils.splitZigzag64",le,void 0);function ce(T){var D=0>T?1:0;if(T=D?-T:T,T===0)0<1/T?Z=X=0:(X=0,Z=2147483648);else if(isNaN(T))X=0,Z=2147483647;else if(34028234663852886e22>>0;else if(11754943508222875e-54>T)T=Math.round(T/Math.pow(2,-149)),X=0,Z=(D<<31|T)>>>0;else{var J=Math.floor(Math.log(T)/Math.LN2);T*=Math.pow(2,-J),T=Math.round(8388608*T),16777216<=T&&++J,X=0,Z=(D<<31|J+127<<23|T&8388607)>>>0}}p("jspb.utils.splitFloat32",ce,void 0);function pe(T){var D=0>T?1:0;if(T=D?-T:T,T===0)X=0<1/T?0:2147483648,Z=0;else if(isNaN(T))X=2147483647,Z=4294967295;else if(17976931348623157e292>>0,Z=0;else if(22250738585072014e-324>T)T/=Math.pow(2,-1074),X=(D<<31|T/4294967296)>>>0,Z=T>>>0;else{var J=T,ke=0;if(2<=J)for(;2<=J&&1023>ke;)ke++,J/=2;else for(;1>J&&-1022>>0,Z=4503599627370496*T>>>0}}p("jspb.utils.splitFloat64",pe,void 0);function me(T){var D=T.charCodeAt(4),J=T.charCodeAt(5),ke=T.charCodeAt(6),Ie=T.charCodeAt(7);Z=T.charCodeAt(0)+(T.charCodeAt(1)<<8)+(T.charCodeAt(2)<<16)+(T.charCodeAt(3)<<24)>>>0,X=D+(J<<8)+(ke<<16)+(Ie<<24)>>>0}p("jspb.utils.splitHash64",me,void 0);function re(T,D){return 4294967296*D+(T>>>0)}p("jspb.utils.joinUint64",re,void 0);function fe(T,D){var J=D&2147483648;return J&&(T=~T+1>>>0,D=~D>>>0,T==0&&(D=D+1>>>0)),T=re(T,D),J?-T:T}p("jspb.utils.joinInt64",fe,void 0);function ve(T,D,J){var ke=D>>31;return J(T<<1^ke,(D<<1|T>>>31)^ke)}p("jspb.utils.toZigzag64",ve,void 0);function $e(T,D){return Ce(T,D,fe)}p("jspb.utils.joinZigzag64",$e,void 0);function Ce(T,D,J){var ke=-(T&1);return J((T>>>1|D<<31)^ke,D>>>1^ke)}p("jspb.utils.fromZigzag64",Ce,void 0);function be(T){var D=2*(T>>31)+1,J=T>>>23&255;return T&=8388607,J==255?T?NaN:1/0*D:J==0?D*Math.pow(2,-149)*T:D*Math.pow(2,J-150)*(T+Math.pow(2,23))}p("jspb.utils.joinFloat32",be,void 0);function Se(T,D){var J=2*(D>>31)+1,ke=D>>>20&2047;return T=4294967296*(D&1048575)+T,ke==2047?T?NaN:1/0*J:ke==0?J*Math.pow(2,-1074)*T:J*Math.pow(2,ke-1075)*(T+4503599627370496)}p("jspb.utils.joinFloat64",Se,void 0);function we(T,D){return String.fromCharCode(T>>>0&255,T>>>8&255,T>>>16&255,T>>>24&255,D>>>0&255,D>>>8&255,D>>>16&255,D>>>24&255)}p("jspb.utils.joinHash64",we,void 0),p("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function se(T,D){function J(Ie,it){return Ie=Ie?String(Ie):"",it?"0000000".slice(Ie.length)+Ie:Ie}if(2097151>=D)return""+re(T,D);var ke=(T>>>24|D<<8)>>>0&16777215;return D=D>>16&65535,T=(T&16777215)+6777216*ke+6710656*D,ke+=8147497*D,D*=2,1e7<=T&&(ke+=Math.floor(T/1e7),T%=1e7),1e7<=ke&&(D+=Math.floor(ke/1e7),ke%=1e7),J(D,0)+J(ke,D)+J(T,1)}p("jspb.utils.joinUnsignedDecimalString",se,void 0);function ye(T,D){var J=D&2147483648;return J&&(T=~T+1>>>0,D=~D+(T==0?1:0)>>>0),T=se(T,D),J?"-"+T:T}p("jspb.utils.joinSignedDecimalString",ye,void 0);function Oe(T,D){me(T),T=Z;var J=X;return D?ye(T,J):se(T,J)}p("jspb.utils.hash64ToDecimalString",Oe,void 0),p("jspb.utils.hash64ArrayToDecimalStrings",function(T,D){for(var J=Array(T.length),ke=0;keOn&&(Ft!==1||0>>=8}function J(){for(var Ft=0;8>Ft;Ft++)Ie[Ft]=~Ie[Ft]&255}_(0T?48+T:87+T)}function G(T){return 97<=T?T-97+10:T-48}p("jspb.utils.hash64ToHexString",function(T){var D=Array(18);D[0]="0",D[1]="x";for(var J=0;8>J;J++){var ke=T.charCodeAt(7-J);D[2*J+2]=H(ke>>4),D[2*J+3]=H(ke&15)}return D.join("")},void 0),p("jspb.utils.hexStringToHash64",function(T){T=T.toLowerCase(),_(T.length==18),_(T[0]=="0"),_(T[1]=="x");for(var D="",J=0;8>J;J++)D=String.fromCharCode(16*G(T.charCodeAt(2*J+2))+G(T.charCodeAt(2*J+3)))+D;return D},void 0),p("jspb.utils.hash64ToNumber",function(T,D){me(T),T=Z;var J=X;return D?fe(T,J):re(T,J)},void 0),p("jspb.utils.numberToHash64",function(T){return oe(T),we(Z,X)},void 0),p("jspb.utils.countVarints",function(T,D,J){for(var ke=0,Ie=D;Ie>7;return J-D-ke},void 0),p("jspb.utils.countVarintFields",function(T,D,J,ke){var Ie=0;if(ke*=8,128>ke)for(;D>=7}if(T[D++]!=it)break;for(Ie++;it=T[D++],(it&128)!=0;);}return Ie},void 0);function de(T,D,J,ke,Ie){var it=0;if(128>ke)for(;D>=7}if(T[D++]!=Ft)break;it++,D+=Ie}return it}p("jspb.utils.countFixed32Fields",function(T,D,J,ke){return de(T,D,J,8*ke+5,4)},void 0),p("jspb.utils.countFixed64Fields",function(T,D,J,ke){return de(T,D,J,8*ke+1,8)},void 0),p("jspb.utils.countDelimitedFields",function(T,D,J,ke){var Ie=0;for(ke=8*ke+2;D>=7}if(T[D++]!=it)break;Ie++;for(var Ft=0,rn=1;it=T[D++],Ft+=(it&127)*rn,rn*=128,(it&128)!=0;);D+=Ft}return Ie},void 0),p("jspb.utils.debugBytesToTextFormat",function(T){var D='"';if(T){T=xe(T);for(var J=0;JT[J]&&(D+="0"),D+=T[J].toString(16)}return D+'"'},void 0),p("jspb.utils.debugScalarToTextFormat",function(T){if(typeof T=="string"){T=String(T);for(var D=['"'],J=0;JIe||(Ie=ke,Ie in L?ke=L[Ie]:Ie in K?ke=L[Ie]=K[Ie]:(Ft=Ie.charCodeAt(0),31Ft?ke=Ie:(256>Ft?(ke="\\x",(16>Ft||256Ft&&(ke+="0")),ke+=Ft.toString(16).toUpperCase()),ke=L[Ie]=ke)),Ft=ke),D[it]=Ft}D.push('"'),T=D.join("")}else T=T.toString();return T},void 0),p("jspb.utils.stringToByteArray",function(T){for(var D=new Uint8Array(T.length),J=0;JUe.length&&Ue.push(this)},he.prototype.free=he.prototype.Ca,he.prototype.clone=function(){return We(this.b,this.h,this.c-this.h)},he.prototype.clone=he.prototype.clone,he.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},he.prototype.clear=he.prototype.clear,he.prototype.Y=function(){return this.b},he.prototype.getBuffer=he.prototype.Y,he.prototype.H=function(T,D,J){this.b=xe(T),this.h=D!==void 0?D:0,this.c=J!==void 0?this.h+J:this.b.length,this.a=this.h},he.prototype.setBlock=he.prototype.H,he.prototype.Db=function(){return this.c},he.prototype.getEnd=he.prototype.Db,he.prototype.setEnd=function(T){this.c=T},he.prototype.setEnd=he.prototype.setEnd,he.prototype.reset=function(){this.a=this.h},he.prototype.reset=he.prototype.reset,he.prototype.B=function(){return this.a},he.prototype.getCursor=he.prototype.B,he.prototype.Ma=function(T){this.a=T},he.prototype.setCursor=he.prototype.Ma,he.prototype.advance=function(T){this.a+=T,_(this.a<=this.c)},he.prototype.advance=he.prototype.advance,he.prototype.ya=function(){return this.a==this.c},he.prototype.atEnd=he.prototype.ya,he.prototype.Qb=function(){return this.a>this.c},he.prototype.pastEnd=he.prototype.Qb,he.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},he.prototype.getError=he.prototype.getError,he.prototype.w=function(T){for(var D=128,J=0,ke=0,Ie=0;4>Ie&&128<=D;Ie++)D=this.b[this.a++],J|=(D&127)<<7*Ie;if(128<=D&&(D=this.b[this.a++],J|=(D&127)<<28,ke|=(D&127)>>4),128<=D)for(Ie=0;5>Ie&&128<=D;Ie++)D=this.b[this.a++],ke|=(D&127)<<7*Ie+3;if(128>D)return T(J>>>0,ke>>>0);M("Failed to read varint, encoding is invalid."),this.v=!0},he.prototype.readSplitVarint64=he.prototype.w,he.prototype.ea=function(T){return this.w(function(D,J){return Ce(D,J,T)})},he.prototype.readSplitZigzagVarint64=he.prototype.ea,he.prototype.ta=function(T){var D=this.b,J=this.a;this.a+=8;for(var ke=0,Ie=0,it=J+7;it>=J;it--)ke=ke<<8|D[it],Ie=Ie<<8|D[it+4];return T(ke,Ie)},he.prototype.readSplitFixed64=he.prototype.ta,he.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},he.prototype.skipVarint=he.prototype.kb,he.prototype.mb=function(T){for(;128>>=7;this.a--},he.prototype.unskipVarint=he.prototype.mb,he.prototype.o=function(){var T=this.b,D=T[this.a],J=D&127;return 128>D?(this.a+=1,_(this.a<=this.c),J):(D=T[this.a+1],J|=(D&127)<<7,128>D?(this.a+=2,_(this.a<=this.c),J):(D=T[this.a+2],J|=(D&127)<<14,128>D?(this.a+=3,_(this.a<=this.c),J):(D=T[this.a+3],J|=(D&127)<<21,128>D?(this.a+=4,_(this.a<=this.c),J):(D=T[this.a+4],J|=(D&15)<<28,128>D?(this.a+=5,_(this.a<=this.c),J>>>0):(this.a+=5,128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&_(!1),_(this.a<=this.c),J)))))},he.prototype.readUnsignedVarint32=he.prototype.o,he.prototype.da=function(){return~~this.o()},he.prototype.readSignedVarint32=he.prototype.da,he.prototype.O=function(){return this.o().toString()},he.prototype.Ea=function(){return this.da().toString()},he.prototype.readSignedVarint32String=he.prototype.Ea,he.prototype.Ia=function(){var T=this.o();return T>>>1^-(T&1)},he.prototype.readZigzagVarint32=he.prototype.Ia,he.prototype.Ga=function(){return this.w(re)},he.prototype.readUnsignedVarint64=he.prototype.Ga,he.prototype.Ha=function(){return this.w(se)},he.prototype.readUnsignedVarint64String=he.prototype.Ha,he.prototype.sa=function(){return this.w(fe)},he.prototype.readSignedVarint64=he.prototype.sa,he.prototype.Fa=function(){return this.w(ye)},he.prototype.readSignedVarint64String=he.prototype.Fa,he.prototype.Ja=function(){return this.w($e)},he.prototype.readZigzagVarint64=he.prototype.Ja,he.prototype.fb=function(){return this.ea(we)},he.prototype.readZigzagVarintHash64=he.prototype.fb,he.prototype.Ka=function(){return this.ea(ye)},he.prototype.readZigzagVarint64String=he.prototype.Ka,he.prototype.Gc=function(){var T=this.b[this.a];return this.a+=1,_(this.a<=this.c),T},he.prototype.readUint8=he.prototype.Gc,he.prototype.Ec=function(){var T=this.b[this.a],D=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),T<<0|D<<8},he.prototype.readUint16=he.prototype.Ec,he.prototype.m=function(){var T=this.b[this.a],D=this.b[this.a+1],J=this.b[this.a+2],ke=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),(T<<0|D<<8|J<<16|ke<<24)>>>0},he.prototype.readUint32=he.prototype.m,he.prototype.ga=function(){var T=this.m(),D=this.m();return re(T,D)},he.prototype.readUint64=he.prototype.ga,he.prototype.ha=function(){var T=this.m(),D=this.m();return se(T,D)},he.prototype.readUint64String=he.prototype.ha,he.prototype.Xb=function(){var T=this.b[this.a];return this.a+=1,_(this.a<=this.c),T<<24>>24},he.prototype.readInt8=he.prototype.Xb,he.prototype.Vb=function(){var T=this.b[this.a],D=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),(T<<0|D<<8)<<16>>16},he.prototype.readInt16=he.prototype.Vb,he.prototype.P=function(){var T=this.b[this.a],D=this.b[this.a+1],J=this.b[this.a+2],ke=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),T<<0|D<<8|J<<16|ke<<24},he.prototype.readInt32=he.prototype.P,he.prototype.ba=function(){var T=this.m(),D=this.m();return fe(T,D)},he.prototype.readInt64=he.prototype.ba,he.prototype.ca=function(){var T=this.m(),D=this.m();return ye(T,D)},he.prototype.readInt64String=he.prototype.ca,he.prototype.aa=function(){var T=this.m();return be(T)},he.prototype.readFloat=he.prototype.aa,he.prototype.Z=function(){var T=this.m(),D=this.m();return Se(T,D)},he.prototype.readDouble=he.prototype.Z,he.prototype.pa=function(){return!!this.b[this.a++]},he.prototype.readBool=he.prototype.pa,he.prototype.ra=function(){return this.da()},he.prototype.readEnum=he.prototype.ra,he.prototype.fa=function(T){var D=this.b,J=this.a;T=J+T;for(var ke=[],Ie="";Jit)ke.push(it);else{if(192>it)continue;if(224>it){var Ft=D[J++];ke.push((it&31)<<6|Ft&63)}else if(240>it){Ft=D[J++];var rn=D[J++];ke.push((it&15)<<12|(Ft&63)<<6|rn&63)}else if(248>it){Ft=D[J++],rn=D[J++];var On=D[J++];it=(it&7)<<18|(Ft&63)<<12|(rn&63)<<6|On&63,it-=65536,ke.push((it>>10&1023)+55296,(it&1023)+56320)}}8192<=ke.length&&(Ie+=String.fromCharCode.apply(null,ke),ke.length=0)}return Ie+=F(ke),this.a=J,Ie},he.prototype.readString=he.prototype.fa,he.prototype.Dc=function(){var T=this.o();return this.fa(T)},he.prototype.readStringWithLength=he.prototype.Dc,he.prototype.qa=function(T){if(0>T||this.a+T>this.b.length)return this.v=!0,M("Invalid byte length!"),new Uint8Array(0);var D=this.b.subarray(this.a,this.a+T);return this.a+=T,_(this.a<=this.c),D},he.prototype.readBytes=he.prototype.qa,he.prototype.ia=function(){return this.w(we)},he.prototype.readVarintHash64=he.prototype.ia,he.prototype.$=function(){var T=this.b,D=this.a,J=T[D],ke=T[D+1],Ie=T[D+2],it=T[D+3],Ft=T[D+4],rn=T[D+5],On=T[D+6];return T=T[D+7],this.a+=8,String.fromCharCode(J,ke,Ie,it,Ft,rn,On,T)},he.prototype.readFixedHash64=he.prototype.$;function ge(T,D,J){this.a=We(T,D,J),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}p("jspb.BinaryReader",ge,void 0);var ze=[];ge.clearInstanceCache=function(){ze=[]},ge.getInstanceCacheLength=function(){return ze.length};function Ve(T,D,J){if(ze.length){var ke=ze.pop();return T&&ke.a.H(T,D,J),ke}return new ge(T,D,J)}ge.alloc=Ve,ge.prototype.zb=Ve,ge.prototype.alloc=ge.prototype.zb,ge.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ze.length&&ze.push(this)},ge.prototype.free=ge.prototype.Ca,ge.prototype.Fb=function(){return this.O},ge.prototype.getFieldCursor=ge.prototype.Fb,ge.prototype.B=function(){return this.a.B()},ge.prototype.getCursor=ge.prototype.B,ge.prototype.Y=function(){return this.a.Y()},ge.prototype.getBuffer=ge.prototype.Y,ge.prototype.Hb=function(){return this.c},ge.prototype.getFieldNumber=ge.prototype.Hb,ge.prototype.Lb=function(){return this.b},ge.prototype.getWireType=ge.prototype.Lb,ge.prototype.Mb=function(){return this.b==2},ge.prototype.isDelimited=ge.prototype.Mb,ge.prototype.bb=function(){return this.b==4},ge.prototype.isEndGroup=ge.prototype.bb,ge.prototype.getError=function(){return this.h||this.a.getError()},ge.prototype.getError=ge.prototype.getError,ge.prototype.H=function(T,D,J){this.a.H(T,D,J),this.b=this.c=-1},ge.prototype.setBlock=ge.prototype.H,ge.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ge.prototype.reset=ge.prototype.reset,ge.prototype.advance=function(T){this.a.advance(T)},ge.prototype.advance=ge.prototype.advance,ge.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return M("Decoder hit an error"),!1;this.O=this.a.B();var T=this.a.o(),D=T>>>3;return T&=7,T!=0&&T!=5&&T!=1&&T!=2&&T!=3&&T!=4?(M("Invalid wire type: %s (at position %s)",T,this.O),this.h=!0,!1):(this.c=D,this.b=T,!0)},ge.prototype.nextField=ge.prototype.oa,ge.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ge.prototype.unskipHeader=ge.prototype.Oa,ge.prototype.Lc=function(){var T=this.c;for(this.Oa();this.oa()&&this.c==T;)this.C();this.a.ya()||this.Oa()},ge.prototype.skipMatchingFields=ge.prototype.Lc,ge.prototype.lb=function(){this.b!=0?(M("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ge.prototype.skipVarintField=ge.prototype.lb,ge.prototype.gb=function(){if(this.b!=2)M("Invalid wire type for skipDelimitedField"),this.C();else{var T=this.a.o();this.a.advance(T)}},ge.prototype.skipDelimitedField=ge.prototype.gb,ge.prototype.hb=function(){this.b!=5?(M("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ge.prototype.skipFixed32Field=ge.prototype.hb,ge.prototype.ib=function(){this.b!=1?(M("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ge.prototype.skipFixed64Field=ge.prototype.ib,ge.prototype.jb=function(){var T=this.c;do{if(!this.oa()){M("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=T&&(M("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ge.prototype.skipGroup=ge.prototype.jb,ge.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:M("Invalid wire encoding for field.")}},ge.prototype.skipField=ge.prototype.C,ge.prototype.Hc=function(T,D){this.v===null&&(this.v={}),_(!this.v[T]),this.v[T]=D},ge.prototype.registerReadCallback=ge.prototype.Hc,ge.prototype.Ic=function(T){return _(this.v!==null),T=this.v[T],_(T),T(this)},ge.prototype.runReadCallback=ge.prototype.Ic,ge.prototype.Yb=function(T,D){_(this.b==2);var J=this.a.c,ke=this.a.o();ke=this.a.B()+ke,this.a.setEnd(ke),D(T,this),this.a.Ma(ke),this.a.setEnd(J)},ge.prototype.readMessage=ge.prototype.Yb,ge.prototype.Ub=function(T,D,J){_(this.b==3),_(this.c==T),J(D,this),this.h||this.b==4||(M("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ge.prototype.readGroup=ge.prototype.Ub,ge.prototype.Gb=function(){_(this.b==2);var T=this.a.o(),D=this.a.B(),J=D+T;return T=We(this.a.Y(),D,T),this.a.Ma(J),T},ge.prototype.getFieldDecoder=ge.prototype.Gb,ge.prototype.P=function(){return _(this.b==0),this.a.da()},ge.prototype.readInt32=ge.prototype.P,ge.prototype.Wb=function(){return _(this.b==0),this.a.Ea()},ge.prototype.readInt32String=ge.prototype.Wb,ge.prototype.ba=function(){return _(this.b==0),this.a.sa()},ge.prototype.readInt64=ge.prototype.ba,ge.prototype.ca=function(){return _(this.b==0),this.a.Fa()},ge.prototype.readInt64String=ge.prototype.ca,ge.prototype.m=function(){return _(this.b==0),this.a.o()},ge.prototype.readUint32=ge.prototype.m,ge.prototype.Fc=function(){return _(this.b==0),this.a.O()},ge.prototype.readUint32String=ge.prototype.Fc,ge.prototype.ga=function(){return _(this.b==0),this.a.Ga()},ge.prototype.readUint64=ge.prototype.ga,ge.prototype.ha=function(){return _(this.b==0),this.a.Ha()},ge.prototype.readUint64String=ge.prototype.ha,ge.prototype.zc=function(){return _(this.b==0),this.a.Ia()},ge.prototype.readSint32=ge.prototype.zc,ge.prototype.Ac=function(){return _(this.b==0),this.a.Ja()},ge.prototype.readSint64=ge.prototype.Ac,ge.prototype.Bc=function(){return _(this.b==0),this.a.Ka()},ge.prototype.readSint64String=ge.prototype.Bc,ge.prototype.Rb=function(){return _(this.b==5),this.a.m()},ge.prototype.readFixed32=ge.prototype.Rb,ge.prototype.Sb=function(){return _(this.b==1),this.a.ga()},ge.prototype.readFixed64=ge.prototype.Sb,ge.prototype.Tb=function(){return _(this.b==1),this.a.ha()},ge.prototype.readFixed64String=ge.prototype.Tb,ge.prototype.vc=function(){return _(this.b==5),this.a.P()},ge.prototype.readSfixed32=ge.prototype.vc,ge.prototype.wc=function(){return _(this.b==5),this.a.P().toString()},ge.prototype.readSfixed32String=ge.prototype.wc,ge.prototype.xc=function(){return _(this.b==1),this.a.ba()},ge.prototype.readSfixed64=ge.prototype.xc,ge.prototype.yc=function(){return _(this.b==1),this.a.ca()},ge.prototype.readSfixed64String=ge.prototype.yc,ge.prototype.aa=function(){return _(this.b==5),this.a.aa()},ge.prototype.readFloat=ge.prototype.aa,ge.prototype.Z=function(){return _(this.b==1),this.a.Z()},ge.prototype.readDouble=ge.prototype.Z,ge.prototype.pa=function(){return _(this.b==0),!!this.a.o()},ge.prototype.readBool=ge.prototype.pa,ge.prototype.ra=function(){return _(this.b==0),this.a.sa()},ge.prototype.readEnum=ge.prototype.ra,ge.prototype.fa=function(){_(this.b==2);var T=this.a.o();return this.a.fa(T)},ge.prototype.readString=ge.prototype.fa,ge.prototype.qa=function(){_(this.b==2);var T=this.a.o();return this.a.qa(T)},ge.prototype.readBytes=ge.prototype.qa,ge.prototype.ia=function(){return _(this.b==0),this.a.ia()},ge.prototype.readVarintHash64=ge.prototype.ia,ge.prototype.Cc=function(){return _(this.b==0),this.a.fb()},ge.prototype.readSintHash64=ge.prototype.Cc,ge.prototype.w=function(T){return _(this.b==0),this.a.w(T)},ge.prototype.readSplitVarint64=ge.prototype.w,ge.prototype.ea=function(T){return _(this.b==0),this.a.w(function(D,J){return Ce(D,J,T)})},ge.prototype.readSplitZigzagVarint64=ge.prototype.ea,ge.prototype.$=function(){return _(this.b==1),this.a.$()},ge.prototype.readFixedHash64=ge.prototype.$,ge.prototype.ta=function(T){return _(this.b==1),this.a.ta(T)},ge.prototype.readSplitFixed64=ge.prototype.ta;function Be(T,D){_(T.b==2);var J=T.a.o();J=T.a.B()+J;for(var ke=[];T.a.B()D.length?J.length:D.length;for(T.b&&(ke[0]=T.b,Ie=1);IeT),_(0<=D&&4294967296>D);0>>7|D<<25)>>>0,D>>>=7;this.a.push(T)},vt.prototype.writeSplitVarint64=vt.prototype.l,vt.prototype.A=function(T,D){_(T==Math.floor(T)),_(D==Math.floor(D)),_(0<=T&&4294967296>T),_(0<=D&&4294967296>D),this.s(T),this.s(D)},vt.prototype.writeSplitFixed64=vt.prototype.A,vt.prototype.j=function(T){for(_(T==Math.floor(T)),_(0<=T&&4294967296>T);127>>=7;this.a.push(T)},vt.prototype.writeUnsignedVarint32=vt.prototype.j,vt.prototype.M=function(T){if(_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),0<=T)this.j(T);else{for(var D=0;9>D;D++)this.a.push(T&127|128),T>>=7;this.a.push(1)}},vt.prototype.writeSignedVarint32=vt.prototype.M,vt.prototype.va=function(T){_(T==Math.floor(T)),_(0<=T&&18446744073709552e3>T),oe(T),this.l(Z,X)},vt.prototype.writeUnsignedVarint64=vt.prototype.va,vt.prototype.ua=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=T&&9223372036854776e3>T),oe(T),this.l(Z,X)},vt.prototype.writeSignedVarint64=vt.prototype.ua,vt.prototype.wa=function(T){_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),this.j((T<<1^T>>31)>>>0)},vt.prototype.writeZigzagVarint32=vt.prototype.wa,vt.prototype.xa=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=T&&9223372036854776e3>T),le(T),this.l(Z,X)},vt.prototype.writeZigzagVarint64=vt.prototype.xa,vt.prototype.Ta=function(T){this.W(z(T))},vt.prototype.writeZigzagVarint64String=vt.prototype.Ta,vt.prototype.W=function(T){var D=this;me(T),ve(Z,X,function(J,ke){D.l(J>>>0,ke>>>0)})},vt.prototype.writeZigzagVarintHash64=vt.prototype.W,vt.prototype.be=function(T){_(T==Math.floor(T)),_(0<=T&&256>T),this.a.push(T>>>0&255)},vt.prototype.writeUint8=vt.prototype.be,vt.prototype.ae=function(T){_(T==Math.floor(T)),_(0<=T&&65536>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255)},vt.prototype.writeUint16=vt.prototype.ae,vt.prototype.s=function(T){_(T==Math.floor(T)),_(0<=T&&4294967296>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255),this.a.push(T>>>16&255),this.a.push(T>>>24&255)},vt.prototype.writeUint32=vt.prototype.s,vt.prototype.V=function(T){_(T==Math.floor(T)),_(0<=T&&18446744073709552e3>T),ae(T),this.s(Z),this.s(X)},vt.prototype.writeUint64=vt.prototype.V,vt.prototype.Qc=function(T){_(T==Math.floor(T)),_(-128<=T&&128>T),this.a.push(T>>>0&255)},vt.prototype.writeInt8=vt.prototype.Qc,vt.prototype.Pc=function(T){_(T==Math.floor(T)),_(-32768<=T&&32768>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255)},vt.prototype.writeInt16=vt.prototype.Pc,vt.prototype.S=function(T){_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255),this.a.push(T>>>16&255),this.a.push(T>>>24&255)},vt.prototype.writeInt32=vt.prototype.S,vt.prototype.T=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=T&&9223372036854776e3>T),oe(T),this.A(Z,X)},vt.prototype.writeInt64=vt.prototype.T,vt.prototype.ka=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=+T&&9223372036854776e3>+T),me(z(T)),this.A(Z,X)},vt.prototype.writeInt64String=vt.prototype.ka,vt.prototype.L=function(T){_(T===1/0||T===-1/0||isNaN(T)||-34028234663852886e22<=T&&34028234663852886e22>=T),ce(T),this.s(Z)},vt.prototype.writeFloat=vt.prototype.L,vt.prototype.J=function(T){_(T===1/0||T===-1/0||isNaN(T)||-17976931348623157e292<=T&&17976931348623157e292>=T),pe(T),this.s(Z),this.s(X)},vt.prototype.writeDouble=vt.prototype.J,vt.prototype.I=function(T){_(typeof T=="boolean"||typeof T=="number"),this.a.push(T?1:0)},vt.prototype.writeBool=vt.prototype.I,vt.prototype.R=function(T){_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),this.M(T)},vt.prototype.writeEnum=vt.prototype.R,vt.prototype.ja=function(T){this.a.push.apply(this.a,T)},vt.prototype.writeBytes=vt.prototype.ja,vt.prototype.N=function(T){me(T),this.l(Z,X)},vt.prototype.writeVarintHash64=vt.prototype.N,vt.prototype.K=function(T){me(T),this.s(Z),this.s(X)},vt.prototype.writeFixedHash64=vt.prototype.K,vt.prototype.U=function(T){var D=this.a.length;E(T);for(var J=0;Jke)this.a.push(ke);else if(2048>ke)this.a.push(ke>>6|192),this.a.push(ke&63|128);else if(65536>ke)if(55296<=ke&&56319>=ke&&J+1=Ie&&(ke=1024*(ke-55296)+Ie-56320+65536,this.a.push(ke>>18|240),this.a.push(ke>>12&63|128),this.a.push(ke>>6&63|128),this.a.push(ke&63|128),J++)}else this.a.push(ke>>12|224),this.a.push(ke>>6&63|128),this.a.push(ke&63|128)}return this.a.length-D},vt.prototype.writeString=vt.prototype.U;function At(T,D){this.lo=T,this.hi=D}p("jspb.arith.UInt64",At,void 0),At.prototype.cmp=function(T){return this.hi>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},At.prototype.rightShift=At.prototype.La,At.prototype.Da=function(){return new At(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},At.prototype.leftShift=At.prototype.Da,At.prototype.cb=function(){return!!(this.hi&2147483648)},At.prototype.msb=At.prototype.cb,At.prototype.Ob=function(){return!!(this.lo&1)},At.prototype.lsb=At.prototype.Ob,At.prototype.Ua=function(){return this.lo==0&&this.hi==0},At.prototype.zero=At.prototype.Ua,At.prototype.add=function(T){return new At((this.lo+T.lo&4294967295)>>>0>>>0,((this.hi+T.hi&4294967295)>>>0)+(4294967296<=this.lo+T.lo?1:0)>>>0)},At.prototype.add=At.prototype.add,At.prototype.sub=function(T){return new At((this.lo-T.lo&4294967295)>>>0>>>0,((this.hi-T.hi&4294967295)>>>0)-(0>this.lo-T.lo?1:0)>>>0)},At.prototype.sub=At.prototype.sub;function dt(T,D){var J=T&65535;T>>>=16;var ke=D&65535,Ie=D>>>16;for(D=J*ke+65536*(J*Ie&65535)+65536*(T*ke&65535),J=T*Ie+(J*Ie>>>16)+(T*ke>>>16);4294967296<=D;)D-=4294967296,J+=1;return new At(D>>>0,J>>>0)}At.mul32x32=dt,At.prototype.eb=function(T){var D=dt(this.lo,T);return T=dt(this.hi,T),T.hi=T.lo,T.lo=0,D.add(T)},At.prototype.mul=At.prototype.eb,At.prototype.Xa=function(T){if(T==0)return[];var D=new At(0,0),J=new At(this.lo,this.hi);T=new At(T,0);for(var ke=new At(1,0);!T.cb();)T=T.Da(),ke=ke.Da();for(;!ke.Ua();)0>=T.cmp(J)&&(D=D.add(ke),J=J.sub(T)),T=T.La(),ke=ke.La();return[D,J]},At.prototype.div=At.prototype.Xa,At.prototype.toString=function(){for(var T="",D=this;!D.Ua();){D=D.Xa(10);var J=D[0];T=D[1].lo+T,D=J}return T==""&&(T="0"),T},At.prototype.toString=At.prototype.toString;function De(T){for(var D=new At(0,0),J=new At(0,0),ke=0;keT[ke]||"9">>0>>>0,((this.hi+T.hi&4294967295)>>>0)+(4294967296<=this.lo+T.lo?1:0)>>>0)},Ye.prototype.add=Ye.prototype.add,Ye.prototype.sub=function(T){return new Ye((this.lo-T.lo&4294967295)>>>0>>>0,((this.hi-T.hi&4294967295)>>>0)-(0>this.lo-T.lo?1:0)>>>0)},Ye.prototype.sub=Ye.prototype.sub,Ye.prototype.clone=function(){return new Ye(this.lo,this.hi)},Ye.prototype.clone=Ye.prototype.clone,Ye.prototype.toString=function(){var T=(this.hi&2147483648)!=0,D=new At(this.lo,this.hi);return T&&(D=new At(0,0).sub(D)),(T?"-":"")+D.toString()},Ye.prototype.toString=Ye.prototype.toString;function ot(T){var D=0>>=7,T.b++;D.push(J),T.b++}Re.prototype.pb=function(T,D,J){It(this,T.subarray(D,J))},Re.prototype.writeSerializedMessage=Re.prototype.pb,Re.prototype.Pb=function(T,D,J){T!=null&&D!=null&&J!=null&&this.pb(T,D,J)},Re.prototype.maybeWriteSerializedMessage=Re.prototype.Pb,Re.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Re.prototype.reset=Re.prototype.reset,Re.prototype.ab=function(){_(this.h.length==0);for(var T=new Uint8Array(this.b+this.a.length()),D=this.c,J=D.length,ke=0,Ie=0;IeD),pn(this,T,D))},Re.prototype.writeInt32=Re.prototype.S,Re.prototype.ob=function(T,D){D!=null&&(D=parseInt(D,10),_(-2147483648<=D&&2147483648>D),pn(this,T,D))},Re.prototype.writeInt32String=Re.prototype.ob,Re.prototype.T=function(T,D){D!=null&&(_(-9223372036854776e3<=D&&9223372036854776e3>D),D!=null&&(Mt(this,T,0),this.a.ua(D)))},Re.prototype.writeInt64=Re.prototype.T,Re.prototype.ka=function(T,D){D!=null&&(D=ot(D),Mt(this,T,0),this.a.l(D.lo,D.hi))},Re.prototype.writeInt64String=Re.prototype.ka,Re.prototype.s=function(T,D){D!=null&&(_(0<=D&&4294967296>D),dn(this,T,D))},Re.prototype.writeUint32=Re.prototype.s,Re.prototype.ub=function(T,D){D!=null&&(D=parseInt(D,10),_(0<=D&&4294967296>D),dn(this,T,D))},Re.prototype.writeUint32String=Re.prototype.ub,Re.prototype.V=function(T,D){D!=null&&(_(0<=D&&18446744073709552e3>D),D!=null&&(Mt(this,T,0),this.a.va(D)))},Re.prototype.writeUint64=Re.prototype.V,Re.prototype.vb=function(T,D){D!=null&&(D=De(D),Mt(this,T,0),this.a.l(D.lo,D.hi))},Re.prototype.writeUint64String=Re.prototype.vb,Re.prototype.rb=function(T,D){D!=null&&(_(-2147483648<=D&&2147483648>D),D!=null&&(Mt(this,T,0),this.a.wa(D)))},Re.prototype.writeSint32=Re.prototype.rb,Re.prototype.sb=function(T,D){D!=null&&(_(-9223372036854776e3<=D&&9223372036854776e3>D),D!=null&&(Mt(this,T,0),this.a.xa(D)))},Re.prototype.writeSint64=Re.prototype.sb,Re.prototype.$d=function(T,D){D!=null&&D!=null&&(Mt(this,T,0),this.a.W(D))},Re.prototype.writeSintHash64=Re.prototype.$d,Re.prototype.Zd=function(T,D){D!=null&&D!=null&&(Mt(this,T,0),this.a.Ta(D))},Re.prototype.writeSint64String=Re.prototype.Zd,Re.prototype.Pa=function(T,D){D!=null&&(_(0<=D&&4294967296>D),Mt(this,T,5),this.a.s(D))},Re.prototype.writeFixed32=Re.prototype.Pa,Re.prototype.Qa=function(T,D){D!=null&&(_(0<=D&&18446744073709552e3>D),Mt(this,T,1),this.a.V(D))},Re.prototype.writeFixed64=Re.prototype.Qa,Re.prototype.nb=function(T,D){D!=null&&(D=De(D),Mt(this,T,1),this.a.A(D.lo,D.hi))},Re.prototype.writeFixed64String=Re.prototype.nb,Re.prototype.Ra=function(T,D){D!=null&&(_(-2147483648<=D&&2147483648>D),Mt(this,T,5),this.a.S(D))},Re.prototype.writeSfixed32=Re.prototype.Ra,Re.prototype.Sa=function(T,D){D!=null&&(_(-9223372036854776e3<=D&&9223372036854776e3>D),Mt(this,T,1),this.a.T(D))},Re.prototype.writeSfixed64=Re.prototype.Sa,Re.prototype.qb=function(T,D){D!=null&&(D=ot(D),Mt(this,T,1),this.a.A(D.lo,D.hi))},Re.prototype.writeSfixed64String=Re.prototype.qb,Re.prototype.L=function(T,D){D!=null&&(Mt(this,T,5),this.a.L(D))},Re.prototype.writeFloat=Re.prototype.L,Re.prototype.J=function(T,D){D!=null&&(Mt(this,T,1),this.a.J(D))},Re.prototype.writeDouble=Re.prototype.J,Re.prototype.I=function(T,D){D!=null&&(_(typeof D=="boolean"||typeof D=="number"),Mt(this,T,0),this.a.I(D))},Re.prototype.writeBool=Re.prototype.I,Re.prototype.R=function(T,D){D!=null&&(_(-2147483648<=D&&2147483648>D),Mt(this,T,0),this.a.M(D))},Re.prototype.writeEnum=Re.prototype.R,Re.prototype.U=function(T,D){D!=null&&(T=rt(this,T),this.a.U(D),$t(this,T))},Re.prototype.writeString=Re.prototype.U,Re.prototype.ja=function(T,D){D!=null&&(D=xe(D),Mt(this,T,2),this.a.j(D.length),It(this,D))},Re.prototype.writeBytes=Re.prototype.ja,Re.prototype.Rc=function(T,D,J){D!=null&&(T=rt(this,T),J(D,this),$t(this,T))},Re.prototype.writeMessage=Re.prototype.Rc,Re.prototype.Sc=function(T,D,J){D!=null&&(Mt(this,1,3),Mt(this,2,0),this.a.M(T),T=rt(this,3),J(D,this),$t(this,T),Mt(this,1,4))},Re.prototype.writeMessageSet=Re.prototype.Sc,Re.prototype.Oc=function(T,D,J){D!=null&&(Mt(this,T,3),J(D,this),Mt(this,T,4))},Re.prototype.writeGroup=Re.prototype.Oc,Re.prototype.K=function(T,D){D!=null&&(_(D.length==8),Mt(this,T,1),this.a.K(D))},Re.prototype.writeFixedHash64=Re.prototype.K,Re.prototype.N=function(T,D){D!=null&&(_(D.length==8),Mt(this,T,0),this.a.N(D))},Re.prototype.writeVarintHash64=Re.prototype.N,Re.prototype.A=function(T,D,J){Mt(this,T,1),this.a.A(D,J)},Re.prototype.writeSplitFixed64=Re.prototype.A,Re.prototype.l=function(T,D,J){Mt(this,T,0),this.a.l(D,J)},Re.prototype.writeSplitVarint64=Re.prototype.l,Re.prototype.tb=function(T,D,J){Mt(this,T,0);var ke=this.a;ve(D,J,function(Ie,it){ke.l(Ie>>>0,it>>>0)})},Re.prototype.writeSplitZigzagVarint64=Re.prototype.tb,Re.prototype.Ed=function(T,D){if(D!=null)for(var J=0;J>>0,rn>>>0)});$t(this,T)}},Re.prototype.writePackedSplitZigzagVarint64=Re.prototype.od,Re.prototype.dd=function(T,D){if(D!=null&&D.length){T=rt(this,T);for(var J=0;J0&&t.writeString(1,n),n=e.getNickname(),n.length>0&&t.writeString(2,n),n=e.getAvatar(),n.length>0&&t.writeString(3,n),n=e.getType(),n.length>0&&t.writeString(4,n),n=e.getExtra(),n.length>0&&t.writeString(5,n)};proto.User.prototype.getUid=function(){return Mn.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return Mn.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return Mn.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return Mn.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return Mn.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return Mn.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return Mn.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return Mn.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return Mn.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return Mn.Message.setProto3StringField(this,5,e)};const EK=proto;var ZF=YF,LI=(function(){return this?this:typeof window<"u"?window:typeof LI<"u"?LI:typeof self<"u"?self:Function("return this")()}).call(null);ZF.exportSymbol("proto.Thread",null,LI);proto.Thread=function(e){Mn.Message.initialize(this,e,0,-1,null,null)};ZF.inherits(proto.Thread,Mn.Message);ZF.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");Mn.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,t){var n,r={uid:Mn.Message.getFieldWithDefault(t,1,""),topic:Mn.Message.getFieldWithDefault(t,2,""),type:Mn.Message.getFieldWithDefault(t,3,""),state:Mn.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Mn.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new Mn.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)};proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=t.readString();e.setType(r);break;case 4:var r=t.readString();e.setState(r);break;case 5:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 6:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new Mn.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getTopic(),n.length>0&&t.writeString(2,n),n=e.getType(),n.length>0&&t.writeString(3,n),n=e.getState(),n.length>0&&t.writeString(4,n),n=e.getUser(),n!=null&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(6,n)};proto.Thread.prototype.getUid=function(){return Mn.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return Mn.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return Mn.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return Mn.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return Mn.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return Mn.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return Mn.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return Mn.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return Mn.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return Mn.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return Mn.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return Mn.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return Mn.Message.setProto3StringField(this,6,e)};const rMe=proto;var QF=YF,BI=(function(){return this?this:typeof window<"u"?window:typeof BI<"u"?BI:typeof self<"u"?self:Function("return this")()}).call(null);QF.exportSymbol("proto.Message",null,BI);proto.Message=function(e){Mn.Message.initialize(this,e,0,-1,null,null)};QF.inherits(proto.Message,Mn.Message);QF.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");Mn.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,t){var n,r={uid:Mn.Message.getFieldWithDefault(t,1,""),type:Mn.Message.getFieldWithDefault(t,2,""),content:Mn.Message.getFieldWithDefault(t,3,""),status:Mn.Message.getFieldWithDefault(t,4,""),createdat:Mn.Message.getFieldWithDefault(t,5,""),client:Mn.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Mn.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new Mn.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)};proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setType(r);break;case 3:var r=t.readString();e.setContent(r);break;case 4:var r=t.readString();e.setStatus(r);break;case 5:var r=t.readString();e.setCreatedat(r);break;case 6:var r=t.readString();e.setClient(r);break;case 7:var r=new proto.Thread;t.readMessage(r,proto.Thread.deserializeBinaryFromReader),e.setThread(r);break;case 8:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 9:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new Mn.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getType(),n.length>0&&t.writeString(2,n),n=e.getContent(),n.length>0&&t.writeString(3,n),n=e.getStatus(),n.length>0&&t.writeString(4,n),n=e.getCreatedat(),n.length>0&&t.writeString(5,n),n=e.getClient(),n.length>0&&t.writeString(6,n),n=e.getThread(),n!=null&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),n=e.getUser(),n!=null&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(9,n)};proto.Message.prototype.getUid=function(){return Mn.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return Mn.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return Mn.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return Mn.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return Mn.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return Mn.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return Mn.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return Mn.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return Mn.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return Mn.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return Mn.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return Mn.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return Mn.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return Mn.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return Mn.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return Mn.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return Mn.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return Mn.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return Mn.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return Mn.Message.setProto3StringField(this,9,e)};const xue=proto,iMe="modulepreload",aMe=function(e){return"/agent/"+e},$K={},Sue=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=aMe(l),l in $K)return;$K[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":iMe,c||(f.as="script"),f.crossOrigin="",f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};//! moment.js +*/var Mn={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function(T,D,J){T!=Array.prototype&&T!=Object.prototype&&(T[D]=J.value)},n=(typeof window<"u"&&window===oi||typeof oi<"u"&&oi!=null,oi);function r(T,D){if(D){var J=n;T=T.split(".");for(var ke=0;ke"u"||J.execScript("var "+T[0]);for(var ke;T.length&&(ke=T.shift());)T.length||D===void 0?J[ke]&&J[ke]!==Object.prototype[ke]?J=J[ke]:J=J[ke]={}:J[ke]=D}function h(T){var D=typeof T;if(D=="object")if(T){if(T instanceof Array)return"array";if(T instanceof Object)return D;var J=Object.prototype.toString.call(T);if(J=="[object Window]")return"object";if(J=="[object Array]"||typeof T.length=="number"&&typeof T.splice<"u"&&typeof T.propertyIsEnumerable<"u"&&!T.propertyIsEnumerable("splice"))return"array";if(J=="[object Function]"||typeof T.call<"u"&&typeof T.propertyIsEnumerable<"u"&&!T.propertyIsEnumerable("call"))return"function"}else return"null";else if(D=="function"&&typeof T.call>"u")return"object";return D}function m(T){var D=typeof T;return D=="object"&&T!=null||D=="function"}function g(T,D,J){p(T,D,J)}function v(T,D){function J(){}J.prototype=D.prototype,T.prototype=new J,T.prototype.constructor=T}var y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function w(T,D){for(var J,ke,Ie=1;Ie=arguments.length?Array.prototype.slice.call(T,D):Array.prototype.slice.call(T,D,J)}function S(T,D,J,ke){var Ie="Assertion failed";if(J){Ie+=": "+J;var it=ke}else T&&(Ie+=": "+T,it=D);throw Error(Ie,it||[])}function _(T,D,J){for(var ke=[],Ie=2;Ie=T.length)return String.fromCharCode.apply(null,T);for(var D="",J=0;J>2;Ie=(Ie&3)<<4|Ft>>4,Ft=(Ft&15)<<2|On>>6,On&=63,rn||(On=64,it||(Ft=64)),J.push(D[Er],D[Ie],D[Ft]||"",D[On]||"")}return J.join("")}function Y(T){var D=T.length,J=3*D/4;J%3?J=Math.floor(J):"=.".indexOf(T[D-1])!=-1&&(J="=.".indexOf(T[D-2])!=-1?J-2:J-1);var ke=new Uint8Array(J),Ie=0;return ee(T,function(it){ke[Ie++]=it}),ke.subarray(0,Ie)}function ee(T,D){function J(On){for(;ke>4),Ft!=64&&(D(it<<4&240|Ft>>2),rn!=64&&D(Ft<<6&192|rn))}}function ie(){if(!B){B={};for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),D=["+/=","+/","-_=","-_.","-_"],J=0;5>J;J++){var ke=T.concat(D[J].split(""));V[J]=ke;for(var Ie=0;Ie>>0;T=Math.floor((T-D)/4294967296)>>>0,Z=D,X=T}p("jspb.utils.splitUint64",ae,void 0);function oe(T){var D=0>T;T=Math.abs(T);var J=T>>>0;T=Math.floor((T-J)/4294967296),T>>>=0,D&&(T=~T>>>0,J=(~J>>>0)+1,4294967295T;T=2*Math.abs(T),ae(T),T=Z;var J=X;D&&(T==0?J==0?J=T=4294967295:(J--,T=4294967295):T--),Z=T,X=J}p("jspb.utils.splitZigzag64",le,void 0);function ce(T){var D=0>T?1:0;if(T=D?-T:T,T===0)0<1/T?Z=X=0:(X=0,Z=2147483648);else if(isNaN(T))X=0,Z=2147483647;else if(34028234663852886e22>>0;else if(11754943508222875e-54>T)T=Math.round(T/Math.pow(2,-149)),X=0,Z=(D<<31|T)>>>0;else{var J=Math.floor(Math.log(T)/Math.LN2);T*=Math.pow(2,-J),T=Math.round(8388608*T),16777216<=T&&++J,X=0,Z=(D<<31|J+127<<23|T&8388607)>>>0}}p("jspb.utils.splitFloat32",ce,void 0);function pe(T){var D=0>T?1:0;if(T=D?-T:T,T===0)X=0<1/T?0:2147483648,Z=0;else if(isNaN(T))X=2147483647,Z=4294967295;else if(17976931348623157e292>>0,Z=0;else if(22250738585072014e-324>T)T/=Math.pow(2,-1074),X=(D<<31|T/4294967296)>>>0,Z=T>>>0;else{var J=T,ke=0;if(2<=J)for(;2<=J&&1023>ke;)ke++,J/=2;else for(;1>J&&-1022>>0,Z=4503599627370496*T>>>0}}p("jspb.utils.splitFloat64",pe,void 0);function me(T){var D=T.charCodeAt(4),J=T.charCodeAt(5),ke=T.charCodeAt(6),Ie=T.charCodeAt(7);Z=T.charCodeAt(0)+(T.charCodeAt(1)<<8)+(T.charCodeAt(2)<<16)+(T.charCodeAt(3)<<24)>>>0,X=D+(J<<8)+(ke<<16)+(Ie<<24)>>>0}p("jspb.utils.splitHash64",me,void 0);function re(T,D){return 4294967296*D+(T>>>0)}p("jspb.utils.joinUint64",re,void 0);function fe(T,D){var J=D&2147483648;return J&&(T=~T+1>>>0,D=~D>>>0,T==0&&(D=D+1>>>0)),T=re(T,D),J?-T:T}p("jspb.utils.joinInt64",fe,void 0);function ve(T,D,J){var ke=D>>31;return J(T<<1^ke,(D<<1|T>>>31)^ke)}p("jspb.utils.toZigzag64",ve,void 0);function $e(T,D){return Ce(T,D,fe)}p("jspb.utils.joinZigzag64",$e,void 0);function Ce(T,D,J){var ke=-(T&1);return J((T>>>1|D<<31)^ke,D>>>1^ke)}p("jspb.utils.fromZigzag64",Ce,void 0);function be(T){var D=2*(T>>31)+1,J=T>>>23&255;return T&=8388607,J==255?T?NaN:1/0*D:J==0?D*Math.pow(2,-149)*T:D*Math.pow(2,J-150)*(T+Math.pow(2,23))}p("jspb.utils.joinFloat32",be,void 0);function Se(T,D){var J=2*(D>>31)+1,ke=D>>>20&2047;return T=4294967296*(D&1048575)+T,ke==2047?T?NaN:1/0*J:ke==0?J*Math.pow(2,-1074)*T:J*Math.pow(2,ke-1075)*(T+4503599627370496)}p("jspb.utils.joinFloat64",Se,void 0);function we(T,D){return String.fromCharCode(T>>>0&255,T>>>8&255,T>>>16&255,T>>>24&255,D>>>0&255,D>>>8&255,D>>>16&255,D>>>24&255)}p("jspb.utils.joinHash64",we,void 0),p("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function se(T,D){function J(Ie,it){return Ie=Ie?String(Ie):"",it?"0000000".slice(Ie.length)+Ie:Ie}if(2097151>=D)return""+re(T,D);var ke=(T>>>24|D<<8)>>>0&16777215;return D=D>>16&65535,T=(T&16777215)+6777216*ke+6710656*D,ke+=8147497*D,D*=2,1e7<=T&&(ke+=Math.floor(T/1e7),T%=1e7),1e7<=ke&&(D+=Math.floor(ke/1e7),ke%=1e7),J(D,0)+J(ke,D)+J(T,1)}p("jspb.utils.joinUnsignedDecimalString",se,void 0);function ye(T,D){var J=D&2147483648;return J&&(T=~T+1>>>0,D=~D+(T==0?1:0)>>>0),T=se(T,D),J?"-"+T:T}p("jspb.utils.joinSignedDecimalString",ye,void 0);function Oe(T,D){me(T),T=Z;var J=X;return D?ye(T,J):se(T,J)}p("jspb.utils.hash64ToDecimalString",Oe,void 0),p("jspb.utils.hash64ArrayToDecimalStrings",function(T,D){for(var J=Array(T.length),ke=0;keOn&&(Ft!==1||0>>=8}function J(){for(var Ft=0;8>Ft;Ft++)Ie[Ft]=~Ie[Ft]&255}_(0T?48+T:87+T)}function G(T){return 97<=T?T-97+10:T-48}p("jspb.utils.hash64ToHexString",function(T){var D=Array(18);D[0]="0",D[1]="x";for(var J=0;8>J;J++){var ke=T.charCodeAt(7-J);D[2*J+2]=H(ke>>4),D[2*J+3]=H(ke&15)}return D.join("")},void 0),p("jspb.utils.hexStringToHash64",function(T){T=T.toLowerCase(),_(T.length==18),_(T[0]=="0"),_(T[1]=="x");for(var D="",J=0;8>J;J++)D=String.fromCharCode(16*G(T.charCodeAt(2*J+2))+G(T.charCodeAt(2*J+3)))+D;return D},void 0),p("jspb.utils.hash64ToNumber",function(T,D){me(T),T=Z;var J=X;return D?fe(T,J):re(T,J)},void 0),p("jspb.utils.numberToHash64",function(T){return oe(T),we(Z,X)},void 0),p("jspb.utils.countVarints",function(T,D,J){for(var ke=0,Ie=D;Ie>7;return J-D-ke},void 0),p("jspb.utils.countVarintFields",function(T,D,J,ke){var Ie=0;if(ke*=8,128>ke)for(;D>=7}if(T[D++]!=it)break;for(Ie++;it=T[D++],(it&128)!=0;);}return Ie},void 0);function de(T,D,J,ke,Ie){var it=0;if(128>ke)for(;D>=7}if(T[D++]!=Ft)break;it++,D+=Ie}return it}p("jspb.utils.countFixed32Fields",function(T,D,J,ke){return de(T,D,J,8*ke+5,4)},void 0),p("jspb.utils.countFixed64Fields",function(T,D,J,ke){return de(T,D,J,8*ke+1,8)},void 0),p("jspb.utils.countDelimitedFields",function(T,D,J,ke){var Ie=0;for(ke=8*ke+2;D>=7}if(T[D++]!=it)break;Ie++;for(var Ft=0,rn=1;it=T[D++],Ft+=(it&127)*rn,rn*=128,(it&128)!=0;);D+=Ft}return Ie},void 0),p("jspb.utils.debugBytesToTextFormat",function(T){var D='"';if(T){T=xe(T);for(var J=0;JT[J]&&(D+="0"),D+=T[J].toString(16)}return D+'"'},void 0),p("jspb.utils.debugScalarToTextFormat",function(T){if(typeof T=="string"){T=String(T);for(var D=['"'],J=0;JIe||(Ie=ke,Ie in L?ke=L[Ie]:Ie in K?ke=L[Ie]=K[Ie]:(Ft=Ie.charCodeAt(0),31Ft?ke=Ie:(256>Ft?(ke="\\x",(16>Ft||256Ft&&(ke+="0")),ke+=Ft.toString(16).toUpperCase()),ke=L[Ie]=ke)),Ft=ke),D[it]=Ft}D.push('"'),T=D.join("")}else T=T.toString();return T},void 0),p("jspb.utils.stringToByteArray",function(T){for(var D=new Uint8Array(T.length),J=0;JUe.length&&Ue.push(this)},he.prototype.free=he.prototype.Ca,he.prototype.clone=function(){return We(this.b,this.h,this.c-this.h)},he.prototype.clone=he.prototype.clone,he.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},he.prototype.clear=he.prototype.clear,he.prototype.Y=function(){return this.b},he.prototype.getBuffer=he.prototype.Y,he.prototype.H=function(T,D,J){this.b=xe(T),this.h=D!==void 0?D:0,this.c=J!==void 0?this.h+J:this.b.length,this.a=this.h},he.prototype.setBlock=he.prototype.H,he.prototype.Db=function(){return this.c},he.prototype.getEnd=he.prototype.Db,he.prototype.setEnd=function(T){this.c=T},he.prototype.setEnd=he.prototype.setEnd,he.prototype.reset=function(){this.a=this.h},he.prototype.reset=he.prototype.reset,he.prototype.B=function(){return this.a},he.prototype.getCursor=he.prototype.B,he.prototype.Ma=function(T){this.a=T},he.prototype.setCursor=he.prototype.Ma,he.prototype.advance=function(T){this.a+=T,_(this.a<=this.c)},he.prototype.advance=he.prototype.advance,he.prototype.ya=function(){return this.a==this.c},he.prototype.atEnd=he.prototype.ya,he.prototype.Qb=function(){return this.a>this.c},he.prototype.pastEnd=he.prototype.Qb,he.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},he.prototype.getError=he.prototype.getError,he.prototype.w=function(T){for(var D=128,J=0,ke=0,Ie=0;4>Ie&&128<=D;Ie++)D=this.b[this.a++],J|=(D&127)<<7*Ie;if(128<=D&&(D=this.b[this.a++],J|=(D&127)<<28,ke|=(D&127)>>4),128<=D)for(Ie=0;5>Ie&&128<=D;Ie++)D=this.b[this.a++],ke|=(D&127)<<7*Ie+3;if(128>D)return T(J>>>0,ke>>>0);M("Failed to read varint, encoding is invalid."),this.v=!0},he.prototype.readSplitVarint64=he.prototype.w,he.prototype.ea=function(T){return this.w(function(D,J){return Ce(D,J,T)})},he.prototype.readSplitZigzagVarint64=he.prototype.ea,he.prototype.ta=function(T){var D=this.b,J=this.a;this.a+=8;for(var ke=0,Ie=0,it=J+7;it>=J;it--)ke=ke<<8|D[it],Ie=Ie<<8|D[it+4];return T(ke,Ie)},he.prototype.readSplitFixed64=he.prototype.ta,he.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},he.prototype.skipVarint=he.prototype.kb,he.prototype.mb=function(T){for(;128>>=7;this.a--},he.prototype.unskipVarint=he.prototype.mb,he.prototype.o=function(){var T=this.b,D=T[this.a],J=D&127;return 128>D?(this.a+=1,_(this.a<=this.c),J):(D=T[this.a+1],J|=(D&127)<<7,128>D?(this.a+=2,_(this.a<=this.c),J):(D=T[this.a+2],J|=(D&127)<<14,128>D?(this.a+=3,_(this.a<=this.c),J):(D=T[this.a+3],J|=(D&127)<<21,128>D?(this.a+=4,_(this.a<=this.c),J):(D=T[this.a+4],J|=(D&15)<<28,128>D?(this.a+=5,_(this.a<=this.c),J>>>0):(this.a+=5,128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&128<=T[this.a++]&&_(!1),_(this.a<=this.c),J)))))},he.prototype.readUnsignedVarint32=he.prototype.o,he.prototype.da=function(){return~~this.o()},he.prototype.readSignedVarint32=he.prototype.da,he.prototype.O=function(){return this.o().toString()},he.prototype.Ea=function(){return this.da().toString()},he.prototype.readSignedVarint32String=he.prototype.Ea,he.prototype.Ia=function(){var T=this.o();return T>>>1^-(T&1)},he.prototype.readZigzagVarint32=he.prototype.Ia,he.prototype.Ga=function(){return this.w(re)},he.prototype.readUnsignedVarint64=he.prototype.Ga,he.prototype.Ha=function(){return this.w(se)},he.prototype.readUnsignedVarint64String=he.prototype.Ha,he.prototype.sa=function(){return this.w(fe)},he.prototype.readSignedVarint64=he.prototype.sa,he.prototype.Fa=function(){return this.w(ye)},he.prototype.readSignedVarint64String=he.prototype.Fa,he.prototype.Ja=function(){return this.w($e)},he.prototype.readZigzagVarint64=he.prototype.Ja,he.prototype.fb=function(){return this.ea(we)},he.prototype.readZigzagVarintHash64=he.prototype.fb,he.prototype.Ka=function(){return this.ea(ye)},he.prototype.readZigzagVarint64String=he.prototype.Ka,he.prototype.Gc=function(){var T=this.b[this.a];return this.a+=1,_(this.a<=this.c),T},he.prototype.readUint8=he.prototype.Gc,he.prototype.Ec=function(){var T=this.b[this.a],D=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),T<<0|D<<8},he.prototype.readUint16=he.prototype.Ec,he.prototype.m=function(){var T=this.b[this.a],D=this.b[this.a+1],J=this.b[this.a+2],ke=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),(T<<0|D<<8|J<<16|ke<<24)>>>0},he.prototype.readUint32=he.prototype.m,he.prototype.ga=function(){var T=this.m(),D=this.m();return re(T,D)},he.prototype.readUint64=he.prototype.ga,he.prototype.ha=function(){var T=this.m(),D=this.m();return se(T,D)},he.prototype.readUint64String=he.prototype.ha,he.prototype.Xb=function(){var T=this.b[this.a];return this.a+=1,_(this.a<=this.c),T<<24>>24},he.prototype.readInt8=he.prototype.Xb,he.prototype.Vb=function(){var T=this.b[this.a],D=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),(T<<0|D<<8)<<16>>16},he.prototype.readInt16=he.prototype.Vb,he.prototype.P=function(){var T=this.b[this.a],D=this.b[this.a+1],J=this.b[this.a+2],ke=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),T<<0|D<<8|J<<16|ke<<24},he.prototype.readInt32=he.prototype.P,he.prototype.ba=function(){var T=this.m(),D=this.m();return fe(T,D)},he.prototype.readInt64=he.prototype.ba,he.prototype.ca=function(){var T=this.m(),D=this.m();return ye(T,D)},he.prototype.readInt64String=he.prototype.ca,he.prototype.aa=function(){var T=this.m();return be(T)},he.prototype.readFloat=he.prototype.aa,he.prototype.Z=function(){var T=this.m(),D=this.m();return Se(T,D)},he.prototype.readDouble=he.prototype.Z,he.prototype.pa=function(){return!!this.b[this.a++]},he.prototype.readBool=he.prototype.pa,he.prototype.ra=function(){return this.da()},he.prototype.readEnum=he.prototype.ra,he.prototype.fa=function(T){var D=this.b,J=this.a;T=J+T;for(var ke=[],Ie="";Jit)ke.push(it);else{if(192>it)continue;if(224>it){var Ft=D[J++];ke.push((it&31)<<6|Ft&63)}else if(240>it){Ft=D[J++];var rn=D[J++];ke.push((it&15)<<12|(Ft&63)<<6|rn&63)}else if(248>it){Ft=D[J++],rn=D[J++];var On=D[J++];it=(it&7)<<18|(Ft&63)<<12|(rn&63)<<6|On&63,it-=65536,ke.push((it>>10&1023)+55296,(it&1023)+56320)}}8192<=ke.length&&(Ie+=String.fromCharCode.apply(null,ke),ke.length=0)}return Ie+=F(ke),this.a=J,Ie},he.prototype.readString=he.prototype.fa,he.prototype.Dc=function(){var T=this.o();return this.fa(T)},he.prototype.readStringWithLength=he.prototype.Dc,he.prototype.qa=function(T){if(0>T||this.a+T>this.b.length)return this.v=!0,M("Invalid byte length!"),new Uint8Array(0);var D=this.b.subarray(this.a,this.a+T);return this.a+=T,_(this.a<=this.c),D},he.prototype.readBytes=he.prototype.qa,he.prototype.ia=function(){return this.w(we)},he.prototype.readVarintHash64=he.prototype.ia,he.prototype.$=function(){var T=this.b,D=this.a,J=T[D],ke=T[D+1],Ie=T[D+2],it=T[D+3],Ft=T[D+4],rn=T[D+5],On=T[D+6];return T=T[D+7],this.a+=8,String.fromCharCode(J,ke,Ie,it,Ft,rn,On,T)},he.prototype.readFixedHash64=he.prototype.$;function ge(T,D,J){this.a=We(T,D,J),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}p("jspb.BinaryReader",ge,void 0);var ze=[];ge.clearInstanceCache=function(){ze=[]},ge.getInstanceCacheLength=function(){return ze.length};function Ve(T,D,J){if(ze.length){var ke=ze.pop();return T&&ke.a.H(T,D,J),ke}return new ge(T,D,J)}ge.alloc=Ve,ge.prototype.zb=Ve,ge.prototype.alloc=ge.prototype.zb,ge.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ze.length&&ze.push(this)},ge.prototype.free=ge.prototype.Ca,ge.prototype.Fb=function(){return this.O},ge.prototype.getFieldCursor=ge.prototype.Fb,ge.prototype.B=function(){return this.a.B()},ge.prototype.getCursor=ge.prototype.B,ge.prototype.Y=function(){return this.a.Y()},ge.prototype.getBuffer=ge.prototype.Y,ge.prototype.Hb=function(){return this.c},ge.prototype.getFieldNumber=ge.prototype.Hb,ge.prototype.Lb=function(){return this.b},ge.prototype.getWireType=ge.prototype.Lb,ge.prototype.Mb=function(){return this.b==2},ge.prototype.isDelimited=ge.prototype.Mb,ge.prototype.bb=function(){return this.b==4},ge.prototype.isEndGroup=ge.prototype.bb,ge.prototype.getError=function(){return this.h||this.a.getError()},ge.prototype.getError=ge.prototype.getError,ge.prototype.H=function(T,D,J){this.a.H(T,D,J),this.b=this.c=-1},ge.prototype.setBlock=ge.prototype.H,ge.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ge.prototype.reset=ge.prototype.reset,ge.prototype.advance=function(T){this.a.advance(T)},ge.prototype.advance=ge.prototype.advance,ge.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return M("Decoder hit an error"),!1;this.O=this.a.B();var T=this.a.o(),D=T>>>3;return T&=7,T!=0&&T!=5&&T!=1&&T!=2&&T!=3&&T!=4?(M("Invalid wire type: %s (at position %s)",T,this.O),this.h=!0,!1):(this.c=D,this.b=T,!0)},ge.prototype.nextField=ge.prototype.oa,ge.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ge.prototype.unskipHeader=ge.prototype.Oa,ge.prototype.Lc=function(){var T=this.c;for(this.Oa();this.oa()&&this.c==T;)this.C();this.a.ya()||this.Oa()},ge.prototype.skipMatchingFields=ge.prototype.Lc,ge.prototype.lb=function(){this.b!=0?(M("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ge.prototype.skipVarintField=ge.prototype.lb,ge.prototype.gb=function(){if(this.b!=2)M("Invalid wire type for skipDelimitedField"),this.C();else{var T=this.a.o();this.a.advance(T)}},ge.prototype.skipDelimitedField=ge.prototype.gb,ge.prototype.hb=function(){this.b!=5?(M("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ge.prototype.skipFixed32Field=ge.prototype.hb,ge.prototype.ib=function(){this.b!=1?(M("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ge.prototype.skipFixed64Field=ge.prototype.ib,ge.prototype.jb=function(){var T=this.c;do{if(!this.oa()){M("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=T&&(M("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ge.prototype.skipGroup=ge.prototype.jb,ge.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:M("Invalid wire encoding for field.")}},ge.prototype.skipField=ge.prototype.C,ge.prototype.Hc=function(T,D){this.v===null&&(this.v={}),_(!this.v[T]),this.v[T]=D},ge.prototype.registerReadCallback=ge.prototype.Hc,ge.prototype.Ic=function(T){return _(this.v!==null),T=this.v[T],_(T),T(this)},ge.prototype.runReadCallback=ge.prototype.Ic,ge.prototype.Yb=function(T,D){_(this.b==2);var J=this.a.c,ke=this.a.o();ke=this.a.B()+ke,this.a.setEnd(ke),D(T,this),this.a.Ma(ke),this.a.setEnd(J)},ge.prototype.readMessage=ge.prototype.Yb,ge.prototype.Ub=function(T,D,J){_(this.b==3),_(this.c==T),J(D,this),this.h||this.b==4||(M("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ge.prototype.readGroup=ge.prototype.Ub,ge.prototype.Gb=function(){_(this.b==2);var T=this.a.o(),D=this.a.B(),J=D+T;return T=We(this.a.Y(),D,T),this.a.Ma(J),T},ge.prototype.getFieldDecoder=ge.prototype.Gb,ge.prototype.P=function(){return _(this.b==0),this.a.da()},ge.prototype.readInt32=ge.prototype.P,ge.prototype.Wb=function(){return _(this.b==0),this.a.Ea()},ge.prototype.readInt32String=ge.prototype.Wb,ge.prototype.ba=function(){return _(this.b==0),this.a.sa()},ge.prototype.readInt64=ge.prototype.ba,ge.prototype.ca=function(){return _(this.b==0),this.a.Fa()},ge.prototype.readInt64String=ge.prototype.ca,ge.prototype.m=function(){return _(this.b==0),this.a.o()},ge.prototype.readUint32=ge.prototype.m,ge.prototype.Fc=function(){return _(this.b==0),this.a.O()},ge.prototype.readUint32String=ge.prototype.Fc,ge.prototype.ga=function(){return _(this.b==0),this.a.Ga()},ge.prototype.readUint64=ge.prototype.ga,ge.prototype.ha=function(){return _(this.b==0),this.a.Ha()},ge.prototype.readUint64String=ge.prototype.ha,ge.prototype.zc=function(){return _(this.b==0),this.a.Ia()},ge.prototype.readSint32=ge.prototype.zc,ge.prototype.Ac=function(){return _(this.b==0),this.a.Ja()},ge.prototype.readSint64=ge.prototype.Ac,ge.prototype.Bc=function(){return _(this.b==0),this.a.Ka()},ge.prototype.readSint64String=ge.prototype.Bc,ge.prototype.Rb=function(){return _(this.b==5),this.a.m()},ge.prototype.readFixed32=ge.prototype.Rb,ge.prototype.Sb=function(){return _(this.b==1),this.a.ga()},ge.prototype.readFixed64=ge.prototype.Sb,ge.prototype.Tb=function(){return _(this.b==1),this.a.ha()},ge.prototype.readFixed64String=ge.prototype.Tb,ge.prototype.vc=function(){return _(this.b==5),this.a.P()},ge.prototype.readSfixed32=ge.prototype.vc,ge.prototype.wc=function(){return _(this.b==5),this.a.P().toString()},ge.prototype.readSfixed32String=ge.prototype.wc,ge.prototype.xc=function(){return _(this.b==1),this.a.ba()},ge.prototype.readSfixed64=ge.prototype.xc,ge.prototype.yc=function(){return _(this.b==1),this.a.ca()},ge.prototype.readSfixed64String=ge.prototype.yc,ge.prototype.aa=function(){return _(this.b==5),this.a.aa()},ge.prototype.readFloat=ge.prototype.aa,ge.prototype.Z=function(){return _(this.b==1),this.a.Z()},ge.prototype.readDouble=ge.prototype.Z,ge.prototype.pa=function(){return _(this.b==0),!!this.a.o()},ge.prototype.readBool=ge.prototype.pa,ge.prototype.ra=function(){return _(this.b==0),this.a.sa()},ge.prototype.readEnum=ge.prototype.ra,ge.prototype.fa=function(){_(this.b==2);var T=this.a.o();return this.a.fa(T)},ge.prototype.readString=ge.prototype.fa,ge.prototype.qa=function(){_(this.b==2);var T=this.a.o();return this.a.qa(T)},ge.prototype.readBytes=ge.prototype.qa,ge.prototype.ia=function(){return _(this.b==0),this.a.ia()},ge.prototype.readVarintHash64=ge.prototype.ia,ge.prototype.Cc=function(){return _(this.b==0),this.a.fb()},ge.prototype.readSintHash64=ge.prototype.Cc,ge.prototype.w=function(T){return _(this.b==0),this.a.w(T)},ge.prototype.readSplitVarint64=ge.prototype.w,ge.prototype.ea=function(T){return _(this.b==0),this.a.w(function(D,J){return Ce(D,J,T)})},ge.prototype.readSplitZigzagVarint64=ge.prototype.ea,ge.prototype.$=function(){return _(this.b==1),this.a.$()},ge.prototype.readFixedHash64=ge.prototype.$,ge.prototype.ta=function(T){return _(this.b==1),this.a.ta(T)},ge.prototype.readSplitFixed64=ge.prototype.ta;function Be(T,D){_(T.b==2);var J=T.a.o();J=T.a.B()+J;for(var ke=[];T.a.B()D.length?J.length:D.length;for(T.b&&(ke[0]=T.b,Ie=1);IeT),_(0<=D&&4294967296>D);0>>7|D<<25)>>>0,D>>>=7;this.a.push(T)},vt.prototype.writeSplitVarint64=vt.prototype.l,vt.prototype.A=function(T,D){_(T==Math.floor(T)),_(D==Math.floor(D)),_(0<=T&&4294967296>T),_(0<=D&&4294967296>D),this.s(T),this.s(D)},vt.prototype.writeSplitFixed64=vt.prototype.A,vt.prototype.j=function(T){for(_(T==Math.floor(T)),_(0<=T&&4294967296>T);127>>=7;this.a.push(T)},vt.prototype.writeUnsignedVarint32=vt.prototype.j,vt.prototype.M=function(T){if(_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),0<=T)this.j(T);else{for(var D=0;9>D;D++)this.a.push(T&127|128),T>>=7;this.a.push(1)}},vt.prototype.writeSignedVarint32=vt.prototype.M,vt.prototype.va=function(T){_(T==Math.floor(T)),_(0<=T&&18446744073709552e3>T),oe(T),this.l(Z,X)},vt.prototype.writeUnsignedVarint64=vt.prototype.va,vt.prototype.ua=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=T&&9223372036854776e3>T),oe(T),this.l(Z,X)},vt.prototype.writeSignedVarint64=vt.prototype.ua,vt.prototype.wa=function(T){_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),this.j((T<<1^T>>31)>>>0)},vt.prototype.writeZigzagVarint32=vt.prototype.wa,vt.prototype.xa=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=T&&9223372036854776e3>T),le(T),this.l(Z,X)},vt.prototype.writeZigzagVarint64=vt.prototype.xa,vt.prototype.Ta=function(T){this.W(z(T))},vt.prototype.writeZigzagVarint64String=vt.prototype.Ta,vt.prototype.W=function(T){var D=this;me(T),ve(Z,X,function(J,ke){D.l(J>>>0,ke>>>0)})},vt.prototype.writeZigzagVarintHash64=vt.prototype.W,vt.prototype.be=function(T){_(T==Math.floor(T)),_(0<=T&&256>T),this.a.push(T>>>0&255)},vt.prototype.writeUint8=vt.prototype.be,vt.prototype.ae=function(T){_(T==Math.floor(T)),_(0<=T&&65536>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255)},vt.prototype.writeUint16=vt.prototype.ae,vt.prototype.s=function(T){_(T==Math.floor(T)),_(0<=T&&4294967296>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255),this.a.push(T>>>16&255),this.a.push(T>>>24&255)},vt.prototype.writeUint32=vt.prototype.s,vt.prototype.V=function(T){_(T==Math.floor(T)),_(0<=T&&18446744073709552e3>T),ae(T),this.s(Z),this.s(X)},vt.prototype.writeUint64=vt.prototype.V,vt.prototype.Qc=function(T){_(T==Math.floor(T)),_(-128<=T&&128>T),this.a.push(T>>>0&255)},vt.prototype.writeInt8=vt.prototype.Qc,vt.prototype.Pc=function(T){_(T==Math.floor(T)),_(-32768<=T&&32768>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255)},vt.prototype.writeInt16=vt.prototype.Pc,vt.prototype.S=function(T){_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),this.a.push(T>>>0&255),this.a.push(T>>>8&255),this.a.push(T>>>16&255),this.a.push(T>>>24&255)},vt.prototype.writeInt32=vt.prototype.S,vt.prototype.T=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=T&&9223372036854776e3>T),oe(T),this.A(Z,X)},vt.prototype.writeInt64=vt.prototype.T,vt.prototype.ka=function(T){_(T==Math.floor(T)),_(-9223372036854776e3<=+T&&9223372036854776e3>+T),me(z(T)),this.A(Z,X)},vt.prototype.writeInt64String=vt.prototype.ka,vt.prototype.L=function(T){_(T===1/0||T===-1/0||isNaN(T)||-34028234663852886e22<=T&&34028234663852886e22>=T),ce(T),this.s(Z)},vt.prototype.writeFloat=vt.prototype.L,vt.prototype.J=function(T){_(T===1/0||T===-1/0||isNaN(T)||-17976931348623157e292<=T&&17976931348623157e292>=T),pe(T),this.s(Z),this.s(X)},vt.prototype.writeDouble=vt.prototype.J,vt.prototype.I=function(T){_(typeof T=="boolean"||typeof T=="number"),this.a.push(T?1:0)},vt.prototype.writeBool=vt.prototype.I,vt.prototype.R=function(T){_(T==Math.floor(T)),_(-2147483648<=T&&2147483648>T),this.M(T)},vt.prototype.writeEnum=vt.prototype.R,vt.prototype.ja=function(T){this.a.push.apply(this.a,T)},vt.prototype.writeBytes=vt.prototype.ja,vt.prototype.N=function(T){me(T),this.l(Z,X)},vt.prototype.writeVarintHash64=vt.prototype.N,vt.prototype.K=function(T){me(T),this.s(Z),this.s(X)},vt.prototype.writeFixedHash64=vt.prototype.K,vt.prototype.U=function(T){var D=this.a.length;E(T);for(var J=0;Jke)this.a.push(ke);else if(2048>ke)this.a.push(ke>>6|192),this.a.push(ke&63|128);else if(65536>ke)if(55296<=ke&&56319>=ke&&J+1=Ie&&(ke=1024*(ke-55296)+Ie-56320+65536,this.a.push(ke>>18|240),this.a.push(ke>>12&63|128),this.a.push(ke>>6&63|128),this.a.push(ke&63|128),J++)}else this.a.push(ke>>12|224),this.a.push(ke>>6&63|128),this.a.push(ke&63|128)}return this.a.length-D},vt.prototype.writeString=vt.prototype.U;function At(T,D){this.lo=T,this.hi=D}p("jspb.arith.UInt64",At,void 0),At.prototype.cmp=function(T){return this.hi>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},At.prototype.rightShift=At.prototype.La,At.prototype.Da=function(){return new At(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},At.prototype.leftShift=At.prototype.Da,At.prototype.cb=function(){return!!(this.hi&2147483648)},At.prototype.msb=At.prototype.cb,At.prototype.Ob=function(){return!!(this.lo&1)},At.prototype.lsb=At.prototype.Ob,At.prototype.Ua=function(){return this.lo==0&&this.hi==0},At.prototype.zero=At.prototype.Ua,At.prototype.add=function(T){return new At((this.lo+T.lo&4294967295)>>>0>>>0,((this.hi+T.hi&4294967295)>>>0)+(4294967296<=this.lo+T.lo?1:0)>>>0)},At.prototype.add=At.prototype.add,At.prototype.sub=function(T){return new At((this.lo-T.lo&4294967295)>>>0>>>0,((this.hi-T.hi&4294967295)>>>0)-(0>this.lo-T.lo?1:0)>>>0)},At.prototype.sub=At.prototype.sub;function dt(T,D){var J=T&65535;T>>>=16;var ke=D&65535,Ie=D>>>16;for(D=J*ke+65536*(J*Ie&65535)+65536*(T*ke&65535),J=T*Ie+(J*Ie>>>16)+(T*ke>>>16);4294967296<=D;)D-=4294967296,J+=1;return new At(D>>>0,J>>>0)}At.mul32x32=dt,At.prototype.eb=function(T){var D=dt(this.lo,T);return T=dt(this.hi,T),T.hi=T.lo,T.lo=0,D.add(T)},At.prototype.mul=At.prototype.eb,At.prototype.Xa=function(T){if(T==0)return[];var D=new At(0,0),J=new At(this.lo,this.hi);T=new At(T,0);for(var ke=new At(1,0);!T.cb();)T=T.Da(),ke=ke.Da();for(;!ke.Ua();)0>=T.cmp(J)&&(D=D.add(ke),J=J.sub(T)),T=T.La(),ke=ke.La();return[D,J]},At.prototype.div=At.prototype.Xa,At.prototype.toString=function(){for(var T="",D=this;!D.Ua();){D=D.Xa(10);var J=D[0];T=D[1].lo+T,D=J}return T==""&&(T="0"),T},At.prototype.toString=At.prototype.toString;function De(T){for(var D=new At(0,0),J=new At(0,0),ke=0;keT[ke]||"9">>0>>>0,((this.hi+T.hi&4294967295)>>>0)+(4294967296<=this.lo+T.lo?1:0)>>>0)},Ye.prototype.add=Ye.prototype.add,Ye.prototype.sub=function(T){return new Ye((this.lo-T.lo&4294967295)>>>0>>>0,((this.hi-T.hi&4294967295)>>>0)-(0>this.lo-T.lo?1:0)>>>0)},Ye.prototype.sub=Ye.prototype.sub,Ye.prototype.clone=function(){return new Ye(this.lo,this.hi)},Ye.prototype.clone=Ye.prototype.clone,Ye.prototype.toString=function(){var T=(this.hi&2147483648)!=0,D=new At(this.lo,this.hi);return T&&(D=new At(0,0).sub(D)),(T?"-":"")+D.toString()},Ye.prototype.toString=Ye.prototype.toString;function ot(T){var D=0>>=7,T.b++;D.push(J),T.b++}Re.prototype.pb=function(T,D,J){It(this,T.subarray(D,J))},Re.prototype.writeSerializedMessage=Re.prototype.pb,Re.prototype.Pb=function(T,D,J){T!=null&&D!=null&&J!=null&&this.pb(T,D,J)},Re.prototype.maybeWriteSerializedMessage=Re.prototype.Pb,Re.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Re.prototype.reset=Re.prototype.reset,Re.prototype.ab=function(){_(this.h.length==0);for(var T=new Uint8Array(this.b+this.a.length()),D=this.c,J=D.length,ke=0,Ie=0;IeD),pn(this,T,D))},Re.prototype.writeInt32=Re.prototype.S,Re.prototype.ob=function(T,D){D!=null&&(D=parseInt(D,10),_(-2147483648<=D&&2147483648>D),pn(this,T,D))},Re.prototype.writeInt32String=Re.prototype.ob,Re.prototype.T=function(T,D){D!=null&&(_(-9223372036854776e3<=D&&9223372036854776e3>D),D!=null&&(Mt(this,T,0),this.a.ua(D)))},Re.prototype.writeInt64=Re.prototype.T,Re.prototype.ka=function(T,D){D!=null&&(D=ot(D),Mt(this,T,0),this.a.l(D.lo,D.hi))},Re.prototype.writeInt64String=Re.prototype.ka,Re.prototype.s=function(T,D){D!=null&&(_(0<=D&&4294967296>D),dn(this,T,D))},Re.prototype.writeUint32=Re.prototype.s,Re.prototype.ub=function(T,D){D!=null&&(D=parseInt(D,10),_(0<=D&&4294967296>D),dn(this,T,D))},Re.prototype.writeUint32String=Re.prototype.ub,Re.prototype.V=function(T,D){D!=null&&(_(0<=D&&18446744073709552e3>D),D!=null&&(Mt(this,T,0),this.a.va(D)))},Re.prototype.writeUint64=Re.prototype.V,Re.prototype.vb=function(T,D){D!=null&&(D=De(D),Mt(this,T,0),this.a.l(D.lo,D.hi))},Re.prototype.writeUint64String=Re.prototype.vb,Re.prototype.rb=function(T,D){D!=null&&(_(-2147483648<=D&&2147483648>D),D!=null&&(Mt(this,T,0),this.a.wa(D)))},Re.prototype.writeSint32=Re.prototype.rb,Re.prototype.sb=function(T,D){D!=null&&(_(-9223372036854776e3<=D&&9223372036854776e3>D),D!=null&&(Mt(this,T,0),this.a.xa(D)))},Re.prototype.writeSint64=Re.prototype.sb,Re.prototype.$d=function(T,D){D!=null&&D!=null&&(Mt(this,T,0),this.a.W(D))},Re.prototype.writeSintHash64=Re.prototype.$d,Re.prototype.Zd=function(T,D){D!=null&&D!=null&&(Mt(this,T,0),this.a.Ta(D))},Re.prototype.writeSint64String=Re.prototype.Zd,Re.prototype.Pa=function(T,D){D!=null&&(_(0<=D&&4294967296>D),Mt(this,T,5),this.a.s(D))},Re.prototype.writeFixed32=Re.prototype.Pa,Re.prototype.Qa=function(T,D){D!=null&&(_(0<=D&&18446744073709552e3>D),Mt(this,T,1),this.a.V(D))},Re.prototype.writeFixed64=Re.prototype.Qa,Re.prototype.nb=function(T,D){D!=null&&(D=De(D),Mt(this,T,1),this.a.A(D.lo,D.hi))},Re.prototype.writeFixed64String=Re.prototype.nb,Re.prototype.Ra=function(T,D){D!=null&&(_(-2147483648<=D&&2147483648>D),Mt(this,T,5),this.a.S(D))},Re.prototype.writeSfixed32=Re.prototype.Ra,Re.prototype.Sa=function(T,D){D!=null&&(_(-9223372036854776e3<=D&&9223372036854776e3>D),Mt(this,T,1),this.a.T(D))},Re.prototype.writeSfixed64=Re.prototype.Sa,Re.prototype.qb=function(T,D){D!=null&&(D=ot(D),Mt(this,T,1),this.a.A(D.lo,D.hi))},Re.prototype.writeSfixed64String=Re.prototype.qb,Re.prototype.L=function(T,D){D!=null&&(Mt(this,T,5),this.a.L(D))},Re.prototype.writeFloat=Re.prototype.L,Re.prototype.J=function(T,D){D!=null&&(Mt(this,T,1),this.a.J(D))},Re.prototype.writeDouble=Re.prototype.J,Re.prototype.I=function(T,D){D!=null&&(_(typeof D=="boolean"||typeof D=="number"),Mt(this,T,0),this.a.I(D))},Re.prototype.writeBool=Re.prototype.I,Re.prototype.R=function(T,D){D!=null&&(_(-2147483648<=D&&2147483648>D),Mt(this,T,0),this.a.M(D))},Re.prototype.writeEnum=Re.prototype.R,Re.prototype.U=function(T,D){D!=null&&(T=rt(this,T),this.a.U(D),$t(this,T))},Re.prototype.writeString=Re.prototype.U,Re.prototype.ja=function(T,D){D!=null&&(D=xe(D),Mt(this,T,2),this.a.j(D.length),It(this,D))},Re.prototype.writeBytes=Re.prototype.ja,Re.prototype.Rc=function(T,D,J){D!=null&&(T=rt(this,T),J(D,this),$t(this,T))},Re.prototype.writeMessage=Re.prototype.Rc,Re.prototype.Sc=function(T,D,J){D!=null&&(Mt(this,1,3),Mt(this,2,0),this.a.M(T),T=rt(this,3),J(D,this),$t(this,T),Mt(this,1,4))},Re.prototype.writeMessageSet=Re.prototype.Sc,Re.prototype.Oc=function(T,D,J){D!=null&&(Mt(this,T,3),J(D,this),Mt(this,T,4))},Re.prototype.writeGroup=Re.prototype.Oc,Re.prototype.K=function(T,D){D!=null&&(_(D.length==8),Mt(this,T,1),this.a.K(D))},Re.prototype.writeFixedHash64=Re.prototype.K,Re.prototype.N=function(T,D){D!=null&&(_(D.length==8),Mt(this,T,0),this.a.N(D))},Re.prototype.writeVarintHash64=Re.prototype.N,Re.prototype.A=function(T,D,J){Mt(this,T,1),this.a.A(D,J)},Re.prototype.writeSplitFixed64=Re.prototype.A,Re.prototype.l=function(T,D,J){Mt(this,T,0),this.a.l(D,J)},Re.prototype.writeSplitVarint64=Re.prototype.l,Re.prototype.tb=function(T,D,J){Mt(this,T,0);var ke=this.a;ve(D,J,function(Ie,it){ke.l(Ie>>>0,it>>>0)})},Re.prototype.writeSplitZigzagVarint64=Re.prototype.tb,Re.prototype.Ed=function(T,D){if(D!=null)for(var J=0;J>>0,rn>>>0)});$t(this,T)}},Re.prototype.writePackedSplitZigzagVarint64=Re.prototype.od,Re.prototype.dd=function(T,D){if(D!=null&&D.length){T=rt(this,T);for(var J=0;J0&&t.writeString(1,n),n=e.getNickname(),n.length>0&&t.writeString(2,n),n=e.getAvatar(),n.length>0&&t.writeString(3,n),n=e.getType(),n.length>0&&t.writeString(4,n),n=e.getExtra(),n.length>0&&t.writeString(5,n)};proto.User.prototype.getUid=function(){return Mn.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return Mn.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return Mn.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return Mn.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return Mn.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return Mn.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return Mn.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return Mn.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return Mn.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return Mn.Message.setProto3StringField(this,5,e)};const EK=proto;var ZF=YF,LI=(function(){return this?this:typeof window<"u"?window:typeof LI<"u"?LI:typeof self<"u"?self:Function("return this")()}).call(null);ZF.exportSymbol("proto.Thread",null,LI);proto.Thread=function(e){Mn.Message.initialize(this,e,0,-1,null,null)};ZF.inherits(proto.Thread,Mn.Message);ZF.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");Mn.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,t){var n,r={uid:Mn.Message.getFieldWithDefault(t,1,""),topic:Mn.Message.getFieldWithDefault(t,2,""),type:Mn.Message.getFieldWithDefault(t,3,""),state:Mn.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Mn.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new Mn.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)};proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=t.readString();e.setType(r);break;case 4:var r=t.readString();e.setState(r);break;case 5:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 6:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new Mn.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getTopic(),n.length>0&&t.writeString(2,n),n=e.getType(),n.length>0&&t.writeString(3,n),n=e.getState(),n.length>0&&t.writeString(4,n),n=e.getUser(),n!=null&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(6,n)};proto.Thread.prototype.getUid=function(){return Mn.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return Mn.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return Mn.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return Mn.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return Mn.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return Mn.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return Mn.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return Mn.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return Mn.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return Mn.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return Mn.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return Mn.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return Mn.Message.setProto3StringField(this,6,e)};const nMe=proto;var QF=YF,BI=(function(){return this?this:typeof window<"u"?window:typeof BI<"u"?BI:typeof self<"u"?self:Function("return this")()}).call(null);QF.exportSymbol("proto.Message",null,BI);proto.Message=function(e){Mn.Message.initialize(this,e,0,-1,null,null)};QF.inherits(proto.Message,Mn.Message);QF.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");Mn.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,t){var n,r={uid:Mn.Message.getFieldWithDefault(t,1,""),type:Mn.Message.getFieldWithDefault(t,2,""),content:Mn.Message.getFieldWithDefault(t,3,""),status:Mn.Message.getFieldWithDefault(t,4,""),createdat:Mn.Message.getFieldWithDefault(t,5,""),client:Mn.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Mn.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new Mn.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)};proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setType(r);break;case 3:var r=t.readString();e.setContent(r);break;case 4:var r=t.readString();e.setStatus(r);break;case 5:var r=t.readString();e.setCreatedat(r);break;case 6:var r=t.readString();e.setClient(r);break;case 7:var r=new proto.Thread;t.readMessage(r,proto.Thread.deserializeBinaryFromReader),e.setThread(r);break;case 8:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 9:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new Mn.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getType(),n.length>0&&t.writeString(2,n),n=e.getContent(),n.length>0&&t.writeString(3,n),n=e.getStatus(),n.length>0&&t.writeString(4,n),n=e.getCreatedat(),n.length>0&&t.writeString(5,n),n=e.getClient(),n.length>0&&t.writeString(6,n),n=e.getThread(),n!=null&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),n=e.getUser(),n!=null&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(9,n)};proto.Message.prototype.getUid=function(){return Mn.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return Mn.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return Mn.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return Mn.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return Mn.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return Mn.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return Mn.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return Mn.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return Mn.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return Mn.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return Mn.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return Mn.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return Mn.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return Mn.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return Mn.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return Mn.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return Mn.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return Mn.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return Mn.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return Mn.Message.setProto3StringField(this,9,e)};const wue=proto,rMe="modulepreload",iMe=function(e){return"/agent/"+e},$K={},xue=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=iMe(l),l in $K)return;$K[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":rMe,c||(f.as="script"),f.crossOrigin="",f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var Cue;function en(){return Cue.apply(null,arguments)}function oMe(e){Cue=e}function mu(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Hm(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Jr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function JF(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Jr(e,t))return!1;return!0}function Ts(e){return e===void 0}function Of(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function f4(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function _ue(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var rL=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,oS=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,r9={},$v={};function er(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&($v[e]=i),t&&($v[t[0]]=function(){return gd(i.apply(this,arguments),t[1],t[2])}),n&&($v[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function dMe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function fMe(e){var t=e.match(rL),n,r;for(n=0,r=t.length;n=0&&oS.test(e);)e=e.replace(oS,r),oS.lastIndex=0,n-=1;return e}var pMe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function hMe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(rL).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var mMe="Invalid date";function gMe(){return this._invalidDate}var vMe="%d",yMe=/\d{1,2}/;function bMe(e){return this._ordinal.replace("%d",e)}var wMe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function xMe(e,t,n,r){var i=this._relativeTime[n];return Md(i)?i(e,t,n,r):i.replace(/%d/i,e)}function SMe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Md(n)?n(t):n.replace(/%s/i,t)}var PK={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function kc(e){return typeof e=="string"?PK[e]||PK[e.toLowerCase()]:void 0}function iL(e){var t={},n,r;for(r in e)Jr(e,r)&&(n=kc(r),n&&(t[n]=e[r]));return t}var CMe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function _Me(e){var t=[],n;for(n in e)Jr(e,n)&&t.push({unit:n,priority:CMe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Mue=/\d/,Hl=/\d\d/,Tue=/\d{3}/,aL=/\d{4}/,bE=/[+-]?\d{6}/,Li=/\d\d?/,Pue=/\d\d\d\d?/,Oue=/\d\d\d\d\d\d?/,wE=/\d{1,3}/,oL=/\d{1,4}/,xE=/[+-]?\d{1,6}/,gy=/\d+/,SE=/[+-]?\d+/,kMe=/Z|[+-]\d\d:?\d\d/gi,CE=/Z|[+-]\d\d(?::?\d\d)?/gi,EMe=/[+-]?\d+(\.\d{1,3})?/,h4=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,vy=/^[1-9]\d?/,sL=/^([1-9]\d|\d)/,Mk;Mk={};function Ln(e,t,n){Mk[e]=Md(t)?t:function(r,i){return r&&n?n:t}}function $Me(e,t){return Jr(Mk,e)?Mk[e](t._strict,t._locale):new RegExp(MMe(e))}function MMe(e){return vf(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function vf(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ac(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Fr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=ac(t)),n}var WI={};function vi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Of(t)&&(r=function(a,o){o[t]=Fr(a)}),i=e.length,n=0;n68?1900:2e3)};var Rue=yy("FullYear",!0);function RMe(){return _E(this.year())}function yy(e,t){return function(n){return n!=null?(Iue(this,e,n),en.updateOffset(this,t),this):zw(this,e)}}function zw(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Iue(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!_E(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function IMe(e){return e=kc(e),Md(this[e])?this[e]():this}function jMe(e,t){if(typeof e=="object"){e=iL(e);var n=_Me(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Hw(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Tk(e,t,n){var r=7+t-n,i=(7+Hw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Lue(e,t,n,r,i){var a=(7+n-r)%7,o=Tk(e,r,i),s=1+7*(t-1)+a+o,l,c;return s<=0?(l=e-1,c=U2(l)+s):s>U2(e)?(l=e+1,c=s-U2(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Uw(e,t,n){var r=Tk(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+yf(o,t,n)):i>yf(e.year(),t,n)?(a=i-yf(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function yf(e,t,n){var r=Tk(e,t,n),i=Tk(e+1,t,n);return(U2(e)-r+i)/7}er("w",["ww",2],"wo","week");er("W",["WW",2],"Wo","isoWeek");Ln("w",Li,vy);Ln("ww",Li,Hl);Ln("W",Li,vy);Ln("WW",Li,Hl);m4(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Fr(e)});function KMe(e){return Uw(e,this._week.dow,this._week.doy).week}var GMe={dow:0,doy:6};function YMe(){return this._week.dow}function XMe(){return this._week.doy}function ZMe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function QMe(e){var t=Uw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}er("d",0,"do","day");er("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});er("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});er("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});er("e",0,0,"weekday");er("E",0,0,"isoWeekday");Ln("d",Li);Ln("e",Li);Ln("E",Li);Ln("dd",function(e,t){return t.weekdaysMinRegex(e)});Ln("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ln("dddd",function(e,t){return t.weekdaysRegex(e)});m4(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:kr(n).invalidWeekday=e});m4(["d","e","E"],function(e,t,n,r){t[r]=Fr(e)});function JMe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function e9e(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function cL(e,t){return e.slice(t,7).concat(e.slice(0,t))}var t9e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),n9e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),r9e=h4,i9e=h4,a9e=h4;function o9e(e,t){var n=mu(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?cL(n,this._week.dow):e?n[e.day()]:n}function s9e(e){return e===!0?cL(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function l9e(e){return e===!0?cL(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function c9e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=$d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=wa.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=wa.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=wa.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=wa.call(this._weekdaysParse,o),i!==-1||(i=wa.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=wa.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=wa.call(this._shortWeekdaysParse,o),i!==-1||(i=wa.call(this._weekdaysParse,o),i!==-1)?i:(i=wa.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=wa.call(this._minWeekdaysParse,o),i!==-1||(i=wa.call(this._weekdaysParse,o),i!==-1)?i:(i=wa.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function u9e(e,t,n){var r,i,a;if(this._weekdaysParseExact)return c9e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=$d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function d9e(e){if(!this.isValid())return e!=null?this:NaN;var t=zw(this,"Day");return e!=null?(e=JMe(e,this.localeData()),this.add(e-t,"d")):t}function f9e(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function p9e(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=e9e(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function h9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||uL.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Jr(this,"_weekdaysRegex")||(this._weekdaysRegex=r9e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function m9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||uL.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=i9e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function g9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||uL.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=a9e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function uL(){function e(u,f){return f.length-u.length}var t=[],n=[],r=[],i=[],a,o,s,l,c;for(a=0;a<7;a++)o=$d([2e3,1]).day(a),s=vf(this.weekdaysMin(o,"")),l=vf(this.weekdaysShort(o,"")),c=vf(this.weekdays(o,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function dL(){return this.hours()%12||12}function v9e(){return this.hours()||24}er("H",["HH",2],0,"hour");er("h",["hh",2],0,dL);er("k",["kk",2],0,v9e);er("hmm",0,0,function(){return""+dL.apply(this)+gd(this.minutes(),2)});er("hmmss",0,0,function(){return""+dL.apply(this)+gd(this.minutes(),2)+gd(this.seconds(),2)});er("Hmm",0,0,function(){return""+this.hours()+gd(this.minutes(),2)});er("Hmmss",0,0,function(){return""+this.hours()+gd(this.minutes(),2)+gd(this.seconds(),2)});function zue(e,t){er(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}zue("a",!0);zue("A",!1);function Hue(e,t){return t._meridiemParse}Ln("a",Hue);Ln("A",Hue);Ln("H",Li,sL);Ln("h",Li,vy);Ln("k",Li,vy);Ln("HH",Li,Hl);Ln("hh",Li,Hl);Ln("kk",Li,Hl);Ln("hmm",Pue);Ln("hmmss",Oue);Ln("Hmm",Pue);Ln("Hmmss",Oue);vi(["H","HH"],Ua);vi(["k","kk"],function(e,t,n){var r=Fr(e);t[Ua]=r===24?0:r});vi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});vi(["h","hh"],function(e,t,n){t[Ua]=Fr(e),kr(n).bigHour=!0});vi("hmm",function(e,t,n){var r=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r)),kr(n).bigHour=!0});vi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r,2)),t[hf]=Fr(e.substr(i)),kr(n).bigHour=!0});vi("Hmm",function(e,t,n){var r=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r))});vi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r,2)),t[hf]=Fr(e.substr(i))});function y9e(e){return(e+"").toLowerCase().charAt(0)==="p"}var b9e=/[ap]\.?m?\.?/i,w9e=yy("Hours",!0);function x9e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Uue={calendar:cMe,longDateFormat:pMe,invalidDate:mMe,ordinal:vMe,dayOfMonthOrdinalParse:yMe,relativeTime:wMe,months:AMe,monthsShort:jue,week:GMe,weekdays:t9e,weekdaysMin:n9e,weekdaysShort:Bue,meridiemParse:b9e},Ui={},Mb={},Ww;function S9e(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=kE(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&S9e(a,r)>=n-1)break;n--}t++}return Ww}function _9e(e){return!!(e&&e.match("^[^/\\\\]*$"))}function kE(e){var t=null,n;if(Ui[e]===void 0&&typeof qo<"u"&&qo&&qo.exports&&_9e(e))try{t=Ww._abbr,n=require,n("./locale/"+e),th(t)}catch{Ui[e]=null}return Ui[e]}function th(e,t){var n;return e&&(Ts(t)?n=Uf(e):n=fL(e,t),n?Ww=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ww._abbr}function fL(e,t){if(t!==null){var n,r=Uue;if(t.abbr=e,Ui[e]!=null)Eue("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ui[e]._config;else if(t.parentLocale!=null)if(Ui[t.parentLocale]!=null)r=Ui[t.parentLocale]._config;else if(n=kE(t.parentLocale),n!=null)r=n._config;else return Mb[t.parentLocale]||(Mb[t.parentLocale]=[]),Mb[t.parentLocale].push({name:e,config:t}),null;return Ui[e]=new nL(HI(r,t)),Mb[e]&&Mb[e].forEach(function(i){fL(i.name,i.config)}),th(e),Ui[e]}else return delete Ui[e],null}function k9e(e,t){if(t!=null){var n,r,i=Uue;Ui[e]!=null&&Ui[e].parentLocale!=null?Ui[e].set(HI(Ui[e]._config,t)):(r=kE(e),r!=null&&(i=r._config),t=HI(i,t),r==null&&(t.abbr=e),n=new nL(t),n.parentLocale=Ui[e],Ui[e]=n),th(e)}else Ui[e]!=null&&(Ui[e].parentLocale!=null?(Ui[e]=Ui[e].parentLocale,e===th()&&th(e)):Ui[e]!=null&&delete Ui[e]);return Ui[e]}function Uf(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ww;if(!mu(e)){if(t=kE(e),t)return t;e=[e]}return C9e(e)}function E9e(){return UI(Ui)}function pL(e){var t,n=e._a;return n&&kr(e).overflow===-2&&(t=n[pf]<0||n[pf]>11?pf:n[Ju]<1||n[Ju]>lL(n[Ko],n[pf])?Ju:n[Ua]<0||n[Ua]>24||n[Ua]===24&&(n[eu]!==0||n[hf]!==0||n[wm]!==0)?Ua:n[eu]<0||n[eu]>59?eu:n[hf]<0||n[hf]>59?hf:n[wm]<0||n[wm]>999?wm:-1,kr(e)._overflowDayOfYear&&(tJu)&&(t=Ju),kr(e)._overflowWeeks&&t===-1&&(t=PMe),kr(e)._overflowWeekday&&t===-1&&(t=OMe),kr(e).overflow=t),e}var $9e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,M9e=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,T9e=/Z|[+-]\d\d(?::?\d\d)?/,sS=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],i9=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],P9e=/^\/?Date\((-?\d+)/i,O9e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,R9e={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wue(e){var t,n,r=e._i,i=$9e.exec(r)||M9e.exec(r),a,o,s,l,c=sS.length,u=i9.length;if(i){for(kr(e).iso=!0,t=0,n=c;tU2(o)||e._dayOfYear===0)&&(kr(e)._overflowDayOfYear=!0),n=Hw(o,0,e._dayOfYear),e._a[pf]=n.getUTCMonth(),e._a[Ju]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ua]===24&&e._a[eu]===0&&e._a[hf]===0&&e._a[wm]===0&&(e._nextDay=!0,e._a[Ua]=0),e._d=(e._useUTC?Hw:qMe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ua]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(kr(e).weekdayMismatch=!0)}}function B9e(e){var t,n,r,i,a,o,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Y1(t.GG,e._a[Ko],Uw(Di(),1,4).year),r=Y1(t.W,1),i=Y1(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=Uw(Di(),a,o),n=Y1(t.gg,e._a[Ko],c.year),r=Y1(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>yf(n,a,o)?kr(e)._overflowWeeks=!0:l!=null?kr(e)._overflowWeekday=!0:(s=Lue(n,r,i,a,o),e._a[Ko]=s.year,e._dayOfYear=s.dayOfYear)}en.ISO_8601=function(){};en.RFC_2822=function(){};function mL(e){if(e._f===en.ISO_8601){Wue(e);return}if(e._f===en.RFC_2822){Vue(e);return}e._a=[],kr(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,l=0,c,u;for(i=$ue(e._f,e._locale).match(rL)||[],u=i.length,n=0;n0&&kr(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),l+=r.length),$v[a]?(r?kr(e).empty=!1:kr(e).unusedTokens.push(a),TMe(a,r,e)):e._strict&&!r&&kr(e).unusedTokens.push(a);kr(e).charsLeftOver=s-l,t.length>0&&kr(e).unusedInput.push(t),e._a[Ua]<=12&&kr(e).bigHour===!0&&e._a[Ua]>0&&(kr(e).bigHour=void 0),kr(e).parsedDateParts=e._a.slice(0),kr(e).meridiem=e._meridiem,e._a[Ua]=z9e(e._locale,e._a[Ua],e._meridiem),c=kr(e).era,c!==null&&(e._a[Ko]=e._locale.erasConvertYear(c,e._a[Ko])),hL(e),pL(e)}function z9e(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function H9e(e){var t,n,r,i,a,o,s=!1,l=e._f.length;if(l===0){kr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:yE()});function Gue(e,t){var n,r;if(t.length===1&&mu(t[0])&&(t=t[0]),!t.length)return Di();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function cTe(){if(!Ts(this._isDSTShifted))return this._isDSTShifted;var e={},t;return tL(e,this),e=que(e),e._a?(t=e._isUTC?$d(e._a):Di(e._a),this._isDSTShifted=this.isValid()&&eTe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function uTe(){return this.isValid()?!this._isUTC:!1}function dTe(){return this.isValid()?this._isUTC:!1}function Xue(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fTe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,pTe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _u(e,t){var n=e,r=null,i,a,o;return VC(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Of(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=fTe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Fr(r[Ju])*i,h:Fr(r[Ua])*i,m:Fr(r[eu])*i,s:Fr(r[hf])*i,ms:Fr(VI(r[wm]*1e3))*i}):(r=pTe.exec(e))?(i=r[1]==="-"?-1:1,n={y:qh(r[2],i),M:qh(r[3],i),w:qh(r[4],i),d:qh(r[5],i),h:qh(r[6],i),m:qh(r[7],i),s:qh(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=hTe(Di(n.from),Di(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new EE(n),VC(e)&&Jr(e,"_locale")&&(a._locale=e._locale),VC(e)&&Jr(e,"_isValid")&&(a._isValid=e._isValid),a}_u.fn=EE.prototype;_u.invalid=J9e;function qh(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function RK(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function hTe(e,t){var n;return e.isValid()&&t.isValid()?(t=vL(t,e),e.isBefore(t)?n=RK(e,t):(n=RK(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Zue(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(Eue(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=_u(n,r),Que(this,i,e),this}}function Que(e,t,n,r){var i=t._milliseconds,a=VI(t._days),o=VI(t._months);e.isValid()&&(r=r??!0,o&&Aue(e,zw(e,"Month")+o*n),a&&Iue(e,"Date",zw(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&en.updateOffset(e,a||o))}var mTe=Zue(1,"add"),gTe=Zue(-1,"subtract");function Jue(e){return typeof e=="string"||e instanceof String}function vTe(e){return gu(e)||f4(e)||Jue(e)||Of(e)||bTe(e)||yTe(e)||e===null||e===void 0}function yTe(e){var t=Hm(e)&&!JF(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,o=r.length;for(i=0;in.valueOf():n.valueOf()9999?WC(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Md(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",WC(n,"Z")):WC(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ITe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function jTe(e){e||(e=this.isUtc()?en.defaultFormatUtc:en.defaultFormat);var t=WC(this,e);return this.localeData().postformat(t)}function NTe(e,t){return this.isValid()&&(gu(e)&&e.isValid()||Di(e).isValid())?_u({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ATe(e){return this.from(Di(),e)}function DTe(e,t){return this.isValid()&&(gu(e)&&e.isValid()||Di(e).isValid())?_u({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function FTe(e){return this.to(Di(),e)}function ede(e){var t;return e===void 0?this._locale._abbr:(t=Uf(e),t!=null&&(this._locale=t),this)}var tde=_c("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function nde(){return this._locale}var Pk=1e3,Mv=60*Pk,Ok=60*Mv,rde=(365*400+97)*24*Ok;function Tv(e,t){return(e%t+t)%t}function ide(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-rde:new Date(e,t,n).valueOf()}function ade(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-rde:Date.UTC(e,t,n)}function LTe(e){var t,n;if(e=kc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ade:ide,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Tv(t+(this._isUTC?0:this.utcOffset()*Mv),Ok);break;case"minute":t=this._d.valueOf(),t-=Tv(t,Mv);break;case"second":t=this._d.valueOf(),t-=Tv(t,Pk);break}return this._d.setTime(t),en.updateOffset(this,!0),this}function BTe(e){var t,n;if(e=kc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ade:ide,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ok-Tv(t+(this._isUTC?0:this.utcOffset()*Mv),Ok)-1;break;case"minute":t=this._d.valueOf(),t+=Mv-Tv(t,Mv)-1;break;case"second":t=this._d.valueOf(),t+=Pk-Tv(t,Pk)-1;break}return this._d.setTime(t),en.updateOffset(this,!0),this}function zTe(){return this._d.valueOf()-(this._offset||0)*6e4}function HTe(){return Math.floor(this.valueOf()/1e3)}function UTe(){return new Date(this.valueOf())}function WTe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function VTe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function qTe(){return this.isValid()?this.toISOString():null}function KTe(){return eL(this)}function GTe(){return Np({},kr(this))}function YTe(){return kr(this).overflow}function XTe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}er("N",0,0,"eraAbbr");er("NN",0,0,"eraAbbr");er("NNN",0,0,"eraAbbr");er("NNNN",0,0,"eraName");er("NNNNN",0,0,"eraNarrow");er("y",["y",1],"yo","eraYear");er("y",["yy",2],0,"eraYear");er("y",["yyy",3],0,"eraYear");er("y",["yyyy",4],0,"eraYear");Ln("N",yL);Ln("NN",yL);Ln("NNN",yL);Ln("NNNN",sPe);Ln("NNNNN",lPe);vi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?kr(n).era=i:kr(n).invalidEra=e});Ln("y",gy);Ln("yy",gy);Ln("yyy",gy);Ln("yyyy",gy);Ln("yo",cPe);vi(["y","yy","yyy","yyyy"],Ko);vi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ko]=n._locale.eraYearOrdinalParse(e,i):t[Ko]=parseInt(e,10)});function ZTe(e,t){var n,r,i,a=this._eras||Uf("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function JTe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?en(e.since).year():en(e.since).year()+(t-e.offset)*n}function ePe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),gPe.call(this,e,t,n,r,i))}function gPe(e,t,n,r,i){var a=Lue(e,t,n,r,i),o=Hw(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}er("Q",0,"Qo","quarter");Ln("Q",Mue);vi("Q",function(e,t){t[pf]=(Fr(e)-1)*3});function vPe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}er("D",["DD",2],"Do","date");Ln("D",Li,vy);Ln("DD",Li,Hl);Ln("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});vi(["D","DD"],Ju);vi("Do",function(e,t){t[Ju]=Fr(e.match(Li)[0])});var sde=yy("Date",!0);er("DDD",["DDDD",3],"DDDo","dayOfYear");Ln("DDD",wE);Ln("DDDD",Tue);vi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Fr(e)});function yPe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}er("m",["mm",2],0,"minute");Ln("m",Li,sL);Ln("mm",Li,Hl);vi(["m","mm"],eu);var bPe=yy("Minutes",!1);er("s",["ss",2],0,"second");Ln("s",Li,sL);Ln("ss",Li,Hl);vi(["s","ss"],hf);var wPe=yy("Seconds",!1);er("S",0,0,function(){return~~(this.millisecond()/100)});er(0,["SS",2],0,function(){return~~(this.millisecond()/10)});er(0,["SSS",3],0,"millisecond");er(0,["SSSS",4],0,function(){return this.millisecond()*10});er(0,["SSSSS",5],0,function(){return this.millisecond()*100});er(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});er(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});er(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});er(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ln("S",wE,Mue);Ln("SS",wE,Hl);Ln("SSS",wE,Tue);var Ap,lde;for(Ap="SSSS";Ap.length<=9;Ap+="S")Ln(Ap,gy);function xPe(e,t){t[wm]=Fr(("0."+e)*1e3)}for(Ap="S";Ap.length<=9;Ap+="S")vi(Ap,xPe);lde=yy("Milliseconds",!1);er("z",0,0,"zoneAbbr");er("zz",0,0,"zoneName");function SPe(){return this._isUTC?"UTC":""}function CPe(){return this._isUTC?"Coordinated Universal Time":""}var mn=p4.prototype;mn.add=mTe;mn.calendar=STe;mn.clone=CTe;mn.diff=PTe;mn.endOf=BTe;mn.format=jTe;mn.from=NTe;mn.fromNow=ATe;mn.to=DTe;mn.toNow=FTe;mn.get=IMe;mn.invalidAt=YTe;mn.isAfter=_Te;mn.isBefore=kTe;mn.isBetween=ETe;mn.isSame=$Te;mn.isSameOrAfter=MTe;mn.isSameOrBefore=TTe;mn.isValid=KTe;mn.lang=tde;mn.locale=ede;mn.localeData=nde;mn.max=K9e;mn.min=q9e;mn.parsingFlags=GTe;mn.set=jMe;mn.startOf=LTe;mn.subtract=gTe;mn.toArray=WTe;mn.toObject=VTe;mn.toDate=UTe;mn.toISOString=RTe;mn.inspect=ITe;typeof Symbol<"u"&&Symbol.for!=null&&(mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});mn.toJSON=qTe;mn.toString=OTe;mn.unix=HTe;mn.valueOf=zTe;mn.creationData=XTe;mn.eraName=ePe;mn.eraNarrow=tPe;mn.eraAbbr=nPe;mn.eraYear=rPe;mn.year=Rue;mn.isLeapYear=RMe;mn.weekYear=uPe;mn.isoWeekYear=dPe;mn.quarter=mn.quarters=vPe;mn.month=Due;mn.daysInMonth=UMe;mn.week=mn.weeks=ZMe;mn.isoWeek=mn.isoWeeks=QMe;mn.weeksInYear=hPe;mn.weeksInWeekYear=mPe;mn.isoWeeksInYear=fPe;mn.isoWeeksInISOWeekYear=pPe;mn.date=sde;mn.day=mn.days=d9e;mn.weekday=f9e;mn.isoWeekday=p9e;mn.dayOfYear=yPe;mn.hour=mn.hours=w9e;mn.minute=mn.minutes=bPe;mn.second=mn.seconds=wPe;mn.millisecond=mn.milliseconds=lde;mn.utcOffset=nTe;mn.utc=iTe;mn.local=aTe;mn.parseZone=oTe;mn.hasAlignedHourOffset=sTe;mn.isDST=lTe;mn.isLocal=uTe;mn.isUtcOffset=dTe;mn.isUtc=Xue;mn.isUTC=Xue;mn.zoneAbbr=SPe;mn.zoneName=CPe;mn.dates=_c("dates accessor is deprecated. Use date instead.",sde);mn.months=_c("months accessor is deprecated. Use month instead",Due);mn.years=_c("years accessor is deprecated. Use year instead",Rue);mn.zone=_c("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rTe);mn.isDSTShifted=_c("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",cTe);function _Pe(e){return Di(e*1e3)}function kPe(){return Di.apply(null,arguments).parseZone()}function cde(e){return e}var ti=nL.prototype;ti.calendar=uMe;ti.longDateFormat=hMe;ti.invalidDate=gMe;ti.ordinal=bMe;ti.preparse=cde;ti.postformat=cde;ti.relativeTime=xMe;ti.pastFuture=SMe;ti.set=lMe;ti.eras=ZTe;ti.erasParse=QTe;ti.erasConvertYear=JTe;ti.erasAbbrRegex=aPe;ti.erasNameRegex=iPe;ti.erasNarrowRegex=oPe;ti.months=LMe;ti.monthsShort=BMe;ti.monthsParse=HMe;ti.monthsRegex=VMe;ti.monthsShortRegex=WMe;ti.week=KMe;ti.firstDayOfYear=XMe;ti.firstDayOfWeek=YMe;ti.weekdays=o9e;ti.weekdaysMin=l9e;ti.weekdaysShort=s9e;ti.weekdaysParse=u9e;ti.weekdaysRegex=h9e;ti.weekdaysShortRegex=m9e;ti.weekdaysMinRegex=g9e;ti.isPM=y9e;ti.meridiem=x9e;function Rk(e,t,n,r){var i=Uf(),a=$d().set(r,t);return i[n](a,e)}function ude(e,t,n){if(Of(e)&&(t=e,e=void 0),e=e||"",t!=null)return Rk(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Rk(e,r,n,"month");return i}function wL(e,t,n,r){typeof e=="boolean"?(Of(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Of(t)&&(n=t,t=void 0),t=t||"");var i=Uf(),a=e?i._week.dow:0,o,s=[];if(n!=null)return Rk(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=Rk(t,(o+a)%7,r,"day");return s}function EPe(e,t){return ude(e,t,"months")}function $Pe(e,t){return ude(e,t,"monthsShort")}function MPe(e,t,n){return wL(e,t,n,"weekdays")}function TPe(e,t,n){return wL(e,t,n,"weekdaysShort")}function PPe(e,t,n){return wL(e,t,n,"weekdaysMin")}th("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Fr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});en.lang=_c("moment.lang is deprecated. Use moment.locale instead.",th);en.langData=_c("moment.langData is deprecated. Use moment.localeData instead.",Uf);var Hd=Math.abs;function OPe(){var e=this._data;return this._milliseconds=Hd(this._milliseconds),this._days=Hd(this._days),this._months=Hd(this._months),e.milliseconds=Hd(e.milliseconds),e.seconds=Hd(e.seconds),e.minutes=Hd(e.minutes),e.hours=Hd(e.hours),e.months=Hd(e.months),e.years=Hd(e.years),this}function dde(e,t,n,r){var i=_u(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function RPe(e,t){return dde(this,e,t,1)}function IPe(e,t){return dde(this,e,t,-1)}function IK(e){return e<0?Math.floor(e):Math.ceil(e)}function jPe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=IK(KI(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=ac(e/1e3),r.seconds=i%60,a=ac(i/60),r.minutes=a%60,o=ac(a/60),r.hours=o%24,t+=ac(o/24),l=ac(fde(t)),n+=l,t-=IK(KI(l)),s=ac(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function fde(e){return e*4800/146097}function KI(e){return e*146097/4800}function NPe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=kc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+fde(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(KI(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Wf(e){return function(){return this.as(e)}}var pde=Wf("ms"),APe=Wf("s"),DPe=Wf("m"),FPe=Wf("h"),LPe=Wf("d"),BPe=Wf("w"),zPe=Wf("M"),HPe=Wf("Q"),UPe=Wf("y"),WPe=pde;function VPe(){return _u(this)}function qPe(e){return e=kc(e),this.isValid()?this[e+"s"]():NaN}function zg(e){return function(){return this.isValid()?this._data[e]:NaN}}var KPe=zg("milliseconds"),GPe=zg("seconds"),YPe=zg("minutes"),XPe=zg("hours"),ZPe=zg("days"),QPe=zg("months"),JPe=zg("years");function eOe(){return ac(this.days()/7)}var nf=Math.round,mv={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function tOe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function nOe(e,t,n,r){var i=_u(e).abs(),a=nf(i.as("s")),o=nf(i.as("m")),s=nf(i.as("h")),l=nf(i.as("d")),c=nf(i.as("M")),u=nf(i.as("w")),f=nf(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,tOe.apply(null,p)}function rOe(e){return e===void 0?nf:typeof e=="function"?(nf=e,!0):!1}function iOe(e,t){return mv[e]===void 0?!1:t===void 0?mv[e]:(mv[e]=t,e==="s"&&(mv.ss=t-1),!0)}function aOe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=mv,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},mv,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=nOe(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var a9=Math.abs;function k1(e){return(e>0)-(e<0)||+e}function ME(){if(!this.isValid())return this.localeData().invalidDate();var e=a9(this._milliseconds)/1e3,t=a9(this._days),n=a9(this._months),r,i,a,o,s=this.asSeconds(),l,c,u,f;return s?(r=ac(e/60),i=ac(r/60),e%=60,r%=60,a=ac(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=k1(this._months)!==k1(s)?"-":"",u=k1(this._days)!==k1(s)?"-":"",f=k1(this._milliseconds)!==k1(s)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var Kr=EE.prototype;Kr.isValid=Q9e;Kr.abs=OPe;Kr.add=RPe;Kr.subtract=IPe;Kr.as=NPe;Kr.asMilliseconds=pde;Kr.asSeconds=APe;Kr.asMinutes=DPe;Kr.asHours=FPe;Kr.asDays=LPe;Kr.asWeeks=BPe;Kr.asMonths=zPe;Kr.asQuarters=HPe;Kr.asYears=UPe;Kr.valueOf=WPe;Kr._bubble=jPe;Kr.clone=VPe;Kr.get=qPe;Kr.milliseconds=KPe;Kr.seconds=GPe;Kr.minutes=YPe;Kr.hours=XPe;Kr.days=ZPe;Kr.weeks=eOe;Kr.months=QPe;Kr.years=JPe;Kr.humanize=aOe;Kr.toISOString=ME;Kr.toString=ME;Kr.toJSON=ME;Kr.locale=ede;Kr.localeData=nde;Kr.toIsoString=_c("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ME);Kr.lang=tde;er("X",0,0,"unix");er("x",0,0,"valueOf");Ln("x",SE);Ln("X",EMe);vi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});vi("x",function(e,t,n){n._d=new Date(Fr(e))});//! moment.js -en.version="2.30.1";oMe(Di);en.fn=mn;en.min=G9e;en.max=Y9e;en.now=X9e;en.utc=$d;en.unix=_Pe;en.months=EPe;en.isDate=f4;en.locale=th;en.invalid=yE;en.duration=_u;en.isMoment=gu;en.weekdays=MPe;en.parseZone=kPe;en.localeData=Uf;en.isDuration=VC;en.monthsShort=$Pe;en.weekdaysMin=PPe;en.defineLocale=fL;en.updateLocale=k9e;en.locales=E9e;en.weekdaysShort=TPe;en.normalizeUnits=kc;en.relativeTimeRounding=rOe;en.relativeTimeThreshold=iOe;en.calendarFormat=xTe;en.prototype=mn;en.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let lS;const oOe=new Uint8Array(16);function sOe(){if(!lS&&(lS=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lS))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lS(oOe)}const po=[];for(let e=0;e<256;++e)po.push((e+256).toString(16).slice(1));function lOe(e,t=0){return po[e[t+0]]+po[e[t+1]]+po[e[t+2]]+po[e[t+3]]+"-"+po[e[t+4]]+po[e[t+5]]+"-"+po[e[t+6]]+po[e[t+7]]+"-"+po[e[t+8]]+po[e[t+9]]+"-"+po[e[t+10]]+po[e[t+11]]+po[e[t+12]]+po[e[t+13]]+po[e[t+14]]+po[e[t+15]]}const cOe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jK={randomUUID:cOe};function uOe(e,t,n){if(jK.randomUUID&&!t&&!e)return jK.randomUUID();e=e||{};const r=e.random||(e.rng||sOe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,lOe(r)}const dOe="1.0.4";function wt(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function fOe(e){var t,n,r,i,a,o,s;const l=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,u=(r=e.meta)===null||r===void 0?void 0:r.source,f=(a=(i=e.meta)===null||i===void 0?void 0:i.license)===null||a===void 0?void 0:a.url,p=hde(e);return!l&&!c&&!u&&!f&&!p?"":''+(l?`${wt(l)}`:"")+(c?`${wt(c)}`:"")+(u?`${wt((s=(o=e.meta)===null||o===void 0?void 0:o.source)!==null&&s!==void 0?s:"")}`:"")+(f?`${wt(f)}`:"")+(p?`${wt(p)}`:"")+""}function hde(e){var t,n,r,i,a,o,s,l,c,u,f,p,h,m,g;let v=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",y=`„${(i=(r=e.meta)===null||r===void 0?void 0:r.creator)!==null&&i!==void 0?i:"Unknown"}”`;!((a=e.meta)===null||a===void 0)&&a.source&&(v+=` (${e.meta.source})`);let w="";return((s=(o=e.meta)===null||o===void 0?void 0:o.license)===null||s===void 0?void 0:s.name)!=="MIT"&&((l=e.meta)===null||l===void 0?void 0:l.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(w+="Remix of "),w+=`${v} by ${y}`,!((f=(u=e.meta)===null||u===void 0?void 0:u.license)===null||f===void 0)&&f.name&&(w+=`, licensed under „${(h=(p=e.meta)===null||p===void 0?void 0:p.license)===null||h===void 0?void 0:h.name}”`,!((g=(m=e.meta)===null||m===void 0?void 0:m.license)===null||g===void 0)&&g.url&&(w+=` (${e.meta.license.url})`)),w}function pOe(e){var t,n,r,i,a,o,s,l,c;const u=hde(e);return{"IPTC:ObjectName":(t=e.meta)===null||t===void 0?void 0:t.title,"XMP-dc:Title":(n=e.meta)===null||n===void 0?void 0:n.title,"IPTC:CopyrightNotice":u,"XMP-dc:Rights":u,"IPTC:By-line":(r=e.meta)===null||r===void 0?void 0:r.creator,"XMP-dc:Creator":(i=e.meta)===null||i===void 0?void 0:i.creator,"IPTC:Credit":(a=e.meta)===null||a===void 0?void 0:a.creator,"XMP-photoshop:Credit":(o=e.meta)===null||o===void 0?void 0:o.creator,"XMP-plus:LicensorURL":(s=e.meta)===null||s===void 0?void 0:s.source,"XMP-xmpRights:WebStatement":(c=(l=e.meta)===null||l===void 0?void 0:l.license)===null||c===void 0?void 0:c.url}}const NK=-2147483648,hOe=2147483647;function mde(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function mOe(e){let t=0;for(let n=0;nt=mde(t),r=(i,a)=>Math.floor((n()-NK)/(hOe-NK)*(a+1-i)+i);return{seed:e,next:n,bool(i=50){return r(1,100)<=i},integer(i,a){return r(i,a)},pick(i,a){var o;return i.length===0?(n(),a):(o=i[r(0,i.length-1)])!==null&&o!==void 0?o:a},shuffle(i){const a=Ik(n().toString()),o=[...i];for(let s=o.length-1;s>0;s--){const l=a.integer(0,s);[o[s],o[l]]=[o[l],o[s]]}return o},string(i,a="abcdefghijklmnopqrstuvwxyz1234567890"){const o=Ik(n().toString());let s="";for(let l=0;l`;switch(r){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function vOe(e,t){let{width:n,height:r,x:i,y:a}=by(e),o=t?(t-100)/100:0,s=(n/2+i)*o*-1,l=(r/2+a)*o*-1;return`${e.body}`}function yOe(e,t,n){let r=by(e),i=(r.width+r.x*2)*((t??0)/100),a=(r.height+r.y*2)*((n??0)/100);return`${e.body}`}function bOe(e,t){let{width:n,height:r,x:i,y:a}=by(e);return`${e.body}`}function wOe(e){let{width:t,x:n}=by(e);return`${e.body}`}function xOe(e,t){let{width:n,height:r,x:i,y:a}=by(e),o=t?n*t/100:0,s=t?r*t/100:0;return`${e.body}`}function SOe(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${wt(n)}="${wt(t[n])}"`).join(" ")}function COe(e){const t=Ik(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(r,i,a,o)=>(n[a]=n[a]||t.string(8),`${i}${n[a]}${o}`))}const _Oe={type:"object",$schema:"http://json-schema.org/draft-07/schema#",properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function AK(e){var t;let n={},r=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(r).forEach(i=>{let a=r[i];typeof a=="object"&&a.default!==void 0&&(Array.isArray(a.default)?n[i]=[...a.default]:typeof a.default=="object"?n[i]={...a.default}:n[i]=a.default)}),n}function kOe(e,t){var n;let r={...AK(_Oe),...AK((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(r))}function GI(e){switch(e){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${e}`;default:throw new Error(`Unsupported format: ${e}`)}}function EOe(e,t=512){let n=t;return e=e.replace(/]*)/,(r,i)=>{const a=i.match(/width="([^"]+)"/);return a&&(n=parseInt(a[1])),i.match(/width="([^"]+)"/)?i=i.replace(/width="([^"]+)"/,`width="${n}"`):i+=` width="${n}"`,i.match(/height="([^"]+)"/)?i=i.replace(/height="([^"]+)"/,`height="${n}"`):i+=` height="${n}"`,`xL(e,t,n),toFile:r=>TOe(r,e,t,n),toArrayBuffer:()=>MOe(e,t,n)}};async function xL(e,t,n){return t==="svg"?`data:${GI(t)};utf8,${encodeURIComponent(e)}`:(await gde(e,t,n)).toDataURL(GI(t))}async function MOe(e,t,n){if(t==="svg")return $Oe().encode(e);const r=await gde(e,t,n);return await new Promise((i,a)=>{r.toBlob(o=>{o?i(o.arrayBuffer()):a(new Error("Could not create blob"))},GI(t))})}async function TOe(e,t,n,r){const i=document.createElement("a");i.href=await xL(t,n,r),i.download=e,i.click(),i.remove()}async function gde(e,t,n){n&&console.warn("The `exif` option is not supported in the browser version of `@dicebear/converter`. \nPlease use the node version of `@dicebear/converter` to generate images with exif data.");let{svg:r,size:i}=EOe(e);const a=document.createElement("canvas");a.width=i,a.height=i;const o=a.getContext("2d");if(o===null)throw new Error("Could not get canvas context");t==="jpeg"&&(o.fillStyle="white",o.fillRect(0,0,i,i));var s=document.createElement("img");return s.width=i,s.height=i,s.setAttribute("src",await xL(r,"svg")),new Promise((l,c)=>{s.onload=()=>{o.drawImage(s,0,0,i,i),l(a)},s.onerror=u=>c(u)})}function DK(e){return e==="transparent"?e:`#${e}`}function POe(e,t,n){var r;let i=e.shuffle(t);i.length<=1||t.length==2&&n=="gradientLinear"?(i=t,e.next()):i=e.shuffle(t),i.length===0&&(i=["transparent"]);const a=i[0],o=(r=i[1])!==null&&r!==void 0?r:i[0];return{primary:DK(a),secondary:DK(o)}}function OOe(e,t={}){var n,r,i,a,o;t=kOe(e,t);const s=Ik(t.seed),l=e.create({prng:s,options:t}),c=s.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:u,secondary:f}=POe(s,(r=t.backgroundColor)!==null&&r!==void 0?r:[],c),p=s.integer(!((i=t.backgroundRotation)===null||i===void 0)&&i.length?Math.min(...t.backgroundRotation):0,!((a=t.backgroundRotation)===null||a===void 0)&&a.length?Math.max(...t.backgroundRotation):0);t.size&&(l.attributes.width=t.size.toString(),l.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(l.body=vOe(l,t.scale)),t.flip&&(l.body=wOe(l)),t.rotate&&(l.body=bOe(l,t.rotate)),(t.translateX||t.translateY)&&(l.body=yOe(l,t.translateX,t.translateY)),u!=="transparent"&&f!=="transparent"&&(l.body=gOe(l,u,f,c,p)),(t.radius||t.clip)&&(l.body=xOe(l,(o=t.radius)!==null&&o!==void 0?o:0)),t.randomizeIds&&(l.body=COe(l));const h=SOe(l),m=fOe(e),g=pOe(e),v=`${m}${l.body}`;return{toString:()=>v,toJson:()=>{var y;return{svg:v,extra:{primaryBackgroundColor:u,secondaryBackgroundColor:f,backgroundType:c,backgroundRotation:p,...(y=l.extra)===null||y===void 0?void 0:y.call(l)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(v)}`,...s9(v,"svg"),png:({includeExif:y=!1}={})=>s9(v,"png",y?g:void 0),jpeg:({includeExif:y=!1}={})=>s9(v,"jpeg",y?g:void 0)}}const ROe={variant48:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant47:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant46:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant45:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant44:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant43:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant42:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant41:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant40:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant39:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant38:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant37:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant36:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant35:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant34:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant33:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant32:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant31:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant30:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant29:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant28:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant27:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant26:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant25:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant24:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant23:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant22:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant21:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant20:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant19:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant18:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant17:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant16:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant15:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant14:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant13:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant12:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant11:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant10:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant09:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant08:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant07:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant06:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant05:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant04:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant03:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant02:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant01:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`}},IOe={flowers:(e,t)=>``},jOe={variant04:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant03:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant02:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant01:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`}},NOe={variant24:(e,t)=>``,variant23:(e,t)=>``,variant22:(e,t)=>``,variant21:(e,t)=>``,variant20:(e,t)=>``,variant19:(e,t)=>``,variant18:(e,t)=>``,variant17:(e,t)=>``,variant16:(e,t)=>``,variant15:(e,t)=>``,variant14:(e,t)=>``,variant13:(e,t)=>``,variant12:(e,t)=>``,variant11:(e,t)=>``,variant10:(e,t)=>``,variant09:(e,t)=>``,variant08:(e,t)=>``,variant07:(e,t)=>``,variant06:(e,t)=>``,variant05:(e,t)=>``,variant04:(e,t)=>``,variant03:(e,t)=>``,variant02:(e,t)=>``,variant01:(e,t)=>``},AOe={variant13:(e,t)=>``,variant12:(e,t)=>``,variant11:(e,t)=>``,variant10:(e,t)=>``,variant09:(e,t)=>``,variant08:(e,t)=>``,variant07:(e,t)=>``,variant06:(e,t)=>``,variant05:(e,t)=>``,variant04:(e,t)=>``,variant03:(e,t)=>``,variant02:(e,t)=>``,variant01:(e,t)=>``},DOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``},FOe={variant01:(e,t)=>``},LOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``,variant04:(e,t)=>``,variant05:(e,t)=>``,variant06:(e,t)=>``},BOe={variant01:(e,t)=>``,variant02:(e,t)=>``},zOe={happy01:(e,t)=>``,happy02:(e,t)=>``,happy03:(e,t)=>``,happy04:(e,t)=>``,happy05:(e,t)=>``,happy06:(e,t)=>``,happy07:(e,t)=>``,happy08:(e,t)=>``,happy18:(e,t)=>``,happy09:(e,t)=>``,happy10:(e,t)=>``,happy11:(e,t)=>``,happy12:(e,t)=>``,happy13:(e,t)=>``,happy14:(e,t)=>``,happy17:(e,t)=>``,happy15:(e,t)=>``,happy16:(e,t)=>``,sad01:(e,t)=>``,sad02:(e,t)=>``,sad03:(e,t)=>``,sad04:(e,t)=>``,sad05:(e,t)=>``,sad06:(e,t)=>``,sad07:(e,t)=>``,sad08:(e,t)=>``,sad09:(e,t)=>``},HOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``,variant04:(e,t)=>``,variant05:(e,t)=>``},UOe=Object.freeze(Object.defineProperty({__proto__:null,beard:BOe,earrings:DOe,eyebrows:AOe,eyes:NOe,freckles:FOe,glasses:HOe,hair:ROe,hairAccessories:IOe,head:jOe,mouth:zOe,nose:LOe},Symbol.toStringTag,{value:"Module"}));function Ac({prng:e,group:t,values:n=[]}){const r=UOe,i=e.pick(n);if(i&&r[t][i])return{name:i,value:r[t][i]}}function WOe({prng:e,options:t}){const n=Ac({prng:e,group:"hair",values:t.hair}),r=Ac({prng:e,group:"hairAccessories",values:t.hairAccessories}),i=Ac({prng:e,group:"head",values:t.head}),a=Ac({prng:e,group:"eyes",values:t.eyes}),o=Ac({prng:e,group:"eyebrows",values:t.eyebrows}),s=Ac({prng:e,group:"earrings",values:t.earrings}),l=Ac({prng:e,group:"freckles",values:t.freckles}),c=Ac({prng:e,group:"nose",values:t.nose}),u=Ac({prng:e,group:"beard",values:t.beard}),f=Ac({prng:e,group:"mouth",values:t.mouth}),p=Ac({prng:e,group:"glasses",values:t.glasses});return{hair:n,hairAccessories:e.bool(t.hairAccessoriesProbability)?r:void 0,head:i,eyes:a,eyebrows:o,earrings:e.bool(t.earringsProbability)?s:void 0,freckles:e.bool(t.frecklesProbability)?l:void 0,nose:c,beard:e.bool(t.beardProbability)?u:void 0,mouth:f,glasses:e.bool(t.glassesProbability)?p:void 0}}function Du(e){return e==="transparent"?e:`#${e}`}function VOe({prng:e,options:t}){var n,r,i,a,o,s,l,c,u,f;return{hair:Du(e.pick((n=t.hairColor)!==null&&n!==void 0?n:[],"transparent")),skin:Du(e.pick((r=t.skinColor)!==null&&r!==void 0?r:[],"transparent")),earrings:Du(e.pick((i=t.earringsColor)!==null&&i!==void 0?i:[],"transparent")),eyebrows:Du(e.pick((a=t.eyebrowsColor)!==null&&a!==void 0?a:[],"transparent")),eyes:Du(e.pick((o=t.eyesColor)!==null&&o!==void 0?o:[],"transparent")),freckles:Du(e.pick((s=t.frecklesColor)!==null&&s!==void 0?s:[],"transparent")),glasses:Du(e.pick((l=t.glassesColor)!==null&&l!==void 0?l:[],"transparent")),mouth:Du(e.pick((c=t.mouthColor)!==null&&c!==void 0?c:[],"transparent")),nose:Du(e.pick((u=t.noseColor)!==null&&u!==void 0?u:[],"transparent")),hairAccessories:Du(e.pick((f=t.hairAccessoriesColor)!==null&&f!==void 0?f:[],"transparent"))}}function qOe({prng:e,options:t,components:n,colors:r}){n.beard&&r.hair===r.mouth&&(r.mouth="#ffffff")}const KOe={$schema:"http://json-schema.org/draft-07/schema#",properties:{beard:{type:"array",items:{type:"string",enum:["variant01","variant02"]},default:["variant01","variant02"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:5},earrings:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03"]},default:["variant01","variant02","variant03"]},earringsColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},earringsProbability:{type:"integer",minimum:0,maximum:100,default:10},eyebrows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyebrowsColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},eyes:{type:"array",items:{type:"string",enum:["variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},freckles:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},frecklesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},frecklesProbability:{type:"integer",minimum:0,maximum:100,default:5},glasses:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03","variant04","variant05"]},default:["variant01","variant02","variant03","variant04","variant05"]},glassesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:10},hair:{type:"array",items:{type:"string",enum:["variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},hairAccessories:{type:"array",items:{type:"string",enum:["flowers"]},default:["flowers"]},hairAccessoriesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},hairAccessoriesProbability:{type:"integer",minimum:0,maximum:100,default:5},hairColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},head:{type:"array",items:{type:"string",enum:["variant04","variant03","variant02","variant01"]},default:["variant04","variant03","variant02","variant01"]},mouth:{type:"array",items:{type:"string",enum:["happy01","happy02","happy03","happy04","happy05","happy06","happy07","happy08","happy18","happy09","happy10","happy11","happy12","happy13","happy14","happy17","happy15","happy16","sad01","sad02","sad03","sad04","sad05","sad06","sad07","sad08","sad09"]},default:["happy01","happy02","happy03","happy04","happy05","happy06","happy07","happy08","happy18","happy09","happy10","happy11","happy12","happy13","happy14","happy17","happy15","happy16","sad01","sad02","sad03","sad04","sad05","sad06","sad07","sad08","sad09"]},mouthColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},nose:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06"]},default:["variant01","variant02","variant03","variant04","variant05","variant06"]},noseColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},skinColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["ffffff"]}}},GOe={title:"Lorelei",creator:"Lisa Wischofsky",source:"https://www.figma.com/community/file/1198749693280469639",homepage:"https://www.instagram.com/lischi_art/",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},YOe=({prng:e,options:t})=>{var n,r,i,a;const o=WOe({prng:e,options:t}),s=VOe({prng:e,options:t});return qOe({prng:e,options:t,components:o,colors:s}),{attributes:{viewBox:"0 0 980 980",fill:"none","shape-rendering":"auto"},body:`${(r=(n=o.hair)===null||n===void 0?void 0:n.value(o,s))!==null&&r!==void 0?r:""}${(a=(i=o.hairAccessories)===null||i===void 0?void 0:i.value(o,s))!==null&&a!==void 0?a:""}`,extra:()=>({...Object.entries(o).reduce((l,[c,u])=>(l[c]=u==null?void 0:u.name,l),{}),...Object.entries(s).reduce((l,[c,u])=>(l[`${c}Color`]=u,l),{})})}},XOe=Object.freeze(Object.defineProperty({__proto__:null,create:YOe,meta:GOe,schema:KOe},Symbol.toStringTag,{value:"Module"}));function ZOe(){return dOe}function QOe(){const e=localStorage.getItem(MC);(e===null||e==="true")&&new Audio(q6e).play()}function Pv(){return en().format("YYYY-MM-DD HH:mm:ss")}function Ba(){return uOe().replaceAll(/-/g,"")}function jk(e){return OOe(XOe,{seed:e,size:40}).toDataUriSync()}function E1(e){return e.endsWith("/")?e.slice(0,-1):e}const JOe=e=>{if(typeof e=="string"){const t=en(),n=en(e);return n.isSame(t,"day")?n.format("HH:mm"):n.format("MM-DD HH:mm")}else return e};function Nk(e,t){return(e==null?void 0:e.length)>t?e.slice(0,t-3)+"...":e}function KC(e,t){const n=en(new Date).format("YYYYMMDDHHmmss")+"_"+e.name,r=new FormData;r.append("file",e),r.append("file_name",n),r.append("file_type",e.type),r.append("is_avatar","false"),r.append("kb_type",kF),r.append("client",kn),console.log("handleUpload formData",r),fetch(fy(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},body:r}).then(i=>i.json()).then(i=>{console.log("upload data:",i),t(i)})}const eRe=e=>(e==null?void 0:e.type)===vF,Ak=e=>(e==null?void 0:e.type)===xse,Fo=e=>(e==null?void 0:e.type)===Sse,Rf=e=>(e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3,YI=e=>(e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3||(e==null?void 0:e.type)===Cse,tRe=e=>(e==null?void 0:e.type)===q3,nRe=e=>(e==null?void 0:e.type)===K3,Dk=e=>(e==null?void 0:e.type)===Cse,Fk=e=>(e==null?void 0:e.type)===vF,rRe=e=>(console.log("isDeviceThread",e),!1),iRe=e=>cRe(e==null?void 0:e.topic),aRe=(e,t)=>{var n,r;return((n=t==null?void 0:t.invites)==null?void 0:n.length)===0?!1:(r=t==null?void 0:t.invites)==null?void 0:r.every(i=>i.uid!==(e==null?void 0:e.uid))};function oRe(e){if(vo===e||Cl===e||cd===e||Fw===e||sg===e)return!0}function sRe(e){return e===g0||e===v0}function lRe(e){return e===g0||e===v0}function cRe(e){return e==null?void 0:e.startsWith(p5e)}function uRe(e){return e==null?void 0:e.startsWith(Mse)}function dRe(e){const t=e==null?void 0:e.split("/");if(t.length!==4)throw new Error(`Invalid private topic: ${e}`);return[t[2],t[3]]=[t[3],t[2]],t.join("/")}function fRe(e){return e==null?void 0:e.startsWith(Tse)}function pRe(e){return e==null?void 0:e.startsWith(Pse)}function hRe(e){return e==null?void 0:e.startsWith(h5e)}function mRe(e){return e==null?void 0:e.startsWith(m5e)}function vde(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const yde=e=>e&&(e.includes("

")||e.includes("

")||e.includes("")||e.includes("
    "));function Vw(e){switch(e){case lg:return"blue";case Y3:return"purple";case ly:return"green";case X3:return"orange";case Z3:return"gold";case Q3:return"magenta";case J3:return"cyan";case e4:return"default";case t4:return"red";default:return"default"}}function Lk(e){switch(e){case EF:return"blue";case wk:return"purple";case $F:return"red";case MF:return"orange";case TF:return"default";default:return"default"}}const FK=(e,t)=>{var n;return((n=e==null?void 0:e.assignee)==null?void 0:n.uid)===(t==null?void 0:t.uid)},Ja=(e,t,n,r)=>{var i,a;return e?n==null?!1:((i=t==null?void 0:t.assignee)==null?void 0:i.uid)===(r==null?void 0:r.uid)||((a=t==null?void 0:t.reporter)==null?void 0:a.uid)===(r==null?void 0:r.uid):!0},W2=(e,t)=>e?(t==null?void 0:t.status)===ly||(t==null?void 0:t.status)===PF:!0,gRe=()=>{const e=navigator.language.toLowerCase();console.log("AppWrapper getBrowserLanguage browserLang: ",e);const t=["en","zh-cn","zh-tw","ja","ko"];if(e.startsWith("zh"))return e.includes("tw")?"zh-tw":"zh-cn";const n=e.split("-")[0];return t.includes(n)?n:"en"},SL=(e,t,n,r,i,a,o)=>{var u;let s;(n==null?void 0:n.uid)!=""&&((e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3)?s={uid:n.uid,nickname:n.nickname,avatar:n.avatar,type:uh}:s={uid:t.uid,nickname:t.nickname,avatar:t.avatar,type:V5};const l={orgUid:(u=t==null?void 0:t.currentOrganization)==null?void 0:u.uid};return{uid:r,type:i,status:$p,createdAt:o,client:kn,content:a,extra:JSON.stringify(l),user:s,thread:e}},bde=(e,t,n,r,i,a,o)=>{let s;return(n==null?void 0:n.uid)!=""&&((e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3)?s={uid:n.uid,nickname:n.nickname,avatar:n.avatar,type:uh}:s={uid:t.uid,nickname:t.nickname,avatar:t.avatar,type:V5},{uid:r,type:i,status:Dw,createdAt:o,client:kn,content:a,user:s,topic:e==null?void 0:e.topic}},vRe=(e,t,n,r,i,a,o)=>{var u;const s={uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,type:gk},l={orgUid:(u=t==null?void 0:t.currentOrganization)==null?void 0:u.uid};return{uid:r,type:i,status:$p,createdAt:o,client:kn,content:a,extra:JSON.stringify(l),user:s,thread:e}},yRe=e=>{if(!e)return"";const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""},Vr=so()(es(ts(ns(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:x6e}))),fr=so()(es(ts(ns((e,t)=>({threads:[],queuingThreads:[],invitedThreads:[],monitoringThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},currentTicketThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,a;if(n.state===BV)return t().addQueuingThread(n),0;if(t().threads.some(o=>o.uid===n.uid))if(((i=t().currentThread)==null?void 0:i.uid)===""||((a=t().currentThread)==null?void 0:a.uid)!==n.uid){for(let o=0;oo.uid!==n.uid)]}),n.unreadCount}else{const o=t().threads.map(s=>s.uid===n.uid?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:o}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){if(r.type===e5e)return t().addQueuingThread(n),0;const i=!sRe(r.type);lRe(r.type)&&(n.state=nR);const o="topic",s=t().threads.some(u=>u[o]===n[o]),l=t().currentThread[o]===n[o];if(!s)return i&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount;if(!l){const u=t().threads.find(f=>f[o]===n[o]);return u&&(n=bRe(n,u,i)),e({threads:[n,...t().threads.filter(f=>f[o]!==n[o])]}),n.unreadCount}const c=t().threads.map(u=>u[o]===n[o]?wde(n,u):u);return e({threads:c}),0},addQueuingThread(n){t().queuingThreads.some(i=>i.uid===n.uid)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const a=t().threads.map(o=>o.uid===n?(i={...o,unreadCount:o.unreadCount+1,content:r},i):o);return e({threads:a}),i},updateThreadStatus(n,r){let i=null;const a=t().threads.map(o=>o.uid===n?(i={...o,state:r},i):o);return e({threads:a}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},removeThreadWithUid(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==n)]})},closeThread(n){const r=t().threads.map(i=>i.uid===n?{...i,state:nR}:i);e({threads:r})},addThreads(n){for(let r=0;ro.uid===i.uid))e({threads:[...t().threads,i]});else{const o=t().threads.map(s=>s.uid===i.uid?{...i,unreadCount:s.unreadCount}:s);e({threads:o})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setInvitedThreads(n){e(r=>{r.invitedThreads=n})},setMonitoringThreads(n){e(r=>{r.monitoringThreads=n})},setCurrentThread(n){e(a=>{a.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(a=>a.uid===r.uid?r:a);e(a=>{a.currentThread=r,a.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setCurrentTicketThread(n){e(r=>{r.currentTicketThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.uid!==((i=t().currentThread)==null?void 0:i.uid)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=Vr.getState();if(n!=null&&n.uid){const{threadService:r}=await Sue(async()=>{const{threadService:i}=await Promise.resolve().then(()=>AWt);return{threadService:i}},void 0);await r.loadThreads()}},setPagination:n=>e({pagination:n})})),{name:T6e}))),wde=(e,t)=>(e.top=t.top,e.mute=t.mute,e.unread=t.unread,e.agent=t.agent,e),bRe=(e,t,n)=>(n&&(e.unreadCount=t.unreadCount+1),wde(e,t)),Td=so()(es(ts(ns((e,t)=>({messageList:[],addMessageProtobuf(n){var i;const r={...n,extra:JSON.parse(n==null?void 0:n.extra),topic:(i=n.thread)==null?void 0:i.topic};t().addMessage(r)},addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===$f){const a=t().messageList.findIndex(o=>o.type===$f&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===m0&&i.type===m0){const a=t().messageList.findIndex(s=>s.uid===i.uid),o=[...t().messageList];o[a]=n,e({messageList:o})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let a=0;al.uid===o.uid)||r.unshift(o)}const i=[...r,...t().messageList].sort((a,o)=>{const s=en(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=en(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList];a[i].status=r,e({messageList:a})}},updateMessageTransferStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList],o=a[i],s=JSON.parse(o.content);s.status=r,a[i].content=JSON.stringify(s),e({messageList:a})}},updateMessageInviteStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList],o=a[i],s=JSON.parse(o.content);s.status=r,a[i].content=JSON.stringify(s),e({messageList:a})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=G3,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const a=en(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),o=en(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-o});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:k6e}))),ia=so()(es(ts(ns((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:$6e}))),Eo=so()(es(ts(ns((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i.splice(a,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:O6e}))),Na=so()(es(ts(ns(e=>({currentMember:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberInfo:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(t){e({currentMember:t})},setMemberInfo(t){e({memberInfo:t})},setMemberResult:t=>{e({memberResult:t})},resetMembers:()=>e({currentMember:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberInfo:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}}})})),{name:C6e})));var xde={exports:{}};/*! +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var TK={};function kue(e,t){en.deprecationHandler!=null&&en.deprecationHandler(e,t),TK[e]||(_ue(t),TK[e]=!0)}en.suppressDeprecationWarnings=!1;en.deprecationHandler=null;function Md(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function sMe(e){var t,n;for(n in e)Jr(e,n)&&(t=e[n],Md(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function HI(e,t){var n=Np({},e),r;for(r in t)Jr(t,r)&&(Hm(e[r])&&Hm(t[r])?(n[r]={},Np(n[r],e[r]),Np(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Jr(e,r)&&!Jr(t,r)&&Hm(e[r])&&(n[r]=Np({},n[r]));return n}function nL(e){e!=null&&this.set(e)}var UI;Object.keys?UI=Object.keys:UI=function(e){var t,n=[];for(t in e)Jr(e,t)&&n.push(t);return n};var lMe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function cMe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Md(r)?r.call(t,n):r}function gd(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var rL=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,aS=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,r9={},$v={};function er(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&($v[e]=i),t&&($v[t[0]]=function(){return gd(i.apply(this,arguments),t[1],t[2])}),n&&($v[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function uMe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function dMe(e){var t=e.match(rL),n,r;for(n=0,r=t.length;n=0&&aS.test(e);)e=e.replace(aS,r),aS.lastIndex=0,n-=1;return e}var fMe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function pMe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(rL).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var hMe="Invalid date";function mMe(){return this._invalidDate}var gMe="%d",vMe=/\d{1,2}/;function yMe(e){return this._ordinal.replace("%d",e)}var bMe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wMe(e,t,n,r){var i=this._relativeTime[n];return Md(i)?i(e,t,n,r):i.replace(/%d/i,e)}function xMe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Md(n)?n(t):n.replace(/%s/i,t)}var PK={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function kc(e){return typeof e=="string"?PK[e]||PK[e.toLowerCase()]:void 0}function iL(e){var t={},n,r;for(r in e)Jr(e,r)&&(n=kc(r),n&&(t[n]=e[r]));return t}var SMe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function CMe(e){var t=[],n;for(n in e)Jr(e,n)&&t.push({unit:n,priority:SMe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var $ue=/\d/,zl=/\d\d/,Mue=/\d{3}/,aL=/\d{4}/,bE=/[+-]?\d{6}/,Li=/\d\d?/,Tue=/\d\d\d\d?/,Pue=/\d\d\d\d\d\d?/,wE=/\d{1,3}/,oL=/\d{1,4}/,xE=/[+-]?\d{1,6}/,gy=/\d+/,SE=/[+-]?\d+/,_Me=/Z|[+-]\d\d:?\d\d/gi,CE=/Z|[+-]\d\d(?::?\d\d)?/gi,kMe=/[+-]?\d+(\.\d{1,3})?/,p4=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,vy=/^[1-9]\d?/,sL=/^([1-9]\d|\d)/,$k;$k={};function Ln(e,t,n){$k[e]=Md(t)?t:function(r,i){return r&&n?n:t}}function EMe(e,t){return Jr($k,e)?$k[e](t._strict,t._locale):new RegExp($Me(e))}function $Me(e){return vf(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function vf(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ac(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Fr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=ac(t)),n}var WI={};function vi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Of(t)&&(r=function(a,o){o[t]=Fr(a)}),i=e.length,n=0;n68?1900:2e3)};var Oue=yy("FullYear",!0);function OMe(){return _E(this.year())}function yy(e,t){return function(n){return n!=null?(Rue(this,e,n),en.updateOffset(this,t),this):zw(this,e)}}function zw(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Rue(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!_E(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function RMe(e){return e=kc(e),Md(this[e])?this[e]():this}function IMe(e,t){if(typeof e=="object"){e=iL(e);var n=CMe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Hw(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Mk(e,t,n){var r=7+t-n,i=(7+Hw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Fue(e,t,n,r,i){var a=(7+n-r)%7,o=Mk(e,r,i),s=1+7*(t-1)+a+o,l,c;return s<=0?(l=e-1,c=U2(l)+s):s>U2(e)?(l=e+1,c=s-U2(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Uw(e,t,n){var r=Mk(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+yf(o,t,n)):i>yf(e.year(),t,n)?(a=i-yf(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function yf(e,t,n){var r=Mk(e,t,n),i=Mk(e+1,t,n);return(U2(e)-r+i)/7}er("w",["ww",2],"wo","week");er("W",["WW",2],"Wo","isoWeek");Ln("w",Li,vy);Ln("ww",Li,zl);Ln("W",Li,vy);Ln("WW",Li,zl);h4(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Fr(e)});function qMe(e){return Uw(e,this._week.dow,this._week.doy).week}var KMe={dow:0,doy:6};function GMe(){return this._week.dow}function YMe(){return this._week.doy}function XMe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ZMe(e){var t=Uw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}er("d",0,"do","day");er("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});er("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});er("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});er("e",0,0,"weekday");er("E",0,0,"isoWeekday");Ln("d",Li);Ln("e",Li);Ln("E",Li);Ln("dd",function(e,t){return t.weekdaysMinRegex(e)});Ln("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ln("dddd",function(e,t){return t.weekdaysRegex(e)});h4(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:kr(n).invalidWeekday=e});h4(["d","e","E"],function(e,t,n,r){t[r]=Fr(e)});function QMe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function JMe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function cL(e,t){return e.slice(t,7).concat(e.slice(0,t))}var e9e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),t9e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),n9e=p4,r9e=p4,i9e=p4;function a9e(e,t){var n=mu(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?cL(n,this._week.dow):e?n[e.day()]:n}function o9e(e){return e===!0?cL(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function s9e(e){return e===!0?cL(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function l9e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=$d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=wa.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=wa.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=wa.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=wa.call(this._weekdaysParse,o),i!==-1||(i=wa.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=wa.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=wa.call(this._shortWeekdaysParse,o),i!==-1||(i=wa.call(this._weekdaysParse,o),i!==-1)?i:(i=wa.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=wa.call(this._minWeekdaysParse,o),i!==-1||(i=wa.call(this._weekdaysParse,o),i!==-1)?i:(i=wa.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function c9e(e,t,n){var r,i,a;if(this._weekdaysParseExact)return l9e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=$d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function u9e(e){if(!this.isValid())return e!=null?this:NaN;var t=zw(this,"Day");return e!=null?(e=QMe(e,this.localeData()),this.add(e-t,"d")):t}function d9e(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function f9e(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=JMe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function p9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||uL.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Jr(this,"_weekdaysRegex")||(this._weekdaysRegex=n9e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function h9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||uL.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=r9e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function m9e(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||uL.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=i9e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function uL(){function e(u,f){return f.length-u.length}var t=[],n=[],r=[],i=[],a,o,s,l,c;for(a=0;a<7;a++)o=$d([2e3,1]).day(a),s=vf(this.weekdaysMin(o,"")),l=vf(this.weekdaysShort(o,"")),c=vf(this.weekdays(o,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function dL(){return this.hours()%12||12}function g9e(){return this.hours()||24}er("H",["HH",2],0,"hour");er("h",["hh",2],0,dL);er("k",["kk",2],0,g9e);er("hmm",0,0,function(){return""+dL.apply(this)+gd(this.minutes(),2)});er("hmmss",0,0,function(){return""+dL.apply(this)+gd(this.minutes(),2)+gd(this.seconds(),2)});er("Hmm",0,0,function(){return""+this.hours()+gd(this.minutes(),2)});er("Hmmss",0,0,function(){return""+this.hours()+gd(this.minutes(),2)+gd(this.seconds(),2)});function Bue(e,t){er(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Bue("a",!0);Bue("A",!1);function zue(e,t){return t._meridiemParse}Ln("a",zue);Ln("A",zue);Ln("H",Li,sL);Ln("h",Li,vy);Ln("k",Li,vy);Ln("HH",Li,zl);Ln("hh",Li,zl);Ln("kk",Li,zl);Ln("hmm",Tue);Ln("hmmss",Pue);Ln("Hmm",Tue);Ln("Hmmss",Pue);vi(["H","HH"],Ua);vi(["k","kk"],function(e,t,n){var r=Fr(e);t[Ua]=r===24?0:r});vi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});vi(["h","hh"],function(e,t,n){t[Ua]=Fr(e),kr(n).bigHour=!0});vi("hmm",function(e,t,n){var r=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r)),kr(n).bigHour=!0});vi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r,2)),t[hf]=Fr(e.substr(i)),kr(n).bigHour=!0});vi("Hmm",function(e,t,n){var r=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r))});vi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ua]=Fr(e.substr(0,r)),t[eu]=Fr(e.substr(r,2)),t[hf]=Fr(e.substr(i))});function v9e(e){return(e+"").toLowerCase().charAt(0)==="p"}var y9e=/[ap]\.?m?\.?/i,b9e=yy("Hours",!0);function w9e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Hue={calendar:lMe,longDateFormat:fMe,invalidDate:hMe,ordinal:gMe,dayOfMonthOrdinalParse:vMe,relativeTime:bMe,months:NMe,monthsShort:Iue,week:KMe,weekdays:e9e,weekdaysMin:t9e,weekdaysShort:Lue,meridiemParse:y9e},Ui={},Mb={},Ww;function x9e(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=kE(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&x9e(a,r)>=n-1)break;n--}t++}return Ww}function C9e(e){return!!(e&&e.match("^[^/\\\\]*$"))}function kE(e){var t=null,n;if(Ui[e]===void 0&&typeof Vo<"u"&&Vo&&Vo.exports&&C9e(e))try{t=Ww._abbr,n=require,n("./locale/"+e),th(t)}catch{Ui[e]=null}return Ui[e]}function th(e,t){var n;return e&&(Ts(t)?n=Uf(e):n=fL(e,t),n?Ww=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ww._abbr}function fL(e,t){if(t!==null){var n,r=Hue;if(t.abbr=e,Ui[e]!=null)kue("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ui[e]._config;else if(t.parentLocale!=null)if(Ui[t.parentLocale]!=null)r=Ui[t.parentLocale]._config;else if(n=kE(t.parentLocale),n!=null)r=n._config;else return Mb[t.parentLocale]||(Mb[t.parentLocale]=[]),Mb[t.parentLocale].push({name:e,config:t}),null;return Ui[e]=new nL(HI(r,t)),Mb[e]&&Mb[e].forEach(function(i){fL(i.name,i.config)}),th(e),Ui[e]}else return delete Ui[e],null}function _9e(e,t){if(t!=null){var n,r,i=Hue;Ui[e]!=null&&Ui[e].parentLocale!=null?Ui[e].set(HI(Ui[e]._config,t)):(r=kE(e),r!=null&&(i=r._config),t=HI(i,t),r==null&&(t.abbr=e),n=new nL(t),n.parentLocale=Ui[e],Ui[e]=n),th(e)}else Ui[e]!=null&&(Ui[e].parentLocale!=null?(Ui[e]=Ui[e].parentLocale,e===th()&&th(e)):Ui[e]!=null&&delete Ui[e]);return Ui[e]}function Uf(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ww;if(!mu(e)){if(t=kE(e),t)return t;e=[e]}return S9e(e)}function k9e(){return UI(Ui)}function pL(e){var t,n=e._a;return n&&kr(e).overflow===-2&&(t=n[pf]<0||n[pf]>11?pf:n[Ju]<1||n[Ju]>lL(n[qo],n[pf])?Ju:n[Ua]<0||n[Ua]>24||n[Ua]===24&&(n[eu]!==0||n[hf]!==0||n[wm]!==0)?Ua:n[eu]<0||n[eu]>59?eu:n[hf]<0||n[hf]>59?hf:n[wm]<0||n[wm]>999?wm:-1,kr(e)._overflowDayOfYear&&(tJu)&&(t=Ju),kr(e)._overflowWeeks&&t===-1&&(t=TMe),kr(e)._overflowWeekday&&t===-1&&(t=PMe),kr(e).overflow=t),e}var E9e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$9e=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,M9e=/Z|[+-]\d\d(?::?\d\d)?/,oS=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],i9=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],T9e=/^\/?Date\((-?\d+)/i,P9e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,O9e={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Uue(e){var t,n,r=e._i,i=E9e.exec(r)||$9e.exec(r),a,o,s,l,c=oS.length,u=i9.length;if(i){for(kr(e).iso=!0,t=0,n=c;tU2(o)||e._dayOfYear===0)&&(kr(e)._overflowDayOfYear=!0),n=Hw(o,0,e._dayOfYear),e._a[pf]=n.getUTCMonth(),e._a[Ju]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ua]===24&&e._a[eu]===0&&e._a[hf]===0&&e._a[wm]===0&&(e._nextDay=!0,e._a[Ua]=0),e._d=(e._useUTC?Hw:VMe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ua]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(kr(e).weekdayMismatch=!0)}}function L9e(e){var t,n,r,i,a,o,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Y1(t.GG,e._a[qo],Uw(Di(),1,4).year),r=Y1(t.W,1),i=Y1(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=Uw(Di(),a,o),n=Y1(t.gg,e._a[qo],c.year),r=Y1(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>yf(n,a,o)?kr(e)._overflowWeeks=!0:l!=null?kr(e)._overflowWeekday=!0:(s=Fue(n,r,i,a,o),e._a[qo]=s.year,e._dayOfYear=s.dayOfYear)}en.ISO_8601=function(){};en.RFC_2822=function(){};function mL(e){if(e._f===en.ISO_8601){Uue(e);return}if(e._f===en.RFC_2822){Wue(e);return}e._a=[],kr(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,l=0,c,u;for(i=Eue(e._f,e._locale).match(rL)||[],u=i.length,n=0;n0&&kr(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),l+=r.length),$v[a]?(r?kr(e).empty=!1:kr(e).unusedTokens.push(a),MMe(a,r,e)):e._strict&&!r&&kr(e).unusedTokens.push(a);kr(e).charsLeftOver=s-l,t.length>0&&kr(e).unusedInput.push(t),e._a[Ua]<=12&&kr(e).bigHour===!0&&e._a[Ua]>0&&(kr(e).bigHour=void 0),kr(e).parsedDateParts=e._a.slice(0),kr(e).meridiem=e._meridiem,e._a[Ua]=B9e(e._locale,e._a[Ua],e._meridiem),c=kr(e).era,c!==null&&(e._a[qo]=e._locale.erasConvertYear(c,e._a[qo])),hL(e),pL(e)}function B9e(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function z9e(e){var t,n,r,i,a,o,s=!1,l=e._f.length;if(l===0){kr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:yE()});function Kue(e,t){var n,r;if(t.length===1&&mu(t[0])&&(t=t[0]),!t.length)return Di();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function lTe(){if(!Ts(this._isDSTShifted))return this._isDSTShifted;var e={},t;return tL(e,this),e=Vue(e),e._a?(t=e._isUTC?$d(e._a):Di(e._a),this._isDSTShifted=this.isValid()&&J9e(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function cTe(){return this.isValid()?!this._isUTC:!1}function uTe(){return this.isValid()?this._isUTC:!1}function Yue(){return this.isValid()?this._isUTC&&this._offset===0:!1}var dTe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fTe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _u(e,t){var n=e,r=null,i,a,o;return WC(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Of(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=dTe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Fr(r[Ju])*i,h:Fr(r[Ua])*i,m:Fr(r[eu])*i,s:Fr(r[hf])*i,ms:Fr(VI(r[wm]*1e3))*i}):(r=fTe.exec(e))?(i=r[1]==="-"?-1:1,n={y:qh(r[2],i),M:qh(r[3],i),w:qh(r[4],i),d:qh(r[5],i),h:qh(r[6],i),m:qh(r[7],i),s:qh(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=pTe(Di(n.from),Di(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new EE(n),WC(e)&&Jr(e,"_locale")&&(a._locale=e._locale),WC(e)&&Jr(e,"_isValid")&&(a._isValid=e._isValid),a}_u.fn=EE.prototype;_u.invalid=Q9e;function qh(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function RK(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function pTe(e,t){var n;return e.isValid()&&t.isValid()?(t=vL(t,e),e.isBefore(t)?n=RK(e,t):(n=RK(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Xue(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(kue(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=_u(n,r),Zue(this,i,e),this}}function Zue(e,t,n,r){var i=t._milliseconds,a=VI(t._days),o=VI(t._months);e.isValid()&&(r=r??!0,o&&Nue(e,zw(e,"Month")+o*n),a&&Rue(e,"Date",zw(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&en.updateOffset(e,a||o))}var hTe=Xue(1,"add"),mTe=Xue(-1,"subtract");function Que(e){return typeof e=="string"||e instanceof String}function gTe(e){return gu(e)||d4(e)||Que(e)||Of(e)||yTe(e)||vTe(e)||e===null||e===void 0}function vTe(e){var t=Hm(e)&&!JF(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,o=r.length;for(i=0;in.valueOf():n.valueOf()9999?UC(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Md(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",UC(n,"Z")):UC(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function RTe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function ITe(e){e||(e=this.isUtc()?en.defaultFormatUtc:en.defaultFormat);var t=UC(this,e);return this.localeData().postformat(t)}function jTe(e,t){return this.isValid()&&(gu(e)&&e.isValid()||Di(e).isValid())?_u({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function NTe(e){return this.from(Di(),e)}function ATe(e,t){return this.isValid()&&(gu(e)&&e.isValid()||Di(e).isValid())?_u({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function DTe(e){return this.to(Di(),e)}function Jue(e){var t;return e===void 0?this._locale._abbr:(t=Uf(e),t!=null&&(this._locale=t),this)}var ede=_c("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function tde(){return this._locale}var Tk=1e3,Mv=60*Tk,Pk=60*Mv,nde=(365*400+97)*24*Pk;function Tv(e,t){return(e%t+t)%t}function rde(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-nde:new Date(e,t,n).valueOf()}function ide(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-nde:Date.UTC(e,t,n)}function FTe(e){var t,n;if(e=kc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ide:rde,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Tv(t+(this._isUTC?0:this.utcOffset()*Mv),Pk);break;case"minute":t=this._d.valueOf(),t-=Tv(t,Mv);break;case"second":t=this._d.valueOf(),t-=Tv(t,Tk);break}return this._d.setTime(t),en.updateOffset(this,!0),this}function LTe(e){var t,n;if(e=kc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ide:rde,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pk-Tv(t+(this._isUTC?0:this.utcOffset()*Mv),Pk)-1;break;case"minute":t=this._d.valueOf(),t+=Mv-Tv(t,Mv)-1;break;case"second":t=this._d.valueOf(),t+=Tk-Tv(t,Tk)-1;break}return this._d.setTime(t),en.updateOffset(this,!0),this}function BTe(){return this._d.valueOf()-(this._offset||0)*6e4}function zTe(){return Math.floor(this.valueOf()/1e3)}function HTe(){return new Date(this.valueOf())}function UTe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function WTe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function VTe(){return this.isValid()?this.toISOString():null}function qTe(){return eL(this)}function KTe(){return Np({},kr(this))}function GTe(){return kr(this).overflow}function YTe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}er("N",0,0,"eraAbbr");er("NN",0,0,"eraAbbr");er("NNN",0,0,"eraAbbr");er("NNNN",0,0,"eraName");er("NNNNN",0,0,"eraNarrow");er("y",["y",1],"yo","eraYear");er("y",["yy",2],0,"eraYear");er("y",["yyy",3],0,"eraYear");er("y",["yyyy",4],0,"eraYear");Ln("N",yL);Ln("NN",yL);Ln("NNN",yL);Ln("NNNN",oPe);Ln("NNNNN",sPe);vi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?kr(n).era=i:kr(n).invalidEra=e});Ln("y",gy);Ln("yy",gy);Ln("yyy",gy);Ln("yyyy",gy);Ln("yo",lPe);vi(["y","yy","yyy","yyyy"],qo);vi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[qo]=n._locale.eraYearOrdinalParse(e,i):t[qo]=parseInt(e,10)});function XTe(e,t){var n,r,i,a=this._eras||Uf("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function QTe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?en(e.since).year():en(e.since).year()+(t-e.offset)*n}function JTe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),mPe.call(this,e,t,n,r,i))}function mPe(e,t,n,r,i){var a=Fue(e,t,n,r,i),o=Hw(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}er("Q",0,"Qo","quarter");Ln("Q",$ue);vi("Q",function(e,t){t[pf]=(Fr(e)-1)*3});function gPe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}er("D",["DD",2],"Do","date");Ln("D",Li,vy);Ln("DD",Li,zl);Ln("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});vi(["D","DD"],Ju);vi("Do",function(e,t){t[Ju]=Fr(e.match(Li)[0])});var ode=yy("Date",!0);er("DDD",["DDDD",3],"DDDo","dayOfYear");Ln("DDD",wE);Ln("DDDD",Mue);vi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Fr(e)});function vPe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}er("m",["mm",2],0,"minute");Ln("m",Li,sL);Ln("mm",Li,zl);vi(["m","mm"],eu);var yPe=yy("Minutes",!1);er("s",["ss",2],0,"second");Ln("s",Li,sL);Ln("ss",Li,zl);vi(["s","ss"],hf);var bPe=yy("Seconds",!1);er("S",0,0,function(){return~~(this.millisecond()/100)});er(0,["SS",2],0,function(){return~~(this.millisecond()/10)});er(0,["SSS",3],0,"millisecond");er(0,["SSSS",4],0,function(){return this.millisecond()*10});er(0,["SSSSS",5],0,function(){return this.millisecond()*100});er(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});er(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});er(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});er(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ln("S",wE,$ue);Ln("SS",wE,zl);Ln("SSS",wE,Mue);var Ap,sde;for(Ap="SSSS";Ap.length<=9;Ap+="S")Ln(Ap,gy);function wPe(e,t){t[wm]=Fr(("0."+e)*1e3)}for(Ap="S";Ap.length<=9;Ap+="S")vi(Ap,wPe);sde=yy("Milliseconds",!1);er("z",0,0,"zoneAbbr");er("zz",0,0,"zoneName");function xPe(){return this._isUTC?"UTC":""}function SPe(){return this._isUTC?"Coordinated Universal Time":""}var mn=f4.prototype;mn.add=hTe;mn.calendar=xTe;mn.clone=STe;mn.diff=TTe;mn.endOf=LTe;mn.format=ITe;mn.from=jTe;mn.fromNow=NTe;mn.to=ATe;mn.toNow=DTe;mn.get=RMe;mn.invalidAt=GTe;mn.isAfter=CTe;mn.isBefore=_Te;mn.isBetween=kTe;mn.isSame=ETe;mn.isSameOrAfter=$Te;mn.isSameOrBefore=MTe;mn.isValid=qTe;mn.lang=ede;mn.locale=Jue;mn.localeData=tde;mn.max=q9e;mn.min=V9e;mn.parsingFlags=KTe;mn.set=IMe;mn.startOf=FTe;mn.subtract=mTe;mn.toArray=UTe;mn.toObject=WTe;mn.toDate=HTe;mn.toISOString=OTe;mn.inspect=RTe;typeof Symbol<"u"&&Symbol.for!=null&&(mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});mn.toJSON=VTe;mn.toString=PTe;mn.unix=zTe;mn.valueOf=BTe;mn.creationData=YTe;mn.eraName=JTe;mn.eraNarrow=ePe;mn.eraAbbr=tPe;mn.eraYear=nPe;mn.year=Oue;mn.isLeapYear=OMe;mn.weekYear=cPe;mn.isoWeekYear=uPe;mn.quarter=mn.quarters=gPe;mn.month=Aue;mn.daysInMonth=HMe;mn.week=mn.weeks=XMe;mn.isoWeek=mn.isoWeeks=ZMe;mn.weeksInYear=pPe;mn.weeksInWeekYear=hPe;mn.isoWeeksInYear=dPe;mn.isoWeeksInISOWeekYear=fPe;mn.date=ode;mn.day=mn.days=u9e;mn.weekday=d9e;mn.isoWeekday=f9e;mn.dayOfYear=vPe;mn.hour=mn.hours=b9e;mn.minute=mn.minutes=yPe;mn.second=mn.seconds=bPe;mn.millisecond=mn.milliseconds=sde;mn.utcOffset=tTe;mn.utc=rTe;mn.local=iTe;mn.parseZone=aTe;mn.hasAlignedHourOffset=oTe;mn.isDST=sTe;mn.isLocal=cTe;mn.isUtcOffset=uTe;mn.isUtc=Yue;mn.isUTC=Yue;mn.zoneAbbr=xPe;mn.zoneName=SPe;mn.dates=_c("dates accessor is deprecated. Use date instead.",ode);mn.months=_c("months accessor is deprecated. Use month instead",Aue);mn.years=_c("years accessor is deprecated. Use year instead",Oue);mn.zone=_c("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",nTe);mn.isDSTShifted=_c("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",lTe);function CPe(e){return Di(e*1e3)}function _Pe(){return Di.apply(null,arguments).parseZone()}function lde(e){return e}var ti=nL.prototype;ti.calendar=cMe;ti.longDateFormat=pMe;ti.invalidDate=mMe;ti.ordinal=yMe;ti.preparse=lde;ti.postformat=lde;ti.relativeTime=wMe;ti.pastFuture=xMe;ti.set=sMe;ti.eras=XTe;ti.erasParse=ZTe;ti.erasConvertYear=QTe;ti.erasAbbrRegex=iPe;ti.erasNameRegex=rPe;ti.erasNarrowRegex=aPe;ti.months=FMe;ti.monthsShort=LMe;ti.monthsParse=zMe;ti.monthsRegex=WMe;ti.monthsShortRegex=UMe;ti.week=qMe;ti.firstDayOfYear=YMe;ti.firstDayOfWeek=GMe;ti.weekdays=a9e;ti.weekdaysMin=s9e;ti.weekdaysShort=o9e;ti.weekdaysParse=c9e;ti.weekdaysRegex=p9e;ti.weekdaysShortRegex=h9e;ti.weekdaysMinRegex=m9e;ti.isPM=v9e;ti.meridiem=w9e;function Ok(e,t,n,r){var i=Uf(),a=$d().set(r,t);return i[n](a,e)}function cde(e,t,n){if(Of(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ok(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Ok(e,r,n,"month");return i}function wL(e,t,n,r){typeof e=="boolean"?(Of(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Of(t)&&(n=t,t=void 0),t=t||"");var i=Uf(),a=e?i._week.dow:0,o,s=[];if(n!=null)return Ok(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=Ok(t,(o+a)%7,r,"day");return s}function kPe(e,t){return cde(e,t,"months")}function EPe(e,t){return cde(e,t,"monthsShort")}function $Pe(e,t,n){return wL(e,t,n,"weekdays")}function MPe(e,t,n){return wL(e,t,n,"weekdaysShort")}function TPe(e,t,n){return wL(e,t,n,"weekdaysMin")}th("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Fr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});en.lang=_c("moment.lang is deprecated. Use moment.locale instead.",th);en.langData=_c("moment.langData is deprecated. Use moment.localeData instead.",Uf);var Hd=Math.abs;function PPe(){var e=this._data;return this._milliseconds=Hd(this._milliseconds),this._days=Hd(this._days),this._months=Hd(this._months),e.milliseconds=Hd(e.milliseconds),e.seconds=Hd(e.seconds),e.minutes=Hd(e.minutes),e.hours=Hd(e.hours),e.months=Hd(e.months),e.years=Hd(e.years),this}function ude(e,t,n,r){var i=_u(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function OPe(e,t){return ude(this,e,t,1)}function RPe(e,t){return ude(this,e,t,-1)}function IK(e){return e<0?Math.floor(e):Math.ceil(e)}function IPe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=IK(KI(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=ac(e/1e3),r.seconds=i%60,a=ac(i/60),r.minutes=a%60,o=ac(a/60),r.hours=o%24,t+=ac(o/24),l=ac(dde(t)),n+=l,t-=IK(KI(l)),s=ac(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function dde(e){return e*4800/146097}function KI(e){return e*146097/4800}function jPe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=kc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+dde(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(KI(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Wf(e){return function(){return this.as(e)}}var fde=Wf("ms"),NPe=Wf("s"),APe=Wf("m"),DPe=Wf("h"),FPe=Wf("d"),LPe=Wf("w"),BPe=Wf("M"),zPe=Wf("Q"),HPe=Wf("y"),UPe=fde;function WPe(){return _u(this)}function VPe(e){return e=kc(e),this.isValid()?this[e+"s"]():NaN}function zg(e){return function(){return this.isValid()?this._data[e]:NaN}}var qPe=zg("milliseconds"),KPe=zg("seconds"),GPe=zg("minutes"),YPe=zg("hours"),XPe=zg("days"),ZPe=zg("months"),QPe=zg("years");function JPe(){return ac(this.days()/7)}var nf=Math.round,mv={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eOe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function tOe(e,t,n,r){var i=_u(e).abs(),a=nf(i.as("s")),o=nf(i.as("m")),s=nf(i.as("h")),l=nf(i.as("d")),c=nf(i.as("M")),u=nf(i.as("w")),f=nf(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,eOe.apply(null,p)}function nOe(e){return e===void 0?nf:typeof e=="function"?(nf=e,!0):!1}function rOe(e,t){return mv[e]===void 0?!1:t===void 0?mv[e]:(mv[e]=t,e==="s"&&(mv.ss=t-1),!0)}function iOe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=mv,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},mv,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=tOe(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var a9=Math.abs;function k1(e){return(e>0)-(e<0)||+e}function ME(){if(!this.isValid())return this.localeData().invalidDate();var e=a9(this._milliseconds)/1e3,t=a9(this._days),n=a9(this._months),r,i,a,o,s=this.asSeconds(),l,c,u,f;return s?(r=ac(e/60),i=ac(r/60),e%=60,r%=60,a=ac(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=k1(this._months)!==k1(s)?"-":"",u=k1(this._days)!==k1(s)?"-":"",f=k1(this._milliseconds)!==k1(s)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var Kr=EE.prototype;Kr.isValid=Z9e;Kr.abs=PPe;Kr.add=OPe;Kr.subtract=RPe;Kr.as=jPe;Kr.asMilliseconds=fde;Kr.asSeconds=NPe;Kr.asMinutes=APe;Kr.asHours=DPe;Kr.asDays=FPe;Kr.asWeeks=LPe;Kr.asMonths=BPe;Kr.asQuarters=zPe;Kr.asYears=HPe;Kr.valueOf=UPe;Kr._bubble=IPe;Kr.clone=WPe;Kr.get=VPe;Kr.milliseconds=qPe;Kr.seconds=KPe;Kr.minutes=GPe;Kr.hours=YPe;Kr.days=XPe;Kr.weeks=JPe;Kr.months=ZPe;Kr.years=QPe;Kr.humanize=iOe;Kr.toISOString=ME;Kr.toString=ME;Kr.toJSON=ME;Kr.locale=Jue;Kr.localeData=tde;Kr.toIsoString=_c("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ME);Kr.lang=ede;er("X",0,0,"unix");er("x",0,0,"valueOf");Ln("x",SE);Ln("X",kMe);vi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});vi("x",function(e,t,n){n._d=new Date(Fr(e))});//! moment.js +en.version="2.30.1";aMe(Di);en.fn=mn;en.min=K9e;en.max=G9e;en.now=Y9e;en.utc=$d;en.unix=CPe;en.months=kPe;en.isDate=d4;en.locale=th;en.invalid=yE;en.duration=_u;en.isMoment=gu;en.weekdays=$Pe;en.parseZone=_Pe;en.localeData=Uf;en.isDuration=WC;en.monthsShort=EPe;en.weekdaysMin=TPe;en.defineLocale=fL;en.updateLocale=_9e;en.locales=k9e;en.weekdaysShort=MPe;en.normalizeUnits=kc;en.relativeTimeRounding=nOe;en.relativeTimeThreshold=rOe;en.calendarFormat=wTe;en.prototype=mn;en.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let sS;const aOe=new Uint8Array(16);function oOe(){if(!sS&&(sS=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sS))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sS(aOe)}const po=[];for(let e=0;e<256;++e)po.push((e+256).toString(16).slice(1));function sOe(e,t=0){return po[e[t+0]]+po[e[t+1]]+po[e[t+2]]+po[e[t+3]]+"-"+po[e[t+4]]+po[e[t+5]]+"-"+po[e[t+6]]+po[e[t+7]]+"-"+po[e[t+8]]+po[e[t+9]]+"-"+po[e[t+10]]+po[e[t+11]]+po[e[t+12]]+po[e[t+13]]+po[e[t+14]]+po[e[t+15]]}const lOe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jK={randomUUID:lOe};function cOe(e,t,n){if(jK.randomUUID&&!t&&!e)return jK.randomUUID();e=e||{};const r=e.random||(e.rng||oOe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,sOe(r)}const uOe="1.0.5";function wt(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function dOe(e){var t,n,r,i,a,o,s;const l=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,u=(r=e.meta)===null||r===void 0?void 0:r.source,f=(a=(i=e.meta)===null||i===void 0?void 0:i.license)===null||a===void 0?void 0:a.url,p=pde(e);return!l&&!c&&!u&&!f&&!p?"":''+(l?`${wt(l)}`:"")+(c?`${wt(c)}`:"")+(u?`${wt((s=(o=e.meta)===null||o===void 0?void 0:o.source)!==null&&s!==void 0?s:"")}`:"")+(f?`${wt(f)}`:"")+(p?`${wt(p)}`:"")+""}function pde(e){var t,n,r,i,a,o,s,l,c,u,f,p,h,m,g;let v=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",y=`„${(i=(r=e.meta)===null||r===void 0?void 0:r.creator)!==null&&i!==void 0?i:"Unknown"}”`;!((a=e.meta)===null||a===void 0)&&a.source&&(v+=` (${e.meta.source})`);let w="";return((s=(o=e.meta)===null||o===void 0?void 0:o.license)===null||s===void 0?void 0:s.name)!=="MIT"&&((l=e.meta)===null||l===void 0?void 0:l.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(w+="Remix of "),w+=`${v} by ${y}`,!((f=(u=e.meta)===null||u===void 0?void 0:u.license)===null||f===void 0)&&f.name&&(w+=`, licensed under „${(h=(p=e.meta)===null||p===void 0?void 0:p.license)===null||h===void 0?void 0:h.name}”`,!((g=(m=e.meta)===null||m===void 0?void 0:m.license)===null||g===void 0)&&g.url&&(w+=` (${e.meta.license.url})`)),w}function fOe(e){var t,n,r,i,a,o,s,l,c;const u=pde(e);return{"IPTC:ObjectName":(t=e.meta)===null||t===void 0?void 0:t.title,"XMP-dc:Title":(n=e.meta)===null||n===void 0?void 0:n.title,"IPTC:CopyrightNotice":u,"XMP-dc:Rights":u,"IPTC:By-line":(r=e.meta)===null||r===void 0?void 0:r.creator,"XMP-dc:Creator":(i=e.meta)===null||i===void 0?void 0:i.creator,"IPTC:Credit":(a=e.meta)===null||a===void 0?void 0:a.creator,"XMP-photoshop:Credit":(o=e.meta)===null||o===void 0?void 0:o.creator,"XMP-plus:LicensorURL":(s=e.meta)===null||s===void 0?void 0:s.source,"XMP-xmpRights:WebStatement":(c=(l=e.meta)===null||l===void 0?void 0:l.license)===null||c===void 0?void 0:c.url}}const NK=-2147483648,pOe=2147483647;function hde(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function hOe(e){let t=0;for(let n=0;nt=hde(t),r=(i,a)=>Math.floor((n()-NK)/(pOe-NK)*(a+1-i)+i);return{seed:e,next:n,bool(i=50){return r(1,100)<=i},integer(i,a){return r(i,a)},pick(i,a){var o;return i.length===0?(n(),a):(o=i[r(0,i.length-1)])!==null&&o!==void 0?o:a},shuffle(i){const a=Rk(n().toString()),o=[...i];for(let s=o.length-1;s>0;s--){const l=a.integer(0,s);[o[s],o[l]]=[o[l],o[s]]}return o},string(i,a="abcdefghijklmnopqrstuvwxyz1234567890"){const o=Rk(n().toString());let s="";for(let l=0;l`;switch(r){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function gOe(e,t){let{width:n,height:r,x:i,y:a}=by(e),o=t?(t-100)/100:0,s=(n/2+i)*o*-1,l=(r/2+a)*o*-1;return`${e.body}`}function vOe(e,t,n){let r=by(e),i=(r.width+r.x*2)*((t??0)/100),a=(r.height+r.y*2)*((n??0)/100);return`${e.body}`}function yOe(e,t){let{width:n,height:r,x:i,y:a}=by(e);return`${e.body}`}function bOe(e){let{width:t,x:n}=by(e);return`${e.body}`}function wOe(e,t){let{width:n,height:r,x:i,y:a}=by(e),o=t?n*t/100:0,s=t?r*t/100:0;return`${e.body}`}function xOe(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${wt(n)}="${wt(t[n])}"`).join(" ")}function SOe(e){const t=Rk(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(r,i,a,o)=>(n[a]=n[a]||t.string(8),`${i}${n[a]}${o}`))}const COe={type:"object",$schema:"http://json-schema.org/draft-07/schema#",properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function AK(e){var t;let n={},r=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(r).forEach(i=>{let a=r[i];typeof a=="object"&&a.default!==void 0&&(Array.isArray(a.default)?n[i]=[...a.default]:typeof a.default=="object"?n[i]={...a.default}:n[i]=a.default)}),n}function _Oe(e,t){var n;let r={...AK(COe),...AK((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(r))}function GI(e){switch(e){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${e}`;default:throw new Error(`Unsupported format: ${e}`)}}function kOe(e,t=512){let n=t;return e=e.replace(/]*)/,(r,i)=>{const a=i.match(/width="([^"]+)"/);return a&&(n=parseInt(a[1])),i.match(/width="([^"]+)"/)?i=i.replace(/width="([^"]+)"/,`width="${n}"`):i+=` width="${n}"`,i.match(/height="([^"]+)"/)?i=i.replace(/height="([^"]+)"/,`height="${n}"`):i+=` height="${n}"`,`xL(e,t,n),toFile:r=>MOe(r,e,t,n),toArrayBuffer:()=>$Oe(e,t,n)}};async function xL(e,t,n){return t==="svg"?`data:${GI(t)};utf8,${encodeURIComponent(e)}`:(await mde(e,t,n)).toDataURL(GI(t))}async function $Oe(e,t,n){if(t==="svg")return EOe().encode(e);const r=await mde(e,t,n);return await new Promise((i,a)=>{r.toBlob(o=>{o?i(o.arrayBuffer()):a(new Error("Could not create blob"))},GI(t))})}async function MOe(e,t,n,r){const i=document.createElement("a");i.href=await xL(t,n,r),i.download=e,i.click(),i.remove()}async function mde(e,t,n){n&&console.warn("The `exif` option is not supported in the browser version of `@dicebear/converter`. \nPlease use the node version of `@dicebear/converter` to generate images with exif data.");let{svg:r,size:i}=kOe(e);const a=document.createElement("canvas");a.width=i,a.height=i;const o=a.getContext("2d");if(o===null)throw new Error("Could not get canvas context");t==="jpeg"&&(o.fillStyle="white",o.fillRect(0,0,i,i));var s=document.createElement("img");return s.width=i,s.height=i,s.setAttribute("src",await xL(r,"svg")),new Promise((l,c)=>{s.onload=()=>{o.drawImage(s,0,0,i,i),l(a)},s.onerror=u=>c(u)})}function DK(e){return e==="transparent"?e:`#${e}`}function TOe(e,t,n){var r;let i=e.shuffle(t);i.length<=1||t.length==2&&n=="gradientLinear"?(i=t,e.next()):i=e.shuffle(t),i.length===0&&(i=["transparent"]);const a=i[0],o=(r=i[1])!==null&&r!==void 0?r:i[0];return{primary:DK(a),secondary:DK(o)}}function POe(e,t={}){var n,r,i,a,o;t=_Oe(e,t);const s=Rk(t.seed),l=e.create({prng:s,options:t}),c=s.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:u,secondary:f}=TOe(s,(r=t.backgroundColor)!==null&&r!==void 0?r:[],c),p=s.integer(!((i=t.backgroundRotation)===null||i===void 0)&&i.length?Math.min(...t.backgroundRotation):0,!((a=t.backgroundRotation)===null||a===void 0)&&a.length?Math.max(...t.backgroundRotation):0);t.size&&(l.attributes.width=t.size.toString(),l.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(l.body=gOe(l,t.scale)),t.flip&&(l.body=bOe(l)),t.rotate&&(l.body=yOe(l,t.rotate)),(t.translateX||t.translateY)&&(l.body=vOe(l,t.translateX,t.translateY)),u!=="transparent"&&f!=="transparent"&&(l.body=mOe(l,u,f,c,p)),(t.radius||t.clip)&&(l.body=wOe(l,(o=t.radius)!==null&&o!==void 0?o:0)),t.randomizeIds&&(l.body=SOe(l));const h=xOe(l),m=dOe(e),g=fOe(e),v=`${m}${l.body}`;return{toString:()=>v,toJson:()=>{var y;return{svg:v,extra:{primaryBackgroundColor:u,secondaryBackgroundColor:f,backgroundType:c,backgroundRotation:p,...(y=l.extra)===null||y===void 0?void 0:y.call(l)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(v)}`,...s9(v,"svg"),png:({includeExif:y=!1}={})=>s9(v,"png",y?g:void 0),jpeg:({includeExif:y=!1}={})=>s9(v,"jpeg",y?g:void 0)}}const OOe={variant48:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant47:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant46:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant45:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant44:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant43:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant42:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant41:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant40:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant39:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant38:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant37:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant36:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant35:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant34:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant33:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant32:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant31:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant30:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant29:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant28:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant27:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant26:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant25:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant24:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant23:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant22:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant21:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant20:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant19:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant18:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant17:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant16:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant15:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant14:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant13:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant12:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant11:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant10:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant09:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant08:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant07:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant06:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant05:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant04:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant03:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant02:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`},variant01:(e,t)=>{var n,r;return`${(r=(n=e.head)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}`}},ROe={flowers:(e,t)=>``},IOe={variant04:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant03:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant02:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`},variant01:(e,t)=>{var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y;return`${(r=(n=e.eyes)===null||n===void 0?void 0:n.value(e,t))!==null&&r!==void 0?r:""}${(a=(i=e.eyebrows)===null||i===void 0?void 0:i.value(e,t))!==null&&a!==void 0?a:""}${(s=(o=e.earrings)===null||o===void 0?void 0:o.value(e,t))!==null&&s!==void 0?s:""}${(c=(l=e.freckles)===null||l===void 0?void 0:l.value(e,t))!==null&&c!==void 0?c:""}${(f=(u=e.nose)===null||u===void 0?void 0:u.value(e,t))!==null&&f!==void 0?f:""}${(h=(p=e.beard)===null||p===void 0?void 0:p.value(e,t))!==null&&h!==void 0?h:""}${(g=(m=e.mouth)===null||m===void 0?void 0:m.value(e,t))!==null&&g!==void 0?g:""}${(y=(v=e.glasses)===null||v===void 0?void 0:v.value(e,t))!==null&&y!==void 0?y:""}`}},jOe={variant24:(e,t)=>``,variant23:(e,t)=>``,variant22:(e,t)=>``,variant21:(e,t)=>``,variant20:(e,t)=>``,variant19:(e,t)=>``,variant18:(e,t)=>``,variant17:(e,t)=>``,variant16:(e,t)=>``,variant15:(e,t)=>``,variant14:(e,t)=>``,variant13:(e,t)=>``,variant12:(e,t)=>``,variant11:(e,t)=>``,variant10:(e,t)=>``,variant09:(e,t)=>``,variant08:(e,t)=>``,variant07:(e,t)=>``,variant06:(e,t)=>``,variant05:(e,t)=>``,variant04:(e,t)=>``,variant03:(e,t)=>``,variant02:(e,t)=>``,variant01:(e,t)=>``},NOe={variant13:(e,t)=>``,variant12:(e,t)=>``,variant11:(e,t)=>``,variant10:(e,t)=>``,variant09:(e,t)=>``,variant08:(e,t)=>``,variant07:(e,t)=>``,variant06:(e,t)=>``,variant05:(e,t)=>``,variant04:(e,t)=>``,variant03:(e,t)=>``,variant02:(e,t)=>``,variant01:(e,t)=>``},AOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``},DOe={variant01:(e,t)=>``},FOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``,variant04:(e,t)=>``,variant05:(e,t)=>``,variant06:(e,t)=>``},LOe={variant01:(e,t)=>``,variant02:(e,t)=>``},BOe={happy01:(e,t)=>``,happy02:(e,t)=>``,happy03:(e,t)=>``,happy04:(e,t)=>``,happy05:(e,t)=>``,happy06:(e,t)=>``,happy07:(e,t)=>``,happy08:(e,t)=>``,happy18:(e,t)=>``,happy09:(e,t)=>``,happy10:(e,t)=>``,happy11:(e,t)=>``,happy12:(e,t)=>``,happy13:(e,t)=>``,happy14:(e,t)=>``,happy17:(e,t)=>``,happy15:(e,t)=>``,happy16:(e,t)=>``,sad01:(e,t)=>``,sad02:(e,t)=>``,sad03:(e,t)=>``,sad04:(e,t)=>``,sad05:(e,t)=>``,sad06:(e,t)=>``,sad07:(e,t)=>``,sad08:(e,t)=>``,sad09:(e,t)=>``},zOe={variant01:(e,t)=>``,variant02:(e,t)=>``,variant03:(e,t)=>``,variant04:(e,t)=>``,variant05:(e,t)=>``},HOe=Object.freeze(Object.defineProperty({__proto__:null,beard:LOe,earrings:AOe,eyebrows:NOe,eyes:jOe,freckles:DOe,glasses:zOe,hair:OOe,hairAccessories:ROe,head:IOe,mouth:BOe,nose:FOe},Symbol.toStringTag,{value:"Module"}));function Ac({prng:e,group:t,values:n=[]}){const r=HOe,i=e.pick(n);if(i&&r[t][i])return{name:i,value:r[t][i]}}function UOe({prng:e,options:t}){const n=Ac({prng:e,group:"hair",values:t.hair}),r=Ac({prng:e,group:"hairAccessories",values:t.hairAccessories}),i=Ac({prng:e,group:"head",values:t.head}),a=Ac({prng:e,group:"eyes",values:t.eyes}),o=Ac({prng:e,group:"eyebrows",values:t.eyebrows}),s=Ac({prng:e,group:"earrings",values:t.earrings}),l=Ac({prng:e,group:"freckles",values:t.freckles}),c=Ac({prng:e,group:"nose",values:t.nose}),u=Ac({prng:e,group:"beard",values:t.beard}),f=Ac({prng:e,group:"mouth",values:t.mouth}),p=Ac({prng:e,group:"glasses",values:t.glasses});return{hair:n,hairAccessories:e.bool(t.hairAccessoriesProbability)?r:void 0,head:i,eyes:a,eyebrows:o,earrings:e.bool(t.earringsProbability)?s:void 0,freckles:e.bool(t.frecklesProbability)?l:void 0,nose:c,beard:e.bool(t.beardProbability)?u:void 0,mouth:f,glasses:e.bool(t.glassesProbability)?p:void 0}}function Du(e){return e==="transparent"?e:`#${e}`}function WOe({prng:e,options:t}){var n,r,i,a,o,s,l,c,u,f;return{hair:Du(e.pick((n=t.hairColor)!==null&&n!==void 0?n:[],"transparent")),skin:Du(e.pick((r=t.skinColor)!==null&&r!==void 0?r:[],"transparent")),earrings:Du(e.pick((i=t.earringsColor)!==null&&i!==void 0?i:[],"transparent")),eyebrows:Du(e.pick((a=t.eyebrowsColor)!==null&&a!==void 0?a:[],"transparent")),eyes:Du(e.pick((o=t.eyesColor)!==null&&o!==void 0?o:[],"transparent")),freckles:Du(e.pick((s=t.frecklesColor)!==null&&s!==void 0?s:[],"transparent")),glasses:Du(e.pick((l=t.glassesColor)!==null&&l!==void 0?l:[],"transparent")),mouth:Du(e.pick((c=t.mouthColor)!==null&&c!==void 0?c:[],"transparent")),nose:Du(e.pick((u=t.noseColor)!==null&&u!==void 0?u:[],"transparent")),hairAccessories:Du(e.pick((f=t.hairAccessoriesColor)!==null&&f!==void 0?f:[],"transparent"))}}function VOe({prng:e,options:t,components:n,colors:r}){n.beard&&r.hair===r.mouth&&(r.mouth="#ffffff")}const qOe={$schema:"http://json-schema.org/draft-07/schema#",properties:{beard:{type:"array",items:{type:"string",enum:["variant01","variant02"]},default:["variant01","variant02"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:5},earrings:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03"]},default:["variant01","variant02","variant03"]},earringsColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},earringsProbability:{type:"integer",minimum:0,maximum:100,default:10},eyebrows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyebrowsColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},eyes:{type:"array",items:{type:"string",enum:["variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},freckles:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},frecklesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},frecklesProbability:{type:"integer",minimum:0,maximum:100,default:5},glasses:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03","variant04","variant05"]},default:["variant01","variant02","variant03","variant04","variant05"]},glassesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:10},hair:{type:"array",items:{type:"string",enum:["variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},hairAccessories:{type:"array",items:{type:"string",enum:["flowers"]},default:["flowers"]},hairAccessoriesColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},hairAccessoriesProbability:{type:"integer",minimum:0,maximum:100,default:5},hairColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},head:{type:"array",items:{type:"string",enum:["variant04","variant03","variant02","variant01"]},default:["variant04","variant03","variant02","variant01"]},mouth:{type:"array",items:{type:"string",enum:["happy01","happy02","happy03","happy04","happy05","happy06","happy07","happy08","happy18","happy09","happy10","happy11","happy12","happy13","happy14","happy17","happy15","happy16","sad01","sad02","sad03","sad04","sad05","sad06","sad07","sad08","sad09"]},default:["happy01","happy02","happy03","happy04","happy05","happy06","happy07","happy08","happy18","happy09","happy10","happy11","happy12","happy13","happy14","happy17","happy15","happy16","sad01","sad02","sad03","sad04","sad05","sad06","sad07","sad08","sad09"]},mouthColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},nose:{type:"array",items:{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06"]},default:["variant01","variant02","variant03","variant04","variant05","variant06"]},noseColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["000000"]},skinColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["ffffff"]}}},KOe={title:"Lorelei",creator:"Lisa Wischofsky",source:"https://www.figma.com/community/file/1198749693280469639",homepage:"https://www.instagram.com/lischi_art/",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},GOe=({prng:e,options:t})=>{var n,r,i,a;const o=UOe({prng:e,options:t}),s=WOe({prng:e,options:t});return VOe({prng:e,options:t,components:o,colors:s}),{attributes:{viewBox:"0 0 980 980",fill:"none","shape-rendering":"auto"},body:`${(r=(n=o.hair)===null||n===void 0?void 0:n.value(o,s))!==null&&r!==void 0?r:""}${(a=(i=o.hairAccessories)===null||i===void 0?void 0:i.value(o,s))!==null&&a!==void 0?a:""}`,extra:()=>({...Object.entries(o).reduce((l,[c,u])=>(l[c]=u==null?void 0:u.name,l),{}),...Object.entries(s).reduce((l,[c,u])=>(l[`${c}Color`]=u,l),{})})}},YOe=Object.freeze(Object.defineProperty({__proto__:null,create:GOe,meta:KOe,schema:qOe},Symbol.toStringTag,{value:"Module"}));function XOe(){return uOe}function ZOe(){const e=localStorage.getItem($C);(e===null||e==="true")&&new Audio(V6e).play()}function Pv(){return en().format("YYYY-MM-DD HH:mm:ss")}function Ba(){return cOe().replaceAll(/-/g,"")}function Ik(e){return POe(YOe,{seed:e,size:40}).toDataUriSync()}function E1(e){return e.endsWith("/")?e.slice(0,-1):e}const QOe=e=>{if(typeof e=="string"){const t=en(),n=en(e);return n.isSame(t,"day")?n.format("HH:mm"):n.format("MM-DD HH:mm")}else return e};function jk(e,t){return(e==null?void 0:e.length)>t?e.slice(0,t-3)+"...":e}function qC(e,t){const n=en(new Date).format("YYYYMMDDHHmmss")+"_"+e.name,r=new FormData;r.append("file",e),r.append("file_name",n),r.append("file_type",e.type),r.append("is_avatar","false"),r.append("kb_type",kF),r.append("client",_n),console.log("handleUpload formData",r),fetch(fy(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},body:r}).then(i=>i.json()).then(i=>{console.log("upload data:",i),t(i)})}const JOe=e=>(e==null?void 0:e.type)===vF,Nk=e=>(e==null?void 0:e.type)===wse,Do=e=>(e==null?void 0:e.type)===xse,Rf=e=>(e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3,YI=e=>(e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3||(e==null?void 0:e.type)===Sse,eRe=e=>(e==null?void 0:e.type)===q3,tRe=e=>(e==null?void 0:e.type)===K3,Ak=e=>(e==null?void 0:e.type)===Sse,Dk=e=>(e==null?void 0:e.type)===vF,nRe=e=>(console.log("isDeviceThread",e),!1),rRe=e=>lRe(e==null?void 0:e.topic),iRe=(e,t)=>{var n,r;return((n=t==null?void 0:t.invites)==null?void 0:n.length)===0?!1:(r=t==null?void 0:t.invites)==null?void 0:r.every(i=>i.uid!==(e==null?void 0:e.uid))};function aRe(e){if(vo===e||Sl===e||cd===e||Fw===e||sg===e)return!0}function oRe(e){return e===g0||e===v0}function sRe(e){return e===g0||e===v0}function lRe(e){return e==null?void 0:e.startsWith(f5e)}function cRe(e){return e==null?void 0:e.startsWith($se)}function uRe(e){const t=e==null?void 0:e.split("/");if(t.length!==4)throw new Error(`Invalid private topic: ${e}`);return[t[2],t[3]]=[t[3],t[2]],t.join("/")}function dRe(e){return e==null?void 0:e.startsWith(Mse)}function fRe(e){return e==null?void 0:e.startsWith(Tse)}function pRe(e){return e==null?void 0:e.startsWith(p5e)}function hRe(e){return e==null?void 0:e.startsWith(h5e)}function gde(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const vde=e=>e&&(e.includes("

    ")||e.includes("

    ")||e.includes("")||e.includes("
      "));function Vw(e){switch(e){case lg:return"blue";case Y3:return"purple";case ly:return"green";case X3:return"orange";case Z3:return"gold";case Q3:return"magenta";case J3:return"cyan";case V5:return"default";case e4:return"red";default:return"default"}}function Fk(e){switch(e){case EF:return"blue";case bk:return"purple";case $F:return"red";case MF:return"orange";case TF:return"default";default:return"default"}}const FK=(e,t)=>{var n;return((n=e==null?void 0:e.assignee)==null?void 0:n.uid)===(t==null?void 0:t.uid)},Ja=(e,t,n,r)=>{var i,a;return e?n==null?!1:((i=t==null?void 0:t.assignee)==null?void 0:i.uid)===(r==null?void 0:r.uid)||((a=t==null?void 0:t.reporter)==null?void 0:a.uid)===(r==null?void 0:r.uid):!0},W2=(e,t)=>e?(t==null?void 0:t.status)===ly||(t==null?void 0:t.status)===PF:!0,mRe=()=>{const e=navigator.language.toLowerCase();console.log("AppWrapper getBrowserLanguage browserLang: ",e);const t=["en","zh-cn","zh-tw","ja","ko"];if(e.startsWith("zh"))return e.includes("tw")?"zh-tw":"zh-cn";const n=e.split("-")[0];return t.includes(n)?n:"en"},SL=(e,t,n,r,i,a,o)=>{var u;let s;(n==null?void 0:n.uid)!=""&&((e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3)?s={uid:n.uid,nickname:n.nickname,avatar:n.avatar,type:uh}:s={uid:t.uid,nickname:t.nickname,avatar:t.avatar,type:W5};const l={orgUid:(u=t==null?void 0:t.currentOrganization)==null?void 0:u.uid};return{uid:r,type:i,status:$p,createdAt:o,client:_n,content:a,extra:JSON.stringify(l),user:s,thread:e}},yde=(e,t,n,r,i,a,o)=>{let s;return(n==null?void 0:n.uid)!=""&&((e==null?void 0:e.type)===q3||(e==null?void 0:e.type)===K3)?s={uid:n.uid,nickname:n.nickname,avatar:n.avatar,type:uh}:s={uid:t.uid,nickname:t.nickname,avatar:t.avatar,type:W5},{uid:r,type:i,status:Dw,createdAt:o,client:_n,content:a,user:s,topic:e==null?void 0:e.topic}},gRe=(e,t,n,r,i,a,o)=>{var u;const s={uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,type:mk},l={orgUid:(u=t==null?void 0:t.currentOrganization)==null?void 0:u.uid};return{uid:r,type:i,status:$p,createdAt:o,client:_n,content:a,extra:JSON.stringify(l),user:s,thread:e}},vRe=e=>{if(!e)return"";const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""},Vr=so()(Jo(es(ts(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:w6e}))),fr=so()(Jo(es(ts((e,t)=>({threads:[],queuingThreads:[],invitedThreads:[],monitoringThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},currentTicketThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,a;if(n.state===BV)return t().addQueuingThread(n),0;if(t().threads.some(o=>o.uid===n.uid))if(((i=t().currentThread)==null?void 0:i.uid)===""||((a=t().currentThread)==null?void 0:a.uid)!==n.uid){for(let o=0;oo.uid!==n.uid)]}),n.unreadCount}else{const o=t().threads.map(s=>s.uid===n.uid?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:o}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){if(r.type===J6e)return t().addQueuingThread(n),0;const i=!oRe(r.type);sRe(r.type)&&(n.state=nR);const o="topic",s=t().threads.some(u=>u[o]===n[o]),l=t().currentThread[o]===n[o];if(!s)return i&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount;if(!l){const u=t().threads.find(f=>f[o]===n[o]);return u&&(n=yRe(n,u,i)),e({threads:[n,...t().threads.filter(f=>f[o]!==n[o])]}),n.unreadCount}const c=t().threads.map(u=>u[o]===n[o]?bde(n,u):u);return e({threads:c}),0},addQueuingThread(n){t().queuingThreads.some(i=>i.uid===n.uid)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const a=t().threads.map(o=>o.uid===n?(i={...o,unreadCount:o.unreadCount+1,content:r},i):o);return e({threads:a}),i},updateThreadStatus(n,r){let i=null;const a=t().threads.map(o=>o.uid===n?(i={...o,state:r},i):o);return e({threads:a}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},removeThreadWithUid(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==n)]})},closeThread(n){const r=t().threads.map(i=>i.uid===n?{...i,state:nR}:i);e({threads:r})},addThreads(n){for(let r=0;ro.uid===i.uid))e({threads:[...t().threads,i]});else{const o=t().threads.map(s=>s.uid===i.uid?{...i,unreadCount:s.unreadCount}:s);e({threads:o})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setInvitedThreads(n){e(r=>{r.invitedThreads=n})},setMonitoringThreads(n){e(r=>{r.monitoringThreads=n})},setCurrentThread(n){e(a=>{a.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(a=>a.uid===r.uid?r:a);e(a=>{a.currentThread=r,a.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setCurrentTicketThread(n){e(r=>{r.currentTicketThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.uid!==((i=t().currentThread)==null?void 0:i.uid)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=Vr.getState();if(n!=null&&n.uid){const{threadService:r}=await xue(async()=>{const{threadService:i}=await Promise.resolve().then(()=>DWt);return{threadService:i}},void 0);await r.loadThreads()}},setPagination:n=>e({pagination:n})})),{name:M6e}))),bde=(e,t)=>(e.top=t.top,e.mute=t.mute,e.unread=t.unread,e.agent=t.agent,e),yRe=(e,t,n)=>(n&&(e.unreadCount=t.unreadCount+1),bde(e,t)),Td=so()(Jo(es(ts((e,t)=>({messageList:[],addMessageProtobuf(n){var i;const r={...n,extra:JSON.parse(n==null?void 0:n.extra),topic:(i=n.thread)==null?void 0:i.topic};t().addMessage(r)},addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===$f){const a=t().messageList.findIndex(o=>o.type===$f&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===m0&&i.type===m0){const a=t().messageList.findIndex(s=>s.uid===i.uid),o=[...t().messageList];o[a]=n,e({messageList:o})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let a=0;al.uid===o.uid)||r.unshift(o)}const i=[...r,...t().messageList].sort((a,o)=>{const s=en(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=en(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList];a[i].status=r,e({messageList:a})}},updateMessageTransferStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList],o=a[i],s=JSON.parse(o.content);s.status=r,a[i].content=JSON.stringify(s),e({messageList:a})}},updateMessageInviteStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList],o=a[i],s=JSON.parse(o.content);s.status=r,a[i].content=JSON.stringify(s),e({messageList:a})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=G3,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const a=en(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),o=en(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-o});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:_6e}))),ia=so()(Jo(es(ts((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:E6e}))),Eo=so()(Jo(es(ts((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i.splice(a,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:P6e}))),Na=so()(Jo(es(ts(e=>({currentMember:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberInfo:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(t){e({currentMember:t})},setMemberInfo(t){e({memberInfo:t})},setMemberResult:t=>{e({memberResult:t})},resetMembers:()=>e({currentMember:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberInfo:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}}})})),{name:S6e})));var wde={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return te.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Xi(r)):Sde(r)&&r.props?n=n.concat(Xi(r.props.children,t)):n.push(r))}),n}var XI={},CRe=function(t){};function _Re(e,t){}function kRe(e,t){}function ERe(){XI={}}function Cde(e,t,n){!t&&!XI[n]&&(e(!1,n),XI[n]=!0)}function Br(e,t){Cde(_Re,e,t)}function $Re(e,t){Cde(kRe,e,t)}Br.preMessage=CRe;Br.resetWarned=ERe;Br.noteOnce=$Re;function MRe(e,t){if(Kt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Kt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _de(e){var t=MRe(e,"string");return Kt(t)=="symbol"?t:t+""}function ne(e,t,n){return(t=_de(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=[];return te.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Xi(r)):xde(r)&&r.props?n=n.concat(Xi(r.props.children,t)):n.push(r))}),n}var XI={},SRe=function(t){};function CRe(e,t){}function _Re(e,t){}function kRe(){XI={}}function Sde(e,t,n){!t&&!XI[n]&&(e(!1,n),XI[n]=!0)}function Br(e,t){Sde(CRe,e,t)}function ERe(e,t){Sde(_Re,e,t)}Br.preMessage=SRe;Br.resetWarned=kRe;Br.noteOnce=ERe;function $Re(e,t){if(Kt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Kt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cde(e){var t=$Re(e,"string");return Kt(t)=="symbol"?t:t+""}function ne(e,t,n){return(t=Cde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t0},e.prototype.connect_=function(){!QI||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),FRe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!QI||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=DRe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Tde=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof C0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new KRe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof C0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new GRe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ode=typeof WeakMap<"u"?new WeakMap:new Mde,Rde=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=LRe.getInstance(),r=new YRe(t,n,this);Ode.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Rde.prototype[e]=function(){var t;return(t=Ode.get(this))[e].apply(t,arguments)}});var Ide=function(){return typeof Bk.ResizeObserver<"u"?Bk.ResizeObserver:Rde}(),Dp=new Map;function XRe(e){e.forEach(function(t){var n,r=t.target;(n=Dp.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var jde=new Ide(XRe);function ZRe(e,t){Dp.has(e)||(Dp.set(e,new Set),jde.observe(e)),Dp.get(e).add(t)}function QRe(e,t){Dp.has(e)&&(Dp.get(e).delete(t),Dp.get(e).size||(jde.unobserve(e),Dp.delete(e)))}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zK(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;HK+=1;var r=HK;function i(a){if(a===0)Lde(r),t();else{var o=Dde(function(){i(a-1)});$L.set(r,o)}}return i(n),r};rr.cancel=function(e){var t=$L.get(e);return Lde(e),Fde(t)};function Bde(e){if(Array.isArray(e))return e}function oIe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function zde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e,t){return Bde(e)||oIe(e,t)||HE(e,t)||zde()}function Gw(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function wy(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function sIe(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var UK="data-rc-order",WK="data-rc-priority",lIe="rc-util-key",ej=new Map;function Hde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):lIe}function UE(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function cIe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ML(e){return Array.from((ej.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ude(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!wy())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=cIe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(UK,o),s&&a&&l.setAttribute(WK,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=UE(t),u=c.firstChild;if(r){if(s){var f=(t.styles||ML(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(UK)))return!1;var h=Number(p.getAttribute(WK)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Wde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=UE(t);return(t.styles||ML(n)).find(function(r){return r.getAttribute(Hde(t))===e})}function TL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Wde(e,t);if(n){var r=UE(t);r.removeChild(n)}}function uIe(e,t){var n=ej.get(e);if(!n||!sIe(document,n)){var r=Ude("",t),i=r.parentNode;ej.set(e,i),e.removeChild(r)}}function Ov(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=UE(n),i=ML(r),a=q(q({},n),{},{styles:i});uIe(r,a);var o=Wde(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=Ude(e,a);return u.setAttribute(Hde(a),t),u}function dIe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ht(e,t){if(e==null)return{};var n,r,i=dIe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(g4(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=Te(c,2),p=f[1];return i.internalGet(u)[1]0,void 0),qK+=1}return Dr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),c9=new OL;function fg(e){var t=Array.isArray(e)?e:[e];return c9.has(t)||c9.set(t,new RL(t)),c9.get(t)}var kIe=new WeakMap,u9={};function EIe(e,t){for(var n=kIe,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=q(q({},i),{},(r={},ne(r,_0,t),ne(r,ou,n),r)),s=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var K2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},TIe=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=Te(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},Zde=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,c=Te(o,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var p,h=K2(u,r==null?void 0:r.prefix);i[h]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(h,")")}}),[a,TIe(i,n,{scope:r==null?void 0:r.scope})]},YK=wy()?d.useLayoutEffect:d.useEffect,PIe=function(t,n){var r=d.useRef(!0);YK(function(){return t(r.current)},n),YK(function(){return r.current=!1,function(){r.current=!0}},[])},OIe=q({},Qm),XK=OIe.useInsertionEffect,RIe=function(t,n,r){d.useMemo(t,r),PIe(function(){return n(!0)},r)},IIe=XK?function(e,t,n){return XK(function(){return e(),t()},n)}:RIe,jIe=q({},Qm),NIe=jIe.useInsertionEffect,AIe=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},DIe=function(){return function(t){t()}},FIe=typeof NIe<"u"?AIe:DIe;function IL(e,t,n,r,i){var a=d.useContext(k0),o=a.cache,s=[e].concat(lt(t)),l=nj(s),c=FIe([l]),u=function(m){o.opUpdate(l,function(g){var v=g||[void 0,void 0],y=Te(v,2),w=y[0],b=w===void 0?0:w,C=y[1],k=C,S=k||n(),_=[b,S];return m?m(_):_})};d.useMemo(function(){u()},[l]);var f=o.opGet(l),p=f[1];return IIe(function(){i==null||i(p)},function(h){return u(function(m){var g=Te(m,2),v=g[0],y=g[1];return h&&v===0&&(i==null||i(p)),[v+1,y]}),function(){o.opUpdate(l,function(m){var g=m||[],v=Te(g,2),y=v[0],w=y===void 0?0:y,b=v[1],C=w-1;return C===0?(c(function(){(h||!o.opGet(l))&&(r==null||r(b,!1))}),null):[w-1,b]})}},[l]),p}var LIe={},BIe="css",om=new Map;function zIe(e){om.set(e,(om.get(e)||0)+1)}function HIe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_0,'="').concat(e,'"]'));n.forEach(function(r){if(r[Fp]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var UIe=0;function WIe(e,t){om.set(e,(om.get(e)||0)-1);var n=Array.from(om.keys()),r=n.filter(function(i){var a=om.get(i)||0;return a<=0});n.length-r.length>UIe&&r.forEach(function(i){HIe(i,t),om.delete(i)})}var jL=function(t,n,r,i){var a=r.getDerivativeToken(t),o=q(q({},a),n);return i&&(o=i(o)),o},Qde="token";function NL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(k0),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?LIe:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,h=EIe(function(){return Object.assign.apply(Object,[{}].concat(lt(t)))},t),m=q2(h),g=q2(c),v=p?q2(p):"",y=IL(Qde,[s,e.id,m,g,v],function(){var w,b=f?f(h,c,e):jL(h,c,e,u),C=q({},b),k="";if(p){var S=Zde(b,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),_=Te(S,2);b=_[0],k=_[1]}var E=GK(b,s);b._tokenKey=E,C._tokenKey=GK(C,s);var $=(w=p==null?void 0:p.key)!==null&&w!==void 0?w:E;b._themeKey=$,zIe($);var M="".concat(BIe,"-").concat(Gw(E));return b._hashId=M,[b,M,C,k,(p==null?void 0:p.key)||""]},function(w){WIe(w[0]._themeKey,i)},function(w){var b=Te(w,4),C=b[0],k=b[3];if(p&&k){var S=Ov(k,Gw("css-variables-".concat(C._themeKey)),{mark:ou,prepend:"queue",attachTo:a,priority:-999});S[Fp]=i,S.setAttribute(_0,C._themeKey)}});return y}var VIe=function(t,n,r){var i=Te(t,5),a=i[2],o=i[3],s=i[4],l=r||{},c=l.plain;if(!o)return null;var u=a._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=Yw(o,s,u,p,c);return[f,u,h]},Jde={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},efe="comm",tfe="rule",nfe="decl",qIe="@import",KIe="@keyframes",GIe="@layer",rfe=Math.abs,AL=String.fromCharCode;function ife(e){return e.trim()}function GC(e,t,n){return e.replace(t,n)}function YIe(e,t,n){return e.indexOf(t,n)}function Xw(e,t){return e.charCodeAt(t)|0}function $0(e,t,n){return e.slice(t,n)}function Vu(e){return e.length}function XIe(e){return e.length}function cS(e,t){return t.push(e),e}var WE=1,M0=1,afe=0,vc=0,Oa=0,xy="";function DL(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:WE,column:M0,length:o,return:"",siblings:s}}function ZIe(){return Oa}function QIe(){return Oa=vc>0?Xw(xy,--vc):0,M0--,Oa===10&&(M0=1,WE--),Oa}function su(){return Oa=vc2||Zw(Oa)>3?"":" "}function nje(e,t){for(;--t&&su()&&!(Oa<48||Oa>102||Oa>57&&Oa<65||Oa>70&&Oa<97););return VE(e,YC()+(t<6&&Lp()==32&&su()==32))}function ij(e){for(;su();)switch(Oa){case e:return vc;case 34:case 39:e!==34&&e!==39&&ij(Oa);break;case 40:e===41&&ij(e);break;case 92:su();break}return vc}function rje(e,t){for(;su()&&e+Oa!==57;)if(e+Oa===84&&Lp()===47)break;return"/*"+VE(t,vc-1)+"*"+AL(e===47?e:su())}function ije(e){for(;!Zw(Lp());)su();return VE(e,vc)}function aje(e){return eje(XC("",null,null,null,[""],e=JIe(e),0,[0],e))}function XC(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,p=0,h=0,m=0,g=1,v=1,y=1,w=0,b="",C=i,k=a,S=r,_=b;v;)switch(m=w,w=su()){case 40:if(m!=108&&Xw(_,f-1)==58){YIe(_+=GC(p9(w),"&","&\f"),"&\f",rfe(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:_+=p9(w);break;case 9:case 10:case 13:case 32:_+=tje(m);break;case 92:_+=nje(YC()-1,7);continue;case 47:switch(Lp()){case 42:case 47:cS(oje(rje(su(),YC()),t,n,l),l),(Zw(m||1)==5||Zw(Lp()||1)==5)&&Vu(_)&&$0(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*g:s[c++]=Vu(_)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+u:y==-1&&(_=GC(_,/\f/g,"")),h>0&&(Vu(_)-f||g===0&&m===47)&&cS(h>32?QK(_+";",r,n,f-1,l):QK(GC(_," ","")+";",r,n,f-2,l),l);break;case 59:_+=";";default:if(cS(S=ZK(_,t,n,c,u,i,s,b,C=[],k=[],f,a),a),w===123)if(u===0)XC(_,t,S,S,C,a,f,s,k);else switch(p===99&&Xw(_,3)===110?100:p){case 100:case 108:case 109:case 115:XC(e,S,S,r&&cS(ZK(e,S,S,0,0,i,s,b,i,C=[],f,k),k),i,k,f,s,r?C:k);break;default:XC(_,S,S,S,[""],k,0,s,k)}}c=u=h=0,g=y=1,b=_="",f=o;break;case 58:f=1+Vu(_),h=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&QIe()==125)continue}switch(_+=AL(w),w*g){case 38:y=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Vu(_)-1)*y,y=1;break;case 64:Lp()===45&&(_+=p9(su())),p=Lp(),u=f=Vu(b=_+=ije(YC())),w++;break;case 45:m===45&&Vu(_)==2&&(g=0)}}return a}function ZK(e,t,n,r,i,a,o,s,l,c,u,f){for(var p=i-1,h=i===0?a:[""],m=XIe(h),g=0,v=0,y=0;g0?h[w]+" "+b:GC(b,/&\f/g,h[w])))&&(l[y++]=C);return DL(e,t,n,i===0?tfe:s,l,c,u,f)}function oje(e,t,n,r){return DL(e,t,n,efe,AL(ZIe()),$0(e,2,-2),0,r)}function QK(e,t,n,r,i){return DL(e,t,n,nfe,$0(e,0,r),$0(e,r+1,-1),r,i)}function aj(e,t){for(var n="",r=0;r1}function cje(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var uje=function(t,n,r){var i=cje(r),a=i.match(/:not\([^)]*\)/g)||[];a.length>0&&a.some(lje)&&xm("Concat ':not' selector not support in legacy browsers.",r)},dje=function(t,n,r){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":xm("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var i=n.split(" ").map(function(s){return s.trim()});i.length===4&&i[1]!==i[3]&&xm("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&xm("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"borderRadius":if(typeof n=="string"){var a=n.split("/").map(function(s){return s.trim()}),o=a.reduce(function(s,l){if(s)return s;var c=l.split(" ").map(function(u){return u.trim()});return c.length>=2&&c[0]!==c[1]||c.length===3&&c[1]!==c[2]||c.length===4&&c[2]!==c[3]?!0:s},!1);o&&xm("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return}},fje=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&xm("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},pje=function(t,n,r){r.parentSelectors.some(function(i){var a=i.split(",");return a.some(function(o){return o.split("&").length>2})})&&xm("Should not use more than one `&` in a selector.",r)},G2="data-ant-cssinjs-cache-path",ofe="_FILE_STYLE__";function hje(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var Um,sfe=!0;function mje(){if(!Um&&(Um={},wy())){var e=document.createElement("div");e.className=G2,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var a=i.split(":"),o=Te(a,2),s=o[0],l=o[1];Um[s]=l});var n=document.querySelector("style[".concat(G2,"]"));if(n){var r;sfe=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function gje(e){return mje(),!!Um[e]}function vje(e){var t=Um[e],n=null;if(t&&wy())if(sfe)n=ofe;else{var r=document.querySelector("style[".concat(ou,'="').concat(Um[e],'"]'));r?n=r.innerHTML:delete Um[e]}return[n,t]}var yje="_skip_check_",lfe="_multi_value_";function ZC(e){var t=aj(aje(e),sje);return t.replace(/\{%%%\:[^;];}/g,";")}function bje(e){return Kt(e)==="object"&&e&&(yje in e||lfe in e)}function JK(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(o){var s,l=o.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(lt(l.slice(1))).join(" ")});return a.join(",")}var wje=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var p="",h={};function m(y){var w=y.getName(s);if(!h[w]){var b=e(y.style,n,{root:!1,parentSelectors:o}),C=Te(b,1),k=C[0];h[w]="@keyframes ".concat(y.getName(s)).concat(k)}}function g(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(b){Array.isArray(b)?g(b,w):b&&w.push(b)}),w}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(y){var w=typeof y=="string"&&!i?{}:y;if(typeof w=="string")p+="".concat(w,` -`);else if(w._keyframe)m(w);else{var b=f.reduce(function(C,k){var S;return(k==null||(S=k.visit)===null||S===void 0?void 0:S.call(k,C))||C},w);Object.keys(b).forEach(function(C){var k=b[C];if(Kt(k)==="object"&&k&&(C!=="animationName"||!k._keyframe)&&!bje(k)){var S=!1,_=C.trim(),E=!1;(i||a)&&s?_.startsWith("@")?S=!0:_==="&"?_=JK("",s,c):_=JK(C,s,c):i&&!s&&(_==="&"||_==="")&&(_="",E=!0);var $=e(k,n,{root:E,injectHash:S,parentSelectors:[].concat(lt(o),[_])}),M=Te($,2),P=M[0],R=M[1];h=q(q({},h),R),p+="".concat(_).concat(P)}else{let I=function(A,N){var F=A.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),K=N;!Jde[A]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),A==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(m(N),K=N.getName(s)),p+="".concat(F,":").concat(K,";")};var O,j=(O=k==null?void 0:k.value)!==null&&O!==void 0?O:k;Kt(k)==="object"&&k!==null&&k!==void 0&&k[lfe]&&Array.isArray(j)?j.forEach(function(A){I(C,A)}):I(C,j)}})}}),i?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(` -`))):p="{".concat(p,"}"),[p,h]};function cfe(e,t){return Gw("".concat(e.join("%")).concat(t))}function xje(){return null}var ufe="style";function Qw(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(k0),f=u.autoClear;u.mock;var p=u.defaultCache,h=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,y=u.linters,w=u.cache,b=u.layer,C=n._tokenKey,k=[C];b&&k.push("layer"),k.push.apply(k,lt(r));var S=rj,_=IL(ufe,k,function(){var R=k.join("|");if(gje(R)){var O=vje(R),j=Te(O,2),I=j[0],A=j[1];if(I)return[I,C,A,{},s,c]}var N=t(),F=wje(N,{hashId:i,hashPriority:h,layer:b?a:void 0,path:r.join("-"),transformers:v,linters:y}),K=Te(F,2),L=K[0],V=K[1],B=ZC(L),U=cfe(k,B);return[B,C,U,V,s,c]},function(R,O){var j=Te(R,3),I=j[2];(O||f)&&rj&&TL(I,{mark:ou})},function(R){var O=Te(R,4),j=O[0];O[1];var I=O[2],A=O[3];if(S&&j!==ofe){var N={mark:ou,prepend:b?!1:"queue",attachTo:m,priority:c},F=typeof o=="function"?o():o;F&&(N.csp={nonce:F});var K=[],L=[];Object.keys(A).forEach(function(B){B.startsWith("@layer")?K.push(B):L.push(B)}),K.forEach(function(B){Ov(ZC(A[B]),"_layer-".concat(B),q(q({},N),{},{prepend:!0}))});var V=Ov(j,I,N);V[Fp]=w.instanceId,V.setAttribute(_0,C),L.forEach(function(B){Ov(ZC(A[B]),"_effect-".concat(B),N)})}}),E=Te(_,3),$=E[0],M=E[1],P=E[2];return function(R){var O;if(!g||S||!p)O=d.createElement(xje,null);else{var j;O=d.createElement("style",tt({},(j={},ne(j,_0,M),ne(j,ou,P),j),{dangerouslySetInnerHTML:{__html:$}}))}return d.createElement(d.Fragment,null,O,R)}}var Sje=function(t,n,r){var i=Te(t,6),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},p=f.plain;if(c)return null;var h=a,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=Yw(a,o,s,m,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=ZC(l[g]),y=Yw(v,o,"_effect-".concat(g),m,p);g.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},dfe="cssVar",ffe=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(k0),f=u.cache.instanceId,p=u.container,h=s._tokenKey,m=[].concat(lt(t.path),[r,c,h]),g=IL(dfe,m,function(){var v=n(),y=Zde(v,r,{prefix:i,unitless:a,ignore:o,scope:c}),w=Te(y,2),b=w[0],C=w[1],k=cfe(m,C);return[b,C,k,r]},function(v){var y=Te(v,3),w=y[2];rj&&TL(w,{mark:ou})},function(v){var y=Te(v,3),w=y[1],b=y[2];if(w){var C=Ov(w,b,{mark:ou,prepend:"queue",attachTo:p,priority:-999});C[Fp]=f,C.setAttribute(_0,r)}});return g},Cje=function(t,n,r){var i=Te(t,4),a=i[1],o=i[2],s=i[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},p=Yw(a,s,o,f,c);return[u,o,p]},Pb,_je=(Pb={},ne(Pb,ufe,Sje),ne(Pb,Qde,VIe),ne(Pb,dfe,Cje),Pb);function kje(e){return e!==null}function Eje(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,a=n.types,o=a===void 0?["style","token","cssVar"]:a,s=new RegExp("^(".concat((typeof o=="string"?[o]:o).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(p){return s.test(p)}),c={},u={},f="";return l.map(function(p){var h=p.replace(s,"").replace(/%/g,"|"),m=p.split("%"),g=Te(m,1),v=g[0],y=_je[v],w=y(e.cache.get(p)[1],c,{plain:i});if(!w)return null;var b=Te(w,3),C=b[0],k=b[1],S=b[2];return p.startsWith("style")&&(u[h]=k),[C,S]}).filter(kje).sort(function(p,h){var m=Te(p,1),g=m[0],v=Te(h,1),y=v[0];return g-y}).forEach(function(p){var h=Te(p,2),m=h[1];f+=m}),f+=Yw(".".concat(G2,'{content:"').concat(hje(u),'";}'),void 0,void 0,ne({},G2,G2),i),f}var ir=function(){function e(t,n){Ar(this,e),ne(this,"name",void 0),ne(this,"style",void 0),ne(this,"_keyframe",!0),this.name=t,this.style=n}return Dr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function $je(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],a=0;return[r.reduce(function(o,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;a+=l-c}return a>=0&&i.push(s),a===0&&(o.push(i.join(" ")),i=[]),o},[]),!!n]}function $1(e){return e.notSplit=!0,e}var Mje={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:$1(["borderTop","borderBottom"]),borderBlockStart:$1(["borderTop"]),borderBlockEnd:$1(["borderBottom"]),borderInline:$1(["borderLeft","borderRight"]),borderInlineStart:$1(["borderLeft"]),borderInlineEnd:$1(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function uS(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var Tje={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],a=Mje[r];if(a&&(typeof i=="number"||typeof i=="string")){var o=$je(i),s=Te(o,2),l=s[0],c=s[1];a.length&&a.notSplit?a.forEach(function(u){n[u]=uS(i,c)}):a.length===1?n[a[0]]=uS(l[0],c):a.length===2?a.forEach(function(u,f){var p;n[u]=uS((p=l[f])!==null&&p!==void 0?p:l[0],c)}):a.length===4?a.forEach(function(u,f){var p,h;n[u]=uS((p=(h=l[f])!==null&&h!==void 0?h:l[f-2])!==null&&p!==void 0?p:l[0],c)}):n[r]=i}else n[r]=i}),n}},h9=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function Pje(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var Oje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,i=t.precision,a=i===void 0?5:i,o=t.mediaQuery,s=o===void 0?!1:o,l=function(f,p){if(!p)return f;var h=parseFloat(p);if(h<=1)return f;var m=Pje(h/r,a);return"".concat(m,"rem")},c=function(f){var p=q({},f);return Object.entries(f).forEach(function(h){var m=Te(h,2),g=m[0],v=m[1];if(typeof v=="string"&&v.includes("px")){var y=v.replace(h9,l);p[g]=y}!Jde[g]&&typeof v=="number"&&v!==0&&(p[g]="".concat(v,"px").replace(h9,l));var w=g.trim();if(w.startsWith("@")&&w.includes("px")&&s){var b=g.replace(h9,l);p[b]=p[g],delete p[g]}}),p};return{visit:c}},Rje={supportModernCSS:function(){return $Ie()&&MIe()}};const Ije=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:ir,NaNLinter:fje,StyleProvider:bIe,Theme:RL,_experimental:Rje,createCache:PL,createTheme:fg,extractStyle:Eje,genCalc:CIe,getComputedToken:jL,legacyLogicalPropertiesTransformer:Tje,legacyNotSelectorLinter:uje,logicalPropertiesLinter:dje,parentSelectorLinter:pje,px2remTransformer:Oje,token2CSSVar:K2,unit:Me,useCSSVarRegister:ffe,useCacheToken:NL,useStyleRegister:Qw},Symbol.toStringTag,{value:"Module"}));var qE=d.createContext({});function FL(e){return Bde(e)||Ade(e)||HE(e)||zde()}function Ds(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ds(e,t.slice(0,-1))?e:pfe(e,t,n,r)}function jje(e){return Kt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function eG(e){return Array.isArray(e)?[]:{}}var Nje=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function gv(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=Aje,e},hfe=d.createContext(void 0);var mfe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},gfe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Fje=q(q({},gfe),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const vfe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Uk={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Fje),timePickerLocale:Object.assign({},vfe)},rl="${label} is not a valid ${type}",Us={locale:"en",Pagination:mfe,DatePicker:Uk,TimePicker:vfe,Calendar:Uk,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:rl,method:rl,array:rl,object:rl,number:rl,date:rl,boolean:rl,integer:rl,float:rl,regexp:rl,email:rl,url:rl,hex:rl},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let QC=Object.assign({},Us.Modal),JC=[];const tG=()=>JC.reduce((e,t)=>Object.assign(Object.assign({},e),t),Us.Modal);function Lje(e){if(e){const t=Object.assign({},e);return JC.push(t),QC=tG(),()=>{JC=JC.filter(n=>n!==t),QC=tG()}}QC=Object.assign({},Us.Modal)}function yfe(){return QC}const LL=d.createContext(void 0),Ga=(e,t)=>{const n=d.useContext(LL),r=d.useMemo(()=>{var a;const o=t||Us[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=d.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Us.locale:a},[n]);return[r,i]},Bje="internalMark",zje=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>Lje(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(LL.Provider,{value:i},n)},Xa=Math.round;function m9(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const nG=(e,t,n)=>n===0?e:e/100;function Ob(e,t){const n=t||255;return e>n?n:e<0?0:e}class ur{constructor(t){ne(this,"isValid",!0),ne(this,"r",0),ne(this,"g",0),ne(this,"b",0),ne(this,"a",1),ne(this,"_h",void 0),ne(this,"_s",void 0),ne(this,"_l",void 0),ne(this,"_v",void 0),ne(this,"_max",void 0),ne(this,"_min",void 0),ne(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let a=function(o){return i.startsWith(o)};var r=a;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):a("rgb")?this.fromRgbString(i):a("hsl")?this.fromHslString(i):(a("hsv")||a("hsb"))&&this.fromHsvString(i)}else if(t instanceof ur)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ob(t.r),this.g=Ob(t.g),this.b=Ob(t.b),this.a=typeof t.a=="number"?Ob(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Xa(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=s=>(r[s]-this[s])*i+this[s],o={r:Xa(a("r")),g:Xa(a("g")),b:Xa(a("b")),a:Xa(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>Xa((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Xa(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Xa(this.getSaturation()*100),r=Xa(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Ob(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const p=Xa(r*255);this.r=p,this.g=p,this.b=p}let a=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=u):l>=1&&l<2?(a=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=Xa((a+f)*255),this.g=Xa((o+f)*255),this.b=Xa((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=Xa(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Xa(r*(1-n)*255),u=Xa(r*(1-n*l)*255),f=Xa(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=m9(t,nG);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=m9(t,nG);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=m9(t,(r,i)=>i.includes("%")?Xa(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Hje=Object.freeze(Object.defineProperty({__proto__:null,FastColor:ur},Symbol.toStringTag,{value:"Module"}));var dS=2,rG=.16,Uje=.05,Wje=.05,Vje=.15,bfe=5,wfe=4,qje=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function iG(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-dS*t:Math.round(e.h)+dS*t:r=n?Math.round(e.h)+dS*t:Math.round(e.h)-dS*t,r<0?r+=360:r>=360&&(r-=360),r}function aG(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-rG*t:t===wfe?r=e.s+rG:r=e.s+Uje*t,r>1&&(r=1),n&&t===bfe&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function oG(e,t,n){var r;return n?r=e.v+Wje*t:r=e.v-Vje*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function dh(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new ur(e),i=r.toHsv(),a=bfe;a>0;a-=1){var o=new ur({h:iG(i,a,!0),s:aG(i,a,!0),v:oG(i,a,!0)});n.push(o)}n.push(r);for(var s=1;s<=wfe;s+=1){var l=new ur({h:iG(i,s),s:aG(i,s),v:oG(i,s)});n.push(l)}return t.theme==="dark"?qje.map(function(c){var u=c.index,f=c.amount;return new ur(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Wm={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Wk=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Wk.primary=Wk[5];var Vk=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Vk.primary=Vk[5];var qk=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];qk.primary=qk[5];var Jw=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Jw.primary=Jw[5];var Kk=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Kk.primary=Kk[5];var Gk=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Gk.primary=Gk[5];var Yk=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Yk.primary=Yk[5];var Xk=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Xk.primary=Xk[5];var pg=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];pg.primary=pg[5];var Zk=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Zk.primary=Zk[5];var Qk=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Qk.primary=Qk[5];var Jk=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Jk.primary=Jk[5];var e3=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];e3.primary=e3[5];var Kje=e3,e_={red:Wk,volcano:Vk,orange:qk,gold:Jw,yellow:Kk,lime:Gk,green:Yk,cyan:Xk,blue:pg,geekblue:Zk,purple:Qk,magenta:Jk,grey:e3},e6=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];e6.primary=e6[5];var t6=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];t6.primary=t6[5];var n6=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];n6.primary=n6[5];var r6=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];r6.primary=r6[5];var i6=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];i6.primary=i6[5];var a6=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];a6.primary=a6[5];var o6=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];o6.primary=o6[5];var s6=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];s6.primary=s6[5];var l6=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];l6.primary=l6[5];var c6=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];c6.primary=c6[5];var u6=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];u6.primary=u6[5];var d6=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];d6.primary=d6[5];var f6=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];f6.primary=f6[5];var Gje={red:e6,volcano:t6,orange:n6,gold:r6,yellow:i6,lime:a6,green:o6,cyan:s6,blue:l6,geekblue:c6,purple:u6,magenta:d6,grey:f6};const Yje=Object.freeze(Object.defineProperty({__proto__:null,blue:pg,blueDark:l6,cyan:Xk,cyanDark:s6,geekblue:Zk,geekblueDark:c6,generate:dh,gold:Jw,goldDark:r6,gray:Kje,green:Yk,greenDark:o6,grey:e3,greyDark:f6,lime:Gk,limeDark:a6,magenta:Jk,magentaDark:d6,orange:qk,orangeDark:n6,presetDarkPalettes:Gje,presetPalettes:e_,presetPrimaryColors:Wm,purple:Qk,purpleDark:u6,red:Wk,redDark:e6,volcano:Vk,volcanoDark:t6,yellow:Kk,yellowDark:i6},Symbol.toStringTag,{value:"Module"})),BL={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},T0=Object.assign(Object.assign({},BL),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var CL=Symbol.for("react.element"),_L=Symbol.for("react.portal"),PE=Symbol.for("react.fragment"),OE=Symbol.for("react.strict_mode"),RE=Symbol.for("react.profiler"),IE=Symbol.for("react.provider"),jE=Symbol.for("react.context"),MRe=Symbol.for("react.server_context"),NE=Symbol.for("react.forward_ref"),AE=Symbol.for("react.suspense"),DE=Symbol.for("react.suspense_list"),FE=Symbol.for("react.memo"),LE=Symbol.for("react.lazy"),TRe=Symbol.for("react.offscreen"),Ede;Ede=Symbol.for("react.module.reference");function Ec(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case CL:switch(e=e.type,e){case PE:case RE:case OE:case AE:case DE:return e;default:switch(e=e&&e.$$typeof,e){case MRe:case jE:case NE:case LE:case FE:case IE:return e;default:return t}}case _L:return t}}}di.ContextConsumer=jE;di.ContextProvider=IE;di.Element=CL;di.ForwardRef=NE;di.Fragment=PE;di.Lazy=LE;di.Memo=FE;di.Portal=_L;di.Profiler=RE;di.StrictMode=OE;di.Suspense=AE;di.SuspenseList=DE;di.isAsyncMode=function(){return!1};di.isConcurrentMode=function(){return!1};di.isContextConsumer=function(e){return Ec(e)===jE};di.isContextProvider=function(e){return Ec(e)===IE};di.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===CL};di.isForwardRef=function(e){return Ec(e)===NE};di.isFragment=function(e){return Ec(e)===PE};di.isLazy=function(e){return Ec(e)===LE};di.isMemo=function(e){return Ec(e)===FE};di.isPortal=function(e){return Ec(e)===_L};di.isProfiler=function(e){return Ec(e)===RE};di.isStrictMode=function(e){return Ec(e)===OE};di.isSuspense=function(e){return Ec(e)===AE};di.isSuspenseList=function(e){return Ec(e)===DE};di.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===PE||e===RE||e===OE||e===AE||e===DE||e===TRe||typeof e=="object"&&e!==null&&(e.$$typeof===LE||e.$$typeof===FE||e.$$typeof===IE||e.$$typeof===jE||e.$$typeof===NE||e.$$typeof===Ede||e.getModuleId!==void 0)};di.typeOf=Ec;kde.exports=di;var nh=kde.exports;function ug(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var kL=function(t,n){typeof t=="function"?t(n):Kt(t)==="object"&&t&&"current"in t&&(t.current=n)},ga=function(){for(var t=arguments.length,n=new Array(t),r=0;r0},e.prototype.connect_=function(){!QI||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),DRe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!QI||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=ARe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Mde=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof C0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new qRe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof C0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new KRe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Pde=typeof WeakMap<"u"?new WeakMap:new $de,Ode=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=FRe.getInstance(),r=new GRe(t,n,this);Pde.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ode.prototype[e]=function(){var t;return(t=Pde.get(this))[e].apply(t,arguments)}});var Rde=function(){return typeof Lk.ResizeObserver<"u"?Lk.ResizeObserver:Ode}(),Dp=new Map;function YRe(e){e.forEach(function(t){var n,r=t.target;(n=Dp.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Ide=new Rde(YRe);function XRe(e,t){Dp.has(e)||(Dp.set(e,new Set),Ide.observe(e)),Dp.get(e).add(t)}function ZRe(e,t){Dp.has(e)&&(Dp.get(e).delete(t),Dp.get(e).size||(Ide.unobserve(e),Dp.delete(e)))}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zK(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;HK+=1;var r=HK;function i(a){if(a===0)Fde(r),t();else{var o=Ade(function(){i(a-1)});$L.set(r,o)}}return i(n),r};rr.cancel=function(e){var t=$L.get(e);return Fde(e),Dde(t)};function Lde(e){if(Array.isArray(e))return e}function aIe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Bde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e,t){return Lde(e)||aIe(e,t)||HE(e,t)||Bde()}function Gw(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function wy(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oIe(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var UK="data-rc-order",WK="data-rc-priority",sIe="rc-util-key",ej=new Map;function zde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):sIe}function UE(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function lIe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ML(e){return Array.from((ej.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Hde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!wy())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=lIe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(UK,o),s&&a&&l.setAttribute(WK,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=UE(t),u=c.firstChild;if(r){if(s){var f=(t.styles||ML(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(UK)))return!1;var h=Number(p.getAttribute(WK)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ude(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=UE(t);return(t.styles||ML(n)).find(function(r){return r.getAttribute(zde(t))===e})}function TL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ude(e,t);if(n){var r=UE(t);r.removeChild(n)}}function cIe(e,t){var n=ej.get(e);if(!n||!oIe(document,n)){var r=Hde("",t),i=r.parentNode;ej.set(e,i),e.removeChild(r)}}function Ov(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=UE(n),i=ML(r),a=q(q({},n),{},{styles:i});cIe(r,a);var o=Ude(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=Hde(e,a);return u.setAttribute(zde(a),t),u}function uIe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ht(e,t){if(e==null)return{};var n,r,i=uIe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(m4(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=Te(c,2),p=f[1];return i.internalGet(u)[1]0,void 0),qK+=1}return Dr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),c9=new OL;function fg(e){var t=Array.isArray(e)?e:[e];return c9.has(t)||c9.set(t,new RL(t)),c9.get(t)}var _Ie=new WeakMap,u9={};function kIe(e,t){for(var n=_Ie,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=q(q({},i),{},(r={},ne(r,_0,t),ne(r,ou,n),r)),s=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var K2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},MIe=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=Te(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},Xde=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,c=Te(o,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var p,h=K2(u,r==null?void 0:r.prefix);i[h]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(h,")")}}),[a,MIe(i,n,{scope:r==null?void 0:r.scope})]},YK=wy()?d.useLayoutEffect:d.useEffect,TIe=function(t,n){var r=d.useRef(!0);YK(function(){return t(r.current)},n),YK(function(){return r.current=!1,function(){r.current=!0}},[])},PIe=q({},Qm),XK=PIe.useInsertionEffect,OIe=function(t,n,r){d.useMemo(t,r),TIe(function(){return n(!0)},r)},RIe=XK?function(e,t,n){return XK(function(){return e(),t()},n)}:OIe,IIe=q({},Qm),jIe=IIe.useInsertionEffect,NIe=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},AIe=function(){return function(t){t()}},DIe=typeof jIe<"u"?NIe:AIe;function IL(e,t,n,r,i){var a=d.useContext(k0),o=a.cache,s=[e].concat(lt(t)),l=nj(s),c=DIe([l]),u=function(m){o.opUpdate(l,function(g){var v=g||[void 0,void 0],y=Te(v,2),w=y[0],b=w===void 0?0:w,C=y[1],k=C,S=k||n(),_=[b,S];return m?m(_):_})};d.useMemo(function(){u()},[l]);var f=o.opGet(l),p=f[1];return RIe(function(){i==null||i(p)},function(h){return u(function(m){var g=Te(m,2),v=g[0],y=g[1];return h&&v===0&&(i==null||i(p)),[v+1,y]}),function(){o.opUpdate(l,function(m){var g=m||[],v=Te(g,2),y=v[0],w=y===void 0?0:y,b=v[1],C=w-1;return C===0?(c(function(){(h||!o.opGet(l))&&(r==null||r(b,!1))}),null):[w-1,b]})}},[l]),p}var FIe={},LIe="css",om=new Map;function BIe(e){om.set(e,(om.get(e)||0)+1)}function zIe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_0,'="').concat(e,'"]'));n.forEach(function(r){if(r[Fp]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var HIe=0;function UIe(e,t){om.set(e,(om.get(e)||0)-1);var n=Array.from(om.keys()),r=n.filter(function(i){var a=om.get(i)||0;return a<=0});n.length-r.length>HIe&&r.forEach(function(i){zIe(i,t),om.delete(i)})}var jL=function(t,n,r,i){var a=r.getDerivativeToken(t),o=q(q({},a),n);return i&&(o=i(o)),o},Zde="token";function NL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(k0),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?FIe:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,h=kIe(function(){return Object.assign.apply(Object,[{}].concat(lt(t)))},t),m=q2(h),g=q2(c),v=p?q2(p):"",y=IL(Zde,[s,e.id,m,g,v],function(){var w,b=f?f(h,c,e):jL(h,c,e,u),C=q({},b),k="";if(p){var S=Xde(b,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),_=Te(S,2);b=_[0],k=_[1]}var E=GK(b,s);b._tokenKey=E,C._tokenKey=GK(C,s);var $=(w=p==null?void 0:p.key)!==null&&w!==void 0?w:E;b._themeKey=$,BIe($);var M="".concat(LIe,"-").concat(Gw(E));return b._hashId=M,[b,M,C,k,(p==null?void 0:p.key)||""]},function(w){UIe(w[0]._themeKey,i)},function(w){var b=Te(w,4),C=b[0],k=b[3];if(p&&k){var S=Ov(k,Gw("css-variables-".concat(C._themeKey)),{mark:ou,prepend:"queue",attachTo:a,priority:-999});S[Fp]=i,S.setAttribute(_0,C._themeKey)}});return y}var WIe=function(t,n,r){var i=Te(t,5),a=i[2],o=i[3],s=i[4],l=r||{},c=l.plain;if(!o)return null;var u=a._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=Yw(o,s,u,p,c);return[f,u,h]},Qde={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jde="comm",efe="rule",tfe="decl",VIe="@import",qIe="@keyframes",KIe="@layer",nfe=Math.abs,AL=String.fromCharCode;function rfe(e){return e.trim()}function KC(e,t,n){return e.replace(t,n)}function GIe(e,t,n){return e.indexOf(t,n)}function Xw(e,t){return e.charCodeAt(t)|0}function $0(e,t,n){return e.slice(t,n)}function Vu(e){return e.length}function YIe(e){return e.length}function lS(e,t){return t.push(e),e}var WE=1,M0=1,ife=0,vc=0,Oa=0,xy="";function DL(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:WE,column:M0,length:o,return:"",siblings:s}}function XIe(){return Oa}function ZIe(){return Oa=vc>0?Xw(xy,--vc):0,M0--,Oa===10&&(M0=1,WE--),Oa}function su(){return Oa=vc2||Zw(Oa)>3?"":" "}function tje(e,t){for(;--t&&su()&&!(Oa<48||Oa>102||Oa>57&&Oa<65||Oa>70&&Oa<97););return VE(e,GC()+(t<6&&Lp()==32&&su()==32))}function ij(e){for(;su();)switch(Oa){case e:return vc;case 34:case 39:e!==34&&e!==39&&ij(Oa);break;case 40:e===41&&ij(e);break;case 92:su();break}return vc}function nje(e,t){for(;su()&&e+Oa!==57;)if(e+Oa===84&&Lp()===47)break;return"/*"+VE(t,vc-1)+"*"+AL(e===47?e:su())}function rje(e){for(;!Zw(Lp());)su();return VE(e,vc)}function ije(e){return JIe(YC("",null,null,null,[""],e=QIe(e),0,[0],e))}function YC(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,p=0,h=0,m=0,g=1,v=1,y=1,w=0,b="",C=i,k=a,S=r,_=b;v;)switch(m=w,w=su()){case 40:if(m!=108&&Xw(_,f-1)==58){GIe(_+=KC(p9(w),"&","&\f"),"&\f",nfe(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:_+=p9(w);break;case 9:case 10:case 13:case 32:_+=eje(m);break;case 92:_+=tje(GC()-1,7);continue;case 47:switch(Lp()){case 42:case 47:lS(aje(nje(su(),GC()),t,n,l),l),(Zw(m||1)==5||Zw(Lp()||1)==5)&&Vu(_)&&$0(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*g:s[c++]=Vu(_)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+u:y==-1&&(_=KC(_,/\f/g,"")),h>0&&(Vu(_)-f||g===0&&m===47)&&lS(h>32?QK(_+";",r,n,f-1,l):QK(KC(_," ","")+";",r,n,f-2,l),l);break;case 59:_+=";";default:if(lS(S=ZK(_,t,n,c,u,i,s,b,C=[],k=[],f,a),a),w===123)if(u===0)YC(_,t,S,S,C,a,f,s,k);else switch(p===99&&Xw(_,3)===110?100:p){case 100:case 108:case 109:case 115:YC(e,S,S,r&&lS(ZK(e,S,S,0,0,i,s,b,i,C=[],f,k),k),i,k,f,s,r?C:k);break;default:YC(_,S,S,S,[""],k,0,s,k)}}c=u=h=0,g=y=1,b=_="",f=o;break;case 58:f=1+Vu(_),h=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&ZIe()==125)continue}switch(_+=AL(w),w*g){case 38:y=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Vu(_)-1)*y,y=1;break;case 64:Lp()===45&&(_+=p9(su())),p=Lp(),u=f=Vu(b=_+=rje(GC())),w++;break;case 45:m===45&&Vu(_)==2&&(g=0)}}return a}function ZK(e,t,n,r,i,a,o,s,l,c,u,f){for(var p=i-1,h=i===0?a:[""],m=YIe(h),g=0,v=0,y=0;g0?h[w]+" "+b:KC(b,/&\f/g,h[w])))&&(l[y++]=C);return DL(e,t,n,i===0?efe:s,l,c,u,f)}function aje(e,t,n,r){return DL(e,t,n,Jde,AL(XIe()),$0(e,2,-2),0,r)}function QK(e,t,n,r,i){return DL(e,t,n,tfe,$0(e,0,r),$0(e,r+1,-1),r,i)}function aj(e,t){for(var n="",r=0;r1}function lje(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var cje=function(t,n,r){var i=lje(r),a=i.match(/:not\([^)]*\)/g)||[];a.length>0&&a.some(sje)&&xm("Concat ':not' selector not support in legacy browsers.",r)},uje=function(t,n,r){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":xm("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var i=n.split(" ").map(function(s){return s.trim()});i.length===4&&i[1]!==i[3]&&xm("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&xm("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"borderRadius":if(typeof n=="string"){var a=n.split("/").map(function(s){return s.trim()}),o=a.reduce(function(s,l){if(s)return s;var c=l.split(" ").map(function(u){return u.trim()});return c.length>=2&&c[0]!==c[1]||c.length===3&&c[1]!==c[2]||c.length===4&&c[2]!==c[3]?!0:s},!1);o&&xm("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return}},dje=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&xm("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},fje=function(t,n,r){r.parentSelectors.some(function(i){var a=i.split(",");return a.some(function(o){return o.split("&").length>2})})&&xm("Should not use more than one `&` in a selector.",r)},G2="data-ant-cssinjs-cache-path",afe="_FILE_STYLE__";function pje(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var Um,ofe=!0;function hje(){if(!Um&&(Um={},wy())){var e=document.createElement("div");e.className=G2,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var a=i.split(":"),o=Te(a,2),s=o[0],l=o[1];Um[s]=l});var n=document.querySelector("style[".concat(G2,"]"));if(n){var r;ofe=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function mje(e){return hje(),!!Um[e]}function gje(e){var t=Um[e],n=null;if(t&&wy())if(ofe)n=afe;else{var r=document.querySelector("style[".concat(ou,'="').concat(Um[e],'"]'));r?n=r.innerHTML:delete Um[e]}return[n,t]}var vje="_skip_check_",sfe="_multi_value_";function XC(e){var t=aj(ije(e),oje);return t.replace(/\{%%%\:[^;];}/g,";")}function yje(e){return Kt(e)==="object"&&e&&(vje in e||sfe in e)}function JK(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(o){var s,l=o.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(lt(l.slice(1))).join(" ")});return a.join(",")}var bje=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var p="",h={};function m(y){var w=y.getName(s);if(!h[w]){var b=e(y.style,n,{root:!1,parentSelectors:o}),C=Te(b,1),k=C[0];h[w]="@keyframes ".concat(y.getName(s)).concat(k)}}function g(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(b){Array.isArray(b)?g(b,w):b&&w.push(b)}),w}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(y){var w=typeof y=="string"&&!i?{}:y;if(typeof w=="string")p+="".concat(w,` +`);else if(w._keyframe)m(w);else{var b=f.reduce(function(C,k){var S;return(k==null||(S=k.visit)===null||S===void 0?void 0:S.call(k,C))||C},w);Object.keys(b).forEach(function(C){var k=b[C];if(Kt(k)==="object"&&k&&(C!=="animationName"||!k._keyframe)&&!yje(k)){var S=!1,_=C.trim(),E=!1;(i||a)&&s?_.startsWith("@")?S=!0:_==="&"?_=JK("",s,c):_=JK(C,s,c):i&&!s&&(_==="&"||_==="")&&(_="",E=!0);var $=e(k,n,{root:E,injectHash:S,parentSelectors:[].concat(lt(o),[_])}),M=Te($,2),P=M[0],R=M[1];h=q(q({},h),R),p+="".concat(_).concat(P)}else{let I=function(A,N){var F=A.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),K=N;!Qde[A]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),A==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(m(N),K=N.getName(s)),p+="".concat(F,":").concat(K,";")};var O,j=(O=k==null?void 0:k.value)!==null&&O!==void 0?O:k;Kt(k)==="object"&&k!==null&&k!==void 0&&k[sfe]&&Array.isArray(j)?j.forEach(function(A){I(C,A)}):I(C,j)}})}}),i?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(` +`))):p="{".concat(p,"}"),[p,h]};function lfe(e,t){return Gw("".concat(e.join("%")).concat(t))}function wje(){return null}var cfe="style";function Qw(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(k0),f=u.autoClear;u.mock;var p=u.defaultCache,h=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,y=u.linters,w=u.cache,b=u.layer,C=n._tokenKey,k=[C];b&&k.push("layer"),k.push.apply(k,lt(r));var S=rj,_=IL(cfe,k,function(){var R=k.join("|");if(mje(R)){var O=gje(R),j=Te(O,2),I=j[0],A=j[1];if(I)return[I,C,A,{},s,c]}var N=t(),F=bje(N,{hashId:i,hashPriority:h,layer:b?a:void 0,path:r.join("-"),transformers:v,linters:y}),K=Te(F,2),L=K[0],V=K[1],B=XC(L),U=lfe(k,B);return[B,C,U,V,s,c]},function(R,O){var j=Te(R,3),I=j[2];(O||f)&&rj&&TL(I,{mark:ou})},function(R){var O=Te(R,4),j=O[0];O[1];var I=O[2],A=O[3];if(S&&j!==afe){var N={mark:ou,prepend:b?!1:"queue",attachTo:m,priority:c},F=typeof o=="function"?o():o;F&&(N.csp={nonce:F});var K=[],L=[];Object.keys(A).forEach(function(B){B.startsWith("@layer")?K.push(B):L.push(B)}),K.forEach(function(B){Ov(XC(A[B]),"_layer-".concat(B),q(q({},N),{},{prepend:!0}))});var V=Ov(j,I,N);V[Fp]=w.instanceId,V.setAttribute(_0,C),L.forEach(function(B){Ov(XC(A[B]),"_effect-".concat(B),N)})}}),E=Te(_,3),$=E[0],M=E[1],P=E[2];return function(R){var O;if(!g||S||!p)O=d.createElement(wje,null);else{var j;O=d.createElement("style",tt({},(j={},ne(j,_0,M),ne(j,ou,P),j),{dangerouslySetInnerHTML:{__html:$}}))}return d.createElement(d.Fragment,null,O,R)}}var xje=function(t,n,r){var i=Te(t,6),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},p=f.plain;if(c)return null;var h=a,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=Yw(a,o,s,m,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=XC(l[g]),y=Yw(v,o,"_effect-".concat(g),m,p);g.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},ufe="cssVar",dfe=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(k0),f=u.cache.instanceId,p=u.container,h=s._tokenKey,m=[].concat(lt(t.path),[r,c,h]),g=IL(ufe,m,function(){var v=n(),y=Xde(v,r,{prefix:i,unitless:a,ignore:o,scope:c}),w=Te(y,2),b=w[0],C=w[1],k=lfe(m,C);return[b,C,k,r]},function(v){var y=Te(v,3),w=y[2];rj&&TL(w,{mark:ou})},function(v){var y=Te(v,3),w=y[1],b=y[2];if(w){var C=Ov(w,b,{mark:ou,prepend:"queue",attachTo:p,priority:-999});C[Fp]=f,C.setAttribute(_0,r)}});return g},Sje=function(t,n,r){var i=Te(t,4),a=i[1],o=i[2],s=i[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},p=Yw(a,s,o,f,c);return[u,o,p]},Pb,Cje=(Pb={},ne(Pb,cfe,xje),ne(Pb,Zde,WIe),ne(Pb,ufe,Sje),Pb);function _je(e){return e!==null}function kje(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,a=n.types,o=a===void 0?["style","token","cssVar"]:a,s=new RegExp("^(".concat((typeof o=="string"?[o]:o).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(p){return s.test(p)}),c={},u={},f="";return l.map(function(p){var h=p.replace(s,"").replace(/%/g,"|"),m=p.split("%"),g=Te(m,1),v=g[0],y=Cje[v],w=y(e.cache.get(p)[1],c,{plain:i});if(!w)return null;var b=Te(w,3),C=b[0],k=b[1],S=b[2];return p.startsWith("style")&&(u[h]=k),[C,S]}).filter(_je).sort(function(p,h){var m=Te(p,1),g=m[0],v=Te(h,1),y=v[0];return g-y}).forEach(function(p){var h=Te(p,2),m=h[1];f+=m}),f+=Yw(".".concat(G2,'{content:"').concat(pje(u),'";}'),void 0,void 0,ne({},G2,G2),i),f}var ir=function(){function e(t,n){Ar(this,e),ne(this,"name",void 0),ne(this,"style",void 0),ne(this,"_keyframe",!0),this.name=t,this.style=n}return Dr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Eje(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],a=0;return[r.reduce(function(o,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;a+=l-c}return a>=0&&i.push(s),a===0&&(o.push(i.join(" ")),i=[]),o},[]),!!n]}function $1(e){return e.notSplit=!0,e}var $je={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:$1(["borderTop","borderBottom"]),borderBlockStart:$1(["borderTop"]),borderBlockEnd:$1(["borderBottom"]),borderInline:$1(["borderLeft","borderRight"]),borderInlineStart:$1(["borderLeft"]),borderInlineEnd:$1(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function cS(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var Mje={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],a=$je[r];if(a&&(typeof i=="number"||typeof i=="string")){var o=Eje(i),s=Te(o,2),l=s[0],c=s[1];a.length&&a.notSplit?a.forEach(function(u){n[u]=cS(i,c)}):a.length===1?n[a[0]]=cS(l[0],c):a.length===2?a.forEach(function(u,f){var p;n[u]=cS((p=l[f])!==null&&p!==void 0?p:l[0],c)}):a.length===4?a.forEach(function(u,f){var p,h;n[u]=cS((p=(h=l[f])!==null&&h!==void 0?h:l[f-2])!==null&&p!==void 0?p:l[0],c)}):n[r]=i}else n[r]=i}),n}},h9=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function Tje(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var Pje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,i=t.precision,a=i===void 0?5:i,o=t.mediaQuery,s=o===void 0?!1:o,l=function(f,p){if(!p)return f;var h=parseFloat(p);if(h<=1)return f;var m=Tje(h/r,a);return"".concat(m,"rem")},c=function(f){var p=q({},f);return Object.entries(f).forEach(function(h){var m=Te(h,2),g=m[0],v=m[1];if(typeof v=="string"&&v.includes("px")){var y=v.replace(h9,l);p[g]=y}!Qde[g]&&typeof v=="number"&&v!==0&&(p[g]="".concat(v,"px").replace(h9,l));var w=g.trim();if(w.startsWith("@")&&w.includes("px")&&s){var b=g.replace(h9,l);p[b]=p[g],delete p[g]}}),p};return{visit:c}},Oje={supportModernCSS:function(){return EIe()&&$Ie()}};const Rje=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:ir,NaNLinter:dje,StyleProvider:yIe,Theme:RL,_experimental:Oje,createCache:PL,createTheme:fg,extractStyle:kje,genCalc:SIe,getComputedToken:jL,legacyLogicalPropertiesTransformer:Mje,legacyNotSelectorLinter:cje,logicalPropertiesLinter:uje,parentSelectorLinter:fje,px2remTransformer:Pje,token2CSSVar:K2,unit:Me,useCSSVarRegister:dfe,useCacheToken:NL,useStyleRegister:Qw},Symbol.toStringTag,{value:"Module"}));var qE=d.createContext({});function FL(e){return Lde(e)||Nde(e)||HE(e)||Bde()}function Ds(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ds(e,t.slice(0,-1))?e:ffe(e,t,n,r)}function Ije(e){return Kt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function eG(e){return Array.isArray(e)?[]:{}}var jje=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function gv(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=Nje,e},pfe=d.createContext(void 0);var hfe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},mfe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Dje=q(q({},mfe),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const gfe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Hk={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Dje),timePickerLocale:Object.assign({},gfe)},rl="${label} is not a valid ${type}",Us={locale:"en",Pagination:hfe,DatePicker:Hk,TimePicker:gfe,Calendar:Hk,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:rl,method:rl,array:rl,object:rl,number:rl,date:rl,boolean:rl,integer:rl,float:rl,regexp:rl,email:rl,url:rl,hex:rl},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let ZC=Object.assign({},Us.Modal),QC=[];const tG=()=>QC.reduce((e,t)=>Object.assign(Object.assign({},e),t),Us.Modal);function Fje(e){if(e){const t=Object.assign({},e);return QC.push(t),ZC=tG(),()=>{QC=QC.filter(n=>n!==t),ZC=tG()}}ZC=Object.assign({},Us.Modal)}function vfe(){return ZC}const LL=d.createContext(void 0),Ga=(e,t)=>{const n=d.useContext(LL),r=d.useMemo(()=>{var a;const o=t||Us[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=d.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Us.locale:a},[n]);return[r,i]},Lje="internalMark",Bje=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>Fje(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(LL.Provider,{value:i},n)},Xa=Math.round;function m9(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const nG=(e,t,n)=>n===0?e:e/100;function Ob(e,t){const n=t||255;return e>n?n:e<0?0:e}class ur{constructor(t){ne(this,"isValid",!0),ne(this,"r",0),ne(this,"g",0),ne(this,"b",0),ne(this,"a",1),ne(this,"_h",void 0),ne(this,"_s",void 0),ne(this,"_l",void 0),ne(this,"_v",void 0),ne(this,"_max",void 0),ne(this,"_min",void 0),ne(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let a=function(o){return i.startsWith(o)};var r=a;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):a("rgb")?this.fromRgbString(i):a("hsl")?this.fromHslString(i):(a("hsv")||a("hsb"))&&this.fromHsvString(i)}else if(t instanceof ur)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ob(t.r),this.g=Ob(t.g),this.b=Ob(t.b),this.a=typeof t.a=="number"?Ob(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Xa(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=s=>(r[s]-this[s])*i+this[s],o={r:Xa(a("r")),g:Xa(a("g")),b:Xa(a("b")),a:Xa(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>Xa((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Xa(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Xa(this.getSaturation()*100),r=Xa(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Ob(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const p=Xa(r*255);this.r=p,this.g=p,this.b=p}let a=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=u):l>=1&&l<2?(a=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=Xa((a+f)*255),this.g=Xa((o+f)*255),this.b=Xa((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=Xa(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Xa(r*(1-n)*255),u=Xa(r*(1-n*l)*255),f=Xa(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=m9(t,nG);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=m9(t,nG);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=m9(t,(r,i)=>i.includes("%")?Xa(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const zje=Object.freeze(Object.defineProperty({__proto__:null,FastColor:ur},Symbol.toStringTag,{value:"Module"}));var uS=2,rG=.16,Hje=.05,Uje=.05,Wje=.15,yfe=5,bfe=4,Vje=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function iG(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-uS*t:Math.round(e.h)+uS*t:r=n?Math.round(e.h)+uS*t:Math.round(e.h)-uS*t,r<0?r+=360:r>=360&&(r-=360),r}function aG(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-rG*t:t===bfe?r=e.s+rG:r=e.s+Hje*t,r>1&&(r=1),n&&t===yfe&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function oG(e,t,n){var r;return n?r=e.v+Uje*t:r=e.v-Wje*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function dh(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new ur(e),i=r.toHsv(),a=yfe;a>0;a-=1){var o=new ur({h:iG(i,a,!0),s:aG(i,a,!0),v:oG(i,a,!0)});n.push(o)}n.push(r);for(var s=1;s<=bfe;s+=1){var l=new ur({h:iG(i,s),s:aG(i,s),v:oG(i,s)});n.push(l)}return t.theme==="dark"?Vje.map(function(c){var u=c.index,f=c.amount;return new ur(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Wm={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Uk=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Uk.primary=Uk[5];var Wk=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Wk.primary=Wk[5];var Vk=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Vk.primary=Vk[5];var Jw=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Jw.primary=Jw[5];var qk=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];qk.primary=qk[5];var Kk=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Kk.primary=Kk[5];var Gk=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Gk.primary=Gk[5];var Yk=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Yk.primary=Yk[5];var pg=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];pg.primary=pg[5];var Xk=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Xk.primary=Xk[5];var Zk=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Zk.primary=Zk[5];var Qk=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Qk.primary=Qk[5];var e3=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];e3.primary=e3[5];var qje=e3,JC={red:Uk,volcano:Wk,orange:Vk,gold:Jw,yellow:qk,lime:Kk,green:Gk,cyan:Yk,blue:pg,geekblue:Xk,purple:Zk,magenta:Qk,grey:e3},Jk=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Jk.primary=Jk[5];var e6=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];e6.primary=e6[5];var t6=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];t6.primary=t6[5];var n6=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];n6.primary=n6[5];var r6=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];r6.primary=r6[5];var i6=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];i6.primary=i6[5];var a6=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];a6.primary=a6[5];var o6=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];o6.primary=o6[5];var s6=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];s6.primary=s6[5];var l6=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];l6.primary=l6[5];var c6=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];c6.primary=c6[5];var u6=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];u6.primary=u6[5];var d6=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];d6.primary=d6[5];var Kje={red:Jk,volcano:e6,orange:t6,gold:n6,yellow:r6,lime:i6,green:a6,cyan:o6,blue:s6,geekblue:l6,purple:c6,magenta:u6,grey:d6};const Gje=Object.freeze(Object.defineProperty({__proto__:null,blue:pg,blueDark:s6,cyan:Yk,cyanDark:o6,geekblue:Xk,geekblueDark:l6,generate:dh,gold:Jw,goldDark:n6,gray:qje,green:Gk,greenDark:a6,grey:e3,greyDark:d6,lime:Kk,limeDark:i6,magenta:Qk,magentaDark:u6,orange:Vk,orangeDark:t6,presetDarkPalettes:Kje,presetPalettes:JC,presetPrimaryColors:Wm,purple:Zk,purpleDark:c6,red:Uk,redDark:Jk,volcano:Wk,volcanoDark:e6,yellow:qk,yellowDark:r6},Symbol.toStringTag,{value:"Module"})),BL={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},T0=Object.assign(Object.assign({},BL),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function xfe(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),p=n(i),h=n(a),m=n(o),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,w=n(y),b=new ur(m[1]).mix(new ur(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new ur("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Xje=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Zje(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},Xje(r))}const Sfe=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function t_(e){return(e+8)/e}function Qje(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:t_(n)}))}const Cfe=e=>{const t=Qje(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Jje(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const ql=(e,t)=>new ur(e).setA(t).toRgbString(),Rb=(e,t)=>new ur(e).darken(t).toHexString(),eNe=e=>{const t=dh(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},tNe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ql(r,.88),colorTextSecondary:ql(r,.65),colorTextTertiary:ql(r,.45),colorTextQuaternary:ql(r,.25),colorFill:ql(r,.15),colorFillSecondary:ql(r,.06),colorFillTertiary:ql(r,.04),colorFillQuaternary:ql(r,.02),colorBgSolid:ql(r,1),colorBgSolidHover:ql(r,.75),colorBgSolidActive:ql(r,.95),colorBgLayout:Rb(n,4),colorBgContainer:Rb(n,0),colorBgElevated:Rb(n,0),colorBgSpotlight:ql(r,.85),colorBgBlur:"transparent",colorBorder:Rb(n,15),colorBorderSecondary:Rb(n,6)}};function v4(e){Wm.pink=Wm.magenta,e_.pink=e_.magenta;const t=Object.keys(BL).map(n=>{const r=e[n]===Wm[n]?e_[n]:dh(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),xfe(e,{generateColorPalettes:eNe,generateNeutralColorPalettes:tNe})),Cfe(e.fontSize)),Jje(e)),Sfe(e)),Zje(e))}const _fe=fg(v4),t3={token:T0,override:{override:T0},hashed:!0},zL=te.createContext(t3),n3="ant",KE="anticon",nNe=["outlined","borderless","filled"],rNe=(e,t)=>t||(e?`${n3}-${e}`:n3),Xt=d.createContext({getPrefixCls:rNe,iconPrefixCls:KE});function Ws(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oj(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var sG="data-rc-order",lG="data-rc-priority",iNe="rc-util-key",sj=new Map;function kfe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):iNe}function GE(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function aNe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function HL(e){return Array.from((sj.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Efe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ws())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=aNe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(sG,o),s&&a&&l.setAttribute(lG,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=GE(t),u=c.firstChild;if(r){if(s){var f=(t.styles||HL(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(sG)))return!1;var h=Number(p.getAttribute(lG)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function $fe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=GE(t);return(t.styles||HL(n)).find(function(r){return r.getAttribute(kfe(t))===e})}function lj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$fe(e,t);if(n){var r=GE(t);r.removeChild(n)}}function oNe(e,t){var n=sj.get(e);if(!n||!oj(document,n)){var r=Efe("",t),i=r.parentNode;sj.set(e,i),e.removeChild(r)}}function YE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=GE(n),i=HL(r),a=q(q({},n),{},{styles:i});oNe(r,a);var o=$fe(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=Efe(e,a);return u.setAttribute(kfe(a),t),u}const sNe=`-ant-${Date.now()}-${Math.random()}`;function lNe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new ur(o),c=dh(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new ur(t.primaryColor),s=dh(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new ur(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function wfe(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),p=n(i),h=n(a),m=n(o),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,w=n(y),b=new ur(m[1]).mix(new ur(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new ur("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Yje=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Xje(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},Yje(r))}const xfe=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function e_(e){return(e+8)/e}function Zje(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:e_(n)}))}const Sfe=e=>{const t=Zje(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Qje(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Vl=(e,t)=>new ur(e).setA(t).toRgbString(),Rb=(e,t)=>new ur(e).darken(t).toHexString(),Jje=e=>{const t=dh(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},eNe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Vl(r,.88),colorTextSecondary:Vl(r,.65),colorTextTertiary:Vl(r,.45),colorTextQuaternary:Vl(r,.25),colorFill:Vl(r,.15),colorFillSecondary:Vl(r,.06),colorFillTertiary:Vl(r,.04),colorFillQuaternary:Vl(r,.02),colorBgSolid:Vl(r,1),colorBgSolidHover:Vl(r,.75),colorBgSolidActive:Vl(r,.95),colorBgLayout:Rb(n,4),colorBgContainer:Rb(n,0),colorBgElevated:Rb(n,0),colorBgSpotlight:Vl(r,.85),colorBgBlur:"transparent",colorBorder:Rb(n,15),colorBorderSecondary:Rb(n,6)}};function g4(e){Wm.pink=Wm.magenta,JC.pink=JC.magenta;const t=Object.keys(BL).map(n=>{const r=e[n]===Wm[n]?JC[n]:dh(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),wfe(e,{generateColorPalettes:Jje,generateNeutralColorPalettes:eNe})),Sfe(e.fontSize)),Qje(e)),xfe(e)),Xje(e))}const Cfe=fg(g4),t3={token:T0,override:{override:T0},hashed:!0},zL=te.createContext(t3),n3="ant",KE="anticon",tNe=["outlined","borderless","filled"],nNe=(e,t)=>t||(e?`${n3}-${e}`:n3),Xt=d.createContext({getPrefixCls:nNe,iconPrefixCls:KE});function Ws(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oj(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var sG="data-rc-order",lG="data-rc-priority",rNe="rc-util-key",sj=new Map;function _fe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):rNe}function GE(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function iNe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function HL(e){return Array.from((sj.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function kfe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ws())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=iNe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(sG,o),s&&a&&l.setAttribute(lG,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=GE(t),u=c.firstChild;if(r){if(s){var f=(t.styles||HL(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(sG)))return!1;var h=Number(p.getAttribute(lG)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Efe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=GE(t);return(t.styles||HL(n)).find(function(r){return r.getAttribute(_fe(t))===e})}function lj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Efe(e,t);if(n){var r=GE(t);r.removeChild(n)}}function aNe(e,t){var n=sj.get(e);if(!n||!oj(document,n)){var r=kfe("",t),i=r.parentNode;sj.set(e,i),e.removeChild(r)}}function YE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=GE(n),i=HL(r),a=q(q({},n),{},{styles:i});aNe(r,a);var o=Efe(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=kfe(e,a);return u.setAttribute(_fe(a),t),u}const oNe=`-ant-${Date.now()}-${Math.random()}`;function sNe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new ur(o),c=dh(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new ur(t.primaryColor),s=dh(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new ur(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(` `)} } - `.trim()}function cNe(e,t){const n=lNe(e,t);Ws()&&YE(n,`${sNe}-dynamic-theme`)}const ma=d.createContext(!1),UL=e=>{let{children:t,disabled:n}=e;const r=d.useContext(ma);return d.createElement(ma.Provider,{value:n??r},t)},hg=d.createContext(void 0),uNe=e=>{let{children:t,size:n}=e;const r=d.useContext(hg);return d.createElement(hg.Provider,{value:n||r},t)};function dNe(){const e=d.useContext(ma),t=d.useContext(hg);return{componentDisabled:e,componentSize:t}}function mg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Br(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>vNe&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),pG=new yNe;function bNe(e,t){return te.useMemo(function(){var n=pG.get(t);if(n)return n;var r=e();return pG.set(t,r),r},t)}var wNe=function(){return{}};function Ife(e){var t=e.useCSP,n=t===void 0?wNe:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(p,h,m,g){var v=Array.isArray(p)?p[0]:p;function y(E){return"".concat(String(v)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var w=(g==null?void 0:g.unitless)||{},b=typeof s=="function"?s(p):{},C=q(q({},b),{},ne({},y("zIndexPopup"),!0));Object.keys(w).forEach(function(E){C[y(E)]=w[E]});var k=q(q({},g),{},{unitless:C,prefixToken:y}),S=u(p,h,m,k),_=c(v,m,k);return function(E){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,M=S(E,$),P=Te(M,2),R=P[1],O=_($),j=Te(O,2),I=j[0],A=j[1];return[I,R,A]}}function c(p,h,m){var g=m.unitless,v=m.injectStyle,y=v===void 0?!0:v,w=m.prefixToken,b=m.ignore,C=function(_){var E=_.rootCls,$=_.cssVar,M=$===void 0?{}:$,P=r(),R=P.realToken;return ffe({path:[p],prefix:M.prefix,key:M.key,unitless:g,ignore:b,token:R,scope:E},function(){var O=fG(p,R,h),j=dG(p,R,O,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(O).forEach(function(I){j[w(I)]=j[I],delete j[I]}),j}),null},k=function(_){var E=r(),$=E.cssVar;return[function(M){return y&&$?te.createElement(te.Fragment,null,te.createElement(C,{rootCls:_,cssVar:$,component:p}),M):M},$==null?void 0:$.key]};return k}function u(p,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(p)?p:[p,p],y=Te(v,1),w=y[0],b=v.join("-"),C=e.layer||{name:"antd"};return function(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,_=r(),E=_.theme,$=_.realToken,M=_.hashId,P=_.token,R=_.cssVar,O=i(),j=O.rootPrefixCls,I=O.iconPrefixCls,A=n(),N=R?"css":"js",F=bNe(function(){var Y=new Set;return R&&Object.keys(g.unitless||{}).forEach(function(ee){Y.add(K2(ee,R.prefix)),Y.add(K2(ee,cG(w,R.prefix)))}),Pfe(N,Y)},[N,w,R==null?void 0:R.prefix]),K=gNe(N),L=K.max,V=K.min,B={theme:E,token:P,hashId:M,nonce:function(){return A.nonce},clientOnly:g.clientOnly,layer:C,order:g.order||-999};typeof a=="function"&&Qw(q(q({},B),{},{clientOnly:!1,path:["Shared",j]}),function(){return a(P,{prefix:{rootPrefixCls:j,iconPrefixCls:I},csp:A})});var U=Qw(q(q({},B),{},{path:[b,k,I]}),function(){if(g.injectStyle===!1)return[];var Y=Rfe(P),ee=Y.token,ie=Y.flush,Z=fG(w,$,m),X=".".concat(k),ae=dG(w,$,Z,{deprecatedTokens:g.deprecatedTokens});R&&Z&&Kt(Z)==="object"&&Object.keys(Z).forEach(function(pe){Z[pe]="var(".concat(K2(pe,cG(w,R.prefix)),")")});var oe=Hn(ee,{componentCls:X,prefixCls:k,iconCls:".".concat(I),antCls:".".concat(j),calc:F,max:L,min:V},R?Z:ae),le=h(oe,{hashId:M,prefixCls:k,rootPrefixCls:j,iconPrefixCls:I});ie(w,ae);var ce=typeof o=="function"?o(oe,k,S,g.resetFont):null;return[g.resetStyle===!1?null:ce,le]});return[U,M]}}function f(p,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(p,h,m,q({resetStyle:!1,order:-998},g)),y=function(b){var C=b.prefixCls,k=b.rootCls,S=k===void 0?C:k;return v(C,S),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const xNe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:Pfe,genStyleUtils:Ife,mergeToken:Hn,statistic:uj,statisticToken:Rfe},Symbol.toStringTag,{value:"Module"})),vg=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],If="5.23.2";function y9(e){return e>=0&&e<=255}function fS(e,t){const{r:n,g:r,b:i,a}=new ur(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new ur(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(y9(u)&&y9(f)&&y9(p))return new ur({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new ur({r:n,g:r,b:i,a:1}).toRgbString()}var SNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:fS(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:fS(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:fS(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:fS(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + `.trim()}function lNe(e,t){const n=sNe(e,t);Ws()&&YE(n,`${oNe}-dynamic-theme`)}const ma=d.createContext(!1),UL=e=>{let{children:t,disabled:n}=e;const r=d.useContext(ma);return d.createElement(ma.Provider,{value:n??r},t)},hg=d.createContext(void 0),cNe=e=>{let{children:t,size:n}=e;const r=d.useContext(hg);return d.createElement(hg.Provider,{value:n||r},t)};function uNe(){const e=d.useContext(ma),t=d.useContext(hg);return{componentDisabled:e,componentSize:t}}function mg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Br(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>gNe&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),pG=new vNe;function yNe(e,t){return te.useMemo(function(){var n=pG.get(t);if(n)return n;var r=e();return pG.set(t,r),r},t)}var bNe=function(){return{}};function Rfe(e){var t=e.useCSP,n=t===void 0?bNe:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(p,h,m,g){var v=Array.isArray(p)?p[0]:p;function y(E){return"".concat(String(v)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var w=(g==null?void 0:g.unitless)||{},b=typeof s=="function"?s(p):{},C=q(q({},b),{},ne({},y("zIndexPopup"),!0));Object.keys(w).forEach(function(E){C[y(E)]=w[E]});var k=q(q({},g),{},{unitless:C,prefixToken:y}),S=u(p,h,m,k),_=c(v,m,k);return function(E){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,M=S(E,$),P=Te(M,2),R=P[1],O=_($),j=Te(O,2),I=j[0],A=j[1];return[I,R,A]}}function c(p,h,m){var g=m.unitless,v=m.injectStyle,y=v===void 0?!0:v,w=m.prefixToken,b=m.ignore,C=function(_){var E=_.rootCls,$=_.cssVar,M=$===void 0?{}:$,P=r(),R=P.realToken;return dfe({path:[p],prefix:M.prefix,key:M.key,unitless:g,ignore:b,token:R,scope:E},function(){var O=fG(p,R,h),j=dG(p,R,O,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(O).forEach(function(I){j[w(I)]=j[I],delete j[I]}),j}),null},k=function(_){var E=r(),$=E.cssVar;return[function(M){return y&&$?te.createElement(te.Fragment,null,te.createElement(C,{rootCls:_,cssVar:$,component:p}),M):M},$==null?void 0:$.key]};return k}function u(p,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(p)?p:[p,p],y=Te(v,1),w=y[0],b=v.join("-"),C=e.layer||{name:"antd"};return function(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,_=r(),E=_.theme,$=_.realToken,M=_.hashId,P=_.token,R=_.cssVar,O=i(),j=O.rootPrefixCls,I=O.iconPrefixCls,A=n(),N=R?"css":"js",F=yNe(function(){var Y=new Set;return R&&Object.keys(g.unitless||{}).forEach(function(ee){Y.add(K2(ee,R.prefix)),Y.add(K2(ee,cG(w,R.prefix)))}),Tfe(N,Y)},[N,w,R==null?void 0:R.prefix]),K=mNe(N),L=K.max,V=K.min,B={theme:E,token:P,hashId:M,nonce:function(){return A.nonce},clientOnly:g.clientOnly,layer:C,order:g.order||-999};typeof a=="function"&&Qw(q(q({},B),{},{clientOnly:!1,path:["Shared",j]}),function(){return a(P,{prefix:{rootPrefixCls:j,iconPrefixCls:I},csp:A})});var U=Qw(q(q({},B),{},{path:[b,k,I]}),function(){if(g.injectStyle===!1)return[];var Y=Ofe(P),ee=Y.token,ie=Y.flush,Z=fG(w,$,m),X=".".concat(k),ae=dG(w,$,Z,{deprecatedTokens:g.deprecatedTokens});R&&Z&&Kt(Z)==="object"&&Object.keys(Z).forEach(function(pe){Z[pe]="var(".concat(K2(pe,cG(w,R.prefix)),")")});var oe=Hn(ee,{componentCls:X,prefixCls:k,iconCls:".".concat(I),antCls:".".concat(j),calc:F,max:L,min:V},R?Z:ae),le=h(oe,{hashId:M,prefixCls:k,rootPrefixCls:j,iconPrefixCls:I});ie(w,ae);var ce=typeof o=="function"?o(oe,k,S,g.resetFont):null;return[g.resetStyle===!1?null:ce,le]});return[U,M]}}function f(p,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(p,h,m,q({resetStyle:!1,order:-998},g)),y=function(b){var C=b.prefixCls,k=b.rootCls,S=k===void 0?C:k;return v(C,S),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const wNe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:Tfe,genStyleUtils:Rfe,mergeToken:Hn,statistic:uj,statisticToken:Ofe},Symbol.toStringTag,{value:"Module"})),vg=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],If="5.23.2";function y9(e){return e>=0&&e<=255}function dS(e,t){const{r:n,g:r,b:i,a}=new ur(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new ur(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(y9(u)&&y9(f)&&y9(p))return new ur({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new ur({r:n,g:r,b:i,a:1}).toRgbString()}var xNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:dS(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:dS(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:dS(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:dS(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -134,7 +134,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var hG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=hG(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=WL(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=hG(c,["theme"]);let p=f;u&&(p=Nfe(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=p}),o};function ka(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=te.useContext(zL),a=`${If}-${t||""}`,o=n||_fe,[s,l,c]=NL(o,[T0,e],{salt:a,override:r,getComputedToken:Nfe,formatToken:WL,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:jfe,ignore:CNe,preserve:_Ne}});return[o,c,t?l:"",s,i]}const ao={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ar=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},wh=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),vd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),kNe=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ENe=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},yc=(e,t)=>({outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Vs=(e,t)=>({"&:focus-visible":Object.assign({},yc(e,t))}),Afe=e=>({[`.${e}`]:Object.assign(Object.assign({},wh()),{[`.${e} .${e}-icon`]:{display:"block"}})}),VL=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Vs(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Jn,genComponentStyleHook:Dfe,genSubStyleComponent:Sy}=Ife({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Xt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=ka();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=d.useContext(Xt);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":kNe(e)},Afe((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:KE)]},getCommonStyle:ENe,getCompUnitless:()=>jfe});function XE(e,t){return vg.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const $Ne=(e,t)=>{const[n,r]=ka();return Qw({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[Afe(e)])},MNe=Object.assign({},Qm),{useId:mG}=MNe,TNe=()=>"",PNe=typeof mG>"u"?TNe:mG;function ONe(e,t,n){var r;Hg();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},t3),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:t3.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=PNe();return ug(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!mg(c,f,!0)}))}var RNe=["children"],Ffe=d.createContext({});function Lfe(e){var t=e.children,n=Ht(e,RNe);return d.createElement(Ffe.Provider,{value:n},t)}var INe=function(e){$o(n,e);var t=rs(n);function n(){return Ar(this,n),t.apply(this,arguments)}return Dr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function jNe(e){var t=d.useReducer(function(s){return s+1},0),n=Te(t,2),r=n[1],i=d.useRef(e),a=Vn(function(){return i.current}),o=Vn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var gp="none",pS="appear",hS="enter",mS="leave",gG="none",Yc="prepare",vv="start",yv="active",qL="end",Bfe="prepared";function vG(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function NNe(e,t){var n={animationend:vG("Animation","AnimationEnd"),transitionend:vG("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ANe=NNe(Ws(),typeof window<"u"?window:{}),zfe={};if(Ws()){var DNe=document.createElement("div");zfe=DNe.style}var gS={};function Hfe(e){if(gS[e])return gS[e];var t=ANe[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var a=rr(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var BNe=[Yc,vv,yv,qL],zNe=[Yc,Bfe],Kfe=!1,HNe=!0;function Gfe(e){return e===yv||e===qL}const UNe=function(e,t,n){var r=gg(gG),i=Te(r,2),a=i[0],o=i[1],s=LNe(),l=Te(s,2),c=l[0],u=l[1];function f(){o(Yc,!0)}var p=t?zNe:BNe;return qfe(function(){if(a!==gG&&a!==qL){var h=p.indexOf(a),m=p[h+1],g=n(a);g===Kfe?o(m,!0):m&&c(function(v){function y(){v.isCanceled()||o(m,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]};function WNe(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,h=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,w=r.onAppearActive,b=r.onEnterActive,C=r.onLeaveActive,k=r.onAppearEnd,S=r.onEnterEnd,_=r.onLeaveEnd,E=r.onVisibleChanged,$=gg(),M=Te($,2),P=M[0],R=M[1],O=jNe(gp),j=Te(O,2),I=j[0],A=j[1],N=gg(null),F=Te(N,2),K=F[0],L=F[1],V=I(),B=d.useRef(!1),U=d.useRef(null);function Y(){return n()}var ee=d.useRef(!1);function ie(){A(gp),L(null,!0)}var Z=Vn(function(Se){var we=I();if(we!==gp){var se=Y();if(!(Se&&!Se.deadline&&Se.target!==se)){var ye=ee.current,Oe;we===pS&&ye?Oe=k==null?void 0:k(se,Se):we===hS&&ye?Oe=S==null?void 0:S(se,Se):we===mS&&ye&&(Oe=_==null?void 0:_(se,Se)),ye&&Oe!==!1&&ie()}}}),X=FNe(Z),ae=Te(X,1),oe=ae[0],le=function(we){switch(we){case pS:return ne(ne(ne({},Yc,p),vv,g),yv,w);case hS:return ne(ne(ne({},Yc,h),vv,v),yv,b);case mS:return ne(ne(ne({},Yc,m),vv,y),yv,C);default:return{}}},ce=d.useMemo(function(){return le(V)},[V]),pe=UNe(V,!e,function(Se){if(Se===Yc){var we=ce[Yc];return we?we(Y()):Kfe}if(fe in ce){var se;L(((se=ce[fe])===null||se===void 0?void 0:se.call(ce,Y(),null))||null)}return fe===yv&&V!==gp&&(oe(Y()),u>0&&(clearTimeout(U.current),U.current=setTimeout(function(){Z({deadline:!0})},u))),fe===Bfe&&ie(),HNe}),me=Te(pe,2),re=me[0],fe=me[1],ve=Gfe(fe);ee.current=ve;var $e=d.useRef(null);qfe(function(){if(!(B.current&&$e.current===t)){R(t);var Se=B.current;B.current=!0;var we;!Se&&t&&s&&(we=pS),Se&&t&&a&&(we=hS),(Se&&!t&&c||!Se&&f&&!t&&c)&&(we=mS);var se=le(we);we&&(e||se[Yc])?(A(we),re()):A(gp),$e.current=t}},[t]),d.useEffect(function(){(V===pS&&!s||V===hS&&!a||V===mS&&!c)&&A(gp)},[s,a,c]),d.useEffect(function(){return function(){B.current=!1,clearTimeout(U.current)}},[]);var Ce=d.useRef(!1);d.useEffect(function(){P&&(Ce.current=!0),P!==void 0&&V===gp&&((Ce.current||P)&&(E==null||E(P)),Ce.current=!0)},[P,V]);var be=K;return ce[Yc]&&fe===vv&&(be=q({transition:"none"},be)),[V,fe,be,P??t]}function VNe(e){var t=e;Kt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=d.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,p=i.motionName,h=i.leavedClassName,m=i.eventProps,g=d.useContext(Ffe),v=g.motion,y=n(i,v),w=d.useRef(),b=d.useRef();function C(){try{return w.current instanceof HTMLElement?w.current:V2(b.current)}catch{return null}}var k=WNe(y,s,C,i),S=Te(k,4),_=S[0],E=S[1],$=S[2],M=S[3],P=d.useRef(M);M&&(P.current=!0);var R=d.useCallback(function(F){w.current=F,kL(a,F)},[a]),O,j=q(q({},m),{},{visible:s});if(!f)O=null;else if(_===gp)M?O=f(q({},j),R):!c&&P.current&&h?O=f(q(q({},j),{},{className:h}),R):u||!c&&!h?O=f(q(q({},j),{},{style:{display:"none"}}),R):O=null;else{var I;E===Yc?I="prepare":Gfe(E)?I="active":E===vv&&(I="start");var A=wG(p,"".concat(_,"-").concat(I));O=f(q(q({},j),{},{className:Ee(wG(p,_),ne(ne({},A,A&&I),p,typeof p=="string")),style:$}),R)}if(d.isValidElement(O)&&Vf(O)){var N=bh(O);N||(O=d.cloneElement(O,{ref:R}))}return d.createElement(INe,{ref:b},O)});return r.displayName="CSSMotion",r}const Ca=VNe(Vfe);var dj="add",fj="keep",pj="remove",b9="removed";function qNe(e){var t;return e&&Kt(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function hj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(qNe)}function KNe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=hj(e),o=hj(t);a.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==pj}),n.forEach(function(u){u.key===c&&(u.status=fj)})}),n}var GNe=["component","children","onVisibleChanged","onAllRemoved"],YNe=["status"],XNe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ZNe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ca,n=function(r){$o(a,r);var i=rs(a);function a(){var o;Ar(this,a);for(var s=arguments.length,l=new Array(s),c=0;cnull;var tAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const aAe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(p6=t),n!==void 0&&(Yfe=n),"holderRender"in e&&(Zfe=i),r&&(iAe(r)?cNe(n_(),r):Xfe=r)},Qfe=()=>({getPrefixCls:(e,t)=>t||(e?`${n_()}-${e}`:n_()),getIconPrefixCls:rAe,getRootPrefixCls:()=>p6||n_(),getTheme:()=>Xfe,holderRender:Zfe}),oAe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:w,theme:b,componentDisabled:C,segmented:k,statistic:S,spin:_,calendar:E,carousel:$,cascader:M,collapse:P,typography:R,checkbox:O,descriptions:j,divider:I,drawer:A,skeleton:N,steps:F,image:K,layout:L,list:V,mentions:B,modal:U,progress:Y,result:ee,slider:ie,breadcrumb:Z,menu:X,pagination:ae,input:oe,textArea:le,empty:ce,badge:pe,radio:me,rate:re,switch:fe,transfer:ve,avatar:$e,message:Ce,tag:be,table:Se,card:we,tabs:se,timeline:ye,timePicker:Oe,upload:z,notification:H,tree:G,colorPicker:de,datePicker:xe,rangePicker:he,flex:Ue,wave:We,dropdown:ge,warning:ze,tour:Ve,tooltip:Be,popover:Xe,popconfirm:Ke,floatButtonGroup:qe,variant:Et,inputNumber:ut,treeSelect:gt}=e,Qe=d.useCallback((xt,Nt)=>{const{prefixCls:Ot}=e;if(Nt)return Nt;const Pt=Ot||y.getPrefixCls("");return xt?`${Pt}-${xt}`:Pt},[y.getPrefixCls,e.prefixCls]),nt=w||y.iconPrefixCls||KE,jt=n||y.csp;$Ne(nt,jt);const Lt=ONe(b,y.theme,{prefixCls:Qe("")}),Bt={csp:jt,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||v,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:m??h,popupOverflow:g,getPrefixCls:Qe,iconPrefixCls:nt,theme:Lt,segmented:k,statistic:S,spin:_,calendar:E,carousel:$,cascader:M,collapse:P,typography:R,checkbox:O,descriptions:j,divider:I,drawer:A,skeleton:N,steps:F,image:K,input:oe,textArea:le,layout:L,list:V,mentions:B,modal:U,progress:Y,result:ee,slider:ie,breadcrumb:Z,menu:X,pagination:ae,empty:ce,badge:pe,radio:me,rate:re,switch:fe,transfer:ve,avatar:$e,message:Ce,tag:be,table:Se,card:we,tabs:se,timeline:ye,timePicker:Oe,upload:z,notification:H,tree:G,colorPicker:de,datePicker:xe,rangePicker:he,flex:Ue,wave:We,dropdown:ge,warning:ze,tour:Ve,tooltip:Be,popover:Xe,popconfirm:Ke,floatButtonGroup:qe,variant:Et,inputNumber:ut,treeSelect:gt},Ut=Object.assign({},y);Object.keys(Bt).forEach(xt=>{Bt[xt]!==void 0&&(Ut[xt]=Bt[xt])}),nAe.forEach(xt=>{const Nt=e[xt];Nt&&(Ut[xt]=Nt)}),typeof r<"u"&&(Ut.button=Object.assign({autoInsertSpace:r},Ut.button));const Ne=ug(()=>Ut,Ut,(xt,Nt)=>{const Ot=Object.keys(xt),Pt=Object.keys(Nt);return Ot.length!==Pt.length||Ot.some(st=>xt[st]!==Nt[st])}),He=d.useMemo(()=>({prefixCls:nt,csp:jt}),[nt,jt]);let Le=d.createElement(d.Fragment,null,d.createElement(eAe,{dropdownMatchSelectWidth:h}),t);const Je=d.useMemo(()=>{var xt,Nt,Ot,Pt;return gv(((xt=Us.Form)===null||xt===void 0?void 0:xt.defaultValidateMessages)||{},((Ot=(Nt=Ne.locale)===null||Nt===void 0?void 0:Nt.Form)===null||Ot===void 0?void 0:Ot.defaultValidateMessages)||{},((Pt=Ne.form)===null||Pt===void 0?void 0:Pt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[Ne,o==null?void 0:o.validateMessages]);Object.keys(Je).length>0&&(Le=d.createElement(hfe.Provider,{value:Je},Le)),s&&(Le=d.createElement(zje,{locale:s,_ANT_MARK__:Bje},Le)),(nt||jt)&&(Le=d.createElement(qE.Provider,{value:He},Le)),l&&(Le=d.createElement(uNe,{size:l},Le)),Le=d.createElement(JNe,null,Le);const pt=d.useMemo(()=>{const xt=Lt||{},{algorithm:Nt,token:Ot,components:Pt,cssVar:st}=xt,Ct=tAe(xt,["algorithm","token","components","cssVar"]),kt=Nt&&(!Array.isArray(Nt)||Nt.length>0)?fg(Nt):_fe,qt={};Object.entries(Pt||{}).forEach(At=>{let[dt,De]=At;const Ye=Object.assign({},De);"algorithm"in Ye&&(Ye.algorithm===!0?Ye.theme=kt:(Array.isArray(Ye.algorithm)||typeof Ye.algorithm=="function")&&(Ye.theme=fg(Ye.algorithm)),delete Ye.algorithm),qt[dt]=Ye});const vt=Object.assign(Object.assign({},T0),Ot);return Object.assign(Object.assign({},Ct),{theme:kt,token:vt,components:qt,override:Object.assign({override:vt},qt),cssVar:st})},[Lt]);return b&&(Le=d.createElement(zL.Provider,{value:pt},Le)),Ne.warning&&(Le=d.createElement(Dje.Provider,{value:Ne.warning},Le)),C!==void 0&&(Le=d.createElement(UL,{disabled:C},Le)),d.createElement(Xt.Provider,{value:Ne},Le)},zn=e=>{const t=d.useContext(Xt),n=d.useContext(LL);return d.createElement(oAe,Object.assign({parentContext:t,legacyLocale:n},e))};zn.ConfigContext=Xt;zn.SizeContext=hg;zn.config=aAe;zn.useConfig=dNe;Object.defineProperty(zn,"SizeContext",{get:()=>hg});var sAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Jfe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function lAe(e){return Jfe(e)instanceof ShadowRoot}function h6(e){return lAe(e)?Jfe(e):null}function cAe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function mj(e,t){Br(e,"[@ant-design/icons] ".concat(t))}function xG(e){return Kt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Kt(e.icon)==="object"||typeof e.icon=="function")}function SG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[cAe(n)]=r}return t},{})}function gj(e,t,n){return n?te.createElement(e.tag,q(q({key:t},SG(e.attrs)),n),(e.children||[]).map(function(r,i){return gj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):te.createElement(e.tag,q({key:t},SG(e.attrs)),(e.children||[]).map(function(r,i){return gj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function epe(e){return dh(e)[0]}function tpe(e){return e?Array.isArray(e)?e:[e]:[]}var uAe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},dAe=` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var hG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=hG(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=WL(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=hG(c,["theme"]);let p=f;u&&(p=jfe(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=p}),o};function ka(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=te.useContext(zL),a=`${If}-${t||""}`,o=n||Cfe,[s,l,c]=NL(o,[T0,e],{salt:a,override:r,getComputedToken:jfe,formatToken:WL,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Ife,ignore:SNe,preserve:CNe}});return[o,c,t?l:"",s,i]}const ao={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ar=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},wh=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),vd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),_Ne=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),kNe=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},yc=(e,t)=>({outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Vs=(e,t)=>({"&:focus-visible":Object.assign({},yc(e,t))}),Nfe=e=>({[`.${e}`]:Object.assign(Object.assign({},wh()),{[`.${e} .${e}-icon`]:{display:"block"}})}),VL=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Vs(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Jn,genComponentStyleHook:Afe,genSubStyleComponent:Sy}=Rfe({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Xt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=ka();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=d.useContext(Xt);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":_Ne(e)},Nfe((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:KE)]},getCommonStyle:kNe,getCompUnitless:()=>Ife});function XE(e,t){return vg.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const ENe=(e,t)=>{const[n,r]=ka();return Qw({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[Nfe(e)])},$Ne=Object.assign({},Qm),{useId:mG}=$Ne,MNe=()=>"",TNe=typeof mG>"u"?MNe:mG;function PNe(e,t,n){var r;Hg();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},t3),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:t3.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=TNe();return ug(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!mg(c,f,!0)}))}var ONe=["children"],Dfe=d.createContext({});function Ffe(e){var t=e.children,n=Ht(e,ONe);return d.createElement(Dfe.Provider,{value:n},t)}var RNe=function(e){$o(n,e);var t=ns(n);function n(){return Ar(this,n),t.apply(this,arguments)}return Dr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function INe(e){var t=d.useReducer(function(s){return s+1},0),n=Te(t,2),r=n[1],i=d.useRef(e),a=Vn(function(){return i.current}),o=Vn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var gp="none",fS="appear",pS="enter",hS="leave",gG="none",Yc="prepare",vv="start",yv="active",qL="end",Lfe="prepared";function vG(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function jNe(e,t){var n={animationend:vG("Animation","AnimationEnd"),transitionend:vG("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var NNe=jNe(Ws(),typeof window<"u"?window:{}),Bfe={};if(Ws()){var ANe=document.createElement("div");Bfe=ANe.style}var mS={};function zfe(e){if(mS[e])return mS[e];var t=NNe[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var a=rr(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var LNe=[Yc,vv,yv,qL],BNe=[Yc,Lfe],qfe=!1,zNe=!0;function Kfe(e){return e===yv||e===qL}const HNe=function(e,t,n){var r=gg(gG),i=Te(r,2),a=i[0],o=i[1],s=FNe(),l=Te(s,2),c=l[0],u=l[1];function f(){o(Yc,!0)}var p=t?BNe:LNe;return Vfe(function(){if(a!==gG&&a!==qL){var h=p.indexOf(a),m=p[h+1],g=n(a);g===qfe?o(m,!0):m&&c(function(v){function y(){v.isCanceled()||o(m,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]};function UNe(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,h=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,w=r.onAppearActive,b=r.onEnterActive,C=r.onLeaveActive,k=r.onAppearEnd,S=r.onEnterEnd,_=r.onLeaveEnd,E=r.onVisibleChanged,$=gg(),M=Te($,2),P=M[0],R=M[1],O=INe(gp),j=Te(O,2),I=j[0],A=j[1],N=gg(null),F=Te(N,2),K=F[0],L=F[1],V=I(),B=d.useRef(!1),U=d.useRef(null);function Y(){return n()}var ee=d.useRef(!1);function ie(){A(gp),L(null,!0)}var Z=Vn(function(Se){var we=I();if(we!==gp){var se=Y();if(!(Se&&!Se.deadline&&Se.target!==se)){var ye=ee.current,Oe;we===fS&&ye?Oe=k==null?void 0:k(se,Se):we===pS&&ye?Oe=S==null?void 0:S(se,Se):we===hS&&ye&&(Oe=_==null?void 0:_(se,Se)),ye&&Oe!==!1&&ie()}}}),X=DNe(Z),ae=Te(X,1),oe=ae[0],le=function(we){switch(we){case fS:return ne(ne(ne({},Yc,p),vv,g),yv,w);case pS:return ne(ne(ne({},Yc,h),vv,v),yv,b);case hS:return ne(ne(ne({},Yc,m),vv,y),yv,C);default:return{}}},ce=d.useMemo(function(){return le(V)},[V]),pe=HNe(V,!e,function(Se){if(Se===Yc){var we=ce[Yc];return we?we(Y()):qfe}if(fe in ce){var se;L(((se=ce[fe])===null||se===void 0?void 0:se.call(ce,Y(),null))||null)}return fe===yv&&V!==gp&&(oe(Y()),u>0&&(clearTimeout(U.current),U.current=setTimeout(function(){Z({deadline:!0})},u))),fe===Lfe&&ie(),zNe}),me=Te(pe,2),re=me[0],fe=me[1],ve=Kfe(fe);ee.current=ve;var $e=d.useRef(null);Vfe(function(){if(!(B.current&&$e.current===t)){R(t);var Se=B.current;B.current=!0;var we;!Se&&t&&s&&(we=fS),Se&&t&&a&&(we=pS),(Se&&!t&&c||!Se&&f&&!t&&c)&&(we=hS);var se=le(we);we&&(e||se[Yc])?(A(we),re()):A(gp),$e.current=t}},[t]),d.useEffect(function(){(V===fS&&!s||V===pS&&!a||V===hS&&!c)&&A(gp)},[s,a,c]),d.useEffect(function(){return function(){B.current=!1,clearTimeout(U.current)}},[]);var Ce=d.useRef(!1);d.useEffect(function(){P&&(Ce.current=!0),P!==void 0&&V===gp&&((Ce.current||P)&&(E==null||E(P)),Ce.current=!0)},[P,V]);var be=K;return ce[Yc]&&fe===vv&&(be=q({transition:"none"},be)),[V,fe,be,P??t]}function WNe(e){var t=e;Kt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=d.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,p=i.motionName,h=i.leavedClassName,m=i.eventProps,g=d.useContext(Dfe),v=g.motion,y=n(i,v),w=d.useRef(),b=d.useRef();function C(){try{return w.current instanceof HTMLElement?w.current:V2(b.current)}catch{return null}}var k=UNe(y,s,C,i),S=Te(k,4),_=S[0],E=S[1],$=S[2],M=S[3],P=d.useRef(M);M&&(P.current=!0);var R=d.useCallback(function(F){w.current=F,kL(a,F)},[a]),O,j=q(q({},m),{},{visible:s});if(!f)O=null;else if(_===gp)M?O=f(q({},j),R):!c&&P.current&&h?O=f(q(q({},j),{},{className:h}),R):u||!c&&!h?O=f(q(q({},j),{},{style:{display:"none"}}),R):O=null;else{var I;E===Yc?I="prepare":Kfe(E)?I="active":E===vv&&(I="start");var A=wG(p,"".concat(_,"-").concat(I));O=f(q(q({},j),{},{className:Ee(wG(p,_),ne(ne({},A,A&&I),p,typeof p=="string")),style:$}),R)}if(d.isValidElement(O)&&Vf(O)){var N=bh(O);N||(O=d.cloneElement(O,{ref:R}))}return d.createElement(RNe,{ref:b},O)});return r.displayName="CSSMotion",r}const Ca=WNe(Wfe);var dj="add",fj="keep",pj="remove",b9="removed";function VNe(e){var t;return e&&Kt(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function hj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(VNe)}function qNe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=hj(e),o=hj(t);a.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==pj}),n.forEach(function(u){u.key===c&&(u.status=fj)})}),n}var KNe=["component","children","onVisibleChanged","onAllRemoved"],GNe=["status"],YNe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function XNe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ca,n=function(r){$o(a,r);var i=ns(a);function a(){var o;Ar(this,a);for(var s=arguments.length,l=new Array(s),c=0;cnull;var eAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const iAe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(f6=t),n!==void 0&&(Gfe=n),"holderRender"in e&&(Xfe=i),r&&(rAe(r)?lNe(t_(),r):Yfe=r)},Zfe=()=>({getPrefixCls:(e,t)=>t||(e?`${t_()}-${e}`:t_()),getIconPrefixCls:nAe,getRootPrefixCls:()=>f6||t_(),getTheme:()=>Yfe,holderRender:Xfe}),aAe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:w,theme:b,componentDisabled:C,segmented:k,statistic:S,spin:_,calendar:E,carousel:$,cascader:M,collapse:P,typography:R,checkbox:O,descriptions:j,divider:I,drawer:A,skeleton:N,steps:F,image:K,layout:L,list:V,mentions:B,modal:U,progress:Y,result:ee,slider:ie,breadcrumb:Z,menu:X,pagination:ae,input:oe,textArea:le,empty:ce,badge:pe,radio:me,rate:re,switch:fe,transfer:ve,avatar:$e,message:Ce,tag:be,table:Se,card:we,tabs:se,timeline:ye,timePicker:Oe,upload:z,notification:H,tree:G,colorPicker:de,datePicker:xe,rangePicker:he,flex:Ue,wave:We,dropdown:ge,warning:ze,tour:Ve,tooltip:Be,popover:Xe,popconfirm:Ke,floatButtonGroup:qe,variant:Et,inputNumber:ut,treeSelect:gt}=e,Qe=d.useCallback((xt,Nt)=>{const{prefixCls:Ot}=e;if(Nt)return Nt;const Pt=Ot||y.getPrefixCls("");return xt?`${Pt}-${xt}`:Pt},[y.getPrefixCls,e.prefixCls]),nt=w||y.iconPrefixCls||KE,jt=n||y.csp;ENe(nt,jt);const Lt=PNe(b,y.theme,{prefixCls:Qe("")}),Bt={csp:jt,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||v,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:m??h,popupOverflow:g,getPrefixCls:Qe,iconPrefixCls:nt,theme:Lt,segmented:k,statistic:S,spin:_,calendar:E,carousel:$,cascader:M,collapse:P,typography:R,checkbox:O,descriptions:j,divider:I,drawer:A,skeleton:N,steps:F,image:K,input:oe,textArea:le,layout:L,list:V,mentions:B,modal:U,progress:Y,result:ee,slider:ie,breadcrumb:Z,menu:X,pagination:ae,empty:ce,badge:pe,radio:me,rate:re,switch:fe,transfer:ve,avatar:$e,message:Ce,tag:be,table:Se,card:we,tabs:se,timeline:ye,timePicker:Oe,upload:z,notification:H,tree:G,colorPicker:de,datePicker:xe,rangePicker:he,flex:Ue,wave:We,dropdown:ge,warning:ze,tour:Ve,tooltip:Be,popover:Xe,popconfirm:Ke,floatButtonGroup:qe,variant:Et,inputNumber:ut,treeSelect:gt},Ut=Object.assign({},y);Object.keys(Bt).forEach(xt=>{Bt[xt]!==void 0&&(Ut[xt]=Bt[xt])}),tAe.forEach(xt=>{const Nt=e[xt];Nt&&(Ut[xt]=Nt)}),typeof r<"u"&&(Ut.button=Object.assign({autoInsertSpace:r},Ut.button));const Ne=ug(()=>Ut,Ut,(xt,Nt)=>{const Ot=Object.keys(xt),Pt=Object.keys(Nt);return Ot.length!==Pt.length||Ot.some(st=>xt[st]!==Nt[st])}),He=d.useMemo(()=>({prefixCls:nt,csp:jt}),[nt,jt]);let Le=d.createElement(d.Fragment,null,d.createElement(JNe,{dropdownMatchSelectWidth:h}),t);const Je=d.useMemo(()=>{var xt,Nt,Ot,Pt;return gv(((xt=Us.Form)===null||xt===void 0?void 0:xt.defaultValidateMessages)||{},((Ot=(Nt=Ne.locale)===null||Nt===void 0?void 0:Nt.Form)===null||Ot===void 0?void 0:Ot.defaultValidateMessages)||{},((Pt=Ne.form)===null||Pt===void 0?void 0:Pt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[Ne,o==null?void 0:o.validateMessages]);Object.keys(Je).length>0&&(Le=d.createElement(pfe.Provider,{value:Je},Le)),s&&(Le=d.createElement(Bje,{locale:s,_ANT_MARK__:Lje},Le)),(nt||jt)&&(Le=d.createElement(qE.Provider,{value:He},Le)),l&&(Le=d.createElement(cNe,{size:l},Le)),Le=d.createElement(QNe,null,Le);const pt=d.useMemo(()=>{const xt=Lt||{},{algorithm:Nt,token:Ot,components:Pt,cssVar:st}=xt,Ct=eAe(xt,["algorithm","token","components","cssVar"]),kt=Nt&&(!Array.isArray(Nt)||Nt.length>0)?fg(Nt):Cfe,qt={};Object.entries(Pt||{}).forEach(At=>{let[dt,De]=At;const Ye=Object.assign({},De);"algorithm"in Ye&&(Ye.algorithm===!0?Ye.theme=kt:(Array.isArray(Ye.algorithm)||typeof Ye.algorithm=="function")&&(Ye.theme=fg(Ye.algorithm)),delete Ye.algorithm),qt[dt]=Ye});const vt=Object.assign(Object.assign({},T0),Ot);return Object.assign(Object.assign({},Ct),{theme:kt,token:vt,components:qt,override:Object.assign({override:vt},qt),cssVar:st})},[Lt]);return b&&(Le=d.createElement(zL.Provider,{value:pt},Le)),Ne.warning&&(Le=d.createElement(Aje.Provider,{value:Ne.warning},Le)),C!==void 0&&(Le=d.createElement(UL,{disabled:C},Le)),d.createElement(Xt.Provider,{value:Ne},Le)},zn=e=>{const t=d.useContext(Xt),n=d.useContext(LL);return d.createElement(aAe,Object.assign({parentContext:t,legacyLocale:n},e))};zn.ConfigContext=Xt;zn.SizeContext=hg;zn.config=iAe;zn.useConfig=uNe;Object.defineProperty(zn,"SizeContext",{get:()=>hg});var oAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Qfe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function sAe(e){return Qfe(e)instanceof ShadowRoot}function p6(e){return sAe(e)?Qfe(e):null}function lAe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function mj(e,t){Br(e,"[@ant-design/icons] ".concat(t))}function xG(e){return Kt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Kt(e.icon)==="object"||typeof e.icon=="function")}function SG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[lAe(n)]=r}return t},{})}function gj(e,t,n){return n?te.createElement(e.tag,q(q({key:t},SG(e.attrs)),n),(e.children||[]).map(function(r,i){return gj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):te.createElement(e.tag,q({key:t},SG(e.attrs)),(e.children||[]).map(function(r,i){return gj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Jfe(e){return dh(e)[0]}function epe(e){return e?Array.isArray(e)?e:[e]:[]}var cAe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},uAe=` .anticon { display: inline-flex; align-items: center; @@ -189,9 +189,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,npe=function(t){var n=d.useContext(qE),r=n.csp,i=n.prefixCls,a=n.layer,o=dAe;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { +`,tpe=function(t){var n=d.useContext(qE),r=n.csp,i=n.prefixCls,a=n.layer,o=uAe;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { `).concat(o,` -}`)),d.useEffect(function(){var s=t.current,l=h6(s);YE(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])},fAe=["icon","className","onClick","style","primaryColor","secondaryColor"],Y2={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function pAe(e){var t=e.primaryColor,n=e.secondaryColor;Y2.primaryColor=t,Y2.secondaryColor=n||epe(t),Y2.calculated=!!n}function hAe(){return q({},Y2)}var Cy=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=Ht(t,fAe),c=d.useRef(),u=Y2;if(o&&(u={primaryColor:o,secondaryColor:s||epe(o)}),npe(c),mj(xG(n),"icon should be icon definiton, but got ".concat(n)),!xG(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=q(q({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),gj(f.icon,"svg-".concat(f.name),q(q({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Cy.displayName="IconReact";Cy.getTwoToneColors=hAe;Cy.setTwoToneColors=pAe;function rpe(e){var t=tpe(e),n=Te(t,2),r=n[0],i=n[1];return Cy.setTwoToneColors({primaryColor:r,secondaryColor:i})}function mAe(){var e=Cy.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var gAe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];rpe(pg.primary);var Nn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Ht(e,gAe),u=d.useContext(qE),f=u.prefixCls,p=f===void 0?"anticon":f,h=u.rootClassName,m=Ee(h,p,ne(ne({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=tpe(l),w=Te(y,2),b=w[0],C=w[1];return d.createElement("span",tt({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),d.createElement(Cy,{icon:r,primaryColor:b,secondaryColor:C,style:v}))});Nn.displayName="AntdIcon";Nn.getTwoToneColor=mAe;Nn.setTwoToneColor=rpe;var vAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:sAe}))},Ug=d.forwardRef(vAe),yAe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},bAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:yAe}))},Pd=d.forwardRef(bAe),wAe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},xAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:wAe}))},Eu=d.forwardRef(xAe),SAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},CAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:SAe}))},qf=d.forwardRef(CAe),_Ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},kAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:_Ae}))},QE=d.forwardRef(kAe),EAe=`accept acceptCharset accessKey action allowFullScreen allowTransparency +}`)),d.useEffect(function(){var s=t.current,l=p6(s);YE(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])},dAe=["icon","className","onClick","style","primaryColor","secondaryColor"],Y2={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function fAe(e){var t=e.primaryColor,n=e.secondaryColor;Y2.primaryColor=t,Y2.secondaryColor=n||Jfe(t),Y2.calculated=!!n}function pAe(){return q({},Y2)}var Cy=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=Ht(t,dAe),c=d.useRef(),u=Y2;if(o&&(u={primaryColor:o,secondaryColor:s||Jfe(o)}),tpe(c),mj(xG(n),"icon should be icon definiton, but got ".concat(n)),!xG(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=q(q({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),gj(f.icon,"svg-".concat(f.name),q(q({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Cy.displayName="IconReact";Cy.getTwoToneColors=pAe;Cy.setTwoToneColors=fAe;function npe(e){var t=epe(e),n=Te(t,2),r=n[0],i=n[1];return Cy.setTwoToneColors({primaryColor:r,secondaryColor:i})}function hAe(){var e=Cy.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var mAe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];npe(pg.primary);var Nn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Ht(e,mAe),u=d.useContext(qE),f=u.prefixCls,p=f===void 0?"anticon":f,h=u.rootClassName,m=Ee(h,p,ne(ne({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=epe(l),w=Te(y,2),b=w[0],C=w[1];return d.createElement("span",tt({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),d.createElement(Cy,{icon:r,primaryColor:b,secondaryColor:C,style:v}))});Nn.displayName="AntdIcon";Nn.getTwoToneColor=hAe;Nn.setTwoToneColor=npe;var gAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:oAe}))},Ug=d.forwardRef(gAe),vAe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},yAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:vAe}))},Pd=d.forwardRef(yAe),bAe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},wAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:bAe}))},Eu=d.forwardRef(wAe),xAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},SAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:xAe}))},qf=d.forwardRef(SAe),CAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},_Ae=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:CAe}))},QE=d.forwardRef(_Ae),kAe=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -202,69 +202,69 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,$Ae=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,EAe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,MAe="".concat(EAe," ").concat($Ae).split(/[\s\n]+/),TAe="aria-",PAe="data-";function CG(e,t){return e.indexOf(t)===0}function Fi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=q({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||CG(i,TAe))||n.data&&CG(i,PAe)||n.attr&&MAe.includes(i))&&(r[i]=e[i])}),r}function ipe(e){return e&&te.isValidElement(e)&&e.type===te.Fragment}const KL=(e,t,n)=>te.isValidElement(e)?te.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function aa(e,t){return KL(e,e,t)}const vS=(e,t,n,r,i)=>({background:e,border:`${Me(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),OAe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:p,withDescriptionPadding:h,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,$Ae="".concat(kAe," ").concat(EAe).split(/[\s\n]+/),MAe="aria-",TAe="data-";function CG(e,t){return e.indexOf(t)===0}function Fi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=q({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||CG(i,MAe))||n.data&&CG(i,TAe)||n.attr&&$Ae.includes(i))&&(r[i]=e[i])}),r}function rpe(e){return e&&te.isValidElement(e)&&e.type===te.Fragment}const KL=(e,t,n)=>te.isValidElement(e)?te.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function aa(e,t){return KL(e,e,t)}const gS=(e,t,n,r,i)=>({background:e,border:`${Me(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),PAe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:p,withDescriptionPadding:h,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, padding-top ${n} ${c}, padding-bottom ${n} ${c}, - margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:o},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},RAe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:p,colorInfoBg:h}=e;return{[t]:{"&-success":vS(i,r,n,e,t),"&-info":vS(h,p,f,e,t),"&-warning":vS(s,o,a,e,t),"&-error":Object.assign(Object.assign({},vS(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},IAe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:Me(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},jAe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),NAe=Jn("Alert",e=>[OAe(e),RAe(e),IAe(e)],jAe);var _G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{icon:t,prefixCls:n,type:r}=e,i=AAe[r]||null;return t?KL(t,d.createElement("span",{className:`${n}-icon`},t),()=>({className:Ee(`${n}-icon`,t.props.className)})):d.createElement(i,{className:`${n}-icon`})},FAe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a}=e,o=r===!0||r===void 0?d.createElement(Eu,null):r;return t?d.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),o):null},ape=d.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:a,className:o,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:p,showIcon:h,closable:m,closeText:g,closeIcon:v,action:y,id:w}=e,b=_G(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,k]=d.useState(!1),S=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:S.current}));const{getPrefixCls:_,direction:E,alert:$}=d.useContext(Xt),M=_("alert",r),[P,R,O]=NAe(M),j=B=>{var U;k(!0),(U=e.onClose)===null||U===void 0||U.call(e,B)},I=d.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),A=d.useMemo(()=>typeof m=="object"&&m.closeIcon||g?!0:typeof m=="boolean"?m:v!==!1&&v!==null&&v!==void 0?!0:!!($!=null&&$.closable),[g,v,m,$==null?void 0:$.closable]),N=a&&h===void 0?!0:h,F=Ee(M,`${M}-${I}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!N,[`${M}-banner`]:!!a,[`${M}-rtl`]:E==="rtl"},$==null?void 0:$.className,o,s,O,R),K=Fi(b,{aria:!0,data:!0}),L=d.useMemo(()=>{var B,U;return typeof m=="object"&&m.closeIcon?m.closeIcon:g||(v!==void 0?v:typeof($==null?void 0:$.closable)=="object"&&(!((B=$==null?void 0:$.closable)===null||B===void 0)&&B.closeIcon)?(U=$==null?void 0:$.closable)===null||U===void 0?void 0:U.closeIcon:$==null?void 0:$.closeIcon)},[v,m,g,$==null?void 0:$.closeIcon]),V=d.useMemo(()=>{const B=m??($==null?void 0:$.closable);return typeof B=="object"?_G(B,["closeIcon"]):{}},[m,$==null?void 0:$.closable]);return P(d.createElement(Ca,{visible:!C,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:p},(B,U)=>{let{className:Y,style:ee}=B;return d.createElement("div",Object.assign({id:w,ref:ga(S,U),"data-show":!C,className:Ee(F,Y),style:Object.assign(Object.assign(Object.assign({},$==null?void 0:$.style),l),ee),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},K),N?d.createElement(DAe,{description:n,icon:e.icon,prefixCls:M,type:I}):null,d.createElement("div",{className:`${M}-content`},i?d.createElement("div",{className:`${M}-message`},i):null,n?d.createElement("div",{className:`${M}-description`},n):null),y?d.createElement("div",{className:`${M}-action`},y):null,d.createElement(FAe,{isClosable:A,prefixCls:M,closeIcon:L,handleClose:j,ariaProps:V}))}))});function LAe(e,t,n){return t=dg(t),Nde(e,zE()?Reflect.construct(t,n||[],dg(e).constructor):t.apply(e,n))}let BAe=function(e){function t(){var n;return Ar(this,t),n=LAe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return $o(t,e),Dr(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:a,children:o}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,f=typeof i>"u"?c:i;return s?d.createElement(ape,{id:a,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):o}}])}(d.Component);const JE=ape;JE.ErrorBoundary=BAe;const kG=e=>typeof e=="object"&&e!=null&&e.nodeType===1,EG=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",w9=(e,t)=>{if(e.clientHeight{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,zAe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},$G=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:A=>A!==c;if(!kG(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;kG(m)&&f(m);){if(m=zAe(m),m===p){h.push(m);break}m!=null&&m===document.body&&w9(m)&&!w9(document.documentElement)||m!=null&&w9(m,u)&&h.push(m)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:y,scrollY:w}=window,{height:b,width:C,top:k,right:S,bottom:_,left:E}=e.getBoundingClientRect(),{top:$,right:M,bottom:P,left:R}=(A=>{const N=window.getComputedStyle(A);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let O=s==="start"||s==="nearest"?k-$:s==="end"?_+P:k+b/2-$+P,j=l==="center"?E+C/2-R+M:l==="end"?S+M:E-R;const I=[];for(let A=0;A=0&&E>=0&&_<=v&&S<=g&&k>=L&&_<=B&&E>=U&&S<=V)return I;const Y=getComputedStyle(N),ee=parseInt(Y.borderLeftWidth,10),ie=parseInt(Y.borderTopWidth,10),Z=parseInt(Y.borderRightWidth,10),X=parseInt(Y.borderBottomWidth,10);let ae=0,oe=0;const le="offsetWidth"in N?N.offsetWidth-N.clientWidth-ee-Z:0,ce="offsetHeight"in N?N.offsetHeight-N.clientHeight-ie-X:0,pe="offsetWidth"in N?N.offsetWidth===0?0:K/N.offsetWidth:0,me="offsetHeight"in N?N.offsetHeight===0?0:F/N.offsetHeight:0;if(p===N)ae=s==="start"?O:s==="end"?O-v:s==="nearest"?yS(w,w+v,v,ie,X,w+O,w+O+b,b):O-v/2,oe=l==="start"?j:l==="center"?j-g/2:l==="end"?j-g:yS(y,y+g,g,ee,Z,y+j,y+j+C,C),ae=Math.max(0,ae+w),oe=Math.max(0,oe+y);else{ae=s==="start"?O-L-ie:s==="end"?O-B+X+ce:s==="nearest"?yS(L,B,F,ie,X+ce,O,O+b,b):O-(L+F/2)+ce/2,oe=l==="start"?j-U-ee:l==="center"?j-(U+K/2)+le/2:l==="end"?j-V+Z+le:yS(U,V,K,ee,Z+le,j,j+C,C);const{scrollLeft:re,scrollTop:fe}=N;ae=me===0?0:Math.max(0,Math.min(fe+ae/me,N.scrollHeight-F/me+ce)),oe=pe===0?0:Math.max(0,Math.min(re+oe/pe,N.scrollWidth-K/pe+le)),O+=fe-ae,j+=re-oe}I.push({el:N,top:ae,left:oe})}return I},HAe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function UAe(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior($G(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:o}of $G(e,HAe(t))){const s=a-n.top+n.bottom,l=o-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const qr=e=>{const[,,,,t]=ka();return t?`${e}-css-var`:""};var mt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=mt.F1&&n<=mt.F12)return!1;switch(n){case mt.ALT:case mt.CAPS_LOCK:case mt.CONTEXT_MENU:case mt.CTRL:case mt.DOWN:case mt.END:case mt.ESC:case mt.HOME:case mt.INSERT:case mt.LEFT:case mt.MAC_FF_META:case mt.META:case mt.NUMLOCK:case mt.NUM_CENTER:case mt.PAGE_DOWN:case mt.PAGE_UP:case mt.PAUSE:case mt.PRINT_SCREEN:case mt.RIGHT:case mt.SHIFT:case mt.UP:case mt.WIN_KEY:case mt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=mt.ZERO&&t<=mt.NINE||t>=mt.NUM_ZERO&&t<=mt.NUM_MULTIPLY||t>=mt.A&&t<=mt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case mt.SPACE:case mt.QUESTION_MARK:case mt.NUM_PLUS:case mt.NUM_MINUS:case mt.NUM_PERIOD:case mt.NUM_DIVISION:case mt.SEMICOLON:case mt.DASH:case mt.EQUALS:case mt.COMMA:case mt.PERIOD:case mt.SLASH:case mt.APOSTROPHE:case mt.SINGLE_QUOTE:case mt.OPEN_SQUARE_BRACKET:case mt.BACKSLASH:case mt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ope=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,h=e.closeIcon,m=h===void 0?"x":h,g=e.props,v=e.onClick,y=e.onNoticeClose,w=e.times,b=e.hovering,C=d.useState(!1),k=Te(C,2),S=k[0],_=k[1],E=d.useState(0),$=Te(E,2),M=$[0],P=$[1],R=d.useState(0),O=Te(R,2),j=O[0],I=O[1],A=b||S,N=o>0&&s,F=function(){y(u)},K=function(ee){(ee.key==="Enter"||ee.code==="Enter"||ee.keyCode===mt.ENTER)&&F()};d.useEffect(function(){if(!A&&o>0){var Y=Date.now()-j,ee=setTimeout(function(){F()},o*1e3-j);return function(){c&&clearTimeout(ee),I(Date.now()-Y)}}},[o,A,w]),d.useEffect(function(){if(!A&&N&&(c||j===0)){var Y=performance.now(),ee,ie=function Z(){cancelAnimationFrame(ee),ee=requestAnimationFrame(function(X){var ae=X+j-Y,oe=Math.min(ae/(o*1e3),1);P(oe*100),oe<1&&Z()})};return ie(),function(){c&&cancelAnimationFrame(ee)}}},[o,j,A,N,w]);var L=d.useMemo(function(){return Kt(p)==="object"&&p!==null?p:p?{closeIcon:m}:{}},[p,m]),V=Fi(L,!0),B=100-(!M||M<0?0:M>100?100:M),U="".concat(n,"-notice");return d.createElement("div",tt({},g,{ref:t,className:Ee(U,i,ne({},"".concat(U,"-closable"),p)),style:r,onMouseEnter:function(ee){var ie;_(!0),g==null||(ie=g.onMouseEnter)===null||ie===void 0||ie.call(g,ee)},onMouseLeave:function(ee){var ie;_(!1),g==null||(ie=g.onMouseLeave)===null||ie===void 0||ie.call(g,ee)},onClick:v}),d.createElement("div",{className:"".concat(U,"-content")},f),p&&d.createElement("a",tt({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:K,"aria-label":"Close"},V,{onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),F()}}),L.closeIcon),N&&d.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:B},B+"%"))}),spe=te.createContext({}),lpe=function(t){var n=t.children,r=t.classNames;return te.createElement(spe.Provider,{value:{classNames:r}},n)},MG=8,TG=3,PG=16,WAe=function(t){var n={offset:MG,threshold:TG,gap:PG};if(t&&Kt(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:MG,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:TG,n.gap=(a=t.gap)!==null&&a!==void 0?a:PG}return[!!t,n]},VAe=["className","style","classNames","styles"],qAe=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(spe),p=f.classNames,h=d.useRef({}),m=d.useState(null),g=Te(m,2),v=g[0],y=g[1],w=d.useState([]),b=Te(w,2),C=b[0],k=b[1],S=n.map(function(A){return{config:A,key:String(A.key)}}),_=WAe(u),E=Te(_,2),$=E[0],M=E[1],P=M.offset,R=M.threshold,O=M.gap,j=$&&(C.length>0||S.length<=R),I=typeof s=="function"?s(r):s;return d.useEffect(function(){$&&C.length>1&&k(function(A){return A.filter(function(N){return S.some(function(F){var K=F.key;return N===K})})})},[C,S,$]),d.useEffect(function(){var A;if($&&h.current[(A=S[S.length-1])===null||A===void 0?void 0:A.key]){var N;y(h.current[(N=S[S.length-1])===null||N===void 0?void 0:N.key])}},[S,$]),te.createElement(ZE,tt({key:r,className:Ee(i,"".concat(i,"-").concat(r),p==null?void 0:p.list,a,ne(ne({},"".concat(i,"-stack"),!!$),"".concat(i,"-stack-expanded"),j)),style:o,keys:S,motionAppear:!0},I,{onAllRemoved:function(){l(r)}}),function(A,N){var F=A.config,K=A.className,L=A.style,V=A.index,B=F,U=B.key,Y=B.times,ee=String(U),ie=F,Z=ie.className,X=ie.style,ae=ie.classNames,oe=ie.styles,le=Ht(ie,VAe),ce=S.findIndex(function(ye){return ye.key===ee}),pe={};if($){var me=S.length-1-(ce>-1?ce:V-1),re=r==="top"||r==="bottom"?"-50%":"0";if(me>0){var fe,ve,$e;pe.height=j?(fe=h.current[ee])===null||fe===void 0?void 0:fe.offsetHeight:v==null?void 0:v.offsetHeight;for(var Ce=0,be=0;be-1?h.current[ee]=Oe:delete h.current[ee]},prefixCls:i,classNames:ae,styles:oe,className:Ee(Z,p==null?void 0:p.notice),style:X,times:Y,key:U,eventKey:U,onNoticeClose:c,hovering:$&&C.length>0})))})},KAe=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),h=Te(p,2),m=h[0],g=h[1],v=function($){var M,P=m.find(function(R){return R.key===$});P==null||(M=P.onClose)===null||M===void 0||M.call(P),g(function(R){return R.filter(function(O){return O.key!==$})})};d.useImperativeHandle(t,function(){return{open:function($){g(function(M){var P=lt(M),R=P.findIndex(function(I){return I.key===$.key}),O=q({},$);if(R>=0){var j;O.times=(((j=M[R])===null||j===void 0?void 0:j.times)||0)+1,P[R]=O}else O.times=0,P.push(O);return o>0&&P.length>o&&(P=P.slice(-o)),P})},close:function($){v($)},destroy:function(){g([])}}});var y=d.useState({}),w=Te(y,2),b=w[0],C=w[1];d.useEffect(function(){var E={};m.forEach(function($){var M=$.placement,P=M===void 0?"topRight":M;P&&(E[P]=E[P]||[],E[P].push($))}),Object.keys(b).forEach(function($){E[$]=E[$]||[]}),C(E)},[m]);var k=function($){C(function(M){var P=q({},M),R=P[$]||[];return R.length||delete P[$],P})},S=d.useRef(!1);if(d.useEffect(function(){Object.keys(b).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[b]),!i)return null;var _=Object.keys(b);return Va.createPortal(d.createElement(d.Fragment,null,_.map(function(E){var $=b[E],M=d.createElement(qAe,{key:E,configList:$,placement:E,prefixCls:r,className:s==null?void 0:s(E),style:l==null?void 0:l(E),motion:a,onNoticeClose:v,onAllNoticeRemoved:k,stack:u});return f?f(M,{prefixCls:r,key:E}):M})),i)}),GAe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],YAe=function(){return document.body},OG=0;function XAe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?YAe:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Ht(e,GAe),p=d.useState(),h=Te(p,2),m=h[0],g=h[1],v=d.useRef(),y=d.createElement(KAe,{container:m,ref:v,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),w=d.useState([]),b=Te(w,2),C=b[0],k=b[1],S=d.useMemo(function(){return{open:function(E){var $=XAe(f,E);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat(OG),OG+=1),k(function(M){return[].concat(lt(M),[{type:"open",config:$}])})},close:function(E){k(function($){return[].concat(lt($),[{type:"close",key:E}])})},destroy:function(){k(function(E){return[].concat(lt(E),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){v.current&&C.length&&(C.forEach(function(_){switch(_.type){case"open":v.current.open(_.config);break;case"close":v.current.close(_.key);break;case"destroy":v.current.destroy();break}}),k(function(_){return _.filter(function(E){return!C.includes(E)})}))},[C]),[S,y]}var ZAe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},QAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:ZAe}))},vu=d.forwardRef(QAe);const y4=te.createContext(void 0),vp=100,JAe=10,GL=vp*JAe,upe={Modal:vp,Drawer:vp,Popover:vp,Popconfirm:vp,Tooltip:vp,Tour:vp,FloatButton:vp},eDe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function tDe(e){return e in upe}const $c=(e,t)=>{const[,n]=ka(),r=te.useContext(y4),i=tDe(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+upe[e]:o+=eDe[e],a=[r===void 0?t:o,o]}return a},nDe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:h,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:y}=e,w=`${t}-notice`,b=new ir("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),C=new ir("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),k={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${w}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, + margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:o},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},OAe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:p,colorInfoBg:h}=e;return{[t]:{"&-success":gS(i,r,n,e,t),"&-info":gS(h,p,f,e,t),"&-warning":gS(s,o,a,e,t),"&-error":Object.assign(Object.assign({},gS(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},RAe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:Me(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},IAe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),jAe=Jn("Alert",e=>[PAe(e),OAe(e),RAe(e)],IAe);var _G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{icon:t,prefixCls:n,type:r}=e,i=NAe[r]||null;return t?KL(t,d.createElement("span",{className:`${n}-icon`},t),()=>({className:Ee(`${n}-icon`,t.props.className)})):d.createElement(i,{className:`${n}-icon`})},DAe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a}=e,o=r===!0||r===void 0?d.createElement(Eu,null):r;return t?d.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),o):null},ipe=d.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:a,className:o,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:p,showIcon:h,closable:m,closeText:g,closeIcon:v,action:y,id:w}=e,b=_G(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,k]=d.useState(!1),S=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:S.current}));const{getPrefixCls:_,direction:E,alert:$}=d.useContext(Xt),M=_("alert",r),[P,R,O]=jAe(M),j=B=>{var U;k(!0),(U=e.onClose)===null||U===void 0||U.call(e,B)},I=d.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),A=d.useMemo(()=>typeof m=="object"&&m.closeIcon||g?!0:typeof m=="boolean"?m:v!==!1&&v!==null&&v!==void 0?!0:!!($!=null&&$.closable),[g,v,m,$==null?void 0:$.closable]),N=a&&h===void 0?!0:h,F=Ee(M,`${M}-${I}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!N,[`${M}-banner`]:!!a,[`${M}-rtl`]:E==="rtl"},$==null?void 0:$.className,o,s,O,R),K=Fi(b,{aria:!0,data:!0}),L=d.useMemo(()=>{var B,U;return typeof m=="object"&&m.closeIcon?m.closeIcon:g||(v!==void 0?v:typeof($==null?void 0:$.closable)=="object"&&(!((B=$==null?void 0:$.closable)===null||B===void 0)&&B.closeIcon)?(U=$==null?void 0:$.closable)===null||U===void 0?void 0:U.closeIcon:$==null?void 0:$.closeIcon)},[v,m,g,$==null?void 0:$.closeIcon]),V=d.useMemo(()=>{const B=m??($==null?void 0:$.closable);return typeof B=="object"?_G(B,["closeIcon"]):{}},[m,$==null?void 0:$.closable]);return P(d.createElement(Ca,{visible:!C,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:p},(B,U)=>{let{className:Y,style:ee}=B;return d.createElement("div",Object.assign({id:w,ref:ga(S,U),"data-show":!C,className:Ee(F,Y),style:Object.assign(Object.assign(Object.assign({},$==null?void 0:$.style),l),ee),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},K),N?d.createElement(AAe,{description:n,icon:e.icon,prefixCls:M,type:I}):null,d.createElement("div",{className:`${M}-content`},i?d.createElement("div",{className:`${M}-message`},i):null,n?d.createElement("div",{className:`${M}-description`},n):null),y?d.createElement("div",{className:`${M}-action`},y):null,d.createElement(DAe,{isClosable:A,prefixCls:M,closeIcon:L,handleClose:j,ariaProps:V}))}))});function FAe(e,t,n){return t=dg(t),jde(e,zE()?Reflect.construct(t,n||[],dg(e).constructor):t.apply(e,n))}let LAe=function(e){function t(){var n;return Ar(this,t),n=FAe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return $o(t,e),Dr(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:a,children:o}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,f=typeof i>"u"?c:i;return s?d.createElement(ipe,{id:a,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):o}}])}(d.Component);const JE=ipe;JE.ErrorBoundary=LAe;const kG=e=>typeof e=="object"&&e!=null&&e.nodeType===1,EG=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",w9=(e,t)=>{if(e.clientHeight{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,BAe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},$G=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:A=>A!==c;if(!kG(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;kG(m)&&f(m);){if(m=BAe(m),m===p){h.push(m);break}m!=null&&m===document.body&&w9(m)&&!w9(document.documentElement)||m!=null&&w9(m,u)&&h.push(m)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:y,scrollY:w}=window,{height:b,width:C,top:k,right:S,bottom:_,left:E}=e.getBoundingClientRect(),{top:$,right:M,bottom:P,left:R}=(A=>{const N=window.getComputedStyle(A);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let O=s==="start"||s==="nearest"?k-$:s==="end"?_+P:k+b/2-$+P,j=l==="center"?E+C/2-R+M:l==="end"?S+M:E-R;const I=[];for(let A=0;A=0&&E>=0&&_<=v&&S<=g&&k>=L&&_<=B&&E>=U&&S<=V)return I;const Y=getComputedStyle(N),ee=parseInt(Y.borderLeftWidth,10),ie=parseInt(Y.borderTopWidth,10),Z=parseInt(Y.borderRightWidth,10),X=parseInt(Y.borderBottomWidth,10);let ae=0,oe=0;const le="offsetWidth"in N?N.offsetWidth-N.clientWidth-ee-Z:0,ce="offsetHeight"in N?N.offsetHeight-N.clientHeight-ie-X:0,pe="offsetWidth"in N?N.offsetWidth===0?0:K/N.offsetWidth:0,me="offsetHeight"in N?N.offsetHeight===0?0:F/N.offsetHeight:0;if(p===N)ae=s==="start"?O:s==="end"?O-v:s==="nearest"?vS(w,w+v,v,ie,X,w+O,w+O+b,b):O-v/2,oe=l==="start"?j:l==="center"?j-g/2:l==="end"?j-g:vS(y,y+g,g,ee,Z,y+j,y+j+C,C),ae=Math.max(0,ae+w),oe=Math.max(0,oe+y);else{ae=s==="start"?O-L-ie:s==="end"?O-B+X+ce:s==="nearest"?vS(L,B,F,ie,X+ce,O,O+b,b):O-(L+F/2)+ce/2,oe=l==="start"?j-U-ee:l==="center"?j-(U+K/2)+le/2:l==="end"?j-V+Z+le:vS(U,V,K,ee,Z+le,j,j+C,C);const{scrollLeft:re,scrollTop:fe}=N;ae=me===0?0:Math.max(0,Math.min(fe+ae/me,N.scrollHeight-F/me+ce)),oe=pe===0?0:Math.max(0,Math.min(re+oe/pe,N.scrollWidth-K/pe+le)),O+=fe-ae,j+=re-oe}I.push({el:N,top:ae,left:oe})}return I},zAe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function HAe(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior($G(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:o}of $G(e,zAe(t))){const s=a-n.top+n.bottom,l=o-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const qr=e=>{const[,,,,t]=ka();return t?`${e}-css-var`:""};var mt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=mt.F1&&n<=mt.F12)return!1;switch(n){case mt.ALT:case mt.CAPS_LOCK:case mt.CONTEXT_MENU:case mt.CTRL:case mt.DOWN:case mt.END:case mt.ESC:case mt.HOME:case mt.INSERT:case mt.LEFT:case mt.MAC_FF_META:case mt.META:case mt.NUMLOCK:case mt.NUM_CENTER:case mt.PAGE_DOWN:case mt.PAGE_UP:case mt.PAUSE:case mt.PRINT_SCREEN:case mt.RIGHT:case mt.SHIFT:case mt.UP:case mt.WIN_KEY:case mt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=mt.ZERO&&t<=mt.NINE||t>=mt.NUM_ZERO&&t<=mt.NUM_MULTIPLY||t>=mt.A&&t<=mt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case mt.SPACE:case mt.QUESTION_MARK:case mt.NUM_PLUS:case mt.NUM_MINUS:case mt.NUM_PERIOD:case mt.NUM_DIVISION:case mt.SEMICOLON:case mt.DASH:case mt.EQUALS:case mt.COMMA:case mt.PERIOD:case mt.SLASH:case mt.APOSTROPHE:case mt.SINGLE_QUOTE:case mt.OPEN_SQUARE_BRACKET:case mt.BACKSLASH:case mt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ape=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,h=e.closeIcon,m=h===void 0?"x":h,g=e.props,v=e.onClick,y=e.onNoticeClose,w=e.times,b=e.hovering,C=d.useState(!1),k=Te(C,2),S=k[0],_=k[1],E=d.useState(0),$=Te(E,2),M=$[0],P=$[1],R=d.useState(0),O=Te(R,2),j=O[0],I=O[1],A=b||S,N=o>0&&s,F=function(){y(u)},K=function(ee){(ee.key==="Enter"||ee.code==="Enter"||ee.keyCode===mt.ENTER)&&F()};d.useEffect(function(){if(!A&&o>0){var Y=Date.now()-j,ee=setTimeout(function(){F()},o*1e3-j);return function(){c&&clearTimeout(ee),I(Date.now()-Y)}}},[o,A,w]),d.useEffect(function(){if(!A&&N&&(c||j===0)){var Y=performance.now(),ee,ie=function Z(){cancelAnimationFrame(ee),ee=requestAnimationFrame(function(X){var ae=X+j-Y,oe=Math.min(ae/(o*1e3),1);P(oe*100),oe<1&&Z()})};return ie(),function(){c&&cancelAnimationFrame(ee)}}},[o,j,A,N,w]);var L=d.useMemo(function(){return Kt(p)==="object"&&p!==null?p:p?{closeIcon:m}:{}},[p,m]),V=Fi(L,!0),B=100-(!M||M<0?0:M>100?100:M),U="".concat(n,"-notice");return d.createElement("div",tt({},g,{ref:t,className:Ee(U,i,ne({},"".concat(U,"-closable"),p)),style:r,onMouseEnter:function(ee){var ie;_(!0),g==null||(ie=g.onMouseEnter)===null||ie===void 0||ie.call(g,ee)},onMouseLeave:function(ee){var ie;_(!1),g==null||(ie=g.onMouseLeave)===null||ie===void 0||ie.call(g,ee)},onClick:v}),d.createElement("div",{className:"".concat(U,"-content")},f),p&&d.createElement("a",tt({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:K,"aria-label":"Close"},V,{onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),F()}}),L.closeIcon),N&&d.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:B},B+"%"))}),ope=te.createContext({}),spe=function(t){var n=t.children,r=t.classNames;return te.createElement(ope.Provider,{value:{classNames:r}},n)},MG=8,TG=3,PG=16,UAe=function(t){var n={offset:MG,threshold:TG,gap:PG};if(t&&Kt(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:MG,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:TG,n.gap=(a=t.gap)!==null&&a!==void 0?a:PG}return[!!t,n]},WAe=["className","style","classNames","styles"],VAe=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(ope),p=f.classNames,h=d.useRef({}),m=d.useState(null),g=Te(m,2),v=g[0],y=g[1],w=d.useState([]),b=Te(w,2),C=b[0],k=b[1],S=n.map(function(A){return{config:A,key:String(A.key)}}),_=UAe(u),E=Te(_,2),$=E[0],M=E[1],P=M.offset,R=M.threshold,O=M.gap,j=$&&(C.length>0||S.length<=R),I=typeof s=="function"?s(r):s;return d.useEffect(function(){$&&C.length>1&&k(function(A){return A.filter(function(N){return S.some(function(F){var K=F.key;return N===K})})})},[C,S,$]),d.useEffect(function(){var A;if($&&h.current[(A=S[S.length-1])===null||A===void 0?void 0:A.key]){var N;y(h.current[(N=S[S.length-1])===null||N===void 0?void 0:N.key])}},[S,$]),te.createElement(ZE,tt({key:r,className:Ee(i,"".concat(i,"-").concat(r),p==null?void 0:p.list,a,ne(ne({},"".concat(i,"-stack"),!!$),"".concat(i,"-stack-expanded"),j)),style:o,keys:S,motionAppear:!0},I,{onAllRemoved:function(){l(r)}}),function(A,N){var F=A.config,K=A.className,L=A.style,V=A.index,B=F,U=B.key,Y=B.times,ee=String(U),ie=F,Z=ie.className,X=ie.style,ae=ie.classNames,oe=ie.styles,le=Ht(ie,WAe),ce=S.findIndex(function(ye){return ye.key===ee}),pe={};if($){var me=S.length-1-(ce>-1?ce:V-1),re=r==="top"||r==="bottom"?"-50%":"0";if(me>0){var fe,ve,$e;pe.height=j?(fe=h.current[ee])===null||fe===void 0?void 0:fe.offsetHeight:v==null?void 0:v.offsetHeight;for(var Ce=0,be=0;be-1?h.current[ee]=Oe:delete h.current[ee]},prefixCls:i,classNames:ae,styles:oe,className:Ee(Z,p==null?void 0:p.notice),style:X,times:Y,key:U,eventKey:U,onNoticeClose:c,hovering:$&&C.length>0})))})},qAe=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),h=Te(p,2),m=h[0],g=h[1],v=function($){var M,P=m.find(function(R){return R.key===$});P==null||(M=P.onClose)===null||M===void 0||M.call(P),g(function(R){return R.filter(function(O){return O.key!==$})})};d.useImperativeHandle(t,function(){return{open:function($){g(function(M){var P=lt(M),R=P.findIndex(function(I){return I.key===$.key}),O=q({},$);if(R>=0){var j;O.times=(((j=M[R])===null||j===void 0?void 0:j.times)||0)+1,P[R]=O}else O.times=0,P.push(O);return o>0&&P.length>o&&(P=P.slice(-o)),P})},close:function($){v($)},destroy:function(){g([])}}});var y=d.useState({}),w=Te(y,2),b=w[0],C=w[1];d.useEffect(function(){var E={};m.forEach(function($){var M=$.placement,P=M===void 0?"topRight":M;P&&(E[P]=E[P]||[],E[P].push($))}),Object.keys(b).forEach(function($){E[$]=E[$]||[]}),C(E)},[m]);var k=function($){C(function(M){var P=q({},M),R=P[$]||[];return R.length||delete P[$],P})},S=d.useRef(!1);if(d.useEffect(function(){Object.keys(b).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[b]),!i)return null;var _=Object.keys(b);return Va.createPortal(d.createElement(d.Fragment,null,_.map(function(E){var $=b[E],M=d.createElement(VAe,{key:E,configList:$,placement:E,prefixCls:r,className:s==null?void 0:s(E),style:l==null?void 0:l(E),motion:a,onNoticeClose:v,onAllNoticeRemoved:k,stack:u});return f?f(M,{prefixCls:r,key:E}):M})),i)}),KAe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],GAe=function(){return document.body},OG=0;function YAe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?GAe:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Ht(e,KAe),p=d.useState(),h=Te(p,2),m=h[0],g=h[1],v=d.useRef(),y=d.createElement(qAe,{container:m,ref:v,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),w=d.useState([]),b=Te(w,2),C=b[0],k=b[1],S=d.useMemo(function(){return{open:function(E){var $=YAe(f,E);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat(OG),OG+=1),k(function(M){return[].concat(lt(M),[{type:"open",config:$}])})},close:function(E){k(function($){return[].concat(lt($),[{type:"close",key:E}])})},destroy:function(){k(function(E){return[].concat(lt(E),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){v.current&&C.length&&(C.forEach(function(_){switch(_.type){case"open":v.current.open(_.config);break;case"close":v.current.close(_.key);break;case"destroy":v.current.destroy();break}}),k(function(_){return _.filter(function(E){return!C.includes(E)})}))},[C]),[S,y]}var XAe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},ZAe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:XAe}))},vu=d.forwardRef(ZAe);const v4=te.createContext(void 0),vp=100,QAe=10,GL=vp*QAe,cpe={Modal:vp,Drawer:vp,Popover:vp,Popconfirm:vp,Tooltip:vp,Tour:vp,FloatButton:vp},JAe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function eDe(e){return e in cpe}const $c=(e,t)=>{const[,n]=ka(),r=te.useContext(v4),i=eDe(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+cpe[e]:o+=JAe[e],a=[r===void 0?t:o,o]}return a},tDe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:h,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:y}=e,w=`${t}-notice`,b=new ir("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),C=new ir("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),k={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${w}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},ar(e)),{color:i,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},k)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},k),{padding:0,textAlign:"start"})}]},rDe=e=>({zIndexPopup:e.zIndexPopupBase+GL+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),dpe=Jn("Message",e=>{const t=Hn(e,{height:150});return[nDe(t)]},rDe);var iDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,type:n,icon:r,children:i}=e;return d.createElement("div",{className:Ee(`${t}-custom-content`,`${t}-${n}`)},r||aDe[n],d.createElement("span",null,i))},oDe=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=iDe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Xt),l=t||s("message"),c=qr(l),[u,f,p]=dpe(l,c);return u(d.createElement(ope,Object.assign({},o,{prefixCls:l,className:Ee(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(fpe,{prefixCls:l,type:r,icon:i},a)})))};function sDe(e,t){return{motionName:t??`${e}-move-up`}}function YL(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var lDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=qr(n),[i,a,o]=dpe(n,r);return i(d.createElement(lpe,{classNames:{list:Ee(a,o,r)}},t))},fDe=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(dDe,{prefixCls:n,key:r},e)},pDe=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=uDe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:h}=d.useContext(Xt),m=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??cDe}),v=()=>Ee({[`${m}-rtl`]:s??h==="rtl"}),y=()=>sDe(m,l),w=d.createElement("span",{className:`${m}-close-x`},d.createElement(Eu,{className:`${m}-close-icon`})),[b,C]=cpe({prefixCls:m,style:g,className:v,motion:y,closable:!1,closeIcon:w,duration:o,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:fDe});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:m,message:p})),C});let RG=0;function ppe(e){const t=d.useRef(null);return Hg(),[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:c,prefixCls:u,message:f}=t.current,p=`${u}-notice`,{content:h,icon:m,type:g,key:v,className:y,style:w,onClose:b}=l,C=lDe(l,["content","icon","type","key","className","style","onClose"]);let k=v;return k==null&&(RG+=1,k=`antd-message-${RG}`),YL(S=>(c(Object.assign(Object.assign({},C),{key:k,content:d.createElement(fpe,{prefixCls:u,type:g,icon:m},h),placement:"top",className:Ee(g&&`${p}-${g}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),w),onClose:()=>{b==null||b(),S()}})),()=>{r(k)}))},o={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,p)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let m,g;typeof f=="function"?g=f:(m=f,g=p);const v=Object.assign(Object.assign({onClose:g,duration:m},h),{type:l});return i(v)};o[l]=c}),o},[]),d.createElement(pDe,Object.assign({key:"message-holder"},e,{ref:t}))]}function hpe(e){return ppe(e)}function hDe(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(i=>[].concat(lt(i),[r])),()=>{t(i=>i.filter(a=>a!==r))}),[]);return[e,n]}function hr(){hr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(A,N,F){A[N]=F.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(A,N,F){return Object.defineProperty(A,N,{value:F,enumerable:!0,configurable:!0,writable:!0}),A[N]}try{c({},"")}catch{c=function(F,K,L){return F[K]=L}}function u(A,N,F,K){var L=N&&N.prototype instanceof y?N:y,V=Object.create(L.prototype),B=new j(K||[]);return i(V,"_invoke",{value:M(A,F,B)}),V}function f(A,N,F){try{return{type:"normal",arg:A.call(N,F)}}catch(K){return{type:"throw",arg:K}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",m="executing",g="completed",v={};function y(){}function w(){}function b(){}var C={};c(C,o,function(){return this});var k=Object.getPrototypeOf,S=k&&k(k(I([])));S&&S!==n&&r.call(S,o)&&(C=S);var _=b.prototype=y.prototype=Object.create(C);function E(A){["next","throw","return"].forEach(function(N){c(A,N,function(F){return this._invoke(N,F)})})}function $(A,N){function F(L,V,B,U){var Y=f(A[L],A,V);if(Y.type!=="throw"){var ee=Y.arg,ie=ee.value;return ie&&Kt(ie)=="object"&&r.call(ie,"__await")?N.resolve(ie.__await).then(function(Z){F("next",Z,B,U)},function(Z){F("throw",Z,B,U)}):N.resolve(ie).then(function(Z){ee.value=Z,B(ee)},function(Z){return F("throw",Z,B,U)})}U(Y.arg)}var K;i(this,"_invoke",{value:function(V,B){function U(){return new N(function(Y,ee){F(V,B,Y,ee)})}return K=K?K.then(U,U):U()}})}function M(A,N,F){var K=p;return function(L,V){if(K===m)throw Error("Generator is already running");if(K===g){if(L==="throw")throw V;return{value:e,done:!0}}for(F.method=L,F.arg=V;;){var B=F.delegate;if(B){var U=P(B,F);if(U){if(U===v)continue;return U}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(K===p)throw K=g,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);K=m;var Y=f(A,N,F);if(Y.type==="normal"){if(K=F.done?g:h,Y.arg===v)continue;return{value:Y.arg,done:F.done}}Y.type==="throw"&&(K=g,F.method="throw",F.arg=Y.arg)}}}function P(A,N){var F=N.method,K=A.iterator[F];if(K===e)return N.delegate=null,F==="throw"&&A.iterator.return&&(N.method="return",N.arg=e,P(A,N),N.method==="throw")||F!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+F+"' method")),v;var L=f(K,A.iterator,N.arg);if(L.type==="throw")return N.method="throw",N.arg=L.arg,N.delegate=null,v;var V=L.arg;return V?V.done?(N[A.resultName]=V.value,N.next=A.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,v):V:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,v)}function R(A){var N={tryLoc:A[0]};1 in A&&(N.catchLoc=A[1]),2 in A&&(N.finallyLoc=A[2],N.afterLoc=A[3]),this.tryEntries.push(N)}function O(A){var N=A.completion||{};N.type="normal",delete N.arg,A.completion=N}function j(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(R,this),this.reset(!0)}function I(A){if(A||A===""){var N=A[o];if(N)return N.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var F=-1,K=function L(){for(;++F=0;--L){var V=this.tryEntries[L],B=V.completion;if(V.tryLoc==="root")return K("end");if(V.tryLoc<=this.prev){var U=r.call(V,"catchLoc"),Y=r.call(V,"finallyLoc");if(U&&Y){if(this.prev=0;--K){var L=this.tryEntries[K];if(L.tryLoc<=this.prev&&r.call(L,"finallyLoc")&&this.prev=0;--F){var K=this.tryEntries[F];if(K.finallyLoc===N)return this.complete(K.completion,K.afterLoc),O(K),v}},catch:function(N){for(var F=this.tryEntries.length-1;F>=0;--F){var K=this.tryEntries[F];if(K.tryLoc===N){var L=K.completion;if(L.type==="throw"){var V=L.arg;O(K)}return V}}throw Error("illegal catch attempt")},delegateYield:function(N,F,K){return this.delegate={iterator:I(N),resultName:F,nextLoc:K},this.method==="next"&&(this.arg=e),v}},t}function IG(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function pa(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){IG(a,r,i,o,s,"next",l)}function s(l){IG(a,r,i,o,s,"throw",l)}o(void 0)})}}var b4=q({},Yoe),mDe=b4.version,x9=b4.render,gDe=b4.unmountComponentAtNode,e8;try{var vDe=Number((mDe||"").split(".")[0]);vDe>=18&&(e8=b4.createRoot)}catch{}function jG(e){var t=b4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Kt(t)==="object"&&(t.usingClientEntryPoint=e)}var m6="__rc_react_root__";function yDe(e,t){jG(!0);var n=t[m6]||e8(t);jG(!1),n.render(e),t[m6]=n}function bDe(e,t){x9==null||x9(e,t)}function wDe(e,t){if(e8){yDe(e,t);return}bDe(e,t)}function xDe(e){return vj.apply(this,arguments)}function vj(){return vj=pa(hr().mark(function e(t){return hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[m6])===null||i===void 0||i.unmount(),delete t[m6]}));case 1:case"end":return r.stop()}},e)})),vj.apply(this,arguments)}function SDe(e){gDe(e)}function CDe(e){return yj.apply(this,arguments)}function yj(){return yj=pa(hr().mark(function e(t){return hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(e8===void 0){r.next=2;break}return r.abrupt("return",xDe(t));case 2:SDe(t);case 3:case"end":return r.stop()}},e)})),yj.apply(this,arguments)}const _De=(e,t)=>(wDe(e,t),()=>CDe(t));let kDe=_De;function XL(){return kDe}const S9=()=>({height:0,opacity:0}),NG=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},EDe=e=>({height:e?e.offsetHeight:0}),C9=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",P0=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:n3}-motion-collapse`,onAppearStart:S9,onEnterStart:S9,onAppearActive:NG,onEnterActive:NG,onLeaveStart:EDe,onLeaveActive:S9,onAppearEnd:C9,onEnterEnd:C9,onLeaveEnd:C9,motionDeadline:500}},oo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,w4=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},$De=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},MDe=Dfe("Wave",e=>[$De(e)]),t8=`${n3}-wave-target`;function _9(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function TDe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return _9(t)?t:_9(n)?n:_9(r)?r:null}function k9(e){return Number.isNaN(e)?0:e}const PDe=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,a=d.useRef(null),o=d.useRef(null);d.useEffect(()=>{o.current=i()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,p]=d.useState(0),[h,m]=d.useState(0),[g,v]=d.useState(0),[y,w]=d.useState(0),[b,C]=d.useState(!1),k={left:f,top:h,width:g,height:y,borderRadius:c.map(E=>`${E}px`).join(" ")};s&&(k["--wave-color"]=s);function S(){const E=getComputedStyle(n);l(TDe(n));const $=E.position==="static",{borderLeftWidth:M,borderTopWidth:P}=E;p($?n.offsetLeft:k9(-parseFloat(M))),m($?n.offsetTop:k9(-parseFloat(P))),v(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:O,borderBottomLeftRadius:j,borderBottomRightRadius:I}=E;u([R,O,I,j].map(A=>k9(parseFloat(A))))}if(d.useEffect(()=>{if(n){const E=rr(()=>{S(),C(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(S),$.observe(n)),()=>{rr.cancel(E),$==null||$.disconnect()}}},[]),!b)return null;const _=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(t8));return d.createElement(Ca,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,$)=>{var M,P;if($.deadline||$.propertyName==="opacity"){const R=(M=a.current)===null||M===void 0?void 0:M.parentElement;(P=o.current)===null||P===void 0||P.call(o).then(()=>{R==null||R.remove()})}return!1}},(E,$)=>{let{className:M}=E;return d.createElement("div",{ref:ga(a,$),className:Ee(t,M,{"wave-quick":_}),style:k})})},ODe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const a=XL();let o=null;function s(){return o}o=a(d.createElement(PDe,Object.assign({},t,{target:e,registerUnmount:s})),i)},RDe=(e,t,n)=>{const{wave:r}=d.useContext(Xt),[,i,a]=ka(),o=Vn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${t8}`)||u,{showEffect:p}=r||{};(p||ODe)(f,{className:t,token:i,component:n,event:c,hashId:a})}),s=d.useRef(null);return c=>{rr.cancel(s.current),s.current=rr(()=>{o(c)})}},x4=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(Xt),a=d.useRef(null),o=i("wave"),[,s]=MDe(o),l=RDe(a,Ee(o,s),r);if(te.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const f=p=>{!w4(p.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(p)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!te.isValidElement(t))return t??null;const c=Vf(t)?ga(bh(t),a):a;return aa(t,{ref:c})},Bi=e=>{const t=te.useContext(hg);return te.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},IDe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},jDe=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},NDe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},mpe=Jn("Space",e=>{const t=Hn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[jDe(t),NDe(t),IDe(t)]},()=>({}),{resetStyle:!1});var gpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(n8),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return Ee(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},ADe=e=>{let{children:t}=e;return d.createElement(n8.Provider,{value:null},t)},DDe=e=>{var{children:t}=e,n=gpe(e,["children"]);return d.createElement(n8.Provider,{value:n},t)},FDe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Xt),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=gpe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Bi(b=>r??b),p=t("space-compact",o),[h,m]=mpe(p),g=Ee(p,m,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:a,[`${p}-vertical`]:i==="vertical"},s,l),v=d.useContext(n8),y=Xi(c),w=d.useMemo(()=>y.map((b,C)=>{const k=(b==null?void 0:b.key)||`${p}-item-${C}`;return d.createElement(DDe,{key:k,compactSize:f,compactDirection:i,isFirstItem:C===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:C===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},b)}),[r,y,v]);return y.length===0?null:h(d.createElement("div",Object.assign({className:g},u),w))};var LDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=d.useContext(Xt),{prefixCls:r,size:i,className:a}=e,o=LDe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=ka();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=Ee(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return d.createElement(vpe.Provider,{value:i},d.createElement("div",Object.assign({},o,{className:u})))},AG=/^[\u4E00-\u9FA5]{2}$/,bj=AG.test.bind(AG);function ZL(e){return e==="danger"?{danger:!0}:{type:e}}function DG(e){return typeof e=="string"}function E9(e){return e==="text"||e==="link"}function zDe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&DG(e.type)&&bj(e.props.children)?aa(e,{children:e.props.children.split("").join(n)}):DG(e)?bj(e)?te.createElement("span",null,e.split("").join(n)):te.createElement("span",null,e):ipe(e)?te.createElement("span",null,e):e}function HDe(e,t){let n=!1;const r=[];return te.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),te.Children.map(r,i=>zDe(i,t))}["default","primary","danger"].concat(lt(vg));const wj=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=Ee(`${a}-icon`,n);return te.createElement("span",{ref:t,className:o,style:r},i)}),FG=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Ee(`${n}-loading-icon`,r);return te.createElement(wj,{prefixCls:n,className:o,style:i,ref:t},te.createElement(vu,{className:a}))}),$9=()=>({width:0,opacity:0,transform:"scale(0)"}),M9=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),UDe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?te.createElement(FG,{prefixCls:t,className:i,style:a}):te.createElement(Ca,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:$9,onAppearActive:M9,onEnterStart:$9,onEnterActive:M9,onLeaveStart:M9,onLeaveActive:$9},(l,c)=>{let{className:u,style:f}=l;const p=Object.assign(Object.assign({},a),f);return te.createElement(FG,{prefixCls:t,className:Ee(i,u),style:p,ref:c})})},LG=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),WDe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},LG(`${t}-primary`,i),LG(`${t}-danger`,a)]}};var VDe=["b"],qDe=["v"],T9=function(t){return Math.round(Number(t||0))},KDe=function(t){if(t instanceof ur)return t;if(t&&Kt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=Ht(n,VDe);return q(q({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},yu=function(e){$o(n,e);var t=rs(n);function n(r){return Ar(this,n),t.call(this,KDe(r))}return Dr(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=T9(i.s*100),o=T9(i.b*100),s=T9(i.h),l=i.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,o=Ht(i,qDe);return q(q({},o),{},{b:a,a:this.a})}}]),n}(ur),GDe="rc-color-picker",Rv=function(t){return t instanceof yu?t:new yu(t)},YDe=Rv("#1677ff"),ype=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,a=t.color,o=t.type,s=i.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),f=u.width,p=u.height,h=f/2,m=p/2,g=(n.x+h)/l,v=1-(n.y+m)/c,y=a.toHsb(),w=g,b=(n.x+h)/l*360;if(o)switch(o){case"hue":return Rv(q(q({},y),{},{h:b<=0?0:b}));case"alpha":return Rv(q(q({},y),{},{a:w<=0?0:w}))}return Rv({h:y.h,s:g<=0?0:g,b:v>=1?1:v,a:y.a})},bpe=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},QL=function(t){var n=t.color,r=t.prefixCls,i=t.className,a=t.style,o=t.onClick,s="".concat(r,"-color-block");return te.createElement("div",{className:Ee(s,i),style:a,onClick:o},te.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function XDe(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function wpe(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,o=e.calculate,s=e.color,l=e.disabledDrag,c=d.useState({x:0,y:0}),u=Te(c,2),f=u[0],p=u[1],h=d.useRef(null),m=d.useRef(null);d.useEffect(function(){p(o())},[s]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null}},[]);var g=function(C){var k=XDe(C),S=k.pageX,_=k.pageY,E=n.current.getBoundingClientRect(),$=E.x,M=E.y,P=E.width,R=E.height,O=t.current.getBoundingClientRect(),j=O.width,I=O.height,A=j/2,N=I/2,F=Math.max(0,Math.min(S-$,P))-A,K=Math.max(0,Math.min(_-M,R))-N,L={x:F,y:r==="x"?f.y:K};if(j===0&&I===0||j!==I)return!1;i==null||i(L)},v=function(C){C.preventDefault(),g(C)},y=function(C){C.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null,a==null||a()},w=function(C){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),!l&&(g(C),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),h.current=v,m.current=y)};return[f,w]}var xpe=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,a=t.prefixCls;return te.createElement("div",{className:Ee("".concat(a,"-handler"),ne({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},Spe=function(t){var n=t.children,r=t.style,i=t.prefixCls;return te.createElement("div",{className:"".concat(i,"-palette"),style:q({position:"relative"},r)},n)},Cpe=d.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return te.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),ZDe=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,a=t.onChangeComplete,o=t.disabled,s=d.useRef(),l=d.useRef(),c=d.useRef(n),u=Vn(function(g){var v=ype({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),f=wpe({color:n,containerRef:s,targetRef:l,calculate:function(){return bpe(n)},onDragChange:u,onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:o}),p=Te(f,2),h=p[0],m=p[1];return te.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},te.createElement(Spe,{prefixCls:i},te.createElement(Cpe,{x:h.x,y:h.y,ref:l},te.createElement(xpe,{color:n.toRgbString(),prefixCls:i})),te.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},QDe=function(t,n){var r=In(t,{value:n}),i=Te(r,2),a=i[0],o=i[1],s=d.useMemo(function(){return Rv(a)},[a]);return[s,o]},JDe=function(t){var n=t.colors,r=t.children,i=t.direction,a=i===void 0?"to right":i,o=t.type,s=t.prefixCls,l=d.useMemo(function(){return n.map(function(c,u){var f=Rv(c);return o==="alpha"&&u===n.length-1&&(f=new yu(f.setA(1))),f.toRgbString()}).join(",")},[n,o]);return te.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},eFe=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,a=t.onChange,o=t.onChangeComplete,s=t.color,l=t.type,c=d.useRef(),u=d.useRef(),f=d.useRef(s),p=function(k){return l==="hue"?k.getHue():k.a*100},h=Vn(function(C){var k=ype({offset:C,targetRef:u,containerRef:c,color:s,type:l});f.current=k,a(p(k))}),m=wpe({color:s,targetRef:u,containerRef:c,calculate:function(){return bpe(s,l)},onDragChange:h,onDragChangeComplete:function(){o(p(f.current))},direction:"x",disabledDrag:i}),g=Te(m,2),v=g[0],y=g[1],w=te.useMemo(function(){if(l==="hue"){var C=s.toHsb();C.s=1,C.b=1,C.a=1;var k=new yu(C);return k}return s},[s,l]),b=te.useMemo(function(){return r.map(function(C){return"".concat(C.color," ").concat(C.percent,"%")})},[r]);return te.createElement("div",{ref:c,className:Ee("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},te.createElement(Spe,{prefixCls:n},te.createElement(Cpe,{x:v.x,y:v.y,ref:u},te.createElement(xpe,{size:"small",color:w.toHexString(),prefixCls:n})),te.createElement(JDe,{colors:b,type:l,prefixCls:n})))};function tFe(e){return d.useMemo(function(){var t=e||{},n=t.slider;return[n||eFe]},[e])}var nFe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],rFe=d.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,a=i===void 0?GDe:i,o=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,f=e.disabledAlpha,p=f===void 0?!1:f,h=e.disabled,m=h===void 0?!1:h,g=e.components,v=tFe(g),y=Te(v,1),w=y[0],b=QDe(r||YDe,n),C=Te(b,2),k=C[0],S=C[1],_=d.useMemo(function(){return k.setA(1).toRgbString()},[k]),E=function(K,L){n||S(K),o==null||o(K,L)},$=function(K){return new yu(k.setHue(K))},M=function(K){return new yu(k.setA(K/100))},P=function(K){E($(K),{type:"hue",value:K})},R=function(K){E(M(K),{type:"alpha",value:K})},O=function(K){s&&s($(K))},j=function(K){s&&s(M(K))},I=Ee("".concat(a,"-panel"),l,ne({},"".concat(a,"-panel-disabled"),m)),A={prefixCls:a,disabled:m,color:k},N=te.createElement(te.Fragment,null,te.createElement(ZDe,tt({onChange:E},A,{onChangeComplete:s})),te.createElement("div",{className:"".concat(a,"-slider-container")},te.createElement("div",{className:Ee("".concat(a,"-slider-group"),ne({},"".concat(a,"-slider-group-disabled-alpha"),p))},te.createElement(w,tt({},A,{type:"hue",colors:nFe,min:0,max:359,value:k.getHue(),onChange:P,onChangeComplete:O})),!p&&te.createElement(w,tt({},A,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:_}],min:0,max:100,value:k.a*100,onChange:R,onChangeComplete:j}))),te.createElement(QL,{color:k.toRgbString(),prefixCls:a})));return te.createElement("div",{className:I,style:c,ref:t},typeof u=="function"?u(N):N)});const b2=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",iFe=(e,t)=>e?b2(e,t):"";let _l=function(){function e(t){Ar(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:a,percent:o}=i;return{color:new e(a),percent:o}}),this.metaColor=new yu(this.colors[0].color.metaColor)):this.metaColor=new yu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Dr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return iFe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var aFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},oFe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:aFe}))},bc=d.forwardRef(oFe),_pe=te.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,o=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=te.useState(s||r),p=Te(f,2),h=p[0],m=p[1];return te.useEffect(function(){(r||s)&&m(!0)},[r,s]),h?te.createElement("div",{ref:t,className:Ee("".concat(n,"-content"),ne(ne({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:a,role:l},te.createElement("div",{className:Ee("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},o)):null});_pe.displayName="PanelContent";var sFe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],kpe=te.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,a=e.isActive,o=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,p=f===void 0?{}:f,h=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,y=e.extra,w=e.header,b=e.expandIcon,C=e.openMotion,k=e.destroyInactivePanel,S=e.children,_=Ht(e,sFe),E=m==="disabled",$=y!=null&&typeof y!="boolean",M=ne(ne(ne({onClick:function(){o==null||o(v)},onKeyDown:function(N){(N.key==="Enter"||N.keyCode===mt.ENTER||N.which===mt.ENTER)&&(o==null||o(v))},role:g?"tab":"button"},"aria-expanded",a),"aria-disabled",E),"tabIndex",E?-1:0),P=typeof b=="function"?b(e):te.createElement("i",{className:"arrow"}),R=P&&te.createElement("div",tt({className:"".concat(h,"-expand-icon")},["header","icon"].includes(m)?M:{}),P),O=Ee("".concat(h,"-item"),ne(ne({},"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),E),l),j=Ee(i,"".concat(h,"-header"),ne({},"".concat(h,"-collapsible-").concat(m),!!m),u.header),I=q({className:j,style:p.header},["header","icon"].includes(m)?{}:M);return te.createElement("div",tt({},_,{ref:t,className:O}),te.createElement("div",I,r&&R,te.createElement("span",tt({className:"".concat(h,"-header-text")},m==="header"?M:{}),w),$&&te.createElement("div",{className:"".concat(h,"-extra")},y)),te.createElement(Ca,tt({visible:a,leavedClassName:"".concat(h,"-content-hidden")},C,{forceRender:s,removeOnLeave:k}),function(A,N){var F=A.className,K=A.style;return te.createElement(_pe,{ref:N,prefixCls:h,className:F,classNames:u,style:K,styles:p,isActive:a,forceRender:s,role:g?"tabpanel":void 0},S)}))}),lFe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],cFe=function(t,n){var r=n.prefixCls,i=n.accordion,a=n.collapsible,o=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,p){var h=f.children,m=f.label,g=f.key,v=f.collapsible,y=f.onItemClick,w=f.destroyInactivePanel,b=Ht(f,lFe),C=String(g??p),k=v??a,S=w??o,_=function(M){k!=="disabled"&&(s(M),y==null||y(M))},E=!1;return i?E=l[0]===C:E=l.indexOf(C)>-1,te.createElement(kpe,tt({},b,{prefixCls:r,key:C,panelKey:C,isActive:E,accordion:i,openMotion:c,expandIcon:u,header:m,collapsible:k,onItemClick:_,destroyInactivePanel:S}),h)})},uFe=function(t,n,r){if(!t)return null;var i=r.prefixCls,a=r.accordion,o=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,p=t.key||String(n),h=t.props,m=h.header,g=h.headerClass,v=h.destroyInactivePanel,y=h.collapsible,w=h.onItemClick,b=!1;a?b=c[0]===p:b=c.indexOf(p)>-1;var C=y??o,k=function(E){C!=="disabled"&&(l(E),w==null||w(E))},S={key:p,panelKey:p,header:m,headerClass:g,isActive:b,prefixCls:i,destroyInactivePanel:v??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:k,expandIcon:f,collapsible:C};return typeof t.type=="string"?t:(Object.keys(S).forEach(function(_){typeof S[_]>"u"&&delete S[_]}),te.cloneElement(t,S))};function dFe(e,t,n){return Array.isArray(e)?cFe(e,n):Xi(t).map(function(r,i){return uFe(r,i,n)})}function fFe(e){var t=e;if(!Array.isArray(t)){var n=Kt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var pFe=te.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,a=i===void 0?!1:i,o=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,p=e.expandIcon,h=e.activeKey,m=e.defaultActiveKey,g=e.onChange,v=e.items,y=Ee(r,l),w=In([],{value:h,onChange:function($){return g==null?void 0:g($)},defaultValue:m,postState:fFe}),b=Te(w,2),C=b[0],k=b[1],S=function($){return k(function(){if(s)return C[0]===$?[]:[$];var M=C.indexOf($),P=M>-1;return P?C.filter(function(R){return R!==$}):[].concat(lt(C),[$])})};Br(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var _=dFe(v,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:u,destroyInactivePanel:a,onItemClick:S,activeKey:C});return te.createElement("div",tt({ref:t,className:y,style:o,role:s?"tablist":void 0},Fi(e,{aria:!0,data:!0})),_)});const JL=Object.assign(pFe,{Panel:kpe});JL.Panel;const hFe=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(Xt),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n("collapse",r),s=Ee({[`${o}-no-arrow`]:!a},i);return d.createElement(JL.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))}),S4=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},k)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},k),{padding:0,textAlign:"start"})}]},nDe=e=>({zIndexPopup:e.zIndexPopupBase+GL+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),upe=Jn("Message",e=>{const t=Hn(e,{height:150});return[tDe(t)]},nDe);var rDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,type:n,icon:r,children:i}=e;return d.createElement("div",{className:Ee(`${t}-custom-content`,`${t}-${n}`)},r||iDe[n],d.createElement("span",null,i))},aDe=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=rDe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Xt),l=t||s("message"),c=qr(l),[u,f,p]=upe(l,c);return u(d.createElement(ape,Object.assign({},o,{prefixCls:l,className:Ee(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(dpe,{prefixCls:l,type:r,icon:i},a)})))};function oDe(e,t){return{motionName:t??`${e}-move-up`}}function YL(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var sDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=qr(n),[i,a,o]=upe(n,r);return i(d.createElement(spe,{classNames:{list:Ee(a,o,r)}},t))},dDe=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(uDe,{prefixCls:n,key:r},e)},fDe=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=cDe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:h}=d.useContext(Xt),m=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??lDe}),v=()=>Ee({[`${m}-rtl`]:s??h==="rtl"}),y=()=>oDe(m,l),w=d.createElement("span",{className:`${m}-close-x`},d.createElement(Eu,{className:`${m}-close-icon`})),[b,C]=lpe({prefixCls:m,style:g,className:v,motion:y,closable:!1,closeIcon:w,duration:o,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:dDe});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:m,message:p})),C});let RG=0;function fpe(e){const t=d.useRef(null);return Hg(),[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:c,prefixCls:u,message:f}=t.current,p=`${u}-notice`,{content:h,icon:m,type:g,key:v,className:y,style:w,onClose:b}=l,C=sDe(l,["content","icon","type","key","className","style","onClose"]);let k=v;return k==null&&(RG+=1,k=`antd-message-${RG}`),YL(S=>(c(Object.assign(Object.assign({},C),{key:k,content:d.createElement(dpe,{prefixCls:u,type:g,icon:m},h),placement:"top",className:Ee(g&&`${p}-${g}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),w),onClose:()=>{b==null||b(),S()}})),()=>{r(k)}))},o={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,p)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let m,g;typeof f=="function"?g=f:(m=f,g=p);const v=Object.assign(Object.assign({onClose:g,duration:m},h),{type:l});return i(v)};o[l]=c}),o},[]),d.createElement(fDe,Object.assign({key:"message-holder"},e,{ref:t}))]}function ppe(e){return fpe(e)}function pDe(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(i=>[].concat(lt(i),[r])),()=>{t(i=>i.filter(a=>a!==r))}),[]);return[e,n]}function hr(){hr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(A,N,F){A[N]=F.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(A,N,F){return Object.defineProperty(A,N,{value:F,enumerable:!0,configurable:!0,writable:!0}),A[N]}try{c({},"")}catch{c=function(F,K,L){return F[K]=L}}function u(A,N,F,K){var L=N&&N.prototype instanceof y?N:y,V=Object.create(L.prototype),B=new j(K||[]);return i(V,"_invoke",{value:M(A,F,B)}),V}function f(A,N,F){try{return{type:"normal",arg:A.call(N,F)}}catch(K){return{type:"throw",arg:K}}}t.wrap=u;var p="suspendedStart",h="suspendedYield",m="executing",g="completed",v={};function y(){}function w(){}function b(){}var C={};c(C,o,function(){return this});var k=Object.getPrototypeOf,S=k&&k(k(I([])));S&&S!==n&&r.call(S,o)&&(C=S);var _=b.prototype=y.prototype=Object.create(C);function E(A){["next","throw","return"].forEach(function(N){c(A,N,function(F){return this._invoke(N,F)})})}function $(A,N){function F(L,V,B,U){var Y=f(A[L],A,V);if(Y.type!=="throw"){var ee=Y.arg,ie=ee.value;return ie&&Kt(ie)=="object"&&r.call(ie,"__await")?N.resolve(ie.__await).then(function(Z){F("next",Z,B,U)},function(Z){F("throw",Z,B,U)}):N.resolve(ie).then(function(Z){ee.value=Z,B(ee)},function(Z){return F("throw",Z,B,U)})}U(Y.arg)}var K;i(this,"_invoke",{value:function(V,B){function U(){return new N(function(Y,ee){F(V,B,Y,ee)})}return K=K?K.then(U,U):U()}})}function M(A,N,F){var K=p;return function(L,V){if(K===m)throw Error("Generator is already running");if(K===g){if(L==="throw")throw V;return{value:e,done:!0}}for(F.method=L,F.arg=V;;){var B=F.delegate;if(B){var U=P(B,F);if(U){if(U===v)continue;return U}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(K===p)throw K=g,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);K=m;var Y=f(A,N,F);if(Y.type==="normal"){if(K=F.done?g:h,Y.arg===v)continue;return{value:Y.arg,done:F.done}}Y.type==="throw"&&(K=g,F.method="throw",F.arg=Y.arg)}}}function P(A,N){var F=N.method,K=A.iterator[F];if(K===e)return N.delegate=null,F==="throw"&&A.iterator.return&&(N.method="return",N.arg=e,P(A,N),N.method==="throw")||F!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+F+"' method")),v;var L=f(K,A.iterator,N.arg);if(L.type==="throw")return N.method="throw",N.arg=L.arg,N.delegate=null,v;var V=L.arg;return V?V.done?(N[A.resultName]=V.value,N.next=A.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,v):V:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,v)}function R(A){var N={tryLoc:A[0]};1 in A&&(N.catchLoc=A[1]),2 in A&&(N.finallyLoc=A[2],N.afterLoc=A[3]),this.tryEntries.push(N)}function O(A){var N=A.completion||{};N.type="normal",delete N.arg,A.completion=N}function j(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(R,this),this.reset(!0)}function I(A){if(A||A===""){var N=A[o];if(N)return N.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var F=-1,K=function L(){for(;++F=0;--L){var V=this.tryEntries[L],B=V.completion;if(V.tryLoc==="root")return K("end");if(V.tryLoc<=this.prev){var U=r.call(V,"catchLoc"),Y=r.call(V,"finallyLoc");if(U&&Y){if(this.prev=0;--K){var L=this.tryEntries[K];if(L.tryLoc<=this.prev&&r.call(L,"finallyLoc")&&this.prev=0;--F){var K=this.tryEntries[F];if(K.finallyLoc===N)return this.complete(K.completion,K.afterLoc),O(K),v}},catch:function(N){for(var F=this.tryEntries.length-1;F>=0;--F){var K=this.tryEntries[F];if(K.tryLoc===N){var L=K.completion;if(L.type==="throw"){var V=L.arg;O(K)}return V}}throw Error("illegal catch attempt")},delegateYield:function(N,F,K){return this.delegate={iterator:I(N),resultName:F,nextLoc:K},this.method==="next"&&(this.arg=e),v}},t}function IG(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function pa(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){IG(a,r,i,o,s,"next",l)}function s(l){IG(a,r,i,o,s,"throw",l)}o(void 0)})}}var y4=q({},Goe),hDe=y4.version,x9=y4.render,mDe=y4.unmountComponentAtNode,e8;try{var gDe=Number((hDe||"").split(".")[0]);gDe>=18&&(e8=y4.createRoot)}catch{}function jG(e){var t=y4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Kt(t)==="object"&&(t.usingClientEntryPoint=e)}var h6="__rc_react_root__";function vDe(e,t){jG(!0);var n=t[h6]||e8(t);jG(!1),n.render(e),t[h6]=n}function yDe(e,t){x9==null||x9(e,t)}function bDe(e,t){if(e8){vDe(e,t);return}yDe(e,t)}function wDe(e){return vj.apply(this,arguments)}function vj(){return vj=pa(hr().mark(function e(t){return hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[h6])===null||i===void 0||i.unmount(),delete t[h6]}));case 1:case"end":return r.stop()}},e)})),vj.apply(this,arguments)}function xDe(e){mDe(e)}function SDe(e){return yj.apply(this,arguments)}function yj(){return yj=pa(hr().mark(function e(t){return hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(e8===void 0){r.next=2;break}return r.abrupt("return",wDe(t));case 2:xDe(t);case 3:case"end":return r.stop()}},e)})),yj.apply(this,arguments)}const CDe=(e,t)=>(bDe(e,t),()=>SDe(t));let _De=CDe;function XL(){return _De}const S9=()=>({height:0,opacity:0}),NG=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},kDe=e=>({height:e?e.offsetHeight:0}),C9=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",P0=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:n3}-motion-collapse`,onAppearStart:S9,onEnterStart:S9,onAppearActive:NG,onEnterActive:NG,onLeaveStart:kDe,onLeaveActive:S9,onAppearEnd:C9,onEnterEnd:C9,onLeaveEnd:C9,motionDeadline:500}},oo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,b4=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},EDe=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},$De=Afe("Wave",e=>[EDe(e)]),t8=`${n3}-wave-target`;function _9(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function MDe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return _9(t)?t:_9(n)?n:_9(r)?r:null}function k9(e){return Number.isNaN(e)?0:e}const TDe=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,a=d.useRef(null),o=d.useRef(null);d.useEffect(()=>{o.current=i()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,p]=d.useState(0),[h,m]=d.useState(0),[g,v]=d.useState(0),[y,w]=d.useState(0),[b,C]=d.useState(!1),k={left:f,top:h,width:g,height:y,borderRadius:c.map(E=>`${E}px`).join(" ")};s&&(k["--wave-color"]=s);function S(){const E=getComputedStyle(n);l(MDe(n));const $=E.position==="static",{borderLeftWidth:M,borderTopWidth:P}=E;p($?n.offsetLeft:k9(-parseFloat(M))),m($?n.offsetTop:k9(-parseFloat(P))),v(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:O,borderBottomLeftRadius:j,borderBottomRightRadius:I}=E;u([R,O,I,j].map(A=>k9(parseFloat(A))))}if(d.useEffect(()=>{if(n){const E=rr(()=>{S(),C(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(S),$.observe(n)),()=>{rr.cancel(E),$==null||$.disconnect()}}},[]),!b)return null;const _=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(t8));return d.createElement(Ca,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,$)=>{var M,P;if($.deadline||$.propertyName==="opacity"){const R=(M=a.current)===null||M===void 0?void 0:M.parentElement;(P=o.current)===null||P===void 0||P.call(o).then(()=>{R==null||R.remove()})}return!1}},(E,$)=>{let{className:M}=E;return d.createElement("div",{ref:ga(a,$),className:Ee(t,M,{"wave-quick":_}),style:k})})},PDe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const a=XL();let o=null;function s(){return o}o=a(d.createElement(TDe,Object.assign({},t,{target:e,registerUnmount:s})),i)},ODe=(e,t,n)=>{const{wave:r}=d.useContext(Xt),[,i,a]=ka(),o=Vn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${t8}`)||u,{showEffect:p}=r||{};(p||PDe)(f,{className:t,token:i,component:n,event:c,hashId:a})}),s=d.useRef(null);return c=>{rr.cancel(s.current),s.current=rr(()=>{o(c)})}},w4=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(Xt),a=d.useRef(null),o=i("wave"),[,s]=$De(o),l=ODe(a,Ee(o,s),r);if(te.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const f=p=>{!b4(p.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(p)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!te.isValidElement(t))return t??null;const c=Vf(t)?ga(bh(t),a):a;return aa(t,{ref:c})},Bi=e=>{const t=te.useContext(hg);return te.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},RDe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},IDe=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},jDe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},hpe=Jn("Space",e=>{const t=Hn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[IDe(t),jDe(t),RDe(t)]},()=>({}),{resetStyle:!1});var mpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(n8),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return Ee(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},NDe=e=>{let{children:t}=e;return d.createElement(n8.Provider,{value:null},t)},ADe=e=>{var{children:t}=e,n=mpe(e,["children"]);return d.createElement(n8.Provider,{value:n},t)},DDe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Xt),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=mpe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Bi(b=>r??b),p=t("space-compact",o),[h,m]=hpe(p),g=Ee(p,m,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:a,[`${p}-vertical`]:i==="vertical"},s,l),v=d.useContext(n8),y=Xi(c),w=d.useMemo(()=>y.map((b,C)=>{const k=(b==null?void 0:b.key)||`${p}-item-${C}`;return d.createElement(ADe,{key:k,compactSize:f,compactDirection:i,isFirstItem:C===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:C===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},b)}),[r,y,v]);return y.length===0?null:h(d.createElement("div",Object.assign({className:g},u),w))};var FDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=d.useContext(Xt),{prefixCls:r,size:i,className:a}=e,o=FDe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=ka();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=Ee(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return d.createElement(gpe.Provider,{value:i},d.createElement("div",Object.assign({},o,{className:u})))},AG=/^[\u4E00-\u9FA5]{2}$/,bj=AG.test.bind(AG);function ZL(e){return e==="danger"?{danger:!0}:{type:e}}function DG(e){return typeof e=="string"}function E9(e){return e==="text"||e==="link"}function BDe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&DG(e.type)&&bj(e.props.children)?aa(e,{children:e.props.children.split("").join(n)}):DG(e)?bj(e)?te.createElement("span",null,e.split("").join(n)):te.createElement("span",null,e):rpe(e)?te.createElement("span",null,e):e}function zDe(e,t){let n=!1;const r=[];return te.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),te.Children.map(r,i=>BDe(i,t))}["default","primary","danger"].concat(lt(vg));const wj=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=Ee(`${a}-icon`,n);return te.createElement("span",{ref:t,className:o,style:r},i)}),FG=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Ee(`${n}-loading-icon`,r);return te.createElement(wj,{prefixCls:n,className:o,style:i,ref:t},te.createElement(vu,{className:a}))}),$9=()=>({width:0,opacity:0,transform:"scale(0)"}),M9=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),HDe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?te.createElement(FG,{prefixCls:t,className:i,style:a}):te.createElement(Ca,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:$9,onAppearActive:M9,onEnterStart:$9,onEnterActive:M9,onLeaveStart:M9,onLeaveActive:$9},(l,c)=>{let{className:u,style:f}=l;const p=Object.assign(Object.assign({},a),f);return te.createElement(FG,{prefixCls:t,className:Ee(i,u),style:p,ref:c})})},LG=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),UDe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},LG(`${t}-primary`,i),LG(`${t}-danger`,a)]}};var WDe=["b"],VDe=["v"],T9=function(t){return Math.round(Number(t||0))},qDe=function(t){if(t instanceof ur)return t;if(t&&Kt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=Ht(n,WDe);return q(q({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},yu=function(e){$o(n,e);var t=ns(n);function n(r){return Ar(this,n),t.call(this,qDe(r))}return Dr(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=T9(i.s*100),o=T9(i.b*100),s=T9(i.h),l=i.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,o=Ht(i,VDe);return q(q({},o),{},{b:a,a:this.a})}}]),n}(ur),KDe="rc-color-picker",Rv=function(t){return t instanceof yu?t:new yu(t)},GDe=Rv("#1677ff"),vpe=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,a=t.color,o=t.type,s=i.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),f=u.width,p=u.height,h=f/2,m=p/2,g=(n.x+h)/l,v=1-(n.y+m)/c,y=a.toHsb(),w=g,b=(n.x+h)/l*360;if(o)switch(o){case"hue":return Rv(q(q({},y),{},{h:b<=0?0:b}));case"alpha":return Rv(q(q({},y),{},{a:w<=0?0:w}))}return Rv({h:y.h,s:g<=0?0:g,b:v>=1?1:v,a:y.a})},ype=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},QL=function(t){var n=t.color,r=t.prefixCls,i=t.className,a=t.style,o=t.onClick,s="".concat(r,"-color-block");return te.createElement("div",{className:Ee(s,i),style:a,onClick:o},te.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function YDe(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function bpe(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,o=e.calculate,s=e.color,l=e.disabledDrag,c=d.useState({x:0,y:0}),u=Te(c,2),f=u[0],p=u[1],h=d.useRef(null),m=d.useRef(null);d.useEffect(function(){p(o())},[s]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null}},[]);var g=function(C){var k=YDe(C),S=k.pageX,_=k.pageY,E=n.current.getBoundingClientRect(),$=E.x,M=E.y,P=E.width,R=E.height,O=t.current.getBoundingClientRect(),j=O.width,I=O.height,A=j/2,N=I/2,F=Math.max(0,Math.min(S-$,P))-A,K=Math.max(0,Math.min(_-M,R))-N,L={x:F,y:r==="x"?f.y:K};if(j===0&&I===0||j!==I)return!1;i==null||i(L)},v=function(C){C.preventDefault(),g(C)},y=function(C){C.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null,a==null||a()},w=function(C){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),!l&&(g(C),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),h.current=v,m.current=y)};return[f,w]}var wpe=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,a=t.prefixCls;return te.createElement("div",{className:Ee("".concat(a,"-handler"),ne({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},xpe=function(t){var n=t.children,r=t.style,i=t.prefixCls;return te.createElement("div",{className:"".concat(i,"-palette"),style:q({position:"relative"},r)},n)},Spe=d.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return te.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),XDe=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,a=t.onChangeComplete,o=t.disabled,s=d.useRef(),l=d.useRef(),c=d.useRef(n),u=Vn(function(g){var v=vpe({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),f=bpe({color:n,containerRef:s,targetRef:l,calculate:function(){return ype(n)},onDragChange:u,onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:o}),p=Te(f,2),h=p[0],m=p[1];return te.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},te.createElement(xpe,{prefixCls:i},te.createElement(Spe,{x:h.x,y:h.y,ref:l},te.createElement(wpe,{color:n.toRgbString(),prefixCls:i})),te.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},ZDe=function(t,n){var r=In(t,{value:n}),i=Te(r,2),a=i[0],o=i[1],s=d.useMemo(function(){return Rv(a)},[a]);return[s,o]},QDe=function(t){var n=t.colors,r=t.children,i=t.direction,a=i===void 0?"to right":i,o=t.type,s=t.prefixCls,l=d.useMemo(function(){return n.map(function(c,u){var f=Rv(c);return o==="alpha"&&u===n.length-1&&(f=new yu(f.setA(1))),f.toRgbString()}).join(",")},[n,o]);return te.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},JDe=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,a=t.onChange,o=t.onChangeComplete,s=t.color,l=t.type,c=d.useRef(),u=d.useRef(),f=d.useRef(s),p=function(k){return l==="hue"?k.getHue():k.a*100},h=Vn(function(C){var k=vpe({offset:C,targetRef:u,containerRef:c,color:s,type:l});f.current=k,a(p(k))}),m=bpe({color:s,targetRef:u,containerRef:c,calculate:function(){return ype(s,l)},onDragChange:h,onDragChangeComplete:function(){o(p(f.current))},direction:"x",disabledDrag:i}),g=Te(m,2),v=g[0],y=g[1],w=te.useMemo(function(){if(l==="hue"){var C=s.toHsb();C.s=1,C.b=1,C.a=1;var k=new yu(C);return k}return s},[s,l]),b=te.useMemo(function(){return r.map(function(C){return"".concat(C.color," ").concat(C.percent,"%")})},[r]);return te.createElement("div",{ref:c,className:Ee("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},te.createElement(xpe,{prefixCls:n},te.createElement(Spe,{x:v.x,y:v.y,ref:u},te.createElement(wpe,{size:"small",color:w.toHexString(),prefixCls:n})),te.createElement(QDe,{colors:b,type:l,prefixCls:n})))};function eFe(e){return d.useMemo(function(){var t=e||{},n=t.slider;return[n||JDe]},[e])}var tFe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],nFe=d.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,a=i===void 0?KDe:i,o=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,f=e.disabledAlpha,p=f===void 0?!1:f,h=e.disabled,m=h===void 0?!1:h,g=e.components,v=eFe(g),y=Te(v,1),w=y[0],b=ZDe(r||GDe,n),C=Te(b,2),k=C[0],S=C[1],_=d.useMemo(function(){return k.setA(1).toRgbString()},[k]),E=function(K,L){n||S(K),o==null||o(K,L)},$=function(K){return new yu(k.setHue(K))},M=function(K){return new yu(k.setA(K/100))},P=function(K){E($(K),{type:"hue",value:K})},R=function(K){E(M(K),{type:"alpha",value:K})},O=function(K){s&&s($(K))},j=function(K){s&&s(M(K))},I=Ee("".concat(a,"-panel"),l,ne({},"".concat(a,"-panel-disabled"),m)),A={prefixCls:a,disabled:m,color:k},N=te.createElement(te.Fragment,null,te.createElement(XDe,tt({onChange:E},A,{onChangeComplete:s})),te.createElement("div",{className:"".concat(a,"-slider-container")},te.createElement("div",{className:Ee("".concat(a,"-slider-group"),ne({},"".concat(a,"-slider-group-disabled-alpha"),p))},te.createElement(w,tt({},A,{type:"hue",colors:tFe,min:0,max:359,value:k.getHue(),onChange:P,onChangeComplete:O})),!p&&te.createElement(w,tt({},A,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:_}],min:0,max:100,value:k.a*100,onChange:R,onChangeComplete:j}))),te.createElement(QL,{color:k.toRgbString(),prefixCls:a})));return te.createElement("div",{className:I,style:c,ref:t},typeof u=="function"?u(N):N)});const b2=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",rFe=(e,t)=>e?b2(e,t):"";let Cl=function(){function e(t){Ar(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:a,percent:o}=i;return{color:new e(a),percent:o}}),this.metaColor=new yu(this.colors[0].color.metaColor)):this.metaColor=new yu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Dr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return rFe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var iFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},aFe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:iFe}))},bc=d.forwardRef(aFe),Cpe=te.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,o=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=te.useState(s||r),p=Te(f,2),h=p[0],m=p[1];return te.useEffect(function(){(r||s)&&m(!0)},[r,s]),h?te.createElement("div",{ref:t,className:Ee("".concat(n,"-content"),ne(ne({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:a,role:l},te.createElement("div",{className:Ee("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},o)):null});Cpe.displayName="PanelContent";var oFe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],_pe=te.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,a=e.isActive,o=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,p=f===void 0?{}:f,h=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,y=e.extra,w=e.header,b=e.expandIcon,C=e.openMotion,k=e.destroyInactivePanel,S=e.children,_=Ht(e,oFe),E=m==="disabled",$=y!=null&&typeof y!="boolean",M=ne(ne(ne({onClick:function(){o==null||o(v)},onKeyDown:function(N){(N.key==="Enter"||N.keyCode===mt.ENTER||N.which===mt.ENTER)&&(o==null||o(v))},role:g?"tab":"button"},"aria-expanded",a),"aria-disabled",E),"tabIndex",E?-1:0),P=typeof b=="function"?b(e):te.createElement("i",{className:"arrow"}),R=P&&te.createElement("div",tt({className:"".concat(h,"-expand-icon")},["header","icon"].includes(m)?M:{}),P),O=Ee("".concat(h,"-item"),ne(ne({},"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),E),l),j=Ee(i,"".concat(h,"-header"),ne({},"".concat(h,"-collapsible-").concat(m),!!m),u.header),I=q({className:j,style:p.header},["header","icon"].includes(m)?{}:M);return te.createElement("div",tt({},_,{ref:t,className:O}),te.createElement("div",I,r&&R,te.createElement("span",tt({className:"".concat(h,"-header-text")},m==="header"?M:{}),w),$&&te.createElement("div",{className:"".concat(h,"-extra")},y)),te.createElement(Ca,tt({visible:a,leavedClassName:"".concat(h,"-content-hidden")},C,{forceRender:s,removeOnLeave:k}),function(A,N){var F=A.className,K=A.style;return te.createElement(Cpe,{ref:N,prefixCls:h,className:F,classNames:u,style:K,styles:p,isActive:a,forceRender:s,role:g?"tabpanel":void 0},S)}))}),sFe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],lFe=function(t,n){var r=n.prefixCls,i=n.accordion,a=n.collapsible,o=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,p){var h=f.children,m=f.label,g=f.key,v=f.collapsible,y=f.onItemClick,w=f.destroyInactivePanel,b=Ht(f,sFe),C=String(g??p),k=v??a,S=w??o,_=function(M){k!=="disabled"&&(s(M),y==null||y(M))},E=!1;return i?E=l[0]===C:E=l.indexOf(C)>-1,te.createElement(_pe,tt({},b,{prefixCls:r,key:C,panelKey:C,isActive:E,accordion:i,openMotion:c,expandIcon:u,header:m,collapsible:k,onItemClick:_,destroyInactivePanel:S}),h)})},cFe=function(t,n,r){if(!t)return null;var i=r.prefixCls,a=r.accordion,o=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,p=t.key||String(n),h=t.props,m=h.header,g=h.headerClass,v=h.destroyInactivePanel,y=h.collapsible,w=h.onItemClick,b=!1;a?b=c[0]===p:b=c.indexOf(p)>-1;var C=y??o,k=function(E){C!=="disabled"&&(l(E),w==null||w(E))},S={key:p,panelKey:p,header:m,headerClass:g,isActive:b,prefixCls:i,destroyInactivePanel:v??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:k,expandIcon:f,collapsible:C};return typeof t.type=="string"?t:(Object.keys(S).forEach(function(_){typeof S[_]>"u"&&delete S[_]}),te.cloneElement(t,S))};function uFe(e,t,n){return Array.isArray(e)?lFe(e,n):Xi(t).map(function(r,i){return cFe(r,i,n)})}function dFe(e){var t=e;if(!Array.isArray(t)){var n=Kt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var fFe=te.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,a=i===void 0?!1:i,o=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,p=e.expandIcon,h=e.activeKey,m=e.defaultActiveKey,g=e.onChange,v=e.items,y=Ee(r,l),w=In([],{value:h,onChange:function($){return g==null?void 0:g($)},defaultValue:m,postState:dFe}),b=Te(w,2),C=b[0],k=b[1],S=function($){return k(function(){if(s)return C[0]===$?[]:[$];var M=C.indexOf($),P=M>-1;return P?C.filter(function(R){return R!==$}):[].concat(lt(C),[$])})};Br(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var _=uFe(v,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:u,destroyInactivePanel:a,onItemClick:S,activeKey:C});return te.createElement("div",tt({ref:t,className:y,style:o,role:s?"tablist":void 0},Fi(e,{aria:!0,data:!0})),_)});const JL=Object.assign(fFe,{Panel:_pe});JL.Panel;const pFe=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(Xt),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n("collapse",r),s=Ee({[`${o}-no-arrow`]:!a},i);return d.createElement(JL.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))}),x4=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),mFe=e=>({animationDuration:e,animationFillMode:"both"}),gFe=e=>({animationDuration:e,animationFillMode:"both"}),r8=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),hFe=e=>({animationDuration:e,animationFillMode:"both"}),mFe=e=>({animationDuration:e,animationFillMode:"both"}),r8=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${a}${e}-enter, ${a}${e}-appear - `]:Object.assign(Object.assign({},mFe(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},gFe(r)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},hFe(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},mFe(r)),{animationPlayState:"paused"}),[` ${a}${e}-enter${e}-enter-active, ${a}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},vFe=new ir("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),yFe=new ir("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),eB=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[r8(r,vFe,yFe,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},gFe=new ir("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),vFe=new ir("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),eB=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[r8(r,gFe,vFe,e.motionDurationMid,t),{[` ${i}${r}-enter, ${i}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},bFe=new ir("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wFe=new ir("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),xFe=new ir("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),SFe=new ir("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),CFe=new ir("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_Fe=new ir("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kFe=new ir("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),EFe=new ir("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),$Fe={"move-up":{inKeyframes:kFe,outKeyframes:EFe},"move-down":{inKeyframes:bFe,outKeyframes:wFe},"move-left":{inKeyframes:xFe,outKeyframes:SFe},"move-right":{inKeyframes:CFe,outKeyframes:_Fe}},O0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=$Fe[t];return[r8(r,i,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},yFe=new ir("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bFe=new ir("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),wFe=new ir("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xFe=new ir("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),SFe=new ir("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CFe=new ir("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_Fe=new ir("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kFe=new ir("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),EFe={"move-up":{inKeyframes:_Fe,outKeyframes:kFe},"move-down":{inKeyframes:yFe,outKeyframes:bFe},"move-left":{inKeyframes:wFe,outKeyframes:xFe},"move-right":{inKeyframes:SFe,outKeyframes:CFe}},O0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=EFe[t];return[r8(r,i,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},i8=new ir("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a8=new ir("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),o8=new ir("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s8=new ir("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),MFe=new ir("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),TFe=new ir("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),PFe=new ir("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),OFe=new ir("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),RFe={"slide-up":{inKeyframes:i8,outKeyframes:a8},"slide-down":{inKeyframes:o8,outKeyframes:s8},"slide-left":{inKeyframes:MFe,outKeyframes:TFe},"slide-right":{inKeyframes:PFe,outKeyframes:OFe}},yd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=RFe[t];return[r8(r,i,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},i8=new ir("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a8=new ir("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),o8=new ir("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s8=new ir("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$Fe=new ir("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),MFe=new ir("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),TFe=new ir("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),PFe=new ir("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),OFe={"slide-up":{inKeyframes:i8,outKeyframes:a8},"slide-down":{inKeyframes:o8,outKeyframes:s8},"slide-left":{inKeyframes:$Fe,outKeyframes:MFe},"slide-right":{inKeyframes:TFe,outKeyframes:PFe}},yd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=OFe[t];return[r8(r,i,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},tB=new ir("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),IFe=new ir("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),BG=new ir("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zG=new ir("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),jFe=new ir("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),NFe=new ir("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),AFe=new ir("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),DFe=new ir("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),FFe=new ir("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),LFe=new ir("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),BFe=new ir("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),zFe=new ir("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),HFe={zoom:{inKeyframes:tB,outKeyframes:IFe},"zoom-big":{inKeyframes:BG,outKeyframes:zG},"zoom-big-fast":{inKeyframes:BG,outKeyframes:zG},"zoom-left":{inKeyframes:AFe,outKeyframes:DFe},"zoom-right":{inKeyframes:FFe,outKeyframes:LFe},"zoom-up":{inKeyframes:jFe,outKeyframes:NFe},"zoom-down":{inKeyframes:BFe,outKeyframes:zFe}},_y=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=HFe[t];return[r8(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},tB=new ir("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),RFe=new ir("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),BG=new ir("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zG=new ir("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),IFe=new ir("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),jFe=new ir("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),NFe=new ir("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),AFe=new ir("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),DFe=new ir("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),FFe=new ir("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),LFe=new ir("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),BFe=new ir("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),zFe={zoom:{inKeyframes:tB,outKeyframes:RFe},"zoom-big":{inKeyframes:BG,outKeyframes:zG},"zoom-big-fast":{inKeyframes:BG,outKeyframes:zG},"zoom-left":{inKeyframes:NFe,outKeyframes:AFe},"zoom-right":{inKeyframes:DFe,outKeyframes:FFe},"zoom-up":{inKeyframes:IFe,outKeyframes:jFe},"zoom-down":{inKeyframes:LFe,outKeyframes:BFe}},_y=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=zFe[t];return[r8(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},UFe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:p,colorTextHeading:h,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:y,marginSM:w,paddingSM:b,paddingLG:C,paddingXS:k,motionDurationSlow:S,fontSizeIcon:_,contentPadding:E,fontHeight:$,fontHeightLG:M}=e,P=`${Me(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},ar(e)),{backgroundColor:i,border:P,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:first-child":{[` + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},HFe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:p,colorTextHeading:h,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:y,marginSM:w,paddingSM:b,paddingLG:C,paddingXS:k,motionDurationSlow:S,fontSizeIcon:_,contentPadding:E,fontHeight:$,fontHeightLG:M}=e,P=`${Me(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},ar(e)),{backgroundColor:i,border:P,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:first-child":{[` &, & > ${t}-header`]:{borderRadius:`${Me(l)} ${Me(l)} 0 0`}},"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${Me(l)} ${Me(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:v,cursor:"pointer",transition:`all ${S}, visibility 0s`},Vs(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},wh()),{fontSize:_,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:k,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub(k).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:M,marginInlineStart:e.calc(C).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Me(l)} ${Me(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},WFe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},VFe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[` + & > ${t}-header`]:{borderRadius:`0 0 ${Me(l)} ${Me(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:v,cursor:"pointer",transition:`all ${S}, visibility 0s`},Vs(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},wh()),{fontSize:_,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:k,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub(k).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:M,marginInlineStart:e.calc(C).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Me(l)} ${Me(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},UFe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},WFe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},qFe=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},KFe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),GFe=Jn("Collapse",e=>{const t=Hn(e,{collapseHeaderPaddingSM:`${Me(e.paddingXS)} ${Me(e.paddingSM)}`,collapseHeaderPaddingLG:`${Me(e.padding)} ${Me(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[UFe(t),VFe(t),qFe(t),WFe(t),S4(t)]},KFe),YFe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=d.useContext(Xt),{prefixCls:a,className:o,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:p="start",children:h,expandIcon:m}=e,g=Bi(P=>{var R;return(R=f??P)!==null&&R!==void 0?R:"middle"}),v=n("collapse",a),y=n(),[w,b,C]=GFe(v),k=d.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),S=m??(i==null?void 0:i.expandIcon),_=d.useCallback(function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const R=typeof S=="function"?S(P):d.createElement(bc,{rotate:P.isActive?r==="rtl"?-90:90:void 0,"aria-label":P.isActive?"expanded":"collapsed"});return aa(R,()=>{var O;return{className:Ee((O=R==null?void 0:R.props)===null||O===void 0?void 0:O.className,`${v}-arrow`)}})},[S,v]),E=Ee(`${v}-icon-position-${k}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},i==null?void 0:i.className,o,s,b,C),$=Object.assign(Object.assign({},P0(y)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),M=d.useMemo(()=>h?Xi(h).map((P,R)=>{var O,j;const I=P.props;if(I!=null&&I.disabled){const A=(O=P.key)!==null&&O!==void 0?O:String(R),N=Object.assign(Object.assign({},$r(P.props,["disabled"])),{key:A,collapsible:(j=I.collapsible)!==null&&j!==void 0?j:"disabled"});return aa(P,N)}return P}):null,[h]);return w(d.createElement(JL,Object.assign({ref:t,openMotion:$},$r(e,["rootClassName"]),{expandIcon:_,prefixCls:v,className:E,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),M))}),l8=Object.assign(YFe,{Panel:hFe}),Xo=e=>e instanceof _l?e:new _l(e),r_=e=>Math.round(Number(e||0)),nB=e=>r_(e.toHsb().a*100),i_=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Xo(r)}return n.a=1,Xo(n)},Epe=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(lt(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(Xo),t)),$pe=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),o=new yu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},HG=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},XFe=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[a]=Ga("ColorPicker"),[,o]=ka(),[s]=In(P9(n),{value:P9(n),postState:P9}),l=`${t}-presets`,c=d.useMemo(()=>s.reduce((p,h,m)=>{const{defaultOpen:g=!0}=h;return g&&p.push(HG(h,m)),p},[]),[s]),u=p=>{i==null||i(p)},f=s.map((p,h)=>{var m;return{key:HG(p,h),label:te.createElement("div",{className:`${l}-label`},p==null?void 0:p.label),children:te.createElement("div",{className:`${l}-items`},Array.isArray(p==null?void 0:p.colors)&&((m=p.colors)===null||m===void 0?void 0:m.length)>0?p.colors.map((g,v)=>te.createElement(QL,{key:`preset-${v}-${g.toHexString()}`,color:Xo(g).toRgbString(),prefixCls:t,className:Ee(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:$pe(g,o.colorBgElevated)}),onClick:()=>u(g)})):te.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return te.createElement("div",{className:l},te.createElement(l8,{defaultActiveKey:c,ghost:!0,items:f}))},Mpe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Hn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Tpe=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:t_(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:t_(l),p=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:t_(c),h=$pe(new _l(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},ZFe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:wh(),"> a":{color:"currentColor"},"&:not(:disabled)":Vs(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Ppe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),QFe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),JFe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),eLe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),rB=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Ppe(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),tLe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},eLe(e))}),nLe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),c8=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?nLe:tLe;return Object.assign(Object.assign({},a(e)),Ppe(e.componentCls,t,n))},u8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},c8(e,r,i))}),d8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},c8(e,r,i))}),f8=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),p8=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},c8(e,n,r))}),fh=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},c8(e,r,i,n))}),rLe=e=>{const{componentCls:t}=e;return vg.reduce((n,r)=>{const i=e[`${r}6`],a=e[`${r}1`],o=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${Me(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},u8(e,e.colorTextLightSolid,i,{background:o},{background:c})),d8(e,i,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),f8(e)),p8(e,a,{background:s},{background:l})),fh(e,i,"link",{color:o},{color:c})),fh(e,i,"text",{color:o,background:a},{color:c,background:l}))})},{})},iLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},u8(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),f8(e)),p8(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),fh(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),rB(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),aLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},d8(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),f8(e)),p8(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),fh(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),rB(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),oLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},u8(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),d8(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),f8(e)),p8(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),fh(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),fh(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),rB(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sLe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:iLe(e),[`${t}-color-primary`]:aLe(e),[`${t}-color-dangerous`]:oLe(e)},rLe(e))},lLe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},d8(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),fh(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),u8(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),fh(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),iB=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${Me(l)} ${Me(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:QFe(e)},{[`${n}${n}-round${t}`]:JFe(e)}]},cLe=e=>{const t=Hn(e,{fontSize:e.contentFontSize});return iB(t,e.componentCls)},uLe=e=>{const t=Hn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return iB(t,`${e.componentCls}-sm`)},dLe=e=>{const t=Hn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return iB(t,`${e.componentCls}-lg`)},fLe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},pLe=Jn("Button",e=>{const t=Mpe(e);return[ZFe(t),cLe(t),uLe(t),dLe(t),fLe(t),sLe(t),lLe(t),WDe(t)]},Tpe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function hLe(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function mLe(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Wg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},hLe(e,r,t)),mLe(n,r,t))}}function gLe(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function vLe(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function yLe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},gLe(e,t)),vLe(e.componentCls,t))}}const bLe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},wLe=Sy(["Button","compact"],e=>{const t=Mpe(e);return[Wg(t),yLe(t),bLe(t)]},Tpe);var xLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a;const{loading:o=!1,prefixCls:s,color:l,variant:c,type:u,danger:f=!1,shape:p="default",size:h,styles:m,disabled:g,className:v,rootClassName:y,children:w,icon:b,iconPosition:C="start",ghost:k=!1,block:S=!1,htmlType:_="button",classNames:E,style:$={},autoInsertSpace:M,autoFocus:P}=e,R=xLe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),O=u||"default",[j,I]=d.useMemo(()=>{if(l&&c)return[l,c];const We=CLe[O]||[];return f?["danger",We[1]]:We},[u,l,c,f]),N=j==="danger"?"dangerous":j,{getPrefixCls:F,direction:K,button:L}=d.useContext(Xt),V=(n=M??(L==null?void 0:L.autoInsertSpace))!==null&&n!==void 0?n:!0,B=F("btn",s),[U,Y,ee]=pLe(B),ie=d.useContext(ma),Z=g??ie,X=d.useContext(vpe),ae=d.useMemo(()=>SLe(o),[o]),[oe,le]=d.useState(ae.loading),[ce,pe]=d.useState(!1),me=d.useRef(null),re=ku(t,me),fe=d.Children.count(w)===1&&!b&&!E9(I),ve=d.useRef(!0);te.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),d.useEffect(()=>{let We=null;ae.delay>0?We=setTimeout(()=>{We=null,le(!0)},ae.delay):le(ae.loading);function ge(){We&&(clearTimeout(We),We=null)}return ge},[ae]),d.useEffect(()=>{if(!me.current||!V)return;const We=me.current.textContent||"";fe&&bj(We)?ce||pe(!0):ce&&pe(!1)}),d.useEffect(()=>{P&&me.current&&me.current.focus()},[]);const $e=te.useCallback(We=>{var ge;if(oe||Z){We.preventDefault();return}(ge=e.onClick)===null||ge===void 0||ge.call(e,We)},[e.onClick,oe,Z]),{compactSize:Ce,compactItemClassnames:be}=$u(B,K),Se={large:"lg",small:"sm",middle:void 0},we=Bi(We=>{var ge,ze;return(ze=(ge=h??Ce)!==null&&ge!==void 0?ge:X)!==null&&ze!==void 0?ze:We}),se=we&&(r=Se[we])!==null&&r!==void 0?r:"",ye=oe?"loading":b,Oe=$r(R,["navigate"]),z=Ee(B,Y,ee,{[`${B}-${p}`]:p!=="default"&&p,[`${B}-${O}`]:O,[`${B}-dangerous`]:f,[`${B}-color-${N}`]:N,[`${B}-variant-${I}`]:I,[`${B}-${se}`]:se,[`${B}-icon-only`]:!w&&w!==0&&!!ye,[`${B}-background-ghost`]:k&&!E9(I),[`${B}-loading`]:oe,[`${B}-two-chinese-chars`]:ce&&V&&!oe,[`${B}-block`]:S,[`${B}-rtl`]:K==="rtl",[`${B}-icon-end`]:C==="end"},be,v,y,L==null?void 0:L.className),H=Object.assign(Object.assign({},L==null?void 0:L.style),$),G=Ee(E==null?void 0:E.icon,(i=L==null?void 0:L.classNames)===null||i===void 0?void 0:i.icon),de=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((a=L==null?void 0:L.styles)===null||a===void 0?void 0:a.icon)||{}),xe=b&&!oe?te.createElement(wj,{prefixCls:B,className:G,style:de},b):typeof o=="object"&&o.icon?te.createElement(wj,{prefixCls:B,className:G,style:de},o.icon):te.createElement(UDe,{existIcon:!!b,prefixCls:B,loading:oe,mount:ve.current}),he=w||w===0?HDe(w,fe&&V):null;if(Oe.href!==void 0)return U(te.createElement("a",Object.assign({},Oe,{className:Ee(z,{[`${B}-disabled`]:Z}),href:Z?void 0:Oe.href,style:H,onClick:$e,ref:re,tabIndex:Z?-1:0}),xe,he));let Ue=te.createElement("button",Object.assign({},R,{type:_,className:z,style:H,onClick:$e,disabled:Z,ref:re}),xe,he,be&&te.createElement(wLe,{prefixCls:B}));return E9(I)||(Ue=te.createElement(x4,{component:"Button",disabled:oe},Ue)),U(Ue)}),Yt=_Le;Yt.Group=BDe;Yt.__ANT_BUTTON=!0;function O9(e){return!!(e!=null&&e.then)}const aB=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),p=d.useRef(null),[h,m]=gg(!1),g=function(){a==null||a.apply(void 0,arguments)};d.useEffect(()=>{let w=null;return o&&(w=setTimeout(()=>{var b;(b=p.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[]);const v=w=>{O9(w)&&(m(!0),w.then(function(){m(!1,!0),g.apply(void 0,arguments),f.current=!1},b=>{if(m(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(b)}))},y=w=>{if(f.current)return;if(f.current=!0,!u){g();return}let b;if(s){if(b=u(w),c&&!O9(b)){f.current=!1,g(w);return}}else if(u.length)b=u(a),f.current=!1;else if(b=u(),!O9(b)){g();return}v(b)};return d.createElement(Yt,Object.assign({},ZL(t),{onClick:y,loading:h,prefixCls:r},i,{ref:p}),n)},C4=te.createContext({}),{Provider:Ope}=C4,UG=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:l}=d.useContext(C4);return i?te.createElement(aB,{isSilent:r,actionFn:s,close:function(){o==null||o.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},WG=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:l}=d.useContext(C4);return te.createElement(aB,{isSilent:n,type:o||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},a)};var Rpe=d.createContext(null),VG=[];function kLe(e,t){var n=d.useState(function(){if(!Ws())return null;var m=document.createElement("div");return m}),r=Te(n,1),i=r[0],a=d.useRef(!1),o=d.useContext(Rpe),s=d.useState(VG),l=Te(s,2),c=l[0],u=l[1],f=o||(a.current?void 0:function(m){u(function(g){var v=[m].concat(lt(g));return v})});function p(){i.parentElement||document.body.appendChild(i),a.current=!0}function h(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),a.current=!1}return nr(function(){return e?o?o(p):p():h(),h},[e]),nr(function(){c.length&&(c.forEach(function(m){return m()}),u(VG))},[c]),[i,f]}function ELe(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";YE(` + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},VFe=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},qFe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),KFe=Jn("Collapse",e=>{const t=Hn(e,{collapseHeaderPaddingSM:`${Me(e.paddingXS)} ${Me(e.paddingSM)}`,collapseHeaderPaddingLG:`${Me(e.padding)} ${Me(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[HFe(t),WFe(t),VFe(t),UFe(t),x4(t)]},qFe),GFe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=d.useContext(Xt),{prefixCls:a,className:o,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:p="start",children:h,expandIcon:m}=e,g=Bi(P=>{var R;return(R=f??P)!==null&&R!==void 0?R:"middle"}),v=n("collapse",a),y=n(),[w,b,C]=KFe(v),k=d.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),S=m??(i==null?void 0:i.expandIcon),_=d.useCallback(function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const R=typeof S=="function"?S(P):d.createElement(bc,{rotate:P.isActive?r==="rtl"?-90:90:void 0,"aria-label":P.isActive?"expanded":"collapsed"});return aa(R,()=>{var O;return{className:Ee((O=R==null?void 0:R.props)===null||O===void 0?void 0:O.className,`${v}-arrow`)}})},[S,v]),E=Ee(`${v}-icon-position-${k}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},i==null?void 0:i.className,o,s,b,C),$=Object.assign(Object.assign({},P0(y)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),M=d.useMemo(()=>h?Xi(h).map((P,R)=>{var O,j;const I=P.props;if(I!=null&&I.disabled){const A=(O=P.key)!==null&&O!==void 0?O:String(R),N=Object.assign(Object.assign({},$r(P.props,["disabled"])),{key:A,collapsible:(j=I.collapsible)!==null&&j!==void 0?j:"disabled"});return aa(P,N)}return P}):null,[h]);return w(d.createElement(JL,Object.assign({ref:t,openMotion:$},$r(e,["rootClassName"]),{expandIcon:_,prefixCls:v,className:E,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),M))}),l8=Object.assign(GFe,{Panel:pFe}),Yo=e=>e instanceof Cl?e:new Cl(e),n_=e=>Math.round(Number(e||0)),nB=e=>n_(e.toHsb().a*100),r_=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Yo(r)}return n.a=1,Yo(n)},kpe=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(lt(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(Yo),t)),Epe=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),o=new yu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},HG=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},YFe=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[a]=Ga("ColorPicker"),[,o]=ka(),[s]=In(P9(n),{value:P9(n),postState:P9}),l=`${t}-presets`,c=d.useMemo(()=>s.reduce((p,h,m)=>{const{defaultOpen:g=!0}=h;return g&&p.push(HG(h,m)),p},[]),[s]),u=p=>{i==null||i(p)},f=s.map((p,h)=>{var m;return{key:HG(p,h),label:te.createElement("div",{className:`${l}-label`},p==null?void 0:p.label),children:te.createElement("div",{className:`${l}-items`},Array.isArray(p==null?void 0:p.colors)&&((m=p.colors)===null||m===void 0?void 0:m.length)>0?p.colors.map((g,v)=>te.createElement(QL,{key:`preset-${v}-${g.toHexString()}`,color:Yo(g).toRgbString(),prefixCls:t,className:Ee(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:Epe(g,o.colorBgElevated)}),onClick:()=>u(g)})):te.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return te.createElement("div",{className:l},te.createElement(l8,{defaultActiveKey:c,ghost:!0,items:f}))},$pe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Hn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Mpe=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:e_(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:e_(l),p=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:e_(c),h=Epe(new Cl(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},XFe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:wh(),"> a":{color:"currentColor"},"&:not(:disabled)":Vs(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Tpe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ZFe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),QFe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),JFe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),rB=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Tpe(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),eLe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},JFe(e))}),tLe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),c8=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?tLe:eLe;return Object.assign(Object.assign({},a(e)),Tpe(e.componentCls,t,n))},u8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},c8(e,r,i))}),d8=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},c8(e,r,i))}),f8=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),p8=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},c8(e,n,r))}),fh=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},c8(e,r,i,n))}),nLe=e=>{const{componentCls:t}=e;return vg.reduce((n,r)=>{const i=e[`${r}6`],a=e[`${r}1`],o=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${Me(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},u8(e,e.colorTextLightSolid,i,{background:o},{background:c})),d8(e,i,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),f8(e)),p8(e,a,{background:s},{background:l})),fh(e,i,"link",{color:o},{color:c})),fh(e,i,"text",{color:o,background:a},{color:c,background:l}))})},{})},rLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},u8(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),f8(e)),p8(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),fh(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),rB(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),iLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},d8(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),f8(e)),p8(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),fh(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),rB(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),aLe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},u8(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),d8(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),f8(e)),p8(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),fh(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),fh(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),rB(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),oLe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:rLe(e),[`${t}-color-primary`]:iLe(e),[`${t}-color-dangerous`]:aLe(e)},nLe(e))},sLe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},d8(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),fh(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),u8(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),fh(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),iB=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${Me(l)} ${Me(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:ZFe(e)},{[`${n}${n}-round${t}`]:QFe(e)}]},lLe=e=>{const t=Hn(e,{fontSize:e.contentFontSize});return iB(t,e.componentCls)},cLe=e=>{const t=Hn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return iB(t,`${e.componentCls}-sm`)},uLe=e=>{const t=Hn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return iB(t,`${e.componentCls}-lg`)},dLe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},fLe=Jn("Button",e=>{const t=$pe(e);return[XFe(t),lLe(t),cLe(t),uLe(t),dLe(t),oLe(t),sLe(t),UDe(t)]},Mpe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function pLe(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function hLe(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Wg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},pLe(e,r,t)),hLe(n,r,t))}}function mLe(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function gLe(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function vLe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},mLe(e,t)),gLe(e.componentCls,t))}}const yLe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},bLe=Sy(["Button","compact"],e=>{const t=$pe(e);return[Wg(t),vLe(t),yLe(t)]},Mpe);var wLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a;const{loading:o=!1,prefixCls:s,color:l,variant:c,type:u,danger:f=!1,shape:p="default",size:h,styles:m,disabled:g,className:v,rootClassName:y,children:w,icon:b,iconPosition:C="start",ghost:k=!1,block:S=!1,htmlType:_="button",classNames:E,style:$={},autoInsertSpace:M,autoFocus:P}=e,R=wLe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),O=u||"default",[j,I]=d.useMemo(()=>{if(l&&c)return[l,c];const We=SLe[O]||[];return f?["danger",We[1]]:We},[u,l,c,f]),N=j==="danger"?"dangerous":j,{getPrefixCls:F,direction:K,button:L}=d.useContext(Xt),V=(n=M??(L==null?void 0:L.autoInsertSpace))!==null&&n!==void 0?n:!0,B=F("btn",s),[U,Y,ee]=fLe(B),ie=d.useContext(ma),Z=g??ie,X=d.useContext(gpe),ae=d.useMemo(()=>xLe(o),[o]),[oe,le]=d.useState(ae.loading),[ce,pe]=d.useState(!1),me=d.useRef(null),re=ku(t,me),fe=d.Children.count(w)===1&&!b&&!E9(I),ve=d.useRef(!0);te.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),d.useEffect(()=>{let We=null;ae.delay>0?We=setTimeout(()=>{We=null,le(!0)},ae.delay):le(ae.loading);function ge(){We&&(clearTimeout(We),We=null)}return ge},[ae]),d.useEffect(()=>{if(!me.current||!V)return;const We=me.current.textContent||"";fe&&bj(We)?ce||pe(!0):ce&&pe(!1)}),d.useEffect(()=>{P&&me.current&&me.current.focus()},[]);const $e=te.useCallback(We=>{var ge;if(oe||Z){We.preventDefault();return}(ge=e.onClick)===null||ge===void 0||ge.call(e,We)},[e.onClick,oe,Z]),{compactSize:Ce,compactItemClassnames:be}=$u(B,K),Se={large:"lg",small:"sm",middle:void 0},we=Bi(We=>{var ge,ze;return(ze=(ge=h??Ce)!==null&&ge!==void 0?ge:X)!==null&&ze!==void 0?ze:We}),se=we&&(r=Se[we])!==null&&r!==void 0?r:"",ye=oe?"loading":b,Oe=$r(R,["navigate"]),z=Ee(B,Y,ee,{[`${B}-${p}`]:p!=="default"&&p,[`${B}-${O}`]:O,[`${B}-dangerous`]:f,[`${B}-color-${N}`]:N,[`${B}-variant-${I}`]:I,[`${B}-${se}`]:se,[`${B}-icon-only`]:!w&&w!==0&&!!ye,[`${B}-background-ghost`]:k&&!E9(I),[`${B}-loading`]:oe,[`${B}-two-chinese-chars`]:ce&&V&&!oe,[`${B}-block`]:S,[`${B}-rtl`]:K==="rtl",[`${B}-icon-end`]:C==="end"},be,v,y,L==null?void 0:L.className),H=Object.assign(Object.assign({},L==null?void 0:L.style),$),G=Ee(E==null?void 0:E.icon,(i=L==null?void 0:L.classNames)===null||i===void 0?void 0:i.icon),de=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((a=L==null?void 0:L.styles)===null||a===void 0?void 0:a.icon)||{}),xe=b&&!oe?te.createElement(wj,{prefixCls:B,className:G,style:de},b):typeof o=="object"&&o.icon?te.createElement(wj,{prefixCls:B,className:G,style:de},o.icon):te.createElement(HDe,{existIcon:!!b,prefixCls:B,loading:oe,mount:ve.current}),he=w||w===0?zDe(w,fe&&V):null;if(Oe.href!==void 0)return U(te.createElement("a",Object.assign({},Oe,{className:Ee(z,{[`${B}-disabled`]:Z}),href:Z?void 0:Oe.href,style:H,onClick:$e,ref:re,tabIndex:Z?-1:0}),xe,he));let Ue=te.createElement("button",Object.assign({},R,{type:_,className:z,style:H,onClick:$e,disabled:Z,ref:re}),xe,he,be&&te.createElement(bLe,{prefixCls:B}));return E9(I)||(Ue=te.createElement(w4,{component:"Button",disabled:oe},Ue)),U(Ue)}),Yt=CLe;Yt.Group=LDe;Yt.__ANT_BUTTON=!0;function O9(e){return!!(e!=null&&e.then)}const aB=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),p=d.useRef(null),[h,m]=gg(!1),g=function(){a==null||a.apply(void 0,arguments)};d.useEffect(()=>{let w=null;return o&&(w=setTimeout(()=>{var b;(b=p.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[]);const v=w=>{O9(w)&&(m(!0),w.then(function(){m(!1,!0),g.apply(void 0,arguments),f.current=!1},b=>{if(m(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(b)}))},y=w=>{if(f.current)return;if(f.current=!0,!u){g();return}let b;if(s){if(b=u(w),c&&!O9(b)){f.current=!1,g(w);return}}else if(u.length)b=u(a),f.current=!1;else if(b=u(),!O9(b)){g();return}v(b)};return d.createElement(Yt,Object.assign({},ZL(t),{onClick:y,loading:h,prefixCls:r},i,{ref:p}),n)},S4=te.createContext({}),{Provider:Ppe}=S4,UG=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:l}=d.useContext(S4);return i?te.createElement(aB,{isSilent:r,actionFn:s,close:function(){o==null||o.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},WG=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:l}=d.useContext(S4);return te.createElement(aB,{isSilent:n,type:o||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},a)};var Ope=d.createContext(null),VG=[];function _Le(e,t){var n=d.useState(function(){if(!Ws())return null;var m=document.createElement("div");return m}),r=Te(n,1),i=r[0],a=d.useRef(!1),o=d.useContext(Ope),s=d.useState(VG),l=Te(s,2),c=l[0],u=l[1],f=o||(a.current?void 0:function(m){u(function(g){var v=[m].concat(lt(g));return v})});function p(){i.parentElement||document.body.appendChild(i),a.current=!0}function h(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),a.current=!1}return nr(function(){return e?o?o(p):p():h(),h},[e]),nr(function(){c.length&&(c.forEach(function(m){return m()}),u(VG))},[c]),[i,f]}function kLe(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";YE(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(f,` -}`),t)}catch(m){console.error(m),i=l,a=c}}document.body.appendChild(n);var p=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,h=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),lj(t),{width:p,height:h}}function $Le(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:ELe(e)}function MLe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var TLe="rc-util-locker-".concat(Date.now()),qG=0;function PLe(e){var t=!!e,n=d.useState(function(){return qG+=1,"".concat(TLe,"_").concat(qG)}),r=Te(n,1),i=r[0];nr(function(){if(t){var a=$Le(document.body).width,o=MLe();YE(` +}`),t)}catch(m){console.error(m),i=l,a=c}}document.body.appendChild(n);var p=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,h=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),lj(t),{width:p,height:h}}function ELe(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:kLe(e)}function $Le(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var MLe="rc-util-locker-".concat(Date.now()),qG=0;function TLe(e){var t=!!e,n=d.useState(function(){return qG+=1,"".concat(MLe,"_").concat(qG)}),r=Te(n,1),i=r[0];nr(function(){if(t){var a=ELe(document.body).width,o=$Le();YE(` html body { overflow-y: hidden; `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",` -}`),i)}else lj(i);return function(){lj(i)}},[t,i])}var OLe=!1;function RLe(e){return OLe}var KG=function(t){return t===!1?!1:!Ws()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},_4=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,l=d.useState(n),c=Te(l,2),u=c[0],f=c[1],p=u||n;d.useEffect(function(){(o||n)&&f(n)},[n,o]);var h=d.useState(function(){return KG(i)}),m=Te(h,2),g=m[0],v=m[1];d.useEffect(function(){var P=KG(i);v(P??null)});var y=kLe(p&&!g),w=Te(y,2),b=w[0],C=w[1],k=g??b;PLe(r&&n&&Ws()&&(k===b||k===document.body));var S=null;if(s&&Vf(s)&&t){var _=s;S=_.ref}var E=ku(S,t);if(!p||!Ws()||g===void 0)return null;var $=k===!1||RLe(),M=s;return t&&(M=d.cloneElement(s,{ref:E})),d.createElement(Rpe.Provider,{value:C},$?M:Va.createPortal(M,k))}),Ipe=d.createContext({});function ILe(){var e=q({},Qm);return e.useId}var GG=0,YG=ILe();const h8=YG?function(t){var n=YG();return t||n}:function(t){var n=d.useState("ssr-id"),r=Te(n,2),i=r[0],a=r[1];return d.useEffect(function(){var o=GG;GG+=1,a("rc_unique_".concat(o))},[]),t||i};function XG(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function ZG(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function jLe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=ZG(i),n.top+=ZG(i,!0),n}const NLe=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var ALe={width:0,height:0,overflow:"hidden",outline:"none"},DLe={outline:"none"},jpe=te.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,p=e.bodyStyle,h=e.bodyProps,m=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,w=e.visible,b=e.forceRender,C=e.width,k=e.height,S=e.classNames,_=e.styles,E=te.useContext(Ipe),$=E.panel,M=ku(y,$),P=d.useRef(),R=d.useRef();te.useImperativeHandle(t,function(){return{focus:function(){var B;(B=P.current)===null||B===void 0||B.focus({preventScroll:!0})},changeActive:function(B){var U=document,Y=U.activeElement;B&&Y===R.current?P.current.focus({preventScroll:!0}):!B&&Y===P.current&&R.current.focus({preventScroll:!0})}}});var O={};C!==void 0&&(O.width=C),k!==void 0&&(O.height=k);var j=s?te.createElement("div",{className:Ee("".concat(n,"-footer"),S==null?void 0:S.footer),style:q({},_==null?void 0:_.footer)},s):null,I=a?te.createElement("div",{className:Ee("".concat(n,"-header"),S==null?void 0:S.header),style:q({},_==null?void 0:_.header)},te.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,A=d.useMemo(function(){return Kt(l)==="object"&&l!==null?l:l?{closeIcon:c??te.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),N=Fi(A,!0),F=Kt(l)==="object"&&l.disabled,K=l?te.createElement("button",tt({type:"button",onClick:u,"aria-label":"Close"},N,{className:"".concat(n,"-close"),disabled:F}),A.closeIcon):null,L=te.createElement("div",{className:Ee("".concat(n,"-content"),S==null?void 0:S.content),style:_==null?void 0:_.content},K,I,te.createElement("div",tt({className:Ee("".concat(n,"-body"),S==null?void 0:S.body),style:q(q({},p),_==null?void 0:_.body)},h),f),j);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:M,style:q(q({},i),O),className:Ee(n,r),onMouseDown:g,onMouseUp:v},te.createElement("div",{ref:P,tabIndex:0,style:DLe},te.createElement(NLe,{shouldUpdate:w||b},m?m(L):L)),te.createElement("div",{tabIndex:0,ref:R,style:ALe}))}),Npe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,h=d.useRef(),m=d.useState(),g=Te(m,2),v=g[0],y=g[1],w={};v&&(w.transformOrigin=v);function b(){var C=jLe(h.current);y(p&&(p.x||p.y)?"".concat(p.x-C.left,"px ").concat(p.y-C.top,"px"):"")}return d.createElement(Ca,{visible:o,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(C,k){var S=C.className,_=C.style;return d.createElement(jpe,tt({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:k,style:q(q(q({},_),i),w),className:Ee(a,S)}))})});Npe.displayName="Content";var FLe=function(t){var n=t.prefixCls,r=t.style,i=t.visible,a=t.maskProps,o=t.motionName,s=t.className;return d.createElement(Ca,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",tt({ref:c,style:q(q({},f),r),className:Ee("".concat(n,"-mask"),u,s)},a))})},LLe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,a=t.visible,o=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,p=t.wrapClassName,h=t.wrapProps,m=t.onClose,g=t.afterOpenChange,v=t.afterClose,y=t.transitionName,w=t.animation,b=t.closable,C=b===void 0?!0:b,k=t.mask,S=k===void 0?!0:k,_=t.maskTransitionName,E=t.maskAnimation,$=t.maskClosable,M=$===void 0?!0:$,P=t.maskStyle,R=t.maskProps,O=t.rootClassName,j=t.classNames,I=t.styles,A=d.useRef(),N=d.useRef(),F=d.useRef(),K=d.useState(o),L=Te(K,2),V=L[0],B=L[1],U=h8();function Y(){oj(N.current,document.activeElement)||(A.current=document.activeElement)}function ee(){if(!oj(N.current,document.activeElement)){var re;(re=F.current)===null||re===void 0||re.focus()}}function ie(re){if(re)ee();else{if(B(!1),S&&A.current&&u){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}V&&(v==null||v())}g==null||g(re)}function Z(re){m==null||m(re)}var X=d.useRef(!1),ae=d.useRef(),oe=function(){clearTimeout(ae.current),X.current=!0},le=function(){ae.current=setTimeout(function(){X.current=!1})},ce=null;M&&(ce=function(fe){X.current?X.current=!1:N.current===fe.target&&Z(fe)});function pe(re){if(l&&re.keyCode===mt.ESC){re.stopPropagation(),Z(re);return}o&&re.keyCode===mt.TAB&&F.current.changeActive(!re.shiftKey)}d.useEffect(function(){o&&(B(!0),Y())},[o]),d.useEffect(function(){return function(){clearTimeout(ae.current)}},[]);var me=q(q(q({zIndex:i},f),I==null?void 0:I.wrapper),{},{display:V?null:"none"});return d.createElement("div",tt({className:Ee("".concat(r,"-root"),O)},Fi(t,{data:!0})),d.createElement(FLe,{prefixCls:r,visible:S&&o,motionName:XG(r,_,E),style:q(q({zIndex:i},P),I==null?void 0:I.mask),maskProps:R,className:j==null?void 0:j.mask}),d.createElement("div",tt({tabIndex:-1,onKeyDown:pe,className:Ee("".concat(r,"-wrap"),p,j==null?void 0:j.wrapper),ref:N,onClick:ce,style:me},h),d.createElement(Npe,tt({},t,{onMouseDown:oe,onMouseUp:le,ref:F,closable:C,ariaId:U,prefixCls:r,visible:o&&V,onClose:Z,onVisibleChanged:ie,motionName:XG(r,y,w)}))))},oB=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,a=t.destroyOnClose,o=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=d.useState(n),u=Te(c,2),f=u[0],p=u[1],h=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){n&&p(!0)},[n]),!i&&o&&!f?null:d.createElement(Ipe.Provider,{value:h},d.createElement(_4,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},d.createElement(LLe,tt({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),p(!1)}}))))};oB.displayName="Dialog";var Sm="RC_FORM_INTERNAL_HOOKS",pi=function(){Br(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ph=d.createContext({getFieldValue:pi,getFieldsValue:pi,getFieldError:pi,getFieldWarning:pi,getFieldsError:pi,isFieldsTouched:pi,isFieldTouched:pi,isFieldValidating:pi,isFieldsValidating:pi,resetFields:pi,setFields:pi,setFieldValue:pi,setFieldsValue:pi,validateFields:pi,submit:pi,getInternalHooks:function(){return pi(),{dispatch:pi,initEntityValue:pi,registerField:pi,useSubscribe:pi,setInitialValues:pi,destroyForm:pi,setCallbacks:pi,registerWatch:pi,getFields:pi,setValidateMessages:pi,setPreserve:pi,getInitialValue:pi}}}),r3=d.createContext(null);function xj(e){return e==null?[]:Array.isArray(e)?e:[e]}function BLe(e){return e&&!!e._init}function Sj(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Cj=Sj();function zLe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function HLe(e,t,n){if(zE())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Kw(i,n.prototype),i}function _j(e){var t=typeof Map=="function"?new Map:void 0;return _j=function(r){if(r===null||!zLe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return HLe(r,arguments,dg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Kw(i,r)},_j(e)}var ULe=/%[sdj%]/g,WLe=function(){};function kj(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function kl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function VLe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ka(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||VLe(t)&&typeof e=="string"&&!e)}function qLe(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,lt(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function QG(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?i.push(kl(a.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(kl(a.messages[f].range,t.fullField,t.min,t.max))},Ape=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||Ka(n,o||t.type))&&i.push(kl(a.messages.required,t.fullField))},bS;const eBe=function(){if(bS)return bS;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(S){return S&&S.exact?s:new RegExp("(?:".concat(t(S)).concat(n).concat(t(S),")|(?:").concat(t(S)).concat(o).concat(t(S),")"),"g")};u.v4=function(k){return k&&k.exact?l:new RegExp("".concat(t(k)).concat(n).concat(t(k)),"g")},u.v6=function(k){return k&&k.exact?c:new RegExp("".concat(t(k)).concat(o).concat(t(k)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,m=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(h,"|").concat(m,"|").concat(g).concat(v).concat(y,")").concat(w).concat(b);return bS=new RegExp("(?:^".concat(C,"$)"),"i"),bS};var nY={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},w2={integer:function(t){return w2.number(t)&&parseInt(t,10)===t},float:function(t){return w2.number(t)&&!w2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Kt(t)==="object"&&!w2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(nY.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(eBe())},hex:function(t){return typeof t=="string"&&!!t.match(nY.hex)}},tBe=function(t,n,r,i,a){if(t.required&&n===void 0){Ape(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?w2[s](n)||i.push(kl(a.messages.types[s],t.fullField,t.type)):s&&Kt(n)!==t.type&&i.push(kl(a.messages.types[s],t.fullField,t.type))},nBe=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(kl(a.messages.whitespace,t.fullField))};const Lr={required:Ape,whitespace:nBe,type:tBe,range:JLe,enum:ZLe,pattern:QLe};var rBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a)}r(o)},iBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Lr.required(t,n,i,o,a,"array"),n!=null&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},aBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr.type(t,n,i,o,a)}r(o)},oBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n,"date")&&!t.required)return r();if(Lr.required(t,n,i,o,a),!Ka(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Lr.type(t,l,i,o,a),l&&Lr.range(t,l.getTime(),i,o,a)}}r(o)},sBe="enum",lBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr[sBe](t,n,i,o,a)}r(o)},cBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},uBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},dBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr.type(t,n,i,o,a)}r(o)},fBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},pBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr.type(t,n,i,o,a)}r(o)},hBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n,"string")&&!t.required)return r();Lr.required(t,n,i,o,a),Ka(n,"string")||Lr.pattern(t,n,i,o,a)}r(o)},mBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),Ka(n)||Lr.type(t,n,i,o,a)}r(o)},gBe=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":Kt(n);Lr.required(t,n,i,o,a,s),r(o)},vBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n,"string")&&!t.required)return r();Lr.required(t,n,i,o,a,"string"),Ka(n,"string")||(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a),Lr.pattern(t,n,i,o,a),t.whitespace===!0&&Lr.whitespace(t,n,i,o,a))}r(o)},R9=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ka(n,o)&&!t.required)return r();Lr.required(t,n,i,s,a,o),Ka(n,o)||Lr.type(t,n,i,s,a)}r(s)};const X2={string:vBe,method:dBe,number:fBe,boolean:aBe,regexp:mBe,integer:uBe,float:cBe,array:iBe,object:pBe,enum:lBe,pattern:hBe,date:oBe,url:R9,hex:R9,email:R9,required:gBe,any:rBe};var k4=function(){function e(t){Ar(this,e),ne(this,"rules",null),ne(this,"_messages",Cj),this.define(t)}return Dr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Kt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=tY(Sj(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(m){var g=[],v={};function y(b){if(Array.isArray(b)){var C;g=(C=g).concat.apply(C,lt(b))}else g.push(b)}for(var w=0;w0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(_)?_:[_];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&v.message!==void 0&&(E=[].concat(v.message));var $=E.map(eY(v,o));if(s.first&&$.length)return h[v.field]=1,g($);if(!y)g($);else{if(v.required&&!m.value)return v.message!==void 0?$=[].concat(v.message).map(eY(v,o)):s.error&&($=[s.error(v,kl(s.messages.required,v.field))]),g($);var M={};v.defaultField&&Object.keys(m.value).map(function(O){M[O]=v.defaultField}),M=q(q({},M),m.rule.fields);var P={};Object.keys(M).forEach(function(O){var j=M[O],I=Array.isArray(j)?j:[j];P[O]=I.map(w.bind(null,O))});var R=new e(P);R.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),R.validate(m.value,m.rule.options||s,function(O){var j=[];$&&$.length&&j.push.apply(j,lt($)),O&&O.length&&j.push.apply(j,lt(O)),g(j.length?j:null)})}}var C;if(v.asyncValidator)C=v.asyncValidator(v,m.value,b,m.source,s);else if(v.validator){try{C=v.validator(v,m.value,b,m.source,s)}catch(_){var k,S;(k=(S=console).error)===null||k===void 0||k.call(S,_),s.suppressValidatorError||setTimeout(function(){throw _},0),b(_.message)}C===!0?b():C===!1?b(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):C instanceof Array?b(C):C instanceof Error&&b(C.message)}C&&C.then&&C.then(function(){return b()},function(_){return b(_)})},function(m){c(m)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!X2.hasOwnProperty(n.type))throw new Error(kl("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?X2.required:X2[this.getType(n)]||void 0}}]),e}();ne(k4,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");X2[t]=n});ne(k4,"warning",WLe);ne(k4,"messages",Cj);ne(k4,"validators",X2);var il="'${name}' is not a valid ${type}",Dpe={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:il,method:il,array:il,object:il,number:il,date:il,boolean:il,integer:il,float:il,regexp:il,email:il,url:il,hex:il},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},rY=k4;function yBe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var iY="CODE_LOGIC_ERROR";function Ej(e,t,n,r,i){return $j.apply(this,arguments)}function $j(){return $j=pa(hr().mark(function e(t,n,r,i,a){var o,s,l,c,u,f,p,h,m;return hr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=q({},r),delete o.ruleIndex,rY.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(iY)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new rY(ne({},t,[o])),u=gv(Dpe,i.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(ne({},t,n),q({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,w){var b=y.message,C=b===iY?u.default:b;return d.isValidElement(C)?d.cloneElement(C,{key:"error_".concat(w)}):C}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,w){return Ej("".concat(t,".").concat(w),y,l,i,a)}));case 21:return p=v.sent,v.abrupt("return",p.reduce(function(y,w){return[].concat(lt(y),lt(w))},[]));case 23:return h=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),m=f.map(function(y){return typeof y=="string"?yBe(y,h):y}),v.abrupt("return",m);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),$j.apply(this,arguments)}function bBe(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(u,f){var p=u.validator,h=q(q({},u),{},{ruleIndex:f});return p&&(h.validator=function(m,g,v){var y=!1,w=function(){for(var k=arguments.length,S=new Array(k),_=0;_2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Fpe(t,r,n)})}function Fpe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function SBe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Kt(e)!=="object"||Kt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return lt(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function CBe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Kt(t.target)==="object"&&e in t.target?t.target[e]:t}function oY(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(lt(e.slice(0,n)),[i],lt(e.slice(n,t)),lt(e.slice(t+1,r))):a<0?[].concat(lt(e.slice(0,t)),lt(e.slice(t+1,n+1)),[i],lt(e.slice(n+1,r))):e}var _Be=["name"],Kl=[];function I9(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var sB=function(e){$o(n,e);var t=rs(n);function n(r){var i;if(Ar(this,n),i=t.call(this,r),ne(fn(i),"state",{resetCount:0}),ne(fn(i),"cancelRegisterFunc",null),ne(fn(i),"mounted",!1),ne(fn(i),"touched",!1),ne(fn(i),"dirty",!1),ne(fn(i),"validatePromise",void 0),ne(fn(i),"prevValidating",void 0),ne(fn(i),"errors",Kl),ne(fn(i),"warnings",Kl),ne(fn(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,ba(f)),i.cancelRegisterFunc=null}),ne(fn(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(lt(p),lt(c)):[]}),ne(fn(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),ne(fn(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ne(fn(i),"metaCache",null),ne(fn(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=q(q({},i.getMeta()),{},{destroy:l});mg(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ne(fn(i),"onStoreChange",function(l,c,u){var f=i.props,p=f.shouldUpdate,h=f.dependencies,m=h===void 0?[]:h,g=f.onReset,v=u.store,y=i.getNamePath(),w=i.getValue(l),b=i.getValue(v),C=c&&Iv(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!mg(w,b)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Kl,i.warnings=Kl,i.triggerMetaEvent()),u.type){case"reset":if(!c||C){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Kl,i.warnings=Kl,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(p&&I9(p,l,v,w,b,u)){i.reRender();return}break}case"setField":{var k=u.data;if(C){"touched"in k&&(i.touched=k.touched),"validating"in k&&!("originRCField"in k)&&(i.validatePromise=k.validating?Promise.resolve([]):null),"errors"in k&&(i.errors=k.errors||Kl),"warnings"in k&&(i.warnings=k.warnings||Kl),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in k&&Iv(c,y,!0)){i.reRender();return}if(p&&!y.length&&I9(p,l,v,w,b,u)){i.reRender();return}break}case"dependenciesUpdate":{var S=m.map(ba);if(S.some(function(_){return Iv(u.relatedFields,_)})){i.reRender();return}break}default:if(C||(!m.length||y.length||p)&&I9(p,l,v,w,b,u)){i.reRender();return}break}p===!0&&i.reRender()}),ne(fn(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},p=f.triggerName,h=f.validateOnly,m=h===void 0?!1:h,g=Promise.resolve().then(pa(hr().mark(function v(){var y,w,b,C,k,S,_;return hr().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(i.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(y=i.props,w=y.validateFirst,b=w===void 0?!1:w,C=y.messageVariables,k=y.validateDebounce,S=i.getRules(),p&&(S=S.filter(function(M){return M}).filter(function(M){var P=M.validateTrigger;if(!P)return!0;var R=xj(P);return R.includes(p)})),!(k&&p)){$.next=10;break}return $.next=8,new Promise(function(M){setTimeout(M,k)});case 8:if(i.validatePromise===g){$.next=10;break}return $.abrupt("return",[]);case 10:return _=bBe(c,u,S,l,b,C),_.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kl;if(i.validatePromise===g){var P;i.validatePromise=null;var R=[],O=[];(P=M.forEach)===null||P===void 0||P.call(M,function(j){var I=j.rule.warningOnly,A=j.errors,N=A===void 0?Kl:A;I?O.push.apply(O,lt(N)):R.push.apply(R,lt(N))}),i.errors=R,i.warnings=O,i.triggerMetaEvent(),i.reRender()}}),$.abrupt("return",_);case 13:case"end":return $.stop()}},v)})));return m||(i.validatePromise=g,i.dirty=!0,i.errors=Kl,i.warnings=Kl,i.triggerMetaEvent(),i.reRender()),g}),ne(fn(i),"isFieldValidating",function(){return!!i.validatePromise}),ne(fn(i),"isFieldTouched",function(){return i.touched}),ne(fn(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(Sm),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ne(fn(i),"getErrors",function(){return i.errors}),ne(fn(i),"getWarnings",function(){return i.warnings}),ne(fn(i),"isListField",function(){return i.props.isListField}),ne(fn(i),"isList",function(){return i.props.isList}),ne(fn(i),"isPreserve",function(){return i.props.preserve}),ne(fn(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),ne(fn(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return q(q({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Xi(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ne(fn(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Ds(l||c(!0),u)}),ne(fn(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,p=c.validateTrigger,h=c.getValueFromEvent,m=c.normalize,g=c.valuePropName,v=c.getValueProps,y=c.fieldContext,w=p!==void 0?p:y.validateTrigger,b=i.getNamePath(),C=y.getInternalHooks,k=y.getFieldsValue,S=C(Sm),_=S.dispatch,E=i.getValue(),$=v||function(j){return ne({},g,j)},M=l[f],P=u!==void 0?$(E):{},R=q(q({},l),P);R[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,I=arguments.length,A=new Array(I),N=0;N=0&&M<=P.length?(u.keys=[].concat(lt(u.keys.slice(0,M)),[u.id],lt(u.keys.slice(M))),b([].concat(lt(P.slice(0,M)),[$],lt(P.slice(M))))):(u.keys=[].concat(lt(u.keys),[u.id]),b([].concat(lt(P),[$]))),u.id+=1},remove:function($){var M=k(),P=new Set(Array.isArray($)?$:[$]);P.size<=0||(u.keys=u.keys.filter(function(R,O){return!P.has(O)}),b(M.filter(function(R,O){return!P.has(O)})))},move:function($,M){if($!==M){var P=k();$<0||$>=P.length||M<0||M>=P.length||(u.keys=oY(u.keys,$,M),b(oY(P,$,M)))}}},_=w||[];return Array.isArray(_)||(_=[]),r(_.map(function(E,$){var M=u.keys[$];return M===void 0&&(u.keys[$]=u.id,M=u.keys[$],u.id+=1),{name:$,key:M,isListField:!0}}),S,v)})))}function kBe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Bpe="__@field_split__";function j9(e){return e.map(function(t){return"".concat(Kt(t),":").concat(t)}).join(Bpe)}var T1=function(){function e(){Ar(this,e),ne(this,"kvs",new Map)}return Dr(e,[{key:"set",value:function(n,r){this.kvs.set(j9(n),r)}},{key:"get",value:function(n){return this.kvs.get(j9(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(j9(n))}},{key:"map",value:function(n){return lt(this.kvs.entries()).map(function(r){var i=Te(r,2),a=i[0],o=i[1],s=a.split(Bpe);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Te(c,3),f=u[1],p=u[2];return f==="number"?Number(p):p}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),EBe=["name"],$Be=Dr(function e(t){var n=this;Ar(this,e),ne(this,"formHooked",!1),ne(this,"forceRootUpdate",void 0),ne(this,"subscribable",!0),ne(this,"store",{}),ne(this,"fieldEntities",[]),ne(this,"initialValues",{}),ne(this,"callbacks",{}),ne(this,"validateMessages",null),ne(this,"preserve",null),ne(this,"lastValidatePromise",null),ne(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),ne(this,"getInternalHooks",function(r){return r===Sm?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Br(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ne(this,"useSubscribe",function(r){n.subscribable=r}),ne(this,"prevWithoutPreserves",null),ne(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=gv(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=hs(o,l,Ds(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),ne(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new T1;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ne(this,"getInitialValue",function(r){var i=Ds(n.initialValues,r);return r.length?gv(i):i}),ne(this,"setCallbacks",function(r){n.callbacks=r}),ne(this,"setValidateMessages",function(r){n.validateMessages=r}),ne(this,"setPreserve",function(r){n.preserve=r}),ne(this,"watchList",[]),ne(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ne(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),ne(this,"timeoutId",null),ne(this,"warningUnhooked",function(){}),ne(this,"updateStore",function(r){n.store=r}),ne(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),ne(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new T1;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),ne(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=ba(a);return i.get(o)||{INVALIDATE_NAME_PATH:ba(a)}})}),ne(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Kt(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,g;if((m=(g=u).isList)!==null&&m!==void 0&&m.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!o)c.push(h);else{var v="getMeta"in u?u.getMeta():null;o(v)&&c.push(h)}}),aY(n.store,c.map(ba))}),ne(this,"getFieldValue",function(r){n.warningUnhooked();var i=ba(r);return Ds(n.store,i)}),ne(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:ba(r[o]),errors:[],warnings:[]}})}),ne(this,"getFieldError",function(r){n.warningUnhooked();var i=ba(r),a=n.getFieldsError([i])[0];return a.errors}),ne(this,"getFieldWarning",function(r){n.warningUnhooked();var i=ba(r),a=n.getFieldsError([i])[0];return a.warnings}),ne(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new T1,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var o=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var p=u.getNamePath(),h=n.getInitialValue(p);if(h!==void 0)Br(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var m=i.get(p);if(m&&m.size>1)Br(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var g=n.getFieldValue(p),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(hs(n.store,p,lt(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,lt(lt(c).map(function(f){return f.entity})))}})):s=a,o(s)}),ne(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(gv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(ba);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(hs(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),ne(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=Ht(o,EBe),c=ba(s);a.push(c),"value"in l&&n.updateStore(hs(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:o})}),n.notifyWatch(a)}),ne(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=q(q({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ne(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Ds(n.store,a);o===void 0&&n.updateStore(hs(n.store,a,i))}}),ne(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ne(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!Fpe(f.getNamePath(),i)})){var u=n.store;n.updateStore(hs(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ne(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),ne(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=q(q({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),ne(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(lt(a))}),a}),ne(this,"updateValue",function(r,i){var a=ba(r),o=n.store;n.updateStore(hs(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var c=aY(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(lt(s)))}),ne(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=gv(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ne(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),ne(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new T1;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ba(u);o.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),ne(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new T1;i.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return Iv(r,u)});l.length&&a(l,o)}}),ne(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(ba):[],c=[],u=String(Date.now()),f=new Set,p=o||{},h=p.recursive,m=p.dirty;n.getFieldEntities(!0).forEach(function(w){if(s||l.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(m&&!w.isFieldDirty())){var b=w.getNamePath();if(f.add(b.join(u)),!s||Iv(l,b,h)){var C=w.validateRules(q({validateMessages:q(q({},Dpe),n.validateMessages)},o));c.push(C.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(k){var S,_=[],E=[];return(S=k.forEach)===null||S===void 0||S.call(k,function($){var M=$.rule.warningOnly,P=$.errors;M?E.push.apply(E,lt(P)):_.push.apply(_,lt(P))}),_.length?Promise.reject({name:b,errors:_,warnings:E}):{name:b,errors:_,warnings:E}}))}}});var g=kBe(c);n.lastValidatePromise=g,g.catch(function(w){return w}).then(function(w){var b=w.map(function(C){var k=C.name;return k});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,w)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(w){var b=w.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:b,outOfDate:n.lastValidatePromise!==g})});v.catch(function(w){return w});var y=l.filter(function(w){return f.has(w.join(u))});return n.triggerOnFieldsChange(y),v}),ne(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function cB(e){var t=d.useRef(),n=d.useState({}),r=Te(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new $Be(a);t.current=o.getForm()}return[t.current]}var Pj=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),zpe=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=d.useContext(Pj),s=d.useRef({});return d.createElement(Pj.Provider,{value:q(q({},o),{},{validateMessages:q(q({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=q(q({},s.current),{},ne({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=q({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},a)},MBe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],TBe=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,h=p===void 0?"onChange":p,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,w=t.clearOnDestroy,b=Ht(t,MBe),C=d.useRef(null),k=d.useContext(Pj),S=cB(o),_=Te(S,1),E=_[0],$=E.getInternalHooks(Sm),M=$.useSubscribe,P=$.setInitialValues,R=$.setCallbacks,O=$.setValidateMessages,j=$.setPreserve,I=$.destroyForm;d.useImperativeHandle(n,function(){return q(q({},E),{},{nativeElement:C.current})}),d.useEffect(function(){return k.registerForm(r,E),function(){k.unregisterForm(r)}},[k,E,r]),O(q(q({},k.validateMessages),f)),R({onValuesChange:m,onFieldsChange:function(Y){if(k.triggerFormChange(r,Y),g){for(var ee=arguments.length,ie=new Array(ee>1?ee-1:0),Z=1;Z{}}),Upe=d.createContext(null),Wpe=e=>{const t=$r(e,["prefixCls"]);return d.createElement(zpe,Object.assign({},t))},uB=d.createContext({prefixCls:""}),oa=d.createContext({}),OBe=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(oa),a=d.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return d.createElement(oa.Provider,{value:a},t)},Vpe=d.createContext(void 0),bu=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=te.createElement(OBe,{override:!0,status:!0},i)),t&&(i=te.createElement(ADe,null,i)),i};function R0(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function lY(e){const{closable:t,closeIcon:n}=e||{};return te.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function cY(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{i&&Object.keys(i).forEach(a=>{i[a]!==void 0&&(e[a]=i[a])})}),e}const RBe={};function dB(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:RBe;const r=lY(e),i=lY(t),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,o=te.useMemo(()=>Object.assign({closeIcon:te.createElement(Eu,null)},n),[n]),s=te.useMemo(()=>r===!1?!1:r?cY(o,i,r):i===!1?!1:i?cY(o,i):o.closable?o:!1,[r,i,o]);return te.useMemo(()=>{if(s===!1)return[!1,null,a];const{closeIconRender:l}=o,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=Fi(s,!0);Object.keys(f).length&&(u=te.isValidElement(u)?te.cloneElement(u,f):te.createElement("span",Object.assign({},f),u))}return[!0,u,a]},[s,o])}var qpe=function(t){if(Ws()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},IBe=function(t,n){if(!qpe(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function uY(e,t){return!Array.isArray(e)&&t!==void 0?IBe(e,t):qpe(e)}const jBe=()=>Ws()&&window.document.documentElement,m8=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Ee({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Ee({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:Ee(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},NBe=new ir("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),g8=e=>({height:e,lineHeight:Me(e)}),jv=e=>Object.assign({width:e},g8(e)),ABe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:NBe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),N9=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},g8(e)),DBe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},jv(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},jv(i)),[`${t}${t}-sm`]:Object.assign({},jv(a))}},FBe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},N9(t,s)),[`${r}-lg`]:Object.assign({},N9(i,s)),[`${r}-sm`]:Object.assign({},N9(a,s))}},dY=e=>Object.assign({width:e},g8(e)),LBe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},dY(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},dY(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},A9=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},D9=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},g8(e)),BBe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},D9(r,s))},A9(e,r,n)),{[`${n}-lg`]:Object.assign({},D9(i,s))}),A9(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},D9(a,s))}),A9(e,a,`${n}-sm`))},zBe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:p,marginSM:h,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:y,controlHeightXS:w,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},jv(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},jv(c)),[`${n}-sm`]:Object.assign({},jv(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:w}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},BBe(e)),DBe(e)),FBe(e)),LBe(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),i)}else lj(i);return function(){lj(i)}},[t,i])}var PLe=!1;function OLe(e){return PLe}var KG=function(t){return t===!1?!1:!Ws()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},C4=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,l=d.useState(n),c=Te(l,2),u=c[0],f=c[1],p=u||n;d.useEffect(function(){(o||n)&&f(n)},[n,o]);var h=d.useState(function(){return KG(i)}),m=Te(h,2),g=m[0],v=m[1];d.useEffect(function(){var P=KG(i);v(P??null)});var y=_Le(p&&!g),w=Te(y,2),b=w[0],C=w[1],k=g??b;TLe(r&&n&&Ws()&&(k===b||k===document.body));var S=null;if(s&&Vf(s)&&t){var _=s;S=_.ref}var E=ku(S,t);if(!p||!Ws()||g===void 0)return null;var $=k===!1||OLe(),M=s;return t&&(M=d.cloneElement(s,{ref:E})),d.createElement(Ope.Provider,{value:C},$?M:Va.createPortal(M,k))}),Rpe=d.createContext({});function RLe(){var e=q({},Qm);return e.useId}var GG=0,YG=RLe();const h8=YG?function(t){var n=YG();return t||n}:function(t){var n=d.useState("ssr-id"),r=Te(n,2),i=r[0],a=r[1];return d.useEffect(function(){var o=GG;GG+=1,a("rc_unique_".concat(o))},[]),t||i};function XG(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function ZG(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function ILe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=ZG(i),n.top+=ZG(i,!0),n}const jLe=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var NLe={width:0,height:0,overflow:"hidden",outline:"none"},ALe={outline:"none"},Ipe=te.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,p=e.bodyStyle,h=e.bodyProps,m=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,w=e.visible,b=e.forceRender,C=e.width,k=e.height,S=e.classNames,_=e.styles,E=te.useContext(Rpe),$=E.panel,M=ku(y,$),P=d.useRef(),R=d.useRef();te.useImperativeHandle(t,function(){return{focus:function(){var B;(B=P.current)===null||B===void 0||B.focus({preventScroll:!0})},changeActive:function(B){var U=document,Y=U.activeElement;B&&Y===R.current?P.current.focus({preventScroll:!0}):!B&&Y===P.current&&R.current.focus({preventScroll:!0})}}});var O={};C!==void 0&&(O.width=C),k!==void 0&&(O.height=k);var j=s?te.createElement("div",{className:Ee("".concat(n,"-footer"),S==null?void 0:S.footer),style:q({},_==null?void 0:_.footer)},s):null,I=a?te.createElement("div",{className:Ee("".concat(n,"-header"),S==null?void 0:S.header),style:q({},_==null?void 0:_.header)},te.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,A=d.useMemo(function(){return Kt(l)==="object"&&l!==null?l:l?{closeIcon:c??te.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),N=Fi(A,!0),F=Kt(l)==="object"&&l.disabled,K=l?te.createElement("button",tt({type:"button",onClick:u,"aria-label":"Close"},N,{className:"".concat(n,"-close"),disabled:F}),A.closeIcon):null,L=te.createElement("div",{className:Ee("".concat(n,"-content"),S==null?void 0:S.content),style:_==null?void 0:_.content},K,I,te.createElement("div",tt({className:Ee("".concat(n,"-body"),S==null?void 0:S.body),style:q(q({},p),_==null?void 0:_.body)},h),f),j);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:M,style:q(q({},i),O),className:Ee(n,r),onMouseDown:g,onMouseUp:v},te.createElement("div",{ref:P,tabIndex:0,style:ALe},te.createElement(jLe,{shouldUpdate:w||b},m?m(L):L)),te.createElement("div",{tabIndex:0,ref:R,style:NLe}))}),jpe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,h=d.useRef(),m=d.useState(),g=Te(m,2),v=g[0],y=g[1],w={};v&&(w.transformOrigin=v);function b(){var C=ILe(h.current);y(p&&(p.x||p.y)?"".concat(p.x-C.left,"px ").concat(p.y-C.top,"px"):"")}return d.createElement(Ca,{visible:o,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(C,k){var S=C.className,_=C.style;return d.createElement(Ipe,tt({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:k,style:q(q(q({},_),i),w),className:Ee(a,S)}))})});jpe.displayName="Content";var DLe=function(t){var n=t.prefixCls,r=t.style,i=t.visible,a=t.maskProps,o=t.motionName,s=t.className;return d.createElement(Ca,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",tt({ref:c,style:q(q({},f),r),className:Ee("".concat(n,"-mask"),u,s)},a))})},FLe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,a=t.visible,o=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,p=t.wrapClassName,h=t.wrapProps,m=t.onClose,g=t.afterOpenChange,v=t.afterClose,y=t.transitionName,w=t.animation,b=t.closable,C=b===void 0?!0:b,k=t.mask,S=k===void 0?!0:k,_=t.maskTransitionName,E=t.maskAnimation,$=t.maskClosable,M=$===void 0?!0:$,P=t.maskStyle,R=t.maskProps,O=t.rootClassName,j=t.classNames,I=t.styles,A=d.useRef(),N=d.useRef(),F=d.useRef(),K=d.useState(o),L=Te(K,2),V=L[0],B=L[1],U=h8();function Y(){oj(N.current,document.activeElement)||(A.current=document.activeElement)}function ee(){if(!oj(N.current,document.activeElement)){var re;(re=F.current)===null||re===void 0||re.focus()}}function ie(re){if(re)ee();else{if(B(!1),S&&A.current&&u){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}V&&(v==null||v())}g==null||g(re)}function Z(re){m==null||m(re)}var X=d.useRef(!1),ae=d.useRef(),oe=function(){clearTimeout(ae.current),X.current=!0},le=function(){ae.current=setTimeout(function(){X.current=!1})},ce=null;M&&(ce=function(fe){X.current?X.current=!1:N.current===fe.target&&Z(fe)});function pe(re){if(l&&re.keyCode===mt.ESC){re.stopPropagation(),Z(re);return}o&&re.keyCode===mt.TAB&&F.current.changeActive(!re.shiftKey)}d.useEffect(function(){o&&(B(!0),Y())},[o]),d.useEffect(function(){return function(){clearTimeout(ae.current)}},[]);var me=q(q(q({zIndex:i},f),I==null?void 0:I.wrapper),{},{display:V?null:"none"});return d.createElement("div",tt({className:Ee("".concat(r,"-root"),O)},Fi(t,{data:!0})),d.createElement(DLe,{prefixCls:r,visible:S&&o,motionName:XG(r,_,E),style:q(q({zIndex:i},P),I==null?void 0:I.mask),maskProps:R,className:j==null?void 0:j.mask}),d.createElement("div",tt({tabIndex:-1,onKeyDown:pe,className:Ee("".concat(r,"-wrap"),p,j==null?void 0:j.wrapper),ref:N,onClick:ce,style:me},h),d.createElement(jpe,tt({},t,{onMouseDown:oe,onMouseUp:le,ref:F,closable:C,ariaId:U,prefixCls:r,visible:o&&V,onClose:Z,onVisibleChanged:ie,motionName:XG(r,y,w)}))))},oB=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,a=t.destroyOnClose,o=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=d.useState(n),u=Te(c,2),f=u[0],p=u[1],h=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){n&&p(!0)},[n]),!i&&o&&!f?null:d.createElement(Rpe.Provider,{value:h},d.createElement(C4,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},d.createElement(FLe,tt({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),p(!1)}}))))};oB.displayName="Dialog";var Sm="RC_FORM_INTERNAL_HOOKS",pi=function(){Br(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ph=d.createContext({getFieldValue:pi,getFieldsValue:pi,getFieldError:pi,getFieldWarning:pi,getFieldsError:pi,isFieldsTouched:pi,isFieldTouched:pi,isFieldValidating:pi,isFieldsValidating:pi,resetFields:pi,setFields:pi,setFieldValue:pi,setFieldsValue:pi,validateFields:pi,submit:pi,getInternalHooks:function(){return pi(),{dispatch:pi,initEntityValue:pi,registerField:pi,useSubscribe:pi,setInitialValues:pi,destroyForm:pi,setCallbacks:pi,registerWatch:pi,getFields:pi,setValidateMessages:pi,setPreserve:pi,getInitialValue:pi}}}),r3=d.createContext(null);function xj(e){return e==null?[]:Array.isArray(e)?e:[e]}function LLe(e){return e&&!!e._init}function Sj(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Cj=Sj();function BLe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function zLe(e,t,n){if(zE())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Kw(i,n.prototype),i}function _j(e){var t=typeof Map=="function"?new Map:void 0;return _j=function(r){if(r===null||!BLe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return zLe(r,arguments,dg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Kw(i,r)},_j(e)}var HLe=/%[sdj%]/g,ULe=function(){};function kj(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function _l(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function WLe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ka(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||WLe(t)&&typeof e=="string"&&!e)}function VLe(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,lt(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function QG(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?i.push(_l(a.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(_l(a.messages[f].range,t.fullField,t.min,t.max))},Npe=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||Ka(n,o||t.type))&&i.push(_l(a.messages.required,t.fullField))},yS;const JLe=function(){if(yS)return yS;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(S){return S&&S.exact?s:new RegExp("(?:".concat(t(S)).concat(n).concat(t(S),")|(?:").concat(t(S)).concat(o).concat(t(S),")"),"g")};u.v4=function(k){return k&&k.exact?l:new RegExp("".concat(t(k)).concat(n).concat(t(k)),"g")},u.v6=function(k){return k&&k.exact?c:new RegExp("".concat(t(k)).concat(o).concat(t(k)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,m=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(h,"|").concat(m,"|").concat(g).concat(v).concat(y,")").concat(w).concat(b);return yS=new RegExp("(?:^".concat(C,"$)"),"i"),yS};var nY={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},w2={integer:function(t){return w2.number(t)&&parseInt(t,10)===t},float:function(t){return w2.number(t)&&!w2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Kt(t)==="object"&&!w2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(nY.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(JLe())},hex:function(t){return typeof t=="string"&&!!t.match(nY.hex)}},eBe=function(t,n,r,i,a){if(t.required&&n===void 0){Npe(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?w2[s](n)||i.push(_l(a.messages.types[s],t.fullField,t.type)):s&&Kt(n)!==t.type&&i.push(_l(a.messages.types[s],t.fullField,t.type))},tBe=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(_l(a.messages.whitespace,t.fullField))};const Lr={required:Npe,whitespace:tBe,type:eBe,range:QLe,enum:XLe,pattern:ZLe};var nBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a)}r(o)},rBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Lr.required(t,n,i,o,a,"array"),n!=null&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},iBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr.type(t,n,i,o,a)}r(o)},aBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n,"date")&&!t.required)return r();if(Lr.required(t,n,i,o,a),!Ka(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Lr.type(t,l,i,o,a),l&&Lr.range(t,l.getTime(),i,o,a)}}r(o)},oBe="enum",sBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr[oBe](t,n,i,o,a)}r(o)},lBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},cBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},uBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr.type(t,n,i,o,a)}r(o)},dBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a))}r(o)},fBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),n!==void 0&&Lr.type(t,n,i,o,a)}r(o)},pBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n,"string")&&!t.required)return r();Lr.required(t,n,i,o,a),Ka(n,"string")||Lr.pattern(t,n,i,o,a)}r(o)},hBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n)&&!t.required)return r();Lr.required(t,n,i,o,a),Ka(n)||Lr.type(t,n,i,o,a)}r(o)},mBe=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":Kt(n);Lr.required(t,n,i,o,a,s),r(o)},gBe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ka(n,"string")&&!t.required)return r();Lr.required(t,n,i,o,a,"string"),Ka(n,"string")||(Lr.type(t,n,i,o,a),Lr.range(t,n,i,o,a),Lr.pattern(t,n,i,o,a),t.whitespace===!0&&Lr.whitespace(t,n,i,o,a))}r(o)},R9=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ka(n,o)&&!t.required)return r();Lr.required(t,n,i,s,a,o),Ka(n,o)||Lr.type(t,n,i,s,a)}r(s)};const X2={string:gBe,method:uBe,number:dBe,boolean:iBe,regexp:hBe,integer:cBe,float:lBe,array:rBe,object:fBe,enum:sBe,pattern:pBe,date:aBe,url:R9,hex:R9,email:R9,required:mBe,any:nBe};var _4=function(){function e(t){Ar(this,e),ne(this,"rules",null),ne(this,"_messages",Cj),this.define(t)}return Dr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Kt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=tY(Sj(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(m){var g=[],v={};function y(b){if(Array.isArray(b)){var C;g=(C=g).concat.apply(C,lt(b))}else g.push(b)}for(var w=0;w0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(_)?_:[_];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&v.message!==void 0&&(E=[].concat(v.message));var $=E.map(eY(v,o));if(s.first&&$.length)return h[v.field]=1,g($);if(!y)g($);else{if(v.required&&!m.value)return v.message!==void 0?$=[].concat(v.message).map(eY(v,o)):s.error&&($=[s.error(v,_l(s.messages.required,v.field))]),g($);var M={};v.defaultField&&Object.keys(m.value).map(function(O){M[O]=v.defaultField}),M=q(q({},M),m.rule.fields);var P={};Object.keys(M).forEach(function(O){var j=M[O],I=Array.isArray(j)?j:[j];P[O]=I.map(w.bind(null,O))});var R=new e(P);R.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),R.validate(m.value,m.rule.options||s,function(O){var j=[];$&&$.length&&j.push.apply(j,lt($)),O&&O.length&&j.push.apply(j,lt(O)),g(j.length?j:null)})}}var C;if(v.asyncValidator)C=v.asyncValidator(v,m.value,b,m.source,s);else if(v.validator){try{C=v.validator(v,m.value,b,m.source,s)}catch(_){var k,S;(k=(S=console).error)===null||k===void 0||k.call(S,_),s.suppressValidatorError||setTimeout(function(){throw _},0),b(_.message)}C===!0?b():C===!1?b(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):C instanceof Array?b(C):C instanceof Error&&b(C.message)}C&&C.then&&C.then(function(){return b()},function(_){return b(_)})},function(m){c(m)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!X2.hasOwnProperty(n.type))throw new Error(_l("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?X2.required:X2[this.getType(n)]||void 0}}]),e}();ne(_4,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");X2[t]=n});ne(_4,"warning",ULe);ne(_4,"messages",Cj);ne(_4,"validators",X2);var il="'${name}' is not a valid ${type}",Ape={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:il,method:il,array:il,object:il,number:il,date:il,boolean:il,integer:il,float:il,regexp:il,email:il,url:il,hex:il},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},rY=_4;function vBe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var iY="CODE_LOGIC_ERROR";function Ej(e,t,n,r,i){return $j.apply(this,arguments)}function $j(){return $j=pa(hr().mark(function e(t,n,r,i,a){var o,s,l,c,u,f,p,h,m;return hr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=q({},r),delete o.ruleIndex,rY.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(iY)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new rY(ne({},t,[o])),u=gv(Ape,i.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(ne({},t,n),q({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,w){var b=y.message,C=b===iY?u.default:b;return d.isValidElement(C)?d.cloneElement(C,{key:"error_".concat(w)}):C}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,w){return Ej("".concat(t,".").concat(w),y,l,i,a)}));case 21:return p=v.sent,v.abrupt("return",p.reduce(function(y,w){return[].concat(lt(y),lt(w))},[]));case 23:return h=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),m=f.map(function(y){return typeof y=="string"?vBe(y,h):y}),v.abrupt("return",m);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),$j.apply(this,arguments)}function yBe(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(u,f){var p=u.validator,h=q(q({},u),{},{ruleIndex:f});return p&&(h.validator=function(m,g,v){var y=!1,w=function(){for(var k=arguments.length,S=new Array(k),_=0;_2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Dpe(t,r,n)})}function Dpe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function xBe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Kt(e)!=="object"||Kt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return lt(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function SBe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Kt(t.target)==="object"&&e in t.target?t.target[e]:t}function oY(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(lt(e.slice(0,n)),[i],lt(e.slice(n,t)),lt(e.slice(t+1,r))):a<0?[].concat(lt(e.slice(0,t)),lt(e.slice(t+1,n+1)),[i],lt(e.slice(n+1,r))):e}var CBe=["name"],ql=[];function I9(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var sB=function(e){$o(n,e);var t=ns(n);function n(r){var i;if(Ar(this,n),i=t.call(this,r),ne(fn(i),"state",{resetCount:0}),ne(fn(i),"cancelRegisterFunc",null),ne(fn(i),"mounted",!1),ne(fn(i),"touched",!1),ne(fn(i),"dirty",!1),ne(fn(i),"validatePromise",void 0),ne(fn(i),"prevValidating",void 0),ne(fn(i),"errors",ql),ne(fn(i),"warnings",ql),ne(fn(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,ba(f)),i.cancelRegisterFunc=null}),ne(fn(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(lt(p),lt(c)):[]}),ne(fn(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),ne(fn(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ne(fn(i),"metaCache",null),ne(fn(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=q(q({},i.getMeta()),{},{destroy:l});mg(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ne(fn(i),"onStoreChange",function(l,c,u){var f=i.props,p=f.shouldUpdate,h=f.dependencies,m=h===void 0?[]:h,g=f.onReset,v=u.store,y=i.getNamePath(),w=i.getValue(l),b=i.getValue(v),C=c&&Iv(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!mg(w,b)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=ql,i.warnings=ql,i.triggerMetaEvent()),u.type){case"reset":if(!c||C){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=ql,i.warnings=ql,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(p&&I9(p,l,v,w,b,u)){i.reRender();return}break}case"setField":{var k=u.data;if(C){"touched"in k&&(i.touched=k.touched),"validating"in k&&!("originRCField"in k)&&(i.validatePromise=k.validating?Promise.resolve([]):null),"errors"in k&&(i.errors=k.errors||ql),"warnings"in k&&(i.warnings=k.warnings||ql),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in k&&Iv(c,y,!0)){i.reRender();return}if(p&&!y.length&&I9(p,l,v,w,b,u)){i.reRender();return}break}case"dependenciesUpdate":{var S=m.map(ba);if(S.some(function(_){return Iv(u.relatedFields,_)})){i.reRender();return}break}default:if(C||(!m.length||y.length||p)&&I9(p,l,v,w,b,u)){i.reRender();return}break}p===!0&&i.reRender()}),ne(fn(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},p=f.triggerName,h=f.validateOnly,m=h===void 0?!1:h,g=Promise.resolve().then(pa(hr().mark(function v(){var y,w,b,C,k,S,_;return hr().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(i.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(y=i.props,w=y.validateFirst,b=w===void 0?!1:w,C=y.messageVariables,k=y.validateDebounce,S=i.getRules(),p&&(S=S.filter(function(M){return M}).filter(function(M){var P=M.validateTrigger;if(!P)return!0;var R=xj(P);return R.includes(p)})),!(k&&p)){$.next=10;break}return $.next=8,new Promise(function(M){setTimeout(M,k)});case 8:if(i.validatePromise===g){$.next=10;break}return $.abrupt("return",[]);case 10:return _=yBe(c,u,S,l,b,C),_.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ql;if(i.validatePromise===g){var P;i.validatePromise=null;var R=[],O=[];(P=M.forEach)===null||P===void 0||P.call(M,function(j){var I=j.rule.warningOnly,A=j.errors,N=A===void 0?ql:A;I?O.push.apply(O,lt(N)):R.push.apply(R,lt(N))}),i.errors=R,i.warnings=O,i.triggerMetaEvent(),i.reRender()}}),$.abrupt("return",_);case 13:case"end":return $.stop()}},v)})));return m||(i.validatePromise=g,i.dirty=!0,i.errors=ql,i.warnings=ql,i.triggerMetaEvent(),i.reRender()),g}),ne(fn(i),"isFieldValidating",function(){return!!i.validatePromise}),ne(fn(i),"isFieldTouched",function(){return i.touched}),ne(fn(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(Sm),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ne(fn(i),"getErrors",function(){return i.errors}),ne(fn(i),"getWarnings",function(){return i.warnings}),ne(fn(i),"isListField",function(){return i.props.isListField}),ne(fn(i),"isList",function(){return i.props.isList}),ne(fn(i),"isPreserve",function(){return i.props.preserve}),ne(fn(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),ne(fn(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return q(q({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Xi(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ne(fn(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Ds(l||c(!0),u)}),ne(fn(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,p=c.validateTrigger,h=c.getValueFromEvent,m=c.normalize,g=c.valuePropName,v=c.getValueProps,y=c.fieldContext,w=p!==void 0?p:y.validateTrigger,b=i.getNamePath(),C=y.getInternalHooks,k=y.getFieldsValue,S=C(Sm),_=S.dispatch,E=i.getValue(),$=v||function(j){return ne({},g,j)},M=l[f],P=u!==void 0?$(E):{},R=q(q({},l),P);R[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,I=arguments.length,A=new Array(I),N=0;N=0&&M<=P.length?(u.keys=[].concat(lt(u.keys.slice(0,M)),[u.id],lt(u.keys.slice(M))),b([].concat(lt(P.slice(0,M)),[$],lt(P.slice(M))))):(u.keys=[].concat(lt(u.keys),[u.id]),b([].concat(lt(P),[$]))),u.id+=1},remove:function($){var M=k(),P=new Set(Array.isArray($)?$:[$]);P.size<=0||(u.keys=u.keys.filter(function(R,O){return!P.has(O)}),b(M.filter(function(R,O){return!P.has(O)})))},move:function($,M){if($!==M){var P=k();$<0||$>=P.length||M<0||M>=P.length||(u.keys=oY(u.keys,$,M),b(oY(P,$,M)))}}},_=w||[];return Array.isArray(_)||(_=[]),r(_.map(function(E,$){var M=u.keys[$];return M===void 0&&(u.keys[$]=u.id,M=u.keys[$],u.id+=1),{name:$,key:M,isListField:!0}}),S,v)})))}function _Be(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Lpe="__@field_split__";function j9(e){return e.map(function(t){return"".concat(Kt(t),":").concat(t)}).join(Lpe)}var T1=function(){function e(){Ar(this,e),ne(this,"kvs",new Map)}return Dr(e,[{key:"set",value:function(n,r){this.kvs.set(j9(n),r)}},{key:"get",value:function(n){return this.kvs.get(j9(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(j9(n))}},{key:"map",value:function(n){return lt(this.kvs.entries()).map(function(r){var i=Te(r,2),a=i[0],o=i[1],s=a.split(Lpe);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Te(c,3),f=u[1],p=u[2];return f==="number"?Number(p):p}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),kBe=["name"],EBe=Dr(function e(t){var n=this;Ar(this,e),ne(this,"formHooked",!1),ne(this,"forceRootUpdate",void 0),ne(this,"subscribable",!0),ne(this,"store",{}),ne(this,"fieldEntities",[]),ne(this,"initialValues",{}),ne(this,"callbacks",{}),ne(this,"validateMessages",null),ne(this,"preserve",null),ne(this,"lastValidatePromise",null),ne(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),ne(this,"getInternalHooks",function(r){return r===Sm?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Br(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ne(this,"useSubscribe",function(r){n.subscribable=r}),ne(this,"prevWithoutPreserves",null),ne(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=gv(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=hs(o,l,Ds(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),ne(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new T1;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ne(this,"getInitialValue",function(r){var i=Ds(n.initialValues,r);return r.length?gv(i):i}),ne(this,"setCallbacks",function(r){n.callbacks=r}),ne(this,"setValidateMessages",function(r){n.validateMessages=r}),ne(this,"setPreserve",function(r){n.preserve=r}),ne(this,"watchList",[]),ne(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ne(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),ne(this,"timeoutId",null),ne(this,"warningUnhooked",function(){}),ne(this,"updateStore",function(r){n.store=r}),ne(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),ne(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new T1;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),ne(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=ba(a);return i.get(o)||{INVALIDATE_NAME_PATH:ba(a)}})}),ne(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Kt(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,g;if((m=(g=u).isList)!==null&&m!==void 0&&m.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!o)c.push(h);else{var v="getMeta"in u?u.getMeta():null;o(v)&&c.push(h)}}),aY(n.store,c.map(ba))}),ne(this,"getFieldValue",function(r){n.warningUnhooked();var i=ba(r);return Ds(n.store,i)}),ne(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:ba(r[o]),errors:[],warnings:[]}})}),ne(this,"getFieldError",function(r){n.warningUnhooked();var i=ba(r),a=n.getFieldsError([i])[0];return a.errors}),ne(this,"getFieldWarning",function(r){n.warningUnhooked();var i=ba(r),a=n.getFieldsError([i])[0];return a.warnings}),ne(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new T1,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var o=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var p=u.getNamePath(),h=n.getInitialValue(p);if(h!==void 0)Br(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var m=i.get(p);if(m&&m.size>1)Br(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var g=n.getFieldValue(p),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(hs(n.store,p,lt(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,lt(lt(c).map(function(f){return f.entity})))}})):s=a,o(s)}),ne(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(gv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(ba);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(hs(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),ne(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=Ht(o,kBe),c=ba(s);a.push(c),"value"in l&&n.updateStore(hs(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:o})}),n.notifyWatch(a)}),ne(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=q(q({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ne(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Ds(n.store,a);o===void 0&&n.updateStore(hs(n.store,a,i))}}),ne(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ne(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!Dpe(f.getNamePath(),i)})){var u=n.store;n.updateStore(hs(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ne(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),ne(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=q(q({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),ne(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(lt(a))}),a}),ne(this,"updateValue",function(r,i){var a=ba(r),o=n.store;n.updateStore(hs(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var c=aY(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(lt(s)))}),ne(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=gv(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ne(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),ne(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new T1;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ba(u);o.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),ne(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new T1;i.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return Iv(r,u)});l.length&&a(l,o)}}),ne(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(ba):[],c=[],u=String(Date.now()),f=new Set,p=o||{},h=p.recursive,m=p.dirty;n.getFieldEntities(!0).forEach(function(w){if(s||l.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(m&&!w.isFieldDirty())){var b=w.getNamePath();if(f.add(b.join(u)),!s||Iv(l,b,h)){var C=w.validateRules(q({validateMessages:q(q({},Ape),n.validateMessages)},o));c.push(C.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(k){var S,_=[],E=[];return(S=k.forEach)===null||S===void 0||S.call(k,function($){var M=$.rule.warningOnly,P=$.errors;M?E.push.apply(E,lt(P)):_.push.apply(_,lt(P))}),_.length?Promise.reject({name:b,errors:_,warnings:E}):{name:b,errors:_,warnings:E}}))}}});var g=_Be(c);n.lastValidatePromise=g,g.catch(function(w){return w}).then(function(w){var b=w.map(function(C){var k=C.name;return k});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,w)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(w){var b=w.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:b,outOfDate:n.lastValidatePromise!==g})});v.catch(function(w){return w});var y=l.filter(function(w){return f.has(w.join(u))});return n.triggerOnFieldsChange(y),v}),ne(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function cB(e){var t=d.useRef(),n=d.useState({}),r=Te(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new EBe(a);t.current=o.getForm()}return[t.current]}var Pj=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Bpe=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=d.useContext(Pj),s=d.useRef({});return d.createElement(Pj.Provider,{value:q(q({},o),{},{validateMessages:q(q({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=q(q({},s.current),{},ne({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=q({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},a)},$Be=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],MBe=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,h=p===void 0?"onChange":p,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,w=t.clearOnDestroy,b=Ht(t,$Be),C=d.useRef(null),k=d.useContext(Pj),S=cB(o),_=Te(S,1),E=_[0],$=E.getInternalHooks(Sm),M=$.useSubscribe,P=$.setInitialValues,R=$.setCallbacks,O=$.setValidateMessages,j=$.setPreserve,I=$.destroyForm;d.useImperativeHandle(n,function(){return q(q({},E),{},{nativeElement:C.current})}),d.useEffect(function(){return k.registerForm(r,E),function(){k.unregisterForm(r)}},[k,E,r]),O(q(q({},k.validateMessages),f)),R({onValuesChange:m,onFieldsChange:function(Y){if(k.triggerFormChange(r,Y),g){for(var ee=arguments.length,ie=new Array(ee>1?ee-1:0),Z=1;Z{}}),Hpe=d.createContext(null),Upe=e=>{const t=$r(e,["prefixCls"]);return d.createElement(Bpe,Object.assign({},t))},uB=d.createContext({prefixCls:""}),oa=d.createContext({}),PBe=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(oa),a=d.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return d.createElement(oa.Provider,{value:a},t)},Wpe=d.createContext(void 0),bu=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=te.createElement(PBe,{override:!0,status:!0},i)),t&&(i=te.createElement(NDe,null,i)),i};function R0(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function lY(e){const{closable:t,closeIcon:n}=e||{};return te.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function cY(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{i&&Object.keys(i).forEach(a=>{i[a]!==void 0&&(e[a]=i[a])})}),e}const OBe={};function dB(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:OBe;const r=lY(e),i=lY(t),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,o=te.useMemo(()=>Object.assign({closeIcon:te.createElement(Eu,null)},n),[n]),s=te.useMemo(()=>r===!1?!1:r?cY(o,i,r):i===!1?!1:i?cY(o,i):o.closable?o:!1,[r,i,o]);return te.useMemo(()=>{if(s===!1)return[!1,null,a];const{closeIconRender:l}=o,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=Fi(s,!0);Object.keys(f).length&&(u=te.isValidElement(u)?te.cloneElement(u,f):te.createElement("span",Object.assign({},f),u))}return[!0,u,a]},[s,o])}var Vpe=function(t){if(Ws()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},RBe=function(t,n){if(!Vpe(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function uY(e,t){return!Array.isArray(e)&&t!==void 0?RBe(e,t):Vpe(e)}const IBe=()=>Ws()&&window.document.documentElement,m8=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Ee({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Ee({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:Ee(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},jBe=new ir("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),g8=e=>({height:e,lineHeight:Me(e)}),jv=e=>Object.assign({width:e},g8(e)),NBe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:jBe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),N9=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},g8(e)),ABe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},jv(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},jv(i)),[`${t}${t}-sm`]:Object.assign({},jv(a))}},DBe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},N9(t,s)),[`${r}-lg`]:Object.assign({},N9(i,s)),[`${r}-sm`]:Object.assign({},N9(a,s))}},dY=e=>Object.assign({width:e},g8(e)),FBe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},dY(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},dY(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},A9=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},D9=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},g8(e)),LBe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},D9(r,s))},A9(e,r,n)),{[`${n}-lg`]:Object.assign({},D9(i,s))}),A9(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},D9(a,s))}),A9(e,a,`${n}-sm`))},BBe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:p,marginSM:h,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:y,controlHeightXS:w,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},jv(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},jv(c)),[`${n}-sm`]:Object.assign({},jv(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:w}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},LBe(e)),ABe(e)),DBe(e)),FBe(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${i} > li, ${n}, ${a}, ${o}, ${s} - `]:Object.assign({},ABe(e))}}},HBe=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Ey=Jn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Hn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[zBe(r)]},HBe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),UBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=$r(e,["prefixCls","className"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(m8,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},p))))},WBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=$r(e,["prefixCls"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(m8,Object.assign({prefixCls:`${l}-button`,size:o},p))))},VBe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",qBe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=d.useContext(Xt),s=o("skeleton",t),[l,c,u]=Ey(s),f=Ee(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:Ee(`${s}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:VBe,className:`${s}-image-path`})))))},KBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=$r(e,["prefixCls"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(m8,Object.assign({prefixCls:`${l}-input`,size:o},p))))},GBe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=Ee(l,`${l}-element`,{[`${l}-active`]:a},u,n,r,f);return c(d.createElement("div",{className:p},d.createElement("div",{className:Ee(`${l}-image`,n),style:i},o)))},YBe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},XBe=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=lt(new Array(i)).map((o,s)=>d.createElement("li",{key:s,style:{width:YBe(s,e)}}));return d.createElement("ul",{className:Ee(t,n),style:r},a)},ZBe=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.createElement("h3",{className:Ee(t,n),style:Object.assign({width:r},i)})};function F9(e){return e&&typeof e=="object"?e:{}}function QBe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function JBe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function eze(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Kf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:p,direction:h,skeleton:m}=d.useContext(Xt),g=p("skeleton",t),[v,y,w]=Ey(g);if(n||!("loading"in e)){const b=!!s,C=!!l,k=!!c;let S;if(b){const $=Object.assign(Object.assign({prefixCls:`${g}-avatar`},QBe(C,k)),F9(s));S=d.createElement("div",{className:`${g}-header`},d.createElement(m8,Object.assign({},$)))}let _;if(C||k){let $;if(C){const P=Object.assign(Object.assign({prefixCls:`${g}-title`},JBe(b,k)),F9(l));$=d.createElement(ZBe,Object.assign({},P))}let M;if(k){const P=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},eze(b,C)),F9(c));M=d.createElement(XBe,Object.assign({},P))}_=d.createElement("div",{className:`${g}-content`},$,M)}const E=Ee(g,{[`${g}-with-avatar`]:b,[`${g}-active`]:u,[`${g}-rtl`]:h==="rtl",[`${g}-round`]:f},m==null?void 0:m.className,r,i,y,w);return v(d.createElement("div",{className:E,style:Object.assign(Object.assign({},m==null?void 0:m.style),a)},S,_))}return o??null};Kf.Button=WBe;Kf.Avatar=UBe;Kf.Input=KBe;Kf.Image=qBe;Kf.Node=GBe;function fY(){}const tze=d.createContext({add:fY,remove:fY});function Kpe(e){const t=d.useContext(tze),n=d.useRef(null);return Vn(i=>{if(i){const a=e?i.querySelector(e):i;t.add(a),n.current=a}else t.remove(n.current)})}const pY=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(C4);return te.createElement(Yt,Object.assign({onClick:n},e),t)},hY=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=d.useContext(C4);return te.createElement(Yt,Object.assign({},ZL(n),{loading:e,onClick:i},t),r)};function Gpe(e,t){return te.createElement("span",{className:`${e}-close-x`},t||te.createElement(Eu,{className:`${e}-close-icon`}))}const Ype=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Ga("Modal",yfe()),f=t||(u==null?void 0:u.okText),p=r||(u==null?void 0:u.cancelText),h={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:p,okType:n,onOk:a,onCancel:o},m=te.useMemo(()=>h,lt(Object.values(h)));let g;return typeof c=="function"||typeof c>"u"?(g=te.createElement(te.Fragment,null,te.createElement(pY,null),te.createElement(hY,null)),typeof c=="function"&&(g=c(g,{OkBtn:hY,CancelBtn:pY})),g=te.createElement(Ope,{value:m},g)):g=c,te.createElement(UL,{disabled:!1},g)},nze=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},rze=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},ize=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Oj=(e,t)=>ize(e,t),aze=(e,t,n)=>({[`@media (min-width: ${Me(t)})`]:Object.assign({},Oj(e,n))}),oze=()=>({}),sze=()=>({}),lze=Jn("Grid",nze,oze),Xpe=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),cze=Jn("Grid",e=>{const t=Hn(e,{gridColumns:24}),n=Xpe(t);return delete n.xs,[rze(t),Oj(t,""),Oj(t,"-xs"),Object.keys(n).map(r=>aze(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},sze);function mY(e){return{position:e,inset:0}}const Zpe=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},mY("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},mY("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:eB(e)}]},uze=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Me(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ar(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Me(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Me(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Vs(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Me(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:Object.assign({},NBe(e))}}},zBe=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Ey=Jn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Hn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[BBe(r)]},zBe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),HBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=$r(e,["prefixCls","className"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(m8,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},p))))},UBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=$r(e,["prefixCls"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(m8,Object.assign({prefixCls:`${l}-button`,size:o},p))))},WBe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",VBe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=d.useContext(Xt),s=o("skeleton",t),[l,c,u]=Ey(s),f=Ee(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:Ee(`${s}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:WBe,className:`${s}-image-path`})))))},qBe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=$r(e,["prefixCls"]),h=Ee(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,f);return c(d.createElement("div",{className:h},d.createElement(m8,Object.assign({prefixCls:`${l}-input`,size:o},p))))},KBe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("skeleton",t),[c,u,f]=Ey(l),p=Ee(l,`${l}-element`,{[`${l}-active`]:a},u,n,r,f);return c(d.createElement("div",{className:p},d.createElement("div",{className:Ee(`${l}-image`,n),style:i},o)))},GBe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},YBe=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=lt(new Array(i)).map((o,s)=>d.createElement("li",{key:s,style:{width:GBe(s,e)}}));return d.createElement("ul",{className:Ee(t,n),style:r},a)},XBe=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.createElement("h3",{className:Ee(t,n),style:Object.assign({width:r},i)})};function F9(e){return e&&typeof e=="object"?e:{}}function ZBe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function QBe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function JBe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Kf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:p,direction:h,skeleton:m}=d.useContext(Xt),g=p("skeleton",t),[v,y,w]=Ey(g);if(n||!("loading"in e)){const b=!!s,C=!!l,k=!!c;let S;if(b){const $=Object.assign(Object.assign({prefixCls:`${g}-avatar`},ZBe(C,k)),F9(s));S=d.createElement("div",{className:`${g}-header`},d.createElement(m8,Object.assign({},$)))}let _;if(C||k){let $;if(C){const P=Object.assign(Object.assign({prefixCls:`${g}-title`},QBe(b,k)),F9(l));$=d.createElement(XBe,Object.assign({},P))}let M;if(k){const P=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},JBe(b,C)),F9(c));M=d.createElement(YBe,Object.assign({},P))}_=d.createElement("div",{className:`${g}-content`},$,M)}const E=Ee(g,{[`${g}-with-avatar`]:b,[`${g}-active`]:u,[`${g}-rtl`]:h==="rtl",[`${g}-round`]:f},m==null?void 0:m.className,r,i,y,w);return v(d.createElement("div",{className:E,style:Object.assign(Object.assign({},m==null?void 0:m.style),a)},S,_))}return o??null};Kf.Button=UBe;Kf.Avatar=HBe;Kf.Input=qBe;Kf.Image=VBe;Kf.Node=KBe;function fY(){}const eze=d.createContext({add:fY,remove:fY});function qpe(e){const t=d.useContext(eze),n=d.useRef(null);return Vn(i=>{if(i){const a=e?i.querySelector(e):i;t.add(a),n.current=a}else t.remove(n.current)})}const pY=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(S4);return te.createElement(Yt,Object.assign({onClick:n},e),t)},hY=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=d.useContext(S4);return te.createElement(Yt,Object.assign({},ZL(n),{loading:e,onClick:i},t),r)};function Kpe(e,t){return te.createElement("span",{className:`${e}-close-x`},t||te.createElement(Eu,{className:`${e}-close-icon`}))}const Gpe=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Ga("Modal",vfe()),f=t||(u==null?void 0:u.okText),p=r||(u==null?void 0:u.cancelText),h={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:p,okType:n,onOk:a,onCancel:o},m=te.useMemo(()=>h,lt(Object.values(h)));let g;return typeof c=="function"||typeof c>"u"?(g=te.createElement(te.Fragment,null,te.createElement(pY,null),te.createElement(hY,null)),typeof c=="function"&&(g=c(g,{OkBtn:hY,CancelBtn:pY})),g=te.createElement(Ppe,{value:m},g)):g=c,te.createElement(UL,{disabled:!1},g)},tze=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},nze=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},rze=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Oj=(e,t)=>rze(e,t),ize=(e,t,n)=>({[`@media (min-width: ${Me(t)})`]:Object.assign({},Oj(e,n))}),aze=()=>({}),oze=()=>({}),sze=Jn("Grid",tze,aze),Ype=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),lze=Jn("Grid",e=>{const t=Hn(e,{gridColumns:24}),n=Ype(t);return delete n.xs,[nze(t),Oj(t,""),Oj(t,"-xs"),Object.keys(n).map(r=>ize(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},oze);function mY(e){return{position:e,inset:0}}const Xpe=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},mY("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},mY("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:eB(e)}]},cze=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Me(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ar(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Me(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Me(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Vs(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Me(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},dze=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},fze=e=>{const{componentCls:t}=e,n=Xpe(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${Me(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(lt(r))}}},Qpe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Hn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Jpe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Me(e.paddingMD)} ${Me(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Me(e.padding)} ${Me(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Me(e.paddingXS)} ${Me(e.padding)}`:0,footerBorderTop:e.wireframe?`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Me(e.padding*2)} ${Me(e.padding*2)} ${Me(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),ehe=Jn("Modal",e=>{const t=Qpe(e);return[uze(t),dze(t),Zpe(t),_y(t,"zoom"),fze(t)]},Jpe,{unitless:{titleLineHeight:!0}});var pze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{Rj={x:e.pageX,y:e.pageY},setTimeout(()=>{Rj=null},100)};jBe()&&document.documentElement.addEventListener("click",hze,!0);const the=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=d.useContext(Xt),o=ie=>{const{onCancel:Z}=e;Z==null||Z(ie)},s=ie=>{const{onOk:Z}=e;Z==null||Z(ie)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:p,centered:h,getContainer:m,focusTriggerAfterClose:g=!0,style:v,visible:y,width:w=520,footer:b,classNames:C,styles:k,children:S,loading:_}=e,E=pze(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),M=r(),P=qr($),[R,O,j]=ehe($,P),I=Ee(p,{[`${$}-centered`]:!!h,[`${$}-wrap-rtl`]:i==="rtl"}),A=b!==null&&!_?d.createElement(Ype,Object.assign({},e,{onOk:s,onCancel:o})):null,[N,F,K]=dB(R0(e),R0(a),{closable:!0,closeIcon:d.createElement(Eu,{className:`${$}-close-icon`}),closeIconRender:ie=>Gpe($,ie)}),L=Kpe(`.${$}-content`),[V,B]=$c("Modal",E.zIndex),[U,Y]=d.useMemo(()=>w&&typeof w=="object"?[void 0,w]:[w,void 0],[w]),ee=d.useMemo(()=>{const ie={};return Y&&Object.keys(Y).forEach(Z=>{const X=Y[Z];X!==void 0&&(ie[`--${$}-${Z}-width`]=typeof X=="number"?`${X}px`:X)}),ie},[Y]);return R(d.createElement(bu,{form:!0,space:!0},d.createElement(y4.Provider,{value:B},d.createElement(oB,Object.assign({width:U},E,{zIndex:V,getContainer:m===void 0?n:m,prefixCls:$,rootClassName:Ee(O,u,j,P),footer:A,visible:f??y,mousePosition:(t=E.mousePosition)!==null&&t!==void 0?t:Rj,onClose:o,closable:N&&{disabled:K,closeIcon:F},closeIcon:F,focusTriggerAfterClose:g,transitionName:oo(M,"zoom",e.transitionName),maskTransitionName:oo(M,"fade",e.maskTransitionName),className:Ee(O,c,a==null?void 0:a.className),style:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.style),v),ee),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),C),{wrapper:Ee(I,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),k),panelRef:L}),_?d.createElement(Kf,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):S))))},mze=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},vd()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Me(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Me(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, - ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},gze=Sy(["Modal","confirm"],e=>{const t=Qpe(e);return[mze(t)]},Jpe,{order:-1e3});var vze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iw,lt(Object.values(w))),C=d.createElement(d.Fragment,null,d.createElement(UG,null),d.createElement(WG,null)),k=e.title!==void 0&&e.title!==null,S=`${a}-body`;return d.createElement("div",{className:`${a}-body-wrapper`},d.createElement("div",{className:Ee(S,{[`${S}-has-title`]:k})},f,d.createElement("div",{className:`${a}-paragraph`},k&&d.createElement("span",{className:`${a}-title`},e.title),d.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(Ope,{value:b},d.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(C,{OkBtn:WG,CancelBtn:UG}):C)):l,d.createElement(gze,{prefixCls:t}))}const yze=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f}=e,p=`${a}-confirm`,h=e.width||416,m=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=Ee(p,`${p}-${e.type}`,{[`${p}-rtl`]:i==="rtl"},e.className),[,w]=ka(),b=d.useMemo(()=>n!==void 0?n:w.zIndexPopupBase+GL,[n,w]);return d.createElement(the,Object.assign({},e,{className:y,wrapClassName:Ee({[`${p}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:oo(s||"","zoom",e.transitionName),maskTransitionName:oo(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:m,styles:Object.assign({body:l,mask:r},f),width:h,zIndex:b,closable:c}),d.createElement(nhe,Object.assign({},e,{confirmPrefixCls:p})))},rhe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return d.createElement(zn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},d.createElement(yze,Object.assign({},e)))},Cm=[];let ihe="";function ahe(){return ihe}const bze=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,o=yfe(),s=d.useContext(Xt),l=ahe()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),te.createElement(rhe,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:u}))};function E4(e){const t=Qfe(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,a;function o(){for(var u,f=arguments.length,p=new Array(f),h=0;hv==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(lt(p.slice(1))))}for(let v=0;v{const f=t.getPrefixCls(void 0,ahe()),p=t.getIconPrefixCls(),h=t.getTheme(),m=te.createElement(bze,Object.assign({},u));a=XL()(te.createElement(zn,{prefixCls:f,iconPrefixCls:p,theme:h},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,f=new Array(u),p=0;p{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),Cm.push(l),{destroy:l,update:c}}function ohe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function she(e){return Object.assign(Object.assign({},e),{type:"info"})}function lhe(e){return Object.assign(Object.assign({},e),{type:"success"})}function che(e){return Object.assign(Object.assign({},e),{type:"error"})}function uhe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function wze(e){let{rootPrefixCls:t}=e;ihe=t}var xze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,{afterClose:r,config:i}=e,a=xze(e,["afterClose","config"]);const[o,s]=d.useState(!0),[l,c]=d.useState(i),{direction:u,getPrefixCls:f}=d.useContext(Xt),p=f("modal"),h=f(),m=()=>{var w;r(),(w=l.afterClose)===null||w===void 0||w.call(l)},g=function(){var w;s(!1);for(var b=arguments.length,C=new Array(b),k=0;kE==null?void 0:E.triggerCancel)){var _;(w=l.onCancel)===null||w===void 0||(_=w).call.apply(_,[l,()=>{}].concat(lt(C.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:g,update:w=>{c(b=>Object.assign(Object.assign({},b),w))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=Ga("Modal",Us.Modal);return d.createElement(rhe,Object.assign({prefixCls:p,rootPrefixCls:h},l,{close:g,open:o,afterClose:m,okText:l.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||u,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},a))},Cze=d.forwardRef(Sze);let gY=0;const _ze=d.memo(d.forwardRef((e,t)=>{const[n,r]=hDe();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function dhe(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(lt(t).forEach(o=>{o()}),n([]))},[t]);const r=d.useCallback(a=>function(s){var l;gY+=1;const c=d.createRef();let u;const f=new Promise(v=>{u=v});let p=!1,h;const m=d.createElement(Cze,{key:`modal-${gY}`,config:a(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>p,onConfirm:v=>{u(v)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),h&&Cm.push(h),{destroy:()=>{function v(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?v():n(y=>[].concat(lt(y),[v]))},update:v=>{function y(){var w;(w=c.current)===null||w===void 0||w.update(v)}c.current?y():n(w=>[].concat(lt(w),[y]))},then:v=>(p=!0,f.then(v))}},[]);return[d.useMemo(()=>({info:r(she),success:r(lhe),error:r(che),warning:r(ohe),confirm:r(uhe)}),[]),d.createElement(_ze,{key:"modal-holder",ref:e})]}const kze=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new ir("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new ir("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new ir("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new ir("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},Eze=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],$ze={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Mze=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[$ze[t]]:{value:0,_skip_check_:!0}}}}},Tze=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Pze=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Tze(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Pze(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Eze.map(n=>Mze(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Rze=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:p,notificationPadding:h,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:y,lineHeight:w,width:b,notificationIconSize:C,colorText:k}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:p,borderRadius:o,boxShadow:r,[S]:{padding:h,width:b,maxWidth:`calc(100vw - ${Me(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:w,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:i,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:y,color:k},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:y},[`${S}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${S}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Vs(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Me(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:o,background:g}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},Ize=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new ir("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ar(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-btn`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:Object.assign({},Rze(e))}}]},jze=e=>({zIndexPopup:e.zIndexPopupBase+GL+50,width:384}),Nze=e=>{const t=e.paddingMD,n=e.paddingLG;return Hn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Me(e.paddingMD)} ${Me(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Aze=Jn("Notification",e=>{const t=Nze(e);return[Ize(t),kze(t),Oze(t)]},jze);function fhe(e,t){return t===null||t===!1?null:t||d.createElement(Eu,{className:`${e}-close-icon`})}const Dze={success:Ug,info:QE,error:Pd,warning:qf},Fze=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:a,btn:o,role:s="alert"}=e;let l=null;return n?l=d.createElement("span",{className:`${t}-icon`},n):r&&(l=d.createElement(Dze[r]||null,{className:Ee(`${t}-icon`,`${t}-icon-${r}`)})),d.createElement("div",{className:Ee({[`${t}-with-icon`]:l}),role:s},l,d.createElement("div",{className:`${t}-message`},i),d.createElement("div",{className:`${t}-description`},a),o&&d.createElement("div",{className:`${t}-btn`},o))};function Lze(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Bze(e){return{motionName:`${e}-fade`}}var zze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=qr(n),[i,a,o]=Aze(n,r);return i(te.createElement(lpe,{classNames:{list:Ee(a,o,r)}},t))},Vze=(e,t)=>{let{prefixCls:n,key:r}=t;return te.createElement(Wze,{prefixCls:n,key:r},e)},qze=te.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:f=!0,showProgress:p}=e,{getPrefixCls:h,getPopupContainer:m,notification:g,direction:v}=d.useContext(Xt),[,y]=ka(),w=i||h("notification"),b=E=>Lze(E,n??vY,r??vY),C=()=>Ee({[`${w}-rtl`]:s??v==="rtl"}),k=()=>Bze(w),[S,_]=cpe({prefixCls:w,style:b,className:C,motion:k,closable:!0,closeIcon:fhe(w),duration:u??Hze,getContainer:()=>(a==null?void 0:a())||(m==null?void 0:m())||document.body,maxCount:o,pauseOnHover:f,showProgress:p,onAllRemoved:l,renderNotifications:Vze,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return te.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:w,notification:g})),_});function Kze(e){const t=te.useRef(null);return Hg(),[te.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:f}=t.current,p=`${u}-notice`,{message:h,description:m,icon:g,type:v,btn:y,className:w,style:b,role:C="alert",closeIcon:k,closable:S}=s,_=zze(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),E=fhe(p,typeof k<"u"?k:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:Uze},_),{content:te.createElement(Fze,{prefixCls:p,icon:g,type:v,message:h,description:m,btn:y,role:C}),className:Ee(v&&`${p}-${v}`,w,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:E,closable:S??!!E}))},a={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),a},[]),te.createElement(qze,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Gze(e){return Kze(e)}const Ij=te.createContext({}),phe=te.createContext({message:{},notification:{},modal:{}}),Yze=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},Xze=()=>({}),Zze=Jn("App",Yze,Xze),Qze=()=>te.useContext(phe),v8=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:a,notification:o,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=d.useContext(Xt),f=u("app",t),[p,h,m]=Zze(f),g=Ee(h,f,r,i,m,{[`${f}-rtl`]:c==="rtl"}),v=d.useContext(Ij),y=te.useMemo(()=>({message:Object.assign(Object.assign({},v.message),a),notification:Object.assign(Object.assign({},v.notification),o)}),[a,o,v.message,v.notification]),[w,b]=hpe(y.message),[C,k]=Gze(y.notification),[S,_]=dhe(),E=te.useMemo(()=>({message:w,notification:C,modal:S}),[w,C,S]);Hg()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const $=l===!1?te.Fragment:l,M={className:g,style:s};return p(te.createElement(phe.Provider,{value:E},te.createElement(Ij.Provider,{value:y},te.createElement($,Object.assign({},l===!1?void 0:M),_,b,k,n))))};v8.useApp=Qze;function hhe(e){return t=>d.createElement(zn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const Gf=(e,t,n,r,i)=>hhe(o=>{const{prefixCls:s,style:l}=o,c=d.useRef(null),[u,f]=d.useState(0),[p,h]=d.useState(0),[m,g]=In(!1,{value:o.open}),{getPrefixCls:v}=d.useContext(Xt),y=v(r||"select",s);d.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(S=>{const _=S[0].target;f(_.offsetHeight+8),h(_.offsetWidth)}),k=setInterval(()=>{var S;const _=i?`.${i(y)}`:`.${y}-dropdown`,E=(S=c.current)===null||S===void 0?void 0:S.querySelector(_);E&&(clearInterval(k),C.observe(E))},10);return()=>{clearInterval(k),C.disconnect()}}},[]);let w=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(w=n(w)),t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:p};return d.createElement("div",{ref:c,style:b},d.createElement(e,Object.assign({},w)))}),y8=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var b8=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return d.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:d.createElement("span",{className:Ee(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},Jze=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=te.useMemo(function(){if(Kt(i)==="object")return i.clearIcon;if(a)return a},[i,a]),u=te.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:u,clearIcon:te.createElement(b8,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},mhe=d.createContext(null);function fB(){return d.useContext(mhe)}function eHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=Te(t,2),r=n[0],i=n[1],a=d.useRef(null),o=function(){window.clearTimeout(a.current)};d.useEffect(function(){return o},[]);var s=function(c,u){o(),a.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,o]}function ghe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function tHe(e,t,n,r){var i=d.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function nHe(e){return e&&![mt.ESC,mt.SHIFT,mt.BACKSPACE,mt.TAB,mt.WIN_KEY,mt.ALT,mt.META,mt.WIN_KEY_RIGHT,mt.CTRL,mt.SEMICOLON,mt.EQUALS,mt.CAPS_LOCK,mt.CONTEXT_MENU,mt.F1,mt.F2,mt.F3,mt.F4,mt.F5,mt.F6,mt.F7,mt.F8,mt.F9,mt.F10,mt.F11,mt.F12].includes(e)}var rHe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],P1=void 0;function iHe(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,p=e.children,h=e.display,m=e.order,g=e.component,v=g===void 0?"div":g,y=Ht(e,rHe),w=o&&!h;function b(E){l(c,E)}d.useEffect(function(){return function(){b(null)}},[]);var C=a&&i!==P1?a(i):p,k;r||(k={opacity:w?0:1,height:w?0:P1,overflowY:w?"hidden":P1,order:o?m:P1,pointerEvents:w?"none":P1,position:w?"absolute":P1});var S={};w&&(S["aria-hidden"]=!0);var _=d.createElement(v,tt({className:Ee(!r&&n,u),style:q(q({},k),f)},S,y,{ref:t}),C);return o&&(_=d.createElement(Go,{onResize:function($){var M=$.offsetWidth;b(M)},disabled:s},_)),_}var Z2=d.forwardRef(iHe);Z2.displayName="Item";function aHe(e){if(typeof MessageChannel>"u")rr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function oHe(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],aHe(function(){Va.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Ib(e,t){var n=d.useState(t),r=Te(n,2),i=r[0],a=r[1],o=Vn(function(s){e(function(){a(s)})});return[i,o]}var g6=te.createContext(null),sHe=["component"],lHe=["className"],cHe=["className"],uHe=function(t,n){var r=d.useContext(g6);if(!r){var i=t.component,a=i===void 0?"div":i,o=Ht(t,sHe);return d.createElement(a,tt({},o,{ref:n}))}var s=r.className,l=Ht(r,lHe),c=t.className,u=Ht(t,cHe);return d.createElement(g6.Provider,{value:null},d.createElement(Z2,tt({ref:n,className:Ee(s,c)},l,u)))},vhe=d.forwardRef(uHe);vhe.displayName="RawItem";var dHe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],yhe="responsive",bhe="invalidate";function fHe(e){return"+ ".concat(e.length," ...")}function pHe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,p=e.style,h=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,y=e.suffix,w=e.component,b=w===void 0?"div":w,C=e.itemComponent,k=e.onVisibleChange,S=Ht(e,dHe),_=f==="full",E=oHe(),$=Ib(E,null),M=Te($,2),P=M[0],R=M[1],O=P||0,j=Ib(E,new Map),I=Te(j,2),A=I[0],N=I[1],F=Ib(E,0),K=Te(F,2),L=K[0],V=K[1],B=Ib(E,0),U=Te(B,2),Y=U[0],ee=U[1],ie=Ib(E,0),Z=Te(ie,2),X=Z[0],ae=Z[1],oe=d.useState(null),le=Te(oe,2),ce=le[0],pe=le[1],me=d.useState(null),re=Te(me,2),fe=re[0],ve=re[1],$e=d.useMemo(function(){return fe===null&&_?Number.MAX_SAFE_INTEGER:fe||0},[fe,P]),Ce=d.useState(!1),be=Te(Ce,2),Se=be[0],we=be[1],se="".concat(r,"-item"),ye=Math.max(L,Y),Oe=m===yhe,z=a.length&&Oe,H=m===bhe,G=z||typeof m=="number"&&a.length>m,de=d.useMemo(function(){var Lt=a;return z?P===null&&_?Lt=a:Lt=a.slice(0,Math.min(a.length,O/u)):typeof m=="number"&&(Lt=a.slice(0,m)),Lt},[a,u,P,m,z]),xe=d.useMemo(function(){return z?a.slice($e+1):a.slice(de.length)},[a,de,z,$e]),he=d.useCallback(function(Lt,Bt){var Ut;return typeof l=="function"?l(Lt):(Ut=l&&(Lt==null?void 0:Lt[l]))!==null&&Ut!==void 0?Ut:Bt},[l]),Ue=d.useCallback(o||function(Lt){return Lt},[o]);function We(Lt,Bt,Ut){fe===Lt&&(Bt===void 0||Bt===ce)||(ve(Lt),Ut||(we(LtO){We(Ne-1,Lt-He-X+Y);break}}y&&Xe(0)+X>O&&pe(null)}},[O,A,Y,X,he,de]);var Ke=Se&&!!xe.length,qe={};ce!==null&&z&&(qe={position:"absolute",left:ce,top:0});var Et={prefixCls:se,responsive:z,component:C,invalidate:H},ut=s?function(Lt,Bt){var Ut=he(Lt,Bt);return d.createElement(g6.Provider,{key:Ut,value:q(q({},Et),{},{order:Bt,item:Lt,itemKey:Ut,registerSize:ze,display:Bt<=$e})},s(Lt,Bt))}:function(Lt,Bt){var Ut=he(Lt,Bt);return d.createElement(Z2,tt({},Et,{order:Bt,key:Ut,item:Lt,renderItem:Ue,itemKey:Ut,registerSize:ze,display:Bt<=$e}))},gt,Qe={order:Ke?$e:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:Ve,display:Ke};if(v)v&&(gt=d.createElement(g6.Provider,{value:q(q({},Et),Qe)},v(xe)));else{var nt=g||fHe;gt=d.createElement(Z2,tt({},Et,Qe),typeof nt=="function"?nt(xe):nt)}var jt=d.createElement(b,tt({className:Ee(!H&&r,h),style:p,ref:t},S),de.map(ut),G?gt:null,y&&d.createElement(Z2,tt({},Et,{responsive:Oe,responsiveDisabled:!z,order:$e,className:"".concat(se,"-suffix"),registerSize:Be,display:!0,style:qe}),y));return Oe&&(jt=d.createElement(Go,{onResize:ge,disabled:!z},jt)),jt}var lu=d.forwardRef(pHe);lu.displayName="Overflow";lu.Item=vhe;lu.RESPONSIVE=yhe;lu.INVALIDATE=bhe;var hHe=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,p=t.activeDescendantId,h=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,y=t.onChange,w=t.onPaste,b=t.onCompositionStart,C=t.onCompositionEnd,k=t.onBlur,S=t.open,_=t.attrs,E=o||d.createElement("input",null),$=E,M=$.ref,P=$.props,R=P.onKeyDown,O=P.onChange,j=P.onMouseDown,I=P.onCompositionStart,A=P.onCompositionEnd,N=P.onBlur,F=P.style;return"maxLength"in E.props,E=d.cloneElement(E,q(q(q({type:"search"},P),{},{id:a,ref:ga(n,M),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Ee("".concat(i,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":S?p:void 0},_),{},{value:f?h:"",maxLength:m,readOnly:!f,unselectable:f?null:"on",style:q(q({},F),{},{opacity:f?null:0}),onKeyDown:function(L){g(L),R&&R(L)},onMouseDown:function(L){v(L),j&&j(L)},onChange:function(L){y(L),O&&O(L)},onCompositionStart:function(L){b(L),I&&I(L)},onCompositionEnd:function(L){C(L),A&&A(L)},onPaste:w,onBlur:function(L){k(L),N&&N(L)}})),E},whe=d.forwardRef(hHe);function xhe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var mHe=typeof window<"u"&&window.document&&window.document.documentElement,gHe=mHe;function vHe(e){return e!=null}function yHe(e){return!e&&e!==0}function yY(e){return["string","number"].includes(Kt(e))}function She(e){var t=void 0;return e&&(yY(e.title)?t=e.title.toString():yY(e.label)&&(t=e.label.toString())),t}function bHe(e,t){gHe?d.useLayoutEffect(e,t):d.useEffect(e,t)}function wHe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var bY=function(t){t.preventDefault(),t.stopPropagation()},xHe=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,p=t.showSearch,h=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,w=t.maxTagCount,b=t.maxTagTextLength,C=t.maxTagPlaceholder,k=C===void 0?function(me){return"+ ".concat(me.length," ...")}:C,S=t.tagRender,_=t.onToggleOpen,E=t.onRemove,$=t.onInputChange,M=t.onInputPaste,P=t.onInputKeyDown,R=t.onInputMouseDown,O=t.onInputCompositionStart,j=t.onInputCompositionEnd,I=t.onInputBlur,A=d.useRef(null),N=d.useState(0),F=Te(N,2),K=F[0],L=F[1],V=d.useState(!1),B=Te(V,2),U=B[0],Y=B[1],ee="".concat(r,"-selection"),ie=a||f==="multiple"&&s===!1||f==="tags"?o:"",Z=f==="tags"||f==="multiple"&&s===!1||p&&(a||U);bHe(function(){L(A.current.scrollWidth)},[ie]);var X=function(re,fe,ve,$e,Ce){return d.createElement("span",{title:She(re),className:Ee("".concat(ee,"-item"),ne({},"".concat(ee,"-item-disabled"),ve))},d.createElement("span",{className:"".concat(ee,"-item-content")},fe),$e&&d.createElement(b8,{className:"".concat(ee,"-item-remove"),onMouseDown:bY,onClick:Ce,customizeIcon:y},"×"))},ae=function(re,fe,ve,$e,Ce,be){var Se=function(se){bY(se),_(!a)};return d.createElement("span",{onMouseDown:Se},S({label:fe,value:re,disabled:ve,closable:$e,onClose:Ce,isMaxTag:!!be}))},oe=function(re){var fe=re.disabled,ve=re.label,$e=re.value,Ce=!u&&!fe,be=ve;if(typeof b=="number"&&(typeof ve=="string"||typeof ve=="number")){var Se=String(be);Se.length>b&&(be="".concat(Se.slice(0,b),"..."))}var we=function(ye){ye&&ye.stopPropagation(),E(re)};return typeof S=="function"?ae($e,be,fe,Ce,we):X(re,be,fe,Ce,we)},le=function(re){if(!i.length)return null;var fe=typeof k=="function"?k(re):k;return typeof S=="function"?ae(void 0,fe,!1,!1,void 0,!0):X({title:fe},fe,!1)},ce=d.createElement("div",{className:"".concat(ee,"-search"),style:{width:K},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},d.createElement(whe,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:m,editable:Z,activeDescendantId:g,value:ie,onKeyDown:P,onMouseDown:R,onChange:$,onPaste:M,onCompositionStart:O,onCompositionEnd:j,onBlur:I,tabIndex:v,attrs:Fi(t,!0)}),d.createElement("span",{ref:A,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},ie," ")),pe=d.createElement(lu,{prefixCls:"".concat(ee,"-overflow"),data:i,renderItem:oe,renderRest:le,suffix:ce,itemKey:wHe,maxCount:w});return d.createElement("span",{className:"".concat(ee,"-wrap")},pe,!i.length&&!ie&&d.createElement("span",{className:"".concat(ee,"-placeholder")},c))},SHe=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,p=t.values,h=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,y=t.activeValue,w=t.maxLength,b=t.onInputKeyDown,C=t.onInputMouseDown,k=t.onInputChange,S=t.onInputPaste,_=t.onInputCompositionStart,E=t.onInputCompositionEnd,$=t.onInputBlur,M=t.title,P=d.useState(!1),R=Te(P,2),O=R[0],j=R[1],I=u==="combobox",A=I||g,N=p[0],F=v||"";I&&y&&!O&&(F=y),d.useEffect(function(){I&&j(!1)},[I,y]);var K=u!=="combobox"&&!f&&!g?!1:!!F,L=M===void 0?She(N):M,V=d.useMemo(function(){return N?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:K?{visibility:"hidden"}:void 0},h)},[N,K,h,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(whe,{ref:a,prefixCls:r,id:i,open:f,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:c,value:F,onKeyDown:b,onMouseDown:C,onChange:function(U){j(!0),k(U)},onPaste:S,onCompositionStart:_,onCompositionEnd:E,onBlur:$,tabIndex:m,attrs:Fi(t,!0),maxLength:I?w:void 0})),!I&&N?d.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:K?{visibility:"hidden"}:void 0},N.label):null,V)},CHe=function(t,n){var r=d.useRef(null),i=d.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,p=t.autoClearSearchValue,h=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,w=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(L){r.current.focus(L)},blur:function(){r.current.blur()}}});var b=ghe(0),C=Te(b,2),k=C[0],S=C[1],_=function(L){var V=L.which,B=r.current instanceof HTMLTextAreaElement;!B&&o&&(V===mt.UP||V===mt.DOWN)&&L.preventDefault(),v&&v(L),V===mt.ENTER&&s==="tags"&&!i.current&&!o&&(m==null||m(L.target.value)),!(B&&!o&&~[mt.UP,mt.DOWN,mt.LEFT,mt.RIGHT].indexOf(V))&&nHe(V)&&g(!0)},E=function(){S(!0)},$=d.useRef(null),M=function(L){h(L,!0,i.current)!==!1&&g(!0)},P=function(){i.current=!0},R=function(L){i.current=!1,s!=="combobox"&&M(L.target.value)},O=function(L){var V=L.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var B=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(B,$.current)}$.current=null,M(V)},j=function(L){var V=L.clipboardData,B=V==null?void 0:V.getData("text");$.current=B||""},I=function(L){var V=L.target;if(V!==r.current){var B=document.body.style.msTouchAction!==void 0;B?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(L){var V=k();L.target!==r.current&&!V&&!(s==="combobox"&&u)&&L.preventDefault(),(s!=="combobox"&&(!l||!V)||!o)&&(o&&p!==!1&&h("",!0,!1),g())},N={inputRef:r,onInputKeyDown:_,onInputMouseDown:E,onInputChange:O,onInputPaste:j,onInputCompositionStart:P,onInputCompositionEnd:R,onInputBlur:y},F=s==="multiple"||s==="tags"?d.createElement(xHe,tt({},t,N)):d.createElement(SHe,tt({},t,N));return d.createElement("div",{ref:w,className:"".concat(a,"-selector"),onClick:I,onMouseDown:A},f&&d.createElement("div",{className:"".concat(a,"-prefix")},f),F)},_He=d.forwardRef(CHe);function kHe(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,p=d.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],v=m[0],y=m[1],w=g[0],b=g[1];v===w||!["t","b"].includes(v)?h.top=f:v==="t"?h.top=0:h.bottom=0,y===b||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0}return d.createElement("div",{ref:p,className:Ee("".concat(t,"-arrow"),o),style:h},s)}function EHe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?d.createElement(Ca,tt({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return d.createElement("div",{style:{zIndex:r},className:Ee("".concat(t,"-mask"),s)})}):null}var $He=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),MHe=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,w=e.forceRender,b=e.getPopupContainer,C=e.autoDestroy,k=e.portal,S=e.zIndex,_=e.onMouseEnter,E=e.onMouseLeave,$=e.onPointerEnter,M=e.onPointerDownCapture,P=e.ready,R=e.offsetX,O=e.offsetY,j=e.offsetR,I=e.offsetB,A=e.onAlign,N=e.onPrepare,F=e.stretch,K=e.targetWidth,L=e.targetHeight,V=typeof n=="function"?n():n,B=l||c,U=(b==null?void 0:b.length)>0,Y=d.useState(!b||!U),ee=Te(Y,2),ie=ee[0],Z=ee[1];if(nr(function(){!ie&&U&&o&&Z(!0)},[ie,U,o]),!ie)return null;var X="auto",ae={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(P||!l){var oe,le=g.points,ce=g.dynamicInset||((oe=g._experimental)===null||oe===void 0?void 0:oe.dynamicInset),pe=ce&&le[0][1]==="r",me=ce&&le[0][0]==="b";pe?(ae.right=j,ae.left=X):(ae.left=R,ae.right=X),me?(ae.bottom=I,ae.top=X):(ae.top=O,ae.bottom=X)}var re={};return F&&(F.includes("height")&&L?re.height=L:F.includes("minHeight")&&L&&(re.minHeight=L),F.includes("width")&&K?re.width=K:F.includes("minWidth")&&K&&(re.minWidth=K)),l||(re.pointerEvents="none"),d.createElement(k,{open:w||B,getContainer:b&&function(){return b(o)},autoDestroy:C},d.createElement(EHe,{prefixCls:i,open:l,zIndex:S,mask:p,motion:y}),d.createElement(Go,{onResize:A,disabled:!l},function(fe){return d.createElement(Ca,tt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function($e){var Ce;v==null||(Ce=v.onVisibleChanged)===null||Ce===void 0||Ce.call(v,$e),s($e)}}),function(ve,$e){var Ce=ve.className,be=ve.style,Se=Ee(i,Ce,r);return d.createElement("div",{ref:ga(fe,t,$e),className:Se,style:q(q(q(q({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ae),re),be),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:_,onMouseLeave:E,onPointerEnter:$,onClick:f,onPointerDownCapture:M},h&&d.createElement(kHe,{prefixCls:i,arrow:h,arrowPos:m,align:g}),d.createElement($He,{cache:!l&&!u},V))})}))}),THe=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Vf(n),a=d.useCallback(function(s){kL(t,r?r(s):s)},[r]),o=ku(a,bh(n));return i?d.cloneElement(n,{ref:o}):n}),wY=d.createContext(null);function xY(e){return e?Array.isArray(e)?e:[e]:[]}function PHe(e,t,n,r){return d.useMemo(function(){var i=xY(n??t),a=xY(r??t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function OHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function RHe(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function jb(e){return i3(parseFloat(e),0)}function CY(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=$4(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,h=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,v=jb(s),y=jb(l),w=jb(c),b=jb(u),C=i3(Math.round(f.width/m*1e3)/1e3),k=i3(Math.round(f.height/p*1e3)/1e3),S=(m-g-w-b)*C,_=(p-h-v-y)*k,E=v*k,$=y*k,M=w*C,P=b*C,R=0,O=0;if(a==="clip"){var j=jb(o);R=j*C,O=j*k}var I=f.x+M-R,A=f.y+E-O,N=I+f.width+2*R-M-P-S,F=A+f.height+2*O-E-$-_;n.left=Math.max(n.left,I),n.top=Math.max(n.top,A),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,F)}}),n}function _Y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function kY(e,t){var n=t||[],r=Te(n,2),i=r[0],a=r[1];return[_Y(e.width,i),_Y(e.height,a)]}function EY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function O1(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function op(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function IHe(e,t,n,r,i,a,o){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Te(s,2),c=l[0],u=l[1],f=d.useRef(0),p=d.useMemo(function(){return t?jj(t):[]},[t]),h=d.useRef({}),m=function(){h.current={}};e||m();var g=Vn(function(){if(t&&n&&e){let xr=function(Ad,yi){var uo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Ru=Y.x+Ad,Iu=Y.y+yi,jh=Ru+pe,Rn=Iu+ce,lr=Math.max(Ru,uo.left),zr=Math.max(Iu,uo.top),Oi=Math.min(jh,uo.right),bi=Math.min(Rn,uo.bottom);return Math.max(0,(Oi-lr)*(bi-zr))},Ic=function(){qt=Y.y+Ut,vt=qt+ce,At=Y.x+Bt,dt=At+pe};var tr=xr,wr=Ic,w,b,C,k,S=t,_=S.ownerDocument,E=$4(S),$=E.getComputedStyle(S),M=$.width,P=$.height,R=$.position,O=S.style.left,j=S.style.top,I=S.style.right,A=S.style.bottom,N=S.style.overflow,F=q(q({},i[r]),a),K=_.createElement("div");(w=S.parentElement)===null||w===void 0||w.appendChild(K),K.style.left="".concat(S.offsetLeft,"px"),K.style.top="".concat(S.offsetTop,"px"),K.style.position=R,K.style.height="".concat(S.offsetHeight,"px"),K.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{var V,B,U=n.getBoundingClientRect();U.x=(V=U.x)!==null&&V!==void 0?V:U.left,U.y=(B=U.y)!==null&&B!==void 0?B:U.top,L={x:U.x,y:U.y,width:U.width,height:U.height}}var Y=S.getBoundingClientRect();Y.x=(b=Y.x)!==null&&b!==void 0?b:Y.left,Y.y=(C=Y.y)!==null&&C!==void 0?C:Y.top;var ee=_.documentElement,ie=ee.clientWidth,Z=ee.clientHeight,X=ee.scrollWidth,ae=ee.scrollHeight,oe=ee.scrollTop,le=ee.scrollLeft,ce=Y.height,pe=Y.width,me=L.height,re=L.width,fe={left:0,top:0,right:ie,bottom:Z},ve={left:-le,top:-oe,right:X-le,bottom:ae-oe},$e=F.htmlRegion,Ce="visible",be="visibleFirst";$e!=="scroll"&&$e!==be&&($e=Ce);var Se=$e===be,we=CY(ve,p),se=CY(fe,p),ye=$e===Ce?se:we,Oe=Se?se:ye;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var z=S.getBoundingClientRect();S.style.left=O,S.style.top=j,S.style.right=I,S.style.bottom=A,S.style.overflow=N,(k=S.parentElement)===null||k===void 0||k.removeChild(K);var H=i3(Math.round(pe/parseFloat(M)*1e3)/1e3),G=i3(Math.round(ce/parseFloat(P)*1e3)/1e3);if(H===0||G===0||qw(n)&&!w4(n))return;var de=F.offset,xe=F.targetOffset,he=kY(Y,de),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=kY(L,xe),Ve=Te(ze,2),Be=Ve[0],Xe=Ve[1];L.x-=Be,L.y-=Xe;var Ke=F.points||[],qe=Te(Ke,2),Et=qe[0],ut=qe[1],gt=EY(ut),Qe=EY(Et),nt=O1(L,gt),jt=O1(Y,Qe),Lt=q({},F),Bt=nt.x-jt.x+We,Ut=nt.y-jt.y+ge,Ne=xr(Bt,Ut),He=xr(Bt,Ut,se),Le=O1(L,["t","l"]),Je=O1(Y,["t","l"]),pt=O1(L,["b","r"]),xt=O1(Y,["b","r"]),Nt=F.overflow||{},Ot=Nt.adjustX,Pt=Nt.adjustY,st=Nt.shiftX,Ct=Nt.shiftY,kt=function(yi){return typeof yi=="boolean"?yi:yi>=0},qt,vt,At,dt;Ic();var De=kt(Pt),Ye=Qe[0]===gt[0];if(De&&Qe[0]==="t"&&(vt>Oe.bottom||h.current.bt)){var ot=Ut;Ye?ot-=ce-me:ot=Le.y-xt.y-ge;var Re=xr(Bt,ot),It=xr(Bt,ot,se);Re>Ne||Re===Ne&&(!Se||It>=He)?(h.current.bt=!0,Ut=ot,ge=-ge,Lt.points=[op(Qe,0),op(gt,0)]):h.current.bt=!1}if(De&&Qe[0]==="b"&&(qtNe||$t===Ne&&(!Se||Mt>=He)?(h.current.tb=!0,Ut=rt,ge=-ge,Lt.points=[op(Qe,0),op(gt,0)]):h.current.tb=!1}var dn=kt(Ot),pn=Qe[1]===gt[1];if(dn&&Qe[1]==="l"&&(dt>Oe.right||h.current.rl)){var T=Bt;pn?T-=pe-re:T=Le.x-xt.x-We;var D=xr(T,Ut),J=xr(T,Ut,se);D>Ne||D===Ne&&(!Se||J>=He)?(h.current.rl=!0,Bt=T,We=-We,Lt.points=[op(Qe,1),op(gt,1)]):h.current.rl=!1}if(dn&&Qe[1]==="r"&&(AtNe||Ie===Ne&&(!Se||it>=He)?(h.current.lr=!0,Bt=ke,We=-We,Lt.points=[op(Qe,1),op(gt,1)]):h.current.lr=!1}Ic();var Ft=st===!0?0:st;typeof Ft=="number"&&(Atse.right&&(Bt-=dt-se.right-We,L.x>se.right-Ft&&(Bt+=L.x-se.right+Ft)));var rn=Ct===!0?0:Ct;typeof rn=="number"&&(qtse.bottom&&(Ut-=vt-se.bottom-ge,L.y>se.bottom-rn&&(Ut+=L.y-se.bottom+rn)));var On=Y.x+Bt,Er=On+pe,Mr=Y.y+Ut,mr=Mr+ce,pr=L.x,cn=pr+re,Sn=L.y,gr=Sn+me,on=Math.max(On,pr),Ze=Math.min(Er,cn),bt=(on+Ze)/2,sn=bt-On,Pn=Math.max(Mr,Sn),qn=Math.min(mr,gr),ln=(Pn+qn)/2,or=ln-Mr;o==null||o(t,Lt);var ri=z.right-Y.x-(Bt+Y.width),wn=z.bottom-Y.y-(Ut+Y.height);H===1&&(Bt=Math.round(Bt),ri=Math.round(ri)),G===1&&(Ut=Math.round(Ut),wn=Math.round(wn));var An={ready:!0,offsetX:Bt/H,offsetY:Ut/G,offsetR:ri/H,offsetB:wn/G,arrowX:sn/H,arrowY:or/G,scaleX:H,scaleY:G,align:Lt};u(An)}}),v=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&g()})},y=function(){u(function(b){return q(q({},b),{},{ready:!1})})};return nr(y,[r]),nr(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function jHe(e,t,n,r,i){nr(function(){if(e&&t&&n){let p=function(){r(),i()};var f=p,a=t,o=n,s=jj(a),l=jj(o),c=$4(o),u=new Set([c].concat(lt(s),lt(l)));return u.forEach(function(h){h.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function NHe(e,t,n,r,i,a,o,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!i||a)){var f=function(){c.current=!1},p=function(v){var y;l.current&&!o(((y=v.composedPath)===null||y===void 0||(y=y.call(v))===null||y===void 0?void 0:y[0])||v.target)&&!c.current&&s(!1)},h=$4(r);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0);var m=h6(n);return m&&(m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0),m&&(m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0))}}},[t,n,r,i,a]);function u(){c.current=!0}return u}var AHe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function DHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_4,t=d.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,h=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,w=n.focusDelay,b=n.blurDelay,C=n.mask,k=n.maskClosable,S=k===void 0?!0:k,_=n.getPopupContainer,E=n.forceRender,$=n.autoDestroy,M=n.destroyPopupOnHide,P=n.popup,R=n.popupClassName,O=n.popupStyle,j=n.popupPlacement,I=n.builtinPlacements,A=I===void 0?{}:I,N=n.popupAlign,F=n.zIndex,K=n.stretch,L=n.getPopupClassNameFromAlign,V=n.fresh,B=n.alignPoint,U=n.onPopupClick,Y=n.onPopupAlign,ee=n.arrow,ie=n.popupMotion,Z=n.maskMotion,X=n.popupTransitionName,ae=n.popupAnimation,oe=n.maskTransitionName,le=n.maskAnimation,ce=n.className,pe=n.getTriggerDOMNode,me=Ht(n,AHe),re=$||M||!1,fe=d.useState(!1),ve=Te(fe,2),$e=ve[0],Ce=ve[1];nr(function(){Ce(y8())},[]);var be=d.useRef({}),Se=d.useContext(wY),we=d.useMemo(function(){return{registerSubPopup:function(lr,zr){be.current[lr]=zr,Se==null||Se.registerSubPopup(lr,zr)}}},[Se]),se=h8(),ye=d.useState(null),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=d.useRef(null),de=Vn(function(Rn){G.current=Rn,qw(Rn)&&z!==Rn&&H(Rn),Se==null||Se.registerSubPopup(se,Rn)}),xe=d.useState(null),he=Te(xe,2),Ue=he[0],We=he[1],ge=d.useRef(null),ze=Vn(function(Rn){qw(Rn)&&Ue!==Rn&&(We(Rn),ge.current=Rn)}),Ve=d.Children.only(o),Be=(Ve==null?void 0:Ve.props)||{},Xe={},Ke=Vn(function(Rn){var lr,zr,Oi=Ue;return(Oi==null?void 0:Oi.contains(Rn))||((lr=h6(Oi))===null||lr===void 0?void 0:lr.host)===Rn||Rn===Oi||(z==null?void 0:z.contains(Rn))||((zr=h6(z))===null||zr===void 0?void 0:zr.host)===Rn||Rn===z||Object.values(be.current).some(function(bi){return(bi==null?void 0:bi.contains(Rn))||Rn===bi})}),qe=SY(a,ie,ae,X),Et=SY(a,Z,le,oe),ut=d.useState(p||!1),gt=Te(ut,2),Qe=gt[0],nt=gt[1],jt=f??Qe,Lt=Vn(function(Rn){f===void 0&&nt(Rn)});nr(function(){nt(f||!1)},[f]);var Bt=d.useRef(jt);Bt.current=jt;var Ut=d.useRef([]);Ut.current=[];var Ne=Vn(function(Rn){var lr;Lt(Rn),((lr=Ut.current[Ut.current.length-1])!==null&&lr!==void 0?lr:jt)!==Rn&&(Ut.current.push(Rn),h==null||h(Rn))}),He=d.useRef(),Le=function(){clearTimeout(He.current)},Je=function(lr){var zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),zr===0?Ne(lr):He.current=setTimeout(function(){Ne(lr)},zr*1e3)};d.useEffect(function(){return Le},[]);var pt=d.useState(!1),xt=Te(pt,2),Nt=xt[0],Ot=xt[1];nr(function(Rn){(!Rn||jt)&&Ot(!0)},[jt]);var Pt=d.useState(null),st=Te(Pt,2),Ct=st[0],kt=st[1],qt=d.useState(null),vt=Te(qt,2),At=vt[0],dt=vt[1],De=function(lr){dt([lr.clientX,lr.clientY])},Ye=IHe(jt,z,B&&At!==null?At:Ue,j,A,N,Y),ot=Te(Ye,11),Re=ot[0],It=ot[1],rt=ot[2],$t=ot[3],Mt=ot[4],dn=ot[5],pn=ot[6],T=ot[7],D=ot[8],J=ot[9],ke=ot[10],Ie=PHe($e,l,c,u),it=Te(Ie,2),Ft=it[0],rn=it[1],On=Ft.has("click"),Er=rn.has("click")||rn.has("contextMenu"),Mr=Vn(function(){Nt||ke()}),mr=function(){Bt.current&&B&&Er&&Je(!1)};jHe(jt,Ue,z,Mr,mr),nr(function(){Mr()},[At,j]),nr(function(){jt&&!(A!=null&&A[j])&&Mr()},[JSON.stringify(N)]);var pr=d.useMemo(function(){var Rn=RHe(A,a,J,B);return Ee(Rn,L==null?void 0:L(J))},[J,L,A,a,B]);d.useImperativeHandle(r,function(){return{nativeElement:ge.current,popupElement:G.current,forceAlign:Mr}});var cn=d.useState(0),Sn=Te(cn,2),gr=Sn[0],on=Sn[1],Ze=d.useState(0),bt=Te(Ze,2),sn=bt[0],Pn=bt[1],qn=function(){if(K&&Ue){var lr=Ue.getBoundingClientRect();on(lr.width),Pn(lr.height)}},ln=function(){qn(),Mr()},or=function(lr){Ot(!1),ke(),m==null||m(lr)},ri=function(){return new Promise(function(lr){qn(),kt(function(){return lr})})};nr(function(){Ct&&(ke(),Ct(),kt(null))},[Ct]);function wn(Rn,lr,zr,Oi){Xe[Rn]=function(bi){var rp;Oi==null||Oi(bi),Je(lr,zr);for(var Dd=arguments.length,x1=new Array(Dd>1?Dd-1:0),Nh=1;Nh1?zr-1:0),bi=1;bi1?zr-1:0),bi=1;bi1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=Che(n,!1),o=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(f,p){Array.isArray(f)&&f.forEach(function(h){if(p||!(l in h)){var m=h[s];i.push({key:$Y(h,i.length),groupOption:p,data:h,label:h[o],value:m})}else{var g=h[c];g===void 0&&r&&(g=h.label),i.push({key:$Y(h,i.length),group:!0,data:h,label:g}),u(h[l],!0)}})}return u(e,!1),i}function Aj(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Br(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var UHe=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,c){var u=FL(c),f=u[0],p=u.slice(1);if(!f)return[l];var h=l.split(f);return i=i||h.length>1,h.reduce(function(m,g){return[].concat(lt(m),lt(s(g,p)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r<"u"?o.slice(0,r):o:null},pB=d.createContext(null);function WHe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(Kt(a))?a:o}).join(", ")),n.length>r?", ...":null)}var VHe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],qHe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Dj=function(t){return t==="tags"||t==="multiple"},hB=d.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,m=h===void 0?"Not Found":h,g=e.onClear,v=e.mode,y=e.disabled,w=e.loading,b=e.getInputElement,C=e.getRawInputElement,k=e.open,S=e.defaultOpen,_=e.onDropdownVisibleChange,E=e.activeValue,$=e.onActiveValueChange,M=e.activeDescendantId,P=e.searchValue,R=e.autoClearSearchValue,O=e.onSearch,j=e.onSearchSplit,I=e.tokenSeparators,A=e.allowClear,N=e.prefix,F=e.suffixIcon,K=e.clearIcon,L=e.OptionList,V=e.animation,B=e.transitionName,U=e.dropdownStyle,Y=e.dropdownClassName,ee=e.dropdownMatchSelectWidth,ie=e.dropdownRender,Z=e.dropdownAlign,X=e.placement,ae=e.builtinPlacements,oe=e.getPopupContainer,le=e.showAction,ce=le===void 0?[]:le,pe=e.onFocus,me=e.onBlur,re=e.onKeyUp,fe=e.onKeyDown,ve=e.onMouseDown,$e=Ht(e,VHe),Ce=Dj(v),be=(o!==void 0?o:Ce)||v==="combobox",Se=q({},$e);qHe.forEach(function(cn){delete Se[cn]}),c==null||c.forEach(function(cn){delete Se[cn]});var we=d.useState(!1),se=Te(we,2),ye=se[0],Oe=se[1];d.useEffect(function(){Oe(y8())},[]);var z=d.useRef(null),H=d.useRef(null),G=d.useRef(null),de=d.useRef(null),xe=d.useRef(null),he=d.useRef(!1),Ue=eHe(),We=Te(Ue,3),ge=We[0],ze=We[1],Ve=We[2];d.useImperativeHandle(t,function(){var cn,Sn;return{focus:(cn=de.current)===null||cn===void 0?void 0:cn.focus,blur:(Sn=de.current)===null||Sn===void 0?void 0:Sn.blur,scrollTo:function(on){var Ze;return(Ze=xe.current)===null||Ze===void 0?void 0:Ze.scrollTo(on)},nativeElement:z.current||H.current}});var Be=d.useMemo(function(){var cn;if(v!=="combobox")return P;var Sn=(cn=u[0])===null||cn===void 0?void 0:cn.value;return typeof Sn=="string"||typeof Sn=="number"?String(Sn):""},[P,v,u]),Xe=v==="combobox"&&typeof b=="function"&&b()||null,Ke=typeof C=="function"&&C(),qe=ku(H,Ke==null||(n=Ke.props)===null||n===void 0?void 0:n.ref),Et=d.useState(!1),ut=Te(Et,2),gt=ut[0],Qe=ut[1];nr(function(){Qe(!0)},[]);var nt=In(!1,{defaultValue:S,value:k}),jt=Te(nt,2),Lt=jt[0],Bt=jt[1],Ut=gt?Lt:!1,Ne=!m&&p;(y||Ne&&Ut&&v==="combobox")&&(Ut=!1);var He=Ne?!1:Ut,Le=d.useCallback(function(cn){var Sn=cn!==void 0?cn:!Ut;y||(Bt(Sn),Ut!==Sn&&(_==null||_(Sn)))},[y,Ut,Bt,_]),Je=d.useMemo(function(){return(I||[]).some(function(cn){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},uze=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},dze=e=>{const{componentCls:t}=e,n=Ype(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${Me(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(lt(r))}}},Zpe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Hn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Qpe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Me(e.paddingMD)} ${Me(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Me(e.padding)} ${Me(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Me(e.paddingXS)} ${Me(e.padding)}`:0,footerBorderTop:e.wireframe?`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Me(e.padding*2)} ${Me(e.padding*2)} ${Me(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Jpe=Jn("Modal",e=>{const t=Zpe(e);return[cze(t),uze(t),Xpe(t),_y(t,"zoom"),dze(t)]},Qpe,{unitless:{titleLineHeight:!0}});var fze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{Rj={x:e.pageX,y:e.pageY},setTimeout(()=>{Rj=null},100)};IBe()&&document.documentElement.addEventListener("click",pze,!0);const ehe=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=d.useContext(Xt),o=ie=>{const{onCancel:Z}=e;Z==null||Z(ie)},s=ie=>{const{onOk:Z}=e;Z==null||Z(ie)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:p,centered:h,getContainer:m,focusTriggerAfterClose:g=!0,style:v,visible:y,width:w=520,footer:b,classNames:C,styles:k,children:S,loading:_}=e,E=fze(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),M=r(),P=qr($),[R,O,j]=Jpe($,P),I=Ee(p,{[`${$}-centered`]:!!h,[`${$}-wrap-rtl`]:i==="rtl"}),A=b!==null&&!_?d.createElement(Gpe,Object.assign({},e,{onOk:s,onCancel:o})):null,[N,F,K]=dB(R0(e),R0(a),{closable:!0,closeIcon:d.createElement(Eu,{className:`${$}-close-icon`}),closeIconRender:ie=>Kpe($,ie)}),L=qpe(`.${$}-content`),[V,B]=$c("Modal",E.zIndex),[U,Y]=d.useMemo(()=>w&&typeof w=="object"?[void 0,w]:[w,void 0],[w]),ee=d.useMemo(()=>{const ie={};return Y&&Object.keys(Y).forEach(Z=>{const X=Y[Z];X!==void 0&&(ie[`--${$}-${Z}-width`]=typeof X=="number"?`${X}px`:X)}),ie},[Y]);return R(d.createElement(bu,{form:!0,space:!0},d.createElement(v4.Provider,{value:B},d.createElement(oB,Object.assign({width:U},E,{zIndex:V,getContainer:m===void 0?n:m,prefixCls:$,rootClassName:Ee(O,u,j,P),footer:A,visible:f??y,mousePosition:(t=E.mousePosition)!==null&&t!==void 0?t:Rj,onClose:o,closable:N&&{disabled:K,closeIcon:F},closeIcon:F,focusTriggerAfterClose:g,transitionName:oo(M,"zoom",e.transitionName),maskTransitionName:oo(M,"fade",e.maskTransitionName),className:Ee(O,c,a==null?void 0:a.className),style:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.style),v),ee),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),C),{wrapper:Ee(I,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),k),panelRef:L}),_?d.createElement(Kf,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):S))))},hze=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},vd()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Me(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Me(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, + ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},mze=Sy(["Modal","confirm"],e=>{const t=Zpe(e);return[hze(t)]},Qpe,{order:-1e3});var gze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iw,lt(Object.values(w))),C=d.createElement(d.Fragment,null,d.createElement(UG,null),d.createElement(WG,null)),k=e.title!==void 0&&e.title!==null,S=`${a}-body`;return d.createElement("div",{className:`${a}-body-wrapper`},d.createElement("div",{className:Ee(S,{[`${S}-has-title`]:k})},f,d.createElement("div",{className:`${a}-paragraph`},k&&d.createElement("span",{className:`${a}-title`},e.title),d.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(Ppe,{value:b},d.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(C,{OkBtn:WG,CancelBtn:UG}):C)):l,d.createElement(mze,{prefixCls:t}))}const vze=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f}=e,p=`${a}-confirm`,h=e.width||416,m=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=Ee(p,`${p}-${e.type}`,{[`${p}-rtl`]:i==="rtl"},e.className),[,w]=ka(),b=d.useMemo(()=>n!==void 0?n:w.zIndexPopupBase+GL,[n,w]);return d.createElement(ehe,Object.assign({},e,{className:y,wrapClassName:Ee({[`${p}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:oo(s||"","zoom",e.transitionName),maskTransitionName:oo(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:m,styles:Object.assign({body:l,mask:r},f),width:h,zIndex:b,closable:c}),d.createElement(the,Object.assign({},e,{confirmPrefixCls:p})))},nhe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return d.createElement(zn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},d.createElement(vze,Object.assign({},e)))},Cm=[];let rhe="";function ihe(){return rhe}const yze=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,o=vfe(),s=d.useContext(Xt),l=ihe()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),te.createElement(nhe,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:u}))};function k4(e){const t=Zfe(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,a;function o(){for(var u,f=arguments.length,p=new Array(f),h=0;hv==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(lt(p.slice(1))))}for(let v=0;v{const f=t.getPrefixCls(void 0,ihe()),p=t.getIconPrefixCls(),h=t.getTheme(),m=te.createElement(yze,Object.assign({},u));a=XL()(te.createElement(zn,{prefixCls:f,iconPrefixCls:p,theme:h},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,f=new Array(u),p=0;p{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),Cm.push(l),{destroy:l,update:c}}function ahe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ohe(e){return Object.assign(Object.assign({},e),{type:"info"})}function she(e){return Object.assign(Object.assign({},e),{type:"success"})}function lhe(e){return Object.assign(Object.assign({},e),{type:"error"})}function che(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function bze(e){let{rootPrefixCls:t}=e;rhe=t}var wze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,{afterClose:r,config:i}=e,a=wze(e,["afterClose","config"]);const[o,s]=d.useState(!0),[l,c]=d.useState(i),{direction:u,getPrefixCls:f}=d.useContext(Xt),p=f("modal"),h=f(),m=()=>{var w;r(),(w=l.afterClose)===null||w===void 0||w.call(l)},g=function(){var w;s(!1);for(var b=arguments.length,C=new Array(b),k=0;kE==null?void 0:E.triggerCancel)){var _;(w=l.onCancel)===null||w===void 0||(_=w).call.apply(_,[l,()=>{}].concat(lt(C.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:g,update:w=>{c(b=>Object.assign(Object.assign({},b),w))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=Ga("Modal",Us.Modal);return d.createElement(nhe,Object.assign({prefixCls:p,rootPrefixCls:h},l,{close:g,open:o,afterClose:m,okText:l.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||u,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},a))},Sze=d.forwardRef(xze);let gY=0;const Cze=d.memo(d.forwardRef((e,t)=>{const[n,r]=pDe();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function uhe(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(lt(t).forEach(o=>{o()}),n([]))},[t]);const r=d.useCallback(a=>function(s){var l;gY+=1;const c=d.createRef();let u;const f=new Promise(v=>{u=v});let p=!1,h;const m=d.createElement(Sze,{key:`modal-${gY}`,config:a(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>p,onConfirm:v=>{u(v)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),h&&Cm.push(h),{destroy:()=>{function v(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?v():n(y=>[].concat(lt(y),[v]))},update:v=>{function y(){var w;(w=c.current)===null||w===void 0||w.update(v)}c.current?y():n(w=>[].concat(lt(w),[y]))},then:v=>(p=!0,f.then(v))}},[]);return[d.useMemo(()=>({info:r(ohe),success:r(she),error:r(lhe),warning:r(ahe),confirm:r(che)}),[]),d.createElement(Cze,{key:"modal-holder",ref:e})]}const _ze=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new ir("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new ir("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new ir("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new ir("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},kze=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Eze={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},$ze=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Eze[t]]:{value:0,_skip_check_:!0}}}}},Mze=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Tze=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Mze(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Tze(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},kze.map(n=>$ze(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Oze=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:p,notificationPadding:h,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:y,lineHeight:w,width:b,notificationIconSize:C,colorText:k}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:p,borderRadius:o,boxShadow:r,[S]:{padding:h,width:b,maxWidth:`calc(100vw - ${Me(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:w,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:i,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:y,color:k},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:y},[`${S}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${S}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Vs(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Me(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:o,background:g}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},Rze=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new ir("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ar(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-btn`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:Object.assign({},Oze(e))}}]},Ize=e=>({zIndexPopup:e.zIndexPopupBase+GL+50,width:384}),jze=e=>{const t=e.paddingMD,n=e.paddingLG;return Hn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Me(e.paddingMD)} ${Me(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Nze=Jn("Notification",e=>{const t=jze(e);return[Rze(t),_ze(t),Pze(t)]},Ize);function dhe(e,t){return t===null||t===!1?null:t||d.createElement(Eu,{className:`${e}-close-icon`})}const Aze={success:Ug,info:QE,error:Pd,warning:qf},Dze=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:a,btn:o,role:s="alert"}=e;let l=null;return n?l=d.createElement("span",{className:`${t}-icon`},n):r&&(l=d.createElement(Aze[r]||null,{className:Ee(`${t}-icon`,`${t}-icon-${r}`)})),d.createElement("div",{className:Ee({[`${t}-with-icon`]:l}),role:s},l,d.createElement("div",{className:`${t}-message`},i),d.createElement("div",{className:`${t}-description`},a),o&&d.createElement("div",{className:`${t}-btn`},o))};function Fze(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Lze(e){return{motionName:`${e}-fade`}}var Bze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=qr(n),[i,a,o]=Nze(n,r);return i(te.createElement(spe,{classNames:{list:Ee(a,o,r)}},t))},Wze=(e,t)=>{let{prefixCls:n,key:r}=t;return te.createElement(Uze,{prefixCls:n,key:r},e)},Vze=te.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:f=!0,showProgress:p}=e,{getPrefixCls:h,getPopupContainer:m,notification:g,direction:v}=d.useContext(Xt),[,y]=ka(),w=i||h("notification"),b=E=>Fze(E,n??vY,r??vY),C=()=>Ee({[`${w}-rtl`]:s??v==="rtl"}),k=()=>Lze(w),[S,_]=lpe({prefixCls:w,style:b,className:C,motion:k,closable:!0,closeIcon:dhe(w),duration:u??zze,getContainer:()=>(a==null?void 0:a())||(m==null?void 0:m())||document.body,maxCount:o,pauseOnHover:f,showProgress:p,onAllRemoved:l,renderNotifications:Wze,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return te.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:w,notification:g})),_});function qze(e){const t=te.useRef(null);return Hg(),[te.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:f}=t.current,p=`${u}-notice`,{message:h,description:m,icon:g,type:v,btn:y,className:w,style:b,role:C="alert",closeIcon:k,closable:S}=s,_=Bze(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),E=dhe(p,typeof k<"u"?k:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:Hze},_),{content:te.createElement(Dze,{prefixCls:p,icon:g,type:v,message:h,description:m,btn:y,role:C}),className:Ee(v&&`${p}-${v}`,w,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:E,closable:S??!!E}))},a={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),a},[]),te.createElement(Vze,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Kze(e){return qze(e)}const Ij=te.createContext({}),fhe=te.createContext({message:{},notification:{},modal:{}}),Gze=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},Yze=()=>({}),Xze=Jn("App",Gze,Yze),Zze=()=>te.useContext(fhe),v8=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:a,notification:o,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=d.useContext(Xt),f=u("app",t),[p,h,m]=Xze(f),g=Ee(h,f,r,i,m,{[`${f}-rtl`]:c==="rtl"}),v=d.useContext(Ij),y=te.useMemo(()=>({message:Object.assign(Object.assign({},v.message),a),notification:Object.assign(Object.assign({},v.notification),o)}),[a,o,v.message,v.notification]),[w,b]=ppe(y.message),[C,k]=Kze(y.notification),[S,_]=uhe(),E=te.useMemo(()=>({message:w,notification:C,modal:S}),[w,C,S]);Hg()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const $=l===!1?te.Fragment:l,M={className:g,style:s};return p(te.createElement(fhe.Provider,{value:E},te.createElement(Ij.Provider,{value:y},te.createElement($,Object.assign({},l===!1?void 0:M),_,b,k,n))))};v8.useApp=Zze;function phe(e){return t=>d.createElement(zn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const Gf=(e,t,n,r,i)=>phe(o=>{const{prefixCls:s,style:l}=o,c=d.useRef(null),[u,f]=d.useState(0),[p,h]=d.useState(0),[m,g]=In(!1,{value:o.open}),{getPrefixCls:v}=d.useContext(Xt),y=v(r||"select",s);d.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(S=>{const _=S[0].target;f(_.offsetHeight+8),h(_.offsetWidth)}),k=setInterval(()=>{var S;const _=i?`.${i(y)}`:`.${y}-dropdown`,E=(S=c.current)===null||S===void 0?void 0:S.querySelector(_);E&&(clearInterval(k),C.observe(E))},10);return()=>{clearInterval(k),C.disconnect()}}},[]);let w=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(w=n(w)),t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:p};return d.createElement("div",{ref:c,style:b},d.createElement(e,Object.assign({},w)))}),y8=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var b8=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return d.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:d.createElement("span",{className:Ee(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},Qze=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=te.useMemo(function(){if(Kt(i)==="object")return i.clearIcon;if(a)return a},[i,a]),u=te.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:u,clearIcon:te.createElement(b8,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},hhe=d.createContext(null);function fB(){return d.useContext(hhe)}function Jze(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=Te(t,2),r=n[0],i=n[1],a=d.useRef(null),o=function(){window.clearTimeout(a.current)};d.useEffect(function(){return o},[]);var s=function(c,u){o(),a.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,o]}function mhe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function eHe(e,t,n,r){var i=d.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function tHe(e){return e&&![mt.ESC,mt.SHIFT,mt.BACKSPACE,mt.TAB,mt.WIN_KEY,mt.ALT,mt.META,mt.WIN_KEY_RIGHT,mt.CTRL,mt.SEMICOLON,mt.EQUALS,mt.CAPS_LOCK,mt.CONTEXT_MENU,mt.F1,mt.F2,mt.F3,mt.F4,mt.F5,mt.F6,mt.F7,mt.F8,mt.F9,mt.F10,mt.F11,mt.F12].includes(e)}var nHe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],P1=void 0;function rHe(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,p=e.children,h=e.display,m=e.order,g=e.component,v=g===void 0?"div":g,y=Ht(e,nHe),w=o&&!h;function b(E){l(c,E)}d.useEffect(function(){return function(){b(null)}},[]);var C=a&&i!==P1?a(i):p,k;r||(k={opacity:w?0:1,height:w?0:P1,overflowY:w?"hidden":P1,order:o?m:P1,pointerEvents:w?"none":P1,position:w?"absolute":P1});var S={};w&&(S["aria-hidden"]=!0);var _=d.createElement(v,tt({className:Ee(!r&&n,u),style:q(q({},k),f)},S,y,{ref:t}),C);return o&&(_=d.createElement(Ko,{onResize:function($){var M=$.offsetWidth;b(M)},disabled:s},_)),_}var Z2=d.forwardRef(rHe);Z2.displayName="Item";function iHe(e){if(typeof MessageChannel>"u")rr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function aHe(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],iHe(function(){Va.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Ib(e,t){var n=d.useState(t),r=Te(n,2),i=r[0],a=r[1],o=Vn(function(s){e(function(){a(s)})});return[i,o]}var m6=te.createContext(null),oHe=["component"],sHe=["className"],lHe=["className"],cHe=function(t,n){var r=d.useContext(m6);if(!r){var i=t.component,a=i===void 0?"div":i,o=Ht(t,oHe);return d.createElement(a,tt({},o,{ref:n}))}var s=r.className,l=Ht(r,sHe),c=t.className,u=Ht(t,lHe);return d.createElement(m6.Provider,{value:null},d.createElement(Z2,tt({ref:n,className:Ee(s,c)},l,u)))},ghe=d.forwardRef(cHe);ghe.displayName="RawItem";var uHe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],vhe="responsive",yhe="invalidate";function dHe(e){return"+ ".concat(e.length," ...")}function fHe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,p=e.style,h=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,y=e.suffix,w=e.component,b=w===void 0?"div":w,C=e.itemComponent,k=e.onVisibleChange,S=Ht(e,uHe),_=f==="full",E=aHe(),$=Ib(E,null),M=Te($,2),P=M[0],R=M[1],O=P||0,j=Ib(E,new Map),I=Te(j,2),A=I[0],N=I[1],F=Ib(E,0),K=Te(F,2),L=K[0],V=K[1],B=Ib(E,0),U=Te(B,2),Y=U[0],ee=U[1],ie=Ib(E,0),Z=Te(ie,2),X=Z[0],ae=Z[1],oe=d.useState(null),le=Te(oe,2),ce=le[0],pe=le[1],me=d.useState(null),re=Te(me,2),fe=re[0],ve=re[1],$e=d.useMemo(function(){return fe===null&&_?Number.MAX_SAFE_INTEGER:fe||0},[fe,P]),Ce=d.useState(!1),be=Te(Ce,2),Se=be[0],we=be[1],se="".concat(r,"-item"),ye=Math.max(L,Y),Oe=m===vhe,z=a.length&&Oe,H=m===yhe,G=z||typeof m=="number"&&a.length>m,de=d.useMemo(function(){var Lt=a;return z?P===null&&_?Lt=a:Lt=a.slice(0,Math.min(a.length,O/u)):typeof m=="number"&&(Lt=a.slice(0,m)),Lt},[a,u,P,m,z]),xe=d.useMemo(function(){return z?a.slice($e+1):a.slice(de.length)},[a,de,z,$e]),he=d.useCallback(function(Lt,Bt){var Ut;return typeof l=="function"?l(Lt):(Ut=l&&(Lt==null?void 0:Lt[l]))!==null&&Ut!==void 0?Ut:Bt},[l]),Ue=d.useCallback(o||function(Lt){return Lt},[o]);function We(Lt,Bt,Ut){fe===Lt&&(Bt===void 0||Bt===ce)||(ve(Lt),Ut||(we(LtO){We(Ne-1,Lt-He-X+Y);break}}y&&Xe(0)+X>O&&pe(null)}},[O,A,Y,X,he,de]);var Ke=Se&&!!xe.length,qe={};ce!==null&&z&&(qe={position:"absolute",left:ce,top:0});var Et={prefixCls:se,responsive:z,component:C,invalidate:H},ut=s?function(Lt,Bt){var Ut=he(Lt,Bt);return d.createElement(m6.Provider,{key:Ut,value:q(q({},Et),{},{order:Bt,item:Lt,itemKey:Ut,registerSize:ze,display:Bt<=$e})},s(Lt,Bt))}:function(Lt,Bt){var Ut=he(Lt,Bt);return d.createElement(Z2,tt({},Et,{order:Bt,key:Ut,item:Lt,renderItem:Ue,itemKey:Ut,registerSize:ze,display:Bt<=$e}))},gt,Qe={order:Ke?$e:Number.MAX_SAFE_INTEGER,className:"".concat(se,"-rest"),registerSize:Ve,display:Ke};if(v)v&&(gt=d.createElement(m6.Provider,{value:q(q({},Et),Qe)},v(xe)));else{var nt=g||dHe;gt=d.createElement(Z2,tt({},Et,Qe),typeof nt=="function"?nt(xe):nt)}var jt=d.createElement(b,tt({className:Ee(!H&&r,h),style:p,ref:t},S),de.map(ut),G?gt:null,y&&d.createElement(Z2,tt({},Et,{responsive:Oe,responsiveDisabled:!z,order:$e,className:"".concat(se,"-suffix"),registerSize:Be,display:!0,style:qe}),y));return Oe&&(jt=d.createElement(Ko,{onResize:ge,disabled:!z},jt)),jt}var lu=d.forwardRef(fHe);lu.displayName="Overflow";lu.Item=ghe;lu.RESPONSIVE=vhe;lu.INVALIDATE=yhe;var pHe=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,p=t.activeDescendantId,h=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,y=t.onChange,w=t.onPaste,b=t.onCompositionStart,C=t.onCompositionEnd,k=t.onBlur,S=t.open,_=t.attrs,E=o||d.createElement("input",null),$=E,M=$.ref,P=$.props,R=P.onKeyDown,O=P.onChange,j=P.onMouseDown,I=P.onCompositionStart,A=P.onCompositionEnd,N=P.onBlur,F=P.style;return"maxLength"in E.props,E=d.cloneElement(E,q(q(q({type:"search"},P),{},{id:a,ref:ga(n,M),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Ee("".concat(i,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":S?p:void 0},_),{},{value:f?h:"",maxLength:m,readOnly:!f,unselectable:f?null:"on",style:q(q({},F),{},{opacity:f?null:0}),onKeyDown:function(L){g(L),R&&R(L)},onMouseDown:function(L){v(L),j&&j(L)},onChange:function(L){y(L),O&&O(L)},onCompositionStart:function(L){b(L),I&&I(L)},onCompositionEnd:function(L){C(L),A&&A(L)},onPaste:w,onBlur:function(L){k(L),N&&N(L)}})),E},bhe=d.forwardRef(pHe);function whe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var hHe=typeof window<"u"&&window.document&&window.document.documentElement,mHe=hHe;function gHe(e){return e!=null}function vHe(e){return!e&&e!==0}function yY(e){return["string","number"].includes(Kt(e))}function xhe(e){var t=void 0;return e&&(yY(e.title)?t=e.title.toString():yY(e.label)&&(t=e.label.toString())),t}function yHe(e,t){mHe?d.useLayoutEffect(e,t):d.useEffect(e,t)}function bHe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var bY=function(t){t.preventDefault(),t.stopPropagation()},wHe=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,p=t.showSearch,h=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,w=t.maxTagCount,b=t.maxTagTextLength,C=t.maxTagPlaceholder,k=C===void 0?function(me){return"+ ".concat(me.length," ...")}:C,S=t.tagRender,_=t.onToggleOpen,E=t.onRemove,$=t.onInputChange,M=t.onInputPaste,P=t.onInputKeyDown,R=t.onInputMouseDown,O=t.onInputCompositionStart,j=t.onInputCompositionEnd,I=t.onInputBlur,A=d.useRef(null),N=d.useState(0),F=Te(N,2),K=F[0],L=F[1],V=d.useState(!1),B=Te(V,2),U=B[0],Y=B[1],ee="".concat(r,"-selection"),ie=a||f==="multiple"&&s===!1||f==="tags"?o:"",Z=f==="tags"||f==="multiple"&&s===!1||p&&(a||U);yHe(function(){L(A.current.scrollWidth)},[ie]);var X=function(re,fe,ve,$e,Ce){return d.createElement("span",{title:xhe(re),className:Ee("".concat(ee,"-item"),ne({},"".concat(ee,"-item-disabled"),ve))},d.createElement("span",{className:"".concat(ee,"-item-content")},fe),$e&&d.createElement(b8,{className:"".concat(ee,"-item-remove"),onMouseDown:bY,onClick:Ce,customizeIcon:y},"×"))},ae=function(re,fe,ve,$e,Ce,be){var Se=function(se){bY(se),_(!a)};return d.createElement("span",{onMouseDown:Se},S({label:fe,value:re,disabled:ve,closable:$e,onClose:Ce,isMaxTag:!!be}))},oe=function(re){var fe=re.disabled,ve=re.label,$e=re.value,Ce=!u&&!fe,be=ve;if(typeof b=="number"&&(typeof ve=="string"||typeof ve=="number")){var Se=String(be);Se.length>b&&(be="".concat(Se.slice(0,b),"..."))}var we=function(ye){ye&&ye.stopPropagation(),E(re)};return typeof S=="function"?ae($e,be,fe,Ce,we):X(re,be,fe,Ce,we)},le=function(re){if(!i.length)return null;var fe=typeof k=="function"?k(re):k;return typeof S=="function"?ae(void 0,fe,!1,!1,void 0,!0):X({title:fe},fe,!1)},ce=d.createElement("div",{className:"".concat(ee,"-search"),style:{width:K},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},d.createElement(bhe,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:m,editable:Z,activeDescendantId:g,value:ie,onKeyDown:P,onMouseDown:R,onChange:$,onPaste:M,onCompositionStart:O,onCompositionEnd:j,onBlur:I,tabIndex:v,attrs:Fi(t,!0)}),d.createElement("span",{ref:A,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},ie," ")),pe=d.createElement(lu,{prefixCls:"".concat(ee,"-overflow"),data:i,renderItem:oe,renderRest:le,suffix:ce,itemKey:bHe,maxCount:w});return d.createElement("span",{className:"".concat(ee,"-wrap")},pe,!i.length&&!ie&&d.createElement("span",{className:"".concat(ee,"-placeholder")},c))},xHe=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,p=t.values,h=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,y=t.activeValue,w=t.maxLength,b=t.onInputKeyDown,C=t.onInputMouseDown,k=t.onInputChange,S=t.onInputPaste,_=t.onInputCompositionStart,E=t.onInputCompositionEnd,$=t.onInputBlur,M=t.title,P=d.useState(!1),R=Te(P,2),O=R[0],j=R[1],I=u==="combobox",A=I||g,N=p[0],F=v||"";I&&y&&!O&&(F=y),d.useEffect(function(){I&&j(!1)},[I,y]);var K=u!=="combobox"&&!f&&!g?!1:!!F,L=M===void 0?xhe(N):M,V=d.useMemo(function(){return N?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:K?{visibility:"hidden"}:void 0},h)},[N,K,h,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(bhe,{ref:a,prefixCls:r,id:i,open:f,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:c,value:F,onKeyDown:b,onMouseDown:C,onChange:function(U){j(!0),k(U)},onPaste:S,onCompositionStart:_,onCompositionEnd:E,onBlur:$,tabIndex:m,attrs:Fi(t,!0),maxLength:I?w:void 0})),!I&&N?d.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:K?{visibility:"hidden"}:void 0},N.label):null,V)},SHe=function(t,n){var r=d.useRef(null),i=d.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,p=t.autoClearSearchValue,h=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,w=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(L){r.current.focus(L)},blur:function(){r.current.blur()}}});var b=mhe(0),C=Te(b,2),k=C[0],S=C[1],_=function(L){var V=L.which,B=r.current instanceof HTMLTextAreaElement;!B&&o&&(V===mt.UP||V===mt.DOWN)&&L.preventDefault(),v&&v(L),V===mt.ENTER&&s==="tags"&&!i.current&&!o&&(m==null||m(L.target.value)),!(B&&!o&&~[mt.UP,mt.DOWN,mt.LEFT,mt.RIGHT].indexOf(V))&&tHe(V)&&g(!0)},E=function(){S(!0)},$=d.useRef(null),M=function(L){h(L,!0,i.current)!==!1&&g(!0)},P=function(){i.current=!0},R=function(L){i.current=!1,s!=="combobox"&&M(L.target.value)},O=function(L){var V=L.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var B=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(B,$.current)}$.current=null,M(V)},j=function(L){var V=L.clipboardData,B=V==null?void 0:V.getData("text");$.current=B||""},I=function(L){var V=L.target;if(V!==r.current){var B=document.body.style.msTouchAction!==void 0;B?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(L){var V=k();L.target!==r.current&&!V&&!(s==="combobox"&&u)&&L.preventDefault(),(s!=="combobox"&&(!l||!V)||!o)&&(o&&p!==!1&&h("",!0,!1),g())},N={inputRef:r,onInputKeyDown:_,onInputMouseDown:E,onInputChange:O,onInputPaste:j,onInputCompositionStart:P,onInputCompositionEnd:R,onInputBlur:y},F=s==="multiple"||s==="tags"?d.createElement(wHe,tt({},t,N)):d.createElement(xHe,tt({},t,N));return d.createElement("div",{ref:w,className:"".concat(a,"-selector"),onClick:I,onMouseDown:A},f&&d.createElement("div",{className:"".concat(a,"-prefix")},f),F)},CHe=d.forwardRef(SHe);function _He(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,p=d.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],v=m[0],y=m[1],w=g[0],b=g[1];v===w||!["t","b"].includes(v)?h.top=f:v==="t"?h.top=0:h.bottom=0,y===b||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0}return d.createElement("div",{ref:p,className:Ee("".concat(t,"-arrow"),o),style:h},s)}function kHe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?d.createElement(Ca,tt({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return d.createElement("div",{style:{zIndex:r},className:Ee("".concat(t,"-mask"),s)})}):null}var EHe=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),$He=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,w=e.forceRender,b=e.getPopupContainer,C=e.autoDestroy,k=e.portal,S=e.zIndex,_=e.onMouseEnter,E=e.onMouseLeave,$=e.onPointerEnter,M=e.onPointerDownCapture,P=e.ready,R=e.offsetX,O=e.offsetY,j=e.offsetR,I=e.offsetB,A=e.onAlign,N=e.onPrepare,F=e.stretch,K=e.targetWidth,L=e.targetHeight,V=typeof n=="function"?n():n,B=l||c,U=(b==null?void 0:b.length)>0,Y=d.useState(!b||!U),ee=Te(Y,2),ie=ee[0],Z=ee[1];if(nr(function(){!ie&&U&&o&&Z(!0)},[ie,U,o]),!ie)return null;var X="auto",ae={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(P||!l){var oe,le=g.points,ce=g.dynamicInset||((oe=g._experimental)===null||oe===void 0?void 0:oe.dynamicInset),pe=ce&&le[0][1]==="r",me=ce&&le[0][0]==="b";pe?(ae.right=j,ae.left=X):(ae.left=R,ae.right=X),me?(ae.bottom=I,ae.top=X):(ae.top=O,ae.bottom=X)}var re={};return F&&(F.includes("height")&&L?re.height=L:F.includes("minHeight")&&L&&(re.minHeight=L),F.includes("width")&&K?re.width=K:F.includes("minWidth")&&K&&(re.minWidth=K)),l||(re.pointerEvents="none"),d.createElement(k,{open:w||B,getContainer:b&&function(){return b(o)},autoDestroy:C},d.createElement(kHe,{prefixCls:i,open:l,zIndex:S,mask:p,motion:y}),d.createElement(Ko,{onResize:A,disabled:!l},function(fe){return d.createElement(Ca,tt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function($e){var Ce;v==null||(Ce=v.onVisibleChanged)===null||Ce===void 0||Ce.call(v,$e),s($e)}}),function(ve,$e){var Ce=ve.className,be=ve.style,Se=Ee(i,Ce,r);return d.createElement("div",{ref:ga(fe,t,$e),className:Se,style:q(q(q(q({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ae),re),be),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:_,onMouseLeave:E,onPointerEnter:$,onClick:f,onPointerDownCapture:M},h&&d.createElement(_He,{prefixCls:i,arrow:h,arrowPos:m,align:g}),d.createElement(EHe,{cache:!l&&!u},V))})}))}),MHe=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Vf(n),a=d.useCallback(function(s){kL(t,r?r(s):s)},[r]),o=ku(a,bh(n));return i?d.cloneElement(n,{ref:o}):n}),wY=d.createContext(null);function xY(e){return e?Array.isArray(e)?e:[e]:[]}function THe(e,t,n,r){return d.useMemo(function(){var i=xY(n??t),a=xY(r??t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function PHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function OHe(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function jb(e){return i3(parseFloat(e),0)}function CY(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=E4(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,h=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,v=jb(s),y=jb(l),w=jb(c),b=jb(u),C=i3(Math.round(f.width/m*1e3)/1e3),k=i3(Math.round(f.height/p*1e3)/1e3),S=(m-g-w-b)*C,_=(p-h-v-y)*k,E=v*k,$=y*k,M=w*C,P=b*C,R=0,O=0;if(a==="clip"){var j=jb(o);R=j*C,O=j*k}var I=f.x+M-R,A=f.y+E-O,N=I+f.width+2*R-M-P-S,F=A+f.height+2*O-E-$-_;n.left=Math.max(n.left,I),n.top=Math.max(n.top,A),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,F)}}),n}function _Y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function kY(e,t){var n=t||[],r=Te(n,2),i=r[0],a=r[1];return[_Y(e.width,i),_Y(e.height,a)]}function EY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function O1(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function op(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function RHe(e,t,n,r,i,a,o){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Te(s,2),c=l[0],u=l[1],f=d.useRef(0),p=d.useMemo(function(){return t?jj(t):[]},[t]),h=d.useRef({}),m=function(){h.current={}};e||m();var g=Vn(function(){if(t&&n&&e){let xr=function(Ad,yi){var uo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Ru=Y.x+Ad,Iu=Y.y+yi,jh=Ru+pe,Rn=Iu+ce,lr=Math.max(Ru,uo.left),zr=Math.max(Iu,uo.top),Oi=Math.min(jh,uo.right),bi=Math.min(Rn,uo.bottom);return Math.max(0,(Oi-lr)*(bi-zr))},Ic=function(){qt=Y.y+Ut,vt=qt+ce,At=Y.x+Bt,dt=At+pe};var tr=xr,wr=Ic,w,b,C,k,S=t,_=S.ownerDocument,E=E4(S),$=E.getComputedStyle(S),M=$.width,P=$.height,R=$.position,O=S.style.left,j=S.style.top,I=S.style.right,A=S.style.bottom,N=S.style.overflow,F=q(q({},i[r]),a),K=_.createElement("div");(w=S.parentElement)===null||w===void 0||w.appendChild(K),K.style.left="".concat(S.offsetLeft,"px"),K.style.top="".concat(S.offsetTop,"px"),K.style.position=R,K.style.height="".concat(S.offsetHeight,"px"),K.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{var V,B,U=n.getBoundingClientRect();U.x=(V=U.x)!==null&&V!==void 0?V:U.left,U.y=(B=U.y)!==null&&B!==void 0?B:U.top,L={x:U.x,y:U.y,width:U.width,height:U.height}}var Y=S.getBoundingClientRect();Y.x=(b=Y.x)!==null&&b!==void 0?b:Y.left,Y.y=(C=Y.y)!==null&&C!==void 0?C:Y.top;var ee=_.documentElement,ie=ee.clientWidth,Z=ee.clientHeight,X=ee.scrollWidth,ae=ee.scrollHeight,oe=ee.scrollTop,le=ee.scrollLeft,ce=Y.height,pe=Y.width,me=L.height,re=L.width,fe={left:0,top:0,right:ie,bottom:Z},ve={left:-le,top:-oe,right:X-le,bottom:ae-oe},$e=F.htmlRegion,Ce="visible",be="visibleFirst";$e!=="scroll"&&$e!==be&&($e=Ce);var Se=$e===be,we=CY(ve,p),se=CY(fe,p),ye=$e===Ce?se:we,Oe=Se?se:ye;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var z=S.getBoundingClientRect();S.style.left=O,S.style.top=j,S.style.right=I,S.style.bottom=A,S.style.overflow=N,(k=S.parentElement)===null||k===void 0||k.removeChild(K);var H=i3(Math.round(pe/parseFloat(M)*1e3)/1e3),G=i3(Math.round(ce/parseFloat(P)*1e3)/1e3);if(H===0||G===0||qw(n)&&!b4(n))return;var de=F.offset,xe=F.targetOffset,he=kY(Y,de),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=kY(L,xe),Ve=Te(ze,2),Be=Ve[0],Xe=Ve[1];L.x-=Be,L.y-=Xe;var Ke=F.points||[],qe=Te(Ke,2),Et=qe[0],ut=qe[1],gt=EY(ut),Qe=EY(Et),nt=O1(L,gt),jt=O1(Y,Qe),Lt=q({},F),Bt=nt.x-jt.x+We,Ut=nt.y-jt.y+ge,Ne=xr(Bt,Ut),He=xr(Bt,Ut,se),Le=O1(L,["t","l"]),Je=O1(Y,["t","l"]),pt=O1(L,["b","r"]),xt=O1(Y,["b","r"]),Nt=F.overflow||{},Ot=Nt.adjustX,Pt=Nt.adjustY,st=Nt.shiftX,Ct=Nt.shiftY,kt=function(yi){return typeof yi=="boolean"?yi:yi>=0},qt,vt,At,dt;Ic();var De=kt(Pt),Ye=Qe[0]===gt[0];if(De&&Qe[0]==="t"&&(vt>Oe.bottom||h.current.bt)){var ot=Ut;Ye?ot-=ce-me:ot=Le.y-xt.y-ge;var Re=xr(Bt,ot),It=xr(Bt,ot,se);Re>Ne||Re===Ne&&(!Se||It>=He)?(h.current.bt=!0,Ut=ot,ge=-ge,Lt.points=[op(Qe,0),op(gt,0)]):h.current.bt=!1}if(De&&Qe[0]==="b"&&(qtNe||$t===Ne&&(!Se||Mt>=He)?(h.current.tb=!0,Ut=rt,ge=-ge,Lt.points=[op(Qe,0),op(gt,0)]):h.current.tb=!1}var dn=kt(Ot),pn=Qe[1]===gt[1];if(dn&&Qe[1]==="l"&&(dt>Oe.right||h.current.rl)){var T=Bt;pn?T-=pe-re:T=Le.x-xt.x-We;var D=xr(T,Ut),J=xr(T,Ut,se);D>Ne||D===Ne&&(!Se||J>=He)?(h.current.rl=!0,Bt=T,We=-We,Lt.points=[op(Qe,1),op(gt,1)]):h.current.rl=!1}if(dn&&Qe[1]==="r"&&(AtNe||Ie===Ne&&(!Se||it>=He)?(h.current.lr=!0,Bt=ke,We=-We,Lt.points=[op(Qe,1),op(gt,1)]):h.current.lr=!1}Ic();var Ft=st===!0?0:st;typeof Ft=="number"&&(Atse.right&&(Bt-=dt-se.right-We,L.x>se.right-Ft&&(Bt+=L.x-se.right+Ft)));var rn=Ct===!0?0:Ct;typeof rn=="number"&&(qtse.bottom&&(Ut-=vt-se.bottom-ge,L.y>se.bottom-rn&&(Ut+=L.y-se.bottom+rn)));var On=Y.x+Bt,Er=On+pe,Mr=Y.y+Ut,mr=Mr+ce,pr=L.x,cn=pr+re,Sn=L.y,gr=Sn+me,on=Math.max(On,pr),Ze=Math.min(Er,cn),bt=(on+Ze)/2,sn=bt-On,Pn=Math.max(Mr,Sn),qn=Math.min(mr,gr),ln=(Pn+qn)/2,or=ln-Mr;o==null||o(t,Lt);var ri=z.right-Y.x-(Bt+Y.width),wn=z.bottom-Y.y-(Ut+Y.height);H===1&&(Bt=Math.round(Bt),ri=Math.round(ri)),G===1&&(Ut=Math.round(Ut),wn=Math.round(wn));var An={ready:!0,offsetX:Bt/H,offsetY:Ut/G,offsetR:ri/H,offsetB:wn/G,arrowX:sn/H,arrowY:or/G,scaleX:H,scaleY:G,align:Lt};u(An)}}),v=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&g()})},y=function(){u(function(b){return q(q({},b),{},{ready:!1})})};return nr(y,[r]),nr(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function IHe(e,t,n,r,i){nr(function(){if(e&&t&&n){let p=function(){r(),i()};var f=p,a=t,o=n,s=jj(a),l=jj(o),c=E4(o),u=new Set([c].concat(lt(s),lt(l)));return u.forEach(function(h){h.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function jHe(e,t,n,r,i,a,o,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!i||a)){var f=function(){c.current=!1},p=function(v){var y;l.current&&!o(((y=v.composedPath)===null||y===void 0||(y=y.call(v))===null||y===void 0?void 0:y[0])||v.target)&&!c.current&&s(!1)},h=E4(r);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0);var m=p6(n);return m&&(m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0),m&&(m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0))}}},[t,n,r,i,a]);function u(){c.current=!0}return u}var NHe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function AHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C4,t=d.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,h=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,w=n.focusDelay,b=n.blurDelay,C=n.mask,k=n.maskClosable,S=k===void 0?!0:k,_=n.getPopupContainer,E=n.forceRender,$=n.autoDestroy,M=n.destroyPopupOnHide,P=n.popup,R=n.popupClassName,O=n.popupStyle,j=n.popupPlacement,I=n.builtinPlacements,A=I===void 0?{}:I,N=n.popupAlign,F=n.zIndex,K=n.stretch,L=n.getPopupClassNameFromAlign,V=n.fresh,B=n.alignPoint,U=n.onPopupClick,Y=n.onPopupAlign,ee=n.arrow,ie=n.popupMotion,Z=n.maskMotion,X=n.popupTransitionName,ae=n.popupAnimation,oe=n.maskTransitionName,le=n.maskAnimation,ce=n.className,pe=n.getTriggerDOMNode,me=Ht(n,NHe),re=$||M||!1,fe=d.useState(!1),ve=Te(fe,2),$e=ve[0],Ce=ve[1];nr(function(){Ce(y8())},[]);var be=d.useRef({}),Se=d.useContext(wY),we=d.useMemo(function(){return{registerSubPopup:function(lr,zr){be.current[lr]=zr,Se==null||Se.registerSubPopup(lr,zr)}}},[Se]),se=h8(),ye=d.useState(null),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=d.useRef(null),de=Vn(function(Rn){G.current=Rn,qw(Rn)&&z!==Rn&&H(Rn),Se==null||Se.registerSubPopup(se,Rn)}),xe=d.useState(null),he=Te(xe,2),Ue=he[0],We=he[1],ge=d.useRef(null),ze=Vn(function(Rn){qw(Rn)&&Ue!==Rn&&(We(Rn),ge.current=Rn)}),Ve=d.Children.only(o),Be=(Ve==null?void 0:Ve.props)||{},Xe={},Ke=Vn(function(Rn){var lr,zr,Oi=Ue;return(Oi==null?void 0:Oi.contains(Rn))||((lr=p6(Oi))===null||lr===void 0?void 0:lr.host)===Rn||Rn===Oi||(z==null?void 0:z.contains(Rn))||((zr=p6(z))===null||zr===void 0?void 0:zr.host)===Rn||Rn===z||Object.values(be.current).some(function(bi){return(bi==null?void 0:bi.contains(Rn))||Rn===bi})}),qe=SY(a,ie,ae,X),Et=SY(a,Z,le,oe),ut=d.useState(p||!1),gt=Te(ut,2),Qe=gt[0],nt=gt[1],jt=f??Qe,Lt=Vn(function(Rn){f===void 0&&nt(Rn)});nr(function(){nt(f||!1)},[f]);var Bt=d.useRef(jt);Bt.current=jt;var Ut=d.useRef([]);Ut.current=[];var Ne=Vn(function(Rn){var lr;Lt(Rn),((lr=Ut.current[Ut.current.length-1])!==null&&lr!==void 0?lr:jt)!==Rn&&(Ut.current.push(Rn),h==null||h(Rn))}),He=d.useRef(),Le=function(){clearTimeout(He.current)},Je=function(lr){var zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),zr===0?Ne(lr):He.current=setTimeout(function(){Ne(lr)},zr*1e3)};d.useEffect(function(){return Le},[]);var pt=d.useState(!1),xt=Te(pt,2),Nt=xt[0],Ot=xt[1];nr(function(Rn){(!Rn||jt)&&Ot(!0)},[jt]);var Pt=d.useState(null),st=Te(Pt,2),Ct=st[0],kt=st[1],qt=d.useState(null),vt=Te(qt,2),At=vt[0],dt=vt[1],De=function(lr){dt([lr.clientX,lr.clientY])},Ye=RHe(jt,z,B&&At!==null?At:Ue,j,A,N,Y),ot=Te(Ye,11),Re=ot[0],It=ot[1],rt=ot[2],$t=ot[3],Mt=ot[4],dn=ot[5],pn=ot[6],T=ot[7],D=ot[8],J=ot[9],ke=ot[10],Ie=THe($e,l,c,u),it=Te(Ie,2),Ft=it[0],rn=it[1],On=Ft.has("click"),Er=rn.has("click")||rn.has("contextMenu"),Mr=Vn(function(){Nt||ke()}),mr=function(){Bt.current&&B&&Er&&Je(!1)};IHe(jt,Ue,z,Mr,mr),nr(function(){Mr()},[At,j]),nr(function(){jt&&!(A!=null&&A[j])&&Mr()},[JSON.stringify(N)]);var pr=d.useMemo(function(){var Rn=OHe(A,a,J,B);return Ee(Rn,L==null?void 0:L(J))},[J,L,A,a,B]);d.useImperativeHandle(r,function(){return{nativeElement:ge.current,popupElement:G.current,forceAlign:Mr}});var cn=d.useState(0),Sn=Te(cn,2),gr=Sn[0],on=Sn[1],Ze=d.useState(0),bt=Te(Ze,2),sn=bt[0],Pn=bt[1],qn=function(){if(K&&Ue){var lr=Ue.getBoundingClientRect();on(lr.width),Pn(lr.height)}},ln=function(){qn(),Mr()},or=function(lr){Ot(!1),ke(),m==null||m(lr)},ri=function(){return new Promise(function(lr){qn(),kt(function(){return lr})})};nr(function(){Ct&&(ke(),Ct(),kt(null))},[Ct]);function wn(Rn,lr,zr,Oi){Xe[Rn]=function(bi){var rp;Oi==null||Oi(bi),Je(lr,zr);for(var Dd=arguments.length,x1=new Array(Dd>1?Dd-1:0),Nh=1;Nh1?zr-1:0),bi=1;bi1?zr-1:0),bi=1;bi1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=She(n,!1),o=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(f,p){Array.isArray(f)&&f.forEach(function(h){if(p||!(l in h)){var m=h[s];i.push({key:$Y(h,i.length),groupOption:p,data:h,label:h[o],value:m})}else{var g=h[c];g===void 0&&r&&(g=h.label),i.push({key:$Y(h,i.length),group:!0,data:h,label:g}),u(h[l],!0)}})}return u(e,!1),i}function Aj(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Br(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var HHe=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,c){var u=FL(c),f=u[0],p=u.slice(1);if(!f)return[l];var h=l.split(f);return i=i||h.length>1,h.reduce(function(m,g){return[].concat(lt(m),lt(s(g,p)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r<"u"?o.slice(0,r):o:null},pB=d.createContext(null);function UHe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(Kt(a))?a:o}).join(", ")),n.length>r?", ...":null)}var WHe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],VHe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Dj=function(t){return t==="tags"||t==="multiple"},hB=d.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,m=h===void 0?"Not Found":h,g=e.onClear,v=e.mode,y=e.disabled,w=e.loading,b=e.getInputElement,C=e.getRawInputElement,k=e.open,S=e.defaultOpen,_=e.onDropdownVisibleChange,E=e.activeValue,$=e.onActiveValueChange,M=e.activeDescendantId,P=e.searchValue,R=e.autoClearSearchValue,O=e.onSearch,j=e.onSearchSplit,I=e.tokenSeparators,A=e.allowClear,N=e.prefix,F=e.suffixIcon,K=e.clearIcon,L=e.OptionList,V=e.animation,B=e.transitionName,U=e.dropdownStyle,Y=e.dropdownClassName,ee=e.dropdownMatchSelectWidth,ie=e.dropdownRender,Z=e.dropdownAlign,X=e.placement,ae=e.builtinPlacements,oe=e.getPopupContainer,le=e.showAction,ce=le===void 0?[]:le,pe=e.onFocus,me=e.onBlur,re=e.onKeyUp,fe=e.onKeyDown,ve=e.onMouseDown,$e=Ht(e,WHe),Ce=Dj(v),be=(o!==void 0?o:Ce)||v==="combobox",Se=q({},$e);VHe.forEach(function(cn){delete Se[cn]}),c==null||c.forEach(function(cn){delete Se[cn]});var we=d.useState(!1),se=Te(we,2),ye=se[0],Oe=se[1];d.useEffect(function(){Oe(y8())},[]);var z=d.useRef(null),H=d.useRef(null),G=d.useRef(null),de=d.useRef(null),xe=d.useRef(null),he=d.useRef(!1),Ue=Jze(),We=Te(Ue,3),ge=We[0],ze=We[1],Ve=We[2];d.useImperativeHandle(t,function(){var cn,Sn;return{focus:(cn=de.current)===null||cn===void 0?void 0:cn.focus,blur:(Sn=de.current)===null||Sn===void 0?void 0:Sn.blur,scrollTo:function(on){var Ze;return(Ze=xe.current)===null||Ze===void 0?void 0:Ze.scrollTo(on)},nativeElement:z.current||H.current}});var Be=d.useMemo(function(){var cn;if(v!=="combobox")return P;var Sn=(cn=u[0])===null||cn===void 0?void 0:cn.value;return typeof Sn=="string"||typeof Sn=="number"?String(Sn):""},[P,v,u]),Xe=v==="combobox"&&typeof b=="function"&&b()||null,Ke=typeof C=="function"&&C(),qe=ku(H,Ke==null||(n=Ke.props)===null||n===void 0?void 0:n.ref),Et=d.useState(!1),ut=Te(Et,2),gt=ut[0],Qe=ut[1];nr(function(){Qe(!0)},[]);var nt=In(!1,{defaultValue:S,value:k}),jt=Te(nt,2),Lt=jt[0],Bt=jt[1],Ut=gt?Lt:!1,Ne=!m&&p;(y||Ne&&Ut&&v==="combobox")&&(Ut=!1);var He=Ne?!1:Ut,Le=d.useCallback(function(cn){var Sn=cn!==void 0?cn:!Ut;y||(Bt(Sn),Ut!==Sn&&(_==null||_(Sn)))},[y,Ut,Bt,_]),Je=d.useMemo(function(){return(I||[]).some(function(cn){return[` `,`\r -`].includes(cn)})},[I]),pt=d.useContext(pB)||{},xt=pt.maxCount,Nt=pt.rawValues,Ot=function(Sn,gr,on){if(!(Ce&&Nj(xt)&&(Nt==null?void 0:Nt.size)>=xt)){var Ze=!0,bt=Sn;$==null||$(null);var sn=UHe(Sn,I,Nj(xt)?xt-Nt.size:void 0),Pn=on?null:sn;return v!=="combobox"&&Pn&&(bt="",j==null||j(Pn),Le(!1),Ze=!1),O&&Be!==bt&&O(bt,{source:gr?"typing":"effect"}),Ze}},Pt=function(Sn){!Sn||!Sn.trim()||O(Sn,{source:"submit"})};d.useEffect(function(){!Ut&&!Ce&&v!=="combobox"&&Ot("",!1,!1)},[Ut]),d.useEffect(function(){Lt&&y&&Bt(!1),y&&!he.current&&ze(!1)},[y]);var st=ghe(),Ct=Te(st,2),kt=Ct[0],qt=Ct[1],vt=d.useRef(!1),At=function(Sn){var gr=kt(),on=Sn.key,Ze=on==="Enter";if(Ze&&(v!=="combobox"&&Sn.preventDefault(),Ut||Le(!0)),qt(!!Be),on==="Backspace"&&!gr&&Ce&&!Be&&u.length){for(var bt=lt(u),sn=null,Pn=bt.length-1;Pn>=0;Pn-=1){var qn=bt[Pn];if(!qn.disabled){bt.splice(Pn,1),sn=qn;break}}sn&&f(bt,{type:"remove",values:[sn]})}for(var ln=arguments.length,or=new Array(ln>1?ln-1:0),ri=1;ri1?gr-1:0),Ze=1;Ze1?sn-1:0),qn=1;qn"u"?"undefined":Kt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const khe=function(e,t,n,r){var i=d.useRef(!1),a=d.useRef(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var s=d.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(a.current),i.current=!1):(!f||i.current)&&o(),!i.current&&f}};function ZHe(e,t,n,r,i,a,o){var s=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=khe(t,n,r,i);function p(w,b){if(rr.cancel(l.current),!f(!1,b)){var C=w;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=b,c.current=b,MY||C.preventDefault(),l.current=rr(function(){var k=u.current?10:1;o(s.current*k,!1),s.current=0})}}function h(w,b){o(b,!0),MY||w.preventDefault()}var m=d.useRef(null),g=d.useRef(null);function v(w){if(e){rr.cancel(g.current),g.current=rr(function(){m.current=null},2);var b=w.deltaX,C=w.deltaY,k=w.shiftKey,S=b,_=C;(m.current==="sx"||!m.current&&k&&C&&!b)&&(S=C,_=0,m.current="sx");var E=Math.abs(S),$=Math.abs(_);m.current===null&&(m.current=a&&E>$?"x":"y"),m.current==="y"?p(w,_):h(w,S)}}function y(w){e&&(u.current=w.detail===c.current)}return[v,y]}function QHe(e,t,n,r){var i=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Te(i,2),o=a[0],s=a[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,p=o.get(u),h=o.get(f);if(p===void 0||h===void 0)for(var m=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(v,y){if(v&&v.offsetParent){var w=V2(v),b=w.offsetHeight,C=getComputedStyle(w),k=C.marginTop,S=C.marginBottom,_=TY(k),E=TY(S),$=b+_+E;l.current.get(y)!==$&&l.current.set(y,$)}}),o(function(v){return v+1})};h?m():c.current=rr(m)}function p(h,m){var g=e(h);s.current.get(g),m?(s.current.set(g,m),f()):s.current.delete(g)}return d.useEffect(function(){return u},[]),[p,f,l.current,a]}var PY=14/15;function tUe(e,t,n){var r=d.useRef(!1),i=d.useRef(0),a=d.useRef(0),o=d.useRef(null),s=d.useRef(null),l,c=function(h){if(r.current){var m=Math.ceil(h.touches[0].pageX),g=Math.ceil(h.touches[0].pageY),v=i.current-m,y=a.current-g,w=Math.abs(v)>Math.abs(y);w?i.current=m:a.current=g;var b=n(w,w?v:y,!1,h);b&&h.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(function(){w?v*=PY:y*=PY;var C=Math.floor(w?v:y);(!n(w,C,!0)||Math.abs(C)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},nr(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var nUe=10;function rUe(e,t,n,r,i,a,o,s){var l=d.useRef(),c=d.useState(null),u=Te(c,2),f=u[0],p=u[1];return nr(function(){if(f&&f.times=0;j-=1){var I=i(t[j]),A=n.get(I);if(A===void 0){w=!0;break}if(O-=A,O<=0)break}switch(k){case"top":C=_-v;break;case"bottom":C=E-y+v;break;default:{var N=e.current.scrollTop,F=N+y;_F&&(b="bottom")}}C!==null&&o(C),C!==f.lastTop&&(w=!0)}w&&p(q(q({},f),{},{times:f.times+1,targetAlign:b,lastTop:C}))}},[f,e.current]),function(h){if(h==null){s();return}if(rr.cancel(l.current),typeof h=="number")o(h);else if(h&&Kt(h)==="object"){var m,g=h.align;"index"in h?m=h.index:m=t.findIndex(function(w){return i(w)===h.key});var v=h.offset,y=v===void 0?0:v;p({times:0,index:m,offset:y,originAlign:g})}}}function OY(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var RY=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=d.useState(null),b=Te(w,2),C=b[0],k=b[1],S=d.useState(null),_=Te(S,2),E=_[0],$=_[1],M=!r,P=d.useRef(),R=d.useRef(),O=d.useState(!1),j=Te(O,2),I=j[0],A=j[1],N=d.useRef(),F=function(){clearTimeout(N.current),A(!0),N.current=setTimeout(function(){A(!1)},3e3)},K=a-f||0,L=f-u||0,V=d.useMemo(function(){if(i===0||K===0)return 0;var oe=i/K;return oe*L},[i,K,L]),B=function(le){le.stopPropagation(),le.preventDefault()},U=d.useRef({top:V,dragging:v,pageY:C,startTop:E});U.current={top:V,dragging:v,pageY:C,startTop:E};var Y=function(le){y(!0),k(OY(le,c)),$(U.current.top),o(),le.stopPropagation(),le.preventDefault()};d.useEffect(function(){var oe=function(me){me.preventDefault()},le=P.current,ce=R.current;return le.addEventListener("touchstart",oe,{passive:!1}),ce.addEventListener("touchstart",Y,{passive:!1}),function(){le.removeEventListener("touchstart",oe),ce.removeEventListener("touchstart",Y)}},[]);var ee=d.useRef();ee.current=K;var ie=d.useRef();ie.current=L,d.useEffect(function(){if(v){var oe,le=function(me){var re=U.current,fe=re.dragging,ve=re.pageY,$e=re.startTop;rr.cancel(oe);var Ce=P.current.getBoundingClientRect(),be=f/(c?Ce.width:Ce.height);if(fe){var Se=(OY(me,c)-ve)*be,we=$e;!M&&c?we-=Se:we+=Se;var se=ee.current,ye=ie.current,Oe=ye?we/ye:0,z=Math.ceil(Oe*se);z=Math.max(z,0),z=Math.min(z,se),oe=rr(function(){l(z,c)})}},ce=function(){y(!1),s()};return window.addEventListener("mousemove",le,{passive:!0}),window.addEventListener("touchmove",le,{passive:!0}),window.addEventListener("mouseup",ce,{passive:!0}),window.addEventListener("touchend",ce,{passive:!0}),function(){window.removeEventListener("mousemove",le),window.removeEventListener("touchmove",le),window.removeEventListener("mouseup",ce),window.removeEventListener("touchend",ce),rr.cancel(oe)}}},[v]),d.useEffect(function(){return F(),function(){clearTimeout(N.current)}},[i]),d.useImperativeHandle(t,function(){return{delayHidden:F}});var Z="".concat(n,"-scrollbar"),X={position:"absolute",visibility:I?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ae.height="100%",ae.width=u,M?ae.left=V:ae.right=V):(X.width=8,X.top=0,X.bottom=0,M?X.right=0:X.left=0,ae.width="100%",ae.height=u,ae.top=V),d.createElement("div",{ref:P,className:Ee(Z,ne(ne(ne({},"".concat(Z,"-horizontal"),c),"".concat(Z,"-vertical"),!c),"".concat(Z,"-visible"),I)),style:q(q({},X),p),onMouseDown:B,onMouseMove:F},d.createElement("div",{ref:R,className:Ee("".concat(Z,"-thumb"),ne({},"".concat(Z,"-thumb-moving"),v)),style:q(q({},ae),h),onMouseDown:Y}))}),iUe=20;function IY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,iUe),Math.floor(n)}var aUe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],oUe=[],sUe={overflowY:"auto",overflowAnchor:"none"};function lUe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,p=e.itemKey,h=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,y=v===void 0?"div":v,w=e.onScroll,b=e.onVirtualScroll,C=e.onVisibleChange,k=e.innerProps,S=e.extraRender,_=e.styles,E=Ht(e,aUe),$=d.useCallback(function(De){return typeof p=="function"?p(De):De==null?void 0:De[p]},[p]),M=eUe($),P=Te(M,4),R=P[0],O=P[1],j=P[2],I=P[3],A=!!(h!==!1&&a&&o),N=d.useMemo(function(){return Object.values(j.maps).reduce(function(De,Ye){return De+Ye},0)},[j.id,j.maps]),F=A&&u&&(Math.max(o*u.length,N)>a||!!g),K=m==="rtl",L=Ee(r,ne({},"".concat(r,"-rtl"),K),i),V=u||oUe,B=d.useRef(),U=d.useRef(),Y=d.useRef(),ee=d.useState(0),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=d.useState(0),oe=Te(ae,2),le=oe[0],ce=oe[1],pe=d.useState(!1),me=Te(pe,2),re=me[0],fe=me[1],ve=function(){fe(!0)},$e=function(){fe(!1)},Ce={getKey:$};function be(De){X(function(Ye){var ot;typeof De=="function"?ot=De(Ye):ot=De;var Re=ut(ot);return B.current.scrollTop=Re,Re})}var Se=d.useRef({start:0,end:V.length}),we=d.useRef(),se=XHe(V,$),ye=Te(se,1),Oe=ye[0];we.current=Oe;var z=d.useMemo(function(){if(!A)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};if(!F){var De;return{scrollHeight:((De=U.current)===null||De===void 0?void 0:De.offsetHeight)||0,start:0,end:V.length-1,offset:void 0}}for(var Ye=0,ot,Re,It,rt=V.length,$t=0;$t=Z&&ot===void 0&&(ot=$t,Re=Ye),T>Z+a&&It===void 0&&(It=$t),Ye=T}return ot===void 0&&(ot=0,Re=0,It=Math.ceil(a/o)),It===void 0&&(It=V.length-1),It=Math.min(It+1,V.length-1),{scrollHeight:Ye,start:ot,end:It,offset:Re}},[F,A,Z,V,I,a]),H=z.scrollHeight,G=z.start,de=z.end,xe=z.offset;Se.current.start=G,Se.current.end=de;var he=d.useState({width:0,height:a}),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=function(Ye){ge({width:Ye.offsetWidth,height:Ye.offsetHeight})},Ve=d.useRef(),Be=d.useRef(),Xe=d.useMemo(function(){return IY(We.width,g)},[We.width,g]),Ke=d.useMemo(function(){return IY(We.height,H)},[We.height,H]),qe=H-a,Et=d.useRef(qe);Et.current=qe;function ut(De){var Ye=De;return Number.isNaN(Et.current)||(Ye=Math.min(Ye,Et.current)),Ye=Math.max(Ye,0),Ye}var gt=Z<=0,Qe=Z>=qe,nt=le<=0,jt=le>=g,Lt=khe(gt,Qe,nt,jt),Bt=function(){return{x:K?-le:le,y:Z}},Ut=d.useRef(Bt()),Ne=Vn(function(De){if(b){var Ye=q(q({},Bt()),De);(Ut.current.x!==Ye.x||Ut.current.y!==Ye.y)&&(b(Ye),Ut.current=Ye)}});function He(De,Ye){var ot=De;Ye?(Va.flushSync(function(){ce(ot)}),Ne()):be(ot)}function Le(De){var Ye=De.currentTarget.scrollTop;Ye!==Z&&be(Ye),w==null||w(De),Ne()}var Je=function(Ye){var ot=Ye,Re=g?g-We.width:0;return ot=Math.max(ot,0),ot=Math.min(ot,Re),ot},pt=Vn(function(De,Ye){Ye?(Va.flushSync(function(){ce(function(ot){var Re=ot+(K?-De:De);return Je(Re)})}),Ne()):be(function(ot){var Re=ot+De;return Re})}),xt=ZHe(A,gt,Qe,nt,jt,!!g,pt),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1];tUe(A,B,function(De,Ye,ot,Re){var It=Re;return Lt(De,Ye,ot)?!1:!It||!It._virtualHandled?(It&&(It._virtualHandled=!0),Ot({preventDefault:function(){},deltaX:De?Ye:0,deltaY:De?0:Ye}),!0):!1}),nr(function(){function De(ot){var Re=gt&&ot.detail<0,It=Qe&&ot.detail>0;A&&!Re&&!It&&ot.preventDefault()}var Ye=B.current;return Ye.addEventListener("wheel",Ot,{passive:!1}),Ye.addEventListener("DOMMouseScroll",Pt,{passive:!0}),Ye.addEventListener("MozMousePixelScroll",De,{passive:!1}),function(){Ye.removeEventListener("wheel",Ot),Ye.removeEventListener("DOMMouseScroll",Pt),Ye.removeEventListener("MozMousePixelScroll",De)}},[A,gt,Qe]),nr(function(){if(g){var De=Je(le);ce(De),Ne({x:De})}},[We.width,g]);var st=function(){var Ye,ot;(Ye=Ve.current)===null||Ye===void 0||Ye.delayHidden(),(ot=Be.current)===null||ot===void 0||ot.delayHidden()},Ct=rUe(B,V,j,o,$,function(){return O(!0)},be,st);d.useImperativeHandle(t,function(){return{nativeElement:Y.current,getScrollInfo:Bt,scrollTo:function(Ye){function ot(Re){return Re&&Kt(Re)==="object"&&("left"in Re||"top"in Re)}ot(Ye)?(Ye.left!==void 0&&ce(Je(Ye.left)),Ct(Ye.top)):Ct(Ye)}}}),nr(function(){if(C){var De=V.slice(G,de+1);C(De,V)}},[G,de,V]);var kt=QHe(V,$,j,o),qt=S==null?void 0:S({start:G,end:de,virtual:F,offsetX:le,offsetY:xe,rtl:K,getSize:kt}),vt=GHe(V,G,de,g,le,R,f,Ce),At=null;a&&(At=q(ne({},l?"height":"maxHeight",a),sUe),A&&(At.overflowY="hidden",g&&(At.overflowX="hidden"),re&&(At.pointerEvents="none")));var dt={};return K&&(dt.dir="rtl"),d.createElement("div",tt({ref:Y,style:q(q({},c),{},{position:"relative"}),className:L},dt,E),d.createElement(Go,{onResize:ze},d.createElement(y,{className:"".concat(r,"-holder"),style:At,ref:B,onScroll:Le,onMouseEnter:st},d.createElement(_he,{prefixCls:r,height:H,offsetX:le,offsetY:xe,scrollWidth:g,onInnerResize:O,ref:U,innerProps:k,rtl:K,extra:qt},vt))),F&&H>a&&d.createElement(RY,{ref:Ve,prefixCls:r,scrollOffset:Z,scrollRange:H,rtl:K,onScroll:He,onStartMove:ve,onStopMove:$e,spinSize:Ke,containerSize:We.height,style:_==null?void 0:_.verticalScrollBar,thumbStyle:_==null?void 0:_.verticalScrollBarThumb}),F&&g>We.width&&d.createElement(RY,{ref:Be,prefixCls:r,scrollOffset:le,scrollRange:g,rtl:K,onScroll:He,onStartMove:ve,onStopMove:$e,spinSize:Xe,containerSize:We.width,horizontal:!0,style:_==null?void 0:_.horizontalScrollBar,thumbStyle:_==null?void 0:_.horizontalScrollBarThumb}))}var vB=d.forwardRef(lUe);vB.displayName="List";function cUe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var uUe=["disabled","title","children","style","className"];function jY(e){return typeof e=="string"||typeof e=="number"}var dUe=function(t,n){var r=fB(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,h=d.useContext(pB),m=h.maxCount,g=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,w=h.onSelect,b=h.menuItemSelectedIcon,C=h.rawValues,k=h.fieldNames,S=h.virtual,_=h.direction,E=h.listHeight,$=h.listItemHeight,M=h.optionRender,P="".concat(i,"-item"),R=ug(function(){return g},[o,g],function(le,ce){return ce[0]&&le[1]!==ce[1]}),O=d.useRef(null),j=d.useMemo(function(){return s&&Nj(m)&&(C==null?void 0:C.size)>=m},[s,m,C==null?void 0:C.size]),I=function(ce){ce.preventDefault()},A=function(ce){var pe;(pe=O.current)===null||pe===void 0||pe.scrollTo(typeof ce=="number"?{index:ce}:ce)},N=d.useCallback(function(le){return l==="combobox"?!1:C.has(le)},[l,lt(C).toString(),C.size]),F=function(ce){for(var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,me=R.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;B(ce);var me={source:pe?"keyboard":"mouse"},re=R[ce];if(!re){v(null,-1,me);return}v(re.value,ce,me)};d.useEffect(function(){U(y!==!1?F(0):-1)},[R.length,c]);var Y=d.useCallback(function(le){return l==="combobox"?String(le).toLowerCase()===c.toLowerCase():C.has(le)},[l,c,lt(C).toString(),C.size]);d.useEffect(function(){var le=setTimeout(function(){if(!s&&o&&C.size===1){var pe=Array.from(C)[0],me=R.findIndex(function(re){var fe=re.data;return fe.value===pe});me!==-1&&(U(me),A(me))}});if(o){var ce;(ce=O.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(le)}},[o,c]);var ee=function(ce){ce!==void 0&&w(ce,{selected:!C.has(ce)}),s||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var pe=ce.which,me=ce.ctrlKey;switch(pe){case mt.N:case mt.P:case mt.UP:case mt.DOWN:{var re=0;if(pe===mt.UP?re=-1:pe===mt.DOWN?re=1:cUe()&&me&&(pe===mt.N?re=1:pe===mt.P&&(re=-1)),re!==0){var fe=F(V+re,re);A(fe),U(fe,!0)}break}case mt.TAB:case mt.ENTER:{var ve,$e=R[V];$e&&!($e!=null&&(ve=$e.data)!==null&&ve!==void 0&&ve.disabled)&&!j?ee($e.value):ee(void 0),o&&ce.preventDefault();break}case mt.ESC:u(!1),o&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){A(ce)}}}),R.length===0)return d.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:I},f);var ie=Object.keys(k).map(function(le){return k[le]}),Z=function(ce){return ce.label};function X(le,ce){var pe=le.group;return{role:pe?"presentation":"option",id:"".concat(a,"_list_").concat(ce)}}var ae=function(ce){var pe=R[ce];if(!pe)return null;var me=pe.data||{},re=me.value,fe=pe.group,ve=Fi(me,!0),$e=Z(pe);return pe?d.createElement("div",tt({"aria-label":typeof $e=="string"&&!fe?$e:null},ve,{key:ce},X(pe,ce),{"aria-selected":Y(re)}),re):null},oe={role:"listbox",id:"".concat(a,"_list")};return d.createElement(d.Fragment,null,S&&d.createElement("div",tt({},oe,{style:{height:0,width:0,overflow:"hidden"}}),ae(V-1),ae(V),ae(V+1)),d.createElement(vB,{itemKey:"key",ref:O,data:R,height:E,itemHeight:$,fullHeight:!1,onMouseDown:I,onScroll:p,virtual:S,direction:_,innerProps:S?null:oe},function(le,ce){var pe=le.group,me=le.groupOption,re=le.data,fe=le.label,ve=le.value,$e=re.key;if(pe){var Ce,be=(Ce=re.title)!==null&&Ce!==void 0?Ce:jY(fe)?fe.toString():void 0;return d.createElement("div",{className:Ee(P,"".concat(P,"-group"),re.className),title:be},fe!==void 0?fe:$e)}var Se=re.disabled,we=re.title;re.children;var se=re.style,ye=re.className,Oe=Ht(re,uUe),z=$r(Oe,ie),H=N(ve),G=Se||!H&&j,de="".concat(P,"-option"),xe=Ee(P,de,ye,ne(ne(ne(ne({},"".concat(de,"-grouped"),me),"".concat(de,"-active"),V===ce&&!G),"".concat(de,"-disabled"),G),"".concat(de,"-selected"),H)),he=Z(le),Ue=!b||typeof b=="function"||H,We=typeof he=="number"?he:he||ve,ge=jY(We)?We.toString():void 0;return we!==void 0&&(ge=we),d.createElement("div",tt({},Fi(z),S?{}:X(le,ce),{"aria-selected":Y(ve),className:xe,title:ge,onMouseMove:function(){V===ce||G||U(ce)},onClick:function(){G||ee(ve)},style:se}),d.createElement("div",{className:"".concat(de,"-content")},typeof M=="function"?M(le,{index:ce}):We),d.isValidElement(b)||H,Ue&&d.createElement(b8,{className:"".concat(P,"-option-state"),customizeIcon:b,customizeIconProps:{value:ve,disabled:G,isSelected:H}},H?"✓":null))}))},fUe=d.forwardRef(dUe);const pUe=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var p;return q(q({},f),{},{label:(p=o.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=d.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function L9(e,t){return xhe(e).join("").toUpperCase().includes(t)}const hUe=function(e,t,n,r,i){return d.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(h,m){return i?L9(m[i],u):m[a]?L9(m[o!=="children"?o:"label"],u):L9(m[s],u)},p=c?function(h){return Aj(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var m=f(n,p(h));if(m)l.push(h);else{var g=h[a].filter(function(v){return f(n,p(v))});g.length&&l.push(q(q({},h),{},ne({},a,g)))}return}f(n,p(h))&&l.push(h)}),l},[e,r,i,n,t])};var NY=0,mUe=Ws();function gUe(){var e;return mUe?(e=NY,NY+=1):e="TEST_OR_SSR",e}function yB(e){var t=d.useState(),n=Te(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_select_".concat(gUe()))},[]),e||r}var vUe=["children","value"],yUe=["children"];function bUe(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=Ht(r,vUe);return q({key:n,value:a!==void 0?a:n,children:i},o)}function Ehe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Xi(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,c=Ht(s,yUe);return t||!a?bUe(n):q(q({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:Ehe(l)})}).filter(function(n){return n})}var wUe=function(t,n,r,i,a){return d.useMemo(function(){var o=t,s=!t;s&&(o=Ehe(n));var l=new Map,c=new Map,u=function(h,m,g){g&&typeof g=="string"&&h.set(m[g],m)},f=function p(h){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?Le(xt.options):xt.options}):xt})},We=d.useMemo(function(){return w?Ue(he):he},[he,w,oe]),ge=d.useMemo(function(){return HHe(We,{fieldNames:Z,childrenAsData:ee})},[We,Z,ee]),ze=function(Je){var pt=fe(Je);if(be(pt),L&&(pt.length!==ye.length||pt.some(function(Ot,Pt){var st;return((st=ye[Pt])===null||st===void 0?void 0:st.value)!==(Ot==null?void 0:Ot.value)}))){var xt=K?pt:pt.map(function(Ot){return Ot.value}),Nt=pt.map(function(Ot){return Aj(Oe(Ot.value))});L(Y?xt:xt[0],Y?Nt:Nt[0])}},Ve=d.useState(null),Be=Te(Ve,2),Xe=Be[0],Ke=Be[1],qe=d.useState(0),Et=Te(qe,2),ut=Et[0],gt=Et[1],Qe=E!==void 0?E:r!=="combobox",nt=d.useCallback(function(Le,Je){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xt=pt.source,Nt=xt===void 0?"keyboard":xt;gt(Je),o&&r==="combobox"&&Le!==null&&Nt==="keyboard"&&Ke(String(Le))},[o,r]),jt=function(Je,pt,xt){var Nt=function(){var De,Ye=Oe(Je);return[K?{label:Ye==null?void 0:Ye[Z.label],value:Je,key:(De=Ye==null?void 0:Ye.key)!==null&&De!==void 0?De:Je}:Je,Aj(Ye)]};if(pt&&h){var Ot=Nt(),Pt=Te(Ot,2),st=Pt[0],Ct=Pt[1];h(st,Ct)}else if(!pt&&m&&xt!=="clear"){var kt=Nt(),qt=Te(kt,2),vt=qt[0],At=qt[1];m(vt,At)}},Lt=AY(function(Le,Je){var pt,xt=Y?Je.selected:!0;xt?pt=Y?[].concat(lt(ye),[Le]):[Le]:pt=ye.filter(function(Nt){return Nt.value!==Le}),ze(pt),jt(Le,xt),r==="combobox"?Ke(""):(!Dj||p)&&(le(""),Ke(""))}),Bt=function(Je,pt){ze(Je);var xt=pt.type,Nt=pt.values;(xt==="remove"||xt==="clear")&&Nt.forEach(function(Ot){jt(Ot.value,!1,xt)})},Ut=function(Je,pt){if(le(Je),Ke(null),pt.source==="submit"){var xt=(Je||"").trim();if(xt){var Nt=Array.from(new Set([].concat(lt(H),[xt])));ze(Nt),jt(xt,!0),le("")}return}pt.source!=="blur"&&(r==="combobox"&&ze(Je),u==null||u(Je))},Ne=function(Je){var pt=Je;r!=="tags"&&(pt=Je.map(function(Nt){var Ot=me.get(Nt);return Ot==null?void 0:Ot.value}).filter(function(Nt){return Nt!==void 0}));var xt=Array.from(new Set([].concat(lt(H),lt(pt))));ze(xt),xt.forEach(function(Nt){jt(Nt,!0)})},He=d.useMemo(function(){var Le=M!==!1&&v!==!1;return q(q({},ce),{},{flattenOptions:ge,onActiveValue:nt,defaultActiveFirstOption:Qe,onSelect:Lt,menuItemSelectedIcon:$,rawValues:H,fieldNames:Z,virtual:Le,direction:P,listHeight:O,listItemHeight:I,childrenAsData:ee,maxCount:V,optionRender:S})},[V,ce,ge,nt,Qe,Lt,$,H,Z,M,v,P,O,I,ee,S]);return d.createElement(pB.Provider,{value:He},d.createElement(hB,tt({},B,{id:U,prefixCls:a,ref:t,omitDomProps:SUe,mode:r,displayValues:z,onDisplayValuesChange:Bt,direction:P,searchValue:oe,onSearch:Ut,autoClearSearchValue:p,onSearchSplit:Ne,dropdownMatchSelectWidth:v,OptionList:fUe,emptyOptions:!ge.length,activeValue:Xe,activeDescendantId:"".concat(U,"_list_").concat(ut)})))}),bB=_Ue;bB.Option=gB;bB.OptGroup=mB;function Al(e,t,n){return Ee({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Mu=(e,t)=>t||e,kUe=()=>{const[,e]=ka(),[t]=Ga("Empty"),r=new ur(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},EUe=()=>{const[,e]=ka(),[t]=Ga("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:l}=d.useMemo(()=>({borderColor:new ur(n).onBackground(a).toHexString(),shadowColor:new ur(r).onBackground(a).toHexString(),contentColor:new ur(i).onBackground(a).toHexString()}),[n,r,i,a]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:o},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},$Ue=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},MUe=Jn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Hn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[$Ue(i)]});var TUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{className:c,rootClassName:u,prefixCls:f,image:p=$he,description:h,children:m,imageStyle:g,style:v,classNames:y,styles:w}=e,b=TUe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:C,direction:k,empty:S}=d.useContext(Xt),_=C("empty",f),[E,$,M]=MUe(_),[P]=Ga("Empty"),R=typeof h<"u"?h:P==null?void 0:P.description,O=typeof R=="string"?R:"empty";let j=null;return typeof p=="string"?j=d.createElement("img",{alt:O,src:p}):j=p,E(d.createElement("div",Object.assign({className:Ee($,M,_,S==null?void 0:S.className,{[`${_}-normal`]:p===Mhe,[`${_}-rtl`]:k==="rtl"},c,u,(t=S==null?void 0:S.classNames)===null||t===void 0?void 0:t.root,y==null?void 0:y.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=S==null?void 0:S.styles)===null||n===void 0?void 0:n.root),S==null?void 0:S.style),w==null?void 0:w.root),v)},b),d.createElement("div",{className:Ee(`${_}-image`,(r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.image,y==null?void 0:y.image),style:Object.assign(Object.assign(Object.assign({},g),(i=S==null?void 0:S.styles)===null||i===void 0?void 0:i.image),w==null?void 0:w.image)},j),R&&d.createElement("div",{className:Ee(`${_}-description`,(a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.description,y==null?void 0:y.description),style:Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.description),w==null?void 0:w.description)},R),m&&d.createElement("div",{className:Ee(`${_}-footer`,(s=S==null?void 0:S.classNames)===null||s===void 0?void 0:s.footer,y==null?void 0:y.footer),style:Object.assign(Object.assign({},(l=S==null?void 0:S.styles)===null||l===void 0?void 0:l.footer),w==null?void 0:w.footer)},m)))};za.PRESENTED_IMAGE_DEFAULT=$he;za.PRESENTED_IMAGE_SIMPLE=Mhe;const Vg=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(Xt),r=n("empty");switch(t){case"Table":case"List":return te.createElement(za,{image:za.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return te.createElement(za,{image:za.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return te.createElement(za,null)}},Od=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=d.useContext(Xt),s=d.useContext(Vpe),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const u=nNe.includes(c);return[c,u]},PUe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function wB(e,t){return e||PUe(t)}const DY=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},OUe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` +`].includes(cn)})},[I]),pt=d.useContext(pB)||{},xt=pt.maxCount,Nt=pt.rawValues,Ot=function(Sn,gr,on){if(!(Ce&&Nj(xt)&&(Nt==null?void 0:Nt.size)>=xt)){var Ze=!0,bt=Sn;$==null||$(null);var sn=HHe(Sn,I,Nj(xt)?xt-Nt.size:void 0),Pn=on?null:sn;return v!=="combobox"&&Pn&&(bt="",j==null||j(Pn),Le(!1),Ze=!1),O&&Be!==bt&&O(bt,{source:gr?"typing":"effect"}),Ze}},Pt=function(Sn){!Sn||!Sn.trim()||O(Sn,{source:"submit"})};d.useEffect(function(){!Ut&&!Ce&&v!=="combobox"&&Ot("",!1,!1)},[Ut]),d.useEffect(function(){Lt&&y&&Bt(!1),y&&!he.current&&ze(!1)},[y]);var st=mhe(),Ct=Te(st,2),kt=Ct[0],qt=Ct[1],vt=d.useRef(!1),At=function(Sn){var gr=kt(),on=Sn.key,Ze=on==="Enter";if(Ze&&(v!=="combobox"&&Sn.preventDefault(),Ut||Le(!0)),qt(!!Be),on==="Backspace"&&!gr&&Ce&&!Be&&u.length){for(var bt=lt(u),sn=null,Pn=bt.length-1;Pn>=0;Pn-=1){var qn=bt[Pn];if(!qn.disabled){bt.splice(Pn,1),sn=qn;break}}sn&&f(bt,{type:"remove",values:[sn]})}for(var ln=arguments.length,or=new Array(ln>1?ln-1:0),ri=1;ri1?gr-1:0),Ze=1;Ze1?sn-1:0),qn=1;qn"u"?"undefined":Kt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const _he=function(e,t,n,r){var i=d.useRef(!1),a=d.useRef(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var s=d.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(a.current),i.current=!1):(!f||i.current)&&o(),!i.current&&f}};function XHe(e,t,n,r,i,a,o){var s=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=_he(t,n,r,i);function p(w,b){if(rr.cancel(l.current),!f(!1,b)){var C=w;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=b,c.current=b,MY||C.preventDefault(),l.current=rr(function(){var k=u.current?10:1;o(s.current*k,!1),s.current=0})}}function h(w,b){o(b,!0),MY||w.preventDefault()}var m=d.useRef(null),g=d.useRef(null);function v(w){if(e){rr.cancel(g.current),g.current=rr(function(){m.current=null},2);var b=w.deltaX,C=w.deltaY,k=w.shiftKey,S=b,_=C;(m.current==="sx"||!m.current&&k&&C&&!b)&&(S=C,_=0,m.current="sx");var E=Math.abs(S),$=Math.abs(_);m.current===null&&(m.current=a&&E>$?"x":"y"),m.current==="y"?p(w,_):h(w,S)}}function y(w){e&&(u.current=w.detail===c.current)}return[v,y]}function ZHe(e,t,n,r){var i=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Te(i,2),o=a[0],s=a[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,p=o.get(u),h=o.get(f);if(p===void 0||h===void 0)for(var m=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(v,y){if(v&&v.offsetParent){var w=V2(v),b=w.offsetHeight,C=getComputedStyle(w),k=C.marginTop,S=C.marginBottom,_=TY(k),E=TY(S),$=b+_+E;l.current.get(y)!==$&&l.current.set(y,$)}}),o(function(v){return v+1})};h?m():c.current=rr(m)}function p(h,m){var g=e(h);s.current.get(g),m?(s.current.set(g,m),f()):s.current.delete(g)}return d.useEffect(function(){return u},[]),[p,f,l.current,a]}var PY=14/15;function eUe(e,t,n){var r=d.useRef(!1),i=d.useRef(0),a=d.useRef(0),o=d.useRef(null),s=d.useRef(null),l,c=function(h){if(r.current){var m=Math.ceil(h.touches[0].pageX),g=Math.ceil(h.touches[0].pageY),v=i.current-m,y=a.current-g,w=Math.abs(v)>Math.abs(y);w?i.current=m:a.current=g;var b=n(w,w?v:y,!1,h);b&&h.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(function(){w?v*=PY:y*=PY;var C=Math.floor(w?v:y);(!n(w,C,!0)||Math.abs(C)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},nr(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var tUe=10;function nUe(e,t,n,r,i,a,o,s){var l=d.useRef(),c=d.useState(null),u=Te(c,2),f=u[0],p=u[1];return nr(function(){if(f&&f.times=0;j-=1){var I=i(t[j]),A=n.get(I);if(A===void 0){w=!0;break}if(O-=A,O<=0)break}switch(k){case"top":C=_-v;break;case"bottom":C=E-y+v;break;default:{var N=e.current.scrollTop,F=N+y;_F&&(b="bottom")}}C!==null&&o(C),C!==f.lastTop&&(w=!0)}w&&p(q(q({},f),{},{times:f.times+1,targetAlign:b,lastTop:C}))}},[f,e.current]),function(h){if(h==null){s();return}if(rr.cancel(l.current),typeof h=="number")o(h);else if(h&&Kt(h)==="object"){var m,g=h.align;"index"in h?m=h.index:m=t.findIndex(function(w){return i(w)===h.key});var v=h.offset,y=v===void 0?0:v;p({times:0,index:m,offset:y,originAlign:g})}}}function OY(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var RY=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=d.useState(null),b=Te(w,2),C=b[0],k=b[1],S=d.useState(null),_=Te(S,2),E=_[0],$=_[1],M=!r,P=d.useRef(),R=d.useRef(),O=d.useState(!1),j=Te(O,2),I=j[0],A=j[1],N=d.useRef(),F=function(){clearTimeout(N.current),A(!0),N.current=setTimeout(function(){A(!1)},3e3)},K=a-f||0,L=f-u||0,V=d.useMemo(function(){if(i===0||K===0)return 0;var oe=i/K;return oe*L},[i,K,L]),B=function(le){le.stopPropagation(),le.preventDefault()},U=d.useRef({top:V,dragging:v,pageY:C,startTop:E});U.current={top:V,dragging:v,pageY:C,startTop:E};var Y=function(le){y(!0),k(OY(le,c)),$(U.current.top),o(),le.stopPropagation(),le.preventDefault()};d.useEffect(function(){var oe=function(me){me.preventDefault()},le=P.current,ce=R.current;return le.addEventListener("touchstart",oe,{passive:!1}),ce.addEventListener("touchstart",Y,{passive:!1}),function(){le.removeEventListener("touchstart",oe),ce.removeEventListener("touchstart",Y)}},[]);var ee=d.useRef();ee.current=K;var ie=d.useRef();ie.current=L,d.useEffect(function(){if(v){var oe,le=function(me){var re=U.current,fe=re.dragging,ve=re.pageY,$e=re.startTop;rr.cancel(oe);var Ce=P.current.getBoundingClientRect(),be=f/(c?Ce.width:Ce.height);if(fe){var Se=(OY(me,c)-ve)*be,we=$e;!M&&c?we-=Se:we+=Se;var se=ee.current,ye=ie.current,Oe=ye?we/ye:0,z=Math.ceil(Oe*se);z=Math.max(z,0),z=Math.min(z,se),oe=rr(function(){l(z,c)})}},ce=function(){y(!1),s()};return window.addEventListener("mousemove",le,{passive:!0}),window.addEventListener("touchmove",le,{passive:!0}),window.addEventListener("mouseup",ce,{passive:!0}),window.addEventListener("touchend",ce,{passive:!0}),function(){window.removeEventListener("mousemove",le),window.removeEventListener("touchmove",le),window.removeEventListener("mouseup",ce),window.removeEventListener("touchend",ce),rr.cancel(oe)}}},[v]),d.useEffect(function(){return F(),function(){clearTimeout(N.current)}},[i]),d.useImperativeHandle(t,function(){return{delayHidden:F}});var Z="".concat(n,"-scrollbar"),X={position:"absolute",visibility:I?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ae.height="100%",ae.width=u,M?ae.left=V:ae.right=V):(X.width=8,X.top=0,X.bottom=0,M?X.right=0:X.left=0,ae.width="100%",ae.height=u,ae.top=V),d.createElement("div",{ref:P,className:Ee(Z,ne(ne(ne({},"".concat(Z,"-horizontal"),c),"".concat(Z,"-vertical"),!c),"".concat(Z,"-visible"),I)),style:q(q({},X),p),onMouseDown:B,onMouseMove:F},d.createElement("div",{ref:R,className:Ee("".concat(Z,"-thumb"),ne({},"".concat(Z,"-thumb-moving"),v)),style:q(q({},ae),h),onMouseDown:Y}))}),rUe=20;function IY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,rUe),Math.floor(n)}var iUe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],aUe=[],oUe={overflowY:"auto",overflowAnchor:"none"};function sUe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,p=e.itemKey,h=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,y=v===void 0?"div":v,w=e.onScroll,b=e.onVirtualScroll,C=e.onVisibleChange,k=e.innerProps,S=e.extraRender,_=e.styles,E=Ht(e,iUe),$=d.useCallback(function(De){return typeof p=="function"?p(De):De==null?void 0:De[p]},[p]),M=JHe($),P=Te(M,4),R=P[0],O=P[1],j=P[2],I=P[3],A=!!(h!==!1&&a&&o),N=d.useMemo(function(){return Object.values(j.maps).reduce(function(De,Ye){return De+Ye},0)},[j.id,j.maps]),F=A&&u&&(Math.max(o*u.length,N)>a||!!g),K=m==="rtl",L=Ee(r,ne({},"".concat(r,"-rtl"),K),i),V=u||aUe,B=d.useRef(),U=d.useRef(),Y=d.useRef(),ee=d.useState(0),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=d.useState(0),oe=Te(ae,2),le=oe[0],ce=oe[1],pe=d.useState(!1),me=Te(pe,2),re=me[0],fe=me[1],ve=function(){fe(!0)},$e=function(){fe(!1)},Ce={getKey:$};function be(De){X(function(Ye){var ot;typeof De=="function"?ot=De(Ye):ot=De;var Re=ut(ot);return B.current.scrollTop=Re,Re})}var Se=d.useRef({start:0,end:V.length}),we=d.useRef(),se=YHe(V,$),ye=Te(se,1),Oe=ye[0];we.current=Oe;var z=d.useMemo(function(){if(!A)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};if(!F){var De;return{scrollHeight:((De=U.current)===null||De===void 0?void 0:De.offsetHeight)||0,start:0,end:V.length-1,offset:void 0}}for(var Ye=0,ot,Re,It,rt=V.length,$t=0;$t=Z&&ot===void 0&&(ot=$t,Re=Ye),T>Z+a&&It===void 0&&(It=$t),Ye=T}return ot===void 0&&(ot=0,Re=0,It=Math.ceil(a/o)),It===void 0&&(It=V.length-1),It=Math.min(It+1,V.length-1),{scrollHeight:Ye,start:ot,end:It,offset:Re}},[F,A,Z,V,I,a]),H=z.scrollHeight,G=z.start,de=z.end,xe=z.offset;Se.current.start=G,Se.current.end=de;var he=d.useState({width:0,height:a}),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=function(Ye){ge({width:Ye.offsetWidth,height:Ye.offsetHeight})},Ve=d.useRef(),Be=d.useRef(),Xe=d.useMemo(function(){return IY(We.width,g)},[We.width,g]),Ke=d.useMemo(function(){return IY(We.height,H)},[We.height,H]),qe=H-a,Et=d.useRef(qe);Et.current=qe;function ut(De){var Ye=De;return Number.isNaN(Et.current)||(Ye=Math.min(Ye,Et.current)),Ye=Math.max(Ye,0),Ye}var gt=Z<=0,Qe=Z>=qe,nt=le<=0,jt=le>=g,Lt=_he(gt,Qe,nt,jt),Bt=function(){return{x:K?-le:le,y:Z}},Ut=d.useRef(Bt()),Ne=Vn(function(De){if(b){var Ye=q(q({},Bt()),De);(Ut.current.x!==Ye.x||Ut.current.y!==Ye.y)&&(b(Ye),Ut.current=Ye)}});function He(De,Ye){var ot=De;Ye?(Va.flushSync(function(){ce(ot)}),Ne()):be(ot)}function Le(De){var Ye=De.currentTarget.scrollTop;Ye!==Z&&be(Ye),w==null||w(De),Ne()}var Je=function(Ye){var ot=Ye,Re=g?g-We.width:0;return ot=Math.max(ot,0),ot=Math.min(ot,Re),ot},pt=Vn(function(De,Ye){Ye?(Va.flushSync(function(){ce(function(ot){var Re=ot+(K?-De:De);return Je(Re)})}),Ne()):be(function(ot){var Re=ot+De;return Re})}),xt=XHe(A,gt,Qe,nt,jt,!!g,pt),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1];eUe(A,B,function(De,Ye,ot,Re){var It=Re;return Lt(De,Ye,ot)?!1:!It||!It._virtualHandled?(It&&(It._virtualHandled=!0),Ot({preventDefault:function(){},deltaX:De?Ye:0,deltaY:De?0:Ye}),!0):!1}),nr(function(){function De(ot){var Re=gt&&ot.detail<0,It=Qe&&ot.detail>0;A&&!Re&&!It&&ot.preventDefault()}var Ye=B.current;return Ye.addEventListener("wheel",Ot,{passive:!1}),Ye.addEventListener("DOMMouseScroll",Pt,{passive:!0}),Ye.addEventListener("MozMousePixelScroll",De,{passive:!1}),function(){Ye.removeEventListener("wheel",Ot),Ye.removeEventListener("DOMMouseScroll",Pt),Ye.removeEventListener("MozMousePixelScroll",De)}},[A,gt,Qe]),nr(function(){if(g){var De=Je(le);ce(De),Ne({x:De})}},[We.width,g]);var st=function(){var Ye,ot;(Ye=Ve.current)===null||Ye===void 0||Ye.delayHidden(),(ot=Be.current)===null||ot===void 0||ot.delayHidden()},Ct=nUe(B,V,j,o,$,function(){return O(!0)},be,st);d.useImperativeHandle(t,function(){return{nativeElement:Y.current,getScrollInfo:Bt,scrollTo:function(Ye){function ot(Re){return Re&&Kt(Re)==="object"&&("left"in Re||"top"in Re)}ot(Ye)?(Ye.left!==void 0&&ce(Je(Ye.left)),Ct(Ye.top)):Ct(Ye)}}}),nr(function(){if(C){var De=V.slice(G,de+1);C(De,V)}},[G,de,V]);var kt=ZHe(V,$,j,o),qt=S==null?void 0:S({start:G,end:de,virtual:F,offsetX:le,offsetY:xe,rtl:K,getSize:kt}),vt=KHe(V,G,de,g,le,R,f,Ce),At=null;a&&(At=q(ne({},l?"height":"maxHeight",a),oUe),A&&(At.overflowY="hidden",g&&(At.overflowX="hidden"),re&&(At.pointerEvents="none")));var dt={};return K&&(dt.dir="rtl"),d.createElement("div",tt({ref:Y,style:q(q({},c),{},{position:"relative"}),className:L},dt,E),d.createElement(Ko,{onResize:ze},d.createElement(y,{className:"".concat(r,"-holder"),style:At,ref:B,onScroll:Le,onMouseEnter:st},d.createElement(Che,{prefixCls:r,height:H,offsetX:le,offsetY:xe,scrollWidth:g,onInnerResize:O,ref:U,innerProps:k,rtl:K,extra:qt},vt))),F&&H>a&&d.createElement(RY,{ref:Ve,prefixCls:r,scrollOffset:Z,scrollRange:H,rtl:K,onScroll:He,onStartMove:ve,onStopMove:$e,spinSize:Ke,containerSize:We.height,style:_==null?void 0:_.verticalScrollBar,thumbStyle:_==null?void 0:_.verticalScrollBarThumb}),F&&g>We.width&&d.createElement(RY,{ref:Be,prefixCls:r,scrollOffset:le,scrollRange:g,rtl:K,onScroll:He,onStartMove:ve,onStopMove:$e,spinSize:Xe,containerSize:We.width,horizontal:!0,style:_==null?void 0:_.horizontalScrollBar,thumbStyle:_==null?void 0:_.horizontalScrollBarThumb}))}var vB=d.forwardRef(sUe);vB.displayName="List";function lUe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var cUe=["disabled","title","children","style","className"];function jY(e){return typeof e=="string"||typeof e=="number"}var uUe=function(t,n){var r=fB(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,h=d.useContext(pB),m=h.maxCount,g=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,w=h.onSelect,b=h.menuItemSelectedIcon,C=h.rawValues,k=h.fieldNames,S=h.virtual,_=h.direction,E=h.listHeight,$=h.listItemHeight,M=h.optionRender,P="".concat(i,"-item"),R=ug(function(){return g},[o,g],function(le,ce){return ce[0]&&le[1]!==ce[1]}),O=d.useRef(null),j=d.useMemo(function(){return s&&Nj(m)&&(C==null?void 0:C.size)>=m},[s,m,C==null?void 0:C.size]),I=function(ce){ce.preventDefault()},A=function(ce){var pe;(pe=O.current)===null||pe===void 0||pe.scrollTo(typeof ce=="number"?{index:ce}:ce)},N=d.useCallback(function(le){return l==="combobox"?!1:C.has(le)},[l,lt(C).toString(),C.size]),F=function(ce){for(var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,me=R.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;B(ce);var me={source:pe?"keyboard":"mouse"},re=R[ce];if(!re){v(null,-1,me);return}v(re.value,ce,me)};d.useEffect(function(){U(y!==!1?F(0):-1)},[R.length,c]);var Y=d.useCallback(function(le){return l==="combobox"?String(le).toLowerCase()===c.toLowerCase():C.has(le)},[l,c,lt(C).toString(),C.size]);d.useEffect(function(){var le=setTimeout(function(){if(!s&&o&&C.size===1){var pe=Array.from(C)[0],me=R.findIndex(function(re){var fe=re.data;return fe.value===pe});me!==-1&&(U(me),A(me))}});if(o){var ce;(ce=O.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(le)}},[o,c]);var ee=function(ce){ce!==void 0&&w(ce,{selected:!C.has(ce)}),s||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var pe=ce.which,me=ce.ctrlKey;switch(pe){case mt.N:case mt.P:case mt.UP:case mt.DOWN:{var re=0;if(pe===mt.UP?re=-1:pe===mt.DOWN?re=1:lUe()&&me&&(pe===mt.N?re=1:pe===mt.P&&(re=-1)),re!==0){var fe=F(V+re,re);A(fe),U(fe,!0)}break}case mt.TAB:case mt.ENTER:{var ve,$e=R[V];$e&&!($e!=null&&(ve=$e.data)!==null&&ve!==void 0&&ve.disabled)&&!j?ee($e.value):ee(void 0),o&&ce.preventDefault();break}case mt.ESC:u(!1),o&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){A(ce)}}}),R.length===0)return d.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:I},f);var ie=Object.keys(k).map(function(le){return k[le]}),Z=function(ce){return ce.label};function X(le,ce){var pe=le.group;return{role:pe?"presentation":"option",id:"".concat(a,"_list_").concat(ce)}}var ae=function(ce){var pe=R[ce];if(!pe)return null;var me=pe.data||{},re=me.value,fe=pe.group,ve=Fi(me,!0),$e=Z(pe);return pe?d.createElement("div",tt({"aria-label":typeof $e=="string"&&!fe?$e:null},ve,{key:ce},X(pe,ce),{"aria-selected":Y(re)}),re):null},oe={role:"listbox",id:"".concat(a,"_list")};return d.createElement(d.Fragment,null,S&&d.createElement("div",tt({},oe,{style:{height:0,width:0,overflow:"hidden"}}),ae(V-1),ae(V),ae(V+1)),d.createElement(vB,{itemKey:"key",ref:O,data:R,height:E,itemHeight:$,fullHeight:!1,onMouseDown:I,onScroll:p,virtual:S,direction:_,innerProps:S?null:oe},function(le,ce){var pe=le.group,me=le.groupOption,re=le.data,fe=le.label,ve=le.value,$e=re.key;if(pe){var Ce,be=(Ce=re.title)!==null&&Ce!==void 0?Ce:jY(fe)?fe.toString():void 0;return d.createElement("div",{className:Ee(P,"".concat(P,"-group"),re.className),title:be},fe!==void 0?fe:$e)}var Se=re.disabled,we=re.title;re.children;var se=re.style,ye=re.className,Oe=Ht(re,cUe),z=$r(Oe,ie),H=N(ve),G=Se||!H&&j,de="".concat(P,"-option"),xe=Ee(P,de,ye,ne(ne(ne(ne({},"".concat(de,"-grouped"),me),"".concat(de,"-active"),V===ce&&!G),"".concat(de,"-disabled"),G),"".concat(de,"-selected"),H)),he=Z(le),Ue=!b||typeof b=="function"||H,We=typeof he=="number"?he:he||ve,ge=jY(We)?We.toString():void 0;return we!==void 0&&(ge=we),d.createElement("div",tt({},Fi(z),S?{}:X(le,ce),{"aria-selected":Y(ve),className:xe,title:ge,onMouseMove:function(){V===ce||G||U(ce)},onClick:function(){G||ee(ve)},style:se}),d.createElement("div",{className:"".concat(de,"-content")},typeof M=="function"?M(le,{index:ce}):We),d.isValidElement(b)||H,Ue&&d.createElement(b8,{className:"".concat(P,"-option-state"),customizeIcon:b,customizeIconProps:{value:ve,disabled:G,isSelected:H}},H?"✓":null))}))},dUe=d.forwardRef(uUe);const fUe=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var p;return q(q({},f),{},{label:(p=o.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=d.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function L9(e,t){return whe(e).join("").toUpperCase().includes(t)}const pUe=function(e,t,n,r,i){return d.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(h,m){return i?L9(m[i],u):m[a]?L9(m[o!=="children"?o:"label"],u):L9(m[s],u)},p=c?function(h){return Aj(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var m=f(n,p(h));if(m)l.push(h);else{var g=h[a].filter(function(v){return f(n,p(v))});g.length&&l.push(q(q({},h),{},ne({},a,g)))}return}f(n,p(h))&&l.push(h)}),l},[e,r,i,n,t])};var NY=0,hUe=Ws();function mUe(){var e;return hUe?(e=NY,NY+=1):e="TEST_OR_SSR",e}function yB(e){var t=d.useState(),n=Te(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_select_".concat(mUe()))},[]),e||r}var gUe=["children","value"],vUe=["children"];function yUe(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=Ht(r,gUe);return q({key:n,value:a!==void 0?a:n,children:i},o)}function khe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Xi(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,c=Ht(s,vUe);return t||!a?yUe(n):q(q({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:khe(l)})}).filter(function(n){return n})}var bUe=function(t,n,r,i,a){return d.useMemo(function(){var o=t,s=!t;s&&(o=khe(n));var l=new Map,c=new Map,u=function(h,m,g){g&&typeof g=="string"&&h.set(m[g],m)},f=function p(h){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?Le(xt.options):xt.options}):xt})},We=d.useMemo(function(){return w?Ue(he):he},[he,w,oe]),ge=d.useMemo(function(){return zHe(We,{fieldNames:Z,childrenAsData:ee})},[We,Z,ee]),ze=function(Je){var pt=fe(Je);if(be(pt),L&&(pt.length!==ye.length||pt.some(function(Ot,Pt){var st;return((st=ye[Pt])===null||st===void 0?void 0:st.value)!==(Ot==null?void 0:Ot.value)}))){var xt=K?pt:pt.map(function(Ot){return Ot.value}),Nt=pt.map(function(Ot){return Aj(Oe(Ot.value))});L(Y?xt:xt[0],Y?Nt:Nt[0])}},Ve=d.useState(null),Be=Te(Ve,2),Xe=Be[0],Ke=Be[1],qe=d.useState(0),Et=Te(qe,2),ut=Et[0],gt=Et[1],Qe=E!==void 0?E:r!=="combobox",nt=d.useCallback(function(Le,Je){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xt=pt.source,Nt=xt===void 0?"keyboard":xt;gt(Je),o&&r==="combobox"&&Le!==null&&Nt==="keyboard"&&Ke(String(Le))},[o,r]),jt=function(Je,pt,xt){var Nt=function(){var De,Ye=Oe(Je);return[K?{label:Ye==null?void 0:Ye[Z.label],value:Je,key:(De=Ye==null?void 0:Ye.key)!==null&&De!==void 0?De:Je}:Je,Aj(Ye)]};if(pt&&h){var Ot=Nt(),Pt=Te(Ot,2),st=Pt[0],Ct=Pt[1];h(st,Ct)}else if(!pt&&m&&xt!=="clear"){var kt=Nt(),qt=Te(kt,2),vt=qt[0],At=qt[1];m(vt,At)}},Lt=AY(function(Le,Je){var pt,xt=Y?Je.selected:!0;xt?pt=Y?[].concat(lt(ye),[Le]):[Le]:pt=ye.filter(function(Nt){return Nt.value!==Le}),ze(pt),jt(Le,xt),r==="combobox"?Ke(""):(!Dj||p)&&(le(""),Ke(""))}),Bt=function(Je,pt){ze(Je);var xt=pt.type,Nt=pt.values;(xt==="remove"||xt==="clear")&&Nt.forEach(function(Ot){jt(Ot.value,!1,xt)})},Ut=function(Je,pt){if(le(Je),Ke(null),pt.source==="submit"){var xt=(Je||"").trim();if(xt){var Nt=Array.from(new Set([].concat(lt(H),[xt])));ze(Nt),jt(xt,!0),le("")}return}pt.source!=="blur"&&(r==="combobox"&&ze(Je),u==null||u(Je))},Ne=function(Je){var pt=Je;r!=="tags"&&(pt=Je.map(function(Nt){var Ot=me.get(Nt);return Ot==null?void 0:Ot.value}).filter(function(Nt){return Nt!==void 0}));var xt=Array.from(new Set([].concat(lt(H),lt(pt))));ze(xt),xt.forEach(function(Nt){jt(Nt,!0)})},He=d.useMemo(function(){var Le=M!==!1&&v!==!1;return q(q({},ce),{},{flattenOptions:ge,onActiveValue:nt,defaultActiveFirstOption:Qe,onSelect:Lt,menuItemSelectedIcon:$,rawValues:H,fieldNames:Z,virtual:Le,direction:P,listHeight:O,listItemHeight:I,childrenAsData:ee,maxCount:V,optionRender:S})},[V,ce,ge,nt,Qe,Lt,$,H,Z,M,v,P,O,I,ee,S]);return d.createElement(pB.Provider,{value:He},d.createElement(hB,tt({},B,{id:U,prefixCls:a,ref:t,omitDomProps:xUe,mode:r,displayValues:z,onDisplayValuesChange:Bt,direction:P,searchValue:oe,onSearch:Ut,autoClearSearchValue:p,onSearchSplit:Ne,dropdownMatchSelectWidth:v,OptionList:dUe,emptyOptions:!ge.length,activeValue:Xe,activeDescendantId:"".concat(U,"_list_").concat(ut)})))}),bB=CUe;bB.Option=gB;bB.OptGroup=mB;function Nl(e,t,n){return Ee({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Mu=(e,t)=>t||e,_Ue=()=>{const[,e]=ka(),[t]=Ga("Empty"),r=new ur(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},kUe=()=>{const[,e]=ka(),[t]=Ga("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:l}=d.useMemo(()=>({borderColor:new ur(n).onBackground(a).toHexString(),shadowColor:new ur(r).onBackground(a).toHexString(),contentColor:new ur(i).onBackground(a).toHexString()}),[n,r,i,a]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:o},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},EUe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},$Ue=Jn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Hn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[EUe(i)]});var MUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{className:c,rootClassName:u,prefixCls:f,image:p=Ehe,description:h,children:m,imageStyle:g,style:v,classNames:y,styles:w}=e,b=MUe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:C,direction:k,empty:S}=d.useContext(Xt),_=C("empty",f),[E,$,M]=$Ue(_),[P]=Ga("Empty"),R=typeof h<"u"?h:P==null?void 0:P.description,O=typeof R=="string"?R:"empty";let j=null;return typeof p=="string"?j=d.createElement("img",{alt:O,src:p}):j=p,E(d.createElement("div",Object.assign({className:Ee($,M,_,S==null?void 0:S.className,{[`${_}-normal`]:p===$he,[`${_}-rtl`]:k==="rtl"},c,u,(t=S==null?void 0:S.classNames)===null||t===void 0?void 0:t.root,y==null?void 0:y.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=S==null?void 0:S.styles)===null||n===void 0?void 0:n.root),S==null?void 0:S.style),w==null?void 0:w.root),v)},b),d.createElement("div",{className:Ee(`${_}-image`,(r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.image,y==null?void 0:y.image),style:Object.assign(Object.assign(Object.assign({},g),(i=S==null?void 0:S.styles)===null||i===void 0?void 0:i.image),w==null?void 0:w.image)},j),R&&d.createElement("div",{className:Ee(`${_}-description`,(a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.description,y==null?void 0:y.description),style:Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.description),w==null?void 0:w.description)},R),m&&d.createElement("div",{className:Ee(`${_}-footer`,(s=S==null?void 0:S.classNames)===null||s===void 0?void 0:s.footer,y==null?void 0:y.footer),style:Object.assign(Object.assign({},(l=S==null?void 0:S.styles)===null||l===void 0?void 0:l.footer),w==null?void 0:w.footer)},m)))};za.PRESENTED_IMAGE_DEFAULT=Ehe;za.PRESENTED_IMAGE_SIMPLE=$he;const Vg=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(Xt),r=n("empty");switch(t){case"Table":case"List":return te.createElement(za,{image:za.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return te.createElement(za,{image:za.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return te.createElement(za,null)}},Od=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=d.useContext(Xt),s=d.useContext(Wpe),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const u=tNe.includes(c);return[c,u]},TUe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function wB(e,t){return e||TUe(t)}const DY=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},PUe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${i}${s}bottomLeft, ${a}${s}bottomLeft `]:{animationName:i8},[` @@ -275,34 +275,34 @@ html body { `]:{animationName:o8},[`${o}${s}bottomLeft`]:{animationName:a8},[` ${o}${s}topLeft, ${o}${s}topRight - `]:{animationName:s8},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},DY(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ao),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},DY(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},yd(e,"slide-up"),yd(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down")]},The=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:Me(t),itemLineHeight:Me(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},RUe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Phe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},wh()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},IUe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=RUe(e),s=t?`${n}-${t}`:"",l=The(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},Phe(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Me(r)} 0`,lineHeight:Me(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Me(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Me(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item, + `]:{animationName:s8},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},DY(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ao),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},DY(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},yd(e,"slide-up"),yd(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down")]},Mhe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:Me(t),itemLineHeight:Me(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},OUe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},The=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},wh()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},RUe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=OUe(e),s=t?`${n}-${t}`:"",l=Mhe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},The(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Me(r)} 0`,lineHeight:Me(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Me(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Me(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item, ${n}-prefix + ${n}-selection-wrap `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:Me(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function B9(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[IUe(e,t),i]}const jUe=e=>{const{componentCls:t}=e,n=Hn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Hn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[B9(e),B9(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},B9(r,"lg")]};function z9(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ar(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[RUe(e,t),i]}const IUe=e=>{const{componentCls:t}=e,n=Hn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Hn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[B9(e),B9(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},B9(r,"lg")]};function z9(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ar(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{display:"block",padding:0,lineHeight:Me(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-search, &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Me(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:Me(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Me(r)}`,"&:after":{display:"none"}}}}}}}function NUe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[z9(e),z9(Hn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Me(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Me(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:Me(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Me(r)}`,"&:after":{display:"none"}}}}}}}function jUe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[z9(e),z9(Hn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Me(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},z9(Hn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const AUe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:h,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:w,colorPrimary:b,controlOutline:C}=e,k=s*2,S=r*2,_=Math.min(i-k,i-S),E=Math.min(a-k,a-S),$=Math.min(o-k,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:h,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightSM:E,multipleItemHeightLG:$,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:b,activeOutlineColor:C,selectAffixPadding:s}},Ohe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Me(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},FY=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ohe(e,t))}),DUe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ohe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),FY(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),FY(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Rhe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},LY=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rhe(e,t))}),FUe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Rhe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),LY(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),LY(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),LUe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),BUe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},DUe(e)),FUe(e)),LUe(e))}),zUe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},HUe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},UUe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},zUe(e)),HUe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ao),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ao),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},wh()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},WUe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},UUe(e),NUe(e),jUe(e),OUe(e),{[`${t}-rtl`]:{direction:"rtl"}},Wg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xB=Jn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Hn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[WUe(r),BUe(r)]},AUe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var VUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},qUe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:VUe}))},ud=d.forwardRef(qUe),KUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},GUe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:KUe}))},My=d.forwardRef(GUe),YUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},XUe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:YUe}))},Ty=d.forwardRef(XUe);function w8(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:p}=e;const h=n??d.createElement(Pd,null),m=w=>t===null&&!s&&!f?null:d.createElement(d.Fragment,null,c!==!1&&w,s&&u);let g=null;if(t!==void 0)g=m(t);else if(a)g=m(d.createElement(vu,{spin:!0}));else{const w=`${l}-suffix`;g=b=>{let{open:C,showSearch:k}=b;return m(C&&k?d.createElement(Ty,{className:w}):d.createElement(My,{className:w}))}}let v=null;r!==void 0?v=r:o?v=d.createElement(ud,null):v=null;let y=null;return i!==void 0?y=i:y=d.createElement(Eu,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:y}}function SB(e,t){return t!==void 0?t:e!==null}var ZUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:p,size:h,disabled:m,notFoundContent:g,status:v,builtinPlacements:y,dropdownMatchSelectWidth:w,popupMatchSelectWidth:b,direction:C,style:k,allowClear:S,variant:_,dropdownStyle:E,transitionName:$,tagRender:M,maxCount:P,prefix:R}=e,O=ZUe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:j,getPrefixCls:I,renderEmpty:A,direction:N,virtual:F,popupMatchSelectWidth:K,popupOverflow:L,select:V}=d.useContext(Xt),[,B]=ka(),U=p??(B==null?void 0:B.controlHeight),Y=I("select",r),ee=I(),ie=C??N,{compactSize:Z,compactItemClassnames:X}=$u(Y,ie),[ae,oe]=Od("select",_,i),le=qr(Y),[ce,pe,me]=xB(Y,le),re=d.useMemo(()=>{const{mode:Xe}=e;if(Xe!=="combobox")return Xe===Ihe?"combobox":Xe},[e.mode]),fe=re==="multiple"||re==="tags",ve=SB(e.suffixIcon,e.showArrow),$e=(n=b??w)!==null&&n!==void 0?n:K,{status:Ce,hasFeedback:be,isFormItemInput:Se,feedbackIcon:we}=d.useContext(oa),se=Mu(Ce,v);let ye;g!==void 0?ye=g:re==="combobox"?ye=null:ye=(A==null?void 0:A("Select"))||d.createElement(Vg,{componentName:"Select"});const{suffixIcon:Oe,itemIcon:z,removeIcon:H,clearIcon:G}=w8(Object.assign(Object.assign({},O),{multiple:fe,hasFeedback:be,feedbackIcon:we,showSuffixIcon:ve,prefixCls:Y,componentName:"Select"})),de=S===!0?{clearIcon:G}:S,xe=$r(O,["suffixIcon","itemIcon"]),he=Ee(l||c,{[`${Y}-dropdown-${ie}`]:ie==="rtl"},o,me,le,pe),Ue=Bi(Xe=>{var Ke;return(Ke=h??Z)!==null&&Ke!==void 0?Ke:Xe}),We=d.useContext(ma),ge=m??We,ze=Ee({[`${Y}-lg`]:Ue==="large",[`${Y}-sm`]:Ue==="small",[`${Y}-rtl`]:ie==="rtl",[`${Y}-${ae}`]:oe,[`${Y}-in-form-item`]:Se},Al(Y,se,be),X,V==null?void 0:V.className,a,o,me,le,pe),Ve=d.useMemo(()=>f!==void 0?f:ie==="rtl"?"bottomRight":"bottomLeft",[f,ie]),[Be]=$c("SelectLike",E==null?void 0:E.zIndex);return ce(d.createElement(bB,Object.assign({ref:t,virtual:F,showSearch:V==null?void 0:V.showSearch},xe,{style:Object.assign(Object.assign({},V==null?void 0:V.style),k),dropdownMatchSelectWidth:$e,transitionName:oo(ee,"slide-up",$),builtinPlacements:wB(y,L),listHeight:u,listItemHeight:U,mode:re,prefixCls:Y,placement:Ve,direction:ie,prefix:R,suffixIcon:Oe,menuItemSelectedIcon:z,removeIcon:H,allowClear:de,notFoundContent:ye,className:ze,getPopupContainer:s||j,dropdownClassName:he,disabled:ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:Be}),maxCount:fe?P:void 0,tagRender:fe?M:void 0})))},Yf=d.forwardRef(QUe),JUe=Gf(Yf,"dropdownAlign");Yf.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ihe;Yf.Option=gB;Yf.OptGroup=mB;Yf._InternalPanelDoNotUseOrYouWillBeFired=JUe;const bd=["xxl","xl","lg","md","sm","xs"],eWe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),tWe=e=>{const t=e,n=[].concat(bd).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[a]:u}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const Nhe=(e,t)=>{if(t&&typeof t=="object")for(let n=0;nt+1,0);return e}function M4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=Ahe(),r=jhe();return nr(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const Fj=d.createContext({}),nWe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:p,borderRadiusLG:h,borderRadiusSM:m,lineWidth:g,lineType:v}=e,y=(w,b,C)=>({width:w,height:w,borderRadius:"50%",[`&${n}-square`]:{borderRadius:C},[`&${n}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${Me(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(o,c,p)),{"&-lg":Object.assign({},y(s,u,h)),"&-sm":Object.assign({},y(l,f,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},rWe=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},iWe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+o)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},Dhe=Jn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Hn(e,{avatarBg:n,avatarColor:t});return[nWe(r),rWe(r)]},iWe);var aWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const[n,r]=d.useState(1),[i,a]=d.useState(!1),[o,s]=d.useState(!0),l=d.useRef(null),c=d.useRef(null),u=ga(t,l),{getPrefixCls:f,avatar:p}=d.useContext(Xt),h=d.useContext(Fj),m=()=>{if(!c.current||!l.current)return;const X=c.current.offsetWidth,ae=l.current.offsetWidth;if(X!==0&&ae!==0){const{gap:oe=4}=e;oe*2{a(!0)},[]),d.useEffect(()=>{s(!0),r(1)},[e.src]),d.useEffect(m,[e.gap]);const g=()=>{const{onError:X}=e;(X==null?void 0:X())!==!1&&s(!1)},{prefixCls:v,shape:y,size:w,src:b,srcSet:C,icon:k,className:S,rootClassName:_,alt:E,draggable:$,children:M,crossOrigin:P}=e,R=aWe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),O=Bi(X=>{var ae,oe;return(oe=(ae=w??(h==null?void 0:h.size))!==null&&ae!==void 0?ae:X)!==null&&oe!==void 0?oe:"default"}),j=Object.keys(typeof O=="object"?O||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),I=M4(j),A=d.useMemo(()=>{if(typeof O!="object")return{};const X=bd.find(oe=>I[oe]),ae=O[X];return ae?{width:ae,height:ae,fontSize:ae&&(k||M)?ae/2:18}:{}},[I,O]),N=f("avatar",v),F=qr(N),[K,L,V]=Dhe(N,F),B=Ee({[`${N}-lg`]:O==="large",[`${N}-sm`]:O==="small"}),U=d.isValidElement(b),Y=y||(h==null?void 0:h.shape)||"circle",ee=Ee(N,B,p==null?void 0:p.className,`${N}-${Y}`,{[`${N}-image`]:U||b&&o,[`${N}-icon`]:!!k},V,F,S,_,L),ie=typeof O=="number"?{width:O,height:O,fontSize:k?O/2:18}:{};let Z;if(typeof b=="string"&&o)Z=d.createElement("img",{src:b,draggable:$,srcSet:C,onError:g,alt:E,crossOrigin:P});else if(U)Z=b;else if(k)Z=k;else if(i||n!==1){const X=`scale(${n})`,ae={msTransform:X,WebkitTransform:X,transform:X};Z=d.createElement(Go,{onResize:m},d.createElement("span",{className:`${N}-string`,ref:c,style:Object.assign({},ae)},M))}else Z=d.createElement("span",{className:`${N}-string`,style:{opacity:0},ref:c},M);return delete R.onError,delete R.gap,K(d.createElement("span",Object.assign({},R,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),A),p==null?void 0:p.style),R.style),className:ee,ref:u}),Z))},Fhe=d.forwardRef(oWe),I0=e=>e?typeof e=="function"?e():e:null;function CB(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,o=e.className,s=e.style;return d.createElement("div",{className:Ee("".concat(n,"-content"),o),style:s},d.createElement("div",{className:Ee("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var R1={shiftX:64,adjustY:1},I1={adjustX:1,shiftY:!0},Gl=[0,0],sWe={left:{points:["cr","cl"],overflow:I1,offset:[-4,0],targetOffset:Gl},right:{points:["cl","cr"],overflow:I1,offset:[4,0],targetOffset:Gl},top:{points:["bc","tc"],overflow:R1,offset:[0,-4],targetOffset:Gl},bottom:{points:["tc","bc"],overflow:R1,offset:[0,4],targetOffset:Gl},topLeft:{points:["bl","tl"],overflow:R1,offset:[0,-4],targetOffset:Gl},leftTop:{points:["tr","tl"],overflow:I1,offset:[-4,0],targetOffset:Gl},topRight:{points:["br","tr"],overflow:R1,offset:[0,-4],targetOffset:Gl},rightTop:{points:["tl","tr"],overflow:I1,offset:[4,0],targetOffset:Gl},bottomRight:{points:["tr","br"],overflow:R1,offset:[0,4],targetOffset:Gl},rightBottom:{points:["bl","br"],overflow:I1,offset:[4,0],targetOffset:Gl},bottomLeft:{points:["tl","bl"],overflow:R1,offset:[0,4],targetOffset:Gl},leftBottom:{points:["br","bl"],overflow:I1,offset:[-4,0],targetOffset:Gl}},lWe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],cWe=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,h=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,y=t.animation,w=t.motion,b=t.placement,C=b===void 0?"right":b,k=t.align,S=k===void 0?{}:k,_=t.destroyTooltipOnHide,E=_===void 0?!1:_,$=t.defaultVisible,M=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,O=t.id,j=t.showArrow,I=j===void 0?!0:j,A=t.classNames,N=t.styles,F=Ht(t,lWe),K=d.useRef(null);d.useImperativeHandle(n,function(){return K.current});var L=q({},F);"visible"in t&&(L.popupVisible=t.visible);var V=function(){return d.createElement(CB,{key:"content",prefixCls:p,id:O,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:q(q({},P),N==null?void 0:N.body)},R)};return d.createElement($y,tt({popupClassName:Ee(r,A==null?void 0:A.root),prefixCls:p,popup:V,action:a,builtinPlacements:sWe,popupPlacement:C,ref:K,popupAlign:S,getPopupContainer:M,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:y,popupMotion:w,defaultPopupVisible:$,autoDestroy:E,mouseLeaveDelay:c,popupStyle:q(q({},u),N==null?void 0:N.root),mouseEnterDelay:s,arrow:I},L),h)};const uWe=d.forwardRef(cWe);function x8(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,p=u,h=2*i-s,m=l,g=2*i-a,v=o,y=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),b=`polygon(${w}px 100%, 50% ${w}px, ${2*i-w}px 100%, ${w}px 100%)`,C=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${p} L ${h} ${m} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:C,arrowPolygon:b}}const Lhe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Me(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Bhe=8;function S8(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Bhe:r}}function wS(e,t){return e?t:{}}function _B(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Lhe(e,t,i)),{"&:before":{background:t}})]},wS(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),wS(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),wS(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),wS(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function dWe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const BY={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},fWe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},pWe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function zhe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(BY).forEach(c=>{const u=r&&fWe[c]||BY[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,pWe.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const p=S8({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-s;break}f.overflow=dWe(c,p,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const hWe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:h}=e,m=t(o).add(h).add(p).equal(),g=t(o).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${Me(e.calc(u).div(2).equal())} ${Me(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,Bhe)}},[`${n}-content`]:{position:"relative"}}),XE(e,(v,y)=>{let{darkColor:w}=y;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}})),{"&-rtl":{direction:"rtl"}})},_B(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},mWe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},S8({contentRadius:e.borderRadius,limitVerticalRadius:!0})),x8(Hn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Hhe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Jn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=Hn(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[hWe(s),_y(r,"zoom-big-fast")]},mWe,{resetStyle:!1,injectStyle:t})(e)},gWe=vg.map(e=>`${e}-inverse`),vWe=["success","processing","error","default","warning"];function C8(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(lt(gWe),lt(vg)).includes(e):vg.includes(e)}function yWe(e){return vWe.includes(e)}function Uhe(e,t){const n=C8(t),r=Ee({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const bWe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("tooltip",t),[c,u,f]=Hhe(l),p=Uhe(l,a),h=p.arrowStyle,m=Object.assign(Object.assign({},o),p.overlayStyle),g=Ee(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return c(d.createElement("div",{className:g,style:h},d.createElement("div",{className:`${l}-arrow`}),d.createElement(CB,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),i)))};var wWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:f,overlayInnerStyle:p,children:h,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:y=!0,title:w,overlay:b,builtinPlacements:C,arrowPointAtCenter:k=!1,autoAdjustOverflow:S=!0}=e,_=!!y,[,E]=ka(),{getPopupContainer:$,getPrefixCls:M,direction:P,tooltip:R}=d.useContext(Xt),O=Hg(),j=d.useRef(null),I=()=>{var xe;(xe=j.current)===null||xe===void 0||xe.forceAlign()};d.useImperativeHandle(t,()=>{var xe;return{forceAlign:I,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),I()},nativeElement:(xe=j.current)===null||xe===void 0?void 0:xe.nativeElement}});const[A,N]=In(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=!w&&!b&&w!==0,K=xe=>{var he,Ue;N(F?!1:xe),F||((he=e.onOpenChange)===null||he===void 0||he.call(e,xe),(Ue=e.onVisibleChange)===null||Ue===void 0||Ue.call(e,xe))},L=d.useMemo(()=>{var xe,he;let Ue=k;return typeof y=="object"&&(Ue=(he=(xe=y.pointAtCenter)!==null&&xe!==void 0?xe:y.arrowPointAtCenter)!==null&&he!==void 0?he:k),C||zhe({arrowPointAtCenter:Ue,autoAdjustOverflow:S,arrowWidth:_?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})},[k,y,C,E]),V=d.useMemo(()=>w===0?w:b||w||"",[b,w]),B=d.createElement(bu,{space:!0},typeof V=="function"?V():V),{getPopupContainer:U,placement:Y="top",mouseEnterDelay:ee=.1,mouseLeaveDelay:ie=.1,overlayStyle:Z,rootClassName:X,overlayClassName:ae,styles:oe,classNames:le}=e,ce=wWe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),pe=M("tooltip",l),me=M(),re=e["data-popover-inject"];let fe=A;!("open"in e)&&!("visible"in e)&&F&&(fe=!1);const ve=d.isValidElement(h)&&!ipe(h)?h:d.createElement("span",null,h),$e=ve.props,Ce=!$e.className||typeof $e.className=="string"?Ee($e.className,c||`${pe}-open`):$e.className,[be,Se,we]=Hhe(pe,!re),se=Uhe(pe,f),ye=se.arrowStyle,Oe=Ee(ae,{[`${pe}-rtl`]:P==="rtl"},se.className,X,Se,we,R==null?void 0:R.className,(i=R==null?void 0:R.classNames)===null||i===void 0?void 0:i.root,le==null?void 0:le.root),z=Ee((a=R==null?void 0:R.classNames)===null||a===void 0?void 0:a.body,le==null?void 0:le.body),[H,G]=$c("Tooltip",ce.zIndex),de=d.createElement(uWe,Object.assign({},ce,{zIndex:H,showArrow:_,placement:Y,mouseEnterDelay:ee,mouseLeaveDelay:ie,prefixCls:pe,classNames:{root:Oe,body:z},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ye),(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),R==null?void 0:R.style),Z),oe==null?void 0:oe.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=R==null?void 0:R.styles)===null||s===void 0?void 0:s.body),p),oe==null?void 0:oe.body),se.overlayStyle)},getTooltipContainer:U||u||$,ref:j,builtinPlacements:L,overlay:B,visible:fe,onVisibleChange:K,afterVisibleChange:m??g,arrowContent:d.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:oo(me,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),fe?aa(ve,{className:Ce}):ve);return be(d.createElement(y4.Provider,{value:G},de))}),_a=xWe;_a._InternalPanelDoNotUseOrYouWillBeFired=bWe;const SWe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:p,titleBorderBottom:h,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:h,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},_B(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},CWe=e=>{const{componentCls:t}=e;return{[t]:vg.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},_We=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,p=n-r,h=p/2,m=p/2-t,g=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},x8(e)),S8({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?`${h}px ${g}px ${m}px`:0,titleBorderBottom:a?`${t}px ${c} ${u}`:"none",innerContentPadding:a?`${f}px ${g}px`:0})},Whe=Jn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Hn(e,{popoverBg:t,popoverColor:n});return[SWe(r),CWe(r),_y(r,"zoom-big")]},_We,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var kWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},EWe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:o,content:s,children:l}=e,c=I0(o),u=I0(s),f=Ee(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return d.createElement("div",{className:f,style:i},d.createElement("div",{className:`${n}-arrow`}),d.createElement(CB,Object.assign({},e,{className:t,prefixCls:n}),l||d.createElement(Vhe,{prefixCls:n,title:c,content:u})))},qhe=e=>{const{prefixCls:t,className:n}=e,r=kWe(e,["prefixCls","className"]),{getPrefixCls:i}=d.useContext(Xt),a=i("popover",t),[o,s,l]=Whe(a);return o(d.createElement(EWe,Object.assign({},r,{prefixCls:a,hashId:s,className:Ee(n,l)})))};var $We=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,title:c,content:u,overlayClassName:f,placement:p="top",trigger:h="hover",children:m,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:y,overlayStyle:w={},styles:b,classNames:C}=e,k=$We(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:S,getPrefixCls:_}=d.useContext(Xt),E=_("popover",l),[$,M,P]=Whe(E),R=_(),O=Ee(f,M,P,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.root,C==null?void 0:C.root),j=Ee((r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.body,C==null?void 0:C.body),[I,A]=In(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),N=(B,U)=>{A(B,!0),y==null||y(B,U)},F=B=>{B.keyCode===mt.ESC&&N(!1,B)},K=B=>{N(B)},L=I0(c),V=I0(u);return $(d.createElement(_a,Object.assign({placement:p,trigger:h,mouseEnterDelay:g,mouseLeaveDelay:v},k,{prefixCls:E,classNames:{root:O,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),w),b==null?void 0:b.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),b==null?void 0:b.body)},ref:t,open:I,onOpenChange:K,overlay:L||V?d.createElement(Vhe,{prefixCls:E,title:L,content:V}):null,transitionName:oo(R,"zoom-big",k.transitionName),"data-popover-inject":!0}),aa(m,{onKeyDown:B=>{var U,Y;d.isValidElement(m)&&((Y=m==null?void 0:(U=m.props).onKeyDown)===null||Y===void 0||Y.call(U,B)),F(B)}})))}),wc=MWe;wc._InternalPanelDoNotUseOrYouWillBeFired=qhe;const zY=e=>{const{size:t,shape:n}=d.useContext(Fj),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(Fj.Provider,{value:r},e.children)},TWe=e=>{var t,n,r,i;const{getPrefixCls:a,direction:o}=d.useContext(Xt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:p,size:h,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:y,max:w}=e,b=a("avatar",s),C=`${b}-group`,k=qr(b),[S,_,E]=Dhe(b,k),$=Ee(C,{[`${C}-rtl`]:o==="rtl"},E,k,l,c,_),M=Xi(y).map((O,j)=>aa(O,{key:`avatar-key-${j}`})),P=(w==null?void 0:w.count)||f,R=M.length;if(P&&P{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:a,textFontSizeSM:o,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:p,calc:h}=e,m=`${r}-scroll-number`,g=XE(e,(v,y)=>{let{darkColor:w}=y;return{[`&${t} ${t}-color-${v}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:Me(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(u).div(2).equal(),boxShadow:`0 0 0 ${Me(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:o,lineHeight:Me(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Me(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Me(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:FWe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:IWe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:jWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:NWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:AWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:DWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Khe=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,a=t,o=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return Hn(e,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ghe=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},BWe=Jn("Badge",e=>{const t=Khe(e);return LWe(t)},Ghe),zWe=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=e,o=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=XE(e,(c,u)=>{let{darkColor:f}=u;return{[`&${o}-color-${c}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[o]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",top:r,padding:`0 ${Me(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Me(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${o}-text`]:{color:e.badgeTextColor},[`${o}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${Me(a(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},HWe=Jn(["Badge","Ribbon"],e=>{const t=Khe(e);return zWe(t)},Ghe),UWe=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:o,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(Xt),f=c("ribbon",n),p=`${f}-wrapper`,[h,m,g]=HWe(f,p),v=C8(i,!1),y=Ee(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${i}`]:v},t),w={},b={};return i&&!v&&(w.background=i,b.color=i),h(d.createElement("div",{className:Ee(p,l,m,g)},a,d.createElement("div",{className:Ee(y,m),style:Object.assign(Object.assign({},w),r)},d.createElement("span",{className:`${f}-text`},o),d.createElement("div",{className:`${f}-corner`,style:b}))))},HY=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),d.createElement("span",{style:a,className:Ee(`${t}-only-unit`,{current:r})},n)};function WWe(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const VWe=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[o,s]=d.useState(i),[l,c]=d.useState(a),u=()=>{s(i),c(a)};d.useEffect(()=>{const h=setTimeout(u,1e3);return()=>clearTimeout(h)},[i]);let f,p;if(o===i||Number.isNaN(i)||Number.isNaN(o))f=[d.createElement(HY,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const h=i+10,m=[];for(let w=i;w<=h;w+=1)m.push(w);const g=lw%10===o);f=(g<0?m.slice(0,v+1):m.slice(v)).map((w,b)=>{const C=w%10;return d.createElement(HY,Object.assign({},e,{key:w,value:C,offset:g<0?b-v:b,current:b===v}))}),p={transform:`translateY(${-WWe(o,i,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:u},f)};var qWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:l,component:c="sup",children:u}=e,f=qWe(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=d.useContext(Xt),h=p("scroll-number",n),m=Object.assign(Object.assign({},f),{"data-show":l,style:o,className:Ee(h,i,a),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=d.createElement("bdi",null,v.map((y,w)=>d.createElement(VWe,{prefixCls:h,count:Number(r),value:y,key:v.length-w})))}return o!=null&&o.borderColor&&(m.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),u?aa(u,v=>({className:Ee(`${h}-custom-component`,v==null?void 0:v.className,a)})):d.createElement(c,Object.assign({},m,{ref:t}),g)});var GWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:p,count:h=null,overflowCount:m=99,dot:g=!1,size:v="default",title:y,offset:w,style:b,className:C,rootClassName:k,classNames:S,styles:_,showZero:E=!1}=e,$=GWe(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:P,badge:R}=d.useContext(Xt),O=M("badge",s),[j,I,A]=BWe(O),N=h>m?`${m}+`:h,F=N==="0"||N===0,K=h===null||F&&!E,L=(u!=null||p!=null)&&K,V=g&&!F,B=V?"":N,U=d.useMemo(()=>(B==null||B===""||F&&!E)&&!V,[B,F,E,V]),Y=d.useRef(h);U||(Y.current=h);const ee=Y.current,ie=d.useRef(B);U||(ie.current=B);const Z=ie.current,X=d.useRef(V);U||(X.current=V);const ae=d.useMemo(()=>{if(!w)return Object.assign(Object.assign({},R==null?void 0:R.style),b);const ve={marginTop:w[1]};return P==="rtl"?ve.left=parseInt(w[0],10):ve.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},ve),R==null?void 0:R.style),b)},[P,w,b,R==null?void 0:R.style]),oe=y??(typeof ee=="string"||typeof ee=="number"?ee:void 0),le=U||!f?null:d.createElement("span",{className:`${O}-status-text`},f),ce=!ee||typeof ee!="object"?void 0:aa(ee,ve=>({style:Object.assign(Object.assign({},ae),ve.style)})),pe=C8(p,!1),me=Ee(S==null?void 0:S.indicator,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.indicator,{[`${O}-status-dot`]:L,[`${O}-status-${u}`]:!!u,[`${O}-color-${p}`]:pe}),re={};p&&!pe&&(re.color=p,re.background=p);const fe=Ee(O,{[`${O}-status`]:L,[`${O}-not-a-wrapper`]:!c,[`${O}-rtl`]:P==="rtl"},C,k,R==null?void 0:R.className,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,I,A);if(!c&&L){const ve=ae.color;return j(d.createElement("span",Object.assign({},$,{className:fe,style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.root),(i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.root),ae)}),d.createElement("span",{className:me,style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.indicator),(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.indicator),re)}),f&&d.createElement("span",{style:{color:ve},className:`${O}-status-text`},f)))}return j(d.createElement("span",Object.assign({ref:t},$,{className:fe,style:Object.assign(Object.assign({},(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),_==null?void 0:_.root)}),c,d.createElement(Ca,{visible:!U,motionName:`${O}-zoom`,motionAppear:!1,motionDeadline:1e3},ve=>{let{className:$e}=ve;var Ce,be;const Se=M("scroll-number",l),we=X.current,se=Ee(S==null?void 0:S.indicator,(Ce=R==null?void 0:R.classNames)===null||Ce===void 0?void 0:Ce.indicator,{[`${O}-dot`]:we,[`${O}-count`]:!we,[`${O}-count-sm`]:v==="small",[`${O}-multiple-words`]:!we&&Z&&Z.toString().length>1,[`${O}-status-${u}`]:!!u,[`${O}-color-${p}`]:pe});let ye=Object.assign(Object.assign(Object.assign({},_==null?void 0:_.indicator),(be=R==null?void 0:R.styles)===null||be===void 0?void 0:be.indicator),ae);return p&&!pe&&(ye=ye||{},ye.background=p),d.createElement(KWe,{prefixCls:Se,show:!U,motionClassName:$e,className:se,count:Z,title:oe,style:ye,key:"scrollNumber"},ce)}),le))}),Lo=YWe;Lo.Ribbon=UWe;var XWe=mt.ESC,ZWe=mt.TAB;function QWe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=d.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},l=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),o.current=!0,!0):!1},c=function(f){switch(f.keyCode){case XWe:s();break;case ZWe:{var p=!1;o.current||(p=l()),p?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&rr(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var JWe=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=ga(t,bh(a));return te.createElement(te.Fragment,null,r&&te.createElement("div",{className:"".concat(i,"-arrow")}),te.cloneElement(a,{ref:Vf(a)?o:void 0}))}),j1={adjustX:1,adjustY:1},N1=[0,0],eVe={topLeft:{points:["bl","tl"],overflow:j1,offset:[0,-4],targetOffset:N1},top:{points:["bc","tc"],overflow:j1,offset:[0,-4],targetOffset:N1},topRight:{points:["br","tr"],overflow:j1,offset:[0,-4],targetOffset:N1},bottomLeft:{points:["tl","bl"],overflow:j1,offset:[0,4],targetOffset:N1},bottom:{points:["tc","bc"],overflow:j1,offset:[0,4],targetOffset:N1},bottomRight:{points:["tr","br"],overflow:j1,offset:[0,4],targetOffset:N1}},tVe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function nVe(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,p=e.placements,h=p===void 0?eVe:p,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,y=e.overlayClassName,w=e.overlayStyle,b=e.visible,C=e.trigger,k=C===void 0?["hover"]:C,S=e.autoFocus,_=e.overlay,E=e.children,$=e.onVisibleChange,M=Ht(e,tVe),P=te.useState(),R=Te(P,2),O=R[0],j=R[1],I="visible"in e?b:O,A=te.useRef(null),N=te.useRef(null),F=te.useRef(null);te.useImperativeHandle(t,function(){return A.current});var K=function(X){j(X),$==null||$(X)};QWe({visible:I,triggerRef:F,onVisibleChange:K,autoFocus:S,overlayRef:N});var L=function(X){var ae=e.onOverlayClick;j(!1),ae&&ae(X)},V=function(){return te.createElement(JWe,{ref:N,overlay:_,prefixCls:o,arrow:i})},B=function(){return typeof _=="function"?V:V()},U=function(){var X=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!ae},Y=function(){var X=e.openClassName;return X!==void 0?X:"".concat(o,"-open")},ee=te.cloneElement(E,{className:Ee((n=E.props)===null||n===void 0?void 0:n.className,I&&Y()),ref:Vf(E)?ga(F,bh(E)):void 0}),ie=v;return!ie&&k.indexOf("contextMenu")!==-1&&(ie=["click"]),te.createElement($y,tt({builtinPlacements:h},M,{prefixCls:o,ref:A,popupClassName:Ee(y,ne({},"".concat(o,"-show-arrow"),i)),popupStyle:w,action:k,showAction:g,hideAction:ie,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:I,stretch:U()?"minWidth":"",popup:B(),onPopupVisibleChange:K,onPopupClick:L,getPopupContainer:m}),ee)}const Yhe=te.forwardRef(nVe),rVe=e=>typeof e!="object"&&typeof e!="function"||e===null;var Xhe=d.createContext(null);function Zhe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Qhe(e){var t=d.useContext(Xhe);return Zhe(t,e)}var iVe=["children","locked"],wu=d.createContext(null);function aVe(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function a3(e){var t=e.children,n=e.locked,r=Ht(e,iVe),i=d.useContext(wu),a=ug(function(){return aVe(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!mg(o[1],s[1],!0))});return d.createElement(wu.Provider,{value:a},t)}var oVe=[],Jhe=d.createContext(null);function _8(){return d.useContext(Jhe)}var eme=d.createContext(oVe);function Py(e){var t=d.useContext(eme);return d.useMemo(function(){return e!==void 0?[].concat(lt(t),[e]):t},[t,e])}var tme=d.createContext(null),kB=d.createContext({});function UY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(w4(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function sVe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=lt(e.querySelectorAll("*")).filter(function(r){return UY(r,t)});return UY(e,t)&&n.unshift(e),n}var Lj=mt.LEFT,Bj=mt.RIGHT,zj=mt.UP,a_=mt.DOWN,o_=mt.ENTER,nme=mt.ESC,Nb=mt.HOME,Ab=mt.END,WY=[zj,a_,Lj,Bj];function lVe(e,t,n,r){var i,a="prev",o="next",s="children",l="parent";if(e==="inline"&&r===o_)return{inlineTrigger:!0};var c=ne(ne({},zj,a),a_,o),u=ne(ne(ne(ne({},Lj,n?o:a),Bj,n?a:o),a_,s),o_,s),f=ne(ne(ne(ne(ne(ne({},zj,a),a_,o),o_,s),nme,l),Lj,n?s:l),Bj,n?l:s),p={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},h=(i=p["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(h){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function cVe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function uVe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function EB(e,t){var n=sVe(e,!0);return n.filter(function(r){return t.has(r)})}function VY(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=EB(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var Hj=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(Zhe(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function dVe(e,t,n,r,i,a,o,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var p=function(){rr.cancel(u.current)};return d.useEffect(function(){return function(){p()}},[]),function(h){var m=h.which;if([].concat(WY,[o_,nme,Nb,Ab]).includes(m)){var g=a(),v=Hj(g,r),y=v,w=y.elements,b=y.key2element,C=y.element2key,k=b.get(t),S=uVe(k,w),_=C.get(S),E=lVe(e,o(_,!0).length===1,n,m);if(!E&&m!==Nb&&m!==Ab)return;(WY.includes(m)||[Nb,Ab].includes(m))&&h.preventDefault();var $=function(N){if(N){var F=N,K=N.querySelector("a");K!=null&&K.getAttribute("href")&&(F=K);var L=C.get(N);s(L),p(),u.current=rr(function(){f.current===L&&F.focus()})}};if([Nb,Ab].includes(m)||E.sibling||!S){var M;!S||e==="inline"?M=i.current:M=cVe(S);var P,R=EB(M,w);m===Nb?P=R[0]:m===Ab?P=R[R.length-1]:P=VY(M,w,S,E.offset),$(P)}else if(E.inlineTrigger)l(_);else if(E.offset>0)l(_,!0),p(),u.current=rr(function(){v=Hj(g,r);var A=S.getAttribute("aria-controls"),N=document.getElementById(A),F=VY(N,v.elements);$(F)},5);else if(E.offset<0){var O=o(_,!0),j=O[O.length-2],I=b.get(j);l(j,!1),$(I)}}c==null||c(h)}}function fVe(e){Promise.resolve().then(e)}var $B="__RC_UTIL_PATH_SPLIT__",qY=function(t){return t.join($B)},pVe=function(t){return t.split($B)},Uj="rc-menu-more";function hVe(){var e=d.useState({}),t=Te(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),a=d.useState([]),o=Te(a,2),s=o[0],l=o[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},p=d.useCallback(function(b,C){var k=qY(C);i.current.set(k,b),r.current.set(b,k),c.current+=1;var S=c.current;fVe(function(){S===c.current&&f()})},[]),h=d.useCallback(function(b,C){var k=qY(C);i.current.delete(k),r.current.delete(b)},[]),m=d.useCallback(function(b){l(b)},[]),g=d.useCallback(function(b,C){var k=r.current.get(b)||"",S=pVe(k);return C&&s.includes(S[0])&&S.unshift(Uj),S},[s]),v=d.useCallback(function(b,C){return b.filter(function(k){return k!==void 0}).some(function(k){var S=g(k,!0);return S.includes(C)})},[g]),y=function(){var C=lt(r.current.keys());return s.length&&C.push(Uj),C},w=d.useCallback(function(b){var C="".concat(r.current.get(b)).concat($B),k=new Set;return lt(i.current.keys()).forEach(function(S){S.startsWith(C)&&k.add(i.current.get(S))}),k},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:p,unregisterPath:h,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:g,getKeys:y,getSubPathKeys:w}}function x2(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1&&(w.motionAppear=!1);var b=w.onVisibleChanged;return w.onVisibleChanged=function(C){return!p.current&&!C&&v(!0),b==null?void 0:b(C)},g?null:d.createElement(a3,{mode:a,locked:!p.current},d.createElement(Ca,tt({visible:y},w,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var k=C.className,S=C.style;return d.createElement(MB,{id:t,className:k,style:S},i)}))}var OVe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],RVe=["active"],IVe=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,p=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,w=e.onTitleMouseEnter,b=e.onTitleMouseLeave,C=Ht(e,OVe),k=Qhe(a),S=d.useContext(wu),_=S.prefixCls,E=S.mode,$=S.openKeys,M=S.disabled,P=S.overflowDisabled,R=S.activeKey,O=S.selectedKeys,j=S.itemIcon,I=S.expandIcon,A=S.onItemClick,N=S.onOpenChange,F=S.onActive,K=d.useContext(kB),L=K._internalRenderSubMenuItem,V=d.useContext(tme),B=V.isSubPathKey,U=Py(),Y="".concat(_,"-submenu"),ee=M||o,ie=d.useRef(),Z=d.useRef(),X=c??j,ae=u??I,oe=$.includes(a),le=!P&&oe,ce=B(O,a),pe=rme(a,ee,w,b),me=pe.active,re=Ht(pe,RVe),fe=d.useState(!1),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=function(ze){ee||Ce(ze)},Se=function(ze){be(!0),g==null||g({key:a,domEvent:ze})},we=function(ze){be(!1),v==null||v({key:a,domEvent:ze})},se=d.useMemo(function(){return me||(E!=="inline"?$e||B([R],a):!1)},[E,me,R,$e,a,B]),ye=ime(U.length),Oe=function(ze){ee||(y==null||y({key:a,domEvent:ze}),E==="inline"&&N(a,!oe))},z=x2(function(ge){m==null||m(v6(ge)),A(ge)}),H=function(ze){E!=="inline"&&N(a,ze)},G=function(){F(a)},de=k&&"".concat(k,"-popup"),xe=d.createElement("div",tt({role:"menuitem",style:ye,className:"".concat(Y,"-title"),tabIndex:ee?null:-1,ref:ie,title:typeof i=="string"?i:null,"data-menu-id":P&&k?null:k,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":ee,onClick:Oe,onFocus:G},re),i,d.createElement(ame,{icon:E!=="horizontal"?ae:void 0,props:q(q({},e),{},{isOpen:le,isSubMenu:!0})},d.createElement("i",{className:"".concat(Y,"-arrow")}))),he=d.useRef(E);if(E!=="inline"&&U.length>1?he.current="vertical":he.current=E,!P){var Ue=he.current;xe=d.createElement(TVe,{mode:Ue,prefixCls:Y,visible:!s&&le&&E!=="inline",popupClassName:f,popupOffset:p,popupStyle:h,popup:d.createElement(a3,{mode:Ue==="horizontal"?"vertical":Ue},d.createElement(MB,{id:de,ref:Z},l)),disabled:ee,onVisibleChange:H},xe)}var We=d.createElement(lu.Item,tt({ref:t,role:"none"},C,{component:"li",style:n,className:Ee(Y,"".concat(Y,"-").concat(E),r,ne(ne(ne(ne({},"".concat(Y,"-open"),le),"".concat(Y,"-active"),se),"".concat(Y,"-selected"),ce),"".concat(Y,"-disabled"),ee)),onMouseEnter:Se,onMouseLeave:we}),xe,!P&&d.createElement(PVe,{id:de,open:le,keyPath:U},l));return L&&(We=L(We,e,{selected:ce,active:se,open:le,disabled:ee})),d.createElement(a3,{onItemClick:z,mode:E==="horizontal"?"vertical":E,itemIcon:X,expandIcon:ae},We)}),k8=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Py(n),a=TB(r,i),o=_8();d.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=d.createElement(IVe,tt({ref:t},e),a),d.createElement(eme.Provider,{value:i},s)});function PB(e){var t=e.className,n=e.style,r=d.useContext(wu),i=r.prefixCls,a=_8();return a?null:d.createElement("li",{role:"separator",className:Ee("".concat(i,"-item-divider"),t),style:n})}var jVe=["className","title","eventKey","children"],NVe=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=Ht(e,jVe),o=d.useContext(wu),s=o.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",tt({ref:t,role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:Ee(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),OB=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Py(n),a=TB(r,i),o=_8();return o?a:d.createElement(NVe,tt({ref:t},$r(e,["warnKey"])),a)}),AVe=["label","children","key","type","extra"];function Wj(e,t,n){var r=t.item,i=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&Kt(s)==="object"){var c=s,u=c.label,f=c.children,p=c.key,h=c.type,m=c.extra,g=Ht(c,AVe),v=p??"tmp-".concat(l);return f||h==="group"?h==="group"?d.createElement(i,tt({key:v},g,{title:u}),Wj(f,t,n)):d.createElement(a,tt({key:v},g,{title:u}),Wj(f,t,n)):h==="divider"?d.createElement(o,tt({key:v},g)):d.createElement(r,tt({key:v},g,{extra:m}),u,(!!m||m===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function GY(e,t,n,r,i){var a=e,o=q({divider:PB,item:yg,group:OB,submenu:k8},r);return t&&(a=Wj(t,o,i)),TB(a,n)}var DVe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Kh=[],FVe=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,a=i===void 0?"rc-menu":i,o=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,p=r.children,h=r.direction,m=r.id,g=r.mode,v=g===void 0?"vertical":g,y=r.inlineCollapsed,w=r.disabled,b=r.disabledOverflow,C=r.subMenuOpenDelay,k=C===void 0?.1:C,S=r.subMenuCloseDelay,_=S===void 0?.1:S,E=r.forceSubMenuRender,$=r.defaultOpenKeys,M=r.openKeys,P=r.activeKey,R=r.defaultActiveFirst,O=r.selectable,j=O===void 0?!0:O,I=r.multiple,A=I===void 0?!1:I,N=r.defaultSelectedKeys,F=r.selectedKeys,K=r.onSelect,L=r.onDeselect,V=r.inlineIndent,B=V===void 0?24:V,U=r.motion,Y=r.defaultMotions,ee=r.triggerSubMenuAction,ie=ee===void 0?"hover":ee,Z=r.builtinPlacements,X=r.itemIcon,ae=r.expandIcon,oe=r.overflowedIndicator,le=oe===void 0?"...":oe,ce=r.overflowedIndicatorPopupClassName,pe=r.getPopupContainer,me=r.onClick,re=r.onOpenChange,fe=r.onKeyDown;r.openAnimation,r.openTransitionName;var ve=r._internalRenderMenuItem,$e=r._internalRenderSubMenuItem,Ce=r._internalComponents,be=Ht(r,DVe),Se=d.useMemo(function(){return[GY(p,f,Kh,Ce,a),GY(p,f,Kh,{},a)]},[p,f,Ce]),we=Te(Se,2),se=we[0],ye=we[1],Oe=d.useState(!1),z=Te(Oe,2),H=z[0],G=z[1],de=d.useRef(),xe=gVe(m),he=h==="rtl",Ue=In($,{value:M,postState:function(cn){return cn||Kh}}),We=Te(Ue,2),ge=We[0],ze=We[1],Ve=function(cn){var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function gr(){ze(cn),re==null||re(cn)}Sn?Va.flushSync(gr):gr()},Be=d.useState(ge),Xe=Te(Be,2),Ke=Xe[0],qe=Xe[1],Et=d.useRef(!1),ut=d.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),gt=Te(ut,2),Qe=gt[0],nt=gt[1],jt=Qe==="inline",Lt=d.useState(Qe),Bt=Te(Lt,2),Ut=Bt[0],Ne=Bt[1],He=d.useState(nt),Le=Te(He,2),Je=Le[0],pt=Le[1];d.useEffect(function(){Ne(Qe),pt(nt),Et.current&&(jt?ze(Ke):Ve(Kh))},[Qe,nt]);var xt=d.useState(0),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1],st=Ot>=se.length-1||Ut!=="horizontal"||b;d.useEffect(function(){jt&&qe(ge)},[ge]),d.useEffect(function(){return Et.current=!0,function(){Et.current=!1}},[]);var Ct=hVe(),kt=Ct.registerPath,qt=Ct.unregisterPath,vt=Ct.refreshOverflowKeys,At=Ct.isSubPathKey,dt=Ct.getKeyPath,De=Ct.getKeys,Ye=Ct.getSubPathKeys,ot=d.useMemo(function(){return{registerPath:kt,unregisterPath:qt}},[kt,qt]),Re=d.useMemo(function(){return{isSubPathKey:At}},[At]);d.useEffect(function(){vt(st?Kh:se.slice(Ot+1).map(function(pr){return pr.key}))},[Ot,st]);var It=In(P||R&&((n=se[0])===null||n===void 0?void 0:n.key),{value:P}),rt=Te(It,2),$t=rt[0],Mt=rt[1],dn=x2(function(pr){Mt(pr)}),pn=x2(function(){Mt(void 0)});d.useImperativeHandle(t,function(){return{list:de.current,focus:function(cn){var Sn,gr=De(),on=Hj(gr,xe),Ze=on.elements,bt=on.key2element,sn=on.element2key,Pn=EB(de.current,Ze),qn=$t??(Pn[0]?sn.get(Pn[0]):(Sn=se.find(function(ri){return!ri.props.disabled}))===null||Sn===void 0?void 0:Sn.key),ln=bt.get(qn);if(qn&&ln){var or;ln==null||(or=ln.focus)===null||or===void 0||or.call(ln,cn)}}}});var T=In(N||[],{value:F,postState:function(cn){return Array.isArray(cn)?cn:cn==null?Kh:[cn]}}),D=Te(T,2),J=D[0],ke=D[1],Ie=function(cn){if(j){var Sn=cn.key,gr=J.includes(Sn),on;A?gr?on=J.filter(function(bt){return bt!==Sn}):on=[].concat(lt(J),[Sn]):on=[Sn],ke(on);var Ze=q(q({},cn),{},{selectedKeys:on});gr?L==null||L(Ze):K==null||K(Ze)}!A&&ge.length&&Ut!=="inline"&&Ve(Kh)},it=x2(function(pr){me==null||me(v6(pr)),Ie(pr)}),Ft=x2(function(pr,cn){var Sn=ge.filter(function(on){return on!==pr});if(cn)Sn.push(pr);else if(Ut!=="inline"){var gr=Ye(pr);Sn=Sn.filter(function(on){return!gr.has(on)})}mg(ge,Sn,!0)||Ve(Sn,!0)}),rn=function(cn,Sn){var gr=Sn??!ge.includes(cn);Ft(cn,gr)},On=dVe(Ut,$t,he,xe,de,De,dt,Mt,rn,fe);d.useEffect(function(){G(!0)},[]);var Er=d.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:$e}},[ve,$e]),Mr=Ut!=="horizontal"||b?se:se.map(function(pr,cn){return d.createElement(a3,{key:pr.key,overflowDisabled:cn>Ot},pr)}),mr=d.createElement(lu,tt({id:m,ref:de,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:yg,className:Ee(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ut),l,ne(ne({},"".concat(a,"-inline-collapsed"),Je),"".concat(a,"-rtl"),he),o),dir:h,style:s,role:"menu",tabIndex:u,data:Mr,renderRawItem:function(cn){return cn},renderRawRest:function(cn){var Sn=cn.length,gr=Sn?se.slice(-Sn):null;return d.createElement(k8,{eventKey:Uj,title:le,disabled:st,internalPopupClose:Sn===0,popupClassName:ce},gr)},maxCount:Ut!=="horizontal"||b?lu.INVALIDATE:lu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(cn){Pt(cn)},onKeyDown:On},be));return d.createElement(kB.Provider,{value:Er},d.createElement(Xhe.Provider,{value:xe},d.createElement(a3,{prefixCls:a,rootClassName:o,mode:Ut,openKeys:ge,rtl:he,disabled:w,motion:H?U:null,defaultMotions:H?Y:null,activeKey:$t,onActive:dn,onInactive:pn,selectedKeys:J,inlineIndent:B,subMenuOpenDelay:k,subMenuCloseDelay:_,forceSubMenuRender:E,builtinPlacements:Z,triggerSubMenuAction:ie,getPopupContainer:pe,itemIcon:X,expandIcon:ae,onItemClick:it,onOpenChange:Ft},d.createElement(tme.Provider,{value:Re},mr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(Jhe.Provider,{value:ot},ye)))))}),qg=FVe;qg.Item=yg;qg.SubMenu=k8;qg.ItemGroup=OB;qg.Divider=PB;var LVe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},BVe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:LVe}))},zVe=d.forwardRef(BVe),HVe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},UVe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:HVe}))},Nf=d.forwardRef(UVe);const sme=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),WVe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:Me(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},lme=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},cme=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],ume=Jn("Layout",e=>[WVe(e)],lme,{deprecatedTokens:cme}),VVe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:Me(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Me(p)} ${Me(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Me(p)} 0 0 ${Me(p)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},qVe=Jn(["Layout","Sider"],e=>[VVe(e)],lme,{deprecatedTokens:cme});var KVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),E8=d.createContext({}),YVe=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),dme=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=KVe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=d.useContext(sme),[b,C]=d.useState("collapsed"in e?e.collapsed:o),[k,S]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const _=(X,ae)=>{"collapsed"in e||C(X),g==null||g(X,ae)},{getPrefixCls:E,direction:$}=d.useContext(Xt),M=E("layout-sider",n),[P,R,O]=qVe(M),j=d.useRef(null);j.current=X=>{S(X.matches),v==null||v(X.matches),b!==X.matches&&_(X.matches,"responsive")},d.useEffect(()=>{function X(oe){return j.current(oe)}let ae;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&m&&m in YY){ae=oe(`screen and (max-width: ${YY[m]})`);try{ae.addEventListener("change",X)}catch{ae.addListener(X)}X(ae)}}return()=>{try{ae==null||ae.removeEventListener("change",X)}catch{ae==null||ae.removeListener(X)}}},[m]),d.useEffect(()=>{const X=YVe("ant-sider-");return w.addSider(X),()=>w.removeSider(X)},[]);const I=()=>{_(!b,"clickTrigger")},A=$r(y,["collapsed"]),N=b?p:f,F=GVe(N)?`${N}px`:String(N),K=parseFloat(String(p||0))===0?d.createElement("span",{onClick:I,className:Ee(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${u?"right":"left"}`),style:h},i||d.createElement(zVe,null)):null,L=$==="rtl"==!u,U={expanded:L?d.createElement(bc,null):d.createElement(Nf,null),collapsed:L?d.createElement(Nf,null):d.createElement(bc,null)}[b?"collapsed":"expanded"],Y=i!==null?K||d.createElement("div",{className:`${M}-trigger`,onClick:I,style:{width:F}},i||U):null,ee=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=Ee(M,`${M}-${s}`,{[`${M}-collapsed`]:!!b,[`${M}-has-trigger`]:c&&i!==null&&!K,[`${M}-below`]:!!k,[`${M}-zero-width`]:parseFloat(F)===0},r,R,O),Z=d.useMemo(()=>({siderCollapsed:b}),[b]);return P(d.createElement(E8.Provider,{value:Z},d.createElement("aside",Object.assign({className:ie},A,{style:ee,ref:t}),d.createElement("div",{className:`${M}-children`},a),c||k&&K?Y:null)))});var XVe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ZVe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:XVe}))},RB=d.forwardRef(ZVe);const y6=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var QVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=QVe(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=d.useContext(Xt),o=a("menu",t),s=Ee({[`${o}-item-divider-dashed`]:!!r},n);return d.createElement(PB,Object.assign({className:s},i))},pme=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=d.useContext(y6),h=b=>{const C=r==null?void 0:r[0],k=d.createElement("span",{className:Ee(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||d.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof C=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},C.charAt(0)):k},{siderCollapsed:m}=d.useContext(E8);let g=a;typeof a>"u"?g=c?r:"":a===!1&&(g="");const v={title:g};!m&&!p&&(v.title=null,v.open=!1);const y=Xi(r).length;let w=d.createElement(yg,Object.assign({},$r(e,["title","icon","danger"]),{className:Ee({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(i?y+1:y)===1},n),title:typeof a=="string"?a:void 0}),aa(i,{className:Ee(d.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h(p));return f||(w=d.createElement(_a,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),w)),w};var JVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=JVe(e,["children"]),i=d.useContext(b6),a=d.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=ORe(n),s=ku(t,o?bh(n):null);return d.createElement(b6.Provider,{value:a},d.createElement(bu,{space:!0},o?d.cloneElement(n,{ref:s}):n))}),tqe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Me(a)} ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},z9(Hn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const NUe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:h,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:w,colorPrimary:b,controlOutline:C}=e,k=s*2,S=r*2,_=Math.min(i-k,i-S),E=Math.min(a-k,a-S),$=Math.min(o-k,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:h,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightSM:E,multipleItemHeightLG:$,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:b,activeOutlineColor:C,selectAffixPadding:s}},Phe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Me(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},FY=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Phe(e,t))}),AUe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Phe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),FY(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),FY(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Ohe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},LY=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ohe(e,t))}),DUe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ohe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),LY(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),LY(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),FUe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),LUe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},AUe(e)),DUe(e)),FUe(e))}),BUe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},zUe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},HUe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},BUe(e)),zUe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ao),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ao),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},wh()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},UUe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},HUe(e),jUe(e),IUe(e),PUe(e),{[`${t}-rtl`]:{direction:"rtl"}},Wg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xB=Jn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Hn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[UUe(r),LUe(r)]},NUe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var WUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},VUe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:WUe}))},ud=d.forwardRef(VUe),qUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},KUe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:qUe}))},My=d.forwardRef(KUe),GUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},YUe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:GUe}))},Ty=d.forwardRef(YUe);function w8(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:p}=e;const h=n??d.createElement(Pd,null),m=w=>t===null&&!s&&!f?null:d.createElement(d.Fragment,null,c!==!1&&w,s&&u);let g=null;if(t!==void 0)g=m(t);else if(a)g=m(d.createElement(vu,{spin:!0}));else{const w=`${l}-suffix`;g=b=>{let{open:C,showSearch:k}=b;return m(C&&k?d.createElement(Ty,{className:w}):d.createElement(My,{className:w}))}}let v=null;r!==void 0?v=r:o?v=d.createElement(ud,null):v=null;let y=null;return i!==void 0?y=i:y=d.createElement(Eu,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:y}}function SB(e,t){return t!==void 0?t:e!==null}var XUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:p,size:h,disabled:m,notFoundContent:g,status:v,builtinPlacements:y,dropdownMatchSelectWidth:w,popupMatchSelectWidth:b,direction:C,style:k,allowClear:S,variant:_,dropdownStyle:E,transitionName:$,tagRender:M,maxCount:P,prefix:R}=e,O=XUe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:j,getPrefixCls:I,renderEmpty:A,direction:N,virtual:F,popupMatchSelectWidth:K,popupOverflow:L,select:V}=d.useContext(Xt),[,B]=ka(),U=p??(B==null?void 0:B.controlHeight),Y=I("select",r),ee=I(),ie=C??N,{compactSize:Z,compactItemClassnames:X}=$u(Y,ie),[ae,oe]=Od("select",_,i),le=qr(Y),[ce,pe,me]=xB(Y,le),re=d.useMemo(()=>{const{mode:Xe}=e;if(Xe!=="combobox")return Xe===Rhe?"combobox":Xe},[e.mode]),fe=re==="multiple"||re==="tags",ve=SB(e.suffixIcon,e.showArrow),$e=(n=b??w)!==null&&n!==void 0?n:K,{status:Ce,hasFeedback:be,isFormItemInput:Se,feedbackIcon:we}=d.useContext(oa),se=Mu(Ce,v);let ye;g!==void 0?ye=g:re==="combobox"?ye=null:ye=(A==null?void 0:A("Select"))||d.createElement(Vg,{componentName:"Select"});const{suffixIcon:Oe,itemIcon:z,removeIcon:H,clearIcon:G}=w8(Object.assign(Object.assign({},O),{multiple:fe,hasFeedback:be,feedbackIcon:we,showSuffixIcon:ve,prefixCls:Y,componentName:"Select"})),de=S===!0?{clearIcon:G}:S,xe=$r(O,["suffixIcon","itemIcon"]),he=Ee(l||c,{[`${Y}-dropdown-${ie}`]:ie==="rtl"},o,me,le,pe),Ue=Bi(Xe=>{var Ke;return(Ke=h??Z)!==null&&Ke!==void 0?Ke:Xe}),We=d.useContext(ma),ge=m??We,ze=Ee({[`${Y}-lg`]:Ue==="large",[`${Y}-sm`]:Ue==="small",[`${Y}-rtl`]:ie==="rtl",[`${Y}-${ae}`]:oe,[`${Y}-in-form-item`]:Se},Nl(Y,se,be),X,V==null?void 0:V.className,a,o,me,le,pe),Ve=d.useMemo(()=>f!==void 0?f:ie==="rtl"?"bottomRight":"bottomLeft",[f,ie]),[Be]=$c("SelectLike",E==null?void 0:E.zIndex);return ce(d.createElement(bB,Object.assign({ref:t,virtual:F,showSearch:V==null?void 0:V.showSearch},xe,{style:Object.assign(Object.assign({},V==null?void 0:V.style),k),dropdownMatchSelectWidth:$e,transitionName:oo(ee,"slide-up",$),builtinPlacements:wB(y,L),listHeight:u,listItemHeight:U,mode:re,prefixCls:Y,placement:Ve,direction:ie,prefix:R,suffixIcon:Oe,menuItemSelectedIcon:z,removeIcon:H,allowClear:de,notFoundContent:ye,className:ze,getPopupContainer:s||j,dropdownClassName:he,disabled:ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:Be}),maxCount:fe?P:void 0,tagRender:fe?M:void 0})))},Yf=d.forwardRef(ZUe),QUe=Gf(Yf,"dropdownAlign");Yf.SECRET_COMBOBOX_MODE_DO_NOT_USE=Rhe;Yf.Option=gB;Yf.OptGroup=mB;Yf._InternalPanelDoNotUseOrYouWillBeFired=QUe;const bd=["xxl","xl","lg","md","sm","xs"],JUe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),eWe=e=>{const t=e,n=[].concat(bd).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[a]:u}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const jhe=(e,t)=>{if(t&&typeof t=="object")for(let n=0;nt+1,0);return e}function $4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=Nhe(),r=Ihe();return nr(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const Fj=d.createContext({}),tWe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:p,borderRadiusLG:h,borderRadiusSM:m,lineWidth:g,lineType:v}=e,y=(w,b,C)=>({width:w,height:w,borderRadius:"50%",[`&${n}-square`]:{borderRadius:C},[`&${n}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${Me(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(o,c,p)),{"&-lg":Object.assign({},y(s,u,h)),"&-sm":Object.assign({},y(l,f,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},nWe=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},rWe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+o)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},Ahe=Jn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Hn(e,{avatarBg:n,avatarColor:t});return[tWe(r),nWe(r)]},rWe);var iWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const[n,r]=d.useState(1),[i,a]=d.useState(!1),[o,s]=d.useState(!0),l=d.useRef(null),c=d.useRef(null),u=ga(t,l),{getPrefixCls:f,avatar:p}=d.useContext(Xt),h=d.useContext(Fj),m=()=>{if(!c.current||!l.current)return;const X=c.current.offsetWidth,ae=l.current.offsetWidth;if(X!==0&&ae!==0){const{gap:oe=4}=e;oe*2{a(!0)},[]),d.useEffect(()=>{s(!0),r(1)},[e.src]),d.useEffect(m,[e.gap]);const g=()=>{const{onError:X}=e;(X==null?void 0:X())!==!1&&s(!1)},{prefixCls:v,shape:y,size:w,src:b,srcSet:C,icon:k,className:S,rootClassName:_,alt:E,draggable:$,children:M,crossOrigin:P}=e,R=iWe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),O=Bi(X=>{var ae,oe;return(oe=(ae=w??(h==null?void 0:h.size))!==null&&ae!==void 0?ae:X)!==null&&oe!==void 0?oe:"default"}),j=Object.keys(typeof O=="object"?O||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),I=$4(j),A=d.useMemo(()=>{if(typeof O!="object")return{};const X=bd.find(oe=>I[oe]),ae=O[X];return ae?{width:ae,height:ae,fontSize:ae&&(k||M)?ae/2:18}:{}},[I,O]),N=f("avatar",v),F=qr(N),[K,L,V]=Ahe(N,F),B=Ee({[`${N}-lg`]:O==="large",[`${N}-sm`]:O==="small"}),U=d.isValidElement(b),Y=y||(h==null?void 0:h.shape)||"circle",ee=Ee(N,B,p==null?void 0:p.className,`${N}-${Y}`,{[`${N}-image`]:U||b&&o,[`${N}-icon`]:!!k},V,F,S,_,L),ie=typeof O=="number"?{width:O,height:O,fontSize:k?O/2:18}:{};let Z;if(typeof b=="string"&&o)Z=d.createElement("img",{src:b,draggable:$,srcSet:C,onError:g,alt:E,crossOrigin:P});else if(U)Z=b;else if(k)Z=k;else if(i||n!==1){const X=`scale(${n})`,ae={msTransform:X,WebkitTransform:X,transform:X};Z=d.createElement(Ko,{onResize:m},d.createElement("span",{className:`${N}-string`,ref:c,style:Object.assign({},ae)},M))}else Z=d.createElement("span",{className:`${N}-string`,style:{opacity:0},ref:c},M);return delete R.onError,delete R.gap,K(d.createElement("span",Object.assign({},R,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),A),p==null?void 0:p.style),R.style),className:ee,ref:u}),Z))},Dhe=d.forwardRef(aWe),I0=e=>e?typeof e=="function"?e():e:null;function CB(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,o=e.className,s=e.style;return d.createElement("div",{className:Ee("".concat(n,"-content"),o),style:s},d.createElement("div",{className:Ee("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var R1={shiftX:64,adjustY:1},I1={adjustX:1,shiftY:!0},Kl=[0,0],oWe={left:{points:["cr","cl"],overflow:I1,offset:[-4,0],targetOffset:Kl},right:{points:["cl","cr"],overflow:I1,offset:[4,0],targetOffset:Kl},top:{points:["bc","tc"],overflow:R1,offset:[0,-4],targetOffset:Kl},bottom:{points:["tc","bc"],overflow:R1,offset:[0,4],targetOffset:Kl},topLeft:{points:["bl","tl"],overflow:R1,offset:[0,-4],targetOffset:Kl},leftTop:{points:["tr","tl"],overflow:I1,offset:[-4,0],targetOffset:Kl},topRight:{points:["br","tr"],overflow:R1,offset:[0,-4],targetOffset:Kl},rightTop:{points:["tl","tr"],overflow:I1,offset:[4,0],targetOffset:Kl},bottomRight:{points:["tr","br"],overflow:R1,offset:[0,4],targetOffset:Kl},rightBottom:{points:["bl","br"],overflow:I1,offset:[4,0],targetOffset:Kl},bottomLeft:{points:["tl","bl"],overflow:R1,offset:[0,4],targetOffset:Kl},leftBottom:{points:["br","bl"],overflow:I1,offset:[-4,0],targetOffset:Kl}},sWe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],lWe=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,h=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,y=t.animation,w=t.motion,b=t.placement,C=b===void 0?"right":b,k=t.align,S=k===void 0?{}:k,_=t.destroyTooltipOnHide,E=_===void 0?!1:_,$=t.defaultVisible,M=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,O=t.id,j=t.showArrow,I=j===void 0?!0:j,A=t.classNames,N=t.styles,F=Ht(t,sWe),K=d.useRef(null);d.useImperativeHandle(n,function(){return K.current});var L=q({},F);"visible"in t&&(L.popupVisible=t.visible);var V=function(){return d.createElement(CB,{key:"content",prefixCls:p,id:O,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:q(q({},P),N==null?void 0:N.body)},R)};return d.createElement($y,tt({popupClassName:Ee(r,A==null?void 0:A.root),prefixCls:p,popup:V,action:a,builtinPlacements:oWe,popupPlacement:C,ref:K,popupAlign:S,getPopupContainer:M,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:y,popupMotion:w,defaultPopupVisible:$,autoDestroy:E,mouseLeaveDelay:c,popupStyle:q(q({},u),N==null?void 0:N.root),mouseEnterDelay:s,arrow:I},L),h)};const cWe=d.forwardRef(lWe);function x8(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,p=u,h=2*i-s,m=l,g=2*i-a,v=o,y=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),b=`polygon(${w}px 100%, 50% ${w}px, ${2*i-w}px 100%, ${w}px 100%)`,C=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${p} L ${h} ${m} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:C,arrowPolygon:b}}const Fhe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Me(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Lhe=8;function S8(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Lhe:r}}function bS(e,t){return e?t:{}}function _B(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Fhe(e,t,i)),{"&:before":{background:t}})]},bS(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),bS(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),bS(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),bS(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function uWe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const BY={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},dWe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},fWe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Bhe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(BY).forEach(c=>{const u=r&&dWe[c]||BY[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,fWe.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const p=S8({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-s;break}f.overflow=uWe(c,p,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const pWe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:h}=e,m=t(o).add(h).add(p).equal(),g=t(o).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${Me(e.calc(u).div(2).equal())} ${Me(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,Lhe)}},[`${n}-content`]:{position:"relative"}}),XE(e,(v,y)=>{let{darkColor:w}=y;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}})),{"&-rtl":{direction:"rtl"}})},_B(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},hWe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},S8({contentRadius:e.borderRadius,limitVerticalRadius:!0})),x8(Hn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),zhe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Jn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=Hn(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[pWe(s),_y(r,"zoom-big-fast")]},hWe,{resetStyle:!1,injectStyle:t})(e)},mWe=vg.map(e=>`${e}-inverse`),gWe=["success","processing","error","default","warning"];function C8(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(lt(mWe),lt(vg)).includes(e):vg.includes(e)}function vWe(e){return gWe.includes(e)}function Hhe(e,t){const n=C8(t),r=Ee({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const yWe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=d.useContext(Xt),l=s("tooltip",t),[c,u,f]=zhe(l),p=Hhe(l,a),h=p.arrowStyle,m=Object.assign(Object.assign({},o),p.overlayStyle),g=Ee(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return c(d.createElement("div",{className:g,style:h},d.createElement("div",{className:`${l}-arrow`}),d.createElement(CB,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),i)))};var bWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:f,overlayInnerStyle:p,children:h,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:y=!0,title:w,overlay:b,builtinPlacements:C,arrowPointAtCenter:k=!1,autoAdjustOverflow:S=!0}=e,_=!!y,[,E]=ka(),{getPopupContainer:$,getPrefixCls:M,direction:P,tooltip:R}=d.useContext(Xt),O=Hg(),j=d.useRef(null),I=()=>{var xe;(xe=j.current)===null||xe===void 0||xe.forceAlign()};d.useImperativeHandle(t,()=>{var xe;return{forceAlign:I,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),I()},nativeElement:(xe=j.current)===null||xe===void 0?void 0:xe.nativeElement}});const[A,N]=In(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=!w&&!b&&w!==0,K=xe=>{var he,Ue;N(F?!1:xe),F||((he=e.onOpenChange)===null||he===void 0||he.call(e,xe),(Ue=e.onVisibleChange)===null||Ue===void 0||Ue.call(e,xe))},L=d.useMemo(()=>{var xe,he;let Ue=k;return typeof y=="object"&&(Ue=(he=(xe=y.pointAtCenter)!==null&&xe!==void 0?xe:y.arrowPointAtCenter)!==null&&he!==void 0?he:k),C||Bhe({arrowPointAtCenter:Ue,autoAdjustOverflow:S,arrowWidth:_?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})},[k,y,C,E]),V=d.useMemo(()=>w===0?w:b||w||"",[b,w]),B=d.createElement(bu,{space:!0},typeof V=="function"?V():V),{getPopupContainer:U,placement:Y="top",mouseEnterDelay:ee=.1,mouseLeaveDelay:ie=.1,overlayStyle:Z,rootClassName:X,overlayClassName:ae,styles:oe,classNames:le}=e,ce=bWe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),pe=M("tooltip",l),me=M(),re=e["data-popover-inject"];let fe=A;!("open"in e)&&!("visible"in e)&&F&&(fe=!1);const ve=d.isValidElement(h)&&!rpe(h)?h:d.createElement("span",null,h),$e=ve.props,Ce=!$e.className||typeof $e.className=="string"?Ee($e.className,c||`${pe}-open`):$e.className,[be,Se,we]=zhe(pe,!re),se=Hhe(pe,f),ye=se.arrowStyle,Oe=Ee(ae,{[`${pe}-rtl`]:P==="rtl"},se.className,X,Se,we,R==null?void 0:R.className,(i=R==null?void 0:R.classNames)===null||i===void 0?void 0:i.root,le==null?void 0:le.root),z=Ee((a=R==null?void 0:R.classNames)===null||a===void 0?void 0:a.body,le==null?void 0:le.body),[H,G]=$c("Tooltip",ce.zIndex),de=d.createElement(cWe,Object.assign({},ce,{zIndex:H,showArrow:_,placement:Y,mouseEnterDelay:ee,mouseLeaveDelay:ie,prefixCls:pe,classNames:{root:Oe,body:z},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ye),(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),R==null?void 0:R.style),Z),oe==null?void 0:oe.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=R==null?void 0:R.styles)===null||s===void 0?void 0:s.body),p),oe==null?void 0:oe.body),se.overlayStyle)},getTooltipContainer:U||u||$,ref:j,builtinPlacements:L,overlay:B,visible:fe,onVisibleChange:K,afterVisibleChange:m??g,arrowContent:d.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:oo(me,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),fe?aa(ve,{className:Ce}):ve);return be(d.createElement(v4.Provider,{value:G},de))}),_a=wWe;_a._InternalPanelDoNotUseOrYouWillBeFired=yWe;const xWe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:p,titleBorderBottom:h,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:h,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},_B(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},SWe=e=>{const{componentCls:t}=e;return{[t]:vg.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},CWe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,p=n-r,h=p/2,m=p/2-t,g=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},x8(e)),S8({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?`${h}px ${g}px ${m}px`:0,titleBorderBottom:a?`${t}px ${c} ${u}`:"none",innerContentPadding:a?`${f}px ${g}px`:0})},Uhe=Jn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Hn(e,{popoverBg:t,popoverColor:n});return[xWe(r),SWe(r),_y(r,"zoom-big")]},CWe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var _We=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},kWe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:o,content:s,children:l}=e,c=I0(o),u=I0(s),f=Ee(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return d.createElement("div",{className:f,style:i},d.createElement("div",{className:`${n}-arrow`}),d.createElement(CB,Object.assign({},e,{className:t,prefixCls:n}),l||d.createElement(Whe,{prefixCls:n,title:c,content:u})))},Vhe=e=>{const{prefixCls:t,className:n}=e,r=_We(e,["prefixCls","className"]),{getPrefixCls:i}=d.useContext(Xt),a=i("popover",t),[o,s,l]=Uhe(a);return o(d.createElement(kWe,Object.assign({},r,{prefixCls:a,hashId:s,className:Ee(n,l)})))};var EWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,title:c,content:u,overlayClassName:f,placement:p="top",trigger:h="hover",children:m,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:y,overlayStyle:w={},styles:b,classNames:C}=e,k=EWe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:S,getPrefixCls:_}=d.useContext(Xt),E=_("popover",l),[$,M,P]=Uhe(E),R=_(),O=Ee(f,M,P,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.root,C==null?void 0:C.root),j=Ee((r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.body,C==null?void 0:C.body),[I,A]=In(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),N=(B,U)=>{A(B,!0),y==null||y(B,U)},F=B=>{B.keyCode===mt.ESC&&N(!1,B)},K=B=>{N(B)},L=I0(c),V=I0(u);return $(d.createElement(_a,Object.assign({placement:p,trigger:h,mouseEnterDelay:g,mouseLeaveDelay:v},k,{prefixCls:E,classNames:{root:O,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),w),b==null?void 0:b.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),b==null?void 0:b.body)},ref:t,open:I,onOpenChange:K,overlay:L||V?d.createElement(Whe,{prefixCls:E,title:L,content:V}):null,transitionName:oo(R,"zoom-big",k.transitionName),"data-popover-inject":!0}),aa(m,{onKeyDown:B=>{var U,Y;d.isValidElement(m)&&((Y=m==null?void 0:(U=m.props).onKeyDown)===null||Y===void 0||Y.call(U,B)),F(B)}})))}),wc=$We;wc._InternalPanelDoNotUseOrYouWillBeFired=Vhe;const zY=e=>{const{size:t,shape:n}=d.useContext(Fj),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(Fj.Provider,{value:r},e.children)},MWe=e=>{var t,n,r,i;const{getPrefixCls:a,direction:o}=d.useContext(Xt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:p,size:h,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:y,max:w}=e,b=a("avatar",s),C=`${b}-group`,k=qr(b),[S,_,E]=Ahe(b,k),$=Ee(C,{[`${C}-rtl`]:o==="rtl"},E,k,l,c,_),M=Xi(y).map((O,j)=>aa(O,{key:`avatar-key-${j}`})),P=(w==null?void 0:w.count)||f,R=M.length;if(P&&P{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:a,textFontSizeSM:o,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:p,calc:h}=e,m=`${r}-scroll-number`,g=XE(e,(v,y)=>{let{darkColor:w}=y;return{[`&${t} ${t}-color-${v}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:Me(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(u).div(2).equal(),boxShadow:`0 0 0 ${Me(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:o,lineHeight:Me(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Me(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Me(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:DWe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:RWe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:IWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:jWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:NWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:AWe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},qhe=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,a=t,o=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return Hn(e,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Khe=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},LWe=Jn("Badge",e=>{const t=qhe(e);return FWe(t)},Khe),BWe=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=e,o=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=XE(e,(c,u)=>{let{darkColor:f}=u;return{[`&${o}-color-${c}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[o]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"absolute",top:r,padding:`0 ${Me(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Me(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${o}-text`]:{color:e.badgeTextColor},[`${o}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${Me(a(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},zWe=Jn(["Badge","Ribbon"],e=>{const t=qhe(e);return BWe(t)},Khe),HWe=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:o,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(Xt),f=c("ribbon",n),p=`${f}-wrapper`,[h,m,g]=zWe(f,p),v=C8(i,!1),y=Ee(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${i}`]:v},t),w={},b={};return i&&!v&&(w.background=i,b.color=i),h(d.createElement("div",{className:Ee(p,l,m,g)},a,d.createElement("div",{className:Ee(y,m),style:Object.assign(Object.assign({},w),r)},d.createElement("span",{className:`${f}-text`},o),d.createElement("div",{className:`${f}-corner`,style:b}))))},HY=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),d.createElement("span",{style:a,className:Ee(`${t}-only-unit`,{current:r})},n)};function UWe(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const WWe=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[o,s]=d.useState(i),[l,c]=d.useState(a),u=()=>{s(i),c(a)};d.useEffect(()=>{const h=setTimeout(u,1e3);return()=>clearTimeout(h)},[i]);let f,p;if(o===i||Number.isNaN(i)||Number.isNaN(o))f=[d.createElement(HY,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const h=i+10,m=[];for(let w=i;w<=h;w+=1)m.push(w);const g=lw%10===o);f=(g<0?m.slice(0,v+1):m.slice(v)).map((w,b)=>{const C=w%10;return d.createElement(HY,Object.assign({},e,{key:w,value:C,offset:g<0?b-v:b,current:b===v}))}),p={transform:`translateY(${-UWe(o,i,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:u},f)};var VWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:l,component:c="sup",children:u}=e,f=VWe(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=d.useContext(Xt),h=p("scroll-number",n),m=Object.assign(Object.assign({},f),{"data-show":l,style:o,className:Ee(h,i,a),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=d.createElement("bdi",null,v.map((y,w)=>d.createElement(WWe,{prefixCls:h,count:Number(r),value:y,key:v.length-w})))}return o!=null&&o.borderColor&&(m.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),u?aa(u,v=>({className:Ee(`${h}-custom-component`,v==null?void 0:v.className,a)})):d.createElement(c,Object.assign({},m,{ref:t}),g)});var KWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:p,count:h=null,overflowCount:m=99,dot:g=!1,size:v="default",title:y,offset:w,style:b,className:C,rootClassName:k,classNames:S,styles:_,showZero:E=!1}=e,$=KWe(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:P,badge:R}=d.useContext(Xt),O=M("badge",s),[j,I,A]=LWe(O),N=h>m?`${m}+`:h,F=N==="0"||N===0,K=h===null||F&&!E,L=(u!=null||p!=null)&&K,V=g&&!F,B=V?"":N,U=d.useMemo(()=>(B==null||B===""||F&&!E)&&!V,[B,F,E,V]),Y=d.useRef(h);U||(Y.current=h);const ee=Y.current,ie=d.useRef(B);U||(ie.current=B);const Z=ie.current,X=d.useRef(V);U||(X.current=V);const ae=d.useMemo(()=>{if(!w)return Object.assign(Object.assign({},R==null?void 0:R.style),b);const ve={marginTop:w[1]};return P==="rtl"?ve.left=parseInt(w[0],10):ve.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},ve),R==null?void 0:R.style),b)},[P,w,b,R==null?void 0:R.style]),oe=y??(typeof ee=="string"||typeof ee=="number"?ee:void 0),le=U||!f?null:d.createElement("span",{className:`${O}-status-text`},f),ce=!ee||typeof ee!="object"?void 0:aa(ee,ve=>({style:Object.assign(Object.assign({},ae),ve.style)})),pe=C8(p,!1),me=Ee(S==null?void 0:S.indicator,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.indicator,{[`${O}-status-dot`]:L,[`${O}-status-${u}`]:!!u,[`${O}-color-${p}`]:pe}),re={};p&&!pe&&(re.color=p,re.background=p);const fe=Ee(O,{[`${O}-status`]:L,[`${O}-not-a-wrapper`]:!c,[`${O}-rtl`]:P==="rtl"},C,k,R==null?void 0:R.className,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,I,A);if(!c&&L){const ve=ae.color;return j(d.createElement("span",Object.assign({},$,{className:fe,style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.root),(i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.root),ae)}),d.createElement("span",{className:me,style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.indicator),(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.indicator),re)}),f&&d.createElement("span",{style:{color:ve},className:`${O}-status-text`},f)))}return j(d.createElement("span",Object.assign({ref:t},$,{className:fe,style:Object.assign(Object.assign({},(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),_==null?void 0:_.root)}),c,d.createElement(Ca,{visible:!U,motionName:`${O}-zoom`,motionAppear:!1,motionDeadline:1e3},ve=>{let{className:$e}=ve;var Ce,be;const Se=M("scroll-number",l),we=X.current,se=Ee(S==null?void 0:S.indicator,(Ce=R==null?void 0:R.classNames)===null||Ce===void 0?void 0:Ce.indicator,{[`${O}-dot`]:we,[`${O}-count`]:!we,[`${O}-count-sm`]:v==="small",[`${O}-multiple-words`]:!we&&Z&&Z.toString().length>1,[`${O}-status-${u}`]:!!u,[`${O}-color-${p}`]:pe});let ye=Object.assign(Object.assign(Object.assign({},_==null?void 0:_.indicator),(be=R==null?void 0:R.styles)===null||be===void 0?void 0:be.indicator),ae);return p&&!pe&&(ye=ye||{},ye.background=p),d.createElement(qWe,{prefixCls:Se,show:!U,motionClassName:$e,className:se,count:Z,title:oe,style:ye,key:"scrollNumber"},ce)}),le))}),Fo=GWe;Fo.Ribbon=HWe;var YWe=mt.ESC,XWe=mt.TAB;function ZWe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=d.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},l=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),o.current=!0,!0):!1},c=function(f){switch(f.keyCode){case YWe:s();break;case XWe:{var p=!1;o.current||(p=l()),p?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&rr(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var QWe=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=ga(t,bh(a));return te.createElement(te.Fragment,null,r&&te.createElement("div",{className:"".concat(i,"-arrow")}),te.cloneElement(a,{ref:Vf(a)?o:void 0}))}),j1={adjustX:1,adjustY:1},N1=[0,0],JWe={topLeft:{points:["bl","tl"],overflow:j1,offset:[0,-4],targetOffset:N1},top:{points:["bc","tc"],overflow:j1,offset:[0,-4],targetOffset:N1},topRight:{points:["br","tr"],overflow:j1,offset:[0,-4],targetOffset:N1},bottomLeft:{points:["tl","bl"],overflow:j1,offset:[0,4],targetOffset:N1},bottom:{points:["tc","bc"],overflow:j1,offset:[0,4],targetOffset:N1},bottomRight:{points:["tr","br"],overflow:j1,offset:[0,4],targetOffset:N1}},eVe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function tVe(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,p=e.placements,h=p===void 0?JWe:p,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,y=e.overlayClassName,w=e.overlayStyle,b=e.visible,C=e.trigger,k=C===void 0?["hover"]:C,S=e.autoFocus,_=e.overlay,E=e.children,$=e.onVisibleChange,M=Ht(e,eVe),P=te.useState(),R=Te(P,2),O=R[0],j=R[1],I="visible"in e?b:O,A=te.useRef(null),N=te.useRef(null),F=te.useRef(null);te.useImperativeHandle(t,function(){return A.current});var K=function(X){j(X),$==null||$(X)};ZWe({visible:I,triggerRef:F,onVisibleChange:K,autoFocus:S,overlayRef:N});var L=function(X){var ae=e.onOverlayClick;j(!1),ae&&ae(X)},V=function(){return te.createElement(QWe,{ref:N,overlay:_,prefixCls:o,arrow:i})},B=function(){return typeof _=="function"?V:V()},U=function(){var X=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!ae},Y=function(){var X=e.openClassName;return X!==void 0?X:"".concat(o,"-open")},ee=te.cloneElement(E,{className:Ee((n=E.props)===null||n===void 0?void 0:n.className,I&&Y()),ref:Vf(E)?ga(F,bh(E)):void 0}),ie=v;return!ie&&k.indexOf("contextMenu")!==-1&&(ie=["click"]),te.createElement($y,tt({builtinPlacements:h},M,{prefixCls:o,ref:A,popupClassName:Ee(y,ne({},"".concat(o,"-show-arrow"),i)),popupStyle:w,action:k,showAction:g,hideAction:ie,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:I,stretch:U()?"minWidth":"",popup:B(),onPopupVisibleChange:K,onPopupClick:L,getPopupContainer:m}),ee)}const Ghe=te.forwardRef(tVe),nVe=e=>typeof e!="object"&&typeof e!="function"||e===null;var Yhe=d.createContext(null);function Xhe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Zhe(e){var t=d.useContext(Yhe);return Xhe(t,e)}var rVe=["children","locked"],wu=d.createContext(null);function iVe(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function a3(e){var t=e.children,n=e.locked,r=Ht(e,rVe),i=d.useContext(wu),a=ug(function(){return iVe(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!mg(o[1],s[1],!0))});return d.createElement(wu.Provider,{value:a},t)}var aVe=[],Qhe=d.createContext(null);function _8(){return d.useContext(Qhe)}var Jhe=d.createContext(aVe);function Py(e){var t=d.useContext(Jhe);return d.useMemo(function(){return e!==void 0?[].concat(lt(t),[e]):t},[t,e])}var eme=d.createContext(null),kB=d.createContext({});function UY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(b4(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function oVe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=lt(e.querySelectorAll("*")).filter(function(r){return UY(r,t)});return UY(e,t)&&n.unshift(e),n}var Lj=mt.LEFT,Bj=mt.RIGHT,zj=mt.UP,i_=mt.DOWN,a_=mt.ENTER,tme=mt.ESC,Nb=mt.HOME,Ab=mt.END,WY=[zj,i_,Lj,Bj];function sVe(e,t,n,r){var i,a="prev",o="next",s="children",l="parent";if(e==="inline"&&r===a_)return{inlineTrigger:!0};var c=ne(ne({},zj,a),i_,o),u=ne(ne(ne(ne({},Lj,n?o:a),Bj,n?a:o),i_,s),a_,s),f=ne(ne(ne(ne(ne(ne({},zj,a),i_,o),a_,s),tme,l),Lj,n?s:l),Bj,n?l:s),p={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},h=(i=p["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(h){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function lVe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function cVe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function EB(e,t){var n=oVe(e,!0);return n.filter(function(r){return t.has(r)})}function VY(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=EB(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var Hj=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(Xhe(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function uVe(e,t,n,r,i,a,o,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var p=function(){rr.cancel(u.current)};return d.useEffect(function(){return function(){p()}},[]),function(h){var m=h.which;if([].concat(WY,[a_,tme,Nb,Ab]).includes(m)){var g=a(),v=Hj(g,r),y=v,w=y.elements,b=y.key2element,C=y.element2key,k=b.get(t),S=cVe(k,w),_=C.get(S),E=sVe(e,o(_,!0).length===1,n,m);if(!E&&m!==Nb&&m!==Ab)return;(WY.includes(m)||[Nb,Ab].includes(m))&&h.preventDefault();var $=function(N){if(N){var F=N,K=N.querySelector("a");K!=null&&K.getAttribute("href")&&(F=K);var L=C.get(N);s(L),p(),u.current=rr(function(){f.current===L&&F.focus()})}};if([Nb,Ab].includes(m)||E.sibling||!S){var M;!S||e==="inline"?M=i.current:M=lVe(S);var P,R=EB(M,w);m===Nb?P=R[0]:m===Ab?P=R[R.length-1]:P=VY(M,w,S,E.offset),$(P)}else if(E.inlineTrigger)l(_);else if(E.offset>0)l(_,!0),p(),u.current=rr(function(){v=Hj(g,r);var A=S.getAttribute("aria-controls"),N=document.getElementById(A),F=VY(N,v.elements);$(F)},5);else if(E.offset<0){var O=o(_,!0),j=O[O.length-2],I=b.get(j);l(j,!1),$(I)}}c==null||c(h)}}function dVe(e){Promise.resolve().then(e)}var $B="__RC_UTIL_PATH_SPLIT__",qY=function(t){return t.join($B)},fVe=function(t){return t.split($B)},Uj="rc-menu-more";function pVe(){var e=d.useState({}),t=Te(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),a=d.useState([]),o=Te(a,2),s=o[0],l=o[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},p=d.useCallback(function(b,C){var k=qY(C);i.current.set(k,b),r.current.set(b,k),c.current+=1;var S=c.current;dVe(function(){S===c.current&&f()})},[]),h=d.useCallback(function(b,C){var k=qY(C);i.current.delete(k),r.current.delete(b)},[]),m=d.useCallback(function(b){l(b)},[]),g=d.useCallback(function(b,C){var k=r.current.get(b)||"",S=fVe(k);return C&&s.includes(S[0])&&S.unshift(Uj),S},[s]),v=d.useCallback(function(b,C){return b.filter(function(k){return k!==void 0}).some(function(k){var S=g(k,!0);return S.includes(C)})},[g]),y=function(){var C=lt(r.current.keys());return s.length&&C.push(Uj),C},w=d.useCallback(function(b){var C="".concat(r.current.get(b)).concat($B),k=new Set;return lt(i.current.keys()).forEach(function(S){S.startsWith(C)&&k.add(i.current.get(S))}),k},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:p,unregisterPath:h,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:g,getKeys:y,getSubPathKeys:w}}function x2(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1&&(w.motionAppear=!1);var b=w.onVisibleChanged;return w.onVisibleChanged=function(C){return!p.current&&!C&&v(!0),b==null?void 0:b(C)},g?null:d.createElement(a3,{mode:a,locked:!p.current},d.createElement(Ca,tt({visible:y},w,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var k=C.className,S=C.style;return d.createElement(MB,{id:t,className:k,style:S},i)}))}var PVe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],OVe=["active"],RVe=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,p=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,w=e.onTitleMouseEnter,b=e.onTitleMouseLeave,C=Ht(e,PVe),k=Zhe(a),S=d.useContext(wu),_=S.prefixCls,E=S.mode,$=S.openKeys,M=S.disabled,P=S.overflowDisabled,R=S.activeKey,O=S.selectedKeys,j=S.itemIcon,I=S.expandIcon,A=S.onItemClick,N=S.onOpenChange,F=S.onActive,K=d.useContext(kB),L=K._internalRenderSubMenuItem,V=d.useContext(eme),B=V.isSubPathKey,U=Py(),Y="".concat(_,"-submenu"),ee=M||o,ie=d.useRef(),Z=d.useRef(),X=c??j,ae=u??I,oe=$.includes(a),le=!P&&oe,ce=B(O,a),pe=nme(a,ee,w,b),me=pe.active,re=Ht(pe,OVe),fe=d.useState(!1),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=function(ze){ee||Ce(ze)},Se=function(ze){be(!0),g==null||g({key:a,domEvent:ze})},we=function(ze){be(!1),v==null||v({key:a,domEvent:ze})},se=d.useMemo(function(){return me||(E!=="inline"?$e||B([R],a):!1)},[E,me,R,$e,a,B]),ye=rme(U.length),Oe=function(ze){ee||(y==null||y({key:a,domEvent:ze}),E==="inline"&&N(a,!oe))},z=x2(function(ge){m==null||m(g6(ge)),A(ge)}),H=function(ze){E!=="inline"&&N(a,ze)},G=function(){F(a)},de=k&&"".concat(k,"-popup"),xe=d.createElement("div",tt({role:"menuitem",style:ye,className:"".concat(Y,"-title"),tabIndex:ee?null:-1,ref:ie,title:typeof i=="string"?i:null,"data-menu-id":P&&k?null:k,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":ee,onClick:Oe,onFocus:G},re),i,d.createElement(ime,{icon:E!=="horizontal"?ae:void 0,props:q(q({},e),{},{isOpen:le,isSubMenu:!0})},d.createElement("i",{className:"".concat(Y,"-arrow")}))),he=d.useRef(E);if(E!=="inline"&&U.length>1?he.current="vertical":he.current=E,!P){var Ue=he.current;xe=d.createElement(MVe,{mode:Ue,prefixCls:Y,visible:!s&&le&&E!=="inline",popupClassName:f,popupOffset:p,popupStyle:h,popup:d.createElement(a3,{mode:Ue==="horizontal"?"vertical":Ue},d.createElement(MB,{id:de,ref:Z},l)),disabled:ee,onVisibleChange:H},xe)}var We=d.createElement(lu.Item,tt({ref:t,role:"none"},C,{component:"li",style:n,className:Ee(Y,"".concat(Y,"-").concat(E),r,ne(ne(ne(ne({},"".concat(Y,"-open"),le),"".concat(Y,"-active"),se),"".concat(Y,"-selected"),ce),"".concat(Y,"-disabled"),ee)),onMouseEnter:Se,onMouseLeave:we}),xe,!P&&d.createElement(TVe,{id:de,open:le,keyPath:U},l));return L&&(We=L(We,e,{selected:ce,active:se,open:le,disabled:ee})),d.createElement(a3,{onItemClick:z,mode:E==="horizontal"?"vertical":E,itemIcon:X,expandIcon:ae},We)}),k8=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Py(n),a=TB(r,i),o=_8();d.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=d.createElement(RVe,tt({ref:t},e),a),d.createElement(Jhe.Provider,{value:i},s)});function PB(e){var t=e.className,n=e.style,r=d.useContext(wu),i=r.prefixCls,a=_8();return a?null:d.createElement("li",{role:"separator",className:Ee("".concat(i,"-item-divider"),t),style:n})}var IVe=["className","title","eventKey","children"],jVe=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=Ht(e,IVe),o=d.useContext(wu),s=o.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",tt({ref:t,role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:Ee(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),OB=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Py(n),a=TB(r,i),o=_8();return o?a:d.createElement(jVe,tt({ref:t},$r(e,["warnKey"])),a)}),NVe=["label","children","key","type","extra"];function Wj(e,t,n){var r=t.item,i=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&Kt(s)==="object"){var c=s,u=c.label,f=c.children,p=c.key,h=c.type,m=c.extra,g=Ht(c,NVe),v=p??"tmp-".concat(l);return f||h==="group"?h==="group"?d.createElement(i,tt({key:v},g,{title:u}),Wj(f,t,n)):d.createElement(a,tt({key:v},g,{title:u}),Wj(f,t,n)):h==="divider"?d.createElement(o,tt({key:v},g)):d.createElement(r,tt({key:v},g,{extra:m}),u,(!!m||m===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function GY(e,t,n,r,i){var a=e,o=q({divider:PB,item:yg,group:OB,submenu:k8},r);return t&&(a=Wj(t,o,i)),TB(a,n)}var AVe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Kh=[],DVe=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,a=i===void 0?"rc-menu":i,o=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,p=r.children,h=r.direction,m=r.id,g=r.mode,v=g===void 0?"vertical":g,y=r.inlineCollapsed,w=r.disabled,b=r.disabledOverflow,C=r.subMenuOpenDelay,k=C===void 0?.1:C,S=r.subMenuCloseDelay,_=S===void 0?.1:S,E=r.forceSubMenuRender,$=r.defaultOpenKeys,M=r.openKeys,P=r.activeKey,R=r.defaultActiveFirst,O=r.selectable,j=O===void 0?!0:O,I=r.multiple,A=I===void 0?!1:I,N=r.defaultSelectedKeys,F=r.selectedKeys,K=r.onSelect,L=r.onDeselect,V=r.inlineIndent,B=V===void 0?24:V,U=r.motion,Y=r.defaultMotions,ee=r.triggerSubMenuAction,ie=ee===void 0?"hover":ee,Z=r.builtinPlacements,X=r.itemIcon,ae=r.expandIcon,oe=r.overflowedIndicator,le=oe===void 0?"...":oe,ce=r.overflowedIndicatorPopupClassName,pe=r.getPopupContainer,me=r.onClick,re=r.onOpenChange,fe=r.onKeyDown;r.openAnimation,r.openTransitionName;var ve=r._internalRenderMenuItem,$e=r._internalRenderSubMenuItem,Ce=r._internalComponents,be=Ht(r,AVe),Se=d.useMemo(function(){return[GY(p,f,Kh,Ce,a),GY(p,f,Kh,{},a)]},[p,f,Ce]),we=Te(Se,2),se=we[0],ye=we[1],Oe=d.useState(!1),z=Te(Oe,2),H=z[0],G=z[1],de=d.useRef(),xe=mVe(m),he=h==="rtl",Ue=In($,{value:M,postState:function(cn){return cn||Kh}}),We=Te(Ue,2),ge=We[0],ze=We[1],Ve=function(cn){var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function gr(){ze(cn),re==null||re(cn)}Sn?Va.flushSync(gr):gr()},Be=d.useState(ge),Xe=Te(Be,2),Ke=Xe[0],qe=Xe[1],Et=d.useRef(!1),ut=d.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),gt=Te(ut,2),Qe=gt[0],nt=gt[1],jt=Qe==="inline",Lt=d.useState(Qe),Bt=Te(Lt,2),Ut=Bt[0],Ne=Bt[1],He=d.useState(nt),Le=Te(He,2),Je=Le[0],pt=Le[1];d.useEffect(function(){Ne(Qe),pt(nt),Et.current&&(jt?ze(Ke):Ve(Kh))},[Qe,nt]);var xt=d.useState(0),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1],st=Ot>=se.length-1||Ut!=="horizontal"||b;d.useEffect(function(){jt&&qe(ge)},[ge]),d.useEffect(function(){return Et.current=!0,function(){Et.current=!1}},[]);var Ct=pVe(),kt=Ct.registerPath,qt=Ct.unregisterPath,vt=Ct.refreshOverflowKeys,At=Ct.isSubPathKey,dt=Ct.getKeyPath,De=Ct.getKeys,Ye=Ct.getSubPathKeys,ot=d.useMemo(function(){return{registerPath:kt,unregisterPath:qt}},[kt,qt]),Re=d.useMemo(function(){return{isSubPathKey:At}},[At]);d.useEffect(function(){vt(st?Kh:se.slice(Ot+1).map(function(pr){return pr.key}))},[Ot,st]);var It=In(P||R&&((n=se[0])===null||n===void 0?void 0:n.key),{value:P}),rt=Te(It,2),$t=rt[0],Mt=rt[1],dn=x2(function(pr){Mt(pr)}),pn=x2(function(){Mt(void 0)});d.useImperativeHandle(t,function(){return{list:de.current,focus:function(cn){var Sn,gr=De(),on=Hj(gr,xe),Ze=on.elements,bt=on.key2element,sn=on.element2key,Pn=EB(de.current,Ze),qn=$t??(Pn[0]?sn.get(Pn[0]):(Sn=se.find(function(ri){return!ri.props.disabled}))===null||Sn===void 0?void 0:Sn.key),ln=bt.get(qn);if(qn&&ln){var or;ln==null||(or=ln.focus)===null||or===void 0||or.call(ln,cn)}}}});var T=In(N||[],{value:F,postState:function(cn){return Array.isArray(cn)?cn:cn==null?Kh:[cn]}}),D=Te(T,2),J=D[0],ke=D[1],Ie=function(cn){if(j){var Sn=cn.key,gr=J.includes(Sn),on;A?gr?on=J.filter(function(bt){return bt!==Sn}):on=[].concat(lt(J),[Sn]):on=[Sn],ke(on);var Ze=q(q({},cn),{},{selectedKeys:on});gr?L==null||L(Ze):K==null||K(Ze)}!A&&ge.length&&Ut!=="inline"&&Ve(Kh)},it=x2(function(pr){me==null||me(g6(pr)),Ie(pr)}),Ft=x2(function(pr,cn){var Sn=ge.filter(function(on){return on!==pr});if(cn)Sn.push(pr);else if(Ut!=="inline"){var gr=Ye(pr);Sn=Sn.filter(function(on){return!gr.has(on)})}mg(ge,Sn,!0)||Ve(Sn,!0)}),rn=function(cn,Sn){var gr=Sn??!ge.includes(cn);Ft(cn,gr)},On=uVe(Ut,$t,he,xe,de,De,dt,Mt,rn,fe);d.useEffect(function(){G(!0)},[]);var Er=d.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:$e}},[ve,$e]),Mr=Ut!=="horizontal"||b?se:se.map(function(pr,cn){return d.createElement(a3,{key:pr.key,overflowDisabled:cn>Ot},pr)}),mr=d.createElement(lu,tt({id:m,ref:de,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:yg,className:Ee(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ut),l,ne(ne({},"".concat(a,"-inline-collapsed"),Je),"".concat(a,"-rtl"),he),o),dir:h,style:s,role:"menu",tabIndex:u,data:Mr,renderRawItem:function(cn){return cn},renderRawRest:function(cn){var Sn=cn.length,gr=Sn?se.slice(-Sn):null;return d.createElement(k8,{eventKey:Uj,title:le,disabled:st,internalPopupClose:Sn===0,popupClassName:ce},gr)},maxCount:Ut!=="horizontal"||b?lu.INVALIDATE:lu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(cn){Pt(cn)},onKeyDown:On},be));return d.createElement(kB.Provider,{value:Er},d.createElement(Yhe.Provider,{value:xe},d.createElement(a3,{prefixCls:a,rootClassName:o,mode:Ut,openKeys:ge,rtl:he,disabled:w,motion:H?U:null,defaultMotions:H?Y:null,activeKey:$t,onActive:dn,onInactive:pn,selectedKeys:J,inlineIndent:B,subMenuOpenDelay:k,subMenuCloseDelay:_,forceSubMenuRender:E,builtinPlacements:Z,triggerSubMenuAction:ie,getPopupContainer:pe,itemIcon:X,expandIcon:ae,onItemClick:it,onOpenChange:Ft},d.createElement(eme.Provider,{value:Re},mr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(Qhe.Provider,{value:ot},ye)))))}),qg=DVe;qg.Item=yg;qg.SubMenu=k8;qg.ItemGroup=OB;qg.Divider=PB;var FVe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},LVe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:FVe}))},BVe=d.forwardRef(LVe),zVe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},HVe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:zVe}))},Nf=d.forwardRef(HVe);const ome=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),UVe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:Me(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},sme=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},lme=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],cme=Jn("Layout",e=>[UVe(e)],sme,{deprecatedTokens:lme}),WVe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:Me(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Me(p)} ${Me(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Me(p)} 0 0 ${Me(p)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},VVe=Jn(["Layout","Sider"],e=>[WVe(e)],sme,{deprecatedTokens:lme});var qVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),E8=d.createContext({}),GVe=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),ume=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=qVe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=d.useContext(ome),[b,C]=d.useState("collapsed"in e?e.collapsed:o),[k,S]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const _=(X,ae)=>{"collapsed"in e||C(X),g==null||g(X,ae)},{getPrefixCls:E,direction:$}=d.useContext(Xt),M=E("layout-sider",n),[P,R,O]=VVe(M),j=d.useRef(null);j.current=X=>{S(X.matches),v==null||v(X.matches),b!==X.matches&&_(X.matches,"responsive")},d.useEffect(()=>{function X(oe){return j.current(oe)}let ae;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&m&&m in YY){ae=oe(`screen and (max-width: ${YY[m]})`);try{ae.addEventListener("change",X)}catch{ae.addListener(X)}X(ae)}}return()=>{try{ae==null||ae.removeEventListener("change",X)}catch{ae==null||ae.removeListener(X)}}},[m]),d.useEffect(()=>{const X=GVe("ant-sider-");return w.addSider(X),()=>w.removeSider(X)},[]);const I=()=>{_(!b,"clickTrigger")},A=$r(y,["collapsed"]),N=b?p:f,F=KVe(N)?`${N}px`:String(N),K=parseFloat(String(p||0))===0?d.createElement("span",{onClick:I,className:Ee(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${u?"right":"left"}`),style:h},i||d.createElement(BVe,null)):null,L=$==="rtl"==!u,U={expanded:L?d.createElement(bc,null):d.createElement(Nf,null),collapsed:L?d.createElement(Nf,null):d.createElement(bc,null)}[b?"collapsed":"expanded"],Y=i!==null?K||d.createElement("div",{className:`${M}-trigger`,onClick:I,style:{width:F}},i||U):null,ee=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=Ee(M,`${M}-${s}`,{[`${M}-collapsed`]:!!b,[`${M}-has-trigger`]:c&&i!==null&&!K,[`${M}-below`]:!!k,[`${M}-zero-width`]:parseFloat(F)===0},r,R,O),Z=d.useMemo(()=>({siderCollapsed:b}),[b]);return P(d.createElement(E8.Provider,{value:Z},d.createElement("aside",Object.assign({className:ie},A,{style:ee,ref:t}),d.createElement("div",{className:`${M}-children`},a),c||k&&K?Y:null)))});var YVe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},XVe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:YVe}))},RB=d.forwardRef(XVe);const v6=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ZVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=ZVe(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=d.useContext(Xt),o=a("menu",t),s=Ee({[`${o}-item-divider-dashed`]:!!r},n);return d.createElement(PB,Object.assign({className:s},i))},fme=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=d.useContext(v6),h=b=>{const C=r==null?void 0:r[0],k=d.createElement("span",{className:Ee(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||d.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof C=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},C.charAt(0)):k},{siderCollapsed:m}=d.useContext(E8);let g=a;typeof a>"u"?g=c?r:"":a===!1&&(g="");const v={title:g};!m&&!p&&(v.title=null,v.open=!1);const y=Xi(r).length;let w=d.createElement(yg,Object.assign({},$r(e,["title","icon","danger"]),{className:Ee({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(i?y+1:y)===1},n),title:typeof a=="string"?a:void 0}),aa(i,{className:Ee(d.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h(p));return f||(w=d.createElement(_a,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),w)),w};var QVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=QVe(e,["children"]),i=d.useContext(y6),a=d.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=PRe(n),s=ku(t,o?bh(n):null);return d.createElement(y6.Provider,{value:a},d.createElement(bu,{space:!0},o?d.cloneElement(n,{ref:s}):n))}),eqe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Me(a)} ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},nqe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},tqe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Me(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Me(n)})`}}}}},XY=e=>Object.assign({},yc(e)),ZY=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:p,motionDurationSlow:h,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:w,lineType:b,colorSplit:C,itemDisabledColor:k,dangerItemColor:S,dangerItemHoverColor:_,dangerItemSelectedColor:E,dangerItemActiveBg:$,dangerItemSelectedBg:M,popupBg:P,itemHoverBg:R,itemActiveBg:O,menuSubMenuBg:j,horizontalItemSelectedColor:I,horizontalItemSelectedBg:A,horizontalItemBorderRadius:N,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},XY(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},XY(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${k} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:O}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:M}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Me(u)} solid transparent`,transition:`border-color ${h} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Me(p)} ${b} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Me(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${m}`,`opacity ${y} ${m}`].join(",")}}}}}},QY=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Me(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Me(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},rqe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,y={height:r,lineHeight:Me(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},QY(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},QY(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Me(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},nqe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,y={height:r,lineHeight:Me(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},QY(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},QY(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Me(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Me(e.calc(v).div(2).equal())} - ${Me(c)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Me(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ao),{paddingInline:h})}}]},JY=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},wh()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},eX=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Me(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Me(o)})`}}}}},iqe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:h,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},vd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),vd()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Me(s)} ${Me(l)}`,fontSize:w,lineHeight:y,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),JY(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Me(e.calc(r).mul(2).equal())} ${Me(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},JY(e)),eX(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),eX(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Me(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Me(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Me(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Me(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Me(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},aqe=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:p,lineWidth:h,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:y,lineHeight:w,colorBgElevated:b,marginXXS:C,padding:k,fontSize:S,controlHeightSM:_,fontSizeLG:E,colorTextLightSolid:$,colorErrorHover:M}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,R=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,O=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,j=new ur($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:h,activeBarBorderWidth:R,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:O,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:w,collapsedWidth:y*2,popupBg:b,itemMarginBlock:C,itemPaddingInline:k,horizontalLineHeight:`${y*1.15}px`,iconSize:S,iconMarginInlineEnd:_-S,collapsedIconSize:E,groupTitleFontSize:S,darkItemDisabledColor:new ur($).setA(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:$,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:a,itemWidth:P?`calc(100% + ${R}px)`:`calc(100% - ${O*2}px)`}},oqe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Jn("Menu",i=>{const{colorBgElevated:a,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:h,darkDangerItemSelectedBg:m,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:w,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:k,popupBg:S,darkPopupBg:_}=i,E=i.calc(s).div(7).mul(5).equal(),$=Hn(i,{menuArrowSize:E,menuHorizontalHeight:i.calc(o).mul(1.15).equal(),menuArrowOffset:i.calc(E).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:S}),M=Hn($,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:p,itemBg:u,popupBg:_,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:w,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:C,dangerItemActiveBg:k,dangerItemSelectedBg:m,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:h});return[iqe($),tqe($),rqe($),ZY($,"light"),ZY(M,"dark"),nqe($),S4($),yd($,"slide-up"),yd($,"slide-down"),_y($,"zoom-big")]},aqe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},hme=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,o=d.useContext(y6),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=Py();let f;if(!r)f=l&&!u.length&&i&&typeof i=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):d.createElement("span",{className:`${s}-title-content`},i);else{const m=d.isValidElement(i)&&i.type==="span";f=d.createElement(d.Fragment,null,aa(r,{className:Ee(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?i:d.createElement("span",{className:`${s}-title-content`},i))}const p=d.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[h]=$c("Menu");return d.createElement(y6.Provider,{value:p},d.createElement(k8,Object.assign({},$r(e,["icon"]),{title:f,popupClassName:Ee(s,n,`${s}-${a||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var sqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const r=d.useContext(b6),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:l}=d.useContext(Xt),c=a(),{prefixCls:u,className:f,style:p,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:w,mode:b,selectable:C,onClick:k,overflowedIndicatorPopupClassName:S}=e,_=sqe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),E=$r(_,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:b});const $=Vn(function(){var B;k==null||k.apply(void 0,arguments),(B=i.onClick)===null||B===void 0||B.call(i)}),M=i.mode||b,P=C??i.selectable,R=v??y,O={horizontal:{motionName:`${c}-slide-up`},inline:P0(c),other:{motionName:`${c}-zoom-big`}},j=a("menu",u||i.prefixCls),I=qr(j),[A,N,F]=oqe(j,I,!r),K=Ee(`${j}-${h}`,l==null?void 0:l.className,f),L=d.useMemo(()=>{var B,U;if(typeof m=="function"||H9(m))return m||null;if(typeof i.expandIcon=="function"||H9(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||H9(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const Y=(B=m??(i==null?void 0:i.expandIcon))!==null&&B!==void 0?B:l==null?void 0:l.expandIcon;return aa(Y,{className:Ee(`${j}-submenu-expand-icon`,d.isValidElement(Y)?(U=Y.props)===null||U===void 0?void 0:U.className:void 0)})},[m,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,j]),V=d.useMemo(()=>({prefixCls:j,inlineCollapsed:R||!1,direction:s,firstLevel:!0,theme:h,mode:M,disableMenuItemTitleTooltip:g}),[j,R,s,g,h]);return A(d.createElement(b6.Provider,{value:null},d.createElement(y6.Provider,{value:V},d.createElement(qg,Object.assign({getPopupContainer:o,overflowedIndicator:d.createElement(RB,null),overflowedIndicatorPopupClassName:Ee(j,`${j}-${h}`,S),mode:M,selectable:P,onClick:$},E,{inlineCollapsed:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),p),className:K,prefixCls:j,direction:s,defaultMotions:O,expandIcon:L,ref:t,rootClassName:Ee(w,N,i.rootClassName,F,I),_internalComponents:lqe})))))}),ks=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(E8);return d.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),d.createElement(cqe,Object.assign({ref:n},e,r))});ks.Item=pme;ks.SubMenu=hme;ks.Divider=fme;ks.ItemGroup=OB;const uqe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},dqe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:h,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Me(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ao),{paddingInline:h})}}]},JY=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},wh()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},eX=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Me(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Me(o)})`}}}}},rqe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:h,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},vd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),vd()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Me(s)} ${Me(l)}`,fontSize:w,lineHeight:y,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),JY(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Me(e.calc(r).mul(2).equal())} ${Me(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},JY(e)),eX(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),eX(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Me(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Me(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Me(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Me(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Me(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},iqe=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:p,lineWidth:h,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:y,lineHeight:w,colorBgElevated:b,marginXXS:C,padding:k,fontSize:S,controlHeightSM:_,fontSizeLG:E,colorTextLightSolid:$,colorErrorHover:M}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,R=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,O=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,j=new ur($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:h,activeBarBorderWidth:R,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:O,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:w,collapsedWidth:y*2,popupBg:b,itemMarginBlock:C,itemPaddingInline:k,horizontalLineHeight:`${y*1.15}px`,iconSize:S,iconMarginInlineEnd:_-S,collapsedIconSize:E,groupTitleFontSize:S,darkItemDisabledColor:new ur($).setA(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:$,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:a,itemWidth:P?`calc(100% + ${R}px)`:`calc(100% - ${O*2}px)`}},aqe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Jn("Menu",i=>{const{colorBgElevated:a,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:h,darkDangerItemSelectedBg:m,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:w,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:k,popupBg:S,darkPopupBg:_}=i,E=i.calc(s).div(7).mul(5).equal(),$=Hn(i,{menuArrowSize:E,menuHorizontalHeight:i.calc(o).mul(1.15).equal(),menuArrowOffset:i.calc(E).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:S}),M=Hn($,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:p,itemBg:u,popupBg:_,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:w,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:C,dangerItemActiveBg:k,dangerItemSelectedBg:m,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:h});return[rqe($),eqe($),nqe($),ZY($,"light"),ZY(M,"dark"),tqe($),x4($),yd($,"slide-up"),yd($,"slide-down"),_y($,"zoom-big")]},iqe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},pme=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,o=d.useContext(v6),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=Py();let f;if(!r)f=l&&!u.length&&i&&typeof i=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):d.createElement("span",{className:`${s}-title-content`},i);else{const m=d.isValidElement(i)&&i.type==="span";f=d.createElement(d.Fragment,null,aa(r,{className:Ee(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?i:d.createElement("span",{className:`${s}-title-content`},i))}const p=d.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[h]=$c("Menu");return d.createElement(v6.Provider,{value:p},d.createElement(k8,Object.assign({},$r(e,["icon"]),{title:f,popupClassName:Ee(s,n,`${s}-${a||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var oqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const r=d.useContext(y6),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:l}=d.useContext(Xt),c=a(),{prefixCls:u,className:f,style:p,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:w,mode:b,selectable:C,onClick:k,overflowedIndicatorPopupClassName:S}=e,_=oqe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),E=$r(_,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:b});const $=Vn(function(){var B;k==null||k.apply(void 0,arguments),(B=i.onClick)===null||B===void 0||B.call(i)}),M=i.mode||b,P=C??i.selectable,R=v??y,O={horizontal:{motionName:`${c}-slide-up`},inline:P0(c),other:{motionName:`${c}-zoom-big`}},j=a("menu",u||i.prefixCls),I=qr(j),[A,N,F]=aqe(j,I,!r),K=Ee(`${j}-${h}`,l==null?void 0:l.className,f),L=d.useMemo(()=>{var B,U;if(typeof m=="function"||H9(m))return m||null;if(typeof i.expandIcon=="function"||H9(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||H9(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const Y=(B=m??(i==null?void 0:i.expandIcon))!==null&&B!==void 0?B:l==null?void 0:l.expandIcon;return aa(Y,{className:Ee(`${j}-submenu-expand-icon`,d.isValidElement(Y)?(U=Y.props)===null||U===void 0?void 0:U.className:void 0)})},[m,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,j]),V=d.useMemo(()=>({prefixCls:j,inlineCollapsed:R||!1,direction:s,firstLevel:!0,theme:h,mode:M,disableMenuItemTitleTooltip:g}),[j,R,s,g,h]);return A(d.createElement(y6.Provider,{value:null},d.createElement(v6.Provider,{value:V},d.createElement(qg,Object.assign({getPopupContainer:o,overflowedIndicator:d.createElement(RB,null),overflowedIndicatorPopupClassName:Ee(j,`${j}-${h}`,S),mode:M,selectable:P,onClick:$},E,{inlineCollapsed:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),p),className:K,prefixCls:j,direction:s,defaultMotions:O,expandIcon:L,ref:t,rootClassName:Ee(w,N,i.rootClassName,F,I),_internalComponents:sqe})))))}),ks=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(E8);return d.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),d.createElement(lqe,Object.assign({ref:n},e,r))});ks.Item=fme;ks.SubMenu=pme;ks.Divider=dme;ks.ItemGroup=OB;const cqe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},uqe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:h,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, @@ -316,8 +316,8 @@ html body { &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:a8},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:s8}}},_B(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},ar(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Vs(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Me(c)} ${Me(m)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Me(c)} ${Me(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Vs(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Me(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Me(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[yd(e,"slide-up"),yd(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down"),_y(e,"zoom-big")]]},fqe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},S8({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),x8(e)),pqe=Jn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Hn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[dqe(a),uqe(a)]},fqe,{resetStyle:!1}),$8=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:p,open:h,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:b=!0,placement:C="",overlay:k,transitionName:S}=e,{getPopupContainer:_,getPrefixCls:E,direction:$,dropdown:M}=d.useContext(Xt);Hg();const P=d.useMemo(()=>{const pe=E();return S!==void 0?S:C.includes("top")?`${pe}-slide-down`:`${pe}-slide-up`},[E,C,S]),R=d.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:$==="rtl"?"bottomRight":"bottomLeft",[C,$]),O=E("dropdown",i),j=qr(O),[I,A,N]=pqe(O,j),[,F]=ka(),K=d.Children.only(rVe(a)?d.createElement("span",null,a):a),L=aa(K,{className:Ee(`${O}-trigger`,{[`${O}-rtl`]:$==="rtl"},K.props.className),disabled:(t=K.props.disabled)!==null&&t!==void 0?t:s}),V=s?[]:o,B=!!(V!=null&&V.includes("contextMenu")),[U,Y]=In(!1,{value:h??g}),ee=Vn(pe=>{m==null||m(pe,{source:"trigger"}),v==null||v(pe),Y(pe)}),ie=Ee(u,f,A,N,j,M==null?void 0:M.className,{[`${O}-rtl`]:$==="rtl"}),Z=zhe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:b,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),X=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),Y(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ae=()=>{let pe;return n!=null&&n.items?pe=d.createElement(ks,Object.assign({},n)):typeof k=="function"?pe=k():pe=k,l&&(pe=l(pe)),pe=d.Children.only(typeof pe=="string"?d.createElement("span",null,pe):pe),d.createElement(eqe,{prefixCls:`${O}-menu`,rootClassName:Ee(N,j),expandIcon:d.createElement("span",{className:`${O}-menu-submenu-arrow`},d.createElement(bc,{className:`${O}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:me=>{}},pe)},[oe,le]=$c("Dropdown",p==null?void 0:p.zIndex);let ce=d.createElement(Yhe,Object.assign({alignPoint:B},$r(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:w,visible:U,builtinPlacements:Z,arrow:!!r,overlayClassName:ie,prefixCls:O,getPopupContainer:c||_,transitionName:P,trigger:V,overlay:ae,placement:R,onVisibleChange:ee,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),p),{zIndex:oe})}),L);return oe&&(ce=d.createElement(y4.Provider,{value:le},ce)),I(ce)},hqe=Gf($8,"align",void 0,"dropdown",e=>e),mqe=e=>d.createElement(hqe,Object.assign({},e),d.createElement("span",null));$8._InternalPanelDoNotUseOrYouWillBeFired=mqe;var mme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",h="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var I=["th","st","nd","rd"],A=j%100;return"["+j+(I[(A-20)%10]||I[A]||I[0])+"]"}},b=function(j,I,A){var N=String(j);return!N||N.length>=I?j:""+Array(I+1-N.length).join(A)+j},C={s:b,z:function(j){var I=-j.utcOffset(),A=Math.abs(I),N=Math.floor(A/60),F=A%60;return(I<=0?"+":"-")+b(N,2,"0")+":"+b(F,2,"0")},m:function j(I,A){if(I.date()1)return j(L[0])}else{var V=I.name;S[V]=I,F=V}return!N&&F&&(k=F),F||!N&&k},M=function(j,I){if(E(j))return j.clone();var A=typeof I=="object"?I:{};return A.date=j,A.args=arguments,new R(A)},P=C;P.l=$,P.i=E,P.w=function(j,I){return M(j,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var R=function(){function j(A){this.$L=$(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[_]=!0}var I=j.prototype;return I.parse=function(A){this.$d=function(N){var F=N.date,K=N.utc;if(F===null)return new Date(NaN);if(P.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var L=F.match(v);if(L){var V=L[2]-1||0,B=(L[7]||"0").substring(0,3);return K?new Date(Date.UTC(L[1],V,L[3]||1,L[4]||0,L[5]||0,L[6]||0,B)):new Date(L[1],V,L[3]||1,L[4]||0,L[5]||0,L[6]||0,B)}}return new Date(F)}(A),this.init()},I.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},I.$utils=function(){return P},I.isValid=function(){return this.$d.toString()!==g},I.isSame=function(A,N){var F=M(A);return this.startOf(N)<=F&&F<=this.endOf(N)},I.isAfter=function(A,N){return M(A)25){var u=o(this).startOf(r).add(1,r).date(c),f=o(this).endOf(n);if(u.isBefore(f))return 1}var p=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(xme);var yqe=xme.exports;const IB=ei(yqe);var Sme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(Sme);var bqe=Sme.exports;const wqe=ei(bqe);var Cme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var c=this.$utils(),u=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(u)}}})})(Cme);var xqe=Cme.exports;const _me=ei(xqe);var kme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var w=y.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(v)}],p=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var w,b=l.meridiem;if(b){for(var C=1;C<=24;C+=1)if(v.indexOf(b(C,0,y))>-1){w=C>12;break}}else w=v===(y?"pm":"PM");return w},m={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[a,u("day")],Do:[s,function(v){var y=l.ordinal,w=v.match(/\d+/);if(this.day=w[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],w:[o,u("week")],ww:[a,u("week")],M:[o,u("month")],MM:[a,u("month")],MMM:[s,function(v){var y=p("months"),w=(p("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[s,function(v){var y=p("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var y,w;y=v,w=l&&l.formats;for(var b=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,P,R){var O=R&&R.toUpperCase();return P||w[R]||n[R]||w[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,I,A){return I||A.slice(1)})})).match(r),C=b.length,k=0;k-1)return new Date((F==="X"?1e3:1)*N);var V=g(F)(N),B=V.year,U=V.month,Y=V.day,ee=V.hours,ie=V.minutes,Z=V.seconds,X=V.milliseconds,ae=V.zone,oe=V.week,le=new Date,ce=Y||(B||U?1:le.getDate()),pe=B||le.getFullYear(),me=0;B&&!U||(me=U>0?U-1:le.getMonth());var re,fe=ee||0,ve=ie||0,$e=Z||0,Ce=X||0;return ae?new Date(Date.UTC(pe,me,ce,fe,ve,$e,Ce+60*ae.offset*1e3)):K?new Date(Date.UTC(pe,me,ce,fe,ve,$e,Ce)):(re=new Date(pe,me,ce,fe,ve,$e,Ce),oe&&(re=L(re).week(oe).toDate()),re)}catch{return new Date("")}}(S,$,_,w),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),R&&S!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var j=$.length,I=1;I<=j;I+=1){E[1]=$[I-1];var A=w.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}I===j&&(this.$d=new Date(""))}else C.call(this,k)}}})})(kme);var Sqe=kme.exports;const Eme=ei(Sqe);cr.extend(Eme);cr.extend(_me);cr.extend(yme);cr.extend(wme);cr.extend(IB);cr.extend(wqe);cr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var o=(a||"").replace("Wo","wo");return r.bind(this)(o)}});var Cqe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Gh=function(t){var n=Cqe[t];return n||t.split("_")[0]},_qe={getNow:function(){var t=cr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return cr(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return cr().locale(Gh(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Gh(t)).weekday(0)},getWeek:function(t,n){return n.locale(Gh(t)).week()},getShortWeekDays:function(t){return cr().locale(Gh(t)).localeData().weekdaysMin()},getShortMonths:function(t){return cr().locale(Gh(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Gh(t)).format(r)},parse:function(t,n,r){for(var i=Gh(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),i=Te(r,2),a=i[0],o=i[1],s=function(u,f){o(function(p){return Q2(p,f,u)})},l=d.useMemo(function(){return a.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function Ime(e,t,n,r,i){var a="",o=[];return e&&o.push(i?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}function Eqe(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,h=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,w=Ime(t,n,r,i,a);return q(q({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(w),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||w,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:y||v||"D"})}function jme(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return te.useMemo(function(){return Eqe(e,n,r,i,a,o)},[e,n,r,i,a,o])}function Db(e,t,n){return n??t.some(function(r){return e.includes(r)})}var $qe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Mqe(e){var t=T8(e,$qe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=Kt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function Tqe(e){return e&&typeof e=="string"}function Nme(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function Ame(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var l,c,u,f=[a,o,s].some(function(m){return m===!1}),p=[a,o,s].some(function(m){return m===!0}),h=f?!0:!p;a=(l=a)!==null&&l!==void 0?l:h,o=(c=o)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[a,o,s,i]}function Dme(e){var t=e.showTime,n=Mqe(e),r=Te(n,2),i=r[0],a=r[1],o=t&&Kt(t)==="object"?t:{},s=q(q({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,p=Nme(c,u,f,l),h=Ame(p,c,u,f,l),m=Te(h,3);return c=m[0],u=m[1],f=m[2],[s,q(q({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,a]}function Fme(e,t,n,r,i){var a=e==="time";if(e==="datetime"||a){for(var o=r,s=Tme(e,i,null),l=s,c=[t,n],u=0;u1&&(o=t.addDate(o,-7)),o}function Wa(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function w6(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=e[o](r,e[i[s]](n)):r=e[o](r,0)}),r}function Iqe(e,t,n,r,i){var a=Vn(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!Vo(e,t,r,o,s.type)||i&&e.isAfter(o,i)&&!Vo(e,t,i,o,s.type))});return a}function jqe(e,t,n){return d.useMemo(function(){var r=Tme(e,t,n),i=Kg(r),a=i[0],o=Kt(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function Nqe(e,t,n){return typeof e[0]=="function"||n?!0:t}function Aqe(e,t,n,r){var i=Vn(function(a,o){var s=q({type:t},o);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=u.disabledHours,p=u.disabledMinutes,h=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,w=f||g,b=p||v,C=h||y,k=e.getHour(a),S=e.getMinute(a),_=e.getSecond(a),E=e.getMillisecond(a);if(w&&w().includes(k)||b&&b(k).includes(S)||C&&C(k,S).includes(_)||m&&m(k,S,_).includes(E))return!0}return!1});return i}function SS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&Kg(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function zme(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?"date":i,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,p=e.order,h=p===void 0?!0:p,m=e.components,g=m===void 0?{}:m,v=e.inputRender,y=e.allowClear,w=e.clearIcon,b=e.needConfirm,C=e.multiple,k=e.format,S=e.inputReadOnly,_=e.disabledDate,E=e.minDate,$=e.maxDate,M=e.showTime,P=e.value,R=e.defaultValue,O=e.pickerValue,j=e.defaultPickerValue,I=SS(P),A=SS(R),N=SS(O),F=SS(j),K=a==="date"&&M?"datetime":a,L=K==="time"||K==="datetime",V=L||C,B=b??L,U=Dme(e),Y=Te(U,4),ee=Y[0],ie=Y[1],Z=Y[2],X=Y[3],ae=jme(r,ie),oe=d.useMemo(function(){return Fme(K,Z,X,ee,ae)},[K,Z,X,ee,ae]),le=d.useMemo(function(){return q(q({},e),{},{prefixCls:s,locale:ae,picker:a,styles:c,classNames:f,order:h,components:q({input:v},g),clearIcon:Pqe(s,y,w),showTime:oe,value:I,defaultValue:A,pickerValue:N,defaultPickerValue:F},t==null?void 0:t())},[e]),ce=jqe(K,ae,k),pe=Te(ce,2),me=pe[0],re=pe[1],fe=Nqe(me,S,C),ve=Iqe(n,r,_,E,$),$e=Aqe(n,a,ve,oe),Ce=d.useMemo(function(){return q(q({},le),{},{needConfirm:B,inputReadOnly:fe,disabledDate:ve})},[le,B,fe,ve]);return[Ce,K,V,me,re,$e]}function Dqe(e,t,n){var r=In(t,{value:e}),i=Te(r,2),a=i[0],o=i[1],s=te.useRef(e),l=te.useRef(),c=function(){rr.cancel(l.current)},u=Vn(function(){o(s.current),n&&a!==s.current&&n(s.current)}),f=Vn(function(p,h){c(),s.current=p,p||h?u():l.current=rr(u)});return te.useEffect(function(){return c},[]),[a,f]}function Hme(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,a=Dqe(i,t||!1,r),o=Te(a,2),s=o[0],l=o[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function Ume(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var a;(a=t.current)===null||a===void 0||a.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function Wme(e,t){return d.useMemo(function(){return e||(t?(Br(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Te(n,2),i=r[0],a=r[1];return{label:i,value:a}})):[])},[e,t])}function FB(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,Vm(function(){if(e)r.current(e);else{var i=rr(function(){r.current(e)},n);return function(){rr.cancel(i)}}},[e])}function Vme(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),i=Te(r,2),a=i[0],o=i[1],s=d.useState(!1),l=Te(s,2),c=l[0],u=l[1],f=d.useRef([]),p=d.useRef(null),h=d.useRef(null),m=function(C){p.current=C},g=function(C){return p.current===C},v=function(C){u(C)},y=function(C){return C&&(h.current=C),h.current},w=function(C){var k=f.current,S=new Set(k.filter(function(E){return C[E]||t[E]})),_=k[k.length-1]===0?1:0;return S.size>=2||e[_]?null:_};return FB(c||n,function(){c||(f.current=[],m(null))}),d.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,v,y,a,o,w,f.current,m,g]}function Fqe(e,t,n,r,i,a){var o=n[n.length-1],s=function(c,u){var f=Te(e,2),p=f[0],h=f[1],m=q(q({},u),{},{from:Pme(e,n)});return o===1&&t[0]&&p&&!Vo(r,i,p,c,m.type)&&r.isAfter(p,c)||o===0&&t[1]&&h&&!Vo(r,i,h,c,m.type)&&r.isAfter(c,h)?!0:a==null?void 0:a(c,m)};return s}function C2(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var W9=[];function qme(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:W9,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:W9,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:W9,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,m=o==="time",g=a||0,v=function(N){var F=e.getNow();return m&&(F=w6(e,F)),l[N]||n[N]||F},y=Te(c,2),w=y[0],b=y[1],C=In(function(){return v(0)},{value:w}),k=Te(C,2),S=k[0],_=k[1],E=In(function(){return v(1)},{value:b}),$=Te(E,2),M=$[0],P=$[1],R=d.useMemo(function(){var A=[S,M][g];return m?A:w6(e,A,u[g])},[m,S,M,g,e,u]),O=function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",K=[_,P][g];K(N);var L=[S,M];L[g]=N,f&&(!Vo(e,t,S,L[0],o)||!Vo(e,t,M,L[1],o))&&f(L,{source:F,range:g===1?"end":"start",mode:r})},j=function(N,F){if(s){var K={date:"month",week:"month",month:"year",quarter:"year"},L=K[o];if(L&&!Vo(e,t,N,F,L))return C2(e,o,F,-1);if(o==="year"&&N){var V=Math.floor(e.getYear(N)/10),B=Math.floor(e.getYear(F)/10);if(V!==B)return C2(e,o,F,-1)}}return F},I=d.useRef(null);return nr(function(){if(i&&!l[g]){var A=m?null:e.getNow();if(I.current!==null&&I.current!==g?A=[S,M][g^1]:n[g]?A=g===0?n[0]:j(n[0],n[1]):n[g^1]&&(A=n[g^1]),A){p&&e.isAfter(p,A)&&(A=p);var N=s?C2(e,o,A,1):A;h&&e.isAfter(N,h)&&(A=s?C2(e,o,h,-1):h),O(A,"reset")}}},[i,g,n[g]]),d.useEffect(function(){i?I.current=g:I.current=null},[i,g]),nr(function(){i&&l&&l[g]&&O(l[g],"reset")},[i,g]),[R,O]}function Kme(e,t){var n=d.useRef(e),r=d.useState({}),i=Te(r,2),a=i[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,a({})};return[o,s,o(!0)]}var Lqe=[];function Gme(e,t,n){var r=function(o){return o.map(function(s){return Wa(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&o.push({label:jB(l,a),value:l,disabled:c})}return o}function LB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,p=f===void 0?100:f,h=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,w=d.useMemo(function(){return n||e.getNow()},[n,e]),b=d.useCallback(function(F){var K=(m==null?void 0:m(F))||{};return[K.disabledHours||g||CS,K.disabledMinutes||v||CS,K.disabledSeconds||y||CS,K.disabledMilliseconds||CS]},[m,g,v,y]),C=d.useMemo(function(){return b(w)},[w,b]),k=Te(C,4),S=k[0],_=k[1],E=k[2],$=k[3],M=d.useCallback(function(F,K,L,V){var B=_S(0,23,o,h,F()),U=i?B.map(function(Z){return q(q({},Z),{},{label:jB(Z.value%12||12,2)})}):B,Y=function(X){return _S(0,59,l,h,K(X))},ee=function(X,ae){return _S(0,59,u,h,L(X,ae))},ie=function(X,ae,oe){return _S(0,999,p,h,V(X,ae,oe),3)};return[U,Y,ee,ie]},[h,o,i,p,l,u]),P=d.useMemo(function(){return M(S,_,E,$)},[M,S,_,E,$]),R=Te(P,4),O=R[0],j=R[1],I=R[2],A=R[3],N=function(K,L){var V=function(){return O},B=j,U=I,Y=A;if(L){var ee=b(L),ie=Te(ee,4),Z=ie[0],X=ie[1],ae=ie[2],oe=ie[3],le=M(Z,X,ae,oe),ce=Te(le,4),pe=ce[0],me=ce[1],re=ce[2],fe=ce[3];V=function(){return pe},B=me,U=re,Y=fe}var ve=zqe(K,V,B,U,Y,e);return ve};return[N,O,j,I,A]}function Hqe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,p=d.useContext(Tu),h=p.prefixCls,m=p.locale,g=p.button,v=g===void 0?"button":g,y=u.getNow(),w=LB(u,a,y),b=Te(w,1),C=b[0],k=r==null?void 0:r(t),S=f(y,{type:t}),_=function(){if(!S){var j=C(y);s(j)}},E="".concat(h,"-now"),$="".concat(E,"-btn"),M=i&&d.createElement("li",{className:E},d.createElement("a",{className:Ee($,S&&"".concat($,"-disabled")),"aria-disabled":S,onClick:_},n==="date"?m.today:m.now)),P=c&&d.createElement("li",{className:"".concat(h,"-ok")},d.createElement(v,{disabled:l,onClick:o},m.ok)),R=(M||P)&&d.createElement("ul",{className:"".concat(h,"-ranges")},M,P);return!k&&!R?null:d.createElement("div",{className:"".concat(h,"-footer")},k&&d.createElement("div",{className:"".concat(h,"-footer-extra")},k),R)}function Jme(e,t,n){function r(i,a){var o=i.findIndex(function(l){return Vo(e,t,l,a,n)});if(o===-1)return[].concat(lt(i),[a]);var s=lt(i);return s.splice(o,1),s}return r}var Gg=d.createContext(null);function O8(){return d.useContext(Gg)}function Oy(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,p=e.values,h=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,w=e.superNextIcon,b=r.getNow(),C={now:b,values:p,pickerValue:h,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:y,superNextIcon:w};return[C,b]}var rh=d.createContext({});function T4(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,h=e.disabledDate,m=O8(),g=m.prefixCls,v=m.panelType,y=m.now,w=m.disabledDate,b=m.cellRender,C=m.onHover,k=m.hoverValue,S=m.hoverRangeValue,_=m.generateConfig,E=m.values,$=m.locale,M=m.onSelect,P=h||w,R="".concat(g,"-cell"),O=d.useContext(rh),j=O.onCellDblClick,I=function(U){return E.some(function(Y){return Y&&Vo(_,$,U,Y,v)})},A=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;we(ze),v==null||v(ze),Ve&&se(ze)},Oe=function(ze,Ve){ae(ze),Ve&&ye(Ve),se(Ve,ze)},z=function(ze){if($e(ze),ye(ze),X!==C){var Ve=["decade","year"],Be=[].concat(Ve,["month"]),Xe={quarter:[].concat(Ve,["quarter"]),week:[].concat(lt(Be),["week"]),date:[].concat(lt(Be),["date"])},Ke=Xe[C]||Be,qe=Ke.indexOf(X),Et=Ke[qe+1];Et&&Oe(Et,ze)}},H=d.useMemo(function(){var ge,ze;if(Array.isArray(_)){var Ve=Te(_,2);ge=Ve[0],ze=Ve[1]}else ge=_;return!ge&&!ze?null:(ge=ge||ze,ze=ze||ge,i.isAfter(ge,ze)?[ze,ge]:[ge,ze])},[_,i]),G=NB(E,$,M),de=R[oe]||eKe[oe]||R8,xe=d.useContext(rh),he=d.useMemo(function(){return q(q({},xe),{},{hideHeader:O})},[xe,O]),Ue="".concat(j,"-panel"),We=T8(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(rh.Provider,{value:he},d.createElement("div",{ref:I,tabIndex:l,className:Ee(Ue,ne({},"".concat(Ue,"-rtl"),a==="rtl"))},d.createElement(de,tt({},We,{showTime:Y,prefixCls:j,locale:B,generateConfig:i,onModeChange:Oe,pickerValue:Se,onPickerValueChange:function(ze){ye(ze,!0)},value:fe[0],onSelect:z,values:fe,cellRender:G,hoverRangeValue:H,hoverValue:S}))))}var V9=d.memo(d.forwardRef(tKe));function nKe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Tu),u=c.prefixCls,f=c.generateConfig,p=d.useCallback(function(w,b){return C2(f,t,w,b)},[f,t]),h=d.useMemo(function(){return p(r,1)},[r,p]),m=function(b){i(p(b,-1))},g={onCellDblClick:function(){a&&o()}},v=t==="time",y=q(q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?y.hoverRangeValue=l:y.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(rh.Provider,{value:q(q({},g),{},{hideNext:!0})},d.createElement(V9,y)),d.createElement(rh.Provider,{value:q(q({},g),{},{hidePrev:!0})},d.createElement(V9,tt({},y,{pickerValue:h,onPickerValueChange:m})))):d.createElement(rh.Provider,{value:q({},g)},d.createElement(V9,y))}function nX(e){return typeof e=="function"?e():e}function rKe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return d.createElement("li",{key:o,onClick:function(){r(nX(l))},onMouseEnter:function(){i(nX(l))},onMouseLeave:function(){i(null)}},s)}))):null}function tge(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,a=e.range,o=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,h=e.onFocus,m=e.onBlur,g=e.onPanelMouseDown,v=e.direction,y=e.value,w=e.onSelect,b=e.isInvalid,C=e.defaultOpenValue,k=e.onOk,S=e.onSubmit,_=d.useContext(Tu),E=_.prefixCls,$="".concat(E,"-panel"),M=v==="rtl",P=d.useRef(null),R=d.useRef(null),O=d.useState(0),j=Te(O,2),I=j[0],A=j[1],N=d.useState(0),F=Te(N,2),K=F[0],L=F[1],V=function(ve){ve.offsetWidth&&A(ve.offsetWidth)};d.useEffect(function(){if(a){var fe,ve=((fe=P.current)===null||fe===void 0?void 0:fe.offsetWidth)||0,$e=I-ve;l<=$e?L(0):L(l+ve-I)}},[I,l,a]);function B(fe){return fe.filter(function(ve){return ve})}var U=d.useMemo(function(){return B(Kg(y))},[y]),Y=r==="time"&&!U.length,ee=d.useMemo(function(){return Y?B([C]):U},[Y,U,C]),ie=Y?C:U,Z=d.useMemo(function(){return ee.length?ee.some(function(fe){return b(fe)}):!0},[ee,b]),X=function(){Y&&w(C),k(),S()},ae=d.createElement("div",{className:"".concat(E,"-panel-layout")},d.createElement(rKe,{prefixCls:E,presets:u,onClick:p,onHover:f}),d.createElement("div",null,d.createElement(nKe,tt({},e,{value:ie})),d.createElement(Hqe,tt({},e,{showNow:o?!1:i,invalid:Z,onSubmit:X}))));t&&(ae=t(ae));var oe="".concat($,"-container"),le="marginLeft",ce="marginRight",pe=d.createElement("div",{onMouseDown:g,tabIndex:-1,className:Ee(oe,"".concat(E,"-").concat(n,"-panel-container")),style:ne(ne({},M?ce:le,K),M?le:ce,"auto"),onFocus:h,onBlur:m},ae);if(a){var me=M8(c,M),re=$me(me,M);pe=d.createElement("div",{onMouseDown:g,ref:R,className:Ee("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:P,className:"".concat(E,"-range-arrow"),style:ne({},re,l)}),d.createElement(Go,{onResize:V},pe))}return pe}function nge(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,y=e.onKeyDown,w=e.onChange,b=e.activeHelp,C=e.name,k=e.autoComplete,S=e.id,_=e.value,E=e.invalid,$=e.placeholder,M=e.disabled,P=e.activeIndex,R=e.allHelp,O=e.picker,j=function(B,U){var Y=i.locale.parse(a.locale,B,[U]);return Y&&i.isValidate(Y)?Y:null},I=n[0],A=d.useCallback(function(V){return Wa(V,{locale:a,format:I,generateConfig:i})},[a,i,I]),N=d.useMemo(function(){return _.map(A)},[_,A]),F=d.useMemo(function(){var V=O==="time"?8:10,B=typeof I=="function"?I(i.getNow()).length:I.length;return Math.max(V,B)+2},[I,O,i]),K=function(B){for(var U=0;U=s&&n<=l)return a;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?Lt:Bt));var Le=He+Qe,Je=Bt-Lt+1;return String(Lt+(Je+Le-Lt)%Je)};switch(ze){case"Backspace":case"Delete":Ve="",Be=Ke;break;case"ArrowLeft":Ve="",qe(-1);break;case"ArrowRight":Ve="",qe(1);break;case"ArrowUp":Ve="",Be=Et(1);break;case"ArrowDown":Ve="",Be=Et(-1);break;default:isNaN(Number(ze))||(Ve=V+ze,Be=Ve);break}if(Ve!==null&&(B(Ve),Ve.length>=Xe&&(qe(1),B(""))),Be!==null){var ut=le.slice(0,ve)+jB(Be,Xe)+le.slice($e);be(ut.slice(0,o.length))}oe({})},he=d.useRef();nr(function(){if(!(!O||!o||se.current)){if(!me.match(le)){be(o);return}return pe.current.setSelectionRange(ve,$e),he.current=rr(function(){pe.current.setSelectionRange(ve,$e)}),function(){rr.cancel(he.current)}}},[me,o,O,le,ee,ve,$e,ae,be]);var Ue=o?{onFocus:z,onBlur:G,onKeyDown:xe,onMouseDown:ye,onMouseUp:Oe,onPaste:we}:{};return d.createElement("div",{ref:ce,className:Ee(M,ne(ne({},"".concat(M,"-active"),n&&i),"".concat(M,"-placeholder"),c))},d.createElement($,tt({ref:pe,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:de,onBlur:H},Ue,{value:le,onChange:Se})),d.createElement(I8,{type:"suffix",icon:a}),v)}),uKe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],dKe=["index"],fKe=["insetInlineStart","insetInlineEnd"];function pKe(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,p=e.style,h=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var b=e.onActiveOffset,C=e.placement,k=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,_=e.tabIndex,E=Ht(e,uKe),$=w==="rtl",M=d.useContext(Tu),P=M.prefixCls,R=d.useMemo(function(){if(typeof n=="string")return[n];var pe=n||{};return[pe.start,pe.end]},[n]),O=d.useRef(),j=d.useRef(),I=d.useRef(),A=function(me){var re;return(re=[j,I][me])===null||re===void 0?void 0:re.current};d.useImperativeHandle(t,function(){return{nativeElement:O.current,focus:function(me){if(Kt(me)==="object"){var re,fe=me||{},ve=fe.index,$e=ve===void 0?0:ve,Ce=Ht(fe,dKe);(re=A($e))===null||re===void 0||re.focus(Ce)}else{var be;(be=A(me??0))===null||be===void 0||be.focus()}},blur:function(){var me,re;(me=A(0))===null||me===void 0||me.blur(),(re=A(1))===null||re===void 0||re.blur()}}});var N=rge(E),F=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),K=nge(q(q({},e),{},{id:R,placeholder:F})),L=Te(K,1),V=L[0],B=M8(C,$),U=$me(B,$),Y=B==null?void 0:B.toLowerCase().endsWith("right"),ee=d.useState({position:"absolute",width:0}),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=Vn(function(){var pe=A(l);if(pe){var me=pe.nativeElement,re=me.offsetWidth,fe=me.offsetLeft,ve=me.offsetParent,$e=(ve==null?void 0:ve.offsetWidth)||0,Ce=Y?$e-re-fe:fe;X(function(be){be.insetInlineStart,be.insetInlineEnd;var Se=Ht(be,fKe);return q(q({},Se),{},ne({width:re},U,Ce))}),b(Ce)}});d.useEffect(function(){ae()},[l]);var oe=i&&(g[0]&&!v[0]||g[1]&&!v[1]),le=S&&!v[0],ce=S&&!le&&!v[1];return d.createElement(Go,{onResize:ae},d.createElement("div",tt({},N,{className:Ee(P,"".concat(P,"-range"),ne(ne(ne(ne({},"".concat(P,"-focused"),c),"".concat(P,"-disabled"),v.every(function(pe){return pe})),"".concat(P,"-invalid"),y.some(function(pe){return pe})),"".concat(P,"-rtl"),$),f),style:p,ref:O,onClick:h,onMouseDown:function(me){var re=me.target;re!==j.current.inputElement&&re!==I.current.inputElement&&me.preventDefault(),k==null||k(me)}}),r&&d.createElement("div",{className:"".concat(P,"-prefix")},r),d.createElement(Kj,tt({ref:j},V(0),{autoFocus:le,tabIndex:_,"date-range":"start"})),d.createElement("div",{className:"".concat(P,"-range-separator")},s),d.createElement(Kj,tt({ref:I},V(1),{autoFocus:ce,tabIndex:_,"date-range":"end"})),d.createElement("div",{className:"".concat(P,"-active-bar"),style:Z}),d.createElement(I8,{type:"suffix",icon:a}),oe&&d.createElement(qj,{icon:i,onClear:m})))}var hKe=d.forwardRef(pKe);function iX(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function ES(e){return e===1?"end":"start"}function mKe(e,t){var n=zme(e,function(){var wn=e.disabled,An=e.allowEmpty,tr=iX(wn,!1),wr=iX(An,!1);return{disabled:tr,allowEmpty:wr}}),r=Te(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,f=i.styles,p=i.classNames,h=i.placement,m=i.defaultValue,g=i.value,v=i.needConfirm,y=i.onKeyDown,w=i.disabled,b=i.allowEmpty,C=i.disabledDate,k=i.minDate,S=i.maxDate,_=i.defaultOpen,E=i.open,$=i.onOpenChange,M=i.locale,P=i.generateConfig,R=i.picker,O=i.showNow,j=i.showToday,I=i.showTime,A=i.mode,N=i.onPanelChange,F=i.onCalendarChange,K=i.onOk,L=i.defaultPickerValue,V=i.pickerValue,B=i.onPickerValueChange,U=i.inputReadOnly,Y=i.suffixIcon,ee=i.onFocus,ie=i.onBlur,Z=i.presets,X=i.ranges,ae=i.components,oe=i.cellRender,le=i.dateRender,ce=i.monthCellRender,pe=i.onClick,me=Ume(t),re=Hme(E,_,w,$),fe=Te(re,2),ve=fe[0],$e=fe[1],Ce=function(An,tr){(w.some(function(wr){return!wr})||!An)&&$e(An,tr)},be=Xme(P,M,s,!0,!1,m,g,F,K),Se=Te(be,5),we=Se[0],se=Se[1],ye=Se[2],Oe=Se[3],z=Se[4],H=ye(),G=Vme(w,b,ve),de=Te(G,9),xe=de[0],he=de[1],Ue=de[2],We=de[3],ge=de[4],ze=de[5],Ve=de[6],Be=de[7],Xe=de[8],Ke=function(An,tr){he(!0),ee==null||ee(An,{range:ES(tr??We)})},qe=function(An,tr){he(!1),ie==null||ie(An,{range:ES(tr??We)})},Et=d.useMemo(function(){if(!I)return null;var wn=I.disabledTime,An=wn?function(tr){var wr=ES(We),xr=Pme(H,Ve,We);return wn(tr,wr,{from:xr})}:void 0;return q(q({},I),{},{disabledTime:An})},[I,We,H,Ve]),ut=In([R,R],{value:A}),gt=Te(ut,2),Qe=gt[0],nt=gt[1],jt=Qe[We]||R,Lt=jt==="date"&&Et?"datetime":jt,Bt=Lt===R&&Lt!=="time",Ut=Qme(R,jt,O,j,!0),Ne=Zme(i,we,se,ye,Oe,w,s,xe,ve,c),He=Te(Ne,2),Le=He[0],Je=He[1],pt=Fqe(H,w,Ve,P,M,C),xt=Rme(H,c,b),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1],st=qme(P,M,H,Qe,ve,We,a,Bt,L,V,Et==null?void 0:Et.defaultOpenValue,B,k,S),Ct=Te(st,2),kt=Ct[0],qt=Ct[1],vt=Vn(function(wn,An,tr){var wr=Q2(Qe,We,An);if((wr[0]!==Qe[0]||wr[1]!==Qe[1])&&nt(wr),N&&tr!==!1){var xr=lt(H);wn&&(xr[We]=wn),N(xr,wr)}}),At=function(An,tr){return Q2(H,tr,An)},dt=function(An,tr){var wr=H;An&&(wr=At(An,We)),Be(We);var xr=ze(wr);Oe(wr),Le(We,xr===null),xr===null?Ce(!1,{force:!0}):tr||me.current.focus({index:xr})},De=function(An){var tr,wr=An.target.getRootNode();if(!me.current.nativeElement.contains((tr=wr.activeElement)!==null&&tr!==void 0?tr:document.activeElement)){var xr=w.findIndex(function(Ic){return!Ic});xr>=0&&me.current.focus({index:xr})}Ce(!0),pe==null||pe(An)},Ye=function(){Je(null),Ce(!1,{force:!0})},ot=d.useState(null),Re=Te(ot,2),It=Re[0],rt=Re[1],$t=d.useState(null),Mt=Te($t,2),dn=Mt[0],pn=Mt[1],T=d.useMemo(function(){return dn||H},[H,dn]);d.useEffect(function(){ve||pn(null)},[ve]);var D=d.useState(0),J=Te(D,2),ke=J[0],Ie=J[1],it=Wme(Z,X),Ft=function(An){pn(An),rt("preset")},rn=function(An){var tr=Je(An);tr&&Ce(!1,{force:!0})},On=function(An){dt(An)},Er=function(An){pn(An?At(An,We):null),rt("cell")},Mr=function(An){Ce(!0),Ke(An)},mr=function(){Ue("panel")},pr=function(An){var tr=Q2(H,We,An);Oe(tr),!v&&!o&&a===Lt&&dt(An)},cn=function(){Ce(!1)},Sn=NB(oe,le,ce,ES(We)),gr=H[We]||null,on=Vn(function(wn){return c(wn,{activeIndex:We})}),Ze=d.useMemo(function(){var wn=Fi(i,!1),An=$r(i,[].concat(lt(Object.keys(wn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return An},[i]),bt=d.createElement(tge,tt({},Ze,{showNow:Ut,showTime:Et,range:!0,multiplePanel:Bt,activeOffset:ke,placement:h,disabledDate:pt,onFocus:Mr,onBlur:qe,onPanelMouseDown:mr,picker:R,mode:jt,internalMode:Lt,onPanelChange:vt,format:l,value:gr,isInvalid:on,onChange:null,onSelect:pr,pickerValue:kt,defaultOpenValue:Kg(I==null?void 0:I.defaultOpenValue)[We],onPickerValueChange:qt,hoverValue:T,onHover:Er,needConfirm:v,onSubmit:dt,onOk:z,presets:it,onPresetHover:Ft,onPresetSubmit:rn,onNow:On,cellRender:Sn})),sn=function(An,tr){var wr=At(An,tr);Oe(wr)},Pn=function(){Ue("input")},qn=function(An,tr){var wr=Ve.length,xr=Ve[wr-1];if(wr&&xr!==tr&&v&&!b[xr]&&!Xe(xr)&&H[xr]){me.current.focus({index:xr});return}Ue("input"),Ce(!0,{inherit:!0}),We!==tr&&ve&&!v&&o&&dt(null,!0),ge(tr),Ke(An,tr)},ln=function(An,tr){if(Ce(!1),!v&&Ue()==="input"){var wr=ze(H);Le(We,wr===null)}qe(An,tr)},or=function(An,tr){An.key==="Tab"&&dt(null,!0),y==null||y(An,tr)},ri=d.useMemo(function(){return{prefixCls:u,locale:M,generateConfig:P,button:ae.button,input:ae.input}},[u,M,P,ae.button,ae.input]);return nr(function(){ve&&We!==void 0&&vt(null,R,!1)},[ve,We,R]),nr(function(){var wn=Ue();!ve&&wn==="input"&&(Ce(!1),dt(null,!0)),!ve&&o&&!v&&wn==="panel"&&(Ce(!0),dt())},[ve]),d.createElement(Tu.Provider,{value:ri},d.createElement(Mme,tt({},Ome(i),{popupElement:bt,popupStyle:f.popup,popupClassName:p.popup,visible:ve,onClose:cn,range:!0}),d.createElement(hKe,tt({},i,{ref:me,suffixIcon:Y,activeIndex:xe||ve?We:null,activeHelp:!!dn,allHelp:!!dn&&It==="preset",focused:xe,onFocus:qn,onBlur:ln,onKeyDown:or,onSubmit:dt,value:T,maskFormat:l,onChange:sn,onInputChange:Pn,format:s,inputReadOnly:U,disabled:w,open:ve,onOpenChange:Ce,onClick:De,onClear:Ye,invalid:Ot,onInvalid:Pt,onActiveOffset:Ie}))))}var gKe=d.forwardRef(mKe);function vKe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?"×":i,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function h(v,y){return d.createElement("span",{className:Ee("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&y&&d.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},a))}function m(v){var y=o(v),w=function(C){C&&C.stopPropagation(),r(v)};return h(y,w)}function g(v){var y="+ ".concat(v.length," ...");return h(y)}return d.createElement("div",{className:u},d.createElement(lu,{prefixCls:p,data:n,renderItem:m,renderRest:g,itemKey:function(y){return o(y)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var yKe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function bKe(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,p=e.onClick,h=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var w=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var C=e.disabled,k=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var _=e.onMouseDown;e.required,e["aria-required"];var E=e.autoFocus,$=e.tabIndex,M=e.removeIcon,P=Ht(e,yKe),R=S==="rtl",O=d.useContext(Tu),j=O.prefixCls,I=d.useRef(),A=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:I.current,focus:function(Z){var X;(X=A.current)===null||X===void 0||X.focus(Z)},blur:function(){var Z;(Z=A.current)===null||Z===void 0||Z.blur()}}});var N=rge(P),F=function(Z){v([Z])},K=function(Z){var X=g.filter(function(ae){return ae&&!Vo(l,s,ae,Z,m)});v(X),n||y()},L=nge(q(q({},e),{},{onChange:F}),function(ie){var Z=ie.valueTexts;return{value:Z[0]||"",active:o}}),V=Te(L,2),B=V[0],U=V[1],Y=!!(i&&g.length&&!C),ee=w?d.createElement(d.Fragment,null,d.createElement(vKe,{prefixCls:j,value:g,onRemove:K,formatDate:U,maxTagCount:b,disabled:C,removeIcon:M,placeholder:c}),d.createElement("input",{className:"".concat(j,"-multiple-input"),value:g.map(U).join(","),ref:A,readOnly:!0,autoFocus:E,tabIndex:$}),d.createElement(I8,{type:"suffix",icon:a}),Y&&d.createElement(qj,{icon:i,onClear:h})):d.createElement(Kj,tt({ref:A},B(),{autoFocus:E,tabIndex:$,suffixIcon:a,clearIcon:Y&&d.createElement(qj,{icon:i,onClear:h}),showActiveCls:!1}));return d.createElement("div",tt({},N,{className:Ee(j,ne(ne(ne(ne(ne({},"".concat(j,"-multiple"),w),"".concat(j,"-focused"),o),"".concat(j,"-disabled"),C),"".concat(j,"-invalid"),k),"".concat(j,"-rtl"),R),u),style:f,ref:I,onClick:p,onMouseDown:function(Z){var X,ae=Z.target;ae!==((X=A.current)===null||X===void 0?void 0:X.inputElement)&&Z.preventDefault(),_==null||_(Z)}}),r&&d.createElement("div",{className:"".concat(j,"-prefix")},r),ee)}var wKe=d.forwardRef(bKe);function xKe(e,t){var n=zme(e),r=Te(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i,f=u.prefixCls,p=u.styles,h=u.classNames,m=u.order,g=u.defaultValue,v=u.value,y=u.needConfirm,w=u.onChange,b=u.onKeyDown,C=u.disabled,k=u.disabledDate,S=u.minDate,_=u.maxDate,E=u.defaultOpen,$=u.open,M=u.onOpenChange,P=u.locale,R=u.generateConfig,O=u.picker,j=u.showNow,I=u.showToday,A=u.showTime,N=u.mode,F=u.onPanelChange,K=u.onCalendarChange,L=u.onOk,V=u.multiple,B=u.defaultPickerValue,U=u.pickerValue,Y=u.onPickerValueChange,ee=u.inputReadOnly,ie=u.suffixIcon,Z=u.removeIcon,X=u.onFocus,ae=u.onBlur,oe=u.presets,le=u.components,ce=u.cellRender,pe=u.dateRender,me=u.monthCellRender,re=u.onClick,fe=Ume(t);function ve(on){return on===null?null:V?on:on[0]}var $e=Jme(R,P,a),Ce=Hme($,E,[C],M),be=Te(Ce,2),Se=be[0],we=be[1],se=function(Ze,bt,sn){if(K){var Pn=q({},sn);delete Pn.range,K(ve(Ze),ve(bt),Pn)}},ye=function(Ze){L==null||L(ve(Ze))},Oe=Xme(R,P,s,!1,m,g,v,se,ye),z=Te(Oe,5),H=z[0],G=z[1],de=z[2],xe=z[3],he=z[4],Ue=de(),We=Vme([C]),ge=Te(We,4),ze=ge[0],Ve=ge[1],Be=ge[2],Xe=ge[3],Ke=function(Ze){Ve(!0),X==null||X(Ze,{})},qe=function(Ze){Ve(!1),ae==null||ae(Ze,{})},Et=In(O,{value:N}),ut=Te(Et,2),gt=ut[0],Qe=ut[1],nt=gt==="date"&&A?"datetime":gt,jt=Qme(O,gt,j,I),Lt=w&&function(on,Ze){w(ve(on),ve(Ze))},Bt=Zme(q(q({},i),{},{onChange:Lt}),H,G,de,xe,[],s,ze,Se,c),Ut=Te(Bt,2),Ne=Ut[1],He=Rme(Ue,c),Le=Te(He,2),Je=Le[0],pt=Le[1],xt=d.useMemo(function(){return Je.some(function(on){return on})},[Je]),Nt=function(Ze,bt){if(Y){var sn=q(q({},bt),{},{mode:bt.mode[0]});delete sn.range,Y(Ze[0],sn)}},Ot=qme(R,P,Ue,[gt],Se,Xe,a,!1,B,U,Kg(A==null?void 0:A.defaultOpenValue),Nt,S,_),Pt=Te(Ot,2),st=Pt[0],Ct=Pt[1],kt=Vn(function(on,Ze,bt){if(Qe(Ze),F&&bt!==!1){var sn=on||Ue[Ue.length-1];F(sn,Ze)}}),qt=function(){Ne(de()),we(!1,{force:!0})},vt=function(Ze){!C&&!fe.current.nativeElement.contains(document.activeElement)&&fe.current.focus(),we(!0),re==null||re(Ze)},At=function(){Ne(null),we(!1,{force:!0})},dt=d.useState(null),De=Te(dt,2),Ye=De[0],ot=De[1],Re=d.useState(null),It=Te(Re,2),rt=It[0],$t=It[1],Mt=d.useMemo(function(){var on=[rt].concat(lt(Ue)).filter(function(Ze){return Ze});return V?on:on.slice(0,1)},[Ue,rt,V]),dn=d.useMemo(function(){return!V&&rt?[rt]:Ue.filter(function(on){return on})},[Ue,rt,V]);d.useEffect(function(){Se||$t(null)},[Se]);var pn=Wme(oe),T=function(Ze){$t(Ze),ot("preset")},D=function(Ze){var bt=V?$e(de(),Ze):[Ze],sn=Ne(bt);sn&&!V&&we(!1,{force:!0})},J=function(Ze){D(Ze)},ke=function(Ze){$t(Ze),ot("cell")},Ie=function(Ze){we(!0),Ke(Ze)},it=function(Ze){if(Be("panel"),!(V&&nt!==O)){var bt=V?$e(de(),Ze):[Ze];xe(bt),!y&&!o&&a===nt&&qt()}},Ft=function(){we(!1)},rn=NB(ce,pe,me),On=d.useMemo(function(){var on=Fi(i,!1),Ze=$r(i,[].concat(lt(Object.keys(on)),["onChange","onCalendarChange","style","className","onPanelChange"]));return q(q({},Ze),{},{multiple:i.multiple})},[i]),Er=d.createElement(tge,tt({},On,{showNow:jt,showTime:A,disabledDate:k,onFocus:Ie,onBlur:qe,picker:O,mode:gt,internalMode:nt,onPanelChange:kt,format:l,value:Ue,isInvalid:c,onChange:null,onSelect:it,pickerValue:st,defaultOpenValue:A==null?void 0:A.defaultOpenValue,onPickerValueChange:Ct,hoverValue:Mt,onHover:ke,needConfirm:y,onSubmit:qt,onOk:he,presets:pn,onPresetHover:T,onPresetSubmit:D,onNow:J,cellRender:rn})),Mr=function(Ze){xe(Ze)},mr=function(){Be("input")},pr=function(Ze){Be("input"),we(!0,{inherit:!0}),Ke(Ze)},cn=function(Ze){we(!1),qe(Ze)},Sn=function(Ze,bt){Ze.key==="Tab"&&qt(),b==null||b(Ze,bt)},gr=d.useMemo(function(){return{prefixCls:f,locale:P,generateConfig:R,button:le.button,input:le.input}},[f,P,R,le.button,le.input]);return nr(function(){Se&&Xe!==void 0&&kt(null,O,!1)},[Se,Xe,O]),nr(function(){var on=Be();!Se&&on==="input"&&(we(!1),qt()),!Se&&o&&!y&&on==="panel"&&(we(!0),qt())},[Se]),d.createElement(Tu.Provider,{value:gr},d.createElement(Mme,tt({},Ome(i),{popupElement:Er,popupStyle:p.popup,popupClassName:h.popup,visible:Se,onClose:Ft}),d.createElement(wKe,tt({},i,{ref:fe,suffixIcon:ie,removeIcon:Z,activeHelp:!!rt,allHelp:!!rt&&Ye==="preset",focused:ze,onFocus:pr,onBlur:cn,onKeyDown:Sn,onSubmit:qt,value:dn,maskFormat:l,onChange:Mr,onInputChange:mr,internalPicker:a,format:s,inputReadOnly:ee,disabled:C,open:Se,onOpenChange:we,onClick:vt,onClear:At,invalid:xt,onInvalid:function(Ze){pt(Ze,0)}}))))}var SKe=d.forwardRef(xKe);const ige=d.createContext(null),CKe=ige.Provider,age=d.createContext(null),_Ke=age.Provider;var kKe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],oge=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,p=e.title,h=e.onChange,m=Ht(e,kKe),g=d.useRef(null),v=d.useRef(null),y=In(c,{value:o}),w=Te(y,2),b=w[0],C=w[1];d.useImperativeHandle(t,function(){return{focus:function(E){var $;($=g.current)===null||$===void 0||$.focus(E)},blur:function(){var E;(E=g.current)===null||E===void 0||E.blur()},input:g.current,nativeElement:v.current}});var k=Ee(r,i,ne(ne({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),s)),S=function(E){s||("checked"in e||C(E.target.checked),h==null||h({target:q(q({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return d.createElement("span",{className:k,title:p,style:a,ref:v},d.createElement("input",tt({},m,{className:"".concat(r,"-input"),ref:g,onChange:S,disabled:s,checked:!!b,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function sge(e){const t=te.useRef(null),n=()=>{rr.cancel(t.current),t.current=null};return[()=>{n(),t.current=rr(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const EKe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},ar(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},$Ke=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:h,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:y,calc:w}=e,b=`${t}-inner`,k=w(i).sub(w(4).mul(2)),S=w(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Me(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},yc(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:w(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:w(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${w(k).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},MKe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:p,controlHeightLG:h,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:y,borderRadiusLG:w,buttonCheckedBg:b,buttonSolidCheckedColor:C,colorTextDisabled:k,colorBgContainerDisabled:S,buttonCheckedBgDisabled:_,buttonCheckedColorDisabled:E,colorPrimary:$,colorPrimaryHover:M,colorPrimaryActive:P,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:j,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Me(I(n).sub(I(i).mul(2)).equal()),background:f,border:`${Me(i)} ${a} ${o}`,borderBlockStartWidth:I(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(i).mul(-1).equal(),insetInlineStart:I(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Me(i)} ${a} ${o}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:h,fontSize:p,lineHeight:Me(I(h).sub(I(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:m,paddingInline:I(g).sub(i).equal(),paddingBlock:0,lineHeight:Me(I(m).sub(I(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},yc(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:b,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:R,borderColor:R,"&:hover":{color:C,background:O,borderColor:O},"&:active":{color:C,background:j,borderColor:j}},"&-disabled":{color:k,backgroundColor:S,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:k,backgroundColor:S,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:_,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},TKe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:h,colorWhite:m}=e,g=4,v=a,y=t?v-g*2:v-(g+i)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:m,radioBgColor:t?s:f}},lge=Jn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Me(n)} ${t}`,a=Hn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[EKe(a),$Ke(a),MKe(a)]},TKe,{unitless:{radioSize:!0,dotSize:!0}});var PKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const i=d.useContext(ige),a=d.useContext(age),{getPrefixCls:o,direction:s,radio:l}=d.useContext(Xt),c=d.useRef(null),u=ga(t,c),{isFormItemInput:f}=d.useContext(oa),p=A=>{var N,F;(N=e.onChange)===null||N===void 0||N.call(e,A),(F=i==null?void 0:i.onChange)===null||F===void 0||F.call(i,A)},{prefixCls:h,className:m,rootClassName:g,children:v,style:y,title:w}=e,b=PKe(e,["prefixCls","className","rootClassName","children","style","title"]),C=o("radio",h),k=((i==null?void 0:i.optionType)||a)==="button",S=k?`${C}-button`:C,_=qr(C),[E,$,M]=lge(C,_),P=Object.assign({},b),R=d.useContext(ma);i&&(P.name=i.name,P.onChange=p,P.checked=e.value===i.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:i.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:R;const O=Ee(`${S}-wrapper`,{[`${S}-wrapper-checked`]:P.checked,[`${S}-wrapper-disabled`]:P.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:f,[`${S}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,m,g,$,M,_),[j,I]=sge(P.onClick);return E(d.createElement(x4,{component:"Radio",disabled:P.disabled},d.createElement("label",{className:O,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:j},d.createElement(oge,Object.assign({},P,{className:Ee(P.className,{[t8]:!k}),type:"radio",prefixCls:S,ref:u,onClick:I})),v!==void 0?d.createElement("span",null,v):null)))},x6=d.forwardRef(OKe),RKe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Xt),i=h8(),{prefixCls:a,className:o,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:f,size:p,style:h,id:m,optionType:g,name:v=i,defaultValue:y,value:w,block:b=!1,onChange:C,onMouseEnter:k,onMouseLeave:S,onFocus:_,onBlur:E}=e,[$,M]=In(y,{value:w}),P=d.useCallback(B=>{const U=$,Y=B.target.value;"value"in e||M(Y),Y!==U&&(C==null||C(B))},[$,M,C]),R=n("radio",a),O=`${R}-group`,j=qr(R),[I,A,N]=lge(R,j);let F=f;l&&l.length>0&&(F=l.map(B=>typeof B=="string"||typeof B=="number"?d.createElement(x6,{key:B.toString(),prefixCls:R,disabled:u,value:B,checked:$===B},B):d.createElement(x6,{key:`radio-group-value-options-${B.value}`,prefixCls:R,disabled:B.disabled||u,value:B.value,checked:$===B.value,title:B.title,style:B.style,id:B.id,required:B.required},B.label)));const K=Bi(p),L=Ee(O,`${O}-${c}`,{[`${O}-${K}`]:K,[`${O}-rtl`]:r==="rtl",[`${O}-block`]:b},o,s,A,N,j),V=d.useMemo(()=>({onChange:P,value:$,disabled:u,name:v,optionType:g,block:b}),[P,$,u,v,g,b]);return I(d.createElement("div",Object.assign({},Fi(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:k,onMouseLeave:S,onFocus:_,onBlur:E,id:m,ref:t}),d.createElement(CKe,{value:V},F)))}),IKe=d.memo(RKe);var jKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n}=d.useContext(Xt),{prefixCls:r}=e,i=jKe(e,["prefixCls"]),a=n("radio",r);return d.createElement(_Ke,{value:"button"},d.createElement(x6,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},AKe=d.forwardRef(NKe),us=x6;us.Button=AKe;us.Group=IKe;us.__ANT_RADIO=!0;function Iy(e){return Hn(e,{inputAffixPadding:e.paddingXXS})}const jy=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:h,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:y,colorWarningOutline:w,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:p,activeBorderColor:m,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${w}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},DKe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),P4=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},DKe(Hn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),BB=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),aX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},BB(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),j8=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BB(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},P4(e))}),aX(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),aX(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),oX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),cge=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},oX(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),oX(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},P4(e))}})}),N8=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},uge=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),sX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},uge(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),A8=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uge(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},P4(e))}),sX(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),sX(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),lX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),dge=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},lX(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),lX(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),D8=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),fge=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Me(t)} ${Me(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},zB=e=>({padding:`${Me(e.paddingBlockSM)} ${Me(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),wg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Me(e.paddingBlock)} ${Me(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},D8(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},fge(e)),"&-sm":Object.assign({},zB(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),pge=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},fge(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},zB(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Me(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Me(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},vd()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:s8}}},_B(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},ar(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Vs(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Me(c)} ${Me(m)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Me(c)} ${Me(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Vs(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Me(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Me(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[yd(e,"slide-up"),yd(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down"),_y(e,"zoom-big")]]},dqe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},S8({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),x8(e)),fqe=Jn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Hn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[uqe(a),cqe(a)]},dqe,{resetStyle:!1}),$8=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:p,open:h,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:b=!0,placement:C="",overlay:k,transitionName:S}=e,{getPopupContainer:_,getPrefixCls:E,direction:$,dropdown:M}=d.useContext(Xt);Hg();const P=d.useMemo(()=>{const pe=E();return S!==void 0?S:C.includes("top")?`${pe}-slide-down`:`${pe}-slide-up`},[E,C,S]),R=d.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:$==="rtl"?"bottomRight":"bottomLeft",[C,$]),O=E("dropdown",i),j=qr(O),[I,A,N]=fqe(O,j),[,F]=ka(),K=d.Children.only(nVe(a)?d.createElement("span",null,a):a),L=aa(K,{className:Ee(`${O}-trigger`,{[`${O}-rtl`]:$==="rtl"},K.props.className),disabled:(t=K.props.disabled)!==null&&t!==void 0?t:s}),V=s?[]:o,B=!!(V!=null&&V.includes("contextMenu")),[U,Y]=In(!1,{value:h??g}),ee=Vn(pe=>{m==null||m(pe,{source:"trigger"}),v==null||v(pe),Y(pe)}),ie=Ee(u,f,A,N,j,M==null?void 0:M.className,{[`${O}-rtl`]:$==="rtl"}),Z=Bhe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:b,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),X=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),Y(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ae=()=>{let pe;return n!=null&&n.items?pe=d.createElement(ks,Object.assign({},n)):typeof k=="function"?pe=k():pe=k,l&&(pe=l(pe)),pe=d.Children.only(typeof pe=="string"?d.createElement("span",null,pe):pe),d.createElement(JVe,{prefixCls:`${O}-menu`,rootClassName:Ee(N,j),expandIcon:d.createElement("span",{className:`${O}-menu-submenu-arrow`},d.createElement(bc,{className:`${O}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:me=>{}},pe)},[oe,le]=$c("Dropdown",p==null?void 0:p.zIndex);let ce=d.createElement(Ghe,Object.assign({alignPoint:B},$r(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:w,visible:U,builtinPlacements:Z,arrow:!!r,overlayClassName:ie,prefixCls:O,getPopupContainer:c||_,transitionName:P,trigger:V,overlay:ae,placement:R,onVisibleChange:ee,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),p),{zIndex:oe})}),L);return oe&&(ce=d.createElement(v4.Provider,{value:le},ce)),I(ce)},pqe=Gf($8,"align",void 0,"dropdown",e=>e),hqe=e=>d.createElement(pqe,Object.assign({},e),d.createElement("span",null));$8._InternalPanelDoNotUseOrYouWillBeFired=hqe;var hme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",h="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var I=["th","st","nd","rd"],A=j%100;return"["+j+(I[(A-20)%10]||I[A]||I[0])+"]"}},b=function(j,I,A){var N=String(j);return!N||N.length>=I?j:""+Array(I+1-N.length).join(A)+j},C={s:b,z:function(j){var I=-j.utcOffset(),A=Math.abs(I),N=Math.floor(A/60),F=A%60;return(I<=0?"+":"-")+b(N,2,"0")+":"+b(F,2,"0")},m:function j(I,A){if(I.date()1)return j(L[0])}else{var V=I.name;S[V]=I,F=V}return!N&&F&&(k=F),F||!N&&k},M=function(j,I){if(E(j))return j.clone();var A=typeof I=="object"?I:{};return A.date=j,A.args=arguments,new R(A)},P=C;P.l=$,P.i=E,P.w=function(j,I){return M(j,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var R=function(){function j(A){this.$L=$(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[_]=!0}var I=j.prototype;return I.parse=function(A){this.$d=function(N){var F=N.date,K=N.utc;if(F===null)return new Date(NaN);if(P.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var L=F.match(v);if(L){var V=L[2]-1||0,B=(L[7]||"0").substring(0,3);return K?new Date(Date.UTC(L[1],V,L[3]||1,L[4]||0,L[5]||0,L[6]||0,B)):new Date(L[1],V,L[3]||1,L[4]||0,L[5]||0,L[6]||0,B)}}return new Date(F)}(A),this.init()},I.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},I.$utils=function(){return P},I.isValid=function(){return this.$d.toString()!==g},I.isSame=function(A,N){var F=M(A);return this.startOf(N)<=F&&F<=this.endOf(N)},I.isAfter=function(A,N){return M(A)25){var u=o(this).startOf(r).add(1,r).date(c),f=o(this).endOf(n);if(u.isBefore(f))return 1}var p=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(wme);var vqe=wme.exports;const IB=ei(vqe);var xme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(xme);var yqe=xme.exports;const bqe=ei(yqe);var Sme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var c=this.$utils(),u=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(u)}}})})(Sme);var wqe=Sme.exports;const Cme=ei(wqe);var _me={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var w=y.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(v)}],p=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var w,b=l.meridiem;if(b){for(var C=1;C<=24;C+=1)if(v.indexOf(b(C,0,y))>-1){w=C>12;break}}else w=v===(y?"pm":"PM");return w},m={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[a,u("day")],Do:[s,function(v){var y=l.ordinal,w=v.match(/\d+/);if(this.day=w[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],w:[o,u("week")],ww:[a,u("week")],M:[o,u("month")],MM:[a,u("month")],MMM:[s,function(v){var y=p("months"),w=(p("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[s,function(v){var y=p("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var y,w;y=v,w=l&&l.formats;for(var b=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,P,R){var O=R&&R.toUpperCase();return P||w[R]||n[R]||w[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,I,A){return I||A.slice(1)})})).match(r),C=b.length,k=0;k-1)return new Date((F==="X"?1e3:1)*N);var V=g(F)(N),B=V.year,U=V.month,Y=V.day,ee=V.hours,ie=V.minutes,Z=V.seconds,X=V.milliseconds,ae=V.zone,oe=V.week,le=new Date,ce=Y||(B||U?1:le.getDate()),pe=B||le.getFullYear(),me=0;B&&!U||(me=U>0?U-1:le.getMonth());var re,fe=ee||0,ve=ie||0,$e=Z||0,Ce=X||0;return ae?new Date(Date.UTC(pe,me,ce,fe,ve,$e,Ce+60*ae.offset*1e3)):K?new Date(Date.UTC(pe,me,ce,fe,ve,$e,Ce)):(re=new Date(pe,me,ce,fe,ve,$e,Ce),oe&&(re=L(re).week(oe).toDate()),re)}catch{return new Date("")}}(S,$,_,w),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),R&&S!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var j=$.length,I=1;I<=j;I+=1){E[1]=$[I-1];var A=w.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}I===j&&(this.$d=new Date(""))}else C.call(this,k)}}})})(_me);var xqe=_me.exports;const kme=ei(xqe);cr.extend(kme);cr.extend(Cme);cr.extend(vme);cr.extend(bme);cr.extend(IB);cr.extend(bqe);cr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var o=(a||"").replace("Wo","wo");return r.bind(this)(o)}});var Sqe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Gh=function(t){var n=Sqe[t];return n||t.split("_")[0]},Cqe={getNow:function(){var t=cr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return cr(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return cr().locale(Gh(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Gh(t)).weekday(0)},getWeek:function(t,n){return n.locale(Gh(t)).week()},getShortWeekDays:function(t){return cr().locale(Gh(t)).localeData().weekdaysMin()},getShortMonths:function(t){return cr().locale(Gh(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Gh(t)).format(r)},parse:function(t,n,r){for(var i=Gh(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),i=Te(r,2),a=i[0],o=i[1],s=function(u,f){o(function(p){return Q2(p,f,u)})},l=d.useMemo(function(){return a.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function Rme(e,t,n,r,i){var a="",o=[];return e&&o.push(i?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}function kqe(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,h=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,w=Rme(t,n,r,i,a);return q(q({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(w),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||w,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:y||v||"D"})}function Ime(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return te.useMemo(function(){return kqe(e,n,r,i,a,o)},[e,n,r,i,a,o])}function Db(e,t,n){return n??t.some(function(r){return e.includes(r)})}var Eqe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function $qe(e){var t=T8(e,Eqe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=Kt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function Mqe(e){return e&&typeof e=="string"}function jme(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function Nme(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var l,c,u,f=[a,o,s].some(function(m){return m===!1}),p=[a,o,s].some(function(m){return m===!0}),h=f?!0:!p;a=(l=a)!==null&&l!==void 0?l:h,o=(c=o)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[a,o,s,i]}function Ame(e){var t=e.showTime,n=$qe(e),r=Te(n,2),i=r[0],a=r[1],o=t&&Kt(t)==="object"?t:{},s=q(q({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,p=jme(c,u,f,l),h=Nme(p,c,u,f,l),m=Te(h,3);return c=m[0],u=m[1],f=m[2],[s,q(q({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,a]}function Dme(e,t,n,r,i){var a=e==="time";if(e==="datetime"||a){for(var o=r,s=Mme(e,i,null),l=s,c=[t,n],u=0;u1&&(o=t.addDate(o,-7)),o}function Wa(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function b6(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=e[o](r,e[i[s]](n)):r=e[o](r,0)}),r}function Rqe(e,t,n,r,i){var a=Vn(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!Wo(e,t,r,o,s.type)||i&&e.isAfter(o,i)&&!Wo(e,t,i,o,s.type))});return a}function Iqe(e,t,n){return d.useMemo(function(){var r=Mme(e,t,n),i=Kg(r),a=i[0],o=Kt(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function jqe(e,t,n){return typeof e[0]=="function"||n?!0:t}function Nqe(e,t,n,r){var i=Vn(function(a,o){var s=q({type:t},o);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=u.disabledHours,p=u.disabledMinutes,h=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,w=f||g,b=p||v,C=h||y,k=e.getHour(a),S=e.getMinute(a),_=e.getSecond(a),E=e.getMillisecond(a);if(w&&w().includes(k)||b&&b(k).includes(S)||C&&C(k,S).includes(_)||m&&m(k,S,_).includes(E))return!0}return!1});return i}function xS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&Kg(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Bme(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?"date":i,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,p=e.order,h=p===void 0?!0:p,m=e.components,g=m===void 0?{}:m,v=e.inputRender,y=e.allowClear,w=e.clearIcon,b=e.needConfirm,C=e.multiple,k=e.format,S=e.inputReadOnly,_=e.disabledDate,E=e.minDate,$=e.maxDate,M=e.showTime,P=e.value,R=e.defaultValue,O=e.pickerValue,j=e.defaultPickerValue,I=xS(P),A=xS(R),N=xS(O),F=xS(j),K=a==="date"&&M?"datetime":a,L=K==="time"||K==="datetime",V=L||C,B=b??L,U=Ame(e),Y=Te(U,4),ee=Y[0],ie=Y[1],Z=Y[2],X=Y[3],ae=Ime(r,ie),oe=d.useMemo(function(){return Dme(K,Z,X,ee,ae)},[K,Z,X,ee,ae]),le=d.useMemo(function(){return q(q({},e),{},{prefixCls:s,locale:ae,picker:a,styles:c,classNames:f,order:h,components:q({input:v},g),clearIcon:Tqe(s,y,w),showTime:oe,value:I,defaultValue:A,pickerValue:N,defaultPickerValue:F},t==null?void 0:t())},[e]),ce=Iqe(K,ae,k),pe=Te(ce,2),me=pe[0],re=pe[1],fe=jqe(me,S,C),ve=Rqe(n,r,_,E,$),$e=Nqe(n,a,ve,oe),Ce=d.useMemo(function(){return q(q({},le),{},{needConfirm:B,inputReadOnly:fe,disabledDate:ve})},[le,B,fe,ve]);return[Ce,K,V,me,re,$e]}function Aqe(e,t,n){var r=In(t,{value:e}),i=Te(r,2),a=i[0],o=i[1],s=te.useRef(e),l=te.useRef(),c=function(){rr.cancel(l.current)},u=Vn(function(){o(s.current),n&&a!==s.current&&n(s.current)}),f=Vn(function(p,h){c(),s.current=p,p||h?u():l.current=rr(u)});return te.useEffect(function(){return c},[]),[a,f]}function zme(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,a=Aqe(i,t||!1,r),o=Te(a,2),s=o[0],l=o[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function Hme(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var a;(a=t.current)===null||a===void 0||a.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function Ume(e,t){return d.useMemo(function(){return e||(t?(Br(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Te(n,2),i=r[0],a=r[1];return{label:i,value:a}})):[])},[e,t])}function FB(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,Vm(function(){if(e)r.current(e);else{var i=rr(function(){r.current(e)},n);return function(){rr.cancel(i)}}},[e])}function Wme(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),i=Te(r,2),a=i[0],o=i[1],s=d.useState(!1),l=Te(s,2),c=l[0],u=l[1],f=d.useRef([]),p=d.useRef(null),h=d.useRef(null),m=function(C){p.current=C},g=function(C){return p.current===C},v=function(C){u(C)},y=function(C){return C&&(h.current=C),h.current},w=function(C){var k=f.current,S=new Set(k.filter(function(E){return C[E]||t[E]})),_=k[k.length-1]===0?1:0;return S.size>=2||e[_]?null:_};return FB(c||n,function(){c||(f.current=[],m(null))}),d.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,v,y,a,o,w,f.current,m,g]}function Dqe(e,t,n,r,i,a){var o=n[n.length-1],s=function(c,u){var f=Te(e,2),p=f[0],h=f[1],m=q(q({},u),{},{from:Tme(e,n)});return o===1&&t[0]&&p&&!Wo(r,i,p,c,m.type)&&r.isAfter(p,c)||o===0&&t[1]&&h&&!Wo(r,i,h,c,m.type)&&r.isAfter(c,h)?!0:a==null?void 0:a(c,m)};return s}function C2(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var W9=[];function Vme(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:W9,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:W9,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:W9,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,m=o==="time",g=a||0,v=function(N){var F=e.getNow();return m&&(F=b6(e,F)),l[N]||n[N]||F},y=Te(c,2),w=y[0],b=y[1],C=In(function(){return v(0)},{value:w}),k=Te(C,2),S=k[0],_=k[1],E=In(function(){return v(1)},{value:b}),$=Te(E,2),M=$[0],P=$[1],R=d.useMemo(function(){var A=[S,M][g];return m?A:b6(e,A,u[g])},[m,S,M,g,e,u]),O=function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",K=[_,P][g];K(N);var L=[S,M];L[g]=N,f&&(!Wo(e,t,S,L[0],o)||!Wo(e,t,M,L[1],o))&&f(L,{source:F,range:g===1?"end":"start",mode:r})},j=function(N,F){if(s){var K={date:"month",week:"month",month:"year",quarter:"year"},L=K[o];if(L&&!Wo(e,t,N,F,L))return C2(e,o,F,-1);if(o==="year"&&N){var V=Math.floor(e.getYear(N)/10),B=Math.floor(e.getYear(F)/10);if(V!==B)return C2(e,o,F,-1)}}return F},I=d.useRef(null);return nr(function(){if(i&&!l[g]){var A=m?null:e.getNow();if(I.current!==null&&I.current!==g?A=[S,M][g^1]:n[g]?A=g===0?n[0]:j(n[0],n[1]):n[g^1]&&(A=n[g^1]),A){p&&e.isAfter(p,A)&&(A=p);var N=s?C2(e,o,A,1):A;h&&e.isAfter(N,h)&&(A=s?C2(e,o,h,-1):h),O(A,"reset")}}},[i,g,n[g]]),d.useEffect(function(){i?I.current=g:I.current=null},[i,g]),nr(function(){i&&l&&l[g]&&O(l[g],"reset")},[i,g]),[R,O]}function qme(e,t){var n=d.useRef(e),r=d.useState({}),i=Te(r,2),a=i[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,a({})};return[o,s,o(!0)]}var Fqe=[];function Kme(e,t,n){var r=function(o){return o.map(function(s){return Wa(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&o.push({label:jB(l,a),value:l,disabled:c})}return o}function LB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,p=f===void 0?100:f,h=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,w=d.useMemo(function(){return n||e.getNow()},[n,e]),b=d.useCallback(function(F){var K=(m==null?void 0:m(F))||{};return[K.disabledHours||g||SS,K.disabledMinutes||v||SS,K.disabledSeconds||y||SS,K.disabledMilliseconds||SS]},[m,g,v,y]),C=d.useMemo(function(){return b(w)},[w,b]),k=Te(C,4),S=k[0],_=k[1],E=k[2],$=k[3],M=d.useCallback(function(F,K,L,V){var B=CS(0,23,o,h,F()),U=i?B.map(function(Z){return q(q({},Z),{},{label:jB(Z.value%12||12,2)})}):B,Y=function(X){return CS(0,59,l,h,K(X))},ee=function(X,ae){return CS(0,59,u,h,L(X,ae))},ie=function(X,ae,oe){return CS(0,999,p,h,V(X,ae,oe),3)};return[U,Y,ee,ie]},[h,o,i,p,l,u]),P=d.useMemo(function(){return M(S,_,E,$)},[M,S,_,E,$]),R=Te(P,4),O=R[0],j=R[1],I=R[2],A=R[3],N=function(K,L){var V=function(){return O},B=j,U=I,Y=A;if(L){var ee=b(L),ie=Te(ee,4),Z=ie[0],X=ie[1],ae=ie[2],oe=ie[3],le=M(Z,X,ae,oe),ce=Te(le,4),pe=ce[0],me=ce[1],re=ce[2],fe=ce[3];V=function(){return pe},B=me,U=re,Y=fe}var ve=Bqe(K,V,B,U,Y,e);return ve};return[N,O,j,I,A]}function zqe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,p=d.useContext(Tu),h=p.prefixCls,m=p.locale,g=p.button,v=g===void 0?"button":g,y=u.getNow(),w=LB(u,a,y),b=Te(w,1),C=b[0],k=r==null?void 0:r(t),S=f(y,{type:t}),_=function(){if(!S){var j=C(y);s(j)}},E="".concat(h,"-now"),$="".concat(E,"-btn"),M=i&&d.createElement("li",{className:E},d.createElement("a",{className:Ee($,S&&"".concat($,"-disabled")),"aria-disabled":S,onClick:_},n==="date"?m.today:m.now)),P=c&&d.createElement("li",{className:"".concat(h,"-ok")},d.createElement(v,{disabled:l,onClick:o},m.ok)),R=(M||P)&&d.createElement("ul",{className:"".concat(h,"-ranges")},M,P);return!k&&!R?null:d.createElement("div",{className:"".concat(h,"-footer")},k&&d.createElement("div",{className:"".concat(h,"-footer-extra")},k),R)}function Qme(e,t,n){function r(i,a){var o=i.findIndex(function(l){return Wo(e,t,l,a,n)});if(o===-1)return[].concat(lt(i),[a]);var s=lt(i);return s.splice(o,1),s}return r}var Gg=d.createContext(null);function O8(){return d.useContext(Gg)}function Oy(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,p=e.values,h=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,w=e.superNextIcon,b=r.getNow(),C={now:b,values:p,pickerValue:h,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:y,superNextIcon:w};return[C,b]}var rh=d.createContext({});function M4(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,h=e.disabledDate,m=O8(),g=m.prefixCls,v=m.panelType,y=m.now,w=m.disabledDate,b=m.cellRender,C=m.onHover,k=m.hoverValue,S=m.hoverRangeValue,_=m.generateConfig,E=m.values,$=m.locale,M=m.onSelect,P=h||w,R="".concat(g,"-cell"),O=d.useContext(rh),j=O.onCellDblClick,I=function(U){return E.some(function(Y){return Y&&Wo(_,$,U,Y,v)})},A=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;we(ze),v==null||v(ze),Ve&&se(ze)},Oe=function(ze,Ve){ae(ze),Ve&&ye(Ve),se(Ve,ze)},z=function(ze){if($e(ze),ye(ze),X!==C){var Ve=["decade","year"],Be=[].concat(Ve,["month"]),Xe={quarter:[].concat(Ve,["quarter"]),week:[].concat(lt(Be),["week"]),date:[].concat(lt(Be),["date"])},Ke=Xe[C]||Be,qe=Ke.indexOf(X),Et=Ke[qe+1];Et&&Oe(Et,ze)}},H=d.useMemo(function(){var ge,ze;if(Array.isArray(_)){var Ve=Te(_,2);ge=Ve[0],ze=Ve[1]}else ge=_;return!ge&&!ze?null:(ge=ge||ze,ze=ze||ge,i.isAfter(ge,ze)?[ze,ge]:[ge,ze])},[_,i]),G=NB(E,$,M),de=R[oe]||Jqe[oe]||R8,xe=d.useContext(rh),he=d.useMemo(function(){return q(q({},xe),{},{hideHeader:O})},[xe,O]),Ue="".concat(j,"-panel"),We=T8(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(rh.Provider,{value:he},d.createElement("div",{ref:I,tabIndex:l,className:Ee(Ue,ne({},"".concat(Ue,"-rtl"),a==="rtl"))},d.createElement(de,tt({},We,{showTime:Y,prefixCls:j,locale:B,generateConfig:i,onModeChange:Oe,pickerValue:Se,onPickerValueChange:function(ze){ye(ze,!0)},value:fe[0],onSelect:z,values:fe,cellRender:G,hoverRangeValue:H,hoverValue:S}))))}var V9=d.memo(d.forwardRef(eKe));function tKe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Tu),u=c.prefixCls,f=c.generateConfig,p=d.useCallback(function(w,b){return C2(f,t,w,b)},[f,t]),h=d.useMemo(function(){return p(r,1)},[r,p]),m=function(b){i(p(b,-1))},g={onCellDblClick:function(){a&&o()}},v=t==="time",y=q(q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?y.hoverRangeValue=l:y.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(rh.Provider,{value:q(q({},g),{},{hideNext:!0})},d.createElement(V9,y)),d.createElement(rh.Provider,{value:q(q({},g),{},{hidePrev:!0})},d.createElement(V9,tt({},y,{pickerValue:h,onPickerValueChange:m})))):d.createElement(rh.Provider,{value:q({},g)},d.createElement(V9,y))}function nX(e){return typeof e=="function"?e():e}function nKe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return d.createElement("li",{key:o,onClick:function(){r(nX(l))},onMouseEnter:function(){i(nX(l))},onMouseLeave:function(){i(null)}},s)}))):null}function ege(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,a=e.range,o=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,h=e.onFocus,m=e.onBlur,g=e.onPanelMouseDown,v=e.direction,y=e.value,w=e.onSelect,b=e.isInvalid,C=e.defaultOpenValue,k=e.onOk,S=e.onSubmit,_=d.useContext(Tu),E=_.prefixCls,$="".concat(E,"-panel"),M=v==="rtl",P=d.useRef(null),R=d.useRef(null),O=d.useState(0),j=Te(O,2),I=j[0],A=j[1],N=d.useState(0),F=Te(N,2),K=F[0],L=F[1],V=function(ve){ve.offsetWidth&&A(ve.offsetWidth)};d.useEffect(function(){if(a){var fe,ve=((fe=P.current)===null||fe===void 0?void 0:fe.offsetWidth)||0,$e=I-ve;l<=$e?L(0):L(l+ve-I)}},[I,l,a]);function B(fe){return fe.filter(function(ve){return ve})}var U=d.useMemo(function(){return B(Kg(y))},[y]),Y=r==="time"&&!U.length,ee=d.useMemo(function(){return Y?B([C]):U},[Y,U,C]),ie=Y?C:U,Z=d.useMemo(function(){return ee.length?ee.some(function(fe){return b(fe)}):!0},[ee,b]),X=function(){Y&&w(C),k(),S()},ae=d.createElement("div",{className:"".concat(E,"-panel-layout")},d.createElement(nKe,{prefixCls:E,presets:u,onClick:p,onHover:f}),d.createElement("div",null,d.createElement(tKe,tt({},e,{value:ie})),d.createElement(zqe,tt({},e,{showNow:o?!1:i,invalid:Z,onSubmit:X}))));t&&(ae=t(ae));var oe="".concat($,"-container"),le="marginLeft",ce="marginRight",pe=d.createElement("div",{onMouseDown:g,tabIndex:-1,className:Ee(oe,"".concat(E,"-").concat(n,"-panel-container")),style:ne(ne({},M?ce:le,K),M?le:ce,"auto"),onFocus:h,onBlur:m},ae);if(a){var me=M8(c,M),re=Eme(me,M);pe=d.createElement("div",{onMouseDown:g,ref:R,className:Ee("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:P,className:"".concat(E,"-range-arrow"),style:ne({},re,l)}),d.createElement(Ko,{onResize:V},pe))}return pe}function tge(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,y=e.onKeyDown,w=e.onChange,b=e.activeHelp,C=e.name,k=e.autoComplete,S=e.id,_=e.value,E=e.invalid,$=e.placeholder,M=e.disabled,P=e.activeIndex,R=e.allHelp,O=e.picker,j=function(B,U){var Y=i.locale.parse(a.locale,B,[U]);return Y&&i.isValidate(Y)?Y:null},I=n[0],A=d.useCallback(function(V){return Wa(V,{locale:a,format:I,generateConfig:i})},[a,i,I]),N=d.useMemo(function(){return _.map(A)},[_,A]),F=d.useMemo(function(){var V=O==="time"?8:10,B=typeof I=="function"?I(i.getNow()).length:I.length;return Math.max(V,B)+2},[I,O,i]),K=function(B){for(var U=0;U=s&&n<=l)return a;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?Lt:Bt));var Le=He+Qe,Je=Bt-Lt+1;return String(Lt+(Je+Le-Lt)%Je)};switch(ze){case"Backspace":case"Delete":Ve="",Be=Ke;break;case"ArrowLeft":Ve="",qe(-1);break;case"ArrowRight":Ve="",qe(1);break;case"ArrowUp":Ve="",Be=Et(1);break;case"ArrowDown":Ve="",Be=Et(-1);break;default:isNaN(Number(ze))||(Ve=V+ze,Be=Ve);break}if(Ve!==null&&(B(Ve),Ve.length>=Xe&&(qe(1),B(""))),Be!==null){var ut=le.slice(0,ve)+jB(Be,Xe)+le.slice($e);be(ut.slice(0,o.length))}oe({})},he=d.useRef();nr(function(){if(!(!O||!o||se.current)){if(!me.match(le)){be(o);return}return pe.current.setSelectionRange(ve,$e),he.current=rr(function(){pe.current.setSelectionRange(ve,$e)}),function(){rr.cancel(he.current)}}},[me,o,O,le,ee,ve,$e,ae,be]);var Ue=o?{onFocus:z,onBlur:G,onKeyDown:xe,onMouseDown:ye,onMouseUp:Oe,onPaste:we}:{};return d.createElement("div",{ref:ce,className:Ee(M,ne(ne({},"".concat(M,"-active"),n&&i),"".concat(M,"-placeholder"),c))},d.createElement($,tt({ref:pe,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:de,onBlur:H},Ue,{value:le,onChange:Se})),d.createElement(I8,{type:"suffix",icon:a}),v)}),cKe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],uKe=["index"],dKe=["insetInlineStart","insetInlineEnd"];function fKe(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,p=e.style,h=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var b=e.onActiveOffset,C=e.placement,k=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,_=e.tabIndex,E=Ht(e,cKe),$=w==="rtl",M=d.useContext(Tu),P=M.prefixCls,R=d.useMemo(function(){if(typeof n=="string")return[n];var pe=n||{};return[pe.start,pe.end]},[n]),O=d.useRef(),j=d.useRef(),I=d.useRef(),A=function(me){var re;return(re=[j,I][me])===null||re===void 0?void 0:re.current};d.useImperativeHandle(t,function(){return{nativeElement:O.current,focus:function(me){if(Kt(me)==="object"){var re,fe=me||{},ve=fe.index,$e=ve===void 0?0:ve,Ce=Ht(fe,uKe);(re=A($e))===null||re===void 0||re.focus(Ce)}else{var be;(be=A(me??0))===null||be===void 0||be.focus()}},blur:function(){var me,re;(me=A(0))===null||me===void 0||me.blur(),(re=A(1))===null||re===void 0||re.blur()}}});var N=nge(E),F=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),K=tge(q(q({},e),{},{id:R,placeholder:F})),L=Te(K,1),V=L[0],B=M8(C,$),U=Eme(B,$),Y=B==null?void 0:B.toLowerCase().endsWith("right"),ee=d.useState({position:"absolute",width:0}),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=Vn(function(){var pe=A(l);if(pe){var me=pe.nativeElement,re=me.offsetWidth,fe=me.offsetLeft,ve=me.offsetParent,$e=(ve==null?void 0:ve.offsetWidth)||0,Ce=Y?$e-re-fe:fe;X(function(be){be.insetInlineStart,be.insetInlineEnd;var Se=Ht(be,dKe);return q(q({},Se),{},ne({width:re},U,Ce))}),b(Ce)}});d.useEffect(function(){ae()},[l]);var oe=i&&(g[0]&&!v[0]||g[1]&&!v[1]),le=S&&!v[0],ce=S&&!le&&!v[1];return d.createElement(Ko,{onResize:ae},d.createElement("div",tt({},N,{className:Ee(P,"".concat(P,"-range"),ne(ne(ne(ne({},"".concat(P,"-focused"),c),"".concat(P,"-disabled"),v.every(function(pe){return pe})),"".concat(P,"-invalid"),y.some(function(pe){return pe})),"".concat(P,"-rtl"),$),f),style:p,ref:O,onClick:h,onMouseDown:function(me){var re=me.target;re!==j.current.inputElement&&re!==I.current.inputElement&&me.preventDefault(),k==null||k(me)}}),r&&d.createElement("div",{className:"".concat(P,"-prefix")},r),d.createElement(Kj,tt({ref:j},V(0),{autoFocus:le,tabIndex:_,"date-range":"start"})),d.createElement("div",{className:"".concat(P,"-range-separator")},s),d.createElement(Kj,tt({ref:I},V(1),{autoFocus:ce,tabIndex:_,"date-range":"end"})),d.createElement("div",{className:"".concat(P,"-active-bar"),style:Z}),d.createElement(I8,{type:"suffix",icon:a}),oe&&d.createElement(qj,{icon:i,onClear:m})))}var pKe=d.forwardRef(fKe);function iX(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function kS(e){return e===1?"end":"start"}function hKe(e,t){var n=Bme(e,function(){var wn=e.disabled,An=e.allowEmpty,tr=iX(wn,!1),wr=iX(An,!1);return{disabled:tr,allowEmpty:wr}}),r=Te(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,f=i.styles,p=i.classNames,h=i.placement,m=i.defaultValue,g=i.value,v=i.needConfirm,y=i.onKeyDown,w=i.disabled,b=i.allowEmpty,C=i.disabledDate,k=i.minDate,S=i.maxDate,_=i.defaultOpen,E=i.open,$=i.onOpenChange,M=i.locale,P=i.generateConfig,R=i.picker,O=i.showNow,j=i.showToday,I=i.showTime,A=i.mode,N=i.onPanelChange,F=i.onCalendarChange,K=i.onOk,L=i.defaultPickerValue,V=i.pickerValue,B=i.onPickerValueChange,U=i.inputReadOnly,Y=i.suffixIcon,ee=i.onFocus,ie=i.onBlur,Z=i.presets,X=i.ranges,ae=i.components,oe=i.cellRender,le=i.dateRender,ce=i.monthCellRender,pe=i.onClick,me=Hme(t),re=zme(E,_,w,$),fe=Te(re,2),ve=fe[0],$e=fe[1],Ce=function(An,tr){(w.some(function(wr){return!wr})||!An)&&$e(An,tr)},be=Yme(P,M,s,!0,!1,m,g,F,K),Se=Te(be,5),we=Se[0],se=Se[1],ye=Se[2],Oe=Se[3],z=Se[4],H=ye(),G=Wme(w,b,ve),de=Te(G,9),xe=de[0],he=de[1],Ue=de[2],We=de[3],ge=de[4],ze=de[5],Ve=de[6],Be=de[7],Xe=de[8],Ke=function(An,tr){he(!0),ee==null||ee(An,{range:kS(tr??We)})},qe=function(An,tr){he(!1),ie==null||ie(An,{range:kS(tr??We)})},Et=d.useMemo(function(){if(!I)return null;var wn=I.disabledTime,An=wn?function(tr){var wr=kS(We),xr=Tme(H,Ve,We);return wn(tr,wr,{from:xr})}:void 0;return q(q({},I),{},{disabledTime:An})},[I,We,H,Ve]),ut=In([R,R],{value:A}),gt=Te(ut,2),Qe=gt[0],nt=gt[1],jt=Qe[We]||R,Lt=jt==="date"&&Et?"datetime":jt,Bt=Lt===R&&Lt!=="time",Ut=Zme(R,jt,O,j,!0),Ne=Xme(i,we,se,ye,Oe,w,s,xe,ve,c),He=Te(Ne,2),Le=He[0],Je=He[1],pt=Dqe(H,w,Ve,P,M,C),xt=Ome(H,c,b),Nt=Te(xt,2),Ot=Nt[0],Pt=Nt[1],st=Vme(P,M,H,Qe,ve,We,a,Bt,L,V,Et==null?void 0:Et.defaultOpenValue,B,k,S),Ct=Te(st,2),kt=Ct[0],qt=Ct[1],vt=Vn(function(wn,An,tr){var wr=Q2(Qe,We,An);if((wr[0]!==Qe[0]||wr[1]!==Qe[1])&&nt(wr),N&&tr!==!1){var xr=lt(H);wn&&(xr[We]=wn),N(xr,wr)}}),At=function(An,tr){return Q2(H,tr,An)},dt=function(An,tr){var wr=H;An&&(wr=At(An,We)),Be(We);var xr=ze(wr);Oe(wr),Le(We,xr===null),xr===null?Ce(!1,{force:!0}):tr||me.current.focus({index:xr})},De=function(An){var tr,wr=An.target.getRootNode();if(!me.current.nativeElement.contains((tr=wr.activeElement)!==null&&tr!==void 0?tr:document.activeElement)){var xr=w.findIndex(function(Ic){return!Ic});xr>=0&&me.current.focus({index:xr})}Ce(!0),pe==null||pe(An)},Ye=function(){Je(null),Ce(!1,{force:!0})},ot=d.useState(null),Re=Te(ot,2),It=Re[0],rt=Re[1],$t=d.useState(null),Mt=Te($t,2),dn=Mt[0],pn=Mt[1],T=d.useMemo(function(){return dn||H},[H,dn]);d.useEffect(function(){ve||pn(null)},[ve]);var D=d.useState(0),J=Te(D,2),ke=J[0],Ie=J[1],it=Ume(Z,X),Ft=function(An){pn(An),rt("preset")},rn=function(An){var tr=Je(An);tr&&Ce(!1,{force:!0})},On=function(An){dt(An)},Er=function(An){pn(An?At(An,We):null),rt("cell")},Mr=function(An){Ce(!0),Ke(An)},mr=function(){Ue("panel")},pr=function(An){var tr=Q2(H,We,An);Oe(tr),!v&&!o&&a===Lt&&dt(An)},cn=function(){Ce(!1)},Sn=NB(oe,le,ce,kS(We)),gr=H[We]||null,on=Vn(function(wn){return c(wn,{activeIndex:We})}),Ze=d.useMemo(function(){var wn=Fi(i,!1),An=$r(i,[].concat(lt(Object.keys(wn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return An},[i]),bt=d.createElement(ege,tt({},Ze,{showNow:Ut,showTime:Et,range:!0,multiplePanel:Bt,activeOffset:ke,placement:h,disabledDate:pt,onFocus:Mr,onBlur:qe,onPanelMouseDown:mr,picker:R,mode:jt,internalMode:Lt,onPanelChange:vt,format:l,value:gr,isInvalid:on,onChange:null,onSelect:pr,pickerValue:kt,defaultOpenValue:Kg(I==null?void 0:I.defaultOpenValue)[We],onPickerValueChange:qt,hoverValue:T,onHover:Er,needConfirm:v,onSubmit:dt,onOk:z,presets:it,onPresetHover:Ft,onPresetSubmit:rn,onNow:On,cellRender:Sn})),sn=function(An,tr){var wr=At(An,tr);Oe(wr)},Pn=function(){Ue("input")},qn=function(An,tr){var wr=Ve.length,xr=Ve[wr-1];if(wr&&xr!==tr&&v&&!b[xr]&&!Xe(xr)&&H[xr]){me.current.focus({index:xr});return}Ue("input"),Ce(!0,{inherit:!0}),We!==tr&&ve&&!v&&o&&dt(null,!0),ge(tr),Ke(An,tr)},ln=function(An,tr){if(Ce(!1),!v&&Ue()==="input"){var wr=ze(H);Le(We,wr===null)}qe(An,tr)},or=function(An,tr){An.key==="Tab"&&dt(null,!0),y==null||y(An,tr)},ri=d.useMemo(function(){return{prefixCls:u,locale:M,generateConfig:P,button:ae.button,input:ae.input}},[u,M,P,ae.button,ae.input]);return nr(function(){ve&&We!==void 0&&vt(null,R,!1)},[ve,We,R]),nr(function(){var wn=Ue();!ve&&wn==="input"&&(Ce(!1),dt(null,!0)),!ve&&o&&!v&&wn==="panel"&&(Ce(!0),dt())},[ve]),d.createElement(Tu.Provider,{value:ri},d.createElement($me,tt({},Pme(i),{popupElement:bt,popupStyle:f.popup,popupClassName:p.popup,visible:ve,onClose:cn,range:!0}),d.createElement(pKe,tt({},i,{ref:me,suffixIcon:Y,activeIndex:xe||ve?We:null,activeHelp:!!dn,allHelp:!!dn&&It==="preset",focused:xe,onFocus:qn,onBlur:ln,onKeyDown:or,onSubmit:dt,value:T,maskFormat:l,onChange:sn,onInputChange:Pn,format:s,inputReadOnly:U,disabled:w,open:ve,onOpenChange:Ce,onClick:De,onClear:Ye,invalid:Ot,onInvalid:Pt,onActiveOffset:Ie}))))}var mKe=d.forwardRef(hKe);function gKe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?"×":i,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function h(v,y){return d.createElement("span",{className:Ee("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&y&&d.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},a))}function m(v){var y=o(v),w=function(C){C&&C.stopPropagation(),r(v)};return h(y,w)}function g(v){var y="+ ".concat(v.length," ...");return h(y)}return d.createElement("div",{className:u},d.createElement(lu,{prefixCls:p,data:n,renderItem:m,renderRest:g,itemKey:function(y){return o(y)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var vKe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function yKe(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,p=e.onClick,h=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var w=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var C=e.disabled,k=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var _=e.onMouseDown;e.required,e["aria-required"];var E=e.autoFocus,$=e.tabIndex,M=e.removeIcon,P=Ht(e,vKe),R=S==="rtl",O=d.useContext(Tu),j=O.prefixCls,I=d.useRef(),A=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:I.current,focus:function(Z){var X;(X=A.current)===null||X===void 0||X.focus(Z)},blur:function(){var Z;(Z=A.current)===null||Z===void 0||Z.blur()}}});var N=nge(P),F=function(Z){v([Z])},K=function(Z){var X=g.filter(function(ae){return ae&&!Wo(l,s,ae,Z,m)});v(X),n||y()},L=tge(q(q({},e),{},{onChange:F}),function(ie){var Z=ie.valueTexts;return{value:Z[0]||"",active:o}}),V=Te(L,2),B=V[0],U=V[1],Y=!!(i&&g.length&&!C),ee=w?d.createElement(d.Fragment,null,d.createElement(gKe,{prefixCls:j,value:g,onRemove:K,formatDate:U,maxTagCount:b,disabled:C,removeIcon:M,placeholder:c}),d.createElement("input",{className:"".concat(j,"-multiple-input"),value:g.map(U).join(","),ref:A,readOnly:!0,autoFocus:E,tabIndex:$}),d.createElement(I8,{type:"suffix",icon:a}),Y&&d.createElement(qj,{icon:i,onClear:h})):d.createElement(Kj,tt({ref:A},B(),{autoFocus:E,tabIndex:$,suffixIcon:a,clearIcon:Y&&d.createElement(qj,{icon:i,onClear:h}),showActiveCls:!1}));return d.createElement("div",tt({},N,{className:Ee(j,ne(ne(ne(ne(ne({},"".concat(j,"-multiple"),w),"".concat(j,"-focused"),o),"".concat(j,"-disabled"),C),"".concat(j,"-invalid"),k),"".concat(j,"-rtl"),R),u),style:f,ref:I,onClick:p,onMouseDown:function(Z){var X,ae=Z.target;ae!==((X=A.current)===null||X===void 0?void 0:X.inputElement)&&Z.preventDefault(),_==null||_(Z)}}),r&&d.createElement("div",{className:"".concat(j,"-prefix")},r),ee)}var bKe=d.forwardRef(yKe);function wKe(e,t){var n=Bme(e),r=Te(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=i,f=u.prefixCls,p=u.styles,h=u.classNames,m=u.order,g=u.defaultValue,v=u.value,y=u.needConfirm,w=u.onChange,b=u.onKeyDown,C=u.disabled,k=u.disabledDate,S=u.minDate,_=u.maxDate,E=u.defaultOpen,$=u.open,M=u.onOpenChange,P=u.locale,R=u.generateConfig,O=u.picker,j=u.showNow,I=u.showToday,A=u.showTime,N=u.mode,F=u.onPanelChange,K=u.onCalendarChange,L=u.onOk,V=u.multiple,B=u.defaultPickerValue,U=u.pickerValue,Y=u.onPickerValueChange,ee=u.inputReadOnly,ie=u.suffixIcon,Z=u.removeIcon,X=u.onFocus,ae=u.onBlur,oe=u.presets,le=u.components,ce=u.cellRender,pe=u.dateRender,me=u.monthCellRender,re=u.onClick,fe=Hme(t);function ve(on){return on===null?null:V?on:on[0]}var $e=Qme(R,P,a),Ce=zme($,E,[C],M),be=Te(Ce,2),Se=be[0],we=be[1],se=function(Ze,bt,sn){if(K){var Pn=q({},sn);delete Pn.range,K(ve(Ze),ve(bt),Pn)}},ye=function(Ze){L==null||L(ve(Ze))},Oe=Yme(R,P,s,!1,m,g,v,se,ye),z=Te(Oe,5),H=z[0],G=z[1],de=z[2],xe=z[3],he=z[4],Ue=de(),We=Wme([C]),ge=Te(We,4),ze=ge[0],Ve=ge[1],Be=ge[2],Xe=ge[3],Ke=function(Ze){Ve(!0),X==null||X(Ze,{})},qe=function(Ze){Ve(!1),ae==null||ae(Ze,{})},Et=In(O,{value:N}),ut=Te(Et,2),gt=ut[0],Qe=ut[1],nt=gt==="date"&&A?"datetime":gt,jt=Zme(O,gt,j,I),Lt=w&&function(on,Ze){w(ve(on),ve(Ze))},Bt=Xme(q(q({},i),{},{onChange:Lt}),H,G,de,xe,[],s,ze,Se,c),Ut=Te(Bt,2),Ne=Ut[1],He=Ome(Ue,c),Le=Te(He,2),Je=Le[0],pt=Le[1],xt=d.useMemo(function(){return Je.some(function(on){return on})},[Je]),Nt=function(Ze,bt){if(Y){var sn=q(q({},bt),{},{mode:bt.mode[0]});delete sn.range,Y(Ze[0],sn)}},Ot=Vme(R,P,Ue,[gt],Se,Xe,a,!1,B,U,Kg(A==null?void 0:A.defaultOpenValue),Nt,S,_),Pt=Te(Ot,2),st=Pt[0],Ct=Pt[1],kt=Vn(function(on,Ze,bt){if(Qe(Ze),F&&bt!==!1){var sn=on||Ue[Ue.length-1];F(sn,Ze)}}),qt=function(){Ne(de()),we(!1,{force:!0})},vt=function(Ze){!C&&!fe.current.nativeElement.contains(document.activeElement)&&fe.current.focus(),we(!0),re==null||re(Ze)},At=function(){Ne(null),we(!1,{force:!0})},dt=d.useState(null),De=Te(dt,2),Ye=De[0],ot=De[1],Re=d.useState(null),It=Te(Re,2),rt=It[0],$t=It[1],Mt=d.useMemo(function(){var on=[rt].concat(lt(Ue)).filter(function(Ze){return Ze});return V?on:on.slice(0,1)},[Ue,rt,V]),dn=d.useMemo(function(){return!V&&rt?[rt]:Ue.filter(function(on){return on})},[Ue,rt,V]);d.useEffect(function(){Se||$t(null)},[Se]);var pn=Ume(oe),T=function(Ze){$t(Ze),ot("preset")},D=function(Ze){var bt=V?$e(de(),Ze):[Ze],sn=Ne(bt);sn&&!V&&we(!1,{force:!0})},J=function(Ze){D(Ze)},ke=function(Ze){$t(Ze),ot("cell")},Ie=function(Ze){we(!0),Ke(Ze)},it=function(Ze){if(Be("panel"),!(V&&nt!==O)){var bt=V?$e(de(),Ze):[Ze];xe(bt),!y&&!o&&a===nt&&qt()}},Ft=function(){we(!1)},rn=NB(ce,pe,me),On=d.useMemo(function(){var on=Fi(i,!1),Ze=$r(i,[].concat(lt(Object.keys(on)),["onChange","onCalendarChange","style","className","onPanelChange"]));return q(q({},Ze),{},{multiple:i.multiple})},[i]),Er=d.createElement(ege,tt({},On,{showNow:jt,showTime:A,disabledDate:k,onFocus:Ie,onBlur:qe,picker:O,mode:gt,internalMode:nt,onPanelChange:kt,format:l,value:Ue,isInvalid:c,onChange:null,onSelect:it,pickerValue:st,defaultOpenValue:A==null?void 0:A.defaultOpenValue,onPickerValueChange:Ct,hoverValue:Mt,onHover:ke,needConfirm:y,onSubmit:qt,onOk:he,presets:pn,onPresetHover:T,onPresetSubmit:D,onNow:J,cellRender:rn})),Mr=function(Ze){xe(Ze)},mr=function(){Be("input")},pr=function(Ze){Be("input"),we(!0,{inherit:!0}),Ke(Ze)},cn=function(Ze){we(!1),qe(Ze)},Sn=function(Ze,bt){Ze.key==="Tab"&&qt(),b==null||b(Ze,bt)},gr=d.useMemo(function(){return{prefixCls:f,locale:P,generateConfig:R,button:le.button,input:le.input}},[f,P,R,le.button,le.input]);return nr(function(){Se&&Xe!==void 0&&kt(null,O,!1)},[Se,Xe,O]),nr(function(){var on=Be();!Se&&on==="input"&&(we(!1),qt()),!Se&&o&&!y&&on==="panel"&&(we(!0),qt())},[Se]),d.createElement(Tu.Provider,{value:gr},d.createElement($me,tt({},Pme(i),{popupElement:Er,popupStyle:p.popup,popupClassName:h.popup,visible:Se,onClose:Ft}),d.createElement(bKe,tt({},i,{ref:fe,suffixIcon:ie,removeIcon:Z,activeHelp:!!rt,allHelp:!!rt&&Ye==="preset",focused:ze,onFocus:pr,onBlur:cn,onKeyDown:Sn,onSubmit:qt,value:dn,maskFormat:l,onChange:Mr,onInputChange:mr,internalPicker:a,format:s,inputReadOnly:ee,disabled:C,open:Se,onOpenChange:we,onClick:vt,onClear:At,invalid:xt,onInvalid:function(Ze){pt(Ze,0)}}))))}var xKe=d.forwardRef(wKe);const rge=d.createContext(null),SKe=rge.Provider,ige=d.createContext(null),CKe=ige.Provider;var _Ke=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],age=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,p=e.title,h=e.onChange,m=Ht(e,_Ke),g=d.useRef(null),v=d.useRef(null),y=In(c,{value:o}),w=Te(y,2),b=w[0],C=w[1];d.useImperativeHandle(t,function(){return{focus:function(E){var $;($=g.current)===null||$===void 0||$.focus(E)},blur:function(){var E;(E=g.current)===null||E===void 0||E.blur()},input:g.current,nativeElement:v.current}});var k=Ee(r,i,ne(ne({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),s)),S=function(E){s||("checked"in e||C(E.target.checked),h==null||h({target:q(q({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return d.createElement("span",{className:k,title:p,style:a,ref:v},d.createElement("input",tt({},m,{className:"".concat(r,"-input"),ref:g,onChange:S,disabled:s,checked:!!b,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function oge(e){const t=te.useRef(null),n=()=>{rr.cancel(t.current),t.current=null};return[()=>{n(),t.current=rr(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const kKe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},ar(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},EKe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:h,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:y,calc:w}=e,b=`${t}-inner`,k=w(i).sub(w(4).mul(2)),S=w(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Me(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},yc(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:w(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:w(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${w(k).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},$Ke=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:p,controlHeightLG:h,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:y,borderRadiusLG:w,buttonCheckedBg:b,buttonSolidCheckedColor:C,colorTextDisabled:k,colorBgContainerDisabled:S,buttonCheckedBgDisabled:_,buttonCheckedColorDisabled:E,colorPrimary:$,colorPrimaryHover:M,colorPrimaryActive:P,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:j,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Me(I(n).sub(I(i).mul(2)).equal()),background:f,border:`${Me(i)} ${a} ${o}`,borderBlockStartWidth:I(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(i).mul(-1).equal(),insetInlineStart:I(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Me(i)} ${a} ${o}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:h,fontSize:p,lineHeight:Me(I(h).sub(I(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:m,paddingInline:I(g).sub(i).equal(),paddingBlock:0,lineHeight:Me(I(m).sub(I(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},yc(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:b,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:R,borderColor:R,"&:hover":{color:C,background:O,borderColor:O},"&:active":{color:C,background:j,borderColor:j}},"&-disabled":{color:k,backgroundColor:S,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:k,backgroundColor:S,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:_,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},MKe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:h,colorWhite:m}=e,g=4,v=a,y=t?v-g*2:v-(g+i)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:m,radioBgColor:t?s:f}},sge=Jn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Me(n)} ${t}`,a=Hn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[kKe(a),EKe(a),$Ke(a)]},MKe,{unitless:{radioSize:!0,dotSize:!0}});var TKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const i=d.useContext(rge),a=d.useContext(ige),{getPrefixCls:o,direction:s,radio:l}=d.useContext(Xt),c=d.useRef(null),u=ga(t,c),{isFormItemInput:f}=d.useContext(oa),p=A=>{var N,F;(N=e.onChange)===null||N===void 0||N.call(e,A),(F=i==null?void 0:i.onChange)===null||F===void 0||F.call(i,A)},{prefixCls:h,className:m,rootClassName:g,children:v,style:y,title:w}=e,b=TKe(e,["prefixCls","className","rootClassName","children","style","title"]),C=o("radio",h),k=((i==null?void 0:i.optionType)||a)==="button",S=k?`${C}-button`:C,_=qr(C),[E,$,M]=sge(C,_),P=Object.assign({},b),R=d.useContext(ma);i&&(P.name=i.name,P.onChange=p,P.checked=e.value===i.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:i.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:R;const O=Ee(`${S}-wrapper`,{[`${S}-wrapper-checked`]:P.checked,[`${S}-wrapper-disabled`]:P.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:f,[`${S}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,m,g,$,M,_),[j,I]=oge(P.onClick);return E(d.createElement(w4,{component:"Radio",disabled:P.disabled},d.createElement("label",{className:O,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:j},d.createElement(age,Object.assign({},P,{className:Ee(P.className,{[t8]:!k}),type:"radio",prefixCls:S,ref:u,onClick:I})),v!==void 0?d.createElement("span",null,v):null)))},w6=d.forwardRef(PKe),OKe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Xt),i=h8(),{prefixCls:a,className:o,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:f,size:p,style:h,id:m,optionType:g,name:v=i,defaultValue:y,value:w,block:b=!1,onChange:C,onMouseEnter:k,onMouseLeave:S,onFocus:_,onBlur:E}=e,[$,M]=In(y,{value:w}),P=d.useCallback(B=>{const U=$,Y=B.target.value;"value"in e||M(Y),Y!==U&&(C==null||C(B))},[$,M,C]),R=n("radio",a),O=`${R}-group`,j=qr(R),[I,A,N]=sge(R,j);let F=f;l&&l.length>0&&(F=l.map(B=>typeof B=="string"||typeof B=="number"?d.createElement(w6,{key:B.toString(),prefixCls:R,disabled:u,value:B,checked:$===B},B):d.createElement(w6,{key:`radio-group-value-options-${B.value}`,prefixCls:R,disabled:B.disabled||u,value:B.value,checked:$===B.value,title:B.title,style:B.style,id:B.id,required:B.required},B.label)));const K=Bi(p),L=Ee(O,`${O}-${c}`,{[`${O}-${K}`]:K,[`${O}-rtl`]:r==="rtl",[`${O}-block`]:b},o,s,A,N,j),V=d.useMemo(()=>({onChange:P,value:$,disabled:u,name:v,optionType:g,block:b}),[P,$,u,v,g,b]);return I(d.createElement("div",Object.assign({},Fi(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:k,onMouseLeave:S,onFocus:_,onBlur:E,id:m,ref:t}),d.createElement(SKe,{value:V},F)))}),RKe=d.memo(OKe);var IKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n}=d.useContext(Xt),{prefixCls:r}=e,i=IKe(e,["prefixCls"]),a=n("radio",r);return d.createElement(CKe,{value:"button"},d.createElement(w6,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},NKe=d.forwardRef(jKe),us=w6;us.Button=NKe;us.Group=RKe;us.__ANT_RADIO=!0;function Iy(e){return Hn(e,{inputAffixPadding:e.paddingXXS})}const jy=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:h,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:y,colorWarningOutline:w,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:p,activeBorderColor:m,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${w}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},AKe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),T4=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},AKe(Hn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),BB=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),aX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},BB(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),j8=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BB(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},T4(e))}),aX(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),aX(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),oX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lge=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},oX(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),oX(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},T4(e))}})}),N8=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},cge=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),sX=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cge(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),A8=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cge(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},T4(e))}),sX(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),sX(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),lX=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),uge=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},lX(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),lX(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),D8=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),dge=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Me(t)} ${Me(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},zB=e=>({padding:`${Me(e.paddingBlockSM)} ${Me(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),wg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Me(e.paddingBlock)} ${Me(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},D8(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},dge(e)),"&-sm":Object.assign({},zB(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),fge=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},dge(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},zB(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Me(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Me(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},vd()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range @@ -330,23 +330,23 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},FKe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),wg(e)),j8(e)),A8(e)),N8(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},LKe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Me(e.inputAffixPadding)}`}}}},BKe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},wg(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),LKe(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},zKe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ar(e)),pge(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},cge(e)),dge(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},HKe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},DKe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),wg(e)),j8(e)),A8(e)),N8(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},FKe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Me(e.inputAffixPadding)}`}}}},LKe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},wg(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),FKe(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},BKe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ar(e)),fge(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},lge(e)),uge(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},zKe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},UKe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},HKe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},WKe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},HB=Jn("Input",e=>{const t=Hn(e,Iy(e));return[FKe(t),UKe(t),BKe(t),zKe(t),HKe(t),WKe(t),Wg(t)]},jy,{resetFont:!1}),K9=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",a=The(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Me(a.itemLineHeight)}}}]},VKe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Hn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Hn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[K9(i,"small"),K9(e),K9(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},Phe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},qKe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:h,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Me(r),borderRadius:i,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},UKe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},HB=Jn("Input",e=>{const t=Hn(e,Iy(e));return[DKe(t),HKe(t),LKe(t),BKe(t),zKe(t),UKe(t),Wg(t)]},jy,{resetFont:!1}),K9=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",a=Mhe(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Me(a.itemLineHeight)}}}]},WKe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Hn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Hn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[K9(i,"small"),K9(e),K9(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},The(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},VKe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:h,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Me(r),borderRadius:i,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Me(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},KKe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:p,borderRadiusLG:h,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:w,textHeight:b,motionDurationMid:C,colorIconHover:k,fontWeightStrong:S,cellHeight:_,pickerCellPaddingVertical:E,colorTextDisabled:$,colorText:M,fontSize:P,motionDurationSlow:R,withoutTimeCellHeight:O,pickerQuarterPanelContentHeight:j,borderRadiusSM:I,colorTextLightSolid:A,cellHoverBg:N,timeColumnHeight:F,timeColumnWidth:K,timeCellHeight:L,controlItemBgActive:V,marginXXS:B,pickerDatePanelPaddingHorizontal:U,pickerControlIconMargin:Y}=e,ee=e.calc(o).mul(7).add(e.calc(U).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},qKe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:p,borderRadiusLG:h,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:w,textHeight:b,motionDurationMid:C,colorIconHover:k,fontWeightStrong:S,cellHeight:_,pickerCellPaddingVertical:E,colorTextDisabled:$,colorText:M,fontSize:P,motionDurationSlow:R,withoutTimeCellHeight:O,pickerQuarterPanelContentHeight:j,borderRadiusSM:I,colorTextLightSolid:A,cellHoverBg:N,timeColumnHeight:F,timeColumnWidth:K,timeCellHeight:L,controlItemBgActive:V,marginXXS:B,pickerDatePanelPaddingHorizontal:U,pickerControlIconMargin:Y}=e,ee=e.calc(o).mul(7).add(e.calc(U).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ee},"&-header":{display:"flex",padding:`0 ${Me(l)}`,color:g,borderBottom:`${Me(f)} ${p} ${v}`,"> *":{flex:"none"},button:{padding:0,color:w,lineHeight:Me(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:P,"&:hover":{color:k},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:Me(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Me(y)} 0`,borderInlineWidth:`${Me(y)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Y,insetInlineStart:Y,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Me(y)} 0`,borderInlineWidth:`${Me(y)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:_,fontWeight:"normal"},th:{height:e.calc(_).add(e.calc(E).mul(2)).equal(),color:M,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Me(E)} 0`,color:$,cursor:"pointer","&-in-view":{color:M}},qKe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(O).mul(4).equal()},[r]:{padding:`0 ${Me(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:j}},"&-decade-panel":{[r]:{padding:`0 ${Me(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Me(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Me(l)} ${Me(U)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ee},"&-header":{display:"flex",padding:`0 ${Me(l)}`,color:g,borderBottom:`${Me(f)} ${p} ${v}`,"> *":{flex:"none"},button:{padding:0,color:w,lineHeight:Me(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:P,"&:hover":{color:k},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:Me(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Me(y)} 0`,borderInlineWidth:`${Me(y)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Y,insetInlineStart:Y,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Me(y)} 0`,borderInlineWidth:`${Me(y)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:_,fontWeight:"normal"},th:{height:e.calc(_).add(e.calc(E).mul(2)).equal(),color:M,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Me(E)} 0`,color:$,cursor:"pointer","&-in-view":{color:M}},VKe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(O).mul(4).equal()},[r]:{padding:`0 ${Me(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:j}},"&-decade-panel":{[r]:{padding:`0 ${Me(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Me(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Me(l)} ${Me(U)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, &-selected ${r}, ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new ur(A).setA(.5).toHexString()},[r]:{color:A}}},"&-range-hover td:before":{background:V}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Me(l)} ${Me(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Me(f)} ${p} ${v}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${R}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:K,margin:`${Me(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${Me(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Me(f)} ${p} ${v}`},"&-active":{background:new ur(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(K).sub(e.calc(B).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(K).sub(L).div(2).equal(),color:M,lineHeight:Me(L),borderRadius:I,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},GKe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Me(r)} ${c} ${u}`,"&-extra":{padding:`0 ${Me(i)}`,lineHeight:Me(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Me(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Me(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Me(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},YKe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},XKe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,l=o*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ur(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ur(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},ZKe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},jy(e)),XKe(e)),x8(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),QKe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},j8(e)),A8(e)),N8(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},G9=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(i).div(2).equal(),0),o=e.max(e.calc(t).sub(i).sub(a).equal(),0);return{padding:`${Me(a)} ${Me(r)} ${Me(o)}`}},JKe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},eGe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:h,controlHeightSM:m,paddingInlineSM:g,paddingXS:v,marginXS:y,colorTextDescription:w,lineWidthBold:b,colorPrimary:C,motionDurationSlow:k,zIndexPopup:S,paddingXXS:_,sizePopupArrow:E,colorBgElevated:$,borderRadiusLG:M,boxShadowSecondary:P,borderRadiusSM:R,colorSplit:O,cellHoverBg:j,presetsWidth:I,presetsMaxWidth:A,boxShadowPopoverArrow:N,fontHeight:F,fontHeightLG:K,lineHeightLG:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),G9(e,r,F,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},D8(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},G9(e,p,K,i)),{[`${t}-input > input`]:{fontSize:h,lineHeight:L}}),"&-small":Object.assign({},G9(e,m,F,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:u,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:w},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:b,background:C,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Me(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},ar(e)),KKe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:K,margin:`${Me(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${Me(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Me(f)} ${p} ${v}`},"&-active":{background:new ur(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(K).sub(e.calc(B).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(K).sub(L).div(2).equal(),color:M,lineHeight:Me(L),borderRadius:I,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},KKe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Me(r)} ${c} ${u}`,"&-extra":{padding:`0 ${Me(i)}`,lineHeight:Me(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Me(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Me(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Me(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},GKe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},YKe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,l=o*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ur(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ur(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},XKe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},jy(e)),YKe(e)),x8(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),ZKe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},j8(e)),A8(e)),N8(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},G9=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(i).div(2).equal(),0),o=e.max(e.calc(t).sub(i).sub(a).equal(),0);return{padding:`${Me(a)} ${Me(r)} ${Me(o)}`}},QKe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},JKe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:h,controlHeightSM:m,paddingInlineSM:g,paddingXS:v,marginXS:y,colorTextDescription:w,lineWidthBold:b,colorPrimary:C,motionDurationSlow:k,zIndexPopup:S,paddingXXS:_,sizePopupArrow:E,colorBgElevated:$,borderRadiusLG:M,boxShadowSecondary:P,borderRadiusSM:R,colorSplit:O,cellHoverBg:j,presetsWidth:I,presetsMaxWidth:A,boxShadowPopoverArrow:N,fontHeight:F,fontHeightLG:K,lineHeightLG:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),G9(e,r,F,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},D8(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},G9(e,p,K,i)),{[`${t}-input > input`]:{fontSize:h,lineHeight:L}}),"&-small":Object.assign({},G9(e,m,F,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:u,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:w},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:b,background:C,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Me(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},ar(e)),qKe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, @@ -356,27 +356,27 @@ html body { &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:i8},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:s8},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:a8},[`${t}-panel > ${t}-time-panel`]:{paddingTop:_},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${k} ease-out`},Lhe(e,$,N)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:M,boxShadow:P,transition:`margin ${k}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:I,maxWidth:A,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${Me(a)} ${o} ${O}`,li:Object.assign(Object.assign({},ao),{borderRadius:R,paddingInline:v,paddingBlock:e.calc(m).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:y},"&:hover":{background:j}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Me(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},yd(e,"slide-up"),yd(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down")]},hge=Jn("DatePicker",e=>{const t=Hn(Iy(e),YKe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[GKe(t),eGe(t),QKe(t),JKe(t),VKe(t),Wg(e,{focusElCls:`${e.componentCls}-focused`})]},ZKe);var tGe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},nGe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:tGe}))},Ny=d.forwardRef(nGe);const F8=d.createContext(null);var rGe=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,c=l===void 0?"center":l,u=d.useState(),f=Te(u,2),p=f[0],h=f[1],m=d.useRef(),g=te.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){rr.cancel(m.current)}return d.useEffect(function(){var y={};if(n)if(r){y.width=g(n.width);var w=i?"right":"left";c==="start"&&(y[w]=n[w]),c==="center"&&(y[w]=n[w]+n.width/2,y.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[w]=n[w]+n.width,y.transform="translateX(-100%)")}else y.height=g(n.height),c==="start"&&(y.top=n.top),c==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),m.current=rr(function(){h(y)}),v},[n,r,i,c,g]),{style:p}},cX={width:0,height:0,left:0,top:0};function iGe(e,t,n){return d.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||cX,o=a.left+a.width,s=0;sj?(R=M,S.current="x"):(R=P,S.current="y"),t(-R,-R)&&$.preventDefault()}var E=d.useRef(null);E.current={onTouchStart:b,onTouchMove:C,onTouchEnd:k,onWheel:_},d.useEffect(function(){function $(O){E.current.onTouchStart(O)}function M(O){E.current.onTouchMove(O)}function P(O){E.current.onTouchEnd(O)}function R(O){E.current.onWheel(O)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",R,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",P)}},[])}function mge(e){var t=d.useState(0),n=Te(t,2),r=n[0],i=n[1],a=d.useRef(0),o=d.useRef();return o.current=e,Vm(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function sGe(e){var t=d.useRef([]),n=d.useState({}),r=Te(n,2),i=r[1],a=d.useRef(typeof e=="function"?e():e),o=mge(function(){var l=a.current;t.current.forEach(function(c){l=c(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var pX={width:0,height:0,left:0,top:0,right:0};function lGe(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,f,p;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",p=Math.abs(n)):(u="height",f="top",p=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,m=h,g=0;gMath.floor(p+t)){m=g-1;break}}for(var y=0,w=h-1;w>=0;w-=1){var b=e.get(s[w].key)||pX;if(b[f]=m?[0,0]:[y,m]},[e,t,r,i,a,p,l,s.map(function(h){return h.key}).join("_"),c])}function hX(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var cGe="TABS_DQ";function gge(e){return String(e).replace(/"/g,cGe)}function UB(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var vge=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),mX=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return Kt(i)==="object"&&!d.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),uGe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,w=d.useState(!1),b=Te(w,2),C=b[0],k=b[1],S=d.useState(null),_=Te(S,2),E=_[0],$=_[1],M=l.icon,P=M===void 0?"More":M,R="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),j=E!==null?"".concat(R,"-").concat(E):null,I=a==null?void 0:a.dropdownAriaLabel;function A(U,Y){U.preventDefault(),U.stopPropagation(),f.onEdit("remove",{key:Y,event:U})}var N=d.createElement(qg,{onClick:function(Y){var ee=Y.key,ie=Y.domEvent;g(ee,ie),k(!1)},prefixCls:"".concat(O,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[E],"aria-label":I!==void 0?I:"expanded dropdown"},i.map(function(U){var Y=U.closable,ee=U.disabled,ie=U.closeIcon,Z=U.key,X=U.label,ae=UB(Y,ie,f,ee);return d.createElement(yg,{key:Z,id:"".concat(R,"-").concat(Z),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Z),disabled:ee},d.createElement("span",null,X),ae&&d.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),A(le,Z)}},ie||f.removeIcon||"×"))}));function F(U){for(var Y=i.filter(function(ae){return!ae.disabled}),ee=Y.findIndex(function(ae){return ae.key===E})||0,ie=Y.length,Z=0;Zrt?"left":"right"})}),O=Te(R,2),j=O[0],I=O[1],A=uX(0,function(It,rt){!P&&g&&g({direction:It>rt?"top":"bottom"})}),N=Te(A,2),F=N[0],K=N[1],L=d.useState([0,0]),V=Te(L,2),B=V[0],U=V[1],Y=d.useState([0,0]),ee=Te(Y,2),ie=ee[0],Z=ee[1],X=d.useState([0,0]),ae=Te(X,2),oe=ae[0],le=ae[1],ce=d.useState([0,0]),pe=Te(ce,2),me=pe[0],re=pe[1],fe=sGe(new Map),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=iGe(b,$e,ie[0]),Se=$S(B,P),we=$S(ie,P),se=$S(oe,P),ye=$S(me,P),Oe=Math.floor(Se)de?de:It}var he=d.useRef(null),Ue=d.useState(),We=Te(Ue,2),ge=We[0],ze=We[1];function Ve(){ze(Date.now())}function Be(){he.current&&clearTimeout(he.current)}oGe(_,function(It,rt){function $t(Mt,dn){Mt(function(pn){var T=xe(pn+dn);return T})}return Oe?(P?$t(I,It):$t(K,rt),Be(),Ve(),!0):!1}),d.useEffect(function(){return Be(),ge&&(he.current=setTimeout(function(){ze(0)},100)),Be},[ge]);var Xe=lGe(be,z,P?j:F,we,se,ye,q(q({},e),{},{tabs:b})),Ke=Te(Xe,2),qe=Ke[0],Et=Ke[1],ut=Vn(function(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,rt=be.get(It)||{width:0,height:0,left:0,right:0,top:0};if(P){var $t=j;s?rt.rightj+z&&($t=rt.right+rt.width-z):rt.left<-j?$t=-rt.left:rt.left+rt.width>-j+z&&($t=-(rt.left+rt.width-z)),K(0),I(xe($t))}else{var Mt=F;rt.top<-F?Mt=-rt.top:rt.top+rt.height>-F+z&&(Mt=-(rt.top+rt.height-z)),I(0),K(xe(Mt))}}),gt=d.useState(),Qe=Te(gt,2),nt=Qe[0],jt=Qe[1],Lt=d.useState(!1),Bt=Te(Lt,2),Ut=Bt[0],Ne=Bt[1],He=b.filter(function(It){return!It.disabled}).map(function(It){return It.key}),Le=function(rt){var $t=He.indexOf(nt||o),Mt=He.length,dn=($t+rt+Mt)%Mt,pn=He[dn];jt(pn)},Je=function(rt){var $t=rt.code,Mt=s&&P,dn=He[0],pn=He[He.length-1];switch($t){case"ArrowLeft":{P&&Le(Mt?1:-1);break}case"ArrowRight":{P&&Le(Mt?-1:1);break}case"ArrowUp":{rt.preventDefault(),P||Le(-1);break}case"ArrowDown":{rt.preventDefault(),P||Le(1);break}case"Home":{rt.preventDefault(),jt(dn);break}case"End":{rt.preventDefault(),jt(pn);break}case"Enter":case"Space":{rt.preventDefault(),m(nt,rt);break}case"Backspace":case"Delete":{var T=He.indexOf(nt),D=b.find(function(ke){return ke.key===nt}),J=UB(D==null?void 0:D.closable,D==null?void 0:D.closeIcon,c,D==null?void 0:D.disabled);J&&(rt.preventDefault(),rt.stopPropagation(),c.onEdit("remove",{key:nt,event:rt}),T===He.length-1?Le(-1):Le(1));break}}},pt={};P?pt[s?"marginRight":"marginLeft"]=p:pt.marginTop=p;var xt=b.map(function(It,rt){var $t=It.key;return d.createElement(fGe,{id:i,prefixCls:w,key:$t,tab:It,style:rt===0?void 0:pt,closable:It.closable,editable:c,active:$t===o,focus:$t===nt,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:He.length,currentPosition:rt+1,onClick:function(dn){m($t,dn)},onKeyDown:Je,onFocus:function(){Ut||jt($t),ut($t),Ve(),_.current&&(s||(_.current.scrollLeft=0),_.current.scrollTop=0)},onBlur:function(){jt(void 0)},onMouseDown:function(){Ne(!0)},onMouseUp:function(){Ne(!1)}})}),Nt=function(){return Ce(function(){var rt,$t=new Map,Mt=(rt=E.current)===null||rt===void 0?void 0:rt.getBoundingClientRect();return b.forEach(function(dn){var pn,T=dn.key,D=(pn=E.current)===null||pn===void 0?void 0:pn.querySelector('[data-node-key="'.concat(gge(T),'"]'));if(D){var J=pGe(D,Mt),ke=Te(J,4),Ie=ke[0],it=ke[1],Ft=ke[2],rn=ke[3];$t.set(T,{width:Ie,height:it,left:Ft,top:rn})}}),$t})};d.useEffect(function(){Nt()},[b.map(function(It){return It.key}).join("_")]);var Ot=mge(function(){var It=A1(C),rt=A1(k),$t=A1(S);U([It[0]-rt[0]-$t[0],It[1]-rt[1]-$t[1]]);var Mt=A1(M);le(Mt);var dn=A1($);re(dn);var pn=A1(E);Z([pn[0]-Mt[0],pn[1]-Mt[1]]),Nt()}),Pt=b.slice(0,qe),st=b.slice(Et+1),Ct=[].concat(lt(Pt),lt(st)),kt=be.get(o),qt=rGe({activeTabOffset:kt,horizontal:P,indicator:v,rtl:s}),vt=qt.style;d.useEffect(function(){ut()},[o,G,de,hX(kt),hX(be),P]),d.useEffect(function(){Ot()},[s]);var At=!!Ct.length,dt="".concat(w,"-nav-wrap"),De,Ye,ot,Re;return P?s?(Ye=j>0,De=j!==de):(De=j<0,Ye=j!==G):(ot=F<0,Re=F!==G),d.createElement(Go,{onResize:Ot},d.createElement("div",{ref:ku(t,C),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:Ee("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Ve()}},d.createElement(mX,{ref:k,position:"left",extra:l,prefixCls:w}),d.createElement(Go,{onResize:Ot},d.createElement("div",{className:Ee(dt,ne(ne(ne(ne({},"".concat(dt,"-ping-left"),De),"".concat(dt,"-ping-right"),Ye),"".concat(dt,"-ping-top"),ot),"".concat(dt,"-ping-bottom"),Re)),ref:_},d.createElement(Go,{onResize:Ot},d.createElement("div",{ref:E,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(F,"px)"),transition:ge?"none":void 0}},xt,d.createElement(vge,{ref:M,prefixCls:w,locale:u,editable:c,style:q(q({},xt.length===0?void 0:pt),{},{visibility:At?"hidden":null})}),d.createElement("div",{className:Ee("".concat(w,"-ink-bar"),ne({},"".concat(w,"-ink-bar-animated"),a.inkBar)),style:vt}))))),d.createElement(dGe,tt({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:$,prefixCls:w,tabs:Ct,className:!At&&H,tabMoving:!!ge})),d.createElement(mX,{ref:S,position:"right",extra:l,prefixCls:w})))}),yge=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:Ee(n,o&&"".concat(n,"-active"),r),ref:t},l)}),hGe=["renderTabBar"],mGe=["label","key"],gGe=function(t){var n=t.renderTabBar,r=Ht(t,hGe),i=d.useContext(F8),a=i.tabs;if(n){var o=q(q({},r),{},{panes:a.map(function(s){var l=s.label,c=s.key,u=Ht(s,mGe);return d.createElement(yge,tt({tab:l,key:c,tabKey:c},u))})});return n(o,gX)}return d.createElement(gX,r)},vGe=["key","forceRender","style","className","destroyInactiveTabPane"],yGe=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=d.useContext(F8),l=s.prefixCls,c=s.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:Ee("".concat(l,"-content-holder"))},d.createElement("div",{className:Ee("".concat(l,"-content"),"".concat(l,"-content-").concat(a),ne({},"".concat(l,"-content-animated"),u))},c.map(function(p){var h=p.key,m=p.forceRender,g=p.style,v=p.className,y=p.destroyInactiveTabPane,w=Ht(p,vGe),b=h===r;return d.createElement(Ca,tt({key:h,visible:b,forceRender:m,removeOnLeave:!!(o||y),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(C,k){var S=C.style,_=C.className;return d.createElement(yge,tt({},w,{prefixCls:f,id:n,tabKey:h,animated:u,active:b,style:q(q({},g),S),className:Ee(v,_),ref:k}))})})))};function bGe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=q({inkBar:!0},Kt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var wGe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],vX=0,xGe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,p=e.tabPosition,h=p===void 0?"top":p,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,w=e.more,b=e.destroyInactiveTabPane,C=e.renderTabBar,k=e.onChange,S=e.onTabClick,_=e.onTabScroll,E=e.getPopupContainer,$=e.popupClassName,M=e.indicator,P=Ht(e,wGe),R=d.useMemo(function(){return(o||[]).filter(function(me){return me&&Kt(me)==="object"&&"key"in me})},[o]),O=s==="rtl",j=bGe(f),I=d.useState(!1),A=Te(I,2),N=A[0],F=A[1];d.useEffect(function(){F(y8())},[]);var K=In(function(){var me;return(me=R[0])===null||me===void 0?void 0:me.key},{value:l,defaultValue:c}),L=Te(K,2),V=L[0],B=L[1],U=d.useState(function(){return R.findIndex(function(me){return me.key===V})}),Y=Te(U,2),ee=Y[0],ie=Y[1];d.useEffect(function(){var me=R.findIndex(function(fe){return fe.key===V});if(me===-1){var re;me=Math.max(0,Math.min(ee,R.length-1)),B((re=R[me])===null||re===void 0?void 0:re.key)}ie(me)},[R.map(function(me){return me.key}).join("_"),V,ee]);var Z=In(null,{value:n}),X=Te(Z,2),ae=X[0],oe=X[1];d.useEffect(function(){n||(oe("rc-tabs-".concat(vX)),vX+=1)},[]);function le(me,re){S==null||S(me,re);var fe=me!==V;B(me),fe&&(k==null||k(me))}var ce={id:ae,activeKey:V,animated:j,tabPosition:h,rtl:O,mobile:N},pe=q(q({},ce),{},{editable:u,locale:y,more:w,tabBarGutter:m,onTabClick:le,onTabScroll:_,extra:v,style:g,panes:null,getPopupContainer:E,popupClassName:$,indicator:M});return d.createElement(F8.Provider,{value:{tabs:R,prefixCls:i}},d.createElement("div",tt({ref:t,id:n,className:Ee(i,"".concat(i,"-").concat(h),ne(ne(ne({},"".concat(i,"-mobile"),N),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),O),a)},P),d.createElement(gGe,tt({},pe,{renderTabBar:C})),d.createElement(yGe,tt({destroyInactiveTabPane:b},ce,{animated:j}))))});const SGe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function CGe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},SGe),{motionName:oo(e,"switch")})),n}var _Ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function EGe(e,t){if(e)return e;const n=Xi(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=_Ge(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return kGe(n)}const $Ge=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[yd(e,"slide-up"),yd(e,"slide-down")]]},MGe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Me(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},yc(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Me(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Me(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Me(e.borderRadiusLG)} 0 0 ${Me(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},TGe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Me(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ao),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Me(e.paddingXXS)} ${Me(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},PGe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:a8},[`${t}-panel > ${t}-time-panel`]:{paddingTop:_},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${k} ease-out`},Fhe(e,$,N)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:M,boxShadow:P,transition:`margin ${k}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:I,maxWidth:A,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${Me(a)} ${o} ${O}`,li:Object.assign(Object.assign({},ao),{borderRadius:R,paddingInline:v,paddingBlock:e.calc(m).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:y},"&:hover":{background:j}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Me(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},yd(e,"slide-up"),yd(e,"slide-down"),O0(e,"move-up"),O0(e,"move-down")]},pge=Jn("DatePicker",e=>{const t=Hn(Iy(e),GKe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[KKe(t),JKe(t),ZKe(t),QKe(t),WKe(t),Wg(e,{focusElCls:`${e.componentCls}-focused`})]},XKe);var eGe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},tGe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:eGe}))},Ny=d.forwardRef(tGe);const F8=d.createContext(null);var nGe=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,c=l===void 0?"center":l,u=d.useState(),f=Te(u,2),p=f[0],h=f[1],m=d.useRef(),g=te.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){rr.cancel(m.current)}return d.useEffect(function(){var y={};if(n)if(r){y.width=g(n.width);var w=i?"right":"left";c==="start"&&(y[w]=n[w]),c==="center"&&(y[w]=n[w]+n.width/2,y.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[w]=n[w]+n.width,y.transform="translateX(-100%)")}else y.height=g(n.height),c==="start"&&(y.top=n.top),c==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),m.current=rr(function(){h(y)}),v},[n,r,i,c,g]),{style:p}},cX={width:0,height:0,left:0,top:0};function rGe(e,t,n){return d.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||cX,o=a.left+a.width,s=0;sj?(R=M,S.current="x"):(R=P,S.current="y"),t(-R,-R)&&$.preventDefault()}var E=d.useRef(null);E.current={onTouchStart:b,onTouchMove:C,onTouchEnd:k,onWheel:_},d.useEffect(function(){function $(O){E.current.onTouchStart(O)}function M(O){E.current.onTouchMove(O)}function P(O){E.current.onTouchEnd(O)}function R(O){E.current.onWheel(O)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",R,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",P)}},[])}function hge(e){var t=d.useState(0),n=Te(t,2),r=n[0],i=n[1],a=d.useRef(0),o=d.useRef();return o.current=e,Vm(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function oGe(e){var t=d.useRef([]),n=d.useState({}),r=Te(n,2),i=r[1],a=d.useRef(typeof e=="function"?e():e),o=hge(function(){var l=a.current;t.current.forEach(function(c){l=c(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var pX={width:0,height:0,left:0,top:0,right:0};function sGe(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,f,p;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",p=Math.abs(n)):(u="height",f="top",p=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,m=h,g=0;gMath.floor(p+t)){m=g-1;break}}for(var y=0,w=h-1;w>=0;w-=1){var b=e.get(s[w].key)||pX;if(b[f]=m?[0,0]:[y,m]},[e,t,r,i,a,p,l,s.map(function(h){return h.key}).join("_"),c])}function hX(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var lGe="TABS_DQ";function mge(e){return String(e).replace(/"/g,lGe)}function UB(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var gge=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),mX=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return Kt(i)==="object"&&!d.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),cGe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,w=d.useState(!1),b=Te(w,2),C=b[0],k=b[1],S=d.useState(null),_=Te(S,2),E=_[0],$=_[1],M=l.icon,P=M===void 0?"More":M,R="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),j=E!==null?"".concat(R,"-").concat(E):null,I=a==null?void 0:a.dropdownAriaLabel;function A(U,Y){U.preventDefault(),U.stopPropagation(),f.onEdit("remove",{key:Y,event:U})}var N=d.createElement(qg,{onClick:function(Y){var ee=Y.key,ie=Y.domEvent;g(ee,ie),k(!1)},prefixCls:"".concat(O,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[E],"aria-label":I!==void 0?I:"expanded dropdown"},i.map(function(U){var Y=U.closable,ee=U.disabled,ie=U.closeIcon,Z=U.key,X=U.label,ae=UB(Y,ie,f,ee);return d.createElement(yg,{key:Z,id:"".concat(R,"-").concat(Z),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Z),disabled:ee},d.createElement("span",null,X),ae&&d.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),A(le,Z)}},ie||f.removeIcon||"×"))}));function F(U){for(var Y=i.filter(function(ae){return!ae.disabled}),ee=Y.findIndex(function(ae){return ae.key===E})||0,ie=Y.length,Z=0;Zrt?"left":"right"})}),O=Te(R,2),j=O[0],I=O[1],A=uX(0,function(It,rt){!P&&g&&g({direction:It>rt?"top":"bottom"})}),N=Te(A,2),F=N[0],K=N[1],L=d.useState([0,0]),V=Te(L,2),B=V[0],U=V[1],Y=d.useState([0,0]),ee=Te(Y,2),ie=ee[0],Z=ee[1],X=d.useState([0,0]),ae=Te(X,2),oe=ae[0],le=ae[1],ce=d.useState([0,0]),pe=Te(ce,2),me=pe[0],re=pe[1],fe=oGe(new Map),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=rGe(b,$e,ie[0]),Se=ES(B,P),we=ES(ie,P),se=ES(oe,P),ye=ES(me,P),Oe=Math.floor(Se)de?de:It}var he=d.useRef(null),Ue=d.useState(),We=Te(Ue,2),ge=We[0],ze=We[1];function Ve(){ze(Date.now())}function Be(){he.current&&clearTimeout(he.current)}aGe(_,function(It,rt){function $t(Mt,dn){Mt(function(pn){var T=xe(pn+dn);return T})}return Oe?(P?$t(I,It):$t(K,rt),Be(),Ve(),!0):!1}),d.useEffect(function(){return Be(),ge&&(he.current=setTimeout(function(){ze(0)},100)),Be},[ge]);var Xe=sGe(be,z,P?j:F,we,se,ye,q(q({},e),{},{tabs:b})),Ke=Te(Xe,2),qe=Ke[0],Et=Ke[1],ut=Vn(function(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,rt=be.get(It)||{width:0,height:0,left:0,right:0,top:0};if(P){var $t=j;s?rt.rightj+z&&($t=rt.right+rt.width-z):rt.left<-j?$t=-rt.left:rt.left+rt.width>-j+z&&($t=-(rt.left+rt.width-z)),K(0),I(xe($t))}else{var Mt=F;rt.top<-F?Mt=-rt.top:rt.top+rt.height>-F+z&&(Mt=-(rt.top+rt.height-z)),I(0),K(xe(Mt))}}),gt=d.useState(),Qe=Te(gt,2),nt=Qe[0],jt=Qe[1],Lt=d.useState(!1),Bt=Te(Lt,2),Ut=Bt[0],Ne=Bt[1],He=b.filter(function(It){return!It.disabled}).map(function(It){return It.key}),Le=function(rt){var $t=He.indexOf(nt||o),Mt=He.length,dn=($t+rt+Mt)%Mt,pn=He[dn];jt(pn)},Je=function(rt){var $t=rt.code,Mt=s&&P,dn=He[0],pn=He[He.length-1];switch($t){case"ArrowLeft":{P&&Le(Mt?1:-1);break}case"ArrowRight":{P&&Le(Mt?-1:1);break}case"ArrowUp":{rt.preventDefault(),P||Le(-1);break}case"ArrowDown":{rt.preventDefault(),P||Le(1);break}case"Home":{rt.preventDefault(),jt(dn);break}case"End":{rt.preventDefault(),jt(pn);break}case"Enter":case"Space":{rt.preventDefault(),m(nt,rt);break}case"Backspace":case"Delete":{var T=He.indexOf(nt),D=b.find(function(ke){return ke.key===nt}),J=UB(D==null?void 0:D.closable,D==null?void 0:D.closeIcon,c,D==null?void 0:D.disabled);J&&(rt.preventDefault(),rt.stopPropagation(),c.onEdit("remove",{key:nt,event:rt}),T===He.length-1?Le(-1):Le(1));break}}},pt={};P?pt[s?"marginRight":"marginLeft"]=p:pt.marginTop=p;var xt=b.map(function(It,rt){var $t=It.key;return d.createElement(dGe,{id:i,prefixCls:w,key:$t,tab:It,style:rt===0?void 0:pt,closable:It.closable,editable:c,active:$t===o,focus:$t===nt,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:He.length,currentPosition:rt+1,onClick:function(dn){m($t,dn)},onKeyDown:Je,onFocus:function(){Ut||jt($t),ut($t),Ve(),_.current&&(s||(_.current.scrollLeft=0),_.current.scrollTop=0)},onBlur:function(){jt(void 0)},onMouseDown:function(){Ne(!0)},onMouseUp:function(){Ne(!1)}})}),Nt=function(){return Ce(function(){var rt,$t=new Map,Mt=(rt=E.current)===null||rt===void 0?void 0:rt.getBoundingClientRect();return b.forEach(function(dn){var pn,T=dn.key,D=(pn=E.current)===null||pn===void 0?void 0:pn.querySelector('[data-node-key="'.concat(mge(T),'"]'));if(D){var J=fGe(D,Mt),ke=Te(J,4),Ie=ke[0],it=ke[1],Ft=ke[2],rn=ke[3];$t.set(T,{width:Ie,height:it,left:Ft,top:rn})}}),$t})};d.useEffect(function(){Nt()},[b.map(function(It){return It.key}).join("_")]);var Ot=hge(function(){var It=A1(C),rt=A1(k),$t=A1(S);U([It[0]-rt[0]-$t[0],It[1]-rt[1]-$t[1]]);var Mt=A1(M);le(Mt);var dn=A1($);re(dn);var pn=A1(E);Z([pn[0]-Mt[0],pn[1]-Mt[1]]),Nt()}),Pt=b.slice(0,qe),st=b.slice(Et+1),Ct=[].concat(lt(Pt),lt(st)),kt=be.get(o),qt=nGe({activeTabOffset:kt,horizontal:P,indicator:v,rtl:s}),vt=qt.style;d.useEffect(function(){ut()},[o,G,de,hX(kt),hX(be),P]),d.useEffect(function(){Ot()},[s]);var At=!!Ct.length,dt="".concat(w,"-nav-wrap"),De,Ye,ot,Re;return P?s?(Ye=j>0,De=j!==de):(De=j<0,Ye=j!==G):(ot=F<0,Re=F!==G),d.createElement(Ko,{onResize:Ot},d.createElement("div",{ref:ku(t,C),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:Ee("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Ve()}},d.createElement(mX,{ref:k,position:"left",extra:l,prefixCls:w}),d.createElement(Ko,{onResize:Ot},d.createElement("div",{className:Ee(dt,ne(ne(ne(ne({},"".concat(dt,"-ping-left"),De),"".concat(dt,"-ping-right"),Ye),"".concat(dt,"-ping-top"),ot),"".concat(dt,"-ping-bottom"),Re)),ref:_},d.createElement(Ko,{onResize:Ot},d.createElement("div",{ref:E,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(F,"px)"),transition:ge?"none":void 0}},xt,d.createElement(gge,{ref:M,prefixCls:w,locale:u,editable:c,style:q(q({},xt.length===0?void 0:pt),{},{visibility:At?"hidden":null})}),d.createElement("div",{className:Ee("".concat(w,"-ink-bar"),ne({},"".concat(w,"-ink-bar-animated"),a.inkBar)),style:vt}))))),d.createElement(uGe,tt({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:$,prefixCls:w,tabs:Ct,className:!At&&H,tabMoving:!!ge})),d.createElement(mX,{ref:S,position:"right",extra:l,prefixCls:w})))}),vge=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:Ee(n,o&&"".concat(n,"-active"),r),ref:t},l)}),pGe=["renderTabBar"],hGe=["label","key"],mGe=function(t){var n=t.renderTabBar,r=Ht(t,pGe),i=d.useContext(F8),a=i.tabs;if(n){var o=q(q({},r),{},{panes:a.map(function(s){var l=s.label,c=s.key,u=Ht(s,hGe);return d.createElement(vge,tt({tab:l,key:c,tabKey:c},u))})});return n(o,gX)}return d.createElement(gX,r)},gGe=["key","forceRender","style","className","destroyInactiveTabPane"],vGe=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=d.useContext(F8),l=s.prefixCls,c=s.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:Ee("".concat(l,"-content-holder"))},d.createElement("div",{className:Ee("".concat(l,"-content"),"".concat(l,"-content-").concat(a),ne({},"".concat(l,"-content-animated"),u))},c.map(function(p){var h=p.key,m=p.forceRender,g=p.style,v=p.className,y=p.destroyInactiveTabPane,w=Ht(p,gGe),b=h===r;return d.createElement(Ca,tt({key:h,visible:b,forceRender:m,removeOnLeave:!!(o||y),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(C,k){var S=C.style,_=C.className;return d.createElement(vge,tt({},w,{prefixCls:f,id:n,tabKey:h,animated:u,active:b,style:q(q({},g),S),className:Ee(v,_),ref:k}))})})))};function yGe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=q({inkBar:!0},Kt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var bGe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],vX=0,wGe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,p=e.tabPosition,h=p===void 0?"top":p,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,w=e.more,b=e.destroyInactiveTabPane,C=e.renderTabBar,k=e.onChange,S=e.onTabClick,_=e.onTabScroll,E=e.getPopupContainer,$=e.popupClassName,M=e.indicator,P=Ht(e,bGe),R=d.useMemo(function(){return(o||[]).filter(function(me){return me&&Kt(me)==="object"&&"key"in me})},[o]),O=s==="rtl",j=yGe(f),I=d.useState(!1),A=Te(I,2),N=A[0],F=A[1];d.useEffect(function(){F(y8())},[]);var K=In(function(){var me;return(me=R[0])===null||me===void 0?void 0:me.key},{value:l,defaultValue:c}),L=Te(K,2),V=L[0],B=L[1],U=d.useState(function(){return R.findIndex(function(me){return me.key===V})}),Y=Te(U,2),ee=Y[0],ie=Y[1];d.useEffect(function(){var me=R.findIndex(function(fe){return fe.key===V});if(me===-1){var re;me=Math.max(0,Math.min(ee,R.length-1)),B((re=R[me])===null||re===void 0?void 0:re.key)}ie(me)},[R.map(function(me){return me.key}).join("_"),V,ee]);var Z=In(null,{value:n}),X=Te(Z,2),ae=X[0],oe=X[1];d.useEffect(function(){n||(oe("rc-tabs-".concat(vX)),vX+=1)},[]);function le(me,re){S==null||S(me,re);var fe=me!==V;B(me),fe&&(k==null||k(me))}var ce={id:ae,activeKey:V,animated:j,tabPosition:h,rtl:O,mobile:N},pe=q(q({},ce),{},{editable:u,locale:y,more:w,tabBarGutter:m,onTabClick:le,onTabScroll:_,extra:v,style:g,panes:null,getPopupContainer:E,popupClassName:$,indicator:M});return d.createElement(F8.Provider,{value:{tabs:R,prefixCls:i}},d.createElement("div",tt({ref:t,id:n,className:Ee(i,"".concat(i,"-").concat(h),ne(ne(ne({},"".concat(i,"-mobile"),N),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),O),a)},P),d.createElement(mGe,tt({},pe,{renderTabBar:C})),d.createElement(vGe,tt({destroyInactiveTabPane:b},ce,{animated:j}))))});const xGe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function SGe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},xGe),{motionName:oo(e,"switch")})),n}var CGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function kGe(e,t){if(e)return e;const n=Xi(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=CGe(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return _Ge(n)}const EGe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[yd(e,"slide-up"),yd(e,"slide-down")]]},$Ge=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Me(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},yc(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Me(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Me(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Me(e.borderRadiusLG)} 0 0 ${Me(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},MGe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Me(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ao),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Me(e.paddingXXS)} ${Me(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},TGe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Me(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},OGe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Me(e.borderRadius)} ${Me(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Me(e.borderRadius)} ${Me(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Me(e.borderRadius)} ${Me(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Me(e.borderRadius)} 0 0 ${Me(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},RGe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Vs(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},yc(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},IGe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Me(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Me(e.marginXS)},marginLeft:{_skip_check_:!0,value:Me(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},jGe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:Me(e.paddingXS),background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},Vs(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),RGe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Vs(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},NGe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},AGe=Jn("Tabs",e=>{const t=Hn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Me(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Me(e.horizontalItemGutter)}`});return[OGe(t),IGe(t),PGe(t),TGe(t),MGe(t),jGe(t),$Ge(t)]},NGe),DGe=()=>null;var FGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l,c,u,f;const{type:p,className:h,rootClassName:m,size:g,onEdit:v,hideAdd:y,centered:w,addIcon:b,removeIcon:C,moreIcon:k,more:S,popupClassName:_,children:E,items:$,animated:M,style:P,indicatorSize:R,indicator:O}=e,j=FGe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:I}=j,{direction:A,tabs:N,getPrefixCls:F,getPopupContainer:K}=d.useContext(Xt),L=F("tabs",I),V=qr(L),[B,U,Y]=AGe(L,V);let ee;p==="editable-card"&&(ee={onEdit:(ce,pe)=>{let{key:me,event:re}=pe;v==null||v(ce==="add"?re:me,ce)},removeIcon:(t=C??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:d.createElement(Eu,null),addIcon:(b??(N==null?void 0:N.addIcon))||d.createElement(Ny,null),showAdd:y!==!0});const ie=F(),Z=Bi(g),X=EGe($,E),ae=CGe(L,M),oe=Object.assign(Object.assign({},N==null?void 0:N.style),P),le={align:(n=O==null?void 0:O.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=O==null?void 0:O.size)!==null&&i!==void 0?i:R)!==null&&a!==void 0?a:(o=N==null?void 0:N.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:N==null?void 0:N.indicatorSize};return B(d.createElement(xGe,Object.assign({direction:A,getPopupContainer:K},j,{items:X,className:Ee({[`${L}-${Z}`]:Z,[`${L}-card`]:["card","editable-card"].includes(p),[`${L}-editable-card`]:p==="editable-card",[`${L}-centered`]:w},N==null?void 0:N.className,h,m,U,Y,V),popupClassName:Ee(_,U,Y,V),style:oe,editable:ee,more:Object.assign({icon:(f=(u=(c=(l=N==null?void 0:N.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:N==null?void 0:N.moreIcon)!==null&&u!==void 0?u:k)!==null&&f!==void 0?f:d.createElement(RB,null),transitionName:`${ie}-slide-up`},S),prefixCls:L,animated:ae,indicator:le})))};Yg.TabPane=DGe;var LGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=LGe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=d.useContext(Xt),o=a("card",t),s=Ee(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:s}))},BGe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Me(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`},vd()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ao),{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Me(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},PGe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Me(e.borderRadius)} ${Me(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Me(e.borderRadius)} ${Me(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Me(e.borderRadius)} ${Me(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Me(e.borderRadius)} 0 0 ${Me(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},OGe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Vs(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},yc(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},RGe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Me(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Me(e.marginXS)},marginLeft:{_skip_check_:!0,value:Me(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},IGe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:Me(e.paddingXS),background:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},Vs(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),OGe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Vs(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},jGe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},NGe=Jn("Tabs",e=>{const t=Hn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Me(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Me(e.horizontalItemGutter)}`});return[PGe(t),RGe(t),TGe(t),MGe(t),$Ge(t),IGe(t),EGe(t)]},jGe),AGe=()=>null;var DGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l,c,u,f;const{type:p,className:h,rootClassName:m,size:g,onEdit:v,hideAdd:y,centered:w,addIcon:b,removeIcon:C,moreIcon:k,more:S,popupClassName:_,children:E,items:$,animated:M,style:P,indicatorSize:R,indicator:O}=e,j=DGe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:I}=j,{direction:A,tabs:N,getPrefixCls:F,getPopupContainer:K}=d.useContext(Xt),L=F("tabs",I),V=qr(L),[B,U,Y]=NGe(L,V);let ee;p==="editable-card"&&(ee={onEdit:(ce,pe)=>{let{key:me,event:re}=pe;v==null||v(ce==="add"?re:me,ce)},removeIcon:(t=C??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:d.createElement(Eu,null),addIcon:(b??(N==null?void 0:N.addIcon))||d.createElement(Ny,null),showAdd:y!==!0});const ie=F(),Z=Bi(g),X=kGe($,E),ae=SGe(L,M),oe=Object.assign(Object.assign({},N==null?void 0:N.style),P),le={align:(n=O==null?void 0:O.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=O==null?void 0:O.size)!==null&&i!==void 0?i:R)!==null&&a!==void 0?a:(o=N==null?void 0:N.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:N==null?void 0:N.indicatorSize};return B(d.createElement(wGe,Object.assign({direction:A,getPopupContainer:K},j,{items:X,className:Ee({[`${L}-${Z}`]:Z,[`${L}-card`]:["card","editable-card"].includes(p),[`${L}-editable-card`]:p==="editable-card",[`${L}-centered`]:w},N==null?void 0:N.className,h,m,U,Y,V),popupClassName:Ee(_,U,Y,V),style:oe,editable:ee,more:Object.assign({icon:(f=(u=(c=(l=N==null?void 0:N.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:N==null?void 0:N.moreIcon)!==null&&u!==void 0?u:k)!==null&&f!==void 0?f:d.createElement(RB,null),transitionName:`${ie}-slide-up`},S),prefixCls:L,animated:ae,indicator:le})))};Yg.TabPane=AGe;var FGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=FGe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=d.useContext(Xt),o=a("card",t),s=Ee(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:s}))},LGe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Me(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`},vd()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ao),{[` > ${n}-typography, > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},zGe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},BGe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${Me(i)} 0 0 0 ${n}, 0 ${Me(i)} 0 0 ${n}, ${Me(i)} ${Me(i)} 0 0 ${n}, ${Me(i)} 0 0 0 ${n} inset, 0 ${Me(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},HGe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},vd()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Me(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Me(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${a}`}}})},UGe=e=>Object.assign(Object.assign({margin:`${Me(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},vd()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ao),"&-description":{color:e.colorTextDescription}}),WGe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Me(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Me(e.padding)} ${Me(i)}`}}},VGe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},qGe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:BGe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},vd()),[`${t}-grid`]:zGe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:HGe(e),[`${t}-meta`]:UGe(e)}),[`${t}-bordered`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:WGe(e),[`${t}-loading`]:VGe(e),[`${t}-rtl`]:{direction:"rtl"}}},KGe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Me(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},GGe=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},YGe=Jn("Card",e=>{const t=Hn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[qGe(t),KGe(t)]},GGe);var yX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,a)=>{const o=`action-${a}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:o},d.createElement("span",null,i))}))},ZGe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:p,type:h,cover:m,actions:g,tabList:v,children:y,activeTabKey:w,defaultActiveTabKey:b,tabBarExtraContent:C,hoverable:k,tabProps:S={},classNames:_,styles:E}=e,$=yX(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:P,card:R}=d.useContext(Xt),O=$e=>{var Ce;(Ce=e.onTabChange)===null||Ce===void 0||Ce.call(e,$e)},j=$e=>{var Ce;return Ee((Ce=R==null?void 0:R.classNames)===null||Ce===void 0?void 0:Ce[$e],_==null?void 0:_[$e])},I=$e=>{var Ce;return Object.assign(Object.assign({},(Ce=R==null?void 0:R.styles)===null||Ce===void 0?void 0:Ce[$e]),E==null?void 0:E[$e])},A=d.useMemo(()=>{let $e=!1;return d.Children.forEach(y,Ce=>{(Ce==null?void 0:Ce.type)===bge&&($e=!0)}),$e},[y]),N=M("card",n),[F,K,L]=YGe(N),V=d.createElement(Kf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),B=w!==void 0,U=Object.assign(Object.assign({},S),{[B?"activeKey":"defaultActiveKey"]:B?w:b,tabBarExtraContent:C});let Y;const ee=Bi(p),ie=!ee||ee==="default"?"large":ee,Z=v?d.createElement(Yg,Object.assign({size:ie},U,{className:`${N}-head-tabs`,onChange:O,items:v.map($e=>{var{tab:Ce}=$e,be=yX($e,["tab"]);return Object.assign({label:Ce},be)})})):null;if(c||o||Z){const $e=Ee(`${N}-head`,j("header")),Ce=Ee(`${N}-head-title`,j("title")),be=Ee(`${N}-extra`,j("extra")),Se=Object.assign(Object.assign({},s),I("header"));Y=d.createElement("div",{className:$e,style:Se},d.createElement("div",{className:`${N}-head-wrapper`},c&&d.createElement("div",{className:Ce,style:I("title")},c),o&&d.createElement("div",{className:be,style:I("extra")},o)),Z)}const X=Ee(`${N}-cover`,j("cover")),ae=m?d.createElement("div",{className:X,style:I("cover")},m):null,oe=Ee(`${N}-body`,j("body")),le=Object.assign(Object.assign({},l),I("body")),ce=d.createElement("div",{className:oe,style:le},u?V:y),pe=Ee(`${N}-actions`,j("actions")),me=g!=null&&g.length?d.createElement(XGe,{actionClasses:pe,actionStyle:I("actions"),actions:g}):null,re=$r($,["onTabChange"]),fe=Ee(N,R==null?void 0:R.className,{[`${N}-loading`]:u,[`${N}-bordered`]:f,[`${N}-hoverable`]:k,[`${N}-contain-grid`]:A,[`${N}-contain-tabs`]:v==null?void 0:v.length,[`${N}-${ee}`]:ee,[`${N}-type-${h}`]:!!h,[`${N}-rtl`]:P==="rtl"},r,i,K,L),ve=Object.assign(Object.assign({},R==null?void 0:R.style),a);return F(d.createElement("div",Object.assign({ref:t},re,{className:fe,style:ve}),Y,ae,ce,me))});var QGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=QGe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(Xt),l=s("card",t),c=Ee(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?d.createElement("div",{className:`${l}-meta-title`},i):null,p=a?d.createElement("div",{className:`${l}-meta-description`},a):null,h=f||p?d.createElement("div",{className:`${l}-meta-detail`},f,p):null;return d.createElement("div",Object.assign({},o,{className:c}),u,h)},WB=ZGe;WB.Grid=bge;WB.Meta=JGe;function eYe(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,p=0;function h(){u&&clearTimeout(u)}function m(v){var y=v||{},w=y.upcomingOnly,b=w===void 0?!1:w;h(),f=!b}function g(){for(var v=arguments.length,y=new Array(v),w=0;we?s?(p=Date.now(),a||(u=setTimeout(c?S:k,e))):k():a!==!0&&(u=setTimeout(c?S:k,c===void 0?e-C:e))}return g.cancel=m,g}function tYe(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return eYe(e,t,{debounceMode:a!==!1})}var Ay=d.createContext({}),Nv="__rc_cascader_search_mark__",nYe=function(t,n,r){var i=r.label,a=i===void 0?"":i;return n.some(function(o){return String(o[a]).toLowerCase().includes(t.toLowerCase())})},rYe=function(t,n,r,i){return n.map(function(a){return a[i.label]}).join(" / ")},iYe=function(t,n,r,i,a,o){var s=a.filter,l=s===void 0?nYe:s,c=a.render,u=c===void 0?rYe:c,f=a.limit,p=f===void 0?50:f,h=a.sort;return d.useMemo(function(){var m=[];if(!t)return[];function g(v,y){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(b){if(!(!h&&p!==!1&&p>0&&m.length>=p)){var C=[].concat(lt(y),[b]),k=b[r.children],S=w||b.disabled;if((!k||k.length===0||o)&&l(t,C,{label:r.label})){var _;m.push(q(q({},b),{},(_={disabled:S},ne(_,r.label,u(t,C,i,r)),ne(_,Nv,C),ne(_,r.children,void 0),_)))}k&&g(b[r.children],C,S)}})}return g(n,[]),h&&m.sort(function(v,y){return h(v[Nv],y[Nv],t,r)}),p!==!1&&p>0?m.slice(0,p):m},[t,n,r,i,u,o,l,h,p])},VB="__RC_CASCADER_SPLIT__",wge="SHOW_PARENT",xge="SHOW_CHILD";function cu(e){return e.join(VB)}function j0(e){return e.map(cu)}function aYe(e){return e.split(VB)}function Sge(e){var t=e||{},n=t.label,r=t.value,i=t.children,a=r||"value";return{label:n||"label",value:a,key:a,children:i||"children"}}function _2(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function oYe(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Cge(e,t){return e.map(function(n){var r;return(r=n[Nv])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function sYe(e){return Array.isArray(e)&&Array.isArray(e[0])}function S6(e){return e?sYe(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function _ge(e,t,n){var r=new Set(e),i=t();return e.filter(function(a){var o=i[a],s=o?o.parent:null,l=o?o.children:null;return o&&o.node.disabled?!0:n===xge?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function N0(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,a=[],o=function(){var c,u,f,p=e[s],h=(c=i)===null||c===void 0?void 0:c.findIndex(function(g){var v=g[n.value];return r?String(v)===String(p):v===p}),m=h!==-1?(u=i)===null||u===void 0?void 0:u[h]:null;a.push({value:(f=m==null?void 0:m[n.value])!==null&&f!==void 0?f:p,index:h,option:m}),i=m==null?void 0:m[n.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(p,h){for(var m=Ege(f?f.pos:"0",h),g=O4(p[a],m),v,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=a||l,u={},f={},p={posEntities:u,keyEntities:f};return n&&(p=n(p)||p),dYe(e,function(h){var m=h.node,g=h.index,v=h.pos,y=h.key,w=h.parentPos,b=h.level,C=h.nodes,k={node:m,nodes:C,index:g,key:y,pos:v,level:b},S=O4(y,v);u[v]=k,f[S]=k,k.parent=u[w],k.parent&&(k.parent.children=k.parent.children||[],k.parent.children.push(k)),r&&r(k,p)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),i&&i(p),p}function J2(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=Ns(u,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return p}function Pa(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,p=e.active,h=e.eventKey,m=q(q({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:p,key:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Br(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}const fYe=function(e,t){var n=d.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=d.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=L8(e,{fieldNames:t,initWrapper:function(a){return q(q({},a),{},{pathKeyEntities:{}})},processEntity:function(a,o){var s=a.nodes.map(function(l){return l[t.value]}).join(VB);o.pathKeyEntities[s]=a,a.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function Mge(e,t){var n=d.useMemo(function(){return t||[]},[t]),r=fYe(n,e),i=d.useCallback(function(a){var o=r();return a.map(function(s){var l=o[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,i]}function pYe(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Kt(e)==="object"&&(t=q(q({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function Tge(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function hYe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function mYe(e,t,n,r){for(var i=new Set(e),a=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var p=f.key,h=f.node,m=f.children,g=m===void 0?[]:m;i.has(p)&&!r(h)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){i.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var p=f.parent,h=f.node;if(!(r(h)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(p.key);return}var m=!0,g=!1;(p.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,w=i.has(y);m&&!w&&(m=!1),!g&&(w||a.has(y))&&(g=!0)}),m&&i.add(p.key),g&&a.add(p.key),l.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Tge(a,i))}}function gYe(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(p){var h=p.key,m=p.node,g=p.children,v=g===void 0?[]:g;!a.has(h)&&!o.has(h)&&!i(m)&&v.filter(function(y){return!i(y.node)}).forEach(function(y){a.delete(y.key)})})}o=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(p){var h=p.parent,m=p.node;if(!(i(m)||!p.parent||c.has(p.parent.key))){if(i(p.parent.node)){c.add(h.key);return}var g=!0,v=!1;(h.children||[]).filter(function(y){return!i(y.node)}).forEach(function(y){var w=y.key,b=a.has(w);g&&!b&&(g=!1),!v&&(b||o.has(w))&&(v=!0)}),g||a.delete(h.key),v&&o.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Tge(o,a))}}function bf(e,t,n,r){var i=[],a;a=hYe;var o=new Set(e.filter(function(u){var f=!!Ns(n,u);return f||i.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],p=f.level,h=s.get(p);h||(h=new Set,s.set(p,h)),h.add(f),l=Math.max(l,p)}),Br(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=mYe(o,s,l,a):c=gYe(o,t.halfCheckedKeys,s,l,a),c}function Pge(e,t,n,r,i,a,o,s){return function(l){if(!e)t(l);else{var c=cu(l),u=j0(n),f=j0(r),p=u.includes(c),h=i.some(function(S){return cu(S)===c}),m=n,g=i;if(h&&!p)g=i.filter(function(S){return cu(S)!==c});else{var v=p?u.filter(function(S){return S!==c}):[].concat(lt(u),[c]),y=a(),w;if(p){var b=bf(v,{checked:!1,halfCheckedKeys:f},y);w=b.checkedKeys}else{var C=bf(v,!0,y);w=C.checkedKeys}var k=_ge(w,a,s);m=o(k)}t([].concat(lt(g),lt(m)))}}}function Oge(e,t,n,r,i){return d.useMemo(function(){var a=i(t),o=Te(a,2),s=o[0],l=o[1];if(!e||!t.length)return[s,[],l];var c=j0(s),u=n(),f=bf(c,!0,u),p=f.checkedKeys,h=f.halfCheckedKeys;return[r(p),r(h),l]},[e,t,n,r,i])}var vYe=d.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function yYe(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,a=e.disabled,o=e.onClick,s=e.disableCheckbox,l=d.useContext(Ay),c=l.checkable,u=typeof c!="boolean"?c:null;return d.createElement("span",{className:Ee("".concat(n),(t={},ne(t,"".concat(n,"-checked"),r),ne(t,"".concat(n,"-indeterminate"),!r&&i),ne(t,"".concat(n,"-disabled"),a||s),t)),onClick:o},u)}var Rge="__cascader_fix_label__";function bYe(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,a=e.prevValuePath,o=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,f=e.loadingKeys,p=e.isSelectable,h=e.disabled,m="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=d.useContext(Ay),y=v.fieldNames,w=v.changeOnSelect,b=v.expandTrigger,C=v.expandIcon,k=v.loadingIcon,S=v.dropdownMenuColumnStyle,_=v.optionRender,E=b==="hover",$=function(R){return h||R},M=d.useMemo(function(){return r.map(function(P){var R,O=P.disabled,j=P.disableCheckbox,I=P[Nv],A=(R=P[Rge])!==null&&R!==void 0?R:P[y.label],N=P[y.value],F=_2(P,y),K=I?I.map(function(Y){return Y[y.value]}):[].concat(lt(a),[N]),L=cu(K),V=f.includes(L),B=c.has(L),U=u.has(L);return{disabled:O,label:A,value:N,isLeaf:F,isLoading:V,checked:B,halfChecked:U,option:P,disableCheckbox:j,fullPath:K,fullPathKey:L}})},[r,c,y,u,f,a]);return d.createElement("ul",{className:m,role:"menu"},M.map(function(P){var R,O=P.disabled,j=P.label,I=P.value,A=P.isLeaf,N=P.isLoading,F=P.checked,K=P.halfChecked,L=P.option,V=P.fullPath,B=P.fullPathKey,U=P.disableCheckbox,Y=function(){if(!$(O)){var X=lt(V);E&&A&&X.pop(),l(X)}},ee=function(){p(L)&&!$(O)&&s(V,A)},ie;return typeof L.title=="string"?ie=L.title:typeof j=="string"&&(ie=j),d.createElement("li",{key:B,className:Ee(g,(R={},ne(R,"".concat(g,"-expand"),!A),ne(R,"".concat(g,"-active"),i===I||i===B),ne(R,"".concat(g,"-disabled"),$(O)),ne(R,"".concat(g,"-loading"),N),R)),style:S,role:"menuitemcheckbox",title:ie,"aria-checked":F,"data-path-key":B,onClick:function(){Y(),!U&&(!n||A)&&ee()},onDoubleClick:function(){w&&o(!1)},onMouseEnter:function(){E&&Y()},onMouseDown:function(X){X.preventDefault()}},n&&d.createElement(yYe,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:K,disabled:$(O)||U,disableCheckbox:U,onClick:function(X){U||(X.stopPropagation(),ee())}}),d.createElement("div",{className:"".concat(g,"-content")},_?_(L):j),!N&&C&&!A&&d.createElement("div",{className:"".concat(g,"-expand-icon")},C),N&&k&&d.createElement("div",{className:"".concat(g,"-loading-icon")},k))}))}var wYe=function(t,n){var r=d.useContext(Ay),i=r.values,a=i[0],o=d.useState([]),s=Te(o,2),l=s[0],c=s[1];return d.useEffect(function(){t||c(a||[])},[n,a]),[l,c]};const xYe=function(e,t,n,r,i,a,o){var s=o.direction,l=o.searchValue,c=o.toggleOpen,u=o.open,f=s==="rtl",p=d.useMemo(function(){for(var S=-1,_=t,E=[],$=[],M=r.length,P=Cge(t,n),R=function(N){var F=_.findIndex(function(K,L){return(P[L]?cu(P[L]):K[n.value])===r[N]});if(F===-1)return 1;S=F,E.push(S),$.push(r[N]),_=_[S][n.children]},O=0;O1){var _=m.slice(0,-1);w(_)}else c(!1)},k=function(){var _,E=((_=v[g])===null||_===void 0?void 0:_[n.children])||[],$=E.find(function(P){return!P.disabled});if($){var M=[].concat(lt(m),[$[n.value]]);w(M)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(_){var E=_.which;switch(E){case mt.UP:case mt.DOWN:{var $=0;E===mt.UP?$=-1:E===mt.DOWN&&($=1),$!==0&&b($);break}case mt.LEFT:{if(l)break;f?k():C();break}case mt.RIGHT:{if(l)break;f?C():k();break}case mt.BACKSPACE:{l||C();break}case mt.ENTER:{if(m.length){var M=v[g],P=(M==null?void 0:M[Nv])||[];P.length?a(P.map(function(R){return R[n.value]}),P[P.length-1]):a(m,v[g])}break}case mt.ESC:c(!1),u&&_.stopPropagation()}},onKeyUp:function(){}}})};var Ige=d.forwardRef(function(e,t){var n,r,i,a=e.prefixCls,o=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,f=e.open,p=e.disabled,h=d.useRef(null),m=u==="rtl",g=d.useContext(Ay),v=g.options,y=g.values,w=g.halfValues,b=g.fieldNames,C=g.changeOnSelect,k=g.onSelect,S=g.searchOptions,_=g.dropdownPrefixCls,E=g.loadData,$=g.expandTrigger,M=_||a,P=d.useState([]),R=Te(P,2),O=R[0],j=R[1],I=function(me){if(!(!E||s)){var re=N0(me,v,b),fe=re.map(function(Ce){var be=Ce.option;return be}),ve=fe[fe.length-1];if(ve&&!_2(ve,b)){var $e=cu(me);j(function(Ce){return[].concat(lt(Ce),[$e])}),E(fe)}}};d.useEffect(function(){O.length&&O.forEach(function(pe){var me=aYe(pe),re=N0(me,v,b,!0).map(function(ve){var $e=ve.option;return $e}),fe=re[re.length-1];(!fe||fe[b.children]||_2(fe,b))&&j(function(ve){return ve.filter(function($e){return $e!==pe})})})},[v,O,b]);var A=d.useMemo(function(){return new Set(j0(y))},[y]),N=d.useMemo(function(){return new Set(j0(w))},[w]),F=wYe(o,f),K=Te(F,2),L=K[0],V=K[1],B=function(me){V(me),I(me)},U=function(me){if(p)return!1;var re=me.disabled,fe=_2(me,b);return!re&&(fe||C||o)},Y=function(me,re){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k(me),!o&&(re||C&&($==="hover"||fe))&&l(!1)},ee=d.useMemo(function(){return s?S:v},[s,S,v]),ie=d.useMemo(function(){for(var pe=[{options:ee}],me=ee,re=Cge(me,b),fe=function(){var Ce=L[ve],be=me.find(function(we,se){return(re[se]?cu(re[se]):we[b.value])===Ce}),Se=be==null?void 0:be[b.children];if(!(Se!=null&&Se.length))return 1;me=Se,pe.push({options:Se})},ve=0;ve":y,b=n.loadingIcon,C=n.direction,k=n.notFoundContent,S=k===void 0?"Not Found":k,_=n.disabled,E=!!l,$=In(c,{value:u,postState:S6}),M=Te($,2),P=M[0],R=M[1],O=d.useMemo(function(){return Sge(f)},[JSON.stringify(f)]),j=Mge(O,s),I=Te(j,3),A=I[0],N=I[1],F=I[2],K=kge(A,O),L=Oge(E,P,N,F,K),V=Te(L,3),B=V[0],U=V[1],Y=V[2],ee=Vn(function(le){if(R(le),h){var ce=S6(le),pe=ce.map(function(fe){return N0(fe,A,O).map(function(ve){return ve.option})}),me=E?ce:ce[0],re=E?pe:pe[0];h(me,re)}}),ie=Pge(E,ee,B,U,Y,N,F,m),Z=Vn(function(le){ie(le)}),X=d.useMemo(function(){return{options:A,fieldNames:O,values:B,halfValues:U,changeOnSelect:p,onSelect:Z,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:w,loadingIcon:b,dropdownMenuColumnStyle:void 0}},[A,O,B,U,p,Z,l,g,v,w,b]),ae="".concat(i,"-panel"),oe=!A.length;return d.createElement(Ay.Provider,{value:X},d.createElement("div",{className:Ee(ae,(t={},ne(t,"".concat(ae,"-rtl"),C==="rtl"),ne(t,"".concat(ae,"-empty"),oe),t),o),style:a},oe?S:d.createElement(Ige,{prefixCls:i,searchValue:"",multiple:E,toggleOpen:CYe,open:!0,direction:C,disabled:_})))}var _Ye=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],R4=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,a=e.fieldNames,o=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,f=e.checkable,p=e.autoClearSearchValue,h=p===void 0?!0:p,m=e.searchValue,g=e.onSearch,v=e.showSearch,y=e.expandTrigger,w=e.options,b=e.dropdownPrefixCls,C=e.loadData,k=e.popupVisible,S=e.open,_=e.popupClassName,E=e.dropdownClassName,$=e.dropdownMenuColumnStyle,M=e.dropdownStyle,P=e.popupPlacement,R=e.placement,O=e.onDropdownVisibleChange,j=e.onPopupVisibleChange,I=e.expandIcon,A=I===void 0?">":I,N=e.loadingIcon,F=e.children,K=e.dropdownMatchSelectWidth,L=K===void 0?!1:K,V=e.showCheckedStrategy,B=V===void 0?wge:V,U=e.optionRender,Y=Ht(e,_Ye),ee=yB(n),ie=!!f,Z=In(o,{value:s,postState:S6}),X=Te(Z,2),ae=X[0],oe=X[1],le=d.useMemo(function(){return Sge(a)},[JSON.stringify(a)]),ce=Mge(le,w),pe=Te(ce,3),me=pe[0],re=pe[1],fe=pe[2],ve=In("",{value:m,postState:function(Lt){return Lt||""}}),$e=Te(ve,2),Ce=$e[0],be=$e[1],Se=function(Lt,Bt){be(Lt),Bt.source!=="blur"&&g&&g(Lt)},we=pYe(v),se=Te(we,2),ye=se[0],Oe=se[1],z=iYe(Ce,me,le,b||i,Oe,l||ie),H=kge(me,le),G=Oge(ie,ae,re,fe,H),de=Te(G,3),xe=de[0],he=de[1],Ue=de[2],We=d.useMemo(function(){var jt=j0(xe),Lt=_ge(jt,re,B);return[].concat(lt(Ue),lt(fe(Lt)))},[xe,re,fe,Ue,B]),ge=lYe(We,me,le,ie,u),ze=Vn(function(jt){if(oe(jt),c){var Lt=S6(jt),Bt=Lt.map(function(He){return N0(He,me,le).map(function(Le){return Le.option})}),Ut=ie?Lt:Lt[0],Ne=ie?Bt:Bt[0];c(Ut,Ne)}}),Ve=Pge(ie,ze,xe,he,Ue,re,fe,B),Be=Vn(function(jt){(!ie||h)&&be(""),Ve(jt)}),Xe=function(Lt,Bt){if(Bt.type==="clear"){ze([]);return}var Ut=Bt.values[0],Ne=Ut.valueCells;Be(Ne)},Ke=S!==void 0?S:k,qe=E||_,Et=R||P,ut=function(Lt){O==null||O(Lt),j==null||j(Lt)},gt=d.useMemo(function(){return{options:me,fieldNames:le,values:xe,halfValues:he,changeOnSelect:l,onSelect:Be,checkable:f,searchOptions:z,dropdownPrefixCls:b,loadData:C,expandTrigger:y,expandIcon:A,loadingIcon:N,dropdownMenuColumnStyle:$,optionRender:U}},[me,le,xe,he,l,Be,f,z,b,C,y,A,N,$,U]),Qe=!(Ce?z:me).length,nt=Ce&&Oe.matchInputWidth||Qe?{}:{minWidth:"auto"};return d.createElement(Ay.Provider,{value:gt},d.createElement(hB,tt({},Y,{ref:t,id:ee,prefixCls:i,autoClearSearchValue:h,dropdownMatchSelectWidth:L,dropdownStyle:q(q({},nt),M),displayValues:ge,onDisplayValuesChange:Xe,mode:ie?"multiple":void 0,searchValue:Ce,onSearch:Se,showSearch:ye,OptionList:SYe,emptyOptions:Qe,open:Ke,dropdownClassName:qe,placement:Et,onDropdownVisibleChange:ut,getRawInputElement:function(){return F}})))});R4.SHOW_PARENT=wge;R4.SHOW_CHILD=xge;R4.Panel=jge;function Nge(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=d.useContext(Xt),a=t||r,o=n("select",e),s=n("cascader",e);return[o,s,a,i]}function Age(e,t){return d.useMemo(()=>t?d.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const Dge=(e,t,n)=>{let r=n;n||(r=t?d.createElement(Nf,null):d.createElement(bc,null));const i=d.createElement("span",{className:`${e}-menu-item-loading-icon`},d.createElement(vu,{spin:!0}));return d.useMemo(()=>[r,i],[r])},kYe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},yc(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},zGe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},vd()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Me(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Me(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${a}`}}})},HGe=e=>Object.assign(Object.assign({margin:`${Me(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},vd()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ao),"&-description":{color:e.colorTextDescription}}),UGe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Me(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Me(e.padding)} ${Me(i)}`}}},WGe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},VGe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:LGe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)}`},vd()),[`${t}-grid`]:BGe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:zGe(e),[`${t}-meta`]:HGe(e)}),[`${t}-bordered`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Me(e.borderRadiusLG)} ${Me(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:UGe(e),[`${t}-loading`]:WGe(e),[`${t}-rtl`]:{direction:"rtl"}}},qGe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Me(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},KGe=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},GGe=Jn("Card",e=>{const t=Hn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[VGe(t),qGe(t)]},KGe);var yX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,a)=>{const o=`action-${a}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:o},d.createElement("span",null,i))}))},XGe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:p,type:h,cover:m,actions:g,tabList:v,children:y,activeTabKey:w,defaultActiveTabKey:b,tabBarExtraContent:C,hoverable:k,tabProps:S={},classNames:_,styles:E}=e,$=yX(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:P,card:R}=d.useContext(Xt),O=$e=>{var Ce;(Ce=e.onTabChange)===null||Ce===void 0||Ce.call(e,$e)},j=$e=>{var Ce;return Ee((Ce=R==null?void 0:R.classNames)===null||Ce===void 0?void 0:Ce[$e],_==null?void 0:_[$e])},I=$e=>{var Ce;return Object.assign(Object.assign({},(Ce=R==null?void 0:R.styles)===null||Ce===void 0?void 0:Ce[$e]),E==null?void 0:E[$e])},A=d.useMemo(()=>{let $e=!1;return d.Children.forEach(y,Ce=>{(Ce==null?void 0:Ce.type)===yge&&($e=!0)}),$e},[y]),N=M("card",n),[F,K,L]=GGe(N),V=d.createElement(Kf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),B=w!==void 0,U=Object.assign(Object.assign({},S),{[B?"activeKey":"defaultActiveKey"]:B?w:b,tabBarExtraContent:C});let Y;const ee=Bi(p),ie=!ee||ee==="default"?"large":ee,Z=v?d.createElement(Yg,Object.assign({size:ie},U,{className:`${N}-head-tabs`,onChange:O,items:v.map($e=>{var{tab:Ce}=$e,be=yX($e,["tab"]);return Object.assign({label:Ce},be)})})):null;if(c||o||Z){const $e=Ee(`${N}-head`,j("header")),Ce=Ee(`${N}-head-title`,j("title")),be=Ee(`${N}-extra`,j("extra")),Se=Object.assign(Object.assign({},s),I("header"));Y=d.createElement("div",{className:$e,style:Se},d.createElement("div",{className:`${N}-head-wrapper`},c&&d.createElement("div",{className:Ce,style:I("title")},c),o&&d.createElement("div",{className:be,style:I("extra")},o)),Z)}const X=Ee(`${N}-cover`,j("cover")),ae=m?d.createElement("div",{className:X,style:I("cover")},m):null,oe=Ee(`${N}-body`,j("body")),le=Object.assign(Object.assign({},l),I("body")),ce=d.createElement("div",{className:oe,style:le},u?V:y),pe=Ee(`${N}-actions`,j("actions")),me=g!=null&&g.length?d.createElement(YGe,{actionClasses:pe,actionStyle:I("actions"),actions:g}):null,re=$r($,["onTabChange"]),fe=Ee(N,R==null?void 0:R.className,{[`${N}-loading`]:u,[`${N}-bordered`]:f,[`${N}-hoverable`]:k,[`${N}-contain-grid`]:A,[`${N}-contain-tabs`]:v==null?void 0:v.length,[`${N}-${ee}`]:ee,[`${N}-type-${h}`]:!!h,[`${N}-rtl`]:P==="rtl"},r,i,K,L),ve=Object.assign(Object.assign({},R==null?void 0:R.style),a);return F(d.createElement("div",Object.assign({ref:t},re,{className:fe,style:ve}),Y,ae,ce,me))});var ZGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=ZGe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(Xt),l=s("card",t),c=Ee(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?d.createElement("div",{className:`${l}-meta-title`},i):null,p=a?d.createElement("div",{className:`${l}-meta-description`},a):null,h=f||p?d.createElement("div",{className:`${l}-meta-detail`},f,p):null;return d.createElement("div",Object.assign({},o,{className:c}),u,h)},WB=XGe;WB.Grid=yge;WB.Meta=QGe;function JGe(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,p=0;function h(){u&&clearTimeout(u)}function m(v){var y=v||{},w=y.upcomingOnly,b=w===void 0?!1:w;h(),f=!b}function g(){for(var v=arguments.length,y=new Array(v),w=0;we?s?(p=Date.now(),a||(u=setTimeout(c?S:k,e))):k():a!==!0&&(u=setTimeout(c?S:k,c===void 0?e-C:e))}return g.cancel=m,g}function eYe(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return JGe(e,t,{debounceMode:a!==!1})}var Ay=d.createContext({}),Nv="__rc_cascader_search_mark__",tYe=function(t,n,r){var i=r.label,a=i===void 0?"":i;return n.some(function(o){return String(o[a]).toLowerCase().includes(t.toLowerCase())})},nYe=function(t,n,r,i){return n.map(function(a){return a[i.label]}).join(" / ")},rYe=function(t,n,r,i,a,o){var s=a.filter,l=s===void 0?tYe:s,c=a.render,u=c===void 0?nYe:c,f=a.limit,p=f===void 0?50:f,h=a.sort;return d.useMemo(function(){var m=[];if(!t)return[];function g(v,y){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(b){if(!(!h&&p!==!1&&p>0&&m.length>=p)){var C=[].concat(lt(y),[b]),k=b[r.children],S=w||b.disabled;if((!k||k.length===0||o)&&l(t,C,{label:r.label})){var _;m.push(q(q({},b),{},(_={disabled:S},ne(_,r.label,u(t,C,i,r)),ne(_,Nv,C),ne(_,r.children,void 0),_)))}k&&g(b[r.children],C,S)}})}return g(n,[]),h&&m.sort(function(v,y){return h(v[Nv],y[Nv],t,r)}),p!==!1&&p>0?m.slice(0,p):m},[t,n,r,i,u,o,l,h,p])},VB="__RC_CASCADER_SPLIT__",bge="SHOW_PARENT",wge="SHOW_CHILD";function cu(e){return e.join(VB)}function j0(e){return e.map(cu)}function iYe(e){return e.split(VB)}function xge(e){var t=e||{},n=t.label,r=t.value,i=t.children,a=r||"value";return{label:n||"label",value:a,key:a,children:i||"children"}}function _2(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function aYe(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Sge(e,t){return e.map(function(n){var r;return(r=n[Nv])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function oYe(e){return Array.isArray(e)&&Array.isArray(e[0])}function x6(e){return e?oYe(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function Cge(e,t,n){var r=new Set(e),i=t();return e.filter(function(a){var o=i[a],s=o?o.parent:null,l=o?o.children:null;return o&&o.node.disabled?!0:n===wge?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function N0(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,a=[],o=function(){var c,u,f,p=e[s],h=(c=i)===null||c===void 0?void 0:c.findIndex(function(g){var v=g[n.value];return r?String(v)===String(p):v===p}),m=h!==-1?(u=i)===null||u===void 0?void 0:u[h]:null;a.push({value:(f=m==null?void 0:m[n.value])!==null&&f!==void 0?f:p,index:h,option:m}),i=m==null?void 0:m[n.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(p,h){for(var m=kge(f?f.pos:"0",h),g=P4(p[a],m),v,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=a||l,u={},f={},p={posEntities:u,keyEntities:f};return n&&(p=n(p)||p),uYe(e,function(h){var m=h.node,g=h.index,v=h.pos,y=h.key,w=h.parentPos,b=h.level,C=h.nodes,k={node:m,nodes:C,index:g,key:y,pos:v,level:b},S=P4(y,v);u[v]=k,f[S]=k,k.parent=u[w],k.parent&&(k.parent.children=k.parent.children||[],k.parent.children.push(k)),r&&r(k,p)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),i&&i(p),p}function J2(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=Ns(u,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return p}function Pa(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,p=e.active,h=e.eventKey,m=q(q({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:p,key:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Br(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}const dYe=function(e,t){var n=d.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=d.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=L8(e,{fieldNames:t,initWrapper:function(a){return q(q({},a),{},{pathKeyEntities:{}})},processEntity:function(a,o){var s=a.nodes.map(function(l){return l[t.value]}).join(VB);o.pathKeyEntities[s]=a,a.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function $ge(e,t){var n=d.useMemo(function(){return t||[]},[t]),r=dYe(n,e),i=d.useCallback(function(a){var o=r();return a.map(function(s){var l=o[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,i]}function fYe(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Kt(e)==="object"&&(t=q(q({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function Mge(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function pYe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function hYe(e,t,n,r){for(var i=new Set(e),a=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var p=f.key,h=f.node,m=f.children,g=m===void 0?[]:m;i.has(p)&&!r(h)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){i.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var p=f.parent,h=f.node;if(!(r(h)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(p.key);return}var m=!0,g=!1;(p.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,w=i.has(y);m&&!w&&(m=!1),!g&&(w||a.has(y))&&(g=!0)}),m&&i.add(p.key),g&&a.add(p.key),l.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Mge(a,i))}}function mYe(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(p){var h=p.key,m=p.node,g=p.children,v=g===void 0?[]:g;!a.has(h)&&!o.has(h)&&!i(m)&&v.filter(function(y){return!i(y.node)}).forEach(function(y){a.delete(y.key)})})}o=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(p){var h=p.parent,m=p.node;if(!(i(m)||!p.parent||c.has(p.parent.key))){if(i(p.parent.node)){c.add(h.key);return}var g=!0,v=!1;(h.children||[]).filter(function(y){return!i(y.node)}).forEach(function(y){var w=y.key,b=a.has(w);g&&!b&&(g=!1),!v&&(b||o.has(w))&&(v=!0)}),g||a.delete(h.key),v&&o.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Mge(o,a))}}function bf(e,t,n,r){var i=[],a;a=pYe;var o=new Set(e.filter(function(u){var f=!!Ns(n,u);return f||i.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],p=f.level,h=s.get(p);h||(h=new Set,s.set(p,h)),h.add(f),l=Math.max(l,p)}),Br(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=hYe(o,s,l,a):c=mYe(o,t.halfCheckedKeys,s,l,a),c}function Tge(e,t,n,r,i,a,o,s){return function(l){if(!e)t(l);else{var c=cu(l),u=j0(n),f=j0(r),p=u.includes(c),h=i.some(function(S){return cu(S)===c}),m=n,g=i;if(h&&!p)g=i.filter(function(S){return cu(S)!==c});else{var v=p?u.filter(function(S){return S!==c}):[].concat(lt(u),[c]),y=a(),w;if(p){var b=bf(v,{checked:!1,halfCheckedKeys:f},y);w=b.checkedKeys}else{var C=bf(v,!0,y);w=C.checkedKeys}var k=Cge(w,a,s);m=o(k)}t([].concat(lt(g),lt(m)))}}}function Pge(e,t,n,r,i){return d.useMemo(function(){var a=i(t),o=Te(a,2),s=o[0],l=o[1];if(!e||!t.length)return[s,[],l];var c=j0(s),u=n(),f=bf(c,!0,u),p=f.checkedKeys,h=f.halfCheckedKeys;return[r(p),r(h),l]},[e,t,n,r,i])}var gYe=d.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function vYe(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,a=e.disabled,o=e.onClick,s=e.disableCheckbox,l=d.useContext(Ay),c=l.checkable,u=typeof c!="boolean"?c:null;return d.createElement("span",{className:Ee("".concat(n),(t={},ne(t,"".concat(n,"-checked"),r),ne(t,"".concat(n,"-indeterminate"),!r&&i),ne(t,"".concat(n,"-disabled"),a||s),t)),onClick:o},u)}var Oge="__cascader_fix_label__";function yYe(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,a=e.prevValuePath,o=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,f=e.loadingKeys,p=e.isSelectable,h=e.disabled,m="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=d.useContext(Ay),y=v.fieldNames,w=v.changeOnSelect,b=v.expandTrigger,C=v.expandIcon,k=v.loadingIcon,S=v.dropdownMenuColumnStyle,_=v.optionRender,E=b==="hover",$=function(R){return h||R},M=d.useMemo(function(){return r.map(function(P){var R,O=P.disabled,j=P.disableCheckbox,I=P[Nv],A=(R=P[Oge])!==null&&R!==void 0?R:P[y.label],N=P[y.value],F=_2(P,y),K=I?I.map(function(Y){return Y[y.value]}):[].concat(lt(a),[N]),L=cu(K),V=f.includes(L),B=c.has(L),U=u.has(L);return{disabled:O,label:A,value:N,isLeaf:F,isLoading:V,checked:B,halfChecked:U,option:P,disableCheckbox:j,fullPath:K,fullPathKey:L}})},[r,c,y,u,f,a]);return d.createElement("ul",{className:m,role:"menu"},M.map(function(P){var R,O=P.disabled,j=P.label,I=P.value,A=P.isLeaf,N=P.isLoading,F=P.checked,K=P.halfChecked,L=P.option,V=P.fullPath,B=P.fullPathKey,U=P.disableCheckbox,Y=function(){if(!$(O)){var X=lt(V);E&&A&&X.pop(),l(X)}},ee=function(){p(L)&&!$(O)&&s(V,A)},ie;return typeof L.title=="string"?ie=L.title:typeof j=="string"&&(ie=j),d.createElement("li",{key:B,className:Ee(g,(R={},ne(R,"".concat(g,"-expand"),!A),ne(R,"".concat(g,"-active"),i===I||i===B),ne(R,"".concat(g,"-disabled"),$(O)),ne(R,"".concat(g,"-loading"),N),R)),style:S,role:"menuitemcheckbox",title:ie,"aria-checked":F,"data-path-key":B,onClick:function(){Y(),!U&&(!n||A)&&ee()},onDoubleClick:function(){w&&o(!1)},onMouseEnter:function(){E&&Y()},onMouseDown:function(X){X.preventDefault()}},n&&d.createElement(vYe,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:K,disabled:$(O)||U,disableCheckbox:U,onClick:function(X){U||(X.stopPropagation(),ee())}}),d.createElement("div",{className:"".concat(g,"-content")},_?_(L):j),!N&&C&&!A&&d.createElement("div",{className:"".concat(g,"-expand-icon")},C),N&&k&&d.createElement("div",{className:"".concat(g,"-loading-icon")},k))}))}var bYe=function(t,n){var r=d.useContext(Ay),i=r.values,a=i[0],o=d.useState([]),s=Te(o,2),l=s[0],c=s[1];return d.useEffect(function(){t||c(a||[])},[n,a]),[l,c]};const wYe=function(e,t,n,r,i,a,o){var s=o.direction,l=o.searchValue,c=o.toggleOpen,u=o.open,f=s==="rtl",p=d.useMemo(function(){for(var S=-1,_=t,E=[],$=[],M=r.length,P=Sge(t,n),R=function(N){var F=_.findIndex(function(K,L){return(P[L]?cu(P[L]):K[n.value])===r[N]});if(F===-1)return 1;S=F,E.push(S),$.push(r[N]),_=_[S][n.children]},O=0;O1){var _=m.slice(0,-1);w(_)}else c(!1)},k=function(){var _,E=((_=v[g])===null||_===void 0?void 0:_[n.children])||[],$=E.find(function(P){return!P.disabled});if($){var M=[].concat(lt(m),[$[n.value]]);w(M)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(_){var E=_.which;switch(E){case mt.UP:case mt.DOWN:{var $=0;E===mt.UP?$=-1:E===mt.DOWN&&($=1),$!==0&&b($);break}case mt.LEFT:{if(l)break;f?k():C();break}case mt.RIGHT:{if(l)break;f?C():k();break}case mt.BACKSPACE:{l||C();break}case mt.ENTER:{if(m.length){var M=v[g],P=(M==null?void 0:M[Nv])||[];P.length?a(P.map(function(R){return R[n.value]}),P[P.length-1]):a(m,v[g])}break}case mt.ESC:c(!1),u&&_.stopPropagation()}},onKeyUp:function(){}}})};var Rge=d.forwardRef(function(e,t){var n,r,i,a=e.prefixCls,o=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,f=e.open,p=e.disabled,h=d.useRef(null),m=u==="rtl",g=d.useContext(Ay),v=g.options,y=g.values,w=g.halfValues,b=g.fieldNames,C=g.changeOnSelect,k=g.onSelect,S=g.searchOptions,_=g.dropdownPrefixCls,E=g.loadData,$=g.expandTrigger,M=_||a,P=d.useState([]),R=Te(P,2),O=R[0],j=R[1],I=function(me){if(!(!E||s)){var re=N0(me,v,b),fe=re.map(function(Ce){var be=Ce.option;return be}),ve=fe[fe.length-1];if(ve&&!_2(ve,b)){var $e=cu(me);j(function(Ce){return[].concat(lt(Ce),[$e])}),E(fe)}}};d.useEffect(function(){O.length&&O.forEach(function(pe){var me=iYe(pe),re=N0(me,v,b,!0).map(function(ve){var $e=ve.option;return $e}),fe=re[re.length-1];(!fe||fe[b.children]||_2(fe,b))&&j(function(ve){return ve.filter(function($e){return $e!==pe})})})},[v,O,b]);var A=d.useMemo(function(){return new Set(j0(y))},[y]),N=d.useMemo(function(){return new Set(j0(w))},[w]),F=bYe(o,f),K=Te(F,2),L=K[0],V=K[1],B=function(me){V(me),I(me)},U=function(me){if(p)return!1;var re=me.disabled,fe=_2(me,b);return!re&&(fe||C||o)},Y=function(me,re){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k(me),!o&&(re||C&&($==="hover"||fe))&&l(!1)},ee=d.useMemo(function(){return s?S:v},[s,S,v]),ie=d.useMemo(function(){for(var pe=[{options:ee}],me=ee,re=Sge(me,b),fe=function(){var Ce=L[ve],be=me.find(function(we,se){return(re[se]?cu(re[se]):we[b.value])===Ce}),Se=be==null?void 0:be[b.children];if(!(Se!=null&&Se.length))return 1;me=Se,pe.push({options:Se})},ve=0;ve":y,b=n.loadingIcon,C=n.direction,k=n.notFoundContent,S=k===void 0?"Not Found":k,_=n.disabled,E=!!l,$=In(c,{value:u,postState:x6}),M=Te($,2),P=M[0],R=M[1],O=d.useMemo(function(){return xge(f)},[JSON.stringify(f)]),j=$ge(O,s),I=Te(j,3),A=I[0],N=I[1],F=I[2],K=_ge(A,O),L=Pge(E,P,N,F,K),V=Te(L,3),B=V[0],U=V[1],Y=V[2],ee=Vn(function(le){if(R(le),h){var ce=x6(le),pe=ce.map(function(fe){return N0(fe,A,O).map(function(ve){return ve.option})}),me=E?ce:ce[0],re=E?pe:pe[0];h(me,re)}}),ie=Tge(E,ee,B,U,Y,N,F,m),Z=Vn(function(le){ie(le)}),X=d.useMemo(function(){return{options:A,fieldNames:O,values:B,halfValues:U,changeOnSelect:p,onSelect:Z,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:w,loadingIcon:b,dropdownMenuColumnStyle:void 0}},[A,O,B,U,p,Z,l,g,v,w,b]),ae="".concat(i,"-panel"),oe=!A.length;return d.createElement(Ay.Provider,{value:X},d.createElement("div",{className:Ee(ae,(t={},ne(t,"".concat(ae,"-rtl"),C==="rtl"),ne(t,"".concat(ae,"-empty"),oe),t),o),style:a},oe?S:d.createElement(Rge,{prefixCls:i,searchValue:"",multiple:E,toggleOpen:SYe,open:!0,direction:C,disabled:_})))}var CYe=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],O4=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,a=e.fieldNames,o=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,f=e.checkable,p=e.autoClearSearchValue,h=p===void 0?!0:p,m=e.searchValue,g=e.onSearch,v=e.showSearch,y=e.expandTrigger,w=e.options,b=e.dropdownPrefixCls,C=e.loadData,k=e.popupVisible,S=e.open,_=e.popupClassName,E=e.dropdownClassName,$=e.dropdownMenuColumnStyle,M=e.dropdownStyle,P=e.popupPlacement,R=e.placement,O=e.onDropdownVisibleChange,j=e.onPopupVisibleChange,I=e.expandIcon,A=I===void 0?">":I,N=e.loadingIcon,F=e.children,K=e.dropdownMatchSelectWidth,L=K===void 0?!1:K,V=e.showCheckedStrategy,B=V===void 0?bge:V,U=e.optionRender,Y=Ht(e,CYe),ee=yB(n),ie=!!f,Z=In(o,{value:s,postState:x6}),X=Te(Z,2),ae=X[0],oe=X[1],le=d.useMemo(function(){return xge(a)},[JSON.stringify(a)]),ce=$ge(le,w),pe=Te(ce,3),me=pe[0],re=pe[1],fe=pe[2],ve=In("",{value:m,postState:function(Lt){return Lt||""}}),$e=Te(ve,2),Ce=$e[0],be=$e[1],Se=function(Lt,Bt){be(Lt),Bt.source!=="blur"&&g&&g(Lt)},we=fYe(v),se=Te(we,2),ye=se[0],Oe=se[1],z=rYe(Ce,me,le,b||i,Oe,l||ie),H=_ge(me,le),G=Pge(ie,ae,re,fe,H),de=Te(G,3),xe=de[0],he=de[1],Ue=de[2],We=d.useMemo(function(){var jt=j0(xe),Lt=Cge(jt,re,B);return[].concat(lt(Ue),lt(fe(Lt)))},[xe,re,fe,Ue,B]),ge=sYe(We,me,le,ie,u),ze=Vn(function(jt){if(oe(jt),c){var Lt=x6(jt),Bt=Lt.map(function(He){return N0(He,me,le).map(function(Le){return Le.option})}),Ut=ie?Lt:Lt[0],Ne=ie?Bt:Bt[0];c(Ut,Ne)}}),Ve=Tge(ie,ze,xe,he,Ue,re,fe,B),Be=Vn(function(jt){(!ie||h)&&be(""),Ve(jt)}),Xe=function(Lt,Bt){if(Bt.type==="clear"){ze([]);return}var Ut=Bt.values[0],Ne=Ut.valueCells;Be(Ne)},Ke=S!==void 0?S:k,qe=E||_,Et=R||P,ut=function(Lt){O==null||O(Lt),j==null||j(Lt)},gt=d.useMemo(function(){return{options:me,fieldNames:le,values:xe,halfValues:he,changeOnSelect:l,onSelect:Be,checkable:f,searchOptions:z,dropdownPrefixCls:b,loadData:C,expandTrigger:y,expandIcon:A,loadingIcon:N,dropdownMenuColumnStyle:$,optionRender:U}},[me,le,xe,he,l,Be,f,z,b,C,y,A,N,$,U]),Qe=!(Ce?z:me).length,nt=Ce&&Oe.matchInputWidth||Qe?{}:{minWidth:"auto"};return d.createElement(Ay.Provider,{value:gt},d.createElement(hB,tt({},Y,{ref:t,id:ee,prefixCls:i,autoClearSearchValue:h,dropdownMatchSelectWidth:L,dropdownStyle:q(q({},nt),M),displayValues:ge,onDisplayValuesChange:Xe,mode:ie?"multiple":void 0,searchValue:Ce,onSearch:Se,showSearch:ye,OptionList:xYe,emptyOptions:Qe,open:Ke,dropdownClassName:qe,placement:Et,onDropdownVisibleChange:ut,getRawInputElement:function(){return F}})))});O4.SHOW_PARENT=bge;O4.SHOW_CHILD=wge;O4.Panel=Ige;function jge(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=d.useContext(Xt),a=t||r,o=n("select",e),s=n("cascader",e);return[o,s,a,i]}function Nge(e,t){return d.useMemo(()=>t?d.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const Age=(e,t,n)=>{let r=n;n||(r=t?d.createElement(Nf,null):d.createElement(bc,null));const i=d.createElement("span",{className:`${e}-menu-item-loading-icon`},d.createElement(vu,{spin:!0}));return d.useMemo(()=>[r,i],[r])},_Ye=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},ar(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},yc(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function B8(e,t){const n=Hn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[kYe(n)]}const Fge=Jn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[B8(n,e)]}),Lge=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=` + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function B8(e,t){const n=Hn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[_Ye(n)]}const Dge=Jn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[B8(n,e)]}),Fge=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=` &${r}-expand ${r}-expand-icon, ${r}-loading-icon -`;return[B8(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},ao),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},EYe=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Lge(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Wg(e)]},Bge=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},zge=Jn("Cascader",e=>[EYe(e)],Bge),$Ye=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Lge(e),{display:"inline-flex",border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},MYe=Dfe(["Cascader","Panel"],e=>$Ye(e),Bge);function TYe(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,disabled:l}=e,c=d.useContext(ma),u=l??c,[f,p,h,m]=Nge(t,o),g=qr(p),[v,y,w]=zge(p,g);MYe(p);const b=h==="rtl",[C,k]=Dge(f,b,s),S=a||(m==null?void 0:m("Cascader"))||d.createElement(Vg,{componentName:"Cascader"}),_=Age(p,r);return v(d.createElement(jge,Object.assign({},e,{checkable:_,prefixCls:p,className:Ee(n,y,i,w,g),notFoundContent:S,direction:h,expandIcon:C,loadingIcon:k,disabled:u})))}var PYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);il===0?[s]:[].concat(lt(o),[t,s]),[]),i=[];let a=0;return r.forEach((o,s)=>{const l=a+o.length;let c=e.slice(a,l);a=l,s%2===1&&(c=d.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const jYe=(e,t,n,r)=>{const i=[],a=e.toLowerCase();return t.forEach((o,s)=>{s!==0&&i.push(" / ");let l=o[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=IYe(String(l),a,n)),i.push(l)}),i},Dy=d.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:a,className:o,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:f="",popupClassName:p,dropdownClassName:h,expandIcon:m,placement:g,showSearch:v,allowClear:y=!0,notFoundContent:w,direction:b,getPopupContainer:C,status:k,showArrow:S,builtinPlacements:_,style:E,variant:$}=e,M=PYe(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),P=$r(M,["suffixIcon"]),{getPopupContainer:R,getPrefixCls:O,popupOverflow:j,cascader:I}=d.useContext(Xt),{status:A,hasFeedback:N,isFormItemInput:F,feedbackIcon:K}=d.useContext(oa),L=Mu(A,k),[V,B,U,Y]=Nge(r,b),ee=U==="rtl",ie=O(),Z=qr(V),[X,ae,oe]=xB(V,Z),le=qr(B),[ce]=zge(B,le),{compactSize:pe,compactItemClassnames:me}=$u(V,b),[re,fe]=Od("cascader",$,c),ve=w||(Y==null?void 0:Y("Cascader"))||d.createElement(Vg,{componentName:"Cascader"}),$e=Ee(p||h,`${B}-dropdown`,{[`${B}-dropdown-rtl`]:U==="rtl"},s,Z,le,ae,oe),Ce=d.useMemo(()=>{if(!v)return v;let ge={render:jYe};return typeof v=="object"&&(ge=Object.assign(Object.assign({},ge),v)),ge},[v]),be=Bi(ge=>{var ze;return(ze=i??pe)!==null&&ze!==void 0?ze:ge}),Se=d.useContext(ma),we=a??Se,[se,ye]=Dge(V,ee,m),Oe=Age(B,l),z=SB(e.suffixIcon,S),{suffixIcon:H,removeIcon:G,clearIcon:de}=w8(Object.assign(Object.assign({},e),{hasFeedback:N,feedbackIcon:K,showSuffixIcon:z,multiple:l,prefixCls:V,componentName:"Cascader"})),xe=d.useMemo(()=>g!==void 0?g:ee?"bottomRight":"bottomLeft",[g,ee]),he=y===!0?{clearIcon:de}:y,[Ue]=$c("SelectLike",(n=P.dropdownStyle)===null||n===void 0?void 0:n.zIndex),We=d.createElement(R4,Object.assign({prefixCls:V,className:Ee(!r&&B,{[`${V}-lg`]:be==="large",[`${V}-sm`]:be==="small",[`${V}-rtl`]:ee,[`${V}-${re}`]:fe,[`${V}-in-form-item`]:F},Al(V,L,N),me,I==null?void 0:I.className,o,s,Z,le,ae,oe),disabled:we,style:Object.assign(Object.assign({},I==null?void 0:I.style),E)},P,{builtinPlacements:wB(_,j),direction:U,placement:xe,notFoundContent:ve,allowClear:he,showSearch:Ce,expandIcon:se,suffixIcon:H,removeIcon:G,loadingIcon:ye,checkable:Oe,dropdownClassName:$e,dropdownPrefixCls:r||B,dropdownStyle:Object.assign(Object.assign({},P.dropdownStyle),{zIndex:Ue}),choiceTransitionName:oo(ie,"",f),transitionName:oo(ie,"slide-up",u),getPopupContainer:C||R,ref:t}));return ce(X(We))}),NYe=Gf(Dy,"dropdownAlign",e=>$r(e,["visible"]));Dy.SHOW_PARENT=RYe;Dy.SHOW_CHILD=OYe;Dy.Panel=TYe;Dy._InternalPanelDoNotUseOrYouWillBeFired=NYe;const Hge=te.createContext(null);var AYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,rootClassName:a,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:p}=e,h=AYe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=d.useContext(Xt),y=d.useContext(Hge),{isFormItemInput:w}=d.useContext(oa),b=d.useContext(ma),C=(n=(y==null?void 0:y.disabled)||p)!==null&&n!==void 0?n:b,k=d.useRef(h.value),S=d.useRef(null),_=ga(t,S);d.useEffect(()=>{y==null||y.registerValue(h.value)},[]),d.useEffect(()=>{if(!f)return h.value!==k.current&&(y==null||y.cancelValue(k.current),y==null||y.registerValue(h.value),k.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]),d.useEffect(()=>{var F;!((F=S.current)===null||F===void 0)&&F.input&&(S.current.input.indeterminate=s)},[s]);const E=m("checkbox",r),$=qr(E),[M,P,R]=Fge(E,$),O=Object.assign({},h);y&&!f&&(O.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),y.toggleOption&&y.toggleOption({label:o,value:h.value})},O.name=y.name,O.checked=y.value.includes(h.value));const j=Ee(`${E}-wrapper`,{[`${E}-rtl`]:g==="rtl",[`${E}-wrapper-checked`]:O.checked,[`${E}-wrapper-disabled`]:C,[`${E}-wrapper-in-form-item`]:w},v==null?void 0:v.className,i,a,R,$,P),I=Ee({[`${E}-indeterminate`]:s},t8,P),[A,N]=sge(O.onClick);return M(d.createElement(x4,{component:"Checkbox",disabled:C},d.createElement("label",{className:j,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:A},d.createElement(oge,Object.assign({},O,{onClick:N,prefixCls:E,className:I,disabled:C,ref:_})),o!==void 0&&d.createElement("span",null,o))))},Uge=d.forwardRef(DYe);var FYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:l,onChange:c}=e,u=FYe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=d.useContext(Xt),[h,m]=d.useState(u.value||n||[]),[g,v]=d.useState([]);d.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const y=d.useMemo(()=>i.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),[i]),w=I=>{v(A=>A.filter(N=>N!==I))},b=I=>{v(A=>[].concat(lt(A),[I]))},C=I=>{const A=h.indexOf(I.value),N=lt(h);A===-1?N.push(I.value):N.splice(A,1),"value"in u||m(N),c==null||c(N.filter(F=>g.includes(F)).sort((F,K)=>{const L=y.findIndex(B=>B.value===F),V=y.findIndex(B=>B.value===K);return L-V}))},k=f("checkbox",a),S=`${k}-group`,_=qr(k),[E,$,M]=Fge(k,_),P=$r(u,["value","disabled"]),R=i.length?y.map(I=>d.createElement(Uge,{prefixCls:k,key:I.value.toString(),disabled:"disabled"in I?I.disabled:u.disabled,value:I.value,checked:h.includes(I.value),onChange:I.onChange,className:`${S}-item`,style:I.style,title:I.title,id:I.id,required:I.required},I.label)):r,O={toggleOption:C,value:h,disabled:u.disabled,name:u.name,registerValue:b,cancelValue:w},j=Ee(S,{[`${S}-rtl`]:p==="rtl"},o,s,M,_,$);return E(d.createElement("div",Object.assign({className:j,style:l},P,{ref:t}),d.createElement(Hge.Provider,{value:O},R)))}),ps=Uge;ps.Group=LYe;ps.__ANT_CHECKBOX=!0;const Wge=d.createContext({});var BYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(Xt),{gutter:i,wrap:a}=d.useContext(Wge),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:f,className:p,children:h,flex:m,style:g}=e,v=BYe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",o),[w,b,C]=cze(y),k={};let S={};zYe.forEach($=>{let M={};const P=e[$];typeof P=="number"?M.span=P:typeof P=="object"&&(M=P||{}),delete v[$],S=Object.assign(Object.assign({},S),{[`${y}-${$}-${M.span}`]:M.span!==void 0,[`${y}-${$}-order-${M.order}`]:M.order||M.order===0,[`${y}-${$}-offset-${M.offset}`]:M.offset||M.offset===0,[`${y}-${$}-push-${M.push}`]:M.push||M.push===0,[`${y}-${$}-pull-${M.pull}`]:M.pull||M.pull===0,[`${y}-rtl`]:r==="rtl"}),M.flex&&(S[`${y}-${$}-flex`]=!0,k[`--${y}-${$}-flex`]=bX(M.flex))});const _=Ee(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},p,S,b,C),E={};if(i&&i[0]>0){const $=i[0]/2;E.paddingLeft=$,E.paddingRight=$}return m&&(E.flex=bX(m),a===!1&&!E.minWidth&&(E.minWidth=0)),w(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),g),k),className:_,ref:t}),h))});var HYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{i()},[JSON.stringify(e),t]),n}const z8=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:c}=e,u=HYe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=d.useContext(Xt),[h,m]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=wX(i,g),w=wX(r,g),b=d.useRef(l),C=jhe();d.useEffect(()=>{const N=C.subscribe(F=>{v(F);const K=b.current||0;(!Array.isArray(K)&&typeof K=="object"||Array.isArray(K)&&(typeof K[0]=="object"||typeof K[1]=="object"))&&m(F)});return()=>C.unsubscribe(N)},[]);const k=()=>{const N=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((K,L)=>{if(typeof K=="object")for(let V=0;V0?M[0]/-2:void 0;O&&(R.marginLeft=O,R.marginRight=O);const[j,I]=M;R.rowGap=I;const A=d.useMemo(()=>({gutter:[j,I],wrap:c}),[j,I,c]);return _(d.createElement(Wge.Provider,{value:A},d.createElement("div",Object.assign({},u,{className:P,style:Object.assign(Object.assign({},R),o),ref:t}),s)))}),UYe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{borderBlockStart:`${Me(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Me(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Me(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Me(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Me(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Me(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Me(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},WYe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),VYe=Jn("Divider",e=>{const t=Hn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[UYe(t)]},WYe,{unitless:{orientationMargin:!0}});var qYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=d.useContext(Xt),{prefixCls:i,type:a="horizontal",orientation:o="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:f,variant:p="solid",plain:h,style:m}=e,g=qYe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[y,w,b]=VYe(v),C=!!u,k=o==="left"&&s!=null,S=o==="right"&&s!=null,_=Ee(v,r==null?void 0:r.className,w,b,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text-${o}`]:C,[`${v}-dashed`]:!!f,[`${v}-${p}`]:p!=="solid",[`${v}-plain`]:!!h,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:k,[`${v}-no-default-orientation-margin-right`]:S},l,c),E=d.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},k&&{marginLeft:E}),S&&{marginRight:E});return y(d.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},g,{role:"separator"}),u&&a!=="vertical"&&d.createElement("span",{className:`${v}-inner-text`,style:$},u)))};var xX=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Fu=function(t){return t!==void 0?"".concat(t,"px"):void 0};function GYe(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,a=e.motionName,o=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,f=d.useRef(null),p=d.useState(r),h=Te(p,2),m=h[0],g=h[1],v=function(I){var A,N=i(I),F=(A=n.current)===null||A===void 0?void 0:A.querySelectorAll(".".concat(t,"-item"))[N];return(F==null?void 0:F.offsetParent)&&F},y=d.useState(null),w=Te(y,2),b=w[0],C=w[1],k=d.useState(null),S=Te(k,2),_=S[0],E=S[1];nr(function(){if(m!==r){var j=v(m),I=v(r),A=xX(j,u),N=xX(I,u);g(r),C(A),E(N),j&&I?o():s()}},[r]);var $=d.useMemo(function(){if(u){var j;return Fu((j=b==null?void 0:b.top)!==null&&j!==void 0?j:0)}return Fu(l==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[u,l,b]),M=d.useMemo(function(){if(u){var j;return Fu((j=_==null?void 0:_.top)!==null&&j!==void 0?j:0)}return Fu(l==="rtl"?-(_==null?void 0:_.right):_==null?void 0:_.left)},[u,l,_]),P=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},R=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},O=function(){C(null),E(null),s()};return!b||!_?null:d.createElement(Ca,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:P,onAppearActive:R,onVisibleChanged:O},function(j,I){var A=j.className,N=j.style,F=q(q({},N),{},{"--thumb-start-left":$,"--thumb-start-width":Fu(b==null?void 0:b.width),"--thumb-active-left":M,"--thumb-active-width":Fu(_==null?void 0:_.width),"--thumb-start-top":$,"--thumb-start-height":Fu(b==null?void 0:b.height),"--thumb-active-top":M,"--thumb-active-height":Fu(_==null?void 0:_.height)}),K={ref:ga(f,I),style:F,className:Ee("".concat(t,"-thumb"),A)};return d.createElement("div",K)})}var YYe=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function XYe(e){if(typeof e.title<"u")return e.title;if(Kt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function ZYe(e){return e.map(function(t){if(Kt(t)==="object"&&t!==null){var n=XYe(t);return q(q({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var QYe=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,a=t.checked,o=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,f=t.onFocus,p=t.onBlur,h=t.onKeyDown,m=t.onKeyUp,g=t.onMouseDown,v=function(w){i||u(w,l)};return d.createElement("label",{className:Ee(r,ne({},"".concat(n,"-item-disabled"),i)),onMouseDown:g},d.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:a,onChange:v,onFocus:f,onBlur:p,onKeyDown:h,onKeyUp:m}),d.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":a},o))},JYe=d.forwardRef(function(e,t){var n,r,i=e.prefixCls,a=i===void 0?"rc-segmented":i,o=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,f=e.defaultValue,p=e.value,h=e.name,m=e.onChange,g=e.className,v=g===void 0?"":g,y=e.motionName,w=y===void 0?"thumb-motion":y,b=Ht(e,YYe),C=d.useRef(null),k=d.useMemo(function(){return ga(C,t)},[C,t]),S=d.useMemo(function(){return ZYe(c)},[c]),_=In((n=S[0])===null||n===void 0?void 0:n.value,{value:p,defaultValue:f}),E=Te(_,2),$=E[0],M=E[1],P=d.useState(!1),R=Te(P,2),O=R[0],j=R[1],I=function(ce,pe){M(pe),m==null||m(pe)},A=$r(b,["children"]),N=d.useState(!1),F=Te(N,2),K=F[0],L=F[1],V=d.useState(!1),B=Te(V,2),U=B[0],Y=B[1],ee=function(){Y(!0)},ie=function(){Y(!1)},Z=function(){L(!1)},X=function(ce){ce.key==="Tab"&&L(!0)},ae=function(ce){var pe=S.findIndex(function(ve){return ve.value===$}),me=S.length,re=(pe+ce+me)%me,fe=S[re];fe&&(M(fe.value),m==null||m(fe.value))},oe=function(ce){switch(ce.key){case"ArrowLeft":case"ArrowUp":ae(-1);break;case"ArrowRight":case"ArrowDown":ae(1);break}};return d.createElement("div",tt({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},A,{className:Ee(a,(r={},ne(r,"".concat(a,"-rtl"),o==="rtl"),ne(r,"".concat(a,"-disabled"),u),ne(r,"".concat(a,"-vertical"),s),r),v),ref:k}),d.createElement("div",{className:"".concat(a,"-group")},d.createElement(GYe,{vertical:s,prefixCls:a,value:$,containerRef:C,motionName:"".concat(a,"-").concat(w),direction:o,getValueIndex:function(ce){return S.findIndex(function(pe){return pe.value===ce})},onMotionStart:function(){j(!0)},onMotionEnd:function(){j(!1)}}),S.map(function(le){var ce;return d.createElement(QYe,tt({},le,{name:h,key:le.value,prefixCls:a,className:Ee(le.className,"".concat(a,"-item"),(ce={},ne(ce,"".concat(a,"-item-selected"),le.value===$&&!O),ne(ce,"".concat(a,"-item-focused"),U&&K&&le.value===$),ce)),checked:le.value===$,onChange:I,onFocus:ee,onBlur:ie,onKeyDown:oe,onKeyUp:X,onMouseDown:Z,disabled:!!u||!!le.disabled}))})))}),eXe=JYe;function SX(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function CX(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const tXe=Object.assign({overflow:"hidden"},ao),nXe=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Vs(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${Me(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},CX(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},yc(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Me(n),padding:`0 ${Me(e.segmentedPaddingHorizontal)}`},tXe),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},CX(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Me(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:Me(r),padding:`0 ${Me(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:Me(i),padding:`0 ${Me(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),SX(`&-disabled ${t}-item`,e)),SX(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},rXe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}},iXe=Jn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Hn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[nXe(r)]},rXe);var _X=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=h8(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:l="middle",style:c,vertical:u,name:f=n}=e,p=_X(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:h,direction:m,segmented:g}=d.useContext(Xt),v=h("segmented",r),[y,w,b]=iXe(v),C=Bi(l),k=d.useMemo(()=>s.map(E=>{if(aXe(E)){const{icon:$,label:M}=E,P=_X(E,["icon","label"]);return Object.assign(Object.assign({},P),{label:d.createElement(d.Fragment,null,d.createElement("span",{className:`${v}-item-icon`},$),M&&d.createElement("span",null,M))})}return E}),[s,v]),S=Ee(i,a,g==null?void 0:g.className,{[`${v}-block`]:o,[`${v}-sm`]:C==="small",[`${v}-lg`]:C==="large",[`${v}-vertical`]:u},w,b),_=Object.assign(Object.assign({},g==null?void 0:g.style),c);return y(d.createElement(eXe,Object.assign({},p,{name:f,className:S,style:_,options:k,ref:t,prefixCls:v,direction:m,vertical:u})))}),Vge=oXe,qge=te.createContext({}),Kge=te.createContext({}),Gge=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const a=n.toHsb();a.a=0;const o=Xo(a);o.cleared=!0,r(o)}};return te.createElement("div",{className:`${t}-clear`,onClick:i})};var ih;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(ih||(ih={}));var sXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},lXe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:sXe}))},Yge=d.forwardRef(lXe);function Gj(){return typeof BigInt=="function"}function Xge(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function qm(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}function qB(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function _m(e){var t=String(e);if(qB(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&KB(t)?t.length-t.indexOf(".")-1:0}function H8(e){var t=String(e);if(qB(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Gj()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":qm("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),uXe=function(){function e(t){if(Ar(this,e),ne(this,"origin",""),ne(this,"number",void 0),ne(this,"empty",void 0),Xge(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Dr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":H8(this.number):this.origin}}]),e}();function zc(e){return Gj()?new cXe(e):new uXe(e)}function l_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=qm(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(o);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=zc(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return l_(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function dXe(e){return!!(e.addonBefore||e.addonAfter)}function fXe(e){return!!(e.prefix||e.suffix||e.allowClear)}function kX(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function C6(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=kX(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=kX(t,e,r),n(i);return}n(i)}}function GB(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var U8=te.forwardRef(function(e,t){var n,r,i,a=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,h=e.style,m=e.disabled,g=e.readOnly,v=e.focused,y=e.triggerFocus,w=e.allowClear,b=e.value,C=e.handleReset,k=e.hidden,S=e.classes,_=e.classNames,E=e.dataAttrs,$=e.styles,M=e.components,P=e.onClear,R=o??a,O=(M==null?void 0:M.affixWrapper)||"span",j=(M==null?void 0:M.groupWrapper)||"span",I=(M==null?void 0:M.wrapper)||"span",A=(M==null?void 0:M.groupAddon)||"span",N=d.useRef(null),F=function(re){var fe;(fe=N.current)!==null&&fe!==void 0&&fe.contains(re.target)&&(y==null||y())},K=fXe(e),L=d.cloneElement(R,{value:b,className:Ee((n=R.props)===null||n===void 0?void 0:n.className,!K&&(_==null?void 0:_.variant))||null}),V=d.useRef(null);if(te.useImperativeHandle(t,function(){return{nativeElement:V.current||N.current}}),K){var B=null;if(w){var U=!m&&!g&&b,Y="".concat(s,"-clear-icon"),ee=Kt(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";B=te.createElement("button",{type:"button",onClick:function(re){C==null||C(re),P==null||P()},onMouseDown:function(re){return re.preventDefault()},className:Ee(Y,ne(ne({},"".concat(Y,"-hidden"),!U),"".concat(Y,"-has-suffix"),!!c))},ee)}var ie="".concat(s,"-affix-wrapper"),Z=Ee(ie,ne(ne(ne(ne(ne({},"".concat(s,"-disabled"),m),"".concat(ie,"-disabled"),m),"".concat(ie,"-focused"),v),"".concat(ie,"-readonly"),g),"".concat(ie,"-input-with-clear-btn"),c&&w&&b),S==null?void 0:S.affixWrapper,_==null?void 0:_.affixWrapper,_==null?void 0:_.variant),X=(c||w)&&te.createElement("span",{className:Ee("".concat(s,"-suffix"),_==null?void 0:_.suffix),style:$==null?void 0:$.suffix},B,c);L=te.createElement(O,tt({className:Z,style:$==null?void 0:$.affixWrapper,onClick:F},E==null?void 0:E.affixWrapper,{ref:N}),l&&te.createElement("span",{className:Ee("".concat(s,"-prefix"),_==null?void 0:_.prefix),style:$==null?void 0:$.prefix},l),L,X)}if(dXe(e)){var ae="".concat(s,"-group"),oe="".concat(ae,"-addon"),le="".concat(ae,"-wrapper"),ce=Ee("".concat(s,"-wrapper"),ae,S==null?void 0:S.wrapper,_==null?void 0:_.wrapper),pe=Ee(le,ne({},"".concat(le,"-disabled"),m),S==null?void 0:S.group,_==null?void 0:_.groupWrapper);L=te.createElement(j,{className:pe,ref:V},te.createElement(I,{className:ce},u&&te.createElement(A,{className:oe},u),L,f&&te.createElement(A,{className:oe},f)))}return te.cloneElement(L,{className:Ee((r=L.props)===null||r===void 0?void 0:r.className,p)||null,style:q(q({},(i=L.props)===null||i===void 0?void 0:i.style),h),hidden:k})}),pXe=["show"];function Zge(e,t){return d.useMemo(function(){var n={};t&&(n.show=Kt(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,i=r.show,a=Ht(r,pXe);return q(q({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var hXe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],mXe=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,h=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,y=e.count,w=e.type,b=w===void 0?"text":w,C=e.classes,k=e.classNames,S=e.styles,_=e.onCompositionStart,E=e.onCompositionEnd,$=Ht(e,hXe),M=d.useState(!1),P=Te(M,2),R=P[0],O=P[1],j=d.useRef(!1),I=d.useRef(!1),A=d.useRef(null),N=d.useRef(null),F=function(ye){A.current&&GB(A.current,ye)},K=In(e.defaultValue,{value:e.value}),L=Te(K,2),V=L[0],B=L[1],U=V==null?"":String(V),Y=d.useState(null),ee=Te(Y,2),ie=ee[0],Z=ee[1],X=Zge(y,v),ae=X.max||m,oe=X.strategy(U),le=!!ae&&oe>ae;d.useImperativeHandle(t,function(){var se;return{focus:F,blur:function(){var Oe;(Oe=A.current)===null||Oe===void 0||Oe.blur()},setSelectionRange:function(Oe,z,H){var G;(G=A.current)===null||G===void 0||G.setSelectionRange(Oe,z,H)},select:function(){var Oe;(Oe=A.current)===null||Oe===void 0||Oe.select()},input:A.current,nativeElement:((se=N.current)===null||se===void 0?void 0:se.nativeElement)||A.current}}),d.useEffect(function(){I.current&&(I.current=!1),O(function(se){return se&&f?!1:se})},[f]);var ce=function(ye,Oe,z){var H=Oe;if(!j.current&&X.exceedFormatter&&X.max&&X.strategy(Oe)>X.max){if(H=X.exceedFormatter(Oe,{max:X.max}),Oe!==H){var G,de;Z([((G=A.current)===null||G===void 0?void 0:G.selectionStart)||0,((de=A.current)===null||de===void 0?void 0:de.selectionEnd)||0])}}else if(z.source==="compositionEnd")return;B(H),A.current&&C6(A.current,ye,r,H)};d.useEffect(function(){if(ie){var se;(se=A.current)===null||se===void 0||se.setSelectionRange.apply(se,lt(ie))}},[ie]);var pe=function(ye){ce(ye,ye.target.value,{source:"change"})},me=function(ye){j.current=!1,ce(ye,ye.currentTarget.value,{source:"compositionEnd"}),E==null||E(ye)},re=function(ye){o&&ye.key==="Enter"&&!I.current&&(I.current=!0,o(ye)),s==null||s(ye)},fe=function(ye){ye.key==="Enter"&&(I.current=!1),l==null||l(ye)},ve=function(ye){O(!0),i==null||i(ye)},$e=function(ye){I.current&&(I.current=!1),O(!1),a==null||a(ye)},Ce=function(ye){B(""),F(),A.current&&C6(A.current,ye,r)},be=le&&"".concat(u,"-out-of-range"),Se=function(){var ye=$r(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return te.createElement("input",tt({autoComplete:n},ye,{onChange:pe,onFocus:ve,onBlur:$e,onKeyDown:re,onKeyUp:fe,className:Ee(u,ne({},"".concat(u,"-disabled"),f),k==null?void 0:k.input),style:S==null?void 0:S.input,ref:A,size:p,type:b,onCompositionStart:function(z){j.current=!0,_==null||_(z)},onCompositionEnd:me}))},we=function(){var ye=Number(ae)>0;if(g||X.show){var Oe=X.showFormatter?X.showFormatter({value:U,count:oe,maxLength:ae}):"".concat(oe).concat(ye?" / ".concat(ae):"");return te.createElement(te.Fragment,null,X.show&&te.createElement("span",{className:Ee("".concat(u,"-show-count-suffix"),ne({},"".concat(u,"-show-count-has-suffix"),!!g),k==null?void 0:k.count),style:q({},S==null?void 0:S.count)},Oe),g)}return null};return te.createElement(U8,tt({},$,{prefixCls:u,className:Ee(h,be),handleReset:Ce,value:U,focused:R,triggerFocus:F,suffix:we(),disabled:f,classes:C,classNames:k,styles:S}),Se())});function gXe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var a=r[i];return typeof a=="function"?a.bind(r):a}}):e}function vXe(e,t){var n=d.useRef(null);function r(){try{var a=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var a=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var f=s[c-1],p=a.indexOf(f,c-1);p!==-1&&(u=p+1)}e.setSelectionRange(u,u)}catch(h){Br(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,i]}var yXe=function(){var t=d.useState(!1),n=Te(t,2),r=n[0],i=n[1];return nr(function(){i(y8())},[]),r},bXe=200,wXe=600;function xXe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,a=e.downDisabled,o=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=o;var u=function(){clearTimeout(s.current)},f=function(b,C){b.preventDefault(),u(),c.current(C);function k(){c.current(C),s.current=setTimeout(k,bXe)}s.current=setTimeout(k,wXe)};d.useEffect(function(){return function(){u(),l.current.forEach(function(w){return rr.cancel(w)})}},[]);var p=yXe();if(p)return null;var h="".concat(t,"-handler"),m=Ee(h,"".concat(h,"-up"),ne({},"".concat(h,"-up-disabled"),i)),g=Ee(h,"".concat(h,"-down"),ne({},"".concat(h,"-down-disabled"),a)),v=function(){return l.current.push(rr(u))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(h,"-wrap")},d.createElement("span",tt({},y,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",tt({},y,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function EX(e){var t=typeof e=="number"?H8(e):qm(e).fullStr,n=t.includes(".");return n?qm(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const SXe=function(){var e=d.useRef(0),t=function(){rr.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=rr(function(){n()})}};var CXe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],_Xe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],$X=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},MX=function(t){var n=zc(t);return n.isInvalidate()?null:n},kXe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,p=e.readOnly,h=e.upHandler,m=e.downHandler,g=e.keyboard,v=e.changeOnWheel,y=v===void 0?!1:v,w=e.controls,b=w===void 0?!0:w;e.classNames;var C=e.stringMode,k=e.parser,S=e.formatter,_=e.precision,E=e.decimalSeparator,$=e.onChange,M=e.onInput,P=e.onPressEnter,R=e.onStep,O=e.changeOnBlur,j=O===void 0?!0:O,I=e.domRef,A=Ht(e,CXe),N="".concat(n,"-input"),F=d.useRef(null),K=d.useState(!1),L=Te(K,2),V=L[0],B=L[1],U=d.useRef(!1),Y=d.useRef(!1),ee=d.useRef(!1),ie=d.useState(function(){return zc(u??c)}),Z=Te(ie,2),X=Z[0],ae=Z[1];function oe(ut){u===void 0&&ae(ut)}var le=d.useCallback(function(ut,gt){if(!gt)return _>=0?_:Math.max(_m(ut),_m(l))},[_,l]),ce=d.useCallback(function(ut){var gt=String(ut);if(k)return k(gt);var Qe=gt;return E&&(Qe=Qe.replace(E,".")),Qe.replace(/[^\w.-]+/g,"")},[k,E]),pe=d.useRef(""),me=d.useCallback(function(ut,gt){if(S)return S(ut,{userTyping:gt,input:String(pe.current)});var Qe=typeof ut=="number"?H8(ut):ut;if(!gt){var nt=le(Qe,gt);if(KB(Qe)&&(E||nt>=0)){var jt=E||".";Qe=l_(Qe,jt,nt)}}return Qe},[S,le,E]),re=d.useState(function(){var ut=c??u;return X.isInvalidate()&&["string","number"].includes(Kt(ut))?Number.isNaN(ut)?"":ut:me(X.toString(),!1)}),fe=Te(re,2),ve=fe[0],$e=fe[1];pe.current=ve;function Ce(ut,gt){$e(me(ut.isInvalidate()?ut.toString(!1):ut.toString(!gt),gt))}var be=d.useMemo(function(){return MX(o)},[o,_]),Se=d.useMemo(function(){return MX(a)},[a,_]),we=d.useMemo(function(){return!be||!X||X.isInvalidate()?!1:be.lessEquals(X)},[be,X]),se=d.useMemo(function(){return!Se||!X||X.isInvalidate()?!1:X.lessEquals(Se)},[Se,X]),ye=vXe(F.current,V),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=function(gt){return be&&!gt.lessEquals(be)?be:Se&&!Se.lessEquals(gt)?Se:null},de=function(gt){return!G(gt)},xe=function(gt,Qe){var nt=gt,jt=de(nt)||nt.isEmpty();if(!nt.isEmpty()&&!Qe&&(nt=G(nt)||nt,jt=!0),!p&&!f&&jt){var Lt=nt.toString(),Bt=le(Lt,Qe);return Bt>=0&&(nt=zc(l_(Lt,".",Bt)),de(nt)||(nt=zc(l_(Lt,".",Bt,!0)))),nt.equals(X)||(oe(nt),$==null||$(nt.isEmpty()?null:$X(C,nt)),u===void 0&&Ce(nt,Qe)),nt}return X},he=SXe(),Ue=function ut(gt){if(z(),pe.current=gt,$e(gt),!Y.current){var Qe=ce(gt),nt=zc(Qe);nt.isNaN()||xe(nt,!0)}M==null||M(gt),he(function(){var jt=gt;k||(jt=gt.replace(/。/g,".")),jt!==gt&&ut(jt)})},We=function(){Y.current=!0},ge=function(){Y.current=!1,Ue(F.current.value)},ze=function(gt){Ue(gt.target.value)},Ve=function(gt){var Qe;if(!(gt&&we||!gt&&se)){U.current=!1;var nt=zc(ee.current?EX(l):l);gt||(nt=nt.negate());var jt=(X||zc(0)).add(nt.toString()),Lt=xe(jt,!1);R==null||R($X(C,Lt),{offset:ee.current?EX(l):l,type:gt?"up":"down"}),(Qe=F.current)===null||Qe===void 0||Qe.focus()}},Be=function(gt){var Qe=zc(ce(ve)),nt;Qe.isNaN()?nt=xe(X,gt):nt=xe(Qe,gt),u!==void 0?Ce(X,!1):nt.isNaN()||Ce(nt,!1)},Xe=function(){U.current=!0},Ke=function(gt){var Qe=gt.key,nt=gt.shiftKey;U.current=!0,ee.current=nt,Qe==="Enter"&&(Y.current||(U.current=!1),Be(!1),P==null||P(gt)),g!==!1&&!Y.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qe)&&(Ve(Qe==="Up"||Qe==="ArrowUp"),gt.preventDefault())},qe=function(){U.current=!1,ee.current=!1};d.useEffect(function(){if(y&&V){var ut=function(nt){Ve(nt.deltaY<0),nt.preventDefault()},gt=F.current;if(gt)return gt.addEventListener("wheel",ut,{passive:!1}),function(){return gt.removeEventListener("wheel",ut)}}});var Et=function(){j&&Be(!1),B(!1),U.current=!1};return Vm(function(){X.isInvalidate()||Ce(X,!1)},[_,S]),Vm(function(){var ut=zc(u);ae(ut);var gt=zc(ce(ve));(!ut.equals(gt)||!U.current||S)&&Ce(ut,U.current)},[u]),Vm(function(){S&&H()},[ve]),d.createElement("div",{ref:I,className:Ee(n,r,ne(ne(ne(ne(ne({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),X.isNaN()),"".concat(n,"-out-of-range"),!X.isInvalidate()&&!de(X))),style:i,onFocus:function(){B(!0)},onBlur:Et,onKeyDown:Ke,onKeyUp:qe,onCompositionStart:We,onCompositionEnd:ge,onBeforeInput:Xe},b&&d.createElement(xXe,{prefixCls:n,upNode:h,downNode:m,upDisabled:we,downDisabled:se,onStep:Ve}),d.createElement("div",{className:"".concat(N,"-wrap")},d.createElement("input",tt({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},A,{ref:ga(F,t),className:N,value:ve,onChange:ze,disabled:f,readOnly:p}))))}),EXe=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=i===void 0?"rc-input-number":i,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,p=e.classNames,h=Ht(e,_Xe),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=function(b){v.current&&GB(v.current,b)};return d.useImperativeHandle(t,function(){return gXe(v.current,{focus:y,nativeElement:m.current.nativeElement||g.current})}),d.createElement(U8,{className:f,triggerFocus:y,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},d.createElement(kXe,tt({prefixCls:a,disabled:n,ref:v,domRef:g,className:p==null?void 0:p.input},h)))});const $Xe=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},jy(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ur(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},TX=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const a=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},MXe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:h,colorTextDescription:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:y,paddingInline:w,paddingBlock:b,handleBg:C,handleActiveBg:k,colorTextDisabled:S,borderRadiusSM:_,borderRadiusLG:E,controlWidth:$,handleBorderColor:M,filledHandleBg:P,lineHeightLG:R,calc:O}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),wg(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:i}),j8(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${Me(n)} ${r} ${M}`}}})),A8(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${Me(n)} ${r} ${M}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),N8(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:R,borderRadius:E,[`input${t}-input`]:{height:O(s).sub(O(n).mul(2)).equal(),padding:`${Me(p)} ${Me(h)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:_,[`input${t}-input`]:{height:O(l).sub(O(n).mul(2)).equal(),padding:`${Me(f)} ${Me(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},ar(e)),pge(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:_}}},cge(e)),dge(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{width:"100%",padding:`${Me(b)} ${Me(w)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),D8(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` +`;return[B8(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},ao),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},kYe=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Fge(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Wg(e)]},Lge=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},Bge=Jn("Cascader",e=>[kYe(e)],Lge),EYe=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Fge(e),{display:"inline-flex",border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},$Ye=Afe(["Cascader","Panel"],e=>EYe(e),Lge);function MYe(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,disabled:l}=e,c=d.useContext(ma),u=l??c,[f,p,h,m]=jge(t,o),g=qr(p),[v,y,w]=Bge(p,g);$Ye(p);const b=h==="rtl",[C,k]=Age(f,b,s),S=a||(m==null?void 0:m("Cascader"))||d.createElement(Vg,{componentName:"Cascader"}),_=Nge(p,r);return v(d.createElement(Ige,Object.assign({},e,{checkable:_,prefixCls:p,className:Ee(n,y,i,w,g),notFoundContent:S,direction:h,expandIcon:C,loadingIcon:k,disabled:u})))}var TYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);il===0?[s]:[].concat(lt(o),[t,s]),[]),i=[];let a=0;return r.forEach((o,s)=>{const l=a+o.length;let c=e.slice(a,l);a=l,s%2===1&&(c=d.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const IYe=(e,t,n,r)=>{const i=[],a=e.toLowerCase();return t.forEach((o,s)=>{s!==0&&i.push(" / ");let l=o[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=RYe(String(l),a,n)),i.push(l)}),i},Dy=d.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:a,className:o,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:f="",popupClassName:p,dropdownClassName:h,expandIcon:m,placement:g,showSearch:v,allowClear:y=!0,notFoundContent:w,direction:b,getPopupContainer:C,status:k,showArrow:S,builtinPlacements:_,style:E,variant:$}=e,M=TYe(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),P=$r(M,["suffixIcon"]),{getPopupContainer:R,getPrefixCls:O,popupOverflow:j,cascader:I}=d.useContext(Xt),{status:A,hasFeedback:N,isFormItemInput:F,feedbackIcon:K}=d.useContext(oa),L=Mu(A,k),[V,B,U,Y]=jge(r,b),ee=U==="rtl",ie=O(),Z=qr(V),[X,ae,oe]=xB(V,Z),le=qr(B),[ce]=Bge(B,le),{compactSize:pe,compactItemClassnames:me}=$u(V,b),[re,fe]=Od("cascader",$,c),ve=w||(Y==null?void 0:Y("Cascader"))||d.createElement(Vg,{componentName:"Cascader"}),$e=Ee(p||h,`${B}-dropdown`,{[`${B}-dropdown-rtl`]:U==="rtl"},s,Z,le,ae,oe),Ce=d.useMemo(()=>{if(!v)return v;let ge={render:IYe};return typeof v=="object"&&(ge=Object.assign(Object.assign({},ge),v)),ge},[v]),be=Bi(ge=>{var ze;return(ze=i??pe)!==null&&ze!==void 0?ze:ge}),Se=d.useContext(ma),we=a??Se,[se,ye]=Age(V,ee,m),Oe=Nge(B,l),z=SB(e.suffixIcon,S),{suffixIcon:H,removeIcon:G,clearIcon:de}=w8(Object.assign(Object.assign({},e),{hasFeedback:N,feedbackIcon:K,showSuffixIcon:z,multiple:l,prefixCls:V,componentName:"Cascader"})),xe=d.useMemo(()=>g!==void 0?g:ee?"bottomRight":"bottomLeft",[g,ee]),he=y===!0?{clearIcon:de}:y,[Ue]=$c("SelectLike",(n=P.dropdownStyle)===null||n===void 0?void 0:n.zIndex),We=d.createElement(O4,Object.assign({prefixCls:V,className:Ee(!r&&B,{[`${V}-lg`]:be==="large",[`${V}-sm`]:be==="small",[`${V}-rtl`]:ee,[`${V}-${re}`]:fe,[`${V}-in-form-item`]:F},Nl(V,L,N),me,I==null?void 0:I.className,o,s,Z,le,ae,oe),disabled:we,style:Object.assign(Object.assign({},I==null?void 0:I.style),E)},P,{builtinPlacements:wB(_,j),direction:U,placement:xe,notFoundContent:ve,allowClear:he,showSearch:Ce,expandIcon:se,suffixIcon:H,removeIcon:G,loadingIcon:ye,checkable:Oe,dropdownClassName:$e,dropdownPrefixCls:r||B,dropdownStyle:Object.assign(Object.assign({},P.dropdownStyle),{zIndex:Ue}),choiceTransitionName:oo(ie,"",f),transitionName:oo(ie,"slide-up",u),getPopupContainer:C||R,ref:t}));return ce(X(We))}),jYe=Gf(Dy,"dropdownAlign",e=>$r(e,["visible"]));Dy.SHOW_PARENT=OYe;Dy.SHOW_CHILD=PYe;Dy.Panel=MYe;Dy._InternalPanelDoNotUseOrYouWillBeFired=jYe;const zge=te.createContext(null);var NYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,rootClassName:a,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:p}=e,h=NYe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=d.useContext(Xt),y=d.useContext(zge),{isFormItemInput:w}=d.useContext(oa),b=d.useContext(ma),C=(n=(y==null?void 0:y.disabled)||p)!==null&&n!==void 0?n:b,k=d.useRef(h.value),S=d.useRef(null),_=ga(t,S);d.useEffect(()=>{y==null||y.registerValue(h.value)},[]),d.useEffect(()=>{if(!f)return h.value!==k.current&&(y==null||y.cancelValue(k.current),y==null||y.registerValue(h.value),k.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]),d.useEffect(()=>{var F;!((F=S.current)===null||F===void 0)&&F.input&&(S.current.input.indeterminate=s)},[s]);const E=m("checkbox",r),$=qr(E),[M,P,R]=Dge(E,$),O=Object.assign({},h);y&&!f&&(O.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),y.toggleOption&&y.toggleOption({label:o,value:h.value})},O.name=y.name,O.checked=y.value.includes(h.value));const j=Ee(`${E}-wrapper`,{[`${E}-rtl`]:g==="rtl",[`${E}-wrapper-checked`]:O.checked,[`${E}-wrapper-disabled`]:C,[`${E}-wrapper-in-form-item`]:w},v==null?void 0:v.className,i,a,R,$,P),I=Ee({[`${E}-indeterminate`]:s},t8,P),[A,N]=oge(O.onClick);return M(d.createElement(w4,{component:"Checkbox",disabled:C},d.createElement("label",{className:j,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:A},d.createElement(age,Object.assign({},O,{onClick:N,prefixCls:E,className:I,disabled:C,ref:_})),o!==void 0&&d.createElement("span",null,o))))},Hge=d.forwardRef(AYe);var DYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:l,onChange:c}=e,u=DYe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=d.useContext(Xt),[h,m]=d.useState(u.value||n||[]),[g,v]=d.useState([]);d.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const y=d.useMemo(()=>i.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),[i]),w=I=>{v(A=>A.filter(N=>N!==I))},b=I=>{v(A=>[].concat(lt(A),[I]))},C=I=>{const A=h.indexOf(I.value),N=lt(h);A===-1?N.push(I.value):N.splice(A,1),"value"in u||m(N),c==null||c(N.filter(F=>g.includes(F)).sort((F,K)=>{const L=y.findIndex(B=>B.value===F),V=y.findIndex(B=>B.value===K);return L-V}))},k=f("checkbox",a),S=`${k}-group`,_=qr(k),[E,$,M]=Dge(k,_),P=$r(u,["value","disabled"]),R=i.length?y.map(I=>d.createElement(Hge,{prefixCls:k,key:I.value.toString(),disabled:"disabled"in I?I.disabled:u.disabled,value:I.value,checked:h.includes(I.value),onChange:I.onChange,className:`${S}-item`,style:I.style,title:I.title,id:I.id,required:I.required},I.label)):r,O={toggleOption:C,value:h,disabled:u.disabled,name:u.name,registerValue:b,cancelValue:w},j=Ee(S,{[`${S}-rtl`]:p==="rtl"},o,s,M,_,$);return E(d.createElement("div",Object.assign({className:j,style:l},P,{ref:t}),d.createElement(zge.Provider,{value:O},R)))}),ps=Hge;ps.Group=FYe;ps.__ANT_CHECKBOX=!0;const Uge=d.createContext({});var LYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(Xt),{gutter:i,wrap:a}=d.useContext(Uge),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:f,className:p,children:h,flex:m,style:g}=e,v=LYe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",o),[w,b,C]=lze(y),k={};let S={};BYe.forEach($=>{let M={};const P=e[$];typeof P=="number"?M.span=P:typeof P=="object"&&(M=P||{}),delete v[$],S=Object.assign(Object.assign({},S),{[`${y}-${$}-${M.span}`]:M.span!==void 0,[`${y}-${$}-order-${M.order}`]:M.order||M.order===0,[`${y}-${$}-offset-${M.offset}`]:M.offset||M.offset===0,[`${y}-${$}-push-${M.push}`]:M.push||M.push===0,[`${y}-${$}-pull-${M.pull}`]:M.pull||M.pull===0,[`${y}-rtl`]:r==="rtl"}),M.flex&&(S[`${y}-${$}-flex`]=!0,k[`--${y}-${$}-flex`]=bX(M.flex))});const _=Ee(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},p,S,b,C),E={};if(i&&i[0]>0){const $=i[0]/2;E.paddingLeft=$,E.paddingRight=$}return m&&(E.flex=bX(m),a===!1&&!E.minWidth&&(E.minWidth=0)),w(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),g),k),className:_,ref:t}),h))});var zYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{i()},[JSON.stringify(e),t]),n}const z8=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:c}=e,u=zYe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=d.useContext(Xt),[h,m]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=wX(i,g),w=wX(r,g),b=d.useRef(l),C=Ihe();d.useEffect(()=>{const N=C.subscribe(F=>{v(F);const K=b.current||0;(!Array.isArray(K)&&typeof K=="object"||Array.isArray(K)&&(typeof K[0]=="object"||typeof K[1]=="object"))&&m(F)});return()=>C.unsubscribe(N)},[]);const k=()=>{const N=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((K,L)=>{if(typeof K=="object")for(let V=0;V0?M[0]/-2:void 0;O&&(R.marginLeft=O,R.marginRight=O);const[j,I]=M;R.rowGap=I;const A=d.useMemo(()=>({gutter:[j,I],wrap:c}),[j,I,c]);return _(d.createElement(Uge.Provider,{value:A},d.createElement("div",Object.assign({},u,{className:P,style:Object.assign(Object.assign({},R),o),ref:t}),s)))}),HYe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{borderBlockStart:`${Me(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Me(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Me(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Me(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Me(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Me(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Me(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},UYe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),WYe=Jn("Divider",e=>{const t=Hn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[HYe(t)]},UYe,{unitless:{orientationMargin:!0}});var VYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=d.useContext(Xt),{prefixCls:i,type:a="horizontal",orientation:o="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:f,variant:p="solid",plain:h,style:m}=e,g=VYe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[y,w,b]=WYe(v),C=!!u,k=o==="left"&&s!=null,S=o==="right"&&s!=null,_=Ee(v,r==null?void 0:r.className,w,b,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text-${o}`]:C,[`${v}-dashed`]:!!f,[`${v}-${p}`]:p!=="solid",[`${v}-plain`]:!!h,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:k,[`${v}-no-default-orientation-margin-right`]:S},l,c),E=d.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},k&&{marginLeft:E}),S&&{marginRight:E});return y(d.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},g,{role:"separator"}),u&&a!=="vertical"&&d.createElement("span",{className:`${v}-inner-text`,style:$},u)))};var xX=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Fu=function(t){return t!==void 0?"".concat(t,"px"):void 0};function KYe(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,a=e.motionName,o=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,f=d.useRef(null),p=d.useState(r),h=Te(p,2),m=h[0],g=h[1],v=function(I){var A,N=i(I),F=(A=n.current)===null||A===void 0?void 0:A.querySelectorAll(".".concat(t,"-item"))[N];return(F==null?void 0:F.offsetParent)&&F},y=d.useState(null),w=Te(y,2),b=w[0],C=w[1],k=d.useState(null),S=Te(k,2),_=S[0],E=S[1];nr(function(){if(m!==r){var j=v(m),I=v(r),A=xX(j,u),N=xX(I,u);g(r),C(A),E(N),j&&I?o():s()}},[r]);var $=d.useMemo(function(){if(u){var j;return Fu((j=b==null?void 0:b.top)!==null&&j!==void 0?j:0)}return Fu(l==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[u,l,b]),M=d.useMemo(function(){if(u){var j;return Fu((j=_==null?void 0:_.top)!==null&&j!==void 0?j:0)}return Fu(l==="rtl"?-(_==null?void 0:_.right):_==null?void 0:_.left)},[u,l,_]),P=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},R=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},O=function(){C(null),E(null),s()};return!b||!_?null:d.createElement(Ca,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:P,onAppearActive:R,onVisibleChanged:O},function(j,I){var A=j.className,N=j.style,F=q(q({},N),{},{"--thumb-start-left":$,"--thumb-start-width":Fu(b==null?void 0:b.width),"--thumb-active-left":M,"--thumb-active-width":Fu(_==null?void 0:_.width),"--thumb-start-top":$,"--thumb-start-height":Fu(b==null?void 0:b.height),"--thumb-active-top":M,"--thumb-active-height":Fu(_==null?void 0:_.height)}),K={ref:ga(f,I),style:F,className:Ee("".concat(t,"-thumb"),A)};return d.createElement("div",K)})}var GYe=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function YYe(e){if(typeof e.title<"u")return e.title;if(Kt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function XYe(e){return e.map(function(t){if(Kt(t)==="object"&&t!==null){var n=YYe(t);return q(q({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var ZYe=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,a=t.checked,o=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,f=t.onFocus,p=t.onBlur,h=t.onKeyDown,m=t.onKeyUp,g=t.onMouseDown,v=function(w){i||u(w,l)};return d.createElement("label",{className:Ee(r,ne({},"".concat(n,"-item-disabled"),i)),onMouseDown:g},d.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:a,onChange:v,onFocus:f,onBlur:p,onKeyDown:h,onKeyUp:m}),d.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":a},o))},QYe=d.forwardRef(function(e,t){var n,r,i=e.prefixCls,a=i===void 0?"rc-segmented":i,o=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,f=e.defaultValue,p=e.value,h=e.name,m=e.onChange,g=e.className,v=g===void 0?"":g,y=e.motionName,w=y===void 0?"thumb-motion":y,b=Ht(e,GYe),C=d.useRef(null),k=d.useMemo(function(){return ga(C,t)},[C,t]),S=d.useMemo(function(){return XYe(c)},[c]),_=In((n=S[0])===null||n===void 0?void 0:n.value,{value:p,defaultValue:f}),E=Te(_,2),$=E[0],M=E[1],P=d.useState(!1),R=Te(P,2),O=R[0],j=R[1],I=function(ce,pe){M(pe),m==null||m(pe)},A=$r(b,["children"]),N=d.useState(!1),F=Te(N,2),K=F[0],L=F[1],V=d.useState(!1),B=Te(V,2),U=B[0],Y=B[1],ee=function(){Y(!0)},ie=function(){Y(!1)},Z=function(){L(!1)},X=function(ce){ce.key==="Tab"&&L(!0)},ae=function(ce){var pe=S.findIndex(function(ve){return ve.value===$}),me=S.length,re=(pe+ce+me)%me,fe=S[re];fe&&(M(fe.value),m==null||m(fe.value))},oe=function(ce){switch(ce.key){case"ArrowLeft":case"ArrowUp":ae(-1);break;case"ArrowRight":case"ArrowDown":ae(1);break}};return d.createElement("div",tt({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},A,{className:Ee(a,(r={},ne(r,"".concat(a,"-rtl"),o==="rtl"),ne(r,"".concat(a,"-disabled"),u),ne(r,"".concat(a,"-vertical"),s),r),v),ref:k}),d.createElement("div",{className:"".concat(a,"-group")},d.createElement(KYe,{vertical:s,prefixCls:a,value:$,containerRef:C,motionName:"".concat(a,"-").concat(w),direction:o,getValueIndex:function(ce){return S.findIndex(function(pe){return pe.value===ce})},onMotionStart:function(){j(!0)},onMotionEnd:function(){j(!1)}}),S.map(function(le){var ce;return d.createElement(ZYe,tt({},le,{name:h,key:le.value,prefixCls:a,className:Ee(le.className,"".concat(a,"-item"),(ce={},ne(ce,"".concat(a,"-item-selected"),le.value===$&&!O),ne(ce,"".concat(a,"-item-focused"),U&&K&&le.value===$),ce)),checked:le.value===$,onChange:I,onFocus:ee,onBlur:ie,onKeyDown:oe,onKeyUp:X,onMouseDown:Z,disabled:!!u||!!le.disabled}))})))}),JYe=QYe;function SX(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function CX(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const eXe=Object.assign({overflow:"hidden"},ao),tXe=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Vs(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${Me(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},CX(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},yc(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Me(n),padding:`0 ${Me(e.segmentedPaddingHorizontal)}`},eXe),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},CX(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Me(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:Me(r),padding:`0 ${Me(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:Me(i),padding:`0 ${Me(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),SX(`&-disabled ${t}-item`,e)),SX(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},nXe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}},rXe=Jn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Hn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[tXe(r)]},nXe);var _X=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=h8(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:l="middle",style:c,vertical:u,name:f=n}=e,p=_X(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:h,direction:m,segmented:g}=d.useContext(Xt),v=h("segmented",r),[y,w,b]=rXe(v),C=Bi(l),k=d.useMemo(()=>s.map(E=>{if(iXe(E)){const{icon:$,label:M}=E,P=_X(E,["icon","label"]);return Object.assign(Object.assign({},P),{label:d.createElement(d.Fragment,null,d.createElement("span",{className:`${v}-item-icon`},$),M&&d.createElement("span",null,M))})}return E}),[s,v]),S=Ee(i,a,g==null?void 0:g.className,{[`${v}-block`]:o,[`${v}-sm`]:C==="small",[`${v}-lg`]:C==="large",[`${v}-vertical`]:u},w,b),_=Object.assign(Object.assign({},g==null?void 0:g.style),c);return y(d.createElement(JYe,Object.assign({},p,{name:f,className:S,style:_,options:k,ref:t,prefixCls:v,direction:m,vertical:u})))}),Wge=aXe,Vge=te.createContext({}),qge=te.createContext({}),Kge=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const a=n.toHsb();a.a=0;const o=Yo(a);o.cleared=!0,r(o)}};return te.createElement("div",{className:`${t}-clear`,onClick:i})};var ih;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(ih||(ih={}));var oXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},sXe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:oXe}))},Gge=d.forwardRef(sXe);function Gj(){return typeof BigInt=="function"}function Yge(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function qm(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}function qB(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function _m(e){var t=String(e);if(qB(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&KB(t)?t.length-t.indexOf(".")-1:0}function H8(e){var t=String(e);if(qB(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Gj()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":qm("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),cXe=function(){function e(t){if(Ar(this,e),ne(this,"origin",""),ne(this,"number",void 0),ne(this,"empty",void 0),Yge(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Dr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":H8(this.number):this.origin}}]),e}();function zc(e){return Gj()?new lXe(e):new cXe(e)}function s_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=qm(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(o);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=zc(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return s_(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function uXe(e){return!!(e.addonBefore||e.addonAfter)}function dXe(e){return!!(e.prefix||e.suffix||e.allowClear)}function kX(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function S6(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=kX(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=kX(t,e,r),n(i);return}n(i)}}function GB(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var U8=te.forwardRef(function(e,t){var n,r,i,a=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,h=e.style,m=e.disabled,g=e.readOnly,v=e.focused,y=e.triggerFocus,w=e.allowClear,b=e.value,C=e.handleReset,k=e.hidden,S=e.classes,_=e.classNames,E=e.dataAttrs,$=e.styles,M=e.components,P=e.onClear,R=o??a,O=(M==null?void 0:M.affixWrapper)||"span",j=(M==null?void 0:M.groupWrapper)||"span",I=(M==null?void 0:M.wrapper)||"span",A=(M==null?void 0:M.groupAddon)||"span",N=d.useRef(null),F=function(re){var fe;(fe=N.current)!==null&&fe!==void 0&&fe.contains(re.target)&&(y==null||y())},K=dXe(e),L=d.cloneElement(R,{value:b,className:Ee((n=R.props)===null||n===void 0?void 0:n.className,!K&&(_==null?void 0:_.variant))||null}),V=d.useRef(null);if(te.useImperativeHandle(t,function(){return{nativeElement:V.current||N.current}}),K){var B=null;if(w){var U=!m&&!g&&b,Y="".concat(s,"-clear-icon"),ee=Kt(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";B=te.createElement("button",{type:"button",onClick:function(re){C==null||C(re),P==null||P()},onMouseDown:function(re){return re.preventDefault()},className:Ee(Y,ne(ne({},"".concat(Y,"-hidden"),!U),"".concat(Y,"-has-suffix"),!!c))},ee)}var ie="".concat(s,"-affix-wrapper"),Z=Ee(ie,ne(ne(ne(ne(ne({},"".concat(s,"-disabled"),m),"".concat(ie,"-disabled"),m),"".concat(ie,"-focused"),v),"".concat(ie,"-readonly"),g),"".concat(ie,"-input-with-clear-btn"),c&&w&&b),S==null?void 0:S.affixWrapper,_==null?void 0:_.affixWrapper,_==null?void 0:_.variant),X=(c||w)&&te.createElement("span",{className:Ee("".concat(s,"-suffix"),_==null?void 0:_.suffix),style:$==null?void 0:$.suffix},B,c);L=te.createElement(O,tt({className:Z,style:$==null?void 0:$.affixWrapper,onClick:F},E==null?void 0:E.affixWrapper,{ref:N}),l&&te.createElement("span",{className:Ee("".concat(s,"-prefix"),_==null?void 0:_.prefix),style:$==null?void 0:$.prefix},l),L,X)}if(uXe(e)){var ae="".concat(s,"-group"),oe="".concat(ae,"-addon"),le="".concat(ae,"-wrapper"),ce=Ee("".concat(s,"-wrapper"),ae,S==null?void 0:S.wrapper,_==null?void 0:_.wrapper),pe=Ee(le,ne({},"".concat(le,"-disabled"),m),S==null?void 0:S.group,_==null?void 0:_.groupWrapper);L=te.createElement(j,{className:pe,ref:V},te.createElement(I,{className:ce},u&&te.createElement(A,{className:oe},u),L,f&&te.createElement(A,{className:oe},f)))}return te.cloneElement(L,{className:Ee((r=L.props)===null||r===void 0?void 0:r.className,p)||null,style:q(q({},(i=L.props)===null||i===void 0?void 0:i.style),h),hidden:k})}),fXe=["show"];function Xge(e,t){return d.useMemo(function(){var n={};t&&(n.show=Kt(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,i=r.show,a=Ht(r,fXe);return q(q({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var pXe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],hXe=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,h=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,y=e.count,w=e.type,b=w===void 0?"text":w,C=e.classes,k=e.classNames,S=e.styles,_=e.onCompositionStart,E=e.onCompositionEnd,$=Ht(e,pXe),M=d.useState(!1),P=Te(M,2),R=P[0],O=P[1],j=d.useRef(!1),I=d.useRef(!1),A=d.useRef(null),N=d.useRef(null),F=function(ye){A.current&&GB(A.current,ye)},K=In(e.defaultValue,{value:e.value}),L=Te(K,2),V=L[0],B=L[1],U=V==null?"":String(V),Y=d.useState(null),ee=Te(Y,2),ie=ee[0],Z=ee[1],X=Xge(y,v),ae=X.max||m,oe=X.strategy(U),le=!!ae&&oe>ae;d.useImperativeHandle(t,function(){var se;return{focus:F,blur:function(){var Oe;(Oe=A.current)===null||Oe===void 0||Oe.blur()},setSelectionRange:function(Oe,z,H){var G;(G=A.current)===null||G===void 0||G.setSelectionRange(Oe,z,H)},select:function(){var Oe;(Oe=A.current)===null||Oe===void 0||Oe.select()},input:A.current,nativeElement:((se=N.current)===null||se===void 0?void 0:se.nativeElement)||A.current}}),d.useEffect(function(){I.current&&(I.current=!1),O(function(se){return se&&f?!1:se})},[f]);var ce=function(ye,Oe,z){var H=Oe;if(!j.current&&X.exceedFormatter&&X.max&&X.strategy(Oe)>X.max){if(H=X.exceedFormatter(Oe,{max:X.max}),Oe!==H){var G,de;Z([((G=A.current)===null||G===void 0?void 0:G.selectionStart)||0,((de=A.current)===null||de===void 0?void 0:de.selectionEnd)||0])}}else if(z.source==="compositionEnd")return;B(H),A.current&&S6(A.current,ye,r,H)};d.useEffect(function(){if(ie){var se;(se=A.current)===null||se===void 0||se.setSelectionRange.apply(se,lt(ie))}},[ie]);var pe=function(ye){ce(ye,ye.target.value,{source:"change"})},me=function(ye){j.current=!1,ce(ye,ye.currentTarget.value,{source:"compositionEnd"}),E==null||E(ye)},re=function(ye){o&&ye.key==="Enter"&&!I.current&&(I.current=!0,o(ye)),s==null||s(ye)},fe=function(ye){ye.key==="Enter"&&(I.current=!1),l==null||l(ye)},ve=function(ye){O(!0),i==null||i(ye)},$e=function(ye){I.current&&(I.current=!1),O(!1),a==null||a(ye)},Ce=function(ye){B(""),F(),A.current&&S6(A.current,ye,r)},be=le&&"".concat(u,"-out-of-range"),Se=function(){var ye=$r(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return te.createElement("input",tt({autoComplete:n},ye,{onChange:pe,onFocus:ve,onBlur:$e,onKeyDown:re,onKeyUp:fe,className:Ee(u,ne({},"".concat(u,"-disabled"),f),k==null?void 0:k.input),style:S==null?void 0:S.input,ref:A,size:p,type:b,onCompositionStart:function(z){j.current=!0,_==null||_(z)},onCompositionEnd:me}))},we=function(){var ye=Number(ae)>0;if(g||X.show){var Oe=X.showFormatter?X.showFormatter({value:U,count:oe,maxLength:ae}):"".concat(oe).concat(ye?" / ".concat(ae):"");return te.createElement(te.Fragment,null,X.show&&te.createElement("span",{className:Ee("".concat(u,"-show-count-suffix"),ne({},"".concat(u,"-show-count-has-suffix"),!!g),k==null?void 0:k.count),style:q({},S==null?void 0:S.count)},Oe),g)}return null};return te.createElement(U8,tt({},$,{prefixCls:u,className:Ee(h,be),handleReset:Ce,value:U,focused:R,triggerFocus:F,suffix:we(),disabled:f,classes:C,classNames:k,styles:S}),Se())});function mXe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var a=r[i];return typeof a=="function"?a.bind(r):a}}):e}function gXe(e,t){var n=d.useRef(null);function r(){try{var a=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var a=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var f=s[c-1],p=a.indexOf(f,c-1);p!==-1&&(u=p+1)}e.setSelectionRange(u,u)}catch(h){Br(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,i]}var vXe=function(){var t=d.useState(!1),n=Te(t,2),r=n[0],i=n[1];return nr(function(){i(y8())},[]),r},yXe=200,bXe=600;function wXe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,a=e.downDisabled,o=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=o;var u=function(){clearTimeout(s.current)},f=function(b,C){b.preventDefault(),u(),c.current(C);function k(){c.current(C),s.current=setTimeout(k,yXe)}s.current=setTimeout(k,bXe)};d.useEffect(function(){return function(){u(),l.current.forEach(function(w){return rr.cancel(w)})}},[]);var p=vXe();if(p)return null;var h="".concat(t,"-handler"),m=Ee(h,"".concat(h,"-up"),ne({},"".concat(h,"-up-disabled"),i)),g=Ee(h,"".concat(h,"-down"),ne({},"".concat(h,"-down-disabled"),a)),v=function(){return l.current.push(rr(u))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(h,"-wrap")},d.createElement("span",tt({},y,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",tt({},y,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function EX(e){var t=typeof e=="number"?H8(e):qm(e).fullStr,n=t.includes(".");return n?qm(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const xXe=function(){var e=d.useRef(0),t=function(){rr.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=rr(function(){n()})}};var SXe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],CXe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],$X=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},MX=function(t){var n=zc(t);return n.isInvalidate()?null:n},_Xe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,p=e.readOnly,h=e.upHandler,m=e.downHandler,g=e.keyboard,v=e.changeOnWheel,y=v===void 0?!1:v,w=e.controls,b=w===void 0?!0:w;e.classNames;var C=e.stringMode,k=e.parser,S=e.formatter,_=e.precision,E=e.decimalSeparator,$=e.onChange,M=e.onInput,P=e.onPressEnter,R=e.onStep,O=e.changeOnBlur,j=O===void 0?!0:O,I=e.domRef,A=Ht(e,SXe),N="".concat(n,"-input"),F=d.useRef(null),K=d.useState(!1),L=Te(K,2),V=L[0],B=L[1],U=d.useRef(!1),Y=d.useRef(!1),ee=d.useRef(!1),ie=d.useState(function(){return zc(u??c)}),Z=Te(ie,2),X=Z[0],ae=Z[1];function oe(ut){u===void 0&&ae(ut)}var le=d.useCallback(function(ut,gt){if(!gt)return _>=0?_:Math.max(_m(ut),_m(l))},[_,l]),ce=d.useCallback(function(ut){var gt=String(ut);if(k)return k(gt);var Qe=gt;return E&&(Qe=Qe.replace(E,".")),Qe.replace(/[^\w.-]+/g,"")},[k,E]),pe=d.useRef(""),me=d.useCallback(function(ut,gt){if(S)return S(ut,{userTyping:gt,input:String(pe.current)});var Qe=typeof ut=="number"?H8(ut):ut;if(!gt){var nt=le(Qe,gt);if(KB(Qe)&&(E||nt>=0)){var jt=E||".";Qe=s_(Qe,jt,nt)}}return Qe},[S,le,E]),re=d.useState(function(){var ut=c??u;return X.isInvalidate()&&["string","number"].includes(Kt(ut))?Number.isNaN(ut)?"":ut:me(X.toString(),!1)}),fe=Te(re,2),ve=fe[0],$e=fe[1];pe.current=ve;function Ce(ut,gt){$e(me(ut.isInvalidate()?ut.toString(!1):ut.toString(!gt),gt))}var be=d.useMemo(function(){return MX(o)},[o,_]),Se=d.useMemo(function(){return MX(a)},[a,_]),we=d.useMemo(function(){return!be||!X||X.isInvalidate()?!1:be.lessEquals(X)},[be,X]),se=d.useMemo(function(){return!Se||!X||X.isInvalidate()?!1:X.lessEquals(Se)},[Se,X]),ye=gXe(F.current,V),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=function(gt){return be&&!gt.lessEquals(be)?be:Se&&!Se.lessEquals(gt)?Se:null},de=function(gt){return!G(gt)},xe=function(gt,Qe){var nt=gt,jt=de(nt)||nt.isEmpty();if(!nt.isEmpty()&&!Qe&&(nt=G(nt)||nt,jt=!0),!p&&!f&&jt){var Lt=nt.toString(),Bt=le(Lt,Qe);return Bt>=0&&(nt=zc(s_(Lt,".",Bt)),de(nt)||(nt=zc(s_(Lt,".",Bt,!0)))),nt.equals(X)||(oe(nt),$==null||$(nt.isEmpty()?null:$X(C,nt)),u===void 0&&Ce(nt,Qe)),nt}return X},he=xXe(),Ue=function ut(gt){if(z(),pe.current=gt,$e(gt),!Y.current){var Qe=ce(gt),nt=zc(Qe);nt.isNaN()||xe(nt,!0)}M==null||M(gt),he(function(){var jt=gt;k||(jt=gt.replace(/。/g,".")),jt!==gt&&ut(jt)})},We=function(){Y.current=!0},ge=function(){Y.current=!1,Ue(F.current.value)},ze=function(gt){Ue(gt.target.value)},Ve=function(gt){var Qe;if(!(gt&&we||!gt&&se)){U.current=!1;var nt=zc(ee.current?EX(l):l);gt||(nt=nt.negate());var jt=(X||zc(0)).add(nt.toString()),Lt=xe(jt,!1);R==null||R($X(C,Lt),{offset:ee.current?EX(l):l,type:gt?"up":"down"}),(Qe=F.current)===null||Qe===void 0||Qe.focus()}},Be=function(gt){var Qe=zc(ce(ve)),nt;Qe.isNaN()?nt=xe(X,gt):nt=xe(Qe,gt),u!==void 0?Ce(X,!1):nt.isNaN()||Ce(nt,!1)},Xe=function(){U.current=!0},Ke=function(gt){var Qe=gt.key,nt=gt.shiftKey;U.current=!0,ee.current=nt,Qe==="Enter"&&(Y.current||(U.current=!1),Be(!1),P==null||P(gt)),g!==!1&&!Y.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qe)&&(Ve(Qe==="Up"||Qe==="ArrowUp"),gt.preventDefault())},qe=function(){U.current=!1,ee.current=!1};d.useEffect(function(){if(y&&V){var ut=function(nt){Ve(nt.deltaY<0),nt.preventDefault()},gt=F.current;if(gt)return gt.addEventListener("wheel",ut,{passive:!1}),function(){return gt.removeEventListener("wheel",ut)}}});var Et=function(){j&&Be(!1),B(!1),U.current=!1};return Vm(function(){X.isInvalidate()||Ce(X,!1)},[_,S]),Vm(function(){var ut=zc(u);ae(ut);var gt=zc(ce(ve));(!ut.equals(gt)||!U.current||S)&&Ce(ut,U.current)},[u]),Vm(function(){S&&H()},[ve]),d.createElement("div",{ref:I,className:Ee(n,r,ne(ne(ne(ne(ne({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),X.isNaN()),"".concat(n,"-out-of-range"),!X.isInvalidate()&&!de(X))),style:i,onFocus:function(){B(!0)},onBlur:Et,onKeyDown:Ke,onKeyUp:qe,onCompositionStart:We,onCompositionEnd:ge,onBeforeInput:Xe},b&&d.createElement(wXe,{prefixCls:n,upNode:h,downNode:m,upDisabled:we,downDisabled:se,onStep:Ve}),d.createElement("div",{className:"".concat(N,"-wrap")},d.createElement("input",tt({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},A,{ref:ga(F,t),className:N,value:ve,onChange:ze,disabled:f,readOnly:p}))))}),kXe=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=i===void 0?"rc-input-number":i,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,p=e.classNames,h=Ht(e,CXe),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=function(b){v.current&&GB(v.current,b)};return d.useImperativeHandle(t,function(){return mXe(v.current,{focus:y,nativeElement:m.current.nativeElement||g.current})}),d.createElement(U8,{className:f,triggerFocus:y,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},d.createElement(_Xe,tt({prefixCls:a,disabled:n,ref:v,domRef:g,className:p==null?void 0:p.input},h)))});const EXe=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},jy(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ur(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},TX=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const a=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},$Xe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:h,colorTextDescription:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:y,paddingInline:w,paddingBlock:b,handleBg:C,handleActiveBg:k,colorTextDisabled:S,borderRadiusSM:_,borderRadiusLG:E,controlWidth:$,handleBorderColor:M,filledHandleBg:P,lineHeightLG:R,calc:O}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),wg(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:i}),j8(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${Me(n)} ${r} ${M}`}}})),A8(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${Me(n)} ${r} ${M}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),N8(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:R,borderRadius:E,[`input${t}-input`]:{height:O(s).sub(O(n).mul(2)).equal(),padding:`${Me(p)} ${Me(h)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:_,[`input${t}-input`]:{height:O(l).sub(O(n).mul(2)).equal(),padding:`${Me(f)} ${Me(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},ar(e)),fge(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:_}}},lge(e)),uge(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{width:"100%",padding:`${Me(b)} ${Me(w)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),D8(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Me(n)} ${r} ${M}`,transition:`all ${g} linear`,"&:active":{background:k},"&:hover":{height:"60%",[` @@ -388,7 +388,7 @@ html body { `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:S}})}]},TXe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:a,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Me(n)} 0`}},wg(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Me(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Me(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},PXe=Jn("InputNumber",e=>{const t=Hn(e,Iy(e));return[MXe(t),TXe(t),Wg(t)]},$Xe,{unitless:{handleOpacity:!0}});var OXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(Xt),i=d.useRef(null);d.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:p,suffix:h,bordered:m,readOnly:g,status:v,controls:y,variant:w}=e,b=OXe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",c),k=qr(C),[S,_,E]=PXe(C,k),{compactSize:$,compactItemClassnames:M}=$u(C,r);let P=d.createElement(Yge,{className:`${C}-handler-up-inner`}),R=d.createElement(My,{className:`${C}-handler-down-inner`});const O=typeof y=="boolean"?y:void 0;typeof y=="object"&&(P=typeof y.upIcon>"u"?P:d.createElement("span",{className:`${C}-handler-up-inner`},y.upIcon),R=typeof y.downIcon>"u"?R:d.createElement("span",{className:`${C}-handler-down-inner`},y.downIcon));const{hasFeedback:j,status:I,isFormItemInput:A,feedbackIcon:N}=d.useContext(oa),F=Mu(I,v),K=Bi(X=>{var ae;return(ae=s??$)!==null&&ae!==void 0?ae:X}),L=d.useContext(ma),V=l??L,[B,U]=Od("inputNumber",w,m),Y=j&&d.createElement(d.Fragment,null,N),ee=Ee({[`${C}-lg`]:K==="large",[`${C}-sm`]:K==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:A},_),ie=`${C}-group`,Z=d.createElement(EXe,Object.assign({ref:i,disabled:V,className:Ee(E,k,a,o,M),upHandler:P,downHandler:R,prefixCls:C,readOnly:g,controls:O,prefix:p,suffix:Y||h,addonBefore:u&&d.createElement(bu,{form:!0,space:!0},u),addonAfter:f&&d.createElement(bu,{form:!0,space:!0},f),classNames:{input:ee,variant:Ee({[`${C}-${B}`]:U},Al(C,F,j)),affixWrapper:Ee({[`${C}-affix-wrapper-sm`]:K==="small",[`${C}-affix-wrapper-lg`]:K==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:y===!1},_),wrapper:Ee({[`${ie}-rtl`]:r==="rtl"},_),groupWrapper:Ee({[`${C}-group-wrapper-sm`]:K==="small",[`${C}-group-wrapper-lg`]:K==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${B}`]:U},Al(`${C}-group-wrapper`,F,j),_)}},b));return S(Z)}),Af=Qge,RXe=e=>d.createElement(zn,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(Qge,Object.assign({},e)));Af._InternalPanelDoNotUseOrYouWillBeFired=RXe;const Km=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:a,className:o,formatter:s}=e;const l=`${t}-steppers`,[c,u]=d.useState(i);return d.useEffect(()=>{Number.isNaN(i)||u(i)},[i]),te.createElement(Af,{className:Ee(l,o),min:n,max:r,value:c,formatter:s,size:"small",onChange:f=>{i||u(f||0),a==null||a(f)}})},IXe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[a,o]=d.useState(Xo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=Xo(c);n||o(u),r==null||r(u)};return te.createElement(Km,{value:nB(a),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},jXe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Xt),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[s,l]=HB(o),c=Ee(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,i),u=d.useContext(oa),f=d.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(d.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(oa.Provider,{value:f},e.children)))},YB=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:te.createElement(Pd,null)}),t};function Jge(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function NXe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var AXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:p,addonBefore:h,className:m,style:g,styles:v,rootClassName:y,onChange:w,classNames:b,variant:C}=e,k=AXe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:_,input:E}=te.useContext(Xt),$=S("input",r),M=d.useRef(null),P=qr($),[R,O,j]=HB($,P),{compactSize:I,compactItemClassnames:A}=$u($,_),N=Bi(pe=>{var me;return(me=o??I)!==null&&me!==void 0?me:pe}),F=te.useContext(ma),K=s??F,{status:L,hasFeedback:V,feedbackIcon:B}=d.useContext(oa),U=Mu(L,a),Y=NXe(e)||!!V;d.useRef(Y);const ee=Jge(M,!0),ie=pe=>{ee(),l==null||l(pe)},Z=pe=>{ee(),c==null||c(pe)},X=pe=>{ee(),w==null||w(pe)},ae=(V||u)&&te.createElement(te.Fragment,null,u,V&&B),oe=YB(f??(E==null?void 0:E.allowClear)),[le,ce]=Od("input",C,i);return R(te.createElement(mXe,Object.assign({ref:ga(t,M),prefixCls:$,autoComplete:E==null?void 0:E.autoComplete},k,{disabled:K,onBlur:ie,onFocus:Z,style:Object.assign(Object.assign({},E==null?void 0:E.style),g),styles:Object.assign(Object.assign({},E==null?void 0:E.styles),v),suffix:ae,allowClear:oe,className:Ee(m,y,j,P,A,E==null?void 0:E.className),onChange:X,addonBefore:h&&te.createElement(bu,{form:!0,space:!0},h),addonAfter:p&&te.createElement(bu,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},b),E==null?void 0:E.classNames),{input:Ee({[`${$}-sm`]:N==="small",[`${$}-lg`]:N==="large",[`${$}-rtl`]:_==="rtl"},b==null?void 0:b.input,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.input,O),variant:Ee({[`${$}-${le}`]:ce},Al($,U)),affixWrapper:Ee({[`${$}-affix-wrapper-sm`]:N==="small",[`${$}-affix-wrapper-lg`]:N==="large",[`${$}-affix-wrapper-rtl`]:_==="rtl"},O),wrapper:Ee({[`${$}-group-rtl`]:_==="rtl"},O),groupWrapper:Ee({[`${$}-group-wrapper-sm`]:N==="small",[`${$}-group-wrapper-lg`]:N==="large",[`${$}-group-wrapper-rtl`]:_==="rtl",[`${$}-group-wrapper-${le}`]:ce},Al(`${$}-group-wrapper`,U,V),O)})})))}),DXe=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},FXe=Jn(["Input","OTP"],e=>{const t=Hn(e,Iy(e));return[DXe(t)]},jy);var LXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,s=LXe(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof o=="string"?o:n,c=m=>{r(a,m.target.value)},u=d.useRef(null);d.useImperativeHandle(t,()=>u.current);const f=()=>{rr(()=>{var m;const g=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},p=m=>{const{key:g,ctrlKey:v,metaKey:y}=m;g==="ArrowLeft"?i(a-1):g==="ArrowRight"?i(a+1):g==="z"&&(v||y)&&m.preventDefault(),f()},h=m=>{m.key==="Backspace"&&!n&&i(a-1),f()};return d.createElement(W8,Object.assign({type:o===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:p,onKeyUp:h,onMouseDown:f,onMouseUp:f}))});var zXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:l,variant:c,disabled:u,status:f,autoFocus:p,mask:h,type:m,onInput:g,inputMode:v}=e,y=zXe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:w,direction:b}=d.useContext(Xt),C=w("otp",n),k=Fi(y,{aria:!0,data:!0,attr:!0}),S=qr(C),[_,E,$]=FXe(C,S),M=Bi(Y=>i??Y),P=d.useContext(oa),R=Mu(P.status,f),O=d.useMemo(()=>Object.assign(Object.assign({},P),{status:R,hasFeedback:!1,feedbackIcon:null}),[P,R]),j=d.useRef(null),I=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var Y;(Y=I.current[0])===null||Y===void 0||Y.focus()},blur:()=>{var Y;for(let ee=0;eel?l(Y):Y,[N,F]=d.useState(MS(A(a||"")));d.useEffect(()=>{o!==void 0&&F(MS(o))},[o]);const K=Vn(Y=>{F(Y),g&&g(Y),s&&Y.length===r&&Y.every(ee=>ee)&&Y.some((ee,ie)=>N[ie]!==ee)&&s(Y.join(""))}),L=Vn((Y,ee)=>{let ie=lt(N);for(let X=0;X=0&&!ie[X];X-=1)ie.pop();const Z=A(ie.map(X=>X||" ").join(""));return ie=MS(Z).map((X,ae)=>X===" "&&!ie[ae]?ie[ae]:X),ie}),V=(Y,ee)=>{var ie;const Z=L(Y,ee),X=Math.min(Y+ee.length,r-1);X!==Y&&Z[Y]!==void 0&&((ie=I.current[X])===null||ie===void 0||ie.focus()),K(Z)},B=Y=>{var ee;(ee=I.current[Y])===null||ee===void 0||ee.focus()},U={variant:c,disabled:u,status:R,mask:h,type:m,inputMode:v};return _(d.createElement("div",Object.assign({},k,{ref:j,className:Ee(C,{[`${C}-sm`]:M==="small",[`${C}-lg`]:M==="large",[`${C}-rtl`]:b==="rtl"},$,E)}),d.createElement(oa.Provider,{value:O},Array.from({length:r}).map((Y,ee)=>{const ie=`otp-${ee}`,Z=N[ee]||"";return d.createElement(BXe,Object.assign({ref:X=>{I.current[ee]=X},key:ie,index:ee,size:M,htmlSize:1,className:`${C}-input`,onChange:V,value:Z,onActiveChange:B,autoFocus:ee===0&&p},U))}))))});var UXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},WXe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:UXe}))},e1e=d.forwardRef(WXe),VXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},qXe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:VXe}))},V8=d.forwardRef(qXe),KXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ie?d.createElement(V8,null):d.createElement(e1e,null),YXe={click:"onClick",hover:"onMouseOver"},XXe=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=GXe}=e,o=d.useContext(ma),s=n??o,l=typeof i=="object"&&i.visible!==void 0,[c,u]=d.useState(()=>l?i.visible:!1),f=d.useRef(null);d.useEffect(()=>{l&&u(i.visible)},[l,i]);const p=Jge(f),h=()=>{var M;if(s)return;c&&p();const P=!c;u(P),typeof i=="object"&&((M=i.onVisibleChange)===null||M===void 0||M.call(i,P))},m=M=>{const P=YXe[r]||"",R=a(c),O={[P]:h,className:`${M}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return d.cloneElement(d.isValidElement(R)?R:d.createElement("span",null,R),O)},{className:g,prefixCls:v,inputPrefixCls:y,size:w}=e,b=KXe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=d.useContext(Xt),k=C("input",y),S=C("input-password",v),_=i&&m(S),E=Ee(S,g,{[`${S}-${w}`]:!!w}),$=Object.assign(Object.assign({},$r(b,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:E,prefixCls:k,suffix:_});return w&&($.size=w),d.createElement(W8,Object.assign({ref:ga(t,f)},$))});var ZXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:m}=e,g=ZXe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=d.useContext(Xt),w=d.useRef(!1),b=v("input-search",n),C=v("input",r),{compactSize:k}=$u(b,y),S=Bi(V=>{var B;return(B=a??k)!==null&&B!==void 0?B:V}),_=d.useRef(null),E=V=>{V!=null&&V.target&&V.type==="click"&&f&&f(V.target.value,V,{source:"clear"}),p==null||p(V)},$=V=>{var B;document.activeElement===((B=_.current)===null||B===void 0?void 0:B.input)&&V.preventDefault()},M=V=>{var B,U;f&&f((U=(B=_.current)===null||B===void 0?void 0:B.input)===null||U===void 0?void 0:U.value,V,{source:"input"})},P=V=>{w.current||c||M(V)},R=typeof s=="boolean"?d.createElement(Ty,null):null,O=`${b}-button`;let j;const I=s||{},A=I.type&&I.type.__ANT_BUTTON===!0;A||I.type==="button"?j=aa(I,Object.assign({onMouseDown:$,onClick:V=>{var B,U;(U=(B=I==null?void 0:I.props)===null||B===void 0?void 0:B.onClick)===null||U===void 0||U.call(B,V),M(V)},key:"enterButton"},A?{className:O,size:S}:{})):j=d.createElement(Yt,{className:O,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:$,onClick:M,loading:c,icon:R},s),l&&(j=[j,aa(l,{key:"addonAfter"})]);const N=Ee(b,{[`${b}-rtl`]:y==="rtl",[`${b}-${S}`]:!!S,[`${b}-with-button`]:!!s},i),F=Object.assign(Object.assign({},g),{className:N,prefixCls:C,type:"search"}),K=V=>{w.current=!0,h==null||h(V)},L=V=>{w.current=!1,m==null||m(V)};return d.createElement(W8,Object.assign({ref:ga(_,t),onPressEnter:P},F,{size:S,onCompositionStart:K,onCompositionEnd:L,addonAfter:j,suffix:o,onChange:E,disabled:u}))});var JXe=` + `]:{color:S}})}]},MXe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:a,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Me(n)} 0`}},wg(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Me(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Me(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},TXe=Jn("InputNumber",e=>{const t=Hn(e,Iy(e));return[$Xe(t),MXe(t),Wg(t)]},EXe,{unitless:{handleOpacity:!0}});var PXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(Xt),i=d.useRef(null);d.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:p,suffix:h,bordered:m,readOnly:g,status:v,controls:y,variant:w}=e,b=PXe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",c),k=qr(C),[S,_,E]=TXe(C,k),{compactSize:$,compactItemClassnames:M}=$u(C,r);let P=d.createElement(Gge,{className:`${C}-handler-up-inner`}),R=d.createElement(My,{className:`${C}-handler-down-inner`});const O=typeof y=="boolean"?y:void 0;typeof y=="object"&&(P=typeof y.upIcon>"u"?P:d.createElement("span",{className:`${C}-handler-up-inner`},y.upIcon),R=typeof y.downIcon>"u"?R:d.createElement("span",{className:`${C}-handler-down-inner`},y.downIcon));const{hasFeedback:j,status:I,isFormItemInput:A,feedbackIcon:N}=d.useContext(oa),F=Mu(I,v),K=Bi(X=>{var ae;return(ae=s??$)!==null&&ae!==void 0?ae:X}),L=d.useContext(ma),V=l??L,[B,U]=Od("inputNumber",w,m),Y=j&&d.createElement(d.Fragment,null,N),ee=Ee({[`${C}-lg`]:K==="large",[`${C}-sm`]:K==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:A},_),ie=`${C}-group`,Z=d.createElement(kXe,Object.assign({ref:i,disabled:V,className:Ee(E,k,a,o,M),upHandler:P,downHandler:R,prefixCls:C,readOnly:g,controls:O,prefix:p,suffix:Y||h,addonBefore:u&&d.createElement(bu,{form:!0,space:!0},u),addonAfter:f&&d.createElement(bu,{form:!0,space:!0},f),classNames:{input:ee,variant:Ee({[`${C}-${B}`]:U},Nl(C,F,j)),affixWrapper:Ee({[`${C}-affix-wrapper-sm`]:K==="small",[`${C}-affix-wrapper-lg`]:K==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:y===!1},_),wrapper:Ee({[`${ie}-rtl`]:r==="rtl"},_),groupWrapper:Ee({[`${C}-group-wrapper-sm`]:K==="small",[`${C}-group-wrapper-lg`]:K==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${B}`]:U},Nl(`${C}-group-wrapper`,F,j),_)}},b));return S(Z)}),Af=Zge,OXe=e=>d.createElement(zn,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(Zge,Object.assign({},e)));Af._InternalPanelDoNotUseOrYouWillBeFired=OXe;const Km=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:a,className:o,formatter:s}=e;const l=`${t}-steppers`,[c,u]=d.useState(i);return d.useEffect(()=>{Number.isNaN(i)||u(i)},[i]),te.createElement(Af,{className:Ee(l,o),min:n,max:r,value:c,formatter:s,size:"small",onChange:f=>{i||u(f||0),a==null||a(f)}})},RXe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[a,o]=d.useState(Yo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=Yo(c);n||o(u),r==null||r(u)};return te.createElement(Km,{value:nB(a),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},IXe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Xt),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[s,l]=HB(o),c=Ee(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,i),u=d.useContext(oa),f=d.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(d.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(oa.Provider,{value:f},e.children)))},YB=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:te.createElement(Pd,null)}),t};function Qge(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function jXe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var NXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:p,addonBefore:h,className:m,style:g,styles:v,rootClassName:y,onChange:w,classNames:b,variant:C}=e,k=NXe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:_,input:E}=te.useContext(Xt),$=S("input",r),M=d.useRef(null),P=qr($),[R,O,j]=HB($,P),{compactSize:I,compactItemClassnames:A}=$u($,_),N=Bi(pe=>{var me;return(me=o??I)!==null&&me!==void 0?me:pe}),F=te.useContext(ma),K=s??F,{status:L,hasFeedback:V,feedbackIcon:B}=d.useContext(oa),U=Mu(L,a),Y=jXe(e)||!!V;d.useRef(Y);const ee=Qge(M,!0),ie=pe=>{ee(),l==null||l(pe)},Z=pe=>{ee(),c==null||c(pe)},X=pe=>{ee(),w==null||w(pe)},ae=(V||u)&&te.createElement(te.Fragment,null,u,V&&B),oe=YB(f??(E==null?void 0:E.allowClear)),[le,ce]=Od("input",C,i);return R(te.createElement(hXe,Object.assign({ref:ga(t,M),prefixCls:$,autoComplete:E==null?void 0:E.autoComplete},k,{disabled:K,onBlur:ie,onFocus:Z,style:Object.assign(Object.assign({},E==null?void 0:E.style),g),styles:Object.assign(Object.assign({},E==null?void 0:E.styles),v),suffix:ae,allowClear:oe,className:Ee(m,y,j,P,A,E==null?void 0:E.className),onChange:X,addonBefore:h&&te.createElement(bu,{form:!0,space:!0},h),addonAfter:p&&te.createElement(bu,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},b),E==null?void 0:E.classNames),{input:Ee({[`${$}-sm`]:N==="small",[`${$}-lg`]:N==="large",[`${$}-rtl`]:_==="rtl"},b==null?void 0:b.input,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.input,O),variant:Ee({[`${$}-${le}`]:ce},Nl($,U)),affixWrapper:Ee({[`${$}-affix-wrapper-sm`]:N==="small",[`${$}-affix-wrapper-lg`]:N==="large",[`${$}-affix-wrapper-rtl`]:_==="rtl"},O),wrapper:Ee({[`${$}-group-rtl`]:_==="rtl"},O),groupWrapper:Ee({[`${$}-group-wrapper-sm`]:N==="small",[`${$}-group-wrapper-lg`]:N==="large",[`${$}-group-wrapper-rtl`]:_==="rtl",[`${$}-group-wrapper-${le}`]:ce},Nl(`${$}-group-wrapper`,U,V),O)})})))}),AXe=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},DXe=Jn(["Input","OTP"],e=>{const t=Hn(e,Iy(e));return[AXe(t)]},jy);var FXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,s=FXe(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof o=="string"?o:n,c=m=>{r(a,m.target.value)},u=d.useRef(null);d.useImperativeHandle(t,()=>u.current);const f=()=>{rr(()=>{var m;const g=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},p=m=>{const{key:g,ctrlKey:v,metaKey:y}=m;g==="ArrowLeft"?i(a-1):g==="ArrowRight"?i(a+1):g==="z"&&(v||y)&&m.preventDefault(),f()},h=m=>{m.key==="Backspace"&&!n&&i(a-1),f()};return d.createElement(W8,Object.assign({type:o===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:p,onKeyUp:h,onMouseDown:f,onMouseUp:f}))});var BXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:l,variant:c,disabled:u,status:f,autoFocus:p,mask:h,type:m,onInput:g,inputMode:v}=e,y=BXe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:w,direction:b}=d.useContext(Xt),C=w("otp",n),k=Fi(y,{aria:!0,data:!0,attr:!0}),S=qr(C),[_,E,$]=DXe(C,S),M=Bi(Y=>i??Y),P=d.useContext(oa),R=Mu(P.status,f),O=d.useMemo(()=>Object.assign(Object.assign({},P),{status:R,hasFeedback:!1,feedbackIcon:null}),[P,R]),j=d.useRef(null),I=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var Y;(Y=I.current[0])===null||Y===void 0||Y.focus()},blur:()=>{var Y;for(let ee=0;eel?l(Y):Y,[N,F]=d.useState($S(A(a||"")));d.useEffect(()=>{o!==void 0&&F($S(o))},[o]);const K=Vn(Y=>{F(Y),g&&g(Y),s&&Y.length===r&&Y.every(ee=>ee)&&Y.some((ee,ie)=>N[ie]!==ee)&&s(Y.join(""))}),L=Vn((Y,ee)=>{let ie=lt(N);for(let X=0;X=0&&!ie[X];X-=1)ie.pop();const Z=A(ie.map(X=>X||" ").join(""));return ie=$S(Z).map((X,ae)=>X===" "&&!ie[ae]?ie[ae]:X),ie}),V=(Y,ee)=>{var ie;const Z=L(Y,ee),X=Math.min(Y+ee.length,r-1);X!==Y&&Z[Y]!==void 0&&((ie=I.current[X])===null||ie===void 0||ie.focus()),K(Z)},B=Y=>{var ee;(ee=I.current[Y])===null||ee===void 0||ee.focus()},U={variant:c,disabled:u,status:R,mask:h,type:m,inputMode:v};return _(d.createElement("div",Object.assign({},k,{ref:j,className:Ee(C,{[`${C}-sm`]:M==="small",[`${C}-lg`]:M==="large",[`${C}-rtl`]:b==="rtl"},$,E)}),d.createElement(oa.Provider,{value:O},Array.from({length:r}).map((Y,ee)=>{const ie=`otp-${ee}`,Z=N[ee]||"";return d.createElement(LXe,Object.assign({ref:X=>{I.current[ee]=X},key:ie,index:ee,size:M,htmlSize:1,className:`${C}-input`,onChange:V,value:Z,onActiveChange:B,autoFocus:ee===0&&p},U))}))))});var HXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},UXe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:HXe}))},Jge=d.forwardRef(UXe),WXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},VXe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:WXe}))},V8=d.forwardRef(VXe),qXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ie?d.createElement(V8,null):d.createElement(Jge,null),GXe={click:"onClick",hover:"onMouseOver"},YXe=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=KXe}=e,o=d.useContext(ma),s=n??o,l=typeof i=="object"&&i.visible!==void 0,[c,u]=d.useState(()=>l?i.visible:!1),f=d.useRef(null);d.useEffect(()=>{l&&u(i.visible)},[l,i]);const p=Qge(f),h=()=>{var M;if(s)return;c&&p();const P=!c;u(P),typeof i=="object"&&((M=i.onVisibleChange)===null||M===void 0||M.call(i,P))},m=M=>{const P=GXe[r]||"",R=a(c),O={[P]:h,className:`${M}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return d.cloneElement(d.isValidElement(R)?R:d.createElement("span",null,R),O)},{className:g,prefixCls:v,inputPrefixCls:y,size:w}=e,b=qXe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=d.useContext(Xt),k=C("input",y),S=C("input-password",v),_=i&&m(S),E=Ee(S,g,{[`${S}-${w}`]:!!w}),$=Object.assign(Object.assign({},$r(b,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:E,prefixCls:k,suffix:_});return w&&($.size=w),d.createElement(W8,Object.assign({ref:ga(t,f)},$))});var XXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:m}=e,g=XXe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=d.useContext(Xt),w=d.useRef(!1),b=v("input-search",n),C=v("input",r),{compactSize:k}=$u(b,y),S=Bi(V=>{var B;return(B=a??k)!==null&&B!==void 0?B:V}),_=d.useRef(null),E=V=>{V!=null&&V.target&&V.type==="click"&&f&&f(V.target.value,V,{source:"clear"}),p==null||p(V)},$=V=>{var B;document.activeElement===((B=_.current)===null||B===void 0?void 0:B.input)&&V.preventDefault()},M=V=>{var B,U;f&&f((U=(B=_.current)===null||B===void 0?void 0:B.input)===null||U===void 0?void 0:U.value,V,{source:"input"})},P=V=>{w.current||c||M(V)},R=typeof s=="boolean"?d.createElement(Ty,null):null,O=`${b}-button`;let j;const I=s||{},A=I.type&&I.type.__ANT_BUTTON===!0;A||I.type==="button"?j=aa(I,Object.assign({onMouseDown:$,onClick:V=>{var B,U;(U=(B=I==null?void 0:I.props)===null||B===void 0?void 0:B.onClick)===null||U===void 0||U.call(B,V),M(V)},key:"enterButton"},A?{className:O,size:S}:{})):j=d.createElement(Yt,{className:O,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:$,onClick:M,loading:c,icon:R},s),l&&(j=[j,aa(l,{key:"addonAfter"})]);const N=Ee(b,{[`${b}-rtl`]:y==="rtl",[`${b}-${S}`]:!!S,[`${b}-with-button`]:!!s},i),F=Object.assign(Object.assign({},g),{className:N,prefixCls:C,type:"search"}),K=V=>{w.current=!0,h==null||h(V)},L=V=>{w.current=!1,m==null||m(V)};return d.createElement(W8,Object.assign({ref:ga(_,t),onPressEnter:P},F,{size:S,onCompositionStart:K,onCompositionEnd:L,addonAfter:j,suffix:o,onChange:E,disabled:u}))});var QXe=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -399,7 +399,7 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,eZe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],X9={},al;function tZe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&X9[n])return X9[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=eZe.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(X9[n]=l),l}function nZe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;al||(al=document.createElement("textarea"),al.setAttribute("tab-index","-1"),al.setAttribute("aria-hidden","true"),al.setAttribute("name","hiddenTextarea"),document.body.appendChild(al)),e.getAttribute("wrap")?al.setAttribute("wrap",e.getAttribute("wrap")):al.removeAttribute("wrap");var i=tZe(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;al.setAttribute("style","".concat(l,";").concat(JXe)),al.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,p=al.scrollHeight;if(s==="border-box"?p+=o:s==="content-box"&&(p-=a),n!==null||r!==null){al.value=" ";var h=al.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+o),p=Math.max(c,p)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+o),f=p>u?"":"hidden",p=Math.min(u,p))}var m={height:p,overflowY:f,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var rZe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Z9=0,Q9=1,J9=2,iZe=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=Ht(n,rZe),h=In(i,{value:a,postState:function(Y){return Y??""}}),m=Te(h,2),g=m[0],v=m[1],y=function(Y){v(Y.target.value),f==null||f(Y)},w=d.useRef();d.useImperativeHandle(t,function(){return{textArea:w.current}});var b=d.useMemo(function(){return o&&Kt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),C=Te(b,2),k=C[0],S=C[1],_=!!o,E=function(){try{if(document.activeElement===w.current){var Y=w.current,ee=Y.selectionStart,ie=Y.selectionEnd,Z=Y.scrollTop;w.current.setSelectionRange(ee,ie),w.current.scrollTop=Z}}catch{}},$=d.useState(J9),M=Te($,2),P=M[0],R=M[1],O=d.useState(),j=Te(O,2),I=j[0],A=j[1],N=function(){R(Z9)};nr(function(){_&&N()},[a,k,S,_]),nr(function(){if(P===Z9)R(Q9);else if(P===Q9){var U=nZe(w.current,!1,k,S);R(J9),A(U)}else E()},[P]);var F=d.useRef(),K=function(){rr.cancel(F.current)},L=function(Y){P===J9&&(s==null||s(Y),o&&(K(),F.current=rr(function(){N()})))};d.useEffect(function(){return K},[]);var V=_?I:null,B=q(q({},c),V);return(P===Z9||P===Q9)&&(B.overflowY="hidden",B.overflowX="hidden"),d.createElement(Go,{onResize:L,disabled:!(o||s)},d.createElement("textarea",tt({},p,{ref:w,style:B,className:Ee(r,l,ne({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:y})))}),aZe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],t1e=te.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,m=h===void 0?"rc-textarea":h,g=e.showCount,v=e.count,y=e.className,w=e.style,b=e.disabled,C=e.hidden,k=e.classNames,S=e.styles,_=e.onResize,E=e.onClear,$=e.onPressEnter,M=e.readOnly,P=e.autoSize,R=e.onKeyDown,O=Ht(e,aZe),j=In(r,{value:i,defaultValue:r}),I=Te(j,2),A=I[0],N=I[1],F=A==null?"":String(A),K=te.useState(!1),L=Te(K,2),V=L[0],B=L[1],U=te.useRef(!1),Y=te.useState(null),ee=Te(Y,2),ie=ee[0],Z=ee[1],X=d.useRef(null),ae=d.useRef(null),oe=function(){var ge;return(ge=ae.current)===null||ge===void 0?void 0:ge.textArea},le=function(){oe().focus()};d.useImperativeHandle(t,function(){var We;return{resizableTextArea:ae.current,focus:le,blur:function(){oe().blur()},nativeElement:((We=X.current)===null||We===void 0?void 0:We.nativeElement)||oe()}}),d.useEffect(function(){B(function(We){return!b&&We})},[b]);var ce=te.useState(null),pe=Te(ce,2),me=pe[0],re=pe[1];te.useEffect(function(){if(me){var We;(We=oe()).setSelectionRange.apply(We,lt(me))}},[me]);var fe=Zge(v,g),ve=(n=fe.max)!==null&&n!==void 0?n:c,$e=Number(ve)>0,Ce=fe.strategy(F),be=!!ve&&Ce>ve,Se=function(ge,ze){var Ve=ze;!U.current&&fe.exceedFormatter&&fe.max&&fe.strategy(ze)>fe.max&&(Ve=fe.exceedFormatter(ze,{max:fe.max}),ze!==Ve&&re([oe().selectionStart||0,oe().selectionEnd||0])),N(Ve),C6(ge.currentTarget,ge,s,Ve)},we=function(ge){U.current=!0,u==null||u(ge)},se=function(ge){U.current=!1,Se(ge,ge.currentTarget.value),f==null||f(ge)},ye=function(ge){Se(ge,ge.target.value)},Oe=function(ge){ge.key==="Enter"&&$&&$(ge),R==null||R(ge)},z=function(ge){B(!0),a==null||a(ge)},H=function(ge){B(!1),o==null||o(ge)},G=function(ge){N(""),le(),C6(oe(),ge,s)},de=p,xe;fe.show&&(fe.showFormatter?xe=fe.showFormatter({value:F,count:Ce,maxLength:ve}):xe="".concat(Ce).concat($e?" / ".concat(ve):""),de=te.createElement(te.Fragment,null,de,te.createElement("span",{className:Ee("".concat(m,"-data-count"),k==null?void 0:k.count),style:S==null?void 0:S.count},xe)));var he=function(ge){var ze;_==null||_(ge),(ze=oe())!==null&&ze!==void 0&&ze.style.height&&Z(!0)},Ue=!P&&!g&&!l;return te.createElement(U8,{ref:X,value:F,allowClear:l,handleReset:G,suffix:de,prefixCls:m,classNames:q(q({},k),{},{affixWrapper:Ee(k==null?void 0:k.affixWrapper,ne(ne({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:b,focused:V,className:Ee(y,be&&"".concat(m,"-out-of-range")),style:q(q({},w),ie&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:C,readOnly:M,onClear:E},te.createElement(iZe,tt({},O,{autoSize:P,maxLength:c,onKeyDown:Oe,onChange:ye,onFocus:z,onBlur:H,onCompositionStart:we,onCompositionEnd:se,className:Ee(k==null?void 0:k.textarea),style:q(q({},S==null?void 0:S.textarea),{},{resize:w==null?void 0:w.resize}),disabled:b,prefixCls:m,onResize:he,ref:ae,readOnly:M})))}),oZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:p,style:h,styles:m,variant:g}=e,v=oZe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:w,textArea:b}=d.useContext(Xt),C=Bi(o),k=d.useContext(ma),S=s??k,{status:_,hasFeedback:E,feedbackIcon:$}=d.useContext(oa),M=Mu(_,l),P=d.useRef(null);d.useImperativeHandle(t,()=>{var L;return{resizableTextArea:(L=P.current)===null||L===void 0?void 0:L.resizableTextArea,focus:V=>{var B,U;GB((U=(B=P.current)===null||B===void 0?void 0:B.resizableTextArea)===null||U===void 0?void 0:U.textArea,V)},blur:()=>{var V;return(V=P.current)===null||V===void 0?void 0:V.blur()}}});const R=y("input",i),O=qr(R),[j,I,A]=HB(R,O),[N,F]=Od("textArea",g,a),K=YB(c??(b==null?void 0:b.allowClear));return j(d.createElement(t1e,Object.assign({autoComplete:b==null?void 0:b.autoComplete},v,{style:Object.assign(Object.assign({},b==null?void 0:b.style),h),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),m),disabled:S,allowClear:K,className:Ee(A,O,p,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},u),b==null?void 0:b.classNames),{textarea:Ee({[`${R}-sm`]:C==="small",[`${R}-lg`]:C==="large"},I,u==null?void 0:u.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:Ee({[`${R}-${N}`]:F},Al(R,M)),affixWrapper:Ee(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:w==="rtl",[`${R}-affix-wrapper-sm`]:C==="small",[`${R}-affix-wrapper-lg`]:C==="large",[`${R}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},I)}),prefixCls:R,suffix:E&&d.createElement("span",{className:`${R}-textarea-suffix`},$),ref:P})))}),Ur=W8;Ur.Group=jXe;Ur.Search=QXe;Ur.TextArea=n1e;Ur.Password=XXe;Ur.OTP=HXe;const sZe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,lZe=e=>sZe.test(`#${e}`),cZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[a,o]=d.useState(()=>n?b2(n.toHexString()):void 0);d.useEffect(()=>{n&&o(b2(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;o(b2(c)),lZe(b2(c,!0))&&(r==null||r(Xo(c)))};return te.createElement(Ur,{className:i,value:a,prefix:"#",onChange:s,size:"small"})},uZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[a,o]=d.useState(Xo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const f=Xo(u);n||o(f),r==null||r(f)};return te.createElement("div",{className:i},te.createElement(Km,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:i,formatter:l=>r_(l||0).toString(),onChange:l=>s(Number(l),"h")}),te.createElement(Km,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${r_(l||0)}%`,onChange:l=>s(Number(l),"s")}),te.createElement(Km,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${r_(l||0)}%`,onChange:l=>s(Number(l),"b")}))},dZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[a,o]=d.useState(Xo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const f=Xo(u);n||o(f),r==null||r(f)};return te.createElement("div",{className:i},te.createElement(Km,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),te.createElement(Km,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),te.createElement(Km,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},fZe=[ih.hex,ih.hsb,ih.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),pZe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:a,onChange:o,disabledFormat:s}=e,[l,c]=In(ih.hex,{value:n,onChange:a}),u=`${t}-input`,f=h=>{c(h)},p=d.useMemo(()=>{const h={value:r,prefixCls:t,onChange:o};switch(l){case ih.hsb:return te.createElement(uZe,Object.assign({},h));case ih.rgb:return te.createElement(dZe,Object.assign({},h));default:return te.createElement(cZe,Object.assign({},h))}},[l,t,r,o]);return te.createElement("div",{className:`${u}-container`},!s&&te.createElement(Yf,{value:l,variant:"borderless",getPopupContainer:h=>h,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:fZe}),te.createElement("div",{className:u},p),!i&&te.createElement(IXe,{prefixCls:t,value:r,onChange:o}))};function Yj(e,t,n){return(e-t)/(n-t)}function XB(e,t,n,r){var i=Yj(t,n,r),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function sm(e,t){return Array.isArray(e)?e[t]:e}var Xg=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),r1e=d.createContext({}),hZe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],PX=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,a=e.onStartMove,o=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,h=e.onFocus,m=e.onMouseEnter,g=Ht(e,hZe),v=d.useContext(Xg),y=v.min,w=v.max,b=v.direction,C=v.disabled,k=v.keyboard,S=v.range,_=v.tabIndex,E=v.ariaLabelForHandle,$=v.ariaLabelledByForHandle,M=v.ariaRequired,P=v.ariaValueTextFormatterForHandle,R=v.styles,O=v.classNames,j="".concat(n,"-handle"),I=function(ee){C||a(ee,i)},A=function(ee){h==null||h(ee,i)},N=function(ee){m(ee,i)},F=function(ee){if(!C&&k){var ie=null;switch(ee.which||ee.keyCode){case mt.LEFT:ie=b==="ltr"||b==="btt"?-1:1;break;case mt.RIGHT:ie=b==="ltr"||b==="btt"?1:-1;break;case mt.UP:ie=b!=="ttb"?1:-1;break;case mt.DOWN:ie=b!=="ttb"?-1:1;break;case mt.HOME:ie="min";break;case mt.END:ie="max";break;case mt.PAGE_UP:ie=2;break;case mt.PAGE_DOWN:ie=-2;break;case mt.BACKSPACE:case mt.DELETE:o(i);break}ie!==null&&(ee.preventDefault(),f(ie,i))}},K=function(ee){switch(ee.which||ee.keyCode){case mt.LEFT:case mt.RIGHT:case mt.UP:case mt.DOWN:case mt.HOME:case mt.END:case mt.PAGE_UP:case mt.PAGE_DOWN:p==null||p();break}},L=XB(b,r,y,w),V={};if(i!==null){var B;V={tabIndex:C?null:sm(_,i),role:"slider","aria-valuemin":y,"aria-valuemax":w,"aria-valuenow":r,"aria-disabled":C,"aria-label":sm(E,i),"aria-labelledby":sm($,i),"aria-required":sm(M,i),"aria-valuetext":(B=sm(P,i))===null||B===void 0?void 0:B(r),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:I,onTouchStart:I,onFocus:A,onMouseEnter:N,onKeyDown:F,onKeyUp:K}}var U=d.createElement("div",tt({ref:t,className:Ee(j,ne(ne(ne({},"".concat(j,"-").concat(i+1),i!==null&&S),"".concat(j,"-dragging"),c),"".concat(j,"-dragging-delete"),u),O.handle),style:q(q(q({},L),s),R.handle)},V,g));return l&&(U=l(U,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),U}),mZe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],gZe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,p=Ht(e,mZe),h=d.useRef({}),m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=d.useState(-1),b=Te(w,2),C=b[0],k=b[1],S=function(P){k(P),y(!0)},_=function(P,R){S(R),f==null||f(P)},E=function(P,R){S(R)};d.useImperativeHandle(t,function(){return{focus:function(P){var R;(R=h.current[P])===null||R===void 0||R.focus()},hideHelp:function(){Va.flushSync(function(){y(!1)})}}});var $=q({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:_,onMouseEnter:E},p);return d.createElement(d.Fragment,null,o.map(function(M,P){var R=c===P;return d.createElement(PX,tt({ref:function(j){j?h.current[P]=j:delete h.current[P]},dragging:R,draggingDelete:R&&u,style:sm(r,P),key:P,value:M,valueIndex:P},$))}),l&&v&&d.createElement(PX,tt({key:"a11y"},$,{value:o[C],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),vZe=function(t){var n=t.prefixCls,r=t.style,i=t.children,a=t.value,o=t.onClick,s=d.useContext(Xg),l=s.min,c=s.max,u=s.direction,f=s.includedStart,p=s.includedEnd,h=s.included,m="".concat(n,"-text"),g=XB(u,a,l,c);return d.createElement("span",{className:Ee(m,ne({},"".concat(m,"-active"),h&&f<=a&&a<=p)),style:q(q({},g),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){o(a)}},i)},yZe=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,a="".concat(n,"-mark");return r.length?d.createElement("div",{className:a},r.map(function(o){var s=o.value,l=o.style,c=o.label;return d.createElement(vZe,{key:s,prefixCls:a,style:l,value:s,onClick:i},c)})):null},bZe=function(t){var n=t.prefixCls,r=t.value,i=t.style,a=t.activeStyle,o=d.useContext(Xg),s=o.min,l=o.max,c=o.direction,u=o.included,f=o.includedStart,p=o.includedEnd,h="".concat(n,"-dot"),m=u&&f<=r&&r<=p,g=q(q({},XB(c,r,s,l)),typeof i=="function"?i(r):i);return m&&(g=q(q({},g),typeof a=="function"?a(r):a)),d.createElement("span",{className:Ee(h,ne({},"".concat(h,"-active"),m)),style:g})},wZe=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,a=t.style,o=t.activeStyle,s=d.useContext(Xg),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var p=new Set;if(r.forEach(function(m){p.add(m.value)}),i&&u!==null)for(var h=l;h<=c;)p.add(h),h+=u;return Array.from(p)},[l,c,u,i,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(p){return d.createElement(bZe,{prefixCls:n,key:p,value:p,style:a,activeStyle:o})}))},OX=function(t){var n=t.prefixCls,r=t.style,i=t.start,a=t.end,o=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(Xg),u=c.direction,f=c.min,p=c.max,h=c.disabled,m=c.range,g=c.classNames,v="".concat(n,"-track"),y=Yj(i,f,p),w=Yj(a,f,p),b=function(_){!h&&s&&s(_,-1)},C={};switch(u){case"rtl":C.right="".concat(y*100,"%"),C.width="".concat(w*100-y*100,"%");break;case"btt":C.bottom="".concat(y*100,"%"),C.height="".concat(w*100-y*100,"%");break;case"ttb":C.top="".concat(y*100,"%"),C.height="".concat(w*100-y*100,"%");break;default:C.left="".concat(y*100,"%"),C.width="".concat(w*100-y*100,"%")}var k=l||Ee(v,ne(ne({},"".concat(v,"-").concat(o+1),o!==null&&m),"".concat(n,"-track-draggable"),s),g.track);return d.createElement("div",{className:k,style:q(q({},C),r),onMouseDown:b,onTouchStart:b})},xZe=function(t){var n=t.prefixCls,r=t.style,i=t.values,a=t.startPoint,o=t.onStartMove,s=d.useContext(Xg),l=s.included,c=s.range,u=s.min,f=s.styles,p=s.classNames,h=d.useMemo(function(){if(!c){if(i.length===0)return[];var g=a??u,v=i[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var y=[],w=0;wSZe&&u<$.length:!1,S(me),B(Z,H,me)},fe=function ve($e){$e.preventDefault(),document.removeEventListener("mouseup",ve),document.removeEventListener("mousemove",re),N.current&&(N.current.removeEventListener("touchmove",I.current),N.current.removeEventListener("touchend",A.current)),I.current=null,A.current=null,N.current=null,s(me),w(-1),S(!1)};document.addEventListener("mouseup",fe),document.addEventListener("mousemove",re),ie.currentTarget.addEventListener("touchend",fe),ie.currentTarget.addEventListener("touchmove",re),I.current=re,A.current=fe,N.current=ie.currentTarget},Y=d.useMemo(function(){var ee=lt(n).sort(function(oe,le){return oe-le}),ie=lt($).sort(function(oe,le){return oe-le}),Z={};ie.forEach(function(oe){Z[oe]=(Z[oe]||0)+1}),ee.forEach(function(oe){Z[oe]=(Z[oe]||0)-1});var X=c?1:0,ae=Object.values(Z).reduce(function(oe,le){return oe+Math.abs(le)},0);return ae<=X?$:n},[n,$,c]);return[y,h,k,Y,U]}function _Ze(e,t,n,r,i,a){var o=d.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),s=d.useCallback(function(h){if(n!==null){var m=e+Math.round((o(h)-e)/n)*n,g=function(b){return(String(b).split(".")[1]||"").length},v=Math.max(g(n),g(t),g(e)),y=Number(m.toFixed(v));return e<=y&&y<=t?y:null}return null},[n,e,t,o]),l=d.useCallback(function(h){var m=o(h),g=r.map(function(w){return w.value});n!==null&&g.push(s(h)),g.push(e,t);var v=g[0],y=t-e;return g.forEach(function(w){var b=Math.abs(m-w);b<=y&&(v=w,y=b)}),v},[e,t,r,n,o,s]),c=function h(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var w,b=m[v],C=b+g,k=[];r.forEach(function(M){k.push(M.value)}),k.push(e,t),k.push(s(b));var S=g>0?1:-1;y==="unit"?k.push(s(b+S*n)):k.push(s(C)),k=k.filter(function(M){return M!==null}).filter(function(M){return g<0?M<=b:M>=b}),y==="unit"&&(k=k.filter(function(M){return M!==b}));var _=y==="unit"?b:C;w=k[0];var E=Math.abs(w-_);if(k.forEach(function(M){var P=Math.abs(M-_);P1){var $=lt(m);return $[v]=w,h($,g-S,v,y)}return w}else{if(g==="min")return e;if(g==="max")return t}},u=function(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=m[v],b=c(m,g,v,y);return{value:b,changed:b!==w}},f=function(m){return a===null&&m===0||typeof a=="number"&&m3&&arguments[3]!==void 0?arguments[3]:"unit",w=m.map(l),b=w[v],C=c(w,g,v,y);if(w[v]=C,i===!1){var k=a||0;v>0&&w[v-1]!==b&&(w[v]=Math.max(w[v],w[v-1]+k)),v0;$-=1)for(var M=!0;f(w[$]-w[$-1])&&M;){var P=u(w,-1,$-1);w[$-1]=P.value,M=P.changed}for(var R=w.length-1;R>0;R-=1)for(var O=!0;f(w[R]-w[R-1])&&O;){var j=u(w,-1,R-1);w[R-1]=j.value,O=j.changed}for(var I=0;I=0?N:!1},[N,he]),We=d.useMemo(function(){return Object.keys(X||{}).map(function(It){var rt=X[It],$t={value:Number(It)};return rt&&Kt(rt)==="object"&&!d.isValidElement(rt)&&("label"in rt||"style"in rt)?($t.style=rt.style,$t.label=rt.label):$t.label=rt,$t}).filter(function(It){var rt=It.label;return rt||typeof rt=="number"}).sort(function(It,rt){return It.value-rt.value})},[X]),ge=_Ze(de,xe,he,We,I,Ue),ze=Te(ge,2),Ve=ze[0],Be=ze[1],Xe=In(_,{value:S}),Ke=Te(Xe,2),qe=Ke[0],Et=Ke[1],ut=d.useMemo(function(){var It=qe==null?[]:Array.isArray(qe)?qe:[qe],rt=Te(It,1),$t=rt[0],Mt=$t===void 0?de:$t,dn=qe===null?[]:[Mt];if(ye){if(dn=lt(It),$||qe===void 0){var pn=$>=0?$+1:2;for(dn=dn.slice(0,pn);dn.length=0&&Ce.current.focus(It)}st(null)},[Pt]);var kt=d.useMemo(function(){return z&&he===null?!1:z},[z,he]),qt=Vn(function(It,rt){Je(It,rt),P==null||P(gt(ut))}),vt=Ut!==-1;d.useEffect(function(){if(!vt){var It=ut.lastIndexOf(Ne);Ce.current.focus(It)}},[vt]);var At=d.useMemo(function(){return lt(Le).sort(function(It,rt){return It-rt})},[Le]),dt=d.useMemo(function(){return ye?[At[0],At[At.length-1]]:[de,At[0]]},[At,ye,de]),De=Te(dt,2),Ye=De[0],ot=De[1];d.useImperativeHandle(t,function(){return{focus:function(){Ce.current.focus(0)},blur:function(){var rt,$t=document,Mt=$t.activeElement;(rt=be.current)!==null&&rt!==void 0&&rt.contains(Mt)&&(Mt==null||Mt.blur())}}}),d.useEffect(function(){h&&Ce.current.focus(0)},[]);var Re=d.useMemo(function(){return{min:de,max:xe,direction:Se,disabled:u,keyboard:p,step:he,included:V,includedStart:Ye,includedEnd:ot,range:ye,tabIndex:me,ariaLabelForHandle:re,ariaLabelledByForHandle:fe,ariaRequired:ve,ariaValueTextFormatterForHandle:$e,styles:s||{},classNames:o||{}}},[de,xe,Se,u,p,he,V,Ye,ot,ye,me,re,fe,ve,$e,s,o]);return d.createElement(Xg.Provider,{value:Re},d.createElement("div",{ref:be,className:Ee(r,i,ne(ne(ne(ne({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),K),"".concat(r,"-horizontal"),!K),"".concat(r,"-with-marks"),We.length)),style:a,onMouseDown:xt,id:l},d.createElement("div",{className:Ee("".concat(r,"-rail"),o==null?void 0:o.rail),style:q(q({},ee),s==null?void 0:s.rail)}),ce!==!1&&d.createElement(xZe,{prefixCls:r,style:U,values:ut,startPoint:B,onStartMove:kt?qt:void 0}),d.createElement(wZe,{prefixCls:r,marks:We,dots:ae,style:ie,activeStyle:Z}),d.createElement(gZe,{ref:Ce,prefixCls:r,style:Y,values:Le,draggingIndex:Ut,draggingDelete:He,onStartMove:qt,onOffsetChange:Ct,onFocus:m,onBlur:g,handleRender:oe,activeHandleRender:le,onChangeComplete:nt,onDelete:Oe?jt:void 0}),d.createElement(yZe,{prefixCls:r,marks:We,onClick:pt})))});const i1e=d.createContext({}),IX=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=d.useRef(null),a=n&&!r,o=d.useRef(null);function s(){rr.cancel(o.current),o.current=null}function l(){o.current=rr(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),o.current=null})}return d.useEffect(()=>(a?l():s(),s),[a,e.title]),d.createElement(_a,Object.assign({ref:ga(i,t)},e,{open:a}))}),$Ze=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:h,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",height:r,margin:`${Me(o)} ${Me(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Me(a)} ${Me(o)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Me(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(m).mul(-1).equal(),insetBlockStart:c(m).mul(-1).equal(),width:c(u).add(c(m).mul(2)).equal(),height:c(u).add(c(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Me(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` +`,JXe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],X9={},al;function eZe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&X9[n])return X9[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=JXe.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(X9[n]=l),l}function tZe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;al||(al=document.createElement("textarea"),al.setAttribute("tab-index","-1"),al.setAttribute("aria-hidden","true"),al.setAttribute("name","hiddenTextarea"),document.body.appendChild(al)),e.getAttribute("wrap")?al.setAttribute("wrap",e.getAttribute("wrap")):al.removeAttribute("wrap");var i=eZe(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;al.setAttribute("style","".concat(l,";").concat(QXe)),al.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,p=al.scrollHeight;if(s==="border-box"?p+=o:s==="content-box"&&(p-=a),n!==null||r!==null){al.value=" ";var h=al.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+o),p=Math.max(c,p)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+o),f=p>u?"":"hidden",p=Math.min(u,p))}var m={height:p,overflowY:f,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var nZe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Z9=0,Q9=1,J9=2,rZe=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=Ht(n,nZe),h=In(i,{value:a,postState:function(Y){return Y??""}}),m=Te(h,2),g=m[0],v=m[1],y=function(Y){v(Y.target.value),f==null||f(Y)},w=d.useRef();d.useImperativeHandle(t,function(){return{textArea:w.current}});var b=d.useMemo(function(){return o&&Kt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),C=Te(b,2),k=C[0],S=C[1],_=!!o,E=function(){try{if(document.activeElement===w.current){var Y=w.current,ee=Y.selectionStart,ie=Y.selectionEnd,Z=Y.scrollTop;w.current.setSelectionRange(ee,ie),w.current.scrollTop=Z}}catch{}},$=d.useState(J9),M=Te($,2),P=M[0],R=M[1],O=d.useState(),j=Te(O,2),I=j[0],A=j[1],N=function(){R(Z9)};nr(function(){_&&N()},[a,k,S,_]),nr(function(){if(P===Z9)R(Q9);else if(P===Q9){var U=tZe(w.current,!1,k,S);R(J9),A(U)}else E()},[P]);var F=d.useRef(),K=function(){rr.cancel(F.current)},L=function(Y){P===J9&&(s==null||s(Y),o&&(K(),F.current=rr(function(){N()})))};d.useEffect(function(){return K},[]);var V=_?I:null,B=q(q({},c),V);return(P===Z9||P===Q9)&&(B.overflowY="hidden",B.overflowX="hidden"),d.createElement(Ko,{onResize:L,disabled:!(o||s)},d.createElement("textarea",tt({},p,{ref:w,style:B,className:Ee(r,l,ne({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:y})))}),iZe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],e1e=te.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,m=h===void 0?"rc-textarea":h,g=e.showCount,v=e.count,y=e.className,w=e.style,b=e.disabled,C=e.hidden,k=e.classNames,S=e.styles,_=e.onResize,E=e.onClear,$=e.onPressEnter,M=e.readOnly,P=e.autoSize,R=e.onKeyDown,O=Ht(e,iZe),j=In(r,{value:i,defaultValue:r}),I=Te(j,2),A=I[0],N=I[1],F=A==null?"":String(A),K=te.useState(!1),L=Te(K,2),V=L[0],B=L[1],U=te.useRef(!1),Y=te.useState(null),ee=Te(Y,2),ie=ee[0],Z=ee[1],X=d.useRef(null),ae=d.useRef(null),oe=function(){var ge;return(ge=ae.current)===null||ge===void 0?void 0:ge.textArea},le=function(){oe().focus()};d.useImperativeHandle(t,function(){var We;return{resizableTextArea:ae.current,focus:le,blur:function(){oe().blur()},nativeElement:((We=X.current)===null||We===void 0?void 0:We.nativeElement)||oe()}}),d.useEffect(function(){B(function(We){return!b&&We})},[b]);var ce=te.useState(null),pe=Te(ce,2),me=pe[0],re=pe[1];te.useEffect(function(){if(me){var We;(We=oe()).setSelectionRange.apply(We,lt(me))}},[me]);var fe=Xge(v,g),ve=(n=fe.max)!==null&&n!==void 0?n:c,$e=Number(ve)>0,Ce=fe.strategy(F),be=!!ve&&Ce>ve,Se=function(ge,ze){var Ve=ze;!U.current&&fe.exceedFormatter&&fe.max&&fe.strategy(ze)>fe.max&&(Ve=fe.exceedFormatter(ze,{max:fe.max}),ze!==Ve&&re([oe().selectionStart||0,oe().selectionEnd||0])),N(Ve),S6(ge.currentTarget,ge,s,Ve)},we=function(ge){U.current=!0,u==null||u(ge)},se=function(ge){U.current=!1,Se(ge,ge.currentTarget.value),f==null||f(ge)},ye=function(ge){Se(ge,ge.target.value)},Oe=function(ge){ge.key==="Enter"&&$&&$(ge),R==null||R(ge)},z=function(ge){B(!0),a==null||a(ge)},H=function(ge){B(!1),o==null||o(ge)},G=function(ge){N(""),le(),S6(oe(),ge,s)},de=p,xe;fe.show&&(fe.showFormatter?xe=fe.showFormatter({value:F,count:Ce,maxLength:ve}):xe="".concat(Ce).concat($e?" / ".concat(ve):""),de=te.createElement(te.Fragment,null,de,te.createElement("span",{className:Ee("".concat(m,"-data-count"),k==null?void 0:k.count),style:S==null?void 0:S.count},xe)));var he=function(ge){var ze;_==null||_(ge),(ze=oe())!==null&&ze!==void 0&&ze.style.height&&Z(!0)},Ue=!P&&!g&&!l;return te.createElement(U8,{ref:X,value:F,allowClear:l,handleReset:G,suffix:de,prefixCls:m,classNames:q(q({},k),{},{affixWrapper:Ee(k==null?void 0:k.affixWrapper,ne(ne({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:b,focused:V,className:Ee(y,be&&"".concat(m,"-out-of-range")),style:q(q({},w),ie&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:C,readOnly:M,onClear:E},te.createElement(rZe,tt({},O,{autoSize:P,maxLength:c,onKeyDown:Oe,onChange:ye,onFocus:z,onBlur:H,onCompositionStart:we,onCompositionEnd:se,className:Ee(k==null?void 0:k.textarea),style:q(q({},S==null?void 0:S.textarea),{},{resize:w==null?void 0:w.resize}),disabled:b,prefixCls:m,onResize:he,ref:ae,readOnly:M})))}),aZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:p,style:h,styles:m,variant:g}=e,v=aZe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:w,textArea:b}=d.useContext(Xt),C=Bi(o),k=d.useContext(ma),S=s??k,{status:_,hasFeedback:E,feedbackIcon:$}=d.useContext(oa),M=Mu(_,l),P=d.useRef(null);d.useImperativeHandle(t,()=>{var L;return{resizableTextArea:(L=P.current)===null||L===void 0?void 0:L.resizableTextArea,focus:V=>{var B,U;GB((U=(B=P.current)===null||B===void 0?void 0:B.resizableTextArea)===null||U===void 0?void 0:U.textArea,V)},blur:()=>{var V;return(V=P.current)===null||V===void 0?void 0:V.blur()}}});const R=y("input",i),O=qr(R),[j,I,A]=HB(R,O),[N,F]=Od("textArea",g,a),K=YB(c??(b==null?void 0:b.allowClear));return j(d.createElement(e1e,Object.assign({autoComplete:b==null?void 0:b.autoComplete},v,{style:Object.assign(Object.assign({},b==null?void 0:b.style),h),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),m),disabled:S,allowClear:K,className:Ee(A,O,p,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},u),b==null?void 0:b.classNames),{textarea:Ee({[`${R}-sm`]:C==="small",[`${R}-lg`]:C==="large"},I,u==null?void 0:u.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:Ee({[`${R}-${N}`]:F},Nl(R,M)),affixWrapper:Ee(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:w==="rtl",[`${R}-affix-wrapper-sm`]:C==="small",[`${R}-affix-wrapper-lg`]:C==="large",[`${R}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},I)}),prefixCls:R,suffix:E&&d.createElement("span",{className:`${R}-textarea-suffix`},$),ref:P})))}),Ur=W8;Ur.Group=IXe;Ur.Search=ZXe;Ur.TextArea=t1e;Ur.Password=YXe;Ur.OTP=zXe;const oZe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,sZe=e=>oZe.test(`#${e}`),lZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[a,o]=d.useState(()=>n?b2(n.toHexString()):void 0);d.useEffect(()=>{n&&o(b2(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;o(b2(c)),sZe(b2(c,!0))&&(r==null||r(Yo(c)))};return te.createElement(Ur,{className:i,value:a,prefix:"#",onChange:s,size:"small"})},cZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[a,o]=d.useState(Yo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const f=Yo(u);n||o(f),r==null||r(f)};return te.createElement("div",{className:i},te.createElement(Km,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:i,formatter:l=>n_(l||0).toString(),onChange:l=>s(Number(l),"h")}),te.createElement(Km,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${n_(l||0)}%`,onChange:l=>s(Number(l),"s")}),te.createElement(Km,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${n_(l||0)}%`,onChange:l=>s(Number(l),"b")}))},uZe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[a,o]=d.useState(Yo(n||"#000"));d.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const f=Yo(u);n||o(f),r==null||r(f)};return te.createElement("div",{className:i},te.createElement(Km,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),te.createElement(Km,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),te.createElement(Km,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},dZe=[ih.hex,ih.hsb,ih.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),fZe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:a,onChange:o,disabledFormat:s}=e,[l,c]=In(ih.hex,{value:n,onChange:a}),u=`${t}-input`,f=h=>{c(h)},p=d.useMemo(()=>{const h={value:r,prefixCls:t,onChange:o};switch(l){case ih.hsb:return te.createElement(cZe,Object.assign({},h));case ih.rgb:return te.createElement(uZe,Object.assign({},h));default:return te.createElement(lZe,Object.assign({},h))}},[l,t,r,o]);return te.createElement("div",{className:`${u}-container`},!s&&te.createElement(Yf,{value:l,variant:"borderless",getPopupContainer:h=>h,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:dZe}),te.createElement("div",{className:u},p),!i&&te.createElement(RXe,{prefixCls:t,value:r,onChange:o}))};function Yj(e,t,n){return(e-t)/(n-t)}function XB(e,t,n,r){var i=Yj(t,n,r),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function sm(e,t){return Array.isArray(e)?e[t]:e}var Xg=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),n1e=d.createContext({}),pZe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],PX=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,a=e.onStartMove,o=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,h=e.onFocus,m=e.onMouseEnter,g=Ht(e,pZe),v=d.useContext(Xg),y=v.min,w=v.max,b=v.direction,C=v.disabled,k=v.keyboard,S=v.range,_=v.tabIndex,E=v.ariaLabelForHandle,$=v.ariaLabelledByForHandle,M=v.ariaRequired,P=v.ariaValueTextFormatterForHandle,R=v.styles,O=v.classNames,j="".concat(n,"-handle"),I=function(ee){C||a(ee,i)},A=function(ee){h==null||h(ee,i)},N=function(ee){m(ee,i)},F=function(ee){if(!C&&k){var ie=null;switch(ee.which||ee.keyCode){case mt.LEFT:ie=b==="ltr"||b==="btt"?-1:1;break;case mt.RIGHT:ie=b==="ltr"||b==="btt"?1:-1;break;case mt.UP:ie=b!=="ttb"?1:-1;break;case mt.DOWN:ie=b!=="ttb"?-1:1;break;case mt.HOME:ie="min";break;case mt.END:ie="max";break;case mt.PAGE_UP:ie=2;break;case mt.PAGE_DOWN:ie=-2;break;case mt.BACKSPACE:case mt.DELETE:o(i);break}ie!==null&&(ee.preventDefault(),f(ie,i))}},K=function(ee){switch(ee.which||ee.keyCode){case mt.LEFT:case mt.RIGHT:case mt.UP:case mt.DOWN:case mt.HOME:case mt.END:case mt.PAGE_UP:case mt.PAGE_DOWN:p==null||p();break}},L=XB(b,r,y,w),V={};if(i!==null){var B;V={tabIndex:C?null:sm(_,i),role:"slider","aria-valuemin":y,"aria-valuemax":w,"aria-valuenow":r,"aria-disabled":C,"aria-label":sm(E,i),"aria-labelledby":sm($,i),"aria-required":sm(M,i),"aria-valuetext":(B=sm(P,i))===null||B===void 0?void 0:B(r),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:I,onTouchStart:I,onFocus:A,onMouseEnter:N,onKeyDown:F,onKeyUp:K}}var U=d.createElement("div",tt({ref:t,className:Ee(j,ne(ne(ne({},"".concat(j,"-").concat(i+1),i!==null&&S),"".concat(j,"-dragging"),c),"".concat(j,"-dragging-delete"),u),O.handle),style:q(q(q({},L),s),R.handle)},V,g));return l&&(U=l(U,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),U}),hZe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],mZe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,p=Ht(e,hZe),h=d.useRef({}),m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=d.useState(-1),b=Te(w,2),C=b[0],k=b[1],S=function(P){k(P),y(!0)},_=function(P,R){S(R),f==null||f(P)},E=function(P,R){S(R)};d.useImperativeHandle(t,function(){return{focus:function(P){var R;(R=h.current[P])===null||R===void 0||R.focus()},hideHelp:function(){Va.flushSync(function(){y(!1)})}}});var $=q({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:_,onMouseEnter:E},p);return d.createElement(d.Fragment,null,o.map(function(M,P){var R=c===P;return d.createElement(PX,tt({ref:function(j){j?h.current[P]=j:delete h.current[P]},dragging:R,draggingDelete:R&&u,style:sm(r,P),key:P,value:M,valueIndex:P},$))}),l&&v&&d.createElement(PX,tt({key:"a11y"},$,{value:o[C],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),gZe=function(t){var n=t.prefixCls,r=t.style,i=t.children,a=t.value,o=t.onClick,s=d.useContext(Xg),l=s.min,c=s.max,u=s.direction,f=s.includedStart,p=s.includedEnd,h=s.included,m="".concat(n,"-text"),g=XB(u,a,l,c);return d.createElement("span",{className:Ee(m,ne({},"".concat(m,"-active"),h&&f<=a&&a<=p)),style:q(q({},g),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){o(a)}},i)},vZe=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,a="".concat(n,"-mark");return r.length?d.createElement("div",{className:a},r.map(function(o){var s=o.value,l=o.style,c=o.label;return d.createElement(gZe,{key:s,prefixCls:a,style:l,value:s,onClick:i},c)})):null},yZe=function(t){var n=t.prefixCls,r=t.value,i=t.style,a=t.activeStyle,o=d.useContext(Xg),s=o.min,l=o.max,c=o.direction,u=o.included,f=o.includedStart,p=o.includedEnd,h="".concat(n,"-dot"),m=u&&f<=r&&r<=p,g=q(q({},XB(c,r,s,l)),typeof i=="function"?i(r):i);return m&&(g=q(q({},g),typeof a=="function"?a(r):a)),d.createElement("span",{className:Ee(h,ne({},"".concat(h,"-active"),m)),style:g})},bZe=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,a=t.style,o=t.activeStyle,s=d.useContext(Xg),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var p=new Set;if(r.forEach(function(m){p.add(m.value)}),i&&u!==null)for(var h=l;h<=c;)p.add(h),h+=u;return Array.from(p)},[l,c,u,i,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(p){return d.createElement(yZe,{prefixCls:n,key:p,value:p,style:a,activeStyle:o})}))},OX=function(t){var n=t.prefixCls,r=t.style,i=t.start,a=t.end,o=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(Xg),u=c.direction,f=c.min,p=c.max,h=c.disabled,m=c.range,g=c.classNames,v="".concat(n,"-track"),y=Yj(i,f,p),w=Yj(a,f,p),b=function(_){!h&&s&&s(_,-1)},C={};switch(u){case"rtl":C.right="".concat(y*100,"%"),C.width="".concat(w*100-y*100,"%");break;case"btt":C.bottom="".concat(y*100,"%"),C.height="".concat(w*100-y*100,"%");break;case"ttb":C.top="".concat(y*100,"%"),C.height="".concat(w*100-y*100,"%");break;default:C.left="".concat(y*100,"%"),C.width="".concat(w*100-y*100,"%")}var k=l||Ee(v,ne(ne({},"".concat(v,"-").concat(o+1),o!==null&&m),"".concat(n,"-track-draggable"),s),g.track);return d.createElement("div",{className:k,style:q(q({},C),r),onMouseDown:b,onTouchStart:b})},wZe=function(t){var n=t.prefixCls,r=t.style,i=t.values,a=t.startPoint,o=t.onStartMove,s=d.useContext(Xg),l=s.included,c=s.range,u=s.min,f=s.styles,p=s.classNames,h=d.useMemo(function(){if(!c){if(i.length===0)return[];var g=a??u,v=i[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var y=[],w=0;wxZe&&u<$.length:!1,S(me),B(Z,H,me)},fe=function ve($e){$e.preventDefault(),document.removeEventListener("mouseup",ve),document.removeEventListener("mousemove",re),N.current&&(N.current.removeEventListener("touchmove",I.current),N.current.removeEventListener("touchend",A.current)),I.current=null,A.current=null,N.current=null,s(me),w(-1),S(!1)};document.addEventListener("mouseup",fe),document.addEventListener("mousemove",re),ie.currentTarget.addEventListener("touchend",fe),ie.currentTarget.addEventListener("touchmove",re),I.current=re,A.current=fe,N.current=ie.currentTarget},Y=d.useMemo(function(){var ee=lt(n).sort(function(oe,le){return oe-le}),ie=lt($).sort(function(oe,le){return oe-le}),Z={};ie.forEach(function(oe){Z[oe]=(Z[oe]||0)+1}),ee.forEach(function(oe){Z[oe]=(Z[oe]||0)-1});var X=c?1:0,ae=Object.values(Z).reduce(function(oe,le){return oe+Math.abs(le)},0);return ae<=X?$:n},[n,$,c]);return[y,h,k,Y,U]}function CZe(e,t,n,r,i,a){var o=d.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),s=d.useCallback(function(h){if(n!==null){var m=e+Math.round((o(h)-e)/n)*n,g=function(b){return(String(b).split(".")[1]||"").length},v=Math.max(g(n),g(t),g(e)),y=Number(m.toFixed(v));return e<=y&&y<=t?y:null}return null},[n,e,t,o]),l=d.useCallback(function(h){var m=o(h),g=r.map(function(w){return w.value});n!==null&&g.push(s(h)),g.push(e,t);var v=g[0],y=t-e;return g.forEach(function(w){var b=Math.abs(m-w);b<=y&&(v=w,y=b)}),v},[e,t,r,n,o,s]),c=function h(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var w,b=m[v],C=b+g,k=[];r.forEach(function(M){k.push(M.value)}),k.push(e,t),k.push(s(b));var S=g>0?1:-1;y==="unit"?k.push(s(b+S*n)):k.push(s(C)),k=k.filter(function(M){return M!==null}).filter(function(M){return g<0?M<=b:M>=b}),y==="unit"&&(k=k.filter(function(M){return M!==b}));var _=y==="unit"?b:C;w=k[0];var E=Math.abs(w-_);if(k.forEach(function(M){var P=Math.abs(M-_);P1){var $=lt(m);return $[v]=w,h($,g-S,v,y)}return w}else{if(g==="min")return e;if(g==="max")return t}},u=function(m,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=m[v],b=c(m,g,v,y);return{value:b,changed:b!==w}},f=function(m){return a===null&&m===0||typeof a=="number"&&m3&&arguments[3]!==void 0?arguments[3]:"unit",w=m.map(l),b=w[v],C=c(w,g,v,y);if(w[v]=C,i===!1){var k=a||0;v>0&&w[v-1]!==b&&(w[v]=Math.max(w[v],w[v-1]+k)),v0;$-=1)for(var M=!0;f(w[$]-w[$-1])&&M;){var P=u(w,-1,$-1);w[$-1]=P.value,M=P.changed}for(var R=w.length-1;R>0;R-=1)for(var O=!0;f(w[R]-w[R-1])&&O;){var j=u(w,-1,R-1);w[R-1]=j.value,O=j.changed}for(var I=0;I=0?N:!1},[N,he]),We=d.useMemo(function(){return Object.keys(X||{}).map(function(It){var rt=X[It],$t={value:Number(It)};return rt&&Kt(rt)==="object"&&!d.isValidElement(rt)&&("label"in rt||"style"in rt)?($t.style=rt.style,$t.label=rt.label):$t.label=rt,$t}).filter(function(It){var rt=It.label;return rt||typeof rt=="number"}).sort(function(It,rt){return It.value-rt.value})},[X]),ge=CZe(de,xe,he,We,I,Ue),ze=Te(ge,2),Ve=ze[0],Be=ze[1],Xe=In(_,{value:S}),Ke=Te(Xe,2),qe=Ke[0],Et=Ke[1],ut=d.useMemo(function(){var It=qe==null?[]:Array.isArray(qe)?qe:[qe],rt=Te(It,1),$t=rt[0],Mt=$t===void 0?de:$t,dn=qe===null?[]:[Mt];if(ye){if(dn=lt(It),$||qe===void 0){var pn=$>=0?$+1:2;for(dn=dn.slice(0,pn);dn.length=0&&Ce.current.focus(It)}st(null)},[Pt]);var kt=d.useMemo(function(){return z&&he===null?!1:z},[z,he]),qt=Vn(function(It,rt){Je(It,rt),P==null||P(gt(ut))}),vt=Ut!==-1;d.useEffect(function(){if(!vt){var It=ut.lastIndexOf(Ne);Ce.current.focus(It)}},[vt]);var At=d.useMemo(function(){return lt(Le).sort(function(It,rt){return It-rt})},[Le]),dt=d.useMemo(function(){return ye?[At[0],At[At.length-1]]:[de,At[0]]},[At,ye,de]),De=Te(dt,2),Ye=De[0],ot=De[1];d.useImperativeHandle(t,function(){return{focus:function(){Ce.current.focus(0)},blur:function(){var rt,$t=document,Mt=$t.activeElement;(rt=be.current)!==null&&rt!==void 0&&rt.contains(Mt)&&(Mt==null||Mt.blur())}}}),d.useEffect(function(){h&&Ce.current.focus(0)},[]);var Re=d.useMemo(function(){return{min:de,max:xe,direction:Se,disabled:u,keyboard:p,step:he,included:V,includedStart:Ye,includedEnd:ot,range:ye,tabIndex:me,ariaLabelForHandle:re,ariaLabelledByForHandle:fe,ariaRequired:ve,ariaValueTextFormatterForHandle:$e,styles:s||{},classNames:o||{}}},[de,xe,Se,u,p,he,V,Ye,ot,ye,me,re,fe,ve,$e,s,o]);return d.createElement(Xg.Provider,{value:Re},d.createElement("div",{ref:be,className:Ee(r,i,ne(ne(ne(ne({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),K),"".concat(r,"-horizontal"),!K),"".concat(r,"-with-marks"),We.length)),style:a,onMouseDown:xt,id:l},d.createElement("div",{className:Ee("".concat(r,"-rail"),o==null?void 0:o.rail),style:q(q({},ee),s==null?void 0:s.rail)}),ce!==!1&&d.createElement(wZe,{prefixCls:r,style:U,values:ut,startPoint:B,onStartMove:kt?qt:void 0}),d.createElement(bZe,{prefixCls:r,marks:We,dots:ae,style:ie,activeStyle:Z}),d.createElement(mZe,{ref:Ce,prefixCls:r,style:Y,values:Le,draggingIndex:Ut,draggingDelete:He,onStartMove:qt,onOffsetChange:Ct,onFocus:m,onBlur:g,handleRender:oe,activeHandleRender:le,onChangeComplete:nt,onDelete:Oe?jt:void 0}),d.createElement(vZe,{prefixCls:r,marks:We,onClick:pt})))});const r1e=d.createContext({}),IX=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=d.useRef(null),a=n&&!r,o=d.useRef(null);function s(){rr.cancel(o.current),o.current=null}function l(){o.current=rr(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),o.current=null})}return d.useEffect(()=>(a?l():s(),s),[a,e.title]),d.createElement(_a,Object.assign({ref:ga(i,t)},e,{open:a}))}),EZe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:h,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative",height:r,margin:`${Me(o)} ${Me(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Me(a)} ${Me(o)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Me(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(m).mul(-1).equal(),insetBlockStart:c(m).mul(-1).equal(),width:c(u).add(c(m).mul(2)).equal(),height:c(u).add(c(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Me(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${v}, inset-block-start ${v}, width ${v}, @@ -411,21 +411,21 @@ html body { `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${Me(m)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},a1e=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",h=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),g=t?{borderWidth:`${Me(m)} 0`,transform:`translateY(${Me(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Me(m)}`,transform:`translateX(${Me(e.calc(m).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[f]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:o).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},MZe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},a1e(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},TZe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},a1e(e,!1)),{height:"100%"})}},PZe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,a=e.lineWidth+1*1.5,o=e.colorPrimary,s=new ur(o).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:o,handleActiveOutlineColor:s,handleColorDisabled:new ur(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},OZe=Jn("Slider",e=>{const t=Hn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[$Ze(t),MZe(t),TZe(t)]},PZe);function eT(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{rr.cancel(n.current)},i=a=>{r(),a?t(a):n.current=rr(()=>{t(a)})};return d.useEffect(()=>r,[]),[e,i]}var RZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const o1e=te.forwardRef((e,t)=>{var n,r,i,a,o,s,l,c,u,f;const{prefixCls:p,range:h,className:m,rootClassName:g,style:v,disabled:y,tooltipPrefixCls:w,tipFormatter:b,tooltipVisible:C,getTooltipPopupContainer:k,tooltipPlacement:S,tooltip:_={},onChangeComplete:E,classNames:$,styles:M}=e,P=RZe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:R}=e,{direction:O,slider:j,getPrefixCls:I,getPopupContainer:A}=te.useContext(Xt),N=te.useContext(ma),F=y??N,{handleRender:K,direction:L}=te.useContext(i1e),B=(L||O)==="rtl",[U,Y]=eT(),[ee,ie]=eT(),Z=Object.assign({},_),{open:X,placement:ae,getPopupContainer:oe,prefixCls:le,formatter:ce}=Z,pe=X??C,me=(U||ee)&&pe!==!1,re=IZe(ce,b),[fe,ve]=eT(),$e=he=>{E==null||E(he),ve(!1)},Ce=(he,Ue)=>he||(Ue?B?"left":"right":"top"),be=I("slider",p),[Se,we,se]=OZe(be),ye=Ee(m,j==null?void 0:j.className,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.root,$==null?void 0:$.root,g,{[`${be}-rtl`]:B,[`${be}-lock`]:fe},we,se);B&&!P.vertical&&(P.reverse=!P.reverse),te.useEffect(()=>{const he=()=>{rr(()=>{ie(!1)},1)};return document.addEventListener("mouseup",he),()=>{document.removeEventListener("mouseup",he)}},[]);const Oe=h&&!pe,z=K||((he,Ue)=>{const{index:We}=Ue,ge=he.props;function ze(Ke,qe,Et){var ut,gt,Qe,nt;Et&&((gt=(ut=P)[Ke])===null||gt===void 0||gt.call(ut,qe)),(nt=(Qe=ge)[Ke])===null||nt===void 0||nt.call(Qe,qe)}const Ve=Object.assign(Object.assign({},ge),{onMouseEnter:Ke=>{Y(!0),ze("onMouseEnter",Ke)},onMouseLeave:Ke=>{Y(!1),ze("onMouseLeave",Ke)},onMouseDown:Ke=>{ie(!0),ve(!0),ze("onMouseDown",Ke)},onFocus:Ke=>{var qe;ie(!0),(qe=P.onFocus)===null||qe===void 0||qe.call(P,Ke),ze("onFocus",Ke,!0)},onBlur:Ke=>{var qe;ie(!1),(qe=P.onBlur)===null||qe===void 0||qe.call(P,Ke),ze("onBlur",Ke,!0)}}),Be=te.cloneElement(he,Ve),Xe=(!!pe||me)&&re!==null;return Oe?Be:te.createElement(IX,Object.assign({},Z,{prefixCls:I("tooltip",le??w),title:re?re(Ue.value):"",open:Xe,placement:Ce(ae??S,R),key:We,classNames:{root:`${be}-tooltip`},getPopupContainer:oe||k||A}),Be)}),H=Oe?(he,Ue)=>{const We=te.cloneElement(he,{style:Object.assign(Object.assign({},he.props.style),{visibility:"hidden"})});return te.createElement(IX,Object.assign({},Z,{prefixCls:I("tooltip",le??w),title:re?re(Ue.value):"",open:re!==null&&me,placement:Ce(ae??S,R),key:"tooltip",classNames:{root:`${be}-tooltip`},getPopupContainer:oe||k||A,draggingDelete:Ue.draggingDelete}),We)}:void 0,G=Object.assign(Object.assign(Object.assign(Object.assign({},(r=j==null?void 0:j.styles)===null||r===void 0?void 0:r.root),j==null?void 0:j.style),M==null?void 0:M.root),v),de=Object.assign(Object.assign({},(i=j==null?void 0:j.styles)===null||i===void 0?void 0:i.tracks),M==null?void 0:M.tracks),xe=Ee((a=j==null?void 0:j.classNames)===null||a===void 0?void 0:a.tracks,$==null?void 0:$.tracks);return Se(te.createElement(EZe,Object.assign({},P,{classNames:Object.assign({handle:Ee((o=j==null?void 0:j.classNames)===null||o===void 0?void 0:o.handle,$==null?void 0:$.handle),rail:Ee((s=j==null?void 0:j.classNames)===null||s===void 0?void 0:s.rail,$==null?void 0:$.rail),track:Ee((l=j==null?void 0:j.classNames)===null||l===void 0?void 0:l.track,$==null?void 0:$.track)},xe?{tracks:xe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=j==null?void 0:j.styles)===null||c===void 0?void 0:c.handle),M==null?void 0:M.handle),rail:Object.assign(Object.assign({},(u=j==null?void 0:j.styles)===null||u===void 0?void 0:u.rail),M==null?void 0:M.rail),track:Object.assign(Object.assign({},(f=j==null?void 0:j.styles)===null||f===void 0?void 0:f.track),M==null?void 0:M.track)},Object.keys(de).length?{tracks:de}:{}),step:P.step,range:h,className:ye,style:G,disabled:F,ref:t,prefixCls:be,handleRender:z,activeHandleRender:H,onChangeComplete:$e})))});var jZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,colors:n,type:r,color:i,range:a=!1,className:o,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:f}=e,p=jZe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},p),{track:!1}),m=d.useMemo(()=>`linear-gradient(90deg, ${n.map(S=>`${S.color} ${S.percent}%`).join(", ")})`,[n]),g=d.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),v=Vn(c),y=Vn(u),w=d.useMemo(()=>({onDragStart:v,onDragChange:y}),[]),b=Vn((k,S)=>{const{onFocus:_,style:E,className:$,onKeyDown:M}=k.props,P=Object.assign({},E);return r==="gradient"&&(P.background=Epe(n,S.value)),d.cloneElement(k,{onFocus:R=>{l==null||l(S.index),_==null||_(R)},style:P,className:Ee($,{[`${t}-slider-handle-active`]:s===S.index}),onKeyDown:R=>{(R.key==="Delete"||R.key==="Backspace")&&f&&f(S.index),M==null||M(R)}})}),C=d.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return d.createElement(i1e.Provider,{value:C},d.createElement(r1e.Provider,{value:w},d.createElement(o1e,Object.assign({},h,{className:Ee(o,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:m},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},NZe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=o=>n(o[0]),a=o=>r(o[0]);return d.createElement(s1e,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:a}))};function jX(e){return lt(e).sort((t,n)=>t.percent-n.percent)}const AZe=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:o,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=d.useMemo(()=>l.map(y=>({percent:y.percent,color:y.color.toRgbString()})),[l]),f=d.useMemo(()=>u.map(y=>y.percent),[u]),p=d.useRef(u),h=y=>{let{rawValues:w,draggingIndex:b,draggingValue:C}=y;if(w.length>u.length){const k=Epe(u,C),S=lt(u);S.splice(b,0,{percent:C,color:k}),p.current=S}else p.current=u;s(!0),r(new _l(jX(p.current)),!0)},m=y=>{let{deleteIndex:w,draggingIndex:b,draggingValue:C}=y,k=lt(p.current);w!==-1?k.splice(w,1):(k[b]=Object.assign(Object.assign({},k[b]),{percent:C}),k=jX(k)),r(new _l(k),!0)},g=y=>{const w=lt(u);w.splice(y,1);const b=new _l(w);r(b),i(b)},v=y=>{i(new _l(u)),o>=y.length&&a(y.length-1),s(!1)};return c?d.createElement(s1e,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:f,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:o,onActive:a,onDragStart:h,onDragChange:m,onKeyDelete:g}):null},DZe=d.memo(AZe);var FZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const e=d.useContext(qge),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:a,value:o,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:f,gradientDragging:p}=e,h=FZe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=te.useMemo(()=>o.cleared?[{percent:0,color:new _l("")},{percent:100,color:new _l("")}]:o.getColors(),[o]),g=!o.isGradient(),[v,y]=te.useState(o);nr(()=>{var j;g||y((j=m[f])===null||j===void 0?void 0:j.color)},[p,f]);const w=te.useMemo(()=>{var j;return g?o:p?v:(j=m[f])===null||j===void 0?void 0:j.color},[o,f,g,v,p]),[b,C]=te.useState(w),[k,S]=te.useState(0),_=b!=null&&b.equals(w)?w:b;nr(()=>{C(w)},[k,w==null?void 0:w.toHexString()]);const E=(j,I)=>{let A=Xo(j);if(o.cleared){const F=A.toRgb();if(!F.r&&!F.g&&!F.b&&I){const{type:K,value:L=0}=I;A=new _l({h:K==="hue"?L:0,s:1,b:1,a:K==="alpha"?L/100:1})}else A=i_(A)}if(t==="single")return A;const N=lt(m);return N[f]=Object.assign(Object.assign({},N[f]),{color:A}),new _l(N)},$=(j,I,A)=>{const N=E(j,A);C(N.isGradient()?N.getColors()[f].color:N),l(N,I)},M=(j,I)=>{u(E(j,I)),S(A=>A+1)},P=j=>{l(E(j))};let R=null;const O=r.length>1;return(a||O)&&(R=te.createElement("div",{className:`${i}-operation`},O&&te.createElement(Vge,{size:"small",options:r,value:t,onChange:n}),te.createElement(Gge,Object.assign({prefixCls:i,value:o,onChange:j=>{l(j),c==null||c()}},h)))),te.createElement(te.Fragment,null,R,te.createElement(DZe,Object.assign({},e,{colors:m})),te.createElement(rFe,{prefixCls:i,value:_==null?void 0:_.toHsb(),disabledAlpha:s,onChange:(j,I)=>{$(j,!0,I)},onChangeComplete:(j,I)=>{M(j,I)},components:LZe}),te.createElement(pZe,Object.assign({value:w,onChange:P,prefixCls:i,disabledAlpha:s},h)))},AX=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=d.useContext(Kge);return Array.isArray(n)?te.createElement(XFe,{value:t,presets:n,prefixCls:e,onChange:r}):null},BZe=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:w,disabledFormat:b}=e,C=`${t}-inner`,k=te.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:w,disabledFormat:b}),[t,i,a,o,s,l,c,u,f,p,h,m,g,v,y,w,b]),S=te.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),_=te.createElement("div",{className:`${C}-content`},te.createElement(NX,null),Array.isArray(n)&&te.createElement(KYe,null),te.createElement(AX,null));return te.createElement(qge.Provider,{value:k},te.createElement(Kge.Provider,{value:S},te.createElement("div",{className:C},typeof r=="function"?r(_,{components:{Picker:NX,Presets:AX}}):_)))};var zZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{color:n,prefixCls:r,open:i,disabled:a,format:o,className:s,showText:l,activeIndex:c}=e,u=zZe(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,p=`${f}-text`,h=`${p}-cell`,[m]=Ga("ColorPicker"),g=te.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((b,C)=>{const k=c!==-1&&c!==C;return te.createElement("span",{key:C,className:Ee(h,k&&`${h}-inactive`)},b.color.toRgbString()," ",b.percent,"%")});const y=n.toHexString().toUpperCase(),w=nB(n);switch(o){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return w<100?`${y.slice(0,7)},${w}%`:y}},[n,o,l,c]),v=d.useMemo(()=>n.cleared?te.createElement(Gge,{prefixCls:r}):te.createElement(QL,{prefixCls:r,color:n.toCssString()}),[n,r]);return te.createElement("div",Object.assign({ref:t,className:Ee(f,s,{[`${f}-active`]:i,[`${f}-disabled`]:a})},Fi(u)),v,l&&te.createElement("div",{className:p},g))});function UZe(e,t,n){const[r]=Ga("ColorPicker"),[i,a]=In(e,{value:t}),[o,s]=d.useState("single"),[l,c]=d.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(b=>b);g.length||g.push("single");const v=new Set(g),y=[],w=(b,C)=>{v.has(b)&&y.push({label:C,value:b})};return w("single",r.singleColor),w("gradient",r.gradientColor),[y,v]},[n]),[u,f]=d.useState(null),p=Vn(g=>{f(g),a(g)}),h=d.useMemo(()=>{const g=Xo(i||"");return g.equals(u)?u:g},[i,u]),m=d.useMemo(()=>{var g;return c.has(o)?o:(g=l[0])===null||g===void 0?void 0:g.value},[c,o,l]);return d.useEffect(()=>{s(h.isGradient()?"gradient":"single")},[h]),[h,p,m,s,l]}const l1e=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),DX=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:a,colorFillSecondary:o}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},l1e("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Me(a)} ${o}`,borderRadius:"inherit"}})}},WZe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:a,marginXXS:o,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:f,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:h,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Me(a)}`,marginInlineStart:o},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(o).equal(),fontSize:r,lineHeight:Me(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:o,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:o,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Me(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Me(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:p}}}}}},VZe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:a,colorBgElevated:o,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${Me(l)} solid ${o}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},qZe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:a,fontSizeSM:o,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:f,colorWhite:p,marginXXS:h,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Me(m)} 0`},"&-label":{fontSize:o,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(c).mul(4)).equal(),height:e.calc(a).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${Me(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${Me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:o,color:r}}}},KZe=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:a,colorPickerHandlerSizeSM:o,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(o).sub(e.calc(a).mul(2).equal()).equal(),f=e.calc(o).add(e.calc(a).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[l1e(Me(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:o,height:o,border:`${Me(a)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}},Xj=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Me(e.controlOutlineWidth)} ${n}`,outline:0}),GZe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},FX=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:a,colorSplit:o,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${Me(a)} solid ${o}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},YZe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:a,colorErrorOutline:o,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Xj(e,n,o))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Xj(e,r,s))}}},XZe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:a,borderRadius:o,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:o},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:Me(a)}}}},ZZe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:a,colorBgElevated:o,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:f,marginSM:p,controlHeight:h,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:y,lineWidth:w,colorBorder:b,paddingXXS:C,fontSize:k,colorPrimaryHover:S,controlOutline:_}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${Me(p)} 0 ${Me(f)}`}},[`${n}-panel`]:Object.assign({},VZe(e))},KZe(e)),DX(e,y)),WZe(e)),qZe(e)),FX(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,minHeight:h,borderRadius:u,border:`${Me(w)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:o,padding:e.calc(C).sub(w).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(C).sub(w)).equal(),fontSize:k,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},Xj(e,i,_)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},FX(e,m)),DX(e,m)),YZe(e)),XZe(e))},GZe(e))},Wg(e,{focusElCls:`${n}-trigger-active`})]},QZe=Jn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=Hn(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[ZZe(i)]});var JZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:a,allowClear:o=!1,presets:s,children:l,trigger:c="click",open:u,disabled:f,placement:p="bottomLeft",arrow:h=!0,panelRender:m,showText:g,style:v,className:y,size:w,rootClassName:b,prefixCls:C,styles:k,disabledAlpha:S=!1,onFormatChange:_,onChange:E,onClear:$,onOpenChange:M,onChangeComplete:P,getPopupContainer:R,autoAdjustOverflow:O=!0,destroyTooltipOnHide:j,disabledFormat:I}=e,A=JZe(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:N,direction:F,colorPicker:K}=d.useContext(Xt),L=d.useContext(ma),V=f??L,[B,U]=In(!1,{value:u,postState:Ve=>!V&&Ve,onChange:M}),[Y,ee]=In(i,{value:i,defaultValue:a,onChange:_}),ie=N("color-picker",C),[Z,X,ae,oe,le]=UZe(r,n,t),ce=d.useMemo(()=>nB(Z)<100,[Z]),[pe,me]=te.useState(null),re=Ve=>{if(P){let Be=Xo(Ve);S&&ce&&(Be=i_(Ve)),P(Be)}},fe=(Ve,Be)=>{let Xe=Xo(Ve);S&&ce&&(Xe=i_(Xe)),X(Xe),me(null),E&&E(Xe,Xe.toCssString()),Be||re(Xe)},[ve,$e]=te.useState(0),[Ce,be]=te.useState(!1),Se=Ve=>{if(oe(Ve),Ve==="single"&&Z.isGradient())$e(0),fe(new _l(Z.getColors()[0].color)),me(Z);else if(Ve==="gradient"&&!Z.isGradient()){const Be=ce?i_(Z):Z;fe(new _l(pe||[{percent:0,color:Be},{percent:100,color:Be}]))}},{status:we}=te.useContext(oa),{compactSize:se,compactItemClassnames:ye}=$u(ie,F),Oe=Bi(Ve=>{var Be;return(Be=w??se)!==null&&Be!==void 0?Be:Ve}),z=qr(ie),[H,G,de]=QZe(ie,z),xe={[`${ie}-rtl`]:F},he=Ee(b,de,z,xe),Ue=Ee(Al(ie,we),{[`${ie}-sm`]:Oe==="small",[`${ie}-lg`]:Oe==="large"},ye,K==null?void 0:K.className,he,y,G),We=Ee(ie,he),ge={open:B,trigger:c,placement:p,arrow:h,rootClassName:b,getPopupContainer:R,autoAdjustOverflow:O,destroyTooltipOnHide:j},ze=Object.assign(Object.assign({},K==null?void 0:K.style),v);return H(te.createElement(wc,Object.assign({style:k==null?void 0:k.popup,styles:{body:k==null?void 0:k.popupOverlayInner},onOpenChange:Ve=>{(!Ve||!V)&&U(Ve)},content:te.createElement(bu,{form:!0},te.createElement(BZe,{mode:ae,onModeChange:Se,modeOptions:le,prefixCls:ie,value:Z,allowClear:o,disabled:V,disabledAlpha:S,presets:s,panelRender:m,format:Y,onFormatChange:ee,onChange:fe,onChangeComplete:re,onClear:$,activeIndex:ve,onActive:$e,gradientDragging:Ce,onGradientDragging:be,disabledFormat:I})),classNames:{root:We}},ge),l||te.createElement(HZe,Object.assign({activeIndex:B?ve:-1,open:B,className:Ue,style:ze,prefixCls:ie,disabled:V,showText:g,format:Y},A,{color:Z}))))},eQe=Gf(ZB,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);ZB._InternalPanelDoNotUseOrYouWillBeFired=eQe;var tQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},nQe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:tQe}))},c1e=d.forwardRef(nQe),rQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},iQe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:rQe}))},u1e=d.forwardRef(iQe),aQe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},oQe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:aQe}))},sQe=d.forwardRef(oQe);function lQe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function cQe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function d1e(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=w8(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[uQe,dQe]=["week","WeekPicker"],[fQe,pQe]=["month","MonthPicker"],[hQe,mQe]=["year","YearPicker"],[gQe,vQe]=["quarter","QuarterPicker"],[f1e,LX]=["time","TimePicker"],yQe=e=>d.createElement(Yt,Object.assign({size:"small",type:"primary"},e));function p1e(e){return d.useMemo(()=>Object.assign({button:yQe},e),[e])}var bQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((n,r)=>{var i;const{prefixCls:a,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:f,disabled:p,bordered:h=!0,placeholder:m,popupClassName:g,dropdownClassName:v,status:y,rootClassName:w,variant:b,picker:C}=n,k=bQe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=d.useRef(null),{getPrefixCls:_,direction:E,getPopupContainer:$,rangePicker:M}=d.useContext(Xt),P=_("picker",a),{compactSize:R,compactItemClassnames:O}=$u(P,E),j=_(),[I,A]=Od("rangePicker",b,h),N=qr(P),[F,K,L]=hge(P,N),[V]=d1e(n,P),B=p1e(s),U=Bi(me=>{var re;return(re=f??R)!==null&&re!==void 0?re:me}),Y=d.useContext(ma),ee=p??Y,ie=d.useContext(oa),{hasFeedback:Z,status:X,feedbackIcon:ae}=ie,oe=d.createElement(d.Fragment,null,C===f1e?d.createElement(u1e,null):d.createElement(c1e,null),Z&&ae);d.useImperativeHandle(r,()=>S.current);const[le]=Ga("Calendar",Uk),ce=Object.assign(Object.assign({},le),n.locale),[pe]=$c("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return F(d.createElement(bu,{space:!0},d.createElement(gKe,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${P}-separator`},d.createElement(sQe,null)),disabled:ee,ref:S,placement:u,placeholder:cQe(ce,C,m),suffixIcon:oe,prevIcon:d.createElement("span",{className:`${P}-prev-icon`}),nextIcon:d.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:C},k,{className:Ee({[`${P}-${U}`]:U,[`${P}-${I}`]:A},Al(P,Mu(X,y),Z),K,O,l,M==null?void 0:M.className,L,N,w),style:Object.assign(Object.assign({},M==null?void 0:M.style),c),locale:ce.lang,prefixCls:P,getPopupContainer:o||$,generateConfig:e,components:B,direction:E,classNames:{popup:Ee(K,g||v,L,N,w)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:pe})},allowClear:V}))))});var xQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const t=(l,c)=>{const u=c===LX?"timePicker":"datePicker";return d.forwardRef((p,h)=>{var m;const{prefixCls:g,getPopupContainer:v,components:y,style:w,className:b,rootClassName:C,size:k,bordered:S,placement:_,placeholder:E,popupClassName:$,dropdownClassName:M,disabled:P,status:R,variant:O,onCalendarChange:j}=p,I=xQe(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:A,direction:N,getPopupContainer:F,[u]:K}=d.useContext(Xt),L=A("picker",g),{compactSize:V,compactItemClassnames:B}=$u(L,N),U=d.useRef(null),[Y,ee]=Od("datePicker",O,S),ie=qr(L),[Z,X,ae]=hge(L,ie);d.useImperativeHandle(h,()=>U.current);const oe={showToday:!0},le=l||p.picker,ce=A(),{onSelect:pe,multiple:me}=I,re=pe&&l==="time"&&!me,fe=(he,Ue,We)=>{j==null||j(he,Ue,We),re&&pe(he)},[ve,$e]=d1e(p,L),Ce=p1e(y),be=Bi(he=>{var Ue;return(Ue=k??V)!==null&&Ue!==void 0?Ue:he}),Se=d.useContext(ma),we=P??Se,se=d.useContext(oa),{hasFeedback:ye,status:Oe,feedbackIcon:z}=se,H=d.createElement(d.Fragment,null,le==="time"?d.createElement(u1e,null):d.createElement(c1e,null),ye&&z),[G]=Ga("DatePicker",Uk),de=Object.assign(Object.assign({},G),p.locale),[xe]=$c("DatePicker",(m=p.popupStyle)===null||m===void 0?void 0:m.zIndex);return Z(d.createElement(bu,{space:!0},d.createElement(SKe,Object.assign({ref:U,placeholder:lQe(de,le,E),suffixIcon:H,placement:_,prevIcon:d.createElement("span",{className:`${L}-prev-icon`}),nextIcon:d.createElement("span",{className:`${L}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${L}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${L}-super-next-icon`}),transitionName:`${ce}-slide-up`,picker:l,onCalendarChange:fe},oe,I,{locale:de.lang,className:Ee({[`${L}-${be}`]:be,[`${L}-${Y}`]:ee},Al(L,Mu(Oe,R),ye),X,B,K==null?void 0:K.className,b,ae,ie,C),style:Object.assign(Object.assign({},K==null?void 0:K.style),w),prefixCls:L,getPopupContainer:v||F,generateConfig:e,components:Ce,direction:N,disabled:we,classNames:{popup:Ee(X,ae,ie,C,$||M)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:xe})},allowClear:ve,removeIcon:$e}))))})},n=t(),r=t(uQe,dQe),i=t(fQe,pQe),a=t(hQe,mQe),o=t(gQe,vQe),s=t(f1e,LX);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:o}},h1e=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=SQe(e),s=wQe(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=o,l},xc=h1e(_qe),CQe=Gf(xc,"popupAlign",void 0,"picker");xc._InternalPanelDoNotUseOrYouWillBeFired=CQe;const _Qe=Gf(xc.RangePicker,"popupAlign",void 0,"picker");xc._InternalRangePanelDoNotUseOrYouWillBeFired=_Qe;xc.generatePicker=h1e;const kQe={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},QB=te.createContext({});var EQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iXi(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function MQe(e,t,n){const r=d.useMemo(()=>t||$Qe(n),[t,n]);return d.useMemo(()=>r.map(a=>{var{span:o}=a,s=EQe(a,["span"]);return o==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof o=="number"?o:Nhe(e,o)})}),[r,e])}var TQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);io).forEach(o=>{const{filled:s}=o,l=TQe(o,["filled"]);if(s){r.push(l),n.push(r),r=[],a=0;return}const c=t-a;a+=o.span||1,a>=t?(a>t?(i=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],a=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(o=>{const s=o.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=d.useMemo(()=>PQe(t,e),[t,e]);return n},RQe=e=>{let{children:t}=e;return t};function BX(e){return e!=null}const tT=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:a,labelStyle:o,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:p,styles:h}=e,m=n,g=d.useContext(QB),{classNames:v}=g;return l?d.createElement(m,{className:Ee({[`${t}-item-label`]:p==="label",[`${t}-item-content`]:p==="content",[`${v==null?void 0:v.label}`]:p==="label",[`${v==null?void 0:v.content}`]:p==="content"},i),style:a,colSpan:r},BX(c)&&d.createElement("span",{style:Object.assign(Object.assign({},o),h==null?void 0:h.label)},c),BX(u)&&d.createElement("span",{style:Object.assign(Object.assign({},o),h==null?void 0:h.content)},u)):d.createElement(m,{className:Ee(`${t}-item`,i),style:a,colSpan:r},d.createElement("div",{className:`${t}-item-container`},(c||c===0)&&d.createElement("span",{className:Ee(`${t}-item-label`,v==null?void 0:v.label,{[`${t}-item-no-colon`]:!f}),style:Object.assign(Object.assign({},o),h==null?void 0:h.label)},c),(u||u===0)&&d.createElement("span",{className:Ee(`${t}-item-content`,v==null?void 0:v.content),style:Object.assign(Object.assign({},s),h==null?void 0:h.content)},u)))};function nT(e,t,n){let{colon:r,prefixCls:i,bordered:a}=t,{component:o,type:s,showLabel:l,showContent:c,labelStyle:u,contentStyle:f,styles:p}=n;return e.map((h,m)=>{let{label:g,children:v,prefixCls:y=i,className:w,style:b,labelStyle:C,contentStyle:k,span:S=1,key:_,styles:E}=h;return typeof o=="string"?d.createElement(tT,{key:`${s}-${_||m}`,className:w,style:b,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),p==null?void 0:p.label),C),E==null?void 0:E.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},f),p==null?void 0:p.content),k),E==null?void 0:E.content)},span:S,colon:r,component:o,itemPrefixCls:y,bordered:a,label:l?g:null,content:c?v:null,type:s}):[d.createElement(tT,{key:`label-${_||m}`,className:w,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),p==null?void 0:p.label),b),C),E==null?void 0:E.label),span:1,colon:r,component:o[0],itemPrefixCls:y,bordered:a,label:g,type:"label"}),d.createElement(tT,{key:`content-${_||m}`,className:w,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),p==null?void 0:p.content),b),k),E==null?void 0:E.content),span:S*2-1,component:o[1],itemPrefixCls:y,bordered:a,content:v,type:"content"})]})}const IQe=e=>{const t=d.useContext(QB),{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e;return r?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${a}`,className:`${n}-row`},nT(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${a}`,className:`${n}-row`},nT(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:a,className:`${n}-row`},nT(i,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},jQe=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.padding)} ${Me(e.paddingLG)}`,borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.paddingSM)} ${Me(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.paddingXS)} ${Me(e.padding)}`}}}}}},NQe=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),jQe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},ao),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Me(o)} ${Me(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},AQe=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),DQe=Jn("Descriptions",e=>{const t=Hn(e,{});return NQe(t)},AQe);var FQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{prefixCls:c,title:u,extra:f,column:p,colon:h=!0,bordered:m,layout:g,children:v,className:y,rootClassName:w,style:b,size:C,labelStyle:k,contentStyle:S,styles:_,items:E,classNames:$}=e,M=FQe(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:P,direction:R,descriptions:O}=d.useContext(Xt),j=P("descriptions",c),I=M4(),A=d.useMemo(()=>{var Y;return typeof p=="number"?p:(Y=Nhe(I,Object.assign(Object.assign({},kQe),p)))!==null&&Y!==void 0?Y:3},[I,p]),N=MQe(I,E,v),F=Bi(C),K=OQe(A,N),[L,V,B]=DQe(j),U=d.useMemo(()=>{var Y,ee,ie,Z;return{labelStyle:k,contentStyle:S,styles:{content:Object.assign(Object.assign({},(Y=O==null?void 0:O.styles)===null||Y===void 0?void 0:Y.content),_==null?void 0:_.content),label:Object.assign(Object.assign({},(ee=O==null?void 0:O.styles)===null||ee===void 0?void 0:ee.label),_==null?void 0:_.label)},classNames:{label:Ee((ie=O==null?void 0:O.classNames)===null||ie===void 0?void 0:ie.label,$==null?void 0:$.label),content:Ee((Z=O==null?void 0:O.classNames)===null||Z===void 0?void 0:Z.content,$==null?void 0:$.content)}}},[k,S,_,$,O]);return L(d.createElement(QB.Provider,{value:U},d.createElement("div",Object.assign({className:Ee(j,O==null?void 0:O.className,(t=O==null?void 0:O.classNames)===null||t===void 0?void 0:t.root,$==null?void 0:$.root,{[`${j}-${F}`]:F&&F!=="default",[`${j}-bordered`]:!!m,[`${j}-rtl`]:R==="rtl"},y,w,V,B),style:Object.assign(Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),(n=O==null?void 0:O.styles)===null||n===void 0?void 0:n.root),_==null?void 0:_.root),b)},M),(u||f)&&d.createElement("div",{className:Ee(`${j}-header`,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.header,$==null?void 0:$.header),style:Object.assign(Object.assign({},(i=O==null?void 0:O.styles)===null||i===void 0?void 0:i.header),_==null?void 0:_.header)},u&&d.createElement("div",{className:Ee(`${j}-title`,(a=O==null?void 0:O.classNames)===null||a===void 0?void 0:a.title,$==null?void 0:$.title),style:Object.assign(Object.assign({},(o=O==null?void 0:O.styles)===null||o===void 0?void 0:o.title),_==null?void 0:_.title)},u),f&&d.createElement("div",{className:Ee(`${j}-extra`,(s=O==null?void 0:O.classNames)===null||s===void 0?void 0:s.extra,$==null?void 0:$.extra),style:Object.assign(Object.assign({},(l=O==null?void 0:O.styles)===null||l===void 0?void 0:l.extra),_==null?void 0:_.extra)},f)),d.createElement("div",{className:`${j}-view`},d.createElement("table",null,d.createElement("tbody",null,K.map((Y,ee)=>d.createElement(IQe,{key:ee,index:ee,colon:h,prefixCls:j,vertical:g==="vertical",bordered:m,row:Y}))))))))};ls.Item=RQe;var zX=d.createContext(null),m1e=d.createContext({}),LQe=["prefixCls","className","containerRef"],BQe=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,a=Ht(t,LQe),o=d.useContext(m1e),s=o.panel,l=ku(s,i);return d.createElement("div",tt({className:Ee("".concat(n,"-content"),r),role:"dialog",ref:l},Fi(t,{aria:!0}),{"aria-modal":"true"},a))};function HX(e){return typeof e=="string"&&String(Number(e))===e?(Br(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var UX={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function zQe(e,t){var n,r,i,a=e.prefixCls,o=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,m=e.rootClassName,g=e.rootStyle,v=e.zIndex,y=e.className,w=e.id,b=e.style,C=e.motion,k=e.width,S=e.height,_=e.children,E=e.mask,$=e.maskClosable,M=e.maskMotion,P=e.maskClassName,R=e.maskStyle,O=e.afterOpenChange,j=e.onClose,I=e.onMouseEnter,A=e.onMouseOver,N=e.onMouseLeave,F=e.onClick,K=e.onKeyDown,L=e.onKeyUp,V=e.styles,B=e.drawerRender,U=d.useRef(),Y=d.useRef(),ee=d.useRef();d.useImperativeHandle(t,function(){return U.current});var ie=function(we){var se=we.keyCode,ye=we.shiftKey;switch(se){case mt.TAB:{if(se===mt.TAB){if(!ye&&document.activeElement===ee.current){var Oe;(Oe=Y.current)===null||Oe===void 0||Oe.focus({preventScroll:!0})}else if(ye&&document.activeElement===Y.current){var z;(z=ee.current)===null||z===void 0||z.focus({preventScroll:!0})}}break}case mt.ESC:{j&&p&&(we.stopPropagation(),j(we));break}}};d.useEffect(function(){if(o&&f){var Se;(Se=U.current)===null||Se===void 0||Se.focus({preventScroll:!0})}},[o]);var Z=d.useState(!1),X=Te(Z,2),ae=X[0],oe=X[1],le=d.useContext(zX),ce;typeof c=="boolean"?ce=c?{}:{distance:0}:ce=c||{};var pe=(n=(r=(i=ce)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:le==null?void 0:le.pushDistance)!==null&&n!==void 0?n:180,me=d.useMemo(function(){return{pushDistance:pe,push:function(){oe(!0)},pull:function(){oe(!1)}}},[pe]);d.useEffect(function(){if(o){var Se;le==null||(Se=le.push)===null||Se===void 0||Se.call(le)}else{var we;le==null||(we=le.pull)===null||we===void 0||we.call(le)}},[o]),d.useEffect(function(){return function(){var Se;le==null||(Se=le.pull)===null||Se===void 0||Se.call(le)}},[]);var re=E&&d.createElement(Ca,tt({key:"mask"},M,{visible:o}),function(Se,we){var se=Se.className,ye=Se.style;return d.createElement("div",{className:Ee("".concat(a,"-mask"),se,h==null?void 0:h.mask,P),style:q(q(q({},ye),R),V==null?void 0:V.mask),onClick:$&&o?j:void 0,ref:we})}),fe=typeof C=="function"?C(s):C,ve={};if(ae&&pe)switch(s){case"top":ve.transform="translateY(".concat(pe,"px)");break;case"bottom":ve.transform="translateY(".concat(-pe,"px)");break;case"left":ve.transform="translateX(".concat(pe,"px)");break;default:ve.transform="translateX(".concat(-pe,"px)");break}s==="left"||s==="right"?ve.width=HX(k):ve.height=HX(S);var $e={onMouseEnter:I,onMouseOver:A,onMouseLeave:N,onClick:F,onKeyDown:K,onKeyUp:L},Ce=d.createElement(Ca,tt({key:"panel"},fe,{visible:o,forceRender:u,onVisibleChanged:function(we){O==null||O(we)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(Se,we){var se=Se.className,ye=Se.style,Oe=d.createElement(BQe,tt({id:w,containerRef:we,prefixCls:a,className:Ee(y,h==null?void 0:h.content),style:q(q({},b),V==null?void 0:V.content)},Fi(e,{aria:!0}),$e),_);return d.createElement("div",tt({className:Ee("".concat(a,"-content-wrapper"),h==null?void 0:h.wrapper,se),style:q(q(q({},ve),ye),V==null?void 0:V.wrapper)},Fi(e,{data:!0})),B?B(Oe):Oe)}),be=q({},g);return v&&(be.zIndex=v),d.createElement(zX.Provider,{value:me},d.createElement("div",{className:Ee(a,"".concat(a,"-").concat(s),m,ne(ne({},"".concat(a,"-open"),o),"".concat(a,"-inline"),l)),style:be,tabIndex:-1,ref:U,onKeyDown:ie},re,d.createElement("div",{tabIndex:0,ref:Y,style:UX,"aria-hidden":"true","data-sentinel":"start"}),Ce,d.createElement("div",{tabIndex:0,ref:ee,style:UX,"aria-hidden":"true","data-sentinel":"end"})))}var HQe=d.forwardRef(zQe),UQe=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,a=i===void 0?"rc-drawer":i,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,f=u===void 0?!0:u,p=t.width,h=p===void 0?378:p,m=t.mask,g=m===void 0?!0:m,v=t.maskClosable,y=v===void 0?!0:v,w=t.getContainer,b=t.forceRender,C=t.afterOpenChange,k=t.destroyOnClose,S=t.onMouseEnter,_=t.onMouseOver,E=t.onMouseLeave,$=t.onClick,M=t.onKeyDown,P=t.onKeyUp,R=t.panelRef,O=d.useState(!1),j=Te(O,2),I=j[0],A=j[1],N=d.useState(!1),F=Te(N,2),K=F[0],L=F[1];nr(function(){L(!0)},[]);var V=K?r:!1,B=d.useRef(),U=d.useRef();nr(function(){V&&(U.current=document.activeElement)},[V]);var Y=function(ae){var oe;if(A(ae),C==null||C(ae),!ae&&U.current&&!((oe=B.current)!==null&&oe!==void 0&&oe.contains(U.current))){var le;(le=U.current)===null||le===void 0||le.focus({preventScroll:!0})}},ee=d.useMemo(function(){return{panel:R}},[R]);if(!b&&!I&&!V&&k)return null;var ie={onMouseEnter:S,onMouseOver:_,onMouseLeave:E,onClick:$,onKeyDown:M,onKeyUp:P},Z=q(q({},t),{},{open:V,prefixCls:a,placement:s,autoFocus:c,keyboard:f,width:h,mask:g,maskClosable:y,inline:w===!1,afterOpenChange:Y,ref:B},ie);return d.createElement(m1e.Provider,{value:ee},d.createElement(_4,{open:V||b||I,autoDestroy:!1,getContainer:w,autoLock:g&&(V||I)},d.createElement(HQe,Z)))};const g1e=e=>{var t,n;const{prefixCls:r,title:i,footer:a,extra:o,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:f,children:p,classNames:h,styles:m}=e,{drawer:g}=d.useContext(Xt),v=d.useCallback(k=>d.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},k),[l]),[y,w]=dB(R0(e),R0(g),{closable:!0,closeIconRender:v}),b=d.useMemo(()=>{var k,S;return!i&&!y?null:d.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(k=g==null?void 0:g.styles)===null||k===void 0?void 0:k.header),c),m==null?void 0:m.header),className:Ee(`${r}-header`,{[`${r}-header-close-only`]:y&&!i&&!o},(S=g==null?void 0:g.classNames)===null||S===void 0?void 0:S.header,h==null?void 0:h.header)},d.createElement("div",{className:`${r}-header-title`},w,i&&d.createElement("div",{className:`${r}-title`},i)),o&&d.createElement("div",{className:`${r}-extra`},o))},[y,w,o,c,r,i]),C=d.useMemo(()=>{var k,S;if(!a)return null;const _=`${r}-footer`;return d.createElement("div",{className:Ee(_,(k=g==null?void 0:g.classNames)===null||k===void 0?void 0:k.footer,h==null?void 0:h.footer),style:Object.assign(Object.assign(Object.assign({},(S=g==null?void 0:g.styles)===null||S===void 0?void 0:S.footer),f),m==null?void 0:m.footer)},a)},[a,f,r]);return d.createElement(d.Fragment,null,b,d.createElement("div",{className:Ee(`${r}-body`,h==null?void 0:h.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?d.createElement(Kf,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):p),C)},WQe=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},v1e=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),y1e=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},v1e({opacity:e},{opacity:1})),VQe=(e,t)=>[y1e(.7,t),v1e({transform:WQe(e)},{transform:"none"})],qQe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:y1e(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:VQe(i,n)}),{})}}},KQe=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:f,lineHeightLG:p,lineWidth:h,lineType:m,colorSplit:g,marginXS:v,colorIcon:y,colorIconHover:w,colorBgTextHover:b,colorBgTextActive:C,colorText:k,fontWeightStrong:S,footerPaddingBlock:_,footerPaddingInline:E,calc:$}=e,M=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:k,"&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto"},[M]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${M}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${M}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${M}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${M}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Me(c)} ${Me(u)}`,fontSize:f,lineHeight:p,borderBottom:`${Me(h)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:$(f).add(l).equal(),height:$(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:y,fontWeight:S,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:w,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:C}},Vs(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${Me(_)} ${Me(E)}`,borderTop:`${Me(h)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},GQe=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),b1e=Jn("Drawer",e=>{const t=Hn(e,{});return[KQe(t),qQe(t)]},GQe);var w1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:n,height:r,size:i="default",mask:a=!0,push:o=YQe,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:f,style:p,className:h,visible:m,afterVisibleChange:g,maskStyle:v,drawerStyle:y,contentWrapperStyle:w}=e,b=w1e(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:C,getPrefixCls:k,direction:S,drawer:_}=d.useContext(Xt),E=k("drawer",u),[$,M,P]=b1e(E),R=f===void 0&&C?()=>C(document.body):f,O=Ee({"no-mask":!a,[`${E}-rtl`]:S==="rtl"},t,M,P),j=d.useMemo(()=>n??(i==="large"?736:378),[n,i]),I=d.useMemo(()=>r??(i==="large"?736:378),[r,i]),A={motionName:oo(E,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=ee=>({motionName:oo(E,`panel-motion-${ee}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),F=Kpe(),[K,L]=$c("Drawer",b.zIndex),{classNames:V={},styles:B={}}=b,{classNames:U={},styles:Y={}}=_||{};return $(d.createElement(bu,{form:!0,space:!0},d.createElement(y4.Provider,{value:L},d.createElement(UQe,Object.assign({prefixCls:E,onClose:c,maskMotion:A,motion:N},b,{classNames:{mask:Ee(V.mask,U.mask),content:Ee(V.content,U.content),wrapper:Ee(V.wrapper,U.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),v),Y.mask),content:Object.assign(Object.assign(Object.assign({},B.content),y),Y.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),w),Y.wrapper)},open:s??m,mask:a,push:o,width:j,height:I,style:Object.assign(Object.assign({},_==null?void 0:_.style),p),className:Ee(_==null?void 0:_.className,h),rootClassName:O,getContainer:R,afterOpenChange:l??g,panelRef:F,zIndex:K}),d.createElement(g1e,Object.assign({prefixCls:E},b,{onClose:c}))))))},XQe=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,a=w1e(e,["prefixCls","style","className","placement"]),{getPrefixCls:o}=d.useContext(Xt),s=o("drawer",t),[l,c,u]=b1e(s),f=Ee(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(d.createElement("div",{className:f,style:n},d.createElement(g1e,Object.assign({prefixCls:s},a))))};Sh._InternalPanelDoNotUseOrYouWillBeFired=XQe;function _6(e){return["small","middle","large"].includes(e)}function WX(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const x1e=te.createContext({latestIndex:0}),ZQe=x1e.Provider,QQe=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=d.useContext(x1e);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:a},r),n{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=d.useContext(Xt),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:p,direction:h="horizontal",prefixCls:m,split:g,style:v,wrap:y=!1,classNames:w,styles:b}=e,C=JQe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[k,S]=Array.isArray(l)?l:[l,l],_=_6(S),E=_6(k),$=WX(S),M=WX(k),P=Xi(p,{keepEmpty:!0}),R=c===void 0&&h==="horizontal"?"center":c,O=a("space",m),[j,I,A]=mpe(O),N=Ee(O,o==null?void 0:o.className,I,`${O}-${h}`,{[`${O}-rtl`]:s==="rtl",[`${O}-align-${R}`]:R,[`${O}-gap-row-${S}`]:_,[`${O}-gap-col-${k}`]:E},u,f,A),F=Ee(`${O}-item`,(r=w==null?void 0:w.item)!==null&&r!==void 0?r:(i=o==null?void 0:o.classNames)===null||i===void 0?void 0:i.item);let K=0;const L=P.map((U,Y)=>{var ee,ie;U!=null&&(K=Y);const Z=(U==null?void 0:U.key)||`${F}-${Y}`;return d.createElement(QQe,{className:F,key:Z,index:Y,split:g,style:(ee=b==null?void 0:b.item)!==null&&ee!==void 0?ee:(ie=o==null?void 0:o.styles)===null||ie===void 0?void 0:ie.item},U)}),V=d.useMemo(()=>({latestIndex:K}),[K]);if(P.length===0)return null;const B={};return y&&(B.flexWrap="wrap"),!E&&M&&(B.columnGap=k),!_&&$&&(B.rowGap=S),j(d.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),o==null?void 0:o.style),v)},C),d.createElement(ZQe,{value:V},L)))}),Xr=eJe;Xr.Compact=FDe;var tJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(Xt),{prefixCls:i,type:a="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:p,menu:h,arrow:m,autoFocus:g,overlay:v,trigger:y,align:w,open:b,onOpenChange:C,placement:k,getPopupContainer:S,href:_,icon:E=d.createElement(RB,null),title:$,buttonsRender:M=X=>X,mouseEnterDelay:P,mouseLeaveDelay:R,overlayClassName:O,overlayStyle:j,destroyPopupOnHide:I,dropdownRender:A}=e,N=tJe(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",i),K=`${F}-button`,L={menu:h,arrow:m,autoFocus:g,align:w,disabled:s,trigger:s?[]:y,onOpenChange:C,getPopupContainer:S||t,mouseEnterDelay:P,mouseLeaveDelay:R,overlayClassName:O,overlayStyle:j,destroyPopupOnHide:I,dropdownRender:A},{compactSize:V,compactItemClassnames:B}=$u(F,r),U=Ee(K,B,p);"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=b),"placement"in e?L.placement=k:L.placement=r==="rtl"?"bottomLeft":"bottomRight";const Y=d.createElement(Yt,{type:a,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:_,title:$},f),ee=d.createElement(Yt,{type:a,danger:o,icon:E}),[ie,Z]=M([Y,ee]);return d.createElement(Xr.Compact,Object.assign({className:U,size:V,block:!0},N),ie,d.createElement($8,Object.assign({},L),Z))};S1e.__ANT_BUTTON=!0;const k6=$8;k6.Button=S1e;const C1e=["wrap","nowrap","wrap-reverse"],_1e=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],k1e=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],nJe=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&C1e.includes(n)}},rJe=(e,t)=>{const n={};return k1e.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},iJe=(e,t)=>{const n={};return _1e.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function aJe(e,t){return Ee(Object.assign(Object.assign(Object.assign({},nJe(e,t)),rJe(e,t)),iJe(e,t)))}const oJe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},sJe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},lJe=e=>{const{componentCls:t}=e,n={};return C1e.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},cJe=e=>{const{componentCls:t}=e,n={};return k1e.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},uJe=e=>{const{componentCls:t}=e,n={};return _1e.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},dJe=()=>({}),fJe=Jn("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Hn(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[oJe(i),sJe(i),lJe(i),cJe(i),uJe(i)]},dJe,{resetStyle:!1});var pJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=pJe(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:h,getPrefixCls:m}=te.useContext(Xt),g=m("flex",n),[v,y,w]=fJe(g),b=c??(p==null?void 0:p.vertical),C=Ee(i,r,p==null?void 0:p.className,g,y,w,aJe(g,e),{[`${g}-rtl`]:h==="rtl",[`${g}-gap-${s}`]:_6(s),[`${g}-vertical`]:b}),k=Object.assign(Object.assign({},p==null?void 0:p.style),a);return o&&(k.flex=o),s&&!_6(s)&&(k.gap=s),v(te.createElement(u,Object.assign({ref:t,className:C,style:k},$r(f,["justify","wrap","align"])),l))});function E6(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const hJe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},i1e=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",h=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),g=t?{borderWidth:`${Me(m)} 0`,transform:`translateY(${Me(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${Me(m)}`,transform:`translateX(${Me(e.calc(m).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[f]:h},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:o).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},$Ze=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},i1e(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},MZe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},i1e(e,!1)),{height:"100%"})}},TZe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,a=e.lineWidth+1*1.5,o=e.colorPrimary,s=new ur(o).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:o,handleActiveOutlineColor:s,handleColorDisabled:new ur(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},PZe=Jn("Slider",e=>{const t=Hn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[EZe(t),$Ze(t),MZe(t)]},TZe);function eT(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{rr.cancel(n.current)},i=a=>{r(),a?t(a):n.current=rr(()=>{t(a)})};return d.useEffect(()=>r,[]),[e,i]}var OZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const a1e=te.forwardRef((e,t)=>{var n,r,i,a,o,s,l,c,u,f;const{prefixCls:p,range:h,className:m,rootClassName:g,style:v,disabled:y,tooltipPrefixCls:w,tipFormatter:b,tooltipVisible:C,getTooltipPopupContainer:k,tooltipPlacement:S,tooltip:_={},onChangeComplete:E,classNames:$,styles:M}=e,P=OZe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:R}=e,{direction:O,slider:j,getPrefixCls:I,getPopupContainer:A}=te.useContext(Xt),N=te.useContext(ma),F=y??N,{handleRender:K,direction:L}=te.useContext(r1e),B=(L||O)==="rtl",[U,Y]=eT(),[ee,ie]=eT(),Z=Object.assign({},_),{open:X,placement:ae,getPopupContainer:oe,prefixCls:le,formatter:ce}=Z,pe=X??C,me=(U||ee)&&pe!==!1,re=RZe(ce,b),[fe,ve]=eT(),$e=he=>{E==null||E(he),ve(!1)},Ce=(he,Ue)=>he||(Ue?B?"left":"right":"top"),be=I("slider",p),[Se,we,se]=PZe(be),ye=Ee(m,j==null?void 0:j.className,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.root,$==null?void 0:$.root,g,{[`${be}-rtl`]:B,[`${be}-lock`]:fe},we,se);B&&!P.vertical&&(P.reverse=!P.reverse),te.useEffect(()=>{const he=()=>{rr(()=>{ie(!1)},1)};return document.addEventListener("mouseup",he),()=>{document.removeEventListener("mouseup",he)}},[]);const Oe=h&&!pe,z=K||((he,Ue)=>{const{index:We}=Ue,ge=he.props;function ze(Ke,qe,Et){var ut,gt,Qe,nt;Et&&((gt=(ut=P)[Ke])===null||gt===void 0||gt.call(ut,qe)),(nt=(Qe=ge)[Ke])===null||nt===void 0||nt.call(Qe,qe)}const Ve=Object.assign(Object.assign({},ge),{onMouseEnter:Ke=>{Y(!0),ze("onMouseEnter",Ke)},onMouseLeave:Ke=>{Y(!1),ze("onMouseLeave",Ke)},onMouseDown:Ke=>{ie(!0),ve(!0),ze("onMouseDown",Ke)},onFocus:Ke=>{var qe;ie(!0),(qe=P.onFocus)===null||qe===void 0||qe.call(P,Ke),ze("onFocus",Ke,!0)},onBlur:Ke=>{var qe;ie(!1),(qe=P.onBlur)===null||qe===void 0||qe.call(P,Ke),ze("onBlur",Ke,!0)}}),Be=te.cloneElement(he,Ve),Xe=(!!pe||me)&&re!==null;return Oe?Be:te.createElement(IX,Object.assign({},Z,{prefixCls:I("tooltip",le??w),title:re?re(Ue.value):"",open:Xe,placement:Ce(ae??S,R),key:We,classNames:{root:`${be}-tooltip`},getPopupContainer:oe||k||A}),Be)}),H=Oe?(he,Ue)=>{const We=te.cloneElement(he,{style:Object.assign(Object.assign({},he.props.style),{visibility:"hidden"})});return te.createElement(IX,Object.assign({},Z,{prefixCls:I("tooltip",le??w),title:re?re(Ue.value):"",open:re!==null&&me,placement:Ce(ae??S,R),key:"tooltip",classNames:{root:`${be}-tooltip`},getPopupContainer:oe||k||A,draggingDelete:Ue.draggingDelete}),We)}:void 0,G=Object.assign(Object.assign(Object.assign(Object.assign({},(r=j==null?void 0:j.styles)===null||r===void 0?void 0:r.root),j==null?void 0:j.style),M==null?void 0:M.root),v),de=Object.assign(Object.assign({},(i=j==null?void 0:j.styles)===null||i===void 0?void 0:i.tracks),M==null?void 0:M.tracks),xe=Ee((a=j==null?void 0:j.classNames)===null||a===void 0?void 0:a.tracks,$==null?void 0:$.tracks);return Se(te.createElement(kZe,Object.assign({},P,{classNames:Object.assign({handle:Ee((o=j==null?void 0:j.classNames)===null||o===void 0?void 0:o.handle,$==null?void 0:$.handle),rail:Ee((s=j==null?void 0:j.classNames)===null||s===void 0?void 0:s.rail,$==null?void 0:$.rail),track:Ee((l=j==null?void 0:j.classNames)===null||l===void 0?void 0:l.track,$==null?void 0:$.track)},xe?{tracks:xe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=j==null?void 0:j.styles)===null||c===void 0?void 0:c.handle),M==null?void 0:M.handle),rail:Object.assign(Object.assign({},(u=j==null?void 0:j.styles)===null||u===void 0?void 0:u.rail),M==null?void 0:M.rail),track:Object.assign(Object.assign({},(f=j==null?void 0:j.styles)===null||f===void 0?void 0:f.track),M==null?void 0:M.track)},Object.keys(de).length?{tracks:de}:{}),step:P.step,range:h,className:ye,style:G,disabled:F,ref:t,prefixCls:be,handleRender:z,activeHandleRender:H,onChangeComplete:$e})))});var IZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,colors:n,type:r,color:i,range:a=!1,className:o,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:f}=e,p=IZe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},p),{track:!1}),m=d.useMemo(()=>`linear-gradient(90deg, ${n.map(S=>`${S.color} ${S.percent}%`).join(", ")})`,[n]),g=d.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),v=Vn(c),y=Vn(u),w=d.useMemo(()=>({onDragStart:v,onDragChange:y}),[]),b=Vn((k,S)=>{const{onFocus:_,style:E,className:$,onKeyDown:M}=k.props,P=Object.assign({},E);return r==="gradient"&&(P.background=kpe(n,S.value)),d.cloneElement(k,{onFocus:R=>{l==null||l(S.index),_==null||_(R)},style:P,className:Ee($,{[`${t}-slider-handle-active`]:s===S.index}),onKeyDown:R=>{(R.key==="Delete"||R.key==="Backspace")&&f&&f(S.index),M==null||M(R)}})}),C=d.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return d.createElement(r1e.Provider,{value:C},d.createElement(n1e.Provider,{value:w},d.createElement(a1e,Object.assign({},h,{className:Ee(o,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:m},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},jZe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=o=>n(o[0]),a=o=>r(o[0]);return d.createElement(o1e,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:a}))};function jX(e){return lt(e).sort((t,n)=>t.percent-n.percent)}const NZe=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:o,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=d.useMemo(()=>l.map(y=>({percent:y.percent,color:y.color.toRgbString()})),[l]),f=d.useMemo(()=>u.map(y=>y.percent),[u]),p=d.useRef(u),h=y=>{let{rawValues:w,draggingIndex:b,draggingValue:C}=y;if(w.length>u.length){const k=kpe(u,C),S=lt(u);S.splice(b,0,{percent:C,color:k}),p.current=S}else p.current=u;s(!0),r(new Cl(jX(p.current)),!0)},m=y=>{let{deleteIndex:w,draggingIndex:b,draggingValue:C}=y,k=lt(p.current);w!==-1?k.splice(w,1):(k[b]=Object.assign(Object.assign({},k[b]),{percent:C}),k=jX(k)),r(new Cl(k),!0)},g=y=>{const w=lt(u);w.splice(y,1);const b=new Cl(w);r(b),i(b)},v=y=>{i(new Cl(u)),o>=y.length&&a(y.length-1),s(!1)};return c?d.createElement(o1e,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:f,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:o,onActive:a,onDragStart:h,onDragChange:m,onKeyDelete:g}):null},AZe=d.memo(NZe);var DZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const e=d.useContext(Vge),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:a,value:o,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:f,gradientDragging:p}=e,h=DZe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=te.useMemo(()=>o.cleared?[{percent:0,color:new Cl("")},{percent:100,color:new Cl("")}]:o.getColors(),[o]),g=!o.isGradient(),[v,y]=te.useState(o);nr(()=>{var j;g||y((j=m[f])===null||j===void 0?void 0:j.color)},[p,f]);const w=te.useMemo(()=>{var j;return g?o:p?v:(j=m[f])===null||j===void 0?void 0:j.color},[o,f,g,v,p]),[b,C]=te.useState(w),[k,S]=te.useState(0),_=b!=null&&b.equals(w)?w:b;nr(()=>{C(w)},[k,w==null?void 0:w.toHexString()]);const E=(j,I)=>{let A=Yo(j);if(o.cleared){const F=A.toRgb();if(!F.r&&!F.g&&!F.b&&I){const{type:K,value:L=0}=I;A=new Cl({h:K==="hue"?L:0,s:1,b:1,a:K==="alpha"?L/100:1})}else A=r_(A)}if(t==="single")return A;const N=lt(m);return N[f]=Object.assign(Object.assign({},N[f]),{color:A}),new Cl(N)},$=(j,I,A)=>{const N=E(j,A);C(N.isGradient()?N.getColors()[f].color:N),l(N,I)},M=(j,I)=>{u(E(j,I)),S(A=>A+1)},P=j=>{l(E(j))};let R=null;const O=r.length>1;return(a||O)&&(R=te.createElement("div",{className:`${i}-operation`},O&&te.createElement(Wge,{size:"small",options:r,value:t,onChange:n}),te.createElement(Kge,Object.assign({prefixCls:i,value:o,onChange:j=>{l(j),c==null||c()}},h)))),te.createElement(te.Fragment,null,R,te.createElement(AZe,Object.assign({},e,{colors:m})),te.createElement(nFe,{prefixCls:i,value:_==null?void 0:_.toHsb(),disabledAlpha:s,onChange:(j,I)=>{$(j,!0,I)},onChangeComplete:(j,I)=>{M(j,I)},components:FZe}),te.createElement(fZe,Object.assign({value:w,onChange:P,prefixCls:i,disabledAlpha:s},h)))},AX=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=d.useContext(qge);return Array.isArray(n)?te.createElement(YFe,{value:t,presets:n,prefixCls:e,onChange:r}):null},LZe=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:w,disabledFormat:b}=e,C=`${t}-inner`,k=te.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:m,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:w,disabledFormat:b}),[t,i,a,o,s,l,c,u,f,p,h,m,g,v,y,w,b]),S=te.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),_=te.createElement("div",{className:`${C}-content`},te.createElement(NX,null),Array.isArray(n)&&te.createElement(qYe,null),te.createElement(AX,null));return te.createElement(Vge.Provider,{value:k},te.createElement(qge.Provider,{value:S},te.createElement("div",{className:C},typeof r=="function"?r(_,{components:{Picker:NX,Presets:AX}}):_)))};var BZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{color:n,prefixCls:r,open:i,disabled:a,format:o,className:s,showText:l,activeIndex:c}=e,u=BZe(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,p=`${f}-text`,h=`${p}-cell`,[m]=Ga("ColorPicker"),g=te.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((b,C)=>{const k=c!==-1&&c!==C;return te.createElement("span",{key:C,className:Ee(h,k&&`${h}-inactive`)},b.color.toRgbString()," ",b.percent,"%")});const y=n.toHexString().toUpperCase(),w=nB(n);switch(o){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return w<100?`${y.slice(0,7)},${w}%`:y}},[n,o,l,c]),v=d.useMemo(()=>n.cleared?te.createElement(Kge,{prefixCls:r}):te.createElement(QL,{prefixCls:r,color:n.toCssString()}),[n,r]);return te.createElement("div",Object.assign({ref:t,className:Ee(f,s,{[`${f}-active`]:i,[`${f}-disabled`]:a})},Fi(u)),v,l&&te.createElement("div",{className:p},g))});function HZe(e,t,n){const[r]=Ga("ColorPicker"),[i,a]=In(e,{value:t}),[o,s]=d.useState("single"),[l,c]=d.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(b=>b);g.length||g.push("single");const v=new Set(g),y=[],w=(b,C)=>{v.has(b)&&y.push({label:C,value:b})};return w("single",r.singleColor),w("gradient",r.gradientColor),[y,v]},[n]),[u,f]=d.useState(null),p=Vn(g=>{f(g),a(g)}),h=d.useMemo(()=>{const g=Yo(i||"");return g.equals(u)?u:g},[i,u]),m=d.useMemo(()=>{var g;return c.has(o)?o:(g=l[0])===null||g===void 0?void 0:g.value},[c,o,l]);return d.useEffect(()=>{s(h.isGradient()?"gradient":"single")},[h]),[h,p,m,s,l]}const s1e=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),DX=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:a,colorFillSecondary:o}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},s1e("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Me(a)} ${o}`,borderRadius:"inherit"}})}},UZe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:a,marginXXS:o,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:f,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:h,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Me(a)}`,marginInlineStart:o},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(o).equal(),fontSize:r,lineHeight:Me(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:o,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:o,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Me(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Me(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:p}}}}}},WZe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:a,colorBgElevated:o,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${Me(l)} solid ${o}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},VZe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:a,fontSizeSM:o,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:f,colorWhite:p,marginXXS:h,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Me(m)} 0`},"&-label":{fontSize:o,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(c).mul(4)).equal(),height:e.calc(a).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${Me(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${Me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:o,color:r}}}},qZe=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:a,colorPickerHandlerSizeSM:o,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(o).sub(e.calc(a).mul(2).equal()).equal(),f=e.calc(o).add(e.calc(a).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[s1e(Me(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:o,height:o,border:`${Me(a)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}},Xj=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Me(e.controlOutlineWidth)} ${n}`,outline:0}),KZe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},FX=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:a,colorSplit:o,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${Me(a)} solid ${o}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},GZe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:a,colorErrorOutline:o,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Xj(e,n,o))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Xj(e,r,s))}}},YZe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:a,borderRadius:o,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:o},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:Me(a)}}}},XZe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:a,colorBgElevated:o,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:f,marginSM:p,controlHeight:h,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:y,lineWidth:w,colorBorder:b,paddingXXS:C,fontSize:k,colorPrimaryHover:S,controlOutline:_}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${Me(p)} 0 ${Me(f)}`}},[`${n}-panel`]:Object.assign({},WZe(e))},qZe(e)),DX(e,y)),UZe(e)),VZe(e)),FX(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,minHeight:h,borderRadius:u,border:`${Me(w)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:o,padding:e.calc(C).sub(w).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(C).sub(w)).equal(),fontSize:k,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},Xj(e,i,_)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},FX(e,m)),DX(e,m)),GZe(e)),YZe(e))},KZe(e))},Wg(e,{focusElCls:`${n}-trigger-active`})]},ZZe=Jn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=Hn(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[XZe(i)]});var QZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:a,allowClear:o=!1,presets:s,children:l,trigger:c="click",open:u,disabled:f,placement:p="bottomLeft",arrow:h=!0,panelRender:m,showText:g,style:v,className:y,size:w,rootClassName:b,prefixCls:C,styles:k,disabledAlpha:S=!1,onFormatChange:_,onChange:E,onClear:$,onOpenChange:M,onChangeComplete:P,getPopupContainer:R,autoAdjustOverflow:O=!0,destroyTooltipOnHide:j,disabledFormat:I}=e,A=QZe(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:N,direction:F,colorPicker:K}=d.useContext(Xt),L=d.useContext(ma),V=f??L,[B,U]=In(!1,{value:u,postState:Ve=>!V&&Ve,onChange:M}),[Y,ee]=In(i,{value:i,defaultValue:a,onChange:_}),ie=N("color-picker",C),[Z,X,ae,oe,le]=HZe(r,n,t),ce=d.useMemo(()=>nB(Z)<100,[Z]),[pe,me]=te.useState(null),re=Ve=>{if(P){let Be=Yo(Ve);S&&ce&&(Be=r_(Ve)),P(Be)}},fe=(Ve,Be)=>{let Xe=Yo(Ve);S&&ce&&(Xe=r_(Xe)),X(Xe),me(null),E&&E(Xe,Xe.toCssString()),Be||re(Xe)},[ve,$e]=te.useState(0),[Ce,be]=te.useState(!1),Se=Ve=>{if(oe(Ve),Ve==="single"&&Z.isGradient())$e(0),fe(new Cl(Z.getColors()[0].color)),me(Z);else if(Ve==="gradient"&&!Z.isGradient()){const Be=ce?r_(Z):Z;fe(new Cl(pe||[{percent:0,color:Be},{percent:100,color:Be}]))}},{status:we}=te.useContext(oa),{compactSize:se,compactItemClassnames:ye}=$u(ie,F),Oe=Bi(Ve=>{var Be;return(Be=w??se)!==null&&Be!==void 0?Be:Ve}),z=qr(ie),[H,G,de]=ZZe(ie,z),xe={[`${ie}-rtl`]:F},he=Ee(b,de,z,xe),Ue=Ee(Nl(ie,we),{[`${ie}-sm`]:Oe==="small",[`${ie}-lg`]:Oe==="large"},ye,K==null?void 0:K.className,he,y,G),We=Ee(ie,he),ge={open:B,trigger:c,placement:p,arrow:h,rootClassName:b,getPopupContainer:R,autoAdjustOverflow:O,destroyTooltipOnHide:j},ze=Object.assign(Object.assign({},K==null?void 0:K.style),v);return H(te.createElement(wc,Object.assign({style:k==null?void 0:k.popup,styles:{body:k==null?void 0:k.popupOverlayInner},onOpenChange:Ve=>{(!Ve||!V)&&U(Ve)},content:te.createElement(bu,{form:!0},te.createElement(LZe,{mode:ae,onModeChange:Se,modeOptions:le,prefixCls:ie,value:Z,allowClear:o,disabled:V,disabledAlpha:S,presets:s,panelRender:m,format:Y,onFormatChange:ee,onChange:fe,onChangeComplete:re,onClear:$,activeIndex:ve,onActive:$e,gradientDragging:Ce,onGradientDragging:be,disabledFormat:I})),classNames:{root:We}},ge),l||te.createElement(zZe,Object.assign({activeIndex:B?ve:-1,open:B,className:Ue,style:ze,prefixCls:ie,disabled:V,showText:g,format:Y},A,{color:Z}))))},JZe=Gf(ZB,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);ZB._InternalPanelDoNotUseOrYouWillBeFired=JZe;var eQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},tQe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:eQe}))},l1e=d.forwardRef(tQe),nQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},rQe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:nQe}))},c1e=d.forwardRef(rQe),iQe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},aQe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:iQe}))},oQe=d.forwardRef(aQe);function sQe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function lQe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function u1e(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=w8(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[cQe,uQe]=["week","WeekPicker"],[dQe,fQe]=["month","MonthPicker"],[pQe,hQe]=["year","YearPicker"],[mQe,gQe]=["quarter","QuarterPicker"],[d1e,LX]=["time","TimePicker"],vQe=e=>d.createElement(Yt,Object.assign({size:"small",type:"primary"},e));function f1e(e){return d.useMemo(()=>Object.assign({button:vQe},e),[e])}var yQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((n,r)=>{var i;const{prefixCls:a,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:f,disabled:p,bordered:h=!0,placeholder:m,popupClassName:g,dropdownClassName:v,status:y,rootClassName:w,variant:b,picker:C}=n,k=yQe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=d.useRef(null),{getPrefixCls:_,direction:E,getPopupContainer:$,rangePicker:M}=d.useContext(Xt),P=_("picker",a),{compactSize:R,compactItemClassnames:O}=$u(P,E),j=_(),[I,A]=Od("rangePicker",b,h),N=qr(P),[F,K,L]=pge(P,N),[V]=u1e(n,P),B=f1e(s),U=Bi(me=>{var re;return(re=f??R)!==null&&re!==void 0?re:me}),Y=d.useContext(ma),ee=p??Y,ie=d.useContext(oa),{hasFeedback:Z,status:X,feedbackIcon:ae}=ie,oe=d.createElement(d.Fragment,null,C===d1e?d.createElement(c1e,null):d.createElement(l1e,null),Z&&ae);d.useImperativeHandle(r,()=>S.current);const[le]=Ga("Calendar",Hk),ce=Object.assign(Object.assign({},le),n.locale),[pe]=$c("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return F(d.createElement(bu,{space:!0},d.createElement(mKe,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${P}-separator`},d.createElement(oQe,null)),disabled:ee,ref:S,placement:u,placeholder:lQe(ce,C,m),suffixIcon:oe,prevIcon:d.createElement("span",{className:`${P}-prev-icon`}),nextIcon:d.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:C},k,{className:Ee({[`${P}-${U}`]:U,[`${P}-${I}`]:A},Nl(P,Mu(X,y),Z),K,O,l,M==null?void 0:M.className,L,N,w),style:Object.assign(Object.assign({},M==null?void 0:M.style),c),locale:ce.lang,prefixCls:P,getPopupContainer:o||$,generateConfig:e,components:B,direction:E,classNames:{popup:Ee(K,g||v,L,N,w)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:pe})},allowClear:V}))))});var wQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const t=(l,c)=>{const u=c===LX?"timePicker":"datePicker";return d.forwardRef((p,h)=>{var m;const{prefixCls:g,getPopupContainer:v,components:y,style:w,className:b,rootClassName:C,size:k,bordered:S,placement:_,placeholder:E,popupClassName:$,dropdownClassName:M,disabled:P,status:R,variant:O,onCalendarChange:j}=p,I=wQe(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:A,direction:N,getPopupContainer:F,[u]:K}=d.useContext(Xt),L=A("picker",g),{compactSize:V,compactItemClassnames:B}=$u(L,N),U=d.useRef(null),[Y,ee]=Od("datePicker",O,S),ie=qr(L),[Z,X,ae]=pge(L,ie);d.useImperativeHandle(h,()=>U.current);const oe={showToday:!0},le=l||p.picker,ce=A(),{onSelect:pe,multiple:me}=I,re=pe&&l==="time"&&!me,fe=(he,Ue,We)=>{j==null||j(he,Ue,We),re&&pe(he)},[ve,$e]=u1e(p,L),Ce=f1e(y),be=Bi(he=>{var Ue;return(Ue=k??V)!==null&&Ue!==void 0?Ue:he}),Se=d.useContext(ma),we=P??Se,se=d.useContext(oa),{hasFeedback:ye,status:Oe,feedbackIcon:z}=se,H=d.createElement(d.Fragment,null,le==="time"?d.createElement(c1e,null):d.createElement(l1e,null),ye&&z),[G]=Ga("DatePicker",Hk),de=Object.assign(Object.assign({},G),p.locale),[xe]=$c("DatePicker",(m=p.popupStyle)===null||m===void 0?void 0:m.zIndex);return Z(d.createElement(bu,{space:!0},d.createElement(xKe,Object.assign({ref:U,placeholder:sQe(de,le,E),suffixIcon:H,placement:_,prevIcon:d.createElement("span",{className:`${L}-prev-icon`}),nextIcon:d.createElement("span",{className:`${L}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${L}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${L}-super-next-icon`}),transitionName:`${ce}-slide-up`,picker:l,onCalendarChange:fe},oe,I,{locale:de.lang,className:Ee({[`${L}-${be}`]:be,[`${L}-${Y}`]:ee},Nl(L,Mu(Oe,R),ye),X,B,K==null?void 0:K.className,b,ae,ie,C),style:Object.assign(Object.assign({},K==null?void 0:K.style),w),prefixCls:L,getPopupContainer:v||F,generateConfig:e,components:Ce,direction:N,disabled:we,classNames:{popup:Ee(X,ae,ie,C,$||M)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:xe})},allowClear:ve,removeIcon:$e}))))})},n=t(),r=t(cQe,uQe),i=t(dQe,fQe),a=t(pQe,hQe),o=t(mQe,gQe),s=t(d1e,LX);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:o}},p1e=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=xQe(e),s=bQe(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=o,l},xc=p1e(Cqe),SQe=Gf(xc,"popupAlign",void 0,"picker");xc._InternalPanelDoNotUseOrYouWillBeFired=SQe;const CQe=Gf(xc.RangePicker,"popupAlign",void 0,"picker");xc._InternalRangePanelDoNotUseOrYouWillBeFired=CQe;xc.generatePicker=p1e;const _Qe={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},QB=te.createContext({});var kQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iXi(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function $Qe(e,t,n){const r=d.useMemo(()=>t||EQe(n),[t,n]);return d.useMemo(()=>r.map(a=>{var{span:o}=a,s=kQe(a,["span"]);return o==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof o=="number"?o:jhe(e,o)})}),[r,e])}var MQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);io).forEach(o=>{const{filled:s}=o,l=MQe(o,["filled"]);if(s){r.push(l),n.push(r),r=[],a=0;return}const c=t-a;a+=o.span||1,a>=t?(a>t?(i=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],a=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(o=>{const s=o.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=d.useMemo(()=>TQe(t,e),[t,e]);return n},OQe=e=>{let{children:t}=e;return t};function BX(e){return e!=null}const tT=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:a,labelStyle:o,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:p,styles:h}=e,m=n,g=d.useContext(QB),{classNames:v}=g;return l?d.createElement(m,{className:Ee({[`${t}-item-label`]:p==="label",[`${t}-item-content`]:p==="content",[`${v==null?void 0:v.label}`]:p==="label",[`${v==null?void 0:v.content}`]:p==="content"},i),style:a,colSpan:r},BX(c)&&d.createElement("span",{style:Object.assign(Object.assign({},o),h==null?void 0:h.label)},c),BX(u)&&d.createElement("span",{style:Object.assign(Object.assign({},o),h==null?void 0:h.content)},u)):d.createElement(m,{className:Ee(`${t}-item`,i),style:a,colSpan:r},d.createElement("div",{className:`${t}-item-container`},(c||c===0)&&d.createElement("span",{className:Ee(`${t}-item-label`,v==null?void 0:v.label,{[`${t}-item-no-colon`]:!f}),style:Object.assign(Object.assign({},o),h==null?void 0:h.label)},c),(u||u===0)&&d.createElement("span",{className:Ee(`${t}-item-content`,v==null?void 0:v.content),style:Object.assign(Object.assign({},s),h==null?void 0:h.content)},u)))};function nT(e,t,n){let{colon:r,prefixCls:i,bordered:a}=t,{component:o,type:s,showLabel:l,showContent:c,labelStyle:u,contentStyle:f,styles:p}=n;return e.map((h,m)=>{let{label:g,children:v,prefixCls:y=i,className:w,style:b,labelStyle:C,contentStyle:k,span:S=1,key:_,styles:E}=h;return typeof o=="string"?d.createElement(tT,{key:`${s}-${_||m}`,className:w,style:b,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),p==null?void 0:p.label),C),E==null?void 0:E.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},f),p==null?void 0:p.content),k),E==null?void 0:E.content)},span:S,colon:r,component:o,itemPrefixCls:y,bordered:a,label:l?g:null,content:c?v:null,type:s}):[d.createElement(tT,{key:`label-${_||m}`,className:w,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),p==null?void 0:p.label),b),C),E==null?void 0:E.label),span:1,colon:r,component:o[0],itemPrefixCls:y,bordered:a,label:g,type:"label"}),d.createElement(tT,{key:`content-${_||m}`,className:w,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),p==null?void 0:p.content),b),k),E==null?void 0:E.content),span:S*2-1,component:o[1],itemPrefixCls:y,bordered:a,content:v,type:"content"})]})}const RQe=e=>{const t=d.useContext(QB),{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e;return r?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${a}`,className:`${n}-row`},nT(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${a}`,className:`${n}-row`},nT(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:a,className:`${n}-row`},nT(i,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},IQe=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.padding)} ${Me(e.paddingLG)}`,borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.paddingSM)} ${Me(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Me(e.paddingXS)} ${Me(e.padding)}`}}}}}},jQe=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),IQe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},ao),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Me(o)} ${Me(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},NQe=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),AQe=Jn("Descriptions",e=>{const t=Hn(e,{});return jQe(t)},NQe);var DQe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{prefixCls:c,title:u,extra:f,column:p,colon:h=!0,bordered:m,layout:g,children:v,className:y,rootClassName:w,style:b,size:C,labelStyle:k,contentStyle:S,styles:_,items:E,classNames:$}=e,M=DQe(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:P,direction:R,descriptions:O}=d.useContext(Xt),j=P("descriptions",c),I=$4(),A=d.useMemo(()=>{var Y;return typeof p=="number"?p:(Y=jhe(I,Object.assign(Object.assign({},_Qe),p)))!==null&&Y!==void 0?Y:3},[I,p]),N=$Qe(I,E,v),F=Bi(C),K=PQe(A,N),[L,V,B]=AQe(j),U=d.useMemo(()=>{var Y,ee,ie,Z;return{labelStyle:k,contentStyle:S,styles:{content:Object.assign(Object.assign({},(Y=O==null?void 0:O.styles)===null||Y===void 0?void 0:Y.content),_==null?void 0:_.content),label:Object.assign(Object.assign({},(ee=O==null?void 0:O.styles)===null||ee===void 0?void 0:ee.label),_==null?void 0:_.label)},classNames:{label:Ee((ie=O==null?void 0:O.classNames)===null||ie===void 0?void 0:ie.label,$==null?void 0:$.label),content:Ee((Z=O==null?void 0:O.classNames)===null||Z===void 0?void 0:Z.content,$==null?void 0:$.content)}}},[k,S,_,$,O]);return L(d.createElement(QB.Provider,{value:U},d.createElement("div",Object.assign({className:Ee(j,O==null?void 0:O.className,(t=O==null?void 0:O.classNames)===null||t===void 0?void 0:t.root,$==null?void 0:$.root,{[`${j}-${F}`]:F&&F!=="default",[`${j}-bordered`]:!!m,[`${j}-rtl`]:R==="rtl"},y,w,V,B),style:Object.assign(Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),(n=O==null?void 0:O.styles)===null||n===void 0?void 0:n.root),_==null?void 0:_.root),b)},M),(u||f)&&d.createElement("div",{className:Ee(`${j}-header`,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.header,$==null?void 0:$.header),style:Object.assign(Object.assign({},(i=O==null?void 0:O.styles)===null||i===void 0?void 0:i.header),_==null?void 0:_.header)},u&&d.createElement("div",{className:Ee(`${j}-title`,(a=O==null?void 0:O.classNames)===null||a===void 0?void 0:a.title,$==null?void 0:$.title),style:Object.assign(Object.assign({},(o=O==null?void 0:O.styles)===null||o===void 0?void 0:o.title),_==null?void 0:_.title)},u),f&&d.createElement("div",{className:Ee(`${j}-extra`,(s=O==null?void 0:O.classNames)===null||s===void 0?void 0:s.extra,$==null?void 0:$.extra),style:Object.assign(Object.assign({},(l=O==null?void 0:O.styles)===null||l===void 0?void 0:l.extra),_==null?void 0:_.extra)},f)),d.createElement("div",{className:`${j}-view`},d.createElement("table",null,d.createElement("tbody",null,K.map((Y,ee)=>d.createElement(RQe,{key:ee,index:ee,colon:h,prefixCls:j,vertical:g==="vertical",bordered:m,row:Y}))))))))};ls.Item=OQe;var zX=d.createContext(null),h1e=d.createContext({}),FQe=["prefixCls","className","containerRef"],LQe=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,a=Ht(t,FQe),o=d.useContext(h1e),s=o.panel,l=ku(s,i);return d.createElement("div",tt({className:Ee("".concat(n,"-content"),r),role:"dialog",ref:l},Fi(t,{aria:!0}),{"aria-modal":"true"},a))};function HX(e){return typeof e=="string"&&String(Number(e))===e?(Br(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var UX={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function BQe(e,t){var n,r,i,a=e.prefixCls,o=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,m=e.rootClassName,g=e.rootStyle,v=e.zIndex,y=e.className,w=e.id,b=e.style,C=e.motion,k=e.width,S=e.height,_=e.children,E=e.mask,$=e.maskClosable,M=e.maskMotion,P=e.maskClassName,R=e.maskStyle,O=e.afterOpenChange,j=e.onClose,I=e.onMouseEnter,A=e.onMouseOver,N=e.onMouseLeave,F=e.onClick,K=e.onKeyDown,L=e.onKeyUp,V=e.styles,B=e.drawerRender,U=d.useRef(),Y=d.useRef(),ee=d.useRef();d.useImperativeHandle(t,function(){return U.current});var ie=function(we){var se=we.keyCode,ye=we.shiftKey;switch(se){case mt.TAB:{if(se===mt.TAB){if(!ye&&document.activeElement===ee.current){var Oe;(Oe=Y.current)===null||Oe===void 0||Oe.focus({preventScroll:!0})}else if(ye&&document.activeElement===Y.current){var z;(z=ee.current)===null||z===void 0||z.focus({preventScroll:!0})}}break}case mt.ESC:{j&&p&&(we.stopPropagation(),j(we));break}}};d.useEffect(function(){if(o&&f){var Se;(Se=U.current)===null||Se===void 0||Se.focus({preventScroll:!0})}},[o]);var Z=d.useState(!1),X=Te(Z,2),ae=X[0],oe=X[1],le=d.useContext(zX),ce;typeof c=="boolean"?ce=c?{}:{distance:0}:ce=c||{};var pe=(n=(r=(i=ce)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:le==null?void 0:le.pushDistance)!==null&&n!==void 0?n:180,me=d.useMemo(function(){return{pushDistance:pe,push:function(){oe(!0)},pull:function(){oe(!1)}}},[pe]);d.useEffect(function(){if(o){var Se;le==null||(Se=le.push)===null||Se===void 0||Se.call(le)}else{var we;le==null||(we=le.pull)===null||we===void 0||we.call(le)}},[o]),d.useEffect(function(){return function(){var Se;le==null||(Se=le.pull)===null||Se===void 0||Se.call(le)}},[]);var re=E&&d.createElement(Ca,tt({key:"mask"},M,{visible:o}),function(Se,we){var se=Se.className,ye=Se.style;return d.createElement("div",{className:Ee("".concat(a,"-mask"),se,h==null?void 0:h.mask,P),style:q(q(q({},ye),R),V==null?void 0:V.mask),onClick:$&&o?j:void 0,ref:we})}),fe=typeof C=="function"?C(s):C,ve={};if(ae&&pe)switch(s){case"top":ve.transform="translateY(".concat(pe,"px)");break;case"bottom":ve.transform="translateY(".concat(-pe,"px)");break;case"left":ve.transform="translateX(".concat(pe,"px)");break;default:ve.transform="translateX(".concat(-pe,"px)");break}s==="left"||s==="right"?ve.width=HX(k):ve.height=HX(S);var $e={onMouseEnter:I,onMouseOver:A,onMouseLeave:N,onClick:F,onKeyDown:K,onKeyUp:L},Ce=d.createElement(Ca,tt({key:"panel"},fe,{visible:o,forceRender:u,onVisibleChanged:function(we){O==null||O(we)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(Se,we){var se=Se.className,ye=Se.style,Oe=d.createElement(LQe,tt({id:w,containerRef:we,prefixCls:a,className:Ee(y,h==null?void 0:h.content),style:q(q({},b),V==null?void 0:V.content)},Fi(e,{aria:!0}),$e),_);return d.createElement("div",tt({className:Ee("".concat(a,"-content-wrapper"),h==null?void 0:h.wrapper,se),style:q(q(q({},ve),ye),V==null?void 0:V.wrapper)},Fi(e,{data:!0})),B?B(Oe):Oe)}),be=q({},g);return v&&(be.zIndex=v),d.createElement(zX.Provider,{value:me},d.createElement("div",{className:Ee(a,"".concat(a,"-").concat(s),m,ne(ne({},"".concat(a,"-open"),o),"".concat(a,"-inline"),l)),style:be,tabIndex:-1,ref:U,onKeyDown:ie},re,d.createElement("div",{tabIndex:0,ref:Y,style:UX,"aria-hidden":"true","data-sentinel":"start"}),Ce,d.createElement("div",{tabIndex:0,ref:ee,style:UX,"aria-hidden":"true","data-sentinel":"end"})))}var zQe=d.forwardRef(BQe),HQe=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,a=i===void 0?"rc-drawer":i,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,f=u===void 0?!0:u,p=t.width,h=p===void 0?378:p,m=t.mask,g=m===void 0?!0:m,v=t.maskClosable,y=v===void 0?!0:v,w=t.getContainer,b=t.forceRender,C=t.afterOpenChange,k=t.destroyOnClose,S=t.onMouseEnter,_=t.onMouseOver,E=t.onMouseLeave,$=t.onClick,M=t.onKeyDown,P=t.onKeyUp,R=t.panelRef,O=d.useState(!1),j=Te(O,2),I=j[0],A=j[1],N=d.useState(!1),F=Te(N,2),K=F[0],L=F[1];nr(function(){L(!0)},[]);var V=K?r:!1,B=d.useRef(),U=d.useRef();nr(function(){V&&(U.current=document.activeElement)},[V]);var Y=function(ae){var oe;if(A(ae),C==null||C(ae),!ae&&U.current&&!((oe=B.current)!==null&&oe!==void 0&&oe.contains(U.current))){var le;(le=U.current)===null||le===void 0||le.focus({preventScroll:!0})}},ee=d.useMemo(function(){return{panel:R}},[R]);if(!b&&!I&&!V&&k)return null;var ie={onMouseEnter:S,onMouseOver:_,onMouseLeave:E,onClick:$,onKeyDown:M,onKeyUp:P},Z=q(q({},t),{},{open:V,prefixCls:a,placement:s,autoFocus:c,keyboard:f,width:h,mask:g,maskClosable:y,inline:w===!1,afterOpenChange:Y,ref:B},ie);return d.createElement(h1e.Provider,{value:ee},d.createElement(C4,{open:V||b||I,autoDestroy:!1,getContainer:w,autoLock:g&&(V||I)},d.createElement(zQe,Z)))};const m1e=e=>{var t,n;const{prefixCls:r,title:i,footer:a,extra:o,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:f,children:p,classNames:h,styles:m}=e,{drawer:g}=d.useContext(Xt),v=d.useCallback(k=>d.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},k),[l]),[y,w]=dB(R0(e),R0(g),{closable:!0,closeIconRender:v}),b=d.useMemo(()=>{var k,S;return!i&&!y?null:d.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(k=g==null?void 0:g.styles)===null||k===void 0?void 0:k.header),c),m==null?void 0:m.header),className:Ee(`${r}-header`,{[`${r}-header-close-only`]:y&&!i&&!o},(S=g==null?void 0:g.classNames)===null||S===void 0?void 0:S.header,h==null?void 0:h.header)},d.createElement("div",{className:`${r}-header-title`},w,i&&d.createElement("div",{className:`${r}-title`},i)),o&&d.createElement("div",{className:`${r}-extra`},o))},[y,w,o,c,r,i]),C=d.useMemo(()=>{var k,S;if(!a)return null;const _=`${r}-footer`;return d.createElement("div",{className:Ee(_,(k=g==null?void 0:g.classNames)===null||k===void 0?void 0:k.footer,h==null?void 0:h.footer),style:Object.assign(Object.assign(Object.assign({},(S=g==null?void 0:g.styles)===null||S===void 0?void 0:S.footer),f),m==null?void 0:m.footer)},a)},[a,f,r]);return d.createElement(d.Fragment,null,b,d.createElement("div",{className:Ee(`${r}-body`,h==null?void 0:h.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?d.createElement(Kf,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):p),C)},UQe=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},g1e=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),v1e=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},g1e({opacity:e},{opacity:1})),WQe=(e,t)=>[v1e(.7,t),g1e({transform:UQe(e)},{transform:"none"})],VQe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:v1e(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:WQe(i,n)}),{})}}},qQe=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:f,lineHeightLG:p,lineWidth:h,lineType:m,colorSplit:g,marginXS:v,colorIcon:y,colorIconHover:w,colorBgTextHover:b,colorBgTextActive:C,colorText:k,fontWeightStrong:S,footerPaddingBlock:_,footerPaddingInline:E,calc:$}=e,M=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:k,"&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto"},[M]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${M}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${M}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${M}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${M}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Me(c)} ${Me(u)}`,fontSize:f,lineHeight:p,borderBottom:`${Me(h)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:$(f).add(l).equal(),height:$(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:y,fontWeight:S,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:w,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:C}},Vs(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${Me(_)} ${Me(E)}`,borderTop:`${Me(h)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},KQe=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),y1e=Jn("Drawer",e=>{const t=Hn(e,{});return[qQe(t),VQe(t)]},KQe);var b1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:n,height:r,size:i="default",mask:a=!0,push:o=GQe,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:f,style:p,className:h,visible:m,afterVisibleChange:g,maskStyle:v,drawerStyle:y,contentWrapperStyle:w}=e,b=b1e(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:C,getPrefixCls:k,direction:S,drawer:_}=d.useContext(Xt),E=k("drawer",u),[$,M,P]=y1e(E),R=f===void 0&&C?()=>C(document.body):f,O=Ee({"no-mask":!a,[`${E}-rtl`]:S==="rtl"},t,M,P),j=d.useMemo(()=>n??(i==="large"?736:378),[n,i]),I=d.useMemo(()=>r??(i==="large"?736:378),[r,i]),A={motionName:oo(E,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=ee=>({motionName:oo(E,`panel-motion-${ee}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),F=qpe(),[K,L]=$c("Drawer",b.zIndex),{classNames:V={},styles:B={}}=b,{classNames:U={},styles:Y={}}=_||{};return $(d.createElement(bu,{form:!0,space:!0},d.createElement(v4.Provider,{value:L},d.createElement(HQe,Object.assign({prefixCls:E,onClose:c,maskMotion:A,motion:N},b,{classNames:{mask:Ee(V.mask,U.mask),content:Ee(V.content,U.content),wrapper:Ee(V.wrapper,U.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),v),Y.mask),content:Object.assign(Object.assign(Object.assign({},B.content),y),Y.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),w),Y.wrapper)},open:s??m,mask:a,push:o,width:j,height:I,style:Object.assign(Object.assign({},_==null?void 0:_.style),p),className:Ee(_==null?void 0:_.className,h),rootClassName:O,getContainer:R,afterOpenChange:l??g,panelRef:F,zIndex:K}),d.createElement(m1e,Object.assign({prefixCls:E},b,{onClose:c}))))))},YQe=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,a=b1e(e,["prefixCls","style","className","placement"]),{getPrefixCls:o}=d.useContext(Xt),s=o("drawer",t),[l,c,u]=y1e(s),f=Ee(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(d.createElement("div",{className:f,style:n},d.createElement(m1e,Object.assign({prefixCls:s},a))))};Sh._InternalPanelDoNotUseOrYouWillBeFired=YQe;function C6(e){return["small","middle","large"].includes(e)}function WX(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const w1e=te.createContext({latestIndex:0}),XQe=w1e.Provider,ZQe=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=d.useContext(w1e);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:a},r),n{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=d.useContext(Xt),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:p,direction:h="horizontal",prefixCls:m,split:g,style:v,wrap:y=!1,classNames:w,styles:b}=e,C=QQe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[k,S]=Array.isArray(l)?l:[l,l],_=C6(S),E=C6(k),$=WX(S),M=WX(k),P=Xi(p,{keepEmpty:!0}),R=c===void 0&&h==="horizontal"?"center":c,O=a("space",m),[j,I,A]=hpe(O),N=Ee(O,o==null?void 0:o.className,I,`${O}-${h}`,{[`${O}-rtl`]:s==="rtl",[`${O}-align-${R}`]:R,[`${O}-gap-row-${S}`]:_,[`${O}-gap-col-${k}`]:E},u,f,A),F=Ee(`${O}-item`,(r=w==null?void 0:w.item)!==null&&r!==void 0?r:(i=o==null?void 0:o.classNames)===null||i===void 0?void 0:i.item);let K=0;const L=P.map((U,Y)=>{var ee,ie;U!=null&&(K=Y);const Z=(U==null?void 0:U.key)||`${F}-${Y}`;return d.createElement(ZQe,{className:F,key:Z,index:Y,split:g,style:(ee=b==null?void 0:b.item)!==null&&ee!==void 0?ee:(ie=o==null?void 0:o.styles)===null||ie===void 0?void 0:ie.item},U)}),V=d.useMemo(()=>({latestIndex:K}),[K]);if(P.length===0)return null;const B={};return y&&(B.flexWrap="wrap"),!E&&M&&(B.columnGap=k),!_&&$&&(B.rowGap=S),j(d.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),o==null?void 0:o.style),v)},C),d.createElement(XQe,{value:V},L)))}),Xr=JQe;Xr.Compact=DDe;var eJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(Xt),{prefixCls:i,type:a="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:p,menu:h,arrow:m,autoFocus:g,overlay:v,trigger:y,align:w,open:b,onOpenChange:C,placement:k,getPopupContainer:S,href:_,icon:E=d.createElement(RB,null),title:$,buttonsRender:M=X=>X,mouseEnterDelay:P,mouseLeaveDelay:R,overlayClassName:O,overlayStyle:j,destroyPopupOnHide:I,dropdownRender:A}=e,N=eJe(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",i),K=`${F}-button`,L={menu:h,arrow:m,autoFocus:g,align:w,disabled:s,trigger:s?[]:y,onOpenChange:C,getPopupContainer:S||t,mouseEnterDelay:P,mouseLeaveDelay:R,overlayClassName:O,overlayStyle:j,destroyPopupOnHide:I,dropdownRender:A},{compactSize:V,compactItemClassnames:B}=$u(F,r),U=Ee(K,B,p);"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=b),"placement"in e?L.placement=k:L.placement=r==="rtl"?"bottomLeft":"bottomRight";const Y=d.createElement(Yt,{type:a,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:_,title:$},f),ee=d.createElement(Yt,{type:a,danger:o,icon:E}),[ie,Z]=M([Y,ee]);return d.createElement(Xr.Compact,Object.assign({className:U,size:V,block:!0},N),ie,d.createElement($8,Object.assign({},L),Z))};x1e.__ANT_BUTTON=!0;const _6=$8;_6.Button=x1e;const S1e=["wrap","nowrap","wrap-reverse"],C1e=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_1e=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],tJe=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&S1e.includes(n)}},nJe=(e,t)=>{const n={};return _1e.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},rJe=(e,t)=>{const n={};return C1e.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function iJe(e,t){return Ee(Object.assign(Object.assign(Object.assign({},tJe(e,t)),nJe(e,t)),rJe(e,t)))}const aJe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},oJe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},sJe=e=>{const{componentCls:t}=e,n={};return S1e.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},lJe=e=>{const{componentCls:t}=e,n={};return _1e.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},cJe=e=>{const{componentCls:t}=e,n={};return C1e.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},uJe=()=>({}),dJe=Jn("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Hn(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[aJe(i),oJe(i),sJe(i),lJe(i),cJe(i)]},uJe,{resetStyle:!1});var fJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=fJe(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:h,getPrefixCls:m}=te.useContext(Xt),g=m("flex",n),[v,y,w]=dJe(g),b=c??(p==null?void 0:p.vertical),C=Ee(i,r,p==null?void 0:p.className,g,y,w,iJe(g,e),{[`${g}-rtl`]:h==="rtl",[`${g}-gap-${s}`]:C6(s),[`${g}-vertical`]:b}),k=Object.assign(Object.assign({},p==null?void 0:p.style),a);return o&&(k.flex=o),s&&!C6(s)&&(k.gap=s),v(te.createElement(u,Object.assign({ref:t,className:C,style:k},$r(f,["justify","wrap","align"])),l))});function k6(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const pJe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, opacity ${e.motionDurationFast} ${e.motionEaseInOut}, - transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},mJe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Me(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),VX=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},gJe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},ar(e)),mJe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},VX(e,e.controlHeightSM)),"&-large":Object.assign({},VX(e,e.controlHeightLG))})}},vJe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:tB,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},qX=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},yJe=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Jc=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),E1e=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Jc(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},bJe=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},hJe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Me(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),VX=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},mJe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},ar(e)),hJe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},VX(e,e.controlHeightSM)),"&-large":Object.assign({},VX(e,e.controlHeightLG))})}},gJe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:tB,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},qX=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},vJe=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Jc=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),k1e=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Jc(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},yJe=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:Jc(e)}},[`@media (max-width: ${Me(e.screenXSMax)})`]:[E1e(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Jc(e)}}}],[`@media (max-width: ${Me(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Jc(e)}}},[`@media (max-width: ${Me(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Jc(e)}}},[`@media (max-width: ${Me(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Jc(e)}}}}},wJe=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, + ${r}-col-xl-24${n}-label`]:Jc(e)}},[`@media (max-width: ${Me(e.screenXSMax)})`]:[k1e(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Jc(e)}}}],[`@media (max-width: ${Me(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Jc(e)}}},[`@media (max-width: ${Me(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Jc(e)}}},[`@media (max-width: ${Me(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Jc(e)}}}}},bJe=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, ${n}-col-24${t}-label, - ${n}-col-xl-24${t}-label`]:Jc(e),[`@media (max-width: ${Me(e.screenXSMax)})`]:[E1e(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Jc(e)}}],[`@media (max-width: ${Me(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Jc(e)}},[`@media (max-width: ${Me(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Jc(e)}},[`@media (max-width: ${Me(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Jc(e)}}}},xJe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),$1e=(e,t)=>Hn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),JB=Jn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=$1e(e,n);return[gJe(r),vJe(r),hJe(r),qX(r,r.componentCls),qX(r,r.formItemCls),yJe(r),bJe(r),wJe(r),S4(r),tB]},xJe,{order:-1e3}),KX=[];function rT(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const M1e=e=>{let{help:t,helpStatus:n,errors:r=KX,warnings:i=KX,className:a,fieldId:o,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(uB),c=`${l}-item-explain`,u=qr(l),[f,p,h]=JB(l,u),m=d.useMemo(()=>P0(l),[l]),g=E6(r),v=E6(i),y=d.useMemo(()=>t!=null?[rT(t,"help",n)]:[].concat(lt(g.map((C,k)=>rT(C,"error","error",k))),lt(v.map((C,k)=>rT(C,"warning","warning",k)))),[t,n,g,v]),w=d.useMemo(()=>{const C={};return y.forEach(k=>{let{key:S}=k;C[S]=(C[S]||0)+1}),y.map((k,S)=>Object.assign(Object.assign({},k),{key:C[k.key]>1?`${k.key}-fallback-${S}`:k.key}))},[y]),b={};return o&&(b.id=`${o}_help`),f(d.createElement(Ca,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!w.length,onVisibleChanged:s},C=>{const{className:k,style:S}=C;return d.createElement("div",Object.assign({},b,{className:Ee(c,k,h,u,a,p),style:S,role:"alert"}),d.createElement(ZE,Object.assign({keys:w},P0(l),{motionName:`${l}-show-help-item`,component:!1}),_=>{const{key:E,error:$,errorStatus:M,className:P,style:R}=_;return d.createElement("div",{key:E,className:Ee(P,{[`${c}-${M}`]:M}),style:R},$)}))}))},SJe=["parentNode"],CJe="form_item";function ew(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function T1e(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:SJe.includes(n)?`${CJe}_${n}`:n}function P1e(e,t,n,r,i,a){let o=r;return a!==void 0?o=a:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function GX(e){return ew(e).join("_")}function YX(e,t){const n=t.getFieldInstance(e),r=kde(n);if(r)return r;const i=T1e(ew(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function O1e(e){const[t]=cB(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const o=GX(i);a?n.current[o]=a:delete n.current[o]}},scrollToField:function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=YX(i,r);o&&UAe(o,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:i=>{var a;const o=YX(i,r);o&&((a=o.focus)===null||a===void 0||a.call(o))},getFieldInstance:i=>{const a=GX(i);return n.current[a]}}),[e,t]);return[r]}var _Je=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(ma),{getPrefixCls:r,direction:i,form:a}=d.useContext(Xt),{prefixCls:o,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:p,labelAlign:h,labelWrap:m,labelCol:g,wrapperCol:v,hideRequiredMark:y,layout:w="horizontal",scrollToFirstError:b,requiredMark:C,onFinishFailed:k,name:S,style:_,feedbackIcons:E,variant:$}=e,M=_Je(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=Bi(c),R=d.useContext(hfe),O=d.useMemo(()=>C!==void 0?C:y?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[y,C,a]),j=p??(a==null?void 0:a.colon),I=r("form",o),A=qr(I),[N,F,K]=JB(I,A),L=Ee(I,`${I}-${w}`,{[`${I}-hide-required-mark`]:O===!1,[`${I}-rtl`]:i==="rtl",[`${I}-${P}`]:P},K,A,F,a==null?void 0:a.className,s,l),[V]=O1e(f),{__INTERNAL__:B}=V;B.name=S;const U=d.useMemo(()=>({name:S,labelAlign:h,labelCol:g,labelWrap:m,wrapperCol:v,vertical:w==="vertical",colon:j,requiredMark:O,itemRef:B.itemRef,form:V,feedbackIcons:E}),[S,h,g,v,w,j,O,V,E]),Y=d.useRef(null);d.useImperativeHandle(t,()=>{var Z;return Object.assign(Object.assign({},V),{nativeElement:(Z=Y.current)===null||Z===void 0?void 0:Z.nativeElement})});const ee=(Z,X)=>{if(Z){let ae={block:"nearest"};typeof Z=="object"&&(ae=Object.assign(Object.assign({},ae),Z)),V.scrollToField(X,ae),ae.focus&&V.focusField(X)}},ie=Z=>{if(k==null||k(Z),Z.errorFields.length){const X=Z.errorFields[0].name;if(b!==void 0){ee(b,X);return}a&&a.scrollToFirstError!==void 0&&ee(a.scrollToFirstError,X)}};return N(d.createElement(Vpe.Provider,{value:$},d.createElement(UL,{disabled:u},d.createElement(hg.Provider,{value:P},d.createElement(Wpe,{validateMessages:R},d.createElement(jf.Provider,{value:U},d.createElement(ky,Object.assign({id:S},M,{name:S,onFinishFailed:ie,form:V,ref:Y,style:Object.assign(Object.assign({},a==null?void 0:a.style),_),className:L}))))))))},EJe=d.forwardRef(kJe);function $Je(e){if(typeof e=="function")return e;const t=Xi(e);return t.length<=1?t[0]:t}const R1e=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(oa);return{status:e,errors:t,warnings:n}};R1e.Context=oa;function MJe(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),a=d.useRef(!1);d.useEffect(()=>(a.current=!1,()=>{a.current=!0,rr.cancel(r.current),r.current=null}),[]);function o(s){a.current||(r.current===null&&(i.current=[],r.current=rr(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,o]}function TJe(){const{itemRef:e}=d.useContext(jf),t=d.useRef({});function n(r,i){const a=i&&typeof i=="object"&&bh(i),o=r.join("_");return(t.current.name!==o||t.current.originRef!==a)&&(t.current.name=o,t.current.originRef=a,t.current.ref=ga(e(r),a)),t.current.ref}return n}const PJe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},OJe=Sy(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=$1e(e,n);return[PJe(r)]});var RJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:p,onErrorVisibleChanged:h,label:m}=e,g=`${t}-item`,v=d.useContext(jf),y=d.useMemo(()=>{let j=Object.assign({},i||v.wrapperCol||{});return m===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const N=A?[A]:[],F=Ds(v.labelCol,N),K=typeof F=="object"?F:{},L=Ds(j,N),V=typeof L=="object"?L:{};"span"in K&&!("offset"in V)&&K.spanRJe(v,["labelCol","wrapperCol"]),[v]),C=d.useRef(null),[k,S]=d.useState(0);nr(()=>{c&&C.current?S(C.current.clientHeight):S(0)},[c]);const _=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},a)),E=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),$=p!==null||o.length||s.length?d.createElement(uB.Provider,{value:E},d.createElement(M1e,{fieldId:f,errors:o,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:h})):null,M={};f&&(M.id=`${f}_extra`);const P=c?d.createElement("div",Object.assign({},M,{className:`${g}-extra`,ref:C}),c):null,R=$||P?d.createElement("div",{className:`${g}-additional`,style:p?{minHeight:p+k}:{}},$,P):null,O=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:_,errorList:$,extra:P}):d.createElement(d.Fragment,null,_,R);return d.createElement(jf.Provider,{value:b},d.createElement(D0,Object.assign({},y,{className:w}),O),d.createElement(OJe,{prefixCls:t}))};var NJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},AJe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:NJe}))},DJe=d.forwardRef(AJe),FJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:o,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[p]=Ga("Form"),{labelAlign:h,labelCol:m,labelWrap:g,colon:v}=d.useContext(jf);if(!n)return null;const y=i||m||{},w=a||h,b=`${t}-item-label`,C=Ee(b,w==="left"&&`${b}-left`,y.className,{[`${b}-wrap`]:!!g});let k=n;const S=o===!0||v!==!1&&o!==!1;S&&!u&&typeof n=="string"&&n.trim()&&(k=n.replace(/[:|:]\s*$/,""));const E=LJe(c);if(E){const{icon:R=d.createElement(DJe,null)}=E,O=FJe(E,["icon"]),j=d.createElement(_a,Object.assign({},O),d.cloneElement(R,{className:`${t}-item-tooltip`,title:"",onClick:I=>{I.preventDefault()},tabIndex:null}));k=d.createElement(d.Fragment,null,k,j)}const $=l==="optional",M=typeof l=="function";M?k=l(k,{required:!!s}):$&&!s&&(k=d.createElement(d.Fragment,null,k,d.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=Us.Form)===null||f===void 0?void 0:f.optional))));const P=Ee({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:$||M,[`${t}-item-no-colon`]:!S});return d.createElement(D0,Object.assign({},y,{className:C}),d.createElement("label",{htmlFor:r,className:P,title:typeof n=="string"?n:""},k))},zJe={success:Ug,warning:qf,error:Pd,validating:vu};function I1e(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:o,meta:s,noStyle:l}=e;const c=`${o}-item`,{feedbackIcons:u}=d.useContext(jf),f=P1e(n,r,s,null,!!i,a),{isFormItemInput:p,status:h,hasFeedback:m,feedbackIcon:g}=d.useContext(oa),v=d.useMemo(()=>{var y;let w;if(i){const C=i!==!0&&i.icons||u,k=f&&((y=C==null?void 0:C({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),S=f&&zJe[f];w=k!==!1&&S?d.createElement("span",{className:Ee(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},k||d.createElement(S,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:w,isFormItemInput:!0};return l&&(b.status=(f??h)||"",b.isFormItemInput=p,b.hasFeedback=!!(i??m),b.feedbackIcon=i!==void 0?b.feedbackIcon:g),b},[f,i,l,p,h]);return d.createElement(oa.Provider,{value:v},t)}var HJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(P&&_.current){const K=getComputedStyle(_.current);j(parseInt(K.marginBottom,10))}},[P,R]);const I=K=>{K||j(null)},N=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const L=K?E:c.errors,V=K?$:c.warnings;return P1e(L,V,c,"",!!u,l)}(),F=Ee(b,n,r,{[`${b}-with-help`]:M||E.length||$.length,[`${b}-has-feedback`]:N&&u,[`${b}-has-success`]:N==="success",[`${b}-has-warning`]:N==="warning",[`${b}-has-error`]:N==="error",[`${b}-is-validating`]:N==="validating",[`${b}-hidden`]:f,[`${b}-${y}`]:y});return d.createElement("div",{className:F,style:i,ref:_},d.createElement(z8,Object.assign({className:`${b}-row`},$r(w,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(BJe,Object.assign({htmlFor:h},e,{requiredMark:C,required:m??g,prefixCls:t,vertical:S})),d.createElement(jJe,Object.assign({},e,c,{errors:E,warnings:$,prefixCls:t,status:N,help:a,marginBottom:O,onErrorVisibleChanged:I}),d.createElement(Upe.Provider,{value:v},d.createElement(I1e,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:N},p)))),!!O&&d.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-O}}))}const WJe="__SPLIT__";function VJe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],o=t[i];return a===o||typeof a=="function"||typeof o=="function"})}const qJe=d.memo(e=>{let{children:t}=e;return t},(e,t)=>VJe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function XX(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function KJe(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:p="onChange",validateTrigger:h,hidden:m,help:g,layout:v}=e,{getPrefixCls:y}=d.useContext(Xt),{name:w}=d.useContext(jf),b=$Je(l),C=typeof b=="function",k=d.useContext(Upe),{validateTrigger:S}=d.useContext(ph),_=h!==void 0?h:S,E=t!=null,$=y("form",a),M=qr($),[P,R,O]=JB($,M);Hg();const j=d.useContext(r3),I=d.useRef(null),[A,N]=MJe({}),[F,K]=gg(()=>XX()),L=Z=>{const X=j==null?void 0:j.getKey(Z.name);if(K(Z.destroy?XX():Z,!0),n&&g!==!1&&k){let ae=Z.name;if(Z.destroy)ae=I.current||ae;else if(X!==void 0){const[oe,le]=X;ae=[oe].concat(lt(le)),I.current=ae}k(Z,ae)}},V=(Z,X)=>{N(ae=>{const oe=Object.assign({},ae),ce=[].concat(lt(Z.name.slice(0,-1)),lt(X)).join(WJe);return Z.destroy?delete oe[ce]:oe[ce]=Z,oe})},[B,U]=d.useMemo(()=>{const Z=lt(F.errors),X=lt(F.warnings);return Object.values(A).forEach(ae=>{Z.push.apply(Z,lt(ae.errors||[])),X.push.apply(X,lt(ae.warnings||[]))}),[Z,X]},[A,F.errors,F.warnings]),Y=TJe();function ee(Z,X,ae){return n&&!m?d.createElement(I1e,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:B,warnings:U,noStyle:!0},Z):d.createElement(UJe,Object.assign({key:"row"},e,{className:Ee(r,O,M,R),prefixCls:$,fieldId:X,isRequired:ae,errors:B,warnings:U,meta:F,onSubItemMetaChange:V,layout:v}),Z)}if(!E&&!C&&!i)return P(ee(b));let ie={};return typeof u=="string"?ie.label=u:t&&(ie.label=String(t)),f&&(ie=Object.assign(Object.assign({},ie),f)),P(d.createElement(lB,Object.assign({},e,{messageVariables:ie,trigger:p,validateTrigger:_,onMetaChange:L}),(Z,X,ae)=>{const oe=ew(t).length&&X?X.name:[],le=T1e(oe,w),ce=c!==void 0?c:!!(s!=null&&s.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const fe=re(ae);return(fe==null?void 0:fe.required)&&!(fe!=null&&fe.warningOnly)}return!1})),pe=Object.assign({},Z);let me=null;if(Array.isArray(b)&&E)me=b;else if(!(C&&(!(o||i)||E))){if(!(i&&!C&&!E))if(d.isValidElement(b)){const re=Object.assign(Object.assign({},b.props),pe);if(re.id||(re.id=le),g||B.length>0||U.length>0||e.extra){const $e=[];(g||B.length>0)&&$e.push(`${le}_help`),e.extra&&$e.push(`${le}_extra`),re["aria-describedby"]=$e.join(" ")}B.length>0&&(re["aria-invalid"]="true"),ce&&(re["aria-required"]="true"),Vf(b)&&(re.ref=Y(oe,b)),new Set([].concat(lt(ew(p)),lt(ew(_)))).forEach($e=>{re[$e]=function(){for(var Ce,be,Se,we,se,ye=arguments.length,Oe=new Array(ye),z=0;z{var{prefixCls:t,children:n}=e,r=GJe(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(Xt),a=i("form",t),o=d.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return d.createElement(Lpe,Object.assign({},r),(s,l,c)=>d.createElement(uB.Provider,{value:o},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function XJe(){const{form:e}=d.useContext(jf);return e}const Zi=EJe;Zi.Item=j1e;Zi.List=YJe;Zi.ErrorList=M1e;Zi.useForm=O1e;Zi.useFormInstance=XJe;Zi.useWatch=Hpe;Zi.Provider=Wpe;Zi.create=()=>{};function N1e(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function ZJe(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function bv(e,t,n,r){var i=ig.unstable_batchedUpdates?function(o){ig.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var I4=d.createContext(null),QJe=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,p=t.transform,h=t.count,m=t.scale,g=t.minScale,v=t.maxScale,y=t.closeIcon,w=t.onActive,b=t.onClose,C=t.onZoomIn,k=t.onZoomOut,S=t.onRotateRight,_=t.onRotateLeft,E=t.onFlipX,$=t.onFlipY,M=t.onReset,P=t.toolbarRender,R=t.zIndex,O=t.image,j=d.useContext(I4),I=s.rotateLeft,A=s.rotateRight,N=s.zoomIn,F=s.zoomOut,K=s.close,L=s.left,V=s.right,B=s.flipX,U=s.flipY,Y="".concat(a,"-operations-operation");d.useEffect(function(){var fe=function($e){$e.keyCode===mt.ESC&&b()};return n&&window.addEventListener("keydown",fe),function(){window.removeEventListener("keydown",fe)}},[n]);var ee=function(ve,$e){ve.preventDefault(),ve.stopPropagation(),w($e)},ie=d.useCallback(function(fe){var ve=fe.type,$e=fe.disabled,Ce=fe.onClick,be=fe.icon;return d.createElement("div",{key:ve,className:Ee(Y,"".concat(a,"-operations-operation-").concat(ve),ne({},"".concat(a,"-operations-operation-disabled"),!!$e)),onClick:Ce},be)},[Y,a]),Z=c?ie({icon:L,onClick:function(ve){return ee(ve,-1)},type:"prev",disabled:f===0}):void 0,X=c?ie({icon:V,onClick:function(ve){return ee(ve,1)},type:"next",disabled:f===h-1}):void 0,ae=ie({icon:U,onClick:$,type:"flipY"}),oe=ie({icon:B,onClick:E,type:"flipX"}),le=ie({icon:I,onClick:_,type:"rotateLeft"}),ce=ie({icon:A,onClick:S,type:"rotateRight"}),pe=ie({icon:F,onClick:k,type:"zoomOut",disabled:m<=g}),me=ie({icon:N,onClick:C,type:"zoomIn",disabled:m===v}),re=d.createElement("div",{className:"".concat(a,"-operations")},ae,oe,le,ce,pe,me);return d.createElement(Ca,{visible:n,motionName:r},function(fe){var ve=fe.className,$e=fe.style;return d.createElement(_4,{open:!0,getContainer:i??document.body},d.createElement("div",{className:Ee("".concat(a,"-operations-wrapper"),ve,o),style:q(q({},$e),{},{zIndex:R})},y===null?null:d.createElement("button",{className:"".concat(a,"-close"),onClick:b},y||K),c&&d.createElement(d.Fragment,null,d.createElement("div",{className:Ee("".concat(a,"-switch-left"),ne({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(be){return ee(be,-1)}},L),d.createElement("div",{className:Ee("".concat(a,"-switch-right"),ne({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:function(be){return ee(be,1)}},V)),d.createElement("div",{className:"".concat(a,"-footer")},u&&d.createElement("div",{className:"".concat(a,"-progress")},l?l(f+1,h):"".concat(f+1," / ").concat(h)),P?P(re,q(q({icons:{prevIcon:Z,nextIcon:X,flipYIcon:ae,flipXIcon:oe,rotateLeftIcon:le,rotateRightIcon:ce,zoomOutIcon:pe,zoomInIcon:me},actions:{onActive:w,onFlipY:$,onFlipX:E,onRotateLeft:_,onRotateRight:S,onZoomOut:k,onZoomIn:C,onReset:M,onClose:b},transform:p},j?{current:f,total:h}:{}),{},{image:O})):re)))})},TS={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function JJe(e,t,n,r){var i=d.useRef(null),a=d.useRef([]),o=d.useState(TS),s=Te(o,2),l=s[0],c=s[1],u=function(m){c(TS),mg(TS,l)||r==null||r({transform:TS,action:m})},f=function(m,g){i.current===null&&(a.current=[],i.current=rr(function(){c(function(v){var y=v;return a.current.forEach(function(w){y=q(q({},y),w)}),i.current=null,r==null||r({transform:y,action:g}),y})})),a.current.push(q(q({},l),m))},p=function(m,g,v,y,w){var b=e.current,C=b.width,k=b.height,S=b.offsetWidth,_=b.offsetHeight,E=b.offsetLeft,$=b.offsetTop,M=m,P=l.scale*m;P>n?(P=n,M=n/l.scale):Pr){if(t>0)return ne({},e,a);if(t<0&&ir)return ne({},e,t<0?a:-a);return{}}function A1e(e,t,n,r){var i=N1e(),a=i.width,o=i.height,s=null;return e<=a&&t<=o?s={x:0,y:0}:(e>a||t>o)&&(s=q(q({},ZX("x",n,e,a)),ZX("y",r,t,o))),s}var wv=1,eet=1;function tet(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),p=Te(f,2),h=p[0],m=p[1],g=d.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(k){!t||k.button!==0||(k.preventDefault(),k.stopPropagation(),g.current={diffX:k.pageX-c,diffY:k.pageY-u,transformX:c,transformY:u},m(!0))},y=function(k){n&&h&&a({x:k.pageX-g.current.diffX,y:k.pageY-g.current.diffY},"move")},w=function(){if(n&&h){m(!1);var k=g.current,S=k.transformX,_=k.transformY,E=c!==S&&u!==_;if(!E)return;var $=e.current.offsetWidth*l,M=e.current.offsetHeight*l,P=e.current.getBoundingClientRect(),R=P.left,O=P.top,j=s%180!==0,I=A1e(j?M:$,j?$:M,R,O);I&&a(q({},I),"dragRebound")}},b=function(k){if(!(!n||k.deltaY==0)){var S=Math.abs(k.deltaY/100),_=Math.min(S,eet),E=wv+_*r;k.deltaY>0&&(E=wv/E),o(E,"wheel",k.clientX,k.clientY)}};return d.useEffect(function(){var C,k,S,_;if(t){S=bv(window,"mouseup",w,!1),_=bv(window,"mousemove",y,!1);try{window.top!==window.self&&(C=bv(window.top,"mouseup",w,!1),k=bv(window.top,"mousemove",y,!1))}catch{}}return function(){var E,$,M,P;(E=S)===null||E===void 0||E.remove(),($=_)===null||$===void 0||$.remove(),(M=C)===null||M===void 0||M.remove(),(P=k)===null||P===void 0||P.remove()}},[n,h,c,u,s,t]),{isMoving:h,onMouseDown:v,onMouseMove:y,onMouseUp:w,onWheel:b}}function net(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function D1e(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=d.useState(n?"loading":"normal"),a=Te(i,2),o=a[0],s=a[1],l=d.useRef(!1),c=o==="error";d.useEffect(function(){var h=!0;return net(t).then(function(m){!m&&h&&s("error")}),function(){h=!1}},[t]),d.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(m){l.current=!1,o==="loading"&&m!==null&&m!==void 0&&m.complete&&(m.naturalWidth||m.naturalHeight)&&(l.current=!0,u())},p=c&&r?{src:r}:{onLoad:u,src:t};return[f,p,o]}function $6(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function ret(e,t,n,r){var i=$6(e,n),a=$6(t,r);if(i===0&&a===0)return[e.x,e.y];var o=i/(i+a),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function iet(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),p=Te(f,2),h=p[0],m=p[1],g=d.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(k){g.current=q(q({},g.current),k)},y=function(k){if(t){k.stopPropagation(),m(!0);var S=k.touches,_=S===void 0?[]:S;_.length>1?v({point1:{x:_[0].clientX,y:_[0].clientY},point2:{x:_[1].clientX,y:_[1].clientY},eventType:"touchZoom"}):v({point1:{x:_[0].clientX-c,y:_[0].clientY-u},eventType:"move"})}},w=function(k){var S=k.touches,_=S===void 0?[]:S,E=g.current,$=E.point1,M=E.point2,P=E.eventType;if(_.length>1&&P==="touchZoom"){var R={x:_[0].clientX,y:_[0].clientY},O={x:_[1].clientX,y:_[1].clientY},j=ret($,M,R,O),I=Te(j,2),A=I[0],N=I[1],F=$6(R,O)/$6($,M);o(F,"touchZoom",A,N,!0),v({point1:R,point2:O,eventType:"touchZoom"})}else P==="move"&&(a({x:_[0].clientX-$.x,y:_[0].clientY-$.y},"move"),v({eventType:"move"}))},b=function(){if(n){if(h&&m(!1),v({eventType:"none"}),r>l)return a({x:0,y:0,scale:r},"touchZoom");var k=e.current.offsetWidth*l,S=e.current.offsetHeight*l,_=e.current.getBoundingClientRect(),E=_.left,$=_.top,M=s%180!==0,P=A1e(M?S:k,M?k:S,E,$);P&&a(q({},P),"dragRebound")}};return d.useEffect(function(){var C;return n&&t&&(C=bv(window,"touchmove",function(k){return k.preventDefault()},{passive:!1})),function(){var k;(k=C)===null||k===void 0||k.remove()}},[n,t]),{isTouching:h,onTouchStart:y,onTouchMove:w,onTouchEnd:b}}var aet=["fallback","src","imgRef"],oet=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],set=function(t){var n=t.fallback,r=t.src,i=t.imgRef,a=Ht(t,aet),o=D1e({src:r,fallback:n}),s=Te(o,2),l=s[0],c=s[1];return te.createElement("img",tt({ref:function(f){i.current=f,l(f)}},a,c))},F1e=function(t){var n=t.prefixCls,r=t.src,i=t.alt,a=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,p=f===void 0?{}:f,h=t.rootClassName,m=t.closeIcon,g=t.getContainer,v=t.current,y=v===void 0?0:v,w=t.count,b=w===void 0?1:w,C=t.countRender,k=t.scaleStep,S=k===void 0?.5:k,_=t.minScale,E=_===void 0?1:_,$=t.maxScale,M=$===void 0?50:$,P=t.transitionName,R=P===void 0?"zoom":P,O=t.maskTransitionName,j=O===void 0?"fade":O,I=t.imageRender,A=t.imgCommonProps,N=t.toolbarRender,F=t.onTransform,K=t.onChange,L=Ht(t,oet),V=d.useRef(),B=d.useContext(I4),U=B&&b>1,Y=B&&b>=1,ee=d.useState(!0),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=JJe(V,E,M,F),oe=ae.transform,le=ae.resetTransform,ce=ae.updateTransform,pe=ae.dispatchZoomChange,me=tet(V,l,u,S,oe,ce,pe),re=me.isMoving,fe=me.onMouseDown,ve=me.onWheel,$e=iet(V,l,u,E,oe,ce,pe),Ce=$e.isTouching,be=$e.onTouchStart,Se=$e.onTouchMove,we=$e.onTouchEnd,se=oe.rotate,ye=oe.scale,Oe=Ee(ne({},"".concat(n,"-moving"),re));d.useEffect(function(){Z||X(!0)},[Z]);var z=function(){le("close")},H=function(){pe(wv+S,"zoomIn")},G=function(){pe(wv/(wv+S),"zoomOut")},de=function(){ce({rotate:se+90},"rotateRight")},xe=function(){ce({rotate:se-90},"rotateLeft")},he=function(){ce({flipX:!oe.flipX},"flipX")},Ue=function(){ce({flipY:!oe.flipY},"flipY")},We=function(){le("reset")},ge=function(qe){var Et=y+qe;!Number.isInteger(Et)||Et<0||Et>b-1||(X(!1),le(qe<0?"prev":"next"),K==null||K(Et,y))},ze=function(qe){!u||!U||(qe.keyCode===mt.LEFT?ge(-1):qe.keyCode===mt.RIGHT&&ge(1))},Ve=function(qe){u&&(ye!==1?ce({x:0,y:0,scale:1},"doubleClick"):pe(wv+S,"doubleClick",qe.clientX,qe.clientY))};d.useEffect(function(){var Ke=bv(window,"keydown",ze,!1);return function(){Ke.remove()}},[u,U,y]);var Be=te.createElement(set,tt({},A,{width:t.width,height:t.height,imgRef:V,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(oe.x,"px, ").concat(oe.y,"px, 0) scale3d(").concat(oe.flipX?"-":"").concat(ye,", ").concat(oe.flipY?"-":"").concat(ye,", 1) rotate(").concat(se,"deg)"),transitionDuration:(!Z||Ce)&&"0s"},fallback:o,src:r,onWheel:ve,onMouseDown:fe,onDoubleClick:Ve,onTouchStart:be,onTouchMove:Se,onTouchEnd:we,onTouchCancel:we})),Xe=q({url:r,alt:i},a);return te.createElement(te.Fragment,null,te.createElement(oB,tt({transitionName:R,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Oe},rootClassName:h,getContainer:g},L,{afterClose:z}),te.createElement("div",{className:"".concat(n,"-img-wrapper")},I?I(Be,q({transform:oe,image:Xe},B?{current:y}:{})):Be)),te.createElement(QJe,{visible:u,transform:oe,maskTransitionName:j,closeIcon:m,getContainer:g,prefixCls:n,rootClassName:h,icons:p,countRender:C,showSwitch:U,showProgress:Y,current:y,count:b,scale:ye,minScale:E,maxScale:M,toolbarRender:N,onActive:ge,onZoomIn:H,onZoomOut:G,onRotateRight:de,onRotateLeft:xe,onFlipX:he,onFlipY:Ue,onClose:c,onReset:We,zIndex:L.zIndex!==void 0?L.zIndex+1:void 0,image:Xe}))},Zj=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function cet(e){var t=d.useState({}),n=Te(t,2),r=n[0],i=n[1],a=d.useCallback(function(s,l){return i(function(c){return q(q({},c),{},ne({},s,l))}),function(){i(function(c){var u=q({},c);return delete u[s],u})}},[]),o=d.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(lt(Zj)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,r]);return[o,a,!!e]}var uet=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],det=["src"],fet=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,a=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,u=t.fallback,f=Kt(c)==="object"?c:{},p=f.visible,h=f.onVisibleChange,m=f.getContainer,g=f.current,v=f.movable,y=f.minScale,w=f.maxScale,b=f.countRender,C=f.closeIcon,k=f.onChange,S=f.onTransform,_=f.toolbarRender,E=f.imageRender,$=Ht(f,uet),M=cet(l),P=Te(M,3),R=P[0],O=P[1],j=P[2],I=In(0,{value:g}),A=Te(I,2),N=A[0],F=A[1],K=d.useState(!1),L=Te(K,2),V=L[0],B=L[1],U=((n=R[N])===null||n===void 0?void 0:n.data)||{},Y=U.src,ee=Ht(U,det),ie=In(!!p,{value:p,onChange:function(Ce,be){h==null||h(Ce,be,N)}}),Z=Te(ie,2),X=Z[0],ae=Z[1],oe=d.useState(null),le=Te(oe,2),ce=le[0],pe=le[1],me=d.useCallback(function($e,Ce,be,Se){var we=j?R.findIndex(function(se){return se.data.src===Ce}):R.findIndex(function(se){return se.id===$e});F(we<0?0:we),ae(!0),pe({x:be,y:Se}),B(!0)},[R,j]);d.useEffect(function(){X?V||F(0):B(!1)},[X]);var re=function(Ce,be){F(Ce),k==null||k(Ce,be)},fe=function(){ae(!1),pe(null)},ve=d.useMemo(function(){return{register:O,onPreview:me}},[O,me]);return d.createElement(I4.Provider,{value:ve},a,d.createElement(F1e,tt({"aria-hidden":!X,movable:v,visible:X,prefixCls:i,closeIcon:C,onClose:fe,mousePosition:ce,imgCommonProps:ee,src:Y,fallback:u,icons:s,minScale:y,maxScale:w,getContainer:m,current:N,count:R.length,countRender:b,onTransform:S,toolbarRender:_,imageRender:E,onChange:re},$)))},QX=0;function pet(e,t){var n=d.useState(function(){return QX+=1,String(QX)}),r=Te(n,1),i=r[0],a=d.useContext(I4),o={data:t,canPreview:e};return d.useEffect(function(){if(a)return a.register(i,o)},[]),d.useEffect(function(){a&&a.register(i,o)},[e,t]),i}var het=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],met=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ez=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,o=a===void 0?"rc-image":a,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,p=t.height,h=t.style,m=t.preview,g=m===void 0?!0:m,v=t.className,y=t.onClick,w=t.onError,b=t.wrapperClassName,C=t.wrapperStyle,k=t.rootClassName,S=Ht(t,het),_=c&&c!==!0,E=Kt(g)==="object"?g:{},$=E.src,M=E.visible,P=M===void 0?void 0:M,R=E.onVisibleChange,O=R===void 0?i:R,j=E.getContainer,I=j===void 0?void 0:j,A=E.mask,N=E.maskClassName,F=E.movable,K=E.icons,L=E.scaleStep,V=E.minScale,B=E.maxScale,U=E.imageRender,Y=E.toolbarRender,ee=Ht(E,met),ie=$??n,Z=In(!!P,{value:P,onChange:O}),X=Te(Z,2),ae=X[0],oe=X[1],le=D1e({src:n,isCustomPlaceholder:_,fallback:u}),ce=Te(le,3),pe=ce[0],me=ce[1],re=ce[2],fe=d.useState(null),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=d.useContext(I4),Se=!!g,we=function(){oe(!1),Ce(null)},se=Ee(o,b,k,ne({},"".concat(o,"-error"),re==="error")),ye=d.useMemo(function(){var G={};return Zj.forEach(function(de){t[de]!==void 0&&(G[de]=t[de])}),G},Zj.map(function(G){return t[G]})),Oe=d.useMemo(function(){return q(q({},ye),{},{src:ie})},[ie,ye]),z=pet(Se,Oe),H=function(de){var xe=ZJe(de.target),he=xe.left,Ue=xe.top;be?be.onPreview(z,ie,he,Ue):(Ce({x:he,y:Ue}),oe(!0)),y==null||y(de)};return d.createElement(d.Fragment,null,d.createElement("div",tt({},S,{className:se,onClick:Se?H:y,style:q({width:f,height:p},C)}),d.createElement("img",tt({},ye,{className:Ee("".concat(o,"-img"),ne({},"".concat(o,"-img-placeholder"),c===!0),v),style:q({height:p},h),ref:pe},me,{width:f,height:p,onError:w})),re==="loading"&&d.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),A&&Se&&d.createElement("div",{className:Ee("".concat(o,"-mask"),N),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},A)),!be&&Se&&d.createElement(F1e,tt({"aria-hidden":!ae,visible:ae,prefixCls:l,onClose:we,mousePosition:$e,src:ie,alt:r,imageInfo:{width:f,height:p},fallback:u,getContainer:I,icons:K,movable:F,scaleStep:L,minScale:V,maxScale:B,rootClassName:k,imageRender:U,imgCommonProps:ye,toolbarRender:Y},ee)))};ez.PreviewGroup=fet;var get={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},vet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:get}))},yet=d.forwardRef(vet),bet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},wet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:bet}))},xet=d.forwardRef(wet),Cet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},_et=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Cet}))},JX=d.forwardRef(_et),ket={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Eet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:ket}))},$et=d.forwardRef(Eet),Met={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Tet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Met}))},Pet=d.forwardRef(Tet);const Qj=e=>({position:e||"absolute",inset:0}),Oet=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new ur("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},ao),{padding:`0 ${Me(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},Ret=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:a,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,p=new ur(n).setA(.1),h=p.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Me(o)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Iet=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new ur(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},jet=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Qj()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Qj()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Ret(e),Iet(e)]}]},Net=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Oet(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Qj())}}},Aet=e=>{const{previewCls:t}=e;return{[`${t}-root`]:_y(e,"zoom"),"&":eB(e,!0)}},Det=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ur(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new ur(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new ur(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),L1e=Jn("Image",e=>{const t=`${e.componentCls}-preview`,n=Hn(e,{previewCls:t,modalMaskBg:new ur("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Net(n),jet(n),Zpe(Hn(n,{componentCls:t})),Aet(n)]},Det);var Fet=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=Fet(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=d.useContext(Xt),a=i("image",t),o=`${a}-preview`,s=i(),l=qr(a),[c,u,f]=L1e(a,l),[p]=$c("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=d.useMemo(()=>{var m;if(n===!1)return n;const g=typeof n=="object"?n:{},v=Ee(u,f,l,(m=g.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},g),{transitionName:oo(s,"zoom",g.transitionName),maskTransitionName:oo(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:p})},[n]);return c(d.createElement(ez.PreviewGroup,Object.assign({preview:h,previewPrefixCls:o,icons:B1e},r)))};var eZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:o}=e,s=eZ(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Us,getPopupContainer:u,image:f}=d.useContext(Xt),p=l("image",n),h=l(),m=c.Image||Us.Image,g=qr(p),[v,y,w]=L1e(p,g),b=Ee(a,y,w,g),C=Ee(i,y,f==null?void 0:f.className),[k]=$c("ImagePreview",typeof r=="object"?r.zIndex:void 0),S=d.useMemo(()=>{var E;if(r===!1)return r;const $=typeof r=="object"?r:{},{getContainer:M,closeIcon:P,rootClassName:R}=$,O=eZ($,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:d.createElement("div",{className:`${p}-mask-info`},d.createElement(V8,null),m==null?void 0:m.preview),icons:B1e},O),{rootClassName:Ee(b,R),getContainer:M??u,transitionName:oo(h,"zoom",$.transitionName),maskTransitionName:oo(h,"fade",$.maskTransitionName),zIndex:k,closeIcon:P??((E=f==null?void 0:f.preview)===null||E===void 0?void 0:E.closeIcon)})},[r,m,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),_=Object.assign(Object.assign({},f==null?void 0:f.style),o);return v(d.createElement(ez,Object.assign({prefixCls:p,preview:S,rootClassName:b,className:C,style:_},s)))};z1e.PreviewGroup=Let;function Bet(e,t,n){return typeof n=="boolean"?n:e.length?!0:Xi(t).some(i=>i.type===dme)}var H1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((o,s)=>d.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const tz=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=H1e(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(Xt),l=s("layout",n),[c,u,f]=ume(l),p=r?`${l}-${r}`:l;return c(d.createElement(a,Object.assign({className:Ee(n||p,i,u,f),ref:t},o)))}),zet=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(Xt),[r,i]=d.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,p=H1e(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=$r(p,["suffixCls"]),{getPrefixCls:m,layout:g}=d.useContext(Xt),v=m("layout",a),y=Bet(r,l,c),[w,b,C]=ume(v),k=Ee(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,o,s,b,C),S=d.useMemo(()=>({siderHook:{addSider:_=>{i(E=>[].concat(lt(E),[_]))},removeSider:_=>{i(E=>E.filter($=>$!==_))}}}),[]);return w(d.createElement(sme.Provider,{value:S},d.createElement(u,Object.assign({ref:t,className:k,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},h),l)))}),Het=q8({tagName:"div",displayName:"Layout"})(zet),xg=q8({suffixCls:"header",tagName:"header",displayName:"Header"})(tz),Uet=q8({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(tz),Wet=q8({suffixCls:"content",tagName:"main",displayName:"Content"})(tz),Qn=Het;Qn.Header=xg;Qn.Footer=Uet;Qn.Content=Wet;Qn.Sider=dme;Qn._InternalSiderContext=E8;const Vet=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var qet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ket=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:qet}))},tZ=d.forwardRef(Ket),Get={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Yet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Get}))},nZ=d.forwardRef(Yet),U1e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Xet=[10,20,50,100],Zet=function(t){var n=t.pageSizeOptions,r=n===void 0?Xet:n,i=t.locale,a=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,p=t.showSizeChanger,h=t.sizeChangerRender,m=te.useState(""),g=Te(m,2),v=g[0],y=g[1],w=function(){return!v||Number.isNaN(v)?void 0:Number(v)},b=typeof f=="function"?f:function(R){return"".concat(R," ").concat(i.items_per_page)},C=function(O){y(O.target.value)},k=function(O){s||v===""||(y(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(w())))},S=function(O){v!==""&&(O.keyCode===mt.ENTER||O.type==="click")&&(y(""),l==null||l(w()))},_=function(){return r.some(function(O){return O.toString()===o.toString()})?r:r.concat([o]).sort(function(O,j){var I=Number.isNaN(Number(O))?0:Number(O),A=Number.isNaN(Number(j))?0:Number(j);return I-A})},E="".concat(c,"-options");if(!p&&!l)return null;var $=null,M=null,P=null;return p&&h&&($=h({disabled:u,size:o,onSizeChange:function(O){a==null||a(Number(O))},"aria-label":i.page_size,className:"".concat(E,"-size-changer"),options:_().map(function(R){return{label:b(R),value:R}})})),l&&(s&&(P=typeof s=="boolean"?te.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:u,className:"".concat(E,"-quick-jumper-button")},i.jump_to_confirm):te.createElement("span",{onClick:S,onKeyUp:S},s)),M=te.createElement("div",{className:"".concat(E,"-quick-jumper")},i.jump_to,te.createElement("input",{disabled:u,type:"text",value:v,onChange:C,onKeyUp:S,onBlur:k,"aria-label":i.page}),i.page,P)),te.createElement("li",{className:E},$,M)},Lb=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,o=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),p=Ee(f,"".concat(f,"-").concat(i),(n={},ne(n,"".concat(f,"-active"),a),ne(n,"".concat(f,"-disabled"),!i),n),o),h=function(){l(i)},m=function(y){c(y,l,i)},g=u(i,"page",te.createElement("a",{rel:"nofollow"},i));return g?te.createElement("li",{title:s?String(i):null,className:p,onClick:h,onKeyDown:m,tabIndex:0},g):null},Qet=function(t,n,r){return r};function rZ(){}function iZ(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Yh(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Jet=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,p=f===void 0?0:f,h=t.pageSize,m=t.defaultPageSize,g=m===void 0?10:m,v=t.onChange,y=v===void 0?rZ:v,w=t.hideOnSinglePage,b=t.align,C=t.showPrevNextJumpers,k=C===void 0?!0:C,S=t.showQuickJumper,_=t.showLessItems,E=t.showTitle,$=E===void 0?!0:E,M=t.onShowSizeChange,P=M===void 0?rZ:M,R=t.locale,O=R===void 0?U1e:R,j=t.style,I=t.totalBoundaryShowSizeChanger,A=I===void 0?50:I,N=t.disabled,F=t.simple,K=t.showTotal,L=t.showSizeChanger,V=L===void 0?p>A:L,B=t.sizeChangerRender,U=t.pageSizeOptions,Y=t.itemRender,ee=Y===void 0?Qet:Y,ie=t.jumpPrevIcon,Z=t.jumpNextIcon,X=t.prevIcon,ae=t.nextIcon,oe=te.useRef(null),le=In(10,{value:h,defaultValue:g}),ce=Te(le,2),pe=ce[0],me=ce[1],re=In(1,{value:l,defaultValue:u,postState:function(J){return Math.max(1,Math.min(J,Yh(void 0,pe,p)))}}),fe=Te(re,2),ve=fe[0],$e=fe[1],Ce=te.useState(ve),be=Te(Ce,2),Se=be[0],we=be[1];d.useEffect(function(){we(ve)},[ve]);var se=Math.max(1,ve-(_?3:5)),ye=Math.min(Yh(void 0,pe,p),ve+(_?3:5));function Oe(D,J){var ke=D||te.createElement("button",{type:"button","aria-label":J,className:"".concat(i,"-item-link")});return typeof D=="function"&&(ke=te.createElement(D,q({},t))),ke}function z(D){var J=D.target.value,ke=Yh(void 0,pe,p),Ie;return J===""?Ie=J:Number.isNaN(Number(J))?Ie=Se:J>=ke?Ie=ke:Ie=Number(J),Ie}function H(D){return iZ(D)&&D!==ve&&iZ(p)&&p>0}var G=p>pe?S:!1;function de(D){(D.keyCode===mt.UP||D.keyCode===mt.DOWN)&&D.preventDefault()}function xe(D){var J=z(D);switch(J!==Se&&we(J),D.keyCode){case mt.ENTER:We(J);break;case mt.UP:We(J-1);break;case mt.DOWN:We(J+1);break}}function he(D){We(z(D))}function Ue(D){var J=Yh(D,pe,p),ke=ve>J&&J!==0?J:ve;me(D),we(ke),P==null||P(ve,D),$e(ke),y==null||y(ke,D)}function We(D){if(H(D)&&!N){var J=Yh(void 0,pe,p),ke=D;return D>J?ke=J:D<1&&(ke=1),ke!==Se&&we(ke),$e(ke),y==null||y(ke,pe),ke}return ve}var ge=ve>1,ze=ve2?ke-2:0),it=2;itp?p:ve*pe])),He=null,Le=Yh(void 0,pe,p);if(w&&p<=pe)return null;var Je=[],pt={rootPrefixCls:i,onClick:We,onKeyPress:qe,showTitle:$,itemRender:ee,page:-1},xt=ve-1>0?ve-1:0,Nt=ve+1=kt*2&&ve!==3&&(Je[0]=te.cloneElement(Je[0],{className:Ee("".concat(i,"-item-after-jump-prev"),Je[0].props.className)}),Je.unshift(Bt)),Le-ve>=kt*2&&ve!==Le-2){var It=Je[Je.length-1];Je[Je.length-1]=te.cloneElement(It,{className:Ee("".concat(i,"-item-before-jump-next"),It.props.className)}),Je.push(He)}Ye!==1&&Je.unshift(te.createElement(Lb,tt({},pt,{key:1,page:1}))),ot!==Le&&Je.push(te.createElement(Lb,tt({},pt,{key:Le,page:Le})))}var rt=nt(xt);if(rt){var $t=!ge||!Le;rt=te.createElement("li",{title:$?O.prev_page:null,onClick:Ve,tabIndex:$t?null:0,onKeyDown:Et,className:Ee("".concat(i,"-prev"),ne({},"".concat(i,"-disabled"),$t)),"aria-disabled":$t},rt)}var Mt=jt(Nt);if(Mt){var dn,pn;F?(dn=!ze,pn=ge?0:null):(dn=!ze||!Le,pn=dn?null:0),Mt=te.createElement("li",{title:$?O.next_page:null,onClick:Be,tabIndex:pn,onKeyDown:ut,className:Ee("".concat(i,"-next"),ne({},"".concat(i,"-disabled"),dn)),"aria-disabled":dn},Mt)}var T=Ee(i,s,(n={},ne(n,"".concat(i,"-start"),b==="start"),ne(n,"".concat(i,"-center"),b==="center"),ne(n,"".concat(i,"-end"),b==="end"),ne(n,"".concat(i,"-simple"),F),ne(n,"".concat(i,"-disabled"),N),n));return te.createElement("ul",tt({className:T,style:j,ref:oe},Ut),Ne,rt,F?Ct:Je,Mt,te.createElement(Zet,{locale:O,rootPrefixCls:i,disabled:N,selectPrefixCls:o,changeSize:Ue,pageSize:pe,pageSizeOptions:U,quickGo:G?We:null,goButton:st,showSizeChanger:V,sizeChangerRender:B}))};const ett=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ttt=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Me(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + ${n}-col-xl-24${t}-label`]:Jc(e),[`@media (max-width: ${Me(e.screenXSMax)})`]:[k1e(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Jc(e)}}],[`@media (max-width: ${Me(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Jc(e)}},[`@media (max-width: ${Me(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Jc(e)}},[`@media (max-width: ${Me(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Jc(e)}}}},wJe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),E1e=(e,t)=>Hn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),JB=Jn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=E1e(e,n);return[mJe(r),gJe(r),pJe(r),qX(r,r.componentCls),qX(r,r.formItemCls),vJe(r),yJe(r),bJe(r),x4(r),tB]},wJe,{order:-1e3}),KX=[];function rT(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const $1e=e=>{let{help:t,helpStatus:n,errors:r=KX,warnings:i=KX,className:a,fieldId:o,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(uB),c=`${l}-item-explain`,u=qr(l),[f,p,h]=JB(l,u),m=d.useMemo(()=>P0(l),[l]),g=k6(r),v=k6(i),y=d.useMemo(()=>t!=null?[rT(t,"help",n)]:[].concat(lt(g.map((C,k)=>rT(C,"error","error",k))),lt(v.map((C,k)=>rT(C,"warning","warning",k)))),[t,n,g,v]),w=d.useMemo(()=>{const C={};return y.forEach(k=>{let{key:S}=k;C[S]=(C[S]||0)+1}),y.map((k,S)=>Object.assign(Object.assign({},k),{key:C[k.key]>1?`${k.key}-fallback-${S}`:k.key}))},[y]),b={};return o&&(b.id=`${o}_help`),f(d.createElement(Ca,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!w.length,onVisibleChanged:s},C=>{const{className:k,style:S}=C;return d.createElement("div",Object.assign({},b,{className:Ee(c,k,h,u,a,p),style:S,role:"alert"}),d.createElement(ZE,Object.assign({keys:w},P0(l),{motionName:`${l}-show-help-item`,component:!1}),_=>{const{key:E,error:$,errorStatus:M,className:P,style:R}=_;return d.createElement("div",{key:E,className:Ee(P,{[`${c}-${M}`]:M}),style:R},$)}))}))},xJe=["parentNode"],SJe="form_item";function ew(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function M1e(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:xJe.includes(n)?`${SJe}_${n}`:n}function T1e(e,t,n,r,i,a){let o=r;return a!==void 0?o=a:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function GX(e){return ew(e).join("_")}function YX(e,t){const n=t.getFieldInstance(e),r=_de(n);if(r)return r;const i=M1e(ew(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function P1e(e){const[t]=cB(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const o=GX(i);a?n.current[o]=a:delete n.current[o]}},scrollToField:function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=YX(i,r);o&&HAe(o,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:i=>{var a;const o=YX(i,r);o&&((a=o.focus)===null||a===void 0||a.call(o))},getFieldInstance:i=>{const a=GX(i);return n.current[a]}}),[e,t]);return[r]}var CJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(ma),{getPrefixCls:r,direction:i,form:a}=d.useContext(Xt),{prefixCls:o,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:p,labelAlign:h,labelWrap:m,labelCol:g,wrapperCol:v,hideRequiredMark:y,layout:w="horizontal",scrollToFirstError:b,requiredMark:C,onFinishFailed:k,name:S,style:_,feedbackIcons:E,variant:$}=e,M=CJe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=Bi(c),R=d.useContext(pfe),O=d.useMemo(()=>C!==void 0?C:y?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[y,C,a]),j=p??(a==null?void 0:a.colon),I=r("form",o),A=qr(I),[N,F,K]=JB(I,A),L=Ee(I,`${I}-${w}`,{[`${I}-hide-required-mark`]:O===!1,[`${I}-rtl`]:i==="rtl",[`${I}-${P}`]:P},K,A,F,a==null?void 0:a.className,s,l),[V]=P1e(f),{__INTERNAL__:B}=V;B.name=S;const U=d.useMemo(()=>({name:S,labelAlign:h,labelCol:g,labelWrap:m,wrapperCol:v,vertical:w==="vertical",colon:j,requiredMark:O,itemRef:B.itemRef,form:V,feedbackIcons:E}),[S,h,g,v,w,j,O,V,E]),Y=d.useRef(null);d.useImperativeHandle(t,()=>{var Z;return Object.assign(Object.assign({},V),{nativeElement:(Z=Y.current)===null||Z===void 0?void 0:Z.nativeElement})});const ee=(Z,X)=>{if(Z){let ae={block:"nearest"};typeof Z=="object"&&(ae=Object.assign(Object.assign({},ae),Z)),V.scrollToField(X,ae),ae.focus&&V.focusField(X)}},ie=Z=>{if(k==null||k(Z),Z.errorFields.length){const X=Z.errorFields[0].name;if(b!==void 0){ee(b,X);return}a&&a.scrollToFirstError!==void 0&&ee(a.scrollToFirstError,X)}};return N(d.createElement(Wpe.Provider,{value:$},d.createElement(UL,{disabled:u},d.createElement(hg.Provider,{value:P},d.createElement(Upe,{validateMessages:R},d.createElement(jf.Provider,{value:U},d.createElement(ky,Object.assign({id:S},M,{name:S,onFinishFailed:ie,form:V,ref:Y,style:Object.assign(Object.assign({},a==null?void 0:a.style),_),className:L}))))))))},kJe=d.forwardRef(_Je);function EJe(e){if(typeof e=="function")return e;const t=Xi(e);return t.length<=1?t[0]:t}const O1e=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(oa);return{status:e,errors:t,warnings:n}};O1e.Context=oa;function $Je(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),a=d.useRef(!1);d.useEffect(()=>(a.current=!1,()=>{a.current=!0,rr.cancel(r.current),r.current=null}),[]);function o(s){a.current||(r.current===null&&(i.current=[],r.current=rr(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,o]}function MJe(){const{itemRef:e}=d.useContext(jf),t=d.useRef({});function n(r,i){const a=i&&typeof i=="object"&&bh(i),o=r.join("_");return(t.current.name!==o||t.current.originRef!==a)&&(t.current.name=o,t.current.originRef=a,t.current.ref=ga(e(r),a)),t.current.ref}return n}const TJe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},PJe=Sy(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=E1e(e,n);return[TJe(r)]});var OJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:p,onErrorVisibleChanged:h,label:m}=e,g=`${t}-item`,v=d.useContext(jf),y=d.useMemo(()=>{let j=Object.assign({},i||v.wrapperCol||{});return m===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const N=A?[A]:[],F=Ds(v.labelCol,N),K=typeof F=="object"?F:{},L=Ds(j,N),V=typeof L=="object"?L:{};"span"in K&&!("offset"in V)&&K.spanOJe(v,["labelCol","wrapperCol"]),[v]),C=d.useRef(null),[k,S]=d.useState(0);nr(()=>{c&&C.current?S(C.current.clientHeight):S(0)},[c]);const _=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},a)),E=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),$=p!==null||o.length||s.length?d.createElement(uB.Provider,{value:E},d.createElement($1e,{fieldId:f,errors:o,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:h})):null,M={};f&&(M.id=`${f}_extra`);const P=c?d.createElement("div",Object.assign({},M,{className:`${g}-extra`,ref:C}),c):null,R=$||P?d.createElement("div",{className:`${g}-additional`,style:p?{minHeight:p+k}:{}},$,P):null,O=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:_,errorList:$,extra:P}):d.createElement(d.Fragment,null,_,R);return d.createElement(jf.Provider,{value:b},d.createElement(D0,Object.assign({},y,{className:w}),O),d.createElement(PJe,{prefixCls:t}))};var jJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},NJe=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:jJe}))},AJe=d.forwardRef(NJe),DJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:o,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[p]=Ga("Form"),{labelAlign:h,labelCol:m,labelWrap:g,colon:v}=d.useContext(jf);if(!n)return null;const y=i||m||{},w=a||h,b=`${t}-item-label`,C=Ee(b,w==="left"&&`${b}-left`,y.className,{[`${b}-wrap`]:!!g});let k=n;const S=o===!0||v!==!1&&o!==!1;S&&!u&&typeof n=="string"&&n.trim()&&(k=n.replace(/[:|:]\s*$/,""));const E=FJe(c);if(E){const{icon:R=d.createElement(AJe,null)}=E,O=DJe(E,["icon"]),j=d.createElement(_a,Object.assign({},O),d.cloneElement(R,{className:`${t}-item-tooltip`,title:"",onClick:I=>{I.preventDefault()},tabIndex:null}));k=d.createElement(d.Fragment,null,k,j)}const $=l==="optional",M=typeof l=="function";M?k=l(k,{required:!!s}):$&&!s&&(k=d.createElement(d.Fragment,null,k,d.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=Us.Form)===null||f===void 0?void 0:f.optional))));const P=Ee({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:$||M,[`${t}-item-no-colon`]:!S});return d.createElement(D0,Object.assign({},y,{className:C}),d.createElement("label",{htmlFor:r,className:P,title:typeof n=="string"?n:""},k))},BJe={success:Ug,warning:qf,error:Pd,validating:vu};function R1e(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:o,meta:s,noStyle:l}=e;const c=`${o}-item`,{feedbackIcons:u}=d.useContext(jf),f=T1e(n,r,s,null,!!i,a),{isFormItemInput:p,status:h,hasFeedback:m,feedbackIcon:g}=d.useContext(oa),v=d.useMemo(()=>{var y;let w;if(i){const C=i!==!0&&i.icons||u,k=f&&((y=C==null?void 0:C({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),S=f&&BJe[f];w=k!==!1&&S?d.createElement("span",{className:Ee(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},k||d.createElement(S,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:w,isFormItemInput:!0};return l&&(b.status=(f??h)||"",b.isFormItemInput=p,b.hasFeedback=!!(i??m),b.feedbackIcon=i!==void 0?b.feedbackIcon:g),b},[f,i,l,p,h]);return d.createElement(oa.Provider,{value:v},t)}var zJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(P&&_.current){const K=getComputedStyle(_.current);j(parseInt(K.marginBottom,10))}},[P,R]);const I=K=>{K||j(null)},N=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const L=K?E:c.errors,V=K?$:c.warnings;return T1e(L,V,c,"",!!u,l)}(),F=Ee(b,n,r,{[`${b}-with-help`]:M||E.length||$.length,[`${b}-has-feedback`]:N&&u,[`${b}-has-success`]:N==="success",[`${b}-has-warning`]:N==="warning",[`${b}-has-error`]:N==="error",[`${b}-is-validating`]:N==="validating",[`${b}-hidden`]:f,[`${b}-${y}`]:y});return d.createElement("div",{className:F,style:i,ref:_},d.createElement(z8,Object.assign({className:`${b}-row`},$r(w,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(LJe,Object.assign({htmlFor:h},e,{requiredMark:C,required:m??g,prefixCls:t,vertical:S})),d.createElement(IJe,Object.assign({},e,c,{errors:E,warnings:$,prefixCls:t,status:N,help:a,marginBottom:O,onErrorVisibleChanged:I}),d.createElement(Hpe.Provider,{value:v},d.createElement(R1e,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:N},p)))),!!O&&d.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-O}}))}const UJe="__SPLIT__";function WJe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],o=t[i];return a===o||typeof a=="function"||typeof o=="function"})}const VJe=d.memo(e=>{let{children:t}=e;return t},(e,t)=>WJe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function XX(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function qJe(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:p="onChange",validateTrigger:h,hidden:m,help:g,layout:v}=e,{getPrefixCls:y}=d.useContext(Xt),{name:w}=d.useContext(jf),b=EJe(l),C=typeof b=="function",k=d.useContext(Hpe),{validateTrigger:S}=d.useContext(ph),_=h!==void 0?h:S,E=t!=null,$=y("form",a),M=qr($),[P,R,O]=JB($,M);Hg();const j=d.useContext(r3),I=d.useRef(null),[A,N]=$Je({}),[F,K]=gg(()=>XX()),L=Z=>{const X=j==null?void 0:j.getKey(Z.name);if(K(Z.destroy?XX():Z,!0),n&&g!==!1&&k){let ae=Z.name;if(Z.destroy)ae=I.current||ae;else if(X!==void 0){const[oe,le]=X;ae=[oe].concat(lt(le)),I.current=ae}k(Z,ae)}},V=(Z,X)=>{N(ae=>{const oe=Object.assign({},ae),ce=[].concat(lt(Z.name.slice(0,-1)),lt(X)).join(UJe);return Z.destroy?delete oe[ce]:oe[ce]=Z,oe})},[B,U]=d.useMemo(()=>{const Z=lt(F.errors),X=lt(F.warnings);return Object.values(A).forEach(ae=>{Z.push.apply(Z,lt(ae.errors||[])),X.push.apply(X,lt(ae.warnings||[]))}),[Z,X]},[A,F.errors,F.warnings]),Y=MJe();function ee(Z,X,ae){return n&&!m?d.createElement(R1e,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:B,warnings:U,noStyle:!0},Z):d.createElement(HJe,Object.assign({key:"row"},e,{className:Ee(r,O,M,R),prefixCls:$,fieldId:X,isRequired:ae,errors:B,warnings:U,meta:F,onSubItemMetaChange:V,layout:v}),Z)}if(!E&&!C&&!i)return P(ee(b));let ie={};return typeof u=="string"?ie.label=u:t&&(ie.label=String(t)),f&&(ie=Object.assign(Object.assign({},ie),f)),P(d.createElement(lB,Object.assign({},e,{messageVariables:ie,trigger:p,validateTrigger:_,onMetaChange:L}),(Z,X,ae)=>{const oe=ew(t).length&&X?X.name:[],le=M1e(oe,w),ce=c!==void 0?c:!!(s!=null&&s.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const fe=re(ae);return(fe==null?void 0:fe.required)&&!(fe!=null&&fe.warningOnly)}return!1})),pe=Object.assign({},Z);let me=null;if(Array.isArray(b)&&E)me=b;else if(!(C&&(!(o||i)||E))){if(!(i&&!C&&!E))if(d.isValidElement(b)){const re=Object.assign(Object.assign({},b.props),pe);if(re.id||(re.id=le),g||B.length>0||U.length>0||e.extra){const $e=[];(g||B.length>0)&&$e.push(`${le}_help`),e.extra&&$e.push(`${le}_extra`),re["aria-describedby"]=$e.join(" ")}B.length>0&&(re["aria-invalid"]="true"),ce&&(re["aria-required"]="true"),Vf(b)&&(re.ref=Y(oe,b)),new Set([].concat(lt(ew(p)),lt(ew(_)))).forEach($e=>{re[$e]=function(){for(var Ce,be,Se,we,se,ye=arguments.length,Oe=new Array(ye),z=0;z{var{prefixCls:t,children:n}=e,r=KJe(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(Xt),a=i("form",t),o=d.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return d.createElement(Fpe,Object.assign({},r),(s,l,c)=>d.createElement(uB.Provider,{value:o},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function YJe(){const{form:e}=d.useContext(jf);return e}const Zi=kJe;Zi.Item=I1e;Zi.List=GJe;Zi.ErrorList=$1e;Zi.useForm=P1e;Zi.useFormInstance=YJe;Zi.useWatch=zpe;Zi.Provider=Upe;Zi.create=()=>{};function j1e(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function XJe(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function bv(e,t,n,r){var i=ig.unstable_batchedUpdates?function(o){ig.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var R4=d.createContext(null),ZJe=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,p=t.transform,h=t.count,m=t.scale,g=t.minScale,v=t.maxScale,y=t.closeIcon,w=t.onActive,b=t.onClose,C=t.onZoomIn,k=t.onZoomOut,S=t.onRotateRight,_=t.onRotateLeft,E=t.onFlipX,$=t.onFlipY,M=t.onReset,P=t.toolbarRender,R=t.zIndex,O=t.image,j=d.useContext(R4),I=s.rotateLeft,A=s.rotateRight,N=s.zoomIn,F=s.zoomOut,K=s.close,L=s.left,V=s.right,B=s.flipX,U=s.flipY,Y="".concat(a,"-operations-operation");d.useEffect(function(){var fe=function($e){$e.keyCode===mt.ESC&&b()};return n&&window.addEventListener("keydown",fe),function(){window.removeEventListener("keydown",fe)}},[n]);var ee=function(ve,$e){ve.preventDefault(),ve.stopPropagation(),w($e)},ie=d.useCallback(function(fe){var ve=fe.type,$e=fe.disabled,Ce=fe.onClick,be=fe.icon;return d.createElement("div",{key:ve,className:Ee(Y,"".concat(a,"-operations-operation-").concat(ve),ne({},"".concat(a,"-operations-operation-disabled"),!!$e)),onClick:Ce},be)},[Y,a]),Z=c?ie({icon:L,onClick:function(ve){return ee(ve,-1)},type:"prev",disabled:f===0}):void 0,X=c?ie({icon:V,onClick:function(ve){return ee(ve,1)},type:"next",disabled:f===h-1}):void 0,ae=ie({icon:U,onClick:$,type:"flipY"}),oe=ie({icon:B,onClick:E,type:"flipX"}),le=ie({icon:I,onClick:_,type:"rotateLeft"}),ce=ie({icon:A,onClick:S,type:"rotateRight"}),pe=ie({icon:F,onClick:k,type:"zoomOut",disabled:m<=g}),me=ie({icon:N,onClick:C,type:"zoomIn",disabled:m===v}),re=d.createElement("div",{className:"".concat(a,"-operations")},ae,oe,le,ce,pe,me);return d.createElement(Ca,{visible:n,motionName:r},function(fe){var ve=fe.className,$e=fe.style;return d.createElement(C4,{open:!0,getContainer:i??document.body},d.createElement("div",{className:Ee("".concat(a,"-operations-wrapper"),ve,o),style:q(q({},$e),{},{zIndex:R})},y===null?null:d.createElement("button",{className:"".concat(a,"-close"),onClick:b},y||K),c&&d.createElement(d.Fragment,null,d.createElement("div",{className:Ee("".concat(a,"-switch-left"),ne({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(be){return ee(be,-1)}},L),d.createElement("div",{className:Ee("".concat(a,"-switch-right"),ne({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:function(be){return ee(be,1)}},V)),d.createElement("div",{className:"".concat(a,"-footer")},u&&d.createElement("div",{className:"".concat(a,"-progress")},l?l(f+1,h):"".concat(f+1," / ").concat(h)),P?P(re,q(q({icons:{prevIcon:Z,nextIcon:X,flipYIcon:ae,flipXIcon:oe,rotateLeftIcon:le,rotateRightIcon:ce,zoomOutIcon:pe,zoomInIcon:me},actions:{onActive:w,onFlipY:$,onFlipX:E,onRotateLeft:_,onRotateRight:S,onZoomOut:k,onZoomIn:C,onReset:M,onClose:b},transform:p},j?{current:f,total:h}:{}),{},{image:O})):re)))})},MS={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function QJe(e,t,n,r){var i=d.useRef(null),a=d.useRef([]),o=d.useState(MS),s=Te(o,2),l=s[0],c=s[1],u=function(m){c(MS),mg(MS,l)||r==null||r({transform:MS,action:m})},f=function(m,g){i.current===null&&(a.current=[],i.current=rr(function(){c(function(v){var y=v;return a.current.forEach(function(w){y=q(q({},y),w)}),i.current=null,r==null||r({transform:y,action:g}),y})})),a.current.push(q(q({},l),m))},p=function(m,g,v,y,w){var b=e.current,C=b.width,k=b.height,S=b.offsetWidth,_=b.offsetHeight,E=b.offsetLeft,$=b.offsetTop,M=m,P=l.scale*m;P>n?(P=n,M=n/l.scale):Pr){if(t>0)return ne({},e,a);if(t<0&&ir)return ne({},e,t<0?a:-a);return{}}function N1e(e,t,n,r){var i=j1e(),a=i.width,o=i.height,s=null;return e<=a&&t<=o?s={x:0,y:0}:(e>a||t>o)&&(s=q(q({},ZX("x",n,e,a)),ZX("y",r,t,o))),s}var wv=1,JJe=1;function eet(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),p=Te(f,2),h=p[0],m=p[1],g=d.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(k){!t||k.button!==0||(k.preventDefault(),k.stopPropagation(),g.current={diffX:k.pageX-c,diffY:k.pageY-u,transformX:c,transformY:u},m(!0))},y=function(k){n&&h&&a({x:k.pageX-g.current.diffX,y:k.pageY-g.current.diffY},"move")},w=function(){if(n&&h){m(!1);var k=g.current,S=k.transformX,_=k.transformY,E=c!==S&&u!==_;if(!E)return;var $=e.current.offsetWidth*l,M=e.current.offsetHeight*l,P=e.current.getBoundingClientRect(),R=P.left,O=P.top,j=s%180!==0,I=N1e(j?M:$,j?$:M,R,O);I&&a(q({},I),"dragRebound")}},b=function(k){if(!(!n||k.deltaY==0)){var S=Math.abs(k.deltaY/100),_=Math.min(S,JJe),E=wv+_*r;k.deltaY>0&&(E=wv/E),o(E,"wheel",k.clientX,k.clientY)}};return d.useEffect(function(){var C,k,S,_;if(t){S=bv(window,"mouseup",w,!1),_=bv(window,"mousemove",y,!1);try{window.top!==window.self&&(C=bv(window.top,"mouseup",w,!1),k=bv(window.top,"mousemove",y,!1))}catch{}}return function(){var E,$,M,P;(E=S)===null||E===void 0||E.remove(),($=_)===null||$===void 0||$.remove(),(M=C)===null||M===void 0||M.remove(),(P=k)===null||P===void 0||P.remove()}},[n,h,c,u,s,t]),{isMoving:h,onMouseDown:v,onMouseMove:y,onMouseUp:w,onWheel:b}}function tet(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function A1e(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=d.useState(n?"loading":"normal"),a=Te(i,2),o=a[0],s=a[1],l=d.useRef(!1),c=o==="error";d.useEffect(function(){var h=!0;return tet(t).then(function(m){!m&&h&&s("error")}),function(){h=!1}},[t]),d.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(m){l.current=!1,o==="loading"&&m!==null&&m!==void 0&&m.complete&&(m.naturalWidth||m.naturalHeight)&&(l.current=!0,u())},p=c&&r?{src:r}:{onLoad:u,src:t};return[f,p,o]}function E6(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function net(e,t,n,r){var i=E6(e,n),a=E6(t,r);if(i===0&&a===0)return[e.x,e.y];var o=i/(i+a),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function ret(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),p=Te(f,2),h=p[0],m=p[1],g=d.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(k){g.current=q(q({},g.current),k)},y=function(k){if(t){k.stopPropagation(),m(!0);var S=k.touches,_=S===void 0?[]:S;_.length>1?v({point1:{x:_[0].clientX,y:_[0].clientY},point2:{x:_[1].clientX,y:_[1].clientY},eventType:"touchZoom"}):v({point1:{x:_[0].clientX-c,y:_[0].clientY-u},eventType:"move"})}},w=function(k){var S=k.touches,_=S===void 0?[]:S,E=g.current,$=E.point1,M=E.point2,P=E.eventType;if(_.length>1&&P==="touchZoom"){var R={x:_[0].clientX,y:_[0].clientY},O={x:_[1].clientX,y:_[1].clientY},j=net($,M,R,O),I=Te(j,2),A=I[0],N=I[1],F=E6(R,O)/E6($,M);o(F,"touchZoom",A,N,!0),v({point1:R,point2:O,eventType:"touchZoom"})}else P==="move"&&(a({x:_[0].clientX-$.x,y:_[0].clientY-$.y},"move"),v({eventType:"move"}))},b=function(){if(n){if(h&&m(!1),v({eventType:"none"}),r>l)return a({x:0,y:0,scale:r},"touchZoom");var k=e.current.offsetWidth*l,S=e.current.offsetHeight*l,_=e.current.getBoundingClientRect(),E=_.left,$=_.top,M=s%180!==0,P=N1e(M?S:k,M?k:S,E,$);P&&a(q({},P),"dragRebound")}};return d.useEffect(function(){var C;return n&&t&&(C=bv(window,"touchmove",function(k){return k.preventDefault()},{passive:!1})),function(){var k;(k=C)===null||k===void 0||k.remove()}},[n,t]),{isTouching:h,onTouchStart:y,onTouchMove:w,onTouchEnd:b}}var iet=["fallback","src","imgRef"],aet=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],oet=function(t){var n=t.fallback,r=t.src,i=t.imgRef,a=Ht(t,iet),o=A1e({src:r,fallback:n}),s=Te(o,2),l=s[0],c=s[1];return te.createElement("img",tt({ref:function(f){i.current=f,l(f)}},a,c))},D1e=function(t){var n=t.prefixCls,r=t.src,i=t.alt,a=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,p=f===void 0?{}:f,h=t.rootClassName,m=t.closeIcon,g=t.getContainer,v=t.current,y=v===void 0?0:v,w=t.count,b=w===void 0?1:w,C=t.countRender,k=t.scaleStep,S=k===void 0?.5:k,_=t.minScale,E=_===void 0?1:_,$=t.maxScale,M=$===void 0?50:$,P=t.transitionName,R=P===void 0?"zoom":P,O=t.maskTransitionName,j=O===void 0?"fade":O,I=t.imageRender,A=t.imgCommonProps,N=t.toolbarRender,F=t.onTransform,K=t.onChange,L=Ht(t,aet),V=d.useRef(),B=d.useContext(R4),U=B&&b>1,Y=B&&b>=1,ee=d.useState(!0),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=QJe(V,E,M,F),oe=ae.transform,le=ae.resetTransform,ce=ae.updateTransform,pe=ae.dispatchZoomChange,me=eet(V,l,u,S,oe,ce,pe),re=me.isMoving,fe=me.onMouseDown,ve=me.onWheel,$e=ret(V,l,u,E,oe,ce,pe),Ce=$e.isTouching,be=$e.onTouchStart,Se=$e.onTouchMove,we=$e.onTouchEnd,se=oe.rotate,ye=oe.scale,Oe=Ee(ne({},"".concat(n,"-moving"),re));d.useEffect(function(){Z||X(!0)},[Z]);var z=function(){le("close")},H=function(){pe(wv+S,"zoomIn")},G=function(){pe(wv/(wv+S),"zoomOut")},de=function(){ce({rotate:se+90},"rotateRight")},xe=function(){ce({rotate:se-90},"rotateLeft")},he=function(){ce({flipX:!oe.flipX},"flipX")},Ue=function(){ce({flipY:!oe.flipY},"flipY")},We=function(){le("reset")},ge=function(qe){var Et=y+qe;!Number.isInteger(Et)||Et<0||Et>b-1||(X(!1),le(qe<0?"prev":"next"),K==null||K(Et,y))},ze=function(qe){!u||!U||(qe.keyCode===mt.LEFT?ge(-1):qe.keyCode===mt.RIGHT&&ge(1))},Ve=function(qe){u&&(ye!==1?ce({x:0,y:0,scale:1},"doubleClick"):pe(wv+S,"doubleClick",qe.clientX,qe.clientY))};d.useEffect(function(){var Ke=bv(window,"keydown",ze,!1);return function(){Ke.remove()}},[u,U,y]);var Be=te.createElement(oet,tt({},A,{width:t.width,height:t.height,imgRef:V,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(oe.x,"px, ").concat(oe.y,"px, 0) scale3d(").concat(oe.flipX?"-":"").concat(ye,", ").concat(oe.flipY?"-":"").concat(ye,", 1) rotate(").concat(se,"deg)"),transitionDuration:(!Z||Ce)&&"0s"},fallback:o,src:r,onWheel:ve,onMouseDown:fe,onDoubleClick:Ve,onTouchStart:be,onTouchMove:Se,onTouchEnd:we,onTouchCancel:we})),Xe=q({url:r,alt:i},a);return te.createElement(te.Fragment,null,te.createElement(oB,tt({transitionName:R,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Oe},rootClassName:h,getContainer:g},L,{afterClose:z}),te.createElement("div",{className:"".concat(n,"-img-wrapper")},I?I(Be,q({transform:oe,image:Xe},B?{current:y}:{})):Be)),te.createElement(ZJe,{visible:u,transform:oe,maskTransitionName:j,closeIcon:m,getContainer:g,prefixCls:n,rootClassName:h,icons:p,countRender:C,showSwitch:U,showProgress:Y,current:y,count:b,scale:ye,minScale:E,maxScale:M,toolbarRender:N,onActive:ge,onZoomIn:H,onZoomOut:G,onRotateRight:de,onRotateLeft:xe,onFlipX:he,onFlipY:Ue,onClose:c,onReset:We,zIndex:L.zIndex!==void 0?L.zIndex+1:void 0,image:Xe}))},Zj=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function set(e){var t=d.useState({}),n=Te(t,2),r=n[0],i=n[1],a=d.useCallback(function(s,l){return i(function(c){return q(q({},c),{},ne({},s,l))}),function(){i(function(c){var u=q({},c);return delete u[s],u})}},[]),o=d.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(lt(Zj)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,r]);return[o,a,!!e]}var cet=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],uet=["src"],det=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,a=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,u=t.fallback,f=Kt(c)==="object"?c:{},p=f.visible,h=f.onVisibleChange,m=f.getContainer,g=f.current,v=f.movable,y=f.minScale,w=f.maxScale,b=f.countRender,C=f.closeIcon,k=f.onChange,S=f.onTransform,_=f.toolbarRender,E=f.imageRender,$=Ht(f,cet),M=set(l),P=Te(M,3),R=P[0],O=P[1],j=P[2],I=In(0,{value:g}),A=Te(I,2),N=A[0],F=A[1],K=d.useState(!1),L=Te(K,2),V=L[0],B=L[1],U=((n=R[N])===null||n===void 0?void 0:n.data)||{},Y=U.src,ee=Ht(U,uet),ie=In(!!p,{value:p,onChange:function(Ce,be){h==null||h(Ce,be,N)}}),Z=Te(ie,2),X=Z[0],ae=Z[1],oe=d.useState(null),le=Te(oe,2),ce=le[0],pe=le[1],me=d.useCallback(function($e,Ce,be,Se){var we=j?R.findIndex(function(se){return se.data.src===Ce}):R.findIndex(function(se){return se.id===$e});F(we<0?0:we),ae(!0),pe({x:be,y:Se}),B(!0)},[R,j]);d.useEffect(function(){X?V||F(0):B(!1)},[X]);var re=function(Ce,be){F(Ce),k==null||k(Ce,be)},fe=function(){ae(!1),pe(null)},ve=d.useMemo(function(){return{register:O,onPreview:me}},[O,me]);return d.createElement(R4.Provider,{value:ve},a,d.createElement(D1e,tt({"aria-hidden":!X,movable:v,visible:X,prefixCls:i,closeIcon:C,onClose:fe,mousePosition:ce,imgCommonProps:ee,src:Y,fallback:u,icons:s,minScale:y,maxScale:w,getContainer:m,current:N,count:R.length,countRender:b,onTransform:S,toolbarRender:_,imageRender:E,onChange:re},$)))},QX=0;function fet(e,t){var n=d.useState(function(){return QX+=1,String(QX)}),r=Te(n,1),i=r[0],a=d.useContext(R4),o={data:t,canPreview:e};return d.useEffect(function(){if(a)return a.register(i,o)},[]),d.useEffect(function(){a&&a.register(i,o)},[e,t]),i}var pet=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],het=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ez=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,o=a===void 0?"rc-image":a,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,p=t.height,h=t.style,m=t.preview,g=m===void 0?!0:m,v=t.className,y=t.onClick,w=t.onError,b=t.wrapperClassName,C=t.wrapperStyle,k=t.rootClassName,S=Ht(t,pet),_=c&&c!==!0,E=Kt(g)==="object"?g:{},$=E.src,M=E.visible,P=M===void 0?void 0:M,R=E.onVisibleChange,O=R===void 0?i:R,j=E.getContainer,I=j===void 0?void 0:j,A=E.mask,N=E.maskClassName,F=E.movable,K=E.icons,L=E.scaleStep,V=E.minScale,B=E.maxScale,U=E.imageRender,Y=E.toolbarRender,ee=Ht(E,het),ie=$??n,Z=In(!!P,{value:P,onChange:O}),X=Te(Z,2),ae=X[0],oe=X[1],le=A1e({src:n,isCustomPlaceholder:_,fallback:u}),ce=Te(le,3),pe=ce[0],me=ce[1],re=ce[2],fe=d.useState(null),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=d.useContext(R4),Se=!!g,we=function(){oe(!1),Ce(null)},se=Ee(o,b,k,ne({},"".concat(o,"-error"),re==="error")),ye=d.useMemo(function(){var G={};return Zj.forEach(function(de){t[de]!==void 0&&(G[de]=t[de])}),G},Zj.map(function(G){return t[G]})),Oe=d.useMemo(function(){return q(q({},ye),{},{src:ie})},[ie,ye]),z=fet(Se,Oe),H=function(de){var xe=XJe(de.target),he=xe.left,Ue=xe.top;be?be.onPreview(z,ie,he,Ue):(Ce({x:he,y:Ue}),oe(!0)),y==null||y(de)};return d.createElement(d.Fragment,null,d.createElement("div",tt({},S,{className:se,onClick:Se?H:y,style:q({width:f,height:p},C)}),d.createElement("img",tt({},ye,{className:Ee("".concat(o,"-img"),ne({},"".concat(o,"-img-placeholder"),c===!0),v),style:q({height:p},h),ref:pe},me,{width:f,height:p,onError:w})),re==="loading"&&d.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),A&&Se&&d.createElement("div",{className:Ee("".concat(o,"-mask"),N),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},A)),!be&&Se&&d.createElement(D1e,tt({"aria-hidden":!ae,visible:ae,prefixCls:l,onClose:we,mousePosition:$e,src:ie,alt:r,imageInfo:{width:f,height:p},fallback:u,getContainer:I,icons:K,movable:F,scaleStep:L,minScale:V,maxScale:B,rootClassName:k,imageRender:U,imgCommonProps:ye,toolbarRender:Y},ee)))};ez.PreviewGroup=det;var met={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},get=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:met}))},vet=d.forwardRef(get),yet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},bet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:yet}))},wet=d.forwardRef(bet),xet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Cet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:xet}))},JX=d.forwardRef(Cet),_et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},ket=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:_et}))},Eet=d.forwardRef(ket),$et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Met=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:$et}))},Tet=d.forwardRef(Met);const Qj=e=>({position:e||"absolute",inset:0}),Pet=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new ur("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},ao),{padding:`0 ${Me(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},Oet=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:a,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,p=new ur(n).setA(.1),h=p.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Me(o)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Ret=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new ur(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},Iet=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Qj()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Qj()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Oet(e),Ret(e)]}]},jet=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Pet(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Qj())}}},Net=e=>{const{previewCls:t}=e;return{[`${t}-root`]:_y(e,"zoom"),"&":eB(e,!0)}},Aet=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ur(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new ur(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new ur(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),F1e=Jn("Image",e=>{const t=`${e.componentCls}-preview`,n=Hn(e,{previewCls:t,modalMaskBg:new ur("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[jet(n),Iet(n),Xpe(Hn(n,{componentCls:t})),Net(n)]},Aet);var Det=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=Det(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=d.useContext(Xt),a=i("image",t),o=`${a}-preview`,s=i(),l=qr(a),[c,u,f]=F1e(a,l),[p]=$c("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=d.useMemo(()=>{var m;if(n===!1)return n;const g=typeof n=="object"?n:{},v=Ee(u,f,l,(m=g.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},g),{transitionName:oo(s,"zoom",g.transitionName),maskTransitionName:oo(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:p})},[n]);return c(d.createElement(ez.PreviewGroup,Object.assign({preview:h,previewPrefixCls:o,icons:L1e},r)))};var eZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:o}=e,s=eZ(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Us,getPopupContainer:u,image:f}=d.useContext(Xt),p=l("image",n),h=l(),m=c.Image||Us.Image,g=qr(p),[v,y,w]=F1e(p,g),b=Ee(a,y,w,g),C=Ee(i,y,f==null?void 0:f.className),[k]=$c("ImagePreview",typeof r=="object"?r.zIndex:void 0),S=d.useMemo(()=>{var E;if(r===!1)return r;const $=typeof r=="object"?r:{},{getContainer:M,closeIcon:P,rootClassName:R}=$,O=eZ($,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:d.createElement("div",{className:`${p}-mask-info`},d.createElement(V8,null),m==null?void 0:m.preview),icons:L1e},O),{rootClassName:Ee(b,R),getContainer:M??u,transitionName:oo(h,"zoom",$.transitionName),maskTransitionName:oo(h,"fade",$.maskTransitionName),zIndex:k,closeIcon:P??((E=f==null?void 0:f.preview)===null||E===void 0?void 0:E.closeIcon)})},[r,m,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),_=Object.assign(Object.assign({},f==null?void 0:f.style),o);return v(d.createElement(ez,Object.assign({prefixCls:p,preview:S,rootClassName:b,className:C,style:_},s)))};B1e.PreviewGroup=Fet;function Let(e,t,n){return typeof n=="boolean"?n:e.length?!0:Xi(t).some(i=>i.type===ume)}var z1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((o,s)=>d.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const tz=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=z1e(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(Xt),l=s("layout",n),[c,u,f]=cme(l),p=r?`${l}-${r}`:l;return c(d.createElement(a,Object.assign({className:Ee(n||p,i,u,f),ref:t},o)))}),Bet=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(Xt),[r,i]=d.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,p=z1e(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=$r(p,["suffixCls"]),{getPrefixCls:m,layout:g}=d.useContext(Xt),v=m("layout",a),y=Let(r,l,c),[w,b,C]=cme(v),k=Ee(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,o,s,b,C),S=d.useMemo(()=>({siderHook:{addSider:_=>{i(E=>[].concat(lt(E),[_]))},removeSider:_=>{i(E=>E.filter($=>$!==_))}}}),[]);return w(d.createElement(ome.Provider,{value:S},d.createElement(u,Object.assign({ref:t,className:k,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},h),l)))}),zet=q8({tagName:"div",displayName:"Layout"})(Bet),xg=q8({suffixCls:"header",tagName:"header",displayName:"Header"})(tz),Het=q8({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(tz),Uet=q8({suffixCls:"content",tagName:"main",displayName:"Content"})(tz),Qn=zet;Qn.Header=xg;Qn.Footer=Het;Qn.Content=Uet;Qn.Sider=ume;Qn._InternalSiderContext=E8;const Wet=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var Vet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},qet=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Vet}))},tZ=d.forwardRef(qet),Ket={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Get=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Ket}))},nZ=d.forwardRef(Get),H1e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Yet=[10,20,50,100],Xet=function(t){var n=t.pageSizeOptions,r=n===void 0?Yet:n,i=t.locale,a=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,p=t.showSizeChanger,h=t.sizeChangerRender,m=te.useState(""),g=Te(m,2),v=g[0],y=g[1],w=function(){return!v||Number.isNaN(v)?void 0:Number(v)},b=typeof f=="function"?f:function(R){return"".concat(R," ").concat(i.items_per_page)},C=function(O){y(O.target.value)},k=function(O){s||v===""||(y(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(w())))},S=function(O){v!==""&&(O.keyCode===mt.ENTER||O.type==="click")&&(y(""),l==null||l(w()))},_=function(){return r.some(function(O){return O.toString()===o.toString()})?r:r.concat([o]).sort(function(O,j){var I=Number.isNaN(Number(O))?0:Number(O),A=Number.isNaN(Number(j))?0:Number(j);return I-A})},E="".concat(c,"-options");if(!p&&!l)return null;var $=null,M=null,P=null;return p&&h&&($=h({disabled:u,size:o,onSizeChange:function(O){a==null||a(Number(O))},"aria-label":i.page_size,className:"".concat(E,"-size-changer"),options:_().map(function(R){return{label:b(R),value:R}})})),l&&(s&&(P=typeof s=="boolean"?te.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:u,className:"".concat(E,"-quick-jumper-button")},i.jump_to_confirm):te.createElement("span",{onClick:S,onKeyUp:S},s)),M=te.createElement("div",{className:"".concat(E,"-quick-jumper")},i.jump_to,te.createElement("input",{disabled:u,type:"text",value:v,onChange:C,onKeyUp:S,onBlur:k,"aria-label":i.page}),i.page,P)),te.createElement("li",{className:E},$,M)},Lb=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,o=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),p=Ee(f,"".concat(f,"-").concat(i),(n={},ne(n,"".concat(f,"-active"),a),ne(n,"".concat(f,"-disabled"),!i),n),o),h=function(){l(i)},m=function(y){c(y,l,i)},g=u(i,"page",te.createElement("a",{rel:"nofollow"},i));return g?te.createElement("li",{title:s?String(i):null,className:p,onClick:h,onKeyDown:m,tabIndex:0},g):null},Zet=function(t,n,r){return r};function rZ(){}function iZ(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Yh(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Qet=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,p=f===void 0?0:f,h=t.pageSize,m=t.defaultPageSize,g=m===void 0?10:m,v=t.onChange,y=v===void 0?rZ:v,w=t.hideOnSinglePage,b=t.align,C=t.showPrevNextJumpers,k=C===void 0?!0:C,S=t.showQuickJumper,_=t.showLessItems,E=t.showTitle,$=E===void 0?!0:E,M=t.onShowSizeChange,P=M===void 0?rZ:M,R=t.locale,O=R===void 0?H1e:R,j=t.style,I=t.totalBoundaryShowSizeChanger,A=I===void 0?50:I,N=t.disabled,F=t.simple,K=t.showTotal,L=t.showSizeChanger,V=L===void 0?p>A:L,B=t.sizeChangerRender,U=t.pageSizeOptions,Y=t.itemRender,ee=Y===void 0?Zet:Y,ie=t.jumpPrevIcon,Z=t.jumpNextIcon,X=t.prevIcon,ae=t.nextIcon,oe=te.useRef(null),le=In(10,{value:h,defaultValue:g}),ce=Te(le,2),pe=ce[0],me=ce[1],re=In(1,{value:l,defaultValue:u,postState:function(J){return Math.max(1,Math.min(J,Yh(void 0,pe,p)))}}),fe=Te(re,2),ve=fe[0],$e=fe[1],Ce=te.useState(ve),be=Te(Ce,2),Se=be[0],we=be[1];d.useEffect(function(){we(ve)},[ve]);var se=Math.max(1,ve-(_?3:5)),ye=Math.min(Yh(void 0,pe,p),ve+(_?3:5));function Oe(D,J){var ke=D||te.createElement("button",{type:"button","aria-label":J,className:"".concat(i,"-item-link")});return typeof D=="function"&&(ke=te.createElement(D,q({},t))),ke}function z(D){var J=D.target.value,ke=Yh(void 0,pe,p),Ie;return J===""?Ie=J:Number.isNaN(Number(J))?Ie=Se:J>=ke?Ie=ke:Ie=Number(J),Ie}function H(D){return iZ(D)&&D!==ve&&iZ(p)&&p>0}var G=p>pe?S:!1;function de(D){(D.keyCode===mt.UP||D.keyCode===mt.DOWN)&&D.preventDefault()}function xe(D){var J=z(D);switch(J!==Se&&we(J),D.keyCode){case mt.ENTER:We(J);break;case mt.UP:We(J-1);break;case mt.DOWN:We(J+1);break}}function he(D){We(z(D))}function Ue(D){var J=Yh(D,pe,p),ke=ve>J&&J!==0?J:ve;me(D),we(ke),P==null||P(ve,D),$e(ke),y==null||y(ke,D)}function We(D){if(H(D)&&!N){var J=Yh(void 0,pe,p),ke=D;return D>J?ke=J:D<1&&(ke=1),ke!==Se&&we(ke),$e(ke),y==null||y(ke,pe),ke}return ve}var ge=ve>1,ze=ve2?ke-2:0),it=2;itp?p:ve*pe])),He=null,Le=Yh(void 0,pe,p);if(w&&p<=pe)return null;var Je=[],pt={rootPrefixCls:i,onClick:We,onKeyPress:qe,showTitle:$,itemRender:ee,page:-1},xt=ve-1>0?ve-1:0,Nt=ve+1=kt*2&&ve!==3&&(Je[0]=te.cloneElement(Je[0],{className:Ee("".concat(i,"-item-after-jump-prev"),Je[0].props.className)}),Je.unshift(Bt)),Le-ve>=kt*2&&ve!==Le-2){var It=Je[Je.length-1];Je[Je.length-1]=te.cloneElement(It,{className:Ee("".concat(i,"-item-before-jump-next"),It.props.className)}),Je.push(He)}Ye!==1&&Je.unshift(te.createElement(Lb,tt({},pt,{key:1,page:1}))),ot!==Le&&Je.push(te.createElement(Lb,tt({},pt,{key:Le,page:Le})))}var rt=nt(xt);if(rt){var $t=!ge||!Le;rt=te.createElement("li",{title:$?O.prev_page:null,onClick:Ve,tabIndex:$t?null:0,onKeyDown:Et,className:Ee("".concat(i,"-prev"),ne({},"".concat(i,"-disabled"),$t)),"aria-disabled":$t},rt)}var Mt=jt(Nt);if(Mt){var dn,pn;F?(dn=!ze,pn=ge?0:null):(dn=!ze||!Le,pn=dn?null:0),Mt=te.createElement("li",{title:$?O.next_page:null,onClick:Be,tabIndex:pn,onKeyDown:ut,className:Ee("".concat(i,"-next"),ne({},"".concat(i,"-disabled"),dn)),"aria-disabled":dn},Mt)}var T=Ee(i,s,(n={},ne(n,"".concat(i,"-start"),b==="start"),ne(n,"".concat(i,"-center"),b==="center"),ne(n,"".concat(i,"-end"),b==="end"),ne(n,"".concat(i,"-simple"),F),ne(n,"".concat(i,"-disabled"),N),n));return te.createElement("ul",tt({className:T,style:j,ref:oe},Ut),Ne,rt,F?Ct:Je,Mt,te.createElement(Xet,{locale:O,rootPrefixCls:i,disabled:N,selectPrefixCls:o,changeSize:Ue,pageSize:pe,pageSizeOptions:U,quickGo:G?We:null,goButton:st,showSizeChanger:V,sizeChangerRender:B}))};const Jet=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ett=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Me(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM),input:Object.assign(Object.assign({},zB(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ntt=e=>{const{componentCls:t}=e;return{[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Me(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM),input:Object.assign(Object.assign({},zB(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ttt=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Me(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Me(e.inputOutlineOffset)} 0 ${Me(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},rtt=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + `]:{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Me(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Me(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Me(e.inputOutlineOffset)} 0 ${Me(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},ntt=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next @@ -434,46 +434,46 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Me(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Me(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},wg(e)),BB(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},P4(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},itt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Me(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Me(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},att=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Me(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),itt(e)),rtt(e)),ntt(e)),ttt(e)),ett(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},ott=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Vs(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},yc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},yc(e))}}}},W1e=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},jy(e)),V1e=e=>Hn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Iy(e)),stt=Jn("Pagination",e=>{const t=V1e(e);return[att(t),ott(t)]},W1e),ltt=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},ctt=Sy(["Pagination","bordered"],e=>{const t=V1e(e);return[ltt(t)]},W1e);function aZ(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var utt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:p}=e,h=utt(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=M4(c),[,g]=ka(),{getPrefixCls:v,direction:y,pagination:w={}}=d.useContext(Xt),b=v("pagination",n),[C,k,S]=stt(b),_=Bi(s),E=_==="small"||!!(m&&!_&&c),[$]=Ga("Pagination",mfe),M=Object.assign(Object.assign({},$),l),[P,R]=aZ(u),[O,j]=aZ(w.showSizeChanger),I=P??O,A=R??j,N=f||Yf,F=d.useMemo(()=>p?p.map(Y=>Number(Y)):void 0,[p]),K=Y=>{var ee;const{disabled:ie,size:Z,onSizeChange:X,"aria-label":ae,className:oe,options:le}=Y,{className:ce,onChange:pe}=A||{},me=(ee=le.find(re=>String(re.value)===String(Z)))===null||ee===void 0?void 0:ee.value;return d.createElement(N,Object.assign({disabled:ie,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:re=>re.parentNode,"aria-label":ae,options:le},A,{value:me,onChange:(re,fe)=>{X==null||X(re),pe==null||pe(re,fe)},size:E?"small":"middle",className:Ee(oe,ce)}))},L=d.useMemo(()=>{const Y=d.createElement("span",{className:`${b}-item-ellipsis`},"•••"),ee=d.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(bc,null):d.createElement(Nf,null)),ie=d.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(Nf,null):d.createElement(bc,null)),Z=d.createElement("a",{className:`${b}-item-link`},d.createElement("div",{className:`${b}-item-container`},y==="rtl"?d.createElement(nZ,{className:`${b}-item-link-icon`}):d.createElement(tZ,{className:`${b}-item-link-icon`}),Y)),X=d.createElement("a",{className:`${b}-item-link`},d.createElement("div",{className:`${b}-item-container`},y==="rtl"?d.createElement(tZ,{className:`${b}-item-link-icon`}):d.createElement(nZ,{className:`${b}-item-link-icon`}),Y));return{prevIcon:ee,nextIcon:ie,jumpPrevIcon:Z,jumpNextIcon:X}},[y,b]),V=v("select",r),B=Ee({[`${b}-${t}`]:!!t,[`${b}-mini`]:E,[`${b}-rtl`]:y==="rtl",[`${b}-bordered`]:g.wireframe},w==null?void 0:w.className,i,a,k,S),U=Object.assign(Object.assign({},w==null?void 0:w.style),o);return C(d.createElement(d.Fragment,null,g.wireframe&&d.createElement(ctt,{prefixCls:b}),d.createElement(Jet,Object.assign({},L,h,{style:U,prefixCls:b,selectPrefixCls:V,className:B,locale:M,pageSizeOptions:F,showSizeChanger:I,sizeChangerRender:K}))))},M6=100,q1e=M6/5,K1e=M6/2-q1e/2,iT=K1e*2*Math.PI,oZ=50,sZ=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:Ee(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:K1e,cx:oZ,cy:oZ,strokeWidth:q1e,style:n})},dtt=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[o,s]=d.useState(!1);nr(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!o)return null;const c={strokeDashoffset:`${iT/4}`,strokeDasharray:`${iT*l/100} ${iT*(100-l)/100}`};return d.createElement("span",{className:Ee(i,`${r}-progress`,l<=0&&a)},d.createElement("svg",{viewBox:`0 0 ${M6} ${M6}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},d.createElement(sZ,{dotClassName:r,hasCircleCls:!0}),d.createElement(sZ,{dotClassName:r,style:c})))};function ftt(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:Ee(i,n>0&&a)},d.createElement("span",{className:Ee(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>d.createElement("i",{className:`${t}-dot-item`,key:o})))),d.createElement(dtt,{prefixCls:t,percent:n}))}function ptt(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&d.isValidElement(n)?aa(n,{className:Ee(n.props.className,i),percent:r}):d.createElement(ftt,{prefixCls:t,percent:r})}const htt=new ir("antSpinMove",{to:{opacity:1}}),mtt=new ir("antRotate",{to:{transform:"rotate(405deg)"}}),gtt=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:htt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:mtt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},vtt=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},ytt=Jn("Spin",e=>{const t=Hn(e,{spinDotDefault:e.colorTextDescription});return[gtt(t)]},vtt),btt=200,lZ=[[30,.05],[70,.03],[96,.01]];function wtt(e,t){const[n,r]=d.useState(0),i=d.useRef(null),a=t==="auto";return d.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{clearInterval(i.current)}),[a,e]),a?n:t}var xtt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:p=!1,indicator:h,percent:m}=e,g=xtt(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,spin:w}=d.useContext(Xt),b=v("spin",n),[C,k,S]=ytt(b),[_,E]=d.useState(()=>r&&!Stt(r,i)),$=wtt(_,m);d.useEffect(()=>{if(r){const A=tYe(i,()=>{E(!0)});return A(),()=>{var N;(N=A==null?void 0:A.cancel)===null||N===void 0||N.call(A)}}E(!1)},[i,r]);const M=d.useMemo(()=>typeof f<"u"&&!p,[f,p]),P=Ee(b,w==null?void 0:w.className,{[`${b}-sm`]:s==="small",[`${b}-lg`]:s==="large",[`${b}-spinning`]:_,[`${b}-show-text`]:!!l,[`${b}-rtl`]:y==="rtl"},a,!p&&o,k,S),R=Ee(`${b}-container`,{[`${b}-blur`]:_}),O=(t=h??(w==null?void 0:w.indicator))!==null&&t!==void 0?t:G1e,j=Object.assign(Object.assign({},w==null?void 0:w.style),u),I=d.createElement("div",Object.assign({},g,{style:j,className:P,"aria-live":"polite","aria-busy":_}),d.createElement(ptt,{prefixCls:b,indicator:O,percent:$}),l&&(M||p)?d.createElement("div",{className:`${b}-text`},l):null);return C(M?d.createElement("div",Object.assign({},g,{className:Ee(`${b}-nested-loading`,c,k,S)}),_&&d.createElement("div",{key:"loading"},I),d.createElement("div",{className:R,key:"container"},f)):p?d.createElement("div",{className:Ee(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:_},o,k,S)},I):I)};Zo.setDefaultIndicator=e=>{G1e=e};const nz=te.createContext({});nz.Consumer;var Y1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=Y1e(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=d.useContext(Xt),l=s("list",t),c=Ee(`${l}-item-meta`,n),u=te.createElement("div",{className:`${l}-item-meta-content`},i&&te.createElement("h4",{className:`${l}-item-meta-title`},i),a&&te.createElement("div",{className:`${l}-item-meta-description`},a));return te.createElement("div",Object.assign({},o,{className:c}),r&&te.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||a)&&u)},_tt=te.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:l,colStyle:c}=e,u=Y1e(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:p}=d.useContext(nz),{getPrefixCls:h,list:m}=d.useContext(Xt),g=_=>{var E,$;return Ee(($=(E=m==null?void 0:m.item)===null||E===void 0?void 0:E.classNames)===null||$===void 0?void 0:$[_],l==null?void 0:l[_])},v=_=>{var E,$;return Object.assign(Object.assign({},($=(E=m==null?void 0:m.item)===null||E===void 0?void 0:E.styles)===null||$===void 0?void 0:$[_]),o==null?void 0:o[_])},y=()=>{let _=!1;return d.Children.forEach(r,E=>{typeof E=="string"&&(_=!0)}),_&&d.Children.count(r)>1},w=()=>p==="vertical"?!!a:!y(),b=h("list",n),C=i&&i.length>0&&te.createElement("ul",{className:Ee(`${b}-item-action`,g("actions")),key:"actions",style:v("actions")},i.map((_,E)=>te.createElement("li",{key:`${b}-item-action-${E}`},_,E!==i.length-1&&te.createElement("em",{className:`${b}-item-action-split`})))),k=f?"div":"li",S=te.createElement(k,Object.assign({},u,f?{}:{ref:t},{className:Ee(`${b}-item`,{[`${b}-item-no-flex`]:!w()},s)}),p==="vertical"&&a?[te.createElement("div",{className:`${b}-item-main`,key:"content"},r,C),te.createElement("div",{className:Ee(`${b}-item-extra`,g("extra")),key:"extra",style:v("extra")},a)]:[r,C,aa(a,{key:"extra"})]);return f?te.createElement(D0,{ref:t,flex:1,style:c},S):S}),X1e=_tt;X1e.Meta=Ctt;const ktt=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Me(i)} ${Me(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},Ett=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Me(o)}`}}}}}},$tt=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:f,paddingXS:p,margin:h,colorText:m,colorTextDescription:g,motionDurationSlow:v,lineWidth:y,headerBg:w,footerBg:b,emptyTextPadding:C,metaMarginBottom:k,avatarMarginRight:S,titleMarginBottom:_,descriptionFontSize:E}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:b},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Me(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${v}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:E,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Me(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Me(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:k,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:_,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Me(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Mtt=e=>({contentWidth:220,itemPadding:`${Me(e.paddingContentVertical)} 0`,itemPaddingSM:`${Me(e.paddingContentVerticalSM)} ${Me(e.paddingContentHorizontal)}`,itemPaddingLG:`${Me(e.paddingContentVerticalLG)} ${Me(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Ttt=Jn("List",e=>{const t=Hn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[$tt(t),ktt(t),Ett(t)]},Mtt);var Ptt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i(we,se)=>{var ye;E(we),M(se),n&&((ye=n==null?void 0:n[Se])===null||ye===void 0||ye.call(n,we,se))},N=A("onChange"),F=A("onShowSizeChange"),K=(Se,we)=>{if(!b)return null;let se;return typeof w=="function"?se=w(Se):w?se=Se[w]:se=Se.key,se||(se=`list-item-${we}`),d.createElement(d.Fragment,{key:se},b(Se,we))},L=()=>!!(f||n||v),V=P("list",r),[B,U,Y]=Ttt(V);let ee=y;typeof ee=="boolean"&&(ee={spinning:ee});const ie=!!(ee!=null&&ee.spinning),Z=Bi(m);let X="";switch(Z){case"large":X="lg";break;case"small":X="sm";break}const ae=Ee(V,{[`${V}-vertical`]:u==="vertical",[`${V}-${X}`]:X,[`${V}-split`]:a,[`${V}-bordered`]:i,[`${V}-loading`]:ie,[`${V}-grid`]:!!p,[`${V}-something-after-last-item`]:L(),[`${V}-rtl`]:O==="rtl"},j==null?void 0:j.className,o,s,U,Y),oe=Vet(I,{total:h.length,current:_,pageSize:$},n||{}),le=Math.ceil(oe.total/oe.pageSize);oe.current>le&&(oe.current=le);const ce=n&&d.createElement("div",{className:Ee(`${V}-pagination`)},d.createElement(j4,Object.assign({align:"end"},oe,{onChange:N,onShowSizeChange:F})));let pe=lt(h);n&&h.length>(oe.current-1)*oe.pageSize&&(pe=lt(h).splice((oe.current-1)*oe.pageSize,oe.pageSize));const me=Object.keys(p||{}).some(Se=>["xs","sm","md","lg","xl","xxl"].includes(Se)),re=M4(me),fe=d.useMemo(()=>{for(let Se=0;Se{if(!p)return;const Se=fe&&p[fe]?p[fe]:p.column;if(Se)return{width:`${100/Se}%`,maxWidth:`${100/Se}%`}},[JSON.stringify(p),fe]);let $e=ie&&d.createElement("div",{style:{minHeight:53}});if(pe.length>0){const Se=pe.map((we,se)=>K(we,se));$e=p?d.createElement(z8,{gutter:p.gutter},d.Children.map(Se,we=>d.createElement("div",{key:we==null?void 0:we.key,style:ve},we))):d.createElement("ul",{className:`${V}-items`},Se)}else!c&&!ie&&($e=d.createElement("div",{className:`${V}-empty-text`},(C==null?void 0:C.emptyText)||(R==null?void 0:R("List"))||d.createElement(Vg,{componentName:"List"})));const Ce=oe.position||"bottom",be=d.useMemo(()=>({grid:p,itemLayout:u}),[JSON.stringify(p),u]);return B(d.createElement(nz.Provider,{value:be},d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},j==null?void 0:j.style),l),className:ae},k),(Ce==="top"||Ce==="both")&&ce,g&&d.createElement("div",{className:`${V}-header`},g),d.createElement(Zo,Object.assign({},ee),$e,c),v&&d.createElement("div",{className:`${V}-footer`},v),f||(Ce==="bottom"||Ce==="both")&&ce)))}const Rtt=d.forwardRef(Ott),Yn=Rtt;Yn.Item=X1e;function Itt(){var e=d.useState({id:0,callback:null}),t=Te(e,2),n=t[0],r=t[1],i=d.useCallback(function(a){r(function(o){var s=o.id;return{id:s+1,callback:a}})},[]);return d.useEffect(function(){var a;(a=n.callback)===null||a===void 0||a.call(n)},[n]),i}var Z1e=d.createContext(null);function jtt(e){var t=d.useContext(Z1e),n=t.notFoundContent,r=t.activeIndex,i=t.setActiveIndex,a=t.selectOption,o=t.onFocus,s=t.onBlur,l=t.onScroll,c=e.prefixCls,u=e.options,f=u[r]||{};return d.createElement(qg,{prefixCls:"".concat(c,"-menu"),activeKey:f.key,onSelect:function(h){var m=h.key,g=u.find(function(v){var y=v.key;return y===m});a(g)},onFocus:o,onBlur:s,onScroll:l},u.map(function(p,h){var m=p.key,g=p.disabled,v=p.className,y=p.style,w=p.label;return d.createElement(yg,{key:m,disabled:g,className:v,style:y,onMouseEnter:function(){i(h)}},w)}),!u.length&&d.createElement(yg,{disabled:!0},n))}var Ntt={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Att=function(t){var n=t.prefixCls,r=t.options,i=t.children,a=t.visible,o=t.transitionName,s=t.getPopupContainer,l=t.dropdownClassName,c=t.direction,u=t.placement,f="".concat(n,"-dropdown"),p=d.createElement(jtt,{prefixCls:f,options:r}),h=d.useMemo(function(){var m;return c==="rtl"?m=u==="top"?"topLeft":"bottomLeft":m=u==="top"?"topRight":"bottomRight",m},[c,u]);return d.createElement($y,{prefixCls:f,popupVisible:a,popup:p,popupPlacement:h,popupTransitionName:o,builtinPlacements:Ntt,getPopupContainer:s,popupClassName:l},i)},Dtt=function(){return null};function Ftt(e){var t=e.selectionStart;return e.value.slice(0,t)}function Ltt(e,t){return t.reduce(function(n,r){var i=e.lastIndexOf(r);return i>n.location?{location:i,prefix:r}:n},{location:-1,prefix:""})}function cZ(e){return(e||"").toLowerCase()}function Btt(e,t,n){var r=e[0];if(!r||r===n)return e;for(var i=e,a=t.length,o=0;o=0)return[!0,"",st,Ct]}return[ae,pe,ve,Se]},[g,ae,B,We,pe,ve,Se]),Ve=Te(ze,4),Be=Ve[0],Xe=Ve[1],Ke=Ve[2],qe=Ve[3],Et=te.useCallback(function(Pt){var st;return m&&m.length>0?st=m.map(function(Ct){var kt;return q(q({},Ct),{},{key:(kt=Ct==null?void 0:Ct.key)!==null&&kt!==void 0?kt:Ct.value})}):st=Xi(h).map(function(Ct){var kt=Ct.props,qt=Ct.key;return q(q({},kt),{},{label:kt.children,key:qt||kt.value})}),st.filter(function(Ct){return C===!1?!0:C(Pt,Ct)})},[h,m,C]),ut=te.useMemo(function(){return Et(Xe)},[Et,Xe]),gt=Itt(),Qe=function(st,Ct,kt){oe(!0),me(st),$e(Ct),we(kt),z(0)},nt=function(st){oe(!1),we(0),me(""),gt(st)},jt=function(st){ge(st),k==null||k(st)},Lt=function(st){var Ct=st.target.value;jt(Ct)},Bt=function(st){var Ct,kt=st.value,qt=kt===void 0?"":kt,vt=ztt(We,{measureLocation:qe,targetText:qt,prefix:Ke,selectionStart:(Ct=ie())===null||Ct===void 0?void 0:Ct.selectionStart,split:l}),At=vt.text,dt=vt.selectionLocation;jt(At),nt(function(){Htt(ie(),dt)}),M==null||M(st,Ke)},Ut=function(st){var Ct=st.which;if(S==null||S(st),!!Be){if(Ct===mt.UP||Ct===mt.DOWN){var kt=ut.length,qt=Ct===mt.UP?-1:1,vt=(Oe+qt+kt)%kt;z(vt),st.preventDefault()}else if(Ct===mt.ESC)nt();else if(Ct===mt.ENTER){if(st.preventDefault(),v)return;if(!ut.length){nt();return}var At=ut[Oe];Bt(At)}}},Ne=function(st){var Ct=st.key,kt=st.which,qt=st.target,vt=Ftt(qt),At=Ltt(vt,B),dt=At.location,De=At.prefix;if(_==null||_(st),[mt.ESC,mt.UP,mt.DOWN,mt.ENTER].indexOf(kt)===-1)if(dt!==-1){var Ye=vt.slice(dt+De.length),ot=w(Ye,l),Re=!!Et(Ye).length;ot?(Ct===De||Ct==="Shift"||kt===mt.ALT||Ct==="AltGraph"||Be||Ye!==Xe&&Re)&&Qe(Ye,De,dt):Be&&nt(),$&&ot&&$(Ye,De)}else Be&&nt()},He=function(st){!Be&&E&&E(st)},Le=d.useRef(),Je=function(st){window.clearTimeout(Le.current),!de&&st&&P&&P(st),xe(!0)},pt=function(st){Le.current=window.setTimeout(function(){xe(!1),nt(),R==null||R(st)},0)},xt=function(){Je()},Nt=function(){pt()},Ot=function(st){L==null||L(st)};return te.createElement("div",{className:Ee(n,r),style:i,ref:U},te.createElement(t1e,tt({ref:Y,value:We},V,{rows:K,onChange:Lt,onKeyDown:Ut,onKeyUp:Ne,onPressEnter:He,onFocus:Je,onBlur:pt})),Be&&te.createElement("div",{ref:ee,className:"".concat(n,"-measure")},We.slice(0,qe),te.createElement(Z1e.Provider,{value:{notFoundContent:u,activeIndex:Oe,setActiveIndex:z,selectOption:Bt,onFocus:xt,onBlur:Nt,onScroll:Ot}},te.createElement(Att,{prefixCls:n,transitionName:O,placement:j,direction:I,options:ut,visible:!0,getPopupContainer:A,dropdownClassName:N},te.createElement("span",null,Ke))),We.slice(qe+Ke.length)))}),rz=d.forwardRef(function(e,t){var n=e.suffix,r=e.prefixCls,i=r===void 0?"rc-mentions":r,a=e.defaultValue,o=e.value,s=e.allowClear,l=e.onChange,c=e.classNames,u=e.className,f=e.disabled,p=e.onClear,h=Ht(e,qtt),m=d.useRef(null),g=d.useRef(null);d.useImperativeHandle(t,function(){var S,_;return q(q({},g.current),{},{nativeElement:((S=m.current)===null||S===void 0?void 0:S.nativeElement)||((_=g.current)===null||_===void 0?void 0:_.nativeElement)})});var v=In("",{defaultValue:a,value:o}),y=Te(v,2),w=y[0],b=y[1],C=function(_){b(_),l==null||l(_)},k=function(){C("")};return te.createElement(U8,{suffix:n,prefixCls:i,value:w,allowClear:s,handleReset:k,className:u,classNames:c,disabled:f,ref:m,onClear:p},te.createElement(Ktt,tt({className:c==null?void 0:c.mentions,prefixCls:i,ref:g,onChange:C,disabled:f},h)))});rz.Option=Dtt;function Q1e(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}const Gtt=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:i,colorText:a,motionDurationSlow:o,lineHeight:s,controlHeight:l,paddingInline:c,paddingBlock:u,fontSize:f,fontSizeIcon:p,colorTextTertiary:h,colorTextQuaternary:m,colorBgElevated:g,paddingXXS:v,paddingLG:y,borderRadius:w,borderRadiusLG:b,boxShadowSecondary:C,itemPaddingVertical:k,calc:S}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),wg(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:s,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),j8(e)),A8(e)),N8(e)),{"&-affix-wrapper":Object.assign(Object.assign({},wg(e)),{display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:y},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:S(f).mul(s).mul(.5).add(u).equal(),transform:"translateY(-50%)",margin:0,padding:0,color:m,fontSize:p,verticalAlign:-1,cursor:"pointer",transition:`color ${o}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:h},"&:active":{color:a},"&-hidden":{visibility:"hidden"}}}),"&-disabled":{"> textarea":Object.assign({},P4(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:a,boxSizing:"border-box",minHeight:e.calc(l).sub(2),margin:0,padding:`${Me(u)} ${Me(c)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},D8(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:f,fontVariant:"initial",padding:v,backgroundColor:g,borderRadius:b,outline:"none",boxShadow:C,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},ao),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${Me(k)} ${Me(i)}`,color:a,borderRadius:w,fontWeight:"normal",lineHeight:s,cursor:"pointer",transition:`background ${o} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:a,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},Ytt=e=>Object.assign(Object.assign({},jy(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),Xtt=Jn("Mentions",e=>{const t=Hn(e,Iy(e));return[Gtt(t)]},Ytt);var Ztt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,disabled:a,loading:o,filterOption:s,children:l,notFoundContent:c,options:u,status:f,allowClear:p=!1,popupClassName:h,style:m,variant:g}=e,v=Ztt(e,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","allowClear","popupClassName","style","variant"]),[y,w]=d.useState(!1),b=d.useRef(null),C=ga(t,b),{getPrefixCls:k,renderEmpty:S,direction:_,mentions:E}=d.useContext(Xt),{status:$,hasFeedback:M,feedbackIcon:P}=d.useContext(oa),R=Mu($,f),O=function(){v.onFocus&&v.onFocus.apply(v,arguments),w(!0)},j=function(){v.onBlur&&v.onBlur.apply(v,arguments),w(!1)},I=d.useMemo(()=>c!==void 0?c:(S==null?void 0:S("Select"))||d.createElement(Vg,{componentName:"Select"}),[c,S]),A=d.useMemo(()=>o?d.createElement(J1e,{value:"ANTD_SEARCHING",disabled:!0},d.createElement(Zo,{size:"small"})):l,[o,l]),N=o?[{value:"ANTD_SEARCHING",disabled:!0,label:d.createElement(Zo,{size:"small"})}]:u,F=o?Qtt:s,K=k("mentions",n),L=YB(p),V=qr(K),[B,U,Y]=Xtt(K,V),[ee,ie]=Od("mentions",g),Z=M&&d.createElement(d.Fragment,null,P),X=Ee(E==null?void 0:E.className,r,i,Y,V),ae=d.createElement(rz,Object.assign({silent:o,prefixCls:K,notFoundContent:I,className:X,disabled:a,allowClear:L,direction:_,style:Object.assign(Object.assign({},E==null?void 0:E.style),m)},v,{filterOption:F,onFocus:O,onBlur:j,dropdownClassName:Ee(h,i,U,Y,V),ref:C,options:N,suffix:Z,classNames:{mentions:Ee({[`${K}-disabled`]:a,[`${K}-focused`]:y,[`${K}-rtl`]:_==="rtl"},U),variant:Ee({[`${K}-${ee}`]:ie},Al(K,R)),affixWrapper:U}}),A);return B(ae)}),N4=Jtt;N4.Option=J1e;const ent=Gf(N4,void 0,void 0,"mentions");N4._InternalPanelDoNotUseOrYouWillBeFired=ent;N4.getMentions=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,i=Q1e(n);return e.split(r).map(function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=null;return i.some(s=>a.slice(0,s.length)===s?(o=s,!0):!1),o!==null?{prefix:o,value:a.slice(o.length)}:null}).filter(a=>!!a&&!!a.value)};let tc=null,km=e=>e(),s3=[],l3={};function uZ(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=l3,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const tnt=te.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=d.useContext(Xt),a=l3.prefixCls||i("message"),o=d.useContext(Ij),[s,l]=ppe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return te.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),nnt=te.forwardRef((e,t)=>{const[n,r]=te.useState(uZ),i=()=>{r(uZ)};te.useEffect(i,[]);const a=Qfe(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=te.createElement(tnt,{ref:t,sync:i,messageConfig:n});return te.createElement(zn,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function K8(){if(!tc){const e=document.createDocumentFragment(),t={fragment:e};tc=t,km(()=>{XL()(te.createElement(nnt,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,K8())})}}),e)});return}tc.instance&&(s3.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{km(()=>{const r=tc.instance.open(Object.assign(Object.assign({},l3),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":km(()=>{tc==null||tc.instance.destroy(e.key)});break;default:km(()=>{var r;const i=(r=tc.instance)[t].apply(r,lt(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),s3=[])}function rnt(e){l3=Object.assign(Object.assign({},l3),e),km(()=>{var t;(t=tc==null?void 0:tc.sync)===null||t===void 0||t.call(tc)})}function int(e){const t=YL(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return s3.push(i),()=>{r?km(()=>{r()}):i.skipped=!0}});return K8(),t}function ant(e,t){const n=YL(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return s3.push(a),()=>{i?km(()=>{i()}):a.skipped=!0}});return K8(),n}const ont=e=>{s3.push({type:"destroy",key:e}),K8()},snt=["success","info","warning","error","loading"],lnt={open:int,destroy:ont,config:rnt,useMessage:hpe,_InternalPanelDoNotUseOrYouWillBeFired:oDe},c3=lnt;snt.forEach(e=>{c3[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:l}=e,c=cnt(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(Xt),f=u(),p=t||u("modal"),h=qr(f),[m,g,v]=ehe(p,h),y=`${p}-confirm`;let w={};return a?w={closable:i??!1,title:"",footer:"",children:d.createElement(nhe,Object.assign({},e,{prefixCls:p,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:w={closable:i??!0,title:o,footer:l!==null&&d.createElement(Ype,Object.assign({},e)),children:s},m(d.createElement(jpe,Object.assign({prefixCls:p,className:Ee(g,`${p}-pure-panel`,a&&y,a&&`${y}-${a}`,n,v,h)},c,{closeIcon:Gpe(p,r),closable:i},w)))},dnt=hhe(unt);function eve(e){return E4(ohe(e))}const yr=the;yr.useModal=dhe;yr.info=function(t){return E4(she(t))};yr.success=function(t){return E4(lhe(t))};yr.error=function(t){return E4(che(t))};yr.warning=eve;yr.warn=eve;yr.confirm=function(t){return E4(uhe(t))};yr.destroyAll=function(){for(;Cm.length;){const t=Cm.pop();t&&t()}};yr.config=wze;yr._InternalPanelDoNotUseOrYouWillBeFired=dnt;const fnt=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:o,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},pnt=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},tve=Jn("Popconfirm",e=>fnt(e),pnt,{resetStyle:!1});var hnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:l="primary",icon:c=d.createElement(qf,null),showCancel:u=!0,close:f,onConfirm:p,onCancel:h,onPopupClick:m}=e,{getPrefixCls:g}=d.useContext(Xt),[v]=Ga("Popconfirm",Us.Popconfirm),y=I0(i),w=I0(a);return d.createElement("div",{className:`${t}-inner-content`,onClick:m},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},y&&d.createElement("div",{className:`${t}-title`},y),w&&d.createElement("div",{className:`${t}-description`},w))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(Yt,Object.assign({onClick:h,size:"small"},r),o||(v==null?void 0:v.cancelText)),d.createElement(aB,{buttonProps:Object.assign(Object.assign({size:"small"},ZL(l)),n),actionFn:p,close:f,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},mnt=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,a=hnt(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=d.useContext(Xt),s=o("popconfirm",t),[l]=tve(s);return l(d.createElement(qhe,{placement:n,className:Ee(s,r),style:i,content:d.createElement(nve,Object.assign({prefixCls:s},a))}))};var gnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:f="primary",icon:p=d.createElement(qf,null),children:h,overlayClassName:m,onOpenChange:g,onVisibleChange:v,overlayStyle:y,styles:w,classNames:b}=e,C=gnt(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:k,popconfirm:S}=d.useContext(Xt),[_,E]=In(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),$=(F,K)=>{E(F,!0),v==null||v(F),g==null||g(F,K)},M=F=>{$(!1,F)},P=F=>{var K;return(K=e.onConfirm)===null||K===void 0?void 0:K.call(void 0,F)},R=F=>{var K;$(!1,F),(K=e.onCancel)===null||K===void 0||K.call(void 0,F)},O=(F,K)=>{const{disabled:L=!1}=e;L||$(F,K)},j=k("popconfirm",l),I=Ee(j,m,(i=S==null?void 0:S.classNames)===null||i===void 0?void 0:i.root,b==null?void 0:b.root),A=Ee((a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.body,b==null?void 0:b.body),[N]=tve(j);return N(d.createElement(wc,Object.assign({},$r(C,["title"]),{trigger:u,placement:c,onOpenChange:O,open:_,ref:t,classNames:{root:I,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),y),w==null?void 0:w.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),w==null?void 0:w.body)},content:d.createElement(nve,Object.assign({okType:f,icon:p},e,{prefixCls:j,close:M,onConfirm:P,onCancel:R})),"data-popover-inject":!0}),h))}),rve=vnt;rve._InternalPanelDoNotUseOrYouWillBeFired=mnt;var ynt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},bnt=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},dZ=0,wnt=Ws();function xnt(){var e;return wnt?(e=dZ,dZ+=1):e="TEST_OR_SSR",e}const Snt=function(e){var t=d.useState(),n=Te(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_progress_".concat(xnt()))},[]),e||r};var fZ=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function pZ(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var Cnt=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,p=r&&Kt(r)==="object",h=p?"#FFF":void 0,m=u/2,g=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:m,cy:m,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!p)return g;var v="".concat(i,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",w=pZ(r,(360-f)/360),b=pZ(r,1),C="conic-gradient(from ".concat(y,", ").concat(w.join(", "),")"),k="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:v},g),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},d.createElement(fZ,{bg:k},d.createElement(fZ,{bg:C}))))}),k2=100,aT=function(t,n,r,i,a,o,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-o)/360),h=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],m=(100-i)/100*n;c==="round"&&i!==100&&(m+=u/2,m>=n&&(m=n-.01));var g=k2/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+f,transform:"rotate(".concat(a+p+h,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},_nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function hZ(e){var t=e??[];return Array.isArray(t)?t:[t]}var knt=function(t){var n=q(q({},ynt),t),r=n.id,i=n.prefixCls,a=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,h=n.style,m=n.className,g=n.strokeColor,v=n.percent,y=Ht(n,_nt),w=k2/2,b=Snt(r),C="".concat(b,"-gradient"),k=w-o/2,S=Math.PI*2*k,_=c>0?90+c/2:-90,E=S*((360-c)/360),$=Kt(a)==="object"?a:{count:a,gap:2},M=$.count,P=$.gap,R=hZ(v),O=hZ(g),j=O.find(function(V){return V&&Kt(V)==="object"}),I=j&&Kt(j)==="object",A=I?"butt":p,N=aT(S,E,0,100,_,c,u,f,A,o),F=bnt(),K=function(){var B=0;return R.map(function(U,Y){var ee=O[Y]||O[O.length-1],ie=aT(S,E,B,U,_,c,u,ee,A,o);return B+=U,d.createElement(Cnt,{key:Y,color:ee,ptg:U,radius:k,prefixCls:i,gradientId:C,style:ie,strokeLinecap:A,strokeWidth:o,gapDegree:c,ref:function(X){F[Y]=X},size:k2})}).reverse()},L=function(){var B=Math.round(M*(R[0]/100)),U=100/M,Y=0;return new Array(M).fill(null).map(function(ee,ie){var Z=ie<=B-1?O[0]:f,X=Z&&Kt(Z)==="object"?"url(#".concat(C,")"):void 0,ae=aT(S,E,Y,U,_,c,u,Z,"butt",o,P);return Y+=(E-ae.strokeDashoffset+P)*100/E,d.createElement("circle",{key:ie,className:"".concat(i,"-circle-path"),r:k,cx:w,cy:w,stroke:X,strokeWidth:o,opacity:1,style:ae,ref:function(le){F[ie]=le}})})};return d.createElement("svg",tt({className:Ee("".concat(i,"-circle"),m),viewBox:"0 0 ".concat(k2," ").concat(k2),style:h,id:r,role:"presentation"},y),!M&&d.createElement("circle",{className:"".concat(i,"-circle-trail"),r:k,cx:w,cy:w,stroke:f,strokeLinecap:A,strokeWidth:s||o,style:N}),M?L():K())};function ah(e){return!e||e<0?0:e>100?100:e}function T6(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const Ent=e=>{let{percent:t,success:n,successPercent:r}=e;const i=ah(T6({success:n,successPercent:r}));return[i,ah(ah(t)-i)]},$nt=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Wm.green,n||null]},G8=(e,t,n)=>{var r,i,a,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return[s,l]},Mnt=3,Tnt=e=>Mnt/e*100,Pnt=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:o=120,type:s,children:l,success:c,size:u=o,steps:f}=e,[p,h]=G8(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(Tnt(p),6));const g={width:p,height:h,fontSize:p*.15+6},v=d.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),y=Ent(e),w=i||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=$nt({success:c,strokeColor:e.strokeColor}),k=Ee(`${t}-inner`,{[`${t}-circle-gradient`]:b}),S=d.createElement(knt,{steps:f,percent:f?y[1]:y,strokeWidth:m,trailWidth:m,strokeColor:f?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:w}),_=p<=20,E=d.createElement("div",{className:k,style:g},S,!_&&l);return _?d.createElement(_a,{title:l},E):E},P6="--progress-line-stroke-color",ive="--progress-percent",mZ=e=>{const t=e?"100%":"-100%";return new ir(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ont=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${P6})`]},height:"100%",width:`calc(1 / var(${ive}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Me(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:mZ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:mZ(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Rnt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Int=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},jnt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Nnt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Ant=Jn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Hn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Ont(n),Rnt(n),Int(n),jnt(n)]},Nnt);var Dnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},Lnt=(e,t)=>{const{from:n=Wm.blue,to:r=Wm.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=Dnt(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=Fnt(a),l=`linear-gradient(${i}, ${s})`;return{background:l,[P6]:l}}const o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[P6]:o}},Bnt=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:p,type:h}=u,m=o&&typeof o!="string"?Lnt(o,n):{[P6]:o,background:o},g=s==="square"||s==="butt"?0:void 0,v=i??[-1,a||(i==="small"?6:8)],[y,w]=G8(v,"line",{strokeWidth:a}),b={backgroundColor:c||void 0,borderRadius:g},C=Object.assign(Object.assign({width:`${ah(r)}%`,height:w,borderRadius:g},m),{[ive]:ah(r)/100}),k=T6(e),S={width:`${ah(k)}%`,height:w,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},_={width:y<0?"100%":y},E=d.createElement("div",{className:`${t}-inner`,style:b},d.createElement("div",{className:Ee(`${t}-bg`,`${t}-bg-${h}`),style:C},h==="inner"&&l),k!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:S})),$=h==="outer"&&p==="start",M=h==="outer"&&p==="end";return h==="outer"&&p==="center"?d.createElement("div",{className:`${t}-layout-bottom`},E,l):d.createElement("div",{className:`${t}-outer`,style:_},$&&l,E,M&&l)},znt=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:o=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[p,h]=G8(f,"step",{steps:n,strokeWidth:i}),m=p/n,g=new Array(n);for(let v=0;v{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:p,style:h,percentPosition:m={}}=e,g=Hnt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=m,w=Array.isArray(o)?o[0]:o,b=typeof o=="string"||Array.isArray(o)?o:void 0,C=d.useMemo(()=>{if(w){const K=typeof w=="string"?w:Object.values(w)[0];return new ur(K).isLight()}return!1},[o]),k=d.useMemo(()=>{var K,L;const V=T6(e);return parseInt(V!==void 0?(K=V??0)===null||K===void 0?void 0:K.toString():(L=s??0)===null||L===void 0?void 0:L.toString(),10)},[s,e.success,e.successPercent]),S=d.useMemo(()=>!Unt.includes(f)&&k>=100?"success":f||"normal",[f,k]),{getPrefixCls:_,direction:E,progress:$}=d.useContext(Xt),M=_("progress",n),[P,R,O]=Ant(M),j=u==="line",I=j&&!a,A=d.useMemo(()=>{if(!c)return null;const K=T6(e);let L;const V=p||(U=>`${U}%`),B=j&&C&&y==="inner";return y==="inner"||p||S!=="exception"&&S!=="success"?L=V(ah(s),ah(K)):S==="exception"?L=j?d.createElement(Pd,null):d.createElement(Eu,null):S==="success"&&(L=j?d.createElement(Ug,null):d.createElement(ud,null)),d.createElement("span",{className:Ee(`${M}-text`,{[`${M}-text-bright`]:B,[`${M}-text-${v}`]:I,[`${M}-text-${y}`]:I}),title:typeof L=="string"?L:void 0},L)},[c,s,k,S,u,M,p]);let N;u==="line"?N=a?d.createElement(znt,Object.assign({},e,{strokeColor:b,prefixCls:M,steps:typeof a=="object"?a.count:a}),A):d.createElement(Bnt,Object.assign({},e,{strokeColor:w,prefixCls:M,direction:E,percentPosition:{align:v,type:y}}),A):(u==="circle"||u==="dashboard")&&(N=d.createElement(Pnt,Object.assign({},e,{strokeColor:w,prefixCls:M,progressStatus:S}),A));const F=Ee(M,`${M}-status-${S}`,{[`${M}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${M}-inline-circle`]:u==="circle"&&G8(l,"circle")[0]<=20,[`${M}-line`]:I,[`${M}-line-align-${v}`]:I,[`${M}-line-position-${y}`]:I,[`${M}-steps`]:a,[`${M}-show-info`]:c,[`${M}-${l}`]:typeof l=="string",[`${M}-rtl`]:E==="rtl"},$==null?void 0:$.className,r,i,R,O);return P(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},$==null?void 0:$.style),h),className:F,role:"progressbar","aria-valuenow":k,"aria-valuemin":0,"aria-valuemax":100},$r(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))});function rd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=HE(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var Fy,A4;function Is(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function Ud(e,t){return(e>>>t&1)!=0}function ol(e){if(!e)throw new Error("Assertion error")}var id=function(){function e(t,n){Ar(this,e),ne(this,"modeBits",void 0),ne(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Dr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();Fy=id;ne(id,"NUMERIC",new Fy(1,[10,12,14]));ne(id,"ALPHANUMERIC",new Fy(2,[9,11,13]));ne(id,"BYTE",new Fy(4,[8,16,16]));ne(id,"KANJI",new Fy(8,[8,10,12]));ne(id,"ECI",new Fy(7,[0,0,0]));var dc=Dr(function e(t,n){Ar(this,e),ne(this,"ordinal",void 0),ne(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});A4=dc;ne(dc,"LOW",new A4(0,1));ne(dc,"MEDIUM",new A4(1,0));ne(dc,"QUARTILE",new A4(2,3));ne(dc,"HIGH",new A4(3,2));var Gm=function(){function e(t,n,r){if(Ar(this,e),ne(this,"mode",void 0),ne(this,"numChars",void 0),ne(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return Dr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=rd(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;Is(o,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(id.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var o=[],s=0;s>>9)*1335;var o=(r<<10|i)^21522;ol(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,Ud(o,s));this.setFunctionModule(8,7,Ud(o,6)),this.setFunctionModule(8,8,Ud(o,7)),this.setFunctionModule(7,8,Ud(o,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,Ud(o,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,Ud(o,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,Ud(o,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var i=this.version<<12|n;ol(i>>>18==0);for(var a=0;a<18;a++){var o=Ud(i,a),s=this.size-11+a%3,l=Math.floor(a/3);this.setFunctionModule(s,l,o),this.setFunctionModule(l,s,o)}}}},{key:"drawFinderPattern",value:function(n,r){for(var i=-4;i<=4;i++)for(var a=-4;a<=4;a++){var o=Math.max(Math.abs(a),Math.abs(i)),s=n+a,l=r+i;0<=s&&s=l)&&v.push(k[C])})},w=0;w=1;i-=2){i==6&&(i=5);for(var a=0;a>>3],7-(r&7)),r++)}}ol(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r5&&n++):(this.finderPenaltyAddHistory(a,o),i||(n+=this.finderPenaltyCountPatterns(o)*e.PENALTY_N3),i=this.modules[r][s],a=1);n+=this.finderPenaltyTerminateAndCount(i,a,o)*e.PENALTY_N3}for(var l=0;l5&&n++):(this.finderPenaltyAddHistory(u,f),c||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),c=this.modules[p][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,f)*e.PENALTY_N3}for(var h=0;h0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(i&&n[0]>=r*4&&n[6]>=r?1:0)+(i&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,i){var a=r;return n&&(this.finderPenaltyAddHistory(a,i),a=0),a+=this.size,this.finderPenaltyAddHistory(a,i),this.finderPenaltyCountPatterns(i)}},{key:"finderPenaltyAddHistory",value:function(n,r){var i=n;r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}],[{key:"encodeText",value:function(n,r){var i=Gm.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=Gm.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");var l,c;for(l=i;;l++){var u=e.getNumDataCodewords(l,r)*8,f=Gm.getTotalBits(n,l);if(f<=u){c=f;break}if(l>=a)throw new RangeError("Data too long")}for(var p=r,h=0,m=[dc.MEDIUM,dc.QUARTILE,dc.HIGH];h>>3]|=M<<7-(P&7)}),new e(l,p,$,o)}},{key:"getNumRawDataModules",value:function(n){if(ne.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var i=Math.floor(n/7)+2;r-=(25*i-10)*i-55,n>=7&&(r-=36)}return ol(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],i=0;i>>8||r>>>8)throw new RangeError("Byte out of range");for(var i=0,a=7;a>=0;a--)i=i<<1^(i>>>7)*285,i^=(r>>>a&1)*n;return ol(i>>>8==0),i}}]),e}();ne(Xf,"MIN_VERSION",1);ne(Xf,"MAX_VERSION",40);ne(Xf,"PENALTY_N1",3);ne(Xf,"PENALTY_N2",3);ne(Xf,"PENALTY_N3",40);ne(Xf,"PENALTY_N4",10);ne(Xf,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);ne(Xf,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var Wnt={L:dc.LOW,M:dc.MEDIUM,Q:dc.QUARTILE,H:dc.HIGH},ave=128,ove="L",sve="#FFFFFF",lve="#000000",cve=!1,uve=1,Vnt=4,qnt=0,Knt=.1;function dve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,i){var a=null;r.forEach(function(o,s){if(!o&&a!==null){n.push("M".concat(a+t," ").concat(i+t,"h").concat(s-a,"v1H").concat(a+t,"z")),a=null;return}if(s===r.length-1){if(!o)return;a===null?n.push("M".concat(s+t,",").concat(i+t," h1v1H").concat(s+t,"z")):n.push("M".concat(a+t,",").concat(i+t," h").concat(s+1-a,"v1H").concat(a+t,"z"));return}o&&a===null&&(a=s)})}),n.join("")}function fve(e,t){return e.slice().map(function(n,r){return r=t.y+t.h?n:n.map(function(i,a){return a=t.x+t.w?i:!1})})}function Gnt(e,t,n,r){if(r==null)return null;var i=e.length+n*2,a=Math.floor(t*Knt),o=i/t,s=(r.width||a)*o,l=(r.height||a)*o,c=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-l/2:r.y*o,f=r.opacity==null?1:r.opacity,p=null;if(r.excavate){var h=Math.floor(c),m=Math.floor(u),g=Math.ceil(s+c-h),v=Math.ceil(l+u-m);p={x:h,y:m,w:g,h:v}}var y=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:p,opacity:f,crossOrigin:y}}function Ynt(e,t){return t!=null?Math.floor(t):e?Vnt:qnt}var Xnt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function pve(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,a=e.marginSize,o=e.imageSettings,s=e.size,l=d.useMemo(function(){var m=Gm.makeSegments(t);return Xf.encodeSegments(m,Wnt[n],r)},[t,n,r]),c=d.useMemo(function(){var m=l.getModules(),g=Ynt(i,a),v=m.length+g*2,y=Gnt(m,s,g,o);return{cells:m,margin:g,numCells:v,calculatedImageSettings:y}},[l,s,o,i,a]),u=c.cells,f=c.margin,p=c.numCells,h=c.calculatedImageSettings;return{qrcode:l,margin:f,cells:u,numCells:p,calculatedImageSettings:h}}var Znt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],hve=te.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?ave:i,o=t.level,s=o===void 0?ove:o,l=t.bgColor,c=l===void 0?sve:l,u=t.fgColor,f=u===void 0?lve:u,p=t.includeMargin,h=p===void 0?cve:p,m=t.minVersion,g=m===void 0?uve:m,v=t.marginSize,y=t.style,w=t.imageSettings,b=Ht(t,Znt),C=w==null?void 0:w.src,k=d.useRef(null),S=d.useRef(null),_=d.useCallback(function(F){k.current=F,typeof n=="function"?n(F):n&&(n.current=F)},[n]),E=d.useState(!1),$=Te(E,2),M=$[1],P=pve({value:r,level:s,minVersion:g,includeMargin:h,marginSize:v,imageSettings:w,size:a}),R=P.margin,O=P.cells,j=P.numCells,I=P.calculatedImageSettings;d.useEffect(function(){if(k.current!=null){var F=k.current,K=F.getContext("2d");if(!K)return;var L=O,V=S.current,B=I!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;B&&I.excavation!=null&&(L=fve(O,I.excavation));var U=window.devicePixelRatio||1;F.height=F.width=a*U;var Y=a/j*U;K.scale(Y,Y),K.fillStyle=c,K.fillRect(0,0,j,j),K.fillStyle=f,Xnt?K.fill(new Path2D(dve(L,R))):O.forEach(function(ee,ie){ee.forEach(function(Z,X){Z&&K.fillRect(X+R,ie+R,1,1)})}),I&&(K.globalAlpha=I.opacity),B&&K.drawImage(V,I.x+R,I.y+R,I.w,I.h)}}),d.useEffect(function(){M(!1)},[C]);var A=q({height:a,width:a},y),N=null;return C!=null&&(N=te.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:function(){M(!0)},ref:S,crossOrigin:I==null?void 0:I.crossOrigin})),te.createElement(te.Fragment,null,te.createElement("canvas",tt({style:A,height:a,width:a,ref:_,role:"img"},b)),N)});hve.displayName="QRCodeCanvas";var Qnt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],mve=te.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?ave:i,o=t.level,s=o===void 0?ove:o,l=t.bgColor,c=l===void 0?sve:l,u=t.fgColor,f=u===void 0?lve:u,p=t.includeMargin,h=p===void 0?cve:p,m=t.minVersion,g=m===void 0?uve:m,v=t.title,y=t.marginSize,w=t.imageSettings,b=Ht(t,Qnt),C=pve({value:r,level:s,minVersion:g,includeMargin:h,marginSize:y,imageSettings:w,size:a}),k=C.margin,S=C.cells,_=C.numCells,E=C.calculatedImageSettings,$=S,M=null;w!=null&&E!=null&&(E.excavation!=null&&($=fve(S,E.excavation)),M=te.createElement("image",{href:w.src,height:E.h,width:E.w,x:E.x+k,y:E.y+k,preserveAspectRatio:"none",opacity:E.opacity,crossOrigin:E.crossOrigin}));var P=dve($,k);return te.createElement("svg",tt({height:a,width:a,viewBox:"0 0 ".concat(_," ").concat(_),ref:n,role:"img"},b),!!v&&te.createElement("title",null,v),te.createElement("path",{fill:c,d:"M0,0 h".concat(_,"v").concat(_,"H0z"),shapeRendering:"crispEdges"}),te.createElement("path",{fill:f,d:P,shapeRendering:"crispEdges"}),M)});mve.displayName="QRCodeSVG";var Jnt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},ert=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Jnt}))},trt=d.forwardRef(ert),nrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},rrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:nrt}))},irt=d.forwardRef(rrt),art={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},ort=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:art}))},srt=d.forwardRef(ort),lrt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},crt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:lrt}))},urt=d.forwardRef(crt),drt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"},frt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:drt}))},prt=d.forwardRef(frt),hrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},mrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:hrt}))},grt=d.forwardRef(mrt),vrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},yrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:vrt}))},brt=d.forwardRef(yrt),wrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},xrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:wrt}))},Y8=d.forwardRef(xrt),Srt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Crt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Srt}))},_rt=d.forwardRef(Crt),krt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Ert=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:krt}))},Em=d.forwardRef(Ert),$rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Mrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:$rt}))},Trt=d.forwardRef(Mrt),Prt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ort=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Prt}))},gve=d.forwardRef(Ort),Rrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Irt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Rrt}))},vve=d.forwardRef(Irt),jrt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Nrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:jrt}))},Art=d.forwardRef(Nrt),Drt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Frt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Drt}))},Lrt=d.forwardRef(Frt),Brt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},zrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Brt}))},Hrt=d.forwardRef(zrt),Urt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},Wrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Urt}))},Vrt=d.forwardRef(Wrt),qrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Krt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:qrt}))},Grt=d.forwardRef(Krt),Yrt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Xrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Yrt}))},yve=d.forwardRef(Xrt),Zrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Qrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Zrt}))},Jrt=d.forwardRef(Qrt),eit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},tit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:eit}))},Zg=d.forwardRef(tit),nit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},rit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:nit}))},bve=d.forwardRef(rit),iit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},ait=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:iit}))},wve=d.forwardRef(ait),oit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},sit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:oit}))},lit=d.forwardRef(sit),cit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},uit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:cit}))},D4=d.forwardRef(uit),dit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},fit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:dit}))},xve=d.forwardRef(fit),pit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},hit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:pit}))},mit=d.forwardRef(hit),git={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},vit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:git}))},yit=d.forwardRef(vit),bit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},wit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:bit}))},xit=d.forwardRef(wit),Sit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Cit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Sit}))},_it=d.forwardRef(Cit),kit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},Eit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:kit}))},$it=d.forwardRef(Eit),Mit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},Tit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Mit}))},X8=d.forwardRef(Tit),Pit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},Oit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Pit}))},Rit=d.forwardRef(Oit),Iit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},jit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Iit}))},Sve=d.forwardRef(jit),Nit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ait=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Nit}))},Dit=d.forwardRef(Ait),Fit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},Lit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Fit}))},Bit=d.forwardRef(Lit),zit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Hit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:zit}))},F4=d.forwardRef(Hit),Uit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},Wit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Uit}))},az=d.forwardRef(Wit),Vit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},qit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Vit}))},Kit=d.forwardRef(qit),Git=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Cve=d.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,a=e.spin,o=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=Ht(e,Git),f=d.useRef(),p=ku(f,t);mj(!!(r||c),"Should have `component` prop or `children`."),npe(f);var h=d.useContext(qE),m=h.prefixCls,g=m===void 0?"anticon":m,v=h.rootClassName,y=Ee(v,g,ne({},"".concat(g,"-spin"),!!a&&!!r),n),w=Ee(ne({},"".concat(g,"-spin"),!!a)),b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=q(q({},uAe),{},{className:w,style:b,viewBox:i});i||delete C.viewBox;var k=function(){return r?d.createElement(r,C,c):c?(mj(!!i||d.Children.count(c)===1&&d.isValidElement(c)&&d.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",tt({},C,{viewBox:i}),c)):null},S=s;return S===void 0&&l&&(S=-1),d.createElement("span",tt({role:"img"},u,{ref:p,tabIndex:S,onClick:l,className:y}),k())});Cve.displayName="AntdIcon";var Yit=["type","children"],_ve=new Set;function Xit(e){return!!(typeof e=="string"&&e.length&&!_ve.has(e))}function O6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(Xit(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){O6(e,t+1)},r.onerror=function(){O6(e,t+1)}),_ve.add(n),document.body.appendChild(r)}}function kve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?O6(t.reverse()):O6([t]));var i=d.forwardRef(function(a,o){var s=a.type,l=a.children,c=Ht(a,Yit),u=null;return a.type&&(u=d.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),d.createElement(Cve,tt({},r,c,{ref:o}),u)});return i.displayName="Iconfont",i}const Zit=te.createElement(Zo,null);function Qit(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:a}=e;const o=te.createElement(te.Fragment,null,te.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&te.createElement(Yt,{type:"link",icon:te.createElement(X8,null),onClick:r},n==null?void 0:n.refresh)),s=te.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:o,loading:Zit,scanned:s};return(i??(f=>l[f.status]))({status:a,locale:n,onRefresh:r})}const Jit=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Me(n)} ${r} ${i}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},eat=e=>({QRCodeMaskBackgroundColor:new ur(e.colorBgContainer).setA(.96).toRgbString()}),tat=Jn("QRCode",e=>{const t=Hn(e,{QRCodeTextColor:e.colorText});return Jit(t)},eat);var nat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i;const[,a]=ka(),{value:o,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:f=a.colorText,errorLevel:p="M",status:h="active",bordered:m=!0,onRefresh:g,style:v,className:y,rootClassName:w,prefixCls:b,bgColor:C="transparent",statusRender:k}=e,S=nat(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:_}=d.useContext(Xt),E=_("qrcode",b),[$,M,P]=tat(E),R={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(t=u==null?void 0:u.height)!==null&&t!==void 0?t:40,width:typeof u=="number"?u:(n=u==null?void 0:u.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},O=Fi(S,!0),j=$r(S,Object.keys(O)),I=Object.assign({value:o,size:c,level:p,bgColor:C,fgColor:f,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?R:void 0},O),[A]=Ga("QRCode");if(!o)return null;const N=Ee(E,y,w,M,P,{[`${E}-borderless`]:!m}),F=Object.assign(Object.assign({backgroundColor:C},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(i=v==null?void 0:v.height)!==null&&i!==void 0?i:c});return $(te.createElement("div",Object.assign({},j,{className:N,style:F}),h!=="active"&&te.createElement("div",{className:`${E}-mask`},te.createElement(Qit,{prefixCls:E,locale:A,status:h,onRefresh:g,statusRender:k})),s==="canvas"?te.createElement(hve,Object.assign({},I)):te.createElement(mve,Object.assign({},I))))};function rat(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,a=e.characterRender,o=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,f=e.onHover,p=e.onClick,h=function(k){f(k,o)},m=function(k){p(k,o)},g=function(k){k.keyCode===mt.ENTER&&p(k,o)},v=o+1,y=new Set([r]);l===0&&o===0&&u?y.add("".concat(r,"-focused")):c&&l+.5>=v&&lo?"true":"false","aria-posinset":o+1,"aria-setsize":s,tabIndex:n?-1:0},te.createElement("div",{className:"".concat(r,"-first")},w),te.createElement("div",{className:"".concat(r,"-second")},w)));return a&&(b=a(b,e)),b}const iat=te.forwardRef(rat);function aat(){var e=d.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function oat(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function sat(e){var t,n,r=e.ownerDocument,i=r.body,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function lat(e){var t=sat(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=oat(r),t.left}var cat=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function uat(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,a=e.defaultValue,o=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,f=e.allowClear,p=f===void 0?!0:f,h=e.keyboard,m=h===void 0?!0:h,g=e.character,v=g===void 0?"★":g,y=e.characterRender,w=e.disabled,b=e.direction,C=b===void 0?"ltr":b,k=e.tabIndex,S=k===void 0?0:k,_=e.autoFocus,E=e.onHoverChange,$=e.onChange,M=e.onFocus,P=e.onBlur,R=e.onKeyDown,O=e.onMouseLeave,j=Ht(e,cat),I=aat(),A=Te(I,2),N=A[0],F=A[1],K=te.useRef(null),L=function(){if(!w){var G;(G=K.current)===null||G===void 0||G.focus()}};te.useImperativeHandle(t,function(){return{focus:L,blur:function(){if(!w){var G;(G=K.current)===null||G===void 0||G.blur()}}}});var V=In(a||0,{value:o}),B=Te(V,2),U=B[0],Y=B[1],ee=In(null),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=function(G,de){var xe=C==="rtl",he=G+1;if(u){var Ue=N(G),We=lat(Ue),ge=Ue.clientWidth;(xe&&de-We>ge/2||!xe&&de-We0&&!xe||de===mt.RIGHT&&U>0&&xe?(oe(U-he),G.preventDefault()):de===mt.LEFT&&U{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Me(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},pat=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),hat=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),fat(e)),pat(e))}},mat=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),gat=Jn("Rate",e=>{const t=Hn(e,{});return[hat(t)]},mat);var vat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=d.createElement(Dit,null),disabled:l}=e,c=vat(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(k,S)=>{let{index:_}=S;return o?d.createElement(_a,{title:o[_]},k):k},{getPrefixCls:f,direction:p,rate:h}=d.useContext(Xt),m=f("rate",n),[g,v,y]=gat(m),w=Object.assign(Object.assign({},h==null?void 0:h.style),a),b=d.useContext(ma),C=l??b;return g(d.createElement(dat,Object.assign({ref:t,character:s,characterRender:u,disabled:C},c,{className:Ee(r,i,v,y,h==null?void 0:h.className),style:w,prefixCls:m,direction:p})))}),yat=()=>d.createElement("svg",{width:"252",height:"294"},d.createElement("title",null,"No Found"),d.createElement("defs",null,d.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .012)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),d.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),d.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),d.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),d.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),d.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),d.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),d.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),d.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),d.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),d.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),d.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),d.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),d.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),d.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),d.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),d.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),d.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),d.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),d.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),d.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),d.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),d.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),d.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),d.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),d.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),d.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),d.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),d.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),d.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),d.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),d.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),d.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),d.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),d.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),bat=()=>d.createElement("svg",{width:"254",height:"294"},d.createElement("title",null,"Server Error"),d.createElement("defs",null,d.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),d.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .067)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),d.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),d.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),d.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),d.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),d.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),d.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),d.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),d.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),d.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),d.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),d.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),d.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),d.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),d.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),d.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),d.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),d.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),d.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),d.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),d.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),d.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),d.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),d.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),d.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),d.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),d.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),d.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),d.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),d.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),d.createElement("mask",{fill:"#fff"}),d.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),d.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),d.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),d.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),wat=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${Me(e.calc(s).mul(2).equal())} ${Me(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${Me(s)} ${Me(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},xat=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},Sat=e=>[wat(e),xat(e)],Cat=e=>Sat(e),_at=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),kat=Jn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,a=Hn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[Cat(a)]},_at),Eat=()=>d.createElement("svg",{width:"251",height:"294"},d.createElement("title",null,"Unauthorized"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),d.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),d.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),d.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),d.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),d.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),d.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),d.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),d.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),d.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),d.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),d.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),d.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),d.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),d.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),d.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),d.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),d.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),d.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),d.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),d.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),d.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),d.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),d.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),d.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),d.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),d.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),d.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),d.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),d.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),d.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),d.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),d.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),$at={success:Ug,error:Pd,info:qf,warning:Kit},L4={404:yat,500:bat,403:Eat},Mat=Object.keys(L4),Tat=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=Ee(`${t}-icon`);if(Mat.includes(`${r}`)){const o=L4[r];return d.createElement("div",{className:`${i} ${t}-image`},d.createElement(o,null))}const a=d.createElement($at[r]);return n===null||n===!1?null:d.createElement("div",{className:i},n||a)},Pat=e=>{let{prefixCls:t,extra:n}=e;return n?d.createElement("div",{className:`${t}-extra`},n):null},Qg=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:a,style:o,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:p,result:h}=d.useContext(Xt),m=f("result",t),[g,v,y]=kat(m),w=Ee(m,`${m}-${l}`,n,h==null?void 0:h.className,r,{[`${m}-rtl`]:p==="rtl"},v,y),b=Object.assign(Object.assign({},h==null?void 0:h.style),o);return g(d.createElement("div",{className:w,style:b},d.createElement(Tat,{prefixCls:m,status:l,icon:c}),d.createElement("div",{className:`${m}-title`},a),i&&d.createElement("div",{className:`${m}-subtitle`},i),d.createElement(Pat,{prefixCls:m,extra:u}),s&&d.createElement("div",{className:`${m}-content`},s)))};Qg.PRESENTED_IMAGE_403=L4[403];Qg.PRESENTED_IMAGE_404=L4[404];Qg.PRESENTED_IMAGE_500=L4[500];var Oat=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function vZ(e){return typeof e=="string"}function Eve(e){var t,n=e.className,r=e.prefixCls,i=e.style,a=e.active,o=e.status,s=e.iconPrefix,l=e.icon;e.wrapperStyle;var c=e.stepNumber,u=e.disabled,f=e.description,p=e.title,h=e.subTitle,m=e.progressDot,g=e.stepIcon,v=e.tailContent,y=e.icons,w=e.stepIndex,b=e.onStepClick,C=e.onClick,k=e.render,S=Ht(e,Oat),_=!!b&&!u,E={};_&&(E.role="button",E.tabIndex=0,E.onClick=function(j){C==null||C(j),b(w)},E.onKeyDown=function(j){var I=j.which;(I===mt.ENTER||I===mt.SPACE)&&b(w)});var $=function(){var I,A,N=Ee("".concat(r,"-icon"),"".concat(s,"icon"),(I={},ne(I,"".concat(s,"icon-").concat(l),l&&vZ(l)),ne(I,"".concat(s,"icon-check"),!l&&o==="finish"&&(y&&!y.finish||!y)),ne(I,"".concat(s,"icon-cross"),!l&&o==="error"&&(y&&!y.error||!y)),I)),F=d.createElement("span",{className:"".concat(r,"-icon-dot")});return m?typeof m=="function"?A=d.createElement("span",{className:"".concat(r,"-icon")},m(F,{index:c-1,status:o,title:p,description:f})):A=d.createElement("span",{className:"".concat(r,"-icon")},F):l&&!vZ(l)?A=d.createElement("span",{className:"".concat(r,"-icon")},l):y&&y.finish&&o==="finish"?A=d.createElement("span",{className:"".concat(r,"-icon")},y.finish):y&&y.error&&o==="error"?A=d.createElement("span",{className:"".concat(r,"-icon")},y.error):l||o==="finish"||o==="error"?A=d.createElement("span",{className:N}):A=d.createElement("span",{className:"".concat(r,"-icon")},c),g&&(A=g({index:c-1,status:o,title:p,description:f,node:A})),A},M=o||"wait",P=Ee("".concat(r,"-item"),"".concat(r,"-item-").concat(M),n,(t={},ne(t,"".concat(r,"-item-custom"),l),ne(t,"".concat(r,"-item-active"),a),ne(t,"".concat(r,"-item-disabled"),u===!0),t)),R=q({},i),O=d.createElement("div",tt({},S,{className:P,style:R}),d.createElement("div",tt({onClick:C},E,{className:"".concat(r,"-item-container")}),d.createElement("div",{className:"".concat(r,"-item-tail")},v),d.createElement("div",{className:"".concat(r,"-item-icon")},$()),d.createElement("div",{className:"".concat(r,"-item-content")},d.createElement("div",{className:"".concat(r,"-item-title")},p,h&&d.createElement("div",{title:typeof h=="string"?h:void 0,className:"".concat(r,"-item-subtitle")},h)),f&&d.createElement("div",{className:"".concat(r,"-item-description")},f))));return k&&(O=k(O)||null),O}var Rat=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function sz(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,i=e.style,a=i===void 0?{}:i,o=e.className;e.children;var s=e.direction,l=s===void 0?"horizontal":s,c=e.type,u=c===void 0?"default":c,f=e.labelPlacement,p=f===void 0?"horizontal":f,h=e.iconPrefix,m=h===void 0?"rc":h,g=e.status,v=g===void 0?"process":g,y=e.size,w=e.current,b=w===void 0?0:w,C=e.progressDot,k=C===void 0?!1:C,S=e.stepIcon,_=e.initial,E=_===void 0?0:_,$=e.icons,M=e.onChange,P=e.itemRender,R=e.items,O=R===void 0?[]:R,j=Ht(e,Rat),I=u==="navigation",A=u==="inline",N=A||k,F=A?"horizontal":l,K=A?void 0:y,L=N?"vertical":p,V=Ee(r,"".concat(r,"-").concat(F),o,(t={},ne(t,"".concat(r,"-").concat(K),K),ne(t,"".concat(r,"-label-").concat(L),F==="horizontal"),ne(t,"".concat(r,"-dot"),!!N),ne(t,"".concat(r,"-navigation"),I),ne(t,"".concat(r,"-inline"),A),t)),B=function(ee){M&&b!==ee&&M(ee)},U=function(ee,ie){var Z=q({},ee),X=E+ie;return v==="error"&&ie===b-1&&(Z.className="".concat(r,"-next-error")),Z.status||(X===b?Z.status=v:X{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:i}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:i,lineHeight:Me(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},jat=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},Nat=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:i}=e,a=e.calc(e.paddingXS).add(e.lineWidth).equal(),o={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${Me(a)} ${Me(e.paddingXXS)} 0`,margin:`0 ${Me(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${Me(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(a).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${Me(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:i},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i,border:`${Me(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-error":o,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${Me(e.calc(n).div(2).equal())})`,top:0}},o),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},Aat=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:i}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${Me(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(i).div(2).add(e.controlHeightLG).equal()}}}}}},Dat=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:i,motionDurationSlow:a}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${a}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ao),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${Me(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:i,transition:`width ${a}, inset-inline-start ${a}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${Me(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Fat=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:i,processIconColor:a,marginXXS:o,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,u=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),f=e.calc(i).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:a}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:o,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(i).div(2).sub(l).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${Me(u)} !important`,height:`${Me(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(i).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${Me(f)} !important`,height:`${Me(f)} !important`}}}}},Lat=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:i,dotSize:a,motionDurationSlow:o}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${Me(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${Me(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal(),paddingInlineEnd:0,lineHeight:Me(a),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${o}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(a).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(a).sub(i).div(2).equal(),width:i,height:i,lineHeight:Me(i),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),top:0,insetInlineStart:e.calc(a).sub(i).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(a).div(2).equal(),insetInlineStart:0,margin:0,padding:`${Me(e.calc(a).add(e.paddingXS).equal())} 0 ${Me(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(a).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(a).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Bat=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},zat=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:i,colorTextDescription:a}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${Me(e.marginXS)}`,fontSize:r,lineHeight:Me(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:i,lineHeight:Me(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:a,fontSize:i},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:Me(n),transform:"none"}}}}},Hat=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:Me(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${Me(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${Me(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${Me(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${Me(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:Me(n)}}}}},Uat="wait",Wat="process",Vat="finish",qat="error",PS=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,i=`${e}TitleColor`,a=`${e}DescriptionColor`,o=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[i],"&::after":{backgroundColor:t[o]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[a]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[o]}}},Kat=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,i=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[i]:Object.assign({},yc(e))}},[`${i}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[i]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:Me(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:Me(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},PS(Uat,e)),PS(Wat,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),PS(Vat,e)),PS(qat,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},Gat=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},Yat=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Kat(e)),Gat(e)),Iat(e)),zat(e)),Hat(e)),jat(e)),Aat(e)),Lat(e)),Dat(e)),Bat(e)),Fat(e)),Nat(e))}},Xat=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),Zat=Jn("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:i,colorPrimary:a,colorTextDescription:o,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:u}=e,f=Hn(e,{processIconColor:r,processTitleColor:i,processDescriptionColor:i,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:u,waitTitleColor:o,waitDescriptionColor:o,waitTailColor:u,waitDotColor:t,finishIconColor:a,finishTitleColor:i,finishDescriptionColor:o,finishTailColor:a,finishDotColor:a,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:u,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c});return[Yat(f)]},Xat);function Qat(e){return e.filter(t=>t)}function Jat(e,t){if(e)return e;const n=Xi(t).map(r=>{if(d.isValidElement(r)){const{props:i}=r;return Object.assign({},i)}return null});return Qat(n)}var eot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{percent:t,size:n,className:r,rootClassName:i,direction:a,items:o,responsive:s=!0,current:l=0,children:c,style:u}=e,f=eot(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=M4(s),{getPrefixCls:h,direction:m,steps:g}=d.useContext(Xt),v=d.useMemo(()=>s&&p?"vertical":a,[p,a]),y=Bi(n),w=h("steps",e.prefixCls),[b,C,k]=Zat(w),S=e.type==="inline",_=h("",e.iconPrefix),E=Jat(o,c),$=S?void 0:t,M=Object.assign(Object.assign({},g==null?void 0:g.style),u),P=Ee(g==null?void 0:g.className,{[`${w}-rtl`]:m==="rtl",[`${w}-with-progress`]:$!==void 0},r,i,C,k),R={finish:d.createElement(ud,{className:`${w}-finish-icon`}),error:d.createElement(Eu,{className:`${w}-error-icon`})},O=I=>{let{node:A,status:N}=I;if(N==="process"&&$!==void 0){const F=y==="small"?32:40;return d.createElement("div",{className:`${w}-progress-icon`},d.createElement(iz,{type:"circle",percent:$,size:F,strokeWidth:4,format:()=>null}),A)}return A},j=(I,A)=>I.description?d.createElement(_a,{title:I.description},A):A;return b(d.createElement(sz,Object.assign({icons:R},f,{style:M,current:l,size:y,items:E,itemRender:S?j:void 0,stepIcon:O,direction:v,prefixCls:w,iconPrefix:_,className:P})))};$ve.Step=sz.Step;var tot=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Mve=d.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,a=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,m=e.onKeyDown,g=Ht(e,tot),v=In(!1,{value:o,defaultValue:s}),y=Te(v,2),w=y[0],b=y[1];function C(E,$){var M=w;return l||(M=E,b(M),h==null||h(M,$)),M}function k(E){E.which===mt.LEFT?C(!1,E):E.which===mt.RIGHT&&C(!0,E),m==null||m(E)}function S(E){var $=C(!w,E);p==null||p($,E)}var _=Ee(i,a,(n={},ne(n,"".concat(i,"-checked"),w),ne(n,"".concat(i,"-disabled"),l),n));return d.createElement("button",tt({},g,{type:"button",role:"switch","aria-checked":w,disabled:l,className:_,ref:t,onKeyDown:k,onClick:S}),c,d.createElement("span",{className:"".concat(i,"-inner")},d.createElement("span",{className:"".concat(i,"-inner-checked")},u),d.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});Mve.displayName="Switch";const not=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Me(l(s).add(l(r).mul(2)).equal()),f=Me(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Me(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Me(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},rot=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},iot=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Me(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},aot=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,calc:s}=e,l=`${t}-inner`,c=Me(s(o).add(s(r).mul(2)).equal()),u=Me(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},oot=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Me(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Vs(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},sot=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=2,l=a-s*2,c=o-s*2;return{trackHeight:a,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ur("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},lot=Jn("Switch",e=>{const t=Hn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[oot(t),aot(t),iot(t),rot(t),not(t)]},sot);var cot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:p,onChange:h}=e,m=cot(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=In(!1,{value:c??u,defaultValue:f??p}),{getPrefixCls:y,direction:w,switch:b}=d.useContext(Xt),C=d.useContext(ma),k=(i??C)||a,S=y("switch",n),_=d.createElement("div",{className:`${S}-handle`},a&&d.createElement(vu,{className:`${S}-loading-icon`})),[E,$,M]=lot(S),P=Bi(r),R=Ee(b==null?void 0:b.className,{[`${S}-small`]:P==="small",[`${S}-loading`]:a,[`${S}-rtl`]:w==="rtl"},o,s,$,M),O=Object.assign(Object.assign({},b==null?void 0:b.style),l),j=function(){v(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return E(d.createElement(x4,{component:"Switch"},d.createElement(Mve,Object.assign({},m,{checked:g,onChange:j,prefixCls:S,className:R,style:O,disabled:k,ref:t,loadingIcon:_}))))}),R6=uot;R6.__ANT_SWITCH=!0;var lz=d.createContext(null),Tve=d.createContext({}),dot=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function lp(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function cz(e){return e.split("-")}function mot(e,t){var n=[],r=Ns(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(o){var s=o.key,l=o.children;n.push(s),i(l)})}return i(r.children),n}function got(e){if(e.parent){var t=cz(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function vot(e){var t=cz(e.pos);return Number(t[t.length-1])===0}function wZ(e,t,n,r,i,a,o,s,l,c){var u,f=e.clientX,p=e.clientY,h=e.target.getBoundingClientRect(),m=h.top,g=h.height,v=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-f),y=(v-12)/r,w=l.filter(function(A){var N;return(N=s[A])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),b=Ns(s,n.eventKey);if(p-1.5?a({dragNode:O,dropNode:j,dropPosition:1})?M=1:I=!1:a({dragNode:O,dropNode:j,dropPosition:0})?M=0:a({dragNode:O,dropNode:j,dropPosition:1})?M=1:I=!1:a({dragNode:O,dropNode:j,dropPosition:1})?M=1:I=!1,{dropPosition:M,dropLevelOffset:P,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:$,dropContainerKey:M===0?null:((u=b.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:I}}function xZ(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function oT(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Kt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Br(!1,"`checkedKeys` is not an array or an object"),null;return t}function Jj(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=Ns(t,i);if(a){n.add(i);var o=a.parent,s=a.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(i){r(i)}),lt(n)}function SZ(e){const[t,n]=d.useState(null);return[d.useCallback((a,o,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),f=o.slice(c,u+1).map(m=>e(m)),p=f.some(m=>!s.has(m)),h=[];return f.forEach(m=>{p?(s.has(m)||h.push(m),s.add(m)):(s.delete(m),h.push(m))}),n(p?u:null),h},[t]),a=>{n(a)}]}var yot=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*i;break;case 1:a.bottom=0,a.left=-r*i;break;case 0:a.bottom=0,a.left=i;break}return te.createElement("div",{style:a})};function Pve(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function bot(e,t){var n=d.useState(!1),r=Te(n,2),i=r[0],a=r[1];nr(function(){if(i)return e(),function(){t()}},[i]),nr(function(){return a(!0),function(){a(!1)}},[])}var wot=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],xot=d.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=Ht(e,wot),p=d.useState(!0),h=Te(p,2),m=h[0],g=h[1],v=d.useContext(lz),y=v.prefixCls,w=a&&o!=="hide";nr(function(){a&&w!==m&&g(w)},[a]);var b=function(){a&&s()},C=d.useRef(!1),k=function(){a&&!C.current&&(C.current=!0,l())};bot(b,k);var S=function(E){w===E&&k()};return a?d.createElement(Ca,tt({ref:t,visible:m},i,{motionAppear:o==="show",onVisibleChanged:S}),function(_,E){var $=_.className,M=_.style;return d.createElement("div",{ref:E,className:Ee("".concat(y,"-treenode-motion"),$),style:M},a.map(function(P){var R=Object.assign({},(Pve(P.data),P.data)),O=P.title,j=P.key,I=P.isStart,A=P.isEnd;delete R.children;var N=J2(j,u);return d.createElement(u3,tt({},R,N,{title:O,active:c,data:P.data,key:j,isStart:I,isEnd:A}))}))}):d.createElement(u3,tt({domRef:t,className:n,style:r},f,{active:c}))});function Sot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,o){var s=new Map;a.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var Eot=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,y=e.itemHeight,w=e.virtual,b=e.scrollWidth,C=e.focusable,k=e.activeItem,S=e.focused,_=e.tabIndex,E=e.onKeyDown,$=e.onFocus,M=e.onBlur,P=e.onActiveChange,R=e.onListChangeStart,O=e.onListChangeEnd,j=Ht(e,Cot),I=d.useRef(null),A=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(we){I.current.scrollTo(we)},getIndentWidth:function(){return A.current.offsetWidth}}});var N=d.useState(i),F=Te(N,2),K=F[0],L=F[1],V=d.useState(r),B=Te(V,2),U=B[0],Y=B[1],ee=d.useState(r),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=d.useState([]),oe=Te(ae,2),le=oe[0],ce=oe[1],pe=d.useState(null),me=Te(pe,2),re=me[0],fe=me[1],ve=d.useRef(r);ve.current=r;function $e(){var Se=ve.current;Y(Se),X(Se),ce([]),fe(null),O()}nr(function(){L(i);var Se=Sot(K,i);if(Se.key!==null)if(Se.add){var we=U.findIndex(function(G){var de=G.key;return de===Se.key}),se=EZ(CZ(U,r,Se.key),w,v,y),ye=U.slice();ye.splice(we+1,0,kZ),X(ye),ce(se),fe("show")}else{var Oe=r.findIndex(function(G){var de=G.key;return de===Se.key}),z=EZ(CZ(r,U,Se.key),w,v,y),H=r.slice();H.splice(Oe+1,0,kZ),X(H),ce(z),fe("hide")}else U!==r&&(Y(r),X(r))},[i,r]),d.useEffect(function(){p||$e()},[p]);var Ce=g?Z:r,be={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:m,keyEntities:u};return d.createElement(d.Fragment,null,S&&k&&d.createElement("span",{style:_Z,"aria-live":"assertive"},kot(k)),d.createElement("div",null,d.createElement("input",{style:_Z,disabled:C===!1||f,tabIndex:C!==!1?_:null,onKeyDown:E,onFocus:$,onBlur:M,value:"",onChange:_ot,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),d.createElement(vB,tt({},j,{data:Ce,itemKey:$Z,height:v,fullHeight:!1,virtual:w,itemHeight:y,scrollWidth:b,prefixCls:"".concat(n,"-list"),ref:I,role:"tree",onVisibleChange:function(we){we.every(function(se){return $Z(se)!==Sg})&&$e()}}),function(Se){var we=Se.pos,se=Object.assign({},(Pve(Se.data),Se.data)),ye=Se.title,Oe=Se.key,z=Se.isStart,H=Se.isEnd,G=O4(Oe,we);delete se.key,delete se.children;var de=J2(G,be);return d.createElement(xot,tt({},se,de,{title:ye,active:!!k&&Oe===k.key,pos:we,data:Se.data,isStart:z,isEnd:H,motion:g,motionNodes:Oe===Sg?le:null,motionType:re,onMotionStart:R,onMotionEnd:$e,treeNodeRequiredProps:be,onMouseMove:function(){P(null)}}))}))}),$ot=10,Z8=function(e){$o(n,e);var t=rs(n);function n(){var r;Ar(this,n);for(var i=arguments.length,a=new Array(i),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,h=f.dropPosition,m=f.dropTargetKey,g=f.dropTargetPos,v=f.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var w=q(q({},J2(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:Ns(r.state.keyEntities,m).node}),b=p.includes(m);Br(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=cz(g),k={event:s,node:Pa(w),dragNode:r.dragNodeProps?Pa(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:h!==0,dropPosition:h+Number(C[C.length-1])};u||y==null||y(k),r.dragNodeProps=null}}}),ne(fn(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ne(fn(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,p=l.expanded,h=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var g=f.filter(function(y){return y.key===h})[0],v=Pa(q(q({},J2(h,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(p?Wd(u,h):lp(u,h)),r.onNodeExpand(s,v)}}),ne(fn(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ne(fn(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ne(fn(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,p=u.fieldNames,h=r.props,m=h.onSelect,g=h.multiple,v=l.selected,y=l[p.key],w=!v;w?g?c=lp(c,y):c=[y]:c=Wd(c,y);var b=c.map(function(C){var k=Ns(f,C);return k?k.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:w,node:l,selectedNodes:b,nativeEvent:s.nativeEvent})}),ne(fn(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,p=u.checkedKeys,h=u.halfCheckedKeys,m=r.props,g=m.checkStrictly,v=m.onCheck,y=l.key,w,b={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var C=c?lp(p,y):Wd(p,y),k=Wd(h,y);w={checked:C,halfChecked:k},b.checkedNodes=C.map(function(P){return Ns(f,P)}).filter(Boolean).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:C})}else{var S=bf([].concat(lt(p),[y]),!0,f),_=S.checkedKeys,E=S.halfCheckedKeys;if(!c){var $=new Set(_);$.delete(y);var M=bf(Array.from($),{checked:!1,halfCheckedKeys:E},f);_=M.checkedKeys,E=M.halfCheckedKeys}w=_,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=E,_.forEach(function(P){var R=Ns(f,P);if(R){var O=R.node,j=R.pos;b.checkedNodes.push(O),b.checkedNodesPositions.push({node:O,pos:j})}}),r.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:E})}v==null||v(w,b)}),ne(fn(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=Ns(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var p=new Promise(function(h,m){r.setState(function(g){var v=g.loadedKeys,y=v===void 0?[]:v,w=g.loadingKeys,b=w===void 0?[]:w,C=r.props,k=C.loadData,S=C.onLoad;if(!k||y.includes(c)||b.includes(c))return null;var _=k(s);return _.then(function(){var E=r.state.loadedKeys,$=lp(E,c);S==null||S($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(M){return{loadingKeys:Wd(M.loadingKeys,c)}}),h()}).catch(function(E){if(r.setState(function(M){return{loadingKeys:Wd(M.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=$ot){var $=r.state.loadedKeys;Br(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:lp($,c)}),h()}m(E)}),{loadingKeys:lp(b,c)}})});return p.catch(function(){}),p}}),ne(fn(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ne(fn(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ne(fn(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ne(fn(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,p={};Object.keys(s).forEach(function(h){if(r.props.hasOwnProperty(h)){f=!1;return}u=!0,p[h]=s[h]}),u&&(!l||f)&&r.setState(q(q({},p),c))}}),ne(fn(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Dr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,o=i.itemScrollOffset,s=o===void 0?0:o;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,o=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,f=i.dropContainerKey,p=i.dropTargetKey,h=i.dropPosition,m=i.dragOverNodeKey,g=i.indent,v=this.props,y=v.prefixCls,w=v.className,b=v.style,C=v.showLine,k=v.focusable,S=v.tabIndex,_=S===void 0?0:S,E=v.selectable,$=v.showIcon,M=v.icon,P=v.switcherIcon,R=v.draggable,O=v.checkable,j=v.checkStrictly,I=v.disabled,A=v.motion,N=v.loadData,F=v.filterTreeNode,K=v.height,L=v.itemHeight,V=v.scrollWidth,B=v.virtual,U=v.titleRender,Y=v.dropIndicatorRender,ee=v.onContextMenu,ie=v.onScroll,Z=v.direction,X=v.rootClassName,ae=v.rootStyle,oe=Fi(this.props,{aria:!0,data:!0}),le;R&&(Kt(R)==="object"?le=R:typeof R=="function"?le={nodeDraggable:R}:le={});var ce={prefixCls:y,selectable:E,showIcon:$,icon:M,switcherIcon:P,draggable:le,draggingNodeKey:l,checkable:O,checkStrictly:j,disabled:I,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:p,dropPosition:h,dragOverNodeKey:m,indent:g,direction:Z,dropIndicatorRender:Y,loadData:N,filterTreeNode:F,titleRender:U,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return d.createElement(lz.Provider,{value:ce},d.createElement("div",{className:Ee(y,w,X,ne(ne(ne({},"".concat(y,"-show-line"),C),"".concat(y,"-focused"),a),"".concat(y,"-active-focused"),c!==null)),style:ae},d.createElement(Eot,tt({ref:this.listRef,prefixCls:y,style:b,data:o,disabled:I,selectable:E,checkable:!!O,motion:A,dragging:l!==null,height:K,itemHeight:L,virtual:B,focusable:k,focused:a,tabIndex:_,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ee,onScroll:ie,scrollWidth:V},this.getTreeNodeRequiredProps(),oe))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s={prevProps:i};function l(_){return!o&&i.hasOwnProperty(_)||o&&o[_]!==i[_]}var c,u=a.fieldNames;if(l("fieldNames")&&(u=A0(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(Br(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=$ge(i.children)),c){s.treeData=c;var f=L8(c,{fieldNames:u});s.keyEntities=q(ne({},Sg,Ove),f.keyEntities)}var p=s.keyEntities||a.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!o&&i.defaultExpandParent?Jj(i.expandedKeys,p):i.expandedKeys;else if(!o&&i.defaultExpandAll){var h=q({},p);delete h[Sg];var m=[];Object.keys(h).forEach(function(_){var E=h[_];E.children&&E.children.length&&m.push(E.key)}),s.expandedKeys=m}else!o&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?Jj(i.defaultExpandedKeys,p):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=Y9(c||a.treeData,s.expandedKeys||a.expandedKeys,u);s.flattenNodes=g}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=xZ(i.selectedKeys,i):!o&&i.defaultSelectedKeys&&(s.selectedKeys=xZ(i.defaultSelectedKeys,i))),i.checkable){var v;if(l("checkedKeys")?v=oT(i.checkedKeys)||{}:!o&&i.defaultCheckedKeys?v=oT(i.defaultCheckedKeys)||{}:c&&(v=oT(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),v){var y=v,w=y.checkedKeys,b=w===void 0?[]:w,C=y.halfCheckedKeys,k=C===void 0?[]:C;if(!i.checkStrictly){var S=bf(b,!0,p);b=S.checkedKeys,k=S.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=k}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(d.Component);ne(Z8,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:yot,allowDrop:function(){return!0},expandAction:!1});ne(Z8,"TreeNode",u3);const Mot=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:a,borderRadius:o,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},Tot=new ir("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Pot=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Oot=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Me(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Rot=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},ar(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},yc(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Tot,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:Me(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Pot(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Oot(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Me(t.calc(a).div(2).equal())} !important`}})}},Rve=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Hn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[Rot(e,a),Mot(a)]},Ive=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Iot=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Ive(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},jot=Jn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:B8(`${n}-checkbox`,e)},Rve(n,e),S4(e)]},Iot),MZ=4;function Not(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:-n*i+MZ,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=i+MZ;break}return te.createElement("div",{style:l,className:`${r}-drop-indicator`})}const jve=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:l}=r;if(l)return d.isValidElement(a)?a:d.createElement(vu,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),o){if(!i)return null;if(typeof c!="boolean"&&c){const p=typeof c=="function"?c(r):c,h=`${t}-switcher-line-custom-icon`;return d.isValidElement(p)?aa(p,{className:Ee(p.props.className||"",h)}):p}return c?d.createElement(vve,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return d.isValidElement(f)?aa(f,{className:Ee(f.props.className||"",u)}):f!==void 0?f:i?s?d.createElement(lit,{className:`${t}-switcher-line-icon`}):d.createElement(_it,{className:`${t}-switcher-line-icon`}):d.createElement(urt,{className:u})},Nve=te.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:o}=te.useContext(Xt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:p,blockNode:h=!1,children:m,checkable:g=!1,selectable:v=!0,draggable:y,motion:w,style:b}=e,C=r("tree",s),k=r(),S=w??Object.assign(Object.assign({},P0(k)),{motionAppear:!1}),_=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:S,blockNode:h,showLine:!!u,dropIndicatorRender:Not}),[E,$,M]=jot(C),[,P]=ka(),R=P.paddingXS/2+(((n=P.Tree)===null||n===void 0?void 0:n.titleHeight)||P.controlHeightSM),O=te.useMemo(()=>{if(!y)return!1;let I={};switch(typeof y){case"function":I.nodeDraggable=y;break;case"object":I=Object.assign({},y);break}return I.icon!==!1&&(I.icon=I.icon||te.createElement(Grt,null)),I},[y]),j=I=>te.createElement(jve,{prefixCls:C,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:I,showLine:u});return E(te.createElement(Z8,Object.assign({itemHeight:R,ref:t,virtual:a},_,{style:Object.assign(Object.assign({},o==null?void 0:o.style),b),prefixCls:C,className:Ee({[`${C}-icon-hide`]:!c,[`${C}-block-node`]:h,[`${C}-unselectable`]:!v,[`${C}-rtl`]:i==="rtl"},o==null?void 0:o.className,l,$,M),direction:i,checkable:g&&te.createElement("span",{className:`${C}-checkbox-inner`}),selectable:v,switcherIcon:j,draggable:O}),m))}),TZ=0,sT=1,PZ=2;function uz(e,t,n){const{key:r,children:i}=n;function a(o){const s=o[r],l=o[i];t(s,o)!==!1&&uz(l||[],t,n)}e.forEach(a)}function Aot(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:a}=e;const o=[];let s=TZ;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return uz(t,c=>{if(s===PZ)return!1;if(l(c)){if(o.push(c),s===TZ)s=sT;else if(s===sT)return s=PZ,!1}else s===sT&&o.push(c);return n.includes(c)},A0(a)),o}function lT(e,t,n){const r=lt(t),i=[];return uz(e,(a,o)=>{const s=r.indexOf(a);return s!==-1&&(i.push(o),r.splice(s,1)),!!r.length},A0(n)),i}var OZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=OZ(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:E}=L8(RZ(a));let $;return n?$=Object.keys(E):r?$=Jj(a.expandedKeys||i||[],E):$=a.expandedKeys||i||[],$},[c,u]=d.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,p]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in a&&u(a.selectedKeys)},[a.selectedKeys]),d.useEffect(()=>{"expandedKeys"in a&&p(a.expandedKeys)},[a.expandedKeys]);const h=(E,$)=>{var M;return"expandedKeys"in a||p(E),(M=a.onExpand)===null||M===void 0?void 0:M.call(a,E,$)},m=(E,$)=>{var M;const{multiple:P,fieldNames:R}=a,{node:O,nativeEvent:j}=$,{key:I=""}=O,A=RZ(a),N=Object.assign(Object.assign({},$),{selected:!0}),F=(j==null?void 0:j.ctrlKey)||(j==null?void 0:j.metaKey),K=j==null?void 0:j.shiftKey;let L;P&&F?(L=E,o.current=I,s.current=L,N.selectedNodes=lT(A,L,R)):P&&K?(L=Array.from(new Set([].concat(lt(s.current||[]),lt(Aot({treeData:A,expandedKeys:f,startKey:I,endKey:o.current,fieldNames:R}))))),N.selectedNodes=lT(A,L,R)):(L=[I],o.current=I,s.current=L,N.selectedNodes=lT(A,L,R)),(M=a.onSelect)===null||M===void 0||M.call(a,L,N),"selectedKeys"in a||u(L)},{getPrefixCls:g,direction:v}=d.useContext(Xt),{prefixCls:y,className:w,showIcon:b=!0,expandAction:C="click"}=a,k=OZ(a,["prefixCls","className","showIcon","expandAction"]),S=g("tree",y),_=Ee(`${S}-directory`,{[`${S}-directory-rtl`]:v==="rtl"},w);return d.createElement(Nve,Object.assign({icon:Dot,ref:t,blockNode:!0},k,{showIcon:b,expandAction:C,prefixCls:S,className:_,expandedKeys:f,selectedKeys:c,onSelect:m,onExpand:h}))},Lot=d.forwardRef(Fot),dz=Nve;dz.DirectoryTree=Lot;dz.TreeNode=u3;const Bot=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},ar(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},fz=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Hn(e,{tagFontSize:i,tagLineHeight:Me(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},pz=e=>({defaultBg:new ur(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Ave=Jn("Tag",e=>{const t=fz(e);return Bot(t)},pz);var zot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,style:r,className:i,checked:a,onChange:o,onClick:s}=e,l=zot(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=d.useContext(Xt),f=y=>{o==null||o(!a),s==null||s(y)},p=c("tag",n),[h,m,g]=Ave(p),v=Ee(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},u==null?void 0:u.className,i,m,g);return h(d.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))}),Uot=e=>XE(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Wot=Sy(["Tag","preset"],e=>{const t=fz(e);return Uot(t)},pz);function Vot(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const OS=(e,t,n)=>{const r=Vot(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},qot=Sy(["Tag","status"],e=>{const t=fz(e);return[OS(t,"success","Success"),OS(t,"processing","Info"),OS(t,"error","Error"),OS(t,"warning","Warning")]},pz);var Kot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,p=Kot(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:m,tag:g}=d.useContext(Xt),[v,y]=d.useState(!0),w=$r(p,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&y(f)},[f]);const b=C8(l),C=yWe(l),k=b||C,S=Object.assign(Object.assign({backgroundColor:l&&!k?l:void 0},g==null?void 0:g.style),a),_=h("tag",n),[E,$,M]=Ave(_),P=Ee(_,g==null?void 0:g.className,{[`${_}-${l}`]:k,[`${_}-has-color`]:l&&!k,[`${_}-hidden`]:!v,[`${_}-rtl`]:m==="rtl",[`${_}-borderless`]:!u},r,i,$,M),R=F=>{F.stopPropagation(),c==null||c(F),!F.defaultPrevented&&y(!1)},[,O]=dB(R0(e),R0(g),{closable:!1,closeIconRender:F=>{const K=d.createElement("span",{className:`${_}-close-icon`,onClick:R},F);return KL(F,K,L=>({onClick:V=>{var B;(B=L==null?void 0:L.onClick)===null||B===void 0||B.call(L,V),R(V)},className:Ee(L==null?void 0:L.className,`${_}-close-icon`)}))}}),j=typeof p.onClick=="function"||o&&o.type==="a",I=s||null,A=I?d.createElement(d.Fragment,null,I,o&&d.createElement("span",null,o)):o,N=d.createElement("span",Object.assign({},w,{ref:t,className:P,style:S}),A,O,b&&d.createElement(Wot,{key:"preset",prefixCls:_}),C&&d.createElement(qot,{key:"status",prefixCls:_}));return E(j?d.createElement(x4,{component:"Tag"},N):N)}),Vi=Got;Vi.CheckableTag=Hot;const Yot=e=>{const t=e!=null&&e.algorithm?fg(e.algorithm):fg(v4),n=Object.assign(Object.assign({},T0),e==null?void 0:e.token);return jL(n,{override:e==null?void 0:e.token},t,WL)};function Xot(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Zot=(e,t)=>{const n=t??v4(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Xot(t??e)),Cfe(r)),{controlHeight:i}),Sfe(Object.assign(Object.assign({},n),{controlHeight:i})))},Yl=(e,t)=>new ur(e).setA(t).toRgbString(),D1=(e,t)=>new ur(e).lighten(t).toHexString(),Qot=e=>{const t=dh(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Jot=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Yl(r,.85),colorTextSecondary:Yl(r,.65),colorTextTertiary:Yl(r,.45),colorTextQuaternary:Yl(r,.25),colorFill:Yl(r,.18),colorFillSecondary:Yl(r,.12),colorFillTertiary:Yl(r,.08),colorFillQuaternary:Yl(r,.04),colorBgSolid:Yl(r,.95),colorBgSolidHover:Yl(r,1),colorBgSolidActive:Yl(r,.9),colorBgElevated:D1(n,12),colorBgContainer:D1(n,8),colorBgLayout:D1(n,0),colorBgSpotlight:D1(n,26),colorBgBlur:Yl(r,.04),colorBorder:D1(n,26),colorBorderSecondary:D1(n,19)}},est=(e,t)=>{const n=Object.keys(BL).map(i=>{const a=dh(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((o,s,l)=>(o[`${i}-${l+1}`]=a[l],o[`${i}${l+1}`]=a[l],o),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t??v4(e);return Object.assign(Object.assign(Object.assign({},r),n),xfe(e,{generateColorPalettes:Qot,generateNeutralColorPalettes:Jot}))};function tst(){const[e,t,n]=ka();return{theme:e,token:t,hashId:n}}const Ho={defaultSeed:t3.token,useToken:tst,defaultAlgorithm:v4,darkAlgorithm:est,compactAlgorithm:Zot,getDesignToken:Yot,defaultConfig:t3,_internalContext:zL};var nst=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.createElement(ist,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Cg=d.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,o=nst(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Od("timePicker",i,a),l=d.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return d.createElement(rst,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),Dve=Gf(Cg,"popupAlign",void 0,"picker");Cg._InternalPanelDoNotUseOrYouWillBeFired=Dve;Cg.RangePicker=ast;Cg._InternalPanelDoNotUseOrYouWillBeFired=Dve;const I6=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},ost=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:i,key:a}=n;i&&t.set(a,r)}),t},sst=(e,t,n)=>{const r=d.useMemo(()=>(e||[]).map(o=>t?Object.assign(Object.assign({},o),{key:t(o)}):o),[e,t]),[i,a]=d.useMemo(()=>{const o=[],s=new Array((n||[]).length),l=I6(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:o.push(c)}),[o,s]},[r,n,t]);return[r,i,a]},lst=[];function RS(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function IZ(e){return Array.from(e).join(";")}function cst(e,t,n){const[r,i]=d.useMemo(()=>[new Set(e.map(f=>f.key)),new Set(t.map(f=>f.key))],[e,t]),[a,o]=In(lst,{value:n}),s=d.useMemo(()=>RS(a,r),[a,r]),l=d.useMemo(()=>RS(a,i),[a,i]);d.useEffect(()=>{o([].concat(lt(RS(a,r)),lt(RS(a,i))))},[IZ(r),IZ(i)]);const c=Vn(f=>{o([].concat(lt(f),lt(l)))}),u=Vn(f=>{o([].concat(lt(s),lt(f)))});return[s,l,c,u]}const ust=e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:a,prefixCls:o,onClick:s,onRemove:l,showRemove:c}=e,u=Ee(`${o}-content-item`,{[`${o}-content-item-disabled`]:a||r.disabled,[`${o}-content-item-checked`]:i&&!r.disabled});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[p]=Ga("Transfer",Us.Transfer),h={className:u,title:f},m=d.createElement("span",{className:`${o}-content-item-text`},n);return c?d.createElement("li",Object.assign({},h),m,d.createElement("button",{type:"button",disabled:a||r.disabled,className:`${o}-content-item-remove`,"aria-label":p==null?void 0:p.remove,onClick:()=>l==null?void 0:l(r)},d.createElement(Y8,null))):(h.onClick=a||r.disabled?void 0:g=>s(r,g),d.createElement("li",Object.assign({},h),d.createElement(ps,{className:`${o}-checkbox`,checked:i,disabled:a||r.disabled}),m))},dst=d.memo(ust),fst=["handleFilter","handleClear","checkedKeys"],pst=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),hst=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:a,showRemove:o,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[f,p]=d.useState(1),h=d.useMemo(()=>s?pst(typeof s=="object"?s:{}):null,[s]),[m,g]=In(10,{value:h==null?void 0:h.pageSize});d.useEffect(()=>{if(h){const _=Math.ceil(r.length/m);p(Math.min(f,_))}},[r,h,m]);const v=(_,E)=>{c(_.key,!i.includes(_.key),E)},y=_=>{u==null||u([_.key])},w=_=>{p(_)},b=(_,E)=>{p(_),g(E)},C=d.useMemo(()=>h?r.slice((f-1)*m,f*m):r,[f,r,h,m]);d.useImperativeHandle(t,()=>({items:C}));const k=h?d.createElement(j4,{size:"small",disabled:a,simple:h.simple,pageSize:m,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:w,onShowSizeChange:b}):null,S=Ee(`${n}-content`,{[`${n}-content-show-remove`]:o});return d.createElement(d.Fragment,null,d.createElement("ul",{className:S,onScroll:l},(C||[]).map(_=>{let{renderedEl:E,renderedText:$,item:M}=_;return d.createElement(dst,{key:M.key,item:M,renderedText:$,renderedEl:E,prefixCls:n,showRemove:o,onClick:v,onRemove:y,checked:i.includes(M.key),disabled:a||M.disabled})})),k)},mst=d.forwardRef(hst),Fve=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:a,handleClear:o}=e,s=d.useCallback(l=>{a==null||a(l),l.target.value===""&&(o==null||o())},[a]);return d.createElement(Ur,{placeholder:t,className:r,value:n,onChange:s,disabled:i,allowClear:!0,prefix:d.createElement(Ty,null)})},gst=()=>null;function vst(e){return!!(e&&!te.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Bb(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const yst=e=>e!==void 0,bst=e=>e&&typeof e=="object"?Object.assign(Object.assign({},e),{defaultValue:e.defaultValue||""}):{defaultValue:"",placeholder:""},tN=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:i,disabled:a,showSearch:o=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,deselectAll:f,selectCurrent:p,selectInvert:h,removeAll:m,removeCurrent:g,showSelectAll:v=!0,showRemove:y,pagination:w,direction:b,itemsUnit:C,itemUnit:k,selectAllLabel:S,selectionsIcon:_,footer:E,renderList:$,onItemSelectAll:M,onItemRemove:P,handleFilter:R,handleClear:O,filterOption:j,render:I=gst}=e,A=bst(o),[N,F]=d.useState(A.defaultValue),K=d.useRef({}),L=Ce=>{F(Ce.target.value),R(Ce)},V=()=>{F(""),O()},B=(Ce,be)=>j?j(N,be,b):Ce.includes(N),U=Ce=>{let be=$?$(Object.assign(Object.assign({},Ce),{onItemSelect:(we,se)=>Ce.onItemSelect(we,se)})):null;const Se=!!be;return Se||(be=te.createElement(mst,Object.assign({ref:K},Ce))),{customize:Se,bodyContent:be}},Y=Ce=>{const be=I(Ce),Se=vst(be);return{item:Ce,renderedEl:Se?be.label:be,renderedText:Se?be.value:be}},ee=d.useMemo(()=>Array.isArray(c)?c[b==="left"?0:1]:c,[c,b]),[ie,Z]=d.useMemo(()=>{const Ce=[],be=[];return n.forEach(Se=>{const we=Y(Se);N&&!B(we.renderedText,Se)||(Ce.push(Se),be.push(we))}),[Ce,be]},[n,N]),X=d.useMemo(()=>ie.filter(Ce=>i.includes(Ce.key)&&!Ce.disabled),[i,ie]),ae=d.useMemo(()=>{if(X.length===0)return"none";const Ce=I6(i);return ie.every(be=>Ce.has(be.key)||!!be.disabled)?"all":"part"},[i,X]),oe=d.useMemo(()=>{const Ce=o?te.createElement("div",{className:`${t}-body-search-wrapper`},te.createElement(Fve,{prefixCls:`${t}-search`,onChange:L,handleClear:V,placeholder:A.placeholder||l,value:N,disabled:a})):null,{customize:be,bodyContent:Se}=U(Object.assign(Object.assign({},$r(e,fst)),{filteredItems:ie,filteredRenderItems:Z,selectedKeys:i}));let we;return be?we=te.createElement("div",{className:`${t}-body-customize-wrapper`},Se):we=ie.length?Se:te.createElement("div",{className:`${t}-body-not-found`},ee),te.createElement("div",{className:Ee(`${t}-body`,{[`${t}-body-with-search`]:o})},Ce,we)},[o,t,l,N,a,i,ie,Z,ee]),le=te.createElement(ps,{disabled:n.filter(Ce=>!Ce.disabled).length===0||a,checked:ae==="all",indeterminate:ae==="part",className:`${t}-checkbox`,onChange:()=>{M==null||M(ie.filter(Ce=>!Ce.disabled).map(Ce=>{let{key:be}=Ce;return be}),ae!=="all")}}),ce=(Ce,be)=>{if(S)return typeof S=="function"?S({selectedCount:Ce,totalCount:be}):S;const Se=be>1?C:k;return te.createElement(te.Fragment,null,(Ce>0?`${Ce}/`:"")+be," ",Se)},pe=E&&(E.length<2?E(e):E(e,{direction:b})),me=Ee(t,{[`${t}-with-pagination`]:!!w,[`${t}-with-footer`]:!!pe}),re=pe?te.createElement("div",{className:`${t}-footer`},pe):null,fe=!y&&!w&≤let ve;y?ve=[w?{key:"removeCurrent",label:g,onClick(){var Ce;const be=Bb((((Ce=K.current)===null||Ce===void 0?void 0:Ce.items)||[]).map(Se=>Se.item));P==null||P(be)}}:null,{key:"removeAll",label:m,onClick(){P==null||P(Bb(ie))}}].filter(Boolean):ve=[{key:"selectAll",label:ae==="all"?f:u,onClick(){const Ce=Bb(ie);M==null||M(Ce,Ce.length!==i.length)}},w?{key:"selectCurrent",label:p,onClick(){var Ce;const be=((Ce=K.current)===null||Ce===void 0?void 0:Ce.items)||[];M==null||M(Bb(be.map(Se=>Se.item)),!0)}}:null,{key:"selectInvert",label:h,onClick(){var Ce;const be=Bb((((Ce=K.current)===null||Ce===void 0?void 0:Ce.items)||[]).map(se=>se.item)),Se=new Set(i),we=new Set(Se);be.forEach(se=>{Se.has(se)?we.delete(se):we.add(se)}),M==null||M(Array.from(we),"replace")}}];const $e=te.createElement(k6,{className:`${t}-header-dropdown`,menu:{items:ve},disabled:a},yst(_)?_:te.createElement(My,null));return te.createElement("div",{className:me,style:s},te.createElement("div",{className:`${t}-header`},v?te.createElement(te.Fragment,null,fe,$e):null,te.createElement("span",{className:`${t}-header-selected`},ce(X.length,ie.length)),te.createElement("span",{className:`${t}-header-title`},r)),oe,re)},Lve=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:a="",leftActive:o,rightActive:s,className:l,style:c,direction:u,oneWay:f}=e;return d.createElement("div",{className:l,style:c},d.createElement(Yt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?d.createElement(bc,null):d.createElement(Nf,null)},a),!f&&d.createElement(Yt,{type:"primary",size:"small",disabled:t||!o,onClick:n,icon:u!=="rtl"?d.createElement(Nf,null):d.createElement(bc,null)},i))},wst=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,a=`${t}-table`,o=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:i,minWidth:i}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${o}[disabled]`]:{backgroundColor:"transparent"}}}},jZ=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},xst=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},jZ(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},jZ(e,e.colorWarning))}},Sst=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:a,headerHeight:o,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:f,listHeight:p,listWidth:h,listWidthLG:m,fontSizeIcon:g,marginXS:v,paddingSM:y,lineType:w,antCls:b,iconCls:C,motionDurationSlow:k,controlItemBgHover:S,borderRadiusLG:_,colorBgContainer:E,colorText:$,controlItemBgActiveHover:M}=e,P=Me(e.calc(_).sub(i).equal());return{display:"flex",flexDirection:"column",width:h,height:p,border:`${Me(i)} ${w} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:o,padding:`${Me(e.calc(s).sub(i).equal())} ${Me(y)} ${Me(s)}`,color:$,background:E,borderBottom:`${Me(i)} ${w} ${r}`,borderRadius:`${Me(_)} ${Me(_)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},ao),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},wh()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${P} ${P}`,"&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${Me(l)} ${Me(y)}`,transition:`all ${k}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},ao),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},VL(e)),{color:n,"&:hover, &:focus":{color:f}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:S,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:M}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${Me(i)} ${w} ${r}`,[`${b}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${Me(i)} ${w} ${r}`},"&-checkbox":{lineHeight:1}}},Cst=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:a,fontSizeIcon:o,colorBgContainerDisabled:s}=e;return{[r]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:s}},[`${r}-list`]:Sst(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${Me(i)}`,verticalAlign:"middle",gap:a,[`${t}-btn ${n}`]:{fontSize:o}}})}},_st=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},kst=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:a}=e,o=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-o)/2,transferHeaderVerticalPadding:Math.ceil((i-a-o)/2)}},Est=Jn("Transfer",e=>{const t=Hn(e);return[Cst(t),wst(t),xst(t),_st(t)]},kst),Q8=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:i=[],operations:a=[],style:o={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:f=!1,operationStyle:p,showSelectAll:h,oneWay:m,pagination:g,status:v,prefixCls:y,className:w,rootClassName:b,selectionsIcon:C,filterOption:k,render:S,footer:_,children:E,rowKey:$,onScroll:M,onChange:P,onSearch:R,onSelectChange:O}=e,{getPrefixCls:j,renderEmpty:I,direction:A,transfer:N}=d.useContext(Xt),F=j("transfer",y),[K,L,V]=Est(F),[B,U,Y]=sst(t,$,n),[ee,ie,Z,X]=cst(U,Y,r),[ae,oe]=SZ(Ne=>Ne.key),[le,ce]=SZ(Ne=>Ne.key),pe=d.useCallback((Ne,He)=>{if(Ne==="left"){const Le=typeof He=="function"?He(ee||[]):He;Z(Le)}else{const Le=typeof He=="function"?He(ie||[]):He;X(Le)}},[ee,ie]),me=(Ne,He)=>{(Ne==="left"?oe:ce)(He)},re=d.useCallback((Ne,He)=>{Ne==="left"?O==null||O(He,ie):O==null||O(ee,He)},[ee,ie]),fe=Ne=>{var He;return(He=c??Ne.titles)!==null&&He!==void 0?He:[]},ve=Ne=>{M==null||M("left",Ne)},$e=Ne=>{M==null||M("right",Ne)},Ce=Ne=>{const He=Ne==="right"?ee:ie,Le=ost(B),Je=He.filter(Ot=>!Le.has(Ot)),pt=I6(Je),xt=Ne==="right"?Je.concat(n):n.filter(Ot=>!pt.has(Ot)),Nt=Ne==="right"?"left":"right";pe(Nt,[]),re(Nt,[]),P==null||P(xt,Ne,Je)},be=()=>{Ce("left"),me("left",null)},Se=()=>{Ce("right"),me("right",null)},we=(Ne,He,Le)=>{pe(Ne,Je=>{let pt=[];if(Le==="replace")pt=He;else if(Le)pt=Array.from(new Set([].concat(lt(Je),lt(He))));else{const xt=I6(He);pt=Je.filter(Nt=>!xt.has(Nt))}return re(Ne,pt),pt}),me(Ne,null)},se=(Ne,He)=>{we("left",Ne,He)},ye=(Ne,He)=>{we("right",Ne,He)},Oe=Ne=>R==null?void 0:R("left",Ne.target.value),z=Ne=>R==null?void 0:R("right",Ne.target.value),H=()=>R==null?void 0:R("left",""),G=()=>R==null?void 0:R("right",""),de=(Ne,He,Le,Je,pt)=>{He.has(Le)&&(He.delete(Le),me(Ne,null)),Je&&(He.add(Le),me(Ne,pt))},xe=(Ne,He,Le,Je)=>{(Ne==="left"?ae:le)(Je,He,Le)},he=(Ne,He,Le,Je)=>{const pt=Ne==="left",xt=lt(pt?ee:ie),Nt=new Set(xt),Ot=lt(pt?U:Y).filter(Ct=>!(Ct!=null&&Ct.disabled)),Pt=Ot.findIndex(Ct=>Ct.key===He);Je&&xt.length>0?xe(Ne,Ot,Nt,Pt):de(Ne,Nt,He,Le,Pt);const st=Array.from(Nt);re(Ne,st),e.selectedKeys||pe(Ne,st)},Ue=(Ne,He,Le)=>{he("left",Ne,He,Le==null?void 0:Le.shiftKey)},We=(Ne,He,Le)=>{he("right",Ne,He,Le==null?void 0:Le.shiftKey)},ge=Ne=>{pe("right",[]),P==null||P(n.filter(He=>!Ne.includes(He)),"left",lt(Ne))},ze=Ne=>typeof s=="function"?s({direction:Ne}):s||{},Ve=d.useContext(oa),{hasFeedback:Be,status:Xe}=Ve,Ke=Ne=>Object.assign(Object.assign(Object.assign({},Ne),{notFoundContent:(I==null?void 0:I("Transfer"))||te.createElement(Vg,{componentName:"Transfer"})}),l),qe=Mu(Xe,v),Et=!E&&g,ut=Y.filter(Ne=>ie.includes(Ne.key)&&!Ne.disabled).length>0,gt=U.filter(Ne=>ee.includes(Ne.key)&&!Ne.disabled).length>0,Qe=Ee(F,{[`${F}-disabled`]:u,[`${F}-customize-list`]:!!E,[`${F}-rtl`]:A==="rtl"},Al(F,qe,Be),N==null?void 0:N.className,w,b,L,V),[nt]=Ga("Transfer",Us.Transfer),jt=Ke(nt),[Lt,Bt]=fe(jt),Ut=C??(N==null?void 0:N.selectionsIcon);return K(te.createElement("div",{className:Qe,style:Object.assign(Object.assign({},N==null?void 0:N.style),o)},te.createElement(tN,Object.assign({prefixCls:`${F}-list`,titleText:Lt,dataSource:U,filterOption:k,style:ze("left"),checkedKeys:ee,handleFilter:Oe,handleClear:H,onItemSelect:Ue,onItemSelectAll:se,render:S,showSearch:f,renderList:E,footer:_,onScroll:ve,disabled:u,direction:A==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:i[0],pagination:Et,selectionsIcon:Ut},jt)),te.createElement(Lve,{className:`${F}-operation`,rightActive:gt,rightArrowText:a[0],moveToRight:Se,leftActive:ut,leftArrowText:a[1],moveToLeft:be,style:p,disabled:u,direction:A,oneWay:m}),te.createElement(tN,Object.assign({prefixCls:`${F}-list`,titleText:Bt,dataSource:Y,filterOption:k,style:ze("right"),checkedKeys:ie,handleFilter:z,handleClear:G,onItemSelect:We,onItemSelectAll:ye,onItemRemove:ge,render:S,showSearch:f,renderList:E,footer:_,onScroll:$e,disabled:u,direction:A==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:i[1],showRemove:m,pagination:Et,selectionsIcon:Ut},jt))))};Q8.List=tN;Q8.Search=Fve;Q8.Operation=Lve;const $st=function(e){var t=d.useRef({valueLabels:new Map});return d.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(a){var o=a.value,s=a.label,l=s??n.get(o);return r.set(o,l),q(q({},a),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var Mst=function(t,n,r,i){return d.useMemo(function(){var a=function(h){return h.map(function(m){var g=m.value;return g})},o=a(t),s=a(n),l=o.filter(function(p){return!i[p]}),c=o,u=s;if(r){var f=bf(o,!0,i);c=f.checkedKeys,u=f.halfCheckedKeys}return[Array.from(new Set([].concat(lt(l),lt(c)))),u]},[t,n,r,i])},Tst=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},Pst=function(t){var n=t||{},r=n.label,i=n.value,a=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:a||"children"}},nN=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},Ost=function(t,n){var r=[],i=function a(o){o.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),a(l))})};return i(t),r},NZ=function(t){return t==null};const Rst=function(e,t){return d.useMemo(function(){var n=L8(e,{fieldNames:t,initWrapper:function(i){return q(q({},i),{},{valueEntities:new Map})},processEntity:function(i,a){var o=i.node[t.value];a.valueEntities.set(o,i)}});return n},[e,t])};var hz=function(){return null},Ist=["children","value"];function Bve(e){return Xi(e).map(function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,a=i.children,o=i.value,s=Ht(i,Ist),l=q({key:r,value:o},s),c=Bve(a);return c.length&&(l.children=c),l}).filter(function(t){return t})}function rN(e){if(!e)return e;var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Br(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function jst(e,t,n,r,i,a){var o=null,s=null;function l(){function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(h,m){var g="".concat(f,"-").concat(m),v=h[a.value],y=n.includes(v),w=c(h[a.children]||[],g,y),b=d.createElement(hz,h,w.map(function(k){return k.node}));if(t===v&&(o=b),y){var C={pos:g,node:b,children:w};return p||s.push(C),C}return null}).filter(function(h){return h})}s||(s=[],c(r),s.sort(function(u,f){var p=u.node.props.value,h=f.node.props.value,m=n.indexOf(p),g=n.indexOf(h);return m-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return Br(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Br(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(u){var f=u.node;return f})}})}var Nst=function(t,n,r){var i=r.fieldNames,a=r.treeNodeFilterProp,o=r.filterTreeNode,s=i.children;return d.useMemo(function(){if(!n||o===!1)return t;var l=typeof o=="function"?o:function(u,f){return String(f[a]).toUpperCase().includes(n.toUpperCase())},c=function u(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(h,m){var g=m[s],v=p||l(n,rN(m)),y=u(g||[],v);return(v||y.length)&&h.push(q(q({},m),{},ne({isLeaf:void 0},s,y))),h},[])};return c(t)},[t,n,s,a,o])};function AZ(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Ast(e,t){var n=t.id,r=t.pId,i=t.rootPId,a=new Map,o=[];return e.forEach(function(s){var l=s[n],c=q(q({},s),{},{key:s.key||l});a.set(l,c)}),a.forEach(function(s){var l=s[r],c=a.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===i||i===null)&&o.push(s)}),o}function Dst(e,t,n){return d.useMemo(function(){if(e){if(n){var r=q({id:"id",pId:"pId",rootPId:null},Kt(n)==="object"?n:{});return Ast(e,r)}return e}return Bve(t)},[t,n,e])}var zve=d.createContext(null),Hve=d.createContext(null),Fst={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Lst=function(t,n){var r=fB(),i=r.prefixCls,a=r.multiple,o=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=d.useContext(Hve),f=u.virtual,p=u.listHeight,h=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,y=u.onSelect,w=u.dropdownMatchSelectWidth,b=u.treeExpandAction,C=u.treeTitleRender,k=u.onPopupScroll,S=u.leftMaxCount,_=u.leafCountOnly,E=u.valueEntities,$=d.useContext(zve),M=$.checkable,P=$.checkedKeys,R=$.halfCheckedKeys,O=$.treeExpandedKeys,j=$.treeDefaultExpandAll,I=$.treeDefaultExpandedKeys,A=$.onTreeExpand,N=$.treeIcon,F=$.showTreeIcon,K=$.switcherIcon,L=$.treeLine,V=$.treeNodeFilterProp,B=$.loadData,U=$.treeLoadedKeys,Y=$.treeMotion,ee=$.onTreeLoad,ie=$.keyEntities,Z=d.useRef(),X=ug(function(){return g},[l,g],function(Ke,qe){return qe[0]&&Ke[1]!==qe[1]}),ae=d.useMemo(function(){return M?{checked:P,halfChecked:R}:null},[M,P,R]);d.useEffect(function(){if(l&&!a&&P.length){var Ke;(Ke=Z.current)===null||Ke===void 0||Ke.scrollTo({key:P[0]})}},[l]);var oe=function(qe){qe.preventDefault()},le=function(qe,Et){var ut=Et.node;M&&nN(ut)||(y(ut.key,{selected:!P.includes(ut.key)}),a||s(!1))},ce=d.useState(I),pe=Te(ce,2),me=pe[0],re=pe[1],fe=d.useState(null),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=d.useMemo(function(){return O?lt(O):o?$e:me},[me,$e,O,o]),Se=function(qe){re(qe),Ce(qe),A&&A(qe)},we=String(o).toLowerCase(),se=function(qe){return we?String(qe[V]).toLowerCase().includes(we):!1};d.useEffect(function(){o&&Ce(Ost(g,v))},[o]);var ye=d.useState(function(){return new Map}),Oe=Te(ye,2),z=Oe[0],H=Oe[1];d.useEffect(function(){S&&H(new Map)},[S]);function G(Ke){var qe=Ke[v.value];if(!z.has(qe)){var Et=E.get(qe),ut=(Et.children||[]).length===0;if(ut)z.set(qe,!1);else{var gt=Et.children.filter(function(nt){return!nt.node.disabled&&!nt.node.disableCheckbox&&!P.includes(nt.node[v.value])}),Qe=gt.length;z.set(qe,Qe>S)}}return z.get(qe)}var de=Vn(function(Ke){var qe=Ke[v.value];return P.includes(qe)||S===null?!1:S<=0?!0:_&&S?G(Ke):!1}),xe=function Ke(qe){var Et=rd(qe),ut;try{for(Et.s();!(ut=Et.n()).done;){var gt=ut.value;if(!(gt.disabled||gt.selectable===!1)){if(o){if(se(gt))return gt}else return gt;if(gt[v.children]){var Qe=Ke(gt[v.children]);if(Qe)return Qe}}}}catch(nt){Et.e(nt)}finally{Et.f()}return null},he=d.useState(null),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=ie[We];d.useEffect(function(){if(l){var Ke=null,qe=function(){var ut=xe(X);return ut?ut[v.value]:null};!a&&P.length&&!o?Ke=P[0]:Ke=qe(),ge(Ke)}},[l,o]),d.useImperativeHandle(n,function(){var Ke;return{scrollTo:(Ke=Z.current)===null||Ke===void 0?void 0:Ke.scrollTo,onKeyDown:function(Et){var ut,gt=Et.which;switch(gt){case mt.UP:case mt.DOWN:case mt.LEFT:case mt.RIGHT:(ut=Z.current)===null||ut===void 0||ut.onKeyDown(Et);break;case mt.ENTER:{if(ze){var Qe=de(ze.node),nt=(ze==null?void 0:ze.node)||{},jt=nt.selectable,Lt=nt.value,Bt=nt.disabled;jt!==!1&&!Bt&&!Qe&&le(null,{node:{key:We},selected:!P.includes(Lt)})}break}case mt.ESC:s(!1)}},onKeyUp:function(){}}});var Ve=ug(function(){return!o},[o,O||me],function(Ke,qe){var Et=Te(Ke,1),ut=Et[0],gt=Te(qe,2),Qe=gt[0],nt=gt[1];return ut!==Qe&&!!(Qe||nt)}),Be=Ve?B:null;if(X.length===0)return d.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:oe},c);var Xe={fieldNames:v};return U&&(Xe.loadedKeys=U),be&&(Xe.expandedKeys=be),d.createElement("div",{onMouseDown:oe},ze&&l&&d.createElement("span",{style:Fst,"aria-live":"assertive"},ze.node.value),d.createElement(Tve.Provider,{value:{nodeDisabled:de}},d.createElement(Z8,tt({ref:Z,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:X,height:p,itemHeight:h,itemScrollOffset:m,virtual:f!==!1&&w!==!1,multiple:a,icon:N,showIcon:F,switcherIcon:K,showLine:L,loadData:Be,motion:Y,activeKey:We,checkable:M,checkStrictly:!0,checkedKeys:ae,selectedKeys:M?[]:P,defaultExpandAll:j,titleRender:C},Xe,{onActiveChange:ge,onSelect:le,onCheck:le,onExpand:Se,onLoad:ee,filterTreeNode:se,expandAction:b,onScroll:k}))))},Bst=d.forwardRef(Lst),mz="SHOW_ALL",gz="SHOW_PARENT",J8="SHOW_CHILD";function DZ(e,t,n,r){var i=new Set(e);return t===J8?e.filter(function(a){var o=n[a];return!o||!o.children||!o.children.some(function(s){var l=s.node;return i.has(l[r.value])})||!o.children.every(function(s){var l=s.node;return nN(l)||i.has(l[r.value])})}):t===gz?e.filter(function(a){var o=n[a],s=o?o.parent:null;return!s||nN(s.node)||!i.has(s.key)}):e}var zst=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Hst(e){return!e||Kt(e)!=="object"}var Ust=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,a=e.value,o=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,f=e.inputValue,p=e.onSearch,h=e.autoClearSearchValue,m=h===void 0?!0:h,g=e.filterTreeNode,v=e.treeNodeFilterProp,y=v===void 0?"value":v,w=e.showCheckedStrategy,b=e.treeNodeLabelProp,C=e.multiple,k=e.treeCheckable,S=e.treeCheckStrictly,_=e.labelInValue,E=e.maxCount,$=e.fieldNames,M=e.treeDataSimpleMode,P=e.treeData,R=e.children,O=e.loadData,j=e.treeLoadedKeys,I=e.onTreeLoad,A=e.treeDefaultExpandAll,N=e.treeExpandedKeys,F=e.treeDefaultExpandedKeys,K=e.onTreeExpand,L=e.treeExpandAction,V=e.virtual,B=e.listHeight,U=B===void 0?200:B,Y=e.listItemHeight,ee=Y===void 0?20:Y,ie=e.listItemScrollOffset,Z=ie===void 0?0:ie,X=e.onDropdownVisibleChange,ae=e.dropdownMatchSelectWidth,oe=ae===void 0?!0:ae,le=e.treeLine,ce=e.treeIcon,pe=e.showTreeIcon,me=e.switcherIcon,re=e.treeMotion,fe=e.treeTitleRender,ve=e.onPopupScroll,$e=Ht(e,zst),Ce=yB(n),be=k&&!S,Se=k||S,we=S||_,se=Se||C,ye=In(o,{value:a}),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=d.useMemo(function(){return k?w||J8:mz},[w,k]),de=d.useMemo(function(){return Pst($)},[JSON.stringify($)]),xe=In("",{value:u!==void 0?u:f,postState:function(De){return De||""}}),he=Te(xe,2),Ue=he[0],We=he[1],ge=function(De){We(De),p==null||p(De)},ze=Dst(P,R,M),Ve=Rst(ze,de),Be=Ve.keyEntities,Xe=Ve.valueEntities,Ke=d.useCallback(function(dt){var De=[],Ye=[];return dt.forEach(function(ot){Xe.has(ot)?Ye.push(ot):De.push(ot)}),{missingRawValues:De,existRawValues:Ye}},[Xe]),qe=Nst(ze,Ue,{fieldNames:de,treeNodeFilterProp:y,filterTreeNode:g}),Et=d.useCallback(function(dt){if(dt){if(b)return dt[b];for(var De=de._title,Ye=0;YePt)){var Re=gt(dt);if(H(Re),m&&We(""),s){var It=dt;be&&(It=ot.map(function(Ie){var it=Xe.get(Ie);return it?it.node[de.value]:Ie}));var rt=De||{triggerValue:void 0,selected:void 0},$t=rt.triggerValue,Mt=rt.selected,dn=It;if(S){var pn=Bt.filter(function(Ie){return!It.includes(Ie.value)});dn=[].concat(lt(dn),lt(pn))}var T=gt(dn),D={preValue:Lt,triggerValue:$t},J=!0;(S||Ye==="selection"&&!Mt)&&(J=!1),jst(D,$t,dt,ze,J,de),Se?D.checked=Mt:D.selected=Mt;var ke=we?T:T.map(function(Ie){return Ie.value});s(se?ke:ke[0],we?null:T.map(function(Ie){return Ie.label}),D)}}}),Ct=d.useCallback(function(dt,De){var Ye,ot=De.selected,Re=De.source,It=Be[dt],rt=It==null?void 0:It.node,$t=(Ye=rt==null?void 0:rt[de.value])!==null&&Ye!==void 0?Ye:dt;if(!se)st([$t],{selected:!0,triggerValue:$t},"option");else{var Mt=ot?[].concat(lt(Ut),[$t]):Le.filter(function(it){return it!==$t});if(be){var dn=Ke(Mt),pn=dn.missingRawValues,T=dn.existRawValues,D=T.map(function(it){return Xe.get(it).key}),J;if(ot){var ke=bf(D,!0,Be);J=ke.checkedKeys}else{var Ie=bf(D,{checked:!1,halfCheckedKeys:Je},Be);J=Ie.checkedKeys}Mt=[].concat(lt(pn),lt(J.map(function(it){return Be[it].node[de.value]})))}st(Mt,{selected:ot,triggerValue:$t},Re||"option")}ot||!se?l==null||l($t,rN(rt)):c==null||c($t,rN(rt))},[Ke,Xe,Be,de,se,Ut,st,be,l,c,Le,Je,E]),kt=d.useCallback(function(dt){if(X){var De={};Object.defineProperty(De,"documentClickClose",{get:function(){return Br(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),X(dt,De)}},[X]),qt=AZ(function(dt,De){var Ye=dt.map(function(ot){return ot.value});if(De.type==="clear"){st(Ye,{},"selection");return}De.values.length&&Ct(De.values[0].value,{selected:!1,source:"selection"})}),vt=d.useMemo(function(){return{virtual:V,dropdownMatchSelectWidth:oe,listHeight:U,listItemHeight:ee,listItemScrollOffset:Z,treeData:qe,fieldNames:de,onSelect:Ct,treeExpandAction:L,treeTitleRender:fe,onPopupScroll:ve,leftMaxCount:E===void 0?null:E-Ot.length,leafCountOnly:G==="SHOW_CHILD"&&!S&&!!k,valueEntities:Xe}},[V,oe,U,ee,Z,qe,de,Ct,L,fe,ve,E,Ot.length,G,S,k,Xe]),At=d.useMemo(function(){return{checkable:Se,loadData:O,treeLoadedKeys:j,onTreeLoad:I,checkedKeys:Le,halfCheckedKeys:Je,treeDefaultExpandAll:A,treeExpandedKeys:N,treeDefaultExpandedKeys:F,onTreeExpand:K,treeIcon:ce,treeMotion:re,showTreeIcon:pe,switcherIcon:me,treeLine:le,treeNodeFilterProp:y,keyEntities:Be}},[Se,O,j,I,Le,Je,A,N,F,K,ce,re,pe,me,le,y,Be]);return d.createElement(Hve.Provider,{value:vt},d.createElement(zve.Provider,{value:At},d.createElement(hB,tt({ref:t},$e,{id:Ce,prefixCls:i,mode:se?"multiple":void 0,displayValues:Ot,onDisplayValuesChange:qt,searchValue:Ue,onSearch:ge,OptionList:Bst,emptyOptions:!ze.length,onDropdownVisibleChange:kt,dropdownMatchSelectWidth:oe}))))}),B4=Ust;B4.TreeNode=hz;B4.SHOW_ALL=mz;B4.SHOW_PARENT=gz;B4.SHOW_CHILD=J8;const Wst=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${Me(e.paddingXS)} ${Me(e.calc(e.paddingXS).div(2).equal())}`},Rve(n,Hn(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},B8(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Vst(e,t,n){return Jn("TreeSelect",r=>{const i=Hn(r,{treePrefixCls:t});return[Wst(i)]},Ive)(e,n)}var qst=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,size:i,disabled:a,bordered:o=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:f=256,listItemHeight:p,placement:h,notFoundContent:m,switcherIcon:g,treeLine:v,getPopupContainer:y,popupClassName:w,dropdownClassName:b,treeIcon:C=!1,transitionName:k,choiceTransitionName:S="",status:_,treeExpandAction:E,builtinPlacements:$,dropdownMatchSelectWidth:M,popupMatchSelectWidth:P,allowClear:R,variant:O,dropdownStyle:j,tagRender:I,maxCount:A,showCheckedStrategy:N,treeCheckStrictly:F}=e,K=qst(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:L,getPrefixCls:V,renderEmpty:B,direction:U,virtual:Y,popupMatchSelectWidth:ee,popupOverflow:ie}=d.useContext(Xt),[,Z]=ka(),X=p??(Z==null?void 0:Z.controlHeightSM)+(Z==null?void 0:Z.paddingXXS),ae=V(),oe=V("select",r),le=V("select-tree",r),ce=V("tree-select",r),{compactSize:pe,compactItemClassnames:me}=$u(oe,U),re=qr(oe),fe=qr(ce),[ve,$e,Ce]=xB(oe,re),[be]=Vst(ce,le,fe),[Se,we]=Od("treeSelect",O,o),se=Ee(w||b,`${ce}-dropdown`,{[`${ce}-dropdown-rtl`]:U==="rtl"},l,Ce,re,fe,$e),ye=!!(c||u),Oe=d.useMemo(()=>{if(!(A&&(N==="SHOW_ALL"&&!F||N==="SHOW_PARENT")))return A},[A,N,F]),z=SB(e.suffixIcon,e.showArrow),H=(n=P??M)!==null&&n!==void 0?n:ee,{status:G,hasFeedback:de,isFormItemInput:xe,feedbackIcon:he}=d.useContext(oa),Ue=Mu(G,_),{suffixIcon:We,removeIcon:ge,clearIcon:ze}=w8(Object.assign(Object.assign({},K),{multiple:ye,showSuffixIcon:z,hasFeedback:de,feedbackIcon:he,prefixCls:oe,componentName:"TreeSelect"})),Ve=R===!0?{clearIcon:ze}:R;let Be;m!==void 0?Be=m:Be=(B==null?void 0:B("Select"))||d.createElement(Vg,{componentName:"Select"});const Xe=$r(K,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ke=d.useMemo(()=>h!==void 0?h:U==="rtl"?"bottomRight":"bottomLeft",[h,U]),qe=Bi(Lt=>{var Bt;return(Bt=i??pe)!==null&&Bt!==void 0?Bt:Lt}),Et=d.useContext(ma),ut=a??Et,gt=Ee(!r&&ce,{[`${oe}-lg`]:qe==="large",[`${oe}-sm`]:qe==="small",[`${oe}-rtl`]:U==="rtl",[`${oe}-${Se}`]:we,[`${oe}-in-form-item`]:xe},Al(oe,Ue,de),me,s,l,Ce,re,fe,$e),Qe=Lt=>d.createElement(jve,{prefixCls:le,switcherIcon:g,treeNodeProps:Lt,showLine:v}),[nt]=$c("SelectLike",j==null?void 0:j.zIndex),jt=d.createElement(B4,Object.assign({virtual:Y,disabled:ut},Xe,{dropdownMatchSelectWidth:H,builtinPlacements:wB($,ie),ref:t,prefixCls:oe,className:gt,listHeight:f,listItemHeight:X,treeCheckable:c&&d.createElement("span",{className:`${oe}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:We,multiple:ye,placement:Ke,removeIcon:ge,allowClear:Ve,switcherIcon:Qe,showTreeIcon:C,notFoundContent:Be,getPopupContainer:y||L,treeMotion:null,dropdownClassName:se,dropdownStyle:Object.assign(Object.assign({},j),{zIndex:nt}),choiceTransitionName:oo(ae,"",S),transitionName:oo(ae,"slide-up",k),treeExpandAction:E,tagRender:ye?I:void 0,maxCount:Oe,showCheckedStrategy:N,treeCheckStrictly:F}));return ve(be(jt))},Gst=d.forwardRef(Kst),Jg=Gst,Yst=Gf(Jg,"dropdownAlign",e=>$r(e,["visible"]));Jg.TreeNode=hz;Jg.SHOW_ALL=mz;Jg.SHOW_PARENT=gz;Jg.SHOW_CHILD=J8;Jg._InternalPanelDoNotUseOrYouWillBeFired=Yst;const Xst=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Zst=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Me(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Me(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},wg(e)),BB(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},T4(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},rtt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Me(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Me(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},itt=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Me(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),rtt(e)),ntt(e)),ttt(e)),ett(e)),Jet(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},att=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Vs(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},yc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},yc(e))}}}},U1e=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},jy(e)),W1e=e=>Hn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Iy(e)),ott=Jn("Pagination",e=>{const t=W1e(e);return[itt(t),att(t)]},U1e),stt=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},ltt=Sy(["Pagination","bordered"],e=>{const t=W1e(e);return[stt(t)]},U1e);function aZ(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var ctt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:p}=e,h=ctt(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=$4(c),[,g]=ka(),{getPrefixCls:v,direction:y,pagination:w={}}=d.useContext(Xt),b=v("pagination",n),[C,k,S]=ott(b),_=Bi(s),E=_==="small"||!!(m&&!_&&c),[$]=Ga("Pagination",hfe),M=Object.assign(Object.assign({},$),l),[P,R]=aZ(u),[O,j]=aZ(w.showSizeChanger),I=P??O,A=R??j,N=f||Yf,F=d.useMemo(()=>p?p.map(Y=>Number(Y)):void 0,[p]),K=Y=>{var ee;const{disabled:ie,size:Z,onSizeChange:X,"aria-label":ae,className:oe,options:le}=Y,{className:ce,onChange:pe}=A||{},me=(ee=le.find(re=>String(re.value)===String(Z)))===null||ee===void 0?void 0:ee.value;return d.createElement(N,Object.assign({disabled:ie,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:re=>re.parentNode,"aria-label":ae,options:le},A,{value:me,onChange:(re,fe)=>{X==null||X(re),pe==null||pe(re,fe)},size:E?"small":"middle",className:Ee(oe,ce)}))},L=d.useMemo(()=>{const Y=d.createElement("span",{className:`${b}-item-ellipsis`},"•••"),ee=d.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(bc,null):d.createElement(Nf,null)),ie=d.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(Nf,null):d.createElement(bc,null)),Z=d.createElement("a",{className:`${b}-item-link`},d.createElement("div",{className:`${b}-item-container`},y==="rtl"?d.createElement(nZ,{className:`${b}-item-link-icon`}):d.createElement(tZ,{className:`${b}-item-link-icon`}),Y)),X=d.createElement("a",{className:`${b}-item-link`},d.createElement("div",{className:`${b}-item-container`},y==="rtl"?d.createElement(tZ,{className:`${b}-item-link-icon`}):d.createElement(nZ,{className:`${b}-item-link-icon`}),Y));return{prevIcon:ee,nextIcon:ie,jumpPrevIcon:Z,jumpNextIcon:X}},[y,b]),V=v("select",r),B=Ee({[`${b}-${t}`]:!!t,[`${b}-mini`]:E,[`${b}-rtl`]:y==="rtl",[`${b}-bordered`]:g.wireframe},w==null?void 0:w.className,i,a,k,S),U=Object.assign(Object.assign({},w==null?void 0:w.style),o);return C(d.createElement(d.Fragment,null,g.wireframe&&d.createElement(ltt,{prefixCls:b}),d.createElement(Qet,Object.assign({},L,h,{style:U,prefixCls:b,selectPrefixCls:V,className:B,locale:M,pageSizeOptions:F,showSizeChanger:I,sizeChangerRender:K}))))},$6=100,V1e=$6/5,q1e=$6/2-V1e/2,iT=q1e*2*Math.PI,oZ=50,sZ=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:Ee(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:q1e,cx:oZ,cy:oZ,strokeWidth:V1e,style:n})},utt=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[o,s]=d.useState(!1);nr(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!o)return null;const c={strokeDashoffset:`${iT/4}`,strokeDasharray:`${iT*l/100} ${iT*(100-l)/100}`};return d.createElement("span",{className:Ee(i,`${r}-progress`,l<=0&&a)},d.createElement("svg",{viewBox:`0 0 ${$6} ${$6}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},d.createElement(sZ,{dotClassName:r,hasCircleCls:!0}),d.createElement(sZ,{dotClassName:r,style:c})))};function dtt(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:Ee(i,n>0&&a)},d.createElement("span",{className:Ee(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>d.createElement("i",{className:`${t}-dot-item`,key:o})))),d.createElement(utt,{prefixCls:t,percent:n}))}function ftt(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&d.isValidElement(n)?aa(n,{className:Ee(n.props.className,i),percent:r}):d.createElement(dtt,{prefixCls:t,percent:r})}const ptt=new ir("antSpinMove",{to:{opacity:1}}),htt=new ir("antRotate",{to:{transform:"rotate(405deg)"}}),mtt=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:ptt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:htt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},gtt=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},vtt=Jn("Spin",e=>{const t=Hn(e,{spinDotDefault:e.colorTextDescription});return[mtt(t)]},gtt),ytt=200,lZ=[[30,.05],[70,.03],[96,.01]];function btt(e,t){const[n,r]=d.useState(0),i=d.useRef(null),a=t==="auto";return d.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{clearInterval(i.current)}),[a,e]),a?n:t}var wtt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:p=!1,indicator:h,percent:m}=e,g=wtt(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,spin:w}=d.useContext(Xt),b=v("spin",n),[C,k,S]=vtt(b),[_,E]=d.useState(()=>r&&!xtt(r,i)),$=btt(_,m);d.useEffect(()=>{if(r){const A=eYe(i,()=>{E(!0)});return A(),()=>{var N;(N=A==null?void 0:A.cancel)===null||N===void 0||N.call(A)}}E(!1)},[i,r]);const M=d.useMemo(()=>typeof f<"u"&&!p,[f,p]),P=Ee(b,w==null?void 0:w.className,{[`${b}-sm`]:s==="small",[`${b}-lg`]:s==="large",[`${b}-spinning`]:_,[`${b}-show-text`]:!!l,[`${b}-rtl`]:y==="rtl"},a,!p&&o,k,S),R=Ee(`${b}-container`,{[`${b}-blur`]:_}),O=(t=h??(w==null?void 0:w.indicator))!==null&&t!==void 0?t:K1e,j=Object.assign(Object.assign({},w==null?void 0:w.style),u),I=d.createElement("div",Object.assign({},g,{style:j,className:P,"aria-live":"polite","aria-busy":_}),d.createElement(ftt,{prefixCls:b,indicator:O,percent:$}),l&&(M||p)?d.createElement("div",{className:`${b}-text`},l):null);return C(M?d.createElement("div",Object.assign({},g,{className:Ee(`${b}-nested-loading`,c,k,S)}),_&&d.createElement("div",{key:"loading"},I),d.createElement("div",{className:R,key:"container"},f)):p?d.createElement("div",{className:Ee(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:_},o,k,S)},I):I)};Xo.setDefaultIndicator=e=>{K1e=e};const nz=te.createContext({});nz.Consumer;var G1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=G1e(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=d.useContext(Xt),l=s("list",t),c=Ee(`${l}-item-meta`,n),u=te.createElement("div",{className:`${l}-item-meta-content`},i&&te.createElement("h4",{className:`${l}-item-meta-title`},i),a&&te.createElement("div",{className:`${l}-item-meta-description`},a));return te.createElement("div",Object.assign({},o,{className:c}),r&&te.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||a)&&u)},Ctt=te.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:l,colStyle:c}=e,u=G1e(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:p}=d.useContext(nz),{getPrefixCls:h,list:m}=d.useContext(Xt),g=_=>{var E,$;return Ee(($=(E=m==null?void 0:m.item)===null||E===void 0?void 0:E.classNames)===null||$===void 0?void 0:$[_],l==null?void 0:l[_])},v=_=>{var E,$;return Object.assign(Object.assign({},($=(E=m==null?void 0:m.item)===null||E===void 0?void 0:E.styles)===null||$===void 0?void 0:$[_]),o==null?void 0:o[_])},y=()=>{let _=!1;return d.Children.forEach(r,E=>{typeof E=="string"&&(_=!0)}),_&&d.Children.count(r)>1},w=()=>p==="vertical"?!!a:!y(),b=h("list",n),C=i&&i.length>0&&te.createElement("ul",{className:Ee(`${b}-item-action`,g("actions")),key:"actions",style:v("actions")},i.map((_,E)=>te.createElement("li",{key:`${b}-item-action-${E}`},_,E!==i.length-1&&te.createElement("em",{className:`${b}-item-action-split`})))),k=f?"div":"li",S=te.createElement(k,Object.assign({},u,f?{}:{ref:t},{className:Ee(`${b}-item`,{[`${b}-item-no-flex`]:!w()},s)}),p==="vertical"&&a?[te.createElement("div",{className:`${b}-item-main`,key:"content"},r,C),te.createElement("div",{className:Ee(`${b}-item-extra`,g("extra")),key:"extra",style:v("extra")},a)]:[r,C,aa(a,{key:"extra"})]);return f?te.createElement(D0,{ref:t,flex:1,style:c},S):S}),Y1e=Ctt;Y1e.Meta=Stt;const _tt=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Me(i)} ${Me(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},ktt=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Me(o)}`}}}}}},Ett=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:f,paddingXS:p,margin:h,colorText:m,colorTextDescription:g,motionDurationSlow:v,lineWidth:y,headerBg:w,footerBg:b,emptyTextPadding:C,metaMarginBottom:k,avatarMarginRight:S,titleMarginBottom:_,descriptionFontSize:E}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:b},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Me(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${v}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:E,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Me(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Me(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:k,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:_,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Me(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},$tt=e=>({contentWidth:220,itemPadding:`${Me(e.paddingContentVertical)} 0`,itemPaddingSM:`${Me(e.paddingContentVerticalSM)} ${Me(e.paddingContentHorizontal)}`,itemPaddingLG:`${Me(e.paddingContentVerticalLG)} ${Me(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Mtt=Jn("List",e=>{const t=Hn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Ett(t),_tt(t),ktt(t)]},$tt);var Ttt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i(we,se)=>{var ye;E(we),M(se),n&&((ye=n==null?void 0:n[Se])===null||ye===void 0||ye.call(n,we,se))},N=A("onChange"),F=A("onShowSizeChange"),K=(Se,we)=>{if(!b)return null;let se;return typeof w=="function"?se=w(Se):w?se=Se[w]:se=Se.key,se||(se=`list-item-${we}`),d.createElement(d.Fragment,{key:se},b(Se,we))},L=()=>!!(f||n||v),V=P("list",r),[B,U,Y]=Mtt(V);let ee=y;typeof ee=="boolean"&&(ee={spinning:ee});const ie=!!(ee!=null&&ee.spinning),Z=Bi(m);let X="";switch(Z){case"large":X="lg";break;case"small":X="sm";break}const ae=Ee(V,{[`${V}-vertical`]:u==="vertical",[`${V}-${X}`]:X,[`${V}-split`]:a,[`${V}-bordered`]:i,[`${V}-loading`]:ie,[`${V}-grid`]:!!p,[`${V}-something-after-last-item`]:L(),[`${V}-rtl`]:O==="rtl"},j==null?void 0:j.className,o,s,U,Y),oe=Wet(I,{total:h.length,current:_,pageSize:$},n||{}),le=Math.ceil(oe.total/oe.pageSize);oe.current>le&&(oe.current=le);const ce=n&&d.createElement("div",{className:Ee(`${V}-pagination`)},d.createElement(I4,Object.assign({align:"end"},oe,{onChange:N,onShowSizeChange:F})));let pe=lt(h);n&&h.length>(oe.current-1)*oe.pageSize&&(pe=lt(h).splice((oe.current-1)*oe.pageSize,oe.pageSize));const me=Object.keys(p||{}).some(Se=>["xs","sm","md","lg","xl","xxl"].includes(Se)),re=$4(me),fe=d.useMemo(()=>{for(let Se=0;Se{if(!p)return;const Se=fe&&p[fe]?p[fe]:p.column;if(Se)return{width:`${100/Se}%`,maxWidth:`${100/Se}%`}},[JSON.stringify(p),fe]);let $e=ie&&d.createElement("div",{style:{minHeight:53}});if(pe.length>0){const Se=pe.map((we,se)=>K(we,se));$e=p?d.createElement(z8,{gutter:p.gutter},d.Children.map(Se,we=>d.createElement("div",{key:we==null?void 0:we.key,style:ve},we))):d.createElement("ul",{className:`${V}-items`},Se)}else!c&&!ie&&($e=d.createElement("div",{className:`${V}-empty-text`},(C==null?void 0:C.emptyText)||(R==null?void 0:R("List"))||d.createElement(Vg,{componentName:"List"})));const Ce=oe.position||"bottom",be=d.useMemo(()=>({grid:p,itemLayout:u}),[JSON.stringify(p),u]);return B(d.createElement(nz.Provider,{value:be},d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},j==null?void 0:j.style),l),className:ae},k),(Ce==="top"||Ce==="both")&&ce,g&&d.createElement("div",{className:`${V}-header`},g),d.createElement(Xo,Object.assign({},ee),$e,c),v&&d.createElement("div",{className:`${V}-footer`},v),f||(Ce==="bottom"||Ce==="both")&&ce)))}const Ott=d.forwardRef(Ptt),Yn=Ott;Yn.Item=Y1e;function Rtt(){var e=d.useState({id:0,callback:null}),t=Te(e,2),n=t[0],r=t[1],i=d.useCallback(function(a){r(function(o){var s=o.id;return{id:s+1,callback:a}})},[]);return d.useEffect(function(){var a;(a=n.callback)===null||a===void 0||a.call(n)},[n]),i}var X1e=d.createContext(null);function Itt(e){var t=d.useContext(X1e),n=t.notFoundContent,r=t.activeIndex,i=t.setActiveIndex,a=t.selectOption,o=t.onFocus,s=t.onBlur,l=t.onScroll,c=e.prefixCls,u=e.options,f=u[r]||{};return d.createElement(qg,{prefixCls:"".concat(c,"-menu"),activeKey:f.key,onSelect:function(h){var m=h.key,g=u.find(function(v){var y=v.key;return y===m});a(g)},onFocus:o,onBlur:s,onScroll:l},u.map(function(p,h){var m=p.key,g=p.disabled,v=p.className,y=p.style,w=p.label;return d.createElement(yg,{key:m,disabled:g,className:v,style:y,onMouseEnter:function(){i(h)}},w)}),!u.length&&d.createElement(yg,{disabled:!0},n))}var jtt={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Ntt=function(t){var n=t.prefixCls,r=t.options,i=t.children,a=t.visible,o=t.transitionName,s=t.getPopupContainer,l=t.dropdownClassName,c=t.direction,u=t.placement,f="".concat(n,"-dropdown"),p=d.createElement(Itt,{prefixCls:f,options:r}),h=d.useMemo(function(){var m;return c==="rtl"?m=u==="top"?"topLeft":"bottomLeft":m=u==="top"?"topRight":"bottomRight",m},[c,u]);return d.createElement($y,{prefixCls:f,popupVisible:a,popup:p,popupPlacement:h,popupTransitionName:o,builtinPlacements:jtt,getPopupContainer:s,popupClassName:l},i)},Att=function(){return null};function Dtt(e){var t=e.selectionStart;return e.value.slice(0,t)}function Ftt(e,t){return t.reduce(function(n,r){var i=e.lastIndexOf(r);return i>n.location?{location:i,prefix:r}:n},{location:-1,prefix:""})}function cZ(e){return(e||"").toLowerCase()}function Ltt(e,t,n){var r=e[0];if(!r||r===n)return e;for(var i=e,a=t.length,o=0;o=0)return[!0,"",st,Ct]}return[ae,pe,ve,Se]},[g,ae,B,We,pe,ve,Se]),Ve=Te(ze,4),Be=Ve[0],Xe=Ve[1],Ke=Ve[2],qe=Ve[3],Et=te.useCallback(function(Pt){var st;return m&&m.length>0?st=m.map(function(Ct){var kt;return q(q({},Ct),{},{key:(kt=Ct==null?void 0:Ct.key)!==null&&kt!==void 0?kt:Ct.value})}):st=Xi(h).map(function(Ct){var kt=Ct.props,qt=Ct.key;return q(q({},kt),{},{label:kt.children,key:qt||kt.value})}),st.filter(function(Ct){return C===!1?!0:C(Pt,Ct)})},[h,m,C]),ut=te.useMemo(function(){return Et(Xe)},[Et,Xe]),gt=Rtt(),Qe=function(st,Ct,kt){oe(!0),me(st),$e(Ct),we(kt),z(0)},nt=function(st){oe(!1),we(0),me(""),gt(st)},jt=function(st){ge(st),k==null||k(st)},Lt=function(st){var Ct=st.target.value;jt(Ct)},Bt=function(st){var Ct,kt=st.value,qt=kt===void 0?"":kt,vt=Btt(We,{measureLocation:qe,targetText:qt,prefix:Ke,selectionStart:(Ct=ie())===null||Ct===void 0?void 0:Ct.selectionStart,split:l}),At=vt.text,dt=vt.selectionLocation;jt(At),nt(function(){ztt(ie(),dt)}),M==null||M(st,Ke)},Ut=function(st){var Ct=st.which;if(S==null||S(st),!!Be){if(Ct===mt.UP||Ct===mt.DOWN){var kt=ut.length,qt=Ct===mt.UP?-1:1,vt=(Oe+qt+kt)%kt;z(vt),st.preventDefault()}else if(Ct===mt.ESC)nt();else if(Ct===mt.ENTER){if(st.preventDefault(),v)return;if(!ut.length){nt();return}var At=ut[Oe];Bt(At)}}},Ne=function(st){var Ct=st.key,kt=st.which,qt=st.target,vt=Dtt(qt),At=Ftt(vt,B),dt=At.location,De=At.prefix;if(_==null||_(st),[mt.ESC,mt.UP,mt.DOWN,mt.ENTER].indexOf(kt)===-1)if(dt!==-1){var Ye=vt.slice(dt+De.length),ot=w(Ye,l),Re=!!Et(Ye).length;ot?(Ct===De||Ct==="Shift"||kt===mt.ALT||Ct==="AltGraph"||Be||Ye!==Xe&&Re)&&Qe(Ye,De,dt):Be&&nt(),$&&ot&&$(Ye,De)}else Be&&nt()},He=function(st){!Be&&E&&E(st)},Le=d.useRef(),Je=function(st){window.clearTimeout(Le.current),!de&&st&&P&&P(st),xe(!0)},pt=function(st){Le.current=window.setTimeout(function(){xe(!1),nt(),R==null||R(st)},0)},xt=function(){Je()},Nt=function(){pt()},Ot=function(st){L==null||L(st)};return te.createElement("div",{className:Ee(n,r),style:i,ref:U},te.createElement(e1e,tt({ref:Y,value:We},V,{rows:K,onChange:Lt,onKeyDown:Ut,onKeyUp:Ne,onPressEnter:He,onFocus:Je,onBlur:pt})),Be&&te.createElement("div",{ref:ee,className:"".concat(n,"-measure")},We.slice(0,qe),te.createElement(X1e.Provider,{value:{notFoundContent:u,activeIndex:Oe,setActiveIndex:z,selectOption:Bt,onFocus:xt,onBlur:Nt,onScroll:Ot}},te.createElement(Ntt,{prefixCls:n,transitionName:O,placement:j,direction:I,options:ut,visible:!0,getPopupContainer:A,dropdownClassName:N},te.createElement("span",null,Ke))),We.slice(qe+Ke.length)))}),rz=d.forwardRef(function(e,t){var n=e.suffix,r=e.prefixCls,i=r===void 0?"rc-mentions":r,a=e.defaultValue,o=e.value,s=e.allowClear,l=e.onChange,c=e.classNames,u=e.className,f=e.disabled,p=e.onClear,h=Ht(e,Vtt),m=d.useRef(null),g=d.useRef(null);d.useImperativeHandle(t,function(){var S,_;return q(q({},g.current),{},{nativeElement:((S=m.current)===null||S===void 0?void 0:S.nativeElement)||((_=g.current)===null||_===void 0?void 0:_.nativeElement)})});var v=In("",{defaultValue:a,value:o}),y=Te(v,2),w=y[0],b=y[1],C=function(_){b(_),l==null||l(_)},k=function(){C("")};return te.createElement(U8,{suffix:n,prefixCls:i,value:w,allowClear:s,handleReset:k,className:u,classNames:c,disabled:f,ref:m,onClear:p},te.createElement(qtt,tt({className:c==null?void 0:c.mentions,prefixCls:i,ref:g,onChange:C,disabled:f},h)))});rz.Option=Att;function Z1e(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}const Ktt=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:i,colorText:a,motionDurationSlow:o,lineHeight:s,controlHeight:l,paddingInline:c,paddingBlock:u,fontSize:f,fontSizeIcon:p,colorTextTertiary:h,colorTextQuaternary:m,colorBgElevated:g,paddingXXS:v,paddingLG:y,borderRadius:w,borderRadiusLG:b,boxShadowSecondary:C,itemPaddingVertical:k,calc:S}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),wg(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:s,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),j8(e)),A8(e)),N8(e)),{"&-affix-wrapper":Object.assign(Object.assign({},wg(e)),{display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:y},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:S(f).mul(s).mul(.5).add(u).equal(),transform:"translateY(-50%)",margin:0,padding:0,color:m,fontSize:p,verticalAlign:-1,cursor:"pointer",transition:`color ${o}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:h},"&:active":{color:a},"&-hidden":{visibility:"hidden"}}}),"&-disabled":{"> textarea":Object.assign({},T4(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:a,boxSizing:"border-box",minHeight:e.calc(l).sub(2),margin:0,padding:`${Me(u)} ${Me(c)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},D8(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},ar(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:f,fontVariant:"initial",padding:v,backgroundColor:g,borderRadius:b,outline:"none",boxShadow:C,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},ao),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${Me(k)} ${Me(i)}`,color:a,borderRadius:w,fontWeight:"normal",lineHeight:s,cursor:"pointer",transition:`background ${o} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:a,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},Gtt=e=>Object.assign(Object.assign({},jy(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),Ytt=Jn("Mentions",e=>{const t=Hn(e,Iy(e));return[Ktt(t)]},Gtt);var Xtt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,disabled:a,loading:o,filterOption:s,children:l,notFoundContent:c,options:u,status:f,allowClear:p=!1,popupClassName:h,style:m,variant:g}=e,v=Xtt(e,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","allowClear","popupClassName","style","variant"]),[y,w]=d.useState(!1),b=d.useRef(null),C=ga(t,b),{getPrefixCls:k,renderEmpty:S,direction:_,mentions:E}=d.useContext(Xt),{status:$,hasFeedback:M,feedbackIcon:P}=d.useContext(oa),R=Mu($,f),O=function(){v.onFocus&&v.onFocus.apply(v,arguments),w(!0)},j=function(){v.onBlur&&v.onBlur.apply(v,arguments),w(!1)},I=d.useMemo(()=>c!==void 0?c:(S==null?void 0:S("Select"))||d.createElement(Vg,{componentName:"Select"}),[c,S]),A=d.useMemo(()=>o?d.createElement(Q1e,{value:"ANTD_SEARCHING",disabled:!0},d.createElement(Xo,{size:"small"})):l,[o,l]),N=o?[{value:"ANTD_SEARCHING",disabled:!0,label:d.createElement(Xo,{size:"small"})}]:u,F=o?Ztt:s,K=k("mentions",n),L=YB(p),V=qr(K),[B,U,Y]=Ytt(K,V),[ee,ie]=Od("mentions",g),Z=M&&d.createElement(d.Fragment,null,P),X=Ee(E==null?void 0:E.className,r,i,Y,V),ae=d.createElement(rz,Object.assign({silent:o,prefixCls:K,notFoundContent:I,className:X,disabled:a,allowClear:L,direction:_,style:Object.assign(Object.assign({},E==null?void 0:E.style),m)},v,{filterOption:F,onFocus:O,onBlur:j,dropdownClassName:Ee(h,i,U,Y,V),ref:C,options:N,suffix:Z,classNames:{mentions:Ee({[`${K}-disabled`]:a,[`${K}-focused`]:y,[`${K}-rtl`]:_==="rtl"},U),variant:Ee({[`${K}-${ee}`]:ie},Nl(K,R)),affixWrapper:U}}),A);return B(ae)}),j4=Qtt;j4.Option=Q1e;const Jtt=Gf(j4,void 0,void 0,"mentions");j4._InternalPanelDoNotUseOrYouWillBeFired=Jtt;j4.getMentions=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,i=Z1e(n);return e.split(r).map(function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=null;return i.some(s=>a.slice(0,s.length)===s?(o=s,!0):!1),o!==null?{prefix:o,value:a.slice(o.length)}:null}).filter(a=>!!a&&!!a.value)};let tc=null,km=e=>e(),s3=[],l3={};function uZ(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=l3,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const ent=te.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=d.useContext(Xt),a=l3.prefixCls||i("message"),o=d.useContext(Ij),[s,l]=fpe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return te.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),tnt=te.forwardRef((e,t)=>{const[n,r]=te.useState(uZ),i=()=>{r(uZ)};te.useEffect(i,[]);const a=Zfe(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=te.createElement(ent,{ref:t,sync:i,messageConfig:n});return te.createElement(zn,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function K8(){if(!tc){const e=document.createDocumentFragment(),t={fragment:e};tc=t,km(()=>{XL()(te.createElement(tnt,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,K8())})}}),e)});return}tc.instance&&(s3.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{km(()=>{const r=tc.instance.open(Object.assign(Object.assign({},l3),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":km(()=>{tc==null||tc.instance.destroy(e.key)});break;default:km(()=>{var r;const i=(r=tc.instance)[t].apply(r,lt(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),s3=[])}function nnt(e){l3=Object.assign(Object.assign({},l3),e),km(()=>{var t;(t=tc==null?void 0:tc.sync)===null||t===void 0||t.call(tc)})}function rnt(e){const t=YL(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return s3.push(i),()=>{r?km(()=>{r()}):i.skipped=!0}});return K8(),t}function int(e,t){const n=YL(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return s3.push(a),()=>{i?km(()=>{i()}):a.skipped=!0}});return K8(),n}const ant=e=>{s3.push({type:"destroy",key:e}),K8()},ont=["success","info","warning","error","loading"],snt={open:rnt,destroy:ant,config:nnt,useMessage:ppe,_InternalPanelDoNotUseOrYouWillBeFired:aDe},c3=snt;ont.forEach(e=>{c3[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:l}=e,c=lnt(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(Xt),f=u(),p=t||u("modal"),h=qr(f),[m,g,v]=Jpe(p,h),y=`${p}-confirm`;let w={};return a?w={closable:i??!1,title:"",footer:"",children:d.createElement(the,Object.assign({},e,{prefixCls:p,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:w={closable:i??!0,title:o,footer:l!==null&&d.createElement(Gpe,Object.assign({},e)),children:s},m(d.createElement(Ipe,Object.assign({prefixCls:p,className:Ee(g,`${p}-pure-panel`,a&&y,a&&`${y}-${a}`,n,v,h)},c,{closeIcon:Kpe(p,r),closable:i},w)))},unt=phe(cnt);function J1e(e){return k4(ahe(e))}const yr=ehe;yr.useModal=uhe;yr.info=function(t){return k4(ohe(t))};yr.success=function(t){return k4(she(t))};yr.error=function(t){return k4(lhe(t))};yr.warning=J1e;yr.warn=J1e;yr.confirm=function(t){return k4(che(t))};yr.destroyAll=function(){for(;Cm.length;){const t=Cm.pop();t&&t()}};yr.config=bze;yr._InternalPanelDoNotUseOrYouWillBeFired=unt;const dnt=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:o,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},fnt=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},eve=Jn("Popconfirm",e=>dnt(e),fnt,{resetStyle:!1});var pnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:l="primary",icon:c=d.createElement(qf,null),showCancel:u=!0,close:f,onConfirm:p,onCancel:h,onPopupClick:m}=e,{getPrefixCls:g}=d.useContext(Xt),[v]=Ga("Popconfirm",Us.Popconfirm),y=I0(i),w=I0(a);return d.createElement("div",{className:`${t}-inner-content`,onClick:m},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},y&&d.createElement("div",{className:`${t}-title`},y),w&&d.createElement("div",{className:`${t}-description`},w))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(Yt,Object.assign({onClick:h,size:"small"},r),o||(v==null?void 0:v.cancelText)),d.createElement(aB,{buttonProps:Object.assign(Object.assign({size:"small"},ZL(l)),n),actionFn:p,close:f,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},hnt=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,a=pnt(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=d.useContext(Xt),s=o("popconfirm",t),[l]=eve(s);return l(d.createElement(Vhe,{placement:n,className:Ee(s,r),style:i,content:d.createElement(tve,Object.assign({prefixCls:s},a))}))};var mnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:f="primary",icon:p=d.createElement(qf,null),children:h,overlayClassName:m,onOpenChange:g,onVisibleChange:v,overlayStyle:y,styles:w,classNames:b}=e,C=mnt(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:k,popconfirm:S}=d.useContext(Xt),[_,E]=In(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),$=(F,K)=>{E(F,!0),v==null||v(F),g==null||g(F,K)},M=F=>{$(!1,F)},P=F=>{var K;return(K=e.onConfirm)===null||K===void 0?void 0:K.call(void 0,F)},R=F=>{var K;$(!1,F),(K=e.onCancel)===null||K===void 0||K.call(void 0,F)},O=(F,K)=>{const{disabled:L=!1}=e;L||$(F,K)},j=k("popconfirm",l),I=Ee(j,m,(i=S==null?void 0:S.classNames)===null||i===void 0?void 0:i.root,b==null?void 0:b.root),A=Ee((a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.body,b==null?void 0:b.body),[N]=eve(j);return N(d.createElement(wc,Object.assign({},$r(C,["title"]),{trigger:u,placement:c,onOpenChange:O,open:_,ref:t,classNames:{root:I,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),y),w==null?void 0:w.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),w==null?void 0:w.body)},content:d.createElement(tve,Object.assign({okType:f,icon:p},e,{prefixCls:j,close:M,onConfirm:P,onCancel:R})),"data-popover-inject":!0}),h))}),nve=gnt;nve._InternalPanelDoNotUseOrYouWillBeFired=hnt;var vnt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ynt=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},dZ=0,bnt=Ws();function wnt(){var e;return bnt?(e=dZ,dZ+=1):e="TEST_OR_SSR",e}const xnt=function(e){var t=d.useState(),n=Te(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_progress_".concat(wnt()))},[]),e||r};var fZ=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function pZ(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var Snt=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,p=r&&Kt(r)==="object",h=p?"#FFF":void 0,m=u/2,g=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:m,cy:m,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!p)return g;var v="".concat(i,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",w=pZ(r,(360-f)/360),b=pZ(r,1),C="conic-gradient(from ".concat(y,", ").concat(w.join(", "),")"),k="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:v},g),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},d.createElement(fZ,{bg:k},d.createElement(fZ,{bg:C}))))}),k2=100,aT=function(t,n,r,i,a,o,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-o)/360),h=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],m=(100-i)/100*n;c==="round"&&i!==100&&(m+=u/2,m>=n&&(m=n-.01));var g=k2/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+f,transform:"rotate(".concat(a+p+h,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Cnt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function hZ(e){var t=e??[];return Array.isArray(t)?t:[t]}var _nt=function(t){var n=q(q({},vnt),t),r=n.id,i=n.prefixCls,a=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,h=n.style,m=n.className,g=n.strokeColor,v=n.percent,y=Ht(n,Cnt),w=k2/2,b=xnt(r),C="".concat(b,"-gradient"),k=w-o/2,S=Math.PI*2*k,_=c>0?90+c/2:-90,E=S*((360-c)/360),$=Kt(a)==="object"?a:{count:a,gap:2},M=$.count,P=$.gap,R=hZ(v),O=hZ(g),j=O.find(function(V){return V&&Kt(V)==="object"}),I=j&&Kt(j)==="object",A=I?"butt":p,N=aT(S,E,0,100,_,c,u,f,A,o),F=ynt(),K=function(){var B=0;return R.map(function(U,Y){var ee=O[Y]||O[O.length-1],ie=aT(S,E,B,U,_,c,u,ee,A,o);return B+=U,d.createElement(Snt,{key:Y,color:ee,ptg:U,radius:k,prefixCls:i,gradientId:C,style:ie,strokeLinecap:A,strokeWidth:o,gapDegree:c,ref:function(X){F[Y]=X},size:k2})}).reverse()},L=function(){var B=Math.round(M*(R[0]/100)),U=100/M,Y=0;return new Array(M).fill(null).map(function(ee,ie){var Z=ie<=B-1?O[0]:f,X=Z&&Kt(Z)==="object"?"url(#".concat(C,")"):void 0,ae=aT(S,E,Y,U,_,c,u,Z,"butt",o,P);return Y+=(E-ae.strokeDashoffset+P)*100/E,d.createElement("circle",{key:ie,className:"".concat(i,"-circle-path"),r:k,cx:w,cy:w,stroke:X,strokeWidth:o,opacity:1,style:ae,ref:function(le){F[ie]=le}})})};return d.createElement("svg",tt({className:Ee("".concat(i,"-circle"),m),viewBox:"0 0 ".concat(k2," ").concat(k2),style:h,id:r,role:"presentation"},y),!M&&d.createElement("circle",{className:"".concat(i,"-circle-trail"),r:k,cx:w,cy:w,stroke:f,strokeLinecap:A,strokeWidth:s||o,style:N}),M?L():K())};function ah(e){return!e||e<0?0:e>100?100:e}function M6(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const knt=e=>{let{percent:t,success:n,successPercent:r}=e;const i=ah(M6({success:n,successPercent:r}));return[i,ah(ah(t)-i)]},Ent=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Wm.green,n||null]},G8=(e,t,n)=>{var r,i,a,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return[s,l]},$nt=3,Mnt=e=>$nt/e*100,Tnt=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:o=120,type:s,children:l,success:c,size:u=o,steps:f}=e,[p,h]=G8(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(Mnt(p),6));const g={width:p,height:h,fontSize:p*.15+6},v=d.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),y=knt(e),w=i||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=Ent({success:c,strokeColor:e.strokeColor}),k=Ee(`${t}-inner`,{[`${t}-circle-gradient`]:b}),S=d.createElement(_nt,{steps:f,percent:f?y[1]:y,strokeWidth:m,trailWidth:m,strokeColor:f?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:w}),_=p<=20,E=d.createElement("div",{className:k,style:g},S,!_&&l);return _?d.createElement(_a,{title:l},E):E},T6="--progress-line-stroke-color",rve="--progress-percent",mZ=e=>{const t=e?"100%":"-100%";return new ir(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Pnt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${T6})`]},height:"100%",width:`calc(1 / var(${rve}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Me(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:mZ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:mZ(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Ont=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Rnt=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Int=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},jnt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Nnt=Jn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Hn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Pnt(n),Ont(n),Rnt(n),Int(n)]},jnt);var Ant=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},Fnt=(e,t)=>{const{from:n=Wm.blue,to:r=Wm.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=Ant(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=Dnt(a),l=`linear-gradient(${i}, ${s})`;return{background:l,[T6]:l}}const o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[T6]:o}},Lnt=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:p,type:h}=u,m=o&&typeof o!="string"?Fnt(o,n):{[T6]:o,background:o},g=s==="square"||s==="butt"?0:void 0,v=i??[-1,a||(i==="small"?6:8)],[y,w]=G8(v,"line",{strokeWidth:a}),b={backgroundColor:c||void 0,borderRadius:g},C=Object.assign(Object.assign({width:`${ah(r)}%`,height:w,borderRadius:g},m),{[rve]:ah(r)/100}),k=M6(e),S={width:`${ah(k)}%`,height:w,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},_={width:y<0?"100%":y},E=d.createElement("div",{className:`${t}-inner`,style:b},d.createElement("div",{className:Ee(`${t}-bg`,`${t}-bg-${h}`),style:C},h==="inner"&&l),k!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:S})),$=h==="outer"&&p==="start",M=h==="outer"&&p==="end";return h==="outer"&&p==="center"?d.createElement("div",{className:`${t}-layout-bottom`},E,l):d.createElement("div",{className:`${t}-outer`,style:_},$&&l,E,M&&l)},Bnt=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:o=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[p,h]=G8(f,"step",{steps:n,strokeWidth:i}),m=p/n,g=new Array(n);for(let v=0;v{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:p,style:h,percentPosition:m={}}=e,g=znt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=m,w=Array.isArray(o)?o[0]:o,b=typeof o=="string"||Array.isArray(o)?o:void 0,C=d.useMemo(()=>{if(w){const K=typeof w=="string"?w:Object.values(w)[0];return new ur(K).isLight()}return!1},[o]),k=d.useMemo(()=>{var K,L;const V=M6(e);return parseInt(V!==void 0?(K=V??0)===null||K===void 0?void 0:K.toString():(L=s??0)===null||L===void 0?void 0:L.toString(),10)},[s,e.success,e.successPercent]),S=d.useMemo(()=>!Hnt.includes(f)&&k>=100?"success":f||"normal",[f,k]),{getPrefixCls:_,direction:E,progress:$}=d.useContext(Xt),M=_("progress",n),[P,R,O]=Nnt(M),j=u==="line",I=j&&!a,A=d.useMemo(()=>{if(!c)return null;const K=M6(e);let L;const V=p||(U=>`${U}%`),B=j&&C&&y==="inner";return y==="inner"||p||S!=="exception"&&S!=="success"?L=V(ah(s),ah(K)):S==="exception"?L=j?d.createElement(Pd,null):d.createElement(Eu,null):S==="success"&&(L=j?d.createElement(Ug,null):d.createElement(ud,null)),d.createElement("span",{className:Ee(`${M}-text`,{[`${M}-text-bright`]:B,[`${M}-text-${v}`]:I,[`${M}-text-${y}`]:I}),title:typeof L=="string"?L:void 0},L)},[c,s,k,S,u,M,p]);let N;u==="line"?N=a?d.createElement(Bnt,Object.assign({},e,{strokeColor:b,prefixCls:M,steps:typeof a=="object"?a.count:a}),A):d.createElement(Lnt,Object.assign({},e,{strokeColor:w,prefixCls:M,direction:E,percentPosition:{align:v,type:y}}),A):(u==="circle"||u==="dashboard")&&(N=d.createElement(Tnt,Object.assign({},e,{strokeColor:w,prefixCls:M,progressStatus:S}),A));const F=Ee(M,`${M}-status-${S}`,{[`${M}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${M}-inline-circle`]:u==="circle"&&G8(l,"circle")[0]<=20,[`${M}-line`]:I,[`${M}-line-align-${v}`]:I,[`${M}-line-position-${y}`]:I,[`${M}-steps`]:a,[`${M}-show-info`]:c,[`${M}-${l}`]:typeof l=="string",[`${M}-rtl`]:E==="rtl"},$==null?void 0:$.className,r,i,R,O);return P(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},$==null?void 0:$.style),h),className:F,role:"progressbar","aria-valuenow":k,"aria-valuemin":0,"aria-valuemax":100},$r(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))});function rd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=HE(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var Fy,N4;function Is(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function Ud(e,t){return(e>>>t&1)!=0}function ol(e){if(!e)throw new Error("Assertion error")}var id=function(){function e(t,n){Ar(this,e),ne(this,"modeBits",void 0),ne(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Dr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();Fy=id;ne(id,"NUMERIC",new Fy(1,[10,12,14]));ne(id,"ALPHANUMERIC",new Fy(2,[9,11,13]));ne(id,"BYTE",new Fy(4,[8,16,16]));ne(id,"KANJI",new Fy(8,[8,10,12]));ne(id,"ECI",new Fy(7,[0,0,0]));var dc=Dr(function e(t,n){Ar(this,e),ne(this,"ordinal",void 0),ne(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});N4=dc;ne(dc,"LOW",new N4(0,1));ne(dc,"MEDIUM",new N4(1,0));ne(dc,"QUARTILE",new N4(2,3));ne(dc,"HIGH",new N4(3,2));var Gm=function(){function e(t,n,r){if(Ar(this,e),ne(this,"mode",void 0),ne(this,"numChars",void 0),ne(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return Dr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=rd(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;Is(o,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(id.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var o=[],s=0;s>>9)*1335;var o=(r<<10|i)^21522;ol(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,Ud(o,s));this.setFunctionModule(8,7,Ud(o,6)),this.setFunctionModule(8,8,Ud(o,7)),this.setFunctionModule(7,8,Ud(o,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,Ud(o,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,Ud(o,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,Ud(o,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var i=this.version<<12|n;ol(i>>>18==0);for(var a=0;a<18;a++){var o=Ud(i,a),s=this.size-11+a%3,l=Math.floor(a/3);this.setFunctionModule(s,l,o),this.setFunctionModule(l,s,o)}}}},{key:"drawFinderPattern",value:function(n,r){for(var i=-4;i<=4;i++)for(var a=-4;a<=4;a++){var o=Math.max(Math.abs(a),Math.abs(i)),s=n+a,l=r+i;0<=s&&s=l)&&v.push(k[C])})},w=0;w=1;i-=2){i==6&&(i=5);for(var a=0;a>>3],7-(r&7)),r++)}}ol(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r5&&n++):(this.finderPenaltyAddHistory(a,o),i||(n+=this.finderPenaltyCountPatterns(o)*e.PENALTY_N3),i=this.modules[r][s],a=1);n+=this.finderPenaltyTerminateAndCount(i,a,o)*e.PENALTY_N3}for(var l=0;l5&&n++):(this.finderPenaltyAddHistory(u,f),c||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),c=this.modules[p][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,f)*e.PENALTY_N3}for(var h=0;h0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(i&&n[0]>=r*4&&n[6]>=r?1:0)+(i&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,i){var a=r;return n&&(this.finderPenaltyAddHistory(a,i),a=0),a+=this.size,this.finderPenaltyAddHistory(a,i),this.finderPenaltyCountPatterns(i)}},{key:"finderPenaltyAddHistory",value:function(n,r){var i=n;r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}],[{key:"encodeText",value:function(n,r){var i=Gm.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=Gm.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");var l,c;for(l=i;;l++){var u=e.getNumDataCodewords(l,r)*8,f=Gm.getTotalBits(n,l);if(f<=u){c=f;break}if(l>=a)throw new RangeError("Data too long")}for(var p=r,h=0,m=[dc.MEDIUM,dc.QUARTILE,dc.HIGH];h>>3]|=M<<7-(P&7)}),new e(l,p,$,o)}},{key:"getNumRawDataModules",value:function(n){if(ne.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var i=Math.floor(n/7)+2;r-=(25*i-10)*i-55,n>=7&&(r-=36)}return ol(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],i=0;i>>8||r>>>8)throw new RangeError("Byte out of range");for(var i=0,a=7;a>=0;a--)i=i<<1^(i>>>7)*285,i^=(r>>>a&1)*n;return ol(i>>>8==0),i}}]),e}();ne(Xf,"MIN_VERSION",1);ne(Xf,"MAX_VERSION",40);ne(Xf,"PENALTY_N1",3);ne(Xf,"PENALTY_N2",3);ne(Xf,"PENALTY_N3",40);ne(Xf,"PENALTY_N4",10);ne(Xf,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);ne(Xf,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var Unt={L:dc.LOW,M:dc.MEDIUM,Q:dc.QUARTILE,H:dc.HIGH},ive=128,ave="L",ove="#FFFFFF",sve="#000000",lve=!1,cve=1,Wnt=4,Vnt=0,qnt=.1;function uve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,i){var a=null;r.forEach(function(o,s){if(!o&&a!==null){n.push("M".concat(a+t," ").concat(i+t,"h").concat(s-a,"v1H").concat(a+t,"z")),a=null;return}if(s===r.length-1){if(!o)return;a===null?n.push("M".concat(s+t,",").concat(i+t," h1v1H").concat(s+t,"z")):n.push("M".concat(a+t,",").concat(i+t," h").concat(s+1-a,"v1H").concat(a+t,"z"));return}o&&a===null&&(a=s)})}),n.join("")}function dve(e,t){return e.slice().map(function(n,r){return r=t.y+t.h?n:n.map(function(i,a){return a=t.x+t.w?i:!1})})}function Knt(e,t,n,r){if(r==null)return null;var i=e.length+n*2,a=Math.floor(t*qnt),o=i/t,s=(r.width||a)*o,l=(r.height||a)*o,c=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-l/2:r.y*o,f=r.opacity==null?1:r.opacity,p=null;if(r.excavate){var h=Math.floor(c),m=Math.floor(u),g=Math.ceil(s+c-h),v=Math.ceil(l+u-m);p={x:h,y:m,w:g,h:v}}var y=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:p,opacity:f,crossOrigin:y}}function Gnt(e,t){return t!=null?Math.floor(t):e?Wnt:Vnt}var Ynt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function fve(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,a=e.marginSize,o=e.imageSettings,s=e.size,l=d.useMemo(function(){var m=Gm.makeSegments(t);return Xf.encodeSegments(m,Unt[n],r)},[t,n,r]),c=d.useMemo(function(){var m=l.getModules(),g=Gnt(i,a),v=m.length+g*2,y=Knt(m,s,g,o);return{cells:m,margin:g,numCells:v,calculatedImageSettings:y}},[l,s,o,i,a]),u=c.cells,f=c.margin,p=c.numCells,h=c.calculatedImageSettings;return{qrcode:l,margin:f,cells:u,numCells:p,calculatedImageSettings:h}}var Xnt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],pve=te.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?ive:i,o=t.level,s=o===void 0?ave:o,l=t.bgColor,c=l===void 0?ove:l,u=t.fgColor,f=u===void 0?sve:u,p=t.includeMargin,h=p===void 0?lve:p,m=t.minVersion,g=m===void 0?cve:m,v=t.marginSize,y=t.style,w=t.imageSettings,b=Ht(t,Xnt),C=w==null?void 0:w.src,k=d.useRef(null),S=d.useRef(null),_=d.useCallback(function(F){k.current=F,typeof n=="function"?n(F):n&&(n.current=F)},[n]),E=d.useState(!1),$=Te(E,2),M=$[1],P=fve({value:r,level:s,minVersion:g,includeMargin:h,marginSize:v,imageSettings:w,size:a}),R=P.margin,O=P.cells,j=P.numCells,I=P.calculatedImageSettings;d.useEffect(function(){if(k.current!=null){var F=k.current,K=F.getContext("2d");if(!K)return;var L=O,V=S.current,B=I!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;B&&I.excavation!=null&&(L=dve(O,I.excavation));var U=window.devicePixelRatio||1;F.height=F.width=a*U;var Y=a/j*U;K.scale(Y,Y),K.fillStyle=c,K.fillRect(0,0,j,j),K.fillStyle=f,Ynt?K.fill(new Path2D(uve(L,R))):O.forEach(function(ee,ie){ee.forEach(function(Z,X){Z&&K.fillRect(X+R,ie+R,1,1)})}),I&&(K.globalAlpha=I.opacity),B&&K.drawImage(V,I.x+R,I.y+R,I.w,I.h)}}),d.useEffect(function(){M(!1)},[C]);var A=q({height:a,width:a},y),N=null;return C!=null&&(N=te.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:function(){M(!0)},ref:S,crossOrigin:I==null?void 0:I.crossOrigin})),te.createElement(te.Fragment,null,te.createElement("canvas",tt({style:A,height:a,width:a,ref:_,role:"img"},b)),N)});pve.displayName="QRCodeCanvas";var Znt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],hve=te.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?ive:i,o=t.level,s=o===void 0?ave:o,l=t.bgColor,c=l===void 0?ove:l,u=t.fgColor,f=u===void 0?sve:u,p=t.includeMargin,h=p===void 0?lve:p,m=t.minVersion,g=m===void 0?cve:m,v=t.title,y=t.marginSize,w=t.imageSettings,b=Ht(t,Znt),C=fve({value:r,level:s,minVersion:g,includeMargin:h,marginSize:y,imageSettings:w,size:a}),k=C.margin,S=C.cells,_=C.numCells,E=C.calculatedImageSettings,$=S,M=null;w!=null&&E!=null&&(E.excavation!=null&&($=dve(S,E.excavation)),M=te.createElement("image",{href:w.src,height:E.h,width:E.w,x:E.x+k,y:E.y+k,preserveAspectRatio:"none",opacity:E.opacity,crossOrigin:E.crossOrigin}));var P=uve($,k);return te.createElement("svg",tt({height:a,width:a,viewBox:"0 0 ".concat(_," ").concat(_),ref:n,role:"img"},b),!!v&&te.createElement("title",null,v),te.createElement("path",{fill:c,d:"M0,0 h".concat(_,"v").concat(_,"H0z"),shapeRendering:"crispEdges"}),te.createElement("path",{fill:f,d:P,shapeRendering:"crispEdges"}),M)});hve.displayName="QRCodeSVG";var Qnt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},Jnt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Qnt}))},ert=d.forwardRef(Jnt),trt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},nrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:trt}))},rrt=d.forwardRef(nrt),irt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},art=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:irt}))},ort=d.forwardRef(art),srt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},lrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:srt}))},crt=d.forwardRef(lrt),urt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"},drt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:urt}))},frt=d.forwardRef(drt),prt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},hrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:prt}))},mrt=d.forwardRef(hrt),grt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},vrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:grt}))},yrt=d.forwardRef(vrt),brt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},wrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:brt}))},Y8=d.forwardRef(wrt),xrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Srt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:xrt}))},Crt=d.forwardRef(Srt),_rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},krt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:_rt}))},Em=d.forwardRef(krt),Ert={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},$rt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Ert}))},Mrt=d.forwardRef($rt),Trt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Prt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Trt}))},mve=d.forwardRef(Prt),Ort={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Rrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Ort}))},gve=d.forwardRef(Rrt),Irt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},jrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Irt}))},Nrt=d.forwardRef(jrt),Art={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Drt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Art}))},Frt=d.forwardRef(Drt),Lrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Brt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Lrt}))},zrt=d.forwardRef(Brt),Hrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},Urt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Hrt}))},Wrt=d.forwardRef(Urt),Vrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},qrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Vrt}))},Krt=d.forwardRef(qrt),Grt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Yrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Grt}))},vve=d.forwardRef(Yrt),Xrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Zrt=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Xrt}))},Qrt=d.forwardRef(Zrt),Jrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},eit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Jrt}))},Zg=d.forwardRef(eit),tit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},nit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:tit}))},yve=d.forwardRef(nit),rit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},iit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:rit}))},bve=d.forwardRef(iit),ait={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},oit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:ait}))},sit=d.forwardRef(oit),lit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},cit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:lit}))},A4=d.forwardRef(cit),uit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},dit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:uit}))},wve=d.forwardRef(dit),fit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},pit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:fit}))},hit=d.forwardRef(pit),mit={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},git=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:mit}))},vit=d.forwardRef(git),yit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},bit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:yit}))},wit=d.forwardRef(bit),xit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Sit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:xit}))},Cit=d.forwardRef(Sit),_it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},kit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:_it}))},Eit=d.forwardRef(kit),$it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},Mit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:$it}))},X8=d.forwardRef(Mit),Tit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},Pit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Tit}))},Oit=d.forwardRef(Pit),Rit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Iit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Rit}))},xve=d.forwardRef(Iit),jit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Nit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:jit}))},Ait=d.forwardRef(Nit),Dit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},Fit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Dit}))},Lit=d.forwardRef(Fit),Bit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},zit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Bit}))},D4=d.forwardRef(zit),Hit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},Uit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Hit}))},az=d.forwardRef(Uit),Wit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},Vit=function(t,n){return d.createElement(Nn,tt({},t,{ref:n,icon:Wit}))},qit=d.forwardRef(Vit),Kit=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Sve=d.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,a=e.spin,o=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=Ht(e,Kit),f=d.useRef(),p=ku(f,t);mj(!!(r||c),"Should have `component` prop or `children`."),tpe(f);var h=d.useContext(qE),m=h.prefixCls,g=m===void 0?"anticon":m,v=h.rootClassName,y=Ee(v,g,ne({},"".concat(g,"-spin"),!!a&&!!r),n),w=Ee(ne({},"".concat(g,"-spin"),!!a)),b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=q(q({},cAe),{},{className:w,style:b,viewBox:i});i||delete C.viewBox;var k=function(){return r?d.createElement(r,C,c):c?(mj(!!i||d.Children.count(c)===1&&d.isValidElement(c)&&d.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",tt({},C,{viewBox:i}),c)):null},S=s;return S===void 0&&l&&(S=-1),d.createElement("span",tt({role:"img"},u,{ref:p,tabIndex:S,onClick:l,className:y}),k())});Sve.displayName="AntdIcon";var Git=["type","children"],Cve=new Set;function Yit(e){return!!(typeof e=="string"&&e.length&&!Cve.has(e))}function P6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(Yit(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){P6(e,t+1)},r.onerror=function(){P6(e,t+1)}),Cve.add(n),document.body.appendChild(r)}}function _ve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?P6(t.reverse()):P6([t]));var i=d.forwardRef(function(a,o){var s=a.type,l=a.children,c=Ht(a,Git),u=null;return a.type&&(u=d.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),d.createElement(Sve,tt({},r,c,{ref:o}),u)});return i.displayName="Iconfont",i}const Xit=te.createElement(Xo,null);function Zit(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:a}=e;const o=te.createElement(te.Fragment,null,te.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&te.createElement(Yt,{type:"link",icon:te.createElement(X8,null),onClick:r},n==null?void 0:n.refresh)),s=te.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:o,loading:Xit,scanned:s};return(i??(f=>l[f.status]))({status:a,locale:n,onRefresh:r})}const Qit=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},ar(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Me(n)} ${r} ${i}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},Jit=e=>({QRCodeMaskBackgroundColor:new ur(e.colorBgContainer).setA(.96).toRgbString()}),eat=Jn("QRCode",e=>{const t=Hn(e,{QRCodeTextColor:e.colorText});return Qit(t)},Jit);var tat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i;const[,a]=ka(),{value:o,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:f=a.colorText,errorLevel:p="M",status:h="active",bordered:m=!0,onRefresh:g,style:v,className:y,rootClassName:w,prefixCls:b,bgColor:C="transparent",statusRender:k}=e,S=tat(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:_}=d.useContext(Xt),E=_("qrcode",b),[$,M,P]=eat(E),R={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(t=u==null?void 0:u.height)!==null&&t!==void 0?t:40,width:typeof u=="number"?u:(n=u==null?void 0:u.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},O=Fi(S,!0),j=$r(S,Object.keys(O)),I=Object.assign({value:o,size:c,level:p,bgColor:C,fgColor:f,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?R:void 0},O),[A]=Ga("QRCode");if(!o)return null;const N=Ee(E,y,w,M,P,{[`${E}-borderless`]:!m}),F=Object.assign(Object.assign({backgroundColor:C},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(i=v==null?void 0:v.height)!==null&&i!==void 0?i:c});return $(te.createElement("div",Object.assign({},j,{className:N,style:F}),h!=="active"&&te.createElement("div",{className:`${E}-mask`},te.createElement(Zit,{prefixCls:E,locale:A,status:h,onRefresh:g,statusRender:k})),s==="canvas"?te.createElement(pve,Object.assign({},I)):te.createElement(hve,Object.assign({},I))))};function nat(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,a=e.characterRender,o=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,f=e.onHover,p=e.onClick,h=function(k){f(k,o)},m=function(k){p(k,o)},g=function(k){k.keyCode===mt.ENTER&&p(k,o)},v=o+1,y=new Set([r]);l===0&&o===0&&u?y.add("".concat(r,"-focused")):c&&l+.5>=v&&lo?"true":"false","aria-posinset":o+1,"aria-setsize":s,tabIndex:n?-1:0},te.createElement("div",{className:"".concat(r,"-first")},w),te.createElement("div",{className:"".concat(r,"-second")},w)));return a&&(b=a(b,e)),b}const rat=te.forwardRef(nat);function iat(){var e=d.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function aat(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function oat(e){var t,n,r=e.ownerDocument,i=r.body,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function sat(e){var t=oat(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=aat(r),t.left}var lat=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function cat(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,a=e.defaultValue,o=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,f=e.allowClear,p=f===void 0?!0:f,h=e.keyboard,m=h===void 0?!0:h,g=e.character,v=g===void 0?"★":g,y=e.characterRender,w=e.disabled,b=e.direction,C=b===void 0?"ltr":b,k=e.tabIndex,S=k===void 0?0:k,_=e.autoFocus,E=e.onHoverChange,$=e.onChange,M=e.onFocus,P=e.onBlur,R=e.onKeyDown,O=e.onMouseLeave,j=Ht(e,lat),I=iat(),A=Te(I,2),N=A[0],F=A[1],K=te.useRef(null),L=function(){if(!w){var G;(G=K.current)===null||G===void 0||G.focus()}};te.useImperativeHandle(t,function(){return{focus:L,blur:function(){if(!w){var G;(G=K.current)===null||G===void 0||G.blur()}}}});var V=In(a||0,{value:o}),B=Te(V,2),U=B[0],Y=B[1],ee=In(null),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=function(G,de){var xe=C==="rtl",he=G+1;if(u){var Ue=N(G),We=sat(Ue),ge=Ue.clientWidth;(xe&&de-We>ge/2||!xe&&de-We0&&!xe||de===mt.RIGHT&&U>0&&xe?(oe(U-he),G.preventDefault()):de===mt.LEFT&&U{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Me(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},fat=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),pat=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),dat(e)),fat(e))}},hat=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),mat=Jn("Rate",e=>{const t=Hn(e,{});return[pat(t)]},hat);var gat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=d.createElement(Ait,null),disabled:l}=e,c=gat(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(k,S)=>{let{index:_}=S;return o?d.createElement(_a,{title:o[_]},k):k},{getPrefixCls:f,direction:p,rate:h}=d.useContext(Xt),m=f("rate",n),[g,v,y]=mat(m),w=Object.assign(Object.assign({},h==null?void 0:h.style),a),b=d.useContext(ma),C=l??b;return g(d.createElement(uat,Object.assign({ref:t,character:s,characterRender:u,disabled:C},c,{className:Ee(r,i,v,y,h==null?void 0:h.className),style:w,prefixCls:m,direction:p})))}),vat=()=>d.createElement("svg",{width:"252",height:"294"},d.createElement("title",null,"No Found"),d.createElement("defs",null,d.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .012)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),d.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),d.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),d.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),d.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),d.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),d.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),d.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),d.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),d.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),d.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),d.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),d.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),d.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),d.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),d.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),d.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),d.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),d.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),d.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),d.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),d.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),d.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),d.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),d.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),d.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),d.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),d.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),d.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),d.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),d.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),d.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),d.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),d.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),d.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),yat=()=>d.createElement("svg",{width:"254",height:"294"},d.createElement("title",null,"Server Error"),d.createElement("defs",null,d.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),d.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .067)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),d.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),d.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),d.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),d.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),d.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),d.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),d.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),d.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),d.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),d.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),d.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),d.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),d.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),d.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),d.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),d.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),d.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),d.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),d.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),d.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),d.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),d.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),d.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),d.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),d.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),d.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),d.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),d.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),d.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),d.createElement("mask",{fill:"#fff"}),d.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),d.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),d.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),d.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),bat=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${Me(e.calc(s).mul(2).equal())} ${Me(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${Me(s)} ${Me(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},wat=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},xat=e=>[bat(e),wat(e)],Sat=e=>xat(e),Cat=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),_at=Jn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,a=Hn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[Sat(a)]},Cat),kat=()=>d.createElement("svg",{width:"251",height:"294"},d.createElement("title",null,"Unauthorized"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),d.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),d.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),d.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),d.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),d.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),d.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),d.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),d.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),d.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),d.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),d.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),d.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),d.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),d.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),d.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),d.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),d.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),d.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),d.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),d.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),d.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),d.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),d.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),d.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),d.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),d.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),d.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),d.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),d.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),d.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),d.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),d.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),Eat={success:Ug,error:Pd,info:qf,warning:qit},F4={404:vat,500:yat,403:kat},$at=Object.keys(F4),Mat=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=Ee(`${t}-icon`);if($at.includes(`${r}`)){const o=F4[r];return d.createElement("div",{className:`${i} ${t}-image`},d.createElement(o,null))}const a=d.createElement(Eat[r]);return n===null||n===!1?null:d.createElement("div",{className:i},n||a)},Tat=e=>{let{prefixCls:t,extra:n}=e;return n?d.createElement("div",{className:`${t}-extra`},n):null},Qg=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:a,style:o,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:p,result:h}=d.useContext(Xt),m=f("result",t),[g,v,y]=_at(m),w=Ee(m,`${m}-${l}`,n,h==null?void 0:h.className,r,{[`${m}-rtl`]:p==="rtl"},v,y),b=Object.assign(Object.assign({},h==null?void 0:h.style),o);return g(d.createElement("div",{className:w,style:b},d.createElement(Mat,{prefixCls:m,status:l,icon:c}),d.createElement("div",{className:`${m}-title`},a),i&&d.createElement("div",{className:`${m}-subtitle`},i),d.createElement(Tat,{prefixCls:m,extra:u}),s&&d.createElement("div",{className:`${m}-content`},s)))};Qg.PRESENTED_IMAGE_403=F4[403];Qg.PRESENTED_IMAGE_404=F4[404];Qg.PRESENTED_IMAGE_500=F4[500];var Pat=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function vZ(e){return typeof e=="string"}function kve(e){var t,n=e.className,r=e.prefixCls,i=e.style,a=e.active,o=e.status,s=e.iconPrefix,l=e.icon;e.wrapperStyle;var c=e.stepNumber,u=e.disabled,f=e.description,p=e.title,h=e.subTitle,m=e.progressDot,g=e.stepIcon,v=e.tailContent,y=e.icons,w=e.stepIndex,b=e.onStepClick,C=e.onClick,k=e.render,S=Ht(e,Pat),_=!!b&&!u,E={};_&&(E.role="button",E.tabIndex=0,E.onClick=function(j){C==null||C(j),b(w)},E.onKeyDown=function(j){var I=j.which;(I===mt.ENTER||I===mt.SPACE)&&b(w)});var $=function(){var I,A,N=Ee("".concat(r,"-icon"),"".concat(s,"icon"),(I={},ne(I,"".concat(s,"icon-").concat(l),l&&vZ(l)),ne(I,"".concat(s,"icon-check"),!l&&o==="finish"&&(y&&!y.finish||!y)),ne(I,"".concat(s,"icon-cross"),!l&&o==="error"&&(y&&!y.error||!y)),I)),F=d.createElement("span",{className:"".concat(r,"-icon-dot")});return m?typeof m=="function"?A=d.createElement("span",{className:"".concat(r,"-icon")},m(F,{index:c-1,status:o,title:p,description:f})):A=d.createElement("span",{className:"".concat(r,"-icon")},F):l&&!vZ(l)?A=d.createElement("span",{className:"".concat(r,"-icon")},l):y&&y.finish&&o==="finish"?A=d.createElement("span",{className:"".concat(r,"-icon")},y.finish):y&&y.error&&o==="error"?A=d.createElement("span",{className:"".concat(r,"-icon")},y.error):l||o==="finish"||o==="error"?A=d.createElement("span",{className:N}):A=d.createElement("span",{className:"".concat(r,"-icon")},c),g&&(A=g({index:c-1,status:o,title:p,description:f,node:A})),A},M=o||"wait",P=Ee("".concat(r,"-item"),"".concat(r,"-item-").concat(M),n,(t={},ne(t,"".concat(r,"-item-custom"),l),ne(t,"".concat(r,"-item-active"),a),ne(t,"".concat(r,"-item-disabled"),u===!0),t)),R=q({},i),O=d.createElement("div",tt({},S,{className:P,style:R}),d.createElement("div",tt({onClick:C},E,{className:"".concat(r,"-item-container")}),d.createElement("div",{className:"".concat(r,"-item-tail")},v),d.createElement("div",{className:"".concat(r,"-item-icon")},$()),d.createElement("div",{className:"".concat(r,"-item-content")},d.createElement("div",{className:"".concat(r,"-item-title")},p,h&&d.createElement("div",{title:typeof h=="string"?h:void 0,className:"".concat(r,"-item-subtitle")},h)),f&&d.createElement("div",{className:"".concat(r,"-item-description")},f))));return k&&(O=k(O)||null),O}var Oat=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function sz(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,i=e.style,a=i===void 0?{}:i,o=e.className;e.children;var s=e.direction,l=s===void 0?"horizontal":s,c=e.type,u=c===void 0?"default":c,f=e.labelPlacement,p=f===void 0?"horizontal":f,h=e.iconPrefix,m=h===void 0?"rc":h,g=e.status,v=g===void 0?"process":g,y=e.size,w=e.current,b=w===void 0?0:w,C=e.progressDot,k=C===void 0?!1:C,S=e.stepIcon,_=e.initial,E=_===void 0?0:_,$=e.icons,M=e.onChange,P=e.itemRender,R=e.items,O=R===void 0?[]:R,j=Ht(e,Oat),I=u==="navigation",A=u==="inline",N=A||k,F=A?"horizontal":l,K=A?void 0:y,L=N?"vertical":p,V=Ee(r,"".concat(r,"-").concat(F),o,(t={},ne(t,"".concat(r,"-").concat(K),K),ne(t,"".concat(r,"-label-").concat(L),F==="horizontal"),ne(t,"".concat(r,"-dot"),!!N),ne(t,"".concat(r,"-navigation"),I),ne(t,"".concat(r,"-inline"),A),t)),B=function(ee){M&&b!==ee&&M(ee)},U=function(ee,ie){var Z=q({},ee),X=E+ie;return v==="error"&&ie===b-1&&(Z.className="".concat(r,"-next-error")),Z.status||(X===b?Z.status=v:X{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:i}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:i,lineHeight:Me(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Iat=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},jat=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:i}=e,a=e.calc(e.paddingXS).add(e.lineWidth).equal(),o={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${Me(a)} ${Me(e.paddingXXS)} 0`,margin:`0 ${Me(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${Me(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(a).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${Me(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:i},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i,border:`${Me(e.lineWidth)} ${e.lineType} ${i}`}},o),"&-error":o,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${Me(e.calc(n).div(2).equal())})`,top:0}},o),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},Nat=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:i}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${Me(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(i).div(2).add(e.controlHeightLG).equal()}}}}}},Aat=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:i,motionDurationSlow:a}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${a}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ao),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${Me(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:i,transition:`width ${a}, inset-inline-start ${a}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${Me(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Dat=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:i,processIconColor:a,marginXXS:o,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,u=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),f=e.calc(i).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:a}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:o,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(i).div(2).sub(l).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${Me(u)} !important`,height:`${Me(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(i).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${Me(f)} !important`,height:`${Me(f)} !important`}}}}},Fat=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:i,dotSize:a,motionDurationSlow:o}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${Me(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${Me(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal(),paddingInlineEnd:0,lineHeight:Me(a),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${o}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(a).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(a).sub(i).div(2).equal(),width:i,height:i,lineHeight:Me(i),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),top:0,insetInlineStart:e.calc(a).sub(i).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(a).div(2).equal(),insetInlineStart:0,margin:0,padding:`${Me(e.calc(a).add(e.paddingXS).equal())} 0 ${Me(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(a).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(a).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Lat=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Bat=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:i,colorTextDescription:a}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${Me(e.marginXS)}`,fontSize:r,lineHeight:Me(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:i,lineHeight:Me(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:a,fontSize:i},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:Me(n),transform:"none"}}}}},zat=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:Me(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${Me(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${Me(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${Me(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${Me(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:Me(n)}}}}},Hat="wait",Uat="process",Wat="finish",Vat="error",TS=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,i=`${e}TitleColor`,a=`${e}DescriptionColor`,o=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[i],"&::after":{backgroundColor:t[o]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[a]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[o]}}},qat=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,i=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[i]:Object.assign({},yc(e))}},[`${i}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[i]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:Me(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${Me(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:Me(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},TS(Hat,e)),TS(Uat,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),TS(Wat,e)),TS(Vat,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},Kat=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},Gat=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),qat(e)),Kat(e)),Rat(e)),Bat(e)),zat(e)),Iat(e)),Nat(e)),Fat(e)),Aat(e)),Lat(e)),Dat(e)),jat(e))}},Yat=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),Xat=Jn("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:i,colorPrimary:a,colorTextDescription:o,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:u}=e,f=Hn(e,{processIconColor:r,processTitleColor:i,processDescriptionColor:i,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:u,waitTitleColor:o,waitDescriptionColor:o,waitTailColor:u,waitDotColor:t,finishIconColor:a,finishTitleColor:i,finishDescriptionColor:o,finishTailColor:a,finishDotColor:a,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:u,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c});return[Gat(f)]},Yat);function Zat(e){return e.filter(t=>t)}function Qat(e,t){if(e)return e;const n=Xi(t).map(r=>{if(d.isValidElement(r)){const{props:i}=r;return Object.assign({},i)}return null});return Zat(n)}var Jat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{percent:t,size:n,className:r,rootClassName:i,direction:a,items:o,responsive:s=!0,current:l=0,children:c,style:u}=e,f=Jat(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=$4(s),{getPrefixCls:h,direction:m,steps:g}=d.useContext(Xt),v=d.useMemo(()=>s&&p?"vertical":a,[p,a]),y=Bi(n),w=h("steps",e.prefixCls),[b,C,k]=Xat(w),S=e.type==="inline",_=h("",e.iconPrefix),E=Qat(o,c),$=S?void 0:t,M=Object.assign(Object.assign({},g==null?void 0:g.style),u),P=Ee(g==null?void 0:g.className,{[`${w}-rtl`]:m==="rtl",[`${w}-with-progress`]:$!==void 0},r,i,C,k),R={finish:d.createElement(ud,{className:`${w}-finish-icon`}),error:d.createElement(Eu,{className:`${w}-error-icon`})},O=I=>{let{node:A,status:N}=I;if(N==="process"&&$!==void 0){const F=y==="small"?32:40;return d.createElement("div",{className:`${w}-progress-icon`},d.createElement(iz,{type:"circle",percent:$,size:F,strokeWidth:4,format:()=>null}),A)}return A},j=(I,A)=>I.description?d.createElement(_a,{title:I.description},A):A;return b(d.createElement(sz,Object.assign({icons:R},f,{style:M,current:l,size:y,items:E,itemRender:S?j:void 0,stepIcon:O,direction:v,prefixCls:w,iconPrefix:_,className:P})))};Eve.Step=sz.Step;var eot=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],$ve=d.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,a=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,m=e.onKeyDown,g=Ht(e,eot),v=In(!1,{value:o,defaultValue:s}),y=Te(v,2),w=y[0],b=y[1];function C(E,$){var M=w;return l||(M=E,b(M),h==null||h(M,$)),M}function k(E){E.which===mt.LEFT?C(!1,E):E.which===mt.RIGHT&&C(!0,E),m==null||m(E)}function S(E){var $=C(!w,E);p==null||p($,E)}var _=Ee(i,a,(n={},ne(n,"".concat(i,"-checked"),w),ne(n,"".concat(i,"-disabled"),l),n));return d.createElement("button",tt({},g,{type:"button",role:"switch","aria-checked":w,disabled:l,className:_,ref:t,onKeyDown:k,onClick:S}),c,d.createElement("span",{className:"".concat(i,"-inner")},d.createElement("span",{className:"".concat(i,"-inner-checked")},u),d.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});$ve.displayName="Switch";const tot=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Me(l(s).add(l(r).mul(2)).equal()),f=Me(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Me(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Me(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},not=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},rot=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Me(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},iot=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,calc:s}=e,l=`${t}-inner`,c=Me(s(o).add(s(r).mul(2)).equal()),u=Me(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},aot=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ar(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Me(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Vs(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},oot=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=2,l=a-s*2,c=o-s*2;return{trackHeight:a,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ur("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},sot=Jn("Switch",e=>{const t=Hn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[aot(t),iot(t),rot(t),not(t),tot(t)]},oot);var lot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:p,onChange:h}=e,m=lot(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=In(!1,{value:c??u,defaultValue:f??p}),{getPrefixCls:y,direction:w,switch:b}=d.useContext(Xt),C=d.useContext(ma),k=(i??C)||a,S=y("switch",n),_=d.createElement("div",{className:`${S}-handle`},a&&d.createElement(vu,{className:`${S}-loading-icon`})),[E,$,M]=sot(S),P=Bi(r),R=Ee(b==null?void 0:b.className,{[`${S}-small`]:P==="small",[`${S}-loading`]:a,[`${S}-rtl`]:w==="rtl"},o,s,$,M),O=Object.assign(Object.assign({},b==null?void 0:b.style),l),j=function(){v(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return E(d.createElement(w4,{component:"Switch"},d.createElement($ve,Object.assign({},m,{checked:g,onChange:j,prefixCls:S,className:R,style:O,disabled:k,ref:t,loadingIcon:_}))))}),O6=cot;O6.__ANT_SWITCH=!0;var lz=d.createContext(null),Mve=d.createContext({}),uot=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function lp(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function cz(e){return e.split("-")}function hot(e,t){var n=[],r=Ns(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(o){var s=o.key,l=o.children;n.push(s),i(l)})}return i(r.children),n}function mot(e){if(e.parent){var t=cz(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function got(e){var t=cz(e.pos);return Number(t[t.length-1])===0}function wZ(e,t,n,r,i,a,o,s,l,c){var u,f=e.clientX,p=e.clientY,h=e.target.getBoundingClientRect(),m=h.top,g=h.height,v=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-f),y=(v-12)/r,w=l.filter(function(A){var N;return(N=s[A])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),b=Ns(s,n.eventKey);if(p-1.5?a({dragNode:O,dropNode:j,dropPosition:1})?M=1:I=!1:a({dragNode:O,dropNode:j,dropPosition:0})?M=0:a({dragNode:O,dropNode:j,dropPosition:1})?M=1:I=!1:a({dragNode:O,dropNode:j,dropPosition:1})?M=1:I=!1,{dropPosition:M,dropLevelOffset:P,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:$,dropContainerKey:M===0?null:((u=b.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:I}}function xZ(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function oT(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Kt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Br(!1,"`checkedKeys` is not an array or an object"),null;return t}function Jj(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=Ns(t,i);if(a){n.add(i);var o=a.parent,s=a.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(i){r(i)}),lt(n)}function SZ(e){const[t,n]=d.useState(null);return[d.useCallback((a,o,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),f=o.slice(c,u+1).map(m=>e(m)),p=f.some(m=>!s.has(m)),h=[];return f.forEach(m=>{p?(s.has(m)||h.push(m),s.add(m)):(s.delete(m),h.push(m))}),n(p?u:null),h},[t]),a=>{n(a)}]}var vot=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*i;break;case 1:a.bottom=0,a.left=-r*i;break;case 0:a.bottom=0,a.left=i;break}return te.createElement("div",{style:a})};function Tve(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function yot(e,t){var n=d.useState(!1),r=Te(n,2),i=r[0],a=r[1];nr(function(){if(i)return e(),function(){t()}},[i]),nr(function(){return a(!0),function(){a(!1)}},[])}var bot=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],wot=d.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=Ht(e,bot),p=d.useState(!0),h=Te(p,2),m=h[0],g=h[1],v=d.useContext(lz),y=v.prefixCls,w=a&&o!=="hide";nr(function(){a&&w!==m&&g(w)},[a]);var b=function(){a&&s()},C=d.useRef(!1),k=function(){a&&!C.current&&(C.current=!0,l())};yot(b,k);var S=function(E){w===E&&k()};return a?d.createElement(Ca,tt({ref:t,visible:m},i,{motionAppear:o==="show",onVisibleChanged:S}),function(_,E){var $=_.className,M=_.style;return d.createElement("div",{ref:E,className:Ee("".concat(y,"-treenode-motion"),$),style:M},a.map(function(P){var R=Object.assign({},(Tve(P.data),P.data)),O=P.title,j=P.key,I=P.isStart,A=P.isEnd;delete R.children;var N=J2(j,u);return d.createElement(u3,tt({},R,N,{title:O,active:c,data:P.data,key:j,isStart:I,isEnd:A}))}))}):d.createElement(u3,tt({domRef:t,className:n,style:r},f,{active:c}))});function xot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,o){var s=new Map;a.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var kot=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,y=e.itemHeight,w=e.virtual,b=e.scrollWidth,C=e.focusable,k=e.activeItem,S=e.focused,_=e.tabIndex,E=e.onKeyDown,$=e.onFocus,M=e.onBlur,P=e.onActiveChange,R=e.onListChangeStart,O=e.onListChangeEnd,j=Ht(e,Sot),I=d.useRef(null),A=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(we){I.current.scrollTo(we)},getIndentWidth:function(){return A.current.offsetWidth}}});var N=d.useState(i),F=Te(N,2),K=F[0],L=F[1],V=d.useState(r),B=Te(V,2),U=B[0],Y=B[1],ee=d.useState(r),ie=Te(ee,2),Z=ie[0],X=ie[1],ae=d.useState([]),oe=Te(ae,2),le=oe[0],ce=oe[1],pe=d.useState(null),me=Te(pe,2),re=me[0],fe=me[1],ve=d.useRef(r);ve.current=r;function $e(){var Se=ve.current;Y(Se),X(Se),ce([]),fe(null),O()}nr(function(){L(i);var Se=xot(K,i);if(Se.key!==null)if(Se.add){var we=U.findIndex(function(G){var de=G.key;return de===Se.key}),se=EZ(CZ(U,r,Se.key),w,v,y),ye=U.slice();ye.splice(we+1,0,kZ),X(ye),ce(se),fe("show")}else{var Oe=r.findIndex(function(G){var de=G.key;return de===Se.key}),z=EZ(CZ(r,U,Se.key),w,v,y),H=r.slice();H.splice(Oe+1,0,kZ),X(H),ce(z),fe("hide")}else U!==r&&(Y(r),X(r))},[i,r]),d.useEffect(function(){p||$e()},[p]);var Ce=g?Z:r,be={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:m,keyEntities:u};return d.createElement(d.Fragment,null,S&&k&&d.createElement("span",{style:_Z,"aria-live":"assertive"},_ot(k)),d.createElement("div",null,d.createElement("input",{style:_Z,disabled:C===!1||f,tabIndex:C!==!1?_:null,onKeyDown:E,onFocus:$,onBlur:M,value:"",onChange:Cot,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),d.createElement(vB,tt({},j,{data:Ce,itemKey:$Z,height:v,fullHeight:!1,virtual:w,itemHeight:y,scrollWidth:b,prefixCls:"".concat(n,"-list"),ref:I,role:"tree",onVisibleChange:function(we){we.every(function(se){return $Z(se)!==Sg})&&$e()}}),function(Se){var we=Se.pos,se=Object.assign({},(Tve(Se.data),Se.data)),ye=Se.title,Oe=Se.key,z=Se.isStart,H=Se.isEnd,G=P4(Oe,we);delete se.key,delete se.children;var de=J2(G,be);return d.createElement(wot,tt({},se,de,{title:ye,active:!!k&&Oe===k.key,pos:we,data:Se.data,isStart:z,isEnd:H,motion:g,motionNodes:Oe===Sg?le:null,motionType:re,onMotionStart:R,onMotionEnd:$e,treeNodeRequiredProps:be,onMouseMove:function(){P(null)}}))}))}),Eot=10,Z8=function(e){$o(n,e);var t=ns(n);function n(){var r;Ar(this,n);for(var i=arguments.length,a=new Array(i),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,h=f.dropPosition,m=f.dropTargetKey,g=f.dropTargetPos,v=f.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var w=q(q({},J2(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:Ns(r.state.keyEntities,m).node}),b=p.includes(m);Br(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=cz(g),k={event:s,node:Pa(w),dragNode:r.dragNodeProps?Pa(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:h!==0,dropPosition:h+Number(C[C.length-1])};u||y==null||y(k),r.dragNodeProps=null}}}),ne(fn(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ne(fn(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,p=l.expanded,h=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var g=f.filter(function(y){return y.key===h})[0],v=Pa(q(q({},J2(h,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(p?Wd(u,h):lp(u,h)),r.onNodeExpand(s,v)}}),ne(fn(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ne(fn(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ne(fn(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,p=u.fieldNames,h=r.props,m=h.onSelect,g=h.multiple,v=l.selected,y=l[p.key],w=!v;w?g?c=lp(c,y):c=[y]:c=Wd(c,y);var b=c.map(function(C){var k=Ns(f,C);return k?k.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:w,node:l,selectedNodes:b,nativeEvent:s.nativeEvent})}),ne(fn(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,p=u.checkedKeys,h=u.halfCheckedKeys,m=r.props,g=m.checkStrictly,v=m.onCheck,y=l.key,w,b={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var C=c?lp(p,y):Wd(p,y),k=Wd(h,y);w={checked:C,halfChecked:k},b.checkedNodes=C.map(function(P){return Ns(f,P)}).filter(Boolean).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:C})}else{var S=bf([].concat(lt(p),[y]),!0,f),_=S.checkedKeys,E=S.halfCheckedKeys;if(!c){var $=new Set(_);$.delete(y);var M=bf(Array.from($),{checked:!1,halfCheckedKeys:E},f);_=M.checkedKeys,E=M.halfCheckedKeys}w=_,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=E,_.forEach(function(P){var R=Ns(f,P);if(R){var O=R.node,j=R.pos;b.checkedNodes.push(O),b.checkedNodesPositions.push({node:O,pos:j})}}),r.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:E})}v==null||v(w,b)}),ne(fn(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=Ns(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var p=new Promise(function(h,m){r.setState(function(g){var v=g.loadedKeys,y=v===void 0?[]:v,w=g.loadingKeys,b=w===void 0?[]:w,C=r.props,k=C.loadData,S=C.onLoad;if(!k||y.includes(c)||b.includes(c))return null;var _=k(s);return _.then(function(){var E=r.state.loadedKeys,$=lp(E,c);S==null||S($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(M){return{loadingKeys:Wd(M.loadingKeys,c)}}),h()}).catch(function(E){if(r.setState(function(M){return{loadingKeys:Wd(M.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=Eot){var $=r.state.loadedKeys;Br(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:lp($,c)}),h()}m(E)}),{loadingKeys:lp(b,c)}})});return p.catch(function(){}),p}}),ne(fn(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ne(fn(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ne(fn(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ne(fn(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,p={};Object.keys(s).forEach(function(h){if(r.props.hasOwnProperty(h)){f=!1;return}u=!0,p[h]=s[h]}),u&&(!l||f)&&r.setState(q(q({},p),c))}}),ne(fn(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Dr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,o=i.itemScrollOffset,s=o===void 0?0:o;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,o=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,f=i.dropContainerKey,p=i.dropTargetKey,h=i.dropPosition,m=i.dragOverNodeKey,g=i.indent,v=this.props,y=v.prefixCls,w=v.className,b=v.style,C=v.showLine,k=v.focusable,S=v.tabIndex,_=S===void 0?0:S,E=v.selectable,$=v.showIcon,M=v.icon,P=v.switcherIcon,R=v.draggable,O=v.checkable,j=v.checkStrictly,I=v.disabled,A=v.motion,N=v.loadData,F=v.filterTreeNode,K=v.height,L=v.itemHeight,V=v.scrollWidth,B=v.virtual,U=v.titleRender,Y=v.dropIndicatorRender,ee=v.onContextMenu,ie=v.onScroll,Z=v.direction,X=v.rootClassName,ae=v.rootStyle,oe=Fi(this.props,{aria:!0,data:!0}),le;R&&(Kt(R)==="object"?le=R:typeof R=="function"?le={nodeDraggable:R}:le={});var ce={prefixCls:y,selectable:E,showIcon:$,icon:M,switcherIcon:P,draggable:le,draggingNodeKey:l,checkable:O,checkStrictly:j,disabled:I,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:p,dropPosition:h,dragOverNodeKey:m,indent:g,direction:Z,dropIndicatorRender:Y,loadData:N,filterTreeNode:F,titleRender:U,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return d.createElement(lz.Provider,{value:ce},d.createElement("div",{className:Ee(y,w,X,ne(ne(ne({},"".concat(y,"-show-line"),C),"".concat(y,"-focused"),a),"".concat(y,"-active-focused"),c!==null)),style:ae},d.createElement(kot,tt({ref:this.listRef,prefixCls:y,style:b,data:o,disabled:I,selectable:E,checkable:!!O,motion:A,dragging:l!==null,height:K,itemHeight:L,virtual:B,focusable:k,focused:a,tabIndex:_,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ee,onScroll:ie,scrollWidth:V},this.getTreeNodeRequiredProps(),oe))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s={prevProps:i};function l(_){return!o&&i.hasOwnProperty(_)||o&&o[_]!==i[_]}var c,u=a.fieldNames;if(l("fieldNames")&&(u=A0(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(Br(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Ege(i.children)),c){s.treeData=c;var f=L8(c,{fieldNames:u});s.keyEntities=q(ne({},Sg,Pve),f.keyEntities)}var p=s.keyEntities||a.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!o&&i.defaultExpandParent?Jj(i.expandedKeys,p):i.expandedKeys;else if(!o&&i.defaultExpandAll){var h=q({},p);delete h[Sg];var m=[];Object.keys(h).forEach(function(_){var E=h[_];E.children&&E.children.length&&m.push(E.key)}),s.expandedKeys=m}else!o&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?Jj(i.defaultExpandedKeys,p):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=Y9(c||a.treeData,s.expandedKeys||a.expandedKeys,u);s.flattenNodes=g}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=xZ(i.selectedKeys,i):!o&&i.defaultSelectedKeys&&(s.selectedKeys=xZ(i.defaultSelectedKeys,i))),i.checkable){var v;if(l("checkedKeys")?v=oT(i.checkedKeys)||{}:!o&&i.defaultCheckedKeys?v=oT(i.defaultCheckedKeys)||{}:c&&(v=oT(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),v){var y=v,w=y.checkedKeys,b=w===void 0?[]:w,C=y.halfCheckedKeys,k=C===void 0?[]:C;if(!i.checkStrictly){var S=bf(b,!0,p);b=S.checkedKeys,k=S.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=k}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(d.Component);ne(Z8,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:vot,allowDrop:function(){return!0},expandAction:!1});ne(Z8,"TreeNode",u3);const $ot=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:a,borderRadius:o,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},Mot=new ir("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Tot=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Pot=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Me(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Oot=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},ar(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},yc(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Mot,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:Me(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Tot(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Pot(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Me(t.calc(a).div(2).equal())} !important`}})}},Ove=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Hn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[Oot(e,a),$ot(a)]},Rve=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Rot=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Rve(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Iot=Jn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:B8(`${n}-checkbox`,e)},Ove(n,e),x4(e)]},Rot),MZ=4;function jot(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:-n*i+MZ,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=i+MZ;break}return te.createElement("div",{style:l,className:`${r}-drop-indicator`})}const Ive=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:l}=r;if(l)return d.isValidElement(a)?a:d.createElement(vu,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),o){if(!i)return null;if(typeof c!="boolean"&&c){const p=typeof c=="function"?c(r):c,h=`${t}-switcher-line-custom-icon`;return d.isValidElement(p)?aa(p,{className:Ee(p.props.className||"",h)}):p}return c?d.createElement(gve,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return d.isValidElement(f)?aa(f,{className:Ee(f.props.className||"",u)}):f!==void 0?f:i?s?d.createElement(sit,{className:`${t}-switcher-line-icon`}):d.createElement(Cit,{className:`${t}-switcher-line-icon`}):d.createElement(crt,{className:u})},jve=te.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:o}=te.useContext(Xt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:p,blockNode:h=!1,children:m,checkable:g=!1,selectable:v=!0,draggable:y,motion:w,style:b}=e,C=r("tree",s),k=r(),S=w??Object.assign(Object.assign({},P0(k)),{motionAppear:!1}),_=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:S,blockNode:h,showLine:!!u,dropIndicatorRender:jot}),[E,$,M]=Iot(C),[,P]=ka(),R=P.paddingXS/2+(((n=P.Tree)===null||n===void 0?void 0:n.titleHeight)||P.controlHeightSM),O=te.useMemo(()=>{if(!y)return!1;let I={};switch(typeof y){case"function":I.nodeDraggable=y;break;case"object":I=Object.assign({},y);break}return I.icon!==!1&&(I.icon=I.icon||te.createElement(Krt,null)),I},[y]),j=I=>te.createElement(Ive,{prefixCls:C,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:I,showLine:u});return E(te.createElement(Z8,Object.assign({itemHeight:R,ref:t,virtual:a},_,{style:Object.assign(Object.assign({},o==null?void 0:o.style),b),prefixCls:C,className:Ee({[`${C}-icon-hide`]:!c,[`${C}-block-node`]:h,[`${C}-unselectable`]:!v,[`${C}-rtl`]:i==="rtl"},o==null?void 0:o.className,l,$,M),direction:i,checkable:g&&te.createElement("span",{className:`${C}-checkbox-inner`}),selectable:v,switcherIcon:j,draggable:O}),m))}),TZ=0,sT=1,PZ=2;function uz(e,t,n){const{key:r,children:i}=n;function a(o){const s=o[r],l=o[i];t(s,o)!==!1&&uz(l||[],t,n)}e.forEach(a)}function Not(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:a}=e;const o=[];let s=TZ;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return uz(t,c=>{if(s===PZ)return!1;if(l(c)){if(o.push(c),s===TZ)s=sT;else if(s===sT)return s=PZ,!1}else s===sT&&o.push(c);return n.includes(c)},A0(a)),o}function lT(e,t,n){const r=lt(t),i=[];return uz(e,(a,o)=>{const s=r.indexOf(a);return s!==-1&&(i.push(o),r.splice(s,1)),!!r.length},A0(n)),i}var OZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=OZ(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:E}=L8(RZ(a));let $;return n?$=Object.keys(E):r?$=Jj(a.expandedKeys||i||[],E):$=a.expandedKeys||i||[],$},[c,u]=d.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,p]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in a&&u(a.selectedKeys)},[a.selectedKeys]),d.useEffect(()=>{"expandedKeys"in a&&p(a.expandedKeys)},[a.expandedKeys]);const h=(E,$)=>{var M;return"expandedKeys"in a||p(E),(M=a.onExpand)===null||M===void 0?void 0:M.call(a,E,$)},m=(E,$)=>{var M;const{multiple:P,fieldNames:R}=a,{node:O,nativeEvent:j}=$,{key:I=""}=O,A=RZ(a),N=Object.assign(Object.assign({},$),{selected:!0}),F=(j==null?void 0:j.ctrlKey)||(j==null?void 0:j.metaKey),K=j==null?void 0:j.shiftKey;let L;P&&F?(L=E,o.current=I,s.current=L,N.selectedNodes=lT(A,L,R)):P&&K?(L=Array.from(new Set([].concat(lt(s.current||[]),lt(Not({treeData:A,expandedKeys:f,startKey:I,endKey:o.current,fieldNames:R}))))),N.selectedNodes=lT(A,L,R)):(L=[I],o.current=I,s.current=L,N.selectedNodes=lT(A,L,R)),(M=a.onSelect)===null||M===void 0||M.call(a,L,N),"selectedKeys"in a||u(L)},{getPrefixCls:g,direction:v}=d.useContext(Xt),{prefixCls:y,className:w,showIcon:b=!0,expandAction:C="click"}=a,k=OZ(a,["prefixCls","className","showIcon","expandAction"]),S=g("tree",y),_=Ee(`${S}-directory`,{[`${S}-directory-rtl`]:v==="rtl"},w);return d.createElement(jve,Object.assign({icon:Aot,ref:t,blockNode:!0},k,{showIcon:b,expandAction:C,prefixCls:S,className:_,expandedKeys:f,selectedKeys:c,onSelect:m,onExpand:h}))},Fot=d.forwardRef(Dot),dz=jve;dz.DirectoryTree=Fot;dz.TreeNode=u3;const Lot=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},ar(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},fz=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Hn(e,{tagFontSize:i,tagLineHeight:Me(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},pz=e=>({defaultBg:new ur(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Nve=Jn("Tag",e=>{const t=fz(e);return Lot(t)},pz);var Bot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,style:r,className:i,checked:a,onChange:o,onClick:s}=e,l=Bot(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=d.useContext(Xt),f=y=>{o==null||o(!a),s==null||s(y)},p=c("tag",n),[h,m,g]=Nve(p),v=Ee(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},u==null?void 0:u.className,i,m,g);return h(d.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))}),Hot=e=>XE(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Uot=Sy(["Tag","preset"],e=>{const t=fz(e);return Hot(t)},pz);function Wot(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const PS=(e,t,n)=>{const r=Wot(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Vot=Sy(["Tag","status"],e=>{const t=fz(e);return[PS(t,"success","Success"),PS(t,"processing","Info"),PS(t,"error","Error"),PS(t,"warning","Warning")]},pz);var qot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,p=qot(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:m,tag:g}=d.useContext(Xt),[v,y]=d.useState(!0),w=$r(p,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&y(f)},[f]);const b=C8(l),C=vWe(l),k=b||C,S=Object.assign(Object.assign({backgroundColor:l&&!k?l:void 0},g==null?void 0:g.style),a),_=h("tag",n),[E,$,M]=Nve(_),P=Ee(_,g==null?void 0:g.className,{[`${_}-${l}`]:k,[`${_}-has-color`]:l&&!k,[`${_}-hidden`]:!v,[`${_}-rtl`]:m==="rtl",[`${_}-borderless`]:!u},r,i,$,M),R=F=>{F.stopPropagation(),c==null||c(F),!F.defaultPrevented&&y(!1)},[,O]=dB(R0(e),R0(g),{closable:!1,closeIconRender:F=>{const K=d.createElement("span",{className:`${_}-close-icon`,onClick:R},F);return KL(F,K,L=>({onClick:V=>{var B;(B=L==null?void 0:L.onClick)===null||B===void 0||B.call(L,V),R(V)},className:Ee(L==null?void 0:L.className,`${_}-close-icon`)}))}}),j=typeof p.onClick=="function"||o&&o.type==="a",I=s||null,A=I?d.createElement(d.Fragment,null,I,o&&d.createElement("span",null,o)):o,N=d.createElement("span",Object.assign({},w,{ref:t,className:P,style:S}),A,O,b&&d.createElement(Uot,{key:"preset",prefixCls:_}),C&&d.createElement(Vot,{key:"status",prefixCls:_}));return E(j?d.createElement(w4,{component:"Tag"},N):N)}),Vi=Kot;Vi.CheckableTag=zot;const Got=e=>{const t=e!=null&&e.algorithm?fg(e.algorithm):fg(g4),n=Object.assign(Object.assign({},T0),e==null?void 0:e.token);return jL(n,{override:e==null?void 0:e.token},t,WL)};function Yot(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Xot=(e,t)=>{const n=t??g4(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Yot(t??e)),Sfe(r)),{controlHeight:i}),xfe(Object.assign(Object.assign({},n),{controlHeight:i})))},Gl=(e,t)=>new ur(e).setA(t).toRgbString(),D1=(e,t)=>new ur(e).lighten(t).toHexString(),Zot=e=>{const t=dh(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Qot=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Gl(r,.85),colorTextSecondary:Gl(r,.65),colorTextTertiary:Gl(r,.45),colorTextQuaternary:Gl(r,.25),colorFill:Gl(r,.18),colorFillSecondary:Gl(r,.12),colorFillTertiary:Gl(r,.08),colorFillQuaternary:Gl(r,.04),colorBgSolid:Gl(r,.95),colorBgSolidHover:Gl(r,1),colorBgSolidActive:Gl(r,.9),colorBgElevated:D1(n,12),colorBgContainer:D1(n,8),colorBgLayout:D1(n,0),colorBgSpotlight:D1(n,26),colorBgBlur:Gl(r,.04),colorBorder:D1(n,26),colorBorderSecondary:D1(n,19)}},Jot=(e,t)=>{const n=Object.keys(BL).map(i=>{const a=dh(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((o,s,l)=>(o[`${i}-${l+1}`]=a[l],o[`${i}${l+1}`]=a[l],o),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t??g4(e);return Object.assign(Object.assign(Object.assign({},r),n),wfe(e,{generateColorPalettes:Zot,generateNeutralColorPalettes:Qot}))};function est(){const[e,t,n]=ka();return{theme:e,token:t,hashId:n}}const zo={defaultSeed:t3.token,useToken:est,defaultAlgorithm:g4,darkAlgorithm:Jot,compactAlgorithm:Xot,getDesignToken:Got,defaultConfig:t3,_internalContext:zL};var tst=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.createElement(rst,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Cg=d.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,o=tst(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Od("timePicker",i,a),l=d.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return d.createElement(nst,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),Ave=Gf(Cg,"popupAlign",void 0,"picker");Cg._InternalPanelDoNotUseOrYouWillBeFired=Ave;Cg.RangePicker=ist;Cg._InternalPanelDoNotUseOrYouWillBeFired=Ave;const R6=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},ast=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:i,key:a}=n;i&&t.set(a,r)}),t},ost=(e,t,n)=>{const r=d.useMemo(()=>(e||[]).map(o=>t?Object.assign(Object.assign({},o),{key:t(o)}):o),[e,t]),[i,a]=d.useMemo(()=>{const o=[],s=new Array((n||[]).length),l=R6(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:o.push(c)}),[o,s]},[r,n,t]);return[r,i,a]},sst=[];function OS(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function IZ(e){return Array.from(e).join(";")}function lst(e,t,n){const[r,i]=d.useMemo(()=>[new Set(e.map(f=>f.key)),new Set(t.map(f=>f.key))],[e,t]),[a,o]=In(sst,{value:n}),s=d.useMemo(()=>OS(a,r),[a,r]),l=d.useMemo(()=>OS(a,i),[a,i]);d.useEffect(()=>{o([].concat(lt(OS(a,r)),lt(OS(a,i))))},[IZ(r),IZ(i)]);const c=Vn(f=>{o([].concat(lt(f),lt(l)))}),u=Vn(f=>{o([].concat(lt(s),lt(f)))});return[s,l,c,u]}const cst=e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:a,prefixCls:o,onClick:s,onRemove:l,showRemove:c}=e,u=Ee(`${o}-content-item`,{[`${o}-content-item-disabled`]:a||r.disabled,[`${o}-content-item-checked`]:i&&!r.disabled});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[p]=Ga("Transfer",Us.Transfer),h={className:u,title:f},m=d.createElement("span",{className:`${o}-content-item-text`},n);return c?d.createElement("li",Object.assign({},h),m,d.createElement("button",{type:"button",disabled:a||r.disabled,className:`${o}-content-item-remove`,"aria-label":p==null?void 0:p.remove,onClick:()=>l==null?void 0:l(r)},d.createElement(Y8,null))):(h.onClick=a||r.disabled?void 0:g=>s(r,g),d.createElement("li",Object.assign({},h),d.createElement(ps,{className:`${o}-checkbox`,checked:i,disabled:a||r.disabled}),m))},ust=d.memo(cst),dst=["handleFilter","handleClear","checkedKeys"],fst=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),pst=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:a,showRemove:o,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[f,p]=d.useState(1),h=d.useMemo(()=>s?fst(typeof s=="object"?s:{}):null,[s]),[m,g]=In(10,{value:h==null?void 0:h.pageSize});d.useEffect(()=>{if(h){const _=Math.ceil(r.length/m);p(Math.min(f,_))}},[r,h,m]);const v=(_,E)=>{c(_.key,!i.includes(_.key),E)},y=_=>{u==null||u([_.key])},w=_=>{p(_)},b=(_,E)=>{p(_),g(E)},C=d.useMemo(()=>h?r.slice((f-1)*m,f*m):r,[f,r,h,m]);d.useImperativeHandle(t,()=>({items:C}));const k=h?d.createElement(I4,{size:"small",disabled:a,simple:h.simple,pageSize:m,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:w,onShowSizeChange:b}):null,S=Ee(`${n}-content`,{[`${n}-content-show-remove`]:o});return d.createElement(d.Fragment,null,d.createElement("ul",{className:S,onScroll:l},(C||[]).map(_=>{let{renderedEl:E,renderedText:$,item:M}=_;return d.createElement(ust,{key:M.key,item:M,renderedText:$,renderedEl:E,prefixCls:n,showRemove:o,onClick:v,onRemove:y,checked:i.includes(M.key),disabled:a||M.disabled})})),k)},hst=d.forwardRef(pst),Dve=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:a,handleClear:o}=e,s=d.useCallback(l=>{a==null||a(l),l.target.value===""&&(o==null||o())},[a]);return d.createElement(Ur,{placeholder:t,className:r,value:n,onChange:s,disabled:i,allowClear:!0,prefix:d.createElement(Ty,null)})},mst=()=>null;function gst(e){return!!(e&&!te.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Bb(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const vst=e=>e!==void 0,yst=e=>e&&typeof e=="object"?Object.assign(Object.assign({},e),{defaultValue:e.defaultValue||""}):{defaultValue:"",placeholder:""},tN=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:i,disabled:a,showSearch:o=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,deselectAll:f,selectCurrent:p,selectInvert:h,removeAll:m,removeCurrent:g,showSelectAll:v=!0,showRemove:y,pagination:w,direction:b,itemsUnit:C,itemUnit:k,selectAllLabel:S,selectionsIcon:_,footer:E,renderList:$,onItemSelectAll:M,onItemRemove:P,handleFilter:R,handleClear:O,filterOption:j,render:I=mst}=e,A=yst(o),[N,F]=d.useState(A.defaultValue),K=d.useRef({}),L=Ce=>{F(Ce.target.value),R(Ce)},V=()=>{F(""),O()},B=(Ce,be)=>j?j(N,be,b):Ce.includes(N),U=Ce=>{let be=$?$(Object.assign(Object.assign({},Ce),{onItemSelect:(we,se)=>Ce.onItemSelect(we,se)})):null;const Se=!!be;return Se||(be=te.createElement(hst,Object.assign({ref:K},Ce))),{customize:Se,bodyContent:be}},Y=Ce=>{const be=I(Ce),Se=gst(be);return{item:Ce,renderedEl:Se?be.label:be,renderedText:Se?be.value:be}},ee=d.useMemo(()=>Array.isArray(c)?c[b==="left"?0:1]:c,[c,b]),[ie,Z]=d.useMemo(()=>{const Ce=[],be=[];return n.forEach(Se=>{const we=Y(Se);N&&!B(we.renderedText,Se)||(Ce.push(Se),be.push(we))}),[Ce,be]},[n,N]),X=d.useMemo(()=>ie.filter(Ce=>i.includes(Ce.key)&&!Ce.disabled),[i,ie]),ae=d.useMemo(()=>{if(X.length===0)return"none";const Ce=R6(i);return ie.every(be=>Ce.has(be.key)||!!be.disabled)?"all":"part"},[i,X]),oe=d.useMemo(()=>{const Ce=o?te.createElement("div",{className:`${t}-body-search-wrapper`},te.createElement(Dve,{prefixCls:`${t}-search`,onChange:L,handleClear:V,placeholder:A.placeholder||l,value:N,disabled:a})):null,{customize:be,bodyContent:Se}=U(Object.assign(Object.assign({},$r(e,dst)),{filteredItems:ie,filteredRenderItems:Z,selectedKeys:i}));let we;return be?we=te.createElement("div",{className:`${t}-body-customize-wrapper`},Se):we=ie.length?Se:te.createElement("div",{className:`${t}-body-not-found`},ee),te.createElement("div",{className:Ee(`${t}-body`,{[`${t}-body-with-search`]:o})},Ce,we)},[o,t,l,N,a,i,ie,Z,ee]),le=te.createElement(ps,{disabled:n.filter(Ce=>!Ce.disabled).length===0||a,checked:ae==="all",indeterminate:ae==="part",className:`${t}-checkbox`,onChange:()=>{M==null||M(ie.filter(Ce=>!Ce.disabled).map(Ce=>{let{key:be}=Ce;return be}),ae!=="all")}}),ce=(Ce,be)=>{if(S)return typeof S=="function"?S({selectedCount:Ce,totalCount:be}):S;const Se=be>1?C:k;return te.createElement(te.Fragment,null,(Ce>0?`${Ce}/`:"")+be," ",Se)},pe=E&&(E.length<2?E(e):E(e,{direction:b})),me=Ee(t,{[`${t}-with-pagination`]:!!w,[`${t}-with-footer`]:!!pe}),re=pe?te.createElement("div",{className:`${t}-footer`},pe):null,fe=!y&&!w&≤let ve;y?ve=[w?{key:"removeCurrent",label:g,onClick(){var Ce;const be=Bb((((Ce=K.current)===null||Ce===void 0?void 0:Ce.items)||[]).map(Se=>Se.item));P==null||P(be)}}:null,{key:"removeAll",label:m,onClick(){P==null||P(Bb(ie))}}].filter(Boolean):ve=[{key:"selectAll",label:ae==="all"?f:u,onClick(){const Ce=Bb(ie);M==null||M(Ce,Ce.length!==i.length)}},w?{key:"selectCurrent",label:p,onClick(){var Ce;const be=((Ce=K.current)===null||Ce===void 0?void 0:Ce.items)||[];M==null||M(Bb(be.map(Se=>Se.item)),!0)}}:null,{key:"selectInvert",label:h,onClick(){var Ce;const be=Bb((((Ce=K.current)===null||Ce===void 0?void 0:Ce.items)||[]).map(se=>se.item)),Se=new Set(i),we=new Set(Se);be.forEach(se=>{Se.has(se)?we.delete(se):we.add(se)}),M==null||M(Array.from(we),"replace")}}];const $e=te.createElement(_6,{className:`${t}-header-dropdown`,menu:{items:ve},disabled:a},vst(_)?_:te.createElement(My,null));return te.createElement("div",{className:me,style:s},te.createElement("div",{className:`${t}-header`},v?te.createElement(te.Fragment,null,fe,$e):null,te.createElement("span",{className:`${t}-header-selected`},ce(X.length,ie.length)),te.createElement("span",{className:`${t}-header-title`},r)),oe,re)},Fve=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:a="",leftActive:o,rightActive:s,className:l,style:c,direction:u,oneWay:f}=e;return d.createElement("div",{className:l,style:c},d.createElement(Yt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?d.createElement(bc,null):d.createElement(Nf,null)},a),!f&&d.createElement(Yt,{type:"primary",size:"small",disabled:t||!o,onClick:n,icon:u!=="rtl"?d.createElement(Nf,null):d.createElement(bc,null)},i))},bst=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,a=`${t}-table`,o=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:i,minWidth:i}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${o}[disabled]`]:{backgroundColor:"transparent"}}}},jZ=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},wst=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},jZ(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},jZ(e,e.colorWarning))}},xst=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:a,headerHeight:o,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:f,listHeight:p,listWidth:h,listWidthLG:m,fontSizeIcon:g,marginXS:v,paddingSM:y,lineType:w,antCls:b,iconCls:C,motionDurationSlow:k,controlItemBgHover:S,borderRadiusLG:_,colorBgContainer:E,colorText:$,controlItemBgActiveHover:M}=e,P=Me(e.calc(_).sub(i).equal());return{display:"flex",flexDirection:"column",width:h,height:p,border:`${Me(i)} ${w} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:o,padding:`${Me(e.calc(s).sub(i).equal())} ${Me(y)} ${Me(s)}`,color:$,background:E,borderBottom:`${Me(i)} ${w} ${r}`,borderRadius:`${Me(_)} ${Me(_)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},ao),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},wh()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${P} ${P}`,"&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${Me(l)} ${Me(y)}`,transition:`all ${k}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},ao),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},VL(e)),{color:n,"&:hover, &:focus":{color:f}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:S,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:M}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${Me(i)} ${w} ${r}`,[`${b}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${Me(i)} ${w} ${r}`},"&-checkbox":{lineHeight:1}}},Sst=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:a,fontSizeIcon:o,colorBgContainerDisabled:s}=e;return{[r]:Object.assign(Object.assign({},ar(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:s}},[`${r}-list`]:xst(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${Me(i)}`,verticalAlign:"middle",gap:a,[`${t}-btn ${n}`]:{fontSize:o}}})}},Cst=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},_st=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:a}=e,o=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-o)/2,transferHeaderVerticalPadding:Math.ceil((i-a-o)/2)}},kst=Jn("Transfer",e=>{const t=Hn(e);return[Sst(t),bst(t),wst(t),Cst(t)]},_st),Q8=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:i=[],operations:a=[],style:o={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:f=!1,operationStyle:p,showSelectAll:h,oneWay:m,pagination:g,status:v,prefixCls:y,className:w,rootClassName:b,selectionsIcon:C,filterOption:k,render:S,footer:_,children:E,rowKey:$,onScroll:M,onChange:P,onSearch:R,onSelectChange:O}=e,{getPrefixCls:j,renderEmpty:I,direction:A,transfer:N}=d.useContext(Xt),F=j("transfer",y),[K,L,V]=kst(F),[B,U,Y]=ost(t,$,n),[ee,ie,Z,X]=lst(U,Y,r),[ae,oe]=SZ(Ne=>Ne.key),[le,ce]=SZ(Ne=>Ne.key),pe=d.useCallback((Ne,He)=>{if(Ne==="left"){const Le=typeof He=="function"?He(ee||[]):He;Z(Le)}else{const Le=typeof He=="function"?He(ie||[]):He;X(Le)}},[ee,ie]),me=(Ne,He)=>{(Ne==="left"?oe:ce)(He)},re=d.useCallback((Ne,He)=>{Ne==="left"?O==null||O(He,ie):O==null||O(ee,He)},[ee,ie]),fe=Ne=>{var He;return(He=c??Ne.titles)!==null&&He!==void 0?He:[]},ve=Ne=>{M==null||M("left",Ne)},$e=Ne=>{M==null||M("right",Ne)},Ce=Ne=>{const He=Ne==="right"?ee:ie,Le=ast(B),Je=He.filter(Ot=>!Le.has(Ot)),pt=R6(Je),xt=Ne==="right"?Je.concat(n):n.filter(Ot=>!pt.has(Ot)),Nt=Ne==="right"?"left":"right";pe(Nt,[]),re(Nt,[]),P==null||P(xt,Ne,Je)},be=()=>{Ce("left"),me("left",null)},Se=()=>{Ce("right"),me("right",null)},we=(Ne,He,Le)=>{pe(Ne,Je=>{let pt=[];if(Le==="replace")pt=He;else if(Le)pt=Array.from(new Set([].concat(lt(Je),lt(He))));else{const xt=R6(He);pt=Je.filter(Nt=>!xt.has(Nt))}return re(Ne,pt),pt}),me(Ne,null)},se=(Ne,He)=>{we("left",Ne,He)},ye=(Ne,He)=>{we("right",Ne,He)},Oe=Ne=>R==null?void 0:R("left",Ne.target.value),z=Ne=>R==null?void 0:R("right",Ne.target.value),H=()=>R==null?void 0:R("left",""),G=()=>R==null?void 0:R("right",""),de=(Ne,He,Le,Je,pt)=>{He.has(Le)&&(He.delete(Le),me(Ne,null)),Je&&(He.add(Le),me(Ne,pt))},xe=(Ne,He,Le,Je)=>{(Ne==="left"?ae:le)(Je,He,Le)},he=(Ne,He,Le,Je)=>{const pt=Ne==="left",xt=lt(pt?ee:ie),Nt=new Set(xt),Ot=lt(pt?U:Y).filter(Ct=>!(Ct!=null&&Ct.disabled)),Pt=Ot.findIndex(Ct=>Ct.key===He);Je&&xt.length>0?xe(Ne,Ot,Nt,Pt):de(Ne,Nt,He,Le,Pt);const st=Array.from(Nt);re(Ne,st),e.selectedKeys||pe(Ne,st)},Ue=(Ne,He,Le)=>{he("left",Ne,He,Le==null?void 0:Le.shiftKey)},We=(Ne,He,Le)=>{he("right",Ne,He,Le==null?void 0:Le.shiftKey)},ge=Ne=>{pe("right",[]),P==null||P(n.filter(He=>!Ne.includes(He)),"left",lt(Ne))},ze=Ne=>typeof s=="function"?s({direction:Ne}):s||{},Ve=d.useContext(oa),{hasFeedback:Be,status:Xe}=Ve,Ke=Ne=>Object.assign(Object.assign(Object.assign({},Ne),{notFoundContent:(I==null?void 0:I("Transfer"))||te.createElement(Vg,{componentName:"Transfer"})}),l),qe=Mu(Xe,v),Et=!E&&g,ut=Y.filter(Ne=>ie.includes(Ne.key)&&!Ne.disabled).length>0,gt=U.filter(Ne=>ee.includes(Ne.key)&&!Ne.disabled).length>0,Qe=Ee(F,{[`${F}-disabled`]:u,[`${F}-customize-list`]:!!E,[`${F}-rtl`]:A==="rtl"},Nl(F,qe,Be),N==null?void 0:N.className,w,b,L,V),[nt]=Ga("Transfer",Us.Transfer),jt=Ke(nt),[Lt,Bt]=fe(jt),Ut=C??(N==null?void 0:N.selectionsIcon);return K(te.createElement("div",{className:Qe,style:Object.assign(Object.assign({},N==null?void 0:N.style),o)},te.createElement(tN,Object.assign({prefixCls:`${F}-list`,titleText:Lt,dataSource:U,filterOption:k,style:ze("left"),checkedKeys:ee,handleFilter:Oe,handleClear:H,onItemSelect:Ue,onItemSelectAll:se,render:S,showSearch:f,renderList:E,footer:_,onScroll:ve,disabled:u,direction:A==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:i[0],pagination:Et,selectionsIcon:Ut},jt)),te.createElement(Fve,{className:`${F}-operation`,rightActive:gt,rightArrowText:a[0],moveToRight:Se,leftActive:ut,leftArrowText:a[1],moveToLeft:be,style:p,disabled:u,direction:A,oneWay:m}),te.createElement(tN,Object.assign({prefixCls:`${F}-list`,titleText:Bt,dataSource:Y,filterOption:k,style:ze("right"),checkedKeys:ie,handleFilter:z,handleClear:G,onItemSelect:We,onItemSelectAll:ye,onItemRemove:ge,render:S,showSearch:f,renderList:E,footer:_,onScroll:$e,disabled:u,direction:A==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:i[1],showRemove:m,pagination:Et,selectionsIcon:Ut},jt))))};Q8.List=tN;Q8.Search=Dve;Q8.Operation=Fve;const Est=function(e){var t=d.useRef({valueLabels:new Map});return d.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(a){var o=a.value,s=a.label,l=s??n.get(o);return r.set(o,l),q(q({},a),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var $st=function(t,n,r,i){return d.useMemo(function(){var a=function(h){return h.map(function(m){var g=m.value;return g})},o=a(t),s=a(n),l=o.filter(function(p){return!i[p]}),c=o,u=s;if(r){var f=bf(o,!0,i);c=f.checkedKeys,u=f.halfCheckedKeys}return[Array.from(new Set([].concat(lt(l),lt(c)))),u]},[t,n,r,i])},Mst=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},Tst=function(t){var n=t||{},r=n.label,i=n.value,a=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:a||"children"}},nN=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},Pst=function(t,n){var r=[],i=function a(o){o.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),a(l))})};return i(t),r},NZ=function(t){return t==null};const Ost=function(e,t){return d.useMemo(function(){var n=L8(e,{fieldNames:t,initWrapper:function(i){return q(q({},i),{},{valueEntities:new Map})},processEntity:function(i,a){var o=i.node[t.value];a.valueEntities.set(o,i)}});return n},[e,t])};var hz=function(){return null},Rst=["children","value"];function Lve(e){return Xi(e).map(function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,a=i.children,o=i.value,s=Ht(i,Rst),l=q({key:r,value:o},s),c=Lve(a);return c.length&&(l.children=c),l}).filter(function(t){return t})}function rN(e){if(!e)return e;var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Br(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Ist(e,t,n,r,i,a){var o=null,s=null;function l(){function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(h,m){var g="".concat(f,"-").concat(m),v=h[a.value],y=n.includes(v),w=c(h[a.children]||[],g,y),b=d.createElement(hz,h,w.map(function(k){return k.node}));if(t===v&&(o=b),y){var C={pos:g,node:b,children:w};return p||s.push(C),C}return null}).filter(function(h){return h})}s||(s=[],c(r),s.sort(function(u,f){var p=u.node.props.value,h=f.node.props.value,m=n.indexOf(p),g=n.indexOf(h);return m-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return Br(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Br(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(u){var f=u.node;return f})}})}var jst=function(t,n,r){var i=r.fieldNames,a=r.treeNodeFilterProp,o=r.filterTreeNode,s=i.children;return d.useMemo(function(){if(!n||o===!1)return t;var l=typeof o=="function"?o:function(u,f){return String(f[a]).toUpperCase().includes(n.toUpperCase())},c=function u(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(h,m){var g=m[s],v=p||l(n,rN(m)),y=u(g||[],v);return(v||y.length)&&h.push(q(q({},m),{},ne({isLeaf:void 0},s,y))),h},[])};return c(t)},[t,n,s,a,o])};function AZ(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Nst(e,t){var n=t.id,r=t.pId,i=t.rootPId,a=new Map,o=[];return e.forEach(function(s){var l=s[n],c=q(q({},s),{},{key:s.key||l});a.set(l,c)}),a.forEach(function(s){var l=s[r],c=a.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===i||i===null)&&o.push(s)}),o}function Ast(e,t,n){return d.useMemo(function(){if(e){if(n){var r=q({id:"id",pId:"pId",rootPId:null},Kt(n)==="object"?n:{});return Nst(e,r)}return e}return Lve(t)},[t,n,e])}var Bve=d.createContext(null),zve=d.createContext(null),Dst={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Fst=function(t,n){var r=fB(),i=r.prefixCls,a=r.multiple,o=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=d.useContext(zve),f=u.virtual,p=u.listHeight,h=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,y=u.onSelect,w=u.dropdownMatchSelectWidth,b=u.treeExpandAction,C=u.treeTitleRender,k=u.onPopupScroll,S=u.leftMaxCount,_=u.leafCountOnly,E=u.valueEntities,$=d.useContext(Bve),M=$.checkable,P=$.checkedKeys,R=$.halfCheckedKeys,O=$.treeExpandedKeys,j=$.treeDefaultExpandAll,I=$.treeDefaultExpandedKeys,A=$.onTreeExpand,N=$.treeIcon,F=$.showTreeIcon,K=$.switcherIcon,L=$.treeLine,V=$.treeNodeFilterProp,B=$.loadData,U=$.treeLoadedKeys,Y=$.treeMotion,ee=$.onTreeLoad,ie=$.keyEntities,Z=d.useRef(),X=ug(function(){return g},[l,g],function(Ke,qe){return qe[0]&&Ke[1]!==qe[1]}),ae=d.useMemo(function(){return M?{checked:P,halfChecked:R}:null},[M,P,R]);d.useEffect(function(){if(l&&!a&&P.length){var Ke;(Ke=Z.current)===null||Ke===void 0||Ke.scrollTo({key:P[0]})}},[l]);var oe=function(qe){qe.preventDefault()},le=function(qe,Et){var ut=Et.node;M&&nN(ut)||(y(ut.key,{selected:!P.includes(ut.key)}),a||s(!1))},ce=d.useState(I),pe=Te(ce,2),me=pe[0],re=pe[1],fe=d.useState(null),ve=Te(fe,2),$e=ve[0],Ce=ve[1],be=d.useMemo(function(){return O?lt(O):o?$e:me},[me,$e,O,o]),Se=function(qe){re(qe),Ce(qe),A&&A(qe)},we=String(o).toLowerCase(),se=function(qe){return we?String(qe[V]).toLowerCase().includes(we):!1};d.useEffect(function(){o&&Ce(Pst(g,v))},[o]);var ye=d.useState(function(){return new Map}),Oe=Te(ye,2),z=Oe[0],H=Oe[1];d.useEffect(function(){S&&H(new Map)},[S]);function G(Ke){var qe=Ke[v.value];if(!z.has(qe)){var Et=E.get(qe),ut=(Et.children||[]).length===0;if(ut)z.set(qe,!1);else{var gt=Et.children.filter(function(nt){return!nt.node.disabled&&!nt.node.disableCheckbox&&!P.includes(nt.node[v.value])}),Qe=gt.length;z.set(qe,Qe>S)}}return z.get(qe)}var de=Vn(function(Ke){var qe=Ke[v.value];return P.includes(qe)||S===null?!1:S<=0?!0:_&&S?G(Ke):!1}),xe=function Ke(qe){var Et=rd(qe),ut;try{for(Et.s();!(ut=Et.n()).done;){var gt=ut.value;if(!(gt.disabled||gt.selectable===!1)){if(o){if(se(gt))return gt}else return gt;if(gt[v.children]){var Qe=Ke(gt[v.children]);if(Qe)return Qe}}}}catch(nt){Et.e(nt)}finally{Et.f()}return null},he=d.useState(null),Ue=Te(he,2),We=Ue[0],ge=Ue[1],ze=ie[We];d.useEffect(function(){if(l){var Ke=null,qe=function(){var ut=xe(X);return ut?ut[v.value]:null};!a&&P.length&&!o?Ke=P[0]:Ke=qe(),ge(Ke)}},[l,o]),d.useImperativeHandle(n,function(){var Ke;return{scrollTo:(Ke=Z.current)===null||Ke===void 0?void 0:Ke.scrollTo,onKeyDown:function(Et){var ut,gt=Et.which;switch(gt){case mt.UP:case mt.DOWN:case mt.LEFT:case mt.RIGHT:(ut=Z.current)===null||ut===void 0||ut.onKeyDown(Et);break;case mt.ENTER:{if(ze){var Qe=de(ze.node),nt=(ze==null?void 0:ze.node)||{},jt=nt.selectable,Lt=nt.value,Bt=nt.disabled;jt!==!1&&!Bt&&!Qe&&le(null,{node:{key:We},selected:!P.includes(Lt)})}break}case mt.ESC:s(!1)}},onKeyUp:function(){}}});var Ve=ug(function(){return!o},[o,O||me],function(Ke,qe){var Et=Te(Ke,1),ut=Et[0],gt=Te(qe,2),Qe=gt[0],nt=gt[1];return ut!==Qe&&!!(Qe||nt)}),Be=Ve?B:null;if(X.length===0)return d.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:oe},c);var Xe={fieldNames:v};return U&&(Xe.loadedKeys=U),be&&(Xe.expandedKeys=be),d.createElement("div",{onMouseDown:oe},ze&&l&&d.createElement("span",{style:Dst,"aria-live":"assertive"},ze.node.value),d.createElement(Mve.Provider,{value:{nodeDisabled:de}},d.createElement(Z8,tt({ref:Z,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:X,height:p,itemHeight:h,itemScrollOffset:m,virtual:f!==!1&&w!==!1,multiple:a,icon:N,showIcon:F,switcherIcon:K,showLine:L,loadData:Be,motion:Y,activeKey:We,checkable:M,checkStrictly:!0,checkedKeys:ae,selectedKeys:M?[]:P,defaultExpandAll:j,titleRender:C},Xe,{onActiveChange:ge,onSelect:le,onCheck:le,onExpand:Se,onLoad:ee,filterTreeNode:se,expandAction:b,onScroll:k}))))},Lst=d.forwardRef(Fst),mz="SHOW_ALL",gz="SHOW_PARENT",J8="SHOW_CHILD";function DZ(e,t,n,r){var i=new Set(e);return t===J8?e.filter(function(a){var o=n[a];return!o||!o.children||!o.children.some(function(s){var l=s.node;return i.has(l[r.value])})||!o.children.every(function(s){var l=s.node;return nN(l)||i.has(l[r.value])})}):t===gz?e.filter(function(a){var o=n[a],s=o?o.parent:null;return!s||nN(s.node)||!i.has(s.key)}):e}var Bst=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function zst(e){return!e||Kt(e)!=="object"}var Hst=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,a=e.value,o=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,f=e.inputValue,p=e.onSearch,h=e.autoClearSearchValue,m=h===void 0?!0:h,g=e.filterTreeNode,v=e.treeNodeFilterProp,y=v===void 0?"value":v,w=e.showCheckedStrategy,b=e.treeNodeLabelProp,C=e.multiple,k=e.treeCheckable,S=e.treeCheckStrictly,_=e.labelInValue,E=e.maxCount,$=e.fieldNames,M=e.treeDataSimpleMode,P=e.treeData,R=e.children,O=e.loadData,j=e.treeLoadedKeys,I=e.onTreeLoad,A=e.treeDefaultExpandAll,N=e.treeExpandedKeys,F=e.treeDefaultExpandedKeys,K=e.onTreeExpand,L=e.treeExpandAction,V=e.virtual,B=e.listHeight,U=B===void 0?200:B,Y=e.listItemHeight,ee=Y===void 0?20:Y,ie=e.listItemScrollOffset,Z=ie===void 0?0:ie,X=e.onDropdownVisibleChange,ae=e.dropdownMatchSelectWidth,oe=ae===void 0?!0:ae,le=e.treeLine,ce=e.treeIcon,pe=e.showTreeIcon,me=e.switcherIcon,re=e.treeMotion,fe=e.treeTitleRender,ve=e.onPopupScroll,$e=Ht(e,Bst),Ce=yB(n),be=k&&!S,Se=k||S,we=S||_,se=Se||C,ye=In(o,{value:a}),Oe=Te(ye,2),z=Oe[0],H=Oe[1],G=d.useMemo(function(){return k?w||J8:mz},[w,k]),de=d.useMemo(function(){return Tst($)},[JSON.stringify($)]),xe=In("",{value:u!==void 0?u:f,postState:function(De){return De||""}}),he=Te(xe,2),Ue=he[0],We=he[1],ge=function(De){We(De),p==null||p(De)},ze=Ast(P,R,M),Ve=Ost(ze,de),Be=Ve.keyEntities,Xe=Ve.valueEntities,Ke=d.useCallback(function(dt){var De=[],Ye=[];return dt.forEach(function(ot){Xe.has(ot)?Ye.push(ot):De.push(ot)}),{missingRawValues:De,existRawValues:Ye}},[Xe]),qe=jst(ze,Ue,{fieldNames:de,treeNodeFilterProp:y,filterTreeNode:g}),Et=d.useCallback(function(dt){if(dt){if(b)return dt[b];for(var De=de._title,Ye=0;YePt)){var Re=gt(dt);if(H(Re),m&&We(""),s){var It=dt;be&&(It=ot.map(function(Ie){var it=Xe.get(Ie);return it?it.node[de.value]:Ie}));var rt=De||{triggerValue:void 0,selected:void 0},$t=rt.triggerValue,Mt=rt.selected,dn=It;if(S){var pn=Bt.filter(function(Ie){return!It.includes(Ie.value)});dn=[].concat(lt(dn),lt(pn))}var T=gt(dn),D={preValue:Lt,triggerValue:$t},J=!0;(S||Ye==="selection"&&!Mt)&&(J=!1),Ist(D,$t,dt,ze,J,de),Se?D.checked=Mt:D.selected=Mt;var ke=we?T:T.map(function(Ie){return Ie.value});s(se?ke:ke[0],we?null:T.map(function(Ie){return Ie.label}),D)}}}),Ct=d.useCallback(function(dt,De){var Ye,ot=De.selected,Re=De.source,It=Be[dt],rt=It==null?void 0:It.node,$t=(Ye=rt==null?void 0:rt[de.value])!==null&&Ye!==void 0?Ye:dt;if(!se)st([$t],{selected:!0,triggerValue:$t},"option");else{var Mt=ot?[].concat(lt(Ut),[$t]):Le.filter(function(it){return it!==$t});if(be){var dn=Ke(Mt),pn=dn.missingRawValues,T=dn.existRawValues,D=T.map(function(it){return Xe.get(it).key}),J;if(ot){var ke=bf(D,!0,Be);J=ke.checkedKeys}else{var Ie=bf(D,{checked:!1,halfCheckedKeys:Je},Be);J=Ie.checkedKeys}Mt=[].concat(lt(pn),lt(J.map(function(it){return Be[it].node[de.value]})))}st(Mt,{selected:ot,triggerValue:$t},Re||"option")}ot||!se?l==null||l($t,rN(rt)):c==null||c($t,rN(rt))},[Ke,Xe,Be,de,se,Ut,st,be,l,c,Le,Je,E]),kt=d.useCallback(function(dt){if(X){var De={};Object.defineProperty(De,"documentClickClose",{get:function(){return Br(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),X(dt,De)}},[X]),qt=AZ(function(dt,De){var Ye=dt.map(function(ot){return ot.value});if(De.type==="clear"){st(Ye,{},"selection");return}De.values.length&&Ct(De.values[0].value,{selected:!1,source:"selection"})}),vt=d.useMemo(function(){return{virtual:V,dropdownMatchSelectWidth:oe,listHeight:U,listItemHeight:ee,listItemScrollOffset:Z,treeData:qe,fieldNames:de,onSelect:Ct,treeExpandAction:L,treeTitleRender:fe,onPopupScroll:ve,leftMaxCount:E===void 0?null:E-Ot.length,leafCountOnly:G==="SHOW_CHILD"&&!S&&!!k,valueEntities:Xe}},[V,oe,U,ee,Z,qe,de,Ct,L,fe,ve,E,Ot.length,G,S,k,Xe]),At=d.useMemo(function(){return{checkable:Se,loadData:O,treeLoadedKeys:j,onTreeLoad:I,checkedKeys:Le,halfCheckedKeys:Je,treeDefaultExpandAll:A,treeExpandedKeys:N,treeDefaultExpandedKeys:F,onTreeExpand:K,treeIcon:ce,treeMotion:re,showTreeIcon:pe,switcherIcon:me,treeLine:le,treeNodeFilterProp:y,keyEntities:Be}},[Se,O,j,I,Le,Je,A,N,F,K,ce,re,pe,me,le,y,Be]);return d.createElement(zve.Provider,{value:vt},d.createElement(Bve.Provider,{value:At},d.createElement(hB,tt({ref:t},$e,{id:Ce,prefixCls:i,mode:se?"multiple":void 0,displayValues:Ot,onDisplayValuesChange:qt,searchValue:Ue,onSearch:ge,OptionList:Lst,emptyOptions:!ze.length,onDropdownVisibleChange:kt,dropdownMatchSelectWidth:oe}))))}),L4=Hst;L4.TreeNode=hz;L4.SHOW_ALL=mz;L4.SHOW_PARENT=gz;L4.SHOW_CHILD=J8;const Ust=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${Me(e.paddingXS)} ${Me(e.calc(e.paddingXS).div(2).equal())}`},Ove(n,Hn(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},B8(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Wst(e,t,n){return Jn("TreeSelect",r=>{const i=Hn(r,{treePrefixCls:t});return[Ust(i)]},Rve)(e,n)}var Vst=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,size:i,disabled:a,bordered:o=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:f=256,listItemHeight:p,placement:h,notFoundContent:m,switcherIcon:g,treeLine:v,getPopupContainer:y,popupClassName:w,dropdownClassName:b,treeIcon:C=!1,transitionName:k,choiceTransitionName:S="",status:_,treeExpandAction:E,builtinPlacements:$,dropdownMatchSelectWidth:M,popupMatchSelectWidth:P,allowClear:R,variant:O,dropdownStyle:j,tagRender:I,maxCount:A,showCheckedStrategy:N,treeCheckStrictly:F}=e,K=Vst(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:L,getPrefixCls:V,renderEmpty:B,direction:U,virtual:Y,popupMatchSelectWidth:ee,popupOverflow:ie}=d.useContext(Xt),[,Z]=ka(),X=p??(Z==null?void 0:Z.controlHeightSM)+(Z==null?void 0:Z.paddingXXS),ae=V(),oe=V("select",r),le=V("select-tree",r),ce=V("tree-select",r),{compactSize:pe,compactItemClassnames:me}=$u(oe,U),re=qr(oe),fe=qr(ce),[ve,$e,Ce]=xB(oe,re),[be]=Wst(ce,le,fe),[Se,we]=Od("treeSelect",O,o),se=Ee(w||b,`${ce}-dropdown`,{[`${ce}-dropdown-rtl`]:U==="rtl"},l,Ce,re,fe,$e),ye=!!(c||u),Oe=d.useMemo(()=>{if(!(A&&(N==="SHOW_ALL"&&!F||N==="SHOW_PARENT")))return A},[A,N,F]),z=SB(e.suffixIcon,e.showArrow),H=(n=P??M)!==null&&n!==void 0?n:ee,{status:G,hasFeedback:de,isFormItemInput:xe,feedbackIcon:he}=d.useContext(oa),Ue=Mu(G,_),{suffixIcon:We,removeIcon:ge,clearIcon:ze}=w8(Object.assign(Object.assign({},K),{multiple:ye,showSuffixIcon:z,hasFeedback:de,feedbackIcon:he,prefixCls:oe,componentName:"TreeSelect"})),Ve=R===!0?{clearIcon:ze}:R;let Be;m!==void 0?Be=m:Be=(B==null?void 0:B("Select"))||d.createElement(Vg,{componentName:"Select"});const Xe=$r(K,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ke=d.useMemo(()=>h!==void 0?h:U==="rtl"?"bottomRight":"bottomLeft",[h,U]),qe=Bi(Lt=>{var Bt;return(Bt=i??pe)!==null&&Bt!==void 0?Bt:Lt}),Et=d.useContext(ma),ut=a??Et,gt=Ee(!r&&ce,{[`${oe}-lg`]:qe==="large",[`${oe}-sm`]:qe==="small",[`${oe}-rtl`]:U==="rtl",[`${oe}-${Se}`]:we,[`${oe}-in-form-item`]:xe},Nl(oe,Ue,de),me,s,l,Ce,re,fe,$e),Qe=Lt=>d.createElement(Ive,{prefixCls:le,switcherIcon:g,treeNodeProps:Lt,showLine:v}),[nt]=$c("SelectLike",j==null?void 0:j.zIndex),jt=d.createElement(L4,Object.assign({virtual:Y,disabled:ut},Xe,{dropdownMatchSelectWidth:H,builtinPlacements:wB($,ie),ref:t,prefixCls:oe,className:gt,listHeight:f,listItemHeight:X,treeCheckable:c&&d.createElement("span",{className:`${oe}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:We,multiple:ye,placement:Ke,removeIcon:ge,allowClear:Ve,switcherIcon:Qe,showTreeIcon:C,notFoundContent:Be,getPopupContainer:y||L,treeMotion:null,dropdownClassName:se,dropdownStyle:Object.assign(Object.assign({},j),{zIndex:nt}),choiceTransitionName:oo(ae,"",S),transitionName:oo(ae,"slide-up",k),treeExpandAction:E,tagRender:ye?I:void 0,maxCount:Oe,showCheckedStrategy:N,treeCheckStrictly:F}));return ve(be(jt))},Kst=d.forwardRef(qst),Jg=Kst,Gst=Gf(Jg,"dropdownAlign",e=>$r(e,["visible"]));Jg.TreeNode=hz;Jg.SHOW_ALL=mz;Jg.SHOW_PARENT=gz;Jg.SHOW_CHILD=J8;Jg._InternalPanelDoNotUseOrYouWillBeFired=Gst;const Yst=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Xst=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} - `]=Xst(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Qst=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},VL(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Jst=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Jw[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),elt=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Me(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},tlt=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),nlt=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),rlt=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Zst(e)),{[` + `]=Yst(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Zst=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},VL(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Qst=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Jw[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Jst=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Me(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},elt=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),tlt=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),nlt=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Xst(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Jst(e)),Qst(e)),{[` + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Qst(e)),Zst(e)),{[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy - `]:Object.assign(Object.assign({},VL(e)),{marginInlineStart:e.marginXXS})}),elt(e)),tlt(e)),nlt()),{"&-rtl":{direction:"rtl"}})}},ilt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Uve=Jn("Typography",e=>[rlt(e)],ilt),alt=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:p,enterIcon:h=d.createElement(Trt,null)}=e,m=d.useRef(null),g=d.useRef(!1),v=d.useRef(null),[y,w]=d.useState(l);d.useEffect(()=>{w(l)},[l]),d.useEffect(()=>{var j;if(!((j=m.current)===null||j===void 0)&&j.resizableTextArea){const{textArea:I}=m.current.resizableTextArea;I.focus();const{length:A}=I.value;I.setSelectionRange(A,A)}},[]);const b=j=>{let{target:I}=j;w(I.value.replace(/[\n\r]/g,""))},C=()=>{g.current=!0},k=()=>{g.current=!1},S=j=>{let{keyCode:I}=j;g.current||(v.current=I)},_=()=>{c(y.trim())},E=j=>{let{keyCode:I,ctrlKey:A,altKey:N,metaKey:F,shiftKey:K}=j;v.current!==I||g.current||A||N||F||K||(I===mt.ENTER?(_(),f==null||f()):I===mt.ESC&&u())},$=()=>{_()},[M,P,R]=Uve(t),O=Ee(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${p}`]:!!p},r,P,R);return M(d.createElement("div",{className:O,style:i},d.createElement(n1e,{ref:m,maxLength:o,value:y,onChange:b,onKeyDown:S,onKeyUp:E,onCompositionStart:C,onCompositionEnd:k,onBlur:$,"aria-label":n,rows:1,autoSize:s}),h!==null?aa(h,{className:`${t}-edit-content-confirm`}):null))};var olt=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=FZ[t.format]||FZ.default;window.clipboardData.setData(f,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),o.addRange(a);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=clt("message"in t?t.message:llt),window.prompt(r,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(a):o.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var dlt=ult;const flt=ei(dlt);var plt=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const hlt=e=>{let{copyConfig:t,children:n}=e;const[r,i]=d.useState(!1),[a,o]=d.useState(!1),s=d.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),d.useEffect(()=>l,[]);const u=Vn(f=>plt(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),o(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;flt(h||Q1e(n,!0).join("")||"",c),o(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(h){throw o(!1),h}}));return{copied:r,copyLoading:a,onClick:u}};function cT(e,t){return d.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const mlt=e=>{const t=d.useRef(void 0);return d.useEffect(()=>{t.current=e}),t.current},glt=(e,t,n)=>d.useMemo(()=>e===!0?{title:t??n}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var vlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:o,children:s,direction:l,style:c}=e,u=vlt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:h}=d.useContext(Xt),m=l??p,g=o?ga(t,o):t,v=f("typography",n),[y,w,b]=Uve(v),C=Ee(v,h==null?void 0:h.className,{[`${v}-rtl`]:m==="rtl"},i,a,w,b),k=Object.assign(Object.assign({},h==null?void 0:h.style),c);return y(d.createElement(r,Object.assign({className:C,style:k,ref:g},u),s))});function LZ(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function uT(e,t,n){return e===!0||e===void 0?t:e||n&&t}function ylt(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const vz=e=>["string","number"].includes(typeof e),blt=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:l,loading:c}=e;const u=LZ(a),f=LZ(o),{copied:p,copy:h}=r??{},m=n?p:h,g=uT(u[n?1:0],m),v=typeof g=="string"?g:m;return d.createElement(_a,{title:g},d.createElement("button",{type:"button",className:Ee(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":v,tabIndex:s},n?uT(f[1],d.createElement(ud,null),!0):uT(f[0],c?d.createElement(vu,null):d.createElement(grt,null),!0)))},IS=d.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=d.useRef(null);return d.useImperativeHandle(t,()=>({isExceed:()=>{const a=i.current;return a.scrollHeight>a.clientHeight},getHeight:()=>i.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),wlt=e=>e.reduce((t,n)=>t+(vz(n)?String(n).length:1),0);function BZ(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(a).slice(0,c)),r}r.push(a),n=l}return e}const dT=0,fT=1,pT=2,hT=3,zZ=4,jS={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function xlt(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:l}=e,c=d.useMemo(()=>Xi(r),[r]),u=d.useMemo(()=>wlt(c),[r]),f=d.useMemo(()=>i(c,!1),[r]),[p,h]=d.useState(null),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=d.useRef(null),w=d.useRef(null),[b,C]=d.useState(!1),[k,S]=d.useState(dT),[_,E]=d.useState(0),[$,M]=d.useState(null);nr(()=>{S(t&&n&&u?fT:dT)},[n,r,a,t,c]),nr(()=>{var j,I,A,N;if(k===fT){S(pT);const F=g.current&&getComputedStyle(g.current).whiteSpace;M(F)}else if(k===pT){const F=!!(!((j=v.current)===null||j===void 0)&&j.isExceed());S(F?hT:zZ),h(F?[0,u]:null),C(F);const K=((I=v.current)===null||I===void 0?void 0:I.getHeight())||0,L=a===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,V=((N=w.current)===null||N===void 0?void 0:N.getHeight())||0,B=Math.max(K,L+V);E(B+1),l(F)}},[k]);const P=p?Math.ceil((p[0]+p[1])/2):0;nr(()=>{var j;const[I,A]=p||[0,0];if(I!==A){const F=(((j=m.current)===null||j===void 0?void 0:j.getHeight())||0)>_;let K=P;A-I===1&&(K=F?I:A),h(F?[I,K]:[K,A])}},[p,P]);const R=d.useMemo(()=>{if(!t)return i(c,!1);if(k!==hT||!p||p[0]!==p[1]){const j=i(c,!1);return[zZ,dT].includes(k)?j:d.createElement("span",{style:Object.assign(Object.assign({},jS),{WebkitLineClamp:a})},j)}return i(o?c:BZ(c,p[0]),b)},[o,k,p,c].concat(lt(s))),O={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,R,k===pT&&d.createElement(d.Fragment,null,d.createElement(IS,{style:Object.assign(Object.assign(Object.assign({},O),jS),{WebkitLineClamp:a}),ref:v},f),d.createElement(IS,{style:Object.assign(Object.assign(Object.assign({},O),jS),{WebkitLineClamp:a-1}),ref:y},f),d.createElement(IS,{style:Object.assign(Object.assign(Object.assign({},O),jS),{WebkitLineClamp:1}),ref:w},i([],!0))),k===hT&&p&&p[0]!==p[1]&&d.createElement(IS,{style:Object.assign(Object.assign({},O),{top:400}),ref:m},i(BZ(c,P),!0)),k===fT&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const Slt=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:d.createElement(_a,Object.assign({open:n?void 0:!1},i),r)};var Clt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,style:a,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:f,component:p,title:h}=e,m=Clt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=d.useContext(Xt),[y]=Ga("Text"),w=d.useRef(null),b=d.useRef(null),C=g("typography",r),k=$r(m,["mark","code","delete","underline","strong","keyboard","italic"]),[S,_]=cT(u),[E,$]=In(!1,{value:_.editing}),{triggerType:M=["icon"]}=_,P=Ve=>{var Be;Ve&&((Be=_.onStart)===null||Be===void 0||Be.call(_)),$(Ve)},R=mlt(E);nr(()=>{var Ve;!E&&R&&((Ve=b.current)===null||Ve===void 0||Ve.focus())},[E]);const O=Ve=>{Ve==null||Ve.preventDefault(),P(!0)},j=Ve=>{var Be;(Be=_.onChange)===null||Be===void 0||Be.call(_,Ve),P(!1)},I=()=>{var Ve;(Ve=_.onCancel)===null||Ve===void 0||Ve.call(_),P(!1)},[A,N]=cT(f),{copied:F,copyLoading:K,onClick:L}=hlt({copyConfig:N,children:l}),[V,B]=d.useState(!1),[U,Y]=d.useState(!1),[ee,ie]=d.useState(!1),[Z,X]=d.useState(!1),[ae,oe]=d.useState(!0),[le,ce]=cT(c,{expandable:!1,symbol:Ve=>Ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[pe,me]=In(ce.defaultExpanded||!1,{value:ce.expanded}),re=le&&(!pe||ce.expandable==="collapsible"),{rows:fe=1}=ce,ve=d.useMemo(()=>re&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||S||A),[re,ce,S,A]);nr(()=>{le&&!ve&&(B(uY("webkitLineClamp")),Y(uY("textOverflow")))},[ve,le]);const[$e,Ce]=d.useState(re),be=d.useMemo(()=>ve?!1:fe===1?U:V,[ve,U,V]);nr(()=>{Ce(be&&re)},[be,re]);const Se=re&&($e?Z:ee),we=re&&fe===1&&$e,se=re&&fe>1&&$e,ye=(Ve,Be)=>{var Xe;me(Be.expanded),(Xe=ce.onExpand)===null||Xe===void 0||Xe.call(ce,Ve,Be)},[Oe,z]=d.useState(0),H=Ve=>{let{offsetWidth:Be}=Ve;z(Be)},G=Ve=>{var Be;ie(Ve),ee!==Ve&&((Be=ce.onEllipsis)===null||Be===void 0||Be.call(ce,Ve))};d.useEffect(()=>{const Ve=w.current;if(le&&$e&&Ve){const Be=ylt(Ve);Z!==Be&&X(Be)}},[le,$e,l,se,ae,Oe]),d.useEffect(()=>{const Ve=w.current;if(typeof IntersectionObserver>"u"||!Ve||!$e||!re)return;const Be=new IntersectionObserver(()=>{oe(!!Ve.offsetParent)});return Be.observe(Ve),()=>{Be.disconnect()}},[$e,re]);const de=glt(ce.tooltip,_.text,l),xe=d.useMemo(()=>{if(!(!le||$e))return[_.text,l,h,de.title].find(vz)},[le,$e,h,de.title,Se]);if(E)return d.createElement(alt,{value:(n=_.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:j,onCancel:I,onEnd:_.onEnd,prefixCls:C,className:i,style:a,direction:v,component:p,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const he=()=>{const{expandable:Ve,symbol:Be}=ce;return Ve?d.createElement("button",{type:"button",key:"expand",className:`${C}-${pe?"collapse":"expand"}`,onClick:Xe=>ye(Xe,{expanded:!pe}),"aria-label":pe?y.collapse:y==null?void 0:y.expand},typeof Be=="function"?Be(pe):Be):null},Ue=()=>{if(!S)return;const{icon:Ve,tooltip:Be,tabIndex:Xe}=_,Ke=Xi(Be)[0]||(y==null?void 0:y.edit),qe=typeof Ke=="string"?Ke:"";return M.includes("icon")?d.createElement(_a,{key:"edit",title:Be===!1?"":Ke},d.createElement("button",{type:"button",ref:b,className:`${C}-edit`,onClick:O,"aria-label":qe,tabIndex:Xe},Ve||d.createElement(Em,{role:"button"}))):null},We=()=>A?d.createElement(blt,Object.assign({key:"copy"},N,{prefixCls:C,copied:F,locale:y,onCopy:L,loading:K,iconOnly:l==null})):null,ge=Ve=>[Ve&&he(),Ue(),We()],ze=Ve=>[Ve&&!pe&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},klt),ce.suffix,ge(Ve)];return d.createElement(Go,{onResize:H,disabled:!re},Ve=>d.createElement(Slt,{tooltipProps:de,enableEllipsis:re,isEllipsis:Se},d.createElement(Wve,Object.assign({className:Ee({[`${C}-${o}`]:o,[`${C}-disabled`]:s,[`${C}-ellipsis`]:le,[`${C}-ellipsis-single-line`]:we,[`${C}-ellipsis-multiple-line`]:se},i),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:se?fe:void 0}),component:p,ref:ga(Ve,w,t),direction:v,onClick:M.includes("text")?O:void 0,"aria-label":xe==null?void 0:xe.toString(),title:h},k),d.createElement(xlt,{enableMeasure:re&&!$e,text:l,rows:fe,width:Oe,onEllipsis:G,expanded:pe,miscDeps:[F,pe,K,S,A,y]},(Be,Xe)=>_lt(e,d.createElement(d.Fragment,null,Be.length>0&&Xe&&!pe&&xe?d.createElement("span",{key:"show-content","aria-hidden":!0},Be):Be,ze(Xe)))))))});var Elt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n,rel:r}=e,i=Elt(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,d.createElement(e$,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),Mlt=d.forwardRef((e,t)=>d.createElement(e$,Object.assign({ref:t},e,{component:"div"})));var Tlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n}=e,r=Tlt(e,["ellipsis"]);const i=d.useMemo(()=>n&&typeof n=="object"?$r(n,["expandable","rows"]):n,[n]);return d.createElement(e$,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},Olt=d.forwardRef(Plt);var Rlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{level:n=1}=e,r=Rlt(e,["level"]),i=Ilt.includes(n)?`h${n}`:"h1";return d.createElement(e$,Object.assign({ref:t},r,{component:i}))}),Zf=Wve;Zf.Text=Olt;Zf.Link=$lt;Zf.Title=jlt;Zf.Paragraph=Mlt;const mT=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(Br(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function Nlt(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function HZ(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Alt(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var a=e.data[i];if(Array.isArray(a)){a.forEach(function(o){n.append("".concat(i,"[]"),o)});return}n.append(i,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Nlt(e,t),HZ(t)):e.onSuccess(HZ(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var Dlt=function(){var e=pa(hr().mark(function t(n,r){var i,a,o,s,l,c,u,f;return hr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=pa(hr().mark(function g(v){return hr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",new Promise(function(b){v.file(function(C){r(C)?(v.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),b(C)):b(null)})}));case 1:case"end":return w.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=pa(hr().mark(function g(v){var y,w,b,C,k;return hr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:y=v.createReader(),w=[];case 2:return _.next=5,new Promise(function(E){y.readEntries(E,function(){return E([])})});case 5:if(b=_.sent,C=b.length,C){_.next=9;break}return _.abrupt("break",12);case 9:for(k=0;k{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Me(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + `]:Object.assign(Object.assign({},VL(e)),{marginInlineStart:e.marginXXS})}),Jst(e)),elt(e)),tlt()),{"&-rtl":{direction:"rtl"}})}},rlt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Hve=Jn("Typography",e=>[nlt(e)],rlt),ilt=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:p,enterIcon:h=d.createElement(Mrt,null)}=e,m=d.useRef(null),g=d.useRef(!1),v=d.useRef(null),[y,w]=d.useState(l);d.useEffect(()=>{w(l)},[l]),d.useEffect(()=>{var j;if(!((j=m.current)===null||j===void 0)&&j.resizableTextArea){const{textArea:I}=m.current.resizableTextArea;I.focus();const{length:A}=I.value;I.setSelectionRange(A,A)}},[]);const b=j=>{let{target:I}=j;w(I.value.replace(/[\n\r]/g,""))},C=()=>{g.current=!0},k=()=>{g.current=!1},S=j=>{let{keyCode:I}=j;g.current||(v.current=I)},_=()=>{c(y.trim())},E=j=>{let{keyCode:I,ctrlKey:A,altKey:N,metaKey:F,shiftKey:K}=j;v.current!==I||g.current||A||N||F||K||(I===mt.ENTER?(_(),f==null||f()):I===mt.ESC&&u())},$=()=>{_()},[M,P,R]=Hve(t),O=Ee(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${p}`]:!!p},r,P,R);return M(d.createElement("div",{className:O,style:i},d.createElement(t1e,{ref:m,maxLength:o,value:y,onChange:b,onKeyDown:S,onKeyUp:E,onCompositionStart:C,onCompositionEnd:k,onBlur:$,"aria-label":n,rows:1,autoSize:s}),h!==null?aa(h,{className:`${t}-edit-content-confirm`}):null))};var alt=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=FZ[t.format]||FZ.default;window.clipboardData.setData(f,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),o.addRange(a);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=llt("message"in t?t.message:slt),window.prompt(r,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(a):o.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var ult=clt;const dlt=ei(ult);var flt=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const plt=e=>{let{copyConfig:t,children:n}=e;const[r,i]=d.useState(!1),[a,o]=d.useState(!1),s=d.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),d.useEffect(()=>l,[]);const u=Vn(f=>flt(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),o(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;dlt(h||Z1e(n,!0).join("")||"",c),o(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(h){throw o(!1),h}}));return{copied:r,copyLoading:a,onClick:u}};function cT(e,t){return d.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const hlt=e=>{const t=d.useRef(void 0);return d.useEffect(()=>{t.current=e}),t.current},mlt=(e,t,n)=>d.useMemo(()=>e===!0?{title:t??n}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var glt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:o,children:s,direction:l,style:c}=e,u=glt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:h}=d.useContext(Xt),m=l??p,g=o?ga(t,o):t,v=f("typography",n),[y,w,b]=Hve(v),C=Ee(v,h==null?void 0:h.className,{[`${v}-rtl`]:m==="rtl"},i,a,w,b),k=Object.assign(Object.assign({},h==null?void 0:h.style),c);return y(d.createElement(r,Object.assign({className:C,style:k,ref:g},u),s))});function LZ(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function uT(e,t,n){return e===!0||e===void 0?t:e||n&&t}function vlt(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const vz=e=>["string","number"].includes(typeof e),ylt=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:l,loading:c}=e;const u=LZ(a),f=LZ(o),{copied:p,copy:h}=r??{},m=n?p:h,g=uT(u[n?1:0],m),v=typeof g=="string"?g:m;return d.createElement(_a,{title:g},d.createElement("button",{type:"button",className:Ee(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":v,tabIndex:s},n?uT(f[1],d.createElement(ud,null),!0):uT(f[0],c?d.createElement(vu,null):d.createElement(mrt,null),!0)))},RS=d.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=d.useRef(null);return d.useImperativeHandle(t,()=>({isExceed:()=>{const a=i.current;return a.scrollHeight>a.clientHeight},getHeight:()=>i.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),blt=e=>e.reduce((t,n)=>t+(vz(n)?String(n).length:1),0);function BZ(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(a).slice(0,c)),r}r.push(a),n=l}return e}const dT=0,fT=1,pT=2,hT=3,zZ=4,IS={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function wlt(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:l}=e,c=d.useMemo(()=>Xi(r),[r]),u=d.useMemo(()=>blt(c),[r]),f=d.useMemo(()=>i(c,!1),[r]),[p,h]=d.useState(null),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=d.useRef(null),w=d.useRef(null),[b,C]=d.useState(!1),[k,S]=d.useState(dT),[_,E]=d.useState(0),[$,M]=d.useState(null);nr(()=>{S(t&&n&&u?fT:dT)},[n,r,a,t,c]),nr(()=>{var j,I,A,N;if(k===fT){S(pT);const F=g.current&&getComputedStyle(g.current).whiteSpace;M(F)}else if(k===pT){const F=!!(!((j=v.current)===null||j===void 0)&&j.isExceed());S(F?hT:zZ),h(F?[0,u]:null),C(F);const K=((I=v.current)===null||I===void 0?void 0:I.getHeight())||0,L=a===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,V=((N=w.current)===null||N===void 0?void 0:N.getHeight())||0,B=Math.max(K,L+V);E(B+1),l(F)}},[k]);const P=p?Math.ceil((p[0]+p[1])/2):0;nr(()=>{var j;const[I,A]=p||[0,0];if(I!==A){const F=(((j=m.current)===null||j===void 0?void 0:j.getHeight())||0)>_;let K=P;A-I===1&&(K=F?I:A),h(F?[I,K]:[K,A])}},[p,P]);const R=d.useMemo(()=>{if(!t)return i(c,!1);if(k!==hT||!p||p[0]!==p[1]){const j=i(c,!1);return[zZ,dT].includes(k)?j:d.createElement("span",{style:Object.assign(Object.assign({},IS),{WebkitLineClamp:a})},j)}return i(o?c:BZ(c,p[0]),b)},[o,k,p,c].concat(lt(s))),O={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,R,k===pT&&d.createElement(d.Fragment,null,d.createElement(RS,{style:Object.assign(Object.assign(Object.assign({},O),IS),{WebkitLineClamp:a}),ref:v},f),d.createElement(RS,{style:Object.assign(Object.assign(Object.assign({},O),IS),{WebkitLineClamp:a-1}),ref:y},f),d.createElement(RS,{style:Object.assign(Object.assign(Object.assign({},O),IS),{WebkitLineClamp:1}),ref:w},i([],!0))),k===hT&&p&&p[0]!==p[1]&&d.createElement(RS,{style:Object.assign(Object.assign({},O),{top:400}),ref:m},i(BZ(c,P),!0)),k===fT&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const xlt=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:d.createElement(_a,Object.assign({open:n?void 0:!1},i),r)};var Slt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,style:a,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:f,component:p,title:h}=e,m=Slt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=d.useContext(Xt),[y]=Ga("Text"),w=d.useRef(null),b=d.useRef(null),C=g("typography",r),k=$r(m,["mark","code","delete","underline","strong","keyboard","italic"]),[S,_]=cT(u),[E,$]=In(!1,{value:_.editing}),{triggerType:M=["icon"]}=_,P=Ve=>{var Be;Ve&&((Be=_.onStart)===null||Be===void 0||Be.call(_)),$(Ve)},R=hlt(E);nr(()=>{var Ve;!E&&R&&((Ve=b.current)===null||Ve===void 0||Ve.focus())},[E]);const O=Ve=>{Ve==null||Ve.preventDefault(),P(!0)},j=Ve=>{var Be;(Be=_.onChange)===null||Be===void 0||Be.call(_,Ve),P(!1)},I=()=>{var Ve;(Ve=_.onCancel)===null||Ve===void 0||Ve.call(_),P(!1)},[A,N]=cT(f),{copied:F,copyLoading:K,onClick:L}=plt({copyConfig:N,children:l}),[V,B]=d.useState(!1),[U,Y]=d.useState(!1),[ee,ie]=d.useState(!1),[Z,X]=d.useState(!1),[ae,oe]=d.useState(!0),[le,ce]=cT(c,{expandable:!1,symbol:Ve=>Ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[pe,me]=In(ce.defaultExpanded||!1,{value:ce.expanded}),re=le&&(!pe||ce.expandable==="collapsible"),{rows:fe=1}=ce,ve=d.useMemo(()=>re&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||S||A),[re,ce,S,A]);nr(()=>{le&&!ve&&(B(uY("webkitLineClamp")),Y(uY("textOverflow")))},[ve,le]);const[$e,Ce]=d.useState(re),be=d.useMemo(()=>ve?!1:fe===1?U:V,[ve,U,V]);nr(()=>{Ce(be&&re)},[be,re]);const Se=re&&($e?Z:ee),we=re&&fe===1&&$e,se=re&&fe>1&&$e,ye=(Ve,Be)=>{var Xe;me(Be.expanded),(Xe=ce.onExpand)===null||Xe===void 0||Xe.call(ce,Ve,Be)},[Oe,z]=d.useState(0),H=Ve=>{let{offsetWidth:Be}=Ve;z(Be)},G=Ve=>{var Be;ie(Ve),ee!==Ve&&((Be=ce.onEllipsis)===null||Be===void 0||Be.call(ce,Ve))};d.useEffect(()=>{const Ve=w.current;if(le&&$e&&Ve){const Be=vlt(Ve);Z!==Be&&X(Be)}},[le,$e,l,se,ae,Oe]),d.useEffect(()=>{const Ve=w.current;if(typeof IntersectionObserver>"u"||!Ve||!$e||!re)return;const Be=new IntersectionObserver(()=>{oe(!!Ve.offsetParent)});return Be.observe(Ve),()=>{Be.disconnect()}},[$e,re]);const de=mlt(ce.tooltip,_.text,l),xe=d.useMemo(()=>{if(!(!le||$e))return[_.text,l,h,de.title].find(vz)},[le,$e,h,de.title,Se]);if(E)return d.createElement(ilt,{value:(n=_.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:j,onCancel:I,onEnd:_.onEnd,prefixCls:C,className:i,style:a,direction:v,component:p,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const he=()=>{const{expandable:Ve,symbol:Be}=ce;return Ve?d.createElement("button",{type:"button",key:"expand",className:`${C}-${pe?"collapse":"expand"}`,onClick:Xe=>ye(Xe,{expanded:!pe}),"aria-label":pe?y.collapse:y==null?void 0:y.expand},typeof Be=="function"?Be(pe):Be):null},Ue=()=>{if(!S)return;const{icon:Ve,tooltip:Be,tabIndex:Xe}=_,Ke=Xi(Be)[0]||(y==null?void 0:y.edit),qe=typeof Ke=="string"?Ke:"";return M.includes("icon")?d.createElement(_a,{key:"edit",title:Be===!1?"":Ke},d.createElement("button",{type:"button",ref:b,className:`${C}-edit`,onClick:O,"aria-label":qe,tabIndex:Xe},Ve||d.createElement(Em,{role:"button"}))):null},We=()=>A?d.createElement(ylt,Object.assign({key:"copy"},N,{prefixCls:C,copied:F,locale:y,onCopy:L,loading:K,iconOnly:l==null})):null,ge=Ve=>[Ve&&he(),Ue(),We()],ze=Ve=>[Ve&&!pe&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},_lt),ce.suffix,ge(Ve)];return d.createElement(Ko,{onResize:H,disabled:!re},Ve=>d.createElement(xlt,{tooltipProps:de,enableEllipsis:re,isEllipsis:Se},d.createElement(Uve,Object.assign({className:Ee({[`${C}-${o}`]:o,[`${C}-disabled`]:s,[`${C}-ellipsis`]:le,[`${C}-ellipsis-single-line`]:we,[`${C}-ellipsis-multiple-line`]:se},i),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:se?fe:void 0}),component:p,ref:ga(Ve,w,t),direction:v,onClick:M.includes("text")?O:void 0,"aria-label":xe==null?void 0:xe.toString(),title:h},k),d.createElement(wlt,{enableMeasure:re&&!$e,text:l,rows:fe,width:Oe,onEllipsis:G,expanded:pe,miscDeps:[F,pe,K,S,A,y]},(Be,Xe)=>Clt(e,d.createElement(d.Fragment,null,Be.length>0&&Xe&&!pe&&xe?d.createElement("span",{key:"show-content","aria-hidden":!0},Be):Be,ze(Xe)))))))});var klt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n,rel:r}=e,i=klt(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,d.createElement(e$,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),$lt=d.forwardRef((e,t)=>d.createElement(e$,Object.assign({ref:t},e,{component:"div"})));var Mlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n}=e,r=Mlt(e,["ellipsis"]);const i=d.useMemo(()=>n&&typeof n=="object"?$r(n,["expandable","rows"]):n,[n]);return d.createElement(e$,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},Plt=d.forwardRef(Tlt);var Olt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{level:n=1}=e,r=Olt(e,["level"]),i=Rlt.includes(n)?`h${n}`:"h1";return d.createElement(e$,Object.assign({ref:t},r,{component:i}))}),Zf=Uve;Zf.Text=Plt;Zf.Link=Elt;Zf.Title=Ilt;Zf.Paragraph=$lt;const mT=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(Br(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function jlt(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function HZ(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Nlt(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var a=e.data[i];if(Array.isArray(a)){a.forEach(function(o){n.append("".concat(i,"[]"),o)});return}n.append(i,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(jlt(e,t),HZ(t)):e.onSuccess(HZ(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var Alt=function(){var e=pa(hr().mark(function t(n,r){var i,a,o,s,l,c,u,f;return hr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=pa(hr().mark(function g(v){return hr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",new Promise(function(b){v.file(function(C){r(C)?(v.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),b(C)):b(null)})}));case 1:case"end":return w.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=pa(hr().mark(function g(v){var y,w,b,C,k;return hr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:y=v.createReader(),w=[];case 2:return _.next=5,new Promise(function(E){y.readEntries(E,function(){return E([])})});case 5:if(b=_.sent,C=b.length,C){_.next=9;break}return _.abrupt("break",12);case 9:for(k=0;k{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Me(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Me(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},Ult=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},vd()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},ao),{padding:`0 ${Me(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + `]:{color:e.colorTextDisabled}}}}}},Hlt=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},vd()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},ao),{padding:`0 ${Me(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${l}:focus-visible, &.picture ${l} - `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Wlt=e=>{const{componentCls:t}=e,n=new ir("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new ir("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:eB(e)},n,r]},Vlt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ult=e=>{const{componentCls:t}=e,n=new ir("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new ir("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:eB(e)},n,r]},Wlt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` ${o}${o}-picture, ${o}${o}-picture-card, ${o}${o}-picture-circle - `]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},ao),{width:r,height:r,lineHeight:Me(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${Me(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${pg[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${pg.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},qlt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` + `]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},ao),{width:r,height:r,lineHeight:Me(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${Me(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${pg[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${pg.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},Vlt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper `]:Object.assign(Object.assign({},vd()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Me(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${Me(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Klt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Glt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Ylt=e=>({actionsColor:e.colorTextDescription}),Xlt=Jn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:a}=e,o=Hn(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[Glt(o),Hlt(o),Vlt(o),qlt(o),Ult(o),Wlt(o),Klt(o),S4(o)]},Ylt);function NS(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function AS(e,t){const n=lt(t),r=n.findIndex(i=>{let{uid:a}=i;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function yT(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Zlt(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const Qlt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Vve=e=>e.indexOf("image/")===0,Jlt=e=>{if(e.type&&!e.thumbUrl)return Vve(e.type);const t=e.thumbUrl||e.url||"",n=Qlt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},cp=200;function ect(e){return new Promise(t=>{if(!e.type||!Vve(e.type)){t("");return}const n=document.createElement("canvas");n.width=cp,n.height=cp,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${cp}px; height: ${cp}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=cp,l=cp,c=0,u=0;a>o?(l=o*(cp/a),u=-(l-s)/2):(s=a*(cp/o),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const tct=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:p,isImgUrl:h,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,previewIcon:y,removeIcon:w,downloadIcon:b,extra:C,onPreview:k,onDownload:S,onClose:_}=e;var E,$;const{status:M}=s,[P,R]=d.useState(M);d.useEffect(()=>{M!=="removed"&&R(M)},[M]);const[O,j]=d.useState(!1);d.useEffect(()=>{const pe=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(pe)}},[]);const I=u(s);let A=d.createElement("div",{className:`${n}-icon`},I);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(P==="uploading"||!s.thumbUrl&&!s.url){const pe=Ee(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:P!=="uploading"});A=d.createElement("div",{className:pe},I)}else{const pe=h!=null&&h(s)?d.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):I,me=Ee(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(s)});A=d.createElement("a",{className:me,onClick:re=>k(s,re),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},pe)}const N=Ee(`${n}-list-item`,`${n}-list-item-${P}`),F=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,K=(typeof g=="function"?g(s):g)?f((typeof w=="function"?w(s):w)||d.createElement(Y8,null),()=>_(s),n,a.removeFile,!0):null,L=(typeof v=="function"?v(s):v)&&P==="done"?f((typeof b=="function"?b(s):b)||d.createElement(_rt,null),()=>S(s),n,a.downloadFile):null,V=o!=="picture-card"&&o!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:Ee(`${n}-list-item-actions`,{picture:o==="picture"})},L,K),B=typeof C=="function"?C(s):C,U=B&&d.createElement("span",{className:`${n}-list-item-extra`},B),Y=Ee(`${n}-list-item-name`),ee=s.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Y,title:s.name},F,{href:s.url,onClick:pe=>k(s,pe)}),s.name,U):d.createElement("span",{key:"view",className:Y,onClick:pe=>k(s,pe),title:s.name},s.name,U),ie=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?d.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:pe=>k(s,pe),title:a.previewFile},typeof y=="function"?y(s):y||d.createElement(V8,null)):null,Z=(o==="picture-card"||o==="picture-circle")&&P!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},ie,P==="done"&&L,K),{getPrefixCls:X}=d.useContext(Xt),ae=X(),oe=d.createElement("div",{className:N},A,ee,V,Z,O&&d.createElement(Ca,{motionName:`${ae}-fade`,visible:P==="uploading",motionDeadline:2e3},pe=>{let{className:me}=pe;const re="percent"in s?d.createElement(iz,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return d.createElement("div",{className:Ee(`${n}-list-item-progress`,me)},re)})),le=s.response&&typeof s.response=="string"?s.response:((E=s.error)===null||E===void 0?void 0:E.statusText)||(($=s.error)===null||$===void 0?void 0:$.message)||a.uploadError,ce=P==="error"?d.createElement(_a,{title:le,getPopupContainer:pe=>pe.parentNode},oe):oe;return d.createElement("div",{className:Ee(`${n}-list-item-container`,r),style:i,ref:t},p?p(ce,s,l,{download:S.bind(null,s),preview:k.bind(null,s),remove:_.bind(null,s)}):ce)}),nct=(e,t)=>{const{listType:n="text",previewFile:r=ect,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=Jlt,prefixCls:u,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:h=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:y,extra:w,progress:b={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:k=!0,itemRender:S,disabled:_}=e,E=Ahe(),[$,M]=d.useState(!1),P=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(Y=>{U.thumbUrl=Y||"",E()}))})},[n,f,r]),d.useEffect(()=>{M(!0)},[]);const R=(U,Y)=>{if(i)return Y==null||Y.preventDefault(),i(U)},O=U=>{typeof a=="function"?a(U):U.url&&window.open(U.url)},j=U=>{o==null||o(U)},I=U=>{if(l)return l(U,n);const Y=U.status==="uploading";if(n.startsWith("picture")){const ee=n==="picture"?d.createElement(vu,null):s.uploading,ie=c!=null&&c(U)?d.createElement(yit,null):d.createElement(Art,null);return Y?ee:ie}return Y?d.createElement(vu,null):d.createElement(mit,null)},A=(U,Y,ee,ie,Z)=>{const X={type:"text",size:"small",title:ie,onClick:ae=>{var oe,le;Y(),d.isValidElement(U)&&((le=(oe=U.props).onClick)===null||le===void 0||le.call(oe,ae))},className:`${ee}-list-item-action`};return Z&&(X.disabled=_),d.isValidElement(U)?d.createElement(Yt,Object.assign({},X,{icon:aa(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):d.createElement(Yt,Object.assign({},X),d.createElement("span",null,U))};d.useImperativeHandle(t,()=>({handlePreview:R,handleDownload:O}));const{getPrefixCls:N}=d.useContext(Xt),F=N("upload",u),K=N(),L=Ee(`${F}-list`,`${F}-list-${n}`),V=d.useMemo(()=>$r(P0(K),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[K]),B=Object.assign(Object.assign({},P?{}:V),{motionDeadline:2e3,motionName:`${F}-${P?"animate-inline":"animate"}`,keys:lt(f.map(U=>({key:U.uid,file:U}))),motionAppear:$});return d.createElement("div",{className:L},d.createElement(ZE,Object.assign({},B,{component:!1}),U=>{let{key:Y,file:ee,className:ie,style:Z}=U;return d.createElement(tct,{key:Y,locale:s,prefixCls:F,className:ie,style:Z,file:ee,items:f,progress:b,listType:n,isImgUrl:c,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:y,extra:w,iconRender:I,actionIconRender:A,itemRender:S,onPreview:R,onDownload:O,onClose:j})}),C&&d.createElement(Ca,Object.assign({},B,{visible:k,forceRender:!0}),U=>{let{className:Y,style:ee}=U;return aa(C,ie=>({className:Ee(ie.className,Y),style:Object.assign(Object.assign(Object.assign({},ee),{pointerEvents:Y?"none":void 0}),ie.style)}))}))},rct=d.forwardRef(nct);var ict=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const E2=`__LIST_IGNORE_${Date.now()}__`,act=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:p,locale:h,iconRender:m,isImageUrl:g,progress:v,prefixCls:y,className:w,type:b="select",children:C,style:k,itemRender:S,maxCount:_,data:E={},multiple:$=!1,hasControlInside:M=!0,action:P="",accept:R="",supportServerRender:O=!0,rootClassName:j}=e,I=d.useContext(ma),A=p??I,[N,F]=In(r||[],{value:n,postState:ge=>ge??[]}),[K,L]=d.useState("drop"),V=d.useRef(null),B=d.useRef(null);d.useMemo(()=>{const ge=Date.now();(n||[]).forEach((ze,Ve)=>{!ze.uid&&!Object.isFrozen(ze)&&(ze.uid=`__AUTO__${ge}_${Ve}__`)})},[n]);const U=(ge,ze,Ve)=>{let Be=lt(ze),Xe=!1;_===1?Be=Be.slice(-1):_&&(Xe=Be.length>_,Be=Be.slice(0,_)),Va.flushSync(()=>{F(Be)});const Ke={file:ge,fileList:Be};Ve&&(Ke.event=Ve),(!Xe||ge.status==="removed"||Be.some(qe=>qe.uid===ge.uid))&&Va.flushSync(()=>{c==null||c(Ke)})},Y=(ge,ze)=>ict(void 0,void 0,void 0,function*(){const{beforeUpload:Ve,transformFile:Be}=e;let Xe=ge;if(Ve){const Ke=yield Ve(ge,ze);if(Ke===!1)return!1;if(delete ge[E2],Ke===E2)return Object.defineProperty(ge,E2,{value:!0,configurable:!0}),!1;typeof Ke=="object"&&Ke&&(Xe=Ke)}return Be&&(Xe=yield Be(Xe)),Xe}),ee=ge=>{const ze=ge.filter(Xe=>!Xe.file[E2]);if(!ze.length)return;const Ve=ze.map(Xe=>NS(Xe.file));let Be=lt(N);Ve.forEach(Xe=>{Be=AS(Xe,Be)}),Ve.forEach((Xe,Ke)=>{let qe=Xe;if(ze[Ke].parsedFile)Xe.status="uploading";else{const{originFileObj:Et}=Xe;let ut;try{ut=new File([Et],Et.name,{type:Et.type})}catch{ut=new Blob([Et],{type:Et.type}),ut.name=Et.name,ut.lastModifiedDate=new Date,ut.lastModified=new Date().getTime()}ut.uid=Xe.uid,qe=ut}U(qe,Be)})},ie=(ge,ze,Ve)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!yT(ze,N))return;const Be=NS(ze);Be.status="done",Be.percent=100,Be.response=ge,Be.xhr=Ve;const Xe=AS(Be,N);U(Be,Xe)},Z=(ge,ze)=>{if(!yT(ze,N))return;const Ve=NS(ze);Ve.status="uploading",Ve.percent=ge.percent;const Be=AS(Ve,N);U(Ve,Be,ge)},X=(ge,ze,Ve)=>{if(!yT(Ve,N))return;const Be=NS(Ve);Be.error=ge,Be.response=ze,Be.status="error";const Xe=AS(Be,N);U(Be,Xe)},ae=ge=>{let ze;Promise.resolve(typeof i=="function"?i(ge):i).then(Ve=>{var Be;if(Ve===!1)return;const Xe=Zlt(ge,N);Xe&&(ze=Object.assign(Object.assign({},ge),{status:"removed"}),N==null||N.forEach(Ke=>{const qe=ze.uid!==void 0?"uid":"name";Ke[qe]===ze[qe]&&!Object.isFrozen(Ke)&&(Ke.status="removed")}),(Be=V.current)===null||Be===void 0||Be.abort(ze),U(ze,Xe))})},oe=ge=>{L(ge.type),ge.type==="drop"&&(u==null||u(ge))};d.useImperativeHandle(t,()=>({onBatchStart:ee,onSuccess:ie,onProgress:Z,onError:X,fileList:N,upload:V.current,nativeElement:B.current}));const{getPrefixCls:le,direction:ce,upload:pe}=d.useContext(Xt),me=le("upload",y),re=Object.assign(Object.assign({onBatchStart:ee,onError:X,onProgress:Z,onSuccess:ie},e),{data:E,multiple:$,action:P,accept:R,supportServerRender:O,prefixCls:me,disabled:A,beforeUpload:Y,onChange:void 0,hasControlInside:M});delete re.className,delete re.style,(!C||A)&&delete re.id;const fe=`${me}-wrapper`,[ve,$e,Ce]=Xlt(me,fe),[be]=Ga("Upload",Us.Upload),{showRemoveIcon:Se,showPreviewIcon:we,showDownloadIcon:se,removeIcon:ye,previewIcon:Oe,downloadIcon:z,extra:H}=typeof a=="boolean"?{}:a,G=typeof Se>"u"?!A:Se,de=(ge,ze)=>a?d.createElement(rct,{prefixCls:me,listType:o,items:N,previewFile:f,onPreview:s,onDownload:l,onRemove:ae,showRemoveIcon:G,showPreviewIcon:we,showDownloadIcon:se,removeIcon:ye,previewIcon:Oe,downloadIcon:z,iconRender:m,extra:H,locale:Object.assign(Object.assign({},be),h),isImageUrl:g,progress:v,appendAction:ge,appendActionVisible:ze,itemRender:S,disabled:A}):ge,xe=Ee(fe,w,j,$e,Ce,pe==null?void 0:pe.className,{[`${me}-rtl`]:ce==="rtl",[`${me}-picture-card-wrapper`]:o==="picture-card",[`${me}-picture-circle-wrapper`]:o==="picture-circle"}),he=Object.assign(Object.assign({},pe==null?void 0:pe.style),k);if(b==="drag"){const ge=Ee($e,me,`${me}-drag`,{[`${me}-drag-uploading`]:N.some(ze=>ze.status==="uploading"),[`${me}-drag-hover`]:K==="dragover",[`${me}-disabled`]:A,[`${me}-rtl`]:ce==="rtl"});return ve(d.createElement("span",{className:xe,ref:B},d.createElement("div",{className:ge,style:he,onDrop:oe,onDragOver:oe,onDragLeave:oe},d.createElement(iN,Object.assign({},re,{ref:V,className:`${me}-btn`}),d.createElement("div",{className:`${me}-drag-container`},C))),de()))}const Ue=Ee(me,`${me}-select`,{[`${me}-disabled`]:A,[`${me}-hidden`]:!C}),We=d.createElement("div",{className:Ue},d.createElement(iN,Object.assign({},re,{ref:V})));return ve(o==="picture-card"||o==="picture-circle"?d.createElement("span",{className:xe,ref:B},de(We,!!C)):d.createElement("span",{className:xe,ref:B},We,de()))},qve=d.forwardRef(act);var oct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{style:n,height:r,hasControlInside:i=!1}=e,a=oct(e,["style","height","hasControlInside"]);return d.createElement(qve,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),e1=qve;e1.Dragger=sct;e1.LIST_IGNORE=E2;const lct=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,children:i,size:a,style:o={}}=e,s=Ee(`${n}-panel`,{[`${n}-panel-hidden`]:a===0},r),l=a!==void 0;return te.createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},o),{flexBasis:l?a:"auto",flexGrow:l?0:1})},i)}),cct=()=>null;var uct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iXi(e).filter(d.isValidElement).map(n=>{const{props:r}=n,{collapsible:i}=r,a=uct(r,["collapsible"]);return Object.assign(Object.assign({},a),{collapsible:dct(i)})}),[e])}function pct(e,t){return d.useMemo(()=>{const n=[];for(let r=0;r0||h.start&&s===0&&o>0,v=h.start&&s>0||u.end&&o===0&&s>0;n[r]={resizable:m,startCollapsible:!!g,endCollapsible:!!v}}return n},[t,e])}function c_(e){return Number(e.slice(0,-1))/100}function bT(e){return typeof e=="string"&&e.endsWith("%")}function hct(e,t){const n=e.map(m=>m.size),r=e.length,i=t||0,a=m=>m*i,[o,s]=te.useState(()=>e.map(m=>m.defaultSize)),l=te.useMemo(()=>{var m;const g=[];for(let v=0;v{let m=[],g=0;for(let y=0;yy+(w||0),0);if(v>1||!g){const y=1/v;m=m.map(w=>w===void 0?0:w*y)}else{const y=(1-v)/g;m=m.map(w=>w===void 0?y:w)}return m},[l,i]),u=te.useMemo(()=>c.map(a),[c,i]),f=te.useMemo(()=>e.map(m=>bT(m.min)?c_(m.min):(m.min||0)/i),[e,i]),p=te.useMemo(()=>e.map(m=>bT(m.max)?c_(m.max):(m.max||i)/i),[e,i]);return[te.useMemo(()=>t?u:l,[u,t]),u,c,f,p,s]}function mct(e,t,n,r,i){const a=e.map(b=>[b.min,b.max]),o=r||0,s=b=>b*o;function l(b,C){return typeof b=="string"?s(c_(b)):b??C}const[c,u]=d.useState([]),f=d.useRef([]),[p,h]=d.useState(null),m=()=>n.map(s);return[b=>{u(m()),h({index:b,confirmed:!1})},(b,C)=>{var k;let S=null;if((!p||!p.confirmed)&&C!==0){if(C>0)S=b,h({index:b,confirmed:!0});else for(let I=b;I>=0;I-=1)if(c[I]>0&&t[I].resizable){S=I,h({index:I,confirmed:!0});break}}const _=(k=S??(p==null?void 0:p.index))!==null&&k!==void 0?k:b,E=lt(c),$=_+1,M=l(a[_][0],0),P=l(a[$][0],0),R=l(a[_][1],o),O=l(a[$][1],o);let j=C;return E[_]+jR&&(j=R-E[_]),E[$]-j>O&&(j=E[$]-O),E[_]+=j,E[$]-=j,i(E),E},()=>{h(null)},(b,C)=>{const k=m(),S=C==="start"?b:b+1,_=C==="start"?b+1:b,E=k[S],$=k[_];if(E!==0&&$!==0)k[S]=0,k[_]+=E,f.current[b]=E;else{const M=E+$,P=l(a[S][0],0),R=l(a[S][1],o),O=l(a[_][0],0),j=l(a[_][1],o),I=Math.max(P,M-j),N=(Math.min(R,M-O)-I)/2,F=f.current[b],K=M-F;F&&F<=j&&F>=O&&K<=R&&K>=P?(k[_]=F,k[S]=K):(k[S]-=N,k[_]+=N)}return i(k),k},p==null?void 0:p.index]}function wT(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const gct=e=>{const{prefixCls:t,vertical:n,index:r,active:i,ariaNow:a,ariaMin:o,ariaMax:s,resizable:l,startCollapsible:c,endCollapsible:u,onOffsetStart:f,onOffsetUpdate:p,onOffsetEnd:h,onCollapse:m,lazy:g,containerSize:v}=e,y=`${t}-bar`,[w,b]=d.useState(null),[C,k]=d.useState(0),S=n?0:C,_=n?C:0,E=A=>{l&&A.currentTarget&&(b([A.pageX,A.pageY]),f(r))},$=A=>{if(l&&A.touches.length===1){const N=A.touches[0];b([N.pageX,N.pageY]),f(r)}},M=A=>{const N=v*a/100,F=N+A,K=Math.max(0,v*o/100),L=Math.min(v,v*s/100);return Math.max(K,Math.min(L,F))-N},P=Vn((A,N)=>{const F=M(n?N:A);k(F)}),R=Vn(()=>{p(r,S,_),k(0)});te.useEffect(()=>{if(w){const A=L=>{const{pageX:V,pageY:B}=L,U=V-w[0],Y=B-w[1];g?P(U,Y):p(r,U,Y)},N=()=>{g&&R(),b(null),h()},F=L=>{if(L.touches.length===1){const V=L.touches[0],B=V.pageX-w[0],U=V.pageY-w[1];g?P(B,U):p(r,B,U)}},K=()=>{g&&R(),b(null),h()};return window.addEventListener("touchmove",F),window.addEventListener("touchend",K),window.addEventListener("mousemove",A),window.addEventListener("mouseup",N),()=>{window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",N),window.removeEventListener("touchmove",F),window.removeEventListener("touchend",K)}}},[w,g,n,r,v,a,o,s]);const O={[`--${y}-preview-offset`]:`${C}px`},j=n?Yge:Nf,I=n?My:bc;return te.createElement("div",{className:y,role:"separator","aria-valuenow":wT(a),"aria-valuemin":wT(o),"aria-valuemax":wT(s)},g&&te.createElement("div",{className:Ee(`${y}-preview`,{[`${y}-preview-active`]:!!C}),style:O}),te.createElement("div",{className:Ee(`${y}-dragger`,{[`${y}-dragger-disabled`]:!l,[`${y}-dragger-active`]:i}),onMouseDown:E,onTouchStart:$}),c&&te.createElement("div",{className:Ee(`${y}-collapse-bar`,`${y}-collapse-bar-start`),onClick:()=>m(r,"start")},te.createElement(j,{className:Ee(`${y}-collapse-icon`,`${y}-collapse-start`)})),u&&te.createElement("div",{className:Ee(`${y}-collapse-bar`,`${y}-collapse-bar-end`),onClick:()=>m(r,"end")},te.createElement(I,{className:Ee(`${y}-collapse-icon`,`${y}-collapse-end`)})))},vct=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},DS={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},yct=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:i,splitTriggerSize:a,controlItemBgHover:o,controlItemBgActive:s,controlItemBgActiveHover:l,prefixCls:c}=e,u=`${t}-bar`,f=`${t}-mask`,p=`${t}-panel`,h=e.calc(a).div(2).equal(),m=`${c}-bar-preview-offset`,g={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${u}`]:{flex:"none",position:"relative",userSelect:"none",[`${u}-dragger`]:Object.assign(Object.assign({},DS),{zIndex:1,"&::before":Object.assign({content:'""',background:o},DS),"&::after":Object.assign({content:'""',background:n},DS),[`&:hover:not(${u}-dragger-active)`]:{"&::before":{background:s}},"&-active":{zIndex:2,"&::before":{background:l}},[`&-disabled${u}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:o}},"&::after":{display:"none"}}}),[`${u}-collapse-bar`]:Object.assign(Object.assign({},DS),{zIndex:e.zIndexPopupBase,background:o,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:s},"&:active":{background:l}}),"&:hover, &:active":{[`${u}-collapse-bar`]:{opacity:1}}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${u}`]:{width:0,[`${u}-preview`]:Object.assign(Object.assign({height:"100%",width:i},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateX(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:i},"&::after":{height:r,width:i}},[`${u}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:h},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:h},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${u}`]:{height:0,[`${u}-preview`]:Object.assign(Object.assign({height:i,width:"100%"},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateY(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:i},"&::after":{width:r,height:i}},[`${u}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:h,transform:"translateX(-50%)"},"&-end":{top:h,bottom:"auto",transform:"translateX(-50%)"}}}},[p]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),vct(e))}},bct=e=>{var t;const n=e.splitBarSize||2,r=e.splitTriggerSize||6,i=e.resizeSpinnerSize||20,a=(t=e.splitBarDraggableSize)!==null&&t!==void 0?t:i;return{splitBarSize:n,splitTriggerSize:r,splitBarDraggableSize:a,resizeSpinnerSize:i}},wct=Jn("Splitter",e=>[yct(e)],bct),xct=e=>{const{prefixCls:t,className:n,style:r,layout:i="horizontal",children:a,rootClassName:o,onResizeStart:s,onResize:l,onResizeEnd:c,lazy:u}=e,{getPrefixCls:f,direction:p,splitter:h}=te.useContext(Xt),m=f("splitter",t),g=qr(m),[v,y,w]=wct(m,g),b=i==="vertical",C=p==="rtl",k=!b&&C,S=fct(a),[_,E]=d.useState(),$=oe=>{const{offsetWidth:le,offsetHeight:ce}=oe,pe=b?ce:le;pe!==0&&E(pe)},[M,P,R,O,j,I]=hct(S,_),A=pct(S,P),[N,F,K,L,V]=mct(S,A,R,_,I),B=Vn(oe=>{N(oe),s==null||s(P)}),U=Vn((oe,le)=>{const ce=F(oe,le);l==null||l(ce)}),Y=Vn(()=>{K(),c==null||c(P)}),ee=Vn((oe,le)=>{const ce=L(oe,le);l==null||l(ce),c==null||c(ce)}),ie=Ee(m,n,`${m}-${i}`,{[`${m}-rtl`]:C},o,h==null?void 0:h.className,w,g,y),Z=`${m}-mask`,X=te.useMemo(()=>{const oe=[];let le=0;for(let ce=0;ce{const ce=te.createElement(lct,Object.assign({},oe,{prefixCls:m,size:M[le]}));let pe=null;const me=A[le];if(me){const re=(X[le-1]||0)+O[le],fe=(X[le+1]||100)-j[le+1],ve=(X[le-1]||0)+j[le],$e=(X[le+1]||100)-O[le+1];pe=te.createElement(gct,{lazy:u,index:le,active:V===le,prefixCls:m,vertical:b,resizable:me.resizable,ariaNow:X[le]*100,ariaMin:Math.max(re,fe)*100,ariaMax:Math.min(ve,$e)*100,startCollapsible:me.startCollapsible,endCollapsible:me.endCollapsible,onOffsetStart:B,onOffsetUpdate:(Ce,be,Se)=>{let we=b?Se:be;k&&(we=-we),U(Ce,we)},onOffsetEnd:Y,onCollapse:ee,containerSize:_||0})}return te.createElement(te.Fragment,{key:`split-panel-${le}`},ce,pe)}),typeof V=="number"&&te.createElement("div",{"aria-hidden":!0,className:Ee(Z,`${Z}-${i}`)}))))},Bp=xct;Bp.Panel=cct;let je;const Sct=()=>{const e=v8.useApp();return je=e.message,e.modal,e.notification,null};var Kve={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=function(W,Q){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,_e){ue.__proto__=_e}||function(ue,_e){for(var Pe in _e)Object.prototype.hasOwnProperty.call(_e,Pe)&&(ue[Pe]=_e[Pe])})(W,Q)},r=function(){return(r=Object.assign||function(W){for(var Q,ue=1,_e=arguments.length;ue<_e;ue++)for(var Pe in Q=arguments[ue])Object.prototype.hasOwnProperty.call(Q,Pe)&&(W[Pe]=Q[Pe]);return W}).apply(this,arguments)};function i(W,Q,ue){for(var _e,Pe=0,Ae=Q.length;Pe"u"||a.Promise||(a.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function f(W,Q){return u.call(W,Q)}function p(W,Q){typeof Q=="function"&&(Q=Q(c(W))),(typeof Reflect>"u"?o:Reflect.ownKeys)(Q).forEach(function(ue){m(W,ue,Q[ue])})}var h=Object.defineProperty;function m(W,Q,ue,_e){h(W,Q,l(ue&&f(ue,"get")&&typeof ue.get=="function"?{get:ue.get,set:ue.set,configurable:!0}:{value:ue,configurable:!0,writable:!0},_e))}function g(W){return{from:function(Q){return W.prototype=Object.create(Q.prototype),m(W.prototype,"constructor",W),{extend:p.bind(null,W.prototype)}}}}var v=Object.getOwnPropertyDescriptor,y=[].slice;function w(W,Q,ue){return y.call(W,Q,ue)}function b(W,Q){return Q(W)}function C(W){if(!W)throw new Error("Assertion Failed")}function k(W){a.setImmediate?setImmediate(W):setTimeout(W,0)}function S(W,Q){if(typeof Q=="string"&&f(W,Q))return W[Q];if(!Q)return W;if(typeof Q!="string"){for(var ue=[],_e=0,Pe=Q.length;_e"u"?[]:function(){var W=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[W,c(W),W];var Q=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[Q,c(Q),W]}(),Oe=bt[0],Vl=bt[1],bt=bt[2],Vl=Vl&&Vl.then,z=Oe&&Oe.constructor,H=!!bt,G=function(W,Q){Ve.push([W,Q]),xe&&(queueMicrotask(jt),xe=!1)},de=!0,xe=!0,he=[],Ue=[],We=pe,ge={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ce,pgp:!1,env:{},finalize:ce},ze=ge,Ve=[],Be=0,Xe=[];function Ke(W){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var Q=this._PSD=ze;if(typeof W!="function"){if(W!==se)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&ut(this,this._value))}this._state=null,this._value=null,++Q.ref,function ue(_e,Pe){try{Pe(function(Ae){if(_e._state===null){if(Ae===_e)throw new TypeError("A promise cannot be resolved with itself.");var Ge=_e._lib&&Lt();Ae&&typeof Ae.then=="function"?ue(_e,function(et,ct){Ae instanceof Ke?Ae._then(et,ct):Ae.then(et,ct)}):(_e._state=!0,_e._value=Ae,gt(_e)),Ge&&Bt()}},ut.bind(null,_e))}catch(Ae){ut(_e,Ae)}}(this,W)}var qe={get:function(){var W=ze,Q=Nt;function ue(_e,Pe){var Ae=this,Ge=!W.global&&(W!==ze||Q!==Nt),et=Ge&&!Ct(),ct=new Ke(function(ht,_t){Qe(Ae,new Et(De(_e,W,Ge,et),De(Pe,W,Ge,et),ht,_t,W))});return this._consoleTask&&(ct._consoleTask=this._consoleTask),ct}return ue.prototype=se,ue},set:function(W){m(this,"then",W&&W.prototype===se?qe:{get:function(){return W},set:qe.set})}};function Et(W,Q,ue,_e,Pe){this.onFulfilled=typeof W=="function"?W:null,this.onRejected=typeof Q=="function"?Q:null,this.resolve=ue,this.reject=_e,this.psd=Pe}function ut(W,Q){var ue,_e;Ue.push(Q),W._state===null&&(ue=W._lib&&Lt(),Q=We(Q),W._state=!1,W._value=Q,_e=W,he.some(function(Pe){return Pe._value===_e._value})||he.push(_e),gt(W),ue&&Bt())}function gt(W){var Q=W._listeners;W._listeners=[];for(var ue=0,_e=Q.length;ue<_e;++ue)Qe(W,Q[ue]);var Pe=W._PSD;--Pe.ref||Pe.finalize(),Be===0&&(++Be,G(function(){--Be==0&&Ut()},[]))}function Qe(W,Q){if(W._state!==null){var ue=W._state?Q.onFulfilled:Q.onRejected;if(ue===null)return(W._state?Q.resolve:Q.reject)(W._value);++Q.psd.ref,++Be,G(nt,[ue,W,Q])}else W._listeners.push(Q)}function nt(W,Q,ue){try{var _e,Pe=Q._value;!Q._state&&Ue.length&&(Ue=[]),_e=Se&&Q._consoleTask?Q._consoleTask.run(function(){return W(Pe)}):W(Pe),Q._state||Ue.indexOf(Pe)!==-1||function(Ae){for(var Ge=he.length;Ge;)if(he[--Ge]._value===Ae._value)return he.splice(Ge,1)}(Q),ue.resolve(_e)}catch(Ae){ue.reject(Ae)}finally{--Be==0&&Ut(),--ue.psd.ref||ue.psd.finalize()}}function jt(){dt(ge,function(){Lt()&&Bt()})}function Lt(){var W=de;return xe=de=!1,W}function Bt(){var W,Q,ue;do for(;0.",rt="String expected.",$t=[],Mt="__dbnames",dn="readonly",pn="readwrite";function T(W,Q){return W?Q?function(){return W.apply(this,arguments)&&Q.apply(this,arguments)}:W:Q}var D={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function J(W){return typeof W!="string"||/\./.test(W)?function(Q){return Q}:function(Q){return Q[W]===void 0&&W in Q&&delete(Q=O(Q))[W],Q}}function ke(){throw ae.Type()}function Ie(W,Q){try{var ue=it(W),_e=it(Q);if(ue!==_e)return ue==="Array"?1:_e==="Array"?-1:ue==="binary"?1:_e==="binary"?-1:ue==="string"?1:_e==="string"?-1:ue==="Date"?1:_e!=="Date"?NaN:-1;switch(ue){case"number":case"Date":case"string":return QWt+Gt&&Dt(Wt+_t)})})}var zt=mr(ue)&&ue.limit===1/0&&(typeof W!="function"||W===or)&&{index:ue.index,range:ue.range};return Dt(0).then(function(){if(0=Rt})).length!==0?(_t.forEach(function(Dt){Tt.push(function(){var zt=yt,Wt=Dt._cfg.dbschema;kx(at,zt,St),kx(at,Wt,St),yt=at._dbSchema=Wt;var Gt=D7(zt,Wt);Gt.add.forEach(function(Tn){F7(St,Tn[0],Tn[1].primKey,Tn[1].indexes)}),Gt.change.forEach(function(Tn){if(Tn.recreate)throw new ae.Upgrade("Not yet support for changing primary key");var _n=St.objectStore(Tn.name);Tn.add.forEach(function(Fn){return Cx(_n,Fn)}),Tn.change.forEach(function(Fn){_n.deleteIndex(Fn.name),Cx(_n,Fn)}),Tn.del.forEach(function(Fn){return _n.deleteIndex(Fn)})});var gn=Dt._cfg.contentUpgrade;if(gn&&Dt._cfg.version>Rt){xx(at,St),ft._memoizedTables={};var En=E(Wt);Gt.del.forEach(function(Tn){En[Tn]=zt[Tn]}),A7(at,[at.Transaction.prototype]),Sx(at,[at.Transaction.prototype],o(En),En),ft.schema=En;var vn,Cn=V(gn);return Cn&&st(),Gt=Ke.follow(function(){var Tn;(vn=gn(ft))&&Cn&&(Tn=Ct.bind(null,null),vn.then(Tn,Tn))}),vn&&typeof vn.then=="function"?Ke.resolve(vn):Gt.then(function(){return vn})}}),Tt.push(function(zt){var Wt,Gt,gn=Dt._cfg.dbschema;Wt=gn,Gt=zt,[].slice.call(Gt.db.objectStoreNames).forEach(function(En){return Wt[En]==null&&Gt.db.deleteObjectStore(En)}),A7(at,[at.Transaction.prototype]),Sx(at,[at.Transaction.prototype],at._storeNames,at._dbSchema),ft.schema=at._dbSchema}),Tt.push(function(zt){at.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(at.idbdb.version/10)===Dt._cfg.version?(at.idbdb.deleteObjectStore("$meta"),delete at._dbSchema.$meta,at._storeNames=at._storeNames.filter(function(Wt){return Wt!=="$meta"})):zt.objectStore("$meta").put(Dt._cfg.version,"version"))})}),function Dt(){return Tt.length?Ke.resolve(Tt.shift()(ft.idbtrans)).then(Dt):Ke.resolve()}().then(function(){tW(yt,St)})):Ke.resolve();var at,Rt,ft,St,Tt,yt}).catch(Ge)):(o(Pe).forEach(function(_t){F7(ue,_t,Pe[_t].primKey,Pe[_t].indexes)}),xx(W,ue),void Ke.follow(function(){return W.on.populate.fire(Ae)}).catch(Ge));var ct,ht})}function ASe(W,Q){tW(W._dbSchema,Q),Q.db.version%10!=0||Q.objectStoreNames.contains("$meta")||Q.db.createObjectStore("$meta").add(Math.ceil(Q.db.version/10-1),"version");var ue=_x(0,W.idbdb,Q);kx(W,W._dbSchema,Q);for(var _e=0,Pe=D7(ue,W._dbSchema).change;_eMath.pow(2,62)?0:yt.oldVersion,at=yt<1,W.idbdb=Tt.result,Ae&&ASe(W,_t),NSe(W,yt/10,_t,ft))},ft),Tt.onsuccess=He(function(){_t=null;var yt,Dt,zt,Wt,Gt,gn=W.idbdb=Tt.result,En=w(gn.objectStoreNames);if(0"u"?Ke.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Rt){function ft(){return indexedDB.databases().finally(Rt)}ct=setInterval(ft,100),ft()}).finally(function(){return clearInterval(ct)}):Promise.resolve()).then(et)]).then(function(){return Ge(),Q.onReadyBeingFired=[],Ke.resolve(z7(function(){return W.on.ready.fire(W.vip)})).then(function Rt(){if(0Q.limit?Rt.length=Q.limit:W.length===Q.limit&&Rt.length=Dt.limit&&(!Dt.values||gn.req.values)&&USe(gn.req.query.range,Dt.query.range)}),!1,zt,Wt];case"count":return Gt=Wt.find(function(gn){return fW(gn.req.query.range,Dt.query.range)}),[Gt,!!Gt,zt,Wt]}}(Q,ue,"query",Ae),_t=ht[0],at=ht[1],Rt=ht[2],ft=ht[3];return _t&&at?_t.obsSet=Ae.obsSet:(at=_e.query(Ae).then(function(St){var Tt=St.result;if(_t&&(_t.res=Tt),Ge){for(var yt=0,Dt=Tt.length;yt({uid:r.uid||"",type:r.type||"",content:r.content||"",client:r.client||"",createdAt:r.createdAt||"",status:r.status||"",topic:r.topic||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getMessage(n){return await Zl.messages.get(n)}async updateMessage(n,r){return await Zl.messages.update(n,{content:r})}async deleteMessage(n){return await Zl.messages.delete(n)}subscribeMessages(){_ct(()=>this.messages.toArray()).subscribe({next:r=>{const i=r.map(a=>a.uid);console.log("messagesObservable message uids",i)}})}async createThread(n){var r,i,a;return console.log("useIndexedDB createThread",n.topic),await Zl.threads.put({uid:n.uid,type:n.type,topic:n.topic,state:n.state,extra:n.extra,updatedAt:n.updatedAt,userUid:(r=n.user)==null?void 0:r.uid,userNickname:(i=n.user)==null?void 0:i.nickname,userAvatar:(a=n.user)==null?void 0:a.avatar})}async getAllThreads(){return(await Zl.threads.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",topic:r.topic||"",status:r.state||"",extra:r.extra||"",createdAt:r.updatedAt||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getThread(n){return await Zl.threads.get(n)}async updateThread(n,r){return await Zl.threads.update(n,r)}async deleteThread(n){return await Zl.threads.delete(n)}}const Zl=new Gve;let ua,Hc,hl,F1=!1;const kct=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(Hc=ia.getState().userInfo,hl=Eo.getState().agentInfo,F1){console.log("mqtt is connecting");return}if(ua&&ua.connected){console.log("mqtt already connected");return}if(ua&&ua.reconnecting){console.log("mqtt already reconnecting");return}F1=!0;const r=ia.getState().deviceUid,a={keepalive:30,clientId:e+"/"+kn+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1};console.log("mqtt start connect:",a),ua=tMe.connect(n$e(),a),ua.on("connect",()=>{console.log("mqtt event connected"),F1=!1,$n.emit(qO)}),ua.on("message",async function(o,s,l){console.log("mqtt receive message topic:",o,l);const c=xue.Message.deserializeBinary(s),u=fr.getState().currentThread,f={uid:c.getThread().getUid(),type:c.getThread().getType(),topic:c.getThread().getTopic(),content:c.getContent(),updatedAt:c.getCreatedat(),unreadCount:0,user:{uid:c.getThread().getUser().getUid(),nickname:c.getThread().getUser().getNickname(),avatar:c.getThread().getUser().getAvatar()}},p={uid:c.getUid(),createdAt:c.getCreatedat(),client:c.getClient(),type:c.getType(),status:c.getStatus(),user:{uid:c.getUser().getUid(),nickname:c.getUser().getNickname(),avatar:c.getUser().getAvatar()},content:c.getContent(),topic:c.getThread().getTopic()};if(Dct(c,Hc,hl))switch(c.getType()){case sR:case oR:ST(c);return;case vk:case iR:return;case UV:return;case aR:console.log("self recall message"),KZ(p);return;case v0:console.log("thread closed message"),fr.getState().closeThread(f.uid);break;default:c.setStatus(Dw)}else switch(c.getType()){case sR:case oR:ST(c);return;case vk:case iR:qZ(u,f,c.getType());return;case $f:qZ(u,f,c.getType());break;case UV:Fct(c,u,f);return;case rR:case n5e:return;case Ese:return;case i5e:case a5e:case s5e:case l5e:case $se:case u5e:ST(c);return;case aR:console.log("recall message"),KZ(p);return;case kse:console.log("notice message"),Lct(p);break;case g0:case v0:console.log("thread closed message"),fr.getState().closeThread(f.uid);break;default:console.log("send receive message type",c.getType()),qct(c,u,f)}console.log("mqtt message received",o,p,f),Td.getState().addMessage(p),$n.emit(jw,p);const h=fr.getState().addThreadWithMessage(f,p);console.log("unreadCount",h);try{await Zl.createMessage(p),console.log("Sent message stored in IndexedDB:",p)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),ua.on("packetsend",o=>{console.log("mqtt event packetsend",o)}),ua.on("packetreceive",o=>{console.log("mqtt event packetreceive",o,o.cmd),o.cmd==="publish"||o.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),ua.on("reconnect",()=>{console.log("mqtt event reconnect")}),ua.on("close",()=>{console.log("mqtt event close"),F1=!1,$n.emit(GO)}),ua.on("disconnect",()=>{console.error("mqtt event disconnected"),F1=!1,$n.emit(YO)}),ua.on("offline",()=>{console.log("mqtt event offline"),F1=!1,$n.emit(KO)}),ua.on("error",()=>{console.log("mqtt event error"),$n.emit(XO)}),ua.on("end",()=>{console.log("mqtt event end"),$n.emit(ZO)})},Ect=(e,t,n,r)=>{wo(e,vo,t,r,n)},$ct=(e,t,n,r)=>{console.log("mqtt mqttSendImageMessage",t),wo(e,Cl,t,r,n)},Mct=(e,t,n,r)=>{console.log("mqtt mqttSendFileMessage",t),wo(e,cd,t,r,n)},WZ=new Set,Yve=(e,t,n)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),WZ.has(e)||(WZ.add(e),wo(Ba(),oR,e,t,n))},VZ=new Set,Tct=(e,t,n)=>{console.log("mqtt mqttSendReceiptReadMessage",e),VZ.has(e)||(VZ.add(e),wo(Ba(),sR,e,t,n))},Pct=e=>{console.log("mqtt mqttSendRateInviteMessage"),wo(Ba(),pv,"i18n.rate.invite",e,!1)},Oct=(e,t)=>{console.log("mqtt mqttSendTypingMessage"),wo(Ba(),vk,"",e,t)},Rct=(e,t,n)=>{console.log("mqtt mqttSendTransferMessage",t),wo(e,yF,t,n,!1)},Xve=(e,t)=>{console.log("mqtt mqttSendTransferAcceptMessage",e),wo(Ba(),bF,e,t,!1)},Zve=(e,t)=>{console.log("mqtt mqttSendTransferRejectMessage",e),wo(Ba(),wF,e,t,!1)},Ict=(e,t,n)=>{console.log("mqtt mqttSendInviteMessage"),wo(e,xF,t,n,!1)},Qve=(e,t)=>{console.log("mqtt mqttSendInviteAcceptMessage"),wo(Ba(),SF,e,t,!1)},Jve=(e,t)=>{console.log("mqtt mqttSendInviteRejectMessage"),wo(Ba(),CF,e,t,!1)},jct=(e,t)=>{console.log("mqtt mqttSendRecallMessage",e),wo(Ba(),aR,e,t,!1)},wo=async(e,t,n,r,i)=>{var o,s,l,c;console.log("mqttSendMessage",n,i);const a=Pv();if(ua&&ua.connected){const u=new rMe.Thread;u.setUid(r.uid),u.setType(r.type),u.setTopic(r.topic);const f=new EK.User;f.setUid((o=r.user)==null?void 0:o.uid),f.setNickname((s=r.user)==null?void 0:s.nickname),f.setAvatar((l=r.user)==null?void 0:l.avatar),u.setUser(f);const p=new EK.User;if(i){console.log("mqttSendMessage fromTicketTab");const v=Na.getState().memberInfo;console.log("mqttSendMessage memberInfo:",v),p.setUid(v==null?void 0:v.uid),p.setNickname(v==null?void 0:v.nickname),p.setAvatar(v==null?void 0:v.avatar),p.setType(gk)}else Rf(r)?(p.setUid(hl==null?void 0:hl.uid),p.setNickname(hl==null?void 0:hl.nickname),p.setAvatar(hl==null?void 0:hl.avatar),p.setType(uh),console.log("mqttSendMessage agentInfo:",hl)):(p.setUid(Hc.uid),p.setNickname(Hc.nickname),p.setAvatar(Hc.avatar),p.setType(V5),console.log("mqttSendMessage userInfo:",Hc));const h={orgUid:(c=Hc==null?void 0:Hc.currentOrganization)==null?void 0:c.uid},m=new xue.Message;m.setUid(e),m.setType(t),m.setStatus($p),m.setCreatedat(a),m.setClient(kn),m.setContent(n),m.setUser(p),m.setThread(u),m.setExtra(JSON.stringify(h));const g=m.serializeBinary();ua.publish(r.topic,g);try{const v={uid:m.getUid(),type:m.getType(),content:m.getContent(),client:m.getClient(),createdAt:m.getCreatedat(),status:m.getStatus(),topic:m.getThread().getTopic(),user:{uid:m.getUser().getUid(),nickname:m.getUser().getNickname(),avatar:m.getUser().getAvatar()}};await Zl.createMessage(v),console.log("Sent message stored in IndexedDB:",v)}catch(v){console.error("Error storing sent message in IndexedDB:",v)}}else{console.log("mqttClient is disconnect, use http rest api");let u=null;if(i){const f=Na.getState().memberInfo;u=vRe(r,Hc,f,e,t,n,a)}else u=SL(r,Hc,hl,e,t,n,a);Act(u)}},xT=()=>{ua?ua.end():console.log("mqttClient is null")},Nct=()=>ua&&ua.connected,Act=async e=>{const t=JSON.stringify(e),n=await d$e(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){Td.getState().updateMessageStatus(e==null?void 0:e.uid,Dw);const r={uid:e==null?void 0:e.uid,type:Dw};$n.emit(mk,JSON.stringify(r))}else je.error(n.data.message)},Dct=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function ST(e){console.log("update message status:",e.getContent(),e.getType()),Td.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};$n.emit(mk,JSON.stringify(t))}function qZ(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===vk?$n.emit(v6e):n===iR?$n.emit(y6e):n===$f&&$n.emit(fse))}function Fct(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&$n.emit(b6e,e.getContent())}function Lct(e){const t=JSON.parse(e==null?void 0:e.content);console.log("handleNoticeMessage",t),t.type===yF?Bct(t):t.type===bF?zct(t):t.type===wF?Hct(t):t.type===xF?Uct(t):t.type===SF?Wct(t):t.type===CF&&Vct(t)}function Bct(e){$n.emit(pse,JSON.stringify(e))}function zct(e){$n.emit(hse,JSON.stringify(e))}function Hct(e){$n.emit(mse,JSON.stringify(e))}function Uct(e){$n.emit(gse,JSON.stringify(e))}function Wct(e){$n.emit(vse,JSON.stringify(e))}function Vct(e){$n.emit(yse,JSON.stringify(e))}function KZ(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Td.getState().recallMessage(e==null?void 0:e.content)}function qct(e,t,n){if(!fRe(n==null?void 0:n.topic)&&oRe(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();Yve(r,n,!1),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&Tct(r,n,!1)}}const Kct=so()(es(ts(ns(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:P6e}))),Gct=()=>{F0("https://www.weiyuai.cn/docs/zh-CN/")},F0=e=>{ha?window.electronAPI.openUrl(e):window.open(e,"_blank")},Yct=async()=>{if(ha){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},e0e=async()=>ha?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),Xct=async()=>{if(ha){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},Zct=(e,t)=>{ha&&window.electronAPI.showElectronNotification(e,t)},Qct=e=>{ha?window.electronAPI.setThemeMode(e):console.log("not electron")},Jct=e=>{ha?window.electronAPI.createNewWindow(e):console.log("not electron")},eut=()=>{ha?window.electronAPI.screenshotCapture():console.log("not electron")},oN=()=>{ha&&window.electronAPI.loginSuccess()},tut=()=>{ha&&window.electronAPI.logoutSuccess()};async function t$(e){return bn("/api/v1/member/query/org",{method:"GET",params:{...e,client:kn}})}async function t0e(e){return bn("/api/v1/member/query",{method:"GET",params:{orgUid:e,client:kn}})}async function nut(e){return bn("/api/v1/member/query/userUid",{method:"GET",params:{userUid:e,client:kn}})}function t1(){const[e,t]=d.useState(!1),[n,r]=d.useState(!1),[i,a]=d.useState(!1),[o,s]=d.useState(!1),l=d.useRef(!1),c=d.useRef(!1),u=d.useRef(null),f=d.useRef(void 0),{myDevice:p,setMyDevice:h}=Kct(j=>({myDevice:j.myDevice,setMyDevice:j.setMyDevice})),{userInfo:m,deviceUid:g,setUserInfo:v,setDeviceUid:y}=ia(j=>({userInfo:j.userInfo,deviceUid:j.deviceUid,setUserInfo:j.setUserInfo,setDeviceUid:j.setDeviceUid})),{agentInfo:w,setAgentInfo:b}=Eo(j=>({agentInfo:j.agentInfo,setAgentInfo:j.setAgentInfo})),{memberInfo:C,setMemberInfo:k}=Na(j=>({memberInfo:j.memberInfo,setMemberInfo:j.setMemberInfo})),S=Vr(j=>j.currentOrg),_=Td(j=>j.addMessage),E=fr(j=>j.updateThreadContent);d.useEffect(()=>{t(!1),r(!1),a(!1),s(!1),m!=null&&m.currentRoles&&m.currentRoles.forEach(j=>{switch(j.name){case C5e:t(!0);break;case _5e:r(!0);break;case k5e:a(!0);break;case E5e:s(!0);break}})},[m==null?void 0:m.currentRoles]);const $=d.useCallback(async()=>{var j;if(!(l.current||!(w!=null&&w.uid))){l.current=!0;try{const I=await c$e(w.uid);(((j=I==null?void 0:I.data)==null?void 0:j.data)||[]).forEach(N=>{_(N);const F=E(N.uid,N.content);F&&Yve(N.uid,F,!1)})}catch(I){console.error("Failed to fetch unread messages:",I)}finally{l.current=!1}}},[w==null?void 0:w.uid,_,E]);d.useEffect(()=>{o&&$()},[o,$]);const M=d.useCallback(async()=>{try{const j=await e0e();j.length>0&&h({...p,ip:j[0]})}catch(j){console.error("Failed to fetch IP address:",j)}},[p,h]);d.useEffect(()=>{g||y(Ba()),M()},[g,y,M]);const P=d.useCallback(async()=>{if(!c.current&&S!=null&&S.uid){c.current=!0;try{u.current&&(clearTimeout(u.current),u.current=null),je.destroy(),je.loading("正在加载用户信息...");const j=await AF();console.log("getProfile response",j.data),j.data.code===200?(je.destroy(),v(j.data.data)):(je.destroy(),je.error("加载用户信息失败"))}catch(j){je.destroy(),je.error("加载用户信息失败"),console.error("Failed to refresh user info:",j)}finally{u.current=setTimeout(()=>{c.current=!1},500)}}},[S==null?void 0:S.uid,v]),R=d.useCallback(async()=>{if(S!=null&&S.uid)try{const j=await t0e(S==null?void 0:S.uid);console.log("refreshMemberInfo memberResponse:",j.data),j.data.code===200&&k(j.data.data)}catch(j){console.error("Failed to fetch member info:",j)}},[S==null?void 0:S.uid,k]);d.useEffect(()=>{f.current!==(S==null?void 0:S.uid)&&(f.current=S==null?void 0:S.uid,P(),R())},[S,P]);const O=async j=>{if(w){je.destroy(),je.loading("正在更新状态");try{const I={...w,status:j},A=await o$e(I);console.log("updateAgentStatus:",j,A.data),A.data.code===200?(b(A.data.data),je.destroy(),je.success("状态更新成功")):(je.destroy(),je.error("状态更新失败"))}catch(I){je.destroy(),je.error("状态更新失败"),console.error("Failed to update agent status:",I)}}};return d.useEffect(()=>()=>{u.current&&clearTimeout(u.current),je.destroy()},[]),{userInfo:m,setUserInfo:v,agentInfo:w,setAgentInfo:b,memberInfo:C,setMemberInfo:k,handleUpdateAgentStatus:O,refreshUserInfo:P,hasRoleAgent:o,hasRoleSuper:e,hasRoleAdmin:n,hasRoleMember:i}}const Ea=d.createContext({}),rut=({children:e})=>{const[t,n]=d.useState(!1),[r,i]=d.useState(!1),a=n4($=>$.accessToken),o=OF($=>$.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:m}=t1(),g=d.useMemo(()=>!!a&&a.trim().length>0,[a]),{themeMode:v,setThemeMode:y,isDarkMode:w}=Ag(),[b,C]=d.useState(Jx),k=$=>{let M;$==="en"?M=Sq:$==="zh-cn"?M=Jx:$==="zh-tw"?M=_Ee:M=Jx,console.log("changeLocale localeValue:",M),C(M),localStorage.setItem(AV,M.locale)},[S,_]=d.useState($C),E=$=>{_($),localStorage.setItem(DV,$)};return d.useEffect(()=>{const $=localStorage.getItem(AV);C($==="en"?Sq:Jx);const M=localStorage.getItem(DV);_(M===$C?$C:M===Rw?Rw:cse)},[]),x.jsx(Ea.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:o,isDarkMode:w,themeMode:v,setThemeMode:y,locale:b,changeLocale:k,mode:S,changeMode:E,isPingLoading:r,setPingLoading:i,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:m},children:e})},yz=()=>{const e=d.useContext(Ea);if(!e)throw new Error("useAppContext must be used within an AppProvider");return e};var n$=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},r$=typeof window>"u"||"Deno"in globalThis;function Vc(){}function iut(e,t){return typeof e=="function"?e(t):e}function aut(e){return typeof e=="number"&&e>=0&&e!==1/0}function out(e,t){return Math.max(e+(t||0)-Date.now(),0)}function GZ(e,t){return typeof e=="function"?e(t):e}function sut(e,t){return typeof e=="function"?e(t):e}function YZ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==bz(o,t.options))return!1}else if(!f3(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function XZ(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(d3(t.options.mutationKey)!==d3(a))return!1}else if(!f3(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function bz(e,t){return((t==null?void 0:t.queryKeyHashFn)||d3)(e)}function d3(e){return JSON.stringify(e,(t,n)=>sN(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function f3(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!f3(e[n],t[n])):!1}function n0e(e,t){if(e===t)return e;const n=ZZ(e)&&ZZ(t);if(n||sN(e)&&sN(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function cut(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?n0e(e,t):t}function uut(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function dut(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var wz=Symbol();function r0e(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===wz?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Pm,Mp,Gv,Tie,fut=(Tie=class extends n${constructor(){super();Un(this,Pm);Un(this,Mp);Un(this,Gv);xn(this,Gv,t=>{if(!r$&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Fe(this,Mp)||this.setEventListener(Fe(this,Gv))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Mp))==null||t.call(this),xn(this,Mp,void 0))}setEventListener(t){var n;xn(this,Gv,t),(n=Fe(this,Mp))==null||n.call(this),xn(this,Mp,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Fe(this,Pm)!==t&&(xn(this,Pm,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Fe(this,Pm)=="boolean"?Fe(this,Pm):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Pm=new WeakMap,Mp=new WeakMap,Gv=new WeakMap,Tie),i0e=new fut,Yv,Tp,Xv,Pie,put=(Pie=class extends n${constructor(){super();Un(this,Yv,!0);Un(this,Tp);Un(this,Xv);xn(this,Xv,t=>{if(!r$&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Fe(this,Tp)||this.setEventListener(Fe(this,Xv))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Tp))==null||t.call(this),xn(this,Tp,void 0))}setEventListener(t){var n;xn(this,Xv,t),(n=Fe(this,Tp))==null||n.call(this),xn(this,Tp,t(this.setOnline.bind(this)))}setOnline(t){Fe(this,Yv)!==t&&(xn(this,Yv,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Fe(this,Yv)}},Yv=new WeakMap,Tp=new WeakMap,Xv=new WeakMap,Pie),N6=new put;function hut(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function mut(e){return Math.min(1e3*2**e,3e4)}function a0e(e){return(e??"online")==="online"?N6.isOnline():!0}var o0e=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function CT(e){return e instanceof o0e}function s0e(e){let t=!1,n=0,r=!1,i;const a=hut(),o=g=>{var v;r||(p(new o0e(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>i0e.isFocused()&&(e.networkMode==="always"||N6.isOnline())&&e.canRun(),u=()=>a0e(e.networkMode)&&e.canRun(),f=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),i==null||i(),a.resolve(g))},p=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),i==null||i(),a.reject(g))},h=()=>new Promise(g=>{var v;i=y=>{(r||c())&&g(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var S;if(r)return;const w=e.retry??(r$?0:3),b=e.retryDelay??mut,C=typeof b=="function"?b(n,y):b,k=w===!0||typeof w=="number"&&nc()?void 0:h()).then(()=>{t?p(y):m()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():h().then(m),a)}}function gut(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const a=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var ys=gut(),Om,Oie,l0e=(Oie=class{constructor(){Un(this,Om)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),aut(this.gcTime)&&xn(this,Om,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r$?1/0:5*60*1e3))}clearGcTimeout(){Fe(this,Om)&&(clearTimeout(Fe(this,Om)),xn(this,Om,void 0))}},Om=new WeakMap,Oie),Zv,Qv,ec,Do,F3,Rm,qc,Xd,Rie,vut=(Rie=class extends l0e{constructor(t){super();Un(this,qc);Un(this,Zv);Un(this,Qv);Un(this,ec);Un(this,Do);Un(this,F3);Un(this,Rm);xn(this,Rm,!1),xn(this,F3,t.defaultOptions),this.setOptions(t.options),this.observers=[],xn(this,ec,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,xn(this,Zv,but(this.options)),this.state=t.state??Fe(this,Zv),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Fe(this,Do))==null?void 0:t.promise}setOptions(t){this.options={...Fe(this,F3),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Fe(this,ec).remove(this)}setData(t,n){const r=cut(this.state.data,t,this.options);return Dn(this,qc,Xd).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Dn(this,qc,Xd).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Fe(this,Do))==null?void 0:r.promise;return(i=Fe(this,Do))==null||i.cancel(t),n?n.then(Vc).catch(Vc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Fe(this,Zv))}isActive(){return this.observers.some(t=>sut(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wz||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!out(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Do))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Do))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Fe(this,ec).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Fe(this,Do)&&(Fe(this,Rm)?Fe(this,Do).cancel({revert:!0}):Fe(this,Do).cancelRetry()),this.scheduleGc()),Fe(this,ec).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Dn(this,qc,Xd).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Fe(this,Do))return Fe(this,Do).continueRetry(),Fe(this,Do).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(xn(this,Rm,!0),r.signal)})},a=()=>{const f=r0e(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),xn(this,Rm,!1),this.options.persister?this.options.persister(f,p,this):f(p)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),xn(this,Qv,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&Dn(this,qc,Xd).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const s=f=>{var p,h,m,g;CT(f)&&f.silent||Dn(this,qc,Xd).call(this,{type:"error",error:f}),CT(f)||((h=(p=Fe(this,ec).config).onError)==null||h.call(p,f,this),(g=(m=Fe(this,ec).config).onSettled)==null||g.call(m,this.state.data,f,this)),this.scheduleGc()};return xn(this,Do,s0e({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,m,g;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(h=(p=Fe(this,ec).config).onSuccess)==null||h.call(p,f,this),(g=(m=Fe(this,ec).config).onSettled)==null||g.call(m,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,p)=>{Dn(this,qc,Xd).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Dn(this,qc,Xd).call(this,{type:"pause"})},onContinue:()=>{Dn(this,qc,Xd).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),Fe(this,Do).start()}},Zv=new WeakMap,Qv=new WeakMap,ec=new WeakMap,Do=new WeakMap,F3=new WeakMap,Rm=new WeakMap,qc=new WeakSet,Xd=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yut(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return CT(i)&&i.revert&&Fe(this,Qv)?{...Fe(this,Qv),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ys.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Fe(this,ec).notify({query:this,type:"updated",action:t})})},Rie);function yut(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:a0e(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function but(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ku,Iie,wut=(Iie=class extends n${constructor(t={}){super();Un(this,Ku);this.config=t,xn(this,Ku,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??bz(i,n);let o=this.get(a);return o||(o=new vut({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){Fe(this,Ku).has(t.queryHash)||(Fe(this,Ku).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Fe(this,Ku).get(t.queryHash);n&&(t.destroy(),n===t&&Fe(this,Ku).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ys.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Fe(this,Ku).get(t)}getAll(){return[...Fe(this,Ku).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>YZ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>YZ(t,r)):n}notify(t){ys.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ys.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ys.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ku=new WeakMap,Iie),Gu,cs,Im,Yu,yp,jie,xut=(jie=class extends l0e{constructor(t){super();Un(this,Yu);Un(this,Gu);Un(this,cs);Un(this,Im);this.mutationId=t.mutationId,xn(this,cs,t.mutationCache),xn(this,Gu,[]),this.state=t.state||Sut(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Fe(this,Gu).includes(t)||(Fe(this,Gu).push(t),this.clearGcTimeout(),Fe(this,cs).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){xn(this,Gu,Fe(this,Gu).filter(n=>n!==t)),this.scheduleGc(),Fe(this,cs).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Fe(this,Gu).length||(this.state.status==="pending"?this.scheduleGc():Fe(this,cs).remove(this))}continue(){var t;return((t=Fe(this,Im))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,s,l,c,u,f,p,h,m,g,v,y,w,b,C,k,S,_;xn(this,Im,s0e({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,$)=>{Dn(this,Yu,yp).call(this,{type:"failed",failureCount:E,error:$})},onPause:()=>{Dn(this,Yu,yp).call(this,{type:"pause"})},onContinue:()=>{Dn(this,Yu,yp).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Fe(this,cs).canRun(this)}));const n=this.state.status==="pending",r=!Fe(this,Im).canStart();try{if(!n){Dn(this,Yu,yp).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=Fe(this,cs).config).onMutate)==null?void 0:a.call(i,t,this));const $=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));$!==this.state.context&&Dn(this,Yu,yp).call(this,{type:"pending",context:$,variables:t,isPaused:r})}const E=await Fe(this,Im).start();return await((c=(l=Fe(this,cs).config).onSuccess)==null?void 0:c.call(l,E,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,E,t,this.state.context)),await((h=(p=Fe(this,cs).config).onSettled)==null?void 0:h.call(p,E,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,E,null,t,this.state.context)),Dn(this,Yu,yp).call(this,{type:"success",data:E}),E}catch(E){try{throw await((y=(v=Fe(this,cs).config).onError)==null?void 0:y.call(v,E,t,this.state.context,this)),await((b=(w=this.options).onError)==null?void 0:b.call(w,E,t,this.state.context)),await((k=(C=Fe(this,cs).config).onSettled)==null?void 0:k.call(C,void 0,E,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,E,t,this.state.context)),E}finally{Dn(this,Yu,yp).call(this,{type:"error",error:E})}}finally{Fe(this,cs).runNext(this)}}},Gu=new WeakMap,cs=new WeakMap,Im=new WeakMap,Yu=new WeakSet,yp=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ys.batch(()=>{Fe(this,Gu).forEach(r=>{r.onMutationUpdate(t)}),Fe(this,cs).notify({mutation:this,type:"updated",action:t})})},jie);function Sut(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ml,L3,Nie,Cut=(Nie=class extends n${constructor(t={}){super();Un(this,ml);Un(this,L3);this.config=t,xn(this,ml,new Map),xn(this,L3,Date.now())}build(t,n,r){const i=new xut({mutationCache:this,mutationId:++Lh(this,L3)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=FS(t),r=Fe(this,ml).get(n)??[];r.push(t),Fe(this,ml).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=FS(t);if(Fe(this,ml).has(n)){const i=(r=Fe(this,ml).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?Fe(this,ml).delete(n):Fe(this,ml).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Fe(this,ml).get(FS(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Fe(this,ml).get(FS(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ys.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Fe(this,ml).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>XZ(n,r))}findAll(t={}){return this.getAll().filter(n=>XZ(t,n))}notify(t){ys.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ys.batch(()=>Promise.all(t.map(n=>n.continue().catch(Vc))))}},ml=new WeakMap,L3=new WeakMap,Nie);function FS(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function JZ(e){return{onFetch:(t,n)=>{var u,f,p,h,m;const r=t.options,i=(p=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=r0e(t.options,t.fetchOptions),w=async(b,C,k)=>{if(g)return Promise.reject();if(C==null&&b.pages.length)return Promise.resolve(b);const S={queryKey:t.queryKey,pageParam:C,direction:k?"backward":"forward",meta:t.options.meta};v(S);const _=await y(S),{maxPages:E}=t.options,$=k?dut:uut;return{pages:$(b.pages,_,E),pageParams:$(b.pageParams,C,E)}};if(i&&a.length){const b=i==="backward",C=b?_ut:eQ,k={pages:a,pageParams:o},S=C(r,k);s=await w(k,S,b)}else{const b=e??a.length;do{const C=l===0?o[0]??r.initialPageParam:eQ(r,s);if(l>0&&C==null)break;s=await w(s,C),l++}while(l{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function eQ(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function _ut(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ca,Pp,Op,Jv,e0,Rp,t0,n0,Aie,kut=(Aie=class{constructor(e={}){Un(this,ca);Un(this,Pp);Un(this,Op);Un(this,Jv);Un(this,e0);Un(this,Rp);Un(this,t0);Un(this,n0);xn(this,ca,e.queryCache||new wut),xn(this,Pp,e.mutationCache||new Cut),xn(this,Op,e.defaultOptions||{}),xn(this,Jv,new Map),xn(this,e0,new Map),xn(this,Rp,0)}mount(){Lh(this,Rp)._++,Fe(this,Rp)===1&&(xn(this,t0,i0e.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,ca).onFocus())})),xn(this,n0,N6.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,ca).onOnline())})))}unmount(){var e,t;Lh(this,Rp)._--,Fe(this,Rp)===0&&((e=Fe(this,t0))==null||e.call(this),xn(this,t0,void 0),(t=Fe(this,n0))==null||t.call(this),xn(this,n0,void 0))}isFetching(e){return Fe(this,ca).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Fe(this,Pp).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,ca).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Fe(this,ca).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(GZ(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Fe(this,ca).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Fe(this,ca).get(r.queryHash),a=i==null?void 0:i.state.data,o=iut(t,a);if(o!==void 0)return Fe(this,ca).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ys.batch(()=>Fe(this,ca).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,ca).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Fe(this,ca);ys.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Fe(this,ca),r={type:"active",...e};return ys.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ys.batch(()=>Fe(this,ca).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Vc).catch(Vc)}invalidateQueries(e={},t={}){return ys.batch(()=>{if(Fe(this,ca).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ys.batch(()=>Fe(this,ca).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Vc)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Vc)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Fe(this,ca).build(this,t);return n.isStaleByTime(GZ(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Vc).catch(Vc)}fetchInfiniteQuery(e){return e.behavior=JZ(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Vc).catch(Vc)}ensureInfiniteQueryData(e){return e.behavior=JZ(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return N6.isOnline()?Fe(this,Pp).resumePausedMutations():Promise.resolve()}getQueryCache(){return Fe(this,ca)}getMutationCache(){return Fe(this,Pp)}getDefaultOptions(){return Fe(this,Op)}setDefaultOptions(e){xn(this,Op,e)}setQueryDefaults(e,t){Fe(this,Jv).set(d3(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Fe(this,Jv).values()];let n={};return t.forEach(r=>{f3(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Fe(this,e0).set(d3(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Fe(this,e0).values()];let n={};return t.forEach(r=>{f3(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Fe(this,Op).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bz(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===wz&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Fe(this,Op).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Fe(this,ca).clear(),Fe(this,Pp).clear()}},ca=new WeakMap,Pp=new WeakMap,Op=new WeakMap,Jv=new WeakMap,e0=new WeakMap,Rp=new WeakMap,t0=new WeakMap,n0=new WeakMap,Aie),Eut=d.createContext(void 0),$ut=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(Eut.Provider,{value:e,children:t}));/** + `]:{zIndex:10,width:r,margin:`0 ${Me(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Me(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},qlt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Klt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Glt=e=>({actionsColor:e.colorTextDescription}),Ylt=Jn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:a}=e,o=Hn(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[Klt(o),zlt(o),Wlt(o),Vlt(o),Hlt(o),Ult(o),qlt(o),x4(o)]},Glt);function jS(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function NS(e,t){const n=lt(t),r=n.findIndex(i=>{let{uid:a}=i;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function yT(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Xlt(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const Zlt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Wve=e=>e.indexOf("image/")===0,Qlt=e=>{if(e.type&&!e.thumbUrl)return Wve(e.type);const t=e.thumbUrl||e.url||"",n=Zlt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},cp=200;function Jlt(e){return new Promise(t=>{if(!e.type||!Wve(e.type)){t("");return}const n=document.createElement("canvas");n.width=cp,n.height=cp,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${cp}px; height: ${cp}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=cp,l=cp,c=0,u=0;a>o?(l=o*(cp/a),u=-(l-s)/2):(s=a*(cp/o),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const ect=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:p,isImgUrl:h,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,previewIcon:y,removeIcon:w,downloadIcon:b,extra:C,onPreview:k,onDownload:S,onClose:_}=e;var E,$;const{status:M}=s,[P,R]=d.useState(M);d.useEffect(()=>{M!=="removed"&&R(M)},[M]);const[O,j]=d.useState(!1);d.useEffect(()=>{const pe=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(pe)}},[]);const I=u(s);let A=d.createElement("div",{className:`${n}-icon`},I);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(P==="uploading"||!s.thumbUrl&&!s.url){const pe=Ee(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:P!=="uploading"});A=d.createElement("div",{className:pe},I)}else{const pe=h!=null&&h(s)?d.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):I,me=Ee(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(s)});A=d.createElement("a",{className:me,onClick:re=>k(s,re),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},pe)}const N=Ee(`${n}-list-item`,`${n}-list-item-${P}`),F=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,K=(typeof g=="function"?g(s):g)?f((typeof w=="function"?w(s):w)||d.createElement(Y8,null),()=>_(s),n,a.removeFile,!0):null,L=(typeof v=="function"?v(s):v)&&P==="done"?f((typeof b=="function"?b(s):b)||d.createElement(Crt,null),()=>S(s),n,a.downloadFile):null,V=o!=="picture-card"&&o!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:Ee(`${n}-list-item-actions`,{picture:o==="picture"})},L,K),B=typeof C=="function"?C(s):C,U=B&&d.createElement("span",{className:`${n}-list-item-extra`},B),Y=Ee(`${n}-list-item-name`),ee=s.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Y,title:s.name},F,{href:s.url,onClick:pe=>k(s,pe)}),s.name,U):d.createElement("span",{key:"view",className:Y,onClick:pe=>k(s,pe),title:s.name},s.name,U),ie=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?d.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:pe=>k(s,pe),title:a.previewFile},typeof y=="function"?y(s):y||d.createElement(V8,null)):null,Z=(o==="picture-card"||o==="picture-circle")&&P!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},ie,P==="done"&&L,K),{getPrefixCls:X}=d.useContext(Xt),ae=X(),oe=d.createElement("div",{className:N},A,ee,V,Z,O&&d.createElement(Ca,{motionName:`${ae}-fade`,visible:P==="uploading",motionDeadline:2e3},pe=>{let{className:me}=pe;const re="percent"in s?d.createElement(iz,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return d.createElement("div",{className:Ee(`${n}-list-item-progress`,me)},re)})),le=s.response&&typeof s.response=="string"?s.response:((E=s.error)===null||E===void 0?void 0:E.statusText)||(($=s.error)===null||$===void 0?void 0:$.message)||a.uploadError,ce=P==="error"?d.createElement(_a,{title:le,getPopupContainer:pe=>pe.parentNode},oe):oe;return d.createElement("div",{className:Ee(`${n}-list-item-container`,r),style:i,ref:t},p?p(ce,s,l,{download:S.bind(null,s),preview:k.bind(null,s),remove:_.bind(null,s)}):ce)}),tct=(e,t)=>{const{listType:n="text",previewFile:r=Jlt,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=Qlt,prefixCls:u,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:h=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:y,extra:w,progress:b={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:k=!0,itemRender:S,disabled:_}=e,E=Nhe(),[$,M]=d.useState(!1),P=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(Y=>{U.thumbUrl=Y||"",E()}))})},[n,f,r]),d.useEffect(()=>{M(!0)},[]);const R=(U,Y)=>{if(i)return Y==null||Y.preventDefault(),i(U)},O=U=>{typeof a=="function"?a(U):U.url&&window.open(U.url)},j=U=>{o==null||o(U)},I=U=>{if(l)return l(U,n);const Y=U.status==="uploading";if(n.startsWith("picture")){const ee=n==="picture"?d.createElement(vu,null):s.uploading,ie=c!=null&&c(U)?d.createElement(vit,null):d.createElement(Nrt,null);return Y?ee:ie}return Y?d.createElement(vu,null):d.createElement(hit,null)},A=(U,Y,ee,ie,Z)=>{const X={type:"text",size:"small",title:ie,onClick:ae=>{var oe,le;Y(),d.isValidElement(U)&&((le=(oe=U.props).onClick)===null||le===void 0||le.call(oe,ae))},className:`${ee}-list-item-action`};return Z&&(X.disabled=_),d.isValidElement(U)?d.createElement(Yt,Object.assign({},X,{icon:aa(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):d.createElement(Yt,Object.assign({},X),d.createElement("span",null,U))};d.useImperativeHandle(t,()=>({handlePreview:R,handleDownload:O}));const{getPrefixCls:N}=d.useContext(Xt),F=N("upload",u),K=N(),L=Ee(`${F}-list`,`${F}-list-${n}`),V=d.useMemo(()=>$r(P0(K),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[K]),B=Object.assign(Object.assign({},P?{}:V),{motionDeadline:2e3,motionName:`${F}-${P?"animate-inline":"animate"}`,keys:lt(f.map(U=>({key:U.uid,file:U}))),motionAppear:$});return d.createElement("div",{className:L},d.createElement(ZE,Object.assign({},B,{component:!1}),U=>{let{key:Y,file:ee,className:ie,style:Z}=U;return d.createElement(ect,{key:Y,locale:s,prefixCls:F,className:ie,style:Z,file:ee,items:f,progress:b,listType:n,isImgUrl:c,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:y,extra:w,iconRender:I,actionIconRender:A,itemRender:S,onPreview:R,onDownload:O,onClose:j})}),C&&d.createElement(Ca,Object.assign({},B,{visible:k,forceRender:!0}),U=>{let{className:Y,style:ee}=U;return aa(C,ie=>({className:Ee(ie.className,Y),style:Object.assign(Object.assign(Object.assign({},ee),{pointerEvents:Y?"none":void 0}),ie.style)}))}))},nct=d.forwardRef(tct);var rct=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const E2=`__LIST_IGNORE_${Date.now()}__`,ict=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:p,locale:h,iconRender:m,isImageUrl:g,progress:v,prefixCls:y,className:w,type:b="select",children:C,style:k,itemRender:S,maxCount:_,data:E={},multiple:$=!1,hasControlInside:M=!0,action:P="",accept:R="",supportServerRender:O=!0,rootClassName:j}=e,I=d.useContext(ma),A=p??I,[N,F]=In(r||[],{value:n,postState:ge=>ge??[]}),[K,L]=d.useState("drop"),V=d.useRef(null),B=d.useRef(null);d.useMemo(()=>{const ge=Date.now();(n||[]).forEach((ze,Ve)=>{!ze.uid&&!Object.isFrozen(ze)&&(ze.uid=`__AUTO__${ge}_${Ve}__`)})},[n]);const U=(ge,ze,Ve)=>{let Be=lt(ze),Xe=!1;_===1?Be=Be.slice(-1):_&&(Xe=Be.length>_,Be=Be.slice(0,_)),Va.flushSync(()=>{F(Be)});const Ke={file:ge,fileList:Be};Ve&&(Ke.event=Ve),(!Xe||ge.status==="removed"||Be.some(qe=>qe.uid===ge.uid))&&Va.flushSync(()=>{c==null||c(Ke)})},Y=(ge,ze)=>rct(void 0,void 0,void 0,function*(){const{beforeUpload:Ve,transformFile:Be}=e;let Xe=ge;if(Ve){const Ke=yield Ve(ge,ze);if(Ke===!1)return!1;if(delete ge[E2],Ke===E2)return Object.defineProperty(ge,E2,{value:!0,configurable:!0}),!1;typeof Ke=="object"&&Ke&&(Xe=Ke)}return Be&&(Xe=yield Be(Xe)),Xe}),ee=ge=>{const ze=ge.filter(Xe=>!Xe.file[E2]);if(!ze.length)return;const Ve=ze.map(Xe=>jS(Xe.file));let Be=lt(N);Ve.forEach(Xe=>{Be=NS(Xe,Be)}),Ve.forEach((Xe,Ke)=>{let qe=Xe;if(ze[Ke].parsedFile)Xe.status="uploading";else{const{originFileObj:Et}=Xe;let ut;try{ut=new File([Et],Et.name,{type:Et.type})}catch{ut=new Blob([Et],{type:Et.type}),ut.name=Et.name,ut.lastModifiedDate=new Date,ut.lastModified=new Date().getTime()}ut.uid=Xe.uid,qe=ut}U(qe,Be)})},ie=(ge,ze,Ve)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!yT(ze,N))return;const Be=jS(ze);Be.status="done",Be.percent=100,Be.response=ge,Be.xhr=Ve;const Xe=NS(Be,N);U(Be,Xe)},Z=(ge,ze)=>{if(!yT(ze,N))return;const Ve=jS(ze);Ve.status="uploading",Ve.percent=ge.percent;const Be=NS(Ve,N);U(Ve,Be,ge)},X=(ge,ze,Ve)=>{if(!yT(Ve,N))return;const Be=jS(Ve);Be.error=ge,Be.response=ze,Be.status="error";const Xe=NS(Be,N);U(Be,Xe)},ae=ge=>{let ze;Promise.resolve(typeof i=="function"?i(ge):i).then(Ve=>{var Be;if(Ve===!1)return;const Xe=Xlt(ge,N);Xe&&(ze=Object.assign(Object.assign({},ge),{status:"removed"}),N==null||N.forEach(Ke=>{const qe=ze.uid!==void 0?"uid":"name";Ke[qe]===ze[qe]&&!Object.isFrozen(Ke)&&(Ke.status="removed")}),(Be=V.current)===null||Be===void 0||Be.abort(ze),U(ze,Xe))})},oe=ge=>{L(ge.type),ge.type==="drop"&&(u==null||u(ge))};d.useImperativeHandle(t,()=>({onBatchStart:ee,onSuccess:ie,onProgress:Z,onError:X,fileList:N,upload:V.current,nativeElement:B.current}));const{getPrefixCls:le,direction:ce,upload:pe}=d.useContext(Xt),me=le("upload",y),re=Object.assign(Object.assign({onBatchStart:ee,onError:X,onProgress:Z,onSuccess:ie},e),{data:E,multiple:$,action:P,accept:R,supportServerRender:O,prefixCls:me,disabled:A,beforeUpload:Y,onChange:void 0,hasControlInside:M});delete re.className,delete re.style,(!C||A)&&delete re.id;const fe=`${me}-wrapper`,[ve,$e,Ce]=Ylt(me,fe),[be]=Ga("Upload",Us.Upload),{showRemoveIcon:Se,showPreviewIcon:we,showDownloadIcon:se,removeIcon:ye,previewIcon:Oe,downloadIcon:z,extra:H}=typeof a=="boolean"?{}:a,G=typeof Se>"u"?!A:Se,de=(ge,ze)=>a?d.createElement(nct,{prefixCls:me,listType:o,items:N,previewFile:f,onPreview:s,onDownload:l,onRemove:ae,showRemoveIcon:G,showPreviewIcon:we,showDownloadIcon:se,removeIcon:ye,previewIcon:Oe,downloadIcon:z,iconRender:m,extra:H,locale:Object.assign(Object.assign({},be),h),isImageUrl:g,progress:v,appendAction:ge,appendActionVisible:ze,itemRender:S,disabled:A}):ge,xe=Ee(fe,w,j,$e,Ce,pe==null?void 0:pe.className,{[`${me}-rtl`]:ce==="rtl",[`${me}-picture-card-wrapper`]:o==="picture-card",[`${me}-picture-circle-wrapper`]:o==="picture-circle"}),he=Object.assign(Object.assign({},pe==null?void 0:pe.style),k);if(b==="drag"){const ge=Ee($e,me,`${me}-drag`,{[`${me}-drag-uploading`]:N.some(ze=>ze.status==="uploading"),[`${me}-drag-hover`]:K==="dragover",[`${me}-disabled`]:A,[`${me}-rtl`]:ce==="rtl"});return ve(d.createElement("span",{className:xe,ref:B},d.createElement("div",{className:ge,style:he,onDrop:oe,onDragOver:oe,onDragLeave:oe},d.createElement(iN,Object.assign({},re,{ref:V,className:`${me}-btn`}),d.createElement("div",{className:`${me}-drag-container`},C))),de()))}const Ue=Ee(me,`${me}-select`,{[`${me}-disabled`]:A,[`${me}-hidden`]:!C}),We=d.createElement("div",{className:Ue},d.createElement(iN,Object.assign({},re,{ref:V})));return ve(o==="picture-card"||o==="picture-circle"?d.createElement("span",{className:xe,ref:B},de(We,!!C)):d.createElement("span",{className:xe,ref:B},We,de()))},Vve=d.forwardRef(ict);var act=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{style:n,height:r,hasControlInside:i=!1}=e,a=act(e,["style","height","hasControlInside"]);return d.createElement(Vve,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),e1=Vve;e1.Dragger=oct;e1.LIST_IGNORE=E2;const sct=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,children:i,size:a,style:o={}}=e,s=Ee(`${n}-panel`,{[`${n}-panel-hidden`]:a===0},r),l=a!==void 0;return te.createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},o),{flexBasis:l?a:"auto",flexGrow:l?0:1})},i)}),lct=()=>null;var cct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iXi(e).filter(d.isValidElement).map(n=>{const{props:r}=n,{collapsible:i}=r,a=cct(r,["collapsible"]);return Object.assign(Object.assign({},a),{collapsible:uct(i)})}),[e])}function fct(e,t){return d.useMemo(()=>{const n=[];for(let r=0;r0||h.start&&s===0&&o>0,v=h.start&&s>0||u.end&&o===0&&s>0;n[r]={resizable:m,startCollapsible:!!g,endCollapsible:!!v}}return n},[t,e])}function l_(e){return Number(e.slice(0,-1))/100}function bT(e){return typeof e=="string"&&e.endsWith("%")}function pct(e,t){const n=e.map(m=>m.size),r=e.length,i=t||0,a=m=>m*i,[o,s]=te.useState(()=>e.map(m=>m.defaultSize)),l=te.useMemo(()=>{var m;const g=[];for(let v=0;v{let m=[],g=0;for(let y=0;yy+(w||0),0);if(v>1||!g){const y=1/v;m=m.map(w=>w===void 0?0:w*y)}else{const y=(1-v)/g;m=m.map(w=>w===void 0?y:w)}return m},[l,i]),u=te.useMemo(()=>c.map(a),[c,i]),f=te.useMemo(()=>e.map(m=>bT(m.min)?l_(m.min):(m.min||0)/i),[e,i]),p=te.useMemo(()=>e.map(m=>bT(m.max)?l_(m.max):(m.max||i)/i),[e,i]);return[te.useMemo(()=>t?u:l,[u,t]),u,c,f,p,s]}function hct(e,t,n,r,i){const a=e.map(b=>[b.min,b.max]),o=r||0,s=b=>b*o;function l(b,C){return typeof b=="string"?s(l_(b)):b??C}const[c,u]=d.useState([]),f=d.useRef([]),[p,h]=d.useState(null),m=()=>n.map(s);return[b=>{u(m()),h({index:b,confirmed:!1})},(b,C)=>{var k;let S=null;if((!p||!p.confirmed)&&C!==0){if(C>0)S=b,h({index:b,confirmed:!0});else for(let I=b;I>=0;I-=1)if(c[I]>0&&t[I].resizable){S=I,h({index:I,confirmed:!0});break}}const _=(k=S??(p==null?void 0:p.index))!==null&&k!==void 0?k:b,E=lt(c),$=_+1,M=l(a[_][0],0),P=l(a[$][0],0),R=l(a[_][1],o),O=l(a[$][1],o);let j=C;return E[_]+jR&&(j=R-E[_]),E[$]-j>O&&(j=E[$]-O),E[_]+=j,E[$]-=j,i(E),E},()=>{h(null)},(b,C)=>{const k=m(),S=C==="start"?b:b+1,_=C==="start"?b+1:b,E=k[S],$=k[_];if(E!==0&&$!==0)k[S]=0,k[_]+=E,f.current[b]=E;else{const M=E+$,P=l(a[S][0],0),R=l(a[S][1],o),O=l(a[_][0],0),j=l(a[_][1],o),I=Math.max(P,M-j),N=(Math.min(R,M-O)-I)/2,F=f.current[b],K=M-F;F&&F<=j&&F>=O&&K<=R&&K>=P?(k[_]=F,k[S]=K):(k[S]-=N,k[_]+=N)}return i(k),k},p==null?void 0:p.index]}function wT(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const mct=e=>{const{prefixCls:t,vertical:n,index:r,active:i,ariaNow:a,ariaMin:o,ariaMax:s,resizable:l,startCollapsible:c,endCollapsible:u,onOffsetStart:f,onOffsetUpdate:p,onOffsetEnd:h,onCollapse:m,lazy:g,containerSize:v}=e,y=`${t}-bar`,[w,b]=d.useState(null),[C,k]=d.useState(0),S=n?0:C,_=n?C:0,E=A=>{l&&A.currentTarget&&(b([A.pageX,A.pageY]),f(r))},$=A=>{if(l&&A.touches.length===1){const N=A.touches[0];b([N.pageX,N.pageY]),f(r)}},M=A=>{const N=v*a/100,F=N+A,K=Math.max(0,v*o/100),L=Math.min(v,v*s/100);return Math.max(K,Math.min(L,F))-N},P=Vn((A,N)=>{const F=M(n?N:A);k(F)}),R=Vn(()=>{p(r,S,_),k(0)});te.useEffect(()=>{if(w){const A=L=>{const{pageX:V,pageY:B}=L,U=V-w[0],Y=B-w[1];g?P(U,Y):p(r,U,Y)},N=()=>{g&&R(),b(null),h()},F=L=>{if(L.touches.length===1){const V=L.touches[0],B=V.pageX-w[0],U=V.pageY-w[1];g?P(B,U):p(r,B,U)}},K=()=>{g&&R(),b(null),h()};return window.addEventListener("touchmove",F),window.addEventListener("touchend",K),window.addEventListener("mousemove",A),window.addEventListener("mouseup",N),()=>{window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",N),window.removeEventListener("touchmove",F),window.removeEventListener("touchend",K)}}},[w,g,n,r,v,a,o,s]);const O={[`--${y}-preview-offset`]:`${C}px`},j=n?Gge:Nf,I=n?My:bc;return te.createElement("div",{className:y,role:"separator","aria-valuenow":wT(a),"aria-valuemin":wT(o),"aria-valuemax":wT(s)},g&&te.createElement("div",{className:Ee(`${y}-preview`,{[`${y}-preview-active`]:!!C}),style:O}),te.createElement("div",{className:Ee(`${y}-dragger`,{[`${y}-dragger-disabled`]:!l,[`${y}-dragger-active`]:i}),onMouseDown:E,onTouchStart:$}),c&&te.createElement("div",{className:Ee(`${y}-collapse-bar`,`${y}-collapse-bar-start`),onClick:()=>m(r,"start")},te.createElement(j,{className:Ee(`${y}-collapse-icon`,`${y}-collapse-start`)})),u&&te.createElement("div",{className:Ee(`${y}-collapse-bar`,`${y}-collapse-bar-end`),onClick:()=>m(r,"end")},te.createElement(I,{className:Ee(`${y}-collapse-icon`,`${y}-collapse-end`)})))},gct=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},AS={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},vct=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:i,splitTriggerSize:a,controlItemBgHover:o,controlItemBgActive:s,controlItemBgActiveHover:l,prefixCls:c}=e,u=`${t}-bar`,f=`${t}-mask`,p=`${t}-panel`,h=e.calc(a).div(2).equal(),m=`${c}-bar-preview-offset`,g={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:Object.assign(Object.assign(Object.assign({},ar(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${u}`]:{flex:"none",position:"relative",userSelect:"none",[`${u}-dragger`]:Object.assign(Object.assign({},AS),{zIndex:1,"&::before":Object.assign({content:'""',background:o},AS),"&::after":Object.assign({content:'""',background:n},AS),[`&:hover:not(${u}-dragger-active)`]:{"&::before":{background:s}},"&-active":{zIndex:2,"&::before":{background:l}},[`&-disabled${u}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:o}},"&::after":{display:"none"}}}),[`${u}-collapse-bar`]:Object.assign(Object.assign({},AS),{zIndex:e.zIndexPopupBase,background:o,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:s},"&:active":{background:l}}),"&:hover, &:active":{[`${u}-collapse-bar`]:{opacity:1}}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${u}`]:{width:0,[`${u}-preview`]:Object.assign(Object.assign({height:"100%",width:i},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateX(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:i},"&::after":{height:r,width:i}},[`${u}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:h},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:h},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${u}`]:{height:0,[`${u}-preview`]:Object.assign(Object.assign({height:i,width:"100%"},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateY(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:i},"&::after":{width:r,height:i}},[`${u}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:h,transform:"translateX(-50%)"},"&-end":{top:h,bottom:"auto",transform:"translateX(-50%)"}}}},[p]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),gct(e))}},yct=e=>{var t;const n=e.splitBarSize||2,r=e.splitTriggerSize||6,i=e.resizeSpinnerSize||20,a=(t=e.splitBarDraggableSize)!==null&&t!==void 0?t:i;return{splitBarSize:n,splitTriggerSize:r,splitBarDraggableSize:a,resizeSpinnerSize:i}},bct=Jn("Splitter",e=>[vct(e)],yct),wct=e=>{const{prefixCls:t,className:n,style:r,layout:i="horizontal",children:a,rootClassName:o,onResizeStart:s,onResize:l,onResizeEnd:c,lazy:u}=e,{getPrefixCls:f,direction:p,splitter:h}=te.useContext(Xt),m=f("splitter",t),g=qr(m),[v,y,w]=bct(m,g),b=i==="vertical",C=p==="rtl",k=!b&&C,S=dct(a),[_,E]=d.useState(),$=oe=>{const{offsetWidth:le,offsetHeight:ce}=oe,pe=b?ce:le;pe!==0&&E(pe)},[M,P,R,O,j,I]=pct(S,_),A=fct(S,P),[N,F,K,L,V]=hct(S,A,R,_,I),B=Vn(oe=>{N(oe),s==null||s(P)}),U=Vn((oe,le)=>{const ce=F(oe,le);l==null||l(ce)}),Y=Vn(()=>{K(),c==null||c(P)}),ee=Vn((oe,le)=>{const ce=L(oe,le);l==null||l(ce),c==null||c(ce)}),ie=Ee(m,n,`${m}-${i}`,{[`${m}-rtl`]:C},o,h==null?void 0:h.className,w,g,y),Z=`${m}-mask`,X=te.useMemo(()=>{const oe=[];let le=0;for(let ce=0;ce{const ce=te.createElement(sct,Object.assign({},oe,{prefixCls:m,size:M[le]}));let pe=null;const me=A[le];if(me){const re=(X[le-1]||0)+O[le],fe=(X[le+1]||100)-j[le+1],ve=(X[le-1]||0)+j[le],$e=(X[le+1]||100)-O[le+1];pe=te.createElement(mct,{lazy:u,index:le,active:V===le,prefixCls:m,vertical:b,resizable:me.resizable,ariaNow:X[le]*100,ariaMin:Math.max(re,fe)*100,ariaMax:Math.min(ve,$e)*100,startCollapsible:me.startCollapsible,endCollapsible:me.endCollapsible,onOffsetStart:B,onOffsetUpdate:(Ce,be,Se)=>{let we=b?Se:be;k&&(we=-we),U(Ce,we)},onOffsetEnd:Y,onCollapse:ee,containerSize:_||0})}return te.createElement(te.Fragment,{key:`split-panel-${le}`},ce,pe)}),typeof V=="number"&&te.createElement("div",{"aria-hidden":!0,className:Ee(Z,`${Z}-${i}`)}))))},Bp=wct;Bp.Panel=lct;let je;const xct=()=>{const e=v8.useApp();return je=e.message,e.modal,e.notification,null};var qve={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=function(W,Q){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,_e){ue.__proto__=_e}||function(ue,_e){for(var Pe in _e)Object.prototype.hasOwnProperty.call(_e,Pe)&&(ue[Pe]=_e[Pe])})(W,Q)},r=function(){return(r=Object.assign||function(W){for(var Q,ue=1,_e=arguments.length;ue<_e;ue++)for(var Pe in Q=arguments[ue])Object.prototype.hasOwnProperty.call(Q,Pe)&&(W[Pe]=Q[Pe]);return W}).apply(this,arguments)};function i(W,Q,ue){for(var _e,Pe=0,Ae=Q.length;Pe"u"||a.Promise||(a.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function f(W,Q){return u.call(W,Q)}function p(W,Q){typeof Q=="function"&&(Q=Q(c(W))),(typeof Reflect>"u"?o:Reflect.ownKeys)(Q).forEach(function(ue){m(W,ue,Q[ue])})}var h=Object.defineProperty;function m(W,Q,ue,_e){h(W,Q,l(ue&&f(ue,"get")&&typeof ue.get=="function"?{get:ue.get,set:ue.set,configurable:!0}:{value:ue,configurable:!0,writable:!0},_e))}function g(W){return{from:function(Q){return W.prototype=Object.create(Q.prototype),m(W.prototype,"constructor",W),{extend:p.bind(null,W.prototype)}}}}var v=Object.getOwnPropertyDescriptor,y=[].slice;function w(W,Q,ue){return y.call(W,Q,ue)}function b(W,Q){return Q(W)}function C(W){if(!W)throw new Error("Assertion Failed")}function k(W){a.setImmediate?setImmediate(W):setTimeout(W,0)}function S(W,Q){if(typeof Q=="string"&&f(W,Q))return W[Q];if(!Q)return W;if(typeof Q!="string"){for(var ue=[],_e=0,Pe=Q.length;_e"u"?[]:function(){var W=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[W,c(W),W];var Q=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[Q,c(Q),W]}(),Oe=bt[0],Wl=bt[1],bt=bt[2],Wl=Wl&&Wl.then,z=Oe&&Oe.constructor,H=!!bt,G=function(W,Q){Ve.push([W,Q]),xe&&(queueMicrotask(jt),xe=!1)},de=!0,xe=!0,he=[],Ue=[],We=pe,ge={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ce,pgp:!1,env:{},finalize:ce},ze=ge,Ve=[],Be=0,Xe=[];function Ke(W){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var Q=this._PSD=ze;if(typeof W!="function"){if(W!==se)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&ut(this,this._value))}this._state=null,this._value=null,++Q.ref,function ue(_e,Pe){try{Pe(function(Ae){if(_e._state===null){if(Ae===_e)throw new TypeError("A promise cannot be resolved with itself.");var Ge=_e._lib&&Lt();Ae&&typeof Ae.then=="function"?ue(_e,function(et,ct){Ae instanceof Ke?Ae._then(et,ct):Ae.then(et,ct)}):(_e._state=!0,_e._value=Ae,gt(_e)),Ge&&Bt()}},ut.bind(null,_e))}catch(Ae){ut(_e,Ae)}}(this,W)}var qe={get:function(){var W=ze,Q=Nt;function ue(_e,Pe){var Ae=this,Ge=!W.global&&(W!==ze||Q!==Nt),et=Ge&&!Ct(),ct=new Ke(function(ht,_t){Qe(Ae,new Et(De(_e,W,Ge,et),De(Pe,W,Ge,et),ht,_t,W))});return this._consoleTask&&(ct._consoleTask=this._consoleTask),ct}return ue.prototype=se,ue},set:function(W){m(this,"then",W&&W.prototype===se?qe:{get:function(){return W},set:qe.set})}};function Et(W,Q,ue,_e,Pe){this.onFulfilled=typeof W=="function"?W:null,this.onRejected=typeof Q=="function"?Q:null,this.resolve=ue,this.reject=_e,this.psd=Pe}function ut(W,Q){var ue,_e;Ue.push(Q),W._state===null&&(ue=W._lib&&Lt(),Q=We(Q),W._state=!1,W._value=Q,_e=W,he.some(function(Pe){return Pe._value===_e._value})||he.push(_e),gt(W),ue&&Bt())}function gt(W){var Q=W._listeners;W._listeners=[];for(var ue=0,_e=Q.length;ue<_e;++ue)Qe(W,Q[ue]);var Pe=W._PSD;--Pe.ref||Pe.finalize(),Be===0&&(++Be,G(function(){--Be==0&&Ut()},[]))}function Qe(W,Q){if(W._state!==null){var ue=W._state?Q.onFulfilled:Q.onRejected;if(ue===null)return(W._state?Q.resolve:Q.reject)(W._value);++Q.psd.ref,++Be,G(nt,[ue,W,Q])}else W._listeners.push(Q)}function nt(W,Q,ue){try{var _e,Pe=Q._value;!Q._state&&Ue.length&&(Ue=[]),_e=Se&&Q._consoleTask?Q._consoleTask.run(function(){return W(Pe)}):W(Pe),Q._state||Ue.indexOf(Pe)!==-1||function(Ae){for(var Ge=he.length;Ge;)if(he[--Ge]._value===Ae._value)return he.splice(Ge,1)}(Q),ue.resolve(_e)}catch(Ae){ue.reject(Ae)}finally{--Be==0&&Ut(),--ue.psd.ref||ue.psd.finalize()}}function jt(){dt(ge,function(){Lt()&&Bt()})}function Lt(){var W=de;return xe=de=!1,W}function Bt(){var W,Q,ue;do for(;0.",rt="String expected.",$t=[],Mt="__dbnames",dn="readonly",pn="readwrite";function T(W,Q){return W?Q?function(){return W.apply(this,arguments)&&Q.apply(this,arguments)}:W:Q}var D={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function J(W){return typeof W!="string"||/\./.test(W)?function(Q){return Q}:function(Q){return Q[W]===void 0&&W in Q&&delete(Q=O(Q))[W],Q}}function ke(){throw ae.Type()}function Ie(W,Q){try{var ue=it(W),_e=it(Q);if(ue!==_e)return ue==="Array"?1:_e==="Array"?-1:ue==="binary"?1:_e==="binary"?-1:ue==="string"?1:_e==="string"?-1:ue==="Date"?1:_e!=="Date"?NaN:-1;switch(ue){case"number":case"Date":case"string":return QWt+Gt&&Dt(Wt+_t)})})}var zt=mr(ue)&&ue.limit===1/0&&(typeof W!="function"||W===or)&&{index:ue.index,range:ue.range};return Dt(0).then(function(){if(0=Rt})).length!==0?(_t.forEach(function(Dt){Tt.push(function(){var zt=yt,Wt=Dt._cfg.dbschema;_x(at,zt,St),_x(at,Wt,St),yt=at._dbSchema=Wt;var Gt=D7(zt,Wt);Gt.add.forEach(function(Tn){F7(St,Tn[0],Tn[1].primKey,Tn[1].indexes)}),Gt.change.forEach(function(Tn){if(Tn.recreate)throw new ae.Upgrade("Not yet support for changing primary key");var kn=St.objectStore(Tn.name);Tn.add.forEach(function(Fn){return Sx(kn,Fn)}),Tn.change.forEach(function(Fn){kn.deleteIndex(Fn.name),Sx(kn,Fn)}),Tn.del.forEach(function(Fn){return kn.deleteIndex(Fn)})});var vn=Dt._cfg.contentUpgrade;if(vn&&Dt._cfg.version>Rt){bx(at,St),ft._memoizedTables={};var En=E(Wt);Gt.del.forEach(function(Tn){En[Tn]=zt[Tn]}),A7(at,[at.Transaction.prototype]),xx(at,[at.Transaction.prototype],o(En),En),ft.schema=En;var yn,Cn=V(vn);return Cn&&st(),Gt=Ke.follow(function(){var Tn;(yn=vn(ft))&&Cn&&(Tn=Ct.bind(null,null),yn.then(Tn,Tn))}),yn&&typeof yn.then=="function"?Ke.resolve(yn):Gt.then(function(){return yn})}}),Tt.push(function(zt){var Wt,Gt,vn=Dt._cfg.dbschema;Wt=vn,Gt=zt,[].slice.call(Gt.db.objectStoreNames).forEach(function(En){return Wt[En]==null&&Gt.db.deleteObjectStore(En)}),A7(at,[at.Transaction.prototype]),xx(at,[at.Transaction.prototype],at._storeNames,at._dbSchema),ft.schema=at._dbSchema}),Tt.push(function(zt){at.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(at.idbdb.version/10)===Dt._cfg.version?(at.idbdb.deleteObjectStore("$meta"),delete at._dbSchema.$meta,at._storeNames=at._storeNames.filter(function(Wt){return Wt!=="$meta"})):zt.objectStore("$meta").put(Dt._cfg.version,"version"))})}),function Dt(){return Tt.length?Ke.resolve(Tt.shift()(ft.idbtrans)).then(Dt):Ke.resolve()}().then(function(){tW(yt,St)})):Ke.resolve();var at,Rt,ft,St,Tt,yt}).catch(Ge)):(o(Pe).forEach(function(_t){F7(ue,_t,Pe[_t].primKey,Pe[_t].indexes)}),bx(W,ue),void Ke.follow(function(){return W.on.populate.fire(Ae)}).catch(Ge));var ct,ht})}function NSe(W,Q){tW(W._dbSchema,Q),Q.db.version%10!=0||Q.objectStoreNames.contains("$meta")||Q.db.createObjectStore("$meta").add(Math.ceil(Q.db.version/10-1),"version");var ue=Cx(0,W.idbdb,Q);_x(W,W._dbSchema,Q);for(var _e=0,Pe=D7(ue,W._dbSchema).change;_eMath.pow(2,62)?0:yt.oldVersion,at=yt<1,W.idbdb=Tt.result,Ae&&NSe(W,_t),jSe(W,yt/10,_t,ft))},ft),Tt.onsuccess=He(function(){_t=null;var yt,Dt,zt,Wt,Gt,vn=W.idbdb=Tt.result,En=w(vn.objectStoreNames);if(0"u"?Ke.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Rt){function ft(){return indexedDB.databases().finally(Rt)}ct=setInterval(ft,100),ft()}).finally(function(){return clearInterval(ct)}):Promise.resolve()).then(et)]).then(function(){return Ge(),Q.onReadyBeingFired=[],Ke.resolve(z7(function(){return W.on.ready.fire(W.vip)})).then(function Rt(){if(0Q.limit?Rt.length=Q.limit:W.length===Q.limit&&Rt.length=Dt.limit&&(!Dt.values||vn.req.values)&&HSe(vn.req.query.range,Dt.query.range)}),!1,zt,Wt];case"count":return Gt=Wt.find(function(vn){return fW(vn.req.query.range,Dt.query.range)}),[Gt,!!Gt,zt,Wt]}}(Q,ue,"query",Ae),_t=ht[0],at=ht[1],Rt=ht[2],ft=ht[3];return _t&&at?_t.obsSet=Ae.obsSet:(at=_e.query(Ae).then(function(St){var Tt=St.result;if(_t&&(_t.res=Tt),Ge){for(var yt=0,Dt=Tt.length;yt({uid:r.uid||"",type:r.type||"",content:r.content||"",client:r.client||"",createdAt:r.createdAt||"",status:r.status||"",topic:r.topic||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getMessage(n){return await Zl.messages.get(n)}async updateMessage(n,r){return await Zl.messages.update(n,{content:r})}async deleteMessage(n){return await Zl.messages.delete(n)}subscribeMessages(){Cct(()=>this.messages.toArray()).subscribe({next:r=>{const i=r.map(a=>a.uid);console.log("messagesObservable message uids",i)}})}async createThread(n){var r,i,a;return console.log("useIndexedDB createThread",n.topic),await Zl.threads.put({uid:n.uid,type:n.type,topic:n.topic,state:n.state,extra:n.extra,updatedAt:n.updatedAt,userUid:(r=n.user)==null?void 0:r.uid,userNickname:(i=n.user)==null?void 0:i.nickname,userAvatar:(a=n.user)==null?void 0:a.avatar})}async getAllThreads(){return(await Zl.threads.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",topic:r.topic||"",status:r.state||"",extra:r.extra||"",createdAt:r.updatedAt||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getThread(n){return await Zl.threads.get(n)}async updateThread(n,r){return await Zl.threads.update(n,r)}async deleteThread(n){return await Zl.threads.delete(n)}}const Zl=new Kve;let ua,Hc,pl,F1=!1;const _ct=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(Hc=ia.getState().userInfo,pl=Eo.getState().agentInfo,F1){console.log("mqtt is connecting");return}if(ua&&ua.connected){console.log("mqtt already connected");return}if(ua&&ua.reconnecting){console.log("mqtt already reconnecting");return}F1=!0;const r=ia.getState().deviceUid,a={keepalive:30,clientId:e+"/"+_n+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1};console.log("mqtt start connect:",a),ua=eMe.connect(t$e(),a),ua.on("connect",()=>{console.log("mqtt event connected"),F1=!1,$n.emit(qO)}),ua.on("message",async function(o,s,l){console.log("mqtt receive message topic:",o,l);const c=wue.Message.deserializeBinary(s),u=fr.getState().currentThread,f={uid:c.getThread().getUid(),type:c.getThread().getType(),topic:c.getThread().getTopic(),content:c.getContent(),updatedAt:c.getCreatedat(),unreadCount:0,user:{uid:c.getThread().getUser().getUid(),nickname:c.getThread().getUser().getNickname(),avatar:c.getThread().getUser().getAvatar()}},p={uid:c.getUid(),createdAt:c.getCreatedat(),client:c.getClient(),type:c.getType(),status:c.getStatus(),user:{uid:c.getUser().getUid(),nickname:c.getUser().getNickname(),avatar:c.getUser().getAvatar()},content:c.getContent(),topic:c.getThread().getTopic()};if(Act(c,Hc,pl))switch(c.getType()){case sR:case oR:ST(c);return;case gk:case iR:return;case UV:return;case aR:console.log("self recall message"),KZ(p);return;case v0:console.log("thread closed message"),fr.getState().closeThread(f.uid);break;default:c.setStatus(Dw)}else switch(c.getType()){case sR:case oR:ST(c);return;case gk:case iR:qZ(u,f,c.getType());return;case $f:qZ(u,f,c.getType());break;case UV:Dct(c,u,f);return;case rR:case t5e:return;case kse:return;case r5e:case i5e:case o5e:case s5e:case Ese:case c5e:ST(c);return;case aR:console.log("recall message"),KZ(p);return;case _se:console.log("notice message"),Fct(p);break;case g0:case v0:console.log("thread closed message"),fr.getState().closeThread(f.uid);break;default:console.log("send receive message type",c.getType()),Vct(c,u,f)}console.log("mqtt message received",o,p,f),Td.getState().addMessage(p),$n.emit(jw,p);const h=fr.getState().addThreadWithMessage(f,p);console.log("unreadCount",h);try{await Zl.createMessage(p),console.log("Sent message stored in IndexedDB:",p)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),ua.on("packetsend",o=>{console.log("mqtt event packetsend",o)}),ua.on("packetreceive",o=>{console.log("mqtt event packetreceive",o,o.cmd),o.cmd==="publish"||o.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),ua.on("reconnect",()=>{console.log("mqtt event reconnect")}),ua.on("close",()=>{console.log("mqtt event close"),F1=!1,$n.emit(GO)}),ua.on("disconnect",()=>{console.error("mqtt event disconnected"),F1=!1,$n.emit(YO)}),ua.on("offline",()=>{console.log("mqtt event offline"),F1=!1,$n.emit(KO)}),ua.on("error",()=>{console.log("mqtt event error"),$n.emit(XO)}),ua.on("end",()=>{console.log("mqtt event end"),$n.emit(ZO)})},kct=(e,t,n,r)=>{wo(e,vo,t,r,n)},Ect=(e,t,n,r)=>{console.log("mqtt mqttSendImageMessage",t),wo(e,Sl,t,r,n)},$ct=(e,t,n,r)=>{console.log("mqtt mqttSendFileMessage",t),wo(e,cd,t,r,n)},WZ=new Set,Gve=(e,t,n)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),WZ.has(e)||(WZ.add(e),wo(Ba(),oR,e,t,n))},VZ=new Set,Mct=(e,t,n)=>{console.log("mqtt mqttSendReceiptReadMessage",e),VZ.has(e)||(VZ.add(e),wo(Ba(),sR,e,t,n))},Tct=e=>{console.log("mqtt mqttSendRateInviteMessage"),wo(Ba(),pv,"i18n.rate.invite",e,!1)},Pct=(e,t)=>{console.log("mqtt mqttSendTypingMessage"),wo(Ba(),gk,"",e,t)},Oct=(e,t,n)=>{console.log("mqtt mqttSendTransferMessage",t),wo(e,yF,t,n,!1)},Yve=(e,t)=>{console.log("mqtt mqttSendTransferAcceptMessage",e),wo(Ba(),bF,e,t,!1)},Xve=(e,t)=>{console.log("mqtt mqttSendTransferRejectMessage",e),wo(Ba(),wF,e,t,!1)},Rct=(e,t,n)=>{console.log("mqtt mqttSendInviteMessage"),wo(e,xF,t,n,!1)},Zve=(e,t)=>{console.log("mqtt mqttSendInviteAcceptMessage"),wo(Ba(),SF,e,t,!1)},Qve=(e,t)=>{console.log("mqtt mqttSendInviteRejectMessage"),wo(Ba(),CF,e,t,!1)},Ict=(e,t)=>{console.log("mqtt mqttSendRecallMessage",e),wo(Ba(),aR,e,t,!1)},wo=async(e,t,n,r,i)=>{var o,s,l,c;console.log("mqttSendMessage",n,i);const a=Pv();if(ua&&ua.connected){const u=new nMe.Thread;u.setUid(r.uid),u.setType(r.type),u.setTopic(r.topic);const f=new EK.User;f.setUid((o=r.user)==null?void 0:o.uid),f.setNickname((s=r.user)==null?void 0:s.nickname),f.setAvatar((l=r.user)==null?void 0:l.avatar),u.setUser(f);const p=new EK.User;if(i){console.log("mqttSendMessage fromTicketTab");const v=Na.getState().memberInfo;console.log("mqttSendMessage memberInfo:",v),p.setUid(v==null?void 0:v.uid),p.setNickname(v==null?void 0:v.nickname),p.setAvatar(v==null?void 0:v.avatar),p.setType(mk)}else Rf(r)?(p.setUid(pl==null?void 0:pl.uid),p.setNickname(pl==null?void 0:pl.nickname),p.setAvatar(pl==null?void 0:pl.avatar),p.setType(uh),console.log("mqttSendMessage agentInfo:",pl)):(p.setUid(Hc.uid),p.setNickname(Hc.nickname),p.setAvatar(Hc.avatar),p.setType(W5),console.log("mqttSendMessage userInfo:",Hc));const h={orgUid:(c=Hc==null?void 0:Hc.currentOrganization)==null?void 0:c.uid},m=new wue.Message;m.setUid(e),m.setType(t),m.setStatus($p),m.setCreatedat(a),m.setClient(_n),m.setContent(n),m.setUser(p),m.setThread(u),m.setExtra(JSON.stringify(h));const g=m.serializeBinary();ua.publish(r.topic,g);try{const v={uid:m.getUid(),type:m.getType(),content:m.getContent(),client:m.getClient(),createdAt:m.getCreatedat(),status:m.getStatus(),topic:m.getThread().getTopic(),user:{uid:m.getUser().getUid(),nickname:m.getUser().getNickname(),avatar:m.getUser().getAvatar()}};await Zl.createMessage(v),console.log("Sent message stored in IndexedDB:",v)}catch(v){console.error("Error storing sent message in IndexedDB:",v)}}else{console.log("mqttClient is disconnect, use http rest api");let u=null;if(i){const f=Na.getState().memberInfo;u=gRe(r,Hc,f,e,t,n,a)}else u=SL(r,Hc,pl,e,t,n,a);Nct(u)}},xT=()=>{ua?ua.end():console.log("mqttClient is null")},jct=()=>ua&&ua.connected,Nct=async e=>{const t=JSON.stringify(e),n=await u$e(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){Td.getState().updateMessageStatus(e==null?void 0:e.uid,Dw);const r={uid:e==null?void 0:e.uid,type:Dw};$n.emit(hk,JSON.stringify(r))}else je.error(n.data.message)},Act=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function ST(e){console.log("update message status:",e.getContent(),e.getType()),Td.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};$n.emit(hk,JSON.stringify(t))}function qZ(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===gk?$n.emit(g6e):n===iR?$n.emit(v6e):n===$f&&$n.emit(dse))}function Dct(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&$n.emit(y6e,e.getContent())}function Fct(e){const t=JSON.parse(e==null?void 0:e.content);console.log("handleNoticeMessage",t),t.type===yF?Lct(t):t.type===bF?Bct(t):t.type===wF?zct(t):t.type===xF?Hct(t):t.type===SF?Uct(t):t.type===CF&&Wct(t)}function Lct(e){$n.emit(fse,JSON.stringify(e))}function Bct(e){$n.emit(pse,JSON.stringify(e))}function zct(e){$n.emit(hse,JSON.stringify(e))}function Hct(e){$n.emit(mse,JSON.stringify(e))}function Uct(e){$n.emit(gse,JSON.stringify(e))}function Wct(e){$n.emit(vse,JSON.stringify(e))}function KZ(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Td.getState().recallMessage(e==null?void 0:e.content)}function Vct(e,t,n){if(!dRe(n==null?void 0:n.topic)&&aRe(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();Gve(r,n,!1),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&Mct(r,n,!1)}}const qct=so()(Jo(es(ts(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:T6e}))),Kct=()=>{F0("https://www.weiyuai.cn/docs/zh-CN/")},F0=e=>{ha?window.electronAPI.openUrl(e):window.open(e,"_blank")},Gct=async()=>{if(ha){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},Jve=async()=>ha?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),Yct=async()=>{if(ha){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},Xct=(e,t)=>{ha&&window.electronAPI.showElectronNotification(e,t)},Zct=e=>{ha?window.electronAPI.setThemeMode(e):console.log("not electron")},Qct=e=>{ha?window.electronAPI.createNewWindow(e):console.log("not electron")},Jct=()=>{ha?window.electronAPI.screenshotCapture():console.log("not electron")},oN=()=>{ha&&window.electronAPI.loginSuccess()},eut=()=>{ha&&window.electronAPI.logoutSuccess()};async function t$(e){return gn("/api/v1/member/query/org",{method:"GET",params:{...e,client:_n}})}async function e0e(e){return gn("/api/v1/member/query",{method:"GET",params:{orgUid:e,client:_n}})}async function tut(e){return gn("/api/v1/member/query/userUid",{method:"GET",params:{userUid:e,client:_n}})}function t1(){const[e,t]=d.useState(!1),[n,r]=d.useState(!1),[i,a]=d.useState(!1),[o,s]=d.useState(!1),l=d.useRef(!1),c=d.useRef(!1),u=d.useRef(null),f=d.useRef(void 0),{myDevice:p,setMyDevice:h}=qct(j=>({myDevice:j.myDevice,setMyDevice:j.setMyDevice})),{userInfo:m,deviceUid:g,setUserInfo:v,setDeviceUid:y}=ia(j=>({userInfo:j.userInfo,deviceUid:j.deviceUid,setUserInfo:j.setUserInfo,setDeviceUid:j.setDeviceUid})),{agentInfo:w,setAgentInfo:b}=Eo(j=>({agentInfo:j.agentInfo,setAgentInfo:j.setAgentInfo})),{memberInfo:C,setMemberInfo:k}=Na(j=>({memberInfo:j.memberInfo,setMemberInfo:j.setMemberInfo})),S=Vr(j=>j.currentOrg),_=Td(j=>j.addMessage),E=fr(j=>j.updateThreadContent);d.useEffect(()=>{t(!1),r(!1),a(!1),s(!1),m!=null&&m.currentRoles&&m.currentRoles.forEach(j=>{switch(j.name){case S5e:t(!0);break;case C5e:r(!0);break;case _5e:a(!0);break;case k5e:s(!0);break}})},[m==null?void 0:m.currentRoles]);const $=d.useCallback(async()=>{var j;if(!(l.current||!(w!=null&&w.uid))){l.current=!0;try{const I=await l$e(w.uid);(((j=I==null?void 0:I.data)==null?void 0:j.data)||[]).forEach(N=>{_(N);const F=E(N.uid,N.content);F&&Gve(N.uid,F,!1)})}catch(I){console.error("Failed to fetch unread messages:",I)}finally{l.current=!1}}},[w==null?void 0:w.uid,_,E]);d.useEffect(()=>{o&&$()},[o,$]);const M=d.useCallback(async()=>{try{const j=await Jve();j.length>0&&h({...p,ip:j[0]})}catch(j){console.error("Failed to fetch IP address:",j)}},[p,h]);d.useEffect(()=>{g||y(Ba()),M()},[g,y,M]);const P=d.useCallback(async()=>{if(!c.current&&S!=null&&S.uid){c.current=!0;try{u.current&&(clearTimeout(u.current),u.current=null),je.destroy(),je.loading("正在加载用户信息...");const j=await AF();console.log("getProfile response",j.data),j.data.code===200?(je.destroy(),v(j.data.data)):(je.destroy(),je.error("加载用户信息失败"))}catch(j){je.destroy(),je.error("加载用户信息失败"),console.error("Failed to refresh user info:",j)}finally{u.current=setTimeout(()=>{c.current=!1},500)}}},[S==null?void 0:S.uid,v]),R=d.useCallback(async()=>{if(S!=null&&S.uid)try{const j=await e0e(S==null?void 0:S.uid);console.log("refreshMemberInfo memberResponse:",j.data),j.data.code===200&&k(j.data.data)}catch(j){console.error("Failed to fetch member info:",j)}},[S==null?void 0:S.uid,k]);d.useEffect(()=>{f.current!==(S==null?void 0:S.uid)&&(f.current=S==null?void 0:S.uid,P(),R())},[S,P]);const O=async j=>{if(w){je.destroy(),je.loading("正在更新状态");try{const I={...w,status:j},A=await a$e(I);console.log("updateAgentStatus:",j,A.data),A.data.code===200?(b(A.data.data),je.destroy(),je.success("状态更新成功")):(je.destroy(),je.error("状态更新失败"))}catch(I){je.destroy(),je.error("状态更新失败"),console.error("Failed to update agent status:",I)}}};return d.useEffect(()=>()=>{u.current&&clearTimeout(u.current),je.destroy()},[]),{userInfo:m,setUserInfo:v,agentInfo:w,setAgentInfo:b,memberInfo:C,setMemberInfo:k,handleUpdateAgentStatus:O,refreshUserInfo:P,hasRoleAgent:o,hasRoleSuper:e,hasRoleAdmin:n,hasRoleMember:i}}const Ea=d.createContext({}),nut=({children:e})=>{const[t,n]=d.useState(!1),[r,i]=d.useState(!1),a=t4($=>$.accessToken),o=OF($=>$.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:m}=t1(),g=d.useMemo(()=>!!a&&a.trim().length>0,[a]),{themeMode:v,setThemeMode:y,isDarkMode:w}=Ag(),[b,C]=d.useState(Qx),k=$=>{let M;$==="en"?M=Sq:$==="zh-cn"?M=Qx:$==="zh-tw"?M=CEe:M=Qx,console.log("changeLocale localeValue:",M),C(M),localStorage.setItem(AV,M.locale)},[S,_]=d.useState(EC),E=$=>{_($),localStorage.setItem(DV,$)};return d.useEffect(()=>{const $=localStorage.getItem(AV);C($==="en"?Sq:Qx);const M=localStorage.getItem(DV);_(M===EC?EC:M===Rw?Rw:lse)},[]),x.jsx(Ea.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:o,isDarkMode:w,themeMode:v,setThemeMode:y,locale:b,changeLocale:k,mode:S,changeMode:E,isPingLoading:r,setPingLoading:i,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:m},children:e})},yz=()=>{const e=d.useContext(Ea);if(!e)throw new Error("useAppContext must be used within an AppProvider");return e};var n$=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},r$=typeof window>"u"||"Deno"in globalThis;function Vc(){}function rut(e,t){return typeof e=="function"?e(t):e}function iut(e){return typeof e=="number"&&e>=0&&e!==1/0}function aut(e,t){return Math.max(e+(t||0)-Date.now(),0)}function GZ(e,t){return typeof e=="function"?e(t):e}function out(e,t){return typeof e=="function"?e(t):e}function YZ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==bz(o,t.options))return!1}else if(!f3(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function XZ(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(d3(t.options.mutationKey)!==d3(a))return!1}else if(!f3(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function bz(e,t){return((t==null?void 0:t.queryKeyHashFn)||d3)(e)}function d3(e){return JSON.stringify(e,(t,n)=>sN(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function f3(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!f3(e[n],t[n])):!1}function t0e(e,t){if(e===t)return e;const n=ZZ(e)&&ZZ(t);if(n||sN(e)&&sN(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function lut(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?t0e(e,t):t}function cut(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uut(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var wz=Symbol();function n0e(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===wz?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Pm,Mp,Gv,Mie,dut=(Mie=class extends n${constructor(){super();Un(this,Pm);Un(this,Mp);Un(this,Gv);xn(this,Gv,t=>{if(!r$&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Fe(this,Mp)||this.setEventListener(Fe(this,Gv))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Mp))==null||t.call(this),xn(this,Mp,void 0))}setEventListener(t){var n;xn(this,Gv,t),(n=Fe(this,Mp))==null||n.call(this),xn(this,Mp,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Fe(this,Pm)!==t&&(xn(this,Pm,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Fe(this,Pm)=="boolean"?Fe(this,Pm):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Pm=new WeakMap,Mp=new WeakMap,Gv=new WeakMap,Mie),r0e=new dut,Yv,Tp,Xv,Tie,fut=(Tie=class extends n${constructor(){super();Un(this,Yv,!0);Un(this,Tp);Un(this,Xv);xn(this,Xv,t=>{if(!r$&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Fe(this,Tp)||this.setEventListener(Fe(this,Xv))}onUnsubscribe(){var t;this.hasListeners()||((t=Fe(this,Tp))==null||t.call(this),xn(this,Tp,void 0))}setEventListener(t){var n;xn(this,Xv,t),(n=Fe(this,Tp))==null||n.call(this),xn(this,Tp,t(this.setOnline.bind(this)))}setOnline(t){Fe(this,Yv)!==t&&(xn(this,Yv,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Fe(this,Yv)}},Yv=new WeakMap,Tp=new WeakMap,Xv=new WeakMap,Tie),j6=new fut;function put(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function hut(e){return Math.min(1e3*2**e,3e4)}function i0e(e){return(e??"online")==="online"?j6.isOnline():!0}var a0e=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function CT(e){return e instanceof a0e}function o0e(e){let t=!1,n=0,r=!1,i;const a=put(),o=g=>{var v;r||(p(new a0e(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>r0e.isFocused()&&(e.networkMode==="always"||j6.isOnline())&&e.canRun(),u=()=>i0e(e.networkMode)&&e.canRun(),f=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),i==null||i(),a.resolve(g))},p=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),i==null||i(),a.reject(g))},h=()=>new Promise(g=>{var v;i=y=>{(r||c())&&g(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var S;if(r)return;const w=e.retry??(r$?0:3),b=e.retryDelay??hut,C=typeof b=="function"?b(n,y):b,k=w===!0||typeof w=="number"&&nc()?void 0:h()).then(()=>{t?p(y):m()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():h().then(m),a)}}function mut(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const a=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var ys=mut(),Om,Pie,s0e=(Pie=class{constructor(){Un(this,Om)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iut(this.gcTime)&&xn(this,Om,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r$?1/0:5*60*1e3))}clearGcTimeout(){Fe(this,Om)&&(clearTimeout(Fe(this,Om)),xn(this,Om,void 0))}},Om=new WeakMap,Pie),Zv,Qv,ec,Ao,F3,Rm,qc,Xd,Oie,gut=(Oie=class extends s0e{constructor(t){super();Un(this,qc);Un(this,Zv);Un(this,Qv);Un(this,ec);Un(this,Ao);Un(this,F3);Un(this,Rm);xn(this,Rm,!1),xn(this,F3,t.defaultOptions),this.setOptions(t.options),this.observers=[],xn(this,ec,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,xn(this,Zv,yut(this.options)),this.state=t.state??Fe(this,Zv),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Fe(this,Ao))==null?void 0:t.promise}setOptions(t){this.options={...Fe(this,F3),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Fe(this,ec).remove(this)}setData(t,n){const r=lut(this.state.data,t,this.options);return Dn(this,qc,Xd).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Dn(this,qc,Xd).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Fe(this,Ao))==null?void 0:r.promise;return(i=Fe(this,Ao))==null||i.cancel(t),n?n.then(Vc).catch(Vc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Fe(this,Zv))}isActive(){return this.observers.some(t=>out(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wz||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!aut(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Ao))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Fe(this,Ao))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Fe(this,ec).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Fe(this,Ao)&&(Fe(this,Rm)?Fe(this,Ao).cancel({revert:!0}):Fe(this,Ao).cancelRetry()),this.scheduleGc()),Fe(this,ec).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Dn(this,qc,Xd).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Fe(this,Ao))return Fe(this,Ao).continueRetry(),Fe(this,Ao).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(xn(this,Rm,!0),r.signal)})},a=()=>{const f=n0e(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),xn(this,Rm,!1),this.options.persister?this.options.persister(f,p,this):f(p)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),xn(this,Qv,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&Dn(this,qc,Xd).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const s=f=>{var p,h,m,g;CT(f)&&f.silent||Dn(this,qc,Xd).call(this,{type:"error",error:f}),CT(f)||((h=(p=Fe(this,ec).config).onError)==null||h.call(p,f,this),(g=(m=Fe(this,ec).config).onSettled)==null||g.call(m,this.state.data,f,this)),this.scheduleGc()};return xn(this,Ao,o0e({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,m,g;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(h=(p=Fe(this,ec).config).onSuccess)==null||h.call(p,f,this),(g=(m=Fe(this,ec).config).onSettled)==null||g.call(m,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,p)=>{Dn(this,qc,Xd).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Dn(this,qc,Xd).call(this,{type:"pause"})},onContinue:()=>{Dn(this,qc,Xd).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),Fe(this,Ao).start()}},Zv=new WeakMap,Qv=new WeakMap,ec=new WeakMap,Ao=new WeakMap,F3=new WeakMap,Rm=new WeakMap,qc=new WeakSet,Xd=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...vut(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return CT(i)&&i.revert&&Fe(this,Qv)?{...Fe(this,Qv),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ys.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Fe(this,ec).notify({query:this,type:"updated",action:t})})},Oie);function vut(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:i0e(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yut(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ku,Rie,but=(Rie=class extends n${constructor(t={}){super();Un(this,Ku);this.config=t,xn(this,Ku,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??bz(i,n);let o=this.get(a);return o||(o=new gut({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){Fe(this,Ku).has(t.queryHash)||(Fe(this,Ku).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Fe(this,Ku).get(t.queryHash);n&&(t.destroy(),n===t&&Fe(this,Ku).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ys.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Fe(this,Ku).get(t)}getAll(){return[...Fe(this,Ku).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>YZ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>YZ(t,r)):n}notify(t){ys.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ys.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ys.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ku=new WeakMap,Rie),Gu,cs,Im,Yu,yp,Iie,wut=(Iie=class extends s0e{constructor(t){super();Un(this,Yu);Un(this,Gu);Un(this,cs);Un(this,Im);this.mutationId=t.mutationId,xn(this,cs,t.mutationCache),xn(this,Gu,[]),this.state=t.state||xut(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Fe(this,Gu).includes(t)||(Fe(this,Gu).push(t),this.clearGcTimeout(),Fe(this,cs).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){xn(this,Gu,Fe(this,Gu).filter(n=>n!==t)),this.scheduleGc(),Fe(this,cs).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Fe(this,Gu).length||(this.state.status==="pending"?this.scheduleGc():Fe(this,cs).remove(this))}continue(){var t;return((t=Fe(this,Im))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,s,l,c,u,f,p,h,m,g,v,y,w,b,C,k,S,_;xn(this,Im,o0e({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,$)=>{Dn(this,Yu,yp).call(this,{type:"failed",failureCount:E,error:$})},onPause:()=>{Dn(this,Yu,yp).call(this,{type:"pause"})},onContinue:()=>{Dn(this,Yu,yp).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Fe(this,cs).canRun(this)}));const n=this.state.status==="pending",r=!Fe(this,Im).canStart();try{if(!n){Dn(this,Yu,yp).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=Fe(this,cs).config).onMutate)==null?void 0:a.call(i,t,this));const $=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));$!==this.state.context&&Dn(this,Yu,yp).call(this,{type:"pending",context:$,variables:t,isPaused:r})}const E=await Fe(this,Im).start();return await((c=(l=Fe(this,cs).config).onSuccess)==null?void 0:c.call(l,E,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,E,t,this.state.context)),await((h=(p=Fe(this,cs).config).onSettled)==null?void 0:h.call(p,E,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,E,null,t,this.state.context)),Dn(this,Yu,yp).call(this,{type:"success",data:E}),E}catch(E){try{throw await((y=(v=Fe(this,cs).config).onError)==null?void 0:y.call(v,E,t,this.state.context,this)),await((b=(w=this.options).onError)==null?void 0:b.call(w,E,t,this.state.context)),await((k=(C=Fe(this,cs).config).onSettled)==null?void 0:k.call(C,void 0,E,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,E,t,this.state.context)),E}finally{Dn(this,Yu,yp).call(this,{type:"error",error:E})}}finally{Fe(this,cs).runNext(this)}}},Gu=new WeakMap,cs=new WeakMap,Im=new WeakMap,Yu=new WeakSet,yp=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ys.batch(()=>{Fe(this,Gu).forEach(r=>{r.onMutationUpdate(t)}),Fe(this,cs).notify({mutation:this,type:"updated",action:t})})},Iie);function xut(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hl,L3,jie,Sut=(jie=class extends n${constructor(t={}){super();Un(this,hl);Un(this,L3);this.config=t,xn(this,hl,new Map),xn(this,L3,Date.now())}build(t,n,r){const i=new wut({mutationCache:this,mutationId:++Lh(this,L3)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=DS(t),r=Fe(this,hl).get(n)??[];r.push(t),Fe(this,hl).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=DS(t);if(Fe(this,hl).has(n)){const i=(r=Fe(this,hl).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?Fe(this,hl).delete(n):Fe(this,hl).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Fe(this,hl).get(DS(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Fe(this,hl).get(DS(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ys.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Fe(this,hl).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>XZ(n,r))}findAll(t={}){return this.getAll().filter(n=>XZ(t,n))}notify(t){ys.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ys.batch(()=>Promise.all(t.map(n=>n.continue().catch(Vc))))}},hl=new WeakMap,L3=new WeakMap,jie);function DS(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function JZ(e){return{onFetch:(t,n)=>{var u,f,p,h,m;const r=t.options,i=(p=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=n0e(t.options,t.fetchOptions),w=async(b,C,k)=>{if(g)return Promise.reject();if(C==null&&b.pages.length)return Promise.resolve(b);const S={queryKey:t.queryKey,pageParam:C,direction:k?"backward":"forward",meta:t.options.meta};v(S);const _=await y(S),{maxPages:E}=t.options,$=k?uut:cut;return{pages:$(b.pages,_,E),pageParams:$(b.pageParams,C,E)}};if(i&&a.length){const b=i==="backward",C=b?Cut:eQ,k={pages:a,pageParams:o},S=C(r,k);s=await w(k,S,b)}else{const b=e??a.length;do{const C=l===0?o[0]??r.initialPageParam:eQ(r,s);if(l>0&&C==null)break;s=await w(s,C),l++}while(l{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function eQ(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Cut(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ca,Pp,Op,Jv,e0,Rp,t0,n0,Nie,_ut=(Nie=class{constructor(e={}){Un(this,ca);Un(this,Pp);Un(this,Op);Un(this,Jv);Un(this,e0);Un(this,Rp);Un(this,t0);Un(this,n0);xn(this,ca,e.queryCache||new but),xn(this,Pp,e.mutationCache||new Sut),xn(this,Op,e.defaultOptions||{}),xn(this,Jv,new Map),xn(this,e0,new Map),xn(this,Rp,0)}mount(){Lh(this,Rp)._++,Fe(this,Rp)===1&&(xn(this,t0,r0e.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,ca).onFocus())})),xn(this,n0,j6.subscribe(async e=>{e&&(await this.resumePausedMutations(),Fe(this,ca).onOnline())})))}unmount(){var e,t;Lh(this,Rp)._--,Fe(this,Rp)===0&&((e=Fe(this,t0))==null||e.call(this),xn(this,t0,void 0),(t=Fe(this,n0))==null||t.call(this),xn(this,n0,void 0))}isFetching(e){return Fe(this,ca).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Fe(this,Pp).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,ca).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Fe(this,ca).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(GZ(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Fe(this,ca).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Fe(this,ca).get(r.queryHash),a=i==null?void 0:i.state.data,o=rut(t,a);if(o!==void 0)return Fe(this,ca).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ys.batch(()=>Fe(this,ca).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Fe(this,ca).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Fe(this,ca);ys.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Fe(this,ca),r={type:"active",...e};return ys.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ys.batch(()=>Fe(this,ca).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Vc).catch(Vc)}invalidateQueries(e={},t={}){return ys.batch(()=>{if(Fe(this,ca).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ys.batch(()=>Fe(this,ca).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Vc)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Vc)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Fe(this,ca).build(this,t);return n.isStaleByTime(GZ(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Vc).catch(Vc)}fetchInfiniteQuery(e){return e.behavior=JZ(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Vc).catch(Vc)}ensureInfiniteQueryData(e){return e.behavior=JZ(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return j6.isOnline()?Fe(this,Pp).resumePausedMutations():Promise.resolve()}getQueryCache(){return Fe(this,ca)}getMutationCache(){return Fe(this,Pp)}getDefaultOptions(){return Fe(this,Op)}setDefaultOptions(e){xn(this,Op,e)}setQueryDefaults(e,t){Fe(this,Jv).set(d3(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Fe(this,Jv).values()];let n={};return t.forEach(r=>{f3(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Fe(this,e0).set(d3(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Fe(this,e0).values()];let n={};return t.forEach(r=>{f3(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Fe(this,Op).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bz(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===wz&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Fe(this,Op).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Fe(this,ca).clear(),Fe(this,Pp).clear()}},ca=new WeakMap,Pp=new WeakMap,Op=new WeakMap,Jv=new WeakMap,e0=new WeakMap,Rp=new WeakMap,t0=new WeakMap,n0=new WeakMap,Nie),kut=d.createContext(void 0),Eut=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(kut.Provider,{value:e,children:t}));/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. @@ -482,8 +482,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function L0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Tut(){return Math.random().toString(36).substr(2,8)}function nQ(e,t){return{usr:e.state,key:e.key,idx:t}}function p3(e,t,n,r){return n===void 0&&(n=null),qi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ch(t):t,{state:n,key:t&&t.key||r||Tut()})}function _g(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ch(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Put(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Ta.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(qi({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=Ta.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:y})}function p(v,y){s=Ta.Push;let w=p3(g.location,v,y);c=u()+1;let b=nQ(w,c),C=g.createHref(w);try{o.pushState(b,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(C)}a&&l&&l({action:s,location:g.location,delta:1})}function h(v,y){s=Ta.Replace;let w=p3(g.location,v,y);c=u();let b=nQ(w,c),C=g.createHref(w);o.replaceState(b,"",C),a&&l&&l({action:s,location:g.location,delta:0})}function m(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof v=="string"?v:_g(v);return w=w.replace(/ $/,"%20"),jr(y,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,y)}let g={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(tQ,f),l=v,()=>{i.removeEventListener(tQ,f),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let y=m(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(v){return o.go(v)}};return g}var gi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gi||(gi={}));const Out=new Set(["lazy","caseSensitive","path","id","index","children"]);function Rut(e){return e.index===!0}function A6(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(jr(i.index!==!0||!i.children,"Cannot specify children on an index route"),jr(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Rut(i)){let l=qi({},i,t(i),{id:s});return r[s]=l,l}else{let l=qi({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=A6(i.children,t,o,r)),l}})}function lm(e,t,n){return n===void 0&&(n="/"),u_(e,t,n,!1)}function u_(e,t,n,r){let i=typeof t=="string"?Ch(t):t,a=Ly(i.pathname||"/",n);if(a==null)return null;let o=c0e(e);jut(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(jr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=wf([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(jr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),c0e(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:zut(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of u0e(a.path))i(a,o,l)}),t}function u0e(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=u0e(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function jut(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Hut(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Nut=/^:[\w-]+$/,Aut=3,Dut=2,Fut=1,Lut=10,But=-2,rQ=e=>e==="*";function zut(e,t){let n=e.split("/"),r=n.length;return n.some(rQ)&&(r+=But),t&&(r+=Dut),n.filter(i=>!rQ(i)).reduce((i,a)=>i+(Nut.test(a)?Aut:a===""?Fut:Lut),r)}function Hut(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Uut(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:p,isOptional:h}=u;if(p==="*"){let g=s[f]||"";o=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[f];return h&&!m?c[p]=void 0:c[p]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function Wut(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),L0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Vut(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return L0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ly(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function qut(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ch(e):e;return{pathname:n?n.startsWith("/")?n:Kut(n,t):t,search:Yut(r),hash:Xut(i)}}function Kut(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function _T(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function d0e(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function i$(e,t){let n=d0e(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function a$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ch(e):(i=qi({},e),jr(!i.pathname||!i.pathname.includes("?"),_T("?","pathname","search",i)),jr(!i.pathname||!i.pathname.includes("#"),_T("#","pathname","hash",i)),jr(!i.search||!i.search.includes("#"),_T("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=qut(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const wf=e=>e.join("/").replace(/\/\/+/g,"/"),Gut=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Yut=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Xut=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class D6{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function o$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const f0e=["post","put","patch","delete"],Zut=new Set(f0e),Qut=["get",...f0e],Jut=new Set(Qut),edt=new Set([301,302,303,307,308]),tdt=new Set([307,308]),kT={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ndt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zb={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},xz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rdt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),p0e="remix-router-transitions";function idt(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;jr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let Ne=e.detectErrorBoundary;i=He=>({hasErrorBoundary:Ne(He)})}else i=rdt;let a={},o=A6(e.routes,i,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||ldt,u=e.patchRoutesOnNavigation,f=qi({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,m=null,g=null,v=null,y=e.hydrationData!=null,w=lm(o,e.history.location,l),b=null;if(w==null&&!u){let Ne=Os(404,{pathname:e.history.location.pathname}),{matches:He,route:Le}=mQ(o);w=He,b={[Le.id]:Ne}}w&&!e.hydrationData&&jt(w,o,e.history.location.pathname).active&&(w=null);let C;if(w)if(w.some(Ne=>Ne.route.lazy))C=!1;else if(!w.some(Ne=>Ne.route.loader))C=!0;else if(f.v7_partialHydration){let Ne=e.hydrationData?e.hydrationData.loaderData:null,He=e.hydrationData?e.hydrationData.errors:null;if(He){let Le=w.findIndex(Je=>He[Je.route.id]!==void 0);C=w.slice(0,Le+1).every(Je=>!cN(Je.route,Ne,He))}else C=w.every(Le=>!cN(Le.route,Ne,He))}else C=e.hydrationData!=null;else if(C=!1,w=[],f.v7_partialHydration){let Ne=jt(null,o,e.history.location.pathname);Ne.active&&Ne.matches&&(w=Ne.matches)}let k,S={historyAction:e.history.action,location:e.history.location,matches:w,initialized:C,navigation:kT,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},_=Ta.Pop,E=!1,$,M=!1,P=new Map,R=null,O=!1,j=!1,I=[],A=new Set,N=new Map,F=0,K=-1,L=new Map,V=new Set,B=new Map,U=new Map,Y=new Set,ee=new Map,ie=new Map,Z;function X(){if(p=e.history.listen(Ne=>{let{action:He,location:Le,delta:Je}=Ne;if(Z){Z(),Z=void 0;return}L0(ie.size===0||Je!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let pt=Ke({currentLocation:S.location,nextLocation:Le,historyAction:He});if(pt&&Je!=null){let xt=new Promise(Nt=>{Z=Nt});e.history.go(Je*-1),Xe(pt,{state:"blocked",location:Le,proceed(){Xe(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),xt.then(()=>e.history.go(Je))},reset(){let Nt=new Map(S.blockers);Nt.set(pt,zb),le({blockers:Nt})}});return}return re(He,Le)}),n){Sdt(t,P);let Ne=()=>Cdt(t,P);t.addEventListener("pagehide",Ne),R=()=>t.removeEventListener("pagehide",Ne)}return S.initialized||re(Ta.Pop,S.location,{initialHydration:!0}),k}function ae(){p&&p(),R&&R(),h.clear(),$&&$.abort(),S.fetchers.forEach((Ne,He)=>xe(He)),S.blockers.forEach((Ne,He)=>Be(He))}function oe(Ne){return h.add(Ne),()=>h.delete(Ne)}function le(Ne,He){He===void 0&&(He={}),S=qi({},S,Ne);let Le=[],Je=[];f.v7_fetcherPersist&&S.fetchers.forEach((pt,xt)=>{pt.state==="idle"&&(Y.has(xt)?Je.push(xt):Le.push(xt))}),[...h].forEach(pt=>pt(S,{deletedFetchers:Je,viewTransitionOpts:He.viewTransitionOpts,flushSync:He.flushSync===!0})),f.v7_fetcherPersist&&(Le.forEach(pt=>S.fetchers.delete(pt)),Je.forEach(pt=>xe(pt)))}function ce(Ne,He,Le){var Je,pt;let{flushSync:xt}=Le===void 0?{}:Le,Nt=S.actionData!=null&&S.navigation.formMethod!=null&&Xc(S.navigation.formMethod)&&S.navigation.state==="loading"&&((Je=Ne.state)==null?void 0:Je._isRedirect)!==!0,Ot;He.actionData?Object.keys(He.actionData).length>0?Ot=He.actionData:Ot=null:Nt?Ot=S.actionData:Ot=null;let Pt=He.loaderData?pQ(S.loaderData,He.loaderData,He.matches||[],He.errors):S.loaderData,st=S.blockers;st.size>0&&(st=new Map(st),st.forEach((qt,vt)=>st.set(vt,zb)));let Ct=E===!0||S.navigation.formMethod!=null&&Xc(S.navigation.formMethod)&&((pt=Ne.state)==null?void 0:pt._isRedirect)!==!0;s&&(o=s,s=void 0),O||_===Ta.Pop||(_===Ta.Push?e.history.push(Ne,Ne.state):_===Ta.Replace&&e.history.replace(Ne,Ne.state));let kt;if(_===Ta.Pop){let qt=P.get(S.location.pathname);qt&&qt.has(Ne.pathname)?kt={currentLocation:S.location,nextLocation:Ne}:P.has(Ne.pathname)&&(kt={currentLocation:Ne,nextLocation:S.location})}else if(M){let qt=P.get(S.location.pathname);qt?qt.add(Ne.pathname):(qt=new Set([Ne.pathname]),P.set(S.location.pathname,qt)),kt={currentLocation:S.location,nextLocation:Ne}}le(qi({},He,{actionData:Ot,loaderData:Pt,historyAction:_,location:Ne,initialized:!0,navigation:kT,revalidation:"idle",restoreScrollPosition:nt(Ne,He.matches||S.matches),preventScrollReset:Ct,blockers:st}),{viewTransitionOpts:kt,flushSync:xt===!0}),_=Ta.Pop,E=!1,M=!1,O=!1,j=!1,I=[]}async function pe(Ne,He){if(typeof Ne=="number"){e.history.go(Ne);return}let Le=lN(S.location,S.matches,l,f.v7_prependBasename,Ne,f.v7_relativeSplatPath,He==null?void 0:He.fromRouteId,He==null?void 0:He.relative),{path:Je,submission:pt,error:xt}=aQ(f.v7_normalizeFormMethod,!1,Le,He),Nt=S.location,Ot=p3(S.location,Je,He&&He.state);Ot=qi({},Ot,e.history.encodeLocation(Ot));let Pt=He&&He.replace!=null?He.replace:void 0,st=Ta.Push;Pt===!0?st=Ta.Replace:Pt===!1||pt!=null&&Xc(pt.formMethod)&&pt.formAction===S.location.pathname+S.location.search&&(st=Ta.Replace);let Ct=He&&"preventScrollReset"in He?He.preventScrollReset===!0:void 0,kt=(He&&He.flushSync)===!0,qt=Ke({currentLocation:Nt,nextLocation:Ot,historyAction:st});if(qt){Xe(qt,{state:"blocked",location:Ot,proceed(){Xe(qt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ot}),pe(Ne,He)},reset(){let vt=new Map(S.blockers);vt.set(qt,zb),le({blockers:vt})}});return}return await re(st,Ot,{submission:pt,pendingError:xt,preventScrollReset:Ct,replace:He&&He.replace,enableViewTransition:He&&He.viewTransition,flushSync:kt})}function me(){if(z(),le({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){re(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}re(_||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:M===!0})}}async function re(Ne,He,Le){$&&$.abort(),$=null,_=Ne,O=(Le&&Le.startUninterruptedRevalidation)===!0,Qe(S.location,S.matches),E=(Le&&Le.preventScrollReset)===!0,M=(Le&&Le.enableViewTransition)===!0;let Je=s||o,pt=Le&&Le.overrideNavigation,xt=lm(Je,He,l),Nt=(Le&&Le.flushSync)===!0,Ot=jt(xt,Je,He.pathname);if(Ot.active&&Ot.matches&&(xt=Ot.matches),!xt){let{error:At,notFoundMatches:dt,route:De}=qe(He.pathname);ce(He,{matches:dt,loaderData:{},errors:{[De.id]:At}},{flushSync:Nt});return}if(S.initialized&&!j&&hdt(S.location,He)&&!(Le&&Le.submission&&Xc(Le.submission.formMethod))){ce(He,{matches:xt},{flushSync:Nt});return}$=new AbortController;let Pt=L1(e.history,He,$.signal,Le&&Le.submission),st;if(Le&&Le.pendingError)st=[cm(xt).route.id,{type:gi.error,error:Le.pendingError}];else if(Le&&Le.submission&&Xc(Le.submission.formMethod)){let At=await fe(Pt,He,Le.submission,xt,Ot.active,{replace:Le.replace,flushSync:Nt});if(At.shortCircuited)return;if(At.pendingActionResult){let[dt,De]=At.pendingActionResult;if(bl(De)&&o$(De.error)&&De.error.status===404){$=null,ce(He,{matches:At.matches,loaderData:{},errors:{[dt]:De.error}});return}}xt=At.matches||xt,st=At.pendingActionResult,pt=ET(He,Le.submission),Nt=!1,Ot.active=!1,Pt=L1(e.history,Pt.url,Pt.signal)}let{shortCircuited:Ct,matches:kt,loaderData:qt,errors:vt}=await ve(Pt,He,xt,Ot.active,pt,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Nt,st);Ct||($=null,ce(He,qi({matches:kt||xt},hQ(st),{loaderData:qt,errors:vt})))}async function fe(Ne,He,Le,Je,pt,xt){xt===void 0&&(xt={}),z();let Nt=wdt(He,Le);if(le({navigation:Nt},{flushSync:xt.flushSync===!0}),pt){let st=await Lt(Je,He.pathname,Ne.signal);if(st.type==="aborted")return{shortCircuited:!0};if(st.type==="error"){let Ct=cm(st.partialMatches).route.id;return{matches:st.partialMatches,pendingActionResult:[Ct,{type:gi.error,error:st.error}]}}else if(st.matches)Je=st.matches;else{let{notFoundMatches:Ct,error:kt,route:qt}=qe(He.pathname);return{matches:Ct,pendingActionResult:[qt.id,{type:gi.error,error:kt}]}}}let Ot,Pt=$2(Je,He);if(!Pt.route.action&&!Pt.route.lazy)Ot={type:gi.error,error:Os(405,{method:Ne.method,pathname:He.pathname,routeId:Pt.route.id})};else if(Ot=(await ye("action",S,Ne,[Pt],Je,null))[Pt.route.id],Ne.signal.aborted)return{shortCircuited:!0};if($m(Ot)){let st;return xt&&xt.replace!=null?st=xt.replace:st=uQ(Ot.response.headers.get("Location"),new URL(Ne.url),l)===S.location.pathname+S.location.search,await se(Ne,Ot,!0,{submission:Le,replace:st}),{shortCircuited:!0}}if(zp(Ot))throw Os(400,{type:"defer-action"});if(bl(Ot)){let st=cm(Je,Pt.route.id);return(xt&&xt.replace)!==!0&&(_=Ta.Push),{matches:Je,pendingActionResult:[st.route.id,Ot]}}return{matches:Je,pendingActionResult:[Pt.route.id,Ot]}}async function ve(Ne,He,Le,Je,pt,xt,Nt,Ot,Pt,st,Ct){let kt=pt||ET(He,xt),qt=xt||Nt||vQ(kt),vt=!O&&(!f.v7_partialHydration||!Pt);if(Je){if(vt){let D=$e(Ct);le(qi({navigation:kt},D!==void 0?{actionData:D}:{}),{flushSync:st})}let T=await Lt(Le,He.pathname,Ne.signal);if(T.type==="aborted")return{shortCircuited:!0};if(T.type==="error"){let D=cm(T.partialMatches).route.id;return{matches:T.partialMatches,loaderData:{},errors:{[D]:T.error}}}else if(T.matches)Le=T.matches;else{let{error:D,notFoundMatches:J,route:ke}=qe(He.pathname);return{matches:J,loaderData:{},errors:{[ke.id]:D}}}}let At=s||o,[dt,De]=sQ(e.history,S,Le,qt,He,f.v7_partialHydration&&Pt===!0,f.v7_skipActionErrorRevalidation,j,I,A,Y,B,V,At,l,Ct);if(Et(T=>!(Le&&Le.some(D=>D.route.id===T))||dt&&dt.some(D=>D.route.id===T)),K=++F,dt.length===0&&De.length===0){let T=ge();return ce(He,qi({matches:Le,loaderData:{},errors:Ct&&bl(Ct[1])?{[Ct[0]]:Ct[1].error}:null},hQ(Ct),T?{fetchers:new Map(S.fetchers)}:{}),{flushSync:st}),{shortCircuited:!0}}if(vt){let T={};if(!Je){T.navigation=kt;let D=$e(Ct);D!==void 0&&(T.actionData=D)}De.length>0&&(T.fetchers=Ce(De)),le(T,{flushSync:st})}De.forEach(T=>{Ue(T.key),T.controller&&N.set(T.key,T.controller)});let Ye=()=>De.forEach(T=>Ue(T.key));$&&$.signal.addEventListener("abort",Ye);let{loaderResults:ot,fetcherResults:Re}=await Oe(S,Le,dt,De,Ne);if(Ne.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ye),De.forEach(T=>N.delete(T.key));let It=LS(ot);if(It)return await se(Ne,It.result,!0,{replace:Ot}),{shortCircuited:!0};if(It=LS(Re),It)return V.add(It.key),await se(Ne,It.result,!0,{replace:Ot}),{shortCircuited:!0};let{loaderData:rt,errors:$t}=fQ(S,Le,ot,Ct,De,Re,ee);ee.forEach((T,D)=>{T.subscribe(J=>{(J||T.done)&&ee.delete(D)})}),f.v7_partialHydration&&Pt&&S.errors&&($t=qi({},S.errors,$t));let Mt=ge(),dn=ze(K),pn=Mt||dn||De.length>0;return qi({matches:Le,loaderData:rt,errors:$t},pn?{fetchers:new Map(S.fetchers)}:{})}function $e(Ne){if(Ne&&!bl(Ne[1]))return{[Ne[0]]:Ne[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Ce(Ne){return Ne.forEach(He=>{let Le=S.fetchers.get(He.key),Je=Hb(void 0,Le?Le.data:void 0);S.fetchers.set(He.key,Je)}),new Map(S.fetchers)}function be(Ne,He,Le,Je){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ue(Ne);let pt=(Je&&Je.flushSync)===!0,xt=s||o,Nt=lN(S.location,S.matches,l,f.v7_prependBasename,Le,f.v7_relativeSplatPath,He,Je==null?void 0:Je.relative),Ot=lm(xt,Nt,l),Pt=jt(Ot,xt,Nt);if(Pt.active&&Pt.matches&&(Ot=Pt.matches),!Ot){G(Ne,He,Os(404,{pathname:Nt}),{flushSync:pt});return}let{path:st,submission:Ct,error:kt}=aQ(f.v7_normalizeFormMethod,!0,Nt,Je);if(kt){G(Ne,He,kt,{flushSync:pt});return}let qt=$2(Ot,st),vt=(Je&&Je.preventScrollReset)===!0;if(Ct&&Xc(Ct.formMethod)){Se(Ne,He,st,qt,Ot,Pt.active,pt,vt,Ct);return}B.set(Ne,{routeId:He,path:st}),we(Ne,He,st,qt,Ot,Pt.active,pt,vt,Ct)}async function Se(Ne,He,Le,Je,pt,xt,Nt,Ot,Pt){z(),B.delete(Ne);function st(Ie){if(!Ie.route.action&&!Ie.route.lazy){let it=Os(405,{method:Pt.formMethod,pathname:Le,routeId:He});return G(Ne,He,it,{flushSync:Nt}),!0}return!1}if(!xt&&st(Je))return;let Ct=S.fetchers.get(Ne);H(Ne,xdt(Pt,Ct),{flushSync:Nt});let kt=new AbortController,qt=L1(e.history,Le,kt.signal,Pt);if(xt){let Ie=await Lt(pt,Le,qt.signal);if(Ie.type==="aborted")return;if(Ie.type==="error"){G(Ne,He,Ie.error,{flushSync:Nt});return}else if(Ie.matches){if(pt=Ie.matches,Je=$2(pt,Le),st(Je))return}else{G(Ne,He,Os(404,{pathname:Le}),{flushSync:Nt});return}}N.set(Ne,kt);let vt=F,dt=(await ye("action",S,qt,[Je],pt,Ne))[Je.route.id];if(qt.signal.aborted){N.get(Ne)===kt&&N.delete(Ne);return}if(f.v7_fetcherPersist&&Y.has(Ne)){if($m(dt)||bl(dt)){H(Ne,bp(void 0));return}}else{if($m(dt))if(N.delete(Ne),K>vt){H(Ne,bp(void 0));return}else return V.add(Ne),H(Ne,Hb(Pt)),se(qt,dt,!1,{fetcherSubmission:Pt,preventScrollReset:Ot});if(bl(dt)){G(Ne,He,dt.error);return}}if(zp(dt))throw Os(400,{type:"defer-action"});let De=S.navigation.location||S.location,Ye=L1(e.history,De,kt.signal),ot=s||o,Re=S.navigation.state!=="idle"?lm(ot,S.navigation.location,l):S.matches;jr(Re,"Didn't find any matches after fetcher action");let It=++F;L.set(Ne,It);let rt=Hb(Pt,dt.data);S.fetchers.set(Ne,rt);let[$t,Mt]=sQ(e.history,S,Re,Pt,De,!1,f.v7_skipActionErrorRevalidation,j,I,A,Y,B,V,ot,l,[Je.route.id,dt]);Mt.filter(Ie=>Ie.key!==Ne).forEach(Ie=>{let it=Ie.key,Ft=S.fetchers.get(it),rn=Hb(void 0,Ft?Ft.data:void 0);S.fetchers.set(it,rn),Ue(it),Ie.controller&&N.set(it,Ie.controller)}),le({fetchers:new Map(S.fetchers)});let dn=()=>Mt.forEach(Ie=>Ue(Ie.key));kt.signal.addEventListener("abort",dn);let{loaderResults:pn,fetcherResults:T}=await Oe(S,Re,$t,Mt,Ye);if(kt.signal.aborted)return;kt.signal.removeEventListener("abort",dn),L.delete(Ne),N.delete(Ne),Mt.forEach(Ie=>N.delete(Ie.key));let D=LS(pn);if(D)return se(Ye,D.result,!1,{preventScrollReset:Ot});if(D=LS(T),D)return V.add(D.key),se(Ye,D.result,!1,{preventScrollReset:Ot});let{loaderData:J,errors:ke}=fQ(S,Re,pn,void 0,Mt,T,ee);if(S.fetchers.has(Ne)){let Ie=bp(dt.data);S.fetchers.set(Ne,Ie)}ze(It),S.navigation.state==="loading"&&It>K?(jr(_,"Expected pending action"),$&&$.abort(),ce(S.navigation.location,{matches:Re,loaderData:J,errors:ke,fetchers:new Map(S.fetchers)})):(le({errors:ke,loaderData:pQ(S.loaderData,J,Re,ke),fetchers:new Map(S.fetchers)}),j=!1)}async function we(Ne,He,Le,Je,pt,xt,Nt,Ot,Pt){let st=S.fetchers.get(Ne);H(Ne,Hb(Pt,st?st.data:void 0),{flushSync:Nt});let Ct=new AbortController,kt=L1(e.history,Le,Ct.signal);if(xt){let dt=await Lt(pt,Le,kt.signal);if(dt.type==="aborted")return;if(dt.type==="error"){G(Ne,He,dt.error,{flushSync:Nt});return}else if(dt.matches)pt=dt.matches,Je=$2(pt,Le);else{G(Ne,He,Os(404,{pathname:Le}),{flushSync:Nt});return}}N.set(Ne,Ct);let qt=F,At=(await ye("loader",S,kt,[Je],pt,Ne))[Je.route.id];if(zp(At)&&(At=await Sz(At,kt.signal,!0)||At),N.get(Ne)===Ct&&N.delete(Ne),!kt.signal.aborted){if(Y.has(Ne)){H(Ne,bp(void 0));return}if($m(At))if(K>qt){H(Ne,bp(void 0));return}else{V.add(Ne),await se(kt,At,!1,{preventScrollReset:Ot});return}if(bl(At)){G(Ne,He,At.error);return}jr(!zp(At),"Unhandled fetcher deferred data"),H(Ne,bp(At.data))}}async function se(Ne,He,Le,Je){let{submission:pt,fetcherSubmission:xt,preventScrollReset:Nt,replace:Ot}=Je===void 0?{}:Je;He.response.headers.has("X-Remix-Revalidate")&&(j=!0);let Pt=He.response.headers.get("Location");jr(Pt,"Expected a Location header on the redirect Response"),Pt=uQ(Pt,new URL(Ne.url),l);let st=p3(S.location,Pt,{_isRedirect:!0});if(n){let dt=!1;if(He.response.headers.has("X-Remix-Reload-Document"))dt=!0;else if(xz.test(Pt)){const De=e.history.createURL(Pt);dt=De.origin!==t.location.origin||Ly(De.pathname,l)==null}if(dt){Ot?t.location.replace(Pt):t.location.assign(Pt);return}}$=null;let Ct=Ot===!0||He.response.headers.has("X-Remix-Replace")?Ta.Replace:Ta.Push,{formMethod:kt,formAction:qt,formEncType:vt}=S.navigation;!pt&&!xt&&kt&&qt&&vt&&(pt=vQ(S.navigation));let At=pt||xt;if(tdt.has(He.response.status)&&At&&Xc(At.formMethod))await re(Ct,st,{submission:qi({},At,{formAction:Pt}),preventScrollReset:Nt||E,enableViewTransition:Le?M:void 0});else{let dt=ET(st,pt);await re(Ct,st,{overrideNavigation:dt,fetcherSubmission:xt,preventScrollReset:Nt||E,enableViewTransition:Le?M:void 0})}}async function ye(Ne,He,Le,Je,pt,xt){let Nt,Ot={};try{Nt=await cdt(c,Ne,He,Le,Je,pt,xt,a,i)}catch(Pt){return Je.forEach(st=>{Ot[st.route.id]={type:gi.error,error:Pt}}),Ot}for(let[Pt,st]of Object.entries(Nt))if(mdt(st)){let Ct=st.result;Ot[Pt]={type:gi.redirect,response:fdt(Ct,Le,Pt,pt,l,f.v7_relativeSplatPath)}}else Ot[Pt]=await ddt(st);return Ot}async function Oe(Ne,He,Le,Je,pt){let xt=Ne.matches,Nt=ye("loader",Ne,pt,Le,He,null),Ot=Promise.all(Je.map(async Ct=>{if(Ct.matches&&Ct.match&&Ct.controller){let qt=(await ye("loader",Ne,L1(e.history,Ct.path,Ct.controller.signal),[Ct.match],Ct.matches,Ct.key))[Ct.match.route.id];return{[Ct.key]:qt}}else return Promise.resolve({[Ct.key]:{type:gi.error,error:Os(404,{pathname:Ct.path})}})})),Pt=await Nt,st=(await Ot).reduce((Ct,kt)=>Object.assign(Ct,kt),{});return await Promise.all([ydt(He,Pt,pt.signal,xt,Ne.loaderData),bdt(He,st,Je)]),{loaderResults:Pt,fetcherResults:st}}function z(){j=!0,I.push(...Et()),B.forEach((Ne,He)=>{N.has(He)&&A.add(He),Ue(He)})}function H(Ne,He,Le){Le===void 0&&(Le={}),S.fetchers.set(Ne,He),le({fetchers:new Map(S.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function G(Ne,He,Le,Je){Je===void 0&&(Je={});let pt=cm(S.matches,He);xe(Ne),le({errors:{[pt.route.id]:Le},fetchers:new Map(S.fetchers)},{flushSync:(Je&&Je.flushSync)===!0})}function de(Ne){return f.v7_fetcherPersist&&(U.set(Ne,(U.get(Ne)||0)+1),Y.has(Ne)&&Y.delete(Ne)),S.fetchers.get(Ne)||ndt}function xe(Ne){let He=S.fetchers.get(Ne);N.has(Ne)&&!(He&&He.state==="loading"&&L.has(Ne))&&Ue(Ne),B.delete(Ne),L.delete(Ne),V.delete(Ne),Y.delete(Ne),A.delete(Ne),S.fetchers.delete(Ne)}function he(Ne){if(f.v7_fetcherPersist){let He=(U.get(Ne)||0)-1;He<=0?(U.delete(Ne),Y.add(Ne)):U.set(Ne,He)}else xe(Ne);le({fetchers:new Map(S.fetchers)})}function Ue(Ne){let He=N.get(Ne);He&&(He.abort(),N.delete(Ne))}function We(Ne){for(let He of Ne){let Le=de(He),Je=bp(Le.data);S.fetchers.set(He,Je)}}function ge(){let Ne=[],He=!1;for(let Le of V){let Je=S.fetchers.get(Le);jr(Je,"Expected fetcher: "+Le),Je.state==="loading"&&(V.delete(Le),Ne.push(Le),He=!0)}return We(Ne),He}function ze(Ne){let He=[];for(let[Le,Je]of L)if(Je0}function Ve(Ne,He){let Le=S.blockers.get(Ne)||zb;return ie.get(Ne)!==He&&ie.set(Ne,He),Le}function Be(Ne){S.blockers.delete(Ne),ie.delete(Ne)}function Xe(Ne,He){let Le=S.blockers.get(Ne)||zb;jr(Le.state==="unblocked"&&He.state==="blocked"||Le.state==="blocked"&&He.state==="blocked"||Le.state==="blocked"&&He.state==="proceeding"||Le.state==="blocked"&&He.state==="unblocked"||Le.state==="proceeding"&&He.state==="unblocked","Invalid blocker state transition: "+Le.state+" -> "+He.state);let Je=new Map(S.blockers);Je.set(Ne,He),le({blockers:Je})}function Ke(Ne){let{currentLocation:He,nextLocation:Le,historyAction:Je}=Ne;if(ie.size===0)return;ie.size>1&&L0(!1,"A router only supports one blocker at a time");let pt=Array.from(ie.entries()),[xt,Nt]=pt[pt.length-1],Ot=S.blockers.get(xt);if(!(Ot&&Ot.state==="proceeding")&&Nt({currentLocation:He,nextLocation:Le,historyAction:Je}))return xt}function qe(Ne){let He=Os(404,{pathname:Ne}),Le=s||o,{matches:Je,route:pt}=mQ(Le);return Et(),{notFoundMatches:Je,route:pt,error:He}}function Et(Ne){let He=[];return ee.forEach((Le,Je)=>{(!Ne||Ne(Je))&&(Le.cancel(),He.push(Je),ee.delete(Je))}),He}function ut(Ne,He,Le){if(m=Ne,v=He,g=Le||null,!y&&S.navigation===kT){y=!0;let Je=nt(S.location,S.matches);Je!=null&&le({restoreScrollPosition:Je})}return()=>{m=null,v=null,g=null}}function gt(Ne,He){return g&&g(Ne,He.map(Je=>Iut(Je,S.loaderData)))||Ne.key}function Qe(Ne,He){if(m&&v){let Le=gt(Ne,He);m[Le]=v()}}function nt(Ne,He){if(m){let Le=gt(Ne,He),Je=m[Le];if(typeof Je=="number")return Je}return null}function jt(Ne,He,Le){if(u)if(Ne){if(Object.keys(Ne[0].params).length>0)return{active:!0,matches:u_(He,Le,l,!0)}}else return{active:!0,matches:u_(He,Le,l,!0)||[]};return{active:!1,matches:null}}async function Lt(Ne,He,Le){if(!u)return{type:"success",matches:Ne};let Je=Ne;for(;;){let pt=s==null,xt=s||o,Nt=a;try{await u({path:He,matches:Je,patch:(st,Ct)=>{Le.aborted||cQ(st,Ct,xt,Nt,i)}})}catch(st){return{type:"error",error:st,partialMatches:Je}}finally{pt&&!Le.aborted&&(o=[...o])}if(Le.aborted)return{type:"aborted"};let Ot=lm(xt,He,l);if(Ot)return{type:"success",matches:Ot};let Pt=u_(xt,He,l,!0);if(!Pt||Je.length===Pt.length&&Je.every((st,Ct)=>st.route.id===Pt[Ct].route.id))return{type:"success",matches:null};Je=Pt}}function Bt(Ne){a={},s=A6(Ne,i,void 0,a)}function Ut(Ne,He){let Le=s==null;cQ(Ne,He,s||o,a,i),Le&&(o=[...o],le({}))}return k={get basename(){return l},get future(){return f},get state(){return S},get routes(){return o},get window(){return t},initialize:X,subscribe:oe,enableScrollRestoration:ut,navigate:pe,fetch:be,revalidate:me,createHref:Ne=>e.history.createHref(Ne),encodeLocation:Ne=>e.history.encodeLocation(Ne),getFetcher:de,deleteFetcher:he,dispose:ae,getBlocker:Ve,deleteBlocker:Be,patchRoutes:Ut,_internalFetchControllers:N,_internalActiveDeferreds:ee,_internalSetRoutes:Bt},k}function adt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function lN(e,t,n,r,i,a,o,s){let l,c;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){c=f;break}}else l=t,c=t[t.length-1];let u=a$(i||".",i$(l,a),Ly(e.pathname,n)||e.pathname,s==="path");if(i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c){let f=Cz(u.search);if(c.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let p=new URLSearchParams(u.search),h=p.getAll("index");p.delete("index"),h.filter(g=>g).forEach(g=>p.append("index",g));let m=p.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:wf([n,u.pathname])),_g(u)}function aQ(e,t,n,r){if(!r||!adt(r))return{path:n};if(r.formMethod&&!vdt(r.formMethod))return{path:n,error:Os(405,{method:r.formMethod})};let i=()=>({path:n,error:Os(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=g0e(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Xc(o))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[g,v]=m;return""+h+g+"="+v+` -`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Xc(o))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}jr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=uN(r.formData),c=r.formData;else if(r.body instanceof FormData)l=uN(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=dQ(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=dQ(l)}catch{return i()}let u={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Xc(u.formMethod))return{path:n,submission:u};let f=Ch(n);return t&&f.search&&Cz(f.search)&&l.append("index",""),f.search="?"+l,{path:_g(f),submission:u}}function oQ(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function sQ(e,t,n,r,i,a,o,s,l,c,u,f,p,h,m,g){let v=g?bl(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),w=e.createURL(i),b=n;a&&t.errors?b=oQ(n,Object.keys(t.errors)[0],!0):g&&bl(g[1])&&(b=oQ(n,g[0]));let C=g?g[1].statusCode:void 0,k=o&&C&&C>=400,S=b.filter((E,$)=>{let{route:M}=E;if(M.lazy)return!0;if(M.loader==null)return!1;if(a)return cN(M,t.loaderData,t.errors);if(odt(t.loaderData,t.matches[$],E)||l.some(O=>O===E.route.id))return!0;let P=t.matches[$],R=E;return lQ(E,qi({currentUrl:y,currentParams:P.params,nextUrl:w,nextParams:R.params},r,{actionResult:v,actionStatus:C,defaultShouldRevalidate:k?!1:s||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||h0e(P,R)}))}),_=[];return f.forEach((E,$)=>{if(a||!n.some(j=>j.route.id===E.routeId)||u.has($))return;let M=lm(h,E.path,m);if(!M){_.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),R=$2(M,E.path),O=!1;p.has($)?O=!1:c.has($)?(c.delete($),O=!0):P&&P.state!=="idle"&&P.data===void 0?O=s:O=lQ(R,qi({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:C,defaultShouldRevalidate:k?!1:s})),O&&_.push({key:$,routeId:E.routeId,path:E.path,matches:M,match:R,controller:new AbortController})}),[S,_]}function cN(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function odt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function h0e(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function lQ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function cQ(e,t,n,r,i){var a;let o;if(e){let c=r[e];jr(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),o=c.children}else o=n;let s=t.filter(c=>!o.some(u=>m0e(c,u))),l=A6(s,i,[e||"_","patch",String(((a=o)==null?void 0:a.length)||"0")],r);o.push(...l)}function m0e(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(a=>m0e(n,a))}):!1}async function sdt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];jr(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";L0(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!Out.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,qi({},t(i),{lazy:void 0}))}async function ldt(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,a,o)=>Object.assign(i,{[n[o].route.id]:a}),{})}async function cdt(e,t,n,r,i,a,o,s,l,c){let u=a.map(h=>h.route.lazy?sdt(h.route,l,s):void 0),f=a.map((h,m)=>{let g=u[m],v=i.some(w=>w.route.id===h.route.id);return qi({},h,{shouldLoad:v,resolve:async w=>(w&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(v=!0),v?udt(t,r,h,g,w,c):Promise.resolve({type:gi.data,result:void 0}))})}),p=await e({matches:f,request:r,params:a[0].params,fetcherKey:o,context:c});try{await Promise.all(u)}catch{}return p}async function udt(e,t,n,r,i,a){let o,s,l=c=>{let u,f=new Promise((m,g)=>u=g);s=()=>u(),t.signal.addEventListener("abort",s);let p=m=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:a},...m!==void 0?[m]:[]),h=(async()=>{try{return{type:"data",result:await(i?i(g=>p(g)):p())}}catch(m){return{type:"error",result:m}}})();return Promise.race([h,f])};try{let c=n.route[e];if(r)if(c){let u,[f]=await Promise.all([l(c).catch(p=>{u=p}),r]);if(u!==void 0)throw u;o=f}else if(await r,c=n.route[e],c)o=await l(c);else if(e==="action"){let u=new URL(t.url),f=u.pathname+u.search;throw Os(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:gi.data,result:void 0};else if(c)o=await l(c);else{let u=new URL(t.url),f=u.pathname+u.search;throw Os(404,{pathname:f})}jr(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:gi.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return o}async function ddt(e){let{result:t,type:n}=e;if(v0e(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:gi.error,error:u}}return n===gi.error?{type:gi.error,error:new D6(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:gi.data,data:c,statusCode:t.status,headers:t.headers}}if(n===gi.error){if(gQ(t)){var r;if(t.data instanceof Error){var i;return{type:gi.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new D6(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:gi.error,error:t,statusCode:o$(t)?t.status:void 0}}if(gdt(t)){var a,o;return{type:gi.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(gQ(t)){var s,l;return{type:gi.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:gi.data,data:t}}function fdt(e,t,n,r,i,a){let o=e.headers.get("Location");if(jr(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!xz.test(o)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);o=lN(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function uQ(e,t,n){if(xz.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Ly(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function L1(e,t,n,r){let i=e.createURL(g0e(t)).toString(),a={signal:n};if(r&&Xc(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=uN(r.formData):a.body=r.formData}return new Request(i,a)}function uN(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function dQ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function pdt(e,t,n,r,i){let a={},o=null,s,l=!1,c={},u=n&&bl(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,h=t[p];if(jr(!$m(h),"Cannot handle redirect results in processLoaderData"),bl(h)){let m=h.error;u!==void 0&&(m=u,u=void 0),o=o||{};{let g=cm(e,p);o[g.route.id]==null&&(o[g.route.id]=m)}a[p]=void 0,l||(l=!0,s=o$(h.error)?h.error.status:500),h.headers&&(c[p]=h.headers)}else zp(h)?(r.set(p,h.deferredData),a[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers)):(a[p]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers))}),u!==void 0&&n&&(o={[n[0]]:u},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function fQ(e,t,n,r,i,a,o){let{loaderData:s,errors:l}=pdt(t,n,r,o);return i.forEach(c=>{let{key:u,match:f,controller:p}=c,h=a[u];if(jr(h,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(bl(h)){let m=cm(e.matches,f==null?void 0:f.route.id);l&&l[m.route.id]||(l=qi({},l,{[m.route.id]:h.error})),e.fetchers.delete(u)}else if($m(h))jr(!1,"Unhandled fetcher revalidation redirect");else if(zp(h))jr(!1,"Unhandled fetcher deferred data");else{let m=bp(h.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function pQ(e,t,n,r){let i=qi({},t);for(let a of n){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function hQ(e){return e?bl(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function cm(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function mQ(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Os(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new D6(e||500,s,new Error(l),!0)}function LS(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if($m(i))return{key:r,result:i}}}function g0e(e){let t=typeof e=="string"?Ch(e):e;return _g(qi({},t,{hash:""}))}function hdt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function mdt(e){return v0e(e.result)&&edt.has(e.result.status)}function zp(e){return e.type===gi.deferred}function bl(e){return e.type===gi.error}function $m(e){return(e&&e.type)===gi.redirect}function gQ(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function gdt(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function v0e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function vdt(e){return Jut.has(e.toLowerCase())}function Xc(e){return Zut.has(e.toLowerCase())}async function ydt(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o(p==null?void 0:p.route.id)===s);if(!c)continue;let u=r.find(p=>p.route.id===c.route.id),f=u!=null&&!h0e(u,c)&&(i&&i[c.route.id])!==void 0;zp(l)&&f&&await Sz(l,n,!1).then(p=>{p&&(t[s]=p)})}}async function bdt(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===a)&&zp(s)&&(jr(o,"Expected an AbortController for revalidating fetcher deferred result"),await Sz(s,o.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function Sz(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:gi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:gi.error,error:i}}return{type:gi.data,data:e.deferredData.data}}}function Cz(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $2(e,t){let n=typeof t=="string"?Ch(t).search:t.search;if(e[e.length-1].route.index&&Cz(n||""))return e[e.length-1];let r=d0e(e);return r[r.length-1]}function vQ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function ET(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function wdt(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Hb(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function xdt(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function bp(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Sdt(e,t){try{let n=e.sessionStorage.getItem(p0e);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function Cdt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(p0e,JSON.stringify(n))}catch(r){L0(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function L0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Mut(){return Math.random().toString(36).substr(2,8)}function nQ(e,t){return{usr:e.state,key:e.key,idx:t}}function p3(e,t,n,r){return n===void 0&&(n=null),qi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ch(t):t,{state:n,key:t&&t.key||r||Mut()})}function _g(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ch(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Tut(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Ta.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(qi({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=Ta.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:y})}function p(v,y){s=Ta.Push;let w=p3(g.location,v,y);c=u()+1;let b=nQ(w,c),C=g.createHref(w);try{o.pushState(b,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(C)}a&&l&&l({action:s,location:g.location,delta:1})}function h(v,y){s=Ta.Replace;let w=p3(g.location,v,y);c=u();let b=nQ(w,c),C=g.createHref(w);o.replaceState(b,"",C),a&&l&&l({action:s,location:g.location,delta:0})}function m(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof v=="string"?v:_g(v);return w=w.replace(/ $/,"%20"),jr(y,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,y)}let g={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(tQ,f),l=v,()=>{i.removeEventListener(tQ,f),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let y=m(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(v){return o.go(v)}};return g}var gi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gi||(gi={}));const Put=new Set(["lazy","caseSensitive","path","id","index","children"]);function Out(e){return e.index===!0}function N6(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(jr(i.index!==!0||!i.children,"Cannot specify children on an index route"),jr(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Out(i)){let l=qi({},i,t(i),{id:s});return r[s]=l,l}else{let l=qi({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=N6(i.children,t,o,r)),l}})}function lm(e,t,n){return n===void 0&&(n="/"),c_(e,t,n,!1)}function c_(e,t,n,r){let i=typeof t=="string"?Ch(t):t,a=Ly(i.pathname||"/",n);if(a==null)return null;let o=l0e(e);Iut(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(jr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=wf([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(jr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),l0e(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:But(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of c0e(a.path))i(a,o,l)}),t}function c0e(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=c0e(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Iut(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zut(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const jut=/^:[\w-]+$/,Nut=3,Aut=2,Dut=1,Fut=10,Lut=-2,rQ=e=>e==="*";function But(e,t){let n=e.split("/"),r=n.length;return n.some(rQ)&&(r+=Lut),t&&(r+=Aut),n.filter(i=>!rQ(i)).reduce((i,a)=>i+(jut.test(a)?Nut:a===""?Dut:Fut),r)}function zut(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Hut(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:p,isOptional:h}=u;if(p==="*"){let g=s[f]||"";o=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[f];return h&&!m?c[p]=void 0:c[p]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function Uut(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),L0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Wut(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return L0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ly(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Vut(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ch(e):e;return{pathname:n?n.startsWith("/")?n:qut(n,t):t,search:Gut(r),hash:Yut(i)}}function qut(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function _T(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function u0e(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function i$(e,t){let n=u0e(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function a$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ch(e):(i=qi({},e),jr(!i.pathname||!i.pathname.includes("?"),_T("?","pathname","search",i)),jr(!i.pathname||!i.pathname.includes("#"),_T("#","pathname","hash",i)),jr(!i.search||!i.search.includes("#"),_T("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=Vut(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const wf=e=>e.join("/").replace(/\/\/+/g,"/"),Kut=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Gut=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Yut=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class A6{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function o$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const d0e=["post","put","patch","delete"],Xut=new Set(d0e),Zut=["get",...d0e],Qut=new Set(Zut),Jut=new Set([301,302,303,307,308]),edt=new Set([307,308]),kT={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tdt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zb={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},xz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ndt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),f0e="remix-router-transitions";function rdt(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;jr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let Ne=e.detectErrorBoundary;i=He=>({hasErrorBoundary:Ne(He)})}else i=ndt;let a={},o=N6(e.routes,i,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||sdt,u=e.patchRoutesOnNavigation,f=qi({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,m=null,g=null,v=null,y=e.hydrationData!=null,w=lm(o,e.history.location,l),b=null;if(w==null&&!u){let Ne=Os(404,{pathname:e.history.location.pathname}),{matches:He,route:Le}=mQ(o);w=He,b={[Le.id]:Ne}}w&&!e.hydrationData&&jt(w,o,e.history.location.pathname).active&&(w=null);let C;if(w)if(w.some(Ne=>Ne.route.lazy))C=!1;else if(!w.some(Ne=>Ne.route.loader))C=!0;else if(f.v7_partialHydration){let Ne=e.hydrationData?e.hydrationData.loaderData:null,He=e.hydrationData?e.hydrationData.errors:null;if(He){let Le=w.findIndex(Je=>He[Je.route.id]!==void 0);C=w.slice(0,Le+1).every(Je=>!cN(Je.route,Ne,He))}else C=w.every(Le=>!cN(Le.route,Ne,He))}else C=e.hydrationData!=null;else if(C=!1,w=[],f.v7_partialHydration){let Ne=jt(null,o,e.history.location.pathname);Ne.active&&Ne.matches&&(w=Ne.matches)}let k,S={historyAction:e.history.action,location:e.history.location,matches:w,initialized:C,navigation:kT,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},_=Ta.Pop,E=!1,$,M=!1,P=new Map,R=null,O=!1,j=!1,I=[],A=new Set,N=new Map,F=0,K=-1,L=new Map,V=new Set,B=new Map,U=new Map,Y=new Set,ee=new Map,ie=new Map,Z;function X(){if(p=e.history.listen(Ne=>{let{action:He,location:Le,delta:Je}=Ne;if(Z){Z(),Z=void 0;return}L0(ie.size===0||Je!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let pt=Ke({currentLocation:S.location,nextLocation:Le,historyAction:He});if(pt&&Je!=null){let xt=new Promise(Nt=>{Z=Nt});e.history.go(Je*-1),Xe(pt,{state:"blocked",location:Le,proceed(){Xe(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),xt.then(()=>e.history.go(Je))},reset(){let Nt=new Map(S.blockers);Nt.set(pt,zb),le({blockers:Nt})}});return}return re(He,Le)}),n){xdt(t,P);let Ne=()=>Sdt(t,P);t.addEventListener("pagehide",Ne),R=()=>t.removeEventListener("pagehide",Ne)}return S.initialized||re(Ta.Pop,S.location,{initialHydration:!0}),k}function ae(){p&&p(),R&&R(),h.clear(),$&&$.abort(),S.fetchers.forEach((Ne,He)=>xe(He)),S.blockers.forEach((Ne,He)=>Be(He))}function oe(Ne){return h.add(Ne),()=>h.delete(Ne)}function le(Ne,He){He===void 0&&(He={}),S=qi({},S,Ne);let Le=[],Je=[];f.v7_fetcherPersist&&S.fetchers.forEach((pt,xt)=>{pt.state==="idle"&&(Y.has(xt)?Je.push(xt):Le.push(xt))}),[...h].forEach(pt=>pt(S,{deletedFetchers:Je,viewTransitionOpts:He.viewTransitionOpts,flushSync:He.flushSync===!0})),f.v7_fetcherPersist&&(Le.forEach(pt=>S.fetchers.delete(pt)),Je.forEach(pt=>xe(pt)))}function ce(Ne,He,Le){var Je,pt;let{flushSync:xt}=Le===void 0?{}:Le,Nt=S.actionData!=null&&S.navigation.formMethod!=null&&Xc(S.navigation.formMethod)&&S.navigation.state==="loading"&&((Je=Ne.state)==null?void 0:Je._isRedirect)!==!0,Ot;He.actionData?Object.keys(He.actionData).length>0?Ot=He.actionData:Ot=null:Nt?Ot=S.actionData:Ot=null;let Pt=He.loaderData?pQ(S.loaderData,He.loaderData,He.matches||[],He.errors):S.loaderData,st=S.blockers;st.size>0&&(st=new Map(st),st.forEach((qt,vt)=>st.set(vt,zb)));let Ct=E===!0||S.navigation.formMethod!=null&&Xc(S.navigation.formMethod)&&((pt=Ne.state)==null?void 0:pt._isRedirect)!==!0;s&&(o=s,s=void 0),O||_===Ta.Pop||(_===Ta.Push?e.history.push(Ne,Ne.state):_===Ta.Replace&&e.history.replace(Ne,Ne.state));let kt;if(_===Ta.Pop){let qt=P.get(S.location.pathname);qt&&qt.has(Ne.pathname)?kt={currentLocation:S.location,nextLocation:Ne}:P.has(Ne.pathname)&&(kt={currentLocation:Ne,nextLocation:S.location})}else if(M){let qt=P.get(S.location.pathname);qt?qt.add(Ne.pathname):(qt=new Set([Ne.pathname]),P.set(S.location.pathname,qt)),kt={currentLocation:S.location,nextLocation:Ne}}le(qi({},He,{actionData:Ot,loaderData:Pt,historyAction:_,location:Ne,initialized:!0,navigation:kT,revalidation:"idle",restoreScrollPosition:nt(Ne,He.matches||S.matches),preventScrollReset:Ct,blockers:st}),{viewTransitionOpts:kt,flushSync:xt===!0}),_=Ta.Pop,E=!1,M=!1,O=!1,j=!1,I=[]}async function pe(Ne,He){if(typeof Ne=="number"){e.history.go(Ne);return}let Le=lN(S.location,S.matches,l,f.v7_prependBasename,Ne,f.v7_relativeSplatPath,He==null?void 0:He.fromRouteId,He==null?void 0:He.relative),{path:Je,submission:pt,error:xt}=aQ(f.v7_normalizeFormMethod,!1,Le,He),Nt=S.location,Ot=p3(S.location,Je,He&&He.state);Ot=qi({},Ot,e.history.encodeLocation(Ot));let Pt=He&&He.replace!=null?He.replace:void 0,st=Ta.Push;Pt===!0?st=Ta.Replace:Pt===!1||pt!=null&&Xc(pt.formMethod)&&pt.formAction===S.location.pathname+S.location.search&&(st=Ta.Replace);let Ct=He&&"preventScrollReset"in He?He.preventScrollReset===!0:void 0,kt=(He&&He.flushSync)===!0,qt=Ke({currentLocation:Nt,nextLocation:Ot,historyAction:st});if(qt){Xe(qt,{state:"blocked",location:Ot,proceed(){Xe(qt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ot}),pe(Ne,He)},reset(){let vt=new Map(S.blockers);vt.set(qt,zb),le({blockers:vt})}});return}return await re(st,Ot,{submission:pt,pendingError:xt,preventScrollReset:Ct,replace:He&&He.replace,enableViewTransition:He&&He.viewTransition,flushSync:kt})}function me(){if(z(),le({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){re(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}re(_||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:M===!0})}}async function re(Ne,He,Le){$&&$.abort(),$=null,_=Ne,O=(Le&&Le.startUninterruptedRevalidation)===!0,Qe(S.location,S.matches),E=(Le&&Le.preventScrollReset)===!0,M=(Le&&Le.enableViewTransition)===!0;let Je=s||o,pt=Le&&Le.overrideNavigation,xt=lm(Je,He,l),Nt=(Le&&Le.flushSync)===!0,Ot=jt(xt,Je,He.pathname);if(Ot.active&&Ot.matches&&(xt=Ot.matches),!xt){let{error:At,notFoundMatches:dt,route:De}=qe(He.pathname);ce(He,{matches:dt,loaderData:{},errors:{[De.id]:At}},{flushSync:Nt});return}if(S.initialized&&!j&&pdt(S.location,He)&&!(Le&&Le.submission&&Xc(Le.submission.formMethod))){ce(He,{matches:xt},{flushSync:Nt});return}$=new AbortController;let Pt=L1(e.history,He,$.signal,Le&&Le.submission),st;if(Le&&Le.pendingError)st=[cm(xt).route.id,{type:gi.error,error:Le.pendingError}];else if(Le&&Le.submission&&Xc(Le.submission.formMethod)){let At=await fe(Pt,He,Le.submission,xt,Ot.active,{replace:Le.replace,flushSync:Nt});if(At.shortCircuited)return;if(At.pendingActionResult){let[dt,De]=At.pendingActionResult;if(yl(De)&&o$(De.error)&&De.error.status===404){$=null,ce(He,{matches:At.matches,loaderData:{},errors:{[dt]:De.error}});return}}xt=At.matches||xt,st=At.pendingActionResult,pt=ET(He,Le.submission),Nt=!1,Ot.active=!1,Pt=L1(e.history,Pt.url,Pt.signal)}let{shortCircuited:Ct,matches:kt,loaderData:qt,errors:vt}=await ve(Pt,He,xt,Ot.active,pt,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Nt,st);Ct||($=null,ce(He,qi({matches:kt||xt},hQ(st),{loaderData:qt,errors:vt})))}async function fe(Ne,He,Le,Je,pt,xt){xt===void 0&&(xt={}),z();let Nt=bdt(He,Le);if(le({navigation:Nt},{flushSync:xt.flushSync===!0}),pt){let st=await Lt(Je,He.pathname,Ne.signal);if(st.type==="aborted")return{shortCircuited:!0};if(st.type==="error"){let Ct=cm(st.partialMatches).route.id;return{matches:st.partialMatches,pendingActionResult:[Ct,{type:gi.error,error:st.error}]}}else if(st.matches)Je=st.matches;else{let{notFoundMatches:Ct,error:kt,route:qt}=qe(He.pathname);return{matches:Ct,pendingActionResult:[qt.id,{type:gi.error,error:kt}]}}}let Ot,Pt=$2(Je,He);if(!Pt.route.action&&!Pt.route.lazy)Ot={type:gi.error,error:Os(405,{method:Ne.method,pathname:He.pathname,routeId:Pt.route.id})};else if(Ot=(await ye("action",S,Ne,[Pt],Je,null))[Pt.route.id],Ne.signal.aborted)return{shortCircuited:!0};if($m(Ot)){let st;return xt&&xt.replace!=null?st=xt.replace:st=uQ(Ot.response.headers.get("Location"),new URL(Ne.url),l)===S.location.pathname+S.location.search,await se(Ne,Ot,!0,{submission:Le,replace:st}),{shortCircuited:!0}}if(zp(Ot))throw Os(400,{type:"defer-action"});if(yl(Ot)){let st=cm(Je,Pt.route.id);return(xt&&xt.replace)!==!0&&(_=Ta.Push),{matches:Je,pendingActionResult:[st.route.id,Ot]}}return{matches:Je,pendingActionResult:[Pt.route.id,Ot]}}async function ve(Ne,He,Le,Je,pt,xt,Nt,Ot,Pt,st,Ct){let kt=pt||ET(He,xt),qt=xt||Nt||vQ(kt),vt=!O&&(!f.v7_partialHydration||!Pt);if(Je){if(vt){let D=$e(Ct);le(qi({navigation:kt},D!==void 0?{actionData:D}:{}),{flushSync:st})}let T=await Lt(Le,He.pathname,Ne.signal);if(T.type==="aborted")return{shortCircuited:!0};if(T.type==="error"){let D=cm(T.partialMatches).route.id;return{matches:T.partialMatches,loaderData:{},errors:{[D]:T.error}}}else if(T.matches)Le=T.matches;else{let{error:D,notFoundMatches:J,route:ke}=qe(He.pathname);return{matches:J,loaderData:{},errors:{[ke.id]:D}}}}let At=s||o,[dt,De]=sQ(e.history,S,Le,qt,He,f.v7_partialHydration&&Pt===!0,f.v7_skipActionErrorRevalidation,j,I,A,Y,B,V,At,l,Ct);if(Et(T=>!(Le&&Le.some(D=>D.route.id===T))||dt&&dt.some(D=>D.route.id===T)),K=++F,dt.length===0&&De.length===0){let T=ge();return ce(He,qi({matches:Le,loaderData:{},errors:Ct&&yl(Ct[1])?{[Ct[0]]:Ct[1].error}:null},hQ(Ct),T?{fetchers:new Map(S.fetchers)}:{}),{flushSync:st}),{shortCircuited:!0}}if(vt){let T={};if(!Je){T.navigation=kt;let D=$e(Ct);D!==void 0&&(T.actionData=D)}De.length>0&&(T.fetchers=Ce(De)),le(T,{flushSync:st})}De.forEach(T=>{Ue(T.key),T.controller&&N.set(T.key,T.controller)});let Ye=()=>De.forEach(T=>Ue(T.key));$&&$.signal.addEventListener("abort",Ye);let{loaderResults:ot,fetcherResults:Re}=await Oe(S,Le,dt,De,Ne);if(Ne.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ye),De.forEach(T=>N.delete(T.key));let It=FS(ot);if(It)return await se(Ne,It.result,!0,{replace:Ot}),{shortCircuited:!0};if(It=FS(Re),It)return V.add(It.key),await se(Ne,It.result,!0,{replace:Ot}),{shortCircuited:!0};let{loaderData:rt,errors:$t}=fQ(S,Le,ot,Ct,De,Re,ee);ee.forEach((T,D)=>{T.subscribe(J=>{(J||T.done)&&ee.delete(D)})}),f.v7_partialHydration&&Pt&&S.errors&&($t=qi({},S.errors,$t));let Mt=ge(),dn=ze(K),pn=Mt||dn||De.length>0;return qi({matches:Le,loaderData:rt,errors:$t},pn?{fetchers:new Map(S.fetchers)}:{})}function $e(Ne){if(Ne&&!yl(Ne[1]))return{[Ne[0]]:Ne[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Ce(Ne){return Ne.forEach(He=>{let Le=S.fetchers.get(He.key),Je=Hb(void 0,Le?Le.data:void 0);S.fetchers.set(He.key,Je)}),new Map(S.fetchers)}function be(Ne,He,Le,Je){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ue(Ne);let pt=(Je&&Je.flushSync)===!0,xt=s||o,Nt=lN(S.location,S.matches,l,f.v7_prependBasename,Le,f.v7_relativeSplatPath,He,Je==null?void 0:Je.relative),Ot=lm(xt,Nt,l),Pt=jt(Ot,xt,Nt);if(Pt.active&&Pt.matches&&(Ot=Pt.matches),!Ot){G(Ne,He,Os(404,{pathname:Nt}),{flushSync:pt});return}let{path:st,submission:Ct,error:kt}=aQ(f.v7_normalizeFormMethod,!0,Nt,Je);if(kt){G(Ne,He,kt,{flushSync:pt});return}let qt=$2(Ot,st),vt=(Je&&Je.preventScrollReset)===!0;if(Ct&&Xc(Ct.formMethod)){Se(Ne,He,st,qt,Ot,Pt.active,pt,vt,Ct);return}B.set(Ne,{routeId:He,path:st}),we(Ne,He,st,qt,Ot,Pt.active,pt,vt,Ct)}async function Se(Ne,He,Le,Je,pt,xt,Nt,Ot,Pt){z(),B.delete(Ne);function st(Ie){if(!Ie.route.action&&!Ie.route.lazy){let it=Os(405,{method:Pt.formMethod,pathname:Le,routeId:He});return G(Ne,He,it,{flushSync:Nt}),!0}return!1}if(!xt&&st(Je))return;let Ct=S.fetchers.get(Ne);H(Ne,wdt(Pt,Ct),{flushSync:Nt});let kt=new AbortController,qt=L1(e.history,Le,kt.signal,Pt);if(xt){let Ie=await Lt(pt,Le,qt.signal);if(Ie.type==="aborted")return;if(Ie.type==="error"){G(Ne,He,Ie.error,{flushSync:Nt});return}else if(Ie.matches){if(pt=Ie.matches,Je=$2(pt,Le),st(Je))return}else{G(Ne,He,Os(404,{pathname:Le}),{flushSync:Nt});return}}N.set(Ne,kt);let vt=F,dt=(await ye("action",S,qt,[Je],pt,Ne))[Je.route.id];if(qt.signal.aborted){N.get(Ne)===kt&&N.delete(Ne);return}if(f.v7_fetcherPersist&&Y.has(Ne)){if($m(dt)||yl(dt)){H(Ne,bp(void 0));return}}else{if($m(dt))if(N.delete(Ne),K>vt){H(Ne,bp(void 0));return}else return V.add(Ne),H(Ne,Hb(Pt)),se(qt,dt,!1,{fetcherSubmission:Pt,preventScrollReset:Ot});if(yl(dt)){G(Ne,He,dt.error);return}}if(zp(dt))throw Os(400,{type:"defer-action"});let De=S.navigation.location||S.location,Ye=L1(e.history,De,kt.signal),ot=s||o,Re=S.navigation.state!=="idle"?lm(ot,S.navigation.location,l):S.matches;jr(Re,"Didn't find any matches after fetcher action");let It=++F;L.set(Ne,It);let rt=Hb(Pt,dt.data);S.fetchers.set(Ne,rt);let[$t,Mt]=sQ(e.history,S,Re,Pt,De,!1,f.v7_skipActionErrorRevalidation,j,I,A,Y,B,V,ot,l,[Je.route.id,dt]);Mt.filter(Ie=>Ie.key!==Ne).forEach(Ie=>{let it=Ie.key,Ft=S.fetchers.get(it),rn=Hb(void 0,Ft?Ft.data:void 0);S.fetchers.set(it,rn),Ue(it),Ie.controller&&N.set(it,Ie.controller)}),le({fetchers:new Map(S.fetchers)});let dn=()=>Mt.forEach(Ie=>Ue(Ie.key));kt.signal.addEventListener("abort",dn);let{loaderResults:pn,fetcherResults:T}=await Oe(S,Re,$t,Mt,Ye);if(kt.signal.aborted)return;kt.signal.removeEventListener("abort",dn),L.delete(Ne),N.delete(Ne),Mt.forEach(Ie=>N.delete(Ie.key));let D=FS(pn);if(D)return se(Ye,D.result,!1,{preventScrollReset:Ot});if(D=FS(T),D)return V.add(D.key),se(Ye,D.result,!1,{preventScrollReset:Ot});let{loaderData:J,errors:ke}=fQ(S,Re,pn,void 0,Mt,T,ee);if(S.fetchers.has(Ne)){let Ie=bp(dt.data);S.fetchers.set(Ne,Ie)}ze(It),S.navigation.state==="loading"&&It>K?(jr(_,"Expected pending action"),$&&$.abort(),ce(S.navigation.location,{matches:Re,loaderData:J,errors:ke,fetchers:new Map(S.fetchers)})):(le({errors:ke,loaderData:pQ(S.loaderData,J,Re,ke),fetchers:new Map(S.fetchers)}),j=!1)}async function we(Ne,He,Le,Je,pt,xt,Nt,Ot,Pt){let st=S.fetchers.get(Ne);H(Ne,Hb(Pt,st?st.data:void 0),{flushSync:Nt});let Ct=new AbortController,kt=L1(e.history,Le,Ct.signal);if(xt){let dt=await Lt(pt,Le,kt.signal);if(dt.type==="aborted")return;if(dt.type==="error"){G(Ne,He,dt.error,{flushSync:Nt});return}else if(dt.matches)pt=dt.matches,Je=$2(pt,Le);else{G(Ne,He,Os(404,{pathname:Le}),{flushSync:Nt});return}}N.set(Ne,Ct);let qt=F,At=(await ye("loader",S,kt,[Je],pt,Ne))[Je.route.id];if(zp(At)&&(At=await Sz(At,kt.signal,!0)||At),N.get(Ne)===Ct&&N.delete(Ne),!kt.signal.aborted){if(Y.has(Ne)){H(Ne,bp(void 0));return}if($m(At))if(K>qt){H(Ne,bp(void 0));return}else{V.add(Ne),await se(kt,At,!1,{preventScrollReset:Ot});return}if(yl(At)){G(Ne,He,At.error);return}jr(!zp(At),"Unhandled fetcher deferred data"),H(Ne,bp(At.data))}}async function se(Ne,He,Le,Je){let{submission:pt,fetcherSubmission:xt,preventScrollReset:Nt,replace:Ot}=Je===void 0?{}:Je;He.response.headers.has("X-Remix-Revalidate")&&(j=!0);let Pt=He.response.headers.get("Location");jr(Pt,"Expected a Location header on the redirect Response"),Pt=uQ(Pt,new URL(Ne.url),l);let st=p3(S.location,Pt,{_isRedirect:!0});if(n){let dt=!1;if(He.response.headers.has("X-Remix-Reload-Document"))dt=!0;else if(xz.test(Pt)){const De=e.history.createURL(Pt);dt=De.origin!==t.location.origin||Ly(De.pathname,l)==null}if(dt){Ot?t.location.replace(Pt):t.location.assign(Pt);return}}$=null;let Ct=Ot===!0||He.response.headers.has("X-Remix-Replace")?Ta.Replace:Ta.Push,{formMethod:kt,formAction:qt,formEncType:vt}=S.navigation;!pt&&!xt&&kt&&qt&&vt&&(pt=vQ(S.navigation));let At=pt||xt;if(edt.has(He.response.status)&&At&&Xc(At.formMethod))await re(Ct,st,{submission:qi({},At,{formAction:Pt}),preventScrollReset:Nt||E,enableViewTransition:Le?M:void 0});else{let dt=ET(st,pt);await re(Ct,st,{overrideNavigation:dt,fetcherSubmission:xt,preventScrollReset:Nt||E,enableViewTransition:Le?M:void 0})}}async function ye(Ne,He,Le,Je,pt,xt){let Nt,Ot={};try{Nt=await ldt(c,Ne,He,Le,Je,pt,xt,a,i)}catch(Pt){return Je.forEach(st=>{Ot[st.route.id]={type:gi.error,error:Pt}}),Ot}for(let[Pt,st]of Object.entries(Nt))if(hdt(st)){let Ct=st.result;Ot[Pt]={type:gi.redirect,response:ddt(Ct,Le,Pt,pt,l,f.v7_relativeSplatPath)}}else Ot[Pt]=await udt(st);return Ot}async function Oe(Ne,He,Le,Je,pt){let xt=Ne.matches,Nt=ye("loader",Ne,pt,Le,He,null),Ot=Promise.all(Je.map(async Ct=>{if(Ct.matches&&Ct.match&&Ct.controller){let qt=(await ye("loader",Ne,L1(e.history,Ct.path,Ct.controller.signal),[Ct.match],Ct.matches,Ct.key))[Ct.match.route.id];return{[Ct.key]:qt}}else return Promise.resolve({[Ct.key]:{type:gi.error,error:Os(404,{pathname:Ct.path})}})})),Pt=await Nt,st=(await Ot).reduce((Ct,kt)=>Object.assign(Ct,kt),{});return await Promise.all([vdt(He,Pt,pt.signal,xt,Ne.loaderData),ydt(He,st,Je)]),{loaderResults:Pt,fetcherResults:st}}function z(){j=!0,I.push(...Et()),B.forEach((Ne,He)=>{N.has(He)&&A.add(He),Ue(He)})}function H(Ne,He,Le){Le===void 0&&(Le={}),S.fetchers.set(Ne,He),le({fetchers:new Map(S.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function G(Ne,He,Le,Je){Je===void 0&&(Je={});let pt=cm(S.matches,He);xe(Ne),le({errors:{[pt.route.id]:Le},fetchers:new Map(S.fetchers)},{flushSync:(Je&&Je.flushSync)===!0})}function de(Ne){return f.v7_fetcherPersist&&(U.set(Ne,(U.get(Ne)||0)+1),Y.has(Ne)&&Y.delete(Ne)),S.fetchers.get(Ne)||tdt}function xe(Ne){let He=S.fetchers.get(Ne);N.has(Ne)&&!(He&&He.state==="loading"&&L.has(Ne))&&Ue(Ne),B.delete(Ne),L.delete(Ne),V.delete(Ne),Y.delete(Ne),A.delete(Ne),S.fetchers.delete(Ne)}function he(Ne){if(f.v7_fetcherPersist){let He=(U.get(Ne)||0)-1;He<=0?(U.delete(Ne),Y.add(Ne)):U.set(Ne,He)}else xe(Ne);le({fetchers:new Map(S.fetchers)})}function Ue(Ne){let He=N.get(Ne);He&&(He.abort(),N.delete(Ne))}function We(Ne){for(let He of Ne){let Le=de(He),Je=bp(Le.data);S.fetchers.set(He,Je)}}function ge(){let Ne=[],He=!1;for(let Le of V){let Je=S.fetchers.get(Le);jr(Je,"Expected fetcher: "+Le),Je.state==="loading"&&(V.delete(Le),Ne.push(Le),He=!0)}return We(Ne),He}function ze(Ne){let He=[];for(let[Le,Je]of L)if(Je0}function Ve(Ne,He){let Le=S.blockers.get(Ne)||zb;return ie.get(Ne)!==He&&ie.set(Ne,He),Le}function Be(Ne){S.blockers.delete(Ne),ie.delete(Ne)}function Xe(Ne,He){let Le=S.blockers.get(Ne)||zb;jr(Le.state==="unblocked"&&He.state==="blocked"||Le.state==="blocked"&&He.state==="blocked"||Le.state==="blocked"&&He.state==="proceeding"||Le.state==="blocked"&&He.state==="unblocked"||Le.state==="proceeding"&&He.state==="unblocked","Invalid blocker state transition: "+Le.state+" -> "+He.state);let Je=new Map(S.blockers);Je.set(Ne,He),le({blockers:Je})}function Ke(Ne){let{currentLocation:He,nextLocation:Le,historyAction:Je}=Ne;if(ie.size===0)return;ie.size>1&&L0(!1,"A router only supports one blocker at a time");let pt=Array.from(ie.entries()),[xt,Nt]=pt[pt.length-1],Ot=S.blockers.get(xt);if(!(Ot&&Ot.state==="proceeding")&&Nt({currentLocation:He,nextLocation:Le,historyAction:Je}))return xt}function qe(Ne){let He=Os(404,{pathname:Ne}),Le=s||o,{matches:Je,route:pt}=mQ(Le);return Et(),{notFoundMatches:Je,route:pt,error:He}}function Et(Ne){let He=[];return ee.forEach((Le,Je)=>{(!Ne||Ne(Je))&&(Le.cancel(),He.push(Je),ee.delete(Je))}),He}function ut(Ne,He,Le){if(m=Ne,v=He,g=Le||null,!y&&S.navigation===kT){y=!0;let Je=nt(S.location,S.matches);Je!=null&&le({restoreScrollPosition:Je})}return()=>{m=null,v=null,g=null}}function gt(Ne,He){return g&&g(Ne,He.map(Je=>Rut(Je,S.loaderData)))||Ne.key}function Qe(Ne,He){if(m&&v){let Le=gt(Ne,He);m[Le]=v()}}function nt(Ne,He){if(m){let Le=gt(Ne,He),Je=m[Le];if(typeof Je=="number")return Je}return null}function jt(Ne,He,Le){if(u)if(Ne){if(Object.keys(Ne[0].params).length>0)return{active:!0,matches:c_(He,Le,l,!0)}}else return{active:!0,matches:c_(He,Le,l,!0)||[]};return{active:!1,matches:null}}async function Lt(Ne,He,Le){if(!u)return{type:"success",matches:Ne};let Je=Ne;for(;;){let pt=s==null,xt=s||o,Nt=a;try{await u({path:He,matches:Je,patch:(st,Ct)=>{Le.aborted||cQ(st,Ct,xt,Nt,i)}})}catch(st){return{type:"error",error:st,partialMatches:Je}}finally{pt&&!Le.aborted&&(o=[...o])}if(Le.aborted)return{type:"aborted"};let Ot=lm(xt,He,l);if(Ot)return{type:"success",matches:Ot};let Pt=c_(xt,He,l,!0);if(!Pt||Je.length===Pt.length&&Je.every((st,Ct)=>st.route.id===Pt[Ct].route.id))return{type:"success",matches:null};Je=Pt}}function Bt(Ne){a={},s=N6(Ne,i,void 0,a)}function Ut(Ne,He){let Le=s==null;cQ(Ne,He,s||o,a,i),Le&&(o=[...o],le({}))}return k={get basename(){return l},get future(){return f},get state(){return S},get routes(){return o},get window(){return t},initialize:X,subscribe:oe,enableScrollRestoration:ut,navigate:pe,fetch:be,revalidate:me,createHref:Ne=>e.history.createHref(Ne),encodeLocation:Ne=>e.history.encodeLocation(Ne),getFetcher:de,deleteFetcher:he,dispose:ae,getBlocker:Ve,deleteBlocker:Be,patchRoutes:Ut,_internalFetchControllers:N,_internalActiveDeferreds:ee,_internalSetRoutes:Bt},k}function idt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function lN(e,t,n,r,i,a,o,s){let l,c;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){c=f;break}}else l=t,c=t[t.length-1];let u=a$(i||".",i$(l,a),Ly(e.pathname,n)||e.pathname,s==="path");if(i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c){let f=Cz(u.search);if(c.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let p=new URLSearchParams(u.search),h=p.getAll("index");p.delete("index"),h.filter(g=>g).forEach(g=>p.append("index",g));let m=p.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:wf([n,u.pathname])),_g(u)}function aQ(e,t,n,r){if(!r||!idt(r))return{path:n};if(r.formMethod&&!gdt(r.formMethod))return{path:n,error:Os(405,{method:r.formMethod})};let i=()=>({path:n,error:Os(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=m0e(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Xc(o))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[g,v]=m;return""+h+g+"="+v+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Xc(o))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}jr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=uN(r.formData),c=r.formData;else if(r.body instanceof FormData)l=uN(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=dQ(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=dQ(l)}catch{return i()}let u={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Xc(u.formMethod))return{path:n,submission:u};let f=Ch(n);return t&&f.search&&Cz(f.search)&&l.append("index",""),f.search="?"+l,{path:_g(f),submission:u}}function oQ(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function sQ(e,t,n,r,i,a,o,s,l,c,u,f,p,h,m,g){let v=g?yl(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),w=e.createURL(i),b=n;a&&t.errors?b=oQ(n,Object.keys(t.errors)[0],!0):g&&yl(g[1])&&(b=oQ(n,g[0]));let C=g?g[1].statusCode:void 0,k=o&&C&&C>=400,S=b.filter((E,$)=>{let{route:M}=E;if(M.lazy)return!0;if(M.loader==null)return!1;if(a)return cN(M,t.loaderData,t.errors);if(adt(t.loaderData,t.matches[$],E)||l.some(O=>O===E.route.id))return!0;let P=t.matches[$],R=E;return lQ(E,qi({currentUrl:y,currentParams:P.params,nextUrl:w,nextParams:R.params},r,{actionResult:v,actionStatus:C,defaultShouldRevalidate:k?!1:s||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||p0e(P,R)}))}),_=[];return f.forEach((E,$)=>{if(a||!n.some(j=>j.route.id===E.routeId)||u.has($))return;let M=lm(h,E.path,m);if(!M){_.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),R=$2(M,E.path),O=!1;p.has($)?O=!1:c.has($)?(c.delete($),O=!0):P&&P.state!=="idle"&&P.data===void 0?O=s:O=lQ(R,qi({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:C,defaultShouldRevalidate:k?!1:s})),O&&_.push({key:$,routeId:E.routeId,path:E.path,matches:M,match:R,controller:new AbortController})}),[S,_]}function cN(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function adt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function p0e(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function lQ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function cQ(e,t,n,r,i){var a;let o;if(e){let c=r[e];jr(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),o=c.children}else o=n;let s=t.filter(c=>!o.some(u=>h0e(c,u))),l=N6(s,i,[e||"_","patch",String(((a=o)==null?void 0:a.length)||"0")],r);o.push(...l)}function h0e(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(a=>h0e(n,a))}):!1}async function odt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];jr(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";L0(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!Put.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,qi({},t(i),{lazy:void 0}))}async function sdt(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,a,o)=>Object.assign(i,{[n[o].route.id]:a}),{})}async function ldt(e,t,n,r,i,a,o,s,l,c){let u=a.map(h=>h.route.lazy?odt(h.route,l,s):void 0),f=a.map((h,m)=>{let g=u[m],v=i.some(w=>w.route.id===h.route.id);return qi({},h,{shouldLoad:v,resolve:async w=>(w&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(v=!0),v?cdt(t,r,h,g,w,c):Promise.resolve({type:gi.data,result:void 0}))})}),p=await e({matches:f,request:r,params:a[0].params,fetcherKey:o,context:c});try{await Promise.all(u)}catch{}return p}async function cdt(e,t,n,r,i,a){let o,s,l=c=>{let u,f=new Promise((m,g)=>u=g);s=()=>u(),t.signal.addEventListener("abort",s);let p=m=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:a},...m!==void 0?[m]:[]),h=(async()=>{try{return{type:"data",result:await(i?i(g=>p(g)):p())}}catch(m){return{type:"error",result:m}}})();return Promise.race([h,f])};try{let c=n.route[e];if(r)if(c){let u,[f]=await Promise.all([l(c).catch(p=>{u=p}),r]);if(u!==void 0)throw u;o=f}else if(await r,c=n.route[e],c)o=await l(c);else if(e==="action"){let u=new URL(t.url),f=u.pathname+u.search;throw Os(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:gi.data,result:void 0};else if(c)o=await l(c);else{let u=new URL(t.url),f=u.pathname+u.search;throw Os(404,{pathname:f})}jr(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:gi.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return o}async function udt(e){let{result:t,type:n}=e;if(g0e(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:gi.error,error:u}}return n===gi.error?{type:gi.error,error:new A6(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:gi.data,data:c,statusCode:t.status,headers:t.headers}}if(n===gi.error){if(gQ(t)){var r;if(t.data instanceof Error){var i;return{type:gi.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new A6(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:gi.error,error:t,statusCode:o$(t)?t.status:void 0}}if(mdt(t)){var a,o;return{type:gi.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(gQ(t)){var s,l;return{type:gi.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:gi.data,data:t}}function ddt(e,t,n,r,i,a){let o=e.headers.get("Location");if(jr(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!xz.test(o)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);o=lN(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function uQ(e,t,n){if(xz.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Ly(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function L1(e,t,n,r){let i=e.createURL(m0e(t)).toString(),a={signal:n};if(r&&Xc(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=uN(r.formData):a.body=r.formData}return new Request(i,a)}function uN(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function dQ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function fdt(e,t,n,r,i){let a={},o=null,s,l=!1,c={},u=n&&yl(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,h=t[p];if(jr(!$m(h),"Cannot handle redirect results in processLoaderData"),yl(h)){let m=h.error;u!==void 0&&(m=u,u=void 0),o=o||{};{let g=cm(e,p);o[g.route.id]==null&&(o[g.route.id]=m)}a[p]=void 0,l||(l=!0,s=o$(h.error)?h.error.status:500),h.headers&&(c[p]=h.headers)}else zp(h)?(r.set(p,h.deferredData),a[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers)):(a[p]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[p]=h.headers))}),u!==void 0&&n&&(o={[n[0]]:u},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function fQ(e,t,n,r,i,a,o){let{loaderData:s,errors:l}=fdt(t,n,r,o);return i.forEach(c=>{let{key:u,match:f,controller:p}=c,h=a[u];if(jr(h,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(yl(h)){let m=cm(e.matches,f==null?void 0:f.route.id);l&&l[m.route.id]||(l=qi({},l,{[m.route.id]:h.error})),e.fetchers.delete(u)}else if($m(h))jr(!1,"Unhandled fetcher revalidation redirect");else if(zp(h))jr(!1,"Unhandled fetcher deferred data");else{let m=bp(h.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function pQ(e,t,n,r){let i=qi({},t);for(let a of n){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function hQ(e){return e?yl(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function cm(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function mQ(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Os(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new A6(e||500,s,new Error(l),!0)}function FS(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if($m(i))return{key:r,result:i}}}function m0e(e){let t=typeof e=="string"?Ch(e):e;return _g(qi({},t,{hash:""}))}function pdt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function hdt(e){return g0e(e.result)&&Jut.has(e.result.status)}function zp(e){return e.type===gi.deferred}function yl(e){return e.type===gi.error}function $m(e){return(e&&e.type)===gi.redirect}function gQ(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function mdt(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function g0e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function gdt(e){return Qut.has(e.toLowerCase())}function Xc(e){return Xut.has(e.toLowerCase())}async function vdt(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o(p==null?void 0:p.route.id)===s);if(!c)continue;let u=r.find(p=>p.route.id===c.route.id),f=u!=null&&!p0e(u,c)&&(i&&i[c.route.id])!==void 0;zp(l)&&f&&await Sz(l,n,!1).then(p=>{p&&(t[s]=p)})}}async function ydt(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===a)&&zp(s)&&(jr(o,"Expected an AbortController for revalidating fetcher deferred result"),await Sz(s,o.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function Sz(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:gi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:gi.error,error:i}}return{type:gi.data,data:e.deferredData.data}}}function Cz(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $2(e,t){let n=typeof t=="string"?Ch(t).search:t.search;if(e[e.length-1].route.index&&Cz(n||""))return e[e.length-1];let r=u0e(e);return r[r.length-1]}function vQ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function ET(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function bdt(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Hb(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function wdt(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function bp(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function xdt(e,t){try{let n=e.sessionStorage.getItem(f0e);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function Sdt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(f0e,JSON.stringify(n))}catch(r){L0(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.28.0 * * Copyright (c) Remix Software Inc. @@ -492,7 +492,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function F6(){return F6=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=a$(c,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wf([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,o,a,e])}const Edt=d.createContext(null);function $dt(e){let t=d.useContext(Rd).outlet;return t&&d.createElement(Edt.Provider,{value:e},t)}function Mdt(){let{matches:e}=d.useContext(Rd),t=e[e.length-1];return t?t.params:{}}function x0e(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=d.useContext(_h),{matches:i}=d.useContext(Rd),{pathname:a}=n1(),o=JSON.stringify(i$(i,r.v7_relativeSplatPath));return d.useMemo(()=>a$(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function Tdt(e,t,n,r){By()||jr(!1);let{navigator:i}=d.useContext(_h),{matches:a}=d.useContext(Rd),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=n1(),u;u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let h=lm(e,{pathname:p});return jdt(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:wf([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:wf([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,n,r)}function Pdt(){let e=Fdt(),t=o$(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:i},n):null,null)}const Odt=d.createElement(Pdt,null);class Rdt extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?d.createElement(Rd.Provider,{value:this.props.routeContext},d.createElement(b0e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Idt(e){let{routeContext:t,match:n,children:r}=e,i=d.useContext(s$);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Rd.Provider,{value:t},r)}function jdt(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||jr(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,p)=>{let h,m=!1,g=null,v=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||Odt,l&&(c<0&&p===0?(m=!0,v=null):c===p&&(m=!0,v=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,p+1)),w=()=>{let b;return h?b=g:m?b=v:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,d.createElement(Idt,{match:f,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(Rdt,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}var S0e=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(S0e||{}),L6=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(L6||{});function Ndt(e){let t=d.useContext(s$);return t||jr(!1),t}function Adt(e){let t=d.useContext(y0e);return t||jr(!1),t}function Ddt(e){let t=d.useContext(Rd);return t||jr(!1),t}function C0e(e){let t=Ddt(),n=t.matches[t.matches.length-1];return n.route.id||jr(!1),n.route.id}function Fdt(){var e;let t=d.useContext(b0e),n=Adt(L6.UseRouteError),r=C0e(L6.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ldt(){let{router:e}=Ndt(S0e.UseNavigateStable),t=C0e(L6.UseNavigateStable),n=d.useRef(!1);return w0e(()=>{n.current=!0}),d.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,F6({fromRouteId:t},a)))},[e,t])}const yQ={};function Bdt(e,t){yQ[t]||(yQ[t]=!0,console.warn(t))}const B1=(e,t,n)=>Bdt(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function zdt(e,t){e!=null&&e.v7_startTransition||B1("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&B1("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||B1("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||B1("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||B1("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||B1("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function Hdt(e){let{to:t,replace:n,state:r,relative:i}=e;By()||jr(!1);let{future:a,static:o}=d.useContext(_h),{matches:s}=d.useContext(Rd),{pathname:l}=n1(),c=Mo(),u=a$(t,i$(s,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:i}),[c,f,i,n,r]),null}function z4(e){return $dt(e.context)}function Udt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ta.Pop,navigator:a,static:o=!1,future:s}=e;By()&&jr(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:a,static:o,future:F6({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=Ch(r));let{pathname:u="/",search:f="",hash:p="",state:h=null,key:m="default"}=r,g=d.useMemo(()=>{let v=Ly(u,l);return v==null?null:{location:{pathname:v,search:f,hash:p,state:h,key:m},navigationType:i}},[l,u,f,p,h,m,i]);return g==null?null:d.createElement(_h.Provider,{value:c},d.createElement(_z.Provider,{children:n,value:g}))}new Promise(()=>{});function Wdt(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function D6(){return D6=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=a$(c,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wf([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,o,a,e])}const kdt=d.createContext(null);function Edt(e){let t=d.useContext(Rd).outlet;return t&&d.createElement(kdt.Provider,{value:e},t)}function $dt(){let{matches:e}=d.useContext(Rd),t=e[e.length-1];return t?t.params:{}}function w0e(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=d.useContext(_h),{matches:i}=d.useContext(Rd),{pathname:a}=n1(),o=JSON.stringify(i$(i,r.v7_relativeSplatPath));return d.useMemo(()=>a$(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function Mdt(e,t,n,r){By()||jr(!1);let{navigator:i}=d.useContext(_h),{matches:a}=d.useContext(Rd),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=n1(),u;u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let h=lm(e,{pathname:p});return Idt(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:wf([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:wf([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,n,r)}function Tdt(){let e=Ddt(),t=o$(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:i},n):null,null)}const Pdt=d.createElement(Tdt,null);class Odt extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?d.createElement(Rd.Provider,{value:this.props.routeContext},d.createElement(y0e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Rdt(e){let{routeContext:t,match:n,children:r}=e,i=d.useContext(s$);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Rd.Provider,{value:t},r)}function Idt(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||jr(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,p)=>{let h,m=!1,g=null,v=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||Pdt,l&&(c<0&&p===0?(m=!0,v=null):c===p&&(m=!0,v=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,p+1)),w=()=>{let b;return h?b=g:m?b=v:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,d.createElement(Rdt,{match:f,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(Odt,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}var x0e=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(x0e||{}),F6=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(F6||{});function jdt(e){let t=d.useContext(s$);return t||jr(!1),t}function Ndt(e){let t=d.useContext(v0e);return t||jr(!1),t}function Adt(e){let t=d.useContext(Rd);return t||jr(!1),t}function S0e(e){let t=Adt(),n=t.matches[t.matches.length-1];return n.route.id||jr(!1),n.route.id}function Ddt(){var e;let t=d.useContext(y0e),n=Ndt(F6.UseRouteError),r=S0e(F6.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Fdt(){let{router:e}=jdt(x0e.UseNavigateStable),t=S0e(F6.UseNavigateStable),n=d.useRef(!1);return b0e(()=>{n.current=!0}),d.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,D6({fromRouteId:t},a)))},[e,t])}const yQ={};function Ldt(e,t){yQ[t]||(yQ[t]=!0,console.warn(t))}const B1=(e,t,n)=>Ldt(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Bdt(e,t){e!=null&&e.v7_startTransition||B1("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&B1("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||B1("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||B1("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||B1("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||B1("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function zdt(e){let{to:t,replace:n,state:r,relative:i}=e;By()||jr(!1);let{future:a,static:o}=d.useContext(_h),{matches:s}=d.useContext(Rd),{pathname:l}=n1(),c=rs(),u=a$(t,i$(s,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:i}),[c,f,i,n,r]),null}function B4(e){return Edt(e.context)}function Hdt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ta.Pop,navigator:a,static:o=!1,future:s}=e;By()&&jr(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:a,static:o,future:D6({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=Ch(r));let{pathname:u="/",search:f="",hash:p="",state:h=null,key:m="default"}=r,g=d.useMemo(()=>{let v=Ly(u,l);return v==null?null:{location:{pathname:v,search:f,hash:p,state:h,key:m},navigationType:i}},[l,u,f,p,h,m,i]);return g==null?null:d.createElement(_h.Provider,{value:c},d.createElement(_z.Provider,{children:n,value:g}))}new Promise(()=>{});function Udt(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.28.0 * * Copyright (c) Remix Software Inc. @@ -501,7 +501,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function h3(){return h3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function qdt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Kdt(e,t){return e.button===0&&(!t||t==="_self")&&!qdt(e)}const Gdt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ydt="6";try{window.__reactRouterVersion=Ydt}catch{}function Xdt(e,t){return idt({basename:t==null?void 0:t.basename,future:h3({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Mut({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Zdt(),routes:e,mapRouteProperties:Wdt,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function Zdt(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=h3({},t,{errors:Qdt(t.errors)})),t}function Qdt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new D6(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const Jdt=d.createContext({isTransitioning:!1}),eft=d.createContext(new Map),tft="startTransition",bQ=Qm[tft],nft="flushSync",wQ=Yoe[nft];function rft(e){bQ?bQ(e):e()}function Ub(e){wQ?wQ(e):e()}class ift{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function aft(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=d.useState(n.state),[o,s]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,f]=d.useState(),[p,h]=d.useState(),[m,g]=d.useState(),v=d.useRef(new Map),{v7_startTransition:y}=r||{},w=d.useCallback(E=>{y?rft(E):E()},[y]),b=d.useCallback((E,$)=>{let{deletedFetchers:M,flushSync:P,viewTransitionOpts:R}=$;M.forEach(j=>v.current.delete(j)),E.fetchers.forEach((j,I)=>{j.data!==void 0&&v.current.set(I,j.data)});let O=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!R||O){P?Ub(()=>a(E)):w(()=>a(E));return}if(P){Ub(()=>{p&&(u&&u.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:R.currentLocation,nextLocation:R.nextLocation})});let j=n.window.document.startViewTransition(()=>{Ub(()=>a(E))});j.finished.finally(()=>{Ub(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})})}),Ub(()=>h(j));return}p?(u&&u.resolve(),p.skipTransition(),g({state:E,currentLocation:R.currentLocation,nextLocation:R.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}))},[n.window,p,u,v,w]);d.useLayoutEffect(()=>n.subscribe(b),[n,b]),d.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new ift)},[l]),d.useEffect(()=>{if(u&&o&&n.window){let E=o,$=u.promise,M=n.window.document.startViewTransition(async()=>{w(()=>a(E)),await $});M.finished.finally(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})}),h(M)}},[w,o,u,n.window]),d.useEffect(()=>{u&&o&&i.location.key===o.location.key&&u.resolve()},[u,p,i.location,o]),d.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),d.useEffect(()=>{},[]);let C=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,M)=>n.navigate(E,{state:$,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(E,$,M)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),k=n.basename||"/",S=d.useMemo(()=>({router:n,navigator:C,static:!1,basename:k}),[n,C,k]),_=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>zdt(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement(s$.Provider,{value:S},d.createElement(y0e.Provider,{value:i},d.createElement(eft.Provider,{value:v.current},d.createElement(Jdt.Provider,{value:l},d.createElement(Udt,{basename:k,location:i.location,navigationType:i.historyAction,navigator:C,future:_},i.initialized||n.future.v7_partialHydration?d.createElement(oft,{routes:n.routes,future:n.future,state:i}):t))))),null)}const oft=d.memo(sft);function sft(e){let{routes:t,future:n,state:r}=e;return Tdt(t,void 0,r,n)}const lft=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cft=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uft=d.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,p=Vdt(t,Gdt),{basename:h}=d.useContext(_h),m,g=!1;if(typeof c=="string"&&cft.test(c)&&(m=c,lft))try{let b=new URL(window.location.href),C=c.startsWith("//")?new URL(b.protocol+c):new URL(c),k=Ly(C.pathname,h);C.origin===b.origin&&k!=null?c=k+C.search+C.hash:g=!0}catch{}let v=_dt(c,{relative:i}),y=dft(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:f});function w(b){r&&r(b),b.defaultPrevented||y(b)}return d.createElement("a",h3({},p,{href:m||v,onClick:g||a?r:w,ref:n,target:l}))});var xQ;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xQ||(xQ={}));var SQ;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(SQ||(SQ={}));function dft(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Mo(),c=n1(),u=x0e(e,{relative:o});return d.useCallback(f=>{if(Kdt(f,n)){f.preventDefault();let p=r!==void 0?r:_g(c)===_g(u);l(e,{replace:p,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,u,r,i,n,e,a,o,s])}var fft=q(q({},gfe),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const _0e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},dN={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},fft),timePickerLocale:Object.assign({},_0e)};dN.lang.ok="确定";const sl="${label}不是一个有效的${type}",pft={locale:"zh-cn",Pagination:U1e,DatePicker:dN,TimePicker:_0e,Calendar:dN,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:sl,method:sl,array:sl,object:sl,number:sl,date:sl,boolean:sl,integer:sl,float:sl,regexp:sl,email:sl,url:sl,hex:sl},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}},Hp=()=>{},wl=Hp(),d_=Object,Qr=e=>e===wl,ad=e=>typeof e=="function",Df=(e,t)=>({...e,...t}),hft=e=>ad(e.then),BS=new WeakMap;let mft=0;const m3=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,a;if(d_(e)===e&&!r&&n!=RegExp){if(i=BS.get(e),i)return i;if(i=++mft+"~",BS.set(e,i),n==Array){for(i="@",a=0;al$&&typeof window.requestAnimationFrame!=kz,k0e=(e,t)=>{const n=sf.get(e);return[()=>!Qr(t)&&e.get(t)||$T,r=>{if(!Qr(t)){const i=e.get(t);t in zS||(zS[t]=i),n[5](t,Df(i,r),i||$T)}},n[6],()=>!Qr(t)&&t in zS?zS[t]:!Qr(t)&&e.get(t)||$T]};let pN=!0;const vft=()=>pN,[hN,mN]=l$&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Hp,Hp],yft=()=>{const e=fN&&document.visibilityState;return Qr(e)||e!=="hidden"},bft=e=>(fN&&document.addEventListener("visibilitychange",e),hN("focus",e),()=>{fN&&document.removeEventListener("visibilitychange",e),mN("focus",e)}),wft=e=>{const t=()=>{pN=!0,e()},n=()=>{pN=!1};return hN("online",t),hN("offline",n),()=>{mN("online",t),mN("offline",n)}},xft={isOnline:vft,isVisible:yft},Sft={initFocus:bft,initReconnect:wft},CQ=!te.useId,g3=!l$||"Deno"in window,Cft=e=>gft()?window.requestAnimationFrame(e):setTimeout(e,1),f_=g3?d.useEffect:d.useLayoutEffect,MT=typeof navigator<"u"&&navigator.connection,_Q=!g3&&MT&&(["slow-2g","2g"].includes(MT.effectiveType)||MT.saveData),Ez=e=>{if(ad(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?m3(e):"",[e,t]};let _ft=0;const gN=()=>++_ft,E0e=0,$0e=1,M0e=2,kft=3;var Wb={__proto__:null,ERROR_REVALIDATE_EVENT:kft,FOCUS_EVENT:E0e,MUTATE_EVENT:M0e,RECONNECT_EVENT:$0e};async function T0e(...e){const[t,n,r,i]=e,a=Df({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=h=>typeof s=="function"?s(h):s!==!1,f=a.throwOnError;if(ad(n)){const h=n,m=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&m.push(v);return Promise.all(m.map(p))}return p(n);async function p(h){const[m]=Ez(h);if(!m)return;const[g,v]=k0e(t,m),[y,w,b,C]=sf.get(t),k=y[m],S=()=>c&&(delete b[m],delete C[m],k&&k[0])?k[0](M0e).then(()=>g().data):g().data;if(e.length<3)return S();let _=r,E;const $=gN();w[m]=[$,0];const M=!Qr(l),P=g(),R=P.data,O=P._c,j=Qr(O)?R:O;if(M&&(l=ad(l)?l(j,R):l,v({data:l,_c:j})),ad(_))try{_=_(j)}catch(A){E=A}if(_&&hft(_))if(_=await _.catch(A=>{E=A}),$!==w[m][0]){if(E)throw E;return _}else E&&M&&u(E)&&(o=!0,_=j,v({data:_,_c:wl}));o&&(E||(ad(o)&&(_=o(_,j)),v({data:_,error:wl,_c:wl}))),w[m][1]=gN();const I=await S();if(v({_c:wl}),E){if(f)throw E;return}return o?I:_}}const kQ=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},P0e=(e,t)=>{if(!sf.has(e)){const n=Df(Sft,t),r={},i=T0e.bind(wl,e);let a=Hp;const o={},s=(u,f)=>{const p=o[u]||[];return o[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const h=o[u];if(h)for(const m of h)m(f,p)},c=()=>{if(!sf.has(e)&&(sf.set(e,[r,{},{},{},i,l,s]),!g3)){const u=n.initFocus(setTimeout.bind(wl,kQ.bind(wl,r,E0e))),f=n.initReconnect(setTimeout.bind(wl,kQ.bind(wl,r,$0e)));a=()=>{u&&u(),f&&f(),sf.delete(e)}}};return c(),[e,i,c,a]}return[e,sf.get(e)[4]]},Eft=(e,t,n,r,i)=>{const a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Qr(a)&&o>a||setTimeout(r,s,i)},$ft=(e,t)=>m3(e)==m3(t),[$z,Mft]=P0e(new Map),O0e=Df({onLoadingSlow:Hp,onSuccess:Hp,onError:Hp,onErrorRetry:Eft,onDiscarded:Hp,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_Q?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:_Q?5e3:3e3,compare:$ft,isPaused:()=>!1,cache:$z,mutate:Mft,fallback:{}},xft),R0e=(e,t)=>{const n=Df(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=Df(i,o))}return n},vN=d.createContext({}),Tft=e=>{const{value:t}=e,n=d.useContext(vN),r=ad(t),i=d.useMemo(()=>r?t(n):t,[r,n,t]),a=d.useMemo(()=>r?i:R0e(n,i),[r,n,i]),o=i&&i.provider,s=d.useRef(wl);o&&!s.current&&(s.current=P0e(o(a.cache||$z),i));const l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),f_(()=>{if(l)return l[2]&&l[2](),l[3]},[]),d.createElement(vN.Provider,Df(e,{value:a}))},I0e=l$&&window.__SWR_DEVTOOLS_USE__,Pft=I0e?window.__SWR_DEVTOOLS_USE__:[],Oft=()=>{I0e&&(window.__SWR_DEVTOOLS_REACT__=te)},Rft=e=>ad(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Mz=()=>Df(O0e,d.useContext(vN)),Ift=e=>(t,n,r)=>e(t,n&&((...a)=>{const[o]=Ez(t),[,,,s]=sf.get($z),l=s[o];return Qr(l)?n(...a):(delete s[o],l)}),r),jft=Pft.concat(Ift),Nft=e=>function(...n){const r=Mz(),[i,a,o]=Rft(n),s=R0e(r,o);let l=e;const{use:c}=s,u=(c||[]).concat(jft);for(let f=u.length;f--;)l=u[f](l);return l(i,a||s.fetcher||null,s)},Aft=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};Oft();const EQ=te.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),TT={dedupe:!0},Dft=(e,t,n)=>{const{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[h,m,g,v]=sf.get(r),[y,w]=Ez(e),b=d.useRef(!1),C=d.useRef(!1),k=d.useRef(y),S=d.useRef(t),_=d.useRef(n),E=()=>_.current,$=()=>E().isVisible()&&E().isOnline(),[M,P,R,O]=k0e(r,y),j=d.useRef({}).current,I=Qr(o)?n.fallback[y]:o,A=(ce,pe)=>{for(const me in j){const re=me;if(re==="data"){if(!i(ce[re],pe[re])&&(!Qr(ce[re])||!i(ee,pe[re])))return!1}else if(pe[re]!==ce[re])return!1}return!0},N=d.useMemo(()=>{const ce=!y||!t?!1:Qr(s)?E().isPaused()||a?!1:Qr(l)?!0:l:s,pe=Ce=>{const be=Df(Ce);return delete be._k,ce?{isValidating:!0,isLoading:!0,...be}:be},me=M(),re=O(),fe=pe(me),ve=me===re?fe:pe(re);let $e=fe;return[()=>{const Ce=pe(M());return A(Ce,$e)?($e.data=Ce.data,$e.isLoading=Ce.isLoading,$e.isValidating=Ce.isValidating,$e.error=Ce.error,$e):($e=Ce,Ce)},()=>ve]},[r,y]),F=ese.useSyncExternalStore(d.useCallback(ce=>R(y,(pe,me)=>{A(me,pe)||ce()}),[r,y]),N[0],N[1]),K=!b.current,L=h[y]&&h[y].length>0,V=F.data,B=Qr(V)?I:V,U=F.error,Y=d.useRef(B),ee=p?Qr(V)?Y.current:V:B,ie=L&&!Qr(U)?!1:K&&!Qr(s)?s:E().isPaused()?!1:a?Qr(B)?!1:l:Qr(B)||l,Z=!!(y&&t&&K&&ie),X=Qr(F.isValidating)?Z:F.isValidating,ae=Qr(F.isLoading)?Z:F.isLoading,oe=d.useCallback(async ce=>{const pe=S.current;if(!y||!pe||C.current||E().isPaused())return!1;let me,re,fe=!0;const ve=ce||{},$e=!g[y]||!ve.dedupe,Ce=()=>CQ?!C.current&&y===k.current&&b.current:y===k.current,be={isValidating:!1,isLoading:!1},Se=()=>{P(be)},we=()=>{const ye=g[y];ye&&ye[1]===re&&delete g[y]},se={isValidating:!0};Qr(M().data)&&(se.isLoading=!0);try{if($e&&(P(se),n.loadingTimeout&&Qr(M().data)&&setTimeout(()=>{fe&&Ce()&&E().onLoadingSlow(y,n)},n.loadingTimeout),g[y]=[pe(w),gN()]),[me,re]=g[y],me=await me,$e&&setTimeout(we,n.dedupingInterval),!g[y]||g[y][1]!==re)return $e&&Ce()&&E().onDiscarded(y),!1;be.error=wl;const ye=m[y];if(!Qr(ye)&&(re<=ye[0]||re<=ye[1]||ye[1]===0))return Se(),$e&&Ce()&&E().onDiscarded(y),!1;const Oe=M().data;be.data=i(Oe,me)?Oe:me,$e&&Ce()&&E().onSuccess(me,y,n)}catch(ye){we();const Oe=E(),{shouldRetryOnError:z}=Oe;Oe.isPaused()||(be.error=ye,$e&&Ce()&&(Oe.onError(ye,y,Oe),(z===!0||ad(z)&&z(ye))&&$()&&Oe.onErrorRetry(ye,y,Oe,H=>{const G=h[y];G&&G[0]&&G[0](Wb.ERROR_REVALIDATE_EVENT,H)},{retryCount:(ve.retryCount||0)+1,dedupe:!0})))}return fe=!1,Se(),!0},[y,r]),le=d.useCallback((...ce)=>T0e(r,k.current,...ce),[]);if(f_(()=>{S.current=t,_.current=n,Qr(V)||(Y.current=V)}),f_(()=>{if(!y)return;const ce=oe.bind(wl,TT);let pe=0;const re=Aft(y,h,(fe,ve={})=>{if(fe==Wb.FOCUS_EVENT){const $e=Date.now();E().revalidateOnFocus&&$e>pe&&$()&&(pe=$e+E().focusThrottleInterval,ce())}else if(fe==Wb.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&ce();else{if(fe==Wb.MUTATE_EVENT)return oe();if(fe==Wb.ERROR_REVALIDATE_EVENT)return oe(ve)}});return C.current=!1,k.current=y,b.current=!0,P({_k:w}),ie&&(Qr(B)||g3?ce():Cft(ce)),()=>{C.current=!0,re()}},[y]),f_(()=>{let ce;function pe(){const re=ad(c)?c(M().data):c;re&&ce!==-1&&(ce=setTimeout(me,re))}function me(){!M().error&&(u||E().isVisible())&&(f||E().isOnline())?oe(TT).then(pe):pe()}return pe(),()=>{ce&&(clearTimeout(ce),ce=-1)}},[c,u,f,y]),d.useDebugValue(ee),a&&Qr(B)&&y){if(!CQ&&g3)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,_.current=n,C.current=!1;const ce=v[y];if(!Qr(ce)){const pe=le(ce);EQ(pe)}if(Qr(U)){const pe=oe(TT);Qr(ee)||(pe.status="fulfilled",pe.value=!0),EQ(pe)}else throw U}return{mutate:le,get data(){return j.data=!0,ee},get error(){return j.error=!0,U},get isValidating(){return j.isValidating=!0,X},get isLoading(){return j.isLoading=!0,ae}}},Fft=d_.defineProperty(Tft,"defaultValue",{value:O0e}),Tz=Nft(Dft);var Lft=function(t,n){typeof t=="function"?t(n):Kt(t)==="object"&&t&&"current"in t&&(t.current=n)},Bft=function(){for(var t=arguments.length,n=new Array(t),r=0;r=19;function Mm(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Mm(e,t.slice(0,-1))?e:j0e(e,t,n,r)}const Uft={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},Wft={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},Vft={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},qft={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},Kft={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Gft={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Yft={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},Xft={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},Zft={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},Qft={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},Jft={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},ept={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},tpt={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},npt={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},rpt={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},ipt={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},apt={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},opt={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},spt={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},lpt={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},cpt={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},upt={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},dpt={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},fpt={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},ppt={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},hpt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},mpt={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},gpt={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},vpt={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}},ypt={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},bpt={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},wpt={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}};var ni=function(t,n){return{getMessage:function(i,a){var o=Mm(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(o)return o;var s=t.replace("_","-");if(s==="zh-CN")return a;var l=kg["zh-CN"];return l?l.getMessage(i,a):a},locale:t}},xpt=ni("mn_MN",ipt),Spt=ni("ar_EG",Uft),Av=ni("zh_CN",gpt),Cpt=ni("en_US",Gft),_pt=ni("en_GB",Kft),kpt=ni("vi_VN",mpt),Ept=ni("it_IT",tpt),$pt=ni("ja_JP",npt),Mpt=ni("es_ES",Yft),Tpt=ni("ca_ES",Wft),Ppt=ni("ru_RU",lpt),Opt=ni("sr_RS",upt),Rpt=ni("ms_MY",apt),Ipt=ni("zh_TW",vpt),jpt=ni("fr_FR",Zft),Npt=ni("pt_BR",spt),Apt=ni("ko_KR",rpt),Dpt=ni("id_ID",ept),Fpt=ni("de_DE",qft),Lpt=ni("fa_IR",Xft),Bpt=ni("tr_TR",fpt),zpt=ni("pl_PL",opt),Hpt=ni("hr_",Jft),Upt=ni("th_TH",dpt),Wpt=ni("cs_cz",Vft),Vpt=ni("sk_SK",cpt),qpt=ni("he_IL",Qft),Kpt=ni("uk_UA",ppt),Gpt=ni("uz_UZ",hpt),Ypt=ni("nl_NL",ypt),Xpt=ni("ro_RO",bpt),Zpt=ni("sv_SE",wpt),kg={"mn-MN":xpt,"ar-EG":Spt,"zh-CN":Av,"en-US":Cpt,"en-GB":_pt,"vi-VN":kpt,"it-IT":Ept,"ja-JP":$pt,"es-ES":Mpt,"ca-ES":Tpt,"ru-RU":Ppt,"sr-RS":Opt,"ms-MY":Rpt,"zh-TW":Ipt,"fr-FR":jpt,"pt-BR":Npt,"ko-KR":Apt,"id-ID":Dpt,"de-DE":Fpt,"fa-IR":Lpt,"tr-TR":Bpt,"pl-PL":zpt,"hr-HR":Hpt,"th-TH":Upt,"cs-CZ":Wpt,"sk-SK":Vpt,"he-IL":qpt,"uk-UA":Kpt,"uz-UZ":Gpt,"nl-NL":Ypt,"ro-RO":Xpt,"sv-SE":Zpt},Qpt=Object.keys(kg),N0e=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return Qpt.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function xo(e,t){Jpt(e)&&(e="100%");var n=eht(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function HS(e){return Math.min(1,Math.max(0,e))}function Jpt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function eht(e){return typeof e=="string"&&e.indexOf("%")!==-1}function A0e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function US(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Tm(e){return e.length===1?"0"+e:String(e)}function tht(e,t,n){return{r:xo(e,255)*255,g:xo(t,255)*255,b:xo(n,255)*255}}function MQ(e,t,n){e=xo(e,255),t=xo(t,255),n=xo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nht(e,t,n){var r,i,a;if(e=xo(e,360),t=xo(t,100),n=xo(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=PT(s,o,e+1/3),i=PT(s,o,e),a=PT(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function TQ(e,t,n){e=xo(e,255),t=xo(t,255),n=xo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var yN={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function sht(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=uht(e)),typeof e=="object"&&(Vd(e.r)&&Vd(e.g)&&Vd(e.b)?(t=tht(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Vd(e.h)&&Vd(e.s)&&Vd(e.v)?(r=US(e.s),i=US(e.v),t=rht(e.h,r,i),o=!0,s="hsv"):Vd(e.h)&&Vd(e.s)&&Vd(e.l)&&(r=US(e.s),a=US(e.l),t=nht(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=A0e(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var lht="[-\\+]?\\d+%?",cht="[-\\+]?\\d*\\.\\d+%?",Up="(?:".concat(cht,")|(?:").concat(lht,")"),OT="[\\s|\\(]+(".concat(Up,")[,|\\s]+(").concat(Up,")[,|\\s]+(").concat(Up,")\\s*\\)?"),RT="[\\s|\\(]+(".concat(Up,")[,|\\s]+(").concat(Up,")[,|\\s]+(").concat(Up,")[,|\\s]+(").concat(Up,")\\s*\\)?"),Lc={CSS_UNIT:new RegExp(Up),rgb:new RegExp("rgb"+OT),rgba:new RegExp("rgba"+RT),hsl:new RegExp("hsl"+OT),hsla:new RegExp("hsla"+RT),hsv:new RegExp("hsv"+OT),hsva:new RegExp("hsva"+RT),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function uht(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(yN[e])e=yN[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Lc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Lc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Lc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Lc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Lc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Lc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Lc.hex8.exec(e),n?{r:cl(n[1]),g:cl(n[2]),b:cl(n[3]),a:OQ(n[4]),format:t?"name":"hex8"}:(n=Lc.hex6.exec(e),n?{r:cl(n[1]),g:cl(n[2]),b:cl(n[3]),format:t?"name":"hex"}:(n=Lc.hex4.exec(e),n?{r:cl(n[1]+n[1]),g:cl(n[2]+n[2]),b:cl(n[3]+n[3]),a:OQ(n[4]+n[4]),format:t?"name":"hex8"}:(n=Lc.hex3.exec(e),n?{r:cl(n[1]+n[1]),g:cl(n[2]+n[2]),b:cl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Vd(e){return!!Lc.CSS_UNIT.exec(String(e))}var dht=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=oht(t)),this.originalInput=t;var i=sht(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=A0e(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=TQ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=TQ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=MQ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=MQ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),PQ(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),iht(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(xo(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(xo(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+PQ(this.r,this.g,this.b,!1),n=0,r=Object.entries(yN);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=HS(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=HS(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=HS(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=HS(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,i=1103547991^n,a=0,o;a>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)},Pz=fg(function(e){return e}),F0e={theme:Pz,token:q(q({},v3),Ho==null||(IT=Ho.defaultAlgorithm)===null||IT===void 0?void 0:IT.call(Ho,Ho==null?void 0:Ho.defaultSeed)),hashId:"pro-".concat(D0e(JSON.stringify(v3)))},fht=function(){return F0e};const pht=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:v3,emptyTheme:Pz,hashCode:D0e,token:F0e,useToken:fht},Symbol.toStringTag,{value:"Module"}));var ul=function(t,n){return new dht(t).setAlpha(n).toRgbString()},hht=function(){return typeof Ho>"u"||!Ho?pht:Ho},wd=hht(),p_=wd.useToken,jT=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function Ci(e,t){var n,r=d.useContext(uu),i=r.token,a=i===void 0?{}:i,o=d.useContext(uu),s=o.hashed,l=p_(),c=l.token,u=l.hashId,f=d.useContext(uu),p=f.theme,h=d.useContext(zn.ConfigContext),m=h.getPrefixCls,g=h.csp;return a.layout||(a=q({},c)),a.proComponentsCls=(n=a.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),a.antCls=".".concat(m()),{wrapSSR:Qw({theme:p,token:a,path:[e],nonce:g==null?void 0:g.nonce},function(){return t(a)}),hashId:s?u:""}}var mht=function(t,n){var r,i,a,o,s,l=q({},t);return q(q({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:ul(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:q({colorBgHeader:ul(n.colorBgElevated,.6),colorBgScrollHeader:ul(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:ul(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(i=l.header)===null||i===void 0?void 0:i.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=l.header)===null||a===void 0?void 0:a.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:ul(n.colorTextBase,.95),colorBgRightActionsItemHover:ul(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:q({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:ul(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:ul(n.colorTextBase,.06),colorBgMenuItemHover:ul(n.colorTextBase,.03),colorBgMenuItemSelected:ul(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:ul(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:ul(n.colorTextBase,.95)},l.sider),pageContainer:q({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((o=l.pageContainer)===null||o===void 0?void 0:o.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},ght=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i1,ce=I.getMessage("form.lightFilter.itemUnit","项");return typeof Z=="string"&&Z.length>k&&le?"...".concat(U.length).concat(ce):""},ae=X();return x.jsxs("span",{title:typeof Z=="string"?Z:void 0,style:{display:"inline-flex",alignItems:"center"},children:[ie,x.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof Z=="string"?Z==null||(Y=Z.toString())===null||Y===void 0||(ee=Y.substr)===null||ee===void 0?void 0:ee.call(Y,0,k):Z}),ae]})}return B||p};return O(x.jsxs("span",{className:Ee(P,j,"".concat(P,"-").concat((i=(a=t.size)!==null&&a!==void 0?a:E)!==null&&i!==void 0?i:"middle"),ne(ne(ne(ne({},"".concat(P,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(P,"-disabled"),c),"".concat(P,"-bordered"),g),"".concat(P,"-allow-clear"),b),h),style:v,ref:N,onClick:function(){var B;t==null||(B=t.onClick)===null||B===void 0||B.call(t)},children:[L(o,l),(l||l===0)&&b&&x.jsx(Pd,{role:"button",title:I.getMessage("form.lightFilter.clear","清除"),className:Ee("".concat(P,"-icon"),j,"".concat(P,"-close")),onClick:function(B){c||s==null||s(),B.stopPropagation()},ref:A}),y!==!1?y??x.jsx(My,{className:Ee("".concat(P,"-icon"),j,"".concat(P,"-arrow"))}):null]}))},Qf=te.forwardRef(Tht),lc=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},Pht=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,RQ=function(t){return t==="*"||t==="x"||t==="X"},IQ=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},Oht=function(t,n){return Kt(t)!==Kt(n)?[String(t),String(n)]:[t,n]},Rht=function(t,n){if(RQ(t)||RQ(n))return 0;var r=Oht(IQ(t),IQ(n)),i=Te(r,2),a=i[0],o=i[1];return a>o?1:a"u"?If:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||If},u$=function(t,n){var r=H4(L0e(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return lc(r)},jht=function(t){return ne(ne(ne({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function Nht(e){return Ci("FilterDropdown",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[jht(n)]})}var Aht=function(t){var n=t.children,r=t.label,i=t.footer,a=t.open,o=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,f=t.placement,p=d.useContext(zn.ConfigContext),h=p.getPrefixCls,m=h("pro-core-field-dropdown"),g=Nht(m),v=g.wrapSSR,y=g.hashId,w=u$(a||c||!1,o||l),b=d.useRef(null);return v(x.jsx(wc,q(q({placement:f,trigger:["click"]},w),{},{overlayInnerStyle:{padding:0},content:x.jsxs("div",{ref:b,className:Ee("".concat(m,"-overlay"),ne(ne({},"".concat(m,"-overlay-").concat(f),f),"hashId",y)),children:[x.jsx(zn,{getPopupContainer:function(){return b.current||document.body},children:x.jsx("div",{className:"".concat(m,"-content ").concat(y).trim(),children:n})}),i&&x.jsx(kht,q({disabled:s,footerRender:u},i))]}),children:x.jsx("span",{className:"".concat(m,"-label ").concat(y).trim(),children:r})})))},Dht=function(t){return ne({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function Fht(e){return Ci("LabelIconTip",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[Dht(n)]})}var Lht=te.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,a=d.useContext(zn.ConfigContext),o=a.getPrefixCls,s=o("pro-core-label-tip"),l=Fht(s),c=l.wrapSSR,u=l.hashId;if(!n&&!i)return x.jsx(x.Fragment,{children:t});var f=typeof n=="string"||te.isValidElement(n)?{title:n}:n,p=(f==null?void 0:f.icon)||x.jsx(Jrt,{});return c(x.jsxs("div",{className:Ee(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[x.jsx("div",{className:Ee("".concat(s,"-title"),u,ne({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&x.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:i}),n&&x.jsx(_a,q(q({},f),{},{children:x.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:p})}))]}))}),B0e=te.createContext({}),z0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n="month",r="quarter";return function(i,a){var o=a.prototype;o.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=o.add;o.add=function(c,u){return c=Number(c),this.$utils().p(u)===r?this.add(3*c,n):s.bind(this)(c,u)};var l=o.startOf;o.startOf=function(c,u){var f=this.$utils(),p=!!f.u(u)||u;if(f.p(c)===r){var h=this.quarter()-1;return p?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(z0e);var Bht=z0e.exports;const zht=ei(Bht);var Eg=function(t){return t==null};cr.extend(zht);var H0e={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function NQ(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hht(e){if(NQ(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(NQ(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var bN=function(t){return!!(t!=null&&t._isAMomentObject)},AQ=function(t,n,r){if(!n)return t;if(cr.isDayjs(t)||bN(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(H0e[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},Uht=function e(t,n,r,i,a){var o={};return typeof window>"u"||Kt(t)!=="object"||Eg(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=a?[a,s].flat(1):[s],c=Ds(r,l)||"text",u="text",f;typeof c=="string"?u=c:c&&(u=c.valueType,f=c.dateFormat);var p=t[s];if(!(Eg(p)&&i)){if(Hht(p)&&!Array.isArray(p)&&!cr.isDayjs(p)&&!bN(p)){o[s]=e(p,n,r,i,l);return}if(Array.isArray(p)){o[s]=p.map(function(h,m){return cr.isDayjs(h)||bN(h)?AQ(h,f||n,u):e(h,n,r,i,[s,"".concat(m)].flat(1))});return}o[s]=AQ(p,f||n,u)}}),o)},DQ=function(t,n){return typeof n=="function"?n(cr(t)):cr(t).format(n)},Wht=function(t,n){var r=Array.isArray(t)?t:[],i=Te(r,2),a=i[0],o=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):Kt(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=a?DQ(a,s):"",u=o?DQ(o,l):"",f=c&&u?"".concat(c," ~ ").concat(u):"";return f};function z0(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=d.useState(e),i=Te(r,2),a=i[0],o=i[1],s=qht(e);return d.useEffect(function(){var l=setTimeout(function(){o(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(lt(n)):void 0),a}function Ym(e,t,n,r){if(e===t)return!0;if(e&&t&&Kt(e)==="object"&&Kt(t)==="object"){if(e.constructor!==t.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!Ym(e[a],t[a],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=rd(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(a=l.value,!t.has(a[0]))return!1}catch(m){s.e(m)}finally{s.f()}var c=rd(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(a=u.value,!Ym(a[1],t.get(a[0]),n,r))return!1}catch(m){c.e(m)}finally{c.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=rd(e.entries()),p;try{for(f.s();!(p=f.n()).done;)if(a=p.value,!t.has(a[0]))return!1}catch(m){f.e(m)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(t).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[a]))return!1;for(a=i;a--!==0;){var h=o[a];if(!(n!=null&&n.includes(h))&&!(h==="_owner"&&e.$$typeof)&&!Ym(e[h],t[h],n,r))return!1}return!0}return e!==e&&t!==t}var Ght=function(t,n,r){return Ym(t,n,r)};function W0e(e,t){var n=d.useRef();return Ght(e,n.current,t)||(n.current=e),n.current}function Yht(e,t,n){d.useEffect(e,W0e(t||[],n))}function Ps(e,t){return te.useMemo(e,W0e(t))}var Xht=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Oz=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!Xht};function Zht(e,t){var n=typeof e.pageName=="string"?e.title:t;d.useEffect(function(){Oz()&&n&&(document.title=n)},[e.title,n])}var NT=0;function Qht(e){var t=d.useRef(null),n=d.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(NT+=1,NT.toString())}),r=Te(n,1),i=r[0],a=d.useRef(i),o=function(){var u=pa(hr().mark(function f(){var p,h,m,g;return hr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(p=t.current)===null||p===void 0||p.abort(),m=new AbortController,t.current=m,y.next=5,Promise.race([(h=e.request)===null||h===void 0?void 0:h.call(e,e.params,e),new Promise(function(w,b){var C;(C=t.current)===null||C===void 0||(C=C.signal)===null||C===void 0||C.addEventListener("abort",function(){b(new Error("aborted"))})})]);case 5:return g=y.sent,y.abrupt("return",g);case 7:case"end":return y.stop()}},f)}));return function(){return u.apply(this,arguments)}}();d.useEffect(function(){return function(){NT+=1}},[]);var s=Tz([a.current,e.params],o,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var Jht=function(t){var n=d.useRef();return d.useEffect(function(){n.current=t}),n.current},emt=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function tmt(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var Rz=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},V0e=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(FQ+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var i=63&r[t];n+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return n},B6=function(){return typeof window>"u"?LQ():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():LQ()};cr.extend(Eme);var BQ=function(t){return!!(t!=null&&t._isAMomentObject)},U4=function e(t,n){return Eg(t)||cr.isDayjs(t)||BQ(t)?BQ(t)?cr(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?cr(t):cr(t,n)},nmt=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function rmt(e){var t={};return nmt.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var imt="valueType request plain renderFormItem render text formItemProps valueEnum",amt="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function q0e(e){var t="".concat(imt," ").concat(amt).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function omt(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&Kt(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var smt=function(t){var n=t.color,r=t.children;return x.jsx(Lo,{color:n,text:r})},Jf=function(t){return omt(t)==="map"?t:new Map(Object.entries(t||{}))},lmt={Success:function(t){var n=t.children;return x.jsx(Lo,{status:"success",text:n})},Error:function(t){var n=t.children;return x.jsx(Lo,{status:"error",text:n})},Default:function(t){var n=t.children;return x.jsx(Lo,{status:"default",text:n})},Processing:function(t){var n=t.children;return x.jsx(Lo,{status:"processing",text:n})},Warning:function(t){var n=t.children;return x.jsx(Lo,{status:"warning",text:n})},success:function(t){var n=t.children;return x.jsx(Lo,{status:"success",text:n})},error:function(t){var n=t.children;return x.jsx(Lo,{status:"error",text:n})},default:function(t){var n=t.children;return x.jsx(Lo,{status:"default",text:n})},processing:function(t){var n=t.children;return x.jsx(Lo,{status:"processing",text:n})},warning:function(t){var n=t.children;return x.jsx(Lo,{status:"warning",text:n})}},zy=function e(t,n,r){if(Array.isArray(t))return x.jsx(Xr,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var i=Jf(n);if(!i.has(t)&&!i.has("".concat(t)))return(t==null?void 0:t.label)||t;var a=i.get(t)||i.get("".concat(t));if(!a)return x.jsx(te.Fragment,{children:(t==null?void 0:t.label)||t},r);var o=a.status,s=a.color,l=lmt[o||"Init"];return l?x.jsx(l,{children:a.text},r):s?x.jsx(smt,{color:s,children:a.text},r):x.jsx(te.Fragment,{children:a.text||a},r)},wN={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=y();r.configure=y,r.stringify=r,r.default=r,t.stringify=r,t.configure=y,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function a(w){return w.length<5e3&&!i.test(w)?`"${w}"`:JSON.stringify(w)}function o(w,b){if(w.length>200||b)return w.sort(b);for(let C=1;Ck;)w[S]=w[S-1],S--;w[S]=k}return w}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(w){return s.call(w)!==void 0&&w.length!==0}function c(w,b,C){w.length= 1`)}return C===void 0?1/0:C}function m(w){return w===1?"1 item":`${w} items`}function g(w){const b=new Set;for(const C of w)(typeof C=="string"||typeof C=="number")&&b.add(String(C));return b}function v(w){if(n.call(w,"strict")){const b=w.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)return C=>{let k=`Object can not safely be stringified. Received type ${typeof C}`;throw typeof C!="function"&&(k+=` (${C.toString()})`),new Error(k)}}}function y(w){w={...w};const b=v(w);b&&(w.bigint===void 0&&(w.bigint=!1),"circularValue"in w||(w.circularValue=Error));const C=u(w),k=p(w,"bigint"),S=f(w),_=typeof S=="function"?S:void 0,E=h(w,"maximumDepth"),$=h(w,"maximumBreadth");function M(I,A,N,F,K,L){let V=A[I];switch(typeof V=="object"&&V!==null&&typeof V.toJSON=="function"&&(V=V.toJSON(I)),V=F.call(A,I,V),typeof V){case"string":return a(V);case"object":{if(V===null)return"null";if(N.indexOf(V)!==-1)return C;let B="",U=",";const Y=L;if(Array.isArray(V)){if(V.length===0)return"[]";if(E=0)&&(n[i]=e[i]);return n}function Vdt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qdt(e,t){return e.button===0&&(!t||t==="_self")&&!Vdt(e)}const Kdt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Gdt="6";try{window.__reactRouterVersion=Gdt}catch{}function Ydt(e,t){return rdt({basename:t==null?void 0:t.basename,future:h3({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:$ut({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Xdt(),routes:e,mapRouteProperties:Udt,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function Xdt(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=h3({},t,{errors:Zdt(t.errors)})),t}function Zdt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new A6(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const Qdt=d.createContext({isTransitioning:!1}),Jdt=d.createContext(new Map),eft="startTransition",bQ=Qm[eft],tft="flushSync",wQ=Goe[tft];function nft(e){bQ?bQ(e):e()}function Ub(e){wQ?wQ(e):e()}class rft{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function ift(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=d.useState(n.state),[o,s]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,f]=d.useState(),[p,h]=d.useState(),[m,g]=d.useState(),v=d.useRef(new Map),{v7_startTransition:y}=r||{},w=d.useCallback(E=>{y?nft(E):E()},[y]),b=d.useCallback((E,$)=>{let{deletedFetchers:M,flushSync:P,viewTransitionOpts:R}=$;M.forEach(j=>v.current.delete(j)),E.fetchers.forEach((j,I)=>{j.data!==void 0&&v.current.set(I,j.data)});let O=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!R||O){P?Ub(()=>a(E)):w(()=>a(E));return}if(P){Ub(()=>{p&&(u&&u.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:R.currentLocation,nextLocation:R.nextLocation})});let j=n.window.document.startViewTransition(()=>{Ub(()=>a(E))});j.finished.finally(()=>{Ub(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})})}),Ub(()=>h(j));return}p?(u&&u.resolve(),p.skipTransition(),g({state:E,currentLocation:R.currentLocation,nextLocation:R.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}))},[n.window,p,u,v,w]);d.useLayoutEffect(()=>n.subscribe(b),[n,b]),d.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new rft)},[l]),d.useEffect(()=>{if(u&&o&&n.window){let E=o,$=u.promise,M=n.window.document.startViewTransition(async()=>{w(()=>a(E)),await $});M.finished.finally(()=>{f(void 0),h(void 0),s(void 0),c({isTransitioning:!1})}),h(M)}},[w,o,u,n.window]),d.useEffect(()=>{u&&o&&i.location.key===o.location.key&&u.resolve()},[u,p,i.location,o]),d.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),d.useEffect(()=>{},[]);let C=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,M)=>n.navigate(E,{state:$,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(E,$,M)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),k=n.basename||"/",S=d.useMemo(()=>({router:n,navigator:C,static:!1,basename:k}),[n,C,k]),_=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>Bdt(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement(s$.Provider,{value:S},d.createElement(v0e.Provider,{value:i},d.createElement(Jdt.Provider,{value:v.current},d.createElement(Qdt.Provider,{value:l},d.createElement(Hdt,{basename:k,location:i.location,navigationType:i.historyAction,navigator:C,future:_},i.initialized||n.future.v7_partialHydration?d.createElement(aft,{routes:n.routes,future:n.future,state:i}):t))))),null)}const aft=d.memo(oft);function oft(e){let{routes:t,future:n,state:r}=e;return Mdt(t,void 0,r,n)}const sft=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lft=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cft=d.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,p=Wdt(t,Kdt),{basename:h}=d.useContext(_h),m,g=!1;if(typeof c=="string"&&lft.test(c)&&(m=c,sft))try{let b=new URL(window.location.href),C=c.startsWith("//")?new URL(b.protocol+c):new URL(c),k=Ly(C.pathname,h);C.origin===b.origin&&k!=null?c=k+C.search+C.hash:g=!0}catch{}let v=Cdt(c,{relative:i}),y=uft(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:f});function w(b){r&&r(b),b.defaultPrevented||y(b)}return d.createElement("a",h3({},p,{href:m||v,onClick:g||a?r:w,ref:n,target:l}))});var xQ;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xQ||(xQ={}));var SQ;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(SQ||(SQ={}));function uft(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=rs(),c=n1(),u=w0e(e,{relative:o});return d.useCallback(f=>{if(qdt(f,n)){f.preventDefault();let p=r!==void 0?r:_g(c)===_g(u);l(e,{replace:p,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,u,r,i,n,e,a,o,s])}var dft=q(q({},mfe),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const C0e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},dN={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},dft),timePickerLocale:Object.assign({},C0e)};dN.lang.ok="确定";const sl="${label}不是一个有效的${type}",fft={locale:"zh-cn",Pagination:H1e,DatePicker:dN,TimePicker:C0e,Calendar:dN,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:sl,method:sl,array:sl,object:sl,number:sl,date:sl,boolean:sl,integer:sl,float:sl,regexp:sl,email:sl,url:sl,hex:sl},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}},Hp=()=>{},bl=Hp(),u_=Object,Qr=e=>e===bl,ad=e=>typeof e=="function",Df=(e,t)=>({...e,...t}),pft=e=>ad(e.then),LS=new WeakMap;let hft=0;const m3=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,a;if(u_(e)===e&&!r&&n!=RegExp){if(i=LS.get(e),i)return i;if(i=++hft+"~",LS.set(e,i),n==Array){for(i="@",a=0;al$&&typeof window.requestAnimationFrame!=kz,_0e=(e,t)=>{const n=sf.get(e);return[()=>!Qr(t)&&e.get(t)||$T,r=>{if(!Qr(t)){const i=e.get(t);t in BS||(BS[t]=i),n[5](t,Df(i,r),i||$T)}},n[6],()=>!Qr(t)&&t in BS?BS[t]:!Qr(t)&&e.get(t)||$T]};let pN=!0;const gft=()=>pN,[hN,mN]=l$&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Hp,Hp],vft=()=>{const e=fN&&document.visibilityState;return Qr(e)||e!=="hidden"},yft=e=>(fN&&document.addEventListener("visibilitychange",e),hN("focus",e),()=>{fN&&document.removeEventListener("visibilitychange",e),mN("focus",e)}),bft=e=>{const t=()=>{pN=!0,e()},n=()=>{pN=!1};return hN("online",t),hN("offline",n),()=>{mN("online",t),mN("offline",n)}},wft={isOnline:gft,isVisible:vft},xft={initFocus:yft,initReconnect:bft},CQ=!te.useId,g3=!l$||"Deno"in window,Sft=e=>mft()?window.requestAnimationFrame(e):setTimeout(e,1),d_=g3?d.useEffect:d.useLayoutEffect,MT=typeof navigator<"u"&&navigator.connection,_Q=!g3&&MT&&(["slow-2g","2g"].includes(MT.effectiveType)||MT.saveData),Ez=e=>{if(ad(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?m3(e):"",[e,t]};let Cft=0;const gN=()=>++Cft,k0e=0,E0e=1,$0e=2,_ft=3;var Wb={__proto__:null,ERROR_REVALIDATE_EVENT:_ft,FOCUS_EVENT:k0e,MUTATE_EVENT:$0e,RECONNECT_EVENT:E0e};async function M0e(...e){const[t,n,r,i]=e,a=Df({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,u=h=>typeof s=="function"?s(h):s!==!1,f=a.throwOnError;if(ad(n)){const h=n,m=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&m.push(v);return Promise.all(m.map(p))}return p(n);async function p(h){const[m]=Ez(h);if(!m)return;const[g,v]=_0e(t,m),[y,w,b,C]=sf.get(t),k=y[m],S=()=>c&&(delete b[m],delete C[m],k&&k[0])?k[0]($0e).then(()=>g().data):g().data;if(e.length<3)return S();let _=r,E;const $=gN();w[m]=[$,0];const M=!Qr(l),P=g(),R=P.data,O=P._c,j=Qr(O)?R:O;if(M&&(l=ad(l)?l(j,R):l,v({data:l,_c:j})),ad(_))try{_=_(j)}catch(A){E=A}if(_&&pft(_))if(_=await _.catch(A=>{E=A}),$!==w[m][0]){if(E)throw E;return _}else E&&M&&u(E)&&(o=!0,_=j,v({data:_,_c:bl}));o&&(E||(ad(o)&&(_=o(_,j)),v({data:_,error:bl,_c:bl}))),w[m][1]=gN();const I=await S();if(v({_c:bl}),E){if(f)throw E;return}return o?I:_}}const kQ=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},T0e=(e,t)=>{if(!sf.has(e)){const n=Df(xft,t),r={},i=M0e.bind(bl,e);let a=Hp;const o={},s=(u,f)=>{const p=o[u]||[];return o[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const h=o[u];if(h)for(const m of h)m(f,p)},c=()=>{if(!sf.has(e)&&(sf.set(e,[r,{},{},{},i,l,s]),!g3)){const u=n.initFocus(setTimeout.bind(bl,kQ.bind(bl,r,k0e))),f=n.initReconnect(setTimeout.bind(bl,kQ.bind(bl,r,E0e)));a=()=>{u&&u(),f&&f(),sf.delete(e)}}};return c(),[e,i,c,a]}return[e,sf.get(e)[4]]},kft=(e,t,n,r,i)=>{const a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Qr(a)&&o>a||setTimeout(r,s,i)},Eft=(e,t)=>m3(e)==m3(t),[$z,$ft]=T0e(new Map),P0e=Df({onLoadingSlow:Hp,onSuccess:Hp,onError:Hp,onErrorRetry:kft,onDiscarded:Hp,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_Q?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:_Q?5e3:3e3,compare:Eft,isPaused:()=>!1,cache:$z,mutate:$ft,fallback:{}},wft),O0e=(e,t)=>{const n=Df(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=Df(i,o))}return n},vN=d.createContext({}),Mft=e=>{const{value:t}=e,n=d.useContext(vN),r=ad(t),i=d.useMemo(()=>r?t(n):t,[r,n,t]),a=d.useMemo(()=>r?i:O0e(n,i),[r,n,i]),o=i&&i.provider,s=d.useRef(bl);o&&!s.current&&(s.current=T0e(o(a.cache||$z),i));const l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),d_(()=>{if(l)return l[2]&&l[2](),l[3]},[]),d.createElement(vN.Provider,Df(e,{value:a}))},R0e=l$&&window.__SWR_DEVTOOLS_USE__,Tft=R0e?window.__SWR_DEVTOOLS_USE__:[],Pft=()=>{R0e&&(window.__SWR_DEVTOOLS_REACT__=te)},Oft=e=>ad(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Mz=()=>Df(P0e,d.useContext(vN)),Rft=e=>(t,n,r)=>e(t,n&&((...a)=>{const[o]=Ez(t),[,,,s]=sf.get($z),l=s[o];return Qr(l)?n(...a):(delete s[o],l)}),r),Ift=Tft.concat(Rft),jft=e=>function(...n){const r=Mz(),[i,a,o]=Oft(n),s=O0e(r,o);let l=e;const{use:c}=s,u=(c||[]).concat(Ift);for(let f=u.length;f--;)l=u[f](l);return l(i,a||s.fetcher||null,s)},Nft=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};Pft();const EQ=te.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),TT={dedupe:!0},Aft=(e,t,n)=>{const{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[h,m,g,v]=sf.get(r),[y,w]=Ez(e),b=d.useRef(!1),C=d.useRef(!1),k=d.useRef(y),S=d.useRef(t),_=d.useRef(n),E=()=>_.current,$=()=>E().isVisible()&&E().isOnline(),[M,P,R,O]=_0e(r,y),j=d.useRef({}).current,I=Qr(o)?n.fallback[y]:o,A=(ce,pe)=>{for(const me in j){const re=me;if(re==="data"){if(!i(ce[re],pe[re])&&(!Qr(ce[re])||!i(ee,pe[re])))return!1}else if(pe[re]!==ce[re])return!1}return!0},N=d.useMemo(()=>{const ce=!y||!t?!1:Qr(s)?E().isPaused()||a?!1:Qr(l)?!0:l:s,pe=Ce=>{const be=Df(Ce);return delete be._k,ce?{isValidating:!0,isLoading:!0,...be}:be},me=M(),re=O(),fe=pe(me),ve=me===re?fe:pe(re);let $e=fe;return[()=>{const Ce=pe(M());return A(Ce,$e)?($e.data=Ce.data,$e.isLoading=Ce.isLoading,$e.isValidating=Ce.isValidating,$e.error=Ce.error,$e):($e=Ce,Ce)},()=>ve]},[r,y]),F=Joe.useSyncExternalStore(d.useCallback(ce=>R(y,(pe,me)=>{A(me,pe)||ce()}),[r,y]),N[0],N[1]),K=!b.current,L=h[y]&&h[y].length>0,V=F.data,B=Qr(V)?I:V,U=F.error,Y=d.useRef(B),ee=p?Qr(V)?Y.current:V:B,ie=L&&!Qr(U)?!1:K&&!Qr(s)?s:E().isPaused()?!1:a?Qr(B)?!1:l:Qr(B)||l,Z=!!(y&&t&&K&&ie),X=Qr(F.isValidating)?Z:F.isValidating,ae=Qr(F.isLoading)?Z:F.isLoading,oe=d.useCallback(async ce=>{const pe=S.current;if(!y||!pe||C.current||E().isPaused())return!1;let me,re,fe=!0;const ve=ce||{},$e=!g[y]||!ve.dedupe,Ce=()=>CQ?!C.current&&y===k.current&&b.current:y===k.current,be={isValidating:!1,isLoading:!1},Se=()=>{P(be)},we=()=>{const ye=g[y];ye&&ye[1]===re&&delete g[y]},se={isValidating:!0};Qr(M().data)&&(se.isLoading=!0);try{if($e&&(P(se),n.loadingTimeout&&Qr(M().data)&&setTimeout(()=>{fe&&Ce()&&E().onLoadingSlow(y,n)},n.loadingTimeout),g[y]=[pe(w),gN()]),[me,re]=g[y],me=await me,$e&&setTimeout(we,n.dedupingInterval),!g[y]||g[y][1]!==re)return $e&&Ce()&&E().onDiscarded(y),!1;be.error=bl;const ye=m[y];if(!Qr(ye)&&(re<=ye[0]||re<=ye[1]||ye[1]===0))return Se(),$e&&Ce()&&E().onDiscarded(y),!1;const Oe=M().data;be.data=i(Oe,me)?Oe:me,$e&&Ce()&&E().onSuccess(me,y,n)}catch(ye){we();const Oe=E(),{shouldRetryOnError:z}=Oe;Oe.isPaused()||(be.error=ye,$e&&Ce()&&(Oe.onError(ye,y,Oe),(z===!0||ad(z)&&z(ye))&&$()&&Oe.onErrorRetry(ye,y,Oe,H=>{const G=h[y];G&&G[0]&&G[0](Wb.ERROR_REVALIDATE_EVENT,H)},{retryCount:(ve.retryCount||0)+1,dedupe:!0})))}return fe=!1,Se(),!0},[y,r]),le=d.useCallback((...ce)=>M0e(r,k.current,...ce),[]);if(d_(()=>{S.current=t,_.current=n,Qr(V)||(Y.current=V)}),d_(()=>{if(!y)return;const ce=oe.bind(bl,TT);let pe=0;const re=Nft(y,h,(fe,ve={})=>{if(fe==Wb.FOCUS_EVENT){const $e=Date.now();E().revalidateOnFocus&&$e>pe&&$()&&(pe=$e+E().focusThrottleInterval,ce())}else if(fe==Wb.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&ce();else{if(fe==Wb.MUTATE_EVENT)return oe();if(fe==Wb.ERROR_REVALIDATE_EVENT)return oe(ve)}});return C.current=!1,k.current=y,b.current=!0,P({_k:w}),ie&&(Qr(B)||g3?ce():Sft(ce)),()=>{C.current=!0,re()}},[y]),d_(()=>{let ce;function pe(){const re=ad(c)?c(M().data):c;re&&ce!==-1&&(ce=setTimeout(me,re))}function me(){!M().error&&(u||E().isVisible())&&(f||E().isOnline())?oe(TT).then(pe):pe()}return pe(),()=>{ce&&(clearTimeout(ce),ce=-1)}},[c,u,f,y]),d.useDebugValue(ee),a&&Qr(B)&&y){if(!CQ&&g3)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,_.current=n,C.current=!1;const ce=v[y];if(!Qr(ce)){const pe=le(ce);EQ(pe)}if(Qr(U)){const pe=oe(TT);Qr(ee)||(pe.status="fulfilled",pe.value=!0),EQ(pe)}else throw U}return{mutate:le,get data(){return j.data=!0,ee},get error(){return j.error=!0,U},get isValidating(){return j.isValidating=!0,X},get isLoading(){return j.isLoading=!0,ae}}},Dft=u_.defineProperty(Mft,"defaultValue",{value:P0e}),Tz=jft(Aft);var Fft=function(t,n){typeof t=="function"?t(n):Kt(t)==="object"&&t&&"current"in t&&(t.current=n)},Lft=function(){for(var t=arguments.length,n=new Array(t),r=0;r=19;function Mm(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Mm(e,t.slice(0,-1))?e:I0e(e,t,n,r)}const Hft={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},Uft={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},Wft={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},Vft={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},qft={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Kft={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Gft={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},Yft={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},Xft={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},Zft={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},Qft={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},Jft={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},ept={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},tpt={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},npt={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},rpt={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},ipt={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},apt={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},opt={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},spt={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},lpt={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},cpt={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},upt={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},dpt={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},fpt={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},ppt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},hpt={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},mpt={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},gpt={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}},vpt={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},ypt={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},bpt={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}};var ni=function(t,n){return{getMessage:function(i,a){var o=Mm(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(o)return o;var s=t.replace("_","-");if(s==="zh-CN")return a;var l=kg["zh-CN"];return l?l.getMessage(i,a):a},locale:t}},wpt=ni("mn_MN",rpt),xpt=ni("ar_EG",Hft),Av=ni("zh_CN",mpt),Spt=ni("en_US",Kft),Cpt=ni("en_GB",qft),_pt=ni("vi_VN",hpt),kpt=ni("it_IT",ept),Ept=ni("ja_JP",tpt),$pt=ni("es_ES",Gft),Mpt=ni("ca_ES",Uft),Tpt=ni("ru_RU",spt),Ppt=ni("sr_RS",cpt),Opt=ni("ms_MY",ipt),Rpt=ni("zh_TW",gpt),Ipt=ni("fr_FR",Xft),jpt=ni("pt_BR",opt),Npt=ni("ko_KR",npt),Apt=ni("id_ID",Jft),Dpt=ni("de_DE",Vft),Fpt=ni("fa_IR",Yft),Lpt=ni("tr_TR",dpt),Bpt=ni("pl_PL",apt),zpt=ni("hr_",Qft),Hpt=ni("th_TH",upt),Upt=ni("cs_cz",Wft),Wpt=ni("sk_SK",lpt),Vpt=ni("he_IL",Zft),qpt=ni("uk_UA",fpt),Kpt=ni("uz_UZ",ppt),Gpt=ni("nl_NL",vpt),Ypt=ni("ro_RO",ypt),Xpt=ni("sv_SE",bpt),kg={"mn-MN":wpt,"ar-EG":xpt,"zh-CN":Av,"en-US":Spt,"en-GB":Cpt,"vi-VN":_pt,"it-IT":kpt,"ja-JP":Ept,"es-ES":$pt,"ca-ES":Mpt,"ru-RU":Tpt,"sr-RS":Ppt,"ms-MY":Opt,"zh-TW":Rpt,"fr-FR":Ipt,"pt-BR":jpt,"ko-KR":Npt,"id-ID":Apt,"de-DE":Dpt,"fa-IR":Fpt,"tr-TR":Lpt,"pl-PL":Bpt,"hr-HR":zpt,"th-TH":Hpt,"cs-CZ":Upt,"sk-SK":Wpt,"he-IL":Vpt,"uk-UA":qpt,"uz-UZ":Kpt,"nl-NL":Gpt,"ro-RO":Ypt,"sv-SE":Xpt},Zpt=Object.keys(kg),j0e=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return Zpt.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function xo(e,t){Qpt(e)&&(e="100%");var n=Jpt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function zS(e){return Math.min(1,Math.max(0,e))}function Qpt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Jpt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function N0e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function HS(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Tm(e){return e.length===1?"0"+e:String(e)}function eht(e,t,n){return{r:xo(e,255)*255,g:xo(t,255)*255,b:xo(n,255)*255}}function MQ(e,t,n){e=xo(e,255),t=xo(t,255),n=xo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tht(e,t,n){var r,i,a;if(e=xo(e,360),t=xo(t,100),n=xo(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=PT(s,o,e+1/3),i=PT(s,o,e),a=PT(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function TQ(e,t,n){e=xo(e,255),t=xo(t,255),n=xo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var yN={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function oht(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=cht(e)),typeof e=="object"&&(Vd(e.r)&&Vd(e.g)&&Vd(e.b)?(t=eht(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Vd(e.h)&&Vd(e.s)&&Vd(e.v)?(r=HS(e.s),i=HS(e.v),t=nht(e.h,r,i),o=!0,s="hsv"):Vd(e.h)&&Vd(e.s)&&Vd(e.l)&&(r=HS(e.s),a=HS(e.l),t=tht(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=N0e(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var sht="[-\\+]?\\d+%?",lht="[-\\+]?\\d*\\.\\d+%?",Up="(?:".concat(lht,")|(?:").concat(sht,")"),OT="[\\s|\\(]+(".concat(Up,")[,|\\s]+(").concat(Up,")[,|\\s]+(").concat(Up,")\\s*\\)?"),RT="[\\s|\\(]+(".concat(Up,")[,|\\s]+(").concat(Up,")[,|\\s]+(").concat(Up,")[,|\\s]+(").concat(Up,")\\s*\\)?"),Lc={CSS_UNIT:new RegExp(Up),rgb:new RegExp("rgb"+OT),rgba:new RegExp("rgba"+RT),hsl:new RegExp("hsl"+OT),hsla:new RegExp("hsla"+RT),hsv:new RegExp("hsv"+OT),hsva:new RegExp("hsva"+RT),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function cht(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(yN[e])e=yN[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Lc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Lc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Lc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Lc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Lc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Lc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Lc.hex8.exec(e),n?{r:cl(n[1]),g:cl(n[2]),b:cl(n[3]),a:OQ(n[4]),format:t?"name":"hex8"}:(n=Lc.hex6.exec(e),n?{r:cl(n[1]),g:cl(n[2]),b:cl(n[3]),format:t?"name":"hex"}:(n=Lc.hex4.exec(e),n?{r:cl(n[1]+n[1]),g:cl(n[2]+n[2]),b:cl(n[3]+n[3]),a:OQ(n[4]+n[4]),format:t?"name":"hex8"}:(n=Lc.hex3.exec(e),n?{r:cl(n[1]+n[1]),g:cl(n[2]+n[2]),b:cl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Vd(e){return!!Lc.CSS_UNIT.exec(String(e))}var uht=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=aht(t)),this.originalInput=t;var i=oht(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=N0e(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=TQ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=TQ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=MQ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=MQ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),PQ(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),rht(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(xo(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(xo(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+PQ(this.r,this.g,this.b,!1),n=0,r=Object.entries(yN);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=zS(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=zS(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=zS(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=zS(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,i=1103547991^n,a=0,o;a>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)},Pz=fg(function(e){return e}),D0e={theme:Pz,token:q(q({},v3),zo==null||(IT=zo.defaultAlgorithm)===null||IT===void 0?void 0:IT.call(zo,zo==null?void 0:zo.defaultSeed)),hashId:"pro-".concat(A0e(JSON.stringify(v3)))},dht=function(){return D0e};const fht=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:v3,emptyTheme:Pz,hashCode:A0e,token:D0e,useToken:dht},Symbol.toStringTag,{value:"Module"}));var Yl=function(t,n){return new uht(t).setAlpha(n).toRgbString()},pht=function(){return typeof zo>"u"||!zo?fht:zo},wd=pht(),f_=wd.useToken,jT=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function Ci(e,t){var n,r=d.useContext(uu),i=r.token,a=i===void 0?{}:i,o=d.useContext(uu),s=o.hashed,l=f_(),c=l.token,u=l.hashId,f=d.useContext(uu),p=f.theme,h=d.useContext(zn.ConfigContext),m=h.getPrefixCls,g=h.csp;return a.layout||(a=q({},c)),a.proComponentsCls=(n=a.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),a.antCls=".".concat(m()),{wrapSSR:Qw({theme:p,token:a,path:[e],nonce:g==null?void 0:g.nonce},function(){return t(a)}),hashId:s?u:""}}var hht=function(t,n){var r,i,a,o,s,l=q({},t);return q(q({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:Yl(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:q({colorBgHeader:Yl(n.colorBgElevated,.6),colorBgScrollHeader:Yl(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:Yl(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(i=l.header)===null||i===void 0?void 0:i.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=l.header)===null||a===void 0?void 0:a.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:Yl(n.colorTextBase,.95),colorBgRightActionsItemHover:Yl(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:q({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:Yl(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:Yl(n.colorTextBase,.06),colorBgMenuItemHover:Yl(n.colorTextBase,.03),colorBgMenuItemSelected:Yl(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:Yl(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:Yl(n.colorTextBase,.95)},l.sider),pageContainer:q({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((o=l.pageContainer)===null||o===void 0?void 0:o.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},mht=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i1,ce=I.getMessage("form.lightFilter.itemUnit","项");return typeof Z=="string"&&Z.length>k&&le?"...".concat(U.length).concat(ce):""},ae=X();return x.jsxs("span",{title:typeof Z=="string"?Z:void 0,style:{display:"inline-flex",alignItems:"center"},children:[ie,x.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof Z=="string"?Z==null||(Y=Z.toString())===null||Y===void 0||(ee=Y.substr)===null||ee===void 0?void 0:ee.call(Y,0,k):Z}),ae]})}return B||p};return O(x.jsxs("span",{className:Ee(P,j,"".concat(P,"-").concat((i=(a=t.size)!==null&&a!==void 0?a:E)!==null&&i!==void 0?i:"middle"),ne(ne(ne(ne({},"".concat(P,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(P,"-disabled"),c),"".concat(P,"-bordered"),g),"".concat(P,"-allow-clear"),b),h),style:v,ref:N,onClick:function(){var B;t==null||(B=t.onClick)===null||B===void 0||B.call(t)},children:[L(o,l),(l||l===0)&&b&&x.jsx(Pd,{role:"button",title:I.getMessage("form.lightFilter.clear","清除"),className:Ee("".concat(P,"-icon"),j,"".concat(P,"-close")),onClick:function(B){c||s==null||s(),B.stopPropagation()},ref:A}),y!==!1?y??x.jsx(My,{className:Ee("".concat(P,"-icon"),j,"".concat(P,"-arrow"))}):null]}))},Qf=te.forwardRef(Mht),lc=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},Tht=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,RQ=function(t){return t==="*"||t==="x"||t==="X"},IQ=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},Pht=function(t,n){return Kt(t)!==Kt(n)?[String(t),String(n)]:[t,n]},Oht=function(t,n){if(RQ(t)||RQ(n))return 0;var r=Pht(IQ(t),IQ(n)),i=Te(r,2),a=i[0],o=i[1];return a>o?1:a"u"?If:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||If},u$=function(t,n){var r=z4(F0e(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return lc(r)},Iht=function(t){return ne(ne(ne({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function jht(e){return Ci("FilterDropdown",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[Iht(n)]})}var Nht=function(t){var n=t.children,r=t.label,i=t.footer,a=t.open,o=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,f=t.placement,p=d.useContext(zn.ConfigContext),h=p.getPrefixCls,m=h("pro-core-field-dropdown"),g=jht(m),v=g.wrapSSR,y=g.hashId,w=u$(a||c||!1,o||l),b=d.useRef(null);return v(x.jsx(wc,q(q({placement:f,trigger:["click"]},w),{},{overlayInnerStyle:{padding:0},content:x.jsxs("div",{ref:b,className:Ee("".concat(m,"-overlay"),ne(ne({},"".concat(m,"-overlay-").concat(f),f),"hashId",y)),children:[x.jsx(zn,{getPopupContainer:function(){return b.current||document.body},children:x.jsx("div",{className:"".concat(m,"-content ").concat(y).trim(),children:n})}),i&&x.jsx(_ht,q({disabled:s,footerRender:u},i))]}),children:x.jsx("span",{className:"".concat(m,"-label ").concat(y).trim(),children:r})})))},Aht=function(t){return ne({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function Dht(e){return Ci("LabelIconTip",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[Aht(n)]})}var Fht=te.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,a=d.useContext(zn.ConfigContext),o=a.getPrefixCls,s=o("pro-core-label-tip"),l=Dht(s),c=l.wrapSSR,u=l.hashId;if(!n&&!i)return x.jsx(x.Fragment,{children:t});var f=typeof n=="string"||te.isValidElement(n)?{title:n}:n,p=(f==null?void 0:f.icon)||x.jsx(Qrt,{});return c(x.jsxs("div",{className:Ee(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[x.jsx("div",{className:Ee("".concat(s,"-title"),u,ne({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&x.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:i}),n&&x.jsx(_a,q(q({},f),{},{children:x.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:p})}))]}))}),L0e=te.createContext({}),B0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n="month",r="quarter";return function(i,a){var o=a.prototype;o.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=o.add;o.add=function(c,u){return c=Number(c),this.$utils().p(u)===r?this.add(3*c,n):s.bind(this)(c,u)};var l=o.startOf;o.startOf=function(c,u){var f=this.$utils(),p=!!f.u(u)||u;if(f.p(c)===r){var h=this.quarter()-1;return p?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(B0e);var Lht=B0e.exports;const Bht=ei(Lht);var Eg=function(t){return t==null};cr.extend(Bht);var z0e={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function NQ(e){return Object.prototype.toString.call(e)==="[object Object]"}function zht(e){if(NQ(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(NQ(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var bN=function(t){return!!(t!=null&&t._isAMomentObject)},AQ=function(t,n,r){if(!n)return t;if(cr.isDayjs(t)||bN(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(z0e[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},Hht=function e(t,n,r,i,a){var o={};return typeof window>"u"||Kt(t)!=="object"||Eg(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=a?[a,s].flat(1):[s],c=Ds(r,l)||"text",u="text",f;typeof c=="string"?u=c:c&&(u=c.valueType,f=c.dateFormat);var p=t[s];if(!(Eg(p)&&i)){if(zht(p)&&!Array.isArray(p)&&!cr.isDayjs(p)&&!bN(p)){o[s]=e(p,n,r,i,l);return}if(Array.isArray(p)){o[s]=p.map(function(h,m){return cr.isDayjs(h)||bN(h)?AQ(h,f||n,u):e(h,n,r,i,[s,"".concat(m)].flat(1))});return}o[s]=AQ(p,f||n,u)}}),o)},DQ=function(t,n){return typeof n=="function"?n(cr(t)):cr(t).format(n)},Uht=function(t,n){var r=Array.isArray(t)?t:[],i=Te(r,2),a=i[0],o=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):Kt(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=a?DQ(a,s):"",u=o?DQ(o,l):"",f=c&&u?"".concat(c," ~ ").concat(u):"";return f};function z0(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=d.useState(e),i=Te(r,2),a=i[0],o=i[1],s=Vht(e);return d.useEffect(function(){var l=setTimeout(function(){o(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(lt(n)):void 0),a}function Ym(e,t,n,r){if(e===t)return!0;if(e&&t&&Kt(e)==="object"&&Kt(t)==="object"){if(e.constructor!==t.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!Ym(e[a],t[a],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=rd(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(a=l.value,!t.has(a[0]))return!1}catch(m){s.e(m)}finally{s.f()}var c=rd(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(a=u.value,!Ym(a[1],t.get(a[0]),n,r))return!1}catch(m){c.e(m)}finally{c.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=rd(e.entries()),p;try{for(f.s();!(p=f.n()).done;)if(a=p.value,!t.has(a[0]))return!1}catch(m){f.e(m)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(t).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[a]))return!1;for(a=i;a--!==0;){var h=o[a];if(!(n!=null&&n.includes(h))&&!(h==="_owner"&&e.$$typeof)&&!Ym(e[h],t[h],n,r))return!1}return!0}return e!==e&&t!==t}var Kht=function(t,n,r){return Ym(t,n,r)};function U0e(e,t){var n=d.useRef();return Kht(e,n.current,t)||(n.current=e),n.current}function Ght(e,t,n){d.useEffect(e,U0e(t||[],n))}function Ps(e,t){return te.useMemo(e,U0e(t))}var Yht=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Oz=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!Yht};function Xht(e,t){var n=typeof e.pageName=="string"?e.title:t;d.useEffect(function(){Oz()&&n&&(document.title=n)},[e.title,n])}var NT=0;function Zht(e){var t=d.useRef(null),n=d.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(NT+=1,NT.toString())}),r=Te(n,1),i=r[0],a=d.useRef(i),o=function(){var u=pa(hr().mark(function f(){var p,h,m,g;return hr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(p=t.current)===null||p===void 0||p.abort(),m=new AbortController,t.current=m,y.next=5,Promise.race([(h=e.request)===null||h===void 0?void 0:h.call(e,e.params,e),new Promise(function(w,b){var C;(C=t.current)===null||C===void 0||(C=C.signal)===null||C===void 0||C.addEventListener("abort",function(){b(new Error("aborted"))})})]);case 5:return g=y.sent,y.abrupt("return",g);case 7:case"end":return y.stop()}},f)}));return function(){return u.apply(this,arguments)}}();d.useEffect(function(){return function(){NT+=1}},[]);var s=Tz([a.current,e.params],o,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var Qht=function(t){var n=d.useRef();return d.useEffect(function(){n.current=t}),n.current},Jht=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function emt(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var Rz=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},W0e=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(FQ+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var i=63&r[t];n+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return n},L6=function(){return typeof window>"u"?LQ():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():LQ()};cr.extend(kme);var BQ=function(t){return!!(t!=null&&t._isAMomentObject)},H4=function e(t,n){return Eg(t)||cr.isDayjs(t)||BQ(t)?BQ(t)?cr(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?cr(t):cr(t,n)},tmt=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function nmt(e){var t={};return tmt.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var rmt="valueType request plain renderFormItem render text formItemProps valueEnum",imt="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function V0e(e){var t="".concat(rmt," ").concat(imt).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function amt(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&Kt(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var omt=function(t){var n=t.color,r=t.children;return x.jsx(Fo,{color:n,text:r})},Jf=function(t){return amt(t)==="map"?t:new Map(Object.entries(t||{}))},smt={Success:function(t){var n=t.children;return x.jsx(Fo,{status:"success",text:n})},Error:function(t){var n=t.children;return x.jsx(Fo,{status:"error",text:n})},Default:function(t){var n=t.children;return x.jsx(Fo,{status:"default",text:n})},Processing:function(t){var n=t.children;return x.jsx(Fo,{status:"processing",text:n})},Warning:function(t){var n=t.children;return x.jsx(Fo,{status:"warning",text:n})},success:function(t){var n=t.children;return x.jsx(Fo,{status:"success",text:n})},error:function(t){var n=t.children;return x.jsx(Fo,{status:"error",text:n})},default:function(t){var n=t.children;return x.jsx(Fo,{status:"default",text:n})},processing:function(t){var n=t.children;return x.jsx(Fo,{status:"processing",text:n})},warning:function(t){var n=t.children;return x.jsx(Fo,{status:"warning",text:n})}},zy=function e(t,n,r){if(Array.isArray(t))return x.jsx(Xr,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var i=Jf(n);if(!i.has(t)&&!i.has("".concat(t)))return(t==null?void 0:t.label)||t;var a=i.get(t)||i.get("".concat(t));if(!a)return x.jsx(te.Fragment,{children:(t==null?void 0:t.label)||t},r);var o=a.status,s=a.color,l=smt[o||"Init"];return l?x.jsx(l,{children:a.text},r):s?x.jsx(omt,{color:s,children:a.text},r):x.jsx(te.Fragment,{children:a.text||a},r)},wN={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=y();r.configure=y,r.stringify=r,r.default=r,t.stringify=r,t.configure=y,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function a(w){return w.length<5e3&&!i.test(w)?`"${w}"`:JSON.stringify(w)}function o(w,b){if(w.length>200||b)return w.sort(b);for(let C=1;Ck;)w[S]=w[S-1],S--;w[S]=k}return w}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(w){return s.call(w)!==void 0&&w.length!==0}function c(w,b,C){w.length= 1`)}return C===void 0?1/0:C}function m(w){return w===1?"1 item":`${w} items`}function g(w){const b=new Set;for(const C of w)(typeof C=="string"||typeof C=="number")&&b.add(String(C));return b}function v(w){if(n.call(w,"strict")){const b=w.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)return C=>{let k=`Object can not safely be stringified. Received type ${typeof C}`;throw typeof C!="function"&&(k+=` (${C.toString()})`),new Error(k)}}}function y(w){w={...w};const b=v(w);b&&(w.bigint===void 0&&(w.bigint=!1),"circularValue"in w||(w.circularValue=Error));const C=u(w),k=p(w,"bigint"),S=f(w),_=typeof S=="function"?S:void 0,E=h(w,"maximumDepth"),$=h(w,"maximumBreadth");function M(I,A,N,F,K,L){let V=A[I];switch(typeof V=="object"&&V!==null&&typeof V.toJSON=="function"&&(V=V.toJSON(I)),V=F.call(A,I,V),typeof V){case"string":return a(V);case"object":{if(V===null)return"null";if(N.indexOf(V)!==-1)return C;let B="",U=",";const Y=L;if(Array.isArray(V)){if(V.length===0)return"[]";if(E$){const pe=V.length-$-1;B+=`${U}"... ${m(pe)} not stringified"`}return K!==""&&(B+=` ${Y}`),N.pop(),`[${B}]`}let ee=Object.keys(V);const ie=ee.length;if(ie===0)return"{}";if(E$){const Z=B-$;Y+=`${ee}"...": "${m(Z)} not stringified"`,ee=U}return ee!==""&&(Y=` ${K}${Y} -${L}`),N.pop(),`{${Y}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(A);default:return b?b(A):void 0}}function O(I,A,N){switch(typeof A){case"string":return a(A);case"object":{if(A===null)return"null";if(typeof A.toJSON=="function"){if(A=A.toJSON(I),typeof A!="object")return O(I,A,N);if(A===null)return"null"}if(N.indexOf(A)!==-1)return C;let F="";const K=A.length!==void 0;if(K&&Array.isArray(A)){if(A.length===0)return"[]";if(E$){const Z=A.length-$-1;F+=`,"... ${m(Z)} not stringified"`}return N.pop(),`[${F}]`}let L=Object.keys(A);const V=L.length;if(V===0)return"{}";if(E$){const Y=V-$;F+=`${B}"...":"${m(Y)} not stringified"`}return N.pop(),`{${F}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(A);default:return b?b(A):void 0}}function j(I,A,N){if(arguments.length>1){let F="";if(typeof N=="number"?F=" ".repeat(Math.min(N,10)):typeof N=="string"&&(F=N.slice(0,10)),A!=null){if(typeof A=="function")return M("",{"":I},[],A,F,"");if(Array.isArray(A))return P("",I,[],g(A),F,"")}if(F.length!==0)return R("",I,[],F,"")}return O("",I,[])}return j}})(wN,wN.exports);var cmt=wN.exports;const umt=ei(cmt),dmt=umt.configure;var zQ=dmt({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function fmt(){this.__data__=[],this.size=0}function d$(e,t){return e===t||e!==e&&t!==t}function f$(e,t){for(var n=e.length;n--;)if(d$(e[n][0],t))return n;return-1}var pmt=Array.prototype,hmt=pmt.splice;function mmt(e){var t=this.__data__,n=f$(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():hmt.call(t,n,1),--this.size,!0}function gmt(e){var t=this.__data__,n=f$(t,e);return n<0?void 0:t[n][1]}function vmt(e){return f$(this.__data__,e)>-1}function ymt(e,t){var n=this.__data__,r=f$(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ep(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=xgt}function h$(e){return e!=null&&nye(e.length)&&!Iz(e)}function Sgt(e){return Eh(e)&&h$(e)}function Cgt(){return!1}var rye=typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,XQ=rye&&typeof qo=="object"&&qo&&!qo.nodeType&&qo,_gt=XQ&&XQ.exports===rye,ZQ=_gt?Id.Buffer:void 0,kgt=ZQ?ZQ.isBuffer:void 0,Fz=kgt||Cgt,Egt="[object Object]",$gt=Function.prototype,Mgt=Object.prototype,iye=$gt.toString,Tgt=Mgt.hasOwnProperty,Pgt=iye.call(Object);function aye(e){if(!Eh(e)||r1(e)!=Egt)return!1;var t=Az(e);if(t===null)return!0;var n=Tgt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&iye.call(n)==Pgt}var Ogt="[object Arguments]",Rgt="[object Array]",Igt="[object Boolean]",jgt="[object Date]",Ngt="[object Error]",Agt="[object Function]",Dgt="[object Map]",Fgt="[object Number]",Lgt="[object Object]",Bgt="[object RegExp]",zgt="[object Set]",Hgt="[object String]",Ugt="[object WeakMap]",Wgt="[object ArrayBuffer]",Vgt="[object DataView]",qgt="[object Float32Array]",Kgt="[object Float64Array]",Ggt="[object Int8Array]",Ygt="[object Int16Array]",Xgt="[object Int32Array]",Zgt="[object Uint8Array]",Qgt="[object Uint8ClampedArray]",Jgt="[object Uint16Array]",e1t="[object Uint32Array]",Ii={};Ii[qgt]=Ii[Kgt]=Ii[Ggt]=Ii[Ygt]=Ii[Xgt]=Ii[Zgt]=Ii[Qgt]=Ii[Jgt]=Ii[e1t]=!0;Ii[Ogt]=Ii[Rgt]=Ii[Wgt]=Ii[Igt]=Ii[Vgt]=Ii[jgt]=Ii[Ngt]=Ii[Agt]=Ii[Dgt]=Ii[Fgt]=Ii[Lgt]=Ii[Bgt]=Ii[zgt]=Ii[Hgt]=Ii[Ugt]=!1;function t1t(e){return Eh(e)&&nye(e.length)&&!!Ii[r1(e)]}function Lz(e){return function(t){return e(t)}}var oye=typeof Ml=="object"&&Ml&&!Ml.nodeType&&Ml,tw=oye&&typeof qo=="object"&&qo&&!qo.nodeType&&qo,n1t=tw&&tw.exports===oye,DT=n1t&&K0e.process,H0=function(){try{var e=tw&&tw.require&&tw.require("util").types;return e||DT&&DT.binding&&DT.binding("util")}catch{}}(),QQ=H0&&H0.isTypedArray,sye=QQ?Lz(QQ):t1t;function SN(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var r1t=Object.prototype,i1t=r1t.hasOwnProperty;function lye(e,t,n){var r=e[t];(!(i1t.call(e,t)&&d$(r,n))||n===void 0&&!(t in e))&&jz(e,t,n)}function Hy(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a-1&&e%1==0&&e0){if(++t>=b1t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hye=S1t(y1t);function C1t(e,t){return hye(pye(e,t,fye),e+"")}function _1t(e,t,n){if(!Sd(n))return!1;var r=typeof t;return(r=="number"?h$(n)&&cye(t,n.length):r=="string"&&t in n)?d$(n[t],e):!1}function k1t(e){return C1t(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&_1t(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,i=Object.keys(n).reduce(function(s,l){var c=n[l];return Eg(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||Kt(t)!=="object"||Eg(t)||t instanceof Blob)return t;var a=Array.isArray(t)?[]:{},o=function s(l,c){var u=Array.isArray(l),f=u?[]:{};return l==null||l===void 0?f:(Object.keys(l).forEach(function(p){var h=function b(C,k){return Array.isArray(C)&&C.forEach(function(S,_){if(S){var E=k==null?void 0:k[_];typeof S=="function"&&(k[_]=S(k,p,l)),Kt(S)==="object"&&!Array.isArray(S)&&Object.keys(S).forEach(function($){var M=E==null?void 0:E[$];if(typeof S[$]=="function"&&M){var P=S[$](E[$],p,l);E[$]=Kt(P)==="object"?P[$]:P}else Kt(S[$])==="object"&&Array.isArray(S[$])&&M&&b(S[$],M)}),Kt(S)==="object"&&Array.isArray(S)&&E&&b(S,E)}}),p},m=c?[c,p].flat(1):[p].flat(1),g=l[p],v=Ds(i,m),y=function(){var C,k,S=!1;if(typeof v=="function"){k=v==null?void 0:v(g,p,l);var _=Kt(k);_!=="object"&&_!=="undefined"?(C=p,S=!0):C=k}else C=h(v,g);if(Array.isArray(C)){f=hs(f,C,g);return}Kt(C)==="object"&&!Array.isArray(a)?a=E1t(a,C):Kt(C)==="object"&&Array.isArray(a)?f=q(q({},f),C):(C!==null||C!==void 0)&&(f=hs(f,[C],S?k:g))};if(v&&typeof v=="function"&&y(),!(typeof window>"u")){if($1t(g)){var w=s(g,m);if(Object.keys(w).length<1)return;f=hs(f,[p],w);return}y()}}),r?f:l)};return a=Array.isArray(t)&&Array.isArray(a)?lt(o(t)):V0e({},o(t),a),a},Dl=function(t){return t===void 0?{}:H4(If,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function z1(e){var t=typeof window>"u",n=d.useState(function(){return t?!1:window.matchMedia(e).matches}),r=Te(n,2),i=r[0],a=r[1];return d.useLayoutEffect(function(){if(!t){var o=window.matchMedia(e),s=function(c){return a(c.matches)};return o.addListener(s),function(){return o.removeListener(s)}}},[e]),i}var Cp={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},T1t=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Cp).find(function(r){var i=Cp[r].matchMedia;return!!window.matchMedia(i).matches});return t=n,t},P1t=function(){var t=z1(Cp.md.matchMedia),n=z1(Cp.lg.matchMedia),r=z1(Cp.xxl.matchMedia),i=z1(Cp.xl.matchMedia),a=z1(Cp.sm.matchMedia),o=z1(Cp.xs.matchMedia),s=d.useState(T1t()),l=Te(s,2),c=l[0],u=l[1];return d.useEffect(function(){if(r){u("xxl");return}if(i){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(a){u("sm");return}if(o){u("xs");return}u("md")},[t,n,r,i,a,o]),c};function Fl(e,t){for(var n=Object.assign({},e),r=0;r"u"||!window.URL)return{};var u=[];o.forEach(function(p,h){u.push({key:h,value:p})}),u=u.reduce(function(p,h){return(p[h.key]=p[h.key]||[]).push(h),p},{}),u=Object.keys(u).map(function(p){var h=u[p];return h.length===1?[p,h[0].value]:[p,h.map(function(m){var g=m.value;return g})]});var f=nw({},e);return u.forEach(function(p){var h=p[0],m=p[1];f[h]=j1t(h,m,{},e)}),f},[t.disabled,e,o]);function l(u){if(!(typeof window>"u"||!window.URL)){var f=O1t(u);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),o.toString()!==f.searchParams.toString()&&i({})}}d.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(nw(nw({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return d.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){i({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var I1t={true:!0,false:!1};function j1t(e,t,n,r){if(!n)return t;var i=n[e],a=t===void 0?r[e]:t;return i===Number?Number(a):i===Boolean||t==="true"||t==="false"?I1t[a]:Array.isArray(i)?i.find(function(o){return o==a})||r[e]:a}var s1=te.createContext({}),N1t=["children","Wrapper"],A1t=["children","Wrapper"],mye=d.createContext({grid:!1,colProps:void 0,rowProps:void 0}),D1t=function(t){var n=t.grid,r=t.rowProps,i=t.colProps;return{grid:!!n,RowWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=Ht(o,N1t);return n?x.jsx(z8,q(q(q({gutter:8},r),c),{},{children:s})):l?x.jsx(l,{children:s}):s},ColWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=Ht(o,A1t),u=d.useMemo(function(){var f=q(q({},i),c);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[c]);return n?x.jsx(D0,q(q({},u),{},{children:s})):l?x.jsx(l,{children:s}):s}}},Bz=function(t){var n=d.useMemo(function(){return Kt(t)==="object"?t:{grid:t}},[t]),r=d.useContext(mye),i=r.grid,a=r.colProps;return d.useMemo(function(){return D1t({grid:!!(i||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||a,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,i,JSON.stringify([a,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},F1t=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],L1t=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],eJ={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},B1t=["switch","radioButton","radio","rate"];function zz(e,t){e.displayName="ProFormComponent";var n=function(a){var o=q(q({},a==null?void 0:a.filedConfig),t),s=o.valueType,l=o.customLightMode,c=o.lightFilterLabelFormatter,u=o.valuePropName,f=u===void 0?"value":u,p=o.ignoreWidth,h=o.defaultProps,m=Ht(o,F1t),g=q(q({},h),a),v=g.label,y=g.tooltip,w=g.placeholder,b=g.width,C=g.bordered,k=g.messageVariables,S=g.ignoreFormItem,_=g.transform,E=g.convertValue,$=g.readonly,M=g.allowClear;g.colSize;var P=g.getFormItemProps,R=g.getFieldProps;g.filedConfig;var O=g.cacheForSwr,j=g.proFieldProps,I=Ht(g,L1t),A=s||I.valueType,N=d.useMemo(function(){return p||B1t.includes(A)},[p,A]),F=d.useState(),K=Te(F,2),L=K[1],V=d.useState(),B=Te(V,2),U=B[0],Y=B[1],ee=te.useContext(s1),ie=Ps(function(){return{formItemProps:P==null?void 0:P(),fieldProps:R==null?void 0:R()}},[R,P,I.dependenciesValues,U]),Z=Ps(function(){var se=q(q(q(q({},S?lc({value:I.value}):{}),{},{placeholder:w,disabled:a.disabled},ee.fieldProps),ie.fieldProps),I.fieldProps);return se.style=lc(se==null?void 0:se.style),se},[S,I.value,I.fieldProps,w,a.disabled,ee.fieldProps,ie.fieldProps]),X=rmt(I),ae=Ps(function(){return q(q(q(q({},ee.formItemProps),X),ie.formItemProps),I.formItemProps)},[ie.formItemProps,ee.formItemProps,I.formItemProps,X]),oe=Ps(function(){return q(q({messageVariables:k},m),ae)},[m,ae,k]);Hk(!I.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var le=d.useContext(ph),ce=le.prefixName,pe=Ps(function(){var se,ye=oe==null?void 0:oe.name;Array.isArray(ye)&&(ye=ye.join("_")),Array.isArray(ce)&&ye&&(ye="".concat(ce.join("."),".").concat(ye));var Oe=ye&&"form-".concat((se=ee.formKey)!==null&&se!==void 0?se:"","-field-").concat(ye);return Oe},[zQ(oe==null?void 0:oe.name),ce,ee.formKey]),me=du(function(){var se;P||R?Y([]):I.renderFormItem&&L([]);for(var ye=arguments.length,Oe=new Array(ye),z=0;z0?re.map(function(ve,$e){var Ce=fe==null?void 0:fe[$e],be=(Ce==null?void 0:Ce["data-item"])||{};return q(q({},be),ve)}):[]},pe=function me(re){return re.map(function(fe,ve){var $e,Ce=fe,be=Ce.className,Se=Ce.optionType,we=Ht(Ce,K1t),se=fe[F],ye=fe[L],Oe=($e=fe[B])!==null&&$e!==void 0?$e:[];return Se==="optGroup"||fe.options?q(q({label:se},we),{},{data_title:se,title:se,key:ye??"".concat(se==null?void 0:se.toString(),"-").concat(ve,"-").concat(B6()),children:me(Oe)}):q(q({title:se},we),{},{data_title:se,value:ye??ve,key:ye??"".concat(se==null?void 0:se.toString(),"-").concat(ve,"-").concat(B6()),"data-item":fe,className:"".concat(oe,"-option ").concat(be||"").trim(),label:(r==null?void 0:r(fe))||se})})};return x.jsx(Yf,q(q({ref:Z,className:le,allowClear:!0,autoClearSearchValue:c,disabled:k,mode:i,showSearch:R,searchValue:ee,optionFilterProp:y,optionLabelProp:b,onClear:function(){M==null||M(),_(void 0),R&&ie(void 0)}},I),{},{filterOption:I.filterOption==!1?!1:function(me,re){var fe,ve,$e;return I.filterOption&&typeof I.filterOption=="function"?I.filterOption(me,q(q({},re),{},{label:re==null?void 0:re.data_title})):!!(re!=null&&(fe=re.data_title)!==null&&fe!==void 0&&fe.toString().toLowerCase().includes(me.toLowerCase())||re!=null&&(ve=re.label)!==null&&ve!==void 0&&ve.toString().toLowerCase().includes(me.toLowerCase())||re!=null&&($e=re.value)!==null&&$e!==void 0&&$e.toString().toLowerCase().includes(me.toLowerCase()))},onSearch:R?function(me){g&&_(me),a==null||a(me),ie(me)}:void 0,onChange:function(re,fe){R&&c&&(_(void 0),a==null||a(""),ie(void 0));for(var ve=arguments.length,$e=new Array(ve>2?ve-2:0),Ce=2;Ce-1&&e%1==0&&e-1&&e%1==0&&e<=i0t}var Wz=a0t,o0t=l1,s0t=Wz,l0t=jd,c0t="[object Arguments]",u0t="[object Array]",d0t="[object Boolean]",f0t="[object Date]",p0t="[object Error]",h0t="[object Function]",m0t="[object Map]",g0t="[object Number]",v0t="[object Object]",y0t="[object RegExp]",b0t="[object Set]",w0t="[object String]",x0t="[object WeakMap]",S0t="[object ArrayBuffer]",C0t="[object DataView]",_0t="[object Float32Array]",k0t="[object Float64Array]",E0t="[object Int8Array]",$0t="[object Int16Array]",M0t="[object Int32Array]",T0t="[object Uint8Array]",P0t="[object Uint8ClampedArray]",O0t="[object Uint16Array]",R0t="[object Uint32Array]",ji={};ji[_0t]=ji[k0t]=ji[E0t]=ji[$0t]=ji[M0t]=ji[T0t]=ji[P0t]=ji[O0t]=ji[R0t]=!0;ji[c0t]=ji[u0t]=ji[S0t]=ji[d0t]=ji[C0t]=ji[f0t]=ji[p0t]=ji[h0t]=ji[m0t]=ji[g0t]=ji[v0t]=ji[y0t]=ji[b0t]=ji[w0t]=ji[x0t]=!1;function I0t(e){return l0t(e)&&s0t(e.length)&&!!ji[o0t(e)]}var j0t=I0t;function N0t(e){return function(t){return e(t)}}var Vz=N0t,W6={exports:{}};W6.exports;(function(e,t){var n=gye,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(W6,W6.exports);var qz=W6.exports,A0t=j0t,D0t=Vz,sJ=qz,lJ=sJ&&sJ.isTypedArray,F0t=lJ?D0t(lJ):A0t,Kz=F0t,L0t=Uvt,B0t=Hz,z0t=Ul,H0t=m$,U0t=Uz,W0t=Kz,V0t=Object.prototype,q0t=V0t.hasOwnProperty;function K0t(e,t){var n=z0t(e),r=!n&&B0t(e),i=!n&&!r&&H0t(e),a=!n&&!r&&!i&&W0t(e),o=n||r||i||a,s=o?L0t(e.length,String):[],l=s.length;for(var c in e)(t||q0t.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||U0t(c,l)))&&s.push(c);return s}var wye=K0t,G0t=Object.prototype;function Y0t(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||G0t;return e===n}var Gz=Y0t;function X0t(e,t){return function(n){return e(t(n))}}var xye=X0t,Z0t=xye,Q0t=Z0t(Object.keys,Object),J0t=Q0t,eyt=Gz,tyt=J0t,nyt=Object.prototype,ryt=nyt.hasOwnProperty;function iyt(e){if(!eyt(e))return tyt(e);var t=[];for(var n in Object(e))ryt.call(e,n)&&n!="constructor"&&t.push(n);return t}var ayt=iyt;function oyt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Mc=oyt,syt=l1,lyt=Mc,cyt="[object AsyncFunction]",uyt="[object Function]",dyt="[object GeneratorFunction]",fyt="[object Proxy]";function pyt(e){if(!lyt(e))return!1;var t=syt(e);return t==uyt||t==dyt||t==cyt||t==fyt}var Yz=pyt,hyt=Yz,myt=Wz;function gyt(e){return e!=null&&myt(e.length)&&!hyt(e)}var Wy=gyt,vyt=wye,yyt=ayt,byt=Wy;function wyt(e){return byt(e)?vyt(e):yyt(e)}var G4=wyt,xyt=yye,Syt=G4;function Cyt(e,t){return e&&xyt(e,t,Syt)}var Sye=Cyt;function _yt(e){return e}var g$=_yt,kyt=g$;function Eyt(e){return typeof e=="function"?e:kyt}var Cye=Eyt,$yt=Sye,Myt=Cye;function Tyt(e,t){return e&&$yt(e,Myt(t))}var Xz=Tyt,Pyt=xye,Oyt=Pyt(Object.getPrototypeOf,Object),Zz=Oyt,Ryt=l1,Iyt=Zz,jyt=jd,Nyt="[object Object]",Ayt=Function.prototype,Dyt=Object.prototype,_ye=Ayt.toString,Fyt=Dyt.hasOwnProperty,Lyt=_ye.call(Object);function Byt(e){if(!jyt(e)||Ryt(e)!=Nyt)return!1;var t=Iyt(e);if(t===null)return!0;var n=Fyt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&_ye.call(n)==Lyt}var kye=Byt;function zyt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}var rbt=nbt,ibt=v$;function abt(e,t){var n=this.__data__,r=ibt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var obt=abt,sbt=Uyt,lbt=Zyt,cbt=ebt,ubt=rbt,dbt=obt;function Vy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,h=n&Cwt?new bwt:void 0;for(a.set(e,t),a.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,fSt.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,uSt.default)(r)?(0,lSt.default)(r,function(i,a){i===!0&&n.push(a),n.push(a+"-"+i)}):(0,oSt.default)(r)&&n.push(r)}),n};q4.default=pSt;var X4={};function hSt(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,Mkt.default)(t.default)||{};return n.map(function(i){var a=t[i];return a&&(0,Ekt.default)(a,function(o,s){r[s]||(r[s]={}),r[s]=Tkt({},r[s],a[s])}),i}),r};X4.default=Pkt;var J4={};Object.defineProperty(J4,"__esModule",{value:!0});J4.autoprefix=void 0;var Okt=Xz,HJ=Ikt(Okt),Rkt=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Bkt(i,r);function i(){var a,o,s,l;Lkt(this,i);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){qkt(i,r);function i(){var a,o,s,l;Vkt(this,i);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[o]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};aH.default=Gkt;Object.defineProperty(cc,"__esModule",{value:!0});cc.ReactCSS=cc.loop=cc.handleActive=cc.handleHover=cc.hover=void 0;var Ykt=q4,Xkt=Xy(Ykt),Zkt=X4,Qkt=Xy(Zkt),Jkt=J4,e6t=Xy(Jkt),t6t=ex,nbe=Xy(t6t),n6t=tx,r6t=Xy(n6t),i6t=aH,a6t=Xy(i6t);function Xy(e){return e&&e.__esModule?e:{default:e}}cc.hover=nbe.default;cc.handleHover=nbe.default;cc.handleActive=r6t.default;cc.loop=a6t.default;var o6t=cc.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i0){if(++t>=Z6t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var t5t=e5t,n5t=X6t,r5t=t5t,i5t=r5t(n5t),a5t=i5t,o5t=g$,s5t=W6t,l5t=a5t;function c5t(e,t){return l5t(s5t(e,t,o5t),e+"")}var u5t=c5t,d5t=Y4,f5t=Wy,p5t=Uz,h5t=Mc;function m5t(e,t,n){if(!h5t(n))return!1;var r=typeof t;return(r=="number"?f5t(n)&&p5t(t,n.length):r=="string"&&t in n)?d5t(n[t],e):!1}var g5t=m5t,v5t=u5t,y5t=g5t;function b5t(e){return v5t(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&y5t(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++rs?p=1:p=Math.round(f*100/s)/100,n.a!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}else{var h;if(u<0?h=0:u>o?h=1:h=Math.round(u*100/o)/100,i!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}return null},UT={},$5t=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=r*2,a.height=r*2;var o=a.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,a.width,a.height),o.fillStyle=n,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),a.toDataURL()):null},M5t=function(t,n,r,i){var a="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(UT[a])return UT[a];var o=$5t(t,n,r,i);return UT[a]=o,o};function w3(e){"@babel/helpers - typeof";return w3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w3(e)}function ZJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function VS(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K6(e){return K6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},K6(e)}var U5t=function(e){F5t(n,e);var t=L5t(n);function n(){var r;j5t(this,n);for(var i=arguments.length,a=new Array(i),o=0;o$){const Z=A.length-$-1;F+=`,"... ${m(Z)} not stringified"`}return N.pop(),`[${F}]`}let L=Object.keys(A);const V=L.length;if(V===0)return"{}";if(E$){const Y=V-$;F+=`${B}"...":"${m(Y)} not stringified"`}return N.pop(),`{${F}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(k)return String(A);default:return b?b(A):void 0}}function j(I,A,N){if(arguments.length>1){let F="";if(typeof N=="number"?F=" ".repeat(Math.min(N,10)):typeof N=="string"&&(F=N.slice(0,10)),A!=null){if(typeof A=="function")return M("",{"":I},[],A,F,"");if(Array.isArray(A))return P("",I,[],g(A),F,"")}if(F.length!==0)return R("",I,[],F,"")}return O("",I,[])}return j}})(wN,wN.exports);var lmt=wN.exports;const cmt=ei(lmt),umt=cmt.configure;var zQ=umt({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function dmt(){this.__data__=[],this.size=0}function d$(e,t){return e===t||e!==e&&t!==t}function f$(e,t){for(var n=e.length;n--;)if(d$(e[n][0],t))return n;return-1}var fmt=Array.prototype,pmt=fmt.splice;function hmt(e){var t=this.__data__,n=f$(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():pmt.call(t,n,1),--this.size,!0}function mmt(e){var t=this.__data__,n=f$(t,e);return n<0?void 0:t[n][1]}function gmt(e){return f$(this.__data__,e)>-1}function vmt(e,t){var n=this.__data__,r=f$(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ep(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=wgt}function h$(e){return e!=null&&tye(e.length)&&!Iz(e)}function xgt(e){return Eh(e)&&h$(e)}function Sgt(){return!1}var nye=typeof $l=="object"&&$l&&!$l.nodeType&&$l,XQ=nye&&typeof Vo=="object"&&Vo&&!Vo.nodeType&&Vo,Cgt=XQ&&XQ.exports===nye,ZQ=Cgt?Id.Buffer:void 0,_gt=ZQ?ZQ.isBuffer:void 0,Fz=_gt||Sgt,kgt="[object Object]",Egt=Function.prototype,$gt=Object.prototype,rye=Egt.toString,Mgt=$gt.hasOwnProperty,Tgt=rye.call(Object);function iye(e){if(!Eh(e)||r1(e)!=kgt)return!1;var t=Az(e);if(t===null)return!0;var n=Mgt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&rye.call(n)==Tgt}var Pgt="[object Arguments]",Ogt="[object Array]",Rgt="[object Boolean]",Igt="[object Date]",jgt="[object Error]",Ngt="[object Function]",Agt="[object Map]",Dgt="[object Number]",Fgt="[object Object]",Lgt="[object RegExp]",Bgt="[object Set]",zgt="[object String]",Hgt="[object WeakMap]",Ugt="[object ArrayBuffer]",Wgt="[object DataView]",Vgt="[object Float32Array]",qgt="[object Float64Array]",Kgt="[object Int8Array]",Ggt="[object Int16Array]",Ygt="[object Int32Array]",Xgt="[object Uint8Array]",Zgt="[object Uint8ClampedArray]",Qgt="[object Uint16Array]",Jgt="[object Uint32Array]",Ii={};Ii[Vgt]=Ii[qgt]=Ii[Kgt]=Ii[Ggt]=Ii[Ygt]=Ii[Xgt]=Ii[Zgt]=Ii[Qgt]=Ii[Jgt]=!0;Ii[Pgt]=Ii[Ogt]=Ii[Ugt]=Ii[Rgt]=Ii[Wgt]=Ii[Igt]=Ii[jgt]=Ii[Ngt]=Ii[Agt]=Ii[Dgt]=Ii[Fgt]=Ii[Lgt]=Ii[Bgt]=Ii[zgt]=Ii[Hgt]=!1;function e1t(e){return Eh(e)&&tye(e.length)&&!!Ii[r1(e)]}function Lz(e){return function(t){return e(t)}}var aye=typeof $l=="object"&&$l&&!$l.nodeType&&$l,tw=aye&&typeof Vo=="object"&&Vo&&!Vo.nodeType&&Vo,t1t=tw&&tw.exports===aye,DT=t1t&&q0e.process,H0=function(){try{var e=tw&&tw.require&&tw.require("util").types;return e||DT&&DT.binding&&DT.binding("util")}catch{}}(),QQ=H0&&H0.isTypedArray,oye=QQ?Lz(QQ):e1t;function SN(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var n1t=Object.prototype,r1t=n1t.hasOwnProperty;function sye(e,t,n){var r=e[t];(!(r1t.call(e,t)&&d$(r,n))||n===void 0&&!(t in e))&&jz(e,t,n)}function Hy(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a-1&&e%1==0&&e0){if(++t>=y1t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pye=x1t(v1t);function S1t(e,t){return pye(fye(e,t,dye),e+"")}function C1t(e,t,n){if(!Sd(n))return!1;var r=typeof t;return(r=="number"?h$(n)&&lye(t,n.length):r=="string"&&t in n)?d$(n[t],e):!1}function _1t(e){return S1t(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&C1t(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,i=Object.keys(n).reduce(function(s,l){var c=n[l];return Eg(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||Kt(t)!=="object"||Eg(t)||t instanceof Blob)return t;var a=Array.isArray(t)?[]:{},o=function s(l,c){var u=Array.isArray(l),f=u?[]:{};return l==null||l===void 0?f:(Object.keys(l).forEach(function(p){var h=function b(C,k){return Array.isArray(C)&&C.forEach(function(S,_){if(S){var E=k==null?void 0:k[_];typeof S=="function"&&(k[_]=S(k,p,l)),Kt(S)==="object"&&!Array.isArray(S)&&Object.keys(S).forEach(function($){var M=E==null?void 0:E[$];if(typeof S[$]=="function"&&M){var P=S[$](E[$],p,l);E[$]=Kt(P)==="object"?P[$]:P}else Kt(S[$])==="object"&&Array.isArray(S[$])&&M&&b(S[$],M)}),Kt(S)==="object"&&Array.isArray(S)&&E&&b(S,E)}}),p},m=c?[c,p].flat(1):[p].flat(1),g=l[p],v=Ds(i,m),y=function(){var C,k,S=!1;if(typeof v=="function"){k=v==null?void 0:v(g,p,l);var _=Kt(k);_!=="object"&&_!=="undefined"?(C=p,S=!0):C=k}else C=h(v,g);if(Array.isArray(C)){f=hs(f,C,g);return}Kt(C)==="object"&&!Array.isArray(a)?a=k1t(a,C):Kt(C)==="object"&&Array.isArray(a)?f=q(q({},f),C):(C!==null||C!==void 0)&&(f=hs(f,[C],S?k:g))};if(v&&typeof v=="function"&&y(),!(typeof window>"u")){if(E1t(g)){var w=s(g,m);if(Object.keys(w).length<1)return;f=hs(f,[p],w);return}y()}}),r?f:l)};return a=Array.isArray(t)&&Array.isArray(a)?lt(o(t)):W0e({},o(t),a),a},Al=function(t){return t===void 0?{}:z4(If,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function z1(e){var t=typeof window>"u",n=d.useState(function(){return t?!1:window.matchMedia(e).matches}),r=Te(n,2),i=r[0],a=r[1];return d.useLayoutEffect(function(){if(!t){var o=window.matchMedia(e),s=function(c){return a(c.matches)};return o.addListener(s),function(){return o.removeListener(s)}}},[e]),i}var Cp={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},M1t=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Cp).find(function(r){var i=Cp[r].matchMedia;return!!window.matchMedia(i).matches});return t=n,t},T1t=function(){var t=z1(Cp.md.matchMedia),n=z1(Cp.lg.matchMedia),r=z1(Cp.xxl.matchMedia),i=z1(Cp.xl.matchMedia),a=z1(Cp.sm.matchMedia),o=z1(Cp.xs.matchMedia),s=d.useState(M1t()),l=Te(s,2),c=l[0],u=l[1];return d.useEffect(function(){if(r){u("xxl");return}if(i){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(a){u("sm");return}if(o){u("xs");return}u("md")},[t,n,r,i,a,o]),c};function Dl(e,t){for(var n=Object.assign({},e),r=0;r"u"||!window.URL)return{};var u=[];o.forEach(function(p,h){u.push({key:h,value:p})}),u=u.reduce(function(p,h){return(p[h.key]=p[h.key]||[]).push(h),p},{}),u=Object.keys(u).map(function(p){var h=u[p];return h.length===1?[p,h[0].value]:[p,h.map(function(m){var g=m.value;return g})]});var f=nw({},e);return u.forEach(function(p){var h=p[0],m=p[1];f[h]=I1t(h,m,{},e)}),f},[t.disabled,e,o]);function l(u){if(!(typeof window>"u"||!window.URL)){var f=P1t(u);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),o.toString()!==f.searchParams.toString()&&i({})}}d.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(nw(nw({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return d.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){i({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var R1t={true:!0,false:!1};function I1t(e,t,n,r){if(!n)return t;var i=n[e],a=t===void 0?r[e]:t;return i===Number?Number(a):i===Boolean||t==="true"||t==="false"?R1t[a]:Array.isArray(i)?i.find(function(o){return o==a})||r[e]:a}var s1=te.createContext({}),j1t=["children","Wrapper"],N1t=["children","Wrapper"],hye=d.createContext({grid:!1,colProps:void 0,rowProps:void 0}),A1t=function(t){var n=t.grid,r=t.rowProps,i=t.colProps;return{grid:!!n,RowWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=Ht(o,j1t);return n?x.jsx(z8,q(q(q({gutter:8},r),c),{},{children:s})):l?x.jsx(l,{children:s}):s},ColWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=Ht(o,N1t),u=d.useMemo(function(){var f=q(q({},i),c);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[c]);return n?x.jsx(D0,q(q({},u),{},{children:s})):l?x.jsx(l,{children:s}):s}}},Bz=function(t){var n=d.useMemo(function(){return Kt(t)==="object"?t:{grid:t}},[t]),r=d.useContext(hye),i=r.grid,a=r.colProps;return d.useMemo(function(){return A1t({grid:!!(i||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||a,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,i,JSON.stringify([a,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},D1t=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],F1t=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],eJ={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},L1t=["switch","radioButton","radio","rate"];function zz(e,t){e.displayName="ProFormComponent";var n=function(a){var o=q(q({},a==null?void 0:a.filedConfig),t),s=o.valueType,l=o.customLightMode,c=o.lightFilterLabelFormatter,u=o.valuePropName,f=u===void 0?"value":u,p=o.ignoreWidth,h=o.defaultProps,m=Ht(o,D1t),g=q(q({},h),a),v=g.label,y=g.tooltip,w=g.placeholder,b=g.width,C=g.bordered,k=g.messageVariables,S=g.ignoreFormItem,_=g.transform,E=g.convertValue,$=g.readonly,M=g.allowClear;g.colSize;var P=g.getFormItemProps,R=g.getFieldProps;g.filedConfig;var O=g.cacheForSwr,j=g.proFieldProps,I=Ht(g,F1t),A=s||I.valueType,N=d.useMemo(function(){return p||L1t.includes(A)},[p,A]),F=d.useState(),K=Te(F,2),L=K[1],V=d.useState(),B=Te(V,2),U=B[0],Y=B[1],ee=te.useContext(s1),ie=Ps(function(){return{formItemProps:P==null?void 0:P(),fieldProps:R==null?void 0:R()}},[R,P,I.dependenciesValues,U]),Z=Ps(function(){var se=q(q(q(q({},S?lc({value:I.value}):{}),{},{placeholder:w,disabled:a.disabled},ee.fieldProps),ie.fieldProps),I.fieldProps);return se.style=lc(se==null?void 0:se.style),se},[S,I.value,I.fieldProps,w,a.disabled,ee.fieldProps,ie.fieldProps]),X=nmt(I),ae=Ps(function(){return q(q(q(q({},ee.formItemProps),X),ie.formItemProps),I.formItemProps)},[ie.formItemProps,ee.formItemProps,I.formItemProps,X]),oe=Ps(function(){return q(q({messageVariables:k},m),ae)},[m,ae,k]);zk(!I.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var le=d.useContext(ph),ce=le.prefixName,pe=Ps(function(){var se,ye=oe==null?void 0:oe.name;Array.isArray(ye)&&(ye=ye.join("_")),Array.isArray(ce)&&ye&&(ye="".concat(ce.join("."),".").concat(ye));var Oe=ye&&"form-".concat((se=ee.formKey)!==null&&se!==void 0?se:"","-field-").concat(ye);return Oe},[zQ(oe==null?void 0:oe.name),ce,ee.formKey]),me=du(function(){var se;P||R?Y([]):I.renderFormItem&&L([]);for(var ye=arguments.length,Oe=new Array(ye),z=0;z0?re.map(function(ve,$e){var Ce=fe==null?void 0:fe[$e],be=(Ce==null?void 0:Ce["data-item"])||{};return q(q({},be),ve)}):[]},pe=function me(re){return re.map(function(fe,ve){var $e,Ce=fe,be=Ce.className,Se=Ce.optionType,we=Ht(Ce,q1t),se=fe[F],ye=fe[L],Oe=($e=fe[B])!==null&&$e!==void 0?$e:[];return Se==="optGroup"||fe.options?q(q({label:se},we),{},{data_title:se,title:se,key:ye??"".concat(se==null?void 0:se.toString(),"-").concat(ve,"-").concat(L6()),children:me(Oe)}):q(q({title:se},we),{},{data_title:se,value:ye??ve,key:ye??"".concat(se==null?void 0:se.toString(),"-").concat(ve,"-").concat(L6()),"data-item":fe,className:"".concat(oe,"-option ").concat(be||"").trim(),label:(r==null?void 0:r(fe))||se})})};return x.jsx(Yf,q(q({ref:Z,className:le,allowClear:!0,autoClearSearchValue:c,disabled:k,mode:i,showSearch:R,searchValue:ee,optionFilterProp:y,optionLabelProp:b,onClear:function(){M==null||M(),_(void 0),R&&ie(void 0)}},I),{},{filterOption:I.filterOption==!1?!1:function(me,re){var fe,ve,$e;return I.filterOption&&typeof I.filterOption=="function"?I.filterOption(me,q(q({},re),{},{label:re==null?void 0:re.data_title})):!!(re!=null&&(fe=re.data_title)!==null&&fe!==void 0&&fe.toString().toLowerCase().includes(me.toLowerCase())||re!=null&&(ve=re.label)!==null&&ve!==void 0&&ve.toString().toLowerCase().includes(me.toLowerCase())||re!=null&&($e=re.value)!==null&&$e!==void 0&&$e.toString().toLowerCase().includes(me.toLowerCase()))},onSearch:R?function(me){g&&_(me),a==null||a(me),ie(me)}:void 0,onChange:function(re,fe){R&&c&&(_(void 0),a==null||a(""),ie(void 0));for(var ve=arguments.length,$e=new Array(ve>2?ve-2:0),Ce=2;Ce-1&&e%1==0&&e-1&&e%1==0&&e<=r0t}var Wz=i0t,a0t=l1,o0t=Wz,s0t=jd,l0t="[object Arguments]",c0t="[object Array]",u0t="[object Boolean]",d0t="[object Date]",f0t="[object Error]",p0t="[object Function]",h0t="[object Map]",m0t="[object Number]",g0t="[object Object]",v0t="[object RegExp]",y0t="[object Set]",b0t="[object String]",w0t="[object WeakMap]",x0t="[object ArrayBuffer]",S0t="[object DataView]",C0t="[object Float32Array]",_0t="[object Float64Array]",k0t="[object Int8Array]",E0t="[object Int16Array]",$0t="[object Int32Array]",M0t="[object Uint8Array]",T0t="[object Uint8ClampedArray]",P0t="[object Uint16Array]",O0t="[object Uint32Array]",ji={};ji[C0t]=ji[_0t]=ji[k0t]=ji[E0t]=ji[$0t]=ji[M0t]=ji[T0t]=ji[P0t]=ji[O0t]=!0;ji[l0t]=ji[c0t]=ji[x0t]=ji[u0t]=ji[S0t]=ji[d0t]=ji[f0t]=ji[p0t]=ji[h0t]=ji[m0t]=ji[g0t]=ji[v0t]=ji[y0t]=ji[b0t]=ji[w0t]=!1;function R0t(e){return s0t(e)&&o0t(e.length)&&!!ji[a0t(e)]}var I0t=R0t;function j0t(e){return function(t){return e(t)}}var Vz=j0t,U6={exports:{}};U6.exports;(function(e,t){var n=mye,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(U6,U6.exports);var qz=U6.exports,N0t=I0t,A0t=Vz,sJ=qz,lJ=sJ&&sJ.isTypedArray,D0t=lJ?A0t(lJ):N0t,Kz=D0t,F0t=Hvt,L0t=Hz,B0t=Hl,z0t=m$,H0t=Uz,U0t=Kz,W0t=Object.prototype,V0t=W0t.hasOwnProperty;function q0t(e,t){var n=B0t(e),r=!n&&L0t(e),i=!n&&!r&&z0t(e),a=!n&&!r&&!i&&U0t(e),o=n||r||i||a,s=o?F0t(e.length,String):[],l=s.length;for(var c in e)(t||V0t.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||H0t(c,l)))&&s.push(c);return s}var bye=q0t,K0t=Object.prototype;function G0t(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||K0t;return e===n}var Gz=G0t;function Y0t(e,t){return function(n){return e(t(n))}}var wye=Y0t,X0t=wye,Z0t=X0t(Object.keys,Object),Q0t=Z0t,J0t=Gz,eyt=Q0t,tyt=Object.prototype,nyt=tyt.hasOwnProperty;function ryt(e){if(!J0t(e))return eyt(e);var t=[];for(var n in Object(e))nyt.call(e,n)&&n!="constructor"&&t.push(n);return t}var iyt=ryt;function ayt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Mc=ayt,oyt=l1,syt=Mc,lyt="[object AsyncFunction]",cyt="[object Function]",uyt="[object GeneratorFunction]",dyt="[object Proxy]";function fyt(e){if(!syt(e))return!1;var t=oyt(e);return t==cyt||t==uyt||t==lyt||t==dyt}var Yz=fyt,pyt=Yz,hyt=Wz;function myt(e){return e!=null&&hyt(e.length)&&!pyt(e)}var Wy=myt,gyt=bye,vyt=iyt,yyt=Wy;function byt(e){return yyt(e)?gyt(e):vyt(e)}var K4=byt,wyt=vye,xyt=K4;function Syt(e,t){return e&&wyt(e,t,xyt)}var xye=Syt;function Cyt(e){return e}var g$=Cyt,_yt=g$;function kyt(e){return typeof e=="function"?e:_yt}var Sye=kyt,Eyt=xye,$yt=Sye;function Myt(e,t){return e&&Eyt(e,$yt(t))}var Xz=Myt,Tyt=wye,Pyt=Tyt(Object.getPrototypeOf,Object),Zz=Pyt,Oyt=l1,Ryt=Zz,Iyt=jd,jyt="[object Object]",Nyt=Function.prototype,Ayt=Object.prototype,Cye=Nyt.toString,Dyt=Ayt.hasOwnProperty,Fyt=Cye.call(Object);function Lyt(e){if(!Iyt(e)||Oyt(e)!=jyt)return!1;var t=Ryt(e);if(t===null)return!0;var n=Dyt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Cye.call(n)==Fyt}var _ye=Lyt;function Byt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}var nbt=tbt,rbt=v$;function ibt(e,t){var n=this.__data__,r=rbt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var abt=ibt,obt=Hyt,sbt=Xyt,lbt=Jyt,cbt=nbt,ubt=abt;function Vy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,h=n&Swt?new ywt:void 0;for(a.set(e,t),a.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,dSt.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,cSt.default)(r)?(0,sSt.default)(r,function(i,a){i===!0&&n.push(a),n.push(a+"-"+i)}):(0,aSt.default)(r)&&n.push(r)}),n};V4.default=fSt;var Y4={};function pSt(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,$kt.default)(t.default)||{};return n.map(function(i){var a=t[i];return a&&(0,kkt.default)(a,function(o,s){r[s]||(r[s]={}),r[s]=Mkt({},r[s],a[s])}),i}),r};Y4.default=Tkt;var Q4={};Object.defineProperty(Q4,"__esModule",{value:!0});Q4.autoprefix=void 0;var Pkt=Xz,HJ=Rkt(Pkt),Okt=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Lkt(i,r);function i(){var a,o,s,l;Fkt(this,i);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Vkt(i,r);function i(){var a,o,s,l;Wkt(this,i);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[o]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};aH.default=Kkt;Object.defineProperty(cc,"__esModule",{value:!0});cc.ReactCSS=cc.loop=cc.handleActive=cc.handleHover=cc.hover=void 0;var Gkt=V4,Ykt=Xy(Gkt),Xkt=Y4,Zkt=Xy(Xkt),Qkt=Q4,Jkt=Xy(Qkt),e6t=J4,tbe=Xy(e6t),t6t=ex,n6t=Xy(t6t),r6t=aH,i6t=Xy(r6t);function Xy(e){return e&&e.__esModule?e:{default:e}}cc.hover=tbe.default;cc.handleHover=tbe.default;cc.handleActive=n6t.default;cc.loop=i6t.default;var a6t=cc.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i0){if(++t>=X6t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var e5t=J6t,t5t=Y6t,n5t=e5t,r5t=n5t(t5t),i5t=r5t,a5t=g$,o5t=U6t,s5t=i5t;function l5t(e,t){return s5t(o5t(e,t,a5t),e+"")}var c5t=l5t,u5t=G4,d5t=Wy,f5t=Uz,p5t=Mc;function h5t(e,t,n){if(!p5t(n))return!1;var r=typeof t;return(r=="number"?d5t(n)&&f5t(t,n.length):r=="string"&&t in n)?u5t(n[t],e):!1}var m5t=h5t,g5t=c5t,v5t=m5t;function y5t(e){return g5t(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&v5t(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++rs?p=1:p=Math.round(f*100/s)/100,n.a!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}else{var h;if(u<0?h=0:u>o?h=1:h=Math.round(u*100/o)/100,i!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}return null},UT={},E5t=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=r*2,a.height=r*2;var o=a.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,a.width,a.height),o.fillStyle=n,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),a.toDataURL()):null},$5t=function(t,n,r,i){var a="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(UT[a])return UT[a];var o=E5t(t,n,r,i);return UT[a]=o,o};function w3(e){"@babel/helpers - typeof";return w3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w3(e)}function ZJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WS(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q6(e){return q6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},q6(e)}var H5t=function(e){D5t(n,e);var t=F5t(n);function n(){var r;I5t(this,n);for(var i=arguments.length,a=new Array(i),o=0;oo)f=0;else{var p=-(u*100/o)+100;f=360*p/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var h;if(c<0)h=0;else if(c>a)h=359;else{var m=c*100/a;h=360*m/100}if(r.h!==h)return{h,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function W0(e){"@babel/helpers - typeof";return W0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W0(e)}function V5t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q5t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G6(e){return G6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},G6(e)}var tEt=function(e){X5t(n,e);var t=Z5t(n);function n(){var r;V5t(this,n);for(var i=arguments.length,a=new Array(i),o=0;oo)f=0;else{var p=-(u*100/o)+100;f=360*p/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var h;if(c<0)h=0;else if(c>a)h=359;else{var m=c*100/a;h=360*m/100}if(r.h!==h)return{h,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function W0(e){"@babel/helpers - typeof";return W0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W0(e)}function W5t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V5t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K6(e){return K6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},K6(e)}var eEt=function(e){Y5t(n,e);var t=X5t(n);function n(){var r;W5t(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=t||_<0||f&&E>=a}function y(){var S=WT();if(v(S))return w(S);s=setTimeout(y,g(S))}function w(S){return s=void 0,p&&r?h(S):(r=i=void 0,o)}function b(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function C(){return s===void 0?o:w(WT())}function k(){var S=WT(),_=v(S);if(r=arguments,i=this,l=S,_){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),o}return k.cancel=b,k.flush=C,k}var sbe=_Et;const kEt=ei(sbe);var EEt=sbe,$Et=Mc,MEt="Expected a function";function TEt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(MEt);return $Et(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),EEt(e,t,{leading:r,maxWait:t,trailing:i})}var PEt=TEt;const OEt=ei(PEt);var REt=function(t,n,r){var i=r.getBoundingClientRect(),a=i.width,o=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>a&&(c=a),u<0?u=0:u>o&&(u=o);var f=c/a,p=1-u/o;return{h:n.h,s:f,v:p,a:n.a,source:"hsv"}};function V0(e){"@babel/helpers - typeof";return V0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V0(e)}function IEt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jEt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Y6(e){return Y6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Y6(e)}var UEt=function(e){FEt(n,e);var t=LEt(n);function n(r){var i;return IEt(this,n),i=t.call(this,r),i.handleChange=function(a){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,REt(a,i.props.hsl,i.container),a)},i.handleMouseDown=function(a){i.handleChange(a);var o=i.getContainerRenderWindow();o.addEventListener("mousemove",i.handleChange),o.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=OEt(function(a,o,s){a(o,s)},50),i}return NEt(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var i=this.container,a=window;!a.document.contains(i)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var i=this.getContainerRenderWindow();i.removeEventListener("mousemove",this.handleChange),i.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,a=this.props.style||{},o=a.color,s=a.white,l=a.black,c=a.pointer,u=a.circle,f=$h({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), + `),te.createElement("div",{style:s.pointer},this.props.pointer?te.createElement(this.props.pointer,this.props):te.createElement("div",{style:s.slider}))))}}]),n}(d.PureComponent||d.Component),tEt=Pu,nEt=function(){return tEt.Date.now()},rEt=nEt,iEt=/\s/;function aEt(e){for(var t=e.length;t--&&iEt.test(e.charAt(t)););return t}var oEt=aEt,sEt=oEt,lEt=/^\s+/;function cEt(e){return e&&e.slice(0,sEt(e)+1).replace(lEt,"")}var uEt=cEt,dEt=uEt,JJ=Mc,fEt=C$,eee=NaN,pEt=/^[-+]0x[0-9a-f]+$/i,hEt=/^0b[01]+$/i,mEt=/^0o[0-7]+$/i,gEt=parseInt;function vEt(e){if(typeof e=="number")return e;if(fEt(e))return eee;if(JJ(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=JJ(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=dEt(e);var n=hEt.test(e);return n||mEt.test(e)?gEt(e.slice(2),n?2:8):pEt.test(e)?eee:+e}var yEt=vEt,bEt=Mc,WT=rEt,tee=yEt,wEt="Expected a function",xEt=Math.max,SEt=Math.min;function CEt(e,t,n){var r,i,a,o,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(wEt);t=tee(t)||0,bEt(n)&&(u=!!n.leading,f="maxWait"in n,a=f?xEt(tee(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function h(S){var _=r,E=i;return r=i=void 0,c=S,o=e.apply(E,_),o}function m(S){return c=S,s=setTimeout(y,t),u?h(S):o}function g(S){var _=S-l,E=S-c,$=t-_;return f?SEt($,a-E):$}function v(S){var _=S-l,E=S-c;return l===void 0||_>=t||_<0||f&&E>=a}function y(){var S=WT();if(v(S))return w(S);s=setTimeout(y,g(S))}function w(S){return s=void 0,p&&r?h(S):(r=i=void 0,o)}function b(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function C(){return s===void 0?o:w(WT())}function k(){var S=WT(),_=v(S);if(r=arguments,i=this,l=S,_){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),o}return k.cancel=b,k.flush=C,k}var obe=CEt;const _Et=ei(obe);var kEt=obe,EEt=Mc,$Et="Expected a function";function MEt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError($Et);return EEt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),kEt(e,t,{leading:r,maxWait:t,trailing:i})}var TEt=MEt;const PEt=ei(TEt);var OEt=function(t,n,r){var i=r.getBoundingClientRect(),a=i.width,o=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>a&&(c=a),u<0?u=0:u>o&&(u=o);var f=c/a,p=1-u/o;return{h:n.h,s:f,v:p,a:n.a,source:"hsv"}};function V0(e){"@babel/helpers - typeof";return V0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V0(e)}function REt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IEt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G6(e){return G6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},G6(e)}var HEt=function(e){DEt(n,e);var t=FEt(n);function n(r){var i;return REt(this,n),i=t.call(this,r),i.handleChange=function(a){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,OEt(a,i.props.hsl,i.container),a)},i.handleMouseDown=function(a){i.handleChange(a);var o=i.getContainerRenderWindow();o.addEventListener("mousemove",i.handleChange),o.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=PEt(function(a,o,s){a(o,s)},50),i}return jEt(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var i=this.container,a=window;!a.document.contains(i)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var i=this.getContainerRenderWindow();i.removeEventListener("mousemove",this.handleChange),i.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,a=this.props.style||{},o=a.color,s=a.white,l=a.black,c=a.pointer,u=a.circle,f=$h({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:s,black:l,pointer:c,circle:u}},{custom:!!this.props.style});return te.createElement("div",{style:f.color,ref:function(h){return i.container=h},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},te.createElement("style",null,` .saturation-white { background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); @@ -545,8 +545,8 @@ ${L}`),N.pop(),`{${Y}}`}case"number":return isFinite(A)?String(A):b?b(A):"null"; background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); background: linear-gradient(to top, #000, rgba(0,0,0,0)); } - `),te.createElement("div",{style:f.white,className:"saturation-white"},te.createElement("div",{style:f.black,className:"saturation-black"}),te.createElement("div",{style:f.pointer},this.props.pointer?te.createElement(this.props.pointer,this.props):te.createElement("div",{style:f.circle}))))}}]),n}(d.PureComponent||d.Component),WEt=Wye,VEt=Uye,qEt=Cye,KEt=Ul;function GEt(e,t){var n=KEt(e)?WEt:VEt;return n(e,qEt(t))}var YEt=GEt,XEt=YEt;const ZEt=ei(XEt);function X6(e){"@babel/helpers - typeof";return X6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X6(e)}var QEt=/^\s+/,JEt=/\s+$/;function Xn(e,t){if(e=e||"",t=t||{},e instanceof Xn)return e;if(!(this instanceof Xn))return new Xn(e,t);var n=e8t(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Xn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=lbe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ree(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ree(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=nee(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=nee(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return iee(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return i8t(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ki(this._r,255)*100)+"%",g:Math.round(Ki(this._g,255)*100)+"%",b:Math.round(Ki(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ki(this._r,255)*100)+"%, "+Math.round(Ki(this._g,255)*100)+"%, "+Math.round(Ki(this._b,255)*100)+"%)":"rgba("+Math.round(Ki(this._r,255)*100)+"%, "+Math.round(Ki(this._g,255)*100)+"%, "+Math.round(Ki(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:g8t[iee(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+aee(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=Xn(t);r="#"+aee(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Xn(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(l8t,arguments)},brighten:function(){return this._applyModification(c8t,arguments)},darken:function(){return this._applyModification(u8t,arguments)},desaturate:function(){return this._applyModification(a8t,arguments)},saturate:function(){return this._applyModification(o8t,arguments)},greyscale:function(){return this._applyModification(s8t,arguments)},spin:function(){return this._applyModification(d8t,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(h8t,arguments)},complement:function(){return this._applyCombination(f8t,arguments)},monochromatic:function(){return this._applyCombination(m8t,arguments)},splitcomplement:function(){return this._applyCombination(p8t,arguments)},triad:function(){return this._applyCombination(oee,[3])},tetrad:function(){return this._applyCombination(oee,[4])}};Xn.fromRatio=function(e,t){if(X6(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=M2(e[r]));e=n}return Xn(e,t)};function e8t(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=w8t(e)),X6(e)=="object"&&(qd(e.r)&&qd(e.g)&&qd(e.b)?(t=t8t(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):qd(e.h)&&qd(e.s)&&qd(e.v)?(r=M2(e.s),i=M2(e.v),t=r8t(e.h,r,i),o=!0,s="hsv"):qd(e.h)&&qd(e.s)&&qd(e.l)&&(r=M2(e.s),a=M2(e.l),t=n8t(e.h,r,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=lbe(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function t8t(e,t,n){return{r:Ki(e,255)*255,g:Ki(t,255)*255,b:Ki(n,255)*255}}function nee(e,t,n){e=Ki(e,255),t=Ki(t,255),n=Ki(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function ree(e,t,n){e=Ki(e,255),t=Ki(t,255),n=Ki(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,l=r-i;if(o=r===0?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(Xn(r));return a}function m8t(e,t){t=t||6;for(var n=Xn(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(Xn({h:r,s:i,v:a})),a=(a+s)%1;return o}Xn.mix=function(e,t,n){n=n===0?0:n||50;var r=Xn(e).toRgb(),i=Xn(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return Xn(o)};Xn.readability=function(e,t){var n=Xn(e),r=Xn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Xn.isReadable=function(e,t,n){var r=Xn.readability(e,t),i,a;switch(a=!1,i=x8t(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};Xn.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,l;n=n||{},o=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;ci&&(i=a,r=Xn(t[c]));return Xn.isReadable(e,r,{level:s,size:l})||!o?r:(n.includeFallbackColors=!1,Xn.mostReadable(e,["#fff","#000"],n))};var RN=Xn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},g8t=Xn.hexNames=v8t(RN);function v8t(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function lbe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ki(e,t){y8t(e)&&(e="100%");var n=b8t(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function $$(e){return Math.min(1,Math.max(0,e))}function dl(e){return parseInt(e,16)}function y8t(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function b8t(e){return typeof e=="string"&&e.indexOf("%")!=-1}function tu(e){return e.length==1?"0"+e:""+e}function M2(e){return e<=1&&(e=e*100+"%"),e}function cbe(e){return Math.round(parseFloat(e)*255).toString(16)}function see(e){return dl(e)/255}var Bc=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function qd(e){return!!Bc.CSS_UNIT.exec(e)}function w8t(e){e=e.replace(QEt,"").replace(JEt,"").toLowerCase();var t=!1;if(RN[e])e=RN[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Bc.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Bc.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Bc.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Bc.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Bc.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Bc.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Bc.hex8.exec(e))?{r:dl(n[1]),g:dl(n[2]),b:dl(n[3]),a:see(n[4]),format:t?"name":"hex8"}:(n=Bc.hex6.exec(e))?{r:dl(n[1]),g:dl(n[2]),b:dl(n[3]),format:t?"name":"hex"}:(n=Bc.hex4.exec(e))?{r:dl(n[1]+""+n[1]),g:dl(n[2]+""+n[2]),b:dl(n[3]+""+n[3]),a:see(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Bc.hex3.exec(e))?{r:dl(n[1]+""+n[1]),g:dl(n[2]+""+n[2]),b:dl(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function x8t(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var lee=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return ZEt(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var o=/^\d+%$/;o.test(t[a])&&(i+=1)}}),r===i?t:!1},qS=function(t,n){var r=t.hex?Xn(t.hex):Xn(t),i=r.toHsl(),a=r.toHsv(),o=r.toRgb(),s=r.toHex();i.s===0&&(i.h=n||0,a.h=n||0);var l=s==="000000"&&o.a===0;return{hsl:i,hex:l?"transparent":"#".concat(s),rgb:o,hsv:a,oldHue:t.h||n||i.h,source:t.source}},S8t=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Xn(t).isValid()};function q0(e){"@babel/helpers - typeof";return q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q0(e)}function IN(){return IN=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z6(e){return Z6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Z6(e)}var R8t=function(t){var n=function(r){$8t(a,r);var i=M8t(a);function a(o){var s;return _8t(this,a),s=i.call(this),s.handleChange=function(l,c){var u=lee(l);if(u){var f=qS(l,l.h||s.state.oldHue);s.setState(f),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,f,c),s.props.onChange&&s.props.onChange(f,c)}},s.handleSwatchHover=function(l,c){var u=lee(l);if(u){var f=qS(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(f,c)}},s.state=Kb({},qS(o.color,0)),s.debounce=kEt(function(l,c,u){l(c,u)},100),s}return k8t(a,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),te.createElement(t,IN({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return Kb({},qS(s.color,l.oldHue))}}]),a}(d.PureComponent||d.Component);return n.propTypes=Kb({},t.propTypes),n.defaultProps=Kb(Kb({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function K0(e){"@babel/helpers - typeof";return K0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K0(e)}function I8t(e,t,n){return t=dbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j8t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N8t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Q6(e){return Q6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Q6(e)}var U8t=1,fbe=38,W8t=40,V8t=[fbe,W8t],q8t=function(t){return V8t.indexOf(t)>-1},K8t=function(t){return Number(String(t).replace(/%/g,""))},G8t=1,Gb=function(e){F8t(n,e);var t=L8t(n);function n(r){var i;return j8t(this,n),i=t.call(this),i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(a){i.setUpdatedValue(a.target.value,a)},i.handleKeyDown=function(a){var o=K8t(a.target.value);if(!isNaN(o)&&q8t(a.keyCode)){var s=i.getArrowOffset(),l=a.keyCode===fbe?o+s:o-s;i.setUpdatedValue(l,a)}},i.handleDrag=function(a){if(i.props.dragLabel){var o=Math.round(i.props.value+a.movementX);o>=0&&o<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(o),a)}},i.handleMouseDown=function(a){i.props.dragLabel&&(a.preventDefault(),i.handleDrag(a),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},i.inputId="rc-editable-input-".concat(G8t++),i}return A8t(n,[{key:"componentDidUpdate",value:function(i,a){this.props.value!==this.state.value&&(i.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(i){return I8t({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||U8t}},{key:"setUpdatedValue",value:function(i,a){var o=this.props.label?this.getValueObjectWithLabel(i):i;this.props.onChange&&this.props.onChange(o,a),this.setState({value:i})}},{key:"render",value:function(){var i=this,a=$h({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return te.createElement("div",{style:a.wrap},te.createElement("input",{id:this.inputId,style:a.input,ref:function(s){return i.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?te.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(d.PureComponent||d.Component);function G0(e){"@babel/helpers - typeof";return G0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G0(e)}function AN(){return AN=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function J6(e){return J6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},J6(e)}var a$t=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){e$t(a,r);var i=t$t(a);function a(){var o;Y8t(this,a);for(var s=arguments.length,l=new Array(s),c=0;c100&&(u.a=100),u.a/=100,n==null||n({h:i==null?void 0:i.h,s:i==null?void 0:i.s,l:i==null?void 0:i.l,a:u.a,source:"rgb"},f))};return te.createElement("div",{style:s.fields,className:"flexbox-fix"},te.createElement("div",{style:s.double},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:l})),te.createElement("div",{style:s.single},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.alpha},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function S3(e){"@babel/helpers - typeof";return S3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S3(e)}function pee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hee(e){for(var t=1;t-1}function E$t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&hbe()?ZB:_$t}var $$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.old,c=d.useContext(zn.ConfigContext),u=c.getPrefixCls,f=te.useMemo(function(){return E$t(l)},[l]),p=u("pro-field-color-picker"),h=d.useMemo(function(){return l?"":Ee(ne({},p,hbe()))},[p,l]);if(i==="read"){var m=x.jsx(f,{value:r,mode:"read",ref:n,className:h,open:!1});return a?a(r,q({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=q({display:"table-cell"},s.style),v=x.jsx(f,q(q({ref:n,presets:[k$t]},s),{},{style:g,className:h}));return o?o(r,q(q({mode:i},s),{},{style:g}),v):v}return null};const M$t=te.forwardRef($$t);cr.extend(IB);var T$t=function(t,n){return t?typeof n=="function"?n(cr(t)):cr(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},P$t=function(t,n){var r=t.text,i=t.mode,a=t.format,o=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,f=t.showTime,p=t.fieldProps,h=t.picker,m=t.bordered,g=t.lightLabel,v=sa(),y=d.useState(!1),w=Te(y,2),b=w[0],C=w[1];if(i==="read"){var k=T$t(r,p.format||a);return l?l(r,q({mode:i},p),x.jsx(x.Fragment,{children:k})):x.jsx(x.Fragment,{children:k})}if(i==="edit"||i==="update"){var S,_=p.disabled,E=p.value,$=p.placeholder,M=$===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):$,P=U4(E);return s?S=x.jsx(Qf,{label:o,onClick:function(){var O;p==null||(O=p.onOpenChange)===null||O===void 0||O.call(p,!0),C(!0)},style:P?{paddingInlineEnd:0}:void 0,disabled:_,value:P||b?x.jsx(xc,q(q(q({picker:h,showTime:f,format:a,ref:n},p),{},{value:P,onOpenChange:function(O){var j;C(O),p==null||(j=p.onOpenChange)===null||j===void 0||j.call(p,O)}},Dl(!1)),{},{open:b})):void 0,allowClear:!1,downIcon:P||b?!1:void 0,bordered:m,ref:g}):S=x.jsx(xc,q(q(q({picker:h,showTime:f,format:a,placeholder:M},Dl(u===void 0?!0:!u)),{},{ref:n},p),{},{value:P})),c?c(r,q({mode:i},p),S):S}return null};const H1=te.forwardRef(P$t);var O$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=sa(),u=o||c.getMessage("tableForm.inputPlaceholder","请输入"),f=d.useCallback(function(y){var w=y??void 0;return!l.stringMode&&typeof w=="string"&&(w=Number(w)),typeof w=="number"&&!Eg(w)&&!Eg(l.precision)&&(w=Number(w.toFixed(l.precision))),w},[l]);if(i==="read"){var p,h={};l!=null&&l.precision&&(h={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,q(q({},h),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?x.jsx("span",{children:r}):x.jsx("span",{ref:n,children:(l==null||(p=l.formatter)===null||p===void 0?void 0:p.call(l,m))||m});return a?a(r,q({mode:i},l),g):g}if(i==="edit"||i==="update"){var v=x.jsx(Af,q(q({ref:n,min:0,placeholder:u},Fl(l,["onChange","onBlur"])),{},{onChange:function(w){var b;return l==null||(b=l.onChange)===null||b===void 0?void 0:b.call(l,f(w))},onBlur:function(w){var b;return l==null||(b=l.onBlur)===null||b===void 0?void 0:b.call(l,f(w.target.value))}}));return s?s(r,q({mode:i},l),v):v}return null};const R$t=te.forwardRef(O$t);var I$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,f=t.separatorWidth,p=f===void 0?30:f,h=l.value,m=l.defaultValue,g=l.onChange,v=l.id,y=sa(),w=wd.useToken(),b=w.token,C=In(function(){return m},{value:h,onChange:g}),k=Te(C,2),S=k[0],_=k[1];if(i==="read"){var E=function(F){var K,L=new Intl.NumberFormat(void 0,q({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(F));return(l==null||(K=l.formatter)===null||K===void 0?void 0:K.call(l,L))||L},$=x.jsxs("span",{ref:n,children:[E(r[0])," ",u," ",E(r[1])]});return a?a(r,q({mode:i},l),$):$}if(i==="edit"||i==="update"){var M=function(){if(Array.isArray(S)){var F=Te(S,2),K=F[0],L=F[1];typeof K=="number"&&typeof L=="number"&&K>L?_([L,K]):K===void 0&&L===void 0&&_(void 0)}},P=function(F,K){var L=lt(S||[]);L[F]=K===null?void 0:K,_(L)},R=(l==null?void 0:l.placeholder)||o||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],O=function(F){return Array.isArray(R)?R[F]:R},j=Xr.Compact||Ur.Group,I=Xr.Compact?{}:{compact:!0},A=x.jsxs(j,q(q({},I),{},{onBlur:M,children:[x.jsx(Af,q(q({},l),{},{placeholder:O(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(p,"px) / 2)")},value:S==null?void 0:S[0],defaultValue:m==null?void 0:m[0],onChange:function(F){return P(0,F)}})),x.jsx(Ur,{style:{width:p,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:b==null?void 0:b.colorBgContainer},placeholder:u,disabled:!0}),x.jsx(Af,q(q({},l),{},{placeholder:O(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(p,"px) / 2)"),borderInlineStart:0},value:S==null?void 0:S[1],defaultValue:m==null?void 0:m[1],onChange:function(F){return P(1,F)}}))]}));return s?s(r,q({mode:i},l),A):A}return null};const j$t=te.forwardRef(I$t);var mbe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}i.en.relativeTime=o,a.fromToBase=function(c,u,f,p,h){for(var m,g,v,y=f.$locale().relativeTime||o,w=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],b=w.length,C=0;C0,S<=k.r||!k.r){S<=1&&C>0&&(k=w[C-1]);var _=y[k.l];h&&(S=h(""+S)),g=typeof _=="string"?_.replace("%d",S):_(S,u,k.l,v);break}}if(u)return g;var E=v?y.future:y.past;return typeof E=="function"?E(g):E.replace("%s",g)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?i.utc():i()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(mbe);var N$t=mbe.exports;const A$t=ei(N$t);cr.extend(A$t);var D$t=function(t,n){var r=t.text,i=t.mode,a=t.plain,o=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=sa();if(i==="read"){var f=x.jsx(_a,{title:cr(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:cr(r).fromNow()});return o?o(r,q({mode:i},c),x.jsx(x.Fragment,{children:f})):x.jsx(x.Fragment,{children:f})}if(i==="edit"||i==="update"){var p=u.getMessage("tableForm.selectPlaceholder","请选择"),h=U4(c.value),m=x.jsx(xc,q(q(q({ref:n,placeholder:p,showTime:!0},Dl(a===void 0?!0:!a)),c),{},{value:h}));return s?s(r,q({mode:i},c),m):m}return null};const F$t=te.forwardRef(D$t);var gbe=te.forwardRef(function(e,t){var n=e.text,r=e.mode,i=e.render,a=e.renderFormItem,o=e.fieldProps,s=e.placeholder,l=e.width,c=sa(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=x.jsx(z1e,q({ref:t,width:l||32,src:n},o));return i?i(n,q({mode:r},o),f):f}if(r==="edit"||r==="update"){var p=x.jsx(Ur,q({ref:t,placeholder:u},o));return a?a(n,q({mode:r},o),p):p}return null}),L$t=function(t,n){var r=t.border,i=r===void 0?!1:r,a=t.children,o=d.useContext(zn.ConfigContext),s=o.getPrefixCls,l=s("pro-field-index-column"),c=Ci("IndexColumn",function(){return ne({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),u=c.wrapSSR,f=c.hashId;return u(x.jsx("div",{ref:n,className:Ee(l,f,ne(ne({},"".concat(l,"-border"),i),"top-three",a>3)),children:a}))};const gee=te.forwardRef(L$t);var B$t=["contentRender","numberFormatOptions","numberPopoverRender","open"],z$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],vbe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),H$t={style:"currency",currency:"USD"},U$t={style:"currency",currency:"RUB"},W$t={style:"currency",currency:"RSD"},V$t={style:"currency",currency:"MYR"},q$t={style:"currency",currency:"BRL"},K$t={default:vbe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":H$t,"ru-RU":U$t,"ms-MY":V$t,"sr-RS":W$t,"pt-BR":q$t},vee=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",o=n==null?void 0:n.toString().replaceAll(",","");if(typeof o=="string"){var s=Number(o);if(Number.isNaN(s))return o;o=s}if(!o&&o!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var c=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",q(q({},K$t[t||"zh-Hans-CN"]||vbe),{},{maximumFractionDigits:r},i)),u=c.format(o),f=function(y){var w=y.match(/\d+/);if(w){var b=w[0];return y.slice(y.indexOf(b))}else return y},p=f(u),h=u||"",m=Te(h,1),g=m[0];return["+","-"].includes(g)?"".concat(a||"").concat(g).concat(p):"".concat(a||"").concat(p)}catch{return o}},VT=2,G$t=te.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=Ht(e,B$t),a=In(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),o=Te(a,2),s=o[0],l=o[1],c=n==null?void 0:n(q(q({},i),{},{value:s})),u=u$(c?r:!1);return x.jsx(wc,q(q({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(p){return(p==null?void 0:p.parentElement)||document.body},children:x.jsx(Af,q(q({ref:t},i),{},{value:s,onChange:l}))}))}),Y$t=function(t,n){var r,i=t.text,a=t.mode,o=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,f=t.customSymbol,p=f===void 0?l.customSymbol:f,h=t.numberFormatOptions,m=h===void 0?l==null?void 0:l.numberFormatOptions:h,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,y=Ht(t,z$t),w=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:VT,b=sa();u&&kg[u]&&(b=kg[u]);var C=c||b.getMessage("tableForm.inputPlaceholder","请输入"),k=d.useMemo(function(){if(p)return p;if(!(y.moneySymbol===!1||l.moneySymbol===!1))return b.getMessage("moneySymbol","¥")},[p,l.moneySymbol,b,y.moneySymbol]),S=d.useCallback(function($){var M=new RegExp("\\B(?=(\\d{".concat(3+Math.max(w-VT,0),"})+(?!\\d))"),"g"),P=String($).split("."),R=Te(P,2),O=R[0],j=R[1],I=O.replace(M,","),A="";return j&&w>0&&(A=".".concat(j.slice(0,w===void 0?VT:w))),"".concat(I).concat(A)},[w]);if(a==="read"){var _=x.jsx("span",{ref:n,children:vee(u||!1,i,w,m??l.numberFormatOptions,k)});return o?o(i,q({mode:a},l),_):_}if(a==="edit"||a==="update"){var E=x.jsx(G$t,q(q({contentRender:function(M){if(v===!1||!M.value)return null;var P=vee(k||u||!1,"".concat(S(M.value)),w,q(q({},m),{},{notation:"compact"}),k);return typeof v=="function"?v==null?void 0:v(M,P):P},ref:n,precision:w,formatter:function(M){return M&&k?"".concat(k," ").concat(S(M)):M==null?void 0:M.toString()},parser:function(M){return k&&M?M.replace(new RegExp("\\".concat(k,"\\s?|(,*)"),"g"),""):M},placeholder:C},Fl(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function($){var M,P=$.target.value;k&&P&&(P=P.replace(new RegExp("\\".concat(k,"\\s?|(,*)"),"g"),"")),(M=l.onBlur)===null||M===void 0||M.call(l,P)}:void 0}));return s?s(i,q({mode:a},l),E):E}return null};const ybe=te.forwardRef(Y$t);var yee=function(t){return t.map(function(n,r){var i;return te.isValidElement(n)?te.cloneElement(n,q(q({key:r},n==null?void 0:n.props),{},{style:q({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):x.jsx(te.Fragment,{children:n},r)})},X$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.fieldProps,s=d.useContext(zn.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=wd.useToken(),f=u.token;if(d.useImperativeHandle(n,function(){return{}}),a){var p=a(r,q({mode:i},o),x.jsx(x.Fragment,{}));return!p||(p==null?void 0:p.length)<1||!Array.isArray(p)?null:x.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:yee(p)})}return!r||!Array.isArray(r)?te.isValidElement(r)?r:null:x.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:yee(r)})};const Z$t=te.forwardRef(X$t);var Q$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],J$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=Ht(t,Q$t),c=sa(),u=In(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),f=Te(u,2),p=f[0],h=f[1];if(i==="read"){var m=x.jsx(x.Fragment,{children:"-"});return r&&(m=x.jsxs(Xr,{children:[x.jsx("span",{ref:n,children:p?r:"********"}),x.jsx("a",{onClick:function(){return h(!p)},children:p?x.jsx(V8,{}):x.jsx(e1e,{})})]})),a?a(r,q({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=x.jsx(Ur.Password,q({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return o?o(r,q({mode:i},s),g):g}return null};const e7t=te.forwardRef(J$t);var t7t=/\s/;function n7t(e){for(var t=e.length;t--&&t7t.test(e.charAt(t)););return t}var r7t=/^\s+/;function i7t(e){return e&&e.slice(0,n7t(e)+1).replace(r7t,"")}var a7t="[object Symbol]";function M$(e){return typeof e=="symbol"||Eh(e)&&r1(e)==a7t}var bee=NaN,o7t=/^[-+]0x[0-9a-f]+$/i,s7t=/^0b[01]+$/i,l7t=/^0o[0-7]+$/i,c7t=parseInt;function e5(e){if(typeof e=="number")return e;if(M$(e))return bee;if(Sd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Sd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=i7t(e);var n=s7t.test(e);return n||l7t.test(e)?c7t(e.slice(2),n?2:8):o7t.test(e)?bee:+e}function u7t(e){return e===0?null:e>0?"+":"-"}function d7t(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function f7t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var p7t=function(t,n){var r=t.text,i=t.prefix,a=t.precision,o=t.suffix,s=o===void 0?"%":o,l=t.mode,c=t.showColor,u=c===void 0?!1:c,f=t.render,p=t.renderFormItem,h=t.fieldProps,m=t.placeholder,g=t.showSymbol,v=sa(),y=m||v.getMessage("tableForm.inputPlaceholder","请输入"),w=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?e5(r.replace("%","")):e5(r)},[r]),b=d.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var C=u?{color:d7t(w)}:{},k=x.jsxs("span",{style:C,ref:n,children:[i&&x.jsx("span",{children:i}),b&&x.jsxs(d.Fragment,{children:[u7t(w)," "]}),f7t(Math.abs(w),a),s&&s]});return f?f(r,q(q({mode:l},h),{},{prefix:i,precision:a,showSymbol:b,suffix:s}),k):k}if(l==="edit"||l==="update"){var S=x.jsx(Af,q({ref:n,formatter:function(E){return E&&i?"".concat(i," ").concat(E).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):E},parser:function(E){return E?E.replace(/.*\s|,/g,""):""},placeholder:y},h));return p?p(r,q({mode:l},h),S):S}return null};const bbe=te.forwardRef(p7t);function h7t(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var m7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=sa(),f=c||u.getMessage("tableForm.inputPlaceholder","请输入"),p=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?e5(r.replace("%","")):e5(r)},[r]);if(i==="read"){var h=x.jsx(iz,q({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:p,steps:o?10:void 0,status:h7t(p)},l));return a?a(p,q({mode:i},l),h):h}if(i==="edit"||i==="update"){var m=x.jsx(Af,q({ref:n,placeholder:f},l));return s?s(r,q({mode:i},l),m):m}return null};const wbe=te.forwardRef(m7t);var g7t=["radioType","renderFormItem","mode","render"],v7t=function(t,n){var r,i,a=t.radioType,o=t.renderFormItem,s=t.mode,l=t.render,c=Ht(t,g7t),u=d.useContext(zn.ConfigContext),f=u.getPrefixCls,p=f("pro-field-radio"),h=Uy(c),m=Te(h,3),g=m[0],v=m[1],y=m[2],w=d.useRef(),b=(r=Zi.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);d.useImperativeHandle(n,function(){return q(q({},w.current||{}),{},{fetchData:function(j){return y(j)}})},[y]);var C=Ci("FieldRadioRadio",function(O){return ne(ne(ne({},".".concat(p,"-error"),{span:{color:O.colorError}}),".".concat(p,"-warning"),{span:{color:O.colorWarning}}),".".concat(p,"-vertical"),ne({},"".concat(O.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),k=C.wrapSSR,S=C.hashId;if(g)return x.jsx(Zo,{size:"small"});if(s==="read"){var _=v!=null&&v.length?v==null?void 0:v.reduce(function(O,j){var I;return q(q({},O),{},ne({},(I=j.value)!==null&&I!==void 0?I:"",j.label))},{}):void 0,E=x.jsx(x.Fragment,{children:zy(c.text,Jf(c.valueEnum||_))});if(l){var $;return($=l(c.text,q({mode:s},c.fieldProps),E))!==null&&$!==void 0?$:null}return E}if(s==="edit"){var M,P=k(x.jsx(us.Group,q(q({ref:w,optionType:a},c.fieldProps),{},{className:Ee((M=c.fieldProps)===null||M===void 0?void 0:M.className,ne(ne({},"".concat(p,"-error"),(b==null?void 0:b.status)==="error"),"".concat(p,"-warning"),(b==null?void 0:b.status)==="warning"),S,"".concat(p,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(o){var R;return(R=o(c.text,q(q({mode:s},c.fieldProps),{},{options:v,loading:g}),P))!==null&&R!==void 0?R:null}return P}return null};const wee=te.forwardRef(v7t);var y7t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,f=t.plain,p=t.showTime,h=t.lightLabel,m=t.bordered,g=t.fieldProps,v=sa(),y=Array.isArray(r)?r:[],w=Te(y,2),b=w[0],C=w[1],k=te.useState(!1),S=Te(k,2),_=S[0],E=S[1],$=d.useCallback(function(A){if(typeof(g==null?void 0:g.format)=="function"){var N;return g==null||(N=g.format)===null||N===void 0?void 0:N.call(g,A)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),M=b?cr(b).format($(cr(b))):"",P=C?cr(C).format($(cr(C))):"";if(i==="read"){var R=x.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[x.jsx("div",{children:M||"-"}),x.jsx("div",{children:P||"-"})]});return l?l(r,q({mode:i},g),x.jsx("span",{children:R})):R}if(i==="edit"||i==="update"){var O=U4(g.value),j;if(a){var I;j=x.jsx(Qf,{label:o,onClick:function(){var N;g==null||(N=g.onOpenChange)===null||N===void 0||N.call(g,!0),E(!0)},style:O?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:O||_?x.jsx(xc.RangePicker,q(q(q({picker:c,showTime:p,format:s},Dl(!1)),g),{},{placeholder:(I=g.placeholder)!==null&&I!==void 0?I:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var N;E(!1),g==null||(N=g.onClear)===null||N===void 0||N.call(g)},value:O,onOpenChange:function(N){var F;O&&E(N),g==null||(F=g.onOpenChange)===null||F===void 0||F.call(g,N)}})):null,allowClear:!1,bordered:m,ref:h,downIcon:O||_?!1:void 0})}else j=x.jsx(xc.RangePicker,q(q(q({ref:n,format:s,showTime:p,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},Dl(f===void 0?!0:!f)),g),{},{value:O}));return u?u(r,q({mode:i},g),j):j}return null};const U1=te.forwardRef(y7t);var b7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=x.jsx(gZ,q(q({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return a?a(r,q({mode:i},s),x.jsx(x.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=x.jsx(gZ,q({allowHalf:!0,ref:n},s));return o?o(r,q({mode:i},s),c):c}return null};const w7t=te.forwardRef(b7t);function x7t(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var i=Math.floor(t/(3600*24)),a=Math.floor(t/3600%24),o=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),o>0&&(n="".concat(o,"分钟").concat(n)),a>0&&(n="".concat(a,"小时").concat(n)),i>0&&(n="".concat(i,"天").concat(n)),r&&(n+="前"),n}var S7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=sa(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var f=x7t(Number(r)),p=x.jsx("span",{ref:n,children:f});return a?a(r,q({mode:i},s),p):p}if(i==="edit"||i==="update"){var h=x.jsx(Af,q({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return o?o(r,q({mode:i},s),h):h}return null};const C7t=te.forwardRef(S7t);var _7t=["mode","render","renderFormItem","fieldProps","emptyText"],k7t=function(t,n){var r=t.mode,i=t.render,a=t.renderFormItem,o=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=Ht(t,_7t),u=d.useRef(),f=Uy(t),p=Te(f,3),h=p[0],m=p[1],g=p[2];if(d.useImperativeHandle(n,function(){return q(q({},u.current||{}),{},{fetchData:function(k){return g(k)}})},[g]),h)return x.jsx(Zo,{size:"small"});if(r==="read"){var v=m!=null&&m.length?m==null?void 0:m.reduce(function(C,k){var S;return q(q({},C),{},ne({},(S=k.value)!==null&&S!==void 0?S:"",k.label))},{}):void 0,y=x.jsx(x.Fragment,{children:zy(c.text,Jf(c.valueEnum||v))});if(i){var w;return(w=i(c.text,q({mode:r},o),x.jsx(x.Fragment,{children:y})))!==null&&w!==void 0?w:l}return y}if(r==="edit"||r==="update"){var b=x.jsx(Vge,q(q({ref:u},Fl(o||{},["allowClear"])),{},{options:m}));return a?a(c.text,q(q({mode:r},o),{},{options:m,loading:h}),b):b}return null};const E7t=te.forwardRef(k7t);var $7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=r;return a?a(r,q({mode:i},s),x.jsx(x.Fragment,{children:l})):x.jsx(x.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=x.jsx(o1e,q(q({ref:n},s),{},{style:q({minWidth:120},s==null?void 0:s.style)}));return o?o(r,q({mode:i},s),c):c}return null};const M7t=te.forwardRef($7t);var T7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=sa(),f=d.useMemo(function(){var v,y;return r==null||"".concat(r).length<1?"-":r?(v=c==null?void 0:c.checkedChildren)!==null&&v!==void 0?v:u.getMessage("switch.open","打开"):(y=c==null?void 0:c.unCheckedChildren)!==null&&y!==void 0?y:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(i==="read")return a?a(r,q({mode:i},c),x.jsx(x.Fragment,{children:f})):f??"-";if(i==="edit"||i==="update"){var p,h=x.jsx(R6,q(q({ref:n,size:o?"small":void 0},Fl(c,["value"])),{},{checked:(p=c==null?void 0:c.checked)!==null&&p!==void 0?p:c==null?void 0:c.value}));if(o){var m=c.disabled,g=c.bordered;return x.jsx(Qf,{label:s,disabled:m,bordered:g,downIcon:!1,value:x.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return l?l(r,q({mode:i},c),h):h}return null};const P7t=te.forwardRef(T7t);var O7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},f=u.autoFocus,p=u.prefix,h=p===void 0?"":p,m=u.suffix,g=m===void 0?"":m,v=sa(),y=d.useRef();if(d.useImperativeHandle(n,function(){return y.current},[]),d.useEffect(function(){if(f){var S;(S=y.current)===null||S===void 0||S.focus()}},[f]),i==="read"){var w=x.jsxs(x.Fragment,{children:[h,r??c,g]});if(a){var b;return(b=a(r,q({mode:i},s),w))!==null&&b!==void 0?b:c}return w}if(i==="edit"||i==="update"){var C=v.getMessage("tableForm.inputPlaceholder","请输入"),k=x.jsx(Ur,q({ref:y,placeholder:C,allowClear:!0},s));return o?o(r,q({mode:i},s),k):k}return null};const R7t=te.forwardRef(O7t);function xbe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r1),a}),Hy(e,kbe(e),n),r&&(n=m_(n,E9t|$9t|M9t,x9t));for(var i=t.length;i--;)w9t(n,t[i]);return n}),P9t=function(t,n){var r=t.text,i=t.fieldProps,a=d.useContext(zn.ConfigContext),o=a.getPrefixCls,s=o("pro-field-readonly"),l="".concat(s,"-textarea"),c=Ci("TextArea",function(){return ne({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,f=c.hashId;return u(x.jsx("span",q(q({ref:n,className:Ee(f,s,l)},T9t(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const O9t=te.forwardRef(P9t);var R9t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=sa();if(i==="read"){var c=x.jsx(O9t,q(q({},t),{},{ref:n}));return a?a(r,q({mode:i},Fl(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var u=x.jsx(Ur.TextArea,q({ref:n,rows:3,onKeyPress:function(p){p.key==="Enter"&&p.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return o?o(r,q({mode:i},s),u):u}return null};const I9t=te.forwardRef(R9t);var j9t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,f=t.fieldProps,p=t.lightLabel,h=d.useState(!1),m=Te(h,2),g=m[0],v=m[1],y=sa(),w=(f==null?void 0:f.format)||s||"HH:mm:ss",b=cr.isDayjs(r)||typeof r=="number";if(i==="read"){var C=x.jsx("span",{ref:n,children:r?cr(r,b?void 0:w).format(w):"-"});return l?l(r,q({mode:i},f),x.jsx("span",{children:C})):C}if(i==="edit"||i==="update"){var k,S=f.disabled,_=f.value,E=U4(_,w);if(a){var $;k=x.jsx(Qf,{onClick:function(){var P;f==null||(P=f.onOpenChange)===null||P===void 0||P.call(f,!0),v(!0)},style:E?{paddingInlineEnd:0}:void 0,label:o,disabled:S,value:E||g?x.jsx(Cg,q(q(q({},Dl(!1)),{},{format:s,ref:n},f),{},{placeholder:($=f.placeholder)!==null&&$!==void 0?$:y.getMessage("tableForm.selectPlaceholder","请选择"),value:E,onOpenChange:function(P){var R;v(P),f==null||(R=f.onOpenChange)===null||R===void 0||R.call(f,P)},open:g})):null,downIcon:E||g?!1:void 0,allowClear:!1,ref:p})}else k=x.jsx(xc.TimePicker,q(q(q({ref:n,format:s},Dl(u===void 0?!0:!u)),f),{},{value:E}));return c?c(r,q({mode:i},f),k):k}return null},N9t=function(t,n){var r=t.text,i=t.light,a=t.label,o=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,f=t.plain,p=t.fieldProps,h=sa(),m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=(p==null?void 0:p.format)||l||"HH:mm:ss",b=Array.isArray(r)?r:[],C=Te(b,2),k=C[0],S=C[1],_=cr.isDayjs(k)||typeof k=="number",E=cr.isDayjs(S)||typeof S=="number",$=k?cr(k,_?void 0:w).format(w):"",M=S?cr(S,E?void 0:w).format(w):"";if(o==="read"){var P=x.jsxs("div",{ref:n,children:[x.jsx("div",{children:$||"-"}),x.jsx("div",{children:M||"-"})]});return c?c(r,q({mode:o},p),x.jsx("span",{children:P})):P}if(o==="edit"||o==="update"){var R=U4(p.value,w),O;if(i){var j=p.disabled,I=p.placeholder,A=I===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:I;O=x.jsx(Qf,{onClick:function(){var F;p==null||(F=p.onOpenChange)===null||F===void 0||F.call(p,!0),y(!0)},style:R?{paddingInlineEnd:0}:void 0,label:a,disabled:j,placeholder:A,value:R||v?x.jsx(Cg.RangePicker,q(q(q({},Dl(!1)),{},{format:l,ref:n},p),{},{placeholder:A,value:R,onOpenChange:function(F){var K;y(F),p==null||(K=p.onOpenChange)===null||K===void 0||K.call(p,F)},open:v})):null,downIcon:R||v?!1:void 0,allowClear:!1,ref:s})}else O=x.jsx(Cg.RangePicker,q(q(q({ref:n,format:l},Dl(f===void 0?!0:!f)),p),{},{value:R}));return u?u(r,q({mode:o},p),O):O}return null},A9t=te.forwardRef(N9t);const D9t=te.forwardRef(j9t);var F9t=["radioType","renderFormItem","mode","light","label","render"],L9t=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],B9t=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,a=t.light,o=t.label,s=t.render,l=Ht(t,F9t),c=d.useContext(zn.ConfigContext),u=c.getPrefixCls,f=u("pro-field-tree-select"),p=d.useRef(null),h=d.useState(!1),m=Te(h,2),g=m[0],v=m[1],y=l.fieldProps,w=y.onSearch,b=y.onClear,C=y.onChange,k=y.onBlur,S=y.showSearch,_=y.autoClearSearchValue;y.treeData;var E=y.fetchDataOnSearch,$=y.searchValue,M=Ht(y,L9t),P=sa(),R=Uy(q(q({},l),{},{defaultKeyWords:$})),O=Te(R,3),j=O[0],I=O[1],A=O[2],N=In(void 0,{onChange:w,value:$}),F=Te(N,2),K=F[0],L=F[1];d.useImperativeHandle(n,function(){return q(q({},p.current||{}),{},{fetchData:function(me){return A(me)}})});var V=d.useMemo(function(){if(i==="read"){var pe=(M==null?void 0:M.fieldNames)||{},me=pe.value,re=me===void 0?"value":me,fe=pe.label,ve=fe===void 0?"label":fe,$e=pe.children,Ce=$e===void 0?"children":$e,be=new Map,Se=function we(se){if(!(se!=null&&se.length))return be;for(var ye=se.length,Oe=0;Oe4&&(h+=7),p.add(h,n));return m.diff(g,"week")+1},s.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=s.startOf;s.startOf=function(c,u){var f=this.$utils(),p=!!f.u(u)||u;return f.p(c)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,u)}}})})(Obe);var H9t=Obe.exports;const U9t=ei(H9t);var Rbe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var v=g&&g.toUpperCase();return m||p[g]||n[g]||p[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,w,b){return w||b.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(Rbe);var W9t=Rbe.exports;const V9t=ei(W9t);var q9t=["fieldProps"],K9t=["fieldProps"],G9t=["fieldProps"],Y9t=["fieldProps"],X9t=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],Z9t=["placeholder"];cr.extend(wme);cr.extend(_me);cr.extend(U9t);cr.extend(IB);cr.extend(yme);cr.extend(V9t);var Q9t=function(t,n,r){var i=q0e(r.fieldProps);return n.type==="progress"?x.jsx(wbe,q(q({},r),{},{text:t,fieldProps:q({status:n.status?n.status:void 0},i)})):n.type==="money"?x.jsx(ybe,q(q({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?x.jsx(bbe,q(q({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?x.jsx(gbe,q(q({},r),{},{text:t,width:n.width})):t},J9t=function(t,n,r,i){var a=r.mode,o=a===void 0?"read":a,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&o==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var c=r.fieldProps,u=r.render;return u?u(t,q({mode:o},c),x.jsx(x.Fragment,{children:l})):x.jsx(x.Fragment,{children:l})}if(delete r.emptyText,Kt(n)==="object")return Q9t(t,n,r);var f=i&&i[n];if(f){if(delete r.ref,o==="read"){var p;return(p=f.render)===null||p===void 0?void 0:p.call(f,t,q(q({text:t},r),{},{mode:o||"read"}),x.jsx(x.Fragment,{children:t}))}if(o==="update"||o==="edit"){var h;return(h=f.renderFormItem)===null||h===void 0?void 0:h.call(f,t,q({text:t},r),x.jsx(x.Fragment,{children:t}))}}if(n==="money")return x.jsx(ybe,q(q({},r),{},{text:t}));if(n==="date")return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,g=Ht(r,q9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-W",showTime:!0,fieldProps:q({picker:"week"},m)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,y=Ht(r,K9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-MM",showTime:!0,fieldProps:q({picker:"month"},v)},y))})}if(n==="dateQuarterRange"){var w=r.fieldProps,b=Ht(r,G9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-Q",showTime:!0,fieldProps:q({picker:"quarter"},w)},b))})}if(n==="dateYearRange"){var C=r.fieldProps,k=Ht(r,Y9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY",showTime:!0,fieldProps:q({picker:"year"},C)},k))})}return n==="dateMonth"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?x.jsx(U1,q({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?x.jsx($s,{isLight:r.light,children:x.jsx(D9t,q({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?x.jsx($s,{isLight:r.light,children:x.jsx(A9t,q({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?x.jsx(F$t,q({text:t},r)):n==="index"?x.jsx(gee,{children:t+1}):n==="indexBorder"?x.jsx(gee,{border:!0,children:t+1}):n==="progress"?x.jsx(wbe,q(q({},r),{},{text:t})):n==="percent"?x.jsx(bbe,q({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?x.jsx(Pi,{src:t,size:22,shape:"circle"}):n==="code"?x.jsx(nJ,q({text:t},r)):n==="jsonCode"?x.jsx(nJ,q({text:t,language:"json"},r)):n==="textarea"?x.jsx(I9t,q({text:t},r)):n==="digit"?x.jsx(R$t,q({text:t},r)):n==="digitRange"?x.jsx(j$t,q({text:t},r)):n==="second"?x.jsx(C7t,q({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?x.jsx($s,{isLight:r.light,children:x.jsx(tvt,q({text:t},r))}):n==="checkbox"?x.jsx(lvt,q({text:t},r)):n==="radio"?x.jsx(wee,q({text:t},r)):n==="radioButton"?x.jsx(wee,q({radioType:"button",text:t},r)):n==="rate"?x.jsx(w7t,q({text:t},r)):n==="slider"?x.jsx(M7t,q({text:t},r)):n==="switch"?x.jsx(P7t,q({text:t},r)):n==="option"?x.jsx(Z$t,q({text:t},r)):n==="password"?x.jsx(e7t,q({text:t},r)):n==="image"?x.jsx(gbe,q({text:t},r)):n==="cascader"?x.jsx(ivt,q({text:t},r)):n==="treeSelect"?x.jsx(z9t,q({text:t},r)):n==="color"?x.jsx(M$t,q({text:t},r)):n==="segmented"?x.jsx(E7t,q({text:t},r)):x.jsx(R7t,q({text:t},r))},eTt=function(t,n){var r,i,a,o,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,f=t.mode,p=f===void 0?"read":f,h=t.onChange,m=t.renderFormItem,g=t.value,v=t.readonly,y=t.fieldProps,w=Ht(t,X9t),b=d.useContext(hh),C=du(function(){for(var _,E=arguments.length,$=new Array(E),M=0;M1&&arguments[1]!==void 0?arguments[1]:{},n=[];return te.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(UN(r)):nh.isFragment(r)&&r.props?n=n.concat(UN(r.props.children,t)):n.push(r))}),n}var pH=te.createContext({}),uTt=["name","originDependencies","children","ignoreFormListField"],Ibe=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,a=t.children,o=t.ignoreFormListField,s=Ht(t,uTt),l=d.useContext(B0e),c=d.useContext(pH),u=d.useMemo(function(){return n.map(function(f){var p,h=[f];return!o&&c.name!==void 0&&(p=c.listName)!==null&&p!==void 0&&p.length&&h.unshift(c.listName),h.flat(1)})},[c.listName,c.name,o,n==null?void 0:n.toString()]);return x.jsx(Zi.Item,q(q({},s),{},{noStyle:!0,shouldUpdate:function(p,h,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var g;return(g=s.shouldUpdate)===null||g===void 0?void 0:g.call(s,p,h,m)}return u.some(function(v){return!Ym(Mm(p,v),Mm(h,v))})},children:function(p){for(var h={},m=0;m div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":ne(ne(ne(ne({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function bTt(e){return Ci("ProFormGroup",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[yTt(n)]})}var Nbe=te.forwardRef(function(e,t){var n=te.useContext(s1),r=n.groupProps,i=q(q({},r),e),a=i.children,o=i.collapsible,s=i.defaultCollapsed,l=i.style,c=i.labelLayout,u=i.title,f=u===void 0?e.label:u,p=i.tooltip,h=i.align,m=h===void 0?"start":h,g=i.direction,v=i.size,y=v===void 0?32:v,w=i.titleStyle,b=i.titleRender,C=i.spaceProps,k=i.extra,S=i.autoFocus,_=In(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),E=Te(_,2),$=E[0],M=E[1],P=d.useContext(zn.ConfigContext),R=P.getPrefixCls,O=Bz(e),j=O.ColWrapper,I=O.RowWrapper,A=R("pro-form-group"),N=bTt(A),F=N.wrapSSR,K=N.hashId,L=o&&x.jsx(bc,{style:{marginInlineEnd:8},rotate:$?void 0:90}),V=x.jsx(Lht,{label:L?x.jsxs("div",{children:[L,f]}):f,tooltip:p}),B=d.useCallback(function(X){var ae=X.children;return x.jsx(Xr,q(q({},C),{},{className:Ee("".concat(A,"-container ").concat(K),C==null?void 0:C.className),size:y,align:m,direction:g,style:q({rowGap:0},C==null?void 0:C.style),children:ae}))},[m,A,g,K,y,C]),U=b?b(V,e):V,Y=d.useMemo(function(){var X=[],ae=te.Children.toArray(a).map(function(oe,le){var ce;return te.isValidElement(oe)&&oe!==null&&oe!==void 0&&(ce=oe.props)!==null&&ce!==void 0&&ce.hidden?(X.push(oe),null):le===0&&te.isValidElement(oe)&&S?te.cloneElement(oe,q(q({},oe.props),{},{autoFocus:S})):oe});return[x.jsx(I,{Wrapper:B,children:ae},"children"),X.length>0?x.jsx("div",{style:{display:"none"},children:X}):null]},[a,I,B,S]),ee=Te(Y,2),ie=ee[0],Z=ee[1];return F(x.jsx(j,{children:x.jsxs("div",{className:Ee(A,K,ne({},"".concat(A,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[Z,(f||p||k)&&x.jsx("div",{className:"".concat(A,"-title ").concat(K).trim(),style:w,onClick:function(){M(!$)},children:k?x.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[U,x.jsx("span",{onClick:function(ae){return ae.stopPropagation()},children:k})]}):U}),x.jsx("div",{style:{display:o&&$?"none":void 0},children:ie})]})}))});Nbe.displayName="ProForm-Group";function Dee(e){return e instanceof HTMLElement||e instanceof SVGElement}function wTt(e){return e&&Kt(e)==="object"&&Dee(e.nativeElement)?e.nativeElement:Dee(e)?e:null}function qT(e){var t=wTt(e);if(t)return t;if(e instanceof te.Component){var n;return(n=ig.findDOMNode)===null||n===void 0?void 0:n.call(ig,e)}return null}var WN=d.createContext(null);function xTt(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),a=d.useContext(WN),o=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(s,l,c)},[n,a]);return d.createElement(WN.Provider,{value:o},t)}var Wp=new Map;function STt(e){e.forEach(function(t){var n,r=t.target;(n=Wp.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Abe=new Ide(STt);function CTt(e,t){Wp.has(e)||(Wp.set(e,new Set),Abe.observe(e)),Wp.get(e).add(t)}function _Tt(e,t){Wp.has(e)&&(Wp.get(e).delete(t),Wp.get(e).size||(Abe.unobserve(e),Wp.delete(e)))}var kTt=function(e){$o(n,e);var t=rs(n);function n(){return Ar(this,n),t.apply(this,arguments)}return Dr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function ETt(e,t){var n=e.children,r=e.disabled,i=d.useRef(null),a=d.useRef(null),o=d.useContext(WN),s=typeof n=="function",l=s?n(i):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(l)&&Hft(l),f=u?l.ref:null,p=zft(f,i),h=function(){var y;return qT(i.current)||(i.current&&Kt(i.current)==="object"?qT((y=i.current)===null||y===void 0?void 0:y.nativeElement):null)||qT(a.current)};d.useImperativeHandle(t,function(){return h()});var m=d.useRef(e);m.current=e;var g=d.useCallback(function(v){var y=m.current,w=y.onResize,b=y.data,C=v.getBoundingClientRect(),k=C.width,S=C.height,_=v.offsetWidth,E=v.offsetHeight,$=Math.floor(k),M=Math.floor(S);if(c.current.width!==$||c.current.height!==M||c.current.offsetWidth!==_||c.current.offsetHeight!==E){var P={width:$,height:M,offsetWidth:_,offsetHeight:E};c.current=P;var R=_===Math.round(k)?k:_,O=E===Math.round(S)?S:E,j=q(q({},P),{},{offsetWidth:R,offsetHeight:O});o==null||o(j,v,b),w&&Promise.resolve().then(function(){w(j,v)})}},[]);return d.useEffect(function(){var v=h();return v&&!r&&CTt(v,g),function(){return _Tt(v,g)}},[i.current,r]),d.createElement(kTt,{ref:a},u?d.cloneElement(l,{ref:p}):l)}var $Tt=d.forwardRef(ETt),MTt="rc-observer-key";function TTt(e,t){var n=e.children,r=typeof n=="function"?[n]:UN(n);return r.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(MTt,"-").concat(a);return d.createElement($Tt,tt({},e,{key:o,ref:a===0?t:void 0}),i)})}var Dbe=d.forwardRef(TTt);Dbe.Collection=xTt;var PTt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],OTt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],RTt=function(t,n){var r=t.fieldProps,i=t.children,a=t.params,o=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,f=t.options,p=Ht(t,PTt),h=d.useContext(s1);return x.jsx(Sc,q(q({valueEnum:z0(l),request:c,params:a,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({options:f,mode:s,showSearch:u,getPopupContainer:h.getPopupContainer},r),ref:n,proFieldProps:o},p),{},{children:i}))},ITt=te.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,i=e.params,a=e.proFieldProps,o=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=Ht(e,OTt),f=q({options:c,mode:o||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),p=d.useContext(s1);return x.jsx(Sc,q(q({valueEnum:z0(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({getPopupContainer:p.getPopupContainer},f),ref:t,proFieldProps:a},u),{},{children:r}))}),jTt=te.forwardRef(RTt),NTt=ITt,ro=jTt;ro.SearchSelect=NTt;ro.displayName="ProFormComponent";var ATt=function(t){var n=sa(),r=Zi.useFormInstance();if(t.render===!1)return null;var i=t.onSubmit,a=t.render,o=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,f=wd.useToken(),p=f.token,h=function(){r.submit(),i==null||i()},m=function(){r.resetFields(),o==null||o()},g=l.submitText,v=g===void 0?n.getMessage("tableForm.submit","提交"):g,y=l.resetText,w=y===void 0?n.getMessage("tableForm.reset","重置"):y,b=[];u!==!1&&b.push(d.createElement(Yt,q(q({},Fl(u,["preventDefault"])),{},{key:"rest",onClick:function(S){var _;u!=null&&u.preventDefault||m(),u==null||(_=u.onClick)===null||_===void 0||_.call(u,S)}}),w)),c!==!1&&b.push(d.createElement(Yt,q(q({type:"primary"},Fl(c||{},["preventDefault"])),{},{key:"submit",onClick:function(S){var _;c!=null&&c.preventDefault||h(),c==null||(_=c.onClick)===null||_===void 0||_.call(c,S)}}),v));var C=a?a(q(q({},t),{},{form:r,submit:h,reset:m}),b):b;return C?Array.isArray(C)?(C==null?void 0:C.length)<1?null:(C==null?void 0:C.length)===1?C[0]:x.jsx("div",{style:{display:"flex",gap:p.marginXS,alignItems:"center"},children:C}):C:null},DTt=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],VN=te.forwardRef(function(e,t){var n=e.fieldProps,r=e.unCheckedChildren,i=e.checkedChildren,a=e.proFieldProps,o=Ht(e,DTt);return x.jsx(Sc,q({valueType:"switch",fieldProps:q({unCheckedChildren:r,checkedChildren:i},n),ref:t,valuePropName:"checked",proFieldProps:a,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},o))}),FTt=["fieldProps","proFieldProps"],LTt=["fieldProps","proFieldProps"],t5="text",BTt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Ht(t,FTt);return x.jsx(Sc,q({valueType:t5,fieldProps:n,filedConfig:{valueType:t5},proFieldProps:r},i))},zTt=function(t){var n=In(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=Te(n,2),i=r[0],a=r[1];return x.jsx(Zi.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return x.jsx(wc,q(q({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return a(f)},content:x.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?x.jsx("div",{style:{marginTop:10},children:x.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},HTt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Ht(t,LTt),a=d.useState(!1),o=Te(a,2),s=o[0],l=o[1];return n!=null&&n.statusRender&&i.name?x.jsx(zTt,{name:i.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:x.jsx("div",{children:x.jsx(Sc,q({valueType:"password",fieldProps:q(q({},Fl(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,u),l(!1)},onClick:function(u){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:t5}},i))})}):x.jsx(Sc,q({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:t5}},i))},Or=BTt;Or.Password=HTt;Or.displayName="ProFormComponent";var UTt=["fieldProps","proFieldProps"],WTt=function(t,n){var r=t.fieldProps,i=t.proFieldProps,a=Ht(t,UTt);return x.jsx(Sc,q({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:i},a))};const Cd=te.forwardRef(WTt);var VTt=["fieldProps","request","params","proFieldProps"],qTt=function(t,n){var r=t.fieldProps,i=t.request,a=t.params,o=t.proFieldProps,s=Ht(t,VTt);return x.jsx(Sc,q({valueType:"treeSelect",fieldProps:r,ref:n,request:i,params:a,filedConfig:{customLightMode:!0},proFieldProps:o},s))},KTt=te.forwardRef(qTt),GTt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],YTt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],g_=function(t,n,r){return t===!0?n:z0(t,n,r)},Fee=function(t){return!t||Array.isArray(t)?t:[t]};function XTt(e){var t,n=e.children,r=e.contentRender,i=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,o=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,f=u===void 0?{}:u,p=e.syncToUrl,h=e.onUrlSearchChange,m=e.onReset,g=e.omitNil,v=g===void 0?!0:g;e.isKeyPressSubmit;var y=e.autoFocusFirstInput,w=y===void 0?!0:y,b=e.grid,C=e.rowProps,k=e.colProps,S=Ht(e,GTt),_=Zi.useFormInstance(),E=(zn==null||(t=zn.useConfig)===null||t===void 0?void 0:t.call(zn))||{componentSize:"middle"},$=E.componentSize,M=d.useRef(l||_),P=Bz({grid:b,rowProps:C}),R=P.RowWrapper,O=du(function(){return _}),j=d.useMemo(function(){return{getFieldsFormatValue:function(V){var B;return a((B=O())===null||B===void 0?void 0:B.getFieldsValue(V),v)},getFieldFormatValue:function(){var V,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],U=Fee(B);if(!U)throw new Error("nameList is require");var Y=(V=O())===null||V===void 0?void 0:V.getFieldValue(U),ee=U?B0({},U,Y):Y;return Mm(a(ee,v,U),U)},getFieldFormatValueObject:function(V){var B,U=Fee(V),Y=(B=O())===null||B===void 0?void 0:B.getFieldValue(U),ee=U?B0({},U,Y):Y;return a(ee,v,U)},validateFieldsReturnFormatValue:function(){var L=pa(hr().mark(function B(U){var Y,ee,ie;return hr().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(!Array.isArray(U)&&U)){X.next=2;break}throw new Error("nameList must be array");case 2:return X.next=4,(Y=O())===null||Y===void 0?void 0:Y.validateFields(U);case 4:return ee=X.sent,ie=a(ee,v),X.abrupt("return",ie||{});case 7:case"end":return X.stop()}},B)}));function V(B){return L.apply(this,arguments)}return V}()}},[v,a]),I=d.useMemo(function(){return te.Children.toArray(n).map(function(L,V){return V===0&&te.isValidElement(L)&&w?te.cloneElement(L,q(q({},L.props),{},{autoFocus:w})):L})},[w,n]),A=d.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),N=d.useMemo(function(){if(i!==!1)return x.jsx(ATt,q(q({},A),{},{onReset:function(){var V,B,U=a((V=M.current)===null||V===void 0?void 0:V.getFieldsValue(),v);if(A==null||(B=A.onReset)===null||B===void 0||B.call(A,U),m==null||m(U),p){var Y,ee=Object.keys(a((Y=M.current)===null||Y===void 0?void 0:Y.getFieldsValue(),!1)).reduce(function(ie,Z){return q(q({},ie),{},ne({},Z,U[Z]||void 0))},f);h(g_(p,ee||{},"set"))}},submitButtonProps:q({loading:c},A.submitButtonProps)}),"submitter")},[i,A,c,a,v,m,p,f,h]),F=d.useMemo(function(){var L=b?x.jsx(R,{children:I}):I;return r?r(L,N,M.current):L},[b,R,I,r,N]),K=Jht(e.initialValues);return d.useEffect(function(){if(!(p||!e.initialValues||!K||S.request)){var L=Ym(e.initialValues,K);Hk(L,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
      : null "),Hk(L,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),d.useImperativeHandle(o,function(){return q(q({},M.current),j)},[j,M.current]),d.useEffect(function(){var L,V,B=a((L=M.current)===null||L===void 0||(V=L.getFieldsValue)===null||V===void 0?void 0:V.call(L,!0),v);s==null||s(B,q(q({},M.current),j))},[]),x.jsx(B0e.Provider,{value:q(q({},j),{},{formRef:M}),children:x.jsx(zn,{componentSize:S.size||$,children:x.jsxs(mye.Provider,{value:{grid:b,colProps:k},children:[S.component!==!1&&x.jsx("input",{type:"text",style:{display:"none"}}),F]})})})}var Lee=0;function ZTt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,i=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,o=a===void 0?!1:a,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,f=e.formItemProps,p=e.groupProps,h=e.dateFormatter,m=h===void 0?"string":h,g=e.formRef;e.onInit;var v=e.form,y=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var w=e.omitNil,b=w===void 0?!0:w,C=e.request,k=e.params,S=e.initialValues,_=e.formKey,E=_===void 0?Lee:_;e.readonly;var $=e.onLoadingChange,M=e.loading,P=Ht(e,YTt),R=d.useRef({}),O=In(!1,{onChange:$,value:M}),j=Te(O,2),I=j[0],A=j[1],N=R1t({},{disabled:!r}),F=Te(N,2),K=F[0],L=F[1],V=d.useRef(B6());d.useEffect(function(){Lee+=0},[]);var B=Qht({request:C,params:k,proFieldKey:E}),U=Te(B,1),Y=U[0],ee=d.useContext(zn.ConfigContext),ie=ee.getPrefixCls,Z=ie("pro-form"),X=Ci("ProForm",function(Se){return ne({},".".concat(Z),ne({},"> div:not(".concat(Se.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ae=X.wrapSSR,oe=X.hashId,le=d.useState(function(){return r?g_(r,K,"get"):{}}),ce=Te(le,2),pe=ce[0],me=ce[1],re=d.useRef({}),fe=d.useRef({}),ve=du(function(Se,we,se){return M1t(Uht(Se,m,fe.current,we,se),re.current,we)});d.useEffect(function(){l||me({})},[l]);var $e=du(function(){return q(q({},K),n)});d.useEffect(function(){r&&L(g_(r,$e(),"set"))},[n,$e,r]);var Ce=d.useMemo(function(){if(!(typeof window>"u")&&y&&["DrawerForm"].includes(y))return function(Se){return Se.parentNode||document.body}},[y]),be=du(pa(hr().mark(function Se(){var we,se,ye,Oe,z,H,G;return hr().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(P.onFinish){xe.next=2;break}return xe.abrupt("return");case 2:if(!I){xe.next=4;break}return xe.abrupt("return");case 4:return xe.prev=4,ye=R==null||(we=R.current)===null||we===void 0||(se=we.getFieldsFormatValue)===null||se===void 0?void 0:se.call(we),Oe=P.onFinish(ye),Oe instanceof Promise&&A(!0),xe.next=10,Oe;case 10:r&&(G=Object.keys(R==null||(z=R.current)===null||z===void 0||(H=z.getFieldsFormatValue)===null||H===void 0?void 0:H.call(z,void 0,!1)).reduce(function(he,Ue){var We;return q(q({},he),{},ne({},Ue,(We=ye[Ue])!==null&&We!==void 0?We:void 0))},n),Object.keys(K).forEach(function(he){G[he]!==!1&&G[he]!==0&&!G[he]&&(G[he]=void 0)}),L(g_(r,G,"set"))),A(!1),xe.next=18;break;case 14:xe.prev=14,xe.t0=xe.catch(4),console.log(xe.t0),A(!1);case 18:case"end":return xe.stop()}},Se,null,[[4,14]])})));return d.useImperativeHandle(g,function(){return R.current},[!Y]),!Y&&e.request?x.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:x.jsx(Zo,{})}):ae(x.jsx(dH.Provider,{value:{mode:e.readonly?"read":"edit"},children:x.jsx(c$,{needDeps:!0,children:x.jsx(s1.Provider,{value:{formRef:R,fieldProps:c,proFieldProps:u,formItemProps:f,groupProps:p,formComponentType:y,getPopupContainer:Ce,formKey:V.current,setFieldValueType:function(we,se){var ye=se.valueType,Oe=ye===void 0?"text":ye,z=se.dateFormat,H=se.transform;Array.isArray(we)&&(re.current=B0(re.current,we,H),fe.current=B0(fe.current,we,{valueType:Oe,dateFormat:z}))}},children:x.jsx(pH.Provider,{value:{},children:x.jsx(Zi,q(q({onKeyPress:function(we){if(i&&we.key==="Enter"){var se;(se=R.current)===null||se===void 0||se.submit()}},autoComplete:"off",form:v},Fl(P,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(we){R.current&&(R.current.nativeElement=we==null?void 0:we.nativeElement)},initialValues:o?q(q(q({},S),Y),pe):q(q(q({},pe),S),Y),onValuesChange:function(we,se){var ye;P==null||(ye=P.onValuesChange)===null||ye===void 0||ye.call(P,ve(we,!!b),ve(se,!!b))},className:Ee(e.className,Z,oe),onFinish:be,children:x.jsx(XTt,q(q({transformKey:ve,autoComplete:"off",loading:I,onUrlSearchChange:L},e),{},{formRef:R,initialValues:q(q({},S),Y)}))}))})})})}))}var QTt=function(t){return ne(ne({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),ne({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function JTt(e){return Ci("LightWrapper",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[QTt(n)]})}var ePt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],tPt=function(t){var n=t.label,r=t.size,i=t.disabled,a=t.onChange,o=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,f=t.labelFormatter,p=t.bordered,h=t.footerRender,m=t.allowClear,g=t.otherFieldProps,v=t.valueType,y=t.placement,w=Ht(t,ePt),b=d.useContext(zn.ConfigContext),C=b.getPrefixCls,k=C("pro-field-light-wrapper"),S=JTt(k),_=S.wrapSSR,E=S.hashId,$=d.useState(t[c]),M=Te($,2),P=M[0],R=M[1],O=In(!1),j=Te(O,2),I=j[0],A=j[1],N=function(){for(var V,B=arguments.length,U=new Array(B),Y=0;Yn.length)&&(r=n.length);for(var i=0,a=Array(r);i0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):pPt}function O$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function hPt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function vH(e){return Array.from((n5.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function yH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,dPt.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=hPt(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(Hee,o),s&&a&&l.setAttribute(Uee,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=O$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||vH(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Hee)))return!1;var h=Number(p.getAttribute(Uee)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function t2e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=O$(t);return(t.styles||vH(n)).find(function(r){return r.getAttribute(e2e(t))===e})}function mPt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t2e(e,t);if(n){var r=O$(t);r.removeChild(n)}}function gPt(e,t){var n=n5.get(e);if(!n||!(0,fPt.default)(document,n)){var r=yH("",t),i=r.parentNode;n5.set(e,i),e.removeChild(r)}}function vPt(){n5.clear()}function yPt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=O$(n),i=vH(r),a=(0,zee.default)((0,zee.default)({},n),{},{styles:i});gPt(r,a);var o=t2e(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=yH(e,a);return u.setAttribute(e2e(a),t),u}var R$={};Object.defineProperty(R$,"__esModule",{value:!0});R$.getShadowRoot=bPt;R$.inShadow=r2e;function n2e(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function r2e(e){return n2e(e)instanceof ShadowRoot}function bPt(e){return r2e(e)?n2e(e):null}var Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.call=bH;Ys.default=void 0;Ys.note=a2e;Ys.noteOnce=s2e;Ys.preMessage=void 0;Ys.resetWarned=o2e;Ys.warning=i2e;Ys.warningOnce=ix;var qN={},wPt=Ys.preMessage=function(t){};function i2e(e,t){}function a2e(e,t){}function o2e(){qN={}}function bH(e,t,n){!t&&!qN[n]&&(e(!1,n),qN[n]=!0)}function ix(e,t){bH(i2e,e,t)}function s2e(e,t){bH(a2e,e,t)}ix.preMessage=wPt;ix.resetWarned=o2e;ix.noteOnce=s2e;Ys.default=ix;var xPt=$a.default,I$=br.default;Object.defineProperty(Qo,"__esModule",{value:!0});Qo.generate=GN;Qo.getSecondaryColor=PPt;Qo.iconStyles=void 0;Qo.isIconDefinition=TPt;Qo.normalizeAttrs=KN;Qo.normalizeTwoToneColors=OPt;Qo.useInsertStyles=Qo.svgBaseProps=void 0;Qo.warning=MPt;var KT=I$(Ng),Wee=I$(jg),SPt=nx,CPt=u1,_Pt=R$,kPt=I$(Ys),r5=xPt(d),EPt=I$(Qy);function $Pt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function MPt(e,t){(0,kPt.default)(e,"[@ant-design/icons] ".concat(t))}function TPt(e){return(0,Wee.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,Wee.default)(e.icon)==="object"||typeof e.icon=="function")}function KN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[$Pt(n)]=r}return t},{})}function GN(e,t,n){return n?r5.default.createElement(e.tag,(0,KT.default)((0,KT.default)({key:t},KN(e.attrs)),n),(e.children||[]).map(function(r,i){return GN(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):r5.default.createElement(e.tag,(0,KT.default)({key:t},KN(e.attrs)),(e.children||[]).map(function(r,i){return GN(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function PPt(e){return(0,SPt.generate)(e)[0]}function OPt(e){return e?Array.isArray(e)?e:[e]:[]}Qo.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var RPt=Qo.iconStyles=` + `),te.createElement("div",{style:f.white,className:"saturation-white"},te.createElement("div",{style:f.black,className:"saturation-black"}),te.createElement("div",{style:f.pointer},this.props.pointer?te.createElement(this.props.pointer,this.props):te.createElement("div",{style:f.circle}))))}}]),n}(d.PureComponent||d.Component),UEt=Uye,WEt=Hye,VEt=Sye,qEt=Hl;function KEt(e,t){var n=qEt(e)?UEt:WEt;return n(e,VEt(t))}var GEt=KEt,YEt=GEt;const XEt=ei(YEt);function Y6(e){"@babel/helpers - typeof";return Y6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y6(e)}var ZEt=/^\s+/,QEt=/\s+$/;function Xn(e,t){if(e=e||"",t=t||{},e instanceof Xn)return e;if(!(this instanceof Xn))return new Xn(e,t);var n=JEt(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Xn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=sbe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ree(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ree(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=nee(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=nee(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return iee(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return r8t(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ki(this._r,255)*100)+"%",g:Math.round(Ki(this._g,255)*100)+"%",b:Math.round(Ki(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ki(this._r,255)*100)+"%, "+Math.round(Ki(this._g,255)*100)+"%, "+Math.round(Ki(this._b,255)*100)+"%)":"rgba("+Math.round(Ki(this._r,255)*100)+"%, "+Math.round(Ki(this._g,255)*100)+"%, "+Math.round(Ki(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:m8t[iee(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+aee(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=Xn(t);r="#"+aee(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Xn(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(s8t,arguments)},brighten:function(){return this._applyModification(l8t,arguments)},darken:function(){return this._applyModification(c8t,arguments)},desaturate:function(){return this._applyModification(i8t,arguments)},saturate:function(){return this._applyModification(a8t,arguments)},greyscale:function(){return this._applyModification(o8t,arguments)},spin:function(){return this._applyModification(u8t,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(p8t,arguments)},complement:function(){return this._applyCombination(d8t,arguments)},monochromatic:function(){return this._applyCombination(h8t,arguments)},splitcomplement:function(){return this._applyCombination(f8t,arguments)},triad:function(){return this._applyCombination(oee,[3])},tetrad:function(){return this._applyCombination(oee,[4])}};Xn.fromRatio=function(e,t){if(Y6(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=M2(e[r]));e=n}return Xn(e,t)};function JEt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=b8t(e)),Y6(e)=="object"&&(qd(e.r)&&qd(e.g)&&qd(e.b)?(t=e8t(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):qd(e.h)&&qd(e.s)&&qd(e.v)?(r=M2(e.s),i=M2(e.v),t=n8t(e.h,r,i),o=!0,s="hsv"):qd(e.h)&&qd(e.s)&&qd(e.l)&&(r=M2(e.s),a=M2(e.l),t=t8t(e.h,r,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=sbe(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function e8t(e,t,n){return{r:Ki(e,255)*255,g:Ki(t,255)*255,b:Ki(n,255)*255}}function nee(e,t,n){e=Ki(e,255),t=Ki(t,255),n=Ki(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function ree(e,t,n){e=Ki(e,255),t=Ki(t,255),n=Ki(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,l=r-i;if(o=r===0?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(Xn(r));return a}function h8t(e,t){t=t||6;for(var n=Xn(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(Xn({h:r,s:i,v:a})),a=(a+s)%1;return o}Xn.mix=function(e,t,n){n=n===0?0:n||50;var r=Xn(e).toRgb(),i=Xn(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return Xn(o)};Xn.readability=function(e,t){var n=Xn(e),r=Xn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Xn.isReadable=function(e,t,n){var r=Xn.readability(e,t),i,a;switch(a=!1,i=w8t(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};Xn.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,l;n=n||{},o=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;ci&&(i=a,r=Xn(t[c]));return Xn.isReadable(e,r,{level:s,size:l})||!o?r:(n.includeFallbackColors=!1,Xn.mostReadable(e,["#fff","#000"],n))};var RN=Xn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},m8t=Xn.hexNames=g8t(RN);function g8t(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function sbe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ki(e,t){v8t(e)&&(e="100%");var n=y8t(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function $$(e){return Math.min(1,Math.max(0,e))}function ul(e){return parseInt(e,16)}function v8t(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function y8t(e){return typeof e=="string"&&e.indexOf("%")!=-1}function tu(e){return e.length==1?"0"+e:""+e}function M2(e){return e<=1&&(e=e*100+"%"),e}function lbe(e){return Math.round(parseFloat(e)*255).toString(16)}function see(e){return ul(e)/255}var Bc=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function qd(e){return!!Bc.CSS_UNIT.exec(e)}function b8t(e){e=e.replace(ZEt,"").replace(QEt,"").toLowerCase();var t=!1;if(RN[e])e=RN[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Bc.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Bc.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Bc.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Bc.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Bc.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Bc.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Bc.hex8.exec(e))?{r:ul(n[1]),g:ul(n[2]),b:ul(n[3]),a:see(n[4]),format:t?"name":"hex8"}:(n=Bc.hex6.exec(e))?{r:ul(n[1]),g:ul(n[2]),b:ul(n[3]),format:t?"name":"hex"}:(n=Bc.hex4.exec(e))?{r:ul(n[1]+""+n[1]),g:ul(n[2]+""+n[2]),b:ul(n[3]+""+n[3]),a:see(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Bc.hex3.exec(e))?{r:ul(n[1]+""+n[1]),g:ul(n[2]+""+n[2]),b:ul(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function w8t(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var lee=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return XEt(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var o=/^\d+%$/;o.test(t[a])&&(i+=1)}}),r===i?t:!1},VS=function(t,n){var r=t.hex?Xn(t.hex):Xn(t),i=r.toHsl(),a=r.toHsv(),o=r.toRgb(),s=r.toHex();i.s===0&&(i.h=n||0,a.h=n||0);var l=s==="000000"&&o.a===0;return{hsl:i,hex:l?"transparent":"#".concat(s),rgb:o,hsv:a,oldHue:t.h||n||i.h,source:t.source}},x8t=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Xn(t).isValid()};function q0(e){"@babel/helpers - typeof";return q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q0(e)}function IN(){return IN=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function X6(e){return X6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},X6(e)}var O8t=function(t){var n=function(r){E8t(a,r);var i=$8t(a);function a(o){var s;return C8t(this,a),s=i.call(this),s.handleChange=function(l,c){var u=lee(l);if(u){var f=VS(l,l.h||s.state.oldHue);s.setState(f),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,f,c),s.props.onChange&&s.props.onChange(f,c)}},s.handleSwatchHover=function(l,c){var u=lee(l);if(u){var f=VS(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(f,c)}},s.state=Kb({},VS(o.color,0)),s.debounce=_Et(function(l,c,u){l(c,u)},100),s}return _8t(a,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),te.createElement(t,IN({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return Kb({},VS(s.color,l.oldHue))}}]),a}(d.PureComponent||d.Component);return n.propTypes=Kb({},t.propTypes),n.defaultProps=Kb(Kb({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function K0(e){"@babel/helpers - typeof";return K0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K0(e)}function R8t(e,t,n){return t=ube(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I8t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j8t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z6(e){return Z6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Z6(e)}var H8t=1,dbe=38,U8t=40,W8t=[dbe,U8t],V8t=function(t){return W8t.indexOf(t)>-1},q8t=function(t){return Number(String(t).replace(/%/g,""))},K8t=1,Gb=function(e){D8t(n,e);var t=F8t(n);function n(r){var i;return I8t(this,n),i=t.call(this),i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(a){i.setUpdatedValue(a.target.value,a)},i.handleKeyDown=function(a){var o=q8t(a.target.value);if(!isNaN(o)&&V8t(a.keyCode)){var s=i.getArrowOffset(),l=a.keyCode===dbe?o+s:o-s;i.setUpdatedValue(l,a)}},i.handleDrag=function(a){if(i.props.dragLabel){var o=Math.round(i.props.value+a.movementX);o>=0&&o<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(o),a)}},i.handleMouseDown=function(a){i.props.dragLabel&&(a.preventDefault(),i.handleDrag(a),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},i.inputId="rc-editable-input-".concat(K8t++),i}return N8t(n,[{key:"componentDidUpdate",value:function(i,a){this.props.value!==this.state.value&&(i.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(i){return R8t({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||H8t}},{key:"setUpdatedValue",value:function(i,a){var o=this.props.label?this.getValueObjectWithLabel(i):i;this.props.onChange&&this.props.onChange(o,a),this.setState({value:i})}},{key:"render",value:function(){var i=this,a=$h({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return te.createElement("div",{style:a.wrap},te.createElement("input",{id:this.inputId,style:a.input,ref:function(s){return i.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?te.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(d.PureComponent||d.Component);function G0(e){"@babel/helpers - typeof";return G0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G0(e)}function AN(){return AN=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Q6(e){return Q6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Q6(e)}var i$t=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){J8t(a,r);var i=e$t(a);function a(){var o;G8t(this,a);for(var s=arguments.length,l=new Array(s),c=0;c100&&(u.a=100),u.a/=100,n==null||n({h:i==null?void 0:i.h,s:i==null?void 0:i.s,l:i==null?void 0:i.l,a:u.a,source:"rgb"},f))};return te.createElement("div",{style:s.fields,className:"flexbox-fix"},te.createElement("div",{style:s.double},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:l})),te.createElement("div",{style:s.single},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.single},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),te.createElement("div",{style:s.alpha},te.createElement(Gb,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function S3(e){"@babel/helpers - typeof";return S3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S3(e)}function pee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hee(e){for(var t=1;t-1}function k$t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&pbe()?ZB:C$t}var E$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.old,c=d.useContext(zn.ConfigContext),u=c.getPrefixCls,f=te.useMemo(function(){return k$t(l)},[l]),p=u("pro-field-color-picker"),h=d.useMemo(function(){return l?"":Ee(ne({},p,pbe()))},[p,l]);if(i==="read"){var m=x.jsx(f,{value:r,mode:"read",ref:n,className:h,open:!1});return a?a(r,q({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=q({display:"table-cell"},s.style),v=x.jsx(f,q(q({ref:n,presets:[_$t]},s),{},{style:g,className:h}));return o?o(r,q(q({mode:i},s),{},{style:g}),v):v}return null};const $$t=te.forwardRef(E$t);cr.extend(IB);var M$t=function(t,n){return t?typeof n=="function"?n(cr(t)):cr(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},T$t=function(t,n){var r=t.text,i=t.mode,a=t.format,o=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,f=t.showTime,p=t.fieldProps,h=t.picker,m=t.bordered,g=t.lightLabel,v=sa(),y=d.useState(!1),w=Te(y,2),b=w[0],C=w[1];if(i==="read"){var k=M$t(r,p.format||a);return l?l(r,q({mode:i},p),x.jsx(x.Fragment,{children:k})):x.jsx(x.Fragment,{children:k})}if(i==="edit"||i==="update"){var S,_=p.disabled,E=p.value,$=p.placeholder,M=$===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):$,P=H4(E);return s?S=x.jsx(Qf,{label:o,onClick:function(){var O;p==null||(O=p.onOpenChange)===null||O===void 0||O.call(p,!0),C(!0)},style:P?{paddingInlineEnd:0}:void 0,disabled:_,value:P||b?x.jsx(xc,q(q(q({picker:h,showTime:f,format:a,ref:n},p),{},{value:P,onOpenChange:function(O){var j;C(O),p==null||(j=p.onOpenChange)===null||j===void 0||j.call(p,O)}},Al(!1)),{},{open:b})):void 0,allowClear:!1,downIcon:P||b?!1:void 0,bordered:m,ref:g}):S=x.jsx(xc,q(q(q({picker:h,showTime:f,format:a,placeholder:M},Al(u===void 0?!0:!u)),{},{ref:n},p),{},{value:P})),c?c(r,q({mode:i},p),S):S}return null};const H1=te.forwardRef(T$t);var P$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=sa(),u=o||c.getMessage("tableForm.inputPlaceholder","请输入"),f=d.useCallback(function(y){var w=y??void 0;return!l.stringMode&&typeof w=="string"&&(w=Number(w)),typeof w=="number"&&!Eg(w)&&!Eg(l.precision)&&(w=Number(w.toFixed(l.precision))),w},[l]);if(i==="read"){var p,h={};l!=null&&l.precision&&(h={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,q(q({},h),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?x.jsx("span",{children:r}):x.jsx("span",{ref:n,children:(l==null||(p=l.formatter)===null||p===void 0?void 0:p.call(l,m))||m});return a?a(r,q({mode:i},l),g):g}if(i==="edit"||i==="update"){var v=x.jsx(Af,q(q({ref:n,min:0,placeholder:u},Dl(l,["onChange","onBlur"])),{},{onChange:function(w){var b;return l==null||(b=l.onChange)===null||b===void 0?void 0:b.call(l,f(w))},onBlur:function(w){var b;return l==null||(b=l.onBlur)===null||b===void 0?void 0:b.call(l,f(w.target.value))}}));return s?s(r,q({mode:i},l),v):v}return null};const O$t=te.forwardRef(P$t);var R$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,f=t.separatorWidth,p=f===void 0?30:f,h=l.value,m=l.defaultValue,g=l.onChange,v=l.id,y=sa(),w=wd.useToken(),b=w.token,C=In(function(){return m},{value:h,onChange:g}),k=Te(C,2),S=k[0],_=k[1];if(i==="read"){var E=function(F){var K,L=new Intl.NumberFormat(void 0,q({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(F));return(l==null||(K=l.formatter)===null||K===void 0?void 0:K.call(l,L))||L},$=x.jsxs("span",{ref:n,children:[E(r[0])," ",u," ",E(r[1])]});return a?a(r,q({mode:i},l),$):$}if(i==="edit"||i==="update"){var M=function(){if(Array.isArray(S)){var F=Te(S,2),K=F[0],L=F[1];typeof K=="number"&&typeof L=="number"&&K>L?_([L,K]):K===void 0&&L===void 0&&_(void 0)}},P=function(F,K){var L=lt(S||[]);L[F]=K===null?void 0:K,_(L)},R=(l==null?void 0:l.placeholder)||o||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],O=function(F){return Array.isArray(R)?R[F]:R},j=Xr.Compact||Ur.Group,I=Xr.Compact?{}:{compact:!0},A=x.jsxs(j,q(q({},I),{},{onBlur:M,children:[x.jsx(Af,q(q({},l),{},{placeholder:O(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(p,"px) / 2)")},value:S==null?void 0:S[0],defaultValue:m==null?void 0:m[0],onChange:function(F){return P(0,F)}})),x.jsx(Ur,{style:{width:p,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:b==null?void 0:b.colorBgContainer},placeholder:u,disabled:!0}),x.jsx(Af,q(q({},l),{},{placeholder:O(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(p,"px) / 2)"),borderInlineStart:0},value:S==null?void 0:S[1],defaultValue:m==null?void 0:m[1],onChange:function(F){return P(1,F)}}))]}));return s?s(r,q({mode:i},l),A):A}return null};const I$t=te.forwardRef(R$t);var hbe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}i.en.relativeTime=o,a.fromToBase=function(c,u,f,p,h){for(var m,g,v,y=f.$locale().relativeTime||o,w=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],b=w.length,C=0;C0,S<=k.r||!k.r){S<=1&&C>0&&(k=w[C-1]);var _=y[k.l];h&&(S=h(""+S)),g=typeof _=="string"?_.replace("%d",S):_(S,u,k.l,v);break}}if(u)return g;var E=v?y.future:y.past;return typeof E=="function"?E(g):E.replace("%s",g)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?i.utc():i()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(hbe);var j$t=hbe.exports;const N$t=ei(j$t);cr.extend(N$t);var A$t=function(t,n){var r=t.text,i=t.mode,a=t.plain,o=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=sa();if(i==="read"){var f=x.jsx(_a,{title:cr(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:cr(r).fromNow()});return o?o(r,q({mode:i},c),x.jsx(x.Fragment,{children:f})):x.jsx(x.Fragment,{children:f})}if(i==="edit"||i==="update"){var p=u.getMessage("tableForm.selectPlaceholder","请选择"),h=H4(c.value),m=x.jsx(xc,q(q(q({ref:n,placeholder:p,showTime:!0},Al(a===void 0?!0:!a)),c),{},{value:h}));return s?s(r,q({mode:i},c),m):m}return null};const D$t=te.forwardRef(A$t);var mbe=te.forwardRef(function(e,t){var n=e.text,r=e.mode,i=e.render,a=e.renderFormItem,o=e.fieldProps,s=e.placeholder,l=e.width,c=sa(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=x.jsx(B1e,q({ref:t,width:l||32,src:n},o));return i?i(n,q({mode:r},o),f):f}if(r==="edit"||r==="update"){var p=x.jsx(Ur,q({ref:t,placeholder:u},o));return a?a(n,q({mode:r},o),p):p}return null}),F$t=function(t,n){var r=t.border,i=r===void 0?!1:r,a=t.children,o=d.useContext(zn.ConfigContext),s=o.getPrefixCls,l=s("pro-field-index-column"),c=Ci("IndexColumn",function(){return ne({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),u=c.wrapSSR,f=c.hashId;return u(x.jsx("div",{ref:n,className:Ee(l,f,ne(ne({},"".concat(l,"-border"),i),"top-three",a>3)),children:a}))};const gee=te.forwardRef(F$t);var L$t=["contentRender","numberFormatOptions","numberPopoverRender","open"],B$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],gbe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),z$t={style:"currency",currency:"USD"},H$t={style:"currency",currency:"RUB"},U$t={style:"currency",currency:"RSD"},W$t={style:"currency",currency:"MYR"},V$t={style:"currency",currency:"BRL"},q$t={default:gbe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":z$t,"ru-RU":H$t,"ms-MY":W$t,"sr-RS":U$t,"pt-BR":V$t},vee=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",o=n==null?void 0:n.toString().replaceAll(",","");if(typeof o=="string"){var s=Number(o);if(Number.isNaN(s))return o;o=s}if(!o&&o!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var c=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",q(q({},q$t[t||"zh-Hans-CN"]||gbe),{},{maximumFractionDigits:r},i)),u=c.format(o),f=function(y){var w=y.match(/\d+/);if(w){var b=w[0];return y.slice(y.indexOf(b))}else return y},p=f(u),h=u||"",m=Te(h,1),g=m[0];return["+","-"].includes(g)?"".concat(a||"").concat(g).concat(p):"".concat(a||"").concat(p)}catch{return o}},VT=2,K$t=te.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=Ht(e,L$t),a=In(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),o=Te(a,2),s=o[0],l=o[1],c=n==null?void 0:n(q(q({},i),{},{value:s})),u=u$(c?r:!1);return x.jsx(wc,q(q({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(p){return(p==null?void 0:p.parentElement)||document.body},children:x.jsx(Af,q(q({ref:t},i),{},{value:s,onChange:l}))}))}),G$t=function(t,n){var r,i=t.text,a=t.mode,o=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,f=t.customSymbol,p=f===void 0?l.customSymbol:f,h=t.numberFormatOptions,m=h===void 0?l==null?void 0:l.numberFormatOptions:h,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,y=Ht(t,B$t),w=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:VT,b=sa();u&&kg[u]&&(b=kg[u]);var C=c||b.getMessage("tableForm.inputPlaceholder","请输入"),k=d.useMemo(function(){if(p)return p;if(!(y.moneySymbol===!1||l.moneySymbol===!1))return b.getMessage("moneySymbol","¥")},[p,l.moneySymbol,b,y.moneySymbol]),S=d.useCallback(function($){var M=new RegExp("\\B(?=(\\d{".concat(3+Math.max(w-VT,0),"})+(?!\\d))"),"g"),P=String($).split("."),R=Te(P,2),O=R[0],j=R[1],I=O.replace(M,","),A="";return j&&w>0&&(A=".".concat(j.slice(0,w===void 0?VT:w))),"".concat(I).concat(A)},[w]);if(a==="read"){var _=x.jsx("span",{ref:n,children:vee(u||!1,i,w,m??l.numberFormatOptions,k)});return o?o(i,q({mode:a},l),_):_}if(a==="edit"||a==="update"){var E=x.jsx(K$t,q(q({contentRender:function(M){if(v===!1||!M.value)return null;var P=vee(k||u||!1,"".concat(S(M.value)),w,q(q({},m),{},{notation:"compact"}),k);return typeof v=="function"?v==null?void 0:v(M,P):P},ref:n,precision:w,formatter:function(M){return M&&k?"".concat(k," ").concat(S(M)):M==null?void 0:M.toString()},parser:function(M){return k&&M?M.replace(new RegExp("\\".concat(k,"\\s?|(,*)"),"g"),""):M},placeholder:C},Dl(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function($){var M,P=$.target.value;k&&P&&(P=P.replace(new RegExp("\\".concat(k,"\\s?|(,*)"),"g"),"")),(M=l.onBlur)===null||M===void 0||M.call(l,P)}:void 0}));return s?s(i,q({mode:a},l),E):E}return null};const vbe=te.forwardRef(G$t);var yee=function(t){return t.map(function(n,r){var i;return te.isValidElement(n)?te.cloneElement(n,q(q({key:r},n==null?void 0:n.props),{},{style:q({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):x.jsx(te.Fragment,{children:n},r)})},Y$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.fieldProps,s=d.useContext(zn.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=wd.useToken(),f=u.token;if(d.useImperativeHandle(n,function(){return{}}),a){var p=a(r,q({mode:i},o),x.jsx(x.Fragment,{}));return!p||(p==null?void 0:p.length)<1||!Array.isArray(p)?null:x.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:yee(p)})}return!r||!Array.isArray(r)?te.isValidElement(r)?r:null:x.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:yee(r)})};const X$t=te.forwardRef(Y$t);var Z$t=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],Q$t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=Ht(t,Z$t),c=sa(),u=In(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),f=Te(u,2),p=f[0],h=f[1];if(i==="read"){var m=x.jsx(x.Fragment,{children:"-"});return r&&(m=x.jsxs(Xr,{children:[x.jsx("span",{ref:n,children:p?r:"********"}),x.jsx("a",{onClick:function(){return h(!p)},children:p?x.jsx(V8,{}):x.jsx(Jge,{})})]})),a?a(r,q({mode:i},s),m):m}if(i==="edit"||i==="update"){var g=x.jsx(Ur.Password,q({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return o?o(r,q({mode:i},s),g):g}return null};const J$t=te.forwardRef(Q$t);var e7t=/\s/;function t7t(e){for(var t=e.length;t--&&e7t.test(e.charAt(t)););return t}var n7t=/^\s+/;function r7t(e){return e&&e.slice(0,t7t(e)+1).replace(n7t,"")}var i7t="[object Symbol]";function M$(e){return typeof e=="symbol"||Eh(e)&&r1(e)==i7t}var bee=NaN,a7t=/^[-+]0x[0-9a-f]+$/i,o7t=/^0b[01]+$/i,s7t=/^0o[0-7]+$/i,l7t=parseInt;function J6(e){if(typeof e=="number")return e;if(M$(e))return bee;if(Sd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Sd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=r7t(e);var n=o7t.test(e);return n||s7t.test(e)?l7t(e.slice(2),n?2:8):a7t.test(e)?bee:+e}function c7t(e){return e===0?null:e>0?"+":"-"}function u7t(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function d7t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var f7t=function(t,n){var r=t.text,i=t.prefix,a=t.precision,o=t.suffix,s=o===void 0?"%":o,l=t.mode,c=t.showColor,u=c===void 0?!1:c,f=t.render,p=t.renderFormItem,h=t.fieldProps,m=t.placeholder,g=t.showSymbol,v=sa(),y=m||v.getMessage("tableForm.inputPlaceholder","请输入"),w=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?J6(r.replace("%","")):J6(r)},[r]),b=d.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var C=u?{color:u7t(w)}:{},k=x.jsxs("span",{style:C,ref:n,children:[i&&x.jsx("span",{children:i}),b&&x.jsxs(d.Fragment,{children:[c7t(w)," "]}),d7t(Math.abs(w),a),s&&s]});return f?f(r,q(q({mode:l},h),{},{prefix:i,precision:a,showSymbol:b,suffix:s}),k):k}if(l==="edit"||l==="update"){var S=x.jsx(Af,q({ref:n,formatter:function(E){return E&&i?"".concat(i," ").concat(E).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):E},parser:function(E){return E?E.replace(/.*\s|,/g,""):""},placeholder:y},h));return p?p(r,q({mode:l},h),S):S}return null};const ybe=te.forwardRef(f7t);function p7t(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var h7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=sa(),f=c||u.getMessage("tableForm.inputPlaceholder","请输入"),p=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?J6(r.replace("%","")):J6(r)},[r]);if(i==="read"){var h=x.jsx(iz,q({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:p,steps:o?10:void 0,status:p7t(p)},l));return a?a(p,q({mode:i},l),h):h}if(i==="edit"||i==="update"){var m=x.jsx(Af,q({ref:n,placeholder:f},l));return s?s(r,q({mode:i},l),m):m}return null};const bbe=te.forwardRef(h7t);var m7t=["radioType","renderFormItem","mode","render"],g7t=function(t,n){var r,i,a=t.radioType,o=t.renderFormItem,s=t.mode,l=t.render,c=Ht(t,m7t),u=d.useContext(zn.ConfigContext),f=u.getPrefixCls,p=f("pro-field-radio"),h=Uy(c),m=Te(h,3),g=m[0],v=m[1],y=m[2],w=d.useRef(),b=(r=Zi.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);d.useImperativeHandle(n,function(){return q(q({},w.current||{}),{},{fetchData:function(j){return y(j)}})},[y]);var C=Ci("FieldRadioRadio",function(O){return ne(ne(ne({},".".concat(p,"-error"),{span:{color:O.colorError}}),".".concat(p,"-warning"),{span:{color:O.colorWarning}}),".".concat(p,"-vertical"),ne({},"".concat(O.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),k=C.wrapSSR,S=C.hashId;if(g)return x.jsx(Xo,{size:"small"});if(s==="read"){var _=v!=null&&v.length?v==null?void 0:v.reduce(function(O,j){var I;return q(q({},O),{},ne({},(I=j.value)!==null&&I!==void 0?I:"",j.label))},{}):void 0,E=x.jsx(x.Fragment,{children:zy(c.text,Jf(c.valueEnum||_))});if(l){var $;return($=l(c.text,q({mode:s},c.fieldProps),E))!==null&&$!==void 0?$:null}return E}if(s==="edit"){var M,P=k(x.jsx(us.Group,q(q({ref:w,optionType:a},c.fieldProps),{},{className:Ee((M=c.fieldProps)===null||M===void 0?void 0:M.className,ne(ne({},"".concat(p,"-error"),(b==null?void 0:b.status)==="error"),"".concat(p,"-warning"),(b==null?void 0:b.status)==="warning"),S,"".concat(p,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(o){var R;return(R=o(c.text,q(q({mode:s},c.fieldProps),{},{options:v,loading:g}),P))!==null&&R!==void 0?R:null}return P}return null};const wee=te.forwardRef(g7t);var v7t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,f=t.plain,p=t.showTime,h=t.lightLabel,m=t.bordered,g=t.fieldProps,v=sa(),y=Array.isArray(r)?r:[],w=Te(y,2),b=w[0],C=w[1],k=te.useState(!1),S=Te(k,2),_=S[0],E=S[1],$=d.useCallback(function(A){if(typeof(g==null?void 0:g.format)=="function"){var N;return g==null||(N=g.format)===null||N===void 0?void 0:N.call(g,A)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),M=b?cr(b).format($(cr(b))):"",P=C?cr(C).format($(cr(C))):"";if(i==="read"){var R=x.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[x.jsx("div",{children:M||"-"}),x.jsx("div",{children:P||"-"})]});return l?l(r,q({mode:i},g),x.jsx("span",{children:R})):R}if(i==="edit"||i==="update"){var O=H4(g.value),j;if(a){var I;j=x.jsx(Qf,{label:o,onClick:function(){var N;g==null||(N=g.onOpenChange)===null||N===void 0||N.call(g,!0),E(!0)},style:O?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:O||_?x.jsx(xc.RangePicker,q(q(q({picker:c,showTime:p,format:s},Al(!1)),g),{},{placeholder:(I=g.placeholder)!==null&&I!==void 0?I:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var N;E(!1),g==null||(N=g.onClear)===null||N===void 0||N.call(g)},value:O,onOpenChange:function(N){var F;O&&E(N),g==null||(F=g.onOpenChange)===null||F===void 0||F.call(g,N)}})):null,allowClear:!1,bordered:m,ref:h,downIcon:O||_?!1:void 0})}else j=x.jsx(xc.RangePicker,q(q(q({ref:n,format:s,showTime:p,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},Al(f===void 0?!0:!f)),g),{},{value:O}));return u?u(r,q({mode:i},g),j):j}return null};const U1=te.forwardRef(v7t);var y7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=x.jsx(gZ,q(q({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return a?a(r,q({mode:i},s),x.jsx(x.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=x.jsx(gZ,q({allowHalf:!0,ref:n},s));return o?o(r,q({mode:i},s),c):c}return null};const b7t=te.forwardRef(y7t);function w7t(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var i=Math.floor(t/(3600*24)),a=Math.floor(t/3600%24),o=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),o>0&&(n="".concat(o,"分钟").concat(n)),a>0&&(n="".concat(a,"小时").concat(n)),i>0&&(n="".concat(i,"天").concat(n)),r&&(n+="前"),n}var x7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=sa(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var f=w7t(Number(r)),p=x.jsx("span",{ref:n,children:f});return a?a(r,q({mode:i},s),p):p}if(i==="edit"||i==="update"){var h=x.jsx(Af,q({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return o?o(r,q({mode:i},s),h):h}return null};const S7t=te.forwardRef(x7t);var C7t=["mode","render","renderFormItem","fieldProps","emptyText"],_7t=function(t,n){var r=t.mode,i=t.render,a=t.renderFormItem,o=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=Ht(t,C7t),u=d.useRef(),f=Uy(t),p=Te(f,3),h=p[0],m=p[1],g=p[2];if(d.useImperativeHandle(n,function(){return q(q({},u.current||{}),{},{fetchData:function(k){return g(k)}})},[g]),h)return x.jsx(Xo,{size:"small"});if(r==="read"){var v=m!=null&&m.length?m==null?void 0:m.reduce(function(C,k){var S;return q(q({},C),{},ne({},(S=k.value)!==null&&S!==void 0?S:"",k.label))},{}):void 0,y=x.jsx(x.Fragment,{children:zy(c.text,Jf(c.valueEnum||v))});if(i){var w;return(w=i(c.text,q({mode:r},o),x.jsx(x.Fragment,{children:y})))!==null&&w!==void 0?w:l}return y}if(r==="edit"||r==="update"){var b=x.jsx(Wge,q(q({ref:u},Dl(o||{},["allowClear"])),{},{options:m}));return a?a(c.text,q(q({mode:r},o),{},{options:m,loading:h}),b):b}return null};const k7t=te.forwardRef(_7t);var E7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=r;return a?a(r,q({mode:i},s),x.jsx(x.Fragment,{children:l})):x.jsx(x.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=x.jsx(a1e,q(q({ref:n},s),{},{style:q({minWidth:120},s==null?void 0:s.style)}));return o?o(r,q({mode:i},s),c):c}return null};const $7t=te.forwardRef(E7t);var M7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=sa(),f=d.useMemo(function(){var v,y;return r==null||"".concat(r).length<1?"-":r?(v=c==null?void 0:c.checkedChildren)!==null&&v!==void 0?v:u.getMessage("switch.open","打开"):(y=c==null?void 0:c.unCheckedChildren)!==null&&y!==void 0?y:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(i==="read")return a?a(r,q({mode:i},c),x.jsx(x.Fragment,{children:f})):f??"-";if(i==="edit"||i==="update"){var p,h=x.jsx(O6,q(q({ref:n,size:o?"small":void 0},Dl(c,["value"])),{},{checked:(p=c==null?void 0:c.checked)!==null&&p!==void 0?p:c==null?void 0:c.value}));if(o){var m=c.disabled,g=c.bordered;return x.jsx(Qf,{label:s,disabled:m,bordered:g,downIcon:!1,value:x.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return l?l(r,q({mode:i},c),h):h}return null};const T7t=te.forwardRef(M7t);var P7t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},f=u.autoFocus,p=u.prefix,h=p===void 0?"":p,m=u.suffix,g=m===void 0?"":m,v=sa(),y=d.useRef();if(d.useImperativeHandle(n,function(){return y.current},[]),d.useEffect(function(){if(f){var S;(S=y.current)===null||S===void 0||S.focus()}},[f]),i==="read"){var w=x.jsxs(x.Fragment,{children:[h,r??c,g]});if(a){var b;return(b=a(r,q({mode:i},s),w))!==null&&b!==void 0?b:c}return w}if(i==="edit"||i==="update"){var C=v.getMessage("tableForm.inputPlaceholder","请输入"),k=x.jsx(Ur,q({ref:y,placeholder:C,allowClear:!0},s));return o?o(r,q({mode:i},s),k):k}return null};const O7t=te.forwardRef(P7t);function wbe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r1),a}),Hy(e,_be(e),n),r&&(n=h_(n,k9t|E9t|$9t,w9t));for(var i=t.length;i--;)b9t(n,t[i]);return n}),T9t=function(t,n){var r=t.text,i=t.fieldProps,a=d.useContext(zn.ConfigContext),o=a.getPrefixCls,s=o("pro-field-readonly"),l="".concat(s,"-textarea"),c=Ci("TextArea",function(){return ne({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,f=c.hashId;return u(x.jsx("span",q(q({ref:n,className:Ee(f,s,l)},M9t(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const P9t=te.forwardRef(T9t);var O9t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=sa();if(i==="read"){var c=x.jsx(P9t,q(q({},t),{},{ref:n}));return a?a(r,q({mode:i},Dl(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var u=x.jsx(Ur.TextArea,q({ref:n,rows:3,onKeyPress:function(p){p.key==="Enter"&&p.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return o?o(r,q({mode:i},s),u):u}return null};const R9t=te.forwardRef(O9t);var I9t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,f=t.fieldProps,p=t.lightLabel,h=d.useState(!1),m=Te(h,2),g=m[0],v=m[1],y=sa(),w=(f==null?void 0:f.format)||s||"HH:mm:ss",b=cr.isDayjs(r)||typeof r=="number";if(i==="read"){var C=x.jsx("span",{ref:n,children:r?cr(r,b?void 0:w).format(w):"-"});return l?l(r,q({mode:i},f),x.jsx("span",{children:C})):C}if(i==="edit"||i==="update"){var k,S=f.disabled,_=f.value,E=H4(_,w);if(a){var $;k=x.jsx(Qf,{onClick:function(){var P;f==null||(P=f.onOpenChange)===null||P===void 0||P.call(f,!0),v(!0)},style:E?{paddingInlineEnd:0}:void 0,label:o,disabled:S,value:E||g?x.jsx(Cg,q(q(q({},Al(!1)),{},{format:s,ref:n},f),{},{placeholder:($=f.placeholder)!==null&&$!==void 0?$:y.getMessage("tableForm.selectPlaceholder","请选择"),value:E,onOpenChange:function(P){var R;v(P),f==null||(R=f.onOpenChange)===null||R===void 0||R.call(f,P)},open:g})):null,downIcon:E||g?!1:void 0,allowClear:!1,ref:p})}else k=x.jsx(xc.TimePicker,q(q(q({ref:n,format:s},Al(u===void 0?!0:!u)),f),{},{value:E}));return c?c(r,q({mode:i},f),k):k}return null},j9t=function(t,n){var r=t.text,i=t.light,a=t.label,o=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,f=t.plain,p=t.fieldProps,h=sa(),m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=(p==null?void 0:p.format)||l||"HH:mm:ss",b=Array.isArray(r)?r:[],C=Te(b,2),k=C[0],S=C[1],_=cr.isDayjs(k)||typeof k=="number",E=cr.isDayjs(S)||typeof S=="number",$=k?cr(k,_?void 0:w).format(w):"",M=S?cr(S,E?void 0:w).format(w):"";if(o==="read"){var P=x.jsxs("div",{ref:n,children:[x.jsx("div",{children:$||"-"}),x.jsx("div",{children:M||"-"})]});return c?c(r,q({mode:o},p),x.jsx("span",{children:P})):P}if(o==="edit"||o==="update"){var R=H4(p.value,w),O;if(i){var j=p.disabled,I=p.placeholder,A=I===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:I;O=x.jsx(Qf,{onClick:function(){var F;p==null||(F=p.onOpenChange)===null||F===void 0||F.call(p,!0),y(!0)},style:R?{paddingInlineEnd:0}:void 0,label:a,disabled:j,placeholder:A,value:R||v?x.jsx(Cg.RangePicker,q(q(q({},Al(!1)),{},{format:l,ref:n},p),{},{placeholder:A,value:R,onOpenChange:function(F){var K;y(F),p==null||(K=p.onOpenChange)===null||K===void 0||K.call(p,F)},open:v})):null,downIcon:R||v?!1:void 0,allowClear:!1,ref:s})}else O=x.jsx(Cg.RangePicker,q(q(q({ref:n,format:l},Al(f===void 0?!0:!f)),p),{},{value:R}));return u?u(r,q({mode:o},p),O):O}return null},N9t=te.forwardRef(j9t);const A9t=te.forwardRef(I9t);var D9t=["radioType","renderFormItem","mode","light","label","render"],F9t=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],L9t=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,a=t.light,o=t.label,s=t.render,l=Ht(t,D9t),c=d.useContext(zn.ConfigContext),u=c.getPrefixCls,f=u("pro-field-tree-select"),p=d.useRef(null),h=d.useState(!1),m=Te(h,2),g=m[0],v=m[1],y=l.fieldProps,w=y.onSearch,b=y.onClear,C=y.onChange,k=y.onBlur,S=y.showSearch,_=y.autoClearSearchValue;y.treeData;var E=y.fetchDataOnSearch,$=y.searchValue,M=Ht(y,F9t),P=sa(),R=Uy(q(q({},l),{},{defaultKeyWords:$})),O=Te(R,3),j=O[0],I=O[1],A=O[2],N=In(void 0,{onChange:w,value:$}),F=Te(N,2),K=F[0],L=F[1];d.useImperativeHandle(n,function(){return q(q({},p.current||{}),{},{fetchData:function(me){return A(me)}})});var V=d.useMemo(function(){if(i==="read"){var pe=(M==null?void 0:M.fieldNames)||{},me=pe.value,re=me===void 0?"value":me,fe=pe.label,ve=fe===void 0?"label":fe,$e=pe.children,Ce=$e===void 0?"children":$e,be=new Map,Se=function we(se){if(!(se!=null&&se.length))return be;for(var ye=se.length,Oe=0;Oe4&&(h+=7),p.add(h,n));return m.diff(g,"week")+1},s.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=s.startOf;s.startOf=function(c,u){var f=this.$utils(),p=!!f.u(u)||u;return f.p(c)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,u)}}})})(Pbe);var z9t=Pbe.exports;const H9t=ei(z9t);var Obe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var v=g&&g.toUpperCase();return m||p[g]||n[g]||p[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,w,b){return w||b.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(Obe);var U9t=Obe.exports;const W9t=ei(U9t);var V9t=["fieldProps"],q9t=["fieldProps"],K9t=["fieldProps"],G9t=["fieldProps"],Y9t=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],X9t=["placeholder"];cr.extend(bme);cr.extend(Cme);cr.extend(H9t);cr.extend(IB);cr.extend(vme);cr.extend(W9t);var Z9t=function(t,n,r){var i=V0e(r.fieldProps);return n.type==="progress"?x.jsx(bbe,q(q({},r),{},{text:t,fieldProps:q({status:n.status?n.status:void 0},i)})):n.type==="money"?x.jsx(vbe,q(q({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?x.jsx(ybe,q(q({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?x.jsx(mbe,q(q({},r),{},{text:t,width:n.width})):t},Q9t=function(t,n,r,i){var a=r.mode,o=a===void 0?"read":a,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&o==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var c=r.fieldProps,u=r.render;return u?u(t,q({mode:o},c),x.jsx(x.Fragment,{children:l})):x.jsx(x.Fragment,{children:l})}if(delete r.emptyText,Kt(n)==="object")return Z9t(t,n,r);var f=i&&i[n];if(f){if(delete r.ref,o==="read"){var p;return(p=f.render)===null||p===void 0?void 0:p.call(f,t,q(q({text:t},r),{},{mode:o||"read"}),x.jsx(x.Fragment,{children:t}))}if(o==="update"||o==="edit"){var h;return(h=f.renderFormItem)===null||h===void 0?void 0:h.call(f,t,q({text:t},r),x.jsx(x.Fragment,{children:t}))}}if(n==="money")return x.jsx(vbe,q(q({},r),{},{text:t}));if(n==="date")return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,g=Ht(r,V9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-W",showTime:!0,fieldProps:q({picker:"week"},m)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,y=Ht(r,q9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-MM",showTime:!0,fieldProps:q({picker:"month"},v)},y))})}if(n==="dateQuarterRange"){var w=r.fieldProps,b=Ht(r,K9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-Q",showTime:!0,fieldProps:q({picker:"quarter"},w)},b))})}if(n==="dateYearRange"){var C=r.fieldProps,k=Ht(r,G9t);return x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY",showTime:!0,fieldProps:q({picker:"year"},C)},k))})}return n==="dateMonth"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?x.jsx(U1,q({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?x.jsx($s,{isLight:r.light,children:x.jsx(H1,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?x.jsx($s,{isLight:r.light,children:x.jsx(U1,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?x.jsx($s,{isLight:r.light,children:x.jsx(A9t,q({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?x.jsx($s,{isLight:r.light,children:x.jsx(N9t,q({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?x.jsx(D$t,q({text:t},r)):n==="index"?x.jsx(gee,{children:t+1}):n==="indexBorder"?x.jsx(gee,{border:!0,children:t+1}):n==="progress"?x.jsx(bbe,q(q({},r),{},{text:t})):n==="percent"?x.jsx(ybe,q({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?x.jsx(Pi,{src:t,size:22,shape:"circle"}):n==="code"?x.jsx(nJ,q({text:t},r)):n==="jsonCode"?x.jsx(nJ,q({text:t,language:"json"},r)):n==="textarea"?x.jsx(R9t,q({text:t},r)):n==="digit"?x.jsx(O$t,q({text:t},r)):n==="digitRange"?x.jsx(I$t,q({text:t},r)):n==="second"?x.jsx(S7t,q({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?x.jsx($s,{isLight:r.light,children:x.jsx(evt,q({text:t},r))}):n==="checkbox"?x.jsx(svt,q({text:t},r)):n==="radio"?x.jsx(wee,q({text:t},r)):n==="radioButton"?x.jsx(wee,q({radioType:"button",text:t},r)):n==="rate"?x.jsx(b7t,q({text:t},r)):n==="slider"?x.jsx($7t,q({text:t},r)):n==="switch"?x.jsx(T7t,q({text:t},r)):n==="option"?x.jsx(X$t,q({text:t},r)):n==="password"?x.jsx(J$t,q({text:t},r)):n==="image"?x.jsx(mbe,q({text:t},r)):n==="cascader"?x.jsx(rvt,q({text:t},r)):n==="treeSelect"?x.jsx(B9t,q({text:t},r)):n==="color"?x.jsx($$t,q({text:t},r)):n==="segmented"?x.jsx(k7t,q({text:t},r)):x.jsx(O7t,q({text:t},r))},J9t=function(t,n){var r,i,a,o,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,f=t.mode,p=f===void 0?"read":f,h=t.onChange,m=t.renderFormItem,g=t.value,v=t.readonly,y=t.fieldProps,w=Ht(t,Y9t),b=d.useContext(hh),C=du(function(){for(var _,E=arguments.length,$=new Array(E),M=0;M1&&arguments[1]!==void 0?arguments[1]:{},n=[];return te.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(UN(r)):nh.isFragment(r)&&r.props?n=n.concat(UN(r.props.children,t)):n.push(r))}),n}var pH=te.createContext({}),cTt=["name","originDependencies","children","ignoreFormListField"],Rbe=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,a=t.children,o=t.ignoreFormListField,s=Ht(t,cTt),l=d.useContext(L0e),c=d.useContext(pH),u=d.useMemo(function(){return n.map(function(f){var p,h=[f];return!o&&c.name!==void 0&&(p=c.listName)!==null&&p!==void 0&&p.length&&h.unshift(c.listName),h.flat(1)})},[c.listName,c.name,o,n==null?void 0:n.toString()]);return x.jsx(Zi.Item,q(q({},s),{},{noStyle:!0,shouldUpdate:function(p,h,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var g;return(g=s.shouldUpdate)===null||g===void 0?void 0:g.call(s,p,h,m)}return u.some(function(v){return!Ym(Mm(p,v),Mm(h,v))})},children:function(p){for(var h={},m=0;m div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":ne(ne(ne(ne({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function yTt(e){return Ci("ProFormGroup",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[vTt(n)]})}var jbe=te.forwardRef(function(e,t){var n=te.useContext(s1),r=n.groupProps,i=q(q({},r),e),a=i.children,o=i.collapsible,s=i.defaultCollapsed,l=i.style,c=i.labelLayout,u=i.title,f=u===void 0?e.label:u,p=i.tooltip,h=i.align,m=h===void 0?"start":h,g=i.direction,v=i.size,y=v===void 0?32:v,w=i.titleStyle,b=i.titleRender,C=i.spaceProps,k=i.extra,S=i.autoFocus,_=In(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),E=Te(_,2),$=E[0],M=E[1],P=d.useContext(zn.ConfigContext),R=P.getPrefixCls,O=Bz(e),j=O.ColWrapper,I=O.RowWrapper,A=R("pro-form-group"),N=yTt(A),F=N.wrapSSR,K=N.hashId,L=o&&x.jsx(bc,{style:{marginInlineEnd:8},rotate:$?void 0:90}),V=x.jsx(Fht,{label:L?x.jsxs("div",{children:[L,f]}):f,tooltip:p}),B=d.useCallback(function(X){var ae=X.children;return x.jsx(Xr,q(q({},C),{},{className:Ee("".concat(A,"-container ").concat(K),C==null?void 0:C.className),size:y,align:m,direction:g,style:q({rowGap:0},C==null?void 0:C.style),children:ae}))},[m,A,g,K,y,C]),U=b?b(V,e):V,Y=d.useMemo(function(){var X=[],ae=te.Children.toArray(a).map(function(oe,le){var ce;return te.isValidElement(oe)&&oe!==null&&oe!==void 0&&(ce=oe.props)!==null&&ce!==void 0&&ce.hidden?(X.push(oe),null):le===0&&te.isValidElement(oe)&&S?te.cloneElement(oe,q(q({},oe.props),{},{autoFocus:S})):oe});return[x.jsx(I,{Wrapper:B,children:ae},"children"),X.length>0?x.jsx("div",{style:{display:"none"},children:X}):null]},[a,I,B,S]),ee=Te(Y,2),ie=ee[0],Z=ee[1];return F(x.jsx(j,{children:x.jsxs("div",{className:Ee(A,K,ne({},"".concat(A,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[Z,(f||p||k)&&x.jsx("div",{className:"".concat(A,"-title ").concat(K).trim(),style:w,onClick:function(){M(!$)},children:k?x.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[U,x.jsx("span",{onClick:function(ae){return ae.stopPropagation()},children:k})]}):U}),x.jsx("div",{style:{display:o&&$?"none":void 0},children:ie})]})}))});jbe.displayName="ProForm-Group";function Dee(e){return e instanceof HTMLElement||e instanceof SVGElement}function bTt(e){return e&&Kt(e)==="object"&&Dee(e.nativeElement)?e.nativeElement:Dee(e)?e:null}function qT(e){var t=bTt(e);if(t)return t;if(e instanceof te.Component){var n;return(n=ig.findDOMNode)===null||n===void 0?void 0:n.call(ig,e)}return null}var WN=d.createContext(null);function wTt(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),a=d.useContext(WN),o=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(s,l,c)},[n,a]);return d.createElement(WN.Provider,{value:o},t)}var Wp=new Map;function xTt(e){e.forEach(function(t){var n,r=t.target;(n=Wp.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Nbe=new Rde(xTt);function STt(e,t){Wp.has(e)||(Wp.set(e,new Set),Nbe.observe(e)),Wp.get(e).add(t)}function CTt(e,t){Wp.has(e)&&(Wp.get(e).delete(t),Wp.get(e).size||(Nbe.unobserve(e),Wp.delete(e)))}var _Tt=function(e){$o(n,e);var t=ns(n);function n(){return Ar(this,n),t.apply(this,arguments)}return Dr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function kTt(e,t){var n=e.children,r=e.disabled,i=d.useRef(null),a=d.useRef(null),o=d.useContext(WN),s=typeof n=="function",l=s?n(i):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(l)&&zft(l),f=u?l.ref:null,p=Bft(f,i),h=function(){var y;return qT(i.current)||(i.current&&Kt(i.current)==="object"?qT((y=i.current)===null||y===void 0?void 0:y.nativeElement):null)||qT(a.current)};d.useImperativeHandle(t,function(){return h()});var m=d.useRef(e);m.current=e;var g=d.useCallback(function(v){var y=m.current,w=y.onResize,b=y.data,C=v.getBoundingClientRect(),k=C.width,S=C.height,_=v.offsetWidth,E=v.offsetHeight,$=Math.floor(k),M=Math.floor(S);if(c.current.width!==$||c.current.height!==M||c.current.offsetWidth!==_||c.current.offsetHeight!==E){var P={width:$,height:M,offsetWidth:_,offsetHeight:E};c.current=P;var R=_===Math.round(k)?k:_,O=E===Math.round(S)?S:E,j=q(q({},P),{},{offsetWidth:R,offsetHeight:O});o==null||o(j,v,b),w&&Promise.resolve().then(function(){w(j,v)})}},[]);return d.useEffect(function(){var v=h();return v&&!r&&STt(v,g),function(){return CTt(v,g)}},[i.current,r]),d.createElement(_Tt,{ref:a},u?d.cloneElement(l,{ref:p}):l)}var ETt=d.forwardRef(kTt),$Tt="rc-observer-key";function MTt(e,t){var n=e.children,r=typeof n=="function"?[n]:UN(n);return r.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat($Tt,"-").concat(a);return d.createElement(ETt,tt({},e,{key:o,ref:a===0?t:void 0}),i)})}var Abe=d.forwardRef(MTt);Abe.Collection=wTt;var TTt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],PTt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],OTt=function(t,n){var r=t.fieldProps,i=t.children,a=t.params,o=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,f=t.options,p=Ht(t,TTt),h=d.useContext(s1);return x.jsx(Sc,q(q({valueEnum:z0(l),request:c,params:a,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({options:f,mode:s,showSearch:u,getPopupContainer:h.getPopupContainer},r),ref:n,proFieldProps:o},p),{},{children:i}))},RTt=te.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,i=e.params,a=e.proFieldProps,o=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=Ht(e,PTt),f=q({options:c,mode:o||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),p=d.useContext(s1);return x.jsx(Sc,q(q({valueEnum:z0(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({getPopupContainer:p.getPopupContainer},f),ref:t,proFieldProps:a},u),{},{children:r}))}),ITt=te.forwardRef(OTt),jTt=RTt,ro=ITt;ro.SearchSelect=jTt;ro.displayName="ProFormComponent";var NTt=function(t){var n=sa(),r=Zi.useFormInstance();if(t.render===!1)return null;var i=t.onSubmit,a=t.render,o=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,f=wd.useToken(),p=f.token,h=function(){r.submit(),i==null||i()},m=function(){r.resetFields(),o==null||o()},g=l.submitText,v=g===void 0?n.getMessage("tableForm.submit","提交"):g,y=l.resetText,w=y===void 0?n.getMessage("tableForm.reset","重置"):y,b=[];u!==!1&&b.push(d.createElement(Yt,q(q({},Dl(u,["preventDefault"])),{},{key:"rest",onClick:function(S){var _;u!=null&&u.preventDefault||m(),u==null||(_=u.onClick)===null||_===void 0||_.call(u,S)}}),w)),c!==!1&&b.push(d.createElement(Yt,q(q({type:"primary"},Dl(c||{},["preventDefault"])),{},{key:"submit",onClick:function(S){var _;c!=null&&c.preventDefault||h(),c==null||(_=c.onClick)===null||_===void 0||_.call(c,S)}}),v));var C=a?a(q(q({},t),{},{form:r,submit:h,reset:m}),b):b;return C?Array.isArray(C)?(C==null?void 0:C.length)<1?null:(C==null?void 0:C.length)===1?C[0]:x.jsx("div",{style:{display:"flex",gap:p.marginXS,alignItems:"center"},children:C}):C:null},ATt=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],VN=te.forwardRef(function(e,t){var n=e.fieldProps,r=e.unCheckedChildren,i=e.checkedChildren,a=e.proFieldProps,o=Ht(e,ATt);return x.jsx(Sc,q({valueType:"switch",fieldProps:q({unCheckedChildren:r,checkedChildren:i},n),ref:t,valuePropName:"checked",proFieldProps:a,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},o))}),DTt=["fieldProps","proFieldProps"],FTt=["fieldProps","proFieldProps"],e5="text",LTt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Ht(t,DTt);return x.jsx(Sc,q({valueType:e5,fieldProps:n,filedConfig:{valueType:e5},proFieldProps:r},i))},BTt=function(t){var n=In(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=Te(n,2),i=r[0],a=r[1];return x.jsx(Zi.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return x.jsx(wc,q(q({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return a(f)},content:x.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?x.jsx("div",{style:{marginTop:10},children:x.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},zTt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=Ht(t,FTt),a=d.useState(!1),o=Te(a,2),s=o[0],l=o[1];return n!=null&&n.statusRender&&i.name?x.jsx(BTt,{name:i.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:x.jsx("div",{children:x.jsx(Sc,q({valueType:"password",fieldProps:q(q({},Dl(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,u),l(!1)},onClick:function(u){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:e5}},i))})}):x.jsx(Sc,q({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:e5}},i))},Or=LTt;Or.Password=zTt;Or.displayName="ProFormComponent";var HTt=["fieldProps","proFieldProps"],UTt=function(t,n){var r=t.fieldProps,i=t.proFieldProps,a=Ht(t,HTt);return x.jsx(Sc,q({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:i},a))};const Cd=te.forwardRef(UTt);var WTt=["fieldProps","request","params","proFieldProps"],VTt=function(t,n){var r=t.fieldProps,i=t.request,a=t.params,o=t.proFieldProps,s=Ht(t,WTt);return x.jsx(Sc,q({valueType:"treeSelect",fieldProps:r,ref:n,request:i,params:a,filedConfig:{customLightMode:!0},proFieldProps:o},s))},qTt=te.forwardRef(VTt),KTt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],GTt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],m_=function(t,n,r){return t===!0?n:z0(t,n,r)},Fee=function(t){return!t||Array.isArray(t)?t:[t]};function YTt(e){var t,n=e.children,r=e.contentRender,i=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,o=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,f=u===void 0?{}:u,p=e.syncToUrl,h=e.onUrlSearchChange,m=e.onReset,g=e.omitNil,v=g===void 0?!0:g;e.isKeyPressSubmit;var y=e.autoFocusFirstInput,w=y===void 0?!0:y,b=e.grid,C=e.rowProps,k=e.colProps,S=Ht(e,KTt),_=Zi.useFormInstance(),E=(zn==null||(t=zn.useConfig)===null||t===void 0?void 0:t.call(zn))||{componentSize:"middle"},$=E.componentSize,M=d.useRef(l||_),P=Bz({grid:b,rowProps:C}),R=P.RowWrapper,O=du(function(){return _}),j=d.useMemo(function(){return{getFieldsFormatValue:function(V){var B;return a((B=O())===null||B===void 0?void 0:B.getFieldsValue(V),v)},getFieldFormatValue:function(){var V,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],U=Fee(B);if(!U)throw new Error("nameList is require");var Y=(V=O())===null||V===void 0?void 0:V.getFieldValue(U),ee=U?B0({},U,Y):Y;return Mm(a(ee,v,U),U)},getFieldFormatValueObject:function(V){var B,U=Fee(V),Y=(B=O())===null||B===void 0?void 0:B.getFieldValue(U),ee=U?B0({},U,Y):Y;return a(ee,v,U)},validateFieldsReturnFormatValue:function(){var L=pa(hr().mark(function B(U){var Y,ee,ie;return hr().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(!Array.isArray(U)&&U)){X.next=2;break}throw new Error("nameList must be array");case 2:return X.next=4,(Y=O())===null||Y===void 0?void 0:Y.validateFields(U);case 4:return ee=X.sent,ie=a(ee,v),X.abrupt("return",ie||{});case 7:case"end":return X.stop()}},B)}));function V(B){return L.apply(this,arguments)}return V}()}},[v,a]),I=d.useMemo(function(){return te.Children.toArray(n).map(function(L,V){return V===0&&te.isValidElement(L)&&w?te.cloneElement(L,q(q({},L.props),{},{autoFocus:w})):L})},[w,n]),A=d.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),N=d.useMemo(function(){if(i!==!1)return x.jsx(NTt,q(q({},A),{},{onReset:function(){var V,B,U=a((V=M.current)===null||V===void 0?void 0:V.getFieldsValue(),v);if(A==null||(B=A.onReset)===null||B===void 0||B.call(A,U),m==null||m(U),p){var Y,ee=Object.keys(a((Y=M.current)===null||Y===void 0?void 0:Y.getFieldsValue(),!1)).reduce(function(ie,Z){return q(q({},ie),{},ne({},Z,U[Z]||void 0))},f);h(m_(p,ee||{},"set"))}},submitButtonProps:q({loading:c},A.submitButtonProps)}),"submitter")},[i,A,c,a,v,m,p,f,h]),F=d.useMemo(function(){var L=b?x.jsx(R,{children:I}):I;return r?r(L,N,M.current):L},[b,R,I,r,N]),K=Qht(e.initialValues);return d.useEffect(function(){if(!(p||!e.initialValues||!K||S.request)){var L=Ym(e.initialValues,K);zk(L,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? : null "),zk(L,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),d.useImperativeHandle(o,function(){return q(q({},M.current),j)},[j,M.current]),d.useEffect(function(){var L,V,B=a((L=M.current)===null||L===void 0||(V=L.getFieldsValue)===null||V===void 0?void 0:V.call(L,!0),v);s==null||s(B,q(q({},M.current),j))},[]),x.jsx(L0e.Provider,{value:q(q({},j),{},{formRef:M}),children:x.jsx(zn,{componentSize:S.size||$,children:x.jsxs(hye.Provider,{value:{grid:b,colProps:k},children:[S.component!==!1&&x.jsx("input",{type:"text",style:{display:"none"}}),F]})})})}var Lee=0;function XTt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,i=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,o=a===void 0?!1:a,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,f=e.formItemProps,p=e.groupProps,h=e.dateFormatter,m=h===void 0?"string":h,g=e.formRef;e.onInit;var v=e.form,y=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var w=e.omitNil,b=w===void 0?!0:w,C=e.request,k=e.params,S=e.initialValues,_=e.formKey,E=_===void 0?Lee:_;e.readonly;var $=e.onLoadingChange,M=e.loading,P=Ht(e,GTt),R=d.useRef({}),O=In(!1,{onChange:$,value:M}),j=Te(O,2),I=j[0],A=j[1],N=O1t({},{disabled:!r}),F=Te(N,2),K=F[0],L=F[1],V=d.useRef(L6());d.useEffect(function(){Lee+=0},[]);var B=Zht({request:C,params:k,proFieldKey:E}),U=Te(B,1),Y=U[0],ee=d.useContext(zn.ConfigContext),ie=ee.getPrefixCls,Z=ie("pro-form"),X=Ci("ProForm",function(Se){return ne({},".".concat(Z),ne({},"> div:not(".concat(Se.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ae=X.wrapSSR,oe=X.hashId,le=d.useState(function(){return r?m_(r,K,"get"):{}}),ce=Te(le,2),pe=ce[0],me=ce[1],re=d.useRef({}),fe=d.useRef({}),ve=du(function(Se,we,se){return $1t(Hht(Se,m,fe.current,we,se),re.current,we)});d.useEffect(function(){l||me({})},[l]);var $e=du(function(){return q(q({},K),n)});d.useEffect(function(){r&&L(m_(r,$e(),"set"))},[n,$e,r]);var Ce=d.useMemo(function(){if(!(typeof window>"u")&&y&&["DrawerForm"].includes(y))return function(Se){return Se.parentNode||document.body}},[y]),be=du(pa(hr().mark(function Se(){var we,se,ye,Oe,z,H,G;return hr().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(P.onFinish){xe.next=2;break}return xe.abrupt("return");case 2:if(!I){xe.next=4;break}return xe.abrupt("return");case 4:return xe.prev=4,ye=R==null||(we=R.current)===null||we===void 0||(se=we.getFieldsFormatValue)===null||se===void 0?void 0:se.call(we),Oe=P.onFinish(ye),Oe instanceof Promise&&A(!0),xe.next=10,Oe;case 10:r&&(G=Object.keys(R==null||(z=R.current)===null||z===void 0||(H=z.getFieldsFormatValue)===null||H===void 0?void 0:H.call(z,void 0,!1)).reduce(function(he,Ue){var We;return q(q({},he),{},ne({},Ue,(We=ye[Ue])!==null&&We!==void 0?We:void 0))},n),Object.keys(K).forEach(function(he){G[he]!==!1&&G[he]!==0&&!G[he]&&(G[he]=void 0)}),L(m_(r,G,"set"))),A(!1),xe.next=18;break;case 14:xe.prev=14,xe.t0=xe.catch(4),console.log(xe.t0),A(!1);case 18:case"end":return xe.stop()}},Se,null,[[4,14]])})));return d.useImperativeHandle(g,function(){return R.current},[!Y]),!Y&&e.request?x.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:x.jsx(Xo,{})}):ae(x.jsx(dH.Provider,{value:{mode:e.readonly?"read":"edit"},children:x.jsx(c$,{needDeps:!0,children:x.jsx(s1.Provider,{value:{formRef:R,fieldProps:c,proFieldProps:u,formItemProps:f,groupProps:p,formComponentType:y,getPopupContainer:Ce,formKey:V.current,setFieldValueType:function(we,se){var ye=se.valueType,Oe=ye===void 0?"text":ye,z=se.dateFormat,H=se.transform;Array.isArray(we)&&(re.current=B0(re.current,we,H),fe.current=B0(fe.current,we,{valueType:Oe,dateFormat:z}))}},children:x.jsx(pH.Provider,{value:{},children:x.jsx(Zi,q(q({onKeyPress:function(we){if(i&&we.key==="Enter"){var se;(se=R.current)===null||se===void 0||se.submit()}},autoComplete:"off",form:v},Dl(P,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(we){R.current&&(R.current.nativeElement=we==null?void 0:we.nativeElement)},initialValues:o?q(q(q({},S),Y),pe):q(q(q({},pe),S),Y),onValuesChange:function(we,se){var ye;P==null||(ye=P.onValuesChange)===null||ye===void 0||ye.call(P,ve(we,!!b),ve(se,!!b))},className:Ee(e.className,Z,oe),onFinish:be,children:x.jsx(YTt,q(q({transformKey:ve,autoComplete:"off",loading:I,onUrlSearchChange:L},e),{},{formRef:R,initialValues:q(q({},S),Y)}))}))})})})}))}var ZTt=function(t){return ne(ne({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),ne({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function QTt(e){return Ci("LightWrapper",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[ZTt(n)]})}var JTt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],ePt=function(t){var n=t.label,r=t.size,i=t.disabled,a=t.onChange,o=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,f=t.labelFormatter,p=t.bordered,h=t.footerRender,m=t.allowClear,g=t.otherFieldProps,v=t.valueType,y=t.placement,w=Ht(t,JTt),b=d.useContext(zn.ConfigContext),C=b.getPrefixCls,k=C("pro-field-light-wrapper"),S=QTt(k),_=S.wrapSSR,E=S.hashId,$=d.useState(t[c]),M=Te($,2),P=M[0],R=M[1],O=In(!1),j=Te(O,2),I=j[0],A=j[1],N=function(){for(var V,B=arguments.length,U=new Array(B),Y=0;Yn.length)&&(r=n.length);for(var i=0,a=Array(r);i0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):fPt}function O$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function pPt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function vH(e){return Array.from((t5.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function yH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,uPt.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=pPt(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(Hee,o),s&&a&&l.setAttribute(Uee,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=O$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||vH(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Hee)))return!1;var h=Number(p.getAttribute(Uee)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function e2e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=O$(t);return(t.styles||vH(n)).find(function(r){return r.getAttribute(Jbe(t))===e})}function hPt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e2e(e,t);if(n){var r=O$(t);r.removeChild(n)}}function mPt(e,t){var n=t5.get(e);if(!n||!(0,dPt.default)(document,n)){var r=yH("",t),i=r.parentNode;t5.set(e,i),e.removeChild(r)}}function gPt(){t5.clear()}function vPt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=O$(n),i=vH(r),a=(0,zee.default)((0,zee.default)({},n),{},{styles:i});mPt(r,a);var o=e2e(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=yH(e,a);return u.setAttribute(Jbe(a),t),u}var R$={};Object.defineProperty(R$,"__esModule",{value:!0});R$.getShadowRoot=yPt;R$.inShadow=n2e;function t2e(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function n2e(e){return t2e(e)instanceof ShadowRoot}function yPt(e){return n2e(e)?t2e(e):null}var Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.call=bH;Ys.default=void 0;Ys.note=i2e;Ys.noteOnce=o2e;Ys.preMessage=void 0;Ys.resetWarned=a2e;Ys.warning=r2e;Ys.warningOnce=rx;var qN={},bPt=Ys.preMessage=function(t){};function r2e(e,t){}function i2e(e,t){}function a2e(){qN={}}function bH(e,t,n){!t&&!qN[n]&&(e(!1,n),qN[n]=!0)}function rx(e,t){bH(r2e,e,t)}function o2e(e,t){bH(i2e,e,t)}rx.preMessage=bPt;rx.resetWarned=a2e;rx.noteOnce=o2e;Ys.default=rx;var wPt=$a.default,I$=br.default;Object.defineProperty(Zo,"__esModule",{value:!0});Zo.generate=GN;Zo.getSecondaryColor=TPt;Zo.iconStyles=void 0;Zo.isIconDefinition=MPt;Zo.normalizeAttrs=KN;Zo.normalizeTwoToneColors=PPt;Zo.useInsertStyles=Zo.svgBaseProps=void 0;Zo.warning=$Pt;var KT=I$(Ng),Wee=I$(jg),xPt=tx,SPt=u1,CPt=R$,_Pt=I$(Ys),n5=wPt(d),kPt=I$(Qy);function EPt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function $Pt(e,t){(0,_Pt.default)(e,"[@ant-design/icons] ".concat(t))}function MPt(e){return(0,Wee.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,Wee.default)(e.icon)==="object"||typeof e.icon=="function")}function KN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[EPt(n)]=r}return t},{})}function GN(e,t,n){return n?n5.default.createElement(e.tag,(0,KT.default)((0,KT.default)({key:t},KN(e.attrs)),n),(e.children||[]).map(function(r,i){return GN(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):n5.default.createElement(e.tag,(0,KT.default)({key:t},KN(e.attrs)),(e.children||[]).map(function(r,i){return GN(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function TPt(e){return(0,xPt.generate)(e)[0]}function PPt(e){return e?Array.isArray(e)?e:[e]:[]}Zo.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var OPt=Zo.iconStyles=` .anticon { display: inline-flex; align-items: center; @@ -601,16 +601,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`;Qo.useInsertStyles=function(t){var n=(0,r5.useContext)(EPt.default),r=n.csp,i=n.prefixCls,a=n.layer,o=RPt;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { +`;Zo.useInsertStyles=function(t){var n=(0,n5.useContext)(kPt.default),r=n.csp,i=n.prefixCls,a=n.layer,o=OPt;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { `).concat(o,` -}`)),(0,r5.useEffect)(function(){var s=t.current,l=(0,_Pt.getShadowRoot)(s);(0,CPt.updateCSS)(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])};var l2e=br.default,IPt=$a.default;Object.defineProperty(rx,"__esModule",{value:!0});rx.default=void 0;var jPt=l2e(Jbe),T2=l2e(Ng),NPt=IPt(d),rm=Qo,APt=["icon","className","onClick","style","primaryColor","secondaryColor"],rw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function DPt(e){var t=e.primaryColor,n=e.secondaryColor;rw.primaryColor=t,rw.secondaryColor=n||(0,rm.getSecondaryColor)(t),rw.calculated=!!n}function FPt(){return(0,T2.default)({},rw)}var j$=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=(0,jPt.default)(t,APt),c=NPt.useRef(),u=rw;if(o&&(u={primaryColor:o,secondaryColor:s||(0,rm.getSecondaryColor)(o)}),(0,rm.useInsertStyles)(c),(0,rm.warning)((0,rm.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,rm.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,T2.default)((0,T2.default)({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),(0,rm.generate)(f.icon,"svg-".concat(f.name),(0,T2.default)((0,T2.default)({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};j$.displayName="IconReact";j$.getTwoToneColors=FPt;j$.setTwoToneColors=DPt;rx.default=j$;var N$={},c2e=br.default;Object.defineProperty(N$,"__esModule",{value:!0});N$.getTwoToneColor=HPt;N$.setTwoToneColor=zPt;var LPt=c2e(Xbe),u2e=c2e(rx),BPt=Qo;function zPt(e){var t=(0,BPt.normalizeTwoToneColors)(e),n=(0,LPt.default)(t,2),r=n[0],i=n[1];return u2e.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function HPt(){var e=u2e.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var d1=br.default,UPt=$a.default;Object.defineProperty(Zy,"__esModule",{value:!0});Zy.default=void 0;var WPt=d1(T$),VPt=d1(Xbe),Vee=d1(Gse),qPt=d1(Jbe),KS=UPt(d),KPt=d1(TE),GPt=nx,YPt=d1(Qy),XPt=d1(rx),wH=N$,ZPt=Qo,QPt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,wH.setTwoToneColor)(GPt.blue.primary);var A$=KS.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,qPt.default)(e,QPt),u=KS.useContext(YPt.default),f=u.prefixCls,p=f===void 0?"anticon":f,h=u.rootClassName,m=(0,KPt.default)(h,p,(0,Vee.default)((0,Vee.default)({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=(0,ZPt.normalizeTwoToneColors)(l),w=(0,VPt.default)(y,2),b=w[0],C=w[1];return KS.createElement("span",(0,WPt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),KS.createElement(XPt.default,{icon:r,primaryColor:b,secondaryColor:C,style:v}))});A$.displayName="AntdIcon";A$.getTwoToneColor=wH.getTwoToneColor;A$.setTwoToneColor=wH.setTwoToneColor;Zy.default=A$;var JPt=["isLoading","pastDelay","timedOut","error","retry"],eOt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=Ht(t,JPt);return x.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:x.jsx(Zo,q({size:"large"},n))})},tOt=function(t){return ne({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function nOt(e){return Ci("ProLayoutFooter",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[tOt(n)]})}var rOt=function(t){var n=t.className,r=t.prefixCls,i=t.links,a=t.copyright,o=t.style,s=d.useContext(zn.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=nOt(l),u=c.wrapSSR,f=c.hashId;return(i==null||i===!1||Array.isArray(i)&&i.length===0)&&(a==null||a===!1)?null:u(x.jsxs("div",{className:Ee(l,f,n),style:o,children:[i&&x.jsx("div",{className:"".concat(l,"-list ").concat(f).trim(),children:i.map(function(p){return x.jsx("a",{className:"".concat(l,"-list-link ").concat(f).trim(),title:p.key,target:p.blankTarget?"_blank":"_self",href:p.href,rel:"noreferrer",children:p.title},p.key)})}),a&&x.jsx("div",{className:"".concat(l,"-copyright ").concat(f).trim(),children:a})]}))},iOt=Qn.Footer,aOt=function(t){var n=t.links,r=t.copyright,i=t.style,a=t.className,o=t.prefixCls;return x.jsx(iOt,{className:a,style:q({padding:0},i),children:x.jsx(rOt,{links:n,prefixCls:o,copyright:r===!1?null:x.jsxs(d.Fragment,{children:[x.jsx(brt,{})," ",r]})})})},qee=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var i=n.concat(e(r.children||r.routes)||[]);return i}return n},[])};function D$(e){return e.map(function(t){var n=t.children||[],r=q({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(i){return i&&i.name&&!i.hideInMenu}))return q(q({},t),{},{children:D$(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var oOt=function(){return x.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:x.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},sOt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,a=t.itemClick;return x.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:x.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(o,s){var l;return o!=null&&(l=o.children)!==null&&l!==void 0&&l.length?x.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[x.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:o.title}),x.jsx(e,{hashId:i,itemClick:a,appList:o==null?void 0:o.children,baseClassName:r})]},s):x.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),a==null||a(o)},children:x.jsxs("a",{href:a?void 0:o.url,target:o.target,rel:"noreferrer",children:[xH(o.icon),x.jsxs("div",{children:[x.jsx("div",{children:o.title}),o.desc?x.jsx("span",{children:o.desc}):null]})]})},s)})})})},lOt=function(t,n){if(t&&typeof t=="string"&&Rz(t))return x.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return x.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return x.jsx("div",{id:"avatarLogo",children:r})}return t},cOt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,a=t.itemClick;return x.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:x.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(o,s){var l;return o!=null&&(l=o.children)!==null&&l!==void 0&&l.length?x.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[x.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:o.title}),x.jsx(e,{hashId:i,itemClick:a,appList:o==null?void 0:o.children,baseClassName:r})]},s):x.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),a==null||a(o)},children:x.jsxs("a",{href:a?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[lOt(o.icon,o.title),x.jsx("div",{children:x.jsx("div",{children:o.title})})]})},s)})})})},uOt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":jT==null?void 0:jT(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},dOt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},fOt=function(t){var n,r,i,a,o;return ne({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover},"&-active":{color:(a=t.layout)===null||a===void 0?void 0:a.colorTextAppListIconHover,backgroundColor:(o=t.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":ne({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":dOt(t),"&-default":uOt(t)})};function pOt(e){return Ci("AppsLogoComponents",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[fOt(n)]})}var xH=function(t){return typeof t=="string"?x.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},SH=function(t){var n,r=t.appList,i=t.appListRender,a=t.prefixCls,o=a===void 0?"ant-pro":a,s=t.onItemClick,l=te.useRef(null),c=te.useRef(null),u="".concat(o,"-layout-apps"),f=pOt(u),p=f.wrapSSR,h=f.hashId,m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=function(_){s==null||s(_,c)},b=d.useMemo(function(){var S=r==null?void 0:r.some(function(_){return!(_!=null&&_.desc)});return S?x.jsx(cOt,{hashId:h,appList:r,itemClick:s?w:void 0,baseClassName:"".concat(u,"-simple")}):x.jsx(sOt,{hashId:h,appList:r,itemClick:s?w:void 0,baseClassName:"".concat(u,"-default")})},[r,u,h]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var C=i?i(t==null?void 0:t.appList,b):b,k=u$(void 0,function(S){return y(S)});return p(x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:l,onClick:function(_){_.stopPropagation(),_.preventDefault()}}),x.jsx(wc,q(q({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},k),{},{overlayClassName:"".concat(u,"-popover ").concat(h).trim(),content:C,getPopupContainer:function(){return l.current||document.body},children:x.jsx("span",{ref:c,onClick:function(_){_.stopPropagation()},className:Ee("".concat(u,"-icon"),h,ne({},"".concat(u,"-icon-active"),v)),children:x.jsx(oOt,{})})}))]}))};function hOt(){return x.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:x.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var mOt=function(t){var n,r,i;return ne({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function gOt(e){return Ci("SiderMenuCollapsedIcon",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[mOt(n)]})}var vOt=["isMobile","collapsed"],yOt=function(t){var n=t.isMobile,r=t.collapsed,i=Ht(t,vOt),a=gOt(t.className),o=a.wrapSSR,s=a.hashId;return n&&r?null:o(x.jsx("div",q(q({},i),{},{className:Ee(t.className,s,ne(ne({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:x.jsx(hOt,{})})))},d2e={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},bOt=function(t,n){var r,i,a=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(i=t.layout)===null||i===void 0?void 0:i.sider;return q(q(ne({},"".concat(t.componentCls),ne(ne(ne(ne(ne(ne(ne(ne(ne({background:"transparent",color:a==null?void 0:a.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),ne({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",ne(ne(ne({},"".concat(t.antCls,`-menu-item, +}`)),(0,n5.useEffect)(function(){var s=t.current,l=(0,CPt.getShadowRoot)(s);(0,SPt.updateCSS)(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])};var s2e=br.default,RPt=$a.default;Object.defineProperty(nx,"__esModule",{value:!0});nx.default=void 0;var IPt=s2e(Qbe),T2=s2e(Ng),jPt=RPt(d),rm=Zo,NPt=["icon","className","onClick","style","primaryColor","secondaryColor"],rw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function APt(e){var t=e.primaryColor,n=e.secondaryColor;rw.primaryColor=t,rw.secondaryColor=n||(0,rm.getSecondaryColor)(t),rw.calculated=!!n}function DPt(){return(0,T2.default)({},rw)}var j$=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=(0,IPt.default)(t,NPt),c=jPt.useRef(),u=rw;if(o&&(u={primaryColor:o,secondaryColor:s||(0,rm.getSecondaryColor)(o)}),(0,rm.useInsertStyles)(c),(0,rm.warning)((0,rm.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,rm.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,T2.default)((0,T2.default)({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),(0,rm.generate)(f.icon,"svg-".concat(f.name),(0,T2.default)((0,T2.default)({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};j$.displayName="IconReact";j$.getTwoToneColors=DPt;j$.setTwoToneColors=APt;nx.default=j$;var N$={},l2e=br.default;Object.defineProperty(N$,"__esModule",{value:!0});N$.getTwoToneColor=zPt;N$.setTwoToneColor=BPt;var FPt=l2e(Ybe),c2e=l2e(nx),LPt=Zo;function BPt(e){var t=(0,LPt.normalizeTwoToneColors)(e),n=(0,FPt.default)(t,2),r=n[0],i=n[1];return c2e.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function zPt(){var e=c2e.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var d1=br.default,HPt=$a.default;Object.defineProperty(Zy,"__esModule",{value:!0});Zy.default=void 0;var UPt=d1(T$),WPt=d1(Ybe),Vee=d1(Kse),VPt=d1(Qbe),qS=HPt(d),qPt=d1(TE),KPt=tx,GPt=d1(Qy),YPt=d1(nx),wH=N$,XPt=Zo,ZPt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,wH.setTwoToneColor)(KPt.blue.primary);var A$=qS.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,VPt.default)(e,ZPt),u=qS.useContext(GPt.default),f=u.prefixCls,p=f===void 0?"anticon":f,h=u.rootClassName,m=(0,qPt.default)(h,p,(0,Vee.default)((0,Vee.default)({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=(0,XPt.normalizeTwoToneColors)(l),w=(0,WPt.default)(y,2),b=w[0],C=w[1];return qS.createElement("span",(0,UPt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),qS.createElement(YPt.default,{icon:r,primaryColor:b,secondaryColor:C,style:v}))});A$.displayName="AntdIcon";A$.getTwoToneColor=wH.getTwoToneColor;A$.setTwoToneColor=wH.setTwoToneColor;Zy.default=A$;var QPt=["isLoading","pastDelay","timedOut","error","retry"],JPt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=Ht(t,QPt);return x.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:x.jsx(Xo,q({size:"large"},n))})},eOt=function(t){return ne({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function tOt(e){return Ci("ProLayoutFooter",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[eOt(n)]})}var nOt=function(t){var n=t.className,r=t.prefixCls,i=t.links,a=t.copyright,o=t.style,s=d.useContext(zn.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=tOt(l),u=c.wrapSSR,f=c.hashId;return(i==null||i===!1||Array.isArray(i)&&i.length===0)&&(a==null||a===!1)?null:u(x.jsxs("div",{className:Ee(l,f,n),style:o,children:[i&&x.jsx("div",{className:"".concat(l,"-list ").concat(f).trim(),children:i.map(function(p){return x.jsx("a",{className:"".concat(l,"-list-link ").concat(f).trim(),title:p.key,target:p.blankTarget?"_blank":"_self",href:p.href,rel:"noreferrer",children:p.title},p.key)})}),a&&x.jsx("div",{className:"".concat(l,"-copyright ").concat(f).trim(),children:a})]}))},rOt=Qn.Footer,iOt=function(t){var n=t.links,r=t.copyright,i=t.style,a=t.className,o=t.prefixCls;return x.jsx(rOt,{className:a,style:q({padding:0},i),children:x.jsx(nOt,{links:n,prefixCls:o,copyright:r===!1?null:x.jsxs(d.Fragment,{children:[x.jsx(yrt,{})," ",r]})})})},qee=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var i=n.concat(e(r.children||r.routes)||[]);return i}return n},[])};function D$(e){return e.map(function(t){var n=t.children||[],r=q({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(i){return i&&i.name&&!i.hideInMenu}))return q(q({},t),{},{children:D$(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var aOt=function(){return x.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:x.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},oOt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,a=t.itemClick;return x.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:x.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(o,s){var l;return o!=null&&(l=o.children)!==null&&l!==void 0&&l.length?x.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[x.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:o.title}),x.jsx(e,{hashId:i,itemClick:a,appList:o==null?void 0:o.children,baseClassName:r})]},s):x.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),a==null||a(o)},children:x.jsxs("a",{href:a?void 0:o.url,target:o.target,rel:"noreferrer",children:[xH(o.icon),x.jsxs("div",{children:[x.jsx("div",{children:o.title}),o.desc?x.jsx("span",{children:o.desc}):null]})]})},s)})})})},sOt=function(t,n){if(t&&typeof t=="string"&&Rz(t))return x.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return x.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return x.jsx("div",{id:"avatarLogo",children:r})}return t},lOt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,a=t.itemClick;return x.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:x.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(o,s){var l;return o!=null&&(l=o.children)!==null&&l!==void 0&&l.length?x.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[x.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:o.title}),x.jsx(e,{hashId:i,itemClick:a,appList:o==null?void 0:o.children,baseClassName:r})]},s):x.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),a==null||a(o)},children:x.jsxs("a",{href:a?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[sOt(o.icon,o.title),x.jsx("div",{children:x.jsx("div",{children:o.title})})]})},s)})})})},cOt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":jT==null?void 0:jT(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},uOt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},dOt=function(t){var n,r,i,a,o;return ne({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover},"&-active":{color:(a=t.layout)===null||a===void 0?void 0:a.colorTextAppListIconHover,backgroundColor:(o=t.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":ne({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":uOt(t),"&-default":cOt(t)})};function fOt(e){return Ci("AppsLogoComponents",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[dOt(n)]})}var xH=function(t){return typeof t=="string"?x.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},SH=function(t){var n,r=t.appList,i=t.appListRender,a=t.prefixCls,o=a===void 0?"ant-pro":a,s=t.onItemClick,l=te.useRef(null),c=te.useRef(null),u="".concat(o,"-layout-apps"),f=fOt(u),p=f.wrapSSR,h=f.hashId,m=d.useState(!1),g=Te(m,2),v=g[0],y=g[1],w=function(_){s==null||s(_,c)},b=d.useMemo(function(){var S=r==null?void 0:r.some(function(_){return!(_!=null&&_.desc)});return S?x.jsx(lOt,{hashId:h,appList:r,itemClick:s?w:void 0,baseClassName:"".concat(u,"-simple")}):x.jsx(oOt,{hashId:h,appList:r,itemClick:s?w:void 0,baseClassName:"".concat(u,"-default")})},[r,u,h]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var C=i?i(t==null?void 0:t.appList,b):b,k=u$(void 0,function(S){return y(S)});return p(x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:l,onClick:function(_){_.stopPropagation(),_.preventDefault()}}),x.jsx(wc,q(q({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},k),{},{overlayClassName:"".concat(u,"-popover ").concat(h).trim(),content:C,getPopupContainer:function(){return l.current||document.body},children:x.jsx("span",{ref:c,onClick:function(_){_.stopPropagation()},className:Ee("".concat(u,"-icon"),h,ne({},"".concat(u,"-icon-active"),v)),children:x.jsx(aOt,{})})}))]}))};function pOt(){return x.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:x.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var hOt=function(t){var n,r,i;return ne({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function mOt(e){return Ci("SiderMenuCollapsedIcon",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[hOt(n)]})}var gOt=["isMobile","collapsed"],vOt=function(t){var n=t.isMobile,r=t.collapsed,i=Ht(t,gOt),a=mOt(t.className),o=a.wrapSSR,s=a.hashId;return n&&r?null:o(x.jsx("div",q(q({},i),{},{className:Ee(t.className,s,ne(ne({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:x.jsx(pOt,{})})))},u2e={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},yOt=function(t,n){var r,i,a=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(i=t.layout)===null||i===void 0?void 0:i.sider;return q(q(ne({},"".concat(t.componentCls),ne(ne(ne(ne(ne(ne(ne(ne(ne({background:"transparent",color:a==null?void 0:a.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),ne({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",ne(ne(ne({},"".concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu > ").concat(t.antCls,`-menu-submenu-title, `).concat(t.antCls,"-menu-submenu > ").concat(t.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,`-menu-submenu-title, - `).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:a==null?void 0:a.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),ne({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",ne(ne(ne(ne(ne({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",ne(ne({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),ne({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),ne(ne({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",ne({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:ne({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),ne({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},ne({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function wOt(e,t){return Ci("ProLayoutBaseMenu"+t,function(n){var r=q(q({},n),{},{componentCls:".".concat(e)});return[bOt(r,t||"inline")]})}var Kee=function(t){var n=d.useState(t.collapsed),r=Te(n,2),i=r[0],a=r[1],o=d.useState(!1),s=Te(o,2),l=s[0],c=s[1];return d.useEffect(function(){c(!1),setTimeout(function(){a(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:x.jsx(_a,{title:t.title,open:i&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},f2e=kve({scriptUrl:d2e.iconfontUrl}),Gee=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(Rz(t)||tmt(t))return x.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return x.jsx(f2e,{type:t})}return t},Yee=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},xOt=Dr(function e(t){var n=this;Ar(this,e),ne(this,"props",void 0),ne(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return r.map(function(o){return n.getSubMenuOrItem(o,i,a)}).filter(function(o){return o}).flat(1)}),ne(this,"getSubMenuOrItem",function(r,i,a){var o=n.props,s=o.subMenuItemRender,l=o.baseClassName,c=o.prefixCls,u=o.collapsed,f=o.menu,p=o.iconPrefixes,h=o.layout,m=(f==null?void 0:f.type)==="group"&&h!=="top",g=n.props.token,v=n.getIntlName(r),y=(r==null?void 0:r.children)||(r==null?void 0:r.routes),w=m&&i===0?"group":void 0;if(Array.isArray(y)&&y.length>0){var b,C,k,S,_,E=i===0||m&&i===1,$=Gee(r.icon,p,"".concat(l,"-icon ").concat((b=n.props)===null||b===void 0?void 0:b.hashId)),M=u&&E?Yee(v):null,P=x.jsxs("div",{className:Ee("".concat(l,"-item-title"),(C=n.props)===null||C===void 0?void 0:C.hashId,ne(ne(ne(ne({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(a),u),"".concat(l,"-group-item-title"),w==="group"),"".concat(l,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&u)),children:[w==="group"&&u?null:E&&$?x.jsx("span",{className:"".concat(l,"-item-icon ").concat((k=n.props)===null||k===void 0?void 0:k.hashId).trim(),children:$}):M,x.jsx("span",{className:Ee("".concat(l,"-item-text"),(S=n.props)===null||S===void 0?void 0:S.hashId,ne({},"".concat(l,"-item-text-has-icon"),w!=="group"&&E&&($||M))),children:v})]}),R=s?s(q(q({},r),{},{isUrl:!1}),P,n.props):P;if(m&&i===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(y,i+1,i);var O=n.getNavMenuItems(y,i+1,m&&i===0&&n.props.collapsed?i:i+1);return[{type:w,key:r.key||r.path,label:R,onClick:m?void 0:r.onTitleClick,children:O,className:Ee(ne(ne(ne({},"".concat(l,"-group"),w==="group"),"".concat(l,"-submenu"),w!=="group"),"".concat(l,"-submenu-has-icon"),w!=="group"&&E&&$))},m&&i===0?{type:"divider",prefixCls:c,className:"".concat(l,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:g==null||(_=g.layout)===null||_===void 0||(_=_.sider)===null||_===void 0?void 0:_.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(l,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,i,a)}}),ne(this,"getIntlName",function(r){var i=r.name,a=r.locale,o=n.props,s=o.menu,l=o.formatMessage,c=i;return a&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:a,defaultMessage:i})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),ne(this,"getMenuItemPath",function(r,i,a){var o,s,l,c,u=n.conversionPath(r.path||"/"),f=n.props,p=f.location,h=p===void 0?{pathname:"/"}:p,m=f.isMobile,g=f.onCollapse,v=f.menuItemRender,y=f.iconPrefixes,w=n.getIntlName(r),b=n.props,C=b.baseClassName,k=b.menu,S=b.collapsed,_=(k==null?void 0:k.type)==="group",E=i===0||_&&i===1,$=E?Gee(r.icon,y,"".concat(C,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,M=S&&E?Yee(w):null,P=x.jsxs("div",{className:Ee("".concat(C,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,ne(ne(ne({},"".concat(C,"-item-title-collapsed"),S),"".concat(C,"-item-title-collapsed-level-").concat(a),S),"".concat(C,"-item-collapsed-show-title"),(k==null?void 0:k.collapsedShowTitle)&&S)),children:[x.jsx("span",{className:"".concat(C,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:M===null&&!$?"none":""},children:$||x.jsx("span",{className:"anticon",children:M})}),x.jsx("span",{className:Ee("".concat(C,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,ne({},"".concat(C,"-item-text-has-icon"),E&&($||M))),children:w})]},u),R=Rz(u);if(R){var O,j,I;P=x.jsxs("span",{onClick:function(){var F,K;(F=window)===null||F===void 0||(K=F.open)===null||K===void 0||K.call(F,u,"_blank")},className:Ee("".concat(C,"-item-title"),(O=n.props)===null||O===void 0?void 0:O.hashId,ne(ne(ne(ne({},"".concat(C,"-item-title-collapsed"),S),"".concat(C,"-item-title-collapsed-level-").concat(a),S),"".concat(C,"-item-link"),!0),"".concat(C,"-item-collapsed-show-title"),(k==null?void 0:k.collapsedShowTitle)&&S)),children:[x.jsx("span",{className:"".concat(C,"-item-icon ").concat((j=n.props)===null||j===void 0?void 0:j.hashId).trim(),style:{display:M===null&&!$?"none":""},children:$||x.jsx("span",{className:"anticon",children:M})}),x.jsx("span",{className:Ee("".concat(C,"-item-text"),(I=n.props)===null||I===void 0?void 0:I.hashId,ne({},"".concat(C,"-item-text-has-icon"),E&&($||M))),children:w})]},u)}if(v){var A=q(q({},r),{},{isUrl:R,itemPath:u,isMobile:m,replace:u===h.pathname,onClick:function(){return g&&g(!0)},children:void 0});return i===0?x.jsx(Kee,{collapsed:S,title:w,disable:r.disabledTooltip,children:v(A,P,n.props)}):v(A,P,n.props)}return i===0?x.jsx(Kee,{collapsed:S,title:w,disable:r.disabledTooltip,children:P}):P}),ne(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),SOt=function(t,n){var r=n.layout,i=n.collapsed,a={};return t&&!i&&["side","mix"].includes(r||"mix")&&(a={openKeys:t}),a},p2e=function(t){var n=t.mode,r=t.className,i=t.handleOpenChange,a=t.style,o=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,f=t.selectedKeys,p=t.onSelect,h=t.menuRenderType,m=t.openKeys,g=d.useContext(uu),v=g.dark,y=g.token,w="".concat(s,"-base-menu-").concat(n),b=d.useRef([]),C=In(l==null?void 0:l.defaultOpenAll),k=Te(C,2),S=k[0],_=k[1],E=In(function(){return l!=null&&l.defaultOpenAll?qee(o)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:i}),$=Te(E,2),M=$[0],P=$[1],R=In([],{value:f,onChange:p?function(B){p&&B&&p(B)}:void 0}),O=Te(R,2),j=O[0],I=O[1];d.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(P(c),I(c))},[c.join("-")]),d.useEffect(function(){u&&(f2e=kve({scriptUrl:u}))},[u]),d.useEffect(function(){if(c.join("-")!==(j||[]).join("-")&&I(c),!S&&m!==!1&&c.join("-")!==(M||[]).join("-")){var B=c;(l==null?void 0:l.autoClose)===!1&&(B=Array.from(new Set([].concat(lt(c),lt(M||[]))))),P(B)}else l!=null&&l.ignoreFlatMenu&&S?P(qee(o)):_(!1)},[c.join("-")]);var A=d.useMemo(function(){return SOt(M,t)},[M&&M.join(","),t.layout,t.collapsed]),N=wOt(w,n),F=N.wrapSSR,K=N.hashId,L=d.useMemo(function(){return new xOt(q(q({},t),{},{token:y,menuRenderType:h,baseClassName:w,hashId:K}))},[t,y,h,w,K]);if(l!=null&&l.loading)return x.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:x.jsx(Kf,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(b.current=c);var V=t.postMenuData?t.postMenuData(o):o;return V&&(V==null?void 0:V.length)<1?null:F(d.createElement(ks,q(q({},A),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:b.current,theme:v?"dark":"light",selectedKeys:j,style:q({backgroundColor:"transparent",border:"none"},a),className:Ee(r,K,w,ne(ne({},"".concat(w,"-horizontal"),n==="horizontal"),"".concat(w,"-collapsed"),t.collapsed)),items:L.getNavMenuItems(V,0,0),onOpenChange:function(U){t.collapsed||P(U)}},t.menuProps)))};function COt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Ci("ProLayoutSiderMenuStylish",function(i){var a=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ne({},"div".concat(i.proComponentsCls,"-layout"),ne({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var _Ot=["title","render"],kOt=te.memo(function(e){return x.jsx(x.Fragment,{children:e.children})}),EOt=Qn.Sider,Xee=Qn._InternalSiderContext,$Ot=Xee===void 0?{Provider:kOt}:Xee,CH=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,i=t.title,a=t.layout,o=t[n];if(o===!1)return null;var s=xH(r),l=x.jsx("h1",{children:i??"Ant Design Pro"});return o?o(s,t.collapsed?null:l,t):t.isMobile?null:a==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?x.jsx("a",{children:s},"title"):x.jsxs("a",{children:[s,l]},"title")},Zee=function(t){var n,r=t.collapsed,i=t.originCollapsed,a=t.fixSiderbar,o=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,f=t.onMenuHeaderClick,p=t.breakpoint,h=p===void 0?"lg":p,m=t.style,g=t.layout,v=t.menuExtraRender,y=v===void 0?!1:v,w=t.links,b=t.menuContentRender,C=t.collapsedButtonRender,k=t.prefixCls,S=t.avatarProps,_=t.rightContentRender,E=t.actionsRender,$=t.onOpenChange,M=t.stylish,P=t.logoStyle,R=d.useContext(uu),O=R.hashId,j=d.useMemo(function(){return!(u||g==="mix")},[u,g]),I="".concat(k,"-sider"),A=64,N=COt("".concat(I,".").concat(I,"-stylish"),{stylish:M,proLayoutCollapsedWidth:A}),F=Ee("".concat(I),O,ne(ne(ne(ne(ne(ne(ne({},"".concat(I,"-fixed"),a),"".concat(I,"-fixed-mix"),g==="mix"&&!u&&a),"".concat(I,"-collapsed"),t.collapsed),"".concat(I,"-layout-").concat(g),g&&!u),"".concat(I,"-light"),l!=="dark"),"".concat(I,"-mix"),g==="mix"&&!u),"".concat(I,"-stylish"),!!M)),K=CH(t),L=y&&y(t),V=d.useMemo(function(){return b!==!1&&d.createElement(p2e,q(q({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:$,style:{width:"100%"},className:"".concat(I,"-menu ").concat(O).trim()}))},[I,O,b,$,t]),B=(w||[]).map(function(ce,pe){return{className:"".concat(I,"-link"),label:ce,key:pe}}),U=d.useMemo(function(){return b?b(t,V):V},[b,V,t]),Y=d.useMemo(function(){if(!S)return null;var ce=S.title,pe=S.render,me=Ht(S,_Ot),re=x.jsxs("div",{className:"".concat(I,"-actions-avatar"),children:[me!=null&&me.src||me!=null&&me.srcSet||me.icon||me.children?x.jsx(Pi,q({size:28},me)):null,S.title&&!r&&x.jsx("span",{children:ce})]});return pe?pe(S,re,t):re},[S,I,r]),ee=d.useMemo(function(){return E?x.jsx(Xr,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Ee(["".concat(I,"-actions-list"),r&&"".concat(I,"-actions-list-collapsed"),O]),children:[E==null?void 0:E(t)].flat(1).map(function(ce,pe){return x.jsx("div",{className:"".concat(I,"-actions-list-item ").concat(O).trim(),children:ce},pe)})}):null},[E,I,r]),ie=d.useMemo(function(){return x.jsx(SH,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),Z=d.useMemo(function(){if(C===!1)return null;var ce=x.jsx(yOt,{isMobile:u,collapsed:i,className:"".concat(I,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return C?C(r,ce):ce},[C,u,i,I,r,s]),X=d.useMemo(function(){return!Y&&!ee?null:x.jsxs("div",{className:Ee("".concat(I,"-actions"),O,r&&"".concat(I,"-actions-collapsed")),children:[Y,ee]})},[ee,Y,I,r,O]),ae=d.useMemo(function(){var ce;return t!=null&&(ce=t.menu)!==null&&ce!==void 0&&ce.hideMenuWhenCollapsed&&r?"".concat(I,"-hide-menu-collapsed"):null},[I,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),oe=o&&(o==null?void 0:o(t)),le=x.jsxs(x.Fragment,{children:[K&&x.jsxs("div",{className:Ee([Ee("".concat(I,"-logo"),O,ne({},"".concat(I,"-logo-collapsed"),r))]),onClick:j?f:void 0,id:"logo",style:P,children:[K,ie]}),L&&x.jsx("div",{className:Ee(["".concat(I,"-extra"),!K&&"".concat(I,"-extra-no-logo"),O]),children:L}),x.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:U}),x.jsxs($Ot.Provider,{value:{},children:[w?x.jsx("div",{className:"".concat(I,"-links ").concat(O).trim(),children:x.jsx(ks,{inlineIndent:16,className:"".concat(I,"-link-menu ").concat(O).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:B})}):null,j&&x.jsxs(x.Fragment,{children:[X,!ee&&_?x.jsx("div",{className:Ee("".concat(I,"-actions"),O,ne({},"".concat(I,"-actions-collapsed"),r)),children:_==null?void 0:_(t)}):null]}),oe&&x.jsx("div",{className:Ee(["".concat(I,"-footer"),O,ne({},"".concat(I,"-footer-collapsed"),r)]),children:oe})]})]});return N.wrapSSR(x.jsxs(x.Fragment,{children:[a&&!u&&!ae&&x.jsx("div",{style:q({width:r?A:c,overflow:"hidden",flex:"0 0 ".concat(r?A:c,"px"),maxWidth:r?A:c,minWidth:r?A:c,transition:"all 0.2s ease 0s"},m)}),x.jsxs(EOt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:h===!1?void 0:h,onCollapse:function(pe){u||s==null||s(pe)},collapsedWidth:A,style:m,theme:l,width:c,className:Ee(F,O,ae),children:[ae?x.jsx("div",{className:"".concat(I,"-hide-when-collapsed ").concat(O).trim(),style:{height:"100%",width:"100%",opacity:ae?0:1},children:le}):le,Z]})]}))},MOt=function(t){var n,r,i,a,o;return ne({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,"> div":{height:"44px",color:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function TOt(e){return Ci("ProLayoutRightContent",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[MOt(n)]})}var POt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],OOt=["title","render"],h2e=function(t){var n=t.rightContentRender,r=t.avatarProps,i=t.actionsRender;t.headerContentRender;var a=Ht(t,POt),o=d.useContext(zn.ConfigContext),s=o.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=TOt(l),u=c.wrapSSR,f=c.hashId,p=d.useState("auto"),h=Te(p,2),m=h[0],g=h[1],v=d.useMemo(function(){if(!r)return null;var C=r.title,k=r.render,S=Ht(r,OOt),_=[S!=null&&S.src||S!=null&&S.srcSet||S.icon||S.children?d.createElement(Pi,q(q({},S),{},{size:28,key:"avatar"})):null,C?x.jsx("span",{style:{marginInlineStart:8},children:C},"name"):void 0];return k?k(r,x.jsx("div",{children:_}),a):x.jsx("div",{children:_})},[r]),y=i||v?function(C){var k=i&&(i==null?void 0:i(C));return!k&&!v?null:Array.isArray(k)?u(x.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[k.filter(Boolean).map(function(S,_){var E=!1;if(te.isValidElement(S)){var $;E=!!(S!=null&&($=S.props)!==null&&$!==void 0&&$["aria-hidden"])}return x.jsx("div",{className:Ee("".concat(l,"-header-actions-item ").concat(f),ne({},"".concat(l,"-header-actions-hover"),!E)),children:S},_)}),v&&x.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]})):u(x.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[k,v&&x.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]}))}:void 0,w=Vht(function(){var C=pa(hr().mark(function k(S){return hr().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:g(S);case 1:case"end":return E.stop()}},k)}));return function(k){return C.apply(this,arguments)}}(),160),b=y||n;return x.jsx("div",{className:"".concat(l,"-right-content ").concat(f).trim(),style:{minWidth:m,height:"100%"},children:x.jsx("div",{style:{height:"100%"},children:x.jsx(Dbe,{onResize:function(k){var S=k.width;w.run(S)},children:b?x.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:b(q(q({},a),{},{rightContentSize:m}))}):null})})})},ROt=function(t){var n,r;return ne({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":ne({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function IOt(e){return Ci("ProLayoutTopNavHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[ROt(n)]})}var m2e=function(t){var n,r,i,a,o,s,l,c=d.useRef(null),u=t.onMenuHeaderClick,f=t.contentWidth,p=t.rightContentRender,h=t.className,m=t.style,g=t.headerContentRender,v=t.layout,y=t.actionsRender,w=d.useContext(zn.ConfigContext),b=w.getPrefixCls,C=d.useContext(uu),k=C.dark,S="".concat(t.prefixCls||b("pro"),"-top-nav-header"),_=IOt(S),E=_.wrapSSR,$=_.hashId,M=void 0;t.menuHeaderRender!==void 0?M="menuHeaderRender":(v==="mix"||v==="top")&&(M="headerTitleRender");var P=CH(q(q({},t),{},{collapsed:!1}),M),R=d.useContext(uu),O=R.token,j=d.useMemo(function(){var I,A,N,F,K,L,V,B,U,Y,ee,ie,Z,X=x.jsx(zn,{theme:{hashed:Dv(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:q({},U0e({colorItemBg:((I=O.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorBgHeader)||"transparent",colorSubItemBg:((A=O.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgHeader)||"transparent",radiusItem:O.borderRadius,colorItemBgSelected:((N=O.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemSelected)||(O==null?void 0:O.colorBgTextHover),itemHoverBg:((F=O.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgMenuItemHover)||(O==null?void 0:O.colorBgTextHover),colorItemBgSelectedHorizontal:((K=O.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorBgMenuItemSelected)||(O==null?void 0:O.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((L=O.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenu)||(O==null?void 0:O.colorTextSecondary),colorItemTextHoverHorizontal:((V=O.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive)||(O==null?void 0:O.colorText),colorItemTextSelectedHorizontal:((B=O.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenuSelected)||(O==null?void 0:O.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((U=O.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Y=O.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((ee=O.layout)===null||ee===void 0||(ee=ee.header)===null||ee===void 0?void 0:ee.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:O==null?void 0:O.colorBgElevated,subMenuItemBg:O==null?void 0:O.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:O==null?void 0:O.colorBgElevated}))},token:{colorBgElevated:((ie=O.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgHeader)||"transparent"}},children:x.jsx(p2e,q(q(q({theme:k?"dark":"light"},t),{},{className:"".concat(S,"-base-menu ").concat($).trim()},t.menuProps),{},{style:q({width:"100%"},(Z=t.menuProps)===null||Z===void 0?void 0:Z.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,X):X},[(n=O.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=O.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(i=O.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemHover,(a=O.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenu,(o=O.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(s=O.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=O.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,O.borderRadius,O==null?void 0:O.colorBgTextHover,O==null?void 0:O.colorTextSecondary,O==null?void 0:O.colorText,O==null?void 0:O.colorTextBase,O.colorBgElevated,k,t,S,$,g]);return E(x.jsx("div",{className:Ee(S,$,h,ne({},"".concat(S,"-light"),!0)),style:m,children:x.jsxs("div",{ref:c,className:Ee("".concat(S,"-main"),$,ne({},"".concat(S,"-wide"),f==="Fixed"&&v==="top")),children:[P&&x.jsxs("div",{className:Ee("".concat(S,"-main-left ").concat($)),onClick:u,children:[x.jsx(SH,q({},t)),x.jsx("div",{className:"".concat(S,"-logo ").concat($).trim(),id:"logo",children:P},"logo")]}),x.jsx("div",{style:{flex:1},className:"".concat(S,"-menu ").concat($).trim(),children:j}),(p||y||t.avatarProps)&&x.jsx(h2e,q(q({rightContentRender:p},t),{},{prefixCls:S}))]})}))},jOt=function(t){var n,r,i;return ne({},t.componentCls,ne(ne(ne(ne({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function NOt(e){return Ci("ProLayoutGlobalHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[jOt(n)]})}var AOt=function(t,n){return t===!1?null:t?t(n,null):n},DOt=function(t){var n=t.isMobile,r=t.logo,i=t.collapsed,a=t.onCollapse,o=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,f=t.layout,p=t.children,h=t.splitMenus,m=t.menuData,g=t.prefixCls,v=d.useContext(zn.ConfigContext),y=v.getPrefixCls,w=v.direction,b="".concat(g||y("pro"),"-global-header"),C=NOt(b),k=C.wrapSSR,S=C.hashId,_=Ee(c,b,S);if(f==="mix"&&!n&&h){var E=(m||[]).map(function(R){return q(q({},R),{},{children:void 0,routes:void 0})}),$=D$(E);return x.jsx(m2e,q(q({mode:"horizontal"},t),{},{splitMenus:!1,menuData:$}))}var M=Ee("".concat(b,"-logo"),S,ne(ne(ne({},"".concat(b,"-logo-rtl"),w==="rtl"),"".concat(b,"-logo-mix"),f==="mix"),"".concat(b,"-logo-mobile"),n)),P=x.jsx("span",{className:M,children:x.jsx("a",{children:xH(r)})},"logo");return k(x.jsxs("div",{className:_,style:q({},u),children:[n&&x.jsx("span",{className:"".concat(b,"-collapsed-button ").concat(S).trim(),onClick:function(){a==null||a(!i)},children:x.jsx(bve,{})}),n&&AOt(s,P),f==="mix"&&!n&&x.jsxs(x.Fragment,{children:[x.jsx(SH,q({},t)),x.jsx("div",{className:M,onClick:l,children:CH(q(q({},t),{},{collapsed:!1}),"headerTitleRender")})]}),x.jsx("div",{style:{flex:1},children:p}),(o||t.actionsRender||t.avatarProps)&&x.jsx(h2e,q({rightContentRender:o},t))]}))},FOt=function(t){var n,r,i,a;return ne({},"".concat(t.proComponentsCls,"-layout"),ne({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function LOt(e){return Ci("ProLayoutHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[FOt(n)]})}function BOt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Ci("ProLayoutHeaderStylish",function(i){var a=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ne({},"div".concat(i.proComponentsCls,"-layout"),ne({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var Qee=Qn.Header,zOt=function(t){var n,r,i,a=t.isMobile,o=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,f=t.onCollapse,p=t.layout,h=t.headerRender,m=t.headerContentRender,g=d.useContext(uu),v=g.token,y=d.useContext(zn.ConfigContext),w=d.useState(!1),b=Te(w,2),C=b[0],k=b[1],S=o||p==="mix",_=d.useCallback(function(){var I=p==="top",A=D$(t.menuData||[]),N=x.jsx(DOt,q(q({onCollapse:f},t),{},{menuData:A,children:m&&m(t,null)}));return I&&!a&&(N=x.jsx(m2e,q(q({mode:"horizontal",onCollapse:f},t),{},{menuData:A}))),h&&typeof h=="function"?h(t,N):N},[m,h,a,p,f,t]);d.useEffect(function(){var I,A=(y==null||(I=y.getTargetContainer)===null||I===void 0?void 0:I.call(y))||document.body,N=function(){var K,L=A.scrollTop;return L>(((K=v.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.heightLayoutHeader)||56)&&!C?(k(!0),!0):(C&&k(!1),!1)};if(S&&!(typeof window>"u"))return A.addEventListener("scroll",N,{passive:!0}),function(){A.removeEventListener("scroll",N)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,S,C]);var E=p==="top",$="".concat(u,"-layout-header"),M=LOt($),P=M.wrapSSR,R=M.hashId,O=BOt("".concat($,".").concat($,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),j=Ee(s,R,$,ne(ne(ne(ne(ne(ne(ne({},"".concat($,"-fixed-header"),S),"".concat($,"-fixed-header-scroll"),C),"".concat($,"-mix"),p==="mix"),"".concat($,"-fixed-header-action"),!c),"".concat($,"-top-menu"),E),"".concat($,"-header"),!0),"".concat($,"-stylish"),!!t.stylish));return p==="side"&&!a?null:O.wrapSSR(P(x.jsx(x.Fragment,{children:x.jsxs(zn,{theme:{hashed:Dv(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[S&&x.jsx(Qee,{style:q({height:((r=v.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=v.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),x.jsx(Qee,{className:j,style:l,children:_()})]})})))};const HOt={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},UOt=q({},HOt),WOt={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},VOt=q({},WOt),qOt={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},KOt=q({},qOt),GOt={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},YOt=q({},GOt),XOt={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},ZOt=q({},XOt);var Jee={"zh-CN":YOt,"zh-TW":ZOt,"en-US":UOt,"it-IT":VOt,"ko-KR":KOt},QOt=function(){if(!Oz())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},JOt=function(){var t=QOt();return Jee[t]||Jee["zh-CN"]},Jy={},ete=oi&&oi.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},tte=oi&&oi.__classPrivateFieldSet||function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},X1;Object.defineProperty(Jy,"__esModule",{value:!0});Jy.TokenData=void 0;Jy.parse=kH;Jy.compile=sRt;var YN=Jy.match=uRt;const g2e="/",_H=e=>e,eRt=/^[$_\p{ID_Start}]$/u,tRt=/^[$\u200c\u200d\p{ID_Continue}]$/u,i5="https://git.new/pathToRegexpError",nRt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function _3(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function rRt(e){return e.sensitive?"s":"is"}function*iRt(e){const t=[...e];let n=0;function r(){let i="";if(eRt.test(t[++n]))for(i+=t[n];tRt.test(t[++n]);)i+=t[n];else if(t[n]==='"'){let a=n;for(;nlRt(i,t,n));return i=>{const a=[""];for(const o of r){const[s,...l]=o(i);a[0]+=s,a.push(...l)}return a}}function lRt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const i=v2e(e.tokens,t,n);return a=>{const[o,...s]=i(a);return s.length?[""]:[o]}}const r=n||_H;return e.type==="wildcard"&&n!==!1?i=>{const a=i[e.name];if(a==null)return["",e.name];if(!Array.isArray(a)||a.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[a.map((o,s)=>{if(typeof o!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(o)}).join(t)]}:i=>{const a=i[e.name];if(a==null)return["",e.name];if(typeof a!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(a)]}}function cRt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=g2e,end:i=!0,trailing:a=!0}=t,o=rRt(t),s=[],l=[];for(const{tokens:p}of e)for(const h of v_(p,0,[])){const m=dRt(h,r,l);s.push(m)}let c=`^(?:${s.join("|")})`;a&&(c+=`(?:${_3(r)}$)?`),c+=i?"$":`(?=${_3(r)}|$)`;const u=new RegExp(c,o),f=l.map(p=>n===!1?_H:p.type==="param"?n:h=>h.split(r).map(n));return Object.assign(function(h){const m=u.exec(h);if(!m)return!1;const{0:g}=m,v=Object.create(null);for(let y=1;yi instanceof F$?i:kH(i,t));return cRt(r,t)}function*v_(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const i=n.slice();for(const a of v_(r.tokens,0,i))yield*v_(e,t+1,a)}else n.push(r);yield*v_(e,t+1,n)}function dRt(e,t,n){let r="",i="",a=!0;for(let o=0;oi.length===1)?`[^${_3(n.join(""))}]`:`(?:(?!${n.map(_3).join("|")}).)`}var pRt=function(t,n,r){if(r){var i=lt(r.keys()).find(function(o){try{return o.startsWith("http")?!1:YN(o)(t)}catch(s){return console.log("key",o,s),!1}});if(i)return r.get(i)}if(n){var a=Object.keys(n).find(function(o){try{return o!=null&&o.startsWith("http")?!1:YN(o)(t)}catch(s){return console.log("key",o,s),!1}});if(a)return n[a]}return{path:""}},nte=function(t,n){var r=t.pathname,i=r===void 0?"/":r,a=t.breadcrumb,o=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,f=n?"":l||"",p=pRt(i,a,o);if(!p)return{title:f,id:"",pageName:f};var h=p.name;return u.locale!==!1&&p.locale&&s&&(h=s({id:p.locale||"",defaultMessage:p.name})),h?n||!l?{title:h,id:p.locale||"",pageName:h}:{title:"".concat(h," - ").concat(l),id:p.locale||"",pageName:h}:{title:f,id:p.locale||"",pageName:f}},ms={};function XN(e){"@babel/helpers - typeof";return XN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},XN(e)}Object.defineProperty(ms,"__esModule",{value:!0});var iw=ms.pathToRegexp=ms.tokensToRegexp=ms.regexpToFunction=ms.match=ms.tokensToFunction=ms.compile=ms.parse=void 0;function hRt(e){for(var t=[],n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:i}),n=a;continue}if(r==="("){var s=1,l="",a=n+1;if(e[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:C===void 0;i||(h+="(?:"+p+"(?="+f+"))?"),k||(h+="(?="+p+"|"+f+")")}return new RegExp(h,$H(n))}ms.tokensToRegexp=w2e;function MH(e,t,n){return e instanceof RegExp?vRt(e,t):Array.isArray(e)?yRt(e,t,n):bRt(e,t,n)}iw=ms.pathToRegexp=MH;function dd(e,t){return t>>>e|t<<32-e}function wRt(e,t,n){return e&t^~e&n}function xRt(e,t,n){return e&t^e&n^t&n}function SRt(e){return dd(2,e)^dd(13,e)^dd(22,e)}function CRt(e){return dd(6,e)^dd(11,e)^dd(25,e)}function _Rt(e){return dd(7,e)^dd(18,e)^e>>>3}function kRt(e){return dd(17,e)^dd(19,e)^e>>>10}function ERt(e,t){return e[t&15]+=kRt(e[t+14&15])+e[t+9&15]+_Rt(e[t+1&15])}var $Rt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Ei,Bo,Aa,MRt="0123456789abcdef";function rte(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function TRt(){Ei=new Array(8),Bo=new Array(2),Aa=new Array(64),Bo[0]=Bo[1]=0,Ei[0]=1779033703,Ei[1]=3144134277,Ei[2]=1013904242,Ei[3]=2773480762,Ei[4]=1359893119,Ei[5]=2600822924,Ei[6]=528734635,Ei[7]=1541459225}function ZN(){var e,t,n,r,i,a,o,s,l,c,u=new Array(16);e=Ei[0],t=Ei[1],n=Ei[2],r=Ei[3],i=Ei[4],a=Ei[5],o=Ei[6],s=Ei[7];for(var f=0;f<16;f++)u[f]=Aa[(f<<2)+3]|Aa[(f<<2)+2]<<8|Aa[(f<<2)+1]<<16|Aa[f<<2]<<24;for(var p=0;p<64;p++)l=s+CRt(i)+wRt(i,a,o)+$Rt[p],p<16?l+=u[p]:l+=ERt(u,p),c=SRt(e)+xRt(e,t,n),s=o,o=a,a=i,i=rte(r,l),r=n,n=t,t=e,e=rte(l,c);Ei[0]+=e,Ei[1]+=t,Ei[2]+=n,Ei[3]+=r,Ei[4]+=i,Ei[5]+=a,Ei[6]+=o,Ei[7]+=s}function PRt(e,t){var n,r,i=0;r=Bo[0]>>3&63;var a=t&63;for((Bo[0]+=t<<3)>29,n=0;n+63>3&63;if(Aa[e++]=128,e<=56)for(var t=e;t<56;t++)Aa[t]=0;else{for(var n=e;n<64;n++)Aa[n]=0;ZN();for(var r=0;r<56;r++)Aa[r]=0}Aa[56]=Bo[1]>>>24&255,Aa[57]=Bo[1]>>>16&255,Aa[58]=Bo[1]>>>8&255,Aa[59]=Bo[1]&255,Aa[60]=Bo[0]>>>24&255,Aa[61]=Bo[0]>>>16&255,Aa[62]=Bo[0]>>>8&255,Aa[63]=Bo[0]&255,ZN()}function RRt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=MRt.charAt(Ei[t]>>>n&15);return e}function IRt(e){return TRt(),PRt(e,e.length),ORt(),RRt()}function QN(e){"@babel/helpers - typeof";return QN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QN(e)}var jRt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function NRt(e,t){return FRt(e)||DRt(e,t)||TH(e,t)||ARt()}function ARt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DRt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function FRt(e){if(Array.isArray(e))return e}function LRt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=TH(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function BRt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zRt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function KRt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function k3(e,t){return k3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},k3(e,t)}function E3(e){return E3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},E3(e)}function ite(e){return XRt(e)||YRt(e)||TH(e)||GRt()}function GRt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TH(e,t){if(e){if(typeof e=="string")return eA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eA(e,t)}}function YRt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XRt(e){if(Array.isArray(e))return eA(e)}function eA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QRt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function ate(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Da(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||PH(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},nIt=function(t,n){var r=t.menu,i=r===void 0?{}:r,a=t.indexRoute,o=t.path,s=o===void 0?"":o,l=t.children||[],c=i.name,u=c===void 0?t.name:c,f=i.icon,p=f===void 0?t.icon:f,h=i.hideChildren,m=h===void 0?t.hideChildren:h,g=i.flatMenu,v=g===void 0?t.flatMenu:g,y=a&&Object.keys(a).join(",")!=="redirect"?[Da({path:s,menu:i},a)].concat(l||[]):l,w=Da({},t);if(u&&(w.name=u),p&&(w.icon=p),y&&y.length){if(m)return delete w.children,w;var b=OH(Da(Da({},n),{},{data:y}),t);if(v)return b;delete w[El]}return w},Xm=function(t){return Array.isArray(t)&&t.length>0};function OH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,i=e.parentName,a=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Xm(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var s,l;return!(o==null||(s=o.menu)===null||s===void 0)&&s.name||o!=null&&o.flatMenu||!(o==null||(l=o.menu)===null||l===void 0)&&l.flatMenu?!0:o.menu!==!1}).map(function(o){var s=Da(Da({},o),{},{path:o.path||o.originPath});return!s.children&&s[El]&&(s.children=s[El],delete s[El]),s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=o.children||o[El]||[],l=S2e(o.path,t?t.path:"/"),c=o.name,u=tIt(o,i||"menu"),f=u!==!1&&a!==!1&&r&&u?r({id:u,defaultMessage:c}):c,p=t.pro_layout_parentKeys,h=p===void 0?[]:p;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=ZRt(t,jRt),g=new Set([].concat(ite(h),ite(o.parentKeys||[])));t.key&&g.add(t.key);var v=Da(Da(Da({},m),{},{menu:void 0},o),{},{path:l,locale:u,key:o.key||eIt(Da(Da({},o),{},{path:l})),pro_layout_parentKeys:Array.from(g).filter(function(w){return w&&w!=="/"})});if(f?v.name=f:delete v.name,v.menu===void 0&&delete v.menu,Xm(s)){var y=OH(Da(Da({},e),{},{data:s,parentName:u||""}),v);Xm(y)&&(v.children=y)}return nIt(v,e)}).flat(1)}var rIt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Xm(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=Da({},n),i=r.children||n[El]||[];if(delete r[El],Xm(i)&&!r.hideChildrenInMenu&&i.some(function(o){return o&&!!o.name})){var a=e(i);if(a.length)return Da(Da({},r),{},{children:a})}return Da({},n)}).filter(function(n){return n})},iIt=function(e){URt(n,e);var t=WRt(n);function n(){return BRt(this,n),t.apply(this,arguments)}return HRt(n,[{key:"get",value:function(i){var a;try{var o=LRt(this.entries()),s;try{for(o.s();!(s=o.n()).done;){var l=NRt(s.value,2),c=l[0],u=l[1],f=ax(c);if(!PH(c)&&iw(f,[]).test(i)){a=u;break}}}catch(p){o.e(p)}finally{o.f()}}catch{a=void 0}return a}}]),n}(JN(Map)),aIt=function(t){var n=new iIt,r=function i(a,o){a.forEach(function(s){var l=s.children||s[El]||[];Xm(l)&&i(l,s);var c=S2e(s.path,o?o.path:"/");n.set(ax(c),s)})};return r(t),n},oIt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[El];if(Xm(r)){var i=e(r);if(i.length)return Da({},n)}var a=Da({},n);return delete a[El],delete a.children,a}).filter(function(n){return n})},sIt=function(t,n,r,i){var a=OH({data:t,formatMessage:r,locale:n}),o=i?oIt(a):rIt(a),s=aIt(a);return{breadcrumb:s,menuData:o}};function ote(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yb(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var i=Yb({},r);if(!(!i||!i.key)){!i.children&&i[El]&&(i.children=i[El],delete i[El]);var a=i.children||[];n[ax(i.path||i.key||"/")]=Yb({},i),n[i.key||i.path||"/"]=Yb({},i),a&&(n=Yb(Yb({},n),e(a)))}}),n},uIt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(i){if(i==="/"&&n==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!PH(i)){var a=ax(i);try{if(r&&iw("".concat(a)).test(n)||iw("".concat(a),[]).test(n)||iw("".concat(a,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(i,a){return i===n?10:a===n?-10:i.substr(1).split("/").length-a.substr(1).split("/").length})},dIt=function(t,n,r,i){var a=cIt(n),o=Object.keys(a),s=uIt(o,t||"/",i);return!s||s.length<1?[]:s.map(function(l){var c=a[l]||{pro_layout_parentKeys:"",key:""},u=new Map,f=(c.pro_layout_parentKeys||[]).map(function(p){return u.has(p)?null:(u.set(p,!0),a[p])}).filter(function(p){return p});return c.key&&f.push(c),f}).flat(1)},fIt=function(t){var n=d.useContext(uu),r=n.hashId,i=t.style,a=t.prefixCls,o=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=Ee("".concat(a,"-content"),r,ne(ne({},"".concat(a,"-has-header"),t.hasHeader),"".concat(a,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||Eht;return t.ErrorBoundary===!1?x.jsx(Qn.Content,{className:c,style:i,children:o}):x.jsx(u,{children:x.jsx(Qn.Content,{className:c,style:i,children:o})})},pIt=function(){return x.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[x.jsxs("defs",{children:[x.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[x.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),x.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[x.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),x.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),x.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[x.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),x.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),x.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[x.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),x.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),x.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),x.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:x.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:x.jsx("g",{transform:"translate(20.000000, 20.000000)",children:x.jsxs("g",{children:[x.jsxs("g",{fillRule:"nonzero",children:[x.jsxs("g",{children:[x.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),x.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),x.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),x.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},ste=new ir("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),hIt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h;return ne({},"".concat(t.proComponentsCls,"-layout"),ne(ne(ne({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,ne(ne(ne(ne(ne(ne(ne(ne(ne({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),ne(ne({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuTitle,animationName:ste,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":ne({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:ste,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((p=t.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px")}}))};function mIt(e,t){var n=t.proLayoutCollapsedWidth;return Ci("ProLayoutSiderMenu",function(r){var i=q(q({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[hIt(i)]})}var lte=function(t){var n,r=t.isMobile,i=t.siderWidth,a=t.collapsed,o=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,f=t.getContainer,p=d.useContext(uu),h=p.token;d.useEffect(function(){r===!0&&(o==null||o(!0))},[r]);var m=Fl(t,["className","style"]),g=te.useContext(zn.ConfigContext),v=g.direction,y=mIt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),w=y.wrapSSR,b=y.hashId,C=Ee("".concat(u,"-sider"),l,b);if(c)return null;var k=u$(!a,function(){return o==null?void 0:o(!0)});return w(r?x.jsx(Sh,q(q({placement:v==="rtl"?"right":"left",className:Ee("".concat(u,"-drawer-sider"),l)},k),{},{style:q({padding:0,height:"100vh"},s),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:i,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=h.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:x.jsx(Zee,q(q({},m),{},{isMobile:!0,className:C,collapsed:r?!1:a,splitMenus:!1,originCollapsed:a}))})):x.jsx(Zee,q(q({className:C,originCollapsed:a},m),{},{style:s})))},gIt=function(){var t;return typeof process>"u"?If:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||If},vIt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y,w,b,C,k,S,_,E,$,M,P,R,O,j,I,A,N;return(n=gIt())!==null&&n!==void 0&&n.startsWith("5")?{}:ne(ne(ne({},t.componentCls,ne(ne({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(S={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(S,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),ne(ne({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),ne({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active, + `).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:a==null?void 0:a.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),ne({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",ne(ne(ne(ne(ne({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",ne(ne({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),ne({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),ne(ne({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",ne({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:ne({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),ne({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},ne({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function bOt(e,t){return Ci("ProLayoutBaseMenu"+t,function(n){var r=q(q({},n),{},{componentCls:".".concat(e)});return[yOt(r,t||"inline")]})}var Kee=function(t){var n=d.useState(t.collapsed),r=Te(n,2),i=r[0],a=r[1],o=d.useState(!1),s=Te(o,2),l=s[0],c=s[1];return d.useEffect(function(){c(!1),setTimeout(function(){a(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:x.jsx(_a,{title:t.title,open:i&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},d2e=_ve({scriptUrl:u2e.iconfontUrl}),Gee=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(Rz(t)||emt(t))return x.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return x.jsx(d2e,{type:t})}return t},Yee=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},wOt=Dr(function e(t){var n=this;Ar(this,e),ne(this,"props",void 0),ne(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return r.map(function(o){return n.getSubMenuOrItem(o,i,a)}).filter(function(o){return o}).flat(1)}),ne(this,"getSubMenuOrItem",function(r,i,a){var o=n.props,s=o.subMenuItemRender,l=o.baseClassName,c=o.prefixCls,u=o.collapsed,f=o.menu,p=o.iconPrefixes,h=o.layout,m=(f==null?void 0:f.type)==="group"&&h!=="top",g=n.props.token,v=n.getIntlName(r),y=(r==null?void 0:r.children)||(r==null?void 0:r.routes),w=m&&i===0?"group":void 0;if(Array.isArray(y)&&y.length>0){var b,C,k,S,_,E=i===0||m&&i===1,$=Gee(r.icon,p,"".concat(l,"-icon ").concat((b=n.props)===null||b===void 0?void 0:b.hashId)),M=u&&E?Yee(v):null,P=x.jsxs("div",{className:Ee("".concat(l,"-item-title"),(C=n.props)===null||C===void 0?void 0:C.hashId,ne(ne(ne(ne({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(a),u),"".concat(l,"-group-item-title"),w==="group"),"".concat(l,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&u)),children:[w==="group"&&u?null:E&&$?x.jsx("span",{className:"".concat(l,"-item-icon ").concat((k=n.props)===null||k===void 0?void 0:k.hashId).trim(),children:$}):M,x.jsx("span",{className:Ee("".concat(l,"-item-text"),(S=n.props)===null||S===void 0?void 0:S.hashId,ne({},"".concat(l,"-item-text-has-icon"),w!=="group"&&E&&($||M))),children:v})]}),R=s?s(q(q({},r),{},{isUrl:!1}),P,n.props):P;if(m&&i===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(y,i+1,i);var O=n.getNavMenuItems(y,i+1,m&&i===0&&n.props.collapsed?i:i+1);return[{type:w,key:r.key||r.path,label:R,onClick:m?void 0:r.onTitleClick,children:O,className:Ee(ne(ne(ne({},"".concat(l,"-group"),w==="group"),"".concat(l,"-submenu"),w!=="group"),"".concat(l,"-submenu-has-icon"),w!=="group"&&E&&$))},m&&i===0?{type:"divider",prefixCls:c,className:"".concat(l,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:g==null||(_=g.layout)===null||_===void 0||(_=_.sider)===null||_===void 0?void 0:_.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(l,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,i,a)}}),ne(this,"getIntlName",function(r){var i=r.name,a=r.locale,o=n.props,s=o.menu,l=o.formatMessage,c=i;return a&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:a,defaultMessage:i})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),ne(this,"getMenuItemPath",function(r,i,a){var o,s,l,c,u=n.conversionPath(r.path||"/"),f=n.props,p=f.location,h=p===void 0?{pathname:"/"}:p,m=f.isMobile,g=f.onCollapse,v=f.menuItemRender,y=f.iconPrefixes,w=n.getIntlName(r),b=n.props,C=b.baseClassName,k=b.menu,S=b.collapsed,_=(k==null?void 0:k.type)==="group",E=i===0||_&&i===1,$=E?Gee(r.icon,y,"".concat(C,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,M=S&&E?Yee(w):null,P=x.jsxs("div",{className:Ee("".concat(C,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,ne(ne(ne({},"".concat(C,"-item-title-collapsed"),S),"".concat(C,"-item-title-collapsed-level-").concat(a),S),"".concat(C,"-item-collapsed-show-title"),(k==null?void 0:k.collapsedShowTitle)&&S)),children:[x.jsx("span",{className:"".concat(C,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:M===null&&!$?"none":""},children:$||x.jsx("span",{className:"anticon",children:M})}),x.jsx("span",{className:Ee("".concat(C,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,ne({},"".concat(C,"-item-text-has-icon"),E&&($||M))),children:w})]},u),R=Rz(u);if(R){var O,j,I;P=x.jsxs("span",{onClick:function(){var F,K;(F=window)===null||F===void 0||(K=F.open)===null||K===void 0||K.call(F,u,"_blank")},className:Ee("".concat(C,"-item-title"),(O=n.props)===null||O===void 0?void 0:O.hashId,ne(ne(ne(ne({},"".concat(C,"-item-title-collapsed"),S),"".concat(C,"-item-title-collapsed-level-").concat(a),S),"".concat(C,"-item-link"),!0),"".concat(C,"-item-collapsed-show-title"),(k==null?void 0:k.collapsedShowTitle)&&S)),children:[x.jsx("span",{className:"".concat(C,"-item-icon ").concat((j=n.props)===null||j===void 0?void 0:j.hashId).trim(),style:{display:M===null&&!$?"none":""},children:$||x.jsx("span",{className:"anticon",children:M})}),x.jsx("span",{className:Ee("".concat(C,"-item-text"),(I=n.props)===null||I===void 0?void 0:I.hashId,ne({},"".concat(C,"-item-text-has-icon"),E&&($||M))),children:w})]},u)}if(v){var A=q(q({},r),{},{isUrl:R,itemPath:u,isMobile:m,replace:u===h.pathname,onClick:function(){return g&&g(!0)},children:void 0});return i===0?x.jsx(Kee,{collapsed:S,title:w,disable:r.disabledTooltip,children:v(A,P,n.props)}):v(A,P,n.props)}return i===0?x.jsx(Kee,{collapsed:S,title:w,disable:r.disabledTooltip,children:P}):P}),ne(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),xOt=function(t,n){var r=n.layout,i=n.collapsed,a={};return t&&!i&&["side","mix"].includes(r||"mix")&&(a={openKeys:t}),a},f2e=function(t){var n=t.mode,r=t.className,i=t.handleOpenChange,a=t.style,o=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,f=t.selectedKeys,p=t.onSelect,h=t.menuRenderType,m=t.openKeys,g=d.useContext(uu),v=g.dark,y=g.token,w="".concat(s,"-base-menu-").concat(n),b=d.useRef([]),C=In(l==null?void 0:l.defaultOpenAll),k=Te(C,2),S=k[0],_=k[1],E=In(function(){return l!=null&&l.defaultOpenAll?qee(o)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:i}),$=Te(E,2),M=$[0],P=$[1],R=In([],{value:f,onChange:p?function(B){p&&B&&p(B)}:void 0}),O=Te(R,2),j=O[0],I=O[1];d.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(P(c),I(c))},[c.join("-")]),d.useEffect(function(){u&&(d2e=_ve({scriptUrl:u}))},[u]),d.useEffect(function(){if(c.join("-")!==(j||[]).join("-")&&I(c),!S&&m!==!1&&c.join("-")!==(M||[]).join("-")){var B=c;(l==null?void 0:l.autoClose)===!1&&(B=Array.from(new Set([].concat(lt(c),lt(M||[]))))),P(B)}else l!=null&&l.ignoreFlatMenu&&S?P(qee(o)):_(!1)},[c.join("-")]);var A=d.useMemo(function(){return xOt(M,t)},[M&&M.join(","),t.layout,t.collapsed]),N=bOt(w,n),F=N.wrapSSR,K=N.hashId,L=d.useMemo(function(){return new wOt(q(q({},t),{},{token:y,menuRenderType:h,baseClassName:w,hashId:K}))},[t,y,h,w,K]);if(l!=null&&l.loading)return x.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:x.jsx(Kf,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(b.current=c);var V=t.postMenuData?t.postMenuData(o):o;return V&&(V==null?void 0:V.length)<1?null:F(d.createElement(ks,q(q({},A),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:b.current,theme:v?"dark":"light",selectedKeys:j,style:q({backgroundColor:"transparent",border:"none"},a),className:Ee(r,K,w,ne(ne({},"".concat(w,"-horizontal"),n==="horizontal"),"".concat(w,"-collapsed"),t.collapsed)),items:L.getNavMenuItems(V,0,0),onOpenChange:function(U){t.collapsed||P(U)}},t.menuProps)))};function SOt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Ci("ProLayoutSiderMenuStylish",function(i){var a=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ne({},"div".concat(i.proComponentsCls,"-layout"),ne({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var COt=["title","render"],_Ot=te.memo(function(e){return x.jsx(x.Fragment,{children:e.children})}),kOt=Qn.Sider,Xee=Qn._InternalSiderContext,EOt=Xee===void 0?{Provider:_Ot}:Xee,CH=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,i=t.title,a=t.layout,o=t[n];if(o===!1)return null;var s=xH(r),l=x.jsx("h1",{children:i??"Ant Design Pro"});return o?o(s,t.collapsed?null:l,t):t.isMobile?null:a==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?x.jsx("a",{children:s},"title"):x.jsxs("a",{children:[s,l]},"title")},Zee=function(t){var n,r=t.collapsed,i=t.originCollapsed,a=t.fixSiderbar,o=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,f=t.onMenuHeaderClick,p=t.breakpoint,h=p===void 0?"lg":p,m=t.style,g=t.layout,v=t.menuExtraRender,y=v===void 0?!1:v,w=t.links,b=t.menuContentRender,C=t.collapsedButtonRender,k=t.prefixCls,S=t.avatarProps,_=t.rightContentRender,E=t.actionsRender,$=t.onOpenChange,M=t.stylish,P=t.logoStyle,R=d.useContext(uu),O=R.hashId,j=d.useMemo(function(){return!(u||g==="mix")},[u,g]),I="".concat(k,"-sider"),A=64,N=SOt("".concat(I,".").concat(I,"-stylish"),{stylish:M,proLayoutCollapsedWidth:A}),F=Ee("".concat(I),O,ne(ne(ne(ne(ne(ne(ne({},"".concat(I,"-fixed"),a),"".concat(I,"-fixed-mix"),g==="mix"&&!u&&a),"".concat(I,"-collapsed"),t.collapsed),"".concat(I,"-layout-").concat(g),g&&!u),"".concat(I,"-light"),l!=="dark"),"".concat(I,"-mix"),g==="mix"&&!u),"".concat(I,"-stylish"),!!M)),K=CH(t),L=y&&y(t),V=d.useMemo(function(){return b!==!1&&d.createElement(f2e,q(q({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:$,style:{width:"100%"},className:"".concat(I,"-menu ").concat(O).trim()}))},[I,O,b,$,t]),B=(w||[]).map(function(ce,pe){return{className:"".concat(I,"-link"),label:ce,key:pe}}),U=d.useMemo(function(){return b?b(t,V):V},[b,V,t]),Y=d.useMemo(function(){if(!S)return null;var ce=S.title,pe=S.render,me=Ht(S,COt),re=x.jsxs("div",{className:"".concat(I,"-actions-avatar"),children:[me!=null&&me.src||me!=null&&me.srcSet||me.icon||me.children?x.jsx(Pi,q({size:28},me)):null,S.title&&!r&&x.jsx("span",{children:ce})]});return pe?pe(S,re,t):re},[S,I,r]),ee=d.useMemo(function(){return E?x.jsx(Xr,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Ee(["".concat(I,"-actions-list"),r&&"".concat(I,"-actions-list-collapsed"),O]),children:[E==null?void 0:E(t)].flat(1).map(function(ce,pe){return x.jsx("div",{className:"".concat(I,"-actions-list-item ").concat(O).trim(),children:ce},pe)})}):null},[E,I,r]),ie=d.useMemo(function(){return x.jsx(SH,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),Z=d.useMemo(function(){if(C===!1)return null;var ce=x.jsx(vOt,{isMobile:u,collapsed:i,className:"".concat(I,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return C?C(r,ce):ce},[C,u,i,I,r,s]),X=d.useMemo(function(){return!Y&&!ee?null:x.jsxs("div",{className:Ee("".concat(I,"-actions"),O,r&&"".concat(I,"-actions-collapsed")),children:[Y,ee]})},[ee,Y,I,r,O]),ae=d.useMemo(function(){var ce;return t!=null&&(ce=t.menu)!==null&&ce!==void 0&&ce.hideMenuWhenCollapsed&&r?"".concat(I,"-hide-menu-collapsed"):null},[I,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),oe=o&&(o==null?void 0:o(t)),le=x.jsxs(x.Fragment,{children:[K&&x.jsxs("div",{className:Ee([Ee("".concat(I,"-logo"),O,ne({},"".concat(I,"-logo-collapsed"),r))]),onClick:j?f:void 0,id:"logo",style:P,children:[K,ie]}),L&&x.jsx("div",{className:Ee(["".concat(I,"-extra"),!K&&"".concat(I,"-extra-no-logo"),O]),children:L}),x.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:U}),x.jsxs(EOt.Provider,{value:{},children:[w?x.jsx("div",{className:"".concat(I,"-links ").concat(O).trim(),children:x.jsx(ks,{inlineIndent:16,className:"".concat(I,"-link-menu ").concat(O).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:B})}):null,j&&x.jsxs(x.Fragment,{children:[X,!ee&&_?x.jsx("div",{className:Ee("".concat(I,"-actions"),O,ne({},"".concat(I,"-actions-collapsed"),r)),children:_==null?void 0:_(t)}):null]}),oe&&x.jsx("div",{className:Ee(["".concat(I,"-footer"),O,ne({},"".concat(I,"-footer-collapsed"),r)]),children:oe})]})]});return N.wrapSSR(x.jsxs(x.Fragment,{children:[a&&!u&&!ae&&x.jsx("div",{style:q({width:r?A:c,overflow:"hidden",flex:"0 0 ".concat(r?A:c,"px"),maxWidth:r?A:c,minWidth:r?A:c,transition:"all 0.2s ease 0s"},m)}),x.jsxs(kOt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:h===!1?void 0:h,onCollapse:function(pe){u||s==null||s(pe)},collapsedWidth:A,style:m,theme:l,width:c,className:Ee(F,O,ae),children:[ae?x.jsx("div",{className:"".concat(I,"-hide-when-collapsed ").concat(O).trim(),style:{height:"100%",width:"100%",opacity:ae?0:1},children:le}):le,Z]})]}))},$Ot=function(t){var n,r,i,a,o;return ne({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,"> div":{height:"44px",color:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function MOt(e){return Ci("ProLayoutRightContent",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[$Ot(n)]})}var TOt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],POt=["title","render"],p2e=function(t){var n=t.rightContentRender,r=t.avatarProps,i=t.actionsRender;t.headerContentRender;var a=Ht(t,TOt),o=d.useContext(zn.ConfigContext),s=o.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=MOt(l),u=c.wrapSSR,f=c.hashId,p=d.useState("auto"),h=Te(p,2),m=h[0],g=h[1],v=d.useMemo(function(){if(!r)return null;var C=r.title,k=r.render,S=Ht(r,POt),_=[S!=null&&S.src||S!=null&&S.srcSet||S.icon||S.children?d.createElement(Pi,q(q({},S),{},{size:28,key:"avatar"})):null,C?x.jsx("span",{style:{marginInlineStart:8},children:C},"name"):void 0];return k?k(r,x.jsx("div",{children:_}),a):x.jsx("div",{children:_})},[r]),y=i||v?function(C){var k=i&&(i==null?void 0:i(C));return!k&&!v?null:Array.isArray(k)?u(x.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[k.filter(Boolean).map(function(S,_){var E=!1;if(te.isValidElement(S)){var $;E=!!(S!=null&&($=S.props)!==null&&$!==void 0&&$["aria-hidden"])}return x.jsx("div",{className:Ee("".concat(l,"-header-actions-item ").concat(f),ne({},"".concat(l,"-header-actions-hover"),!E)),children:S},_)}),v&&x.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]})):u(x.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[k,v&&x.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]}))}:void 0,w=Wht(function(){var C=pa(hr().mark(function k(S){return hr().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:g(S);case 1:case"end":return E.stop()}},k)}));return function(k){return C.apply(this,arguments)}}(),160),b=y||n;return x.jsx("div",{className:"".concat(l,"-right-content ").concat(f).trim(),style:{minWidth:m,height:"100%"},children:x.jsx("div",{style:{height:"100%"},children:x.jsx(Abe,{onResize:function(k){var S=k.width;w.run(S)},children:b?x.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:b(q(q({},a),{},{rightContentSize:m}))}):null})})})},OOt=function(t){var n,r;return ne({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":ne({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function ROt(e){return Ci("ProLayoutTopNavHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[OOt(n)]})}var h2e=function(t){var n,r,i,a,o,s,l,c=d.useRef(null),u=t.onMenuHeaderClick,f=t.contentWidth,p=t.rightContentRender,h=t.className,m=t.style,g=t.headerContentRender,v=t.layout,y=t.actionsRender,w=d.useContext(zn.ConfigContext),b=w.getPrefixCls,C=d.useContext(uu),k=C.dark,S="".concat(t.prefixCls||b("pro"),"-top-nav-header"),_=ROt(S),E=_.wrapSSR,$=_.hashId,M=void 0;t.menuHeaderRender!==void 0?M="menuHeaderRender":(v==="mix"||v==="top")&&(M="headerTitleRender");var P=CH(q(q({},t),{},{collapsed:!1}),M),R=d.useContext(uu),O=R.token,j=d.useMemo(function(){var I,A,N,F,K,L,V,B,U,Y,ee,ie,Z,X=x.jsx(zn,{theme:{hashed:Dv(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:q({},H0e({colorItemBg:((I=O.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorBgHeader)||"transparent",colorSubItemBg:((A=O.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgHeader)||"transparent",radiusItem:O.borderRadius,colorItemBgSelected:((N=O.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemSelected)||(O==null?void 0:O.colorBgTextHover),itemHoverBg:((F=O.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgMenuItemHover)||(O==null?void 0:O.colorBgTextHover),colorItemBgSelectedHorizontal:((K=O.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorBgMenuItemSelected)||(O==null?void 0:O.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((L=O.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenu)||(O==null?void 0:O.colorTextSecondary),colorItemTextHoverHorizontal:((V=O.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive)||(O==null?void 0:O.colorText),colorItemTextSelectedHorizontal:((B=O.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenuSelected)||(O==null?void 0:O.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((U=O.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Y=O.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((ee=O.layout)===null||ee===void 0||(ee=ee.header)===null||ee===void 0?void 0:ee.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:O==null?void 0:O.colorBgElevated,subMenuItemBg:O==null?void 0:O.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:O==null?void 0:O.colorBgElevated}))},token:{colorBgElevated:((ie=O.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgHeader)||"transparent"}},children:x.jsx(f2e,q(q(q({theme:k?"dark":"light"},t),{},{className:"".concat(S,"-base-menu ").concat($).trim()},t.menuProps),{},{style:q({width:"100%"},(Z=t.menuProps)===null||Z===void 0?void 0:Z.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,X):X},[(n=O.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=O.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(i=O.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemHover,(a=O.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenu,(o=O.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(s=O.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=O.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,O.borderRadius,O==null?void 0:O.colorBgTextHover,O==null?void 0:O.colorTextSecondary,O==null?void 0:O.colorText,O==null?void 0:O.colorTextBase,O.colorBgElevated,k,t,S,$,g]);return E(x.jsx("div",{className:Ee(S,$,h,ne({},"".concat(S,"-light"),!0)),style:m,children:x.jsxs("div",{ref:c,className:Ee("".concat(S,"-main"),$,ne({},"".concat(S,"-wide"),f==="Fixed"&&v==="top")),children:[P&&x.jsxs("div",{className:Ee("".concat(S,"-main-left ").concat($)),onClick:u,children:[x.jsx(SH,q({},t)),x.jsx("div",{className:"".concat(S,"-logo ").concat($).trim(),id:"logo",children:P},"logo")]}),x.jsx("div",{style:{flex:1},className:"".concat(S,"-menu ").concat($).trim(),children:j}),(p||y||t.avatarProps)&&x.jsx(p2e,q(q({rightContentRender:p},t),{},{prefixCls:S}))]})}))},IOt=function(t){var n,r,i;return ne({},t.componentCls,ne(ne(ne(ne({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function jOt(e){return Ci("ProLayoutGlobalHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[IOt(n)]})}var NOt=function(t,n){return t===!1?null:t?t(n,null):n},AOt=function(t){var n=t.isMobile,r=t.logo,i=t.collapsed,a=t.onCollapse,o=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,f=t.layout,p=t.children,h=t.splitMenus,m=t.menuData,g=t.prefixCls,v=d.useContext(zn.ConfigContext),y=v.getPrefixCls,w=v.direction,b="".concat(g||y("pro"),"-global-header"),C=jOt(b),k=C.wrapSSR,S=C.hashId,_=Ee(c,b,S);if(f==="mix"&&!n&&h){var E=(m||[]).map(function(R){return q(q({},R),{},{children:void 0,routes:void 0})}),$=D$(E);return x.jsx(h2e,q(q({mode:"horizontal"},t),{},{splitMenus:!1,menuData:$}))}var M=Ee("".concat(b,"-logo"),S,ne(ne(ne({},"".concat(b,"-logo-rtl"),w==="rtl"),"".concat(b,"-logo-mix"),f==="mix"),"".concat(b,"-logo-mobile"),n)),P=x.jsx("span",{className:M,children:x.jsx("a",{children:xH(r)})},"logo");return k(x.jsxs("div",{className:_,style:q({},u),children:[n&&x.jsx("span",{className:"".concat(b,"-collapsed-button ").concat(S).trim(),onClick:function(){a==null||a(!i)},children:x.jsx(yve,{})}),n&&NOt(s,P),f==="mix"&&!n&&x.jsxs(x.Fragment,{children:[x.jsx(SH,q({},t)),x.jsx("div",{className:M,onClick:l,children:CH(q(q({},t),{},{collapsed:!1}),"headerTitleRender")})]}),x.jsx("div",{style:{flex:1},children:p}),(o||t.actionsRender||t.avatarProps)&&x.jsx(p2e,q({rightContentRender:o},t))]}))},DOt=function(t){var n,r,i,a;return ne({},"".concat(t.proComponentsCls,"-layout"),ne({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function FOt(e){return Ci("ProLayoutHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[DOt(n)]})}function LOt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Ci("ProLayoutHeaderStylish",function(i){var a=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ne({},"div".concat(i.proComponentsCls,"-layout"),ne({},"".concat(a.componentCls),n==null?void 0:n(a)))]:[]})}var Qee=Qn.Header,BOt=function(t){var n,r,i,a=t.isMobile,o=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,f=t.onCollapse,p=t.layout,h=t.headerRender,m=t.headerContentRender,g=d.useContext(uu),v=g.token,y=d.useContext(zn.ConfigContext),w=d.useState(!1),b=Te(w,2),C=b[0],k=b[1],S=o||p==="mix",_=d.useCallback(function(){var I=p==="top",A=D$(t.menuData||[]),N=x.jsx(AOt,q(q({onCollapse:f},t),{},{menuData:A,children:m&&m(t,null)}));return I&&!a&&(N=x.jsx(h2e,q(q({mode:"horizontal",onCollapse:f},t),{},{menuData:A}))),h&&typeof h=="function"?h(t,N):N},[m,h,a,p,f,t]);d.useEffect(function(){var I,A=(y==null||(I=y.getTargetContainer)===null||I===void 0?void 0:I.call(y))||document.body,N=function(){var K,L=A.scrollTop;return L>(((K=v.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.heightLayoutHeader)||56)&&!C?(k(!0),!0):(C&&k(!1),!1)};if(S&&!(typeof window>"u"))return A.addEventListener("scroll",N,{passive:!0}),function(){A.removeEventListener("scroll",N)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,S,C]);var E=p==="top",$="".concat(u,"-layout-header"),M=FOt($),P=M.wrapSSR,R=M.hashId,O=LOt("".concat($,".").concat($,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),j=Ee(s,R,$,ne(ne(ne(ne(ne(ne(ne({},"".concat($,"-fixed-header"),S),"".concat($,"-fixed-header-scroll"),C),"".concat($,"-mix"),p==="mix"),"".concat($,"-fixed-header-action"),!c),"".concat($,"-top-menu"),E),"".concat($,"-header"),!0),"".concat($,"-stylish"),!!t.stylish));return p==="side"&&!a?null:O.wrapSSR(P(x.jsx(x.Fragment,{children:x.jsxs(zn,{theme:{hashed:Dv(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[S&&x.jsx(Qee,{style:q({height:((r=v.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=v.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),x.jsx(Qee,{className:j,style:l,children:_()})]})})))};const zOt={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},HOt=q({},zOt),UOt={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},WOt=q({},UOt),VOt={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},qOt=q({},VOt),KOt={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},GOt=q({},KOt),YOt={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},XOt=q({},YOt);var Jee={"zh-CN":GOt,"zh-TW":XOt,"en-US":HOt,"it-IT":WOt,"ko-KR":qOt},ZOt=function(){if(!Oz())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},QOt=function(){var t=ZOt();return Jee[t]||Jee["zh-CN"]},Jy={},ete=oi&&oi.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},tte=oi&&oi.__classPrivateFieldSet||function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},X1;Object.defineProperty(Jy,"__esModule",{value:!0});Jy.TokenData=void 0;Jy.parse=kH;Jy.compile=oRt;var YN=Jy.match=cRt;const m2e="/",_H=e=>e,JOt=/^[$_\p{ID_Start}]$/u,eRt=/^[$\u200c\u200d\p{ID_Continue}]$/u,r5="https://git.new/pathToRegexpError",tRt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function _3(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function nRt(e){return e.sensitive?"s":"is"}function*rRt(e){const t=[...e];let n=0;function r(){let i="";if(JOt.test(t[++n]))for(i+=t[n];eRt.test(t[++n]);)i+=t[n];else if(t[n]==='"'){let a=n;for(;nsRt(i,t,n));return i=>{const a=[""];for(const o of r){const[s,...l]=o(i);a[0]+=s,a.push(...l)}return a}}function sRt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const i=g2e(e.tokens,t,n);return a=>{const[o,...s]=i(a);return s.length?[""]:[o]}}const r=n||_H;return e.type==="wildcard"&&n!==!1?i=>{const a=i[e.name];if(a==null)return["",e.name];if(!Array.isArray(a)||a.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[a.map((o,s)=>{if(typeof o!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(o)}).join(t)]}:i=>{const a=i[e.name];if(a==null)return["",e.name];if(typeof a!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(a)]}}function lRt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=m2e,end:i=!0,trailing:a=!0}=t,o=nRt(t),s=[],l=[];for(const{tokens:p}of e)for(const h of g_(p,0,[])){const m=uRt(h,r,l);s.push(m)}let c=`^(?:${s.join("|")})`;a&&(c+=`(?:${_3(r)}$)?`),c+=i?"$":`(?=${_3(r)}|$)`;const u=new RegExp(c,o),f=l.map(p=>n===!1?_H:p.type==="param"?n:h=>h.split(r).map(n));return Object.assign(function(h){const m=u.exec(h);if(!m)return!1;const{0:g}=m,v=Object.create(null);for(let y=1;yi instanceof F$?i:kH(i,t));return lRt(r,t)}function*g_(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const i=n.slice();for(const a of g_(r.tokens,0,i))yield*g_(e,t+1,a)}else n.push(r);yield*g_(e,t+1,n)}function uRt(e,t,n){let r="",i="",a=!0;for(let o=0;oi.length===1)?`[^${_3(n.join(""))}]`:`(?:(?!${n.map(_3).join("|")}).)`}var fRt=function(t,n,r){if(r){var i=lt(r.keys()).find(function(o){try{return o.startsWith("http")?!1:YN(o)(t)}catch(s){return console.log("key",o,s),!1}});if(i)return r.get(i)}if(n){var a=Object.keys(n).find(function(o){try{return o!=null&&o.startsWith("http")?!1:YN(o)(t)}catch(s){return console.log("key",o,s),!1}});if(a)return n[a]}return{path:""}},nte=function(t,n){var r=t.pathname,i=r===void 0?"/":r,a=t.breadcrumb,o=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,f=n?"":l||"",p=fRt(i,a,o);if(!p)return{title:f,id:"",pageName:f};var h=p.name;return u.locale!==!1&&p.locale&&s&&(h=s({id:p.locale||"",defaultMessage:p.name})),h?n||!l?{title:h,id:p.locale||"",pageName:h}:{title:"".concat(h," - ").concat(l),id:p.locale||"",pageName:h}:{title:f,id:p.locale||"",pageName:f}},ms={};function XN(e){"@babel/helpers - typeof";return XN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},XN(e)}Object.defineProperty(ms,"__esModule",{value:!0});var iw=ms.pathToRegexp=ms.tokensToRegexp=ms.regexpToFunction=ms.match=ms.tokensToFunction=ms.compile=ms.parse=void 0;function pRt(e){for(var t=[],n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:i}),n=a;continue}if(r==="("){var s=1,l="",a=n+1;if(e[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:C===void 0;i||(h+="(?:"+p+"(?="+f+"))?"),k||(h+="(?="+p+"|"+f+")")}return new RegExp(h,$H(n))}ms.tokensToRegexp=b2e;function MH(e,t,n){return e instanceof RegExp?gRt(e,t):Array.isArray(e)?vRt(e,t,n):yRt(e,t,n)}iw=ms.pathToRegexp=MH;function dd(e,t){return t>>>e|t<<32-e}function bRt(e,t,n){return e&t^~e&n}function wRt(e,t,n){return e&t^e&n^t&n}function xRt(e){return dd(2,e)^dd(13,e)^dd(22,e)}function SRt(e){return dd(6,e)^dd(11,e)^dd(25,e)}function CRt(e){return dd(7,e)^dd(18,e)^e>>>3}function _Rt(e){return dd(17,e)^dd(19,e)^e>>>10}function kRt(e,t){return e[t&15]+=_Rt(e[t+14&15])+e[t+9&15]+CRt(e[t+1&15])}var ERt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Ei,Lo,Aa,$Rt="0123456789abcdef";function rte(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function MRt(){Ei=new Array(8),Lo=new Array(2),Aa=new Array(64),Lo[0]=Lo[1]=0,Ei[0]=1779033703,Ei[1]=3144134277,Ei[2]=1013904242,Ei[3]=2773480762,Ei[4]=1359893119,Ei[5]=2600822924,Ei[6]=528734635,Ei[7]=1541459225}function ZN(){var e,t,n,r,i,a,o,s,l,c,u=new Array(16);e=Ei[0],t=Ei[1],n=Ei[2],r=Ei[3],i=Ei[4],a=Ei[5],o=Ei[6],s=Ei[7];for(var f=0;f<16;f++)u[f]=Aa[(f<<2)+3]|Aa[(f<<2)+2]<<8|Aa[(f<<2)+1]<<16|Aa[f<<2]<<24;for(var p=0;p<64;p++)l=s+SRt(i)+bRt(i,a,o)+ERt[p],p<16?l+=u[p]:l+=kRt(u,p),c=xRt(e)+wRt(e,t,n),s=o,o=a,a=i,i=rte(r,l),r=n,n=t,t=e,e=rte(l,c);Ei[0]+=e,Ei[1]+=t,Ei[2]+=n,Ei[3]+=r,Ei[4]+=i,Ei[5]+=a,Ei[6]+=o,Ei[7]+=s}function TRt(e,t){var n,r,i=0;r=Lo[0]>>3&63;var a=t&63;for((Lo[0]+=t<<3)>29,n=0;n+63>3&63;if(Aa[e++]=128,e<=56)for(var t=e;t<56;t++)Aa[t]=0;else{for(var n=e;n<64;n++)Aa[n]=0;ZN();for(var r=0;r<56;r++)Aa[r]=0}Aa[56]=Lo[1]>>>24&255,Aa[57]=Lo[1]>>>16&255,Aa[58]=Lo[1]>>>8&255,Aa[59]=Lo[1]&255,Aa[60]=Lo[0]>>>24&255,Aa[61]=Lo[0]>>>16&255,Aa[62]=Lo[0]>>>8&255,Aa[63]=Lo[0]&255,ZN()}function ORt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=$Rt.charAt(Ei[t]>>>n&15);return e}function RRt(e){return MRt(),TRt(e,e.length),PRt(),ORt()}function QN(e){"@babel/helpers - typeof";return QN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QN(e)}var IRt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function jRt(e,t){return DRt(e)||ARt(e,t)||TH(e,t)||NRt()}function NRt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ARt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function DRt(e){if(Array.isArray(e))return e}function FRt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=TH(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function LRt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BRt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qRt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function k3(e,t){return k3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},k3(e,t)}function E3(e){return E3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},E3(e)}function ite(e){return YRt(e)||GRt(e)||TH(e)||KRt()}function KRt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TH(e,t){if(e){if(typeof e=="string")return eA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eA(e,t)}}function GRt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YRt(e){if(Array.isArray(e))return eA(e)}function eA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZRt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function ate(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Da(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||PH(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},tIt=function(t,n){var r=t.menu,i=r===void 0?{}:r,a=t.indexRoute,o=t.path,s=o===void 0?"":o,l=t.children||[],c=i.name,u=c===void 0?t.name:c,f=i.icon,p=f===void 0?t.icon:f,h=i.hideChildren,m=h===void 0?t.hideChildren:h,g=i.flatMenu,v=g===void 0?t.flatMenu:g,y=a&&Object.keys(a).join(",")!=="redirect"?[Da({path:s,menu:i},a)].concat(l||[]):l,w=Da({},t);if(u&&(w.name=u),p&&(w.icon=p),y&&y.length){if(m)return delete w.children,w;var b=OH(Da(Da({},n),{},{data:y}),t);if(v)return b;delete w[kl]}return w},Xm=function(t){return Array.isArray(t)&&t.length>0};function OH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,i=e.parentName,a=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Xm(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var s,l;return!(o==null||(s=o.menu)===null||s===void 0)&&s.name||o!=null&&o.flatMenu||!(o==null||(l=o.menu)===null||l===void 0)&&l.flatMenu?!0:o.menu!==!1}).map(function(o){var s=Da(Da({},o),{},{path:o.path||o.originPath});return!s.children&&s[kl]&&(s.children=s[kl],delete s[kl]),s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=o.children||o[kl]||[],l=x2e(o.path,t?t.path:"/"),c=o.name,u=eIt(o,i||"menu"),f=u!==!1&&a!==!1&&r&&u?r({id:u,defaultMessage:c}):c,p=t.pro_layout_parentKeys,h=p===void 0?[]:p;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=XRt(t,IRt),g=new Set([].concat(ite(h),ite(o.parentKeys||[])));t.key&&g.add(t.key);var v=Da(Da(Da({},m),{},{menu:void 0},o),{},{path:l,locale:u,key:o.key||JRt(Da(Da({},o),{},{path:l})),pro_layout_parentKeys:Array.from(g).filter(function(w){return w&&w!=="/"})});if(f?v.name=f:delete v.name,v.menu===void 0&&delete v.menu,Xm(s)){var y=OH(Da(Da({},e),{},{data:s,parentName:u||""}),v);Xm(y)&&(v.children=y)}return tIt(v,e)}).flat(1)}var nIt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Xm(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=Da({},n),i=r.children||n[kl]||[];if(delete r[kl],Xm(i)&&!r.hideChildrenInMenu&&i.some(function(o){return o&&!!o.name})){var a=e(i);if(a.length)return Da(Da({},r),{},{children:a})}return Da({},n)}).filter(function(n){return n})},rIt=function(e){HRt(n,e);var t=URt(n);function n(){return LRt(this,n),t.apply(this,arguments)}return zRt(n,[{key:"get",value:function(i){var a;try{var o=FRt(this.entries()),s;try{for(o.s();!(s=o.n()).done;){var l=jRt(s.value,2),c=l[0],u=l[1],f=ix(c);if(!PH(c)&&iw(f,[]).test(i)){a=u;break}}}catch(p){o.e(p)}finally{o.f()}}catch{a=void 0}return a}}]),n}(JN(Map)),iIt=function(t){var n=new rIt,r=function i(a,o){a.forEach(function(s){var l=s.children||s[kl]||[];Xm(l)&&i(l,s);var c=x2e(s.path,o?o.path:"/");n.set(ix(c),s)})};return r(t),n},aIt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[kl];if(Xm(r)){var i=e(r);if(i.length)return Da({},n)}var a=Da({},n);return delete a[kl],delete a.children,a}).filter(function(n){return n})},oIt=function(t,n,r,i){var a=OH({data:t,formatMessage:r,locale:n}),o=i?aIt(a):nIt(a),s=iIt(a);return{breadcrumb:s,menuData:o}};function ote(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yb(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var i=Yb({},r);if(!(!i||!i.key)){!i.children&&i[kl]&&(i.children=i[kl],delete i[kl]);var a=i.children||[];n[ix(i.path||i.key||"/")]=Yb({},i),n[i.key||i.path||"/"]=Yb({},i),a&&(n=Yb(Yb({},n),e(a)))}}),n},cIt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(i){if(i==="/"&&n==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!PH(i)){var a=ix(i);try{if(r&&iw("".concat(a)).test(n)||iw("".concat(a),[]).test(n)||iw("".concat(a,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(i,a){return i===n?10:a===n?-10:i.substr(1).split("/").length-a.substr(1).split("/").length})},uIt=function(t,n,r,i){var a=lIt(n),o=Object.keys(a),s=cIt(o,t||"/",i);return!s||s.length<1?[]:s.map(function(l){var c=a[l]||{pro_layout_parentKeys:"",key:""},u=new Map,f=(c.pro_layout_parentKeys||[]).map(function(p){return u.has(p)?null:(u.set(p,!0),a[p])}).filter(function(p){return p});return c.key&&f.push(c),f}).flat(1)},dIt=function(t){var n=d.useContext(uu),r=n.hashId,i=t.style,a=t.prefixCls,o=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=Ee("".concat(a,"-content"),r,ne(ne({},"".concat(a,"-has-header"),t.hasHeader),"".concat(a,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||kht;return t.ErrorBoundary===!1?x.jsx(Qn.Content,{className:c,style:i,children:o}):x.jsx(u,{children:x.jsx(Qn.Content,{className:c,style:i,children:o})})},fIt=function(){return x.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[x.jsxs("defs",{children:[x.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[x.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),x.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[x.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),x.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),x.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[x.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),x.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),x.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),x.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[x.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),x.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),x.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),x.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:x.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:x.jsx("g",{transform:"translate(20.000000, 20.000000)",children:x.jsxs("g",{children:[x.jsxs("g",{fillRule:"nonzero",children:[x.jsxs("g",{children:[x.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),x.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),x.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),x.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},ste=new ir("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),pIt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h;return ne({},"".concat(t.proComponentsCls,"-layout"),ne(ne(ne({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,ne(ne(ne(ne(ne(ne(ne(ne(ne({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),ne(ne({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuTitle,animationName:ste,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":ne({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:ste,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((p=t.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px")}}))};function hIt(e,t){var n=t.proLayoutCollapsedWidth;return Ci("ProLayoutSiderMenu",function(r){var i=q(q({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[pIt(i)]})}var lte=function(t){var n,r=t.isMobile,i=t.siderWidth,a=t.collapsed,o=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,f=t.getContainer,p=d.useContext(uu),h=p.token;d.useEffect(function(){r===!0&&(o==null||o(!0))},[r]);var m=Dl(t,["className","style"]),g=te.useContext(zn.ConfigContext),v=g.direction,y=hIt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),w=y.wrapSSR,b=y.hashId,C=Ee("".concat(u,"-sider"),l,b);if(c)return null;var k=u$(!a,function(){return o==null?void 0:o(!0)});return w(r?x.jsx(Sh,q(q({placement:v==="rtl"?"right":"left",className:Ee("".concat(u,"-drawer-sider"),l)},k),{},{style:q({padding:0,height:"100vh"},s),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:i,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=h.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:x.jsx(Zee,q(q({},m),{},{isMobile:!0,className:C,collapsed:r?!1:a,splitMenus:!1,originCollapsed:a}))})):x.jsx(Zee,q(q({className:C,originCollapsed:a},m),{},{style:s})))},mIt=function(){var t;return typeof process>"u"?If:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||If},gIt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v,y,w,b,C,k,S,_,E,$,M,P,R,O,j,I,A,N;return(n=mIt())!==null&&n!==void 0&&n.startsWith("5")?{}:ne(ne(ne({},t.componentCls,ne(ne({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(S={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(S,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),ne(ne({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),ne({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active, `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(t.antCls,"-menu-light"),ne({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,`-menu-submenu-active, @@ -628,56 +628,56 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(t.antCls,"-menu-submenu-title:hover"),ne({color:(E=t.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:($=t.layout)===null||$===void 0||($=$.header)===null||$===void 0?void 0:$.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(M=t.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(P=t.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(R=t.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),ne(ne(ne(ne({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),ne({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active, `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(O=t.layout)===null||O===void 0||(O=O.sider)===null||O===void 0?void 0:O.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(j=t.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ne(ne({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(I=t.layout)===null||I===void 0||(I=I.sider)===null||I===void 0?void 0:I.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, - `).concat(t.antCls,"-menu-submenu-title:hover"),ne({color:(A=t.layout)===null||A===void 0||(A=A.sider)===null||A===void 0?void 0:A.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(N=t.layout)===null||N===void 0||(N=N.sider)===null||N===void 0?void 0:N.colorTextMenuActive}))))},yIt=function(t){var n,r,i,a;return ne(ne({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,ne(ne(ne(ne({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(i=t.layout)===null||i===void 0||(i=i.pageContainer)===null||i===void 0?void 0:i.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(a=t.layout)===null||a===void 0?void 0:a.bgLayout}))};function bIt(e){return Ci("ProLayout",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[yIt(n),vIt(n)]})}function wIt(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var xIt=function(){var t;return typeof process>"u"?If:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||If},SIt=function(t,n,r){var i=t,a=i.breadcrumbName,o=i.title,s=i.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?x.jsx("span",{children:o||a}):x.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:o||a})},CIt=function(t,n){var r=n.formatMessage,i=n.menu;return t.locale&&r&&(i==null?void 0:i.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},_It=function(t,n){var r=t.get(n);if(!r){var i=Array.from(t.keys())||[],a=i.find(function(o){try{return o!=null&&o.startsWith("http")?!1:YN(o.replace("?",""))(n)}catch(s){return console.log("path",o,s),!1}});a&&(r=t.get(a))}return r||{path:""}},kIt=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},EIt=function(t,n,r){var i=wIt(t==null?void 0:t.pathname),a=i.map(function(o){var s=_It(n,o),l=CIt(s,r),c=s.hideInBreadcrumb;return l&&!c?{linkPath:o,breadcrumbName:l,title:l,component:s.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return a},$It=function(t){var n=kIt(t),r=n.location,i=n.breadcrumbMap;return r&&r.pathname&&i?EIt(r,i,t):[]},MIt=function(t,n){var r=t.breadcrumbRender,i=t.itemRender,a=n.breadcrumbProps||{},o=a.minLength,s=o===void 0?2:o,l=$It(t),c=function(p){for(var h=i||SIt,m=arguments.length,g=new Array(m>1?m-1:0),v=1;v-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function TIt(e){return lt(e).reduce(function(t,n){var r=Te(n,2),i=r[0],a=r[1];return t[i]=a,t},{})}var PIt=function e(t,n,r,i){var a=sIt(t,(n==null?void 0:n.locale)||!1,r,!0),o=a.menuData,s=a.breadcrumb;return i?e(i(o),n,r,void 0):{breadcrumb:TIt(s),breadcrumbMap:s,menuData:o}},OIt=function(t){var n=d.useState({}),r=Te(n,2),i=r[0],a=r[1];return d.useEffect(function(){a(lc({layout:Kt(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),i},RIt=["id","defaultMessage"],IIt=["fixSiderbar","navTheme","layout"],cte=0,jIt=function(t,n){var r;return t.headerRender===!1||t.pure?null:x.jsx(zOt,q(q({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},NIt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(q({},t),x.jsx(aOt,{})):null},AIt=function(t,n){var r,i=t.layout,a=t.isMobile,o=t.selectedKeys,s=t.openKeys,l=t.splitMenus,c=t.suppressSiderWhenMenuEmpty,u=t.menuRender;if(t.menuRender===!1||t.pure)return null;var f=t.menuData;if(l&&(s!==!1||i==="mix")&&!a){var p=o||n,h=Te(p,1),m=h[0];if(m){var g;f=((g=t.menuData)===null||g===void 0||(g=g.find(function(b){return b.key===m}))===null||g===void 0?void 0:g.children)||[]}else f=[]}var v=D$(f||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(i==="top"&&!a){var y;return x.jsx(lte,q(q({matchMenuKeys:n},t),{},{hide:!0,stylish:(y=t.stylish)===null||y===void 0?void 0:y.sider}))}var w=x.jsx(lte,q(q({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,w):w},DIt=function(t,n){var r=n.pageTitleRender,i=nte(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var a=r(t,i.title,i);if(typeof a=="string")return nte(q(q({},i),{},{title:a}));Br(typeof a=="string","pro-layout: renderPageTitle return value should be a string")}return i},FIt=function(t,n,r){return t?n?64:r:0},LIt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v=t||{},y=v.children,w=v.onCollapse,b=v.location,C=b===void 0?{pathname:"/"}:b,k=v.contentStyle,S=v.route,_=v.defaultCollapsed,E=v.style,$=v.siderWidth,M=v.menu,P=v.siderMenuType,R=v.isChildrenLayout,O=v.menuDataRender,j=v.actionRef,I=v.bgLayoutImgList,A=v.formatMessage,N=v.loading,F=d.useMemo(function(){return $||(t.layout==="mix"?215:256)},[t.layout,$]),K=d.useContext(zn.ConfigContext),L=(n=t.prefixCls)!==null&&n!==void 0?n:K.getPrefixCls("pro"),V=In(!1,{value:M==null?void 0:M.loading,onChange:M==null?void 0:M.onLoadingChange}),B=Te(V,2),U=B[0],Y=B[1],ee=d.useState(function(){return cte+=1,"pro-layout-".concat(cte)}),ie=Te(ee,1),Z=ie[0],X=d.useCallback(function(vt){var At=vt.id,dt=vt.defaultMessage,De=Ht(vt,RIt);if(A)return A(q({id:At,defaultMessage:dt},De));var Ye=JOt();return Ye[At]?Ye[At]:dt},[A]),ae=Tz([Z,M==null?void 0:M.params],function(){var vt=pa(hr().mark(function At(dt){var De,Ye,ot,Re;return hr().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return Ye=Te(dt,2),ot=Ye[1],Y(!0),rt.next=4,M==null||(De=M.request)===null||De===void 0?void 0:De.call(M,ot||{},(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[]);case 4:return Re=rt.sent,Y(!1),rt.abrupt("return",Re);case 7:case"end":return rt.stop()}},At)}));return function(At){return vt.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),oe=ae.data,le=ae.mutate,ce=ae.isLoading;d.useEffect(function(){Y(ce)},[ce]);var pe=Mz(),me=pe.cache;d.useEffect(function(){return function(){me instanceof Map&&me.delete(Z)}},[]);var re=d.useMemo(function(){return PIt(oe||(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[],M,X,O)},[X,M,O,oe,S==null?void 0:S.children,S==null?void 0:S.routes]),fe=re||{},ve=fe.breadcrumb,$e=fe.breadcrumbMap,Ce=fe.menuData,be=Ce===void 0?[]:Ce;j&&M!==null&&M!==void 0&&M.request&&(j.current={reload:function(){le()}});var Se=d.useMemo(function(){return dIt(C.pathname||"/",be||[])},[C.pathname,be]),we=d.useMemo(function(){return Array.from(new Set(Se.map(function(vt){return vt.key||vt.path||""})))},[Se]),se=Se[Se.length-1]||{},ye=OIt(se),Oe=q(q({},t),ye),z=Oe.fixSiderbar;Oe.navTheme;var H=Oe.layout,G=Ht(Oe,IIt),de=P1t(),xe=d.useMemo(function(){return(de==="sm"||de==="xs")&&!t.disableMobile},[de,t.disableMobile]),he=H!=="top"&&!xe,Ue=In(function(){return _!==void 0?_:!!(xe||de==="md")},{value:t.collapsed,onChange:w}),We=Te(Ue,2),ge=We[0],ze=We[1],Ve=Fl(q(q(q({prefixCls:L},t),{},{siderWidth:F},ye),{},{formatMessage:X,breadcrumb:ve,menu:q(q({},M),{},{type:P||(M==null?void 0:M.type),loading:U}),layout:H}),["className","style","breadcrumbRender"]),Be=DIt(q(q({pathname:C.pathname},Ve),{},{breadcrumbMap:$e}),t),Xe=MIt(q(q({},Ve),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:$e}),t),Ke=AIt(q(q({},Ve),{},{menuData:be,onCollapse:ze,isMobile:xe,collapsed:ge}),we),qe=jIt(q(q({},Ve),{},{children:null,hasSiderMenu:!!Ke,menuData:be,isMobile:xe,collapsed:ge,onCollapse:ze}),we),Et=NIt(q({isMobile:xe,collapsed:ge},Ve)),ut=d.useContext(Bee),gt=ut.isChildrenLayout,Qe=R!==void 0?R:gt,nt="".concat(L,"-layout"),jt=bIt(nt),Lt=jt.wrapSSR,Bt=jt.hashId,Ut=Ee(t.className,Bt,"ant-design-pro",nt,ne(ne(ne(ne(ne({},"screen-".concat(de),de),"".concat(nt,"-top-menu"),H==="top"),"".concat(nt,"-is-children"),Qe),"".concat(nt,"-fix-siderbar"),z),"".concat(nt,"-").concat(H),H)),Ne=FIt(!!he,ge,F),He={position:"relative"};(Qe||k&&k.minHeight)&&(He.minHeight=0),d.useEffect(function(){var vt;(vt=t.onPageChange)===null||vt===void 0||vt.call(t,t.location)},[C.pathname,(r=C.pathname)===null||r===void 0?void 0:r.search]);var Le=d.useState(!1),Je=Te(Le,2),pt=Je[0],xt=Je[1],Nt=d.useState(0),Ot=Te(Nt,2),Pt=Ot[0],st=Ot[1];Zht(Be,t.title||!1);var Ct=d.useContext(uu),kt=Ct.token,qt=d.useMemo(function(){return I&&I.length>0?I==null?void 0:I.map(function(vt,At){return x.jsx("img",{src:vt.src,style:q({position:"absolute"},vt)},At)}):null},[I]);return Lt(x.jsx(Bee.Provider,{value:q(q({},Ve),{},{breadcrumb:Xe,menuData:be,isMobile:xe,collapsed:ge,hasPageContainer:Pt,setHasPageContainer:st,isChildrenLayout:!0,title:Be.pageName,hasSiderMenu:!!Ke,hasHeader:!!qe,siderWidth:Ne,hasFooter:!!Et,hasFooterToolbar:pt,setHasFooterToolbar:xt,pageTitleInfo:Be,matchMenus:Se,matchMenuKeys:we,currentMenu:se}),children:t.pure?x.jsx(x.Fragment,{children:y}):x.jsxs("div",{className:Ut,children:[qt||(i=kt.layout)!==null&&i!==void 0&&i.bgLayout?x.jsx("div",{className:Ee("".concat(nt,"-bg-list"),Bt),children:qt}):null,x.jsxs(Qn,{style:q({minHeight:"100%",flexDirection:Ke?"row":void 0},E),children:[x.jsx(zn,{theme:{hashed:Dv(),token:{controlHeightLG:((a=kt.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.menuHeight)||(kt==null?void 0:kt.controlHeightLG)},components:{Menu:U0e({colorItemBg:((o=kt.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((s=kt.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:kt.borderRadius,colorItemBgSelected:((l=kt.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(kt==null?void 0:kt.colorBgTextHover),colorItemBgHover:((c=kt.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(kt==null?void 0:kt.colorBgTextHover),colorItemBgActive:((u=kt.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(kt==null?void 0:kt.colorBgTextActive),colorItemBgSelectedHorizontal:((f=kt.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(kt==null?void 0:kt.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((p=kt.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenu)||(kt==null?void 0:kt.colorTextSecondary),colorItemTextHover:((h=kt.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=kt.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:kt==null?void 0:kt.colorBgElevated,subMenuItemBg:kt==null?void 0:kt.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:kt==null?void 0:kt.colorBgElevated})}},children:Ke}),x.jsxs("div",{style:He,className:"".concat(nt,"-container ").concat(Bt).trim(),children:[qe,x.jsx(fIt,q(q({hasPageContainer:Pt,isChildrenLayout:Qe},G),{},{hasHeader:!!qe,prefixCls:nt,style:k,children:N?x.jsx(eOt,{}):y})),Et,pt&&x.jsx("div",{className:"".concat(nt,"-has-footer"),style:{height:64,marginBlockStart:(g=kt.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},C2e=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return x.jsx(zn,{theme:n?{token:{colorPrimary:n}}:void 0,children:x.jsx(c$,q(q({},r),{},{token:t.token,prefixCls:t.prefixCls,children:x.jsx(LIt,q(q({logo:x.jsx(pIt,{})},d2e),{},{location:Oz()?window.location:void 0},t))}))})};async function BIt(){return bn("/kaptcha/api/v1/get",{method:"GET",params:{client:kn}})}async function zIt(e,t){return bn("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:kn}})}var tA=function(e,t){return tA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},tA(e,t)};function Tc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Gn=function(){return Gn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u"&&(a=e.call(this,r),t.set(i,a)),a}function k2e(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function RH(e,t,n,r,i){return n.bind(t,e,r,i)}function UIt(e,t){var n=e.length===1?_2e:k2e;return RH(e,this,n,t.cache.create(),t.serializer)}function WIt(e,t){return RH(e,this,k2e,t.cache.create(),t.serializer)}function VIt(e,t){return RH(e,this,_2e,t.cache.create(),t.serializer)}var qIt=function(){return JSON.stringify(arguments)};function IH(){this.cache=Object.create(null)}IH.prototype.get=function(e){return this.cache[e]};IH.prototype.set=function(e,t){this.cache[e]=t};var KIt={create:function(){return new IH}},vs={variadic:WIt,monadic:VIt};function E2e(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}gs(function(){for(var e,t=[],n=0;n0}),n=[],r=0,i=t;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(tjt,function(l,c,u,f,p,h){if(c)t.minimumIntegerDigits=u.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(A2e.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(dte.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(dte,function(l,c,u,f,p,h){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:p&&h?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var a=i.options[0];a==="w"?t=Gn(Gn({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Gn(Gn({},t),fte(a)));continue}if(N2e.test(i.stem)){t=Gn(Gn({},t),fte(i.stem));continue}var o=D2e(i.stem);o&&(t=Gn(Gn({},t),o));var s=njt(i.stem);s&&(t=Gn(Gn({},t),s))}return t}var GS={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ijt(e,t){for(var n="",r=0;r>1),l="a",c=ajt(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function ajt(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=GS[r||""]||GS[n||""]||GS["".concat(n,"-001")]||GS["001"];return i[0]}var GT,ojt=new RegExp("^".concat(j2e.source,"*")),sjt=new RegExp("".concat(j2e.source,"*$"));function Wr(e,t){return{start:e,end:t}}var ljt=!!String.prototype.startsWith&&"_a".startsWith("a",1),cjt=!!String.fromCodePoint,ujt=!!Object.fromEntries,djt=!!String.prototype.codePointAt,fjt=!!String.prototype.trimStart,pjt=!!String.prototype.trimEnd,hjt=!!Number.isSafeInteger,mjt=hjt?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},rA=!0;try{var gjt=L2e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rA=((GT=gjt.exec("a"))===null||GT===void 0?void 0:GT[0])==="a"}catch{rA=!1}var hte=ljt?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},iA=cjt?String.fromCodePoint:function(){for(var t=[],n=0;na;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},mte=ujt?Object.fromEntries:function(t){for(var n={},r=0,i=t;r=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},vjt=fjt?function(t){return t.trimStart()}:function(t){return t.replace(ojt,"")},yjt=pjt?function(t){return t.trimEnd()}:function(t){return t.replace(sjt,"")};function L2e(e,t){return new RegExp(e,t)}var aA;if(rA){var gte=L2e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");aA=function(t,n){var r;gte.lastIndex=n;var i=gte.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else aA=function(t,n){for(var r=[];;){var i=F2e(t,n);if(i===void 0||B2e(i)||Sjt(i))break;r.push(i),n+=i>=65536?2:1}return iA.apply(void 0,r)};var bjt=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:Ni.pound,location:Wr(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Hr.UNMATCHED_CLOSING_TAG,Wr(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&oA(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ni.literal,value:"<".concat(i,"/>"),location:Wr(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:Ni.tag,value:i,children:o,location:Wr(r,this.clonePosition())},err:null}:this.error(Hr.INVALID_TAG,Wr(s,this.clonePosition())))}else return this.error(Hr.UNCLOSED_TAG,Wr(r,this.clonePosition()))}else return this.error(Hr.INVALID_TAG,Wr(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&xjt(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=Wr(r,this.clonePosition());return{val:{type:Ni.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wjt(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return iA.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),iA(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Hr.EMPTY_ARGUMENT,Wr(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Hr.MALFORMED_ARGUMENT,Wr(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ni.argument,value:i,location:Wr(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(Hr.MALFORMED_ARGUMENT,Wr(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=aA(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=Wr(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Hr.EXPECT_ARGUMENT_TYPE,Wr(o,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=yjt(f.val);if(p.length===0)return this.error(Hr.EXPECT_ARGUMENT_STYLE,Wr(this.clonePosition(),this.clonePosition()));var h=Wr(u,this.clonePosition());c={style:p,styleLocation:h}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var g=Wr(i,this.clonePosition());if(c&&hte(c==null?void 0:c.style,"::",0)){var v=vjt(c.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(v,c.styleLocation);return f.err?f:{val:{type:Ni.number,value:r,location:g,style:f.val},err:null}}else{if(v.length===0)return this.error(Hr.EXPECT_DATE_TIME_SKELETON,g);var y=v;this.locale&&(y=ijt(v,this.locale));var p={type:X0.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?ZIt(y):{}},w=s==="date"?Ni.date:Ni.time;return{val:{type:w,value:r,location:g,style:p},err:null}}}return{val:{type:s==="number"?Ni.number:s==="date"?Ni.date:Ni.time,value:r,location:g,style:(a=c==null?void 0:c.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Hr.EXPECT_SELECT_ARGUMENT_OPTIONS,Wr(b,Gn({},b)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(Hr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Wr(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Hr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Hr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),C=this.parseIdentifierIfPossible(),k=f.val}var S=this.tryParsePluralOrSelectOptions(t,s,n,C);if(S.err)return S;var m=this.tryParseArgumentClose(i);if(m.err)return m;var _=Wr(i,this.clonePosition());return s==="select"?{val:{type:Ni.select,value:r,options:mte(S.val),location:_},err:null}:{val:{type:Ni.plural,value:r,options:mte(S.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(Hr.INVALID_ARGUMENT_TYPE,Wr(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Hr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Wr(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=JIt(t)}catch{return this.error(Hr.INVALID_NUMBER_SKELETON,n)}return{val:{type:X0.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?rjt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],l=new Set,c=i.value,u=i.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(Hr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Hr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=Wr(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?Hr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Hr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Hr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Hr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Wr(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var g=this.tryParseArgumentClose(h);if(g.err)return g;s.push([c,{value:m.val,location:Wr(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),a=this.parseIdentifierIfPossible(),c=a.value,u=a.location}return s.length===0?this.error(n==="select"?Hr.EXPECT_SELECT_ARGUMENT_SELECTOR:Hr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Wr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Hr.MISSING_OTHER_CLAUSE,Wr(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var l=Wr(i,this.clonePosition());return a?(o*=r,mjt(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=F2e(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(hte(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&B2e(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function oA(e){return e>=97&&e<=122||e>=65&&e<=90}function wjt(e){return oA(e)||e===47}function xjt(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function B2e(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Sjt(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function sA(e){e.forEach(function(t){if(delete t.location,P2e(t)||O2e(t))for(var n in t.options)delete t.options[n].location,sA(t.options[n].value);else $2e(t)&&I2e(t.style)||(M2e(t)||T2e(t))&&nA(t.style)?delete t.style.location:R2e(t)&&sA(t.children)})}function Cjt(e,t){t===void 0&&(t={}),t=Gn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new bjt(e,t).parse();if(n.err){var r=SyntaxError(Hr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||sA(n.val),n.val}var _d;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(_d||(_d={}));var Mh=function(e){Tc(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),vte=function(e){Tc(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),_d.INVALID_VALUE,a)||this}return t}(Mh),_jt=function(e){Tc(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),_d.INVALID_VALUE,i)||this}return t}(Mh),kjt=function(e){Tc(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),_d.MISSING_VALUE,r)||this}return t}(Mh),ds;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ds||(ds={}));function Ejt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ds.literal||n.type!==ds.literal?t.push(n):r.value+=n.value,t},[])}function z2e(e){return typeof e=="function"}function b_(e,t,n,r,i,a,o){if(e.length===1&&ute(e[0]))return[{type:ds.literal,value:e[0].value}];for(var s=[],l=0,c=e;l"u"?If:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||If},xIt=function(t,n,r){var i=t,a=i.breadcrumbName,o=i.title,s=i.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?x.jsx("span",{children:o||a}):x.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:o||a})},SIt=function(t,n){var r=n.formatMessage,i=n.menu;return t.locale&&r&&(i==null?void 0:i.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},CIt=function(t,n){var r=t.get(n);if(!r){var i=Array.from(t.keys())||[],a=i.find(function(o){try{return o!=null&&o.startsWith("http")?!1:YN(o.replace("?",""))(n)}catch(s){return console.log("path",o,s),!1}});a&&(r=t.get(a))}return r||{path:""}},_It=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},kIt=function(t,n,r){var i=bIt(t==null?void 0:t.pathname),a=i.map(function(o){var s=CIt(n,o),l=SIt(s,r),c=s.hideInBreadcrumb;return l&&!c?{linkPath:o,breadcrumbName:l,title:l,component:s.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return a},EIt=function(t){var n=_It(t),r=n.location,i=n.breadcrumbMap;return r&&r.pathname&&i?kIt(r,i,t):[]},$It=function(t,n){var r=t.breadcrumbRender,i=t.itemRender,a=n.breadcrumbProps||{},o=a.minLength,s=o===void 0?2:o,l=EIt(t),c=function(p){for(var h=i||xIt,m=arguments.length,g=new Array(m>1?m-1:0),v=1;v-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function MIt(e){return lt(e).reduce(function(t,n){var r=Te(n,2),i=r[0],a=r[1];return t[i]=a,t},{})}var TIt=function e(t,n,r,i){var a=oIt(t,(n==null?void 0:n.locale)||!1,r,!0),o=a.menuData,s=a.breadcrumb;return i?e(i(o),n,r,void 0):{breadcrumb:MIt(s),breadcrumbMap:s,menuData:o}},PIt=function(t){var n=d.useState({}),r=Te(n,2),i=r[0],a=r[1];return d.useEffect(function(){a(lc({layout:Kt(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),i},OIt=["id","defaultMessage"],RIt=["fixSiderbar","navTheme","layout"],cte=0,IIt=function(t,n){var r;return t.headerRender===!1||t.pure?null:x.jsx(BOt,q(q({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},jIt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(q({},t),x.jsx(iOt,{})):null},NIt=function(t,n){var r,i=t.layout,a=t.isMobile,o=t.selectedKeys,s=t.openKeys,l=t.splitMenus,c=t.suppressSiderWhenMenuEmpty,u=t.menuRender;if(t.menuRender===!1||t.pure)return null;var f=t.menuData;if(l&&(s!==!1||i==="mix")&&!a){var p=o||n,h=Te(p,1),m=h[0];if(m){var g;f=((g=t.menuData)===null||g===void 0||(g=g.find(function(b){return b.key===m}))===null||g===void 0?void 0:g.children)||[]}else f=[]}var v=D$(f||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(i==="top"&&!a){var y;return x.jsx(lte,q(q({matchMenuKeys:n},t),{},{hide:!0,stylish:(y=t.stylish)===null||y===void 0?void 0:y.sider}))}var w=x.jsx(lte,q(q({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,w):w},AIt=function(t,n){var r=n.pageTitleRender,i=nte(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var a=r(t,i.title,i);if(typeof a=="string")return nte(q(q({},i),{},{title:a}));Br(typeof a=="string","pro-layout: renderPageTitle return value should be a string")}return i},DIt=function(t,n,r){return t?n?64:r:0},FIt=function(t){var n,r,i,a,o,s,l,c,u,f,p,h,m,g,v=t||{},y=v.children,w=v.onCollapse,b=v.location,C=b===void 0?{pathname:"/"}:b,k=v.contentStyle,S=v.route,_=v.defaultCollapsed,E=v.style,$=v.siderWidth,M=v.menu,P=v.siderMenuType,R=v.isChildrenLayout,O=v.menuDataRender,j=v.actionRef,I=v.bgLayoutImgList,A=v.formatMessage,N=v.loading,F=d.useMemo(function(){return $||(t.layout==="mix"?215:256)},[t.layout,$]),K=d.useContext(zn.ConfigContext),L=(n=t.prefixCls)!==null&&n!==void 0?n:K.getPrefixCls("pro"),V=In(!1,{value:M==null?void 0:M.loading,onChange:M==null?void 0:M.onLoadingChange}),B=Te(V,2),U=B[0],Y=B[1],ee=d.useState(function(){return cte+=1,"pro-layout-".concat(cte)}),ie=Te(ee,1),Z=ie[0],X=d.useCallback(function(vt){var At=vt.id,dt=vt.defaultMessage,De=Ht(vt,OIt);if(A)return A(q({id:At,defaultMessage:dt},De));var Ye=QOt();return Ye[At]?Ye[At]:dt},[A]),ae=Tz([Z,M==null?void 0:M.params],function(){var vt=pa(hr().mark(function At(dt){var De,Ye,ot,Re;return hr().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return Ye=Te(dt,2),ot=Ye[1],Y(!0),rt.next=4,M==null||(De=M.request)===null||De===void 0?void 0:De.call(M,ot||{},(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[]);case 4:return Re=rt.sent,Y(!1),rt.abrupt("return",Re);case 7:case"end":return rt.stop()}},At)}));return function(At){return vt.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),oe=ae.data,le=ae.mutate,ce=ae.isLoading;d.useEffect(function(){Y(ce)},[ce]);var pe=Mz(),me=pe.cache;d.useEffect(function(){return function(){me instanceof Map&&me.delete(Z)}},[]);var re=d.useMemo(function(){return TIt(oe||(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[],M,X,O)},[X,M,O,oe,S==null?void 0:S.children,S==null?void 0:S.routes]),fe=re||{},ve=fe.breadcrumb,$e=fe.breadcrumbMap,Ce=fe.menuData,be=Ce===void 0?[]:Ce;j&&M!==null&&M!==void 0&&M.request&&(j.current={reload:function(){le()}});var Se=d.useMemo(function(){return uIt(C.pathname||"/",be||[])},[C.pathname,be]),we=d.useMemo(function(){return Array.from(new Set(Se.map(function(vt){return vt.key||vt.path||""})))},[Se]),se=Se[Se.length-1]||{},ye=PIt(se),Oe=q(q({},t),ye),z=Oe.fixSiderbar;Oe.navTheme;var H=Oe.layout,G=Ht(Oe,RIt),de=T1t(),xe=d.useMemo(function(){return(de==="sm"||de==="xs")&&!t.disableMobile},[de,t.disableMobile]),he=H!=="top"&&!xe,Ue=In(function(){return _!==void 0?_:!!(xe||de==="md")},{value:t.collapsed,onChange:w}),We=Te(Ue,2),ge=We[0],ze=We[1],Ve=Dl(q(q(q({prefixCls:L},t),{},{siderWidth:F},ye),{},{formatMessage:X,breadcrumb:ve,menu:q(q({},M),{},{type:P||(M==null?void 0:M.type),loading:U}),layout:H}),["className","style","breadcrumbRender"]),Be=AIt(q(q({pathname:C.pathname},Ve),{},{breadcrumbMap:$e}),t),Xe=$It(q(q({},Ve),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:$e}),t),Ke=NIt(q(q({},Ve),{},{menuData:be,onCollapse:ze,isMobile:xe,collapsed:ge}),we),qe=IIt(q(q({},Ve),{},{children:null,hasSiderMenu:!!Ke,menuData:be,isMobile:xe,collapsed:ge,onCollapse:ze}),we),Et=jIt(q({isMobile:xe,collapsed:ge},Ve)),ut=d.useContext(Bee),gt=ut.isChildrenLayout,Qe=R!==void 0?R:gt,nt="".concat(L,"-layout"),jt=yIt(nt),Lt=jt.wrapSSR,Bt=jt.hashId,Ut=Ee(t.className,Bt,"ant-design-pro",nt,ne(ne(ne(ne(ne({},"screen-".concat(de),de),"".concat(nt,"-top-menu"),H==="top"),"".concat(nt,"-is-children"),Qe),"".concat(nt,"-fix-siderbar"),z),"".concat(nt,"-").concat(H),H)),Ne=DIt(!!he,ge,F),He={position:"relative"};(Qe||k&&k.minHeight)&&(He.minHeight=0),d.useEffect(function(){var vt;(vt=t.onPageChange)===null||vt===void 0||vt.call(t,t.location)},[C.pathname,(r=C.pathname)===null||r===void 0?void 0:r.search]);var Le=d.useState(!1),Je=Te(Le,2),pt=Je[0],xt=Je[1],Nt=d.useState(0),Ot=Te(Nt,2),Pt=Ot[0],st=Ot[1];Xht(Be,t.title||!1);var Ct=d.useContext(uu),kt=Ct.token,qt=d.useMemo(function(){return I&&I.length>0?I==null?void 0:I.map(function(vt,At){return x.jsx("img",{src:vt.src,style:q({position:"absolute"},vt)},At)}):null},[I]);return Lt(x.jsx(Bee.Provider,{value:q(q({},Ve),{},{breadcrumb:Xe,menuData:be,isMobile:xe,collapsed:ge,hasPageContainer:Pt,setHasPageContainer:st,isChildrenLayout:!0,title:Be.pageName,hasSiderMenu:!!Ke,hasHeader:!!qe,siderWidth:Ne,hasFooter:!!Et,hasFooterToolbar:pt,setHasFooterToolbar:xt,pageTitleInfo:Be,matchMenus:Se,matchMenuKeys:we,currentMenu:se}),children:t.pure?x.jsx(x.Fragment,{children:y}):x.jsxs("div",{className:Ut,children:[qt||(i=kt.layout)!==null&&i!==void 0&&i.bgLayout?x.jsx("div",{className:Ee("".concat(nt,"-bg-list"),Bt),children:qt}):null,x.jsxs(Qn,{style:q({minHeight:"100%",flexDirection:Ke?"row":void 0},E),children:[x.jsx(zn,{theme:{hashed:Dv(),token:{controlHeightLG:((a=kt.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.menuHeight)||(kt==null?void 0:kt.controlHeightLG)},components:{Menu:H0e({colorItemBg:((o=kt.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((s=kt.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:kt.borderRadius,colorItemBgSelected:((l=kt.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(kt==null?void 0:kt.colorBgTextHover),colorItemBgHover:((c=kt.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(kt==null?void 0:kt.colorBgTextHover),colorItemBgActive:((u=kt.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(kt==null?void 0:kt.colorBgTextActive),colorItemBgSelectedHorizontal:((f=kt.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(kt==null?void 0:kt.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((p=kt.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenu)||(kt==null?void 0:kt.colorTextSecondary),colorItemTextHover:((h=kt.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=kt.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:kt==null?void 0:kt.colorBgElevated,subMenuItemBg:kt==null?void 0:kt.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:kt==null?void 0:kt.colorBgElevated})}},children:Ke}),x.jsxs("div",{style:He,className:"".concat(nt,"-container ").concat(Bt).trim(),children:[qe,x.jsx(dIt,q(q({hasPageContainer:Pt,isChildrenLayout:Qe},G),{},{hasHeader:!!qe,prefixCls:nt,style:k,children:N?x.jsx(JPt,{}):y})),Et,pt&&x.jsx("div",{className:"".concat(nt,"-has-footer"),style:{height:64,marginBlockStart:(g=kt.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},S2e=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return x.jsx(zn,{theme:n?{token:{colorPrimary:n}}:void 0,children:x.jsx(c$,q(q({},r),{},{token:t.token,prefixCls:t.prefixCls,children:x.jsx(FIt,q(q({logo:x.jsx(fIt,{})},u2e),{},{location:Oz()?window.location:void 0},t))}))})};async function LIt(){return gn("/kaptcha/api/v1/get",{method:"GET",params:{client:_n}})}async function BIt(e,t){return gn("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:_n}})}var tA=function(e,t){return tA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},tA(e,t)};function Tc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Gn=function(){return Gn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u"&&(a=e.call(this,r),t.set(i,a)),a}function _2e(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function RH(e,t,n,r,i){return n.bind(t,e,r,i)}function HIt(e,t){var n=e.length===1?C2e:_2e;return RH(e,this,n,t.cache.create(),t.serializer)}function UIt(e,t){return RH(e,this,_2e,t.cache.create(),t.serializer)}function WIt(e,t){return RH(e,this,C2e,t.cache.create(),t.serializer)}var VIt=function(){return JSON.stringify(arguments)};function IH(){this.cache=Object.create(null)}IH.prototype.get=function(e){return this.cache[e]};IH.prototype.set=function(e,t){this.cache[e]=t};var qIt={create:function(){return new IH}},vs={variadic:UIt,monadic:WIt};function k2e(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}gs(function(){for(var e,t=[],n=0;n0}),n=[],r=0,i=t;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ejt,function(l,c,u,f,p,h){if(c)t.minimumIntegerDigits=u.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(N2e.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(dte.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(dte,function(l,c,u,f,p,h){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:p&&h?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var a=i.options[0];a==="w"?t=Gn(Gn({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Gn(Gn({},t),fte(a)));continue}if(j2e.test(i.stem)){t=Gn(Gn({},t),fte(i.stem));continue}var o=A2e(i.stem);o&&(t=Gn(Gn({},t),o));var s=tjt(i.stem);s&&(t=Gn(Gn({},t),s))}return t}var KS={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function rjt(e,t){for(var n="",r=0;r>1),l="a",c=ijt(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function ijt(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=KS[r||""]||KS[n||""]||KS["".concat(n,"-001")]||KS["001"];return i[0]}var GT,ajt=new RegExp("^".concat(I2e.source,"*")),ojt=new RegExp("".concat(I2e.source,"*$"));function Wr(e,t){return{start:e,end:t}}var sjt=!!String.prototype.startsWith&&"_a".startsWith("a",1),ljt=!!String.fromCodePoint,cjt=!!Object.fromEntries,ujt=!!String.prototype.codePointAt,djt=!!String.prototype.trimStart,fjt=!!String.prototype.trimEnd,pjt=!!Number.isSafeInteger,hjt=pjt?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},rA=!0;try{var mjt=F2e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rA=((GT=mjt.exec("a"))===null||GT===void 0?void 0:GT[0])==="a"}catch{rA=!1}var hte=sjt?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},iA=ljt?String.fromCodePoint:function(){for(var t=[],n=0;na;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},mte=cjt?Object.fromEntries:function(t){for(var n={},r=0,i=t;r=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},gjt=djt?function(t){return t.trimStart()}:function(t){return t.replace(ajt,"")},vjt=fjt?function(t){return t.trimEnd()}:function(t){return t.replace(ojt,"")};function F2e(e,t){return new RegExp(e,t)}var aA;if(rA){var gte=F2e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");aA=function(t,n){var r;gte.lastIndex=n;var i=gte.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else aA=function(t,n){for(var r=[];;){var i=D2e(t,n);if(i===void 0||L2e(i)||xjt(i))break;r.push(i),n+=i>=65536?2:1}return iA.apply(void 0,r)};var yjt=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:Ni.pound,location:Wr(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Hr.UNMATCHED_CLOSING_TAG,Wr(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&oA(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ni.literal,value:"<".concat(i,"/>"),location:Wr(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:Ni.tag,value:i,children:o,location:Wr(r,this.clonePosition())},err:null}:this.error(Hr.INVALID_TAG,Wr(s,this.clonePosition())))}else return this.error(Hr.UNCLOSED_TAG,Wr(r,this.clonePosition()))}else return this.error(Hr.INVALID_TAG,Wr(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&wjt(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=Wr(r,this.clonePosition());return{val:{type:Ni.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!bjt(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return iA.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),iA(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Hr.EMPTY_ARGUMENT,Wr(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Hr.MALFORMED_ARGUMENT,Wr(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ni.argument,value:i,location:Wr(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(Hr.MALFORMED_ARGUMENT,Wr(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=aA(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=Wr(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Hr.EXPECT_ARGUMENT_TYPE,Wr(o,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=vjt(f.val);if(p.length===0)return this.error(Hr.EXPECT_ARGUMENT_STYLE,Wr(this.clonePosition(),this.clonePosition()));var h=Wr(u,this.clonePosition());c={style:p,styleLocation:h}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var g=Wr(i,this.clonePosition());if(c&&hte(c==null?void 0:c.style,"::",0)){var v=gjt(c.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(v,c.styleLocation);return f.err?f:{val:{type:Ni.number,value:r,location:g,style:f.val},err:null}}else{if(v.length===0)return this.error(Hr.EXPECT_DATE_TIME_SKELETON,g);var y=v;this.locale&&(y=rjt(v,this.locale));var p={type:X0.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?XIt(y):{}},w=s==="date"?Ni.date:Ni.time;return{val:{type:w,value:r,location:g,style:p},err:null}}}return{val:{type:s==="number"?Ni.number:s==="date"?Ni.date:Ni.time,value:r,location:g,style:(a=c==null?void 0:c.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Hr.EXPECT_SELECT_ARGUMENT_OPTIONS,Wr(b,Gn({},b)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(Hr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Wr(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Hr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Hr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),C=this.parseIdentifierIfPossible(),k=f.val}var S=this.tryParsePluralOrSelectOptions(t,s,n,C);if(S.err)return S;var m=this.tryParseArgumentClose(i);if(m.err)return m;var _=Wr(i,this.clonePosition());return s==="select"?{val:{type:Ni.select,value:r,options:mte(S.val),location:_},err:null}:{val:{type:Ni.plural,value:r,options:mte(S.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(Hr.INVALID_ARGUMENT_TYPE,Wr(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Hr.EXPECT_ARGUMENT_CLOSING_BRACE,Wr(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Hr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Wr(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=QIt(t)}catch{return this.error(Hr.INVALID_NUMBER_SKELETON,n)}return{val:{type:X0.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?njt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],l=new Set,c=i.value,u=i.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(Hr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Hr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=Wr(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?Hr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Hr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Hr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Hr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Wr(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var g=this.tryParseArgumentClose(h);if(g.err)return g;s.push([c,{value:m.val,location:Wr(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),a=this.parseIdentifierIfPossible(),c=a.value,u=a.location}return s.length===0?this.error(n==="select"?Hr.EXPECT_SELECT_ARGUMENT_SELECTOR:Hr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Wr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Hr.MISSING_OTHER_CLAUSE,Wr(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var l=Wr(i,this.clonePosition());return a?(o*=r,hjt(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=D2e(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(hte(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&L2e(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function oA(e){return e>=97&&e<=122||e>=65&&e<=90}function bjt(e){return oA(e)||e===47}function wjt(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function L2e(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function xjt(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function sA(e){e.forEach(function(t){if(delete t.location,T2e(t)||P2e(t))for(var n in t.options)delete t.options[n].location,sA(t.options[n].value);else E2e(t)&&R2e(t.style)||($2e(t)||M2e(t))&&nA(t.style)?delete t.style.location:O2e(t)&&sA(t.children)})}function Sjt(e,t){t===void 0&&(t={}),t=Gn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new yjt(e,t).parse();if(n.err){var r=SyntaxError(Hr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||sA(n.val),n.val}var _d;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(_d||(_d={}));var Mh=function(e){Tc(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),vte=function(e){Tc(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),_d.INVALID_VALUE,a)||this}return t}(Mh),Cjt=function(e){Tc(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),_d.INVALID_VALUE,i)||this}return t}(Mh),_jt=function(e){Tc(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),_d.MISSING_VALUE,r)||this}return t}(Mh),ds;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ds||(ds={}));function kjt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ds.literal||n.type!==ds.literal?t.push(n):r.value+=n.value,t},[])}function B2e(e){return typeof e=="function"}function y_(e,t,n,r,i,a,o){if(e.length===1&&ute(e[0]))return[{type:ds.literal,value:e[0].value}];for(var s=[],l=0,c=e;l"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Cjt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Mg;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Mg||(Mg={}));var ox=function(e){Tc(t,e);function t(n,r,i){var a=this,o=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` +`,_d.MISSING_INTL_API,o);var C=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));b=u.options[C]||u.options.other}if(!b)throw new vte(u.value,p,Object.keys(u.options),o);s.push.apply(s,y_(b.value,t,n,r,i,p-(u.offset||0)));continue}}return kjt(s)}function Ejt(e,t){return t?Gn(Gn(Gn({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Gn(Gn({},e[r]),t[r]||{}),n},{})):e}function $jt(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Ejt(e[r],t[r]),n},Gn({},e)):e}function YT(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Mjt(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gs(function(){for(var t,n=[],r=0;r"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Sjt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Mg;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Mg||(Mg={}));var ax=function(e){Tc(t,e);function t(n,r,i){var a=this,o=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` `).concat(o?` `.concat(o.message,` -`).concat(o.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),Pjt=function(e){Tc(t,e);function t(n,r){return e.call(this,Mg.UNSUPPORTED_FORMATTER,n,r)||this}return t}(ox),Ojt=function(e){Tc(t,e);function t(n,r){return e.call(this,Mg.INVALID_CONFIG,n,r)||this}return t}(ox),yte=function(e){Tc(t,e);function t(n,r){return e.call(this,Mg.MISSING_DATA,n,r)||this}return t}(ox),Pc=function(e){Tc(t,e);function t(n,r,i){var a=e.call(this,Mg.FORMAT_ERROR,"".concat(n,` +`).concat(o.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),Tjt=function(e){Tc(t,e);function t(n,r){return e.call(this,Mg.UNSUPPORTED_FORMATTER,n,r)||this}return t}(ax),Pjt=function(e){Tc(t,e);function t(n,r){return e.call(this,Mg.INVALID_CONFIG,n,r)||this}return t}(ax),yte=function(e){Tc(t,e);function t(n,r){return e.call(this,Mg.MISSING_DATA,n,r)||this}return t}(ax),Pc=function(e){Tc(t,e);function t(n,r,i){var a=e.call(this,Mg.FORMAT_ERROR,"".concat(n,` Locale: `).concat(r,` -`),i)||this;return a.locale=r,a}return t}(ox),XT=function(e){Tc(t,e);function t(n,r,i,a){var o=e.call(this,"".concat(n,` +`),i)||this;return a.locale=r,a}return t}(ax),XT=function(e){Tc(t,e);function t(n,r,i,a){var o=e.call(this,"".concat(n,` MessageID: `).concat(i==null?void 0:i.id,` Default Message: `).concat(i==null?void 0:i.defaultMessage,` Description: `).concat(i==null?void 0:i.description,` -`),r,a)||this;return o.descriptor=i,o.locale=r,o}return t}(Pc),Rjt=function(e){Tc(t,e);function t(n,r){var i=e.call(this,Mg.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(a){var o;return(o=a.value)!==null&&o!==void 0?o:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(ox);function p1(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var Ijt=function(e){},jjt=function(e){},U2e={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Ijt,onWarn:jjt};function W2e(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Xh(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Njt(e){e===void 0&&(e=W2e());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=gs(function(){for(var s,l=[],c=0;c needs to exist in the component ancestry.")}var Y2e=Gn(Gn({},U2e),{textComponent:d.Fragment});function rNt(e){return function(t){return e(d.Children.toArray(t))}}function cA(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var a=0;a needs to exist in the component ancestry.")}var G2e=Gn(Gn({},H2e),{textComponent:d.Fragment});function nNt(e){return function(t){return e(d.Children.toArray(t))}}function cA(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var a=0;a{const n=jn(),[r,i]=d.useState(),[a,o]=d.useState(),s=async()=>{const u=await BIt();u.data.code===200&&(i(u.data.data.captchaUid),o(u.data.data.captchaImage))},l=async(u,f)=>{const p=await zIt(u,f);console.log("checkCaptcha response",p),p.data.code===200?t&&t(!0):t&&t(!1)};d.useEffect(()=>{s()},[]);const c=u=>{e&&(e(r,u.target.value),u.target.value&&u.target.value!==""&&u.target.value.trim().length===4?l(r,u.target.value):t&&t(!1))};return x.jsx(x.Fragment,{children:a&&x.jsxs(x.Fragment,{children:[x.jsx(Ur,{onChange:c,prefix:x.jsx(Rit,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),x.jsx("img",{src:a,alt:"captcha",onClick:s})]})})},vNt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=jn(),[a,o]=d.useState(!1);return d.useEffect(()=>{if(a)return;const s=localStorage.getItem(yl);if(s)try{const{username:l,remember:c}=JSON.parse(s);l&&(r==null||r(l,!!c),o(!0))}catch(l){console.error("Failed to parse saved credentials:",l)}},[r,a]),x.jsx(x.Fragment,{children:e==="account"&&x.jsxs("div",{children:[x.jsx(Or,{name:"username",fieldProps:{size:"large",prefix:x.jsx(az,{className:"prefixIcon"}),onChange:()=>{o(!0)},onClear:()=>{console.log("onClear");const s=localStorage.getItem(yl);if(s)try{const l=JSON.parse(s),{username:c,...u}=l;console.log("username",c),console.log("rest",u),localStorage.setItem(yl,JSON.stringify(u))}catch(l){console.error("Failed to parse saved credentials:",l)}}},placeholder:i.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),x.jsx(Or.Password,{name:"password",fieldProps:{size:"large",prefix:x.jsx(Zg,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),x.jsx(Kn.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:x.jsx(eb,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function yNt(e){return bn("/auth/v1/login",{method:"POST",data:{...e,client:kn}})}async function LH(e){return bn("/auth/v1/send/mobile",{method:"POST",data:{...e,client:kn}})}async function rwe(e){return bn("/auth/v1/send/email",{method:"POST",data:{...e,client:kn}})}async function bNt(e){return bn("/auth/v1/login/mobile",{method:"POST",data:{...e,client:kn}})}async function wNt(e,t){return bn("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:kn}})}async function xNt(e){return bn("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:kn}})}async function SNt(e){return bn("/api/v1/user/logout",{method:"POST",data:{client:kn}})}const CNt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=jn(),[a,o]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1),[f,p]=d.useState(!1);d.useEffect(()=>{if(f)return;const y=localStorage.getItem(yl);if(y)try{const{mobile:w}=JSON.parse(y);w&&(r==null||r(w),p(!0))}catch(w){console.error("Failed to parse saved credentials:",w)}},[r,f]);const h=async(y,w)=>{o(y),l(w),t&&t(y,w)},m=async y=>{u(y),n&&n(y)},g=[{label:i.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:i.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:i.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:i.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:i.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:i.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:i.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:i.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:i.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:i.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:i.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:i.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:i.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:i.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:i.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:i.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:i.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:i.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:i.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:i.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:i.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:i.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],v=y=>{const w=y.value.includes("-")?y.value.split("-")[0]:y.value;return x.jsxs("div",{children:[x.jsx("span",{role:"img","aria-label":y.label,style:{marginRight:8},children:y.icon}),y.label," (+",w,")"]})};return x.jsx(x.Fragment,{children:e==="mobile"&&x.jsxs(x.Fragment,{children:[x.jsxs(z8,{gutter:16,children:[x.jsx(D0,{span:10,children:x.jsx(ro,{name:"country",options:g,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:v},initialValue:"86"})}),x.jsx(D0,{span:14,children:x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(D4,{className:"prefixIcon"}),onChange:()=>{p(!0)},onClear:()=>{console.log("onClear");const y=localStorage.getItem(yl);if(y)try{const w=JSON.parse(y),{mobile:b,...C}=w;console.log("saved:",b,w),localStorage.setItem(yl,JSON.stringify(C))}catch(w){console.error("Failed to parse saved credentials:",w)}}},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:x.jsx(nu,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),x.jsx(Kn.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:x.jsx(eb,{onKaptchaChange:h,onKaptchaCheck:m})}),x.jsx(V4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(y,w)=>y?`${w} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async y=>{if(console.log("mobile:",y),y&&y.length===11){const b=await LH({mobile:y,type:D6e,captchaUid:a,captchaCode:s,platform:gc});if(console.log("sendMobileCode:",b.data),b.data.code!==200){je.error(i.formatMessage({id:b.data.message,defaultMessage:b.data.message}));return}je.success(i.formatMessage({id:b.data.message,defaultMessage:b.data.message}))}else je.error("手机号格式错误")}}),x.jsx(JE,{message:x.jsx(nu,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},_Nt=({loginType:e})=>{const t=jn(),n=Mo(),r=ia(h=>h.setUserInfo),i=n4(h=>h.setAccessToken),{deviceUid:a,setDeviceUid:o}=ia(h=>({deviceUid:h.deviceUid,setDeviceUid:h.setDeviceUid})),[s,l]=d.useState("login"),[c,u]=d.useState("loading"),f=async h=>{console.log("handleScanLogin values: ",h),je.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await xNt({...h});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(m.data.data.user),i(m.data.data.accessToken),n("/chat"),oN()):(je.destroy(),je.error(m.data.message))},p=async h=>{if(e!="scan")return;const m=await wNt(a,h);if(m.data.code===200){const g=m.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===H6e)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===U6e)u("scanned");else if(g.status===V6e)u("expired");else if(g.status===W6e){if(g.receiver===void 0||g.receiver==="")return;let v={mobile:g.receiver,code:g.content,platform:gc};console.log("login scan info:",v),await f(v)}}else je.error(m.data.message)};return d.useEffect(()=>{console.log("scan deviceUid:",a),(a===void 0||a==="")&&o(Ba()),p(!0);const h=setInterval(()=>{p(!1)},3e3);return()=>{clearInterval(h)}},[e,a]),x.jsx(x.Fragment,{children:e==="scan"&&x.jsx(x.Fragment,{children:x.jsx(oz,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),p(!0)}})})})},iwe=()=>{const{token:e}=Ho.useToken(),{isCustomServer:t,setIsCustomServer:n}=d.useContext(Ea),[r]=Kn.useForm(),[i,a]=d.useState(!1),[o,s]=d.useState(""),[l,c]=d.useState(""),u=jn(),f=()=>{console.log("switch server"),n(m=>!m)};d.useEffect(()=>{o&&o.length>0&&(r.setFieldsValue({apiUrl:o}),console.log("apiUrl:",o))},[o]),d.useEffect(()=>{if(t){const m=localStorage.getItem(dv);m==="true"&&(a(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const g=localStorage.getItem(h2);g&&r.setFieldsValue({apiUrl:E1(g)});const v=localStorage.getItem(m2);v&&r.setFieldsValue({websocketUrl:E1(v)})}},[t]);const p=m=>{if(console.log("handleCustomServerChange e:",m),a(m.target.checked),m.target.checked){const g=localStorage.getItem(h2);g&&r.setFieldsValue({apiUrl:E1(g)});const v=localStorage.getItem(m2);v&&r.setFieldsValue({websocketUrl:E1(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(dv,"false")},h=(m,g)=>(console.log("props:",m,g),x.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[x.jsx(Yt,{icon:x.jsx(irt,{}),onClick:f,children:u.formatMessage({id:"server.button.back"})},"back"),x.jsx(Yt,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=E1(v.trim());let y=m.form.getFieldValue("websocketUrl");y=E1(y.trim()),v&&v.trim().length>0&&y&&y.trim().length>0?(localStorage.setItem(h2,v),localStorage.setItem(m2,y),localStorage.setItem(dv,"true"),je.success(u.formatMessage({id:"server.save.success"}))):je.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),x.jsx(Yt,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(dv,"false"),localStorage.setItem(h2,""),localStorage.setItem(m2,""),je.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),x.jsx(Yt,{onClick:()=>{F0("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return x.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:x.jsxs(Kn,{className:"ant-pro-form-server-main",form:r,submitter:{render:h},children:[x.jsx(fH,{name:"isCustomServerEnabled",fieldProps:{onChange:p},children:u.formatMessage({id:"server.custom.enable"})}),i&&x.jsxs(x.Fragment,{children:[x.jsx(Or,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),x.jsx(Or,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:m=>c(m.target.value)}})]})]})})},kNt=({isModel:e=!1})=>{const t=jn(),[n]=Kn.useForm(),r=Mo(),{token:i}=Ho.useToken(),[a,o]=d.useState("/agent/icons/logo.png"),[s,l]=d.useState(""),[c,u]=d.useState(""),[f,p]=d.useState("account"),h=ia(N=>N.setUserInfo),m=n4(N=>N.setAccessToken),{isCustomServer:g,setIsCustomServer:v}=d.useContext(Ea),[y,w]=d.useState(!1),b=N=>{console.log(`onPrivacyProtocolChange checked = ${N.target.checked}`),w(N.target.checked);const F=localStorage.getItem(yl);if(F)try{const{remember:K}=JSON.parse(F);K&&setTimeout(()=>{n.setFieldsValue({remember:K})},0)}catch(K){console.error("Failed to parse saved credentials:",K)}},C=()=>{F0("https://www.weiyuai.cn/protocol.html")},[k,S]=d.useState(""),_=async(N,F)=>{S(N),n.setFieldValue("captchaCode",F)},E=async N=>{console.log("handleKaptchaCheck:",N)},$=async N=>{if(!y){je.error("请阅读并同意隐私协议");return}je.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const F=localStorage.getItem(yl);let K=!1;if(F)try{K=JSON.parse(F).remember}catch(V){console.error("Failed to parse saved credentials:",V)}localStorage.setItem(yl,JSON.stringify({username:N.username,remember:K}));const L=await yNt({...N});console.log("LoginResult:",L.data),L.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),K&&localStorage.setItem(yl,JSON.stringify({username:N.username,password:N.password,remember:!0})),h(L.data.data.user),m(L.data.data.accessToken),e||r("/chat"),oN()):(je.destroy(),je.error(t.formatMessage({id:L.data.message,defaultMessage:L.data.message})))},M=N=>{n.setFieldsValue({mobile:N})},P=async N=>{if(!y){je.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const F=localStorage.getItem(yl);let K={};if(F)try{K=JSON.parse(F)}catch(V){console.error("Failed to parse saved credentials:",V)}localStorage.setItem(yl,JSON.stringify({...K,mobile:N.mobile}));const L=await bNt({...N});console.log("LoginMobileResult:",L),L.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),h(L.data.data.user),m(L.data.data.accessToken),e||r("/chat"),oN()):(je.destroy(),je.error(t.formatMessage({id:L.data.message,defaultMessage:L.data.message})))},R=()=>{console.log("switch server"),v(N=>!N)},O=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},j=()=>{if(Nl)return{}},I=(N,F)=>{n.setFieldsValue({username:N,remember:F});const K=localStorage.getItem(yl);if(K&&F)try{const{password:L}=JSON.parse(K);L&&n.setFieldsValue({password:L})}catch(L){console.error("Failed to parse saved credentials:",L)}},A=async()=>{var F,K,L,V,B,U,Y;console.log("getConfig");const N=await kle();(F=N==null?void 0:N.custom)!=null&&F.enabled?((K=N==null?void 0:N.custom)!=null&&K.logo?o((L=N==null?void 0:N.custom)==null?void 0:L.logo):o(NV),(V=N==null?void 0:N.custom)!=null&&V.name?l((B=N==null?void 0:N.custom)==null?void 0:B.name):l(t.formatMessage({id:"app.title"})),(U=N==null?void 0:N.custom)!=null&&U.description?u((Y=N==null?void 0:N.custom)==null?void 0:Y.description):u(t.formatMessage({id:"slogan"}))):(o(NV),l(t.formatMessage({id:"app.title"})),u(t.formatMessage({id:"slogan"}))),_le()};return d.useEffect(()=>{vde(),A()},[]),x.jsx(c$,{hashed:!1,children:x.jsxs("div",{style:{backgroundColor:i.colorBgContainer,textAlign:"center",height:"100%"},children:[!g&&x.jsxs(Fbe,{form:n,contentStyle:{minWidth:400},logo:x.jsx("img",{alt:"logo",src:a}),title:s,subTitle:c,initialValues:j(),onFinish:async N=>{if(f==="account"){const F={username:N.username,password:N.password,captchaUid:k,captchaCode:N.captchaCode,platform:gc};await $(F)}else if(f==="mobile"){const F={mobile:N.mobile,code:N.code,captchaUid:k,captchaCode:N.captchaCode,platform:gc};await P(F)}else console.log("scan login type")},actions:Nl&&x.jsxs(Xr,{children:[x.jsx(nu,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),x.jsx(Yt,{type:"link",onClick:O,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[x.jsx(Yg,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:x.jsx(vNt,{loginType:f,onKaptchaChange:_,onKaptchaCheck:E,onRememberChange:I})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:x.jsx(CNt,{loginType:f,onKaptchaChange:_,onKaptchaCheck:E,onRememberChange:M})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:x.jsx(_Nt,{loginType:f})}],activeKey:f,onChange:N=>p(N)}),x.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[x.jsx(ps,{checked:y,onChange:b,children:x.jsx(Yt,{size:"small",type:"link",onClick:C,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),x.jsx(Yt,{type:"link",style:{float:"right",marginBottom:24},onClick:R,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),g&&x.jsx(iwe,{})]})})},fA=({isModel:e=!1})=>x.jsx(v8,{children:x.jsx(kNt,{isModel:e})}),ENt=()=>{Mo();const{token:e}=Ho.useToken();return d.useState("phone"),ul(e.colorTextBase,.2),x.jsx(c$,{hashed:!1,children:x.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:x.jsxs(Fbe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[x.jsxs(x.Fragment,{children:[x.jsx(Or,{name:"username",fieldProps:{size:"large",prefix:x.jsx(az,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),x.jsx(Or.Password,{name:"password",fieldProps:{size:"large",prefix:x.jsx(Zg,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),x.jsxs("div",{style:{marginBlockEnd:24},children:[x.jsx(fH,{noStyle:!0,name:"autoLogin",children:"自动登录"}),x.jsx(uft,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(b){try{return b.defaultView&&b.defaultView.frameElement||null}catch{return null}}var t=function(b){for(var C=b,k=e(C);k;)C=k.ownerDocument,k=e(C);return C}(window.document),n=[],r=null,i=null;function a(b){this.time=b.time,this.target=b.target,this.rootBounds=m(b.rootBounds),this.boundingClientRect=m(b.boundingClientRect),this.intersectionRect=m(b.intersectionRect||h()),this.isIntersecting=!!b.intersectionRect;var C=this.boundingClientRect,k=C.width*C.height,S=this.intersectionRect,_=S.width*S.height;k?this.intersectionRatio=Number((_/k).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(b,C){var k=C||{};if(typeof b!="function")throw new Error("callback must be a function");if(k.root&&k.root.nodeType!=1&&k.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=b,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(k.rootMargin),this.thresholds=this._initThresholds(k.threshold),this.root=k.root||null,this.rootMargin=this._rootMarginValues.map(function(S){return S.value+S.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return r||(r=function(b,C){!b||!C?i=h():i=g(b,C),n.forEach(function(k){k._checkForIntersections()})}),r},o._resetCrossOriginUpdater=function(){r=null,i=null},o.prototype.observe=function(b){var C=this._observationTargets.some(function(k){return k.element==b});if(!C){if(!(b&&b.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:b,entry:null}),this._monitorIntersections(b.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(b){this._observationTargets=this._observationTargets.filter(function(C){return C.element!=b}),this._unmonitorIntersections(b.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var b=this._queuedEntries.slice();return this._queuedEntries=[],b},o.prototype._initThresholds=function(b){var C=b||[0];return Array.isArray(C)||(C=[C]),C.sort().filter(function(k,S,_){if(typeof k!="number"||isNaN(k)||k<0||k>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return k!==_[S-1]})},o.prototype._parseRootMargin=function(b){var C=b||"0px",k=C.split(/\s+/).map(function(S){var _=/^(-?\d*\.?\d+)(px|%)$/.exec(S);if(!_)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(_[1]),unit:_[2]}});return k[1]=k[1]||k[0],k[2]=k[2]||k[0],k[3]=k[3]||k[1],k},o.prototype._monitorIntersections=function(b){var C=b.defaultView;if(C&&this._monitoringDocuments.indexOf(b)==-1){var k=this._checkForIntersections,S=null,_=null;this.POLL_INTERVAL?S=C.setInterval(k,this.POLL_INTERVAL):(c(C,"resize",k,!0),c(b,"scroll",k,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in C&&(_=new C.MutationObserver(k),_.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(b),this._monitoringUnsubscribes.push(function(){var M=b.defaultView;M&&(S&&M.clearInterval(S),u(M,"resize",k,!0)),u(b,"scroll",k,!0),_&&_.disconnect()});var E=this.root&&(this.root.ownerDocument||this.root)||t;if(b!=E){var $=e(b);$&&this._monitorIntersections($.ownerDocument)}}},o.prototype._unmonitorIntersections=function(b){var C=this._monitoringDocuments.indexOf(b);if(C!=-1){var k=this.root&&(this.root.ownerDocument||this.root)||t,S=this._observationTargets.some(function($){var M=$.element.ownerDocument;if(M==b)return!0;for(;M&&M!=k;){var P=e(M);if(M=P&&P.ownerDocument,M==b)return!0}return!1});if(!S){var _=this._monitoringUnsubscribes[C];if(this._monitoringDocuments.splice(C,1),this._monitoringUnsubscribes.splice(C,1),_(),b!=k){var E=e(b);E&&this._unmonitorIntersections(E.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var b=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var C=0;C=0&&M>=0&&{top:k,bottom:S,left:_,right:E,width:$,height:M}||null}function p(b){var C;try{C=b.getBoundingClientRect()}catch{}return C?(C.width&&C.height||(C={top:C.top,right:C.right,bottom:C.bottom,left:C.left,width:C.right-C.left,height:C.bottom-C.top}),C):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(b){return!b||"x"in b?b:{top:b.top,y:b.top,bottom:b.bottom,left:b.left,x:b.left,right:b.right,width:b.width,height:b.height}}function g(b,C){var k=C.top-b.top,S=C.left-b.left;return{top:k,left:S,height:C.height,width:C.width,bottom:k+C.height,right:S+C.width}}function v(b,C){for(var k=C;k;){if(k==b)return!0;k=y(k)}return!1}function y(b){var C=b.parentNode;return b.nodeType==9&&b!=t?e(b):(C&&C.assignedSlot&&(C=C.assignedSlot.parentNode),C&&C.nodeType==11&&C.host?C.host:C)}function w(b){return b&&b.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=a})();function awe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:w_;_te&&_te(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&($Nt(t)||(t[r]=a),i=a)}e[i]=!0}return e}function INt(e){for(let t=0;t/gm),FNt=Cc(/\${[\w\W]*}/gm),LNt=Cc(/^data-[\-\w.\u00B7-\uFFFF]/),BNt=Cc(/^aria-[\-\w]+$/),lwe=Cc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zNt=Cc(/^(?:\w+script|data):/i),HNt=Cc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cwe=Cc(/^html$/i),UNt=Cc(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ote=Object.freeze({__proto__:null,ARIA_ATTR:BNt,ATTR_WHITESPACE:HNt,CUSTOM_ELEMENT:UNt,DATA_ATTR:LNt,DOCTYPE_NAME:cwe,ERB_EXPR:DNt,IS_ALLOWED_URI:lwe,IS_SCRIPT_OR_DATA:zNt,MUSTACHE_EXPR:ANt,TMPLIT_EXPR:FNt});const e2={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},WNt=function(){return typeof window>"u"?null:window},VNt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function uwe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:WNt();const t=dt=>uwe(dt);if(t.version="3.2.1",t.removed=[],!e||!e.document||e.document.nodeType!==e2.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=e,m=l.prototype,g=Jb(m,"cloneNode"),v=Jb(m,"remove"),y=Jb(m,"nextSibling"),w=Jb(m,"childNodes"),b=Jb(m,"parentNode");if(typeof o=="function"){const dt=n.createElement("template");dt.content&&dt.content.ownerDocument&&(n=dt.content.ownerDocument)}let C,k="";const{implementation:S,createNodeIterator:_,createDocumentFragment:E,getElementsByTagName:$}=n,{importNode:M}=r;let P={};t.isSupported=typeof owe=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:O,TMPLIT_EXPR:j,DATA_ATTR:I,ARIA_ATTR:A,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:K}=Ote;let{IS_ALLOWED_URI:L}=Ote,V=null;const B=Rr({},[...$te,...JT,...eP,...tP,...Mte]);let U=null;const Y=Rr({},[...Tte,...nP,...Pte,...ZS]);let ee=Object.seal(swe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Z=null,X=!0,ae=!0,oe=!1,le=!0,ce=!1,pe=!0,me=!1,re=!1,fe=!1,ve=!1,$e=!1,Ce=!1,be=!0,Se=!1;const we="user-content-";let se=!0,ye=!1,Oe={},z=null;const H=Rr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G=null;const de=Rr({},["audio","video","img","source","image","track"]);let xe=null;const he=Rr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ze=ge,Ve=!1,Be=null;const Xe=Rr({},[Ue,We,ge],QT);let Ke=Rr({},["mi","mo","mn","ms","mtext"]),qe=Rr({},["annotation-xml"]);const Et=Rr({},["title","style","font","a","script"]);let ut=null;const gt=["application/xhtml+xml","text/html"],Qe="text/html";let nt=null,jt=null;const Lt=n.createElement("form"),Bt=function(De){return De instanceof RegExp||De instanceof Function},Ut=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===De)){if((!De||typeof De!="object")&&(De={}),De=im(De),ut=gt.indexOf(De.PARSER_MEDIA_TYPE)===-1?Qe:De.PARSER_MEDIA_TYPE,nt=ut==="application/xhtml+xml"?QT:w_,V=Uc(De,"ALLOWED_TAGS")?Rr({},De.ALLOWED_TAGS,nt):B,U=Uc(De,"ALLOWED_ATTR")?Rr({},De.ALLOWED_ATTR,nt):Y,Be=Uc(De,"ALLOWED_NAMESPACES")?Rr({},De.ALLOWED_NAMESPACES,QT):Xe,xe=Uc(De,"ADD_URI_SAFE_ATTR")?Rr(im(he),De.ADD_URI_SAFE_ATTR,nt):he,G=Uc(De,"ADD_DATA_URI_TAGS")?Rr(im(de),De.ADD_DATA_URI_TAGS,nt):de,z=Uc(De,"FORBID_CONTENTS")?Rr({},De.FORBID_CONTENTS,nt):H,ie=Uc(De,"FORBID_TAGS")?Rr({},De.FORBID_TAGS,nt):{},Z=Uc(De,"FORBID_ATTR")?Rr({},De.FORBID_ATTR,nt):{},Oe=Uc(De,"USE_PROFILES")?De.USE_PROFILES:!1,X=De.ALLOW_ARIA_ATTR!==!1,ae=De.ALLOW_DATA_ATTR!==!1,oe=De.ALLOW_UNKNOWN_PROTOCOLS||!1,le=De.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=De.SAFE_FOR_TEMPLATES||!1,pe=De.SAFE_FOR_XML!==!1,me=De.WHOLE_DOCUMENT||!1,ve=De.RETURN_DOM||!1,$e=De.RETURN_DOM_FRAGMENT||!1,Ce=De.RETURN_TRUSTED_TYPE||!1,fe=De.FORCE_BODY||!1,be=De.SANITIZE_DOM!==!1,Se=De.SANITIZE_NAMED_PROPS||!1,se=De.KEEP_CONTENT!==!1,ye=De.IN_PLACE||!1,L=De.ALLOWED_URI_REGEXP||lwe,ze=De.NAMESPACE||ge,Ke=De.MATHML_TEXT_INTEGRATION_POINTS||Ke,qe=De.HTML_INTEGRATION_POINTS||qe,ee=De.CUSTOM_ELEMENT_HANDLING||{},De.CUSTOM_ELEMENT_HANDLING&&Bt(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=De.CUSTOM_ELEMENT_HANDLING.tagNameCheck),De.CUSTOM_ELEMENT_HANDLING&&Bt(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),De.CUSTOM_ELEMENT_HANDLING&&typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(ae=!1),$e&&(ve=!0),Oe&&(V=Rr({},Mte),U=[],Oe.html===!0&&(Rr(V,$te),Rr(U,Tte)),Oe.svg===!0&&(Rr(V,JT),Rr(U,nP),Rr(U,ZS)),Oe.svgFilters===!0&&(Rr(V,eP),Rr(U,nP),Rr(U,ZS)),Oe.mathMl===!0&&(Rr(V,tP),Rr(U,Pte),Rr(U,ZS))),De.ADD_TAGS&&(V===B&&(V=im(V)),Rr(V,De.ADD_TAGS,nt)),De.ADD_ATTR&&(U===Y&&(U=im(U)),Rr(U,De.ADD_ATTR,nt)),De.ADD_URI_SAFE_ATTR&&Rr(xe,De.ADD_URI_SAFE_ATTR,nt),De.FORBID_CONTENTS&&(z===H&&(z=im(z)),Rr(z,De.FORBID_CONTENTS,nt)),se&&(V["#text"]=!0),me&&Rr(V,["html","head","body"]),V.table&&(Rr(V,["tbody"]),delete ie.tbody),De.TRUSTED_TYPES_POLICY){if(typeof De.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qb('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof De.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qb('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=De.TRUSTED_TYPES_POLICY,k=C.createHTML("")}else C===void 0&&(C=VNt(h,i)),C!==null&&typeof k=="string"&&(k=C.createHTML(""));xs&&xs(De),jt=De}},Ne=Rr({},[...JT,...eP,...jNt]),He=Rr({},[...tP,...NNt]),Le=function(De){let Ye=b(De);(!Ye||!Ye.tagName)&&(Ye={namespaceURI:ze,tagName:"template"});const ot=w_(De.tagName),Re=w_(Ye.tagName);return Be[De.namespaceURI]?De.namespaceURI===We?Ye.namespaceURI===ge?ot==="svg":Ye.namespaceURI===Ue?ot==="svg"&&(Re==="annotation-xml"||Ke[Re]):!!Ne[ot]:De.namespaceURI===Ue?Ye.namespaceURI===ge?ot==="math":Ye.namespaceURI===We?ot==="math"&&qe[Re]:!!He[ot]:De.namespaceURI===ge?Ye.namespaceURI===We&&!qe[Re]||Ye.namespaceURI===Ue&&!Ke[Re]?!1:!He[ot]&&(Et[ot]||!Ne[ot]):!!(ut==="application/xhtml+xml"&&Be[De.namespaceURI]):!1},Je=function(De){Xb(t.removed,{element:De});try{b(De).removeChild(De)}catch{v(De)}},pt=function(De,Ye){try{Xb(t.removed,{attribute:Ye.getAttributeNode(De),from:Ye})}catch{Xb(t.removed,{attribute:null,from:Ye})}if(Ye.removeAttribute(De),De==="is"&&!U[De])if(ve||$e)try{Je(Ye)}catch{}else try{Ye.setAttribute(De,"")}catch{}},xt=function(De){let Ye=null,ot=null;if(fe)De=""+De;else{const rt=Ete(De,/^[\r\n\t ]+/);ot=rt&&rt[0]}ut==="application/xhtml+xml"&&ze===ge&&(De=''+De+"");const Re=C?C.createHTML(De):De;if(ze===ge)try{Ye=new p().parseFromString(Re,ut)}catch{}if(!Ye||!Ye.documentElement){Ye=S.createDocument(ze,"template",null);try{Ye.documentElement.innerHTML=Ve?k:Re}catch{}}const It=Ye.body||Ye.documentElement;return De&&ot&&It.insertBefore(n.createTextNode(ot),It.childNodes[0]||null),ze===ge?$.call(Ye,me?"html":"body")[0]:me?Ye.documentElement:It},Nt=function(De){return _.call(De.ownerDocument||De,De,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ot=function(De){return De instanceof f&&(typeof De.nodeName!="string"||typeof De.textContent!="string"||typeof De.removeChild!="function"||!(De.attributes instanceof u)||typeof De.removeAttribute!="function"||typeof De.setAttribute!="function"||typeof De.namespaceURI!="string"||typeof De.insertBefore!="function"||typeof De.hasChildNodes!="function")},Pt=function(De){return typeof s=="function"&&De instanceof s};function st(dt,De,Ye){P[dt]&&XS(P[dt],ot=>{ot.call(t,De,Ye,jt)})}const Ct=function(De){let Ye=null;if(st("beforeSanitizeElements",De,null),Ot(De))return Je(De),!0;const ot=nt(De.nodeName);if(st("uponSanitizeElement",De,{tagName:ot,allowedTags:V}),De.hasChildNodes()&&!Pt(De.firstElementChild)&&os(/<[/\w]/g,De.innerHTML)&&os(/<[/\w]/g,De.textContent)||De.nodeType===e2.progressingInstruction||pe&&De.nodeType===e2.comment&&os(/<[/\w]/g,De.data))return Je(De),!0;if(!V[ot]||ie[ot]){if(!ie[ot]&&qt(ot)&&(ee.tagNameCheck instanceof RegExp&&os(ee.tagNameCheck,ot)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(ot)))return!1;if(se&&!z[ot]){const Re=b(De)||De.parentNode,It=w(De)||De.childNodes;if(It&&Re){const rt=It.length;for(let $t=rt-1;$t>=0;--$t){const Mt=g(It[$t],!0);Mt.__removalCount=(De.__removalCount||0)+1,Re.insertBefore(Mt,y(De))}}}return Je(De),!0}return De instanceof l&&!Le(De)||(ot==="noscript"||ot==="noembed"||ot==="noframes")&&os(/<\/no(script|embed|frames)/i,De.innerHTML)?(Je(De),!0):(ce&&De.nodeType===e2.text&&(Ye=De.textContent,XS([R,O,j],Re=>{Ye=Zb(Ye,Re," ")}),De.textContent!==Ye&&(Xb(t.removed,{element:De.cloneNode()}),De.textContent=Ye)),st("afterSanitizeElements",De,null),!1)},kt=function(De,Ye,ot){if(be&&(Ye==="id"||Ye==="name")&&(ot in n||ot in Lt))return!1;if(!(ae&&!Z[Ye]&&os(I,Ye))){if(!(X&&os(A,Ye))){if(!U[Ye]||Z[Ye]){if(!(qt(De)&&(ee.tagNameCheck instanceof RegExp&&os(ee.tagNameCheck,De)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(De))&&(ee.attributeNameCheck instanceof RegExp&&os(ee.attributeNameCheck,Ye)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Ye))||Ye==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&os(ee.tagNameCheck,ot)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(ot))))return!1}else if(!xe[Ye]){if(!os(L,Zb(ot,F,""))){if(!((Ye==="src"||Ye==="xlink:href"||Ye==="href")&&De!=="script"&&PNt(ot,"data:")===0&&G[De])){if(!(oe&&!os(N,Zb(ot,F,"")))){if(ot)return!1}}}}}}return!0},qt=function(De){return De!=="annotation-xml"&&Ete(De,K)},vt=function(De){st("beforeSanitizeAttributes",De,null);const{attributes:Ye}=De;if(!Ye)return;const ot={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let Re=Ye.length;for(;Re--;){const It=Ye[Re],{name:rt,namespaceURI:$t,value:Mt}=It,dn=nt(rt);let pn=rt==="value"?Mt:ONt(Mt);if(ot.attrName=dn,ot.attrValue=pn,ot.keepAttr=!0,ot.forceKeepAttr=void 0,st("uponSanitizeAttribute",De,ot),pn=ot.attrValue,Se&&(dn==="id"||dn==="name")&&(pt(rt,De),pn=we+pn),pe&&os(/((--!?|])>)|<\/(style|title)/i,pn)){pt(rt,De);continue}if(ot.forceKeepAttr||(pt(rt,De),!ot.keepAttr))continue;if(!le&&os(/\/>/i,pn)){pt(rt,De);continue}ce&&XS([R,O,j],D=>{pn=Zb(pn,D," ")});const T=nt(De.nodeName);if(kt(T,dn,pn)){if(C&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!$t)switch(h.getAttributeType(T,dn)){case"TrustedHTML":{pn=C.createHTML(pn);break}case"TrustedScriptURL":{pn=C.createScriptURL(pn);break}}try{$t?De.setAttributeNS($t,rt,pn):De.setAttribute(rt,pn),Ot(De)?Je(De):kte(t.removed)}catch{}}}st("afterSanitizeAttributes",De,null)},At=function dt(De){let Ye=null;const ot=Nt(De);for(st("beforeSanitizeShadowDOM",De,null);Ye=ot.nextNode();)st("uponSanitizeShadowNode",Ye,null),!Ct(Ye)&&(Ye.content instanceof a&&dt(Ye.content),vt(Ye));st("afterSanitizeShadowDOM",De,null)};return t.sanitize=function(dt){let De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=null,ot=null,Re=null,It=null;if(Ve=!dt,Ve&&(dt=""),typeof dt!="string"&&!Pt(dt))if(typeof dt.toString=="function"){if(dt=dt.toString(),typeof dt!="string")throw Qb("dirty is not a string, aborting")}else throw Qb("toString is not a function");if(!t.isSupported)return dt;if(re||Ut(De),t.removed=[],typeof dt=="string"&&(ye=!1),ye){if(dt.nodeName){const Mt=nt(dt.nodeName);if(!V[Mt]||ie[Mt])throw Qb("root node is forbidden and cannot be sanitized in-place")}}else if(dt instanceof s)Ye=xt(""),ot=Ye.ownerDocument.importNode(dt,!0),ot.nodeType===e2.element&&ot.nodeName==="BODY"||ot.nodeName==="HTML"?Ye=ot:Ye.appendChild(ot);else{if(!ve&&!ce&&!me&&dt.indexOf("<")===-1)return C&&Ce?C.createHTML(dt):dt;if(Ye=xt(dt),!Ye)return ve?null:Ce?k:""}Ye&&fe&&Je(Ye.firstChild);const rt=Nt(ye?dt:Ye);for(;Re=rt.nextNode();)Ct(Re)||(Re.content instanceof a&&At(Re.content),vt(Re));if(ye)return dt;if(ve){if($e)for(It=E.call(Ye.ownerDocument);Ye.firstChild;)It.appendChild(Ye.firstChild);else It=Ye;return(U.shadowroot||U.shadowrootmode)&&(It=M.call(r,It,!0)),It}let $t=me?Ye.outerHTML:Ye.innerHTML;return me&&V["!doctype"]&&Ye.ownerDocument&&Ye.ownerDocument.doctype&&Ye.ownerDocument.doctype.name&&os(cwe,Ye.ownerDocument.doctype.name)&&($t=" -`+$t),ce&&XS([R,O,j],Mt=>{$t=Zb($t,Mt," ")}),C&&Ce?C.createHTML($t):$t},t.setConfig=function(){let dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ut(dt),re=!0},t.clearConfig=function(){jt=null,re=!1},t.isValidAttribute=function(dt,De,Ye){jt||Ut({});const ot=nt(dt),Re=nt(De);return kt(ot,Re,Ye)},t.addHook=function(dt,De){typeof De=="function"&&(P[dt]=P[dt]||[],Xb(P[dt],De))},t.removeHook=function(dt){if(P[dt])return kte(P[dt])},t.removeHooks=function(dt){P[dt]&&(P[dt]=[])},t.removeAllHooks=function(){P={}},t}var qNt=uwe();function KNt(e,t="click"){const n=d.useRef();return d.useEffect(()=>{const r=i=>{const a=n.current;!a||a.contains(i.target)||e&&e(i)};return document.addEventListener(t,r),()=>{document.removeEventListener(t,r)}},[t,e]),n}function BH(e){const t=d.useRef(null);return d.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function GNt(e){const t=d.useRef(e);return t.current=e,t}function YNt(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)}function XNt(e){return e.offsetHeight}const ZNt=5*60*1e3;let Rte=0;const rP=(e,t)=>{const n=e.createdAt||Date.now(),r=e.hasTime||n-Rte>ZNt;return r&&(Rte=n),{...e,_id:e._id||t||YNt(),createdAt:n,position:e.position||"left",hasTime:r}};function dwe(e=[]){const t=d.useMemo(()=>e.map(c=>rP(c)),[e]),[n,r]=d.useState(t),i=d.useCallback(c=>{r(u=>[...c,...u])},[]),a=d.useCallback((c,u)=>{r(f=>f.map(p=>p._id===c?rP(u,c):p))},[]),o=d.useCallback(c=>{const u=rP(c);r(f=>[...f,u])},[]),s=d.useCallback(c=>{r(u=>u.filter(f=>f._id!==c))},[]),l=d.useCallback((c=[])=>{r(c)},[]);return{messages:n,prependMsgs:i,appendMsg:o,updateMsg:a,deleteMsg:s,resetList:l}}function fwe({active:e=!1,ref:t,delay:n=300}){const[r,i]=d.useState(!1),[a,o]=d.useState(!1),s=d.useRef(),l=()=>{s.current&&clearTimeout(s.current)};return d.useEffect(()=>(e?(l(),o(e)):(i(e),s.current=setTimeout(()=>{o(e)},n)),l),[e,n]),d.useEffect(()=>{t.current&&XNt(t.current),i(a)},[a,t]),{didMount:a,isShow:r}}class _nn extends te.Component{constructor(t){super(t),this.state={error:null,errorInfo:null}}componentDidCatch(t,n){const{onError:r}=this.props;r&&r(t,n),this.setState({error:t,errorInfo:n})}render(){const{FallbackComponent:t,children:n,...r}=this.props,{error:i,errorInfo:a}=this.state;return a?t?x.jsx(t,{error:i,errorInfo:a,...r}):null:n}}te.createContext({addComponent:()=>{},hasComponent:()=>!1,getComponent:()=>null});const QNt=e=>{const{className:t,src:n,alt:r,url:i,size:a="md",shape:o="circle",children:s}=e,l=i?"a":"span";return x.jsx(l,{className:Zn("Avatar",`Avatar--${a}`,`Avatar--${o}`,t),href:i,children:n?x.jsx("img",{src:n,alt:r}):s})},JNt=e=>{const{className:t,active:n,onClick:r,...i}=e;return x.jsx("div",{className:Zn("Backdrop",t,{active:n}),onClick:r,role:"button",tabIndex:-1,"aria-hidden":!0,...i})},pwe=({content:e})=>{const t=qNt.sanitize(e,{ALLOWED_TAGS:["p","div","span","h1","h2","h3","h4","h5","h6","ul","ol","li","a","strong","em","b","i","img","blockquote","code","pre"],ALLOWED_ATTR:["href","target","src","alt","style","class"]});return x.jsx("div",{className:"RichText",dangerouslySetInnerHTML:{__html:t}})},eAt=/(\+?86-?)?1[3-9]\d{9}/g,tAt=/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,qu=te.forwardRef((e,t)=>{const{type:n="text",content:r,children:i,isRichText:a=!1,onPhoneClick:o,onEmailClick:s,onAiClick:l,onSearchClick:c,showFunctionButtons:u=!0,...f}=e,[p,h]=d.useState(!1),m=y=>{const w=y.replace(/^\+?86-?/,"");console.log(`拨打电话: ${w}`),o==null||o(w)},g=y=>{console.log(`发送邮件: ${y}`),s==null||s(y)},v=()=>{if(!r)return null;if(a)return x.jsx(pwe,{content:r});let y=0;const w=[],b=r,C=[];let k;for(;(k=eAt.exec(b))!==null;)C.push({value:k[0],index:k.index,type:"phone"});let S;for(;(S=tAt.exec(b))!==null;)C.push({value:S[0],index:S.index,type:"email"});return C.sort((_,E)=>_.index-E.index),C.forEach((_,E)=>{_.index>y&&w.push(b.substring(y,_.index)),w.push(x.jsx("a",{href:"#",onClick:$=>{$.preventDefault(),_.type==="phone"?m(_.value):g(_.value)},style:{color:"#1890ff",textDecoration:"none",cursor:"pointer"},children:_.value},E)),y=_.index+_.value.length}),yh(!0),onMouseLeave:()=>h(!1),...f,children:[v(),i,u&&p&&n==="text"&&r&&x.jsxs("div",{className:"bubble-function-buttons",children:[c&&x.jsx("button",{className:"bubble-function-button search-button",onClick:y=>{y.stopPropagation(),c()},title:"搜索快捷短语",children:x.jsx("i",{className:"search-icon",children:"🔍"})}),l&&x.jsx("button",{className:"bubble-function-button ai-button",onClick:y=>{y.stopPropagation(),l()},title:"问AI",children:x.jsx("i",{className:"ai-icon",children:"🤖"})})]})]})}),yo=te.forwardRef((e,t)=>{const{type:n,className:r,spin:i,name:a,...o}=e,s=typeof a=="string"?{"aria-label":a}:{"aria-hidden":!0};return x.jsx("svg",{className:Zn("Icon",{"is-spin":i},r),ref:t,...s,...o,children:x.jsx("use",{xlinkHref:`#icon-${n}`})})});function iP(e){return e&&`Btn--${e}`}const qs=te.forwardRef((e,t)=>{const{className:n,label:r,color:i,variant:a,size:o,icon:s,loading:l,block:c,disabled:u,children:f,onClick:p,...h}=e,m=s||l&&"spinner",g=o||(c?"lg":"");function v(y){!u&&!l&&p&&p(y)}return x.jsxs("button",{className:Zn("Btn",iP(i),iP(a),iP(g),{"Btn--block":c},n),type:"button",disabled:u,onClick:v,ref:t,...h,children:[m&&x.jsx("span",{className:"Btn-icon",children:x.jsx(yo,{type:m,spin:l})}),r||f]})}),nAt={BackBottom:{newMsgOne:"{n} رسالة جديدة",newMsgOther:"{n} رسالة جديدة",bottom:"الأسفل"},Time:{weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),formats:{LT:"HH:mm",lll:"YYYY/M/D HH:mm",WT:"HH:mm dddd",YT:"HH:mm أمس"}},Composer:{send:"إرسال"},SendConfirm:{title:"إرسال صورة",send:"أرسل",cancel:"إلغاء"},RateActions:{up:"التصويت",down:"تصويت سلبي"},Recorder:{hold2talk:"أستمر بالضغط لتتحدث",release2send:"حرر للإرسال",releaseOrSwipe:"حرر للإرسال ، اسحب لأعلى للإلغاء",release2cancel:"حرر للإلغاء"},Search:{search:"يبحث"}},rAt={BackBottom:{newMsgOne:"{n} new message",newMsgOther:"{n} new messages",bottom:"Bottom"},Time:{weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),formats:{LT:"HH:mm",lll:"M/D/YYYY HH:mm",WT:"dddd HH:mm",YT:"Yesterday HH:mm"}},Composer:{send:"Send"},SendConfirm:{title:"Send photo",send:"Send",cancel:"Cancel"},RateActions:{up:"Up vote",down:"Down vote"},Recorder:{hold2talk:"Hold to Talk",release2send:"Release to Send",releaseOrSwipe:"Release to send, swipe up to cancel",release2cancel:"Release to cancel"},Search:{search:"Search"}},iAt={BackBottom:{newMsgOne:"{n} nouveau message",newMsgOther:"{n} nouveau messages",bottom:"Fond"},Time:{weekdays:"Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),formats:{LT:"HH:mm",lll:"D/M/YYYY HH:mm",WT:"dddd HH:mm",YT:"Hier HH:mm"}},Composer:{send:"Envoyer"},SendConfirm:{title:"Envoyer une photo",send:"Envoyer",cancel:"Annuler"},RateActions:{up:"Voter pour",down:"Vote négatif"},Recorder:{hold2talk:"Tenir pour parler",release2send:"Libérer pour envoyer",releaseOrSwipe:"Relâchez pour envoyer, balayez vers le haut pour annuler",release2cancel:"Relâcher pour annuler"},Search:{search:"Chercher"}},aAt={BackBottom:{newMsgOne:"{n}条新消息",newMsgOther:"{n}条新消息",bottom:"回到底部"},Time:{weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),formats:{LT:"HH:mm",lll:"YYYY年M月D日 HH:mm",WT:"dddd HH:mm",YT:"昨天 HH:mm"}},Composer:{send:"发送"},SendConfirm:{title:"发送图片",send:"发送",cancel:"取消"},RateActions:{up:"赞同",down:"反对"},Recorder:{hold2talk:"按住 说话",release2send:"松开 发送",releaseOrSwipe:"松开发送,上滑取消",release2cancel:"松开手指,取消发送"},Search:{search:"搜索"}},Ite={"ar-EG":nAt,"fr-FR":iAt,"en-US":rAt,"zh-CN":aAt},hwe="en-US",zH=te.createContext({}),oAt=({locale:e=hwe,locales:t,elderMode:n,children:r})=>x.jsx(zH.Provider,{value:{locale:e,locales:t,elderMode:n},children:r}),HH=()=>d.useContext(zH),h1=(e,t)=>{const{locale:n,locales:r}=d.useContext(zH);let a={...n&&Ite[n]||Ite[hwe],...r};return!n&&!r&&t?a=t:e&&(a=a[e]||{}),{locale:n,trans:o=>o?a[o]:a}},Xs=te.forwardRef((e,t)=>{const{className:n,size:r,fluid:i,children:a,...o}=e,s=HH();return x.jsx("div",{className:Zn("Card",r&&`Card--${r}`,{"Card--fluid":i},n),"data-fluid":i,"data-elder-mode":s.elderMode,...o,ref:t,children:a})}),sAt={row:"Flex--d-r","row-reverse":"Flex--d-rr",column:"Flex--d-c","column-reverse":"Flex--d-cr"},lAt={nowrap:"Flex--w-n",wrap:"Flex--w-w","wrap-reverse":"Flex--w-wr"},cAt={"flex-start":"Flex--jc-fs","flex-end":"Flex--jc-fe",center:"Flex--jc-c","space-between":"Flex--jc-sb","space-around":"Flex--jc-sa"},uAt={"flex-start":"Flex--ai-fs","flex-end":"Flex--ai-fe",center:"Flex--ai-c"},fu=te.forwardRef((e,t)=>{const{as:n="div",className:r,inline:i,center:a,direction:o,wrap:s,justifyContent:l,justify:c=l,alignItems:u,align:f=u,children:p,...h}=e;return x.jsx(n,{className:Zn("Flex",o&&sAt[o],c&&cAt[c],f&&uAt[f],s&&lAt[s],{"Flex--inline":i,"Flex--center":a},r),ref:t,...h,children:p})}),mA=te.forwardRef((e,t)=>{const{className:n,flex:r,alignSelf:i,order:a,style:o,children:s,...l}=e;return x.jsx("div",{className:Zn("FlexItem",n),style:{...o,flex:r,alignSelf:i,order:a},ref:t,...l,children:s})});te.forwardRef((e,t)=>{const{className:n,aspectRatio:r="square",color:i,image:a,children:o,...s}=e,l={backgroundColor:i||void 0,backgroundImage:typeof a=="string"?`url('${a}')`:void 0};return x.jsx("div",{className:Zn("CardMedia",{"CardMedia--wide":r==="wide","CardMedia--square":r==="square"},n),style:l,...s,ref:t,children:o&&x.jsx(fu,{className:"CardMedia-content",direction:"column",center:!0,children:o})})});const tp=te.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return x.jsx("div",{className:Zn("CardContent",n),...i,ref:t,children:r})}),np=te.forwardRef((e,t)=>{const{className:n,title:r,subtitle:i,center:a,children:o,...s}=e;return x.jsxs("div",{className:Zn("CardTitle",{"CardTitle--center":a},n),...s,ref:t,children:[r&&x.jsx("h5",{className:"CardTitle-title",children:r}),o&&typeof o=="string"&&x.jsx("h5",{className:"CardTitle-title",children:o}),i&&x.jsx("p",{className:"CardTitle-subtitle",children:i}),o&&typeof o!="string"&&o]})}),UH=te.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return x.jsx("div",{className:Zn("CardText",n),...i,ref:t,children:typeof r=="string"?x.jsx("p",{children:r}):r})}),mwe=te.forwardRef((e,t)=>{const{children:n,className:r,direction:i,...a}=e;return x.jsx("div",{className:Zn("CardActions",r,i&&`CardActions--${i}`),...a,ref:t,children:n})}),aP=e=>{const{width:t,children:n}=e;return x.jsx("div",{className:"Carousel-item",style:{width:t},children:n})},gwe=(e,t)=>{e.style.transform=t,e.style.webkitTransform=t},jte=(e,t)=>{e.style.transition=t,e.style.webkitTransition=t},dAt={passiveListener:()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener("test",null,t)}catch{}return e},smoothScroll:()=>"scrollBehavior"in document.documentElement.style,touch:()=>"ontouchstart"in window};function m1(e){return dAt[e]()}const fAt=["TEXTAREA","OPTION","INPUT","SELECT"],pAt=m1("touch");te.forwardRef((e,t)=>{const{className:n,startIndex:r=0,draggable:i=!0,duration:a=300,easing:o="ease",threshold:s=20,clickDragThreshold:l=10,loop:c=!0,rtl:u=!1,autoPlay:f=e.autoplay||!1,interval:p=e.autoplaySpeed||4e3,dots:h=e.indicators||!0,onChange:m,children:g}=e,v=te.Children.count(g),y=`${100/v}%`,w=d.useRef(null),b=d.useRef(null),C=d.useRef(null),k=d.useRef({first:!0,wrapWidth:0,hover:!1,startX:0,endX:0,startY:0,canMove:null,pressDown:!1}),S=d.useCallback(oe=>c?oe%v:Math.max(0,Math.min(oe,v-1)),[v,c]),[_,E]=d.useState(S(r)),[$,M]=d.useState(!1),P=d.useCallback(()=>{jte(b.current,`transform ${a}ms ${o}`)},[a,o]),R=()=>{jte(b.current,"transform 0s")},O=oe=>{gwe(b.current,`translate3d(${oe}px, 0, 0)`)},j=d.useCallback((oe,le)=>{const ce=c?oe+1:oe,pe=(u?1:-1)*ce*k.current.wrapWidth;le?requestAnimationFrame(()=>{requestAnimationFrame(()=>{P(),O(pe)})}):O(pe)},[P,c,u]),I=d.useCallback(oe=>{if(v<=1)return;const le=S(oe);le!==_&&E(le)},[_,v,S]),A=d.useCallback(()=>{if(v<=1)return;let oe=_-1;if(c){if(oe<0){const le=k.current,ce=v+1,pe=(u?1:-1)*ce*le.wrapWidth,me=i?le.endX-le.startX:0;R(),O(pe+me),oe=v-1}}else oe=Math.max(oe,0);oe!==_&&E(oe)},[_,v,i,c,u]),N=d.useCallback(()=>{if(v<=1)return;let oe=_+1;if(c){if(oe>v-1){oe=0;const ce=k.current,pe=i?ce.endX-ce.startX:0;R(),O(pe)}}else oe=Math.min(oe,v-1);oe!==_&&E(oe)},[_,v,i,c]),F=d.useCallback(()=>{!f||k.current.hover||(C.current=setTimeout(()=>{P(),N()},p))},[f,p,P,N]),K=()=>{clearTimeout(C.current)},L=()=>{j(_,!0),F()},V=()=>{const oe=k.current,le=(u?-1:1)*(oe.endX-oe.startX),ce=Math.abs(le),pe=le>0&&_-1<0,me=le<0&&_+1>v-1;pe||me?c?pe?A():N():L():le>0&&ce>s&&v>1?A():le<0&&ce>s&&v>1?N():L()},B=()=>{const oe=k.current;oe.startX=0,oe.endX=0,oe.startY=0,oe.canMove=null,oe.pressDown=!1},U=oe=>{if(fAt.includes(oe.target.nodeName))return;oe.preventDefault(),oe.stopPropagation();const le="touches"in oe?oe.touches[0]:oe,ce=k.current;ce.pressDown=!0,ce.startX=le.pageX,ce.startY=le.pageY,K()},Y=oe=>{oe.stopPropagation();const le="touches"in oe?oe.touches[0]:oe,ce=k.current;if(ce.pressDown){if("touches"in oe&&(ce.canMove===null&&(ce.canMove=Math.abs(ce.startY-le.pageY)l&&M(!0);const fe=u?me+re:re-me;O(fe)}},ee=oe=>{oe.stopPropagation();const le=k.current;le.pressDown=!1,M(!1),P(),le.endX?V():F(),B()},ie=()=>{k.current.hover=!0,K()},Z=oe=>{const le=k.current;le.hover=!1,le.pressDown&&(le.pressDown=!1,le.endX=oe.pageX,P(),V(),B()),F()},X=oe=>{const{slideTo:le}=oe.currentTarget.dataset;if(le){const ce=parseInt(le,10);I(ce)}oe.preventDefault()};d.useImperativeHandle(t,()=>({goTo:I,prev:A,next:N,wrapperRef:w}),[I,A,N]),d.useEffect(()=>{function oe(){k.current.wrapWidth=w.current.offsetWidth,j(_)}return k.current.first&&oe(),window.addEventListener("resize",oe),()=>{window.removeEventListener("resize",oe)}},[_,j]),d.useEffect(()=>{m&&!k.current.first&&m(_)},[_,m]),d.useEffect(()=>{k.current.first?(j(_),k.current.first=!1):j(_,!0)},[_,j]),d.useEffect(()=>(F(),()=>{K()}),[f,_,F]);let ae;return i?ae=pAt?{onTouchStart:U,onTouchMove:Y,onTouchEnd:ee}:{onMouseDown:U,onMouseMove:Y,onMouseUp:ee,onMouseEnter:ie,onMouseLeave:Z}:ae={onMouseEnter:ie,onMouseLeave:Z},x.jsxs("div",{className:Zn("Carousel",{"Carousel--draggable":i,"Carousel--rtl":u,"Carousel--dragging":$},n),ref:w,...ae,children:[x.jsxs("div",{className:"Carousel-inner",style:{width:`${c?v+2:v}00%`},ref:b,children:[c&&x.jsx(aP,{width:y,children:te.Children.toArray(g)[v-1]}),te.Children.map(g,(oe,le)=>x.jsx(aP,{width:y,children:oe},le)),c&&x.jsx(aP,{width:y,children:te.Children.toArray(g)[0]})]}),h&&x.jsx("ol",{className:"Carousel-dots",children:te.Children.map(g,(oe,le)=>x.jsx("li",{children:x.jsx("button",{className:Zn("Carousel-dot",{active:_===le}),type:"button","aria-label":`Go to slide ${le+1}`,"data-slide-to":le,onClick:X})},le))})]})});const hAt=te.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return x.jsxs("label",{className:Zn("Checkbox",n,{"Checkbox--checked":i,"Checkbox--disabled":a}),ref:t,children:[x.jsx("input",{type:"checkbox",className:"Checkbox-input",checked:i,disabled:a,onChange:o,...s}),x.jsx("span",{className:"Checkbox-text",children:r})]})});te.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;function c(u,f){const p=f.target.checked?i.concat(u):i.filter(h=>h!==u);l(p,f)}return x.jsx("div",{className:Zn("CheckboxGroup",{"CheckboxGroup--block":s},n),ref:t,children:r.map(u=>x.jsx(hAt,{label:u.label||u.value,value:u.value,name:a,checked:i.includes(u.value),disabled:"disabled"in u?u.disabled:o,onChange:f=>{c(u.value,f)}},u.value))})});const gA=document,mAt=gA.documentElement,gAt=e=>{const{children:t,onClick:n,mouseEvent:r="mouseup",...i}=e,a=d.useRef(null);function o(s){a.current&&mAt.contains(s.target)&&!a.current.contains(s.target)&&n(s)}return d.useEffect(()=>(r&&gA.addEventListener(r,o),()=>{gA.removeEventListener(r,o)})),x.jsx("div",{ref:a,...i,children:t})},vAt="//gw.alicdn.com/tfs/TB1fnnLRkvoK1RjSZFDXXXY3pXa-300-250.svg",yAt="//gw.alicdn.com/tfs/TB1lRjJRbvpK1RjSZPiXXbmwXXa-300-250.svg";te.forwardRef((e,t)=>{const{className:n,type:r,image:i,tip:a,children:o}=e,s=i||(r==="error"?yAt:vAt);return x.jsxs(fu,{className:Zn("Empty",n),direction:"column",center:!0,ref:t,children:[x.jsx("img",{className:"Empty-img",src:s,alt:a}),a&&x.jsx("p",{className:"Empty-tip",children:a}),o]})});const bAt=te.createContext("");te.forwardRef((e,t)=>{const{children:n,...r}=e;return x.jsx("label",{className:"Label",...r,ref:t,children:n})});const xu=te.forwardRef((e,t)=>{const{className:n,icon:r,img:i,...a}=e;return x.jsxs(qs,{className:Zn("IconBtn",n),ref:t,...a,children:[r&&x.jsx(yo,{type:r}),!r&&i&&x.jsx("img",{src:i,alt:""})]})});te.forwardRef((e,t)=>{const{className:n,src:r,lazy:i,fluid:a,children:o,...s}=e,[l,c]=d.useState(i?void 0:r),u=BH(t),f=d.useRef(""),p=d.useRef(!1);return d.useEffect(()=>{if(!i)return;const h=new IntersectionObserver(([m])=>{m.isIntersecting&&(c(f.current),p.current=!0,h.unobserve(m.target))});return u.current&&h.observe(u.current),()=>{h.disconnect()}},[u,i]),d.useEffect(()=>{f.current=r,(!i||p.current)&&c(r)},[i,r]),x.jsx("img",{className:Zn("Image",{"Image--fluid":a},n),src:l,alt:"",ref:u,...s})});function vwe(e){return e.scrollHeight-e.scrollTop-e.offsetHeight}te.forwardRef((e,t)=>{const{className:n,disabled:r,distance:i=0,children:a,onLoadMore:o,onScroll:s,...l}=e,c=BH(t);function u(f){s&&s(f);const p=c.current;if(!p)return;vwe(p)<=i&&o()}return x.jsx("div",{className:Zn("InfiniteScroll",n),role:"feed",onScroll:r?void 0:u,ref:c,...l,children:a})});function wAt(e,t){return`${`${e}`.length}${t?`/${t}`:""}`}const vA=te.forwardRef((e,t)=>{const{className:n,type:r="text",variant:i,value:a,placeholder:o,rows:s=1,minRows:l=s,maxRows:c=5,maxLength:u,showCount:f=!!u,multiline:p,autoSize:h,onChange:m,...g}=e;let v=s;vc&&(v=c);const[y,w]=d.useState(v),[b,C]=d.useState(21),k=BH(t),S=d.useContext(bAt),_=i||(S==="light"?"flushed":"outline"),$=p||h||s>1?"textarea":"input";d.useEffect(()=>{if(!k.current)return;const O=getComputedStyle(k.current,null).lineHeight,j=Number(O.replace("px",""));j!==b&&C(j)},[k,b]);const M=d.useCallback(()=>{if(!h||!k.current)return;const O=k.current,j=O.rows;O.rows=l,o&&(O.placeholder="");const I=~~(O.scrollHeight/b);I===j&&(O.rows=I),I>=c&&(O.rows=c,O.scrollTop=O.scrollHeight),w(I{a===""?w(v):M()},[v,M,a]);const P=d.useCallback(O=>{if(M(),m){const j=O.target.value,A=u&&j.length>u?j.substr(0,u):j;m(A,O)}},[u,m,M]),R=x.jsx($,{className:Zn("Input",`Input--${_}`,n),type:r,value:a,placeholder:o,maxLength:u,ref:k,rows:y,onChange:P,...g});return f?x.jsxs("div",{className:Zn("InputWrapper",{"has-counter":f}),children:[R,f&&x.jsx("div",{className:"Input-counter",children:wAt(a,u)})]}):R});te.forwardRef((e,t)=>{const{bordered:n=!1,className:r,children:i}=e;return x.jsx("div",{className:Zn("List",{"List--bordered":n},r),role:"list",ref:t,children:i})});te.forwardRef((e,t)=>{const{className:n,as:r="div",content:i,rightIcon:a,children:o,onClick:s,...l}=e;return x.jsxs(r,{className:Zn("ListItem",n),onClick:s,role:"listitem",...l,ref:t,children:[x.jsx("div",{className:"ListItem-content",children:i||o}),a&&x.jsx(yo,{type:a})]})});const xAt=e=>{const{className:t,content:n,action:r}=e;return x.jsx("div",{className:Zn("Message SystemMessage",t),children:x.jsxs("div",{className:"SystemMessage-inner",children:[x.jsx("span",{children:x.jsx(pwe,{content:n})}),r&&x.jsx("a",{href:"javascript:;",onClick:r.onClick,children:r.text})]})})},SAt=/YYYY|M|D|dddd|HH|mm/g,ywe=24*60*60*1e3,CAt=ywe*7,_At=e=>e instanceof Date?e:new Date(e),kAt=()=>new Date(new Date().setHours(0,0,0,0)),Nte=e=>(e<=9?"0":"")+e,EAt=e=>{const t=kAt().getTime()-e.getTime();return t<0?"LT":ti[a])}const MAt=({date:e})=>{const{trans:t}=h1("Time");return x.jsx("time",{className:"Time",dateTime:new Date(e).toJSON(),children:$At(e,t())})};function TAt(){return x.jsx(qu,{type:"typing",children:x.jsxs("div",{className:"Typing","aria-busy":"true",children:[x.jsx("div",{className:"Typing-dot"}),x.jsx("div",{className:"Typing-dot"}),x.jsx("div",{className:"Typing-dot"})]})})}const PAt=e=>{const{renderMessageContent:t=()=>null,...n}=e,{type:r,content:i,user:a={},_id:o,position:s="left",hasTime:l=!0,createdAt:c}=n,{name:u,avatar:f}=a;if(r==="system"||r===G3||r===m0||r===g0||r===v0)return x.jsx(xAt,{content:i,action:i.action});const p=s==="right"||s==="left";return x.jsxs("div",{className:Zn("Message",s),"data-id":o,"data-type":r,children:[l&&c&&x.jsx("div",{className:"Message-meta",children:x.jsx(MAt,{date:c})}),x.jsxs("div",{className:"Message-main",children:[p&&f&&x.jsx(QNt,{src:f,alt:u,url:a.url}),x.jsxs("div",{className:"Message-inner",children:[p&&u&&x.jsx("div",{className:"Message-author",children:u}),x.jsx("div",{className:"Message-content",role:"alert","aria-live":"assertive","aria-atomic":"false",children:r==="typing"?x.jsx(TAt,{}):t(n)})]})]})]})},Ate=te.memo(PAt),ll=({status:e,delay:t=1500,maxDelay:n=5e3,onRetry:r,onChange:i})=>{const a=jn(),[o,s]=d.useState(""),l=d.useRef(),c=d.useRef(),u=d.useCallback(()=>{l.current=setTimeout(()=>{s("loading")},t),c.current=setTimeout(()=>{s("fail")},n)},[t,n]);function f(){l.current&&clearTimeout(l.current),c.current&&clearTimeout(c.current)}d.useEffect(()=>(f(),e==="SENDING"?u():e==="SUCCESS"?s(""):e==="READ"?s("READ"):e==="DELIVERED"?s("DELIVERED"):e==="TIMEOUT"&&s("fail"),f),[e,u]),d.useEffect(()=>{i&&i(o)},[i,o]);function p(){s("loading"),u(),r&&r()}return x.jsxs("div",{className:"MessageStatus","data-status":o,children:[o==="loading"&&x.jsx(yo,{type:"spinner",spin:!0,onClick:p}),o==="fail"&&x.jsx(xu,{icon:"warning-circle-fill",onClick:p}),o==="READ"&&x.jsx("div",{style:{fontSize:12,color:"gray"},children:a.formatMessage({id:"message.status.read",defaultMessage:"已读"})}),o==="DELIVERED"&&x.jsx("div",{style:{fontSize:12,color:"gray"},children:a.formatMessage({id:"message.status.delivered",defaultMessage:"已送达"})})]})};let OAt=0;const RAt=()=>OAt++;function bwe(e="id-"){return d.useRef(`${e}${RAt()}`).current}const aw=(e,t,n=document.body)=>{n.classList[t?"add":"remove"](e)};function Dte(){!document.querySelector(".Modal")&&!document.querySelector(".Popup")&&aw("S--modalOpen",!1)}const WH=te.forwardRef((e,t)=>{const{baseClass:n,active:r,className:i,title:a,showClose:o=!0,autoFocus:s=!0,backdrop:l=!0,height:c,overflow:u,actions:f,vertical:p=!0,btnVariant:h,bgColor:m,children:g,onBackdropClick:v,onClose:y}=e,w=bwe("modal-"),b=e.titleId||w,C=HH(),k=d.useRef(null),{didMount:S,isShow:_}=fwe({active:r,ref:k});if(d.useEffect(()=>{setTimeout(()=>{s&&k.current&&k.current.focus()})},[s]),d.useEffect(()=>{_&&aw("S--modalOpen",_)},[_]),d.useEffect(()=>{!r&&!S&&Dte()},[r,S]),d.useImperativeHandle(t,()=>({wrapperRef:k})),d.useEffect(()=>()=>{Dte()},[]),!S)return null;const E=n==="Popup";return Va.createPortal(x.jsxs("div",{className:Zn(n,i,{active:_}),tabIndex:-1,"data-elder-mode":C.elderMode,ref:k,children:[l&&x.jsx(JNt,{active:_,onClick:l===!0?v||y:void 0}),x.jsx("div",{className:Zn(`${n}-dialog`,{"pb-safe":E&&!f}),"data-bg-color":m,"data-height":E&&c?c:void 0,role:"dialog","aria-labelledby":b,"aria-modal":!0,children:x.jsxs("div",{className:`${n}-content`,children:[x.jsxs("div",{className:`${n}-header`,children:[x.jsx("h5",{className:`${n}-title`,id:b,children:a}),o&&y&&x.jsx(xu,{className:`${n}-close`,icon:"close",size:"lg",onClick:y,"aria-label":"关闭"})]}),x.jsx("div",{className:Zn(`${n}-body`,{overflow:u}),children:g}),f&&x.jsx("div",{className:`${n}-footer ${n}-footer--${p?"v":"h"}`,"data-variant":h||"round",children:f.map($=>d.createElement(qs,{size:"lg",block:E,variant:h,...$,key:$.label}))})]})})]}),document.body)}),IAt=te.forwardRef((e,t)=>x.jsx(WH,{baseClass:"Modal",btnVariant:e.vertical===!1?void 0:"outline",ref:t,...e})),Fte=e=>e.color==="primary";te.forwardRef((e,t)=>{const{className:n,vertical:r,actions:i,...a}=e,{locale:o=""}=h1(),s=o.includes("zh"),l=r??!s;return Array.isArray(i)&&i.sort((c,u)=>Fte(c)?l?-1:1:Fte(u)?l?1:-1:0),x.jsx(WH,{baseClass:"Modal",className:Zn("Confirm",n),showClose:!1,btnVariant:"outline",vertical:l,actions:i,ref:t,...a})});const jAt=te.forwardRef((e,t)=>x.jsx(WH,{baseClass:"Popup",overflow:!0,ref:t,...e})),NAt=te.forwardRef((e,t)=>{const{className:n,title:r,logo:i,desc:a,leftContent:o,rightContent:s=[],align:l}=e,c=l==="left",u=c?!0:!i;return x.jsxs("header",{className:Zn("Navbar",{"Navbar--left":c},n),ref:t,children:[x.jsx("div",{className:"Navbar-left",children:o&&x.jsx(xu,{size:"lg",...o})}),x.jsxs("div",{className:"Navbar-main",children:[i&&x.jsx("img",{className:"Navbar-logo",src:i,alt:r}),x.jsxs("div",{className:"Navbar-inner",children:[u&&x.jsx("h2",{className:"Navbar-title",children:r}),x.jsx("div",{className:"Navbar-desc",children:a})]})]}),x.jsx("div",{className:"Navbar-right",children:s.map(f=>x.jsx(xu,{size:"lg",...f},f.icon))})]})}),yA=te.forwardRef((e,t)=>{const{as:n="div",className:r,align:i,breakWord:a,truncate:o,children:s,...l}=e,c=Number.isInteger(o),u=Zn(i&&`Text--${i}`,{"Text--break":a,"Text--truncate":o===!0,"Text--ellipsis":c},r),f=c?{WebkitLineClamp:o}:null;return x.jsx(n,{className:u,style:f,...l,ref:t,children:s})}),AAt="Intl"in window&&typeof Intl.NumberFormat.prototype.formatToParts=="function",Lte=te.forwardRef((e,t)=>{const{className:n,price:r,currency:i,locale:a,original:o,...s}=e;let l=[];if(a&&i&&AAt?l=new Intl.NumberFormat(a,{style:"currency",currency:i}).formatToParts(r):l=void 0,!l){const c=".",[u,f]=`${r}`.split(c);l=[{type:"currency",value:i},{type:"integer",value:u},{type:"decimal",value:f&&c},{type:"fraction",value:f}]}return x.jsx("div",{className:Zn("Price",{"Price--original":o},n),ref:t,...s,children:l.map((c,u)=>c.value?x.jsx("span",{className:`Price-${c.type}`,children:c.value},u):null)})});te.forwardRef((e,t)=>{const{className:n,value:r,status:i,...a}=e;return x.jsx("div",{className:Zn("Progress",i&&`Progress--${i}`,n),ref:t,...a,children:x.jsx("div",{className:"Progress-bar",role:"progressbar",style:{width:`${r}%`},"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100})})});const Bte=requestAnimationFrame;function wwe({el:e,to:t,duration:n=300,x:r}){let i=0;const a=r?"scrollLeft":"scrollTop",o=e[a],s=Math.round(n/16),l=(t-o)/s;if(!Bte){e[a]=t;return}function c(){e[a]+=l,++i{const{distance:n=30,loadingDistance:r=30,maxDistance:i,distanceRatio:a=2,loadMoreText:o="点击加载更多",children:s,onScroll:l,onRefresh:c,renderIndicator:u=K=>K==="active"||K==="loading"?x.jsx(yo,{className:"PullToRefresh-spinner",type:"spinner",spin:!0}):null}=e,f=d.useRef(null),p=d.useRef(null),h=GNt(c),[m,g]=d.useState(0),[v,y]=d.useState("pending"),[w,b]=d.useState(!1),[C,k]=d.useState(!e.onRefresh),S=d.useRef({}),_=d.useRef(v),E=d.useRef(),$=d.useRef(),M=!m1("touch");d.useEffect(()=>{_.current=v},[v]);const P=K=>{const L=p.current;L&&gwe(L,`translate3d(0px,${K}px,0)`)},R=({y:K,animated:L=!0})=>{const V=f.current;if(!V)return;const B=K==="100%"?V.scrollHeight-V.offsetHeight:K;L?wwe({el:V,to:B,x:!1}):V.scrollTop=B},O=d.useCallback(({animated:K=!0}={})=>{R({y:"100%",animated:K})},[]),j=d.useCallback(()=>{g(0),y("pending"),P(0)},[]),I=d.useCallback(()=>{const K=f.current;if(!(!K||!h.current)){y("loading");try{const L=K.scrollHeight;h.current().then(V=>{const B=()=>{R({y:K.scrollHeight-L-50,animated:!1})};clearTimeout(E.current),clearTimeout($.current),B(),E.current=setTimeout(B,150),$.current=setTimeout(B,250),j(),V&&V.noMore&&k(!0)})}catch(L){console.error(L),j()}}},[h,j]),A=()=>{S.current.startY=0},N=d.useCallback(K=>{const L=K.touches[0].clientY,V=f.current.scrollTop<=0;V?S.current.startY||(S.current.startY=L,y("pull"),b(!1)):S.current.startY=0;const{startY:B}=S.current;if(!V||Li&&(U=i),U>0&&(K.cancelable&&K.preventDefault(),K.stopPropagation(),P(U),g(U),y(U>=n?"active":"pull"))},[a,i,n]),F=d.useCallback(()=>{b(!0),S.current.startY&&_.current==="active"?I():j()},[I,j]);return d.useEffect(()=>{const K=f.current;!K||M||(C?(K.removeEventListener("touchstart",A),K.removeEventListener("touchmove",N),K.removeEventListener("touchend",F),K.removeEventListener("touchcancel",F)):(K.addEventListener("touchstart",A,DAt),K.addEventListener("touchmove",N,FAt),K.addEventListener("touchend",F),K.addEventListener("touchcancel",F)))},[C,F,N,M]),d.useEffect(()=>{v==="loading"&&!M&&P(r)},[r,v,M]),d.useImperativeHandle(t,()=>({scrollTo:R,scrollToEnd:O,wrapperRef:f}),[O]),x.jsx("div",{className:"PullToRefresh",ref:f,onScroll:l,children:x.jsx("div",{className:"PullToRefresh-inner",children:x.jsxs("div",{className:Zn("PullToRefresh-content",{"PullToRefresh-transition":w}),ref:p,children:[x.jsx("div",{className:"PullToRefresh-indicator",children:u(v,m)}),!C&&M&&x.jsxs(fu,{className:"PullToRefresh-fallback",center:!0,children:[u(v,n),x.jsx(qs,{className:"PullToRefresh-loadMore",variant:"text",onClick:I,children:o})]}),te.Children.only(s)]})})})}),BAt={threshold:[0,.1]},zte=e=>{const{item:t,effect:n,children:r,onIntersect:i}=e,a=d.useRef(null);return d.useEffect(()=>{if(!i)return;const o=new IntersectionObserver(([s])=>{s.intersectionRatio>0&&(i(t,s)||o.unobserve(s.target))},BAt);return a.current&&o.observe(a.current),()=>{o.disconnect()}},[t,i]),x.jsx("div",{className:Zn("ScrollView-item",{"slide-in-right-item":n==="slide","A-fadeIn":n==="fade"}),ref:a,children:r})},oP=!m1("touch"),zAt=te.forwardRef((e,t)=>{const{className:n,fullWidth:r,scrollX:i=!0,effect:a="slide",data:o,itemKey:s,renderItem:l,onIntersect:c,onScroll:u,children:f,...p}=e,h=d.useRef(null),m=d.useRef(null);function g(){const w=m.current;w.scrollLeft-=w.offsetWidth}function v(){const w=m.current;w.scrollLeft+=w.offsetWidth}const y=d.useCallback((w,b)=>{let C;return s&&(C=typeof s=="function"?s(w,b):w[s]),C||b},[s]);return d.useImperativeHandle(t,()=>({scrollTo:({x:w,y:b})=>{w!=null&&(m.current.scrollLeft=w),b!=null&&(m.current.scrollTop=b)},wrapperRef:h})),x.jsxs("div",{className:Zn("ScrollView",{"ScrollView--fullWidth":r,"ScrollView--x":i,"ScrollView--hasControls":oP},n),ref:h,...p,children:[oP&&x.jsx(xu,{className:"ScrollView-control",icon:"chevron-left","aria-label":"Previous",onClick:g}),x.jsx("div",{className:"ScrollView-scroller",ref:m,onScroll:u,children:x.jsxs("div",{className:"ScrollView-inner",children:[o.map((w,b)=>x.jsx(zte,{item:w,effect:w.effect||a,onIntersect:c,children:l(w,b)},y(w,b))),f?x.jsx(zte,{item:{},effect:a,onIntersect:c,children:f}):null]})}),oP&&x.jsx(xu,{className:"ScrollView-control",icon:"chevron-right","aria-label":"Next",onClick:v})]})}),ja=so(e=>({tickets:[],historyTickets:[],currentTicket:void 0,currentThreadTicket:void 0,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{assignment:x0},setCurrentTicket:t=>e({currentTicket:t}),setCurrentThreadTicket:t=>e({currentThreadTicket:t}),setSearchText:t=>{e({searchText:t})},refreshTickets:async()=>{const{currentOrg:t}=Vr.getState();if(t!=null&&t.uid){const{ticketService:n}=await Sue(async()=>{const{ticketService:r}=await Promise.resolve().then(()=>mWt);return{ticketService:r}},void 0);await n.loadTickets(t.uid)}},setFilter:(t,n)=>e(r=>({filters:{...r.filters,[t]:n}})),clearFilters:()=>e({filters:{}}),setLoading:t=>e({loading:t}),setError:t=>e({error:t}),setTickets:t=>e({tickets:t}),setHistoryTickets:t=>e({historyTickets:t})})),HAt=e=>{const{item:t,index:n,onClick:r,fromTicketTab:i}=e,a=ja(s=>s.currentTicket);function o(){r(t,n)}return x.jsx("button",{className:Zn("QuickReply",{new:t.isNew,highlight:t.isHighlight}),type:"button","data-code":t.code,"aria-label":`快捷短语: ${t.name},双击发送`,onClick:o,disabled:!W2(i,a),children:x.jsxs("div",{className:"QuickReply-inner",children:[t.icon&&x.jsx(yo,{type:t.icon}),x.jsx("span",{children:t.name})]})})},UAt=e=>{const{items:t=[],visible:n=!0,onClick:r,onScroll:i,fromTicketTab:a=!1,chatThread:o}=e,s=d.useRef(null),[l,c]=d.useState(!!i),u=ja(p=>p.currentTicket),f=Na(p=>p.memberInfo);return d.useLayoutEffect(()=>{let p;return s.current&&(c(!1),s.current.scrollTo({x:0,y:0}),p=setTimeout(()=>{c(!0)},500)),()=>{clearTimeout(p)}},[t]),t.length?a&&!Ja(a,u,o,f)?x.jsx(x.Fragment,{}):x.jsx(zAt,{className:"QuickReplies",data:t,itemKey:"name",ref:s,"data-visible":n,onScroll:l?i:void 0,renderItem:(p,h)=>x.jsx(HAt,{item:p,index:h,onClick:r,fromTicketTab:a,chatThread:o},p.name)}):null},WAt=te.memo(UAt),VAt=te.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return x.jsxs("label",{className:Zn("Radio",n,{"Radio--checked":i,"Radio--disabled":a}),ref:t,children:[x.jsx("input",{type:"radio",className:"Radio-input",checked:i,disabled:a,onChange:o,...s}),x.jsx("span",{className:"Radio-text",children:r})]})});te.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;return x.jsx("div",{className:Zn("RadioGroup",{"RadioGroup--block":s},n),ref:t,children:r.map(c=>x.jsx(VAt,{label:c.label||c.value,value:c.value,name:a,checked:i===c.value,disabled:"disabled"in c?c.disabled:o,onChange:u=>{l(c.value,u)}},c.value))})});const QS="up",JS="down",Swe=e=>{const{trans:t}=h1("RateActions",{up:"赞同",down:"反对"}),{upTitle:n=t("up"),downTitle:r=t("down"),onClick:i}=e,[a,o]=d.useState("");function s(u){a||(o(u),i(u))}function l(){s(QS)}function c(){s(JS)}return x.jsxs("div",{className:"RateActions",children:[a!==JS&&x.jsx(xu,{className:Zn("RateBtn",{active:a===QS}),title:n,"data-type":QS,icon:"thumbs-up",onClick:l}),a!==QS&&x.jsx(xu,{className:Zn("RateBtn",{active:a===JS}),title:r,"data-type":JS,icon:"thumbs-down",onClick:c})]})};te.forwardRef((e,t)=>{const{className:n,onSearch:r,onChange:i,onClear:a,value:o,clearable:s=!0,showSearch:l=!0,...c}=e,[u,f]=d.useState(o||""),{trans:p}=h1("Search"),h=y=>{f(y),i&&i(y)},m=()=>{f(""),a&&a()},g=y=>{y.keyCode===13&&(r&&r(u,y),y.preventDefault())},v=y=>{r&&r(u,y)};return x.jsxs("div",{className:Zn("Search",n),ref:t,children:[x.jsx(yo,{className:"Search-icon",type:"search"}),x.jsx(vA,{className:"Search-input",type:"search",value:u,enterKeyHint:"search",onChange:h,onKeyDown:g,...c}),s&&u&&x.jsx(xu,{className:"Search-clear",icon:"x-circle-fill",onClick:m}),l&&x.jsx(qs,{className:"Search-btn",color:"primary",onClick:v,children:p("search")})]})});te.forwardRef(({className:e,placeholder:t,variant:n="outline",children:r,...i},a)=>x.jsxs("select",{className:Zn("Input Select",`Input--${n}`,e),...i,ref:a,children:[t&&x.jsx("option",{value:"",children:t}),r]}));te.forwardRef((e,t)=>{const{className:n,current:r=0,status:i,inverted:a,children:o,...s}=e,c=te.Children.toArray(o).map((u,f)=>{const p={index:f,active:!1,completed:!1,disabled:!1};return r===f?(p.active=!0,p.status=i):r>f?p.completed=!0:(p.disabled=!a,p.completed=a),te.isValidElement(u)?te.cloneElement(u,{...p,...u.props}):null});return x.jsx("ul",{className:Zn("Stepper",n),ref:t,...s,children:c})});function qAt(e){if(e){const t={success:"check-circle-fill",fail:"warning-circle-fill",abort:"dash-circle-fill"};return x.jsx(yo,{type:t[e]})}return x.jsx("div",{className:"Step-dot"})}te.forwardRef((e,t)=>{const{className:n,active:r=!1,completed:i=!1,disabled:a=!1,status:o,index:s,title:l,subTitle:c,desc:u,children:f,...p}=e;return x.jsxs("li",{className:Zn("Step",{"Step--active":r,"Step--completed":i,"Step--disabled":a},n),ref:t,"data-status":o,...p,children:[x.jsx("div",{className:"Step-icon",children:qAt(o)}),x.jsx("div",{className:"Step-line"}),x.jsxs("div",{className:"Step-content",children:[l&&x.jsxs("div",{className:"Step-title",children:[l&&x.jsx("span",{children:l}),c&&x.jsx("small",{children:c})]}),u&&x.jsx("div",{className:"Step-desc",children:u}),f]})]})});const KAt=e=>{const{active:t,index:n,children:r,onClick:i,...a}=e;function o(s){i(n,s)}return x.jsx("div",{className:"Tabs-navItem",children:x.jsx("button",{className:Zn("Tabs-navLink",{active:t}),type:"button",role:"tab","aria-selected":t,onClick:o,...a,children:x.jsx("span",{children:r})})})},GAt=e=>{const{active:t,children:n,...r}=e;return x.jsx("div",{className:Zn("Tabs-pane",{active:t}),...r,role:"tabpanel",children:n})};te.forwardRef((e,t)=>{const{className:n,index:r=0,scrollable:i,hideNavIfOnlyOne:a,children:o,onChange:s}=e,[l,c]=d.useState({}),[u,f]=d.useState(r||0),p=d.useRef(u),h=d.useRef(null),m=[],g=[],v=bwe("tabs-");function y(C,k){f(C),s&&s(C,k)}te.Children.forEach(o,(C,k)=>{if(!C)return;const S=u===k,_=`${v}-${k}`;m.push(x.jsx(KAt,{active:S,index:k,onClick:y,"aria-controls":_,tabIndex:S?-1:0,children:C.props.label},_)),C.props.children&&g.push(x.jsx(GAt,{active:S,id:_,children:C.props.children},_))}),d.useEffect(()=>{f(r)},[r]);const w=d.useCallback(()=>{const C=h.current;if(!C)return;const k=C.children[p.current];if(!k)return;const S=k.querySelector("span");if(!S)return;const{offsetWidth:_,offsetLeft:E}=k,{width:$}=S.getBoundingClientRect(),M=Math.max($-16,26),P=E+_/2;c({transform:`translateX(${P-M/2}px)`,width:`${M}px`}),i&&wwe({el:C,to:P-C.offsetWidth/2,x:!0})},[i]);d.useEffect(()=>{const C=h.current;let k;return C&&"ResizeObserver"in window&&(k=new ResizeObserver(w),k.observe(C)),()=>{k&&C&&k.unobserve(C)}},[w]),d.useEffect(()=>{p.current=u,w()},[u,w]);const b=m.length>(a?1:0);return x.jsxs("div",{className:Zn("Tabs",{"Tabs--scrollable":i},n),ref:t,children:[b&&x.jsxs("div",{className:"Tabs-nav",role:"tablist",ref:h,children:[m,x.jsx("span",{className:"Tabs-navPointer",style:l})]}),x.jsx("div",{className:"Tabs-content",children:g})]})});te.forwardRef(({children:e},t)=>x.jsx("div",{ref:t,children:e}));const YAt=te.forwardRef((e,t)=>{const{as:n="span",className:r,color:i,children:a,...o}=e;return x.jsx(n,{className:Zn("Tag",i&&`Tag--${i}`,r),ref:t,...o,children:a})}),XAt=e=>{const{item:t,onClick:n}=e,{type:r,icon:i,img:a,title:o}=t,s={name:"file",action:"https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188",showUploadList:!1,headers:{authorization:"authorization-text"},onChange(l){l.file.status!=="uploading"&&console.log(l.file,l.fileList),l.file.status==="done"?c3.success(`${l.file.name} file uploaded successfully`):l.file.status==="error"&&c3.error(`${l.file.name} file upload failed.`)}};return x.jsx("div",{className:"Toolbar-item","data-type":r,children:r==="upload"?x.jsx(e1,{...s,children:x.jsxs(qs,{className:"Toolbar-btn",onClick:l=>n(t,l),children:[x.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&x.jsx(yo,{type:i}),a&&x.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),x.jsx("span",{className:"Toolbar-btnText",children:o})]})}):x.jsxs(qs,{className:"Toolbar-btn",onClick:l=>n(t,l),children:[x.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&x.jsx(yo,{type:i}),a&&x.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),x.jsx("span",{className:"Toolbar-btnText",children:o})]})})},ZAt=e=>{const{items:t,onClick:n}=e;return x.jsx("div",{className:"Toolbar",children:t.map(r=>x.jsx(XAt,{item:r,onClick:n},r.type))})};te.forwardRef((e,t)=>{const{className:n,children:r}=e;return x.jsx("div",{className:Zn("Tree",n),role:"tree",ref:t,children:r})});te.forwardRef((e,t)=>{const{title:n,content:r,link:i,children:a=[],onClick:o,onExpand:s}=e,[l,c]=d.useState(!1),u=a.length>0;function f(){u?(c(!l),s(n,!l)):o({title:n,content:r,link:i})}return x.jsxs("div",{className:"TreeNode",role:"treeitem","aria-expanded":l,ref:t,children:[x.jsxs("div",{className:"TreeNode-title",onClick:f,role:"treeitem","aria-expanded":l,tabIndex:0,children:[x.jsx("span",{className:"TreeNode-title-text",children:n}),u?x.jsx(yo,{className:"TreeNode-title-icon",type:l?"chevron-up":"chevron-down"}):null]}),u?a.map((p,h)=>x.jsx("div",{className:Zn("TreeNode-children",{"TreeNode-children-active":l}),children:x.jsx("div",{className:"TreeNode-title TreeNode-children-title",onClick:()=>o({...p,index:h}),role:"treeitem",children:x.jsx("span",{className:"TreeNode-title-text",children:p.title})})},h)):null]})});function QAt(e){if(!e)return"";const t=Math.floor(e/3600),n=Math.floor((e-t*3600)/60),r=Math.floor(e-t*3600-n*60);let i="";return t>0&&(i+=`${t}:`),i+=`${n}:`,r<10&&(i+="0"),i+=r,i}const JAt=te.forwardRef((e,t)=>{const{className:n,src:r,cover:i,duration:a,onClick:o,onCoverLoad:s,style:l,videoRef:c,children:u,...f}=e,p=d.useRef(null),h=d.useRef(null),m=c||h,[g,v]=d.useState(!1),[y,w]=d.useState(!0);function b(E){v(!0);const $=m.current;$&&($.ended||$.paused?$.play():$.pause()),o&&o(y,E)}function C(){w(!1)}function k(){w(!0)}const S=!g&&!!i,_=S&&!!a;return d.useImperativeHandle(t,()=>({wrapperRef:p})),x.jsxs("div",{className:Zn("Video",`Video--${y?"paused":"playing"}`,n),style:l,ref:p,children:[S&&x.jsx("img",{className:"Video-cover",src:i,onLoad:s,alt:""}),_&&x.jsx("span",{className:"Video-duration",children:QAt(+a)}),x.jsx("video",{className:"Video-video",src:r,ref:m,hidden:S,controls:!0,onPlay:C,onPause:k,onEnded:k,...f,children:u}),S&&x.jsx("button",{className:Zn("Video-playBtn",{paused:y}),type:"button",onClick:b,children:x.jsx("span",{className:"Video-playIcon"})})]})}),Cwe=te.forwardRef((e,t)=>{const{fileUrl:n="",children:r}=e,[i,a]=d.useState("");return d.useEffect(()=>{if(!n){a("文件不存在或已被删除");return}try{const o=n.split("/"),s=o[o.length-1];a(s||"未知文件名")}catch(o){console.error("Failed to parse file name from URL:",o),a("文件名解析错误")}},[n]),x.jsx(Xs,{className:"FileCard",size:"xl",ref:t,children:x.jsxs(fu,{children:[x.jsx("div",{className:"FileCard-icon",children:x.jsx(yo,{type:n?"file":"file-error"})}),x.jsxs(mA,{children:[x.jsx(yA,{truncate:2,breakWord:!0,className:`FileCard-name ${n?"":"FileCard-name--error"}`,children:i}),x.jsx("div",{className:"FileCard-meta",children:r})]})]})})});Cwe.displayName="FileCard";const eDt=te.forwardRef((e,t)=>{const n=HH(),{className:r,type:i,img:a,name:o,desc:s,tags:l=[],locale:c,currency:u,price:f,count:p,unit:h,action:m,elderMode:g,children:v,originalPrice:y,meta:w,status:b,...C}=e,k=g||n.elderMode,S=i==="order"&&!k,_=i!=="order"&&!k,E={currency:u,locale:c},$=f!=null&&x.jsx(Lte,{price:f,...E}),M=x.jsxs("div",{className:"Goods-countUnit",children:[p&&x.jsxs("span",{className:"Goods-count",children:["×",p]}),h&&x.jsx("span",{className:"Goods-unit",children:h})]});return x.jsxs(fu,{className:Zn("Goods",r),"data-type":i,"data-elder-mode":k,ref:t,...C,children:[a&&x.jsx("img",{className:"Goods-img",src:a,alt:o}),x.jsxs(mA,{className:"Goods-main",children:[_&&m&&x.jsx(xu,{className:"Goods-buyBtn",icon:"cart",...m}),x.jsx(yA,{as:"h4",truncate:S?2:!0,className:"Goods-name",children:o}),x.jsx(yA,{className:"Goods-desc",truncate:k,children:s}),k?x.jsxs(fu,{alignItems:"center",justifyContent:"space-between",children:[$,m&&x.jsx(qs,{size:"sm",...m})]}):x.jsx("div",{className:"Goods-tags",children:l.map(P=>x.jsx(YAt,{color:"primary",children:P.name},P.name))}),_&&x.jsxs(fu,{alignItems:"flex-end",children:[x.jsxs(mA,{children:[$,y&&x.jsx(Lte,{price:y,original:!0,...E}),w&&x.jsx("span",{className:"Goods-meta",children:w})]}),M]}),v]}),S&&x.jsxs("div",{className:"Goods-aside",children:[$,M,x.jsx("span",{className:"Goods-status",children:b}),m&&x.jsx(qs,{className:"Goods-detailBtn",...m})]})]})}),tDt=({count:e,onClick:t,onDidMount:n})=>{const{trans:r}=h1("BackBottom");let i=r("bottom");return e&&(i=r(e===1?"newMsgOne":"newMsgOther").replace("{n}",e)),d.useEffect(()=>{n&&n()},[n]),x.jsx("div",{className:"BackBottom",children:x.jsxs(qs,{className:"slide-in-right-item",onClick:t,children:[i,x.jsx(yo,{type:"chevron-double-down"})]})})};function nDt(e,t=300){let n=!0;return(...r)=>{n&&(n=!1,e(...r),setTimeout(()=>{n=!0},t))}}const Hte=m1("passiveListener")?{passive:!0}:!1;function sP(e,t){const n=Math.max(e.offsetHeight,600);return vwe(e){const{messages:n,isTyping:r,loadMoreText:i,onRefresh:a,onScroll:o,renderBeforeMessageList:s,renderMessageContent:l,onBackBottomShow:c,onBackBottomClick:u,fromTicketTab:f,chatThread:p}=e,[h,m]=d.useState(!1),[g,v]=d.useState(0),y=d.useRef(h),w=d.useRef(g),b=d.useRef(null),C=d.useRef(null),k=n[n.length-1],S=ja(O=>O.currentTicket),_=Na(O=>O.memberInfo),E=()=>{v(0),m(!1)},$=d.useCallback(O=>{C.current&&(!y.current||O&&O.force)&&(C.current.scrollToEnd(O),y.current&&E())},[]),M=()=>{$({animated:!1,force:!0}),u&&u()},P=d.useRef(nDt(O=>{sP(O,3)?w.current?sP(O,.5)&&E():m(!1):m(!0)})),R=O=>{P.current(O.target),o&&o(O)};return d.useEffect(()=>{w.current=g},[g]),d.useEffect(()=>{y.current=h},[h]),d.useEffect(()=>{const O=C.current,j=O&&O.wrapperRef.current;if(!(!j||!k||k.position==="pop"))if(k.position==="right")$({force:!0});else if(sP(j,2)){const I=!!j.scrollTop;$({animated:I,force:!0})}else v(I=>I+1),m(!0)},[k,$]),d.useEffect(()=>{$()},[r,$]),d.useEffect(()=>{const O=b.current;let j=!1,I=0;function A(){j=!1,I=0}function N(K){const{activeElement:L}=document;L&&L.nodeName==="TEXTAREA"&&(j=!0,I=K.touches[0].clientY)}function F(K){j&&Math.abs(K.touches[0].clientY-I)>20&&(document.activeElement.blur(),A())}return O==null||O.addEventListener("touchstart",N,Hte),O==null||O.addEventListener("touchmove",F,Hte),O==null||O.addEventListener("touchend",A),O==null||O.addEventListener("touchcancel",A),()=>{O==null||O.removeEventListener("touchstart",N),O==null||O.removeEventListener("touchmove",F),O==null||O.removeEventListener("touchend",A),O==null||O.removeEventListener("touchcancel",A)}},[]),d.useImperativeHandle(t,()=>({ref:b,scrollToEnd:$}),[$]),f&&!Ja(f,S,p,_)?x.jsx(za,{}):x.jsxs("div",{className:"MessageContainer",ref:b,tabIndex:-1,children:[s&&s(),x.jsx(LAt,{onRefresh:a,onScroll:R,loadMoreText:i,ref:C,children:x.jsxs("div",{className:"MessageList",children:[n.map(O=>d.createElement(Ate,{...O,renderMessageContent:l,key:O._id})),r&&x.jsx(Ate,{type:"typing",_id:"typing"})]})}),h&&x.jsx(tDt,{count:g,onClick:M,onDidMount:c})]})}),_we=m1("passiveListener"),iDt=_we?{passive:!0}:!1,aDt=_we?{passive:!1}:!1,Ute=80,oDt={inited:"hold2talk",recording:"release2send",willCancel:"release2send"};let t2=0,lP=0;const sDt=te.forwardRef((e,t)=>{const{volume:n,onStart:r,onEnd:i,onCancel:a}=e,[o,s]=d.useState("inited"),l=d.useRef(null),{trans:c}=h1("Recorder"),u=d.useCallback(()=>{const h=Date.now()-t2;i&&i({duration:h})},[i]);d.useImperativeHandle(t,()=>({stop(){s("inited"),u(),t2=0}})),d.useEffect(()=>{const h=l.current;function m(y){y.cancelable&&y.preventDefault(),lP=y.touches[0].pageY,t2=Date.now(),s("recording"),r&&r()}function g(y){if(!t2)return;const w=y.touches[0].pageY,b=lP-w>Ute;s(b?"willCancel":"recording")}function v(y){if(!t2)return;const w=y.changedTouches[0].pageY,b=lP-w{h.removeEventListener("touchstart",m),h.removeEventListener("touchmove",g),h.removeEventListener("touchend",v),h.removeEventListener("touchcancel",v)}},[u,a,r]);const f=o==="willCancel",p={transform:`scale(${(n||1)/100+1})`};return x.jsxs("div",{className:Zn("Recorder",{"Recorder--cancel":f}),ref:l,children:[o!=="inited"&&x.jsxs(fu,{className:"RecorderToast",direction:"column",center:!0,children:[x.jsxs("div",{className:"RecorderToast-waves",hidden:o!=="recording",style:p,children:[x.jsx(yo,{className:"RecorderToast-wave-1",type:"hexagon"}),x.jsx(yo,{className:"RecorderToast-wave-2",type:"hexagon"}),x.jsx(yo,{className:"RecorderToast-wave-3",type:"hexagon"})]}),x.jsx(yo,{className:"RecorderToast-icon",type:f?"cancel":"mic"}),x.jsx("span",{children:c(f?"release2cancel":"releaseOrSwipe")})]}),x.jsx("div",{className:"Recorder-btn",role:"button","aria-label":c("hold2talk"),children:x.jsx("span",{children:c(oDt[o])})})]})}),lDt=({onClickOutside:e,children:t})=>x.jsx(gAt,{onClick:e,children:t});function cDt(e){const t=d.useRef(!1);d.useEffect(()=>{function n(){e(),t.current=!1}function r(){t.current||(t.current=!0,window.requestAnimationFrame?window.requestAnimationFrame(n):setTimeout(n,66))}return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[e])}const uDt=e=>{const{className:t,active:n,target:r,children:i,onClose:a}=e,o=KNt(a,"mousedown"),{didMount:s,isShow:l}=fwe({active:n,ref:o}),[c,u]=d.useState({}),f=d.useCallback(()=>{if(!o.current)return;const p=r.getBoundingClientRect(),h=o.current.getBoundingClientRect();u({top:`${p.top-h.height}px`,left:`${p.left}px`})},[r,o]);return d.useEffect(()=>{o.current&&(o.current.focus(),f())},[s,f,o]),cDt(f),s?Va.createPortal(x.jsxs("div",{className:Zn("Popover",t,{active:l}),ref:o,style:c,children:[x.jsx("div",{className:"Popover-body",children:i}),x.jsx("svg",{className:"Popover-arrow",viewBox:"0 0 9 5",children:x.jsx("polygon",{points:"0,0 5,5, 9,0"})})]}),document.body):null},x_=e=>x.jsx("div",{className:"Composer-actions","data-action-icon":e.icon,children:x.jsx(xu,{size:"lg",...e})}),dDt=e=>{const{item:t,onClick:n}=e;return x.jsx(x_,{icon:t.icon,img:t.img,"data-icon":t.icon,"data-tooltip":t.title||null,"aria-label":t.title,onClick:n})};function Zr(){const e=jn();return{translateString:r=>r==null?r:r&&r.startsWith(Iw)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(Iw)?Nk(e.formatMessage({id:r}),10):Nk(r,8)}}const kwe=e=>{const{file:t,onCancel:n,onSend:r}=e,[i,a]=d.useState(""),[o,s]=d.useState(""),{translateString:l}=Zr();return d.useEffect(()=>{const c=new FileReader;c.onload=p=>{p.target&&a(p.target.result)},c.readAsDataURL(t);const u=t.name.toLowerCase().split(".").pop();console.log("SendConfirm file:",u,t.size);let f="unknown";u==="jpg"||u==="jpeg"||u==="png"||u==="bmp"||u==="gif"?f=Cl:u==="mp4"||u==="avi"||u==="mov"?f=sg:u==="mp3"||u==="wav"?f=Fw:f=cd,s(f)},[t]),x.jsx(IAt,{className:"SendConfirm",title:l("i18n.preview.title"),active:!!i,vertical:!1,actions:[{label:l("i18n.cancel"),onClick:n},{label:l("i18n.send"),color:"primary",onClick:r}],children:x.jsxs(fu,{className:"SendConfirm-inner",center:!0,children:[o===Cl&&x.jsx(x.Fragment,{children:x.jsx("img",{src:i,alt:""})}),o===sg&&x.jsx("div",{style:{width:"80%",height:"80%"},children:x.jsx("video",{controls:!0,style:{width:"100%",height:"100%"},children:x.jsx("source",{src:i,type:"video/mp4"})})}),o===Fw&&x.jsx(x.Fragment,{children:x.jsx("audio",{controls:!0,children:x.jsx("source",{src:i,type:"audio/mp3"})})}),o===cd&&x.jsx(x.Fragment,{children:x.jsxs("div",{className:"SendConfirm-file",children:[x.jsx("i",{className:"iconfont icon-fujian"}),x.jsx("span",{children:t.name})]})})]})})},$3=navigator.userAgent;function fDt(){return/iPad|iPhone|iPod/.test($3)}function pDt(){return/^((?!chrome|android|crios|fxios).)*safari/i.test($3)}function hDt(){return $3.includes("Safari/")||/OS 11_[0-3]\D/.test($3)}function Ewe(){const e=$3.match(/OS (\d+)_/);return e?+e[1]:0}const $we=fDt();function mDt(){if($we){if(hDt())return 0;if(Ewe()<13)return 1}return 2}function gDt(e,t){const n=mDt();let r;const i=t||e,a=()=>{n!==0&&(n===1?document.body.scrollTop=document.body.scrollHeight:i.scrollIntoView(!1))};e.addEventListener("focus",()=>{setTimeout(a,300),r=setTimeout(a,1e3)}),e.addEventListener("blur",()=>{clearTimeout(r),n&&$we&&setTimeout(()=>{document.body.scrollIntoView()})})}function vDt(e,t){const{items:n}=e.clipboardData;if(n&&n.length)for(let r=0;r{const[s,l]=d.useState(null),{value:c,placeholder:u,onFocus:f,onBlur:p,onKeyDown:h,onChange:m}=o,g=ja(M=>M.currentTicket),v=Na(M=>M.memberInfo),y=d.useCallback(M=>{vDt(M,l)},[]),w=d.useCallback(()=>{l(null)},[]),b=d.useCallback(()=>{n&&s&&Promise.resolve(n(s)).then(()=>{l(null)})},[n,s]);d.useEffect(()=>{if(yDt&&e.current){const M=document.querySelector(".Composer");gDt(e.current,M)}},[e]);const[C,k]=d.useState("@"),S=(M,P)=>{console.log("onMentionsSearch:",P),k(P)},_=M=>{m(M,null)},E=M=>{console.log("onMetionSelect",M)},$=M=>{h(M)};return x.jsxs("div",{className:Zn({"S--invisible":t}),children:[x.jsx(N4,{className:"Composer-input",rows:1,value:c,autoSize:!0,allowClear:!0,placeholder:u,prefix:["@","/"],onSearch:S,enterKeyHint:"send",onFocus:f,onBlur:p,onKeyDown:$,onChange:_,onSelect:E,onPaste:n?y:void 0,options:r[C],disabled:!Ja(i,g,a,v),ref:e}),s&&x.jsx(kwe,{file:s,onCancel:w,onSend:b})]})},Vte=({disabled:e,onClick:t})=>{const{trans:n}=h1("Composer");return x.jsx("div",{className:"Composer-actions",children:x.jsx(qs,{className:"Composer-sendBtn",disabled:e,onMouseDown:t,color:"primary",children:n("send")})})},qte="S--focusing",bDt=te.forwardRef((e,t)=>{const{text:n="",textOnce:r,inputType:i="text",wideBreakpoint:a,placeholder:o="请输入...",recorder:s={},onInputTypeChange:l,onFocus:c,onBlur:u,onChange:f,onSend:p,onImageSend:h,onAccessoryToggle:m,toolbar:g=[],onToolbarClick:v,rightAction:y,inputOptions:w,metionOptions:b,fromTicketTab:C=!1,chatThread:k}=e,[S,_]=d.useState(n),[E,$]=d.useState(""),[M,P]=d.useState(o),[R,O]=d.useState(i||"text"),[j,I]=d.useState(!1),[A,N]=d.useState(""),F=d.useRef(null),K=d.useRef(!1),L=d.useRef(),V=d.useRef(),B=d.useRef(!1),[U,Y]=d.useState(!1),ee=ja(we=>we.currentTicket),ie=Na(we=>we.memberInfo);d.useEffect(()=>{const we=a&&window.matchMedia?window.matchMedia(`(min-width: ${a})`):!1;function se(ye){Y(ye.matches)}return Y(we&&we.matches),we&&we.addListener(se),()=>{we&&we.removeListener(se)}},[a]),d.useEffect(()=>{aw("S--wide",U),U||N("")},[U]),d.useEffect(()=>{B.current&&m&&m(j)},[j,m]),d.useEffect(()=>{r?($(r),P(r)):($(""),P(o))},[o,r]),d.useEffect(()=>{B.current=!0},[]),d.useImperativeHandle(t,()=>({setText:_}));const Z=d.useCallback(()=>{const we=R==="voice",se=we?"text":"voice";if(O(se),we){const ye=F.current;ye.focus(),ye.selectionStart=ye.selectionEnd=ye.value.length}l&&l(se)},[R,l]),X=d.useCallback(we=>{clearTimeout(L.current),aw(qte,!0),K.current=!0,c&&c(we)},[c]),ae=d.useCallback(we=>{L.current=setTimeout(()=>{aw(qte,!1),K.current=!1},0),u&&u(we)},[u]),oe=d.useCallback(()=>{S?(p("text",S),_("")):E&&p("text",E),E&&($(""),P(o)),K.current&&F.current.focus()},[o,p,S,E]),le=d.useCallback(we=>{!we.shiftKey&&we.keyCode===13&&(oe(),we.preventDefault())},[oe]),ce=d.useCallback((we,se)=>{_(we),f&&f(we,se)},[f]),pe=d.useCallback(we=>{oe(),we.preventDefault()},[oe]),me=d.useCallback(()=>{I(!j)},[j]),re=d.useCallback(()=>{setTimeout(()=>{I(!1),N("")})},[]),fe=d.useCallback((we,se)=>{v&&v(we,se),we.render&&(V.current=se.currentTarget,N(we.render))},[v]),ve=d.useCallback(()=>{N("")},[]),$e=R==="text",Ce=$e?"volume-circle":"keyboard-circle",be=g.length>0,Se={...w,value:S,inputRef:F,placeholder:M,onFocus:X,onBlur:ae,onKeyDown:le,onChange:ce,onImageSend:h,metionOptions:b};return U?C&&!Ja(C,ee,k,ie)?x.jsx(x.Fragment,{}):x.jsxs("div",{className:"Composer Composer--lg",children:[be&&g.map(we=>x.jsx(dDt,{item:we,onClick:se=>fe(we,se)},we.type)),A&&x.jsx(uDt,{active:!!A,target:V.current,onClose:ve,children:A}),x.jsx("div",{className:"Composer-inputWrap",children:x.jsx(Wte,{invisible:!1,...Se,disabled:!Ja(C,ee,k,ie),fromTicketTab:C,chatThread:k})}),x.jsx(Vte,{onClick:pe,disabled:!S||!Ja(C,ee,k,ie)})]}):C&&!Ja(C,ee,k,ie)?x.jsx(x.Fragment,{}):x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"Composer",children:[s.canRecord&&x.jsx(x_,{className:"Composer-inputTypeBtn","data-icon":Ce,icon:Ce,onClick:Z,"aria-label":$e?"切换到语音输入":"切换到键盘输入"}),x.jsxs("div",{className:"Composer-inputWrap",children:[x.jsx(Wte,{invisible:!$e,...Se,disabled:!W2(C,ee),fromTicketTab:C,chatThread:k}),!$e&&x.jsx(sDt,{...s})]}),!S&&y&&x.jsx(x_,{...y}),be&&x.jsx(x_,{className:Zn("Composer-toggleBtn",{active:j}),icon:"plus-circle",onClick:me,"aria-label":j?"关闭工具栏":"展开工具栏"}),(S||E)&&x.jsx(Vte,{onClick:pe,disabled:!1})]}),j&&x.jsx(lDt,{onClickOutside:re,children:A||x.jsx(ZAt,{items:g,onClick:fe})})]})}),{TextArea:wDt}=Ur,Mwe=te.forwardRef((e,t)=>{const{wideBreakpoint:n,locale:r="zh-CN",locales:i,elderMode:a,navbar:o,renderNavbar:s,loadMoreText:l,renderBeforeMessageList:c,messagesRef:u,onRefresh:f,onScroll:p,messages:h=[],isTyping:m,showTransition:g,translationValue:v,translationPlaceholder:y,translationOnChange:w,renderMessageContent:b,onBackBottomShow:C,onBackBottomClick:k,quickReplies:S=[],quickRepliesVisible:_,onQuickReplyClick:E=()=>{},onQuickReplyScroll:$,renderQuickReplies:M,text:P,textOnce:R,placeholder:O,onInputFocus:j,onInputChange:I,onInputBlur:A,onSend:N,onImageSend:F,inputOptions:K,composerRef:L,inputType:V,onInputTypeChange:B,recorder:U,toolbar:Y,onToolbarClick:ee,onAccessoryToggle:ie,rightAction:Z,metionOptions:X,Composer:ae=bDt,fromTicketTab:oe=!1,chatThread:le}=e,ce=ja(re=>re.currentTicket),pe=Na(re=>re.memberInfo);function me(re){u&&u.current&&u.current.scrollToEnd({animated:!1,force:!0}),j&&j(re)}return d.useEffect(()=>{const re=document.documentElement;pDt()&&(re.dataset.safari="");const fe=Ewe();fe&&fe<11&&(re.dataset.oldIos="")},[]),x.jsx(oAt,{locale:r,locales:i,elderMode:a,children:x.jsxs("div",{className:"ChatApp","data-elder-mode":a,ref:t,children:[s?s():o&&x.jsx(NAt,{...o}),(Ja(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(rDt,{ref:u,loadMoreText:l,messages:h,isTyping:m,renderBeforeMessageList:c,renderMessageContent:b,onRefresh:f,onScroll:p,onBackBottomShow:C,onBackBottomClick:k,fromTicketTab:oe,chatThread:le}),x.jsxs("div",{className:"ChatFooter",children:[M?M():(Ja(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(WAt,{items:S,visible:_,onClick:E,onScroll:$,fromTicketTab:oe,chatThread:le}),g&&x.jsx("div",{style:{float:"left",marginLeft:10,marginTop:5,minWidth:200},children:x.jsx(wDt,{value:v,onChange:re=>w(re.target.value),rows:3,placeholder:y})}),(Ja(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(ae,{wideBreakpoint:n,ref:L,inputType:V,text:P,textOnce:R,inputOptions:K,placeholder:O,onAccessoryToggle:ie,recorder:U,toolbar:Y,onToolbarClick:ee,onInputTypeChange:B,onFocus:me,onChange:I,onBlur:A,onSend:N,onImageSend:F,rightAction:Z,metionOptions:X,fromTicketTab:oe,chatThread:le})]})]})})});var xDt=typeof Element<"u",SDt=typeof Map=="function",CDt=typeof Set=="function",_Dt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function S_(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!S_(e[r],t[r]))return!1;return!0}var a;if(SDt&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!S_(r.value[1],t.get(r.value[0])))return!1;return!0}if(CDt&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(_Dt&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(xDt&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!S_(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var kDt=function(t,n){try{return S_(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const EDt=ei(kDt);var $Dt=function(e,t,n,r,i,a,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},MDt=$Dt;const Kte=ei(MDt);var TDt=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Twe||{}),cP={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Gte=Object.values(Twe),VH={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ODt=Object.entries(VH).reduce((e,[t,n])=>(e[n]=t,e),{}),ru="data-rh",Fv={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Lv=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},RDt=e=>{let t=Lv(e,"title");const n=Lv(e,Fv.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Lv(e,Fv.DEFAULT_TITLE);return t||r||void 0},IDt=e=>Lv(e,Fv.ON_CHANGE_CLIENT_STATE)||(()=>{}),uP=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),jDt=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let a=0;aconsole&&typeof console.warn=="function"&&console.warn(e),n2=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&NDt(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(l=>{let c;const u=Object.keys(l);for(let p=0;pi.push(l));const s=Object.keys(o);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:jDt(["href"],e),bodyAttributes:uP("bodyAttributes",e),defer:Lv(e,Fv.DEFER),encode:Lv(e,Fv.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:uP("htmlAttributes",e),linkTags:n2("link",["rel","href"],e),metaTags:n2("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:n2("noscript",["innerHTML"],e),onChangeClientState:IDt(e),scriptTags:n2("script",["src","innerHTML"],e),styleTags:n2("style",["cssText"],e),title:RDt(e),titleAttributes:uP("titleAttributes",e),prioritizeSeoTags:ADt(e,Fv.PRIORITIZE_SEO_TAGS)}),Pwe=e=>Array.isArray(e)?e.join(""):e,FDt=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(FDt(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Yte=(e,t)=>({...e,[t]:void 0}),LDt=["noscript","script","style"],bA=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Owe=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),BDt=(e,t,n,r)=>{const i=Owe(n),a=Pwe(t);return i?`<${e} ${ru}="true" ${i}>${bA(a,r)}`:`<${e} ${ru}="true">${bA(a,r)}`},zDt=(e,t,n=!0)=>t.reduce((r,i)=>{const a=i,o=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const f=typeof a[u]>"u"?u:`${u}="${bA(a[u],n)}"`;return c?`${c} ${f}`:f},""),s=a.innerHTML||a.cssText||"",l=LDt.indexOf(e)===-1;return`${r}<${e} ${ru}="true" ${o}${l?"/>":`>${s}`}`},""),Rwe=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=VH[r];return n[i||r]=e[r],n},t),HDt=(e,t,n)=>{const r={key:t,[ru]:!0},i=Rwe(n,r);return[te.createElement("title",i,t)]},C_=(e,t)=>t.map((n,r)=>{const i={key:r,[ru]:!0};return Object.keys(n).forEach(a=>{const s=VH[a]||a;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[a]}),te.createElement(e,i)}),Jl=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>HDt(e,t.title,t.titleAttributes),toString:()=>BDt(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Rwe(t),toString:()=>Owe(t)};default:return{toComponent:()=>C_(e,t),toString:()=>zDt(e,t,n)}}},UDt=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=dP(e,cP.meta),a=dP(t,cP.link),o=dP(n,cP.script);return{priorityMethods:{toComponent:()=>[...C_("meta",i.priority),...C_("link",a.priority),...C_("script",o.priority)],toString:()=>`${Jl("meta",i.priority,r)} ${Jl("link",a.priority,r)} ${Jl("script",o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},WDt=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:f,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:f,scriptTags:p}=UDt(e)),{priority:h,base:Jl("base",t,r),bodyAttributes:Jl("bodyAttributes",n,r),htmlAttributes:Jl("htmlAttributes",i,r),link:Jl("link",u,r),meta:Jl("meta",f,r),noscript:Jl("noscript",a,r),script:Jl("script",p,r),style:Jl("style",o,r),title:Jl("title",{title:s,titleAttributes:l},r)}},wA=WDt,eC=[],Iwe=!!(typeof window<"u"&&window.document&&window.document.createElement),xA=class{constructor(e,t){Gr(this,"instances",[]);Gr(this,"canUseDOM",Iwe);Gr(this,"context");Gr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?eC:this.instances,add:e=>{(this.canUseDOM?eC:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?eC:this.instances).indexOf(e);(this.canUseDOM?eC:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=wA({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},VDt={},jwe=te.createContext(VDt),jm,Nwe=(jm=class extends d.Component{constructor(n){super(n);Gr(this,"helmetData");this.helmetData=new xA(this.props.context||{},jm.canUseDOM)}render(){return te.createElement(jwe.Provider,{value:this.helmetData.value},this.props.children)}},Gr(jm,"canUseDOM",Iwe),jm),W1=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${ru}]`),i=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,f=typeof s[u]>"u"?"":s[u];l.setAttribute(c,f)}l.setAttribute(ru,"true"),i.some((c,u)=>(o=u,l.isEqualNode(c)))?i.splice(o,1):a.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),a.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:a}},SA=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(ru),i=r?r.split(","):[],a=[...i],o=Object.keys(t);for(const s of o){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=a.indexOf(s);c!==-1&&a.splice(c,1)}for(let s=a.length-1;s>=0;s-=1)n.removeAttribute(a[s]);i.length===a.length?n.removeAttribute(ru):n.getAttribute(ru)!==o.join(",")&&n.setAttribute(ru,o.join(","))},qDt=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Pwe(e)),SA("title",t)},Xte=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:p}=e;SA("body",r),SA("html",i),qDt(f,p);const h={baseTag:W1("base",n),linkTags:W1("link",a),metaTags:W1("meta",o),noscriptTags:W1("noscript",s),scriptTags:W1("script",c),styleTags:W1("style",u)},m={},g={};Object.keys(h).forEach(v=>{const{newTags:y,oldTags:w}=h[v];y.length&&(m[v]=y),w.length&&(g[v]=h[v].oldTags)}),t&&t(),l(e,m,g)},r2=null,KDt=e=>{r2&&cancelAnimationFrame(r2),e.defer?r2=requestAnimationFrame(()=>{Xte(e,()=>{r2=null})}):(Xte(e),r2=null)},GDt=KDt,Zte=class extends d.Component{constructor(){super(...arguments);Gr(this,"rendered",!1)}shouldComponentUpdate(t){return!PDt(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=DDt(t.get().map(a=>{const o={...a.props};return delete o.context,o}));Nwe.canUseDOM?GDt(i):wA&&(r=wA(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},VP,qH=(VP=class extends d.Component{shouldComponentUpdate(e){return!EDt(Yte(this.props,"helmetData"),Yte(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Kte(Gte.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Gte.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Kte(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return te.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...a}=r.props,o=Object.keys(a).reduce((l,c)=>(l[ODt[c]||c]=a[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof xA)){const i=r;r=new xA(i.context,!0),delete n.helmetData}return r?te.createElement(Zte,{...n,context:r.value}):te.createElement(jwe.Consumer,null,i=>te.createElement(Zte,{...n,context:i}))}},Gr(VP,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),VP);function Awe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var YDt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,XDt=Awe(function(e){return YDt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ZDt=!1;function QDt(e){if(e.sheet)return e.sheet;for(var t=0;t0?go(tb,--Ks):0,Z0--,Ra===10&&(Z0=1,Z$--),Ra}function Ol(){return Ra=Ks2||T3(Ra)>3?"":" "}function dFt(e,t){for(;--t&&Ol()&&!(Ra<48||Ra>102||Ra>57&&Ra<65||Ra>70&&Ra<97););return lx(e,__()+(t<6&&fd()==32&&Ol()==32))}function _A(e){for(;Ol();)switch(Ra){case e:return Ks;case 34:case 39:e!==34&&e!==39&&_A(Ra);break;case 40:e===41&&_A(e);break;case 92:Ol();break}return Ks}function fFt(e,t){for(;Ol()&&e+Ra!==57;)if(e+Ra===84&&fd()===47)break;return"/*"+lx(t,Ks-1)+"*"+X$(e===47?e:Ol())}function pFt(e){for(;!T3(fd());)Ol();return lx(e,Ks)}function hFt(e){return Hwe(E_("",null,null,null,[""],e=zwe(e),0,[0],e))}function E_(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,p=0,h=0,m=0,g=1,v=1,y=1,w=0,b="",C=i,k=a,S=r,_=b;v;)switch(m=w,w=Ol()){case 40:if(m!=108&&go(_,f-1)==58){CA(_+=ai(k_(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:_+=k_(w);break;case 9:case 10:case 13:case 32:_+=uFt(m);break;case 92:_+=dFt(__()-1,7);continue;case 47:switch(fd()){case 42:case 47:tC(mFt(fFt(Ol(),__()),t,n),l);break;default:_+="/"}break;case 123*g:s[c++]=Xu(_)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+u:y==-1&&(_=ai(_,/\f/g,"")),h>0&&Xu(_)-f&&tC(h>32?Jte(_+";",r,n,f-1):Jte(ai(_," ","")+";",r,n,f-2),l);break;case 59:_+=";";default:if(tC(S=Qte(_,t,n,c,u,i,s,b,C=[],k=[],f),a),w===123)if(u===0)E_(_,t,S,S,C,a,f,s,k);else switch(p===99&&go(_,3)===110?100:p){case 100:case 108:case 109:case 115:E_(e,S,S,r&&tC(Qte(e,S,S,0,0,i,s,b,i,C=[],f),k),i,k,f,s,r?C:k);break;default:E_(_,S,S,S,[""],k,0,s,k)}}c=u=h=0,g=y=1,b=_="",f=o;break;case 58:f=1+Xu(_),h=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&cFt()==125)continue}switch(_+=X$(w),w*g){case 38:y=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Xu(_)-1)*y,y=1;break;case 64:fd()===45&&(_+=k_(Ol())),p=fd(),u=f=Xu(b=_+=pFt(__())),w++;break;case 45:m===45&&Xu(_)==2&&(g=0)}}return a}function Qte(e,t,n,r,i,a,o,s,l,c,u){for(var f=i-1,p=i===0?a:[""],h=YH(p),m=0,g=0,v=0;m0?p[y]+" "+w:ai(w,/&\f/g,p[y])))&&(l[v++]=b);return Q$(e,t,n,i===0?KH:s,l,c,u)}function mFt(e,t,n){return Q$(e,t,n,Dwe,X$(lFt()),M3(e,2,-2),0)}function Jte(e,t,n,r){return Q$(e,t,n,GH,M3(e,0,r),M3(e,r+1,-1),r)}function Bv(e,t){for(var n="",r=YH(e),i=0;i6)switch(go(e,t+1)){case 109:if(go(e,t+4)!==45)break;case 102:return ai(e,/(.+:)(.+)-([^]+)/,"$1"+ii+"$2-$3$1"+a5+(go(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~CA(e,"stretch")?Uwe(ai(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(go(e,t+1)!==115)break;case 6444:switch(go(e,Xu(e)-3-(~CA(e,"!important")&&10))){case 107:return ai(e,":",":"+ii)+e;case 101:return ai(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ii+(go(e,14)===45?"inline-":"")+"box$3$1"+ii+"$2$3$1"+No+"$2box$3")+e}break;case 5936:switch(go(e,t+11)){case 114:return ii+e+No+ai(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ii+e+No+ai(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ii+e+No+ai(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ii+e+No+e+e}return e}var _Ft=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case GH:t.return=Uwe(t.value,t.length);break;case Fwe:return Bv([i2(t,{value:ai(t.value,"@","@"+ii)})],i);case KH:if(t.length)return sFt(t.props,function(a){switch(oFt(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bv([i2(t,{props:[ai(a,/:(read-\w+)/,":"+a5+"$1")]})],i);case"::placeholder":return Bv([i2(t,{props:[ai(a,/:(plac\w+)/,":"+ii+"input-$1")]}),i2(t,{props:[ai(a,/:(plac\w+)/,":"+a5+"$1")]}),i2(t,{props:[ai(a,/:(plac\w+)/,No+"input-$1")]})],i)}return""})}},kFt=[_Ft],EFt=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||kFt,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var OFt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},RFt=!1,IFt=/[A-Z]|^ms/g,jFt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vwe=function(t){return t.charCodeAt(1)===45},tne=function(t){return t!=null&&typeof t!="boolean"},fP=Awe(function(e){return Vwe(e)?e:e.replace(IFt,"-$&").toLowerCase()}),nne=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jFt,function(r,i,a){return Zu={name:i,styles:a,next:Zu},i})}return OFt[t]!==1&&!Vwe(t)&&typeof n=="number"&&n!==0?n+"px":n},NFt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function P3(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Zu={name:i.name,styles:i.styles,next:Zu},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Zu={name:o.name,styles:o.styles,next:Zu},o=o.next;var s=a.styles+";";return s}return AFt(e,t,n)}case"function":{if(e!==void 0){var l=Zu,c=n(e);return Zu=l,P3(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function AFt(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?UFt:WFt},ane=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},VFt=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Wwe(n,r,i),BFt(function(){return TFt(n,r,i)}),null},qFt=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=ane(t,n,r),l=s||ine(i),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,h=1;h({messageList:[],addMessageProtobuf(n){var i;const r={...n,extra:JSON.parse(n==null?void 0:n.extra),topic:(i=n.thread)==null?void 0:i.topic};t().addMessage(r)},addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===$f){const a=t().messageList.findIndex(o=>o.type===$f&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===m0&&i.type===m0){const a=t().messageList.findIndex(s=>s.uid===i.uid),o=[...t().messageList];o[a]=n,e({messageList:o})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let a=0;al.uid===o.uid)||r.unshift(o)}const i=[...r,...t().messageList].sort((a,o)=>{const s=en(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=en(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList];a[i].status=r,e({messageList:a})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=G3,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const a=en(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),o=en(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-o});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:N6e})));function JFt(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const eLt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tLt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nLt={};function one(e,t){return(nLt.jsx?tLt:eLt).test(e)}const rLt=/[ \t\n\f\r]/g;function iLt(e){return typeof e=="object"?e.type==="text"?sne(e.value):!1:sne(e)}function sne(e){return e.replace(rLt,"")===""}class cx{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}cx.prototype.property={};cx.prototype.normal={};cx.prototype.space=null;function Gwe(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&cLt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(cne,pLt);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!cne.test(a)){let o=a.replace(uLt,fLt);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ZH}return new i(r,t)}function fLt(e){return"-"+e.toLowerCase()}function pLt(e){return e.charAt(1).toUpperCase()}const hLt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},mLt=Gwe([Zwe,Xwe,e3e,t3e,sLt],"html"),QH=Gwe([Zwe,Xwe,e3e,t3e,lLt],"svg");function gLt(e){return e.join(" ").trim()}var n3e={},une=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vLt=/\n/g,yLt=/^\s*/,bLt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wLt=/^:\s*/,xLt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,SLt=/^[;\s]*/,CLt=/^\s+|\s+$/g,_Lt=` -`,dne="/",fne="*",um="",kLt="comment",ELt="declaration",$Lt=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var g=m.match(vLt);g&&(n+=g.length);var v=m.lastIndexOf(_Lt);r=~v?m.length-v:r+m.length}function a(){var m={line:n,column:r};return function(g){return g.position=new o(m),c(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(m){var g=m.exec(e);if(g){var v=g[0];return i(v),e=e.slice(v.length),g}}function c(){l(yLt)}function u(m){var g;for(m=m||[];g=f();)g!==!1&&m.push(g);return m}function f(){var m=a();if(!(dne!=e.charAt(0)||fne!=e.charAt(1))){for(var g=2;um!=e.charAt(g)&&(fne!=e.charAt(g)||dne!=e.charAt(g+1));)++g;if(g+=2,um===e.charAt(g-1))return s("End of comment missing");var v=e.slice(2,g-2);return r+=2,i(v),e=e.slice(g),r+=2,m({type:kLt,comment:v})}}function p(){var m=a(),g=l(bLt);if(g){if(f(),!l(wLt))return s("property missing ':'");var v=l(xLt),y=m({type:ELt,property:pne(g[0].replace(une,um)),value:v?pne(v[0].replace(une,um)):um});return l(SLt),y}}function h(){var m=[];u(m);for(var g;g=p();)g!==!1&&(m.push(g),u(m));return m}return c(),h()};function pne(e){return e?e.replace(CLt,um):um}var MLt=oi&&oi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n3e,"__esModule",{value:!0});var hne=n3e.default=PLt,TLt=MLt($Lt);function PLt(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,TLt.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}const OLt=hne.default||hne,r3e=i3e("end"),JH=i3e("start");function i3e(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function RLt(e){const t=JH(e),n=r3e(e);if(t&&n)return{start:t,end:n}}function ow(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?mne(e.position):"start"in e||"end"in e?mne(e):"line"in e||"column"in e?$A(e):""}function $A(e){return gne(e&&e.line)+":"+gne(e&&e.column)}function mne(e){return $A(e&&e.start)+"-"+$A(e&&e.end)}function gne(e){return e&&typeof e=="number"?e:1}class is extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=ow(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}is.prototype.file="";is.prototype.name="";is.prototype.reason="";is.prototype.message="";is.prototype.stack="";is.prototype.column=void 0;is.prototype.line=void 0;is.prototype.ancestors=void 0;is.prototype.cause=void 0;is.prototype.fatal=void 0;is.prototype.place=void 0;is.prototype.ruleId=void 0;is.prototype.source=void 0;const eU={}.hasOwnProperty,ILt=new Map,jLt=/[A-Z]/g,NLt=/-([a-z])/g,ALt=new Set(["table","tbody","thead","tfoot","tr"]),DLt=new Set(["td","th"]),a3e="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function FLt(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=qLt(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=VLt(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?QH:mLt,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=o3e(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function o3e(e,t,n){if(t.type==="element")return LLt(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return BLt(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return HLt(e,t,n);if(t.type==="mdxjsEsm")return zLt(e,t);if(t.type==="root")return ULt(e,t,n);if(t.type==="text")return WLt(e,t)}function LLt(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=QH,e.schema=i),e.ancestors.push(t);const a=l3e(e,t.tagName,!1),o=KLt(e,t);let s=nU(e,t);return ALt.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!iLt(l):!0})),s3e(e,o,a,t),tU(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function BLt(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}O3(e,t.position)}function zLt(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);O3(e,t.position)}function HLt(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=QH,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:l3e(e,t.name,!0),o=GLt(e,t),s=nU(e,t);return s3e(e,o,a,t),tU(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ULt(e,t,n){const r={};return tU(r,nU(e,t)),e.create(t,e.Fragment,r,n)}function WLt(e,t){return t.value}function s3e(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tU(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function VLt(e,t,n){return r;function r(i,a,o,s){const c=Array.isArray(o.children)?n:t;return s?c(a,o,s):c(a,o)}}function qLt(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=JH(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function KLt(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&eU.call(t.properties,i)){const a=YLt(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&DLt.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function GLt(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else O3(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else O3(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function nU(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ILt;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(kd(e,e.length,0,t),e):t}const bne={}.hasOwnProperty;function iBt(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Hv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ed=Th(/[A-Za-z]/),$l=Th(/[\dA-Za-z]/),sBt=Th(/[#-'*+\--9=?A-Z^-~]/);function MA(e){return e!==null&&(e<32||e===127)}const TA=Th(/\d/),lBt=Th(/[\dA-Fa-f]/),cBt=Th(/[!-/:-@[-`{-~]/);function dr(e){return e!==null&&e<-2}function Hs(e){return e!==null&&(e<0||e===32)}function si(e){return e===-2||e===-1||e===32}const uBt=Th(new RegExp("\\p{P}|\\p{S}","u")),dBt=Th(/\s/);function Th(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rb(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ti(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return si(l)?(e.enter(n),s(l)):t(l)}function s(l){return si(l)&&a++o))return;const _=t.events.length;let E=_,$,M;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if($){M=t.events[E][1].end;break}$=!0}for(y(r),S=_;Sb;){const k=n[C];t.containerState=k[1],k[0].exit.call(t,e)}n.length=b}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gBt(e,t,n){return Ti(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xne(e){if(e===null||Hs(e)||dBt(e))return 1;if(uBt(e))return 2}function iU(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};Sne(f,-l),Sne(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=oc(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=oc(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=oc(c,iU(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=oc(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=oc(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,kd(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&&si(S)?Ti(e,w,"linePrefix",a+1)(S):w(S)}function w(S){return S===null||dr(S)?e.check(Cne,g,C)(S):(e.enter("codeFlowValue"),b(S))}function b(S){return S===null||dr(S)?(e.exit("codeFlowValue"),w(S)):(e.consume(S),b)}function C(S){return e.exit("codeFenced"),t(S)}function k(S,_,E){let $=0;return M;function M(I){return S.enter("lineEnding"),S.consume(I),S.exit("lineEnding"),P}function P(I){return S.enter("codeFencedFence"),si(I)?Ti(S,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):R(I)}function R(I){return I===s?(S.enter("codeFencedFenceSequence"),O(I)):E(I)}function O(I){return I===s?($++,S.consume(I),O):$>=o?(S.exit("codeFencedFenceSequence"),si(I)?Ti(S,j,"whitespace")(I):j(I)):E(I)}function j(I){return I===null||dr(I)?(S.exit("codeFencedFence"),_(I)):E(I)}}}function MBt(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const mP={name:"codeIndented",tokenize:PBt},TBt={partial:!0,tokenize:OBt};function PBt(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Ti(e,a,"linePrefix",5)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):dr(c)?e.attempt(TBt,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||dr(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function OBt(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):dr(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Ti(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):dr(o)?i(o):n(o)}}const RBt={name:"codeText",previous:jBt,resolve:IBt,tokenize:NBt};function IBt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&a2(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),a2(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),a2(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function m3e(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||MA(y)?n(y):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||dr(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function g(y){return!u&&(y===null||y===41||Hs(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(y)):u999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):dr(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||dr(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!si(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function v3e(e,t,n,r,i,a){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,l):n(p)}function l(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),c(p))}function c(p){return p===o?(e.exit(a),l(o)):p===null?n(p):dr(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ti(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===o||p===null||dr(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:u)}function f(p){return p===o||p===92?(e.consume(p),u):u(p)}}function sw(e,t){let n;return r;function r(i){return dr(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):si(i)?Ti(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const UBt={name:"definition",tokenize:VBt},WBt={partial:!0,tokenize:qBt};function VBt(e,t,n){const r=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return g3e.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Hv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Hs(h)?sw(e,c)(h):c(h)}function c(h){return m3e(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(WBt,f,f)(h)}function f(h){return si(h)?Ti(e,p,"whitespace")(h):p(h)}function p(h){return h===null||dr(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function qBt(e,t,n){return r;function r(s){return Hs(s)?sw(e,i)(s):n(s)}function i(s){return v3e(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return si(s)?Ti(e,o,"whitespace")(s):o(s)}function o(s){return s===null||dr(s)?t(s):n(s)}}const KBt={name:"hardBreakEscape",tokenize:GBt};function GBt(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return dr(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const YBt={name:"headingAtx",resolve:XBt,tokenize:ZBt};function XBt(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},kd(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function ZBt(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Hs(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||dr(u)?(e.exit("atxHeading"),t(u)):si(u)?Ti(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Hs(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const QBt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kne=["pre","script","style","textarea"],JBt={concrete:!0,name:"htmlFlow",resolveTo:nzt,tokenize:rzt},ezt={partial:!0,tokenize:azt},tzt={partial:!0,tokenize:izt};function nzt(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rzt(e,t,n){const r=this;let i,a,o,s,l;return c;function c(U){return u(U)}function u(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),f}function f(U){return U===33?(e.consume(U),p):U===47?(e.consume(U),a=!0,g):U===63?(e.consume(U),i=3,r.interrupt?t:L):ed(U)?(e.consume(U),o=String.fromCharCode(U),v):n(U)}function p(U){return U===45?(e.consume(U),i=2,h):U===91?(e.consume(U),i=5,s=0,m):ed(U)?(e.consume(U),i=4,r.interrupt?t:L):n(U)}function h(U){return U===45?(e.consume(U),r.interrupt?t:L):n(U)}function m(U){const Y="CDATA[";return U===Y.charCodeAt(s++)?(e.consume(U),s===Y.length?r.interrupt?t:R:m):n(U)}function g(U){return ed(U)?(e.consume(U),o=String.fromCharCode(U),v):n(U)}function v(U){if(U===null||U===47||U===62||Hs(U)){const Y=U===47,ee=o.toLowerCase();return!Y&&!a&&kne.includes(ee)?(i=1,r.interrupt?t(U):R(U)):QBt.includes(o.toLowerCase())?(i=6,Y?(e.consume(U),y):r.interrupt?t(U):R(U)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(U):a?w(U):b(U))}return U===45||$l(U)?(e.consume(U),o+=String.fromCharCode(U),v):n(U)}function y(U){return U===62?(e.consume(U),r.interrupt?t:R):n(U)}function w(U){return si(U)?(e.consume(U),w):M(U)}function b(U){return U===47?(e.consume(U),M):U===58||U===95||ed(U)?(e.consume(U),C):si(U)?(e.consume(U),b):M(U)}function C(U){return U===45||U===46||U===58||U===95||$l(U)?(e.consume(U),C):k(U)}function k(U){return U===61?(e.consume(U),S):si(U)?(e.consume(U),k):b(U)}function S(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),l=U,_):si(U)?(e.consume(U),S):E(U)}function _(U){return U===l?(e.consume(U),l=null,$):U===null||dr(U)?n(U):(e.consume(U),_)}function E(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||Hs(U)?k(U):(e.consume(U),E)}function $(U){return U===47||U===62||si(U)?b(U):n(U)}function M(U){return U===62?(e.consume(U),P):n(U)}function P(U){return U===null||dr(U)?R(U):si(U)?(e.consume(U),P):n(U)}function R(U){return U===45&&i===2?(e.consume(U),A):U===60&&i===1?(e.consume(U),N):U===62&&i===4?(e.consume(U),V):U===63&&i===3?(e.consume(U),L):U===93&&i===5?(e.consume(U),K):dr(U)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ezt,B,O)(U)):U===null||dr(U)?(e.exit("htmlFlowData"),O(U)):(e.consume(U),R)}function O(U){return e.check(tzt,j,B)(U)}function j(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),I}function I(U){return U===null||dr(U)?O(U):(e.enter("htmlFlowData"),R(U))}function A(U){return U===45?(e.consume(U),L):R(U)}function N(U){return U===47?(e.consume(U),o="",F):R(U)}function F(U){if(U===62){const Y=o.toLowerCase();return kne.includes(Y)?(e.consume(U),V):R(U)}return ed(U)&&o.length<8?(e.consume(U),o+=String.fromCharCode(U),F):R(U)}function K(U){return U===93?(e.consume(U),L):R(U)}function L(U){return U===62?(e.consume(U),V):U===45&&i===2?(e.consume(U),L):R(U)}function V(U){return U===null||dr(U)?(e.exit("htmlFlowData"),B(U)):(e.consume(U),V)}function B(U){return e.exit("htmlFlow"),t(U)}}function izt(e,t,n){const r=this;return i;function i(o){return dr(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function azt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(J$,t,n)}}const ozt={name:"htmlText",tokenize:szt};function szt(e,t,n){const r=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),k):L===63?(e.consume(L),b):ed(L)?(e.consume(L),E):n(L)}function c(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),a=0,m):ed(L)?(e.consume(L),w):n(L)}function u(L){return L===45?(e.consume(L),h):n(L)}function f(L){return L===null?n(L):L===45?(e.consume(L),p):dr(L)?(o=f,N(L)):(e.consume(L),f)}function p(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?A(L):L===45?p(L):f(L)}function m(L){const V="CDATA[";return L===V.charCodeAt(a++)?(e.consume(L),a===V.length?g:m):n(L)}function g(L){return L===null?n(L):L===93?(e.consume(L),v):dr(L)?(o=g,N(L)):(e.consume(L),g)}function v(L){return L===93?(e.consume(L),y):g(L)}function y(L){return L===62?A(L):L===93?(e.consume(L),y):g(L)}function w(L){return L===null||L===62?A(L):dr(L)?(o=w,N(L)):(e.consume(L),w)}function b(L){return L===null?n(L):L===63?(e.consume(L),C):dr(L)?(o=b,N(L)):(e.consume(L),b)}function C(L){return L===62?A(L):b(L)}function k(L){return ed(L)?(e.consume(L),S):n(L)}function S(L){return L===45||$l(L)?(e.consume(L),S):_(L)}function _(L){return dr(L)?(o=_,N(L)):si(L)?(e.consume(L),_):A(L)}function E(L){return L===45||$l(L)?(e.consume(L),E):L===47||L===62||Hs(L)?$(L):n(L)}function $(L){return L===47?(e.consume(L),A):L===58||L===95||ed(L)?(e.consume(L),M):dr(L)?(o=$,N(L)):si(L)?(e.consume(L),$):A(L)}function M(L){return L===45||L===46||L===58||L===95||$l(L)?(e.consume(L),M):P(L)}function P(L){return L===61?(e.consume(L),R):dr(L)?(o=P,N(L)):si(L)?(e.consume(L),P):$(L)}function R(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),i=L,O):dr(L)?(o=R,N(L)):si(L)?(e.consume(L),R):(e.consume(L),j)}function O(L){return L===i?(e.consume(L),i=void 0,I):L===null?n(L):dr(L)?(o=O,N(L)):(e.consume(L),O)}function j(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Hs(L)?$(L):(e.consume(L),j)}function I(L){return L===47||L===62||Hs(L)?$(L):n(L)}function A(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function N(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),F}function F(L){return si(L)?Ti(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):K(L)}function K(L){return e.enter("htmlTextData"),o(L)}}const aU={name:"labelEnd",resolveAll:dzt,resolveTo:fzt,tokenize:pzt},lzt={tokenize:hzt},czt={tokenize:mzt},uzt={tokenize:gzt};function dzt(e){let t=-1;const n=[];for(;++t=3&&(c===null||dr(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),si(c)?Ti(e,s,"whitespace")(c):s(c))}}const Ms={continuation:{tokenize:Ezt},exit:Mzt,name:"list",tokenize:kzt},Czt={partial:!0,tokenize:Tzt},_zt={partial:!0,tokenize:$zt};function kzt(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:TA(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check($_,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return TA(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(J$,r.interrupt?n:u,e.attempt(Czt,p,f))}function u(h){return r.containerState.initialBlankLine=!0,a++,p(h)}function f(h){return si(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ezt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(J$,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ti(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!si(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(_zt,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ti(e,e.attempt(Ms,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function $zt(e,t,n){const r=this;return Ti(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function Mzt(e){e.exit(this.containerState.type)}function Tzt(e,t,n){const r=this;return Ti(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!si(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Ene={name:"setextUnderline",resolveTo:Pzt,tokenize:Ozt};function Pzt(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Ozt(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),si(c)?Ti(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||dr(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Rzt={tokenize:Izt};function Izt(e){const t=this,n=e.attempt(J$,r,e.attempt(this.parser.constructs.flowInitial,i,Ti(e,e.attempt(this.parser.constructs.flow,i,e.attempt(FBt,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const jzt={resolveAll:b3e()},Nzt=y3e("string"),Azt=y3e("text");function y3e(e){return{resolveAll:b3e(e==="text"?Dzt:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=i[u];let p=-1;if(f)for(;++p-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Xzt(e,t){let n=-1;const r=[];let i;for(;++n{const n=jn(),[r,i]=d.useState(),[a,o]=d.useState(),s=async()=>{const u=await LIt();u.data.code===200&&(i(u.data.data.captchaUid),o(u.data.data.captchaImage))},l=async(u,f)=>{const p=await BIt(u,f);console.log("checkCaptcha response",p),p.data.code===200?t&&t(!0):t&&t(!1)};d.useEffect(()=>{s()},[]);const c=u=>{e&&(e(r,u.target.value),u.target.value&&u.target.value!==""&&u.target.value.trim().length===4?l(r,u.target.value):t&&t(!1))};return x.jsx(x.Fragment,{children:a&&x.jsxs(x.Fragment,{children:[x.jsx(Ur,{onChange:c,prefix:x.jsx(Oit,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),x.jsx("img",{src:a,alt:"captcha",onClick:s})]})})},gNt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=jn(),[a,o]=d.useState(!1);return d.useEffect(()=>{if(a)return;const s=localStorage.getItem(vl);if(s)try{const{username:l,remember:c}=JSON.parse(s);l&&(r==null||r(l,!!c),o(!0))}catch(l){console.error("Failed to parse saved credentials:",l)}},[r,a]),x.jsx(x.Fragment,{children:e==="account"&&x.jsxs("div",{children:[x.jsx(Or,{name:"username",fieldProps:{size:"large",prefix:x.jsx(az,{className:"prefixIcon"}),onChange:()=>{o(!0)},onClear:()=>{console.log("onClear");const s=localStorage.getItem(vl);if(s)try{const l=JSON.parse(s),{username:c,...u}=l;console.log("username",c),console.log("rest",u),localStorage.setItem(vl,JSON.stringify(u))}catch(l){console.error("Failed to parse saved credentials:",l)}}},placeholder:i.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),x.jsx(Or.Password,{name:"password",fieldProps:{size:"large",prefix:x.jsx(Zg,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),x.jsx(Kn.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:x.jsx(eb,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function vNt(e){return gn("/auth/v1/login",{method:"POST",data:{...e,client:_n}})}async function LH(e){return gn("/auth/v1/send/mobile",{method:"POST",data:{...e,client:_n}})}async function nwe(e){return gn("/auth/v1/send/email",{method:"POST",data:{...e,client:_n}})}async function yNt(e){return gn("/auth/v1/login/mobile",{method:"POST",data:{...e,client:_n}})}async function bNt(e,t){return gn("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:_n}})}async function wNt(e){return gn("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:_n}})}async function xNt(e){return gn("/api/v1/user/logout",{method:"POST",data:{client:_n}})}const SNt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=jn(),[a,o]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1),[f,p]=d.useState(!1);d.useEffect(()=>{if(f)return;const y=localStorage.getItem(vl);if(y)try{const{mobile:w}=JSON.parse(y);w&&(r==null||r(w),p(!0))}catch(w){console.error("Failed to parse saved credentials:",w)}},[r,f]);const h=async(y,w)=>{o(y),l(w),t&&t(y,w)},m=async y=>{u(y),n&&n(y)},g=[{label:i.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:i.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:i.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:i.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:i.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:i.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:i.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:i.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:i.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:i.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:i.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:i.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:i.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:i.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:i.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:i.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:i.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:i.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:i.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:i.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:i.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:i.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],v=y=>{const w=y.value.includes("-")?y.value.split("-")[0]:y.value;return x.jsxs("div",{children:[x.jsx("span",{role:"img","aria-label":y.label,style:{marginRight:8},children:y.icon}),y.label," (+",w,")"]})};return x.jsx(x.Fragment,{children:e==="mobile"&&x.jsxs(x.Fragment,{children:[x.jsxs(z8,{gutter:16,children:[x.jsx(D0,{span:10,children:x.jsx(ro,{name:"country",options:g,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:v},initialValue:"86"})}),x.jsx(D0,{span:14,children:x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{className:"prefixIcon"}),onChange:()=>{p(!0)},onClear:()=>{console.log("onClear");const y=localStorage.getItem(vl);if(y)try{const w=JSON.parse(y),{mobile:b,...C}=w;console.log("saved:",b,w),localStorage.setItem(vl,JSON.stringify(C))}catch(w){console.error("Failed to parse saved credentials:",w)}}},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:x.jsx(nu,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),x.jsx(Kn.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:x.jsx(eb,{onKaptchaChange:h,onKaptchaCheck:m})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(y,w)=>y?`${w} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:x.jsx(nu,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async y=>{if(console.log("mobile:",y),y&&y.length===11){const b=await LH({mobile:y,type:A6e,captchaUid:a,captchaCode:s,platform:gc});if(console.log("sendMobileCode:",b.data),b.data.code!==200){je.error(i.formatMessage({id:b.data.message,defaultMessage:b.data.message}));return}je.success(i.formatMessage({id:b.data.message,defaultMessage:b.data.message}))}else je.error("手机号格式错误")}}),x.jsx(JE,{message:x.jsx(nu,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},CNt=({loginType:e})=>{const t=jn(),n=rs(),r=ia(h=>h.setUserInfo),i=t4(h=>h.setAccessToken),{deviceUid:a,setDeviceUid:o}=ia(h=>({deviceUid:h.deviceUid,setDeviceUid:h.setDeviceUid})),[s,l]=d.useState("login"),[c,u]=d.useState("loading"),f=async h=>{console.log("handleScanLogin values: ",h),je.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await wNt({...h});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(m.data.data.user),i(m.data.data.accessToken),n("/chat"),oN()):(je.destroy(),je.error(m.data.message))},p=async h=>{if(e!="scan")return;const m=await bNt(a,h);if(m.data.code===200){const g=m.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===z6e)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===H6e)u("scanned");else if(g.status===W6e)u("expired");else if(g.status===U6e){if(g.receiver===void 0||g.receiver==="")return;let v={mobile:g.receiver,code:g.content,platform:gc};console.log("login scan info:",v),await f(v)}}else je.error(m.data.message)};return d.useEffect(()=>{console.log("scan deviceUid:",a),(a===void 0||a==="")&&o(Ba()),p(!0);const h=setInterval(()=>{p(!1)},3e3);return()=>{clearInterval(h)}},[e,a]),x.jsx(x.Fragment,{children:e==="scan"&&x.jsx(x.Fragment,{children:x.jsx(oz,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),p(!0)}})})})},rwe=()=>{const{token:e}=zo.useToken(),{isCustomServer:t,setIsCustomServer:n}=d.useContext(Ea),[r]=Kn.useForm(),[i,a]=d.useState(!1),[o,s]=d.useState(""),[l,c]=d.useState(""),u=jn(),f=()=>{console.log("switch server"),n(m=>!m)};d.useEffect(()=>{o&&o.length>0&&(r.setFieldsValue({apiUrl:o}),console.log("apiUrl:",o))},[o]),d.useEffect(()=>{if(t){const m=localStorage.getItem(dv);m==="true"&&(a(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const g=localStorage.getItem(h2);g&&r.setFieldsValue({apiUrl:E1(g)});const v=localStorage.getItem(m2);v&&r.setFieldsValue({websocketUrl:E1(v)})}},[t]);const p=m=>{if(console.log("handleCustomServerChange e:",m),a(m.target.checked),m.target.checked){const g=localStorage.getItem(h2);g&&r.setFieldsValue({apiUrl:E1(g)});const v=localStorage.getItem(m2);v&&r.setFieldsValue({websocketUrl:E1(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(dv,"false")},h=(m,g)=>(console.log("props:",m,g),x.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[x.jsx(Yt,{icon:x.jsx(rrt,{}),onClick:f,children:u.formatMessage({id:"server.button.back"})},"back"),x.jsx(Yt,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=E1(v.trim());let y=m.form.getFieldValue("websocketUrl");y=E1(y.trim()),v&&v.trim().length>0&&y&&y.trim().length>0?(localStorage.setItem(h2,v),localStorage.setItem(m2,y),localStorage.setItem(dv,"true"),je.success(u.formatMessage({id:"server.save.success"}))):je.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),x.jsx(Yt,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(dv,"false"),localStorage.setItem(h2,""),localStorage.setItem(m2,""),je.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),x.jsx(Yt,{onClick:()=>{F0("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return x.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:x.jsxs(Kn,{className:"ant-pro-form-server-main",form:r,submitter:{render:h},children:[x.jsx(fH,{name:"isCustomServerEnabled",fieldProps:{onChange:p},children:u.formatMessage({id:"server.custom.enable"})}),i&&x.jsxs(x.Fragment,{children:[x.jsx(Or,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),x.jsx(Or,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:m=>c(m.target.value)}})]})]})})},_Nt=({isModel:e=!1})=>{const t=jn(),[n]=Kn.useForm(),r=rs(),{token:i}=zo.useToken(),[a,o]=d.useState("/agent/icons/logo.png"),[s,l]=d.useState(""),[c,u]=d.useState(""),[f,p]=d.useState("account"),h=ia(N=>N.setUserInfo),m=t4(N=>N.setAccessToken),{isCustomServer:g,setIsCustomServer:v}=d.useContext(Ea),[y,w]=d.useState(!1),b=N=>{console.log(`onPrivacyProtocolChange checked = ${N.target.checked}`),w(N.target.checked);const F=localStorage.getItem(vl);if(F)try{const{remember:K}=JSON.parse(F);K&&setTimeout(()=>{n.setFieldsValue({remember:K})},0)}catch(K){console.error("Failed to parse saved credentials:",K)}},C=()=>{F0("https://www.weiyuai.cn/protocol.html")},[k,S]=d.useState(""),_=async(N,F)=>{S(N),n.setFieldValue("captchaCode",F)},E=async N=>{console.log("handleKaptchaCheck:",N)},$=async N=>{if(!y){je.error("请阅读并同意隐私协议");return}je.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const F=localStorage.getItem(vl);let K=!1;if(F)try{K=JSON.parse(F).remember}catch(V){console.error("Failed to parse saved credentials:",V)}localStorage.setItem(vl,JSON.stringify({username:N.username,remember:K}));const L=await vNt({...N});console.log("LoginResult:",L.data),L.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),K&&localStorage.setItem(vl,JSON.stringify({username:N.username,password:N.password,remember:!0})),h(L.data.data.user),m(L.data.data.accessToken),e||r("/chat"),oN()):(je.destroy(),je.error(t.formatMessage({id:L.data.message,defaultMessage:L.data.message})))},M=N=>{n.setFieldsValue({mobile:N})},P=async N=>{if(!y){je.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const F=localStorage.getItem(vl);let K={};if(F)try{K=JSON.parse(F)}catch(V){console.error("Failed to parse saved credentials:",V)}localStorage.setItem(vl,JSON.stringify({...K,mobile:N.mobile}));const L=await yNt({...N});console.log("LoginMobileResult:",L),L.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),h(L.data.data.user),m(L.data.data.accessToken),e||r("/chat"),oN()):(je.destroy(),je.error(t.formatMessage({id:L.data.message,defaultMessage:L.data.message})))},R=()=>{console.log("switch server"),v(N=>!N)},O=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},j=()=>{if(jl)return{}},I=(N,F)=>{n.setFieldsValue({username:N,remember:F});const K=localStorage.getItem(vl);if(K&&F)try{const{password:L}=JSON.parse(K);L&&n.setFieldsValue({password:L})}catch(L){console.error("Failed to parse saved credentials:",L)}},A=async()=>{var F,K,L,V,B,U,Y;console.log("getConfig");const N=await _le();(F=N==null?void 0:N.custom)!=null&&F.enabled?((K=N==null?void 0:N.custom)!=null&&K.logo?o((L=N==null?void 0:N.custom)==null?void 0:L.logo):o(NV),(V=N==null?void 0:N.custom)!=null&&V.name?l((B=N==null?void 0:N.custom)==null?void 0:B.name):l(t.formatMessage({id:"app.title"})),(U=N==null?void 0:N.custom)!=null&&U.description?u((Y=N==null?void 0:N.custom)==null?void 0:Y.description):u(t.formatMessage({id:"slogan"}))):(o(NV),l(t.formatMessage({id:"app.title"})),u(t.formatMessage({id:"slogan"}))),Cle()};return d.useEffect(()=>{gde(),A()},[]),x.jsx(c$,{hashed:!1,children:x.jsxs("div",{style:{backgroundColor:i.colorBgContainer,textAlign:"center",height:"100%"},children:[!g&&x.jsxs(Dbe,{form:n,contentStyle:{minWidth:400},logo:x.jsx("img",{alt:"logo",src:a}),title:s,subTitle:c,initialValues:j(),onFinish:async N=>{if(f==="account"){const F={username:N.username,password:N.password,captchaUid:k,captchaCode:N.captchaCode,platform:gc};await $(F)}else if(f==="mobile"){const F={mobile:N.mobile,code:N.code,captchaUid:k,captchaCode:N.captchaCode,platform:gc};await P(F)}else console.log("scan login type")},actions:jl&&x.jsxs(Xr,{children:[x.jsx(nu,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),x.jsx(Yt,{type:"link",onClick:O,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[x.jsx(Yg,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:x.jsx(gNt,{loginType:f,onKaptchaChange:_,onKaptchaCheck:E,onRememberChange:I})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:x.jsx(SNt,{loginType:f,onKaptchaChange:_,onKaptchaCheck:E,onRememberChange:M})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:x.jsx(CNt,{loginType:f})}],activeKey:f,onChange:N=>p(N)}),x.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[x.jsx(ps,{checked:y,onChange:b,children:x.jsx(Yt,{size:"small",type:"link",onClick:C,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),x.jsx(Yt,{type:"link",style:{float:"right",marginBottom:24},onClick:R,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),g&&x.jsx(rwe,{})]})})},fA=({isModel:e=!1})=>x.jsx(v8,{children:x.jsx(_Nt,{isModel:e})}),kNt=()=>{const{token:e}=zo.useToken();return x.jsx(c$,{hashed:!1,children:x.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:x.jsxs(Dbe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[x.jsxs(x.Fragment,{children:[x.jsx(Or,{name:"username",fieldProps:{size:"large",prefix:x.jsx(az,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),x.jsx(Or.Password,{name:"password",fieldProps:{size:"large",prefix:x.jsx(Zg,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),x.jsxs("div",{style:{marginBlockEnd:24},children:[x.jsx(fH,{noStyle:!0,name:"autoLogin",children:"自动登录"}),x.jsx(cft,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(b){try{return b.defaultView&&b.defaultView.frameElement||null}catch{return null}}var t=function(b){for(var C=b,k=e(C);k;)C=k.ownerDocument,k=e(C);return C}(window.document),n=[],r=null,i=null;function a(b){this.time=b.time,this.target=b.target,this.rootBounds=m(b.rootBounds),this.boundingClientRect=m(b.boundingClientRect),this.intersectionRect=m(b.intersectionRect||h()),this.isIntersecting=!!b.intersectionRect;var C=this.boundingClientRect,k=C.width*C.height,S=this.intersectionRect,_=S.width*S.height;k?this.intersectionRatio=Number((_/k).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(b,C){var k=C||{};if(typeof b!="function")throw new Error("callback must be a function");if(k.root&&k.root.nodeType!=1&&k.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=b,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(k.rootMargin),this.thresholds=this._initThresholds(k.threshold),this.root=k.root||null,this.rootMargin=this._rootMarginValues.map(function(S){return S.value+S.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return r||(r=function(b,C){!b||!C?i=h():i=g(b,C),n.forEach(function(k){k._checkForIntersections()})}),r},o._resetCrossOriginUpdater=function(){r=null,i=null},o.prototype.observe=function(b){var C=this._observationTargets.some(function(k){return k.element==b});if(!C){if(!(b&&b.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:b,entry:null}),this._monitorIntersections(b.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(b){this._observationTargets=this._observationTargets.filter(function(C){return C.element!=b}),this._unmonitorIntersections(b.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var b=this._queuedEntries.slice();return this._queuedEntries=[],b},o.prototype._initThresholds=function(b){var C=b||[0];return Array.isArray(C)||(C=[C]),C.sort().filter(function(k,S,_){if(typeof k!="number"||isNaN(k)||k<0||k>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return k!==_[S-1]})},o.prototype._parseRootMargin=function(b){var C=b||"0px",k=C.split(/\s+/).map(function(S){var _=/^(-?\d*\.?\d+)(px|%)$/.exec(S);if(!_)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(_[1]),unit:_[2]}});return k[1]=k[1]||k[0],k[2]=k[2]||k[0],k[3]=k[3]||k[1],k},o.prototype._monitorIntersections=function(b){var C=b.defaultView;if(C&&this._monitoringDocuments.indexOf(b)==-1){var k=this._checkForIntersections,S=null,_=null;this.POLL_INTERVAL?S=C.setInterval(k,this.POLL_INTERVAL):(c(C,"resize",k,!0),c(b,"scroll",k,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in C&&(_=new C.MutationObserver(k),_.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(b),this._monitoringUnsubscribes.push(function(){var M=b.defaultView;M&&(S&&M.clearInterval(S),u(M,"resize",k,!0)),u(b,"scroll",k,!0),_&&_.disconnect()});var E=this.root&&(this.root.ownerDocument||this.root)||t;if(b!=E){var $=e(b);$&&this._monitorIntersections($.ownerDocument)}}},o.prototype._unmonitorIntersections=function(b){var C=this._monitoringDocuments.indexOf(b);if(C!=-1){var k=this.root&&(this.root.ownerDocument||this.root)||t,S=this._observationTargets.some(function($){var M=$.element.ownerDocument;if(M==b)return!0;for(;M&&M!=k;){var P=e(M);if(M=P&&P.ownerDocument,M==b)return!0}return!1});if(!S){var _=this._monitoringUnsubscribes[C];if(this._monitoringDocuments.splice(C,1),this._monitoringUnsubscribes.splice(C,1),_(),b!=k){var E=e(b);E&&this._unmonitorIntersections(E.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var b=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var C=0;C=0&&M>=0&&{top:k,bottom:S,left:_,right:E,width:$,height:M}||null}function p(b){var C;try{C=b.getBoundingClientRect()}catch{}return C?(C.width&&C.height||(C={top:C.top,right:C.right,bottom:C.bottom,left:C.left,width:C.right-C.left,height:C.bottom-C.top}),C):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(b){return!b||"x"in b?b:{top:b.top,y:b.top,bottom:b.bottom,left:b.left,x:b.left,right:b.right,width:b.width,height:b.height}}function g(b,C){var k=C.top-b.top,S=C.left-b.left;return{top:k,left:S,height:C.height,width:C.width,bottom:k+C.height,right:S+C.width}}function v(b,C){for(var k=C;k;){if(k==b)return!0;k=y(k)}return!1}function y(b){var C=b.parentNode;return b.nodeType==9&&b!=t?e(b):(C&&C.assignedSlot&&(C=C.assignedSlot.parentNode),C&&C.nodeType==11&&C.host?C.host:C)}function w(b){return b&&b.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=a})();function iwe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:b_;_te&&_te(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(ENt(t)||(t[r]=a),i=a)}e[i]=!0}return e}function RNt(e){for(let t=0;t/gm),DNt=Cc(/\${[\w\W]*}/gm),FNt=Cc(/^data-[\-\w.\u00B7-\uFFFF]/),LNt=Cc(/^aria-[\-\w]+$/),swe=Cc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),BNt=Cc(/^(?:\w+script|data):/i),zNt=Cc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lwe=Cc(/^html$/i),HNt=Cc(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ote=Object.freeze({__proto__:null,ARIA_ATTR:LNt,ATTR_WHITESPACE:zNt,CUSTOM_ELEMENT:HNt,DATA_ATTR:FNt,DOCTYPE_NAME:lwe,ERB_EXPR:ANt,IS_ALLOWED_URI:swe,IS_SCRIPT_OR_DATA:BNt,MUSTACHE_EXPR:NNt,TMPLIT_EXPR:DNt});const e2={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},UNt=function(){return typeof window>"u"?null:window},WNt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function cwe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:UNt();const t=dt=>cwe(dt);if(t.version="3.2.1",t.removed=[],!e||!e.document||e.document.nodeType!==e2.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=e,m=l.prototype,g=Jb(m,"cloneNode"),v=Jb(m,"remove"),y=Jb(m,"nextSibling"),w=Jb(m,"childNodes"),b=Jb(m,"parentNode");if(typeof o=="function"){const dt=n.createElement("template");dt.content&&dt.content.ownerDocument&&(n=dt.content.ownerDocument)}let C,k="";const{implementation:S,createNodeIterator:_,createDocumentFragment:E,getElementsByTagName:$}=n,{importNode:M}=r;let P={};t.isSupported=typeof awe=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:O,TMPLIT_EXPR:j,DATA_ATTR:I,ARIA_ATTR:A,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:K}=Ote;let{IS_ALLOWED_URI:L}=Ote,V=null;const B=Rr({},[...$te,...JT,...eP,...tP,...Mte]);let U=null;const Y=Rr({},[...Tte,...nP,...Pte,...XS]);let ee=Object.seal(owe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,Z=null,X=!0,ae=!0,oe=!1,le=!0,ce=!1,pe=!0,me=!1,re=!1,fe=!1,ve=!1,$e=!1,Ce=!1,be=!0,Se=!1;const we="user-content-";let se=!0,ye=!1,Oe={},z=null;const H=Rr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G=null;const de=Rr({},["audio","video","img","source","image","track"]);let xe=null;const he=Rr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ze=ge,Ve=!1,Be=null;const Xe=Rr({},[Ue,We,ge],QT);let Ke=Rr({},["mi","mo","mn","ms","mtext"]),qe=Rr({},["annotation-xml"]);const Et=Rr({},["title","style","font","a","script"]);let ut=null;const gt=["application/xhtml+xml","text/html"],Qe="text/html";let nt=null,jt=null;const Lt=n.createElement("form"),Bt=function(De){return De instanceof RegExp||De instanceof Function},Ut=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===De)){if((!De||typeof De!="object")&&(De={}),De=im(De),ut=gt.indexOf(De.PARSER_MEDIA_TYPE)===-1?Qe:De.PARSER_MEDIA_TYPE,nt=ut==="application/xhtml+xml"?QT:b_,V=Uc(De,"ALLOWED_TAGS")?Rr({},De.ALLOWED_TAGS,nt):B,U=Uc(De,"ALLOWED_ATTR")?Rr({},De.ALLOWED_ATTR,nt):Y,Be=Uc(De,"ALLOWED_NAMESPACES")?Rr({},De.ALLOWED_NAMESPACES,QT):Xe,xe=Uc(De,"ADD_URI_SAFE_ATTR")?Rr(im(he),De.ADD_URI_SAFE_ATTR,nt):he,G=Uc(De,"ADD_DATA_URI_TAGS")?Rr(im(de),De.ADD_DATA_URI_TAGS,nt):de,z=Uc(De,"FORBID_CONTENTS")?Rr({},De.FORBID_CONTENTS,nt):H,ie=Uc(De,"FORBID_TAGS")?Rr({},De.FORBID_TAGS,nt):{},Z=Uc(De,"FORBID_ATTR")?Rr({},De.FORBID_ATTR,nt):{},Oe=Uc(De,"USE_PROFILES")?De.USE_PROFILES:!1,X=De.ALLOW_ARIA_ATTR!==!1,ae=De.ALLOW_DATA_ATTR!==!1,oe=De.ALLOW_UNKNOWN_PROTOCOLS||!1,le=De.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=De.SAFE_FOR_TEMPLATES||!1,pe=De.SAFE_FOR_XML!==!1,me=De.WHOLE_DOCUMENT||!1,ve=De.RETURN_DOM||!1,$e=De.RETURN_DOM_FRAGMENT||!1,Ce=De.RETURN_TRUSTED_TYPE||!1,fe=De.FORCE_BODY||!1,be=De.SANITIZE_DOM!==!1,Se=De.SANITIZE_NAMED_PROPS||!1,se=De.KEEP_CONTENT!==!1,ye=De.IN_PLACE||!1,L=De.ALLOWED_URI_REGEXP||swe,ze=De.NAMESPACE||ge,Ke=De.MATHML_TEXT_INTEGRATION_POINTS||Ke,qe=De.HTML_INTEGRATION_POINTS||qe,ee=De.CUSTOM_ELEMENT_HANDLING||{},De.CUSTOM_ELEMENT_HANDLING&&Bt(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=De.CUSTOM_ELEMENT_HANDLING.tagNameCheck),De.CUSTOM_ELEMENT_HANDLING&&Bt(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),De.CUSTOM_ELEMENT_HANDLING&&typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(ae=!1),$e&&(ve=!0),Oe&&(V=Rr({},Mte),U=[],Oe.html===!0&&(Rr(V,$te),Rr(U,Tte)),Oe.svg===!0&&(Rr(V,JT),Rr(U,nP),Rr(U,XS)),Oe.svgFilters===!0&&(Rr(V,eP),Rr(U,nP),Rr(U,XS)),Oe.mathMl===!0&&(Rr(V,tP),Rr(U,Pte),Rr(U,XS))),De.ADD_TAGS&&(V===B&&(V=im(V)),Rr(V,De.ADD_TAGS,nt)),De.ADD_ATTR&&(U===Y&&(U=im(U)),Rr(U,De.ADD_ATTR,nt)),De.ADD_URI_SAFE_ATTR&&Rr(xe,De.ADD_URI_SAFE_ATTR,nt),De.FORBID_CONTENTS&&(z===H&&(z=im(z)),Rr(z,De.FORBID_CONTENTS,nt)),se&&(V["#text"]=!0),me&&Rr(V,["html","head","body"]),V.table&&(Rr(V,["tbody"]),delete ie.tbody),De.TRUSTED_TYPES_POLICY){if(typeof De.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qb('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof De.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qb('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=De.TRUSTED_TYPES_POLICY,k=C.createHTML("")}else C===void 0&&(C=WNt(h,i)),C!==null&&typeof k=="string"&&(k=C.createHTML(""));xs&&xs(De),jt=De}},Ne=Rr({},[...JT,...eP,...INt]),He=Rr({},[...tP,...jNt]),Le=function(De){let Ye=b(De);(!Ye||!Ye.tagName)&&(Ye={namespaceURI:ze,tagName:"template"});const ot=b_(De.tagName),Re=b_(Ye.tagName);return Be[De.namespaceURI]?De.namespaceURI===We?Ye.namespaceURI===ge?ot==="svg":Ye.namespaceURI===Ue?ot==="svg"&&(Re==="annotation-xml"||Ke[Re]):!!Ne[ot]:De.namespaceURI===Ue?Ye.namespaceURI===ge?ot==="math":Ye.namespaceURI===We?ot==="math"&&qe[Re]:!!He[ot]:De.namespaceURI===ge?Ye.namespaceURI===We&&!qe[Re]||Ye.namespaceURI===Ue&&!Ke[Re]?!1:!He[ot]&&(Et[ot]||!Ne[ot]):!!(ut==="application/xhtml+xml"&&Be[De.namespaceURI]):!1},Je=function(De){Xb(t.removed,{element:De});try{b(De).removeChild(De)}catch{v(De)}},pt=function(De,Ye){try{Xb(t.removed,{attribute:Ye.getAttributeNode(De),from:Ye})}catch{Xb(t.removed,{attribute:null,from:Ye})}if(Ye.removeAttribute(De),De==="is"&&!U[De])if(ve||$e)try{Je(Ye)}catch{}else try{Ye.setAttribute(De,"")}catch{}},xt=function(De){let Ye=null,ot=null;if(fe)De=""+De;else{const rt=Ete(De,/^[\r\n\t ]+/);ot=rt&&rt[0]}ut==="application/xhtml+xml"&&ze===ge&&(De=''+De+"");const Re=C?C.createHTML(De):De;if(ze===ge)try{Ye=new p().parseFromString(Re,ut)}catch{}if(!Ye||!Ye.documentElement){Ye=S.createDocument(ze,"template",null);try{Ye.documentElement.innerHTML=Ve?k:Re}catch{}}const It=Ye.body||Ye.documentElement;return De&&ot&&It.insertBefore(n.createTextNode(ot),It.childNodes[0]||null),ze===ge?$.call(Ye,me?"html":"body")[0]:me?Ye.documentElement:It},Nt=function(De){return _.call(De.ownerDocument||De,De,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ot=function(De){return De instanceof f&&(typeof De.nodeName!="string"||typeof De.textContent!="string"||typeof De.removeChild!="function"||!(De.attributes instanceof u)||typeof De.removeAttribute!="function"||typeof De.setAttribute!="function"||typeof De.namespaceURI!="string"||typeof De.insertBefore!="function"||typeof De.hasChildNodes!="function")},Pt=function(De){return typeof s=="function"&&De instanceof s};function st(dt,De,Ye){P[dt]&&YS(P[dt],ot=>{ot.call(t,De,Ye,jt)})}const Ct=function(De){let Ye=null;if(st("beforeSanitizeElements",De,null),Ot(De))return Je(De),!0;const ot=nt(De.nodeName);if(st("uponSanitizeElement",De,{tagName:ot,allowedTags:V}),De.hasChildNodes()&&!Pt(De.firstElementChild)&&os(/<[/\w]/g,De.innerHTML)&&os(/<[/\w]/g,De.textContent)||De.nodeType===e2.progressingInstruction||pe&&De.nodeType===e2.comment&&os(/<[/\w]/g,De.data))return Je(De),!0;if(!V[ot]||ie[ot]){if(!ie[ot]&&qt(ot)&&(ee.tagNameCheck instanceof RegExp&&os(ee.tagNameCheck,ot)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(ot)))return!1;if(se&&!z[ot]){const Re=b(De)||De.parentNode,It=w(De)||De.childNodes;if(It&&Re){const rt=It.length;for(let $t=rt-1;$t>=0;--$t){const Mt=g(It[$t],!0);Mt.__removalCount=(De.__removalCount||0)+1,Re.insertBefore(Mt,y(De))}}}return Je(De),!0}return De instanceof l&&!Le(De)||(ot==="noscript"||ot==="noembed"||ot==="noframes")&&os(/<\/no(script|embed|frames)/i,De.innerHTML)?(Je(De),!0):(ce&&De.nodeType===e2.text&&(Ye=De.textContent,YS([R,O,j],Re=>{Ye=Zb(Ye,Re," ")}),De.textContent!==Ye&&(Xb(t.removed,{element:De.cloneNode()}),De.textContent=Ye)),st("afterSanitizeElements",De,null),!1)},kt=function(De,Ye,ot){if(be&&(Ye==="id"||Ye==="name")&&(ot in n||ot in Lt))return!1;if(!(ae&&!Z[Ye]&&os(I,Ye))){if(!(X&&os(A,Ye))){if(!U[Ye]||Z[Ye]){if(!(qt(De)&&(ee.tagNameCheck instanceof RegExp&&os(ee.tagNameCheck,De)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(De))&&(ee.attributeNameCheck instanceof RegExp&&os(ee.attributeNameCheck,Ye)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Ye))||Ye==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&os(ee.tagNameCheck,ot)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(ot))))return!1}else if(!xe[Ye]){if(!os(L,Zb(ot,F,""))){if(!((Ye==="src"||Ye==="xlink:href"||Ye==="href")&&De!=="script"&&TNt(ot,"data:")===0&&G[De])){if(!(oe&&!os(N,Zb(ot,F,"")))){if(ot)return!1}}}}}}return!0},qt=function(De){return De!=="annotation-xml"&&Ete(De,K)},vt=function(De){st("beforeSanitizeAttributes",De,null);const{attributes:Ye}=De;if(!Ye)return;const ot={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let Re=Ye.length;for(;Re--;){const It=Ye[Re],{name:rt,namespaceURI:$t,value:Mt}=It,dn=nt(rt);let pn=rt==="value"?Mt:PNt(Mt);if(ot.attrName=dn,ot.attrValue=pn,ot.keepAttr=!0,ot.forceKeepAttr=void 0,st("uponSanitizeAttribute",De,ot),pn=ot.attrValue,Se&&(dn==="id"||dn==="name")&&(pt(rt,De),pn=we+pn),pe&&os(/((--!?|])>)|<\/(style|title)/i,pn)){pt(rt,De);continue}if(ot.forceKeepAttr||(pt(rt,De),!ot.keepAttr))continue;if(!le&&os(/\/>/i,pn)){pt(rt,De);continue}ce&&YS([R,O,j],D=>{pn=Zb(pn,D," ")});const T=nt(De.nodeName);if(kt(T,dn,pn)){if(C&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!$t)switch(h.getAttributeType(T,dn)){case"TrustedHTML":{pn=C.createHTML(pn);break}case"TrustedScriptURL":{pn=C.createScriptURL(pn);break}}try{$t?De.setAttributeNS($t,rt,pn):De.setAttribute(rt,pn),Ot(De)?Je(De):kte(t.removed)}catch{}}}st("afterSanitizeAttributes",De,null)},At=function dt(De){let Ye=null;const ot=Nt(De);for(st("beforeSanitizeShadowDOM",De,null);Ye=ot.nextNode();)st("uponSanitizeShadowNode",Ye,null),!Ct(Ye)&&(Ye.content instanceof a&&dt(Ye.content),vt(Ye));st("afterSanitizeShadowDOM",De,null)};return t.sanitize=function(dt){let De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=null,ot=null,Re=null,It=null;if(Ve=!dt,Ve&&(dt=""),typeof dt!="string"&&!Pt(dt))if(typeof dt.toString=="function"){if(dt=dt.toString(),typeof dt!="string")throw Qb("dirty is not a string, aborting")}else throw Qb("toString is not a function");if(!t.isSupported)return dt;if(re||Ut(De),t.removed=[],typeof dt=="string"&&(ye=!1),ye){if(dt.nodeName){const Mt=nt(dt.nodeName);if(!V[Mt]||ie[Mt])throw Qb("root node is forbidden and cannot be sanitized in-place")}}else if(dt instanceof s)Ye=xt(""),ot=Ye.ownerDocument.importNode(dt,!0),ot.nodeType===e2.element&&ot.nodeName==="BODY"||ot.nodeName==="HTML"?Ye=ot:Ye.appendChild(ot);else{if(!ve&&!ce&&!me&&dt.indexOf("<")===-1)return C&&Ce?C.createHTML(dt):dt;if(Ye=xt(dt),!Ye)return ve?null:Ce?k:""}Ye&&fe&&Je(Ye.firstChild);const rt=Nt(ye?dt:Ye);for(;Re=rt.nextNode();)Ct(Re)||(Re.content instanceof a&&At(Re.content),vt(Re));if(ye)return dt;if(ve){if($e)for(It=E.call(Ye.ownerDocument);Ye.firstChild;)It.appendChild(Ye.firstChild);else It=Ye;return(U.shadowroot||U.shadowrootmode)&&(It=M.call(r,It,!0)),It}let $t=me?Ye.outerHTML:Ye.innerHTML;return me&&V["!doctype"]&&Ye.ownerDocument&&Ye.ownerDocument.doctype&&Ye.ownerDocument.doctype.name&&os(lwe,Ye.ownerDocument.doctype.name)&&($t=" +`+$t),ce&&YS([R,O,j],Mt=>{$t=Zb($t,Mt," ")}),C&&Ce?C.createHTML($t):$t},t.setConfig=function(){let dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ut(dt),re=!0},t.clearConfig=function(){jt=null,re=!1},t.isValidAttribute=function(dt,De,Ye){jt||Ut({});const ot=nt(dt),Re=nt(De);return kt(ot,Re,Ye)},t.addHook=function(dt,De){typeof De=="function"&&(P[dt]=P[dt]||[],Xb(P[dt],De))},t.removeHook=function(dt){if(P[dt])return kte(P[dt])},t.removeHooks=function(dt){P[dt]&&(P[dt]=[])},t.removeAllHooks=function(){P={}},t}var VNt=cwe();function qNt(e,t="click"){const n=d.useRef();return d.useEffect(()=>{const r=i=>{const a=n.current;!a||a.contains(i.target)||e&&e(i)};return document.addEventListener(t,r),()=>{document.removeEventListener(t,r)}},[t,e]),n}function BH(e){const t=d.useRef(null);return d.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function KNt(e){const t=d.useRef(e);return t.current=e,t}function GNt(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)}function YNt(e){return e.offsetHeight}const XNt=5*60*1e3;let Rte=0;const rP=(e,t)=>{const n=e.createdAt||Date.now(),r=e.hasTime||n-Rte>XNt;return r&&(Rte=n),{...e,_id:e._id||t||GNt(),createdAt:n,position:e.position||"left",hasTime:r}};function uwe(e=[]){const t=d.useMemo(()=>e.map(c=>rP(c)),[e]),[n,r]=d.useState(t),i=d.useCallback(c=>{r(u=>[...c,...u])},[]),a=d.useCallback((c,u)=>{r(f=>f.map(p=>p._id===c?rP(u,c):p))},[]),o=d.useCallback(c=>{const u=rP(c);r(f=>[...f,u])},[]),s=d.useCallback(c=>{r(u=>u.filter(f=>f._id!==c))},[]),l=d.useCallback((c=[])=>{r(c)},[]);return{messages:n,prependMsgs:i,appendMsg:o,updateMsg:a,deleteMsg:s,resetList:l}}function dwe({active:e=!1,ref:t,delay:n=300}){const[r,i]=d.useState(!1),[a,o]=d.useState(!1),s=d.useRef(),l=()=>{s.current&&clearTimeout(s.current)};return d.useEffect(()=>(e?(l(),o(e)):(i(e),s.current=setTimeout(()=>{o(e)},n)),l),[e,n]),d.useEffect(()=>{t.current&&YNt(t.current),i(a)},[a,t]),{didMount:a,isShow:r}}class knn extends te.Component{constructor(t){super(t),this.state={error:null,errorInfo:null}}componentDidCatch(t,n){const{onError:r}=this.props;r&&r(t,n),this.setState({error:t,errorInfo:n})}render(){const{FallbackComponent:t,children:n,...r}=this.props,{error:i,errorInfo:a}=this.state;return a?t?x.jsx(t,{error:i,errorInfo:a,...r}):null:n}}te.createContext({addComponent:()=>{},hasComponent:()=>!1,getComponent:()=>null});const ZNt=e=>{const{className:t,src:n,alt:r,url:i,size:a="md",shape:o="circle",children:s}=e,l=i?"a":"span";return x.jsx(l,{className:Zn("Avatar",`Avatar--${a}`,`Avatar--${o}`,t),href:i,children:n?x.jsx("img",{src:n,alt:r}):s})},QNt=e=>{const{className:t,active:n,onClick:r,...i}=e;return x.jsx("div",{className:Zn("Backdrop",t,{active:n}),onClick:r,role:"button",tabIndex:-1,"aria-hidden":!0,...i})},fwe=({content:e})=>{const t=VNt.sanitize(e,{ALLOWED_TAGS:["p","div","span","h1","h2","h3","h4","h5","h6","ul","ol","li","a","strong","em","b","i","img","blockquote","code","pre"],ALLOWED_ATTR:["href","target","src","alt","style","class"]});return x.jsx("div",{className:"RichText",dangerouslySetInnerHTML:{__html:t}})},JNt=/(\+?86-?)?1[3-9]\d{9}/g,eAt=/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,qu=te.forwardRef((e,t)=>{const{type:n="text",content:r,children:i,isRichText:a=!1,onPhoneClick:o,onEmailClick:s,onAiClick:l,onSearchClick:c,showFunctionButtons:u=!0,...f}=e,[p,h]=d.useState(!1),m=y=>{const w=y.replace(/^\+?86-?/,"");console.log(`拨打电话: ${w}`),o==null||o(w)},g=y=>{console.log(`发送邮件: ${y}`),s==null||s(y)},v=()=>{if(!r)return null;if(a)return x.jsx(fwe,{content:r});let y=0;const w=[],b=r,C=[];let k;for(;(k=JNt.exec(b))!==null;)C.push({value:k[0],index:k.index,type:"phone"});let S;for(;(S=eAt.exec(b))!==null;)C.push({value:S[0],index:S.index,type:"email"});return C.sort((_,E)=>_.index-E.index),C.forEach((_,E)=>{_.index>y&&w.push(b.substring(y,_.index)),w.push(x.jsx("a",{href:"#",onClick:$=>{$.preventDefault(),_.type==="phone"?m(_.value):g(_.value)},style:{color:"#1890ff",textDecoration:"none",cursor:"pointer"},children:_.value},E)),y=_.index+_.value.length}),yh(!0),onMouseLeave:()=>h(!1),...f,children:[v(),i,u&&p&&n==="text"&&r&&x.jsxs("div",{className:"bubble-function-buttons",children:[c&&x.jsx("button",{className:"bubble-function-button search-button",onClick:y=>{y.stopPropagation(),c()},title:"搜索快捷短语",children:x.jsx("i",{className:"search-icon",children:"🔍"})}),l&&x.jsx("button",{className:"bubble-function-button ai-button",onClick:y=>{y.stopPropagation(),l()},title:"问AI",children:x.jsx("i",{className:"ai-icon",children:"🤖"})})]})]})}),yo=te.forwardRef((e,t)=>{const{type:n,className:r,spin:i,name:a,...o}=e,s=typeof a=="string"?{"aria-label":a}:{"aria-hidden":!0};return x.jsx("svg",{className:Zn("Icon",{"is-spin":i},r),ref:t,...s,...o,children:x.jsx("use",{xlinkHref:`#icon-${n}`})})});function iP(e){return e&&`Btn--${e}`}const qs=te.forwardRef((e,t)=>{const{className:n,label:r,color:i,variant:a,size:o,icon:s,loading:l,block:c,disabled:u,children:f,onClick:p,...h}=e,m=s||l&&"spinner",g=o||(c?"lg":"");function v(y){!u&&!l&&p&&p(y)}return x.jsxs("button",{className:Zn("Btn",iP(i),iP(a),iP(g),{"Btn--block":c},n),type:"button",disabled:u,onClick:v,ref:t,...h,children:[m&&x.jsx("span",{className:"Btn-icon",children:x.jsx(yo,{type:m,spin:l})}),r||f]})}),tAt={BackBottom:{newMsgOne:"{n} رسالة جديدة",newMsgOther:"{n} رسالة جديدة",bottom:"الأسفل"},Time:{weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),formats:{LT:"HH:mm",lll:"YYYY/M/D HH:mm",WT:"HH:mm dddd",YT:"HH:mm أمس"}},Composer:{send:"إرسال"},SendConfirm:{title:"إرسال صورة",send:"أرسل",cancel:"إلغاء"},RateActions:{up:"التصويت",down:"تصويت سلبي"},Recorder:{hold2talk:"أستمر بالضغط لتتحدث",release2send:"حرر للإرسال",releaseOrSwipe:"حرر للإرسال ، اسحب لأعلى للإلغاء",release2cancel:"حرر للإلغاء"},Search:{search:"يبحث"}},nAt={BackBottom:{newMsgOne:"{n} new message",newMsgOther:"{n} new messages",bottom:"Bottom"},Time:{weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),formats:{LT:"HH:mm",lll:"M/D/YYYY HH:mm",WT:"dddd HH:mm",YT:"Yesterday HH:mm"}},Composer:{send:"Send"},SendConfirm:{title:"Send photo",send:"Send",cancel:"Cancel"},RateActions:{up:"Up vote",down:"Down vote"},Recorder:{hold2talk:"Hold to Talk",release2send:"Release to Send",releaseOrSwipe:"Release to send, swipe up to cancel",release2cancel:"Release to cancel"},Search:{search:"Search"}},rAt={BackBottom:{newMsgOne:"{n} nouveau message",newMsgOther:"{n} nouveau messages",bottom:"Fond"},Time:{weekdays:"Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),formats:{LT:"HH:mm",lll:"D/M/YYYY HH:mm",WT:"dddd HH:mm",YT:"Hier HH:mm"}},Composer:{send:"Envoyer"},SendConfirm:{title:"Envoyer une photo",send:"Envoyer",cancel:"Annuler"},RateActions:{up:"Voter pour",down:"Vote négatif"},Recorder:{hold2talk:"Tenir pour parler",release2send:"Libérer pour envoyer",releaseOrSwipe:"Relâchez pour envoyer, balayez vers le haut pour annuler",release2cancel:"Relâcher pour annuler"},Search:{search:"Chercher"}},iAt={BackBottom:{newMsgOne:"{n}条新消息",newMsgOther:"{n}条新消息",bottom:"回到底部"},Time:{weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),formats:{LT:"HH:mm",lll:"YYYY年M月D日 HH:mm",WT:"dddd HH:mm",YT:"昨天 HH:mm"}},Composer:{send:"发送"},SendConfirm:{title:"发送图片",send:"发送",cancel:"取消"},RateActions:{up:"赞同",down:"反对"},Recorder:{hold2talk:"按住 说话",release2send:"松开 发送",releaseOrSwipe:"松开发送,上滑取消",release2cancel:"松开手指,取消发送"},Search:{search:"搜索"}},Ite={"ar-EG":tAt,"fr-FR":rAt,"en-US":nAt,"zh-CN":iAt},pwe="en-US",zH=te.createContext({}),aAt=({locale:e=pwe,locales:t,elderMode:n,children:r})=>x.jsx(zH.Provider,{value:{locale:e,locales:t,elderMode:n},children:r}),HH=()=>d.useContext(zH),h1=(e,t)=>{const{locale:n,locales:r}=d.useContext(zH);let a={...n&&Ite[n]||Ite[pwe],...r};return!n&&!r&&t?a=t:e&&(a=a[e]||{}),{locale:n,trans:o=>o?a[o]:a}},Xs=te.forwardRef((e,t)=>{const{className:n,size:r,fluid:i,children:a,...o}=e,s=HH();return x.jsx("div",{className:Zn("Card",r&&`Card--${r}`,{"Card--fluid":i},n),"data-fluid":i,"data-elder-mode":s.elderMode,...o,ref:t,children:a})}),oAt={row:"Flex--d-r","row-reverse":"Flex--d-rr",column:"Flex--d-c","column-reverse":"Flex--d-cr"},sAt={nowrap:"Flex--w-n",wrap:"Flex--w-w","wrap-reverse":"Flex--w-wr"},lAt={"flex-start":"Flex--jc-fs","flex-end":"Flex--jc-fe",center:"Flex--jc-c","space-between":"Flex--jc-sb","space-around":"Flex--jc-sa"},cAt={"flex-start":"Flex--ai-fs","flex-end":"Flex--ai-fe",center:"Flex--ai-c"},fu=te.forwardRef((e,t)=>{const{as:n="div",className:r,inline:i,center:a,direction:o,wrap:s,justifyContent:l,justify:c=l,alignItems:u,align:f=u,children:p,...h}=e;return x.jsx(n,{className:Zn("Flex",o&&oAt[o],c&&lAt[c],f&&cAt[f],s&&sAt[s],{"Flex--inline":i,"Flex--center":a},r),ref:t,...h,children:p})}),mA=te.forwardRef((e,t)=>{const{className:n,flex:r,alignSelf:i,order:a,style:o,children:s,...l}=e;return x.jsx("div",{className:Zn("FlexItem",n),style:{...o,flex:r,alignSelf:i,order:a},ref:t,...l,children:s})});te.forwardRef((e,t)=>{const{className:n,aspectRatio:r="square",color:i,image:a,children:o,...s}=e,l={backgroundColor:i||void 0,backgroundImage:typeof a=="string"?`url('${a}')`:void 0};return x.jsx("div",{className:Zn("CardMedia",{"CardMedia--wide":r==="wide","CardMedia--square":r==="square"},n),style:l,...s,ref:t,children:o&&x.jsx(fu,{className:"CardMedia-content",direction:"column",center:!0,children:o})})});const tp=te.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return x.jsx("div",{className:Zn("CardContent",n),...i,ref:t,children:r})}),np=te.forwardRef((e,t)=>{const{className:n,title:r,subtitle:i,center:a,children:o,...s}=e;return x.jsxs("div",{className:Zn("CardTitle",{"CardTitle--center":a},n),...s,ref:t,children:[r&&x.jsx("h5",{className:"CardTitle-title",children:r}),o&&typeof o=="string"&&x.jsx("h5",{className:"CardTitle-title",children:o}),i&&x.jsx("p",{className:"CardTitle-subtitle",children:i}),o&&typeof o!="string"&&o]})}),UH=te.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return x.jsx("div",{className:Zn("CardText",n),...i,ref:t,children:typeof r=="string"?x.jsx("p",{children:r}):r})}),hwe=te.forwardRef((e,t)=>{const{children:n,className:r,direction:i,...a}=e;return x.jsx("div",{className:Zn("CardActions",r,i&&`CardActions--${i}`),...a,ref:t,children:n})}),aP=e=>{const{width:t,children:n}=e;return x.jsx("div",{className:"Carousel-item",style:{width:t},children:n})},mwe=(e,t)=>{e.style.transform=t,e.style.webkitTransform=t},jte=(e,t)=>{e.style.transition=t,e.style.webkitTransition=t},uAt={passiveListener:()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener("test",null,t)}catch{}return e},smoothScroll:()=>"scrollBehavior"in document.documentElement.style,touch:()=>"ontouchstart"in window};function m1(e){return uAt[e]()}const dAt=["TEXTAREA","OPTION","INPUT","SELECT"],fAt=m1("touch");te.forwardRef((e,t)=>{const{className:n,startIndex:r=0,draggable:i=!0,duration:a=300,easing:o="ease",threshold:s=20,clickDragThreshold:l=10,loop:c=!0,rtl:u=!1,autoPlay:f=e.autoplay||!1,interval:p=e.autoplaySpeed||4e3,dots:h=e.indicators||!0,onChange:m,children:g}=e,v=te.Children.count(g),y=`${100/v}%`,w=d.useRef(null),b=d.useRef(null),C=d.useRef(null),k=d.useRef({first:!0,wrapWidth:0,hover:!1,startX:0,endX:0,startY:0,canMove:null,pressDown:!1}),S=d.useCallback(oe=>c?oe%v:Math.max(0,Math.min(oe,v-1)),[v,c]),[_,E]=d.useState(S(r)),[$,M]=d.useState(!1),P=d.useCallback(()=>{jte(b.current,`transform ${a}ms ${o}`)},[a,o]),R=()=>{jte(b.current,"transform 0s")},O=oe=>{mwe(b.current,`translate3d(${oe}px, 0, 0)`)},j=d.useCallback((oe,le)=>{const ce=c?oe+1:oe,pe=(u?1:-1)*ce*k.current.wrapWidth;le?requestAnimationFrame(()=>{requestAnimationFrame(()=>{P(),O(pe)})}):O(pe)},[P,c,u]),I=d.useCallback(oe=>{if(v<=1)return;const le=S(oe);le!==_&&E(le)},[_,v,S]),A=d.useCallback(()=>{if(v<=1)return;let oe=_-1;if(c){if(oe<0){const le=k.current,ce=v+1,pe=(u?1:-1)*ce*le.wrapWidth,me=i?le.endX-le.startX:0;R(),O(pe+me),oe=v-1}}else oe=Math.max(oe,0);oe!==_&&E(oe)},[_,v,i,c,u]),N=d.useCallback(()=>{if(v<=1)return;let oe=_+1;if(c){if(oe>v-1){oe=0;const ce=k.current,pe=i?ce.endX-ce.startX:0;R(),O(pe)}}else oe=Math.min(oe,v-1);oe!==_&&E(oe)},[_,v,i,c]),F=d.useCallback(()=>{!f||k.current.hover||(C.current=setTimeout(()=>{P(),N()},p))},[f,p,P,N]),K=()=>{clearTimeout(C.current)},L=()=>{j(_,!0),F()},V=()=>{const oe=k.current,le=(u?-1:1)*(oe.endX-oe.startX),ce=Math.abs(le),pe=le>0&&_-1<0,me=le<0&&_+1>v-1;pe||me?c?pe?A():N():L():le>0&&ce>s&&v>1?A():le<0&&ce>s&&v>1?N():L()},B=()=>{const oe=k.current;oe.startX=0,oe.endX=0,oe.startY=0,oe.canMove=null,oe.pressDown=!1},U=oe=>{if(dAt.includes(oe.target.nodeName))return;oe.preventDefault(),oe.stopPropagation();const le="touches"in oe?oe.touches[0]:oe,ce=k.current;ce.pressDown=!0,ce.startX=le.pageX,ce.startY=le.pageY,K()},Y=oe=>{oe.stopPropagation();const le="touches"in oe?oe.touches[0]:oe,ce=k.current;if(ce.pressDown){if("touches"in oe&&(ce.canMove===null&&(ce.canMove=Math.abs(ce.startY-le.pageY)l&&M(!0);const fe=u?me+re:re-me;O(fe)}},ee=oe=>{oe.stopPropagation();const le=k.current;le.pressDown=!1,M(!1),P(),le.endX?V():F(),B()},ie=()=>{k.current.hover=!0,K()},Z=oe=>{const le=k.current;le.hover=!1,le.pressDown&&(le.pressDown=!1,le.endX=oe.pageX,P(),V(),B()),F()},X=oe=>{const{slideTo:le}=oe.currentTarget.dataset;if(le){const ce=parseInt(le,10);I(ce)}oe.preventDefault()};d.useImperativeHandle(t,()=>({goTo:I,prev:A,next:N,wrapperRef:w}),[I,A,N]),d.useEffect(()=>{function oe(){k.current.wrapWidth=w.current.offsetWidth,j(_)}return k.current.first&&oe(),window.addEventListener("resize",oe),()=>{window.removeEventListener("resize",oe)}},[_,j]),d.useEffect(()=>{m&&!k.current.first&&m(_)},[_,m]),d.useEffect(()=>{k.current.first?(j(_),k.current.first=!1):j(_,!0)},[_,j]),d.useEffect(()=>(F(),()=>{K()}),[f,_,F]);let ae;return i?ae=fAt?{onTouchStart:U,onTouchMove:Y,onTouchEnd:ee}:{onMouseDown:U,onMouseMove:Y,onMouseUp:ee,onMouseEnter:ie,onMouseLeave:Z}:ae={onMouseEnter:ie,onMouseLeave:Z},x.jsxs("div",{className:Zn("Carousel",{"Carousel--draggable":i,"Carousel--rtl":u,"Carousel--dragging":$},n),ref:w,...ae,children:[x.jsxs("div",{className:"Carousel-inner",style:{width:`${c?v+2:v}00%`},ref:b,children:[c&&x.jsx(aP,{width:y,children:te.Children.toArray(g)[v-1]}),te.Children.map(g,(oe,le)=>x.jsx(aP,{width:y,children:oe},le)),c&&x.jsx(aP,{width:y,children:te.Children.toArray(g)[0]})]}),h&&x.jsx("ol",{className:"Carousel-dots",children:te.Children.map(g,(oe,le)=>x.jsx("li",{children:x.jsx("button",{className:Zn("Carousel-dot",{active:_===le}),type:"button","aria-label":`Go to slide ${le+1}`,"data-slide-to":le,onClick:X})},le))})]})});const pAt=te.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return x.jsxs("label",{className:Zn("Checkbox",n,{"Checkbox--checked":i,"Checkbox--disabled":a}),ref:t,children:[x.jsx("input",{type:"checkbox",className:"Checkbox-input",checked:i,disabled:a,onChange:o,...s}),x.jsx("span",{className:"Checkbox-text",children:r})]})});te.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;function c(u,f){const p=f.target.checked?i.concat(u):i.filter(h=>h!==u);l(p,f)}return x.jsx("div",{className:Zn("CheckboxGroup",{"CheckboxGroup--block":s},n),ref:t,children:r.map(u=>x.jsx(pAt,{label:u.label||u.value,value:u.value,name:a,checked:i.includes(u.value),disabled:"disabled"in u?u.disabled:o,onChange:f=>{c(u.value,f)}},u.value))})});const gA=document,hAt=gA.documentElement,mAt=e=>{const{children:t,onClick:n,mouseEvent:r="mouseup",...i}=e,a=d.useRef(null);function o(s){a.current&&hAt.contains(s.target)&&!a.current.contains(s.target)&&n(s)}return d.useEffect(()=>(r&&gA.addEventListener(r,o),()=>{gA.removeEventListener(r,o)})),x.jsx("div",{ref:a,...i,children:t})},gAt="//gw.alicdn.com/tfs/TB1fnnLRkvoK1RjSZFDXXXY3pXa-300-250.svg",vAt="//gw.alicdn.com/tfs/TB1lRjJRbvpK1RjSZPiXXbmwXXa-300-250.svg";te.forwardRef((e,t)=>{const{className:n,type:r,image:i,tip:a,children:o}=e,s=i||(r==="error"?vAt:gAt);return x.jsxs(fu,{className:Zn("Empty",n),direction:"column",center:!0,ref:t,children:[x.jsx("img",{className:"Empty-img",src:s,alt:a}),a&&x.jsx("p",{className:"Empty-tip",children:a}),o]})});const yAt=te.createContext("");te.forwardRef((e,t)=>{const{children:n,...r}=e;return x.jsx("label",{className:"Label",...r,ref:t,children:n})});const xu=te.forwardRef((e,t)=>{const{className:n,icon:r,img:i,...a}=e;return x.jsxs(qs,{className:Zn("IconBtn",n),ref:t,...a,children:[r&&x.jsx(yo,{type:r}),!r&&i&&x.jsx("img",{src:i,alt:""})]})});te.forwardRef((e,t)=>{const{className:n,src:r,lazy:i,fluid:a,children:o,...s}=e,[l,c]=d.useState(i?void 0:r),u=BH(t),f=d.useRef(""),p=d.useRef(!1);return d.useEffect(()=>{if(!i)return;const h=new IntersectionObserver(([m])=>{m.isIntersecting&&(c(f.current),p.current=!0,h.unobserve(m.target))});return u.current&&h.observe(u.current),()=>{h.disconnect()}},[u,i]),d.useEffect(()=>{f.current=r,(!i||p.current)&&c(r)},[i,r]),x.jsx("img",{className:Zn("Image",{"Image--fluid":a},n),src:l,alt:"",ref:u,...s})});function gwe(e){return e.scrollHeight-e.scrollTop-e.offsetHeight}te.forwardRef((e,t)=>{const{className:n,disabled:r,distance:i=0,children:a,onLoadMore:o,onScroll:s,...l}=e,c=BH(t);function u(f){s&&s(f);const p=c.current;if(!p)return;gwe(p)<=i&&o()}return x.jsx("div",{className:Zn("InfiniteScroll",n),role:"feed",onScroll:r?void 0:u,ref:c,...l,children:a})});function bAt(e,t){return`${`${e}`.length}${t?`/${t}`:""}`}const vA=te.forwardRef((e,t)=>{const{className:n,type:r="text",variant:i,value:a,placeholder:o,rows:s=1,minRows:l=s,maxRows:c=5,maxLength:u,showCount:f=!!u,multiline:p,autoSize:h,onChange:m,...g}=e;let v=s;vc&&(v=c);const[y,w]=d.useState(v),[b,C]=d.useState(21),k=BH(t),S=d.useContext(yAt),_=i||(S==="light"?"flushed":"outline"),$=p||h||s>1?"textarea":"input";d.useEffect(()=>{if(!k.current)return;const O=getComputedStyle(k.current,null).lineHeight,j=Number(O.replace("px",""));j!==b&&C(j)},[k,b]);const M=d.useCallback(()=>{if(!h||!k.current)return;const O=k.current,j=O.rows;O.rows=l,o&&(O.placeholder="");const I=~~(O.scrollHeight/b);I===j&&(O.rows=I),I>=c&&(O.rows=c,O.scrollTop=O.scrollHeight),w(I{a===""?w(v):M()},[v,M,a]);const P=d.useCallback(O=>{if(M(),m){const j=O.target.value,A=u&&j.length>u?j.substr(0,u):j;m(A,O)}},[u,m,M]),R=x.jsx($,{className:Zn("Input",`Input--${_}`,n),type:r,value:a,placeholder:o,maxLength:u,ref:k,rows:y,onChange:P,...g});return f?x.jsxs("div",{className:Zn("InputWrapper",{"has-counter":f}),children:[R,f&&x.jsx("div",{className:"Input-counter",children:bAt(a,u)})]}):R});te.forwardRef((e,t)=>{const{bordered:n=!1,className:r,children:i}=e;return x.jsx("div",{className:Zn("List",{"List--bordered":n},r),role:"list",ref:t,children:i})});te.forwardRef((e,t)=>{const{className:n,as:r="div",content:i,rightIcon:a,children:o,onClick:s,...l}=e;return x.jsxs(r,{className:Zn("ListItem",n),onClick:s,role:"listitem",...l,ref:t,children:[x.jsx("div",{className:"ListItem-content",children:i||o}),a&&x.jsx(yo,{type:a})]})});const wAt=e=>{const{className:t,content:n,action:r}=e;return x.jsx("div",{className:Zn("Message SystemMessage",t),children:x.jsxs("div",{className:"SystemMessage-inner",children:[x.jsx("span",{children:x.jsx(fwe,{content:n})}),r&&x.jsx("a",{href:"javascript:;",onClick:r.onClick,children:r.text})]})})},xAt=/YYYY|M|D|dddd|HH|mm/g,vwe=24*60*60*1e3,SAt=vwe*7,CAt=e=>e instanceof Date?e:new Date(e),_At=()=>new Date(new Date().setHours(0,0,0,0)),Nte=e=>(e<=9?"0":"")+e,kAt=e=>{const t=_At().getTime()-e.getTime();return t<0?"LT":ti[a])}const $At=({date:e})=>{const{trans:t}=h1("Time");return x.jsx("time",{className:"Time",dateTime:new Date(e).toJSON(),children:EAt(e,t())})};function MAt(){return x.jsx(qu,{type:"typing",children:x.jsxs("div",{className:"Typing","aria-busy":"true",children:[x.jsx("div",{className:"Typing-dot"}),x.jsx("div",{className:"Typing-dot"}),x.jsx("div",{className:"Typing-dot"})]})})}const TAt=e=>{const{renderMessageContent:t=()=>null,...n}=e,{type:r,content:i,user:a={},_id:o,position:s="left",hasTime:l=!0,createdAt:c}=n,{name:u,avatar:f}=a;if(r==="system"||r===G3||r===m0||r===g0||r===v0)return x.jsx(wAt,{content:i,action:i.action});const p=s==="right"||s==="left";return x.jsxs("div",{className:Zn("Message",s),"data-id":o,"data-type":r,children:[l&&c&&x.jsx("div",{className:"Message-meta",children:x.jsx($At,{date:c})}),x.jsxs("div",{className:"Message-main",children:[p&&f&&x.jsx(ZNt,{src:f,alt:u,url:a.url}),x.jsxs("div",{className:"Message-inner",children:[p&&u&&x.jsx("div",{className:"Message-author",children:u}),x.jsx("div",{className:"Message-content",role:"alert","aria-live":"assertive","aria-atomic":"false",children:r==="typing"?x.jsx(MAt,{}):t(n)})]})]})]})},Ate=te.memo(TAt),ll=({status:e,delay:t=1500,maxDelay:n=5e3,onRetry:r,onChange:i})=>{const a=jn(),[o,s]=d.useState(""),l=d.useRef(),c=d.useRef(),u=d.useCallback(()=>{l.current=setTimeout(()=>{s("loading")},t),c.current=setTimeout(()=>{s("fail")},n)},[t,n]);function f(){l.current&&clearTimeout(l.current),c.current&&clearTimeout(c.current)}d.useEffect(()=>(f(),e==="SENDING"?u():e==="SUCCESS"?s(""):e==="READ"?s("READ"):e==="DELIVERED"?s("DELIVERED"):e==="TIMEOUT"&&s("fail"),f),[e,u]),d.useEffect(()=>{i&&i(o)},[i,o]);function p(){s("loading"),u(),r&&r()}return x.jsxs("div",{className:"MessageStatus","data-status":o,children:[o==="loading"&&x.jsx(yo,{type:"spinner",spin:!0,onClick:p}),o==="fail"&&x.jsx(xu,{icon:"warning-circle-fill",onClick:p}),o==="READ"&&x.jsx("div",{style:{fontSize:12,color:"gray"},children:a.formatMessage({id:"message.status.read",defaultMessage:"已读"})}),o==="DELIVERED"&&x.jsx("div",{style:{fontSize:12,color:"gray"},children:a.formatMessage({id:"message.status.delivered",defaultMessage:"已送达"})})]})};let PAt=0;const OAt=()=>PAt++;function ywe(e="id-"){return d.useRef(`${e}${OAt()}`).current}const aw=(e,t,n=document.body)=>{n.classList[t?"add":"remove"](e)};function Dte(){!document.querySelector(".Modal")&&!document.querySelector(".Popup")&&aw("S--modalOpen",!1)}const WH=te.forwardRef((e,t)=>{const{baseClass:n,active:r,className:i,title:a,showClose:o=!0,autoFocus:s=!0,backdrop:l=!0,height:c,overflow:u,actions:f,vertical:p=!0,btnVariant:h,bgColor:m,children:g,onBackdropClick:v,onClose:y}=e,w=ywe("modal-"),b=e.titleId||w,C=HH(),k=d.useRef(null),{didMount:S,isShow:_}=dwe({active:r,ref:k});if(d.useEffect(()=>{setTimeout(()=>{s&&k.current&&k.current.focus()})},[s]),d.useEffect(()=>{_&&aw("S--modalOpen",_)},[_]),d.useEffect(()=>{!r&&!S&&Dte()},[r,S]),d.useImperativeHandle(t,()=>({wrapperRef:k})),d.useEffect(()=>()=>{Dte()},[]),!S)return null;const E=n==="Popup";return Va.createPortal(x.jsxs("div",{className:Zn(n,i,{active:_}),tabIndex:-1,"data-elder-mode":C.elderMode,ref:k,children:[l&&x.jsx(QNt,{active:_,onClick:l===!0?v||y:void 0}),x.jsx("div",{className:Zn(`${n}-dialog`,{"pb-safe":E&&!f}),"data-bg-color":m,"data-height":E&&c?c:void 0,role:"dialog","aria-labelledby":b,"aria-modal":!0,children:x.jsxs("div",{className:`${n}-content`,children:[x.jsxs("div",{className:`${n}-header`,children:[x.jsx("h5",{className:`${n}-title`,id:b,children:a}),o&&y&&x.jsx(xu,{className:`${n}-close`,icon:"close",size:"lg",onClick:y,"aria-label":"关闭"})]}),x.jsx("div",{className:Zn(`${n}-body`,{overflow:u}),children:g}),f&&x.jsx("div",{className:`${n}-footer ${n}-footer--${p?"v":"h"}`,"data-variant":h||"round",children:f.map($=>d.createElement(qs,{size:"lg",block:E,variant:h,...$,key:$.label}))})]})})]}),document.body)}),RAt=te.forwardRef((e,t)=>x.jsx(WH,{baseClass:"Modal",btnVariant:e.vertical===!1?void 0:"outline",ref:t,...e})),Fte=e=>e.color==="primary";te.forwardRef((e,t)=>{const{className:n,vertical:r,actions:i,...a}=e,{locale:o=""}=h1(),s=o.includes("zh"),l=r??!s;return Array.isArray(i)&&i.sort((c,u)=>Fte(c)?l?-1:1:Fte(u)?l?1:-1:0),x.jsx(WH,{baseClass:"Modal",className:Zn("Confirm",n),showClose:!1,btnVariant:"outline",vertical:l,actions:i,ref:t,...a})});const IAt=te.forwardRef((e,t)=>x.jsx(WH,{baseClass:"Popup",overflow:!0,ref:t,...e})),jAt=te.forwardRef((e,t)=>{const{className:n,title:r,logo:i,desc:a,leftContent:o,rightContent:s=[],align:l}=e,c=l==="left",u=c?!0:!i;return x.jsxs("header",{className:Zn("Navbar",{"Navbar--left":c},n),ref:t,children:[x.jsx("div",{className:"Navbar-left",children:o&&x.jsx(xu,{size:"lg",...o})}),x.jsxs("div",{className:"Navbar-main",children:[i&&x.jsx("img",{className:"Navbar-logo",src:i,alt:r}),x.jsxs("div",{className:"Navbar-inner",children:[u&&x.jsx("h2",{className:"Navbar-title",children:r}),x.jsx("div",{className:"Navbar-desc",children:a})]})]}),x.jsx("div",{className:"Navbar-right",children:s.map(f=>x.jsx(xu,{size:"lg",...f},f.icon))})]})}),yA=te.forwardRef((e,t)=>{const{as:n="div",className:r,align:i,breakWord:a,truncate:o,children:s,...l}=e,c=Number.isInteger(o),u=Zn(i&&`Text--${i}`,{"Text--break":a,"Text--truncate":o===!0,"Text--ellipsis":c},r),f=c?{WebkitLineClamp:o}:null;return x.jsx(n,{className:u,style:f,...l,ref:t,children:s})}),NAt="Intl"in window&&typeof Intl.NumberFormat.prototype.formatToParts=="function",Lte=te.forwardRef((e,t)=>{const{className:n,price:r,currency:i,locale:a,original:o,...s}=e;let l=[];if(a&&i&&NAt?l=new Intl.NumberFormat(a,{style:"currency",currency:i}).formatToParts(r):l=void 0,!l){const c=".",[u,f]=`${r}`.split(c);l=[{type:"currency",value:i},{type:"integer",value:u},{type:"decimal",value:f&&c},{type:"fraction",value:f}]}return x.jsx("div",{className:Zn("Price",{"Price--original":o},n),ref:t,...s,children:l.map((c,u)=>c.value?x.jsx("span",{className:`Price-${c.type}`,children:c.value},u):null)})});te.forwardRef((e,t)=>{const{className:n,value:r,status:i,...a}=e;return x.jsx("div",{className:Zn("Progress",i&&`Progress--${i}`,n),ref:t,...a,children:x.jsx("div",{className:"Progress-bar",role:"progressbar",style:{width:`${r}%`},"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100})})});const Bte=requestAnimationFrame;function bwe({el:e,to:t,duration:n=300,x:r}){let i=0;const a=r?"scrollLeft":"scrollTop",o=e[a],s=Math.round(n/16),l=(t-o)/s;if(!Bte){e[a]=t;return}function c(){e[a]+=l,++i{const{distance:n=30,loadingDistance:r=30,maxDistance:i,distanceRatio:a=2,loadMoreText:o="点击加载更多",children:s,onScroll:l,onRefresh:c,renderIndicator:u=K=>K==="active"||K==="loading"?x.jsx(yo,{className:"PullToRefresh-spinner",type:"spinner",spin:!0}):null}=e,f=d.useRef(null),p=d.useRef(null),h=KNt(c),[m,g]=d.useState(0),[v,y]=d.useState("pending"),[w,b]=d.useState(!1),[C,k]=d.useState(!e.onRefresh),S=d.useRef({}),_=d.useRef(v),E=d.useRef(),$=d.useRef(),M=!m1("touch");d.useEffect(()=>{_.current=v},[v]);const P=K=>{const L=p.current;L&&mwe(L,`translate3d(0px,${K}px,0)`)},R=({y:K,animated:L=!0})=>{const V=f.current;if(!V)return;const B=K==="100%"?V.scrollHeight-V.offsetHeight:K;L?bwe({el:V,to:B,x:!1}):V.scrollTop=B},O=d.useCallback(({animated:K=!0}={})=>{R({y:"100%",animated:K})},[]),j=d.useCallback(()=>{g(0),y("pending"),P(0)},[]),I=d.useCallback(()=>{const K=f.current;if(!(!K||!h.current)){y("loading");try{const L=K.scrollHeight;h.current().then(V=>{const B=()=>{R({y:K.scrollHeight-L-50,animated:!1})};clearTimeout(E.current),clearTimeout($.current),B(),E.current=setTimeout(B,150),$.current=setTimeout(B,250),j(),V&&V.noMore&&k(!0)})}catch(L){console.error(L),j()}}},[h,j]),A=()=>{S.current.startY=0},N=d.useCallback(K=>{const L=K.touches[0].clientY,V=f.current.scrollTop<=0;V?S.current.startY||(S.current.startY=L,y("pull"),b(!1)):S.current.startY=0;const{startY:B}=S.current;if(!V||Li&&(U=i),U>0&&(K.cancelable&&K.preventDefault(),K.stopPropagation(),P(U),g(U),y(U>=n?"active":"pull"))},[a,i,n]),F=d.useCallback(()=>{b(!0),S.current.startY&&_.current==="active"?I():j()},[I,j]);return d.useEffect(()=>{const K=f.current;!K||M||(C?(K.removeEventListener("touchstart",A),K.removeEventListener("touchmove",N),K.removeEventListener("touchend",F),K.removeEventListener("touchcancel",F)):(K.addEventListener("touchstart",A,AAt),K.addEventListener("touchmove",N,DAt),K.addEventListener("touchend",F),K.addEventListener("touchcancel",F)))},[C,F,N,M]),d.useEffect(()=>{v==="loading"&&!M&&P(r)},[r,v,M]),d.useImperativeHandle(t,()=>({scrollTo:R,scrollToEnd:O,wrapperRef:f}),[O]),x.jsx("div",{className:"PullToRefresh",ref:f,onScroll:l,children:x.jsx("div",{className:"PullToRefresh-inner",children:x.jsxs("div",{className:Zn("PullToRefresh-content",{"PullToRefresh-transition":w}),ref:p,children:[x.jsx("div",{className:"PullToRefresh-indicator",children:u(v,m)}),!C&&M&&x.jsxs(fu,{className:"PullToRefresh-fallback",center:!0,children:[u(v,n),x.jsx(qs,{className:"PullToRefresh-loadMore",variant:"text",onClick:I,children:o})]}),te.Children.only(s)]})})})}),LAt={threshold:[0,.1]},zte=e=>{const{item:t,effect:n,children:r,onIntersect:i}=e,a=d.useRef(null);return d.useEffect(()=>{if(!i)return;const o=new IntersectionObserver(([s])=>{s.intersectionRatio>0&&(i(t,s)||o.unobserve(s.target))},LAt);return a.current&&o.observe(a.current),()=>{o.disconnect()}},[t,i]),x.jsx("div",{className:Zn("ScrollView-item",{"slide-in-right-item":n==="slide","A-fadeIn":n==="fade"}),ref:a,children:r})},oP=!m1("touch"),BAt=te.forwardRef((e,t)=>{const{className:n,fullWidth:r,scrollX:i=!0,effect:a="slide",data:o,itemKey:s,renderItem:l,onIntersect:c,onScroll:u,children:f,...p}=e,h=d.useRef(null),m=d.useRef(null);function g(){const w=m.current;w.scrollLeft-=w.offsetWidth}function v(){const w=m.current;w.scrollLeft+=w.offsetWidth}const y=d.useCallback((w,b)=>{let C;return s&&(C=typeof s=="function"?s(w,b):w[s]),C||b},[s]);return d.useImperativeHandle(t,()=>({scrollTo:({x:w,y:b})=>{w!=null&&(m.current.scrollLeft=w),b!=null&&(m.current.scrollTop=b)},wrapperRef:h})),x.jsxs("div",{className:Zn("ScrollView",{"ScrollView--fullWidth":r,"ScrollView--x":i,"ScrollView--hasControls":oP},n),ref:h,...p,children:[oP&&x.jsx(xu,{className:"ScrollView-control",icon:"chevron-left","aria-label":"Previous",onClick:g}),x.jsx("div",{className:"ScrollView-scroller",ref:m,onScroll:u,children:x.jsxs("div",{className:"ScrollView-inner",children:[o.map((w,b)=>x.jsx(zte,{item:w,effect:w.effect||a,onIntersect:c,children:l(w,b)},y(w,b))),f?x.jsx(zte,{item:{},effect:a,onIntersect:c,children:f}):null]})}),oP&&x.jsx(xu,{className:"ScrollView-control",icon:"chevron-right","aria-label":"Next",onClick:v})]})}),ja=so(e=>({tickets:[],historyTickets:[],currentTicket:void 0,currentThreadTicket:void 0,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{assignment:x0},setCurrentTicket:t=>e({currentTicket:t}),setCurrentThreadTicket:t=>e({currentThreadTicket:t}),setSearchText:t=>{e({searchText:t})},refreshTickets:async()=>{const{currentOrg:t}=Vr.getState();if(t!=null&&t.uid){const{ticketService:n}=await xue(async()=>{const{ticketService:r}=await Promise.resolve().then(()=>gWt);return{ticketService:r}},void 0);await n.loadTickets(t.uid)}},setFilter:(t,n)=>e(r=>({filters:{...r.filters,[t]:n}})),clearFilters:()=>e({filters:{}}),setLoading:t=>e({loading:t}),setError:t=>e({error:t}),setTickets:t=>e({tickets:t}),setHistoryTickets:t=>e({historyTickets:t})})),zAt=e=>{const{item:t,index:n,onClick:r,fromTicketTab:i}=e,a=ja(s=>s.currentTicket);function o(){r(t,n)}return x.jsx("button",{className:Zn("QuickReply",{new:t.isNew,highlight:t.isHighlight}),type:"button","data-code":t.code,"aria-label":`快捷短语: ${t.name},双击发送`,onClick:o,disabled:!W2(i,a),children:x.jsxs("div",{className:"QuickReply-inner",children:[t.icon&&x.jsx(yo,{type:t.icon}),x.jsx("span",{children:t.name})]})})},HAt=e=>{const{items:t=[],visible:n=!0,onClick:r,onScroll:i,fromTicketTab:a=!1,chatThread:o}=e,s=d.useRef(null),[l,c]=d.useState(!!i),u=ja(p=>p.currentTicket),f=Na(p=>p.memberInfo);return d.useLayoutEffect(()=>{let p;return s.current&&(c(!1),s.current.scrollTo({x:0,y:0}),p=setTimeout(()=>{c(!0)},500)),()=>{clearTimeout(p)}},[t]),t.length?a&&!Ja(a,u,o,f)?x.jsx(x.Fragment,{}):x.jsx(BAt,{className:"QuickReplies",data:t,itemKey:"name",ref:s,"data-visible":n,onScroll:l?i:void 0,renderItem:(p,h)=>x.jsx(zAt,{item:p,index:h,onClick:r,fromTicketTab:a,chatThread:o},p.name)}):null},UAt=te.memo(HAt),WAt=te.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return x.jsxs("label",{className:Zn("Radio",n,{"Radio--checked":i,"Radio--disabled":a}),ref:t,children:[x.jsx("input",{type:"radio",className:"Radio-input",checked:i,disabled:a,onChange:o,...s}),x.jsx("span",{className:"Radio-text",children:r})]})});te.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;return x.jsx("div",{className:Zn("RadioGroup",{"RadioGroup--block":s},n),ref:t,children:r.map(c=>x.jsx(WAt,{label:c.label||c.value,value:c.value,name:a,checked:i===c.value,disabled:"disabled"in c?c.disabled:o,onChange:u=>{l(c.value,u)}},c.value))})});const ZS="up",QS="down",xwe=e=>{const{trans:t}=h1("RateActions",{up:"赞同",down:"反对"}),{upTitle:n=t("up"),downTitle:r=t("down"),onClick:i}=e,[a,o]=d.useState("");function s(u){a||(o(u),i(u))}function l(){s(ZS)}function c(){s(QS)}return x.jsxs("div",{className:"RateActions",children:[a!==QS&&x.jsx(xu,{className:Zn("RateBtn",{active:a===ZS}),title:n,"data-type":ZS,icon:"thumbs-up",onClick:l}),a!==ZS&&x.jsx(xu,{className:Zn("RateBtn",{active:a===QS}),title:r,"data-type":QS,icon:"thumbs-down",onClick:c})]})};te.forwardRef((e,t)=>{const{className:n,onSearch:r,onChange:i,onClear:a,value:o,clearable:s=!0,showSearch:l=!0,...c}=e,[u,f]=d.useState(o||""),{trans:p}=h1("Search"),h=y=>{f(y),i&&i(y)},m=()=>{f(""),a&&a()},g=y=>{y.keyCode===13&&(r&&r(u,y),y.preventDefault())},v=y=>{r&&r(u,y)};return x.jsxs("div",{className:Zn("Search",n),ref:t,children:[x.jsx(yo,{className:"Search-icon",type:"search"}),x.jsx(vA,{className:"Search-input",type:"search",value:u,enterKeyHint:"search",onChange:h,onKeyDown:g,...c}),s&&u&&x.jsx(xu,{className:"Search-clear",icon:"x-circle-fill",onClick:m}),l&&x.jsx(qs,{className:"Search-btn",color:"primary",onClick:v,children:p("search")})]})});te.forwardRef(({className:e,placeholder:t,variant:n="outline",children:r,...i},a)=>x.jsxs("select",{className:Zn("Input Select",`Input--${n}`,e),...i,ref:a,children:[t&&x.jsx("option",{value:"",children:t}),r]}));te.forwardRef((e,t)=>{const{className:n,current:r=0,status:i,inverted:a,children:o,...s}=e,c=te.Children.toArray(o).map((u,f)=>{const p={index:f,active:!1,completed:!1,disabled:!1};return r===f?(p.active=!0,p.status=i):r>f?p.completed=!0:(p.disabled=!a,p.completed=a),te.isValidElement(u)?te.cloneElement(u,{...p,...u.props}):null});return x.jsx("ul",{className:Zn("Stepper",n),ref:t,...s,children:c})});function VAt(e){if(e){const t={success:"check-circle-fill",fail:"warning-circle-fill",abort:"dash-circle-fill"};return x.jsx(yo,{type:t[e]})}return x.jsx("div",{className:"Step-dot"})}te.forwardRef((e,t)=>{const{className:n,active:r=!1,completed:i=!1,disabled:a=!1,status:o,index:s,title:l,subTitle:c,desc:u,children:f,...p}=e;return x.jsxs("li",{className:Zn("Step",{"Step--active":r,"Step--completed":i,"Step--disabled":a},n),ref:t,"data-status":o,...p,children:[x.jsx("div",{className:"Step-icon",children:VAt(o)}),x.jsx("div",{className:"Step-line"}),x.jsxs("div",{className:"Step-content",children:[l&&x.jsxs("div",{className:"Step-title",children:[l&&x.jsx("span",{children:l}),c&&x.jsx("small",{children:c})]}),u&&x.jsx("div",{className:"Step-desc",children:u}),f]})]})});const qAt=e=>{const{active:t,index:n,children:r,onClick:i,...a}=e;function o(s){i(n,s)}return x.jsx("div",{className:"Tabs-navItem",children:x.jsx("button",{className:Zn("Tabs-navLink",{active:t}),type:"button",role:"tab","aria-selected":t,onClick:o,...a,children:x.jsx("span",{children:r})})})},KAt=e=>{const{active:t,children:n,...r}=e;return x.jsx("div",{className:Zn("Tabs-pane",{active:t}),...r,role:"tabpanel",children:n})};te.forwardRef((e,t)=>{const{className:n,index:r=0,scrollable:i,hideNavIfOnlyOne:a,children:o,onChange:s}=e,[l,c]=d.useState({}),[u,f]=d.useState(r||0),p=d.useRef(u),h=d.useRef(null),m=[],g=[],v=ywe("tabs-");function y(C,k){f(C),s&&s(C,k)}te.Children.forEach(o,(C,k)=>{if(!C)return;const S=u===k,_=`${v}-${k}`;m.push(x.jsx(qAt,{active:S,index:k,onClick:y,"aria-controls":_,tabIndex:S?-1:0,children:C.props.label},_)),C.props.children&&g.push(x.jsx(KAt,{active:S,id:_,children:C.props.children},_))}),d.useEffect(()=>{f(r)},[r]);const w=d.useCallback(()=>{const C=h.current;if(!C)return;const k=C.children[p.current];if(!k)return;const S=k.querySelector("span");if(!S)return;const{offsetWidth:_,offsetLeft:E}=k,{width:$}=S.getBoundingClientRect(),M=Math.max($-16,26),P=E+_/2;c({transform:`translateX(${P-M/2}px)`,width:`${M}px`}),i&&bwe({el:C,to:P-C.offsetWidth/2,x:!0})},[i]);d.useEffect(()=>{const C=h.current;let k;return C&&"ResizeObserver"in window&&(k=new ResizeObserver(w),k.observe(C)),()=>{k&&C&&k.unobserve(C)}},[w]),d.useEffect(()=>{p.current=u,w()},[u,w]);const b=m.length>(a?1:0);return x.jsxs("div",{className:Zn("Tabs",{"Tabs--scrollable":i},n),ref:t,children:[b&&x.jsxs("div",{className:"Tabs-nav",role:"tablist",ref:h,children:[m,x.jsx("span",{className:"Tabs-navPointer",style:l})]}),x.jsx("div",{className:"Tabs-content",children:g})]})});te.forwardRef(({children:e},t)=>x.jsx("div",{ref:t,children:e}));const GAt=te.forwardRef((e,t)=>{const{as:n="span",className:r,color:i,children:a,...o}=e;return x.jsx(n,{className:Zn("Tag",i&&`Tag--${i}`,r),ref:t,...o,children:a})}),YAt=e=>{const{item:t,onClick:n}=e,{type:r,icon:i,img:a,title:o}=t,s={name:"file",action:"https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188",showUploadList:!1,headers:{authorization:"authorization-text"},onChange(l){l.file.status!=="uploading"&&console.log(l.file,l.fileList),l.file.status==="done"?c3.success(`${l.file.name} file uploaded successfully`):l.file.status==="error"&&c3.error(`${l.file.name} file upload failed.`)}};return x.jsx("div",{className:"Toolbar-item","data-type":r,children:r==="upload"?x.jsx(e1,{...s,children:x.jsxs(qs,{className:"Toolbar-btn",onClick:l=>n(t,l),children:[x.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&x.jsx(yo,{type:i}),a&&x.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),x.jsx("span",{className:"Toolbar-btnText",children:o})]})}):x.jsxs(qs,{className:"Toolbar-btn",onClick:l=>n(t,l),children:[x.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&x.jsx(yo,{type:i}),a&&x.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),x.jsx("span",{className:"Toolbar-btnText",children:o})]})})},XAt=e=>{const{items:t,onClick:n}=e;return x.jsx("div",{className:"Toolbar",children:t.map(r=>x.jsx(YAt,{item:r,onClick:n},r.type))})};te.forwardRef((e,t)=>{const{className:n,children:r}=e;return x.jsx("div",{className:Zn("Tree",n),role:"tree",ref:t,children:r})});te.forwardRef((e,t)=>{const{title:n,content:r,link:i,children:a=[],onClick:o,onExpand:s}=e,[l,c]=d.useState(!1),u=a.length>0;function f(){u?(c(!l),s(n,!l)):o({title:n,content:r,link:i})}return x.jsxs("div",{className:"TreeNode",role:"treeitem","aria-expanded":l,ref:t,children:[x.jsxs("div",{className:"TreeNode-title",onClick:f,role:"treeitem","aria-expanded":l,tabIndex:0,children:[x.jsx("span",{className:"TreeNode-title-text",children:n}),u?x.jsx(yo,{className:"TreeNode-title-icon",type:l?"chevron-up":"chevron-down"}):null]}),u?a.map((p,h)=>x.jsx("div",{className:Zn("TreeNode-children",{"TreeNode-children-active":l}),children:x.jsx("div",{className:"TreeNode-title TreeNode-children-title",onClick:()=>o({...p,index:h}),role:"treeitem",children:x.jsx("span",{className:"TreeNode-title-text",children:p.title})})},h)):null]})});function ZAt(e){if(!e)return"";const t=Math.floor(e/3600),n=Math.floor((e-t*3600)/60),r=Math.floor(e-t*3600-n*60);let i="";return t>0&&(i+=`${t}:`),i+=`${n}:`,r<10&&(i+="0"),i+=r,i}const QAt=te.forwardRef((e,t)=>{const{className:n,src:r,cover:i,duration:a,onClick:o,onCoverLoad:s,style:l,videoRef:c,children:u,...f}=e,p=d.useRef(null),h=d.useRef(null),m=c||h,[g,v]=d.useState(!1),[y,w]=d.useState(!0);function b(E){v(!0);const $=m.current;$&&($.ended||$.paused?$.play():$.pause()),o&&o(y,E)}function C(){w(!1)}function k(){w(!0)}const S=!g&&!!i,_=S&&!!a;return d.useImperativeHandle(t,()=>({wrapperRef:p})),x.jsxs("div",{className:Zn("Video",`Video--${y?"paused":"playing"}`,n),style:l,ref:p,children:[S&&x.jsx("img",{className:"Video-cover",src:i,onLoad:s,alt:""}),_&&x.jsx("span",{className:"Video-duration",children:ZAt(+a)}),x.jsx("video",{className:"Video-video",src:r,ref:m,hidden:S,controls:!0,onPlay:C,onPause:k,onEnded:k,...f,children:u}),S&&x.jsx("button",{className:Zn("Video-playBtn",{paused:y}),type:"button",onClick:b,children:x.jsx("span",{className:"Video-playIcon"})})]})}),Swe=te.forwardRef((e,t)=>{const{fileUrl:n="",children:r}=e,[i,a]=d.useState("");return d.useEffect(()=>{if(!n){a("文件不存在或已被删除");return}try{const o=n.split("/"),s=o[o.length-1];a(s||"未知文件名")}catch(o){console.error("Failed to parse file name from URL:",o),a("文件名解析错误")}},[n]),x.jsx(Xs,{className:"FileCard",size:"xl",ref:t,children:x.jsxs(fu,{children:[x.jsx("div",{className:"FileCard-icon",children:x.jsx(yo,{type:n?"file":"file-error"})}),x.jsxs(mA,{children:[x.jsx(yA,{truncate:2,breakWord:!0,className:`FileCard-name ${n?"":"FileCard-name--error"}`,children:i}),x.jsx("div",{className:"FileCard-meta",children:r})]})]})})});Swe.displayName="FileCard";const JAt=te.forwardRef((e,t)=>{const n=HH(),{className:r,type:i,img:a,name:o,desc:s,tags:l=[],locale:c,currency:u,price:f,count:p,unit:h,action:m,elderMode:g,children:v,originalPrice:y,meta:w,status:b,...C}=e,k=g||n.elderMode,S=i==="order"&&!k,_=i!=="order"&&!k,E={currency:u,locale:c},$=f!=null&&x.jsx(Lte,{price:f,...E}),M=x.jsxs("div",{className:"Goods-countUnit",children:[p&&x.jsxs("span",{className:"Goods-count",children:["×",p]}),h&&x.jsx("span",{className:"Goods-unit",children:h})]});return x.jsxs(fu,{className:Zn("Goods",r),"data-type":i,"data-elder-mode":k,ref:t,...C,children:[a&&x.jsx("img",{className:"Goods-img",src:a,alt:o}),x.jsxs(mA,{className:"Goods-main",children:[_&&m&&x.jsx(xu,{className:"Goods-buyBtn",icon:"cart",...m}),x.jsx(yA,{as:"h4",truncate:S?2:!0,className:"Goods-name",children:o}),x.jsx(yA,{className:"Goods-desc",truncate:k,children:s}),k?x.jsxs(fu,{alignItems:"center",justifyContent:"space-between",children:[$,m&&x.jsx(qs,{size:"sm",...m})]}):x.jsx("div",{className:"Goods-tags",children:l.map(P=>x.jsx(GAt,{color:"primary",children:P.name},P.name))}),_&&x.jsxs(fu,{alignItems:"flex-end",children:[x.jsxs(mA,{children:[$,y&&x.jsx(Lte,{price:y,original:!0,...E}),w&&x.jsx("span",{className:"Goods-meta",children:w})]}),M]}),v]}),S&&x.jsxs("div",{className:"Goods-aside",children:[$,M,x.jsx("span",{className:"Goods-status",children:b}),m&&x.jsx(qs,{className:"Goods-detailBtn",...m})]})]})}),eDt=({count:e,onClick:t,onDidMount:n})=>{const{trans:r}=h1("BackBottom");let i=r("bottom");return e&&(i=r(e===1?"newMsgOne":"newMsgOther").replace("{n}",e)),d.useEffect(()=>{n&&n()},[n]),x.jsx("div",{className:"BackBottom",children:x.jsxs(qs,{className:"slide-in-right-item",onClick:t,children:[i,x.jsx(yo,{type:"chevron-double-down"})]})})};function tDt(e,t=300){let n=!0;return(...r)=>{n&&(n=!1,e(...r),setTimeout(()=>{n=!0},t))}}const Hte=m1("passiveListener")?{passive:!0}:!1;function sP(e,t){const n=Math.max(e.offsetHeight,600);return gwe(e){const{messages:n,isTyping:r,loadMoreText:i,onRefresh:a,onScroll:o,renderBeforeMessageList:s,renderMessageContent:l,onBackBottomShow:c,onBackBottomClick:u,fromTicketTab:f,chatThread:p}=e,[h,m]=d.useState(!1),[g,v]=d.useState(0),y=d.useRef(h),w=d.useRef(g),b=d.useRef(null),C=d.useRef(null),k=n[n.length-1],S=ja(O=>O.currentTicket),_=Na(O=>O.memberInfo),E=()=>{v(0),m(!1)},$=d.useCallback(O=>{C.current&&(!y.current||O&&O.force)&&(C.current.scrollToEnd(O),y.current&&E())},[]),M=()=>{$({animated:!1,force:!0}),u&&u()},P=d.useRef(tDt(O=>{sP(O,3)?w.current?sP(O,.5)&&E():m(!1):m(!0)})),R=O=>{P.current(O.target),o&&o(O)};return d.useEffect(()=>{w.current=g},[g]),d.useEffect(()=>{y.current=h},[h]),d.useEffect(()=>{const O=C.current,j=O&&O.wrapperRef.current;if(!(!j||!k||k.position==="pop"))if(k.position==="right")$({force:!0});else if(sP(j,2)){const I=!!j.scrollTop;$({animated:I,force:!0})}else v(I=>I+1),m(!0)},[k,$]),d.useEffect(()=>{$()},[r,$]),d.useEffect(()=>{const O=b.current;let j=!1,I=0;function A(){j=!1,I=0}function N(K){const{activeElement:L}=document;L&&L.nodeName==="TEXTAREA"&&(j=!0,I=K.touches[0].clientY)}function F(K){j&&Math.abs(K.touches[0].clientY-I)>20&&(document.activeElement.blur(),A())}return O==null||O.addEventListener("touchstart",N,Hte),O==null||O.addEventListener("touchmove",F,Hte),O==null||O.addEventListener("touchend",A),O==null||O.addEventListener("touchcancel",A),()=>{O==null||O.removeEventListener("touchstart",N),O==null||O.removeEventListener("touchmove",F),O==null||O.removeEventListener("touchend",A),O==null||O.removeEventListener("touchcancel",A)}},[]),d.useImperativeHandle(t,()=>({ref:b,scrollToEnd:$}),[$]),f&&!Ja(f,S,p,_)?x.jsx(za,{}):x.jsxs("div",{className:"MessageContainer",ref:b,tabIndex:-1,children:[s&&s(),x.jsx(FAt,{onRefresh:a,onScroll:R,loadMoreText:i,ref:C,children:x.jsxs("div",{className:"MessageList",children:[n.map(O=>d.createElement(Ate,{...O,renderMessageContent:l,key:O._id})),r&&x.jsx(Ate,{type:"typing",_id:"typing"})]})}),h&&x.jsx(eDt,{count:g,onClick:M,onDidMount:c})]})}),Cwe=m1("passiveListener"),rDt=Cwe?{passive:!0}:!1,iDt=Cwe?{passive:!1}:!1,Ute=80,aDt={inited:"hold2talk",recording:"release2send",willCancel:"release2send"};let t2=0,lP=0;const oDt=te.forwardRef((e,t)=>{const{volume:n,onStart:r,onEnd:i,onCancel:a}=e,[o,s]=d.useState("inited"),l=d.useRef(null),{trans:c}=h1("Recorder"),u=d.useCallback(()=>{const h=Date.now()-t2;i&&i({duration:h})},[i]);d.useImperativeHandle(t,()=>({stop(){s("inited"),u(),t2=0}})),d.useEffect(()=>{const h=l.current;function m(y){y.cancelable&&y.preventDefault(),lP=y.touches[0].pageY,t2=Date.now(),s("recording"),r&&r()}function g(y){if(!t2)return;const w=y.touches[0].pageY,b=lP-w>Ute;s(b?"willCancel":"recording")}function v(y){if(!t2)return;const w=y.changedTouches[0].pageY,b=lP-w{h.removeEventListener("touchstart",m),h.removeEventListener("touchmove",g),h.removeEventListener("touchend",v),h.removeEventListener("touchcancel",v)}},[u,a,r]);const f=o==="willCancel",p={transform:`scale(${(n||1)/100+1})`};return x.jsxs("div",{className:Zn("Recorder",{"Recorder--cancel":f}),ref:l,children:[o!=="inited"&&x.jsxs(fu,{className:"RecorderToast",direction:"column",center:!0,children:[x.jsxs("div",{className:"RecorderToast-waves",hidden:o!=="recording",style:p,children:[x.jsx(yo,{className:"RecorderToast-wave-1",type:"hexagon"}),x.jsx(yo,{className:"RecorderToast-wave-2",type:"hexagon"}),x.jsx(yo,{className:"RecorderToast-wave-3",type:"hexagon"})]}),x.jsx(yo,{className:"RecorderToast-icon",type:f?"cancel":"mic"}),x.jsx("span",{children:c(f?"release2cancel":"releaseOrSwipe")})]}),x.jsx("div",{className:"Recorder-btn",role:"button","aria-label":c("hold2talk"),children:x.jsx("span",{children:c(aDt[o])})})]})}),sDt=({onClickOutside:e,children:t})=>x.jsx(mAt,{onClick:e,children:t});function lDt(e){const t=d.useRef(!1);d.useEffect(()=>{function n(){e(),t.current=!1}function r(){t.current||(t.current=!0,window.requestAnimationFrame?window.requestAnimationFrame(n):setTimeout(n,66))}return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[e])}const cDt=e=>{const{className:t,active:n,target:r,children:i,onClose:a}=e,o=qNt(a,"mousedown"),{didMount:s,isShow:l}=dwe({active:n,ref:o}),[c,u]=d.useState({}),f=d.useCallback(()=>{if(!o.current)return;const p=r.getBoundingClientRect(),h=o.current.getBoundingClientRect();u({top:`${p.top-h.height}px`,left:`${p.left}px`})},[r,o]);return d.useEffect(()=>{o.current&&(o.current.focus(),f())},[s,f,o]),lDt(f),s?Va.createPortal(x.jsxs("div",{className:Zn("Popover",t,{active:l}),ref:o,style:c,children:[x.jsx("div",{className:"Popover-body",children:i}),x.jsx("svg",{className:"Popover-arrow",viewBox:"0 0 9 5",children:x.jsx("polygon",{points:"0,0 5,5, 9,0"})})]}),document.body):null},w_=e=>x.jsx("div",{className:"Composer-actions","data-action-icon":e.icon,children:x.jsx(xu,{size:"lg",...e})}),uDt=e=>{const{item:t,onClick:n}=e;return x.jsx(w_,{icon:t.icon,img:t.img,"data-icon":t.icon,"data-tooltip":t.title||null,"aria-label":t.title,onClick:n})};function Zr(){const e=jn();return{translateString:r=>r==null?r:r&&r.startsWith(Iw)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(Iw)?jk(e.formatMessage({id:r}),10):jk(r,8)}}const _we=e=>{const{file:t,onCancel:n,onSend:r}=e,[i,a]=d.useState(""),[o,s]=d.useState(""),{translateString:l}=Zr();return d.useEffect(()=>{const c=new FileReader;c.onload=p=>{p.target&&a(p.target.result)},c.readAsDataURL(t);const u=t.name.toLowerCase().split(".").pop();console.log("SendConfirm file:",u,t.size);let f="unknown";u==="jpg"||u==="jpeg"||u==="png"||u==="bmp"||u==="gif"?f=Sl:u==="mp4"||u==="avi"||u==="mov"?f=sg:u==="mp3"||u==="wav"?f=Fw:f=cd,s(f)},[t]),x.jsx(RAt,{className:"SendConfirm",title:l("i18n.preview.title"),active:!!i,vertical:!1,actions:[{label:l("i18n.cancel"),onClick:n},{label:l("i18n.send"),color:"primary",onClick:r}],children:x.jsxs(fu,{className:"SendConfirm-inner",center:!0,children:[o===Sl&&x.jsx(x.Fragment,{children:x.jsx("img",{src:i,alt:""})}),o===sg&&x.jsx("div",{style:{width:"80%",height:"80%"},children:x.jsx("video",{controls:!0,style:{width:"100%",height:"100%"},children:x.jsx("source",{src:i,type:"video/mp4"})})}),o===Fw&&x.jsx(x.Fragment,{children:x.jsx("audio",{controls:!0,children:x.jsx("source",{src:i,type:"audio/mp3"})})}),o===cd&&x.jsx(x.Fragment,{children:x.jsxs("div",{className:"SendConfirm-file",children:[x.jsx("i",{className:"iconfont icon-fujian"}),x.jsx("span",{children:t.name})]})})]})})},$3=navigator.userAgent;function dDt(){return/iPad|iPhone|iPod/.test($3)}function fDt(){return/^((?!chrome|android|crios|fxios).)*safari/i.test($3)}function pDt(){return $3.includes("Safari/")||/OS 11_[0-3]\D/.test($3)}function kwe(){const e=$3.match(/OS (\d+)_/);return e?+e[1]:0}const Ewe=dDt();function hDt(){if(Ewe){if(pDt())return 0;if(kwe()<13)return 1}return 2}function mDt(e,t){const n=hDt();let r;const i=t||e,a=()=>{n!==0&&(n===1?document.body.scrollTop=document.body.scrollHeight:i.scrollIntoView(!1))};e.addEventListener("focus",()=>{setTimeout(a,300),r=setTimeout(a,1e3)}),e.addEventListener("blur",()=>{clearTimeout(r),n&&Ewe&&setTimeout(()=>{document.body.scrollIntoView()})})}function gDt(e,t){const{items:n}=e.clipboardData;if(n&&n.length)for(let r=0;r{const[s,l]=d.useState(null),{value:c,placeholder:u,onFocus:f,onBlur:p,onKeyDown:h,onChange:m}=o,g=ja(M=>M.currentTicket),v=Na(M=>M.memberInfo),y=d.useCallback(M=>{gDt(M,l)},[]),w=d.useCallback(()=>{l(null)},[]),b=d.useCallback(()=>{n&&s&&Promise.resolve(n(s)).then(()=>{l(null)})},[n,s]);d.useEffect(()=>{if(vDt&&e.current){const M=document.querySelector(".Composer");mDt(e.current,M)}},[e]);const[C,k]=d.useState("@"),S=(M,P)=>{console.log("onMentionsSearch:",P),k(P)},_=M=>{m(M,null)},E=M=>{console.log("onMetionSelect",M)},$=M=>{h(M)};return x.jsxs("div",{className:Zn({"S--invisible":t}),children:[x.jsx(j4,{className:"Composer-input",rows:1,value:c,autoSize:!0,allowClear:!0,placeholder:u,prefix:["@","/"],onSearch:S,enterKeyHint:"send",onFocus:f,onBlur:p,onKeyDown:$,onChange:_,onSelect:E,onPaste:n?y:void 0,options:r[C],disabled:!Ja(i,g,a,v),ref:e}),s&&x.jsx(_we,{file:s,onCancel:w,onSend:b})]})},Vte=({disabled:e,onClick:t})=>{const{trans:n}=h1("Composer");return x.jsx("div",{className:"Composer-actions",children:x.jsx(qs,{className:"Composer-sendBtn",disabled:e,onMouseDown:t,color:"primary",children:n("send")})})},qte="S--focusing",yDt=te.forwardRef((e,t)=>{const{text:n="",textOnce:r,inputType:i="text",wideBreakpoint:a,placeholder:o="请输入...",recorder:s={},onInputTypeChange:l,onFocus:c,onBlur:u,onChange:f,onSend:p,onImageSend:h,onAccessoryToggle:m,toolbar:g=[],onToolbarClick:v,rightAction:y,inputOptions:w,metionOptions:b,fromTicketTab:C=!1,chatThread:k}=e,[S,_]=d.useState(n),[E,$]=d.useState(""),[M,P]=d.useState(o),[R,O]=d.useState(i||"text"),[j,I]=d.useState(!1),[A,N]=d.useState(""),F=d.useRef(null),K=d.useRef(!1),L=d.useRef(),V=d.useRef(),B=d.useRef(!1),[U,Y]=d.useState(!1),ee=ja(we=>we.currentTicket),ie=Na(we=>we.memberInfo);d.useEffect(()=>{const we=a&&window.matchMedia?window.matchMedia(`(min-width: ${a})`):!1;function se(ye){Y(ye.matches)}return Y(we&&we.matches),we&&we.addListener(se),()=>{we&&we.removeListener(se)}},[a]),d.useEffect(()=>{aw("S--wide",U),U||N("")},[U]),d.useEffect(()=>{B.current&&m&&m(j)},[j,m]),d.useEffect(()=>{r?($(r),P(r)):($(""),P(o))},[o,r]),d.useEffect(()=>{B.current=!0},[]),d.useImperativeHandle(t,()=>({setText:_}));const Z=d.useCallback(()=>{const we=R==="voice",se=we?"text":"voice";if(O(se),we){const ye=F.current;ye.focus(),ye.selectionStart=ye.selectionEnd=ye.value.length}l&&l(se)},[R,l]),X=d.useCallback(we=>{clearTimeout(L.current),aw(qte,!0),K.current=!0,c&&c(we)},[c]),ae=d.useCallback(we=>{L.current=setTimeout(()=>{aw(qte,!1),K.current=!1},0),u&&u(we)},[u]),oe=d.useCallback(()=>{S?(p("text",S),_("")):E&&p("text",E),E&&($(""),P(o)),K.current&&F.current.focus()},[o,p,S,E]),le=d.useCallback(we=>{!we.shiftKey&&we.keyCode===13&&(oe(),we.preventDefault())},[oe]),ce=d.useCallback((we,se)=>{_(we),f&&f(we,se)},[f]),pe=d.useCallback(we=>{oe(),we.preventDefault()},[oe]),me=d.useCallback(()=>{I(!j)},[j]),re=d.useCallback(()=>{setTimeout(()=>{I(!1),N("")})},[]),fe=d.useCallback((we,se)=>{v&&v(we,se),we.render&&(V.current=se.currentTarget,N(we.render))},[v]),ve=d.useCallback(()=>{N("")},[]),$e=R==="text",Ce=$e?"volume-circle":"keyboard-circle",be=g.length>0,Se={...w,value:S,inputRef:F,placeholder:M,onFocus:X,onBlur:ae,onKeyDown:le,onChange:ce,onImageSend:h,metionOptions:b};return U?C&&!Ja(C,ee,k,ie)?x.jsx(x.Fragment,{}):x.jsxs("div",{className:"Composer Composer--lg",children:[be&&g.map(we=>x.jsx(uDt,{item:we,onClick:se=>fe(we,se)},we.type)),A&&x.jsx(cDt,{active:!!A,target:V.current,onClose:ve,children:A}),x.jsx("div",{className:"Composer-inputWrap",children:x.jsx(Wte,{invisible:!1,...Se,disabled:!Ja(C,ee,k,ie),fromTicketTab:C,chatThread:k})}),x.jsx(Vte,{onClick:pe,disabled:!S||!Ja(C,ee,k,ie)})]}):C&&!Ja(C,ee,k,ie)?x.jsx(x.Fragment,{}):x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"Composer",children:[s.canRecord&&x.jsx(w_,{className:"Composer-inputTypeBtn","data-icon":Ce,icon:Ce,onClick:Z,"aria-label":$e?"切换到语音输入":"切换到键盘输入"}),x.jsxs("div",{className:"Composer-inputWrap",children:[x.jsx(Wte,{invisible:!$e,...Se,disabled:!W2(C,ee),fromTicketTab:C,chatThread:k}),!$e&&x.jsx(oDt,{...s})]}),!S&&y&&x.jsx(w_,{...y}),be&&x.jsx(w_,{className:Zn("Composer-toggleBtn",{active:j}),icon:"plus-circle",onClick:me,"aria-label":j?"关闭工具栏":"展开工具栏"}),(S||E)&&x.jsx(Vte,{onClick:pe,disabled:!1})]}),j&&x.jsx(sDt,{onClickOutside:re,children:A||x.jsx(XAt,{items:g,onClick:fe})})]})}),{TextArea:bDt}=Ur,$we=te.forwardRef((e,t)=>{const{wideBreakpoint:n,locale:r="zh-CN",locales:i,elderMode:a,navbar:o,renderNavbar:s,loadMoreText:l,renderBeforeMessageList:c,messagesRef:u,onRefresh:f,onScroll:p,messages:h=[],isTyping:m,showTransition:g,translationValue:v,translationPlaceholder:y,translationOnChange:w,renderMessageContent:b,onBackBottomShow:C,onBackBottomClick:k,quickReplies:S=[],quickRepliesVisible:_,onQuickReplyClick:E=()=>{},onQuickReplyScroll:$,renderQuickReplies:M,text:P,textOnce:R,placeholder:O,onInputFocus:j,onInputChange:I,onInputBlur:A,onSend:N,onImageSend:F,inputOptions:K,composerRef:L,inputType:V,onInputTypeChange:B,recorder:U,toolbar:Y,onToolbarClick:ee,onAccessoryToggle:ie,rightAction:Z,metionOptions:X,Composer:ae=yDt,fromTicketTab:oe=!1,chatThread:le}=e,ce=ja(re=>re.currentTicket),pe=Na(re=>re.memberInfo);function me(re){u&&u.current&&u.current.scrollToEnd({animated:!1,force:!0}),j&&j(re)}return d.useEffect(()=>{const re=document.documentElement;fDt()&&(re.dataset.safari="");const fe=kwe();fe&&fe<11&&(re.dataset.oldIos="")},[]),x.jsx(aAt,{locale:r,locales:i,elderMode:a,children:x.jsxs("div",{className:"ChatApp","data-elder-mode":a,ref:t,children:[s?s():o&&x.jsx(jAt,{...o}),(Ja(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(nDt,{ref:u,loadMoreText:l,messages:h,isTyping:m,renderBeforeMessageList:c,renderMessageContent:b,onRefresh:f,onScroll:p,onBackBottomShow:C,onBackBottomClick:k,fromTicketTab:oe,chatThread:le}),x.jsxs("div",{className:"ChatFooter",children:[M?M():(Ja(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(UAt,{items:S,visible:_,onClick:E,onScroll:$,fromTicketTab:oe,chatThread:le}),g&&x.jsx("div",{style:{float:"left",marginLeft:10,marginTop:5,minWidth:200},children:x.jsx(bDt,{value:v,onChange:re=>w(re.target.value),rows:3,placeholder:y})}),(Ja(oe,ce,le,pe)||W2(oe,ce))&&x.jsx(ae,{wideBreakpoint:n,ref:L,inputType:V,text:P,textOnce:R,inputOptions:K,placeholder:O,onAccessoryToggle:ie,recorder:U,toolbar:Y,onToolbarClick:ee,onInputTypeChange:B,onFocus:me,onChange:I,onBlur:A,onSend:N,onImageSend:F,rightAction:Z,metionOptions:X,fromTicketTab:oe,chatThread:le})]})]})})});var wDt=typeof Element<"u",xDt=typeof Map=="function",SDt=typeof Set=="function",CDt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function x_(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!x_(e[r],t[r]))return!1;return!0}var a;if(xDt&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!x_(r.value[1],t.get(r.value[0])))return!1;return!0}if(SDt&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(CDt&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(wDt&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!x_(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var _Dt=function(t,n){try{return x_(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const kDt=ei(_Dt);var EDt=function(e,t,n,r,i,a,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},$Dt=EDt;const Kte=ei($Dt);var MDt=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Mwe||{}),cP={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Gte=Object.values(Mwe),VH={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},PDt=Object.entries(VH).reduce((e,[t,n])=>(e[n]=t,e),{}),ru="data-rh",Fv={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Lv=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},ODt=e=>{let t=Lv(e,"title");const n=Lv(e,Fv.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Lv(e,Fv.DEFAULT_TITLE);return t||r||void 0},RDt=e=>Lv(e,Fv.ON_CHANGE_CLIENT_STATE)||(()=>{}),uP=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),IDt=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let a=0;aconsole&&typeof console.warn=="function"&&console.warn(e),n2=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&jDt(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(l=>{let c;const u=Object.keys(l);for(let p=0;pi.push(l));const s=Object.keys(o);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:IDt(["href"],e),bodyAttributes:uP("bodyAttributes",e),defer:Lv(e,Fv.DEFER),encode:Lv(e,Fv.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:uP("htmlAttributes",e),linkTags:n2("link",["rel","href"],e),metaTags:n2("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:n2("noscript",["innerHTML"],e),onChangeClientState:RDt(e),scriptTags:n2("script",["src","innerHTML"],e),styleTags:n2("style",["cssText"],e),title:ODt(e),titleAttributes:uP("titleAttributes",e),prioritizeSeoTags:NDt(e,Fv.PRIORITIZE_SEO_TAGS)}),Twe=e=>Array.isArray(e)?e.join(""):e,DDt=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(DDt(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Yte=(e,t)=>({...e,[t]:void 0}),FDt=["noscript","script","style"],bA=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Pwe=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),LDt=(e,t,n,r)=>{const i=Pwe(n),a=Twe(t);return i?`<${e} ${ru}="true" ${i}>${bA(a,r)}`:`<${e} ${ru}="true">${bA(a,r)}`},BDt=(e,t,n=!0)=>t.reduce((r,i)=>{const a=i,o=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const f=typeof a[u]>"u"?u:`${u}="${bA(a[u],n)}"`;return c?`${c} ${f}`:f},""),s=a.innerHTML||a.cssText||"",l=FDt.indexOf(e)===-1;return`${r}<${e} ${ru}="true" ${o}${l?"/>":`>${s}`}`},""),Owe=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=VH[r];return n[i||r]=e[r],n},t),zDt=(e,t,n)=>{const r={key:t,[ru]:!0},i=Owe(n,r);return[te.createElement("title",i,t)]},S_=(e,t)=>t.map((n,r)=>{const i={key:r,[ru]:!0};return Object.keys(n).forEach(a=>{const s=VH[a]||a;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[a]}),te.createElement(e,i)}),Jl=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>zDt(e,t.title,t.titleAttributes),toString:()=>LDt(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Owe(t),toString:()=>Pwe(t)};default:return{toComponent:()=>S_(e,t),toString:()=>BDt(e,t,n)}}},HDt=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=dP(e,cP.meta),a=dP(t,cP.link),o=dP(n,cP.script);return{priorityMethods:{toComponent:()=>[...S_("meta",i.priority),...S_("link",a.priority),...S_("script",o.priority)],toString:()=>`${Jl("meta",i.priority,r)} ${Jl("link",a.priority,r)} ${Jl("script",o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},UDt=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:f,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:f,scriptTags:p}=HDt(e)),{priority:h,base:Jl("base",t,r),bodyAttributes:Jl("bodyAttributes",n,r),htmlAttributes:Jl("htmlAttributes",i,r),link:Jl("link",u,r),meta:Jl("meta",f,r),noscript:Jl("noscript",a,r),script:Jl("script",p,r),style:Jl("style",o,r),title:Jl("title",{title:s,titleAttributes:l},r)}},wA=UDt,JS=[],Rwe=!!(typeof window<"u"&&window.document&&window.document.createElement),xA=class{constructor(e,t){Gr(this,"instances",[]);Gr(this,"canUseDOM",Rwe);Gr(this,"context");Gr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?JS:this.instances,add:e=>{(this.canUseDOM?JS:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?JS:this.instances).indexOf(e);(this.canUseDOM?JS:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=wA({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},WDt={},Iwe=te.createContext(WDt),jm,jwe=(jm=class extends d.Component{constructor(n){super(n);Gr(this,"helmetData");this.helmetData=new xA(this.props.context||{},jm.canUseDOM)}render(){return te.createElement(Iwe.Provider,{value:this.helmetData.value},this.props.children)}},Gr(jm,"canUseDOM",Rwe),jm),W1=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${ru}]`),i=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,f=typeof s[u]>"u"?"":s[u];l.setAttribute(c,f)}l.setAttribute(ru,"true"),i.some((c,u)=>(o=u,l.isEqualNode(c)))?i.splice(o,1):a.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),a.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:a}},SA=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(ru),i=r?r.split(","):[],a=[...i],o=Object.keys(t);for(const s of o){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=a.indexOf(s);c!==-1&&a.splice(c,1)}for(let s=a.length-1;s>=0;s-=1)n.removeAttribute(a[s]);i.length===a.length?n.removeAttribute(ru):n.getAttribute(ru)!==o.join(",")&&n.setAttribute(ru,o.join(","))},VDt=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Twe(e)),SA("title",t)},Xte=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:p}=e;SA("body",r),SA("html",i),VDt(f,p);const h={baseTag:W1("base",n),linkTags:W1("link",a),metaTags:W1("meta",o),noscriptTags:W1("noscript",s),scriptTags:W1("script",c),styleTags:W1("style",u)},m={},g={};Object.keys(h).forEach(v=>{const{newTags:y,oldTags:w}=h[v];y.length&&(m[v]=y),w.length&&(g[v]=h[v].oldTags)}),t&&t(),l(e,m,g)},r2=null,qDt=e=>{r2&&cancelAnimationFrame(r2),e.defer?r2=requestAnimationFrame(()=>{Xte(e,()=>{r2=null})}):(Xte(e),r2=null)},KDt=qDt,Zte=class extends d.Component{constructor(){super(...arguments);Gr(this,"rendered",!1)}shouldComponentUpdate(t){return!TDt(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=ADt(t.get().map(a=>{const o={...a.props};return delete o.context,o}));jwe.canUseDOM?KDt(i):wA&&(r=wA(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},VP,qH=(VP=class extends d.Component{shouldComponentUpdate(e){return!kDt(Yte(this.props,"helmetData"),Yte(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Kte(Gte.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Gte.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Kte(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return te.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...a}=r.props,o=Object.keys(a).reduce((l,c)=>(l[PDt[c]||c]=a[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof xA)){const i=r;r=new xA(i.context,!0),delete n.helmetData}return r?te.createElement(Zte,{...n,context:r.value}):te.createElement(Iwe.Consumer,null,i=>te.createElement(Zte,{...n,context:i}))}},Gr(VP,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),VP);function Nwe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var GDt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,YDt=Nwe(function(e){return GDt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),XDt=!1;function ZDt(e){if(e.sheet)return e.sheet;for(var t=0;t0?go(tb,--Ks):0,Z0--,Ra===10&&(Z0=1,Z$--),Ra}function Pl(){return Ra=Ks2||T3(Ra)>3?"":" "}function uFt(e,t){for(;--t&&Pl()&&!(Ra<48||Ra>102||Ra>57&&Ra<65||Ra>70&&Ra<97););return sx(e,C_()+(t<6&&fd()==32&&Pl()==32))}function _A(e){for(;Pl();)switch(Ra){case e:return Ks;case 34:case 39:e!==34&&e!==39&&_A(Ra);break;case 40:e===41&&_A(e);break;case 92:Pl();break}return Ks}function dFt(e,t){for(;Pl()&&e+Ra!==57;)if(e+Ra===84&&fd()===47)break;return"/*"+sx(t,Ks-1)+"*"+X$(e===47?e:Pl())}function fFt(e){for(;!T3(fd());)Pl();return sx(e,Ks)}function pFt(e){return zwe(k_("",null,null,null,[""],e=Bwe(e),0,[0],e))}function k_(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,p=0,h=0,m=0,g=1,v=1,y=1,w=0,b="",C=i,k=a,S=r,_=b;v;)switch(m=w,w=Pl()){case 40:if(m!=108&&go(_,f-1)==58){CA(_+=ai(__(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:_+=__(w);break;case 9:case 10:case 13:case 32:_+=cFt(m);break;case 92:_+=uFt(C_()-1,7);continue;case 47:switch(fd()){case 42:case 47:eC(hFt(dFt(Pl(),C_()),t,n),l);break;default:_+="/"}break;case 123*g:s[c++]=Xu(_)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+u:y==-1&&(_=ai(_,/\f/g,"")),h>0&&Xu(_)-f&&eC(h>32?Jte(_+";",r,n,f-1):Jte(ai(_," ","")+";",r,n,f-2),l);break;case 59:_+=";";default:if(eC(S=Qte(_,t,n,c,u,i,s,b,C=[],k=[],f),a),w===123)if(u===0)k_(_,t,S,S,C,a,f,s,k);else switch(p===99&&go(_,3)===110?100:p){case 100:case 108:case 109:case 115:k_(e,S,S,r&&eC(Qte(e,S,S,0,0,i,s,b,i,C=[],f),k),i,k,f,s,r?C:k);break;default:k_(_,S,S,S,[""],k,0,s,k)}}c=u=h=0,g=y=1,b=_="",f=o;break;case 58:f=1+Xu(_),h=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&lFt()==125)continue}switch(_+=X$(w),w*g){case 38:y=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Xu(_)-1)*y,y=1;break;case 64:fd()===45&&(_+=__(Pl())),p=fd(),u=f=Xu(b=_+=fFt(C_())),w++;break;case 45:m===45&&Xu(_)==2&&(g=0)}}return a}function Qte(e,t,n,r,i,a,o,s,l,c,u){for(var f=i-1,p=i===0?a:[""],h=YH(p),m=0,g=0,v=0;m0?p[y]+" "+w:ai(w,/&\f/g,p[y])))&&(l[v++]=b);return Q$(e,t,n,i===0?KH:s,l,c,u)}function hFt(e,t,n){return Q$(e,t,n,Awe,X$(sFt()),M3(e,2,-2),0)}function Jte(e,t,n,r){return Q$(e,t,n,GH,M3(e,0,r),M3(e,r+1,-1),r)}function Bv(e,t){for(var n="",r=YH(e),i=0;i6)switch(go(e,t+1)){case 109:if(go(e,t+4)!==45)break;case 102:return ai(e,/(.+:)(.+)-([^]+)/,"$1"+ii+"$2-$3$1"+i5+(go(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~CA(e,"stretch")?Hwe(ai(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(go(e,t+1)!==115)break;case 6444:switch(go(e,Xu(e)-3-(~CA(e,"!important")&&10))){case 107:return ai(e,":",":"+ii)+e;case 101:return ai(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ii+(go(e,14)===45?"inline-":"")+"box$3$1"+ii+"$2$3$1"+jo+"$2box$3")+e}break;case 5936:switch(go(e,t+11)){case 114:return ii+e+jo+ai(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ii+e+jo+ai(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ii+e+jo+ai(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ii+e+jo+e+e}return e}var CFt=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case GH:t.return=Hwe(t.value,t.length);break;case Dwe:return Bv([i2(t,{value:ai(t.value,"@","@"+ii)})],i);case KH:if(t.length)return oFt(t.props,function(a){switch(aFt(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bv([i2(t,{props:[ai(a,/:(read-\w+)/,":"+i5+"$1")]})],i);case"::placeholder":return Bv([i2(t,{props:[ai(a,/:(plac\w+)/,":"+ii+"input-$1")]}),i2(t,{props:[ai(a,/:(plac\w+)/,":"+i5+"$1")]}),i2(t,{props:[ai(a,/:(plac\w+)/,jo+"input-$1")]})],i)}return""})}},_Ft=[CFt],kFt=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||_Ft,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var PFt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},OFt=!1,RFt=/[A-Z]|^ms/g,IFt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wwe=function(t){return t.charCodeAt(1)===45},tne=function(t){return t!=null&&typeof t!="boolean"},fP=Nwe(function(e){return Wwe(e)?e:e.replace(RFt,"-$&").toLowerCase()}),nne=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(IFt,function(r,i,a){return Zu={name:i,styles:a,next:Zu},i})}return PFt[t]!==1&&!Wwe(t)&&typeof n=="number"&&n!==0?n+"px":n},jFt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function P3(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Zu={name:i.name,styles:i.styles,next:Zu},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Zu={name:o.name,styles:o.styles,next:Zu},o=o.next;var s=a.styles+";";return s}return NFt(e,t,n)}case"function":{if(e!==void 0){var l=Zu,c=n(e);return Zu=l,P3(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function NFt(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?HFt:UFt},ane=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},WFt=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Uwe(n,r,i),LFt(function(){return MFt(n,r,i)}),null},VFt=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=ane(t,n,r),l=s||ine(i),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,h=1;h({messageList:[],addMessageProtobuf(n){var i;const r={...n,extra:JSON.parse(n==null?void 0:n.extra),topic:(i=n.thread)==null?void 0:i.topic};t().addMessage(r)},addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===$f){const a=t().messageList.findIndex(o=>o.type===$f&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===m0&&i.type===m0){const a=t().messageList.findIndex(s=>s.uid===i.uid),o=[...t().messageList];o[a]=n,e({messageList:o})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let a=0;al.uid===o.uid)||r.unshift(o)}const i=[...r,...t().messageList].sort((a,o)=>{const s=en(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=en(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);if(i!==-1){const a=[...t().messageList];a[i].status=r,e({messageList:a})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=G3,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const a=en(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),o=en(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-o});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:j6e})));function QFt(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const JFt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eLt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tLt={};function one(e,t){return(tLt.jsx?eLt:JFt).test(e)}const nLt=/[ \t\n\f\r]/g;function rLt(e){return typeof e=="object"?e.type==="text"?sne(e.value):!1:sne(e)}function sne(e){return e.replace(nLt,"")===""}class lx{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}lx.prototype.property={};lx.prototype.normal={};lx.prototype.space=null;function Kwe(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&lLt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(cne,fLt);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!cne.test(a)){let o=a.replace(cLt,dLt);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ZH}return new i(r,t)}function dLt(e){return"-"+e.toLowerCase()}function fLt(e){return e.charAt(1).toUpperCase()}const pLt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hLt=Kwe([Xwe,Ywe,Jwe,e3e,oLt],"html"),QH=Kwe([Xwe,Ywe,Jwe,e3e,sLt],"svg");function mLt(e){return e.join(" ").trim()}var t3e={},une=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,gLt=/\n/g,vLt=/^\s*/,yLt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,bLt=/^:\s*/,wLt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xLt=/^[;\s]*/,SLt=/^\s+|\s+$/g,CLt=` +`,dne="/",fne="*",um="",_Lt="comment",kLt="declaration",ELt=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var g=m.match(gLt);g&&(n+=g.length);var v=m.lastIndexOf(CLt);r=~v?m.length-v:r+m.length}function a(){var m={line:n,column:r};return function(g){return g.position=new o(m),c(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(m){var g=m.exec(e);if(g){var v=g[0];return i(v),e=e.slice(v.length),g}}function c(){l(vLt)}function u(m){var g;for(m=m||[];g=f();)g!==!1&&m.push(g);return m}function f(){var m=a();if(!(dne!=e.charAt(0)||fne!=e.charAt(1))){for(var g=2;um!=e.charAt(g)&&(fne!=e.charAt(g)||dne!=e.charAt(g+1));)++g;if(g+=2,um===e.charAt(g-1))return s("End of comment missing");var v=e.slice(2,g-2);return r+=2,i(v),e=e.slice(g),r+=2,m({type:_Lt,comment:v})}}function p(){var m=a(),g=l(yLt);if(g){if(f(),!l(bLt))return s("property missing ':'");var v=l(wLt),y=m({type:kLt,property:pne(g[0].replace(une,um)),value:v?pne(v[0].replace(une,um)):um});return l(xLt),y}}function h(){var m=[];u(m);for(var g;g=p();)g!==!1&&(m.push(g),u(m));return m}return c(),h()};function pne(e){return e?e.replace(SLt,um):um}var $Lt=oi&&oi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t3e,"__esModule",{value:!0});var hne=t3e.default=TLt,MLt=$Lt(ELt);function TLt(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,MLt.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}const PLt=hne.default||hne,n3e=r3e("end"),JH=r3e("start");function r3e(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function OLt(e){const t=JH(e),n=n3e(e);if(t&&n)return{start:t,end:n}}function ow(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?mne(e.position):"start"in e||"end"in e?mne(e):"line"in e||"column"in e?$A(e):""}function $A(e){return gne(e&&e.line)+":"+gne(e&&e.column)}function mne(e){return $A(e&&e.start)+"-"+$A(e&&e.end)}function gne(e){return e&&typeof e=="number"?e:1}class is extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=ow(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}is.prototype.file="";is.prototype.name="";is.prototype.reason="";is.prototype.message="";is.prototype.stack="";is.prototype.column=void 0;is.prototype.line=void 0;is.prototype.ancestors=void 0;is.prototype.cause=void 0;is.prototype.fatal=void 0;is.prototype.place=void 0;is.prototype.ruleId=void 0;is.prototype.source=void 0;const eU={}.hasOwnProperty,RLt=new Map,ILt=/[A-Z]/g,jLt=/-([a-z])/g,NLt=new Set(["table","tbody","thead","tfoot","tr"]),ALt=new Set(["td","th"]),i3e="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function DLt(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=VLt(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=WLt(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?QH:hLt,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=a3e(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function a3e(e,t,n){if(t.type==="element")return FLt(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return LLt(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return zLt(e,t,n);if(t.type==="mdxjsEsm")return BLt(e,t);if(t.type==="root")return HLt(e,t,n);if(t.type==="text")return ULt(e,t)}function FLt(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=QH,e.schema=i),e.ancestors.push(t);const a=s3e(e,t.tagName,!1),o=qLt(e,t);let s=nU(e,t);return NLt.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!rLt(l):!0})),o3e(e,o,a,t),tU(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function LLt(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}O3(e,t.position)}function BLt(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);O3(e,t.position)}function zLt(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=QH,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:s3e(e,t.name,!0),o=KLt(e,t),s=nU(e,t);return o3e(e,o,a,t),tU(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function HLt(e,t,n){const r={};return tU(r,nU(e,t)),e.create(t,e.Fragment,r,n)}function ULt(e,t){return t.value}function o3e(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tU(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function WLt(e,t,n){return r;function r(i,a,o,s){const c=Array.isArray(o.children)?n:t;return s?c(a,o,s):c(a,o)}}function VLt(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=JH(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function qLt(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&eU.call(t.properties,i)){const a=GLt(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&ALt.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function KLt(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else O3(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else O3(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function nU(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:RLt;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(kd(e,e.length,0,t),e):t}const bne={}.hasOwnProperty;function rBt(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Hv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ed=Th(/[A-Za-z]/),El=Th(/[\dA-Za-z]/),oBt=Th(/[#-'*+\--9=?A-Z^-~]/);function MA(e){return e!==null&&(e<32||e===127)}const TA=Th(/\d/),sBt=Th(/[\dA-Fa-f]/),lBt=Th(/[!-/:-@[-`{-~]/);function dr(e){return e!==null&&e<-2}function Hs(e){return e!==null&&(e<0||e===32)}function si(e){return e===-2||e===-1||e===32}const cBt=Th(new RegExp("\\p{P}|\\p{S}","u")),uBt=Th(/\s/);function Th(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rb(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ti(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return si(l)?(e.enter(n),s(l)):t(l)}function s(l){return si(l)&&a++o))return;const _=t.events.length;let E=_,$,M;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if($){M=t.events[E][1].end;break}$=!0}for(y(r),S=_;Sb;){const k=n[C];t.containerState=k[1],k[0].exit.call(t,e)}n.length=b}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function mBt(e,t,n){return Ti(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xne(e){if(e===null||Hs(e)||uBt(e))return 1;if(cBt(e))return 2}function iU(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};Sne(f,-l),Sne(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=oc(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=oc(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=oc(c,iU(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=oc(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=oc(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,kd(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&&si(S)?Ti(e,w,"linePrefix",a+1)(S):w(S)}function w(S){return S===null||dr(S)?e.check(Cne,g,C)(S):(e.enter("codeFlowValue"),b(S))}function b(S){return S===null||dr(S)?(e.exit("codeFlowValue"),w(S)):(e.consume(S),b)}function C(S){return e.exit("codeFenced"),t(S)}function k(S,_,E){let $=0;return M;function M(I){return S.enter("lineEnding"),S.consume(I),S.exit("lineEnding"),P}function P(I){return S.enter("codeFencedFence"),si(I)?Ti(S,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):R(I)}function R(I){return I===s?(S.enter("codeFencedFenceSequence"),O(I)):E(I)}function O(I){return I===s?($++,S.consume(I),O):$>=o?(S.exit("codeFencedFenceSequence"),si(I)?Ti(S,j,"whitespace")(I):j(I)):E(I)}function j(I){return I===null||dr(I)?(S.exit("codeFencedFence"),_(I)):E(I)}}}function $Bt(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const mP={name:"codeIndented",tokenize:TBt},MBt={partial:!0,tokenize:PBt};function TBt(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Ti(e,a,"linePrefix",5)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):dr(c)?e.attempt(MBt,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||dr(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function PBt(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):dr(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Ti(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):dr(o)?i(o):n(o)}}const OBt={name:"codeText",previous:IBt,resolve:RBt,tokenize:jBt};function RBt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&a2(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),a2(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),a2(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function h3e(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||MA(y)?n(y):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||dr(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function g(y){return!u&&(y===null||y===41||Hs(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(y)):u999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):dr(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||dr(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!si(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function g3e(e,t,n,r,i,a){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,l):n(p)}function l(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),c(p))}function c(p){return p===o?(e.exit(a),l(o)):p===null?n(p):dr(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ti(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===o||p===null||dr(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:u)}function f(p){return p===o||p===92?(e.consume(p),u):u(p)}}function sw(e,t){let n;return r;function r(i){return dr(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):si(i)?Ti(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const HBt={name:"definition",tokenize:WBt},UBt={partial:!0,tokenize:VBt};function WBt(e,t,n){const r=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return m3e.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Hv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Hs(h)?sw(e,c)(h):c(h)}function c(h){return h3e(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(UBt,f,f)(h)}function f(h){return si(h)?Ti(e,p,"whitespace")(h):p(h)}function p(h){return h===null||dr(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function VBt(e,t,n){return r;function r(s){return Hs(s)?sw(e,i)(s):n(s)}function i(s){return g3e(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return si(s)?Ti(e,o,"whitespace")(s):o(s)}function o(s){return s===null||dr(s)?t(s):n(s)}}const qBt={name:"hardBreakEscape",tokenize:KBt};function KBt(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return dr(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const GBt={name:"headingAtx",resolve:YBt,tokenize:XBt};function YBt(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},kd(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function XBt(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Hs(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||dr(u)?(e.exit("atxHeading"),t(u)):si(u)?Ti(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Hs(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const ZBt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kne=["pre","script","style","textarea"],QBt={concrete:!0,name:"htmlFlow",resolveTo:tzt,tokenize:nzt},JBt={partial:!0,tokenize:izt},ezt={partial:!0,tokenize:rzt};function tzt(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function nzt(e,t,n){const r=this;let i,a,o,s,l;return c;function c(U){return u(U)}function u(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),f}function f(U){return U===33?(e.consume(U),p):U===47?(e.consume(U),a=!0,g):U===63?(e.consume(U),i=3,r.interrupt?t:L):ed(U)?(e.consume(U),o=String.fromCharCode(U),v):n(U)}function p(U){return U===45?(e.consume(U),i=2,h):U===91?(e.consume(U),i=5,s=0,m):ed(U)?(e.consume(U),i=4,r.interrupt?t:L):n(U)}function h(U){return U===45?(e.consume(U),r.interrupt?t:L):n(U)}function m(U){const Y="CDATA[";return U===Y.charCodeAt(s++)?(e.consume(U),s===Y.length?r.interrupt?t:R:m):n(U)}function g(U){return ed(U)?(e.consume(U),o=String.fromCharCode(U),v):n(U)}function v(U){if(U===null||U===47||U===62||Hs(U)){const Y=U===47,ee=o.toLowerCase();return!Y&&!a&&kne.includes(ee)?(i=1,r.interrupt?t(U):R(U)):ZBt.includes(o.toLowerCase())?(i=6,Y?(e.consume(U),y):r.interrupt?t(U):R(U)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(U):a?w(U):b(U))}return U===45||El(U)?(e.consume(U),o+=String.fromCharCode(U),v):n(U)}function y(U){return U===62?(e.consume(U),r.interrupt?t:R):n(U)}function w(U){return si(U)?(e.consume(U),w):M(U)}function b(U){return U===47?(e.consume(U),M):U===58||U===95||ed(U)?(e.consume(U),C):si(U)?(e.consume(U),b):M(U)}function C(U){return U===45||U===46||U===58||U===95||El(U)?(e.consume(U),C):k(U)}function k(U){return U===61?(e.consume(U),S):si(U)?(e.consume(U),k):b(U)}function S(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),l=U,_):si(U)?(e.consume(U),S):E(U)}function _(U){return U===l?(e.consume(U),l=null,$):U===null||dr(U)?n(U):(e.consume(U),_)}function E(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||Hs(U)?k(U):(e.consume(U),E)}function $(U){return U===47||U===62||si(U)?b(U):n(U)}function M(U){return U===62?(e.consume(U),P):n(U)}function P(U){return U===null||dr(U)?R(U):si(U)?(e.consume(U),P):n(U)}function R(U){return U===45&&i===2?(e.consume(U),A):U===60&&i===1?(e.consume(U),N):U===62&&i===4?(e.consume(U),V):U===63&&i===3?(e.consume(U),L):U===93&&i===5?(e.consume(U),K):dr(U)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(JBt,B,O)(U)):U===null||dr(U)?(e.exit("htmlFlowData"),O(U)):(e.consume(U),R)}function O(U){return e.check(ezt,j,B)(U)}function j(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),I}function I(U){return U===null||dr(U)?O(U):(e.enter("htmlFlowData"),R(U))}function A(U){return U===45?(e.consume(U),L):R(U)}function N(U){return U===47?(e.consume(U),o="",F):R(U)}function F(U){if(U===62){const Y=o.toLowerCase();return kne.includes(Y)?(e.consume(U),V):R(U)}return ed(U)&&o.length<8?(e.consume(U),o+=String.fromCharCode(U),F):R(U)}function K(U){return U===93?(e.consume(U),L):R(U)}function L(U){return U===62?(e.consume(U),V):U===45&&i===2?(e.consume(U),L):R(U)}function V(U){return U===null||dr(U)?(e.exit("htmlFlowData"),B(U)):(e.consume(U),V)}function B(U){return e.exit("htmlFlow"),t(U)}}function rzt(e,t,n){const r=this;return i;function i(o){return dr(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function izt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(J$,t,n)}}const azt={name:"htmlText",tokenize:ozt};function ozt(e,t,n){const r=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),k):L===63?(e.consume(L),b):ed(L)?(e.consume(L),E):n(L)}function c(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),a=0,m):ed(L)?(e.consume(L),w):n(L)}function u(L){return L===45?(e.consume(L),h):n(L)}function f(L){return L===null?n(L):L===45?(e.consume(L),p):dr(L)?(o=f,N(L)):(e.consume(L),f)}function p(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?A(L):L===45?p(L):f(L)}function m(L){const V="CDATA[";return L===V.charCodeAt(a++)?(e.consume(L),a===V.length?g:m):n(L)}function g(L){return L===null?n(L):L===93?(e.consume(L),v):dr(L)?(o=g,N(L)):(e.consume(L),g)}function v(L){return L===93?(e.consume(L),y):g(L)}function y(L){return L===62?A(L):L===93?(e.consume(L),y):g(L)}function w(L){return L===null||L===62?A(L):dr(L)?(o=w,N(L)):(e.consume(L),w)}function b(L){return L===null?n(L):L===63?(e.consume(L),C):dr(L)?(o=b,N(L)):(e.consume(L),b)}function C(L){return L===62?A(L):b(L)}function k(L){return ed(L)?(e.consume(L),S):n(L)}function S(L){return L===45||El(L)?(e.consume(L),S):_(L)}function _(L){return dr(L)?(o=_,N(L)):si(L)?(e.consume(L),_):A(L)}function E(L){return L===45||El(L)?(e.consume(L),E):L===47||L===62||Hs(L)?$(L):n(L)}function $(L){return L===47?(e.consume(L),A):L===58||L===95||ed(L)?(e.consume(L),M):dr(L)?(o=$,N(L)):si(L)?(e.consume(L),$):A(L)}function M(L){return L===45||L===46||L===58||L===95||El(L)?(e.consume(L),M):P(L)}function P(L){return L===61?(e.consume(L),R):dr(L)?(o=P,N(L)):si(L)?(e.consume(L),P):$(L)}function R(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),i=L,O):dr(L)?(o=R,N(L)):si(L)?(e.consume(L),R):(e.consume(L),j)}function O(L){return L===i?(e.consume(L),i=void 0,I):L===null?n(L):dr(L)?(o=O,N(L)):(e.consume(L),O)}function j(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Hs(L)?$(L):(e.consume(L),j)}function I(L){return L===47||L===62||Hs(L)?$(L):n(L)}function A(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function N(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),F}function F(L){return si(L)?Ti(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):K(L)}function K(L){return e.enter("htmlTextData"),o(L)}}const aU={name:"labelEnd",resolveAll:uzt,resolveTo:dzt,tokenize:fzt},szt={tokenize:pzt},lzt={tokenize:hzt},czt={tokenize:mzt};function uzt(e){let t=-1;const n=[];for(;++t=3&&(c===null||dr(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),si(c)?Ti(e,s,"whitespace")(c):s(c))}}const Ms={continuation:{tokenize:kzt},exit:$zt,name:"list",tokenize:_zt},Szt={partial:!0,tokenize:Mzt},Czt={partial:!0,tokenize:Ezt};function _zt(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:TA(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(E_,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return TA(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(J$,r.interrupt?n:u,e.attempt(Szt,p,f))}function u(h){return r.containerState.initialBlankLine=!0,a++,p(h)}function f(h){return si(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function kzt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(J$,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ti(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!si(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Czt,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ti(e,e.attempt(Ms,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Ezt(e,t,n){const r=this;return Ti(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function $zt(e){e.exit(this.containerState.type)}function Mzt(e,t,n){const r=this;return Ti(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!si(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Ene={name:"setextUnderline",resolveTo:Tzt,tokenize:Pzt};function Tzt(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Pzt(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),si(c)?Ti(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||dr(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Ozt={tokenize:Rzt};function Rzt(e){const t=this,n=e.attempt(J$,r,e.attempt(this.parser.constructs.flowInitial,i,Ti(e,e.attempt(this.parser.constructs.flow,i,e.attempt(DBt,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Izt={resolveAll:y3e()},jzt=v3e("string"),Nzt=v3e("text");function v3e(e){return{resolveAll:y3e(e==="text"?Azt:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=i[u];let p=-1;if(f)for(;++p-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Yzt(e,t){let n=-1;const r=[];let i;for(;++n0){const he=G.tokenStack[G.tokenStack.length-1];(he[1]||Mne).call(G,void 0,he[0])}for(H.position={start:up(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:up(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},xe=-1;++xe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function pHt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hHt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function S3e(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function mHt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return S3e(e,t);const i={src:rb(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function gHt(e,t){const n={src:rb(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function vHt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function yHt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return S3e(e,t);const i={href:rb(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function bHt(e,t){const n={href:rb(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wHt(e,t,n){const r=e.all(t),i=n?xHt(n):C3e(t),a={},o=[];if(typeof t.checked=="boolean"){const u=r[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s0){const he=G.tokenStack[G.tokenStack.length-1];(he[1]||Mne).call(G,void 0,he[0])}for(H.position={start:up(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:up(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},xe=-1;++xe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function fHt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pHt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function x3e(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function hHt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return x3e(e,t);const i={src:rb(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function mHt(e,t){const n={src:rb(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function gHt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function vHt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return x3e(e,t);const i={href:rb(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function yHt(e,t){const n={href:rb(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bHt(e,t,n){const r=e.all(t),i=n?wHt(n):S3e(t),a={},o=[];if(typeof t.checked=="boolean"){const u=r[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function SHt(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=JH(t.children[1]),l=r3e(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function $Ht(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(One(t.slice(i),i>0,!1)),a.join("")}function One(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Tne||a===Pne;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Tne||a===Pne;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function PHt(e,t){const n={type:"text",value:THt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function OHt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const RHt={blockquote:sHt,break:lHt,code:cHt,delete:uHt,emphasis:dHt,footnoteReference:fHt,heading:pHt,html:hHt,imageReference:mHt,image:gHt,inlineCode:vHt,linkReference:yHt,link:bHt,listItem:wHt,list:SHt,paragraph:CHt,root:_Ht,strong:kHt,table:EHt,tableCell:MHt,tableRow:$Ht,text:PHt,thematicBreak:OHt,toml:nC,yaml:nC,definition:nC,footnoteDefinition:nC};function nC(){}const _3e=-1,e7=0,o5=1,s5=2,oU=3,sU=4,lU=5,cU=6,k3e=7,E3e=8,Rne=typeof self=="object"?self:globalThis,IHt=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case e7:case _3e:return n(o,i);case o5:{const s=n([],i);for(const l of o)s.push(r(l));return s}case s5:{const s=n({},i);for(const[l,c]of o)s[r(l)]=r(c);return s}case oU:return n(new Date(o),i);case sU:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case lU:{const s=n(new Map,i);for(const[l,c]of o)s.set(r(l),r(c));return s}case cU:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case k3e:{const{name:s,message:l}=o;return n(new Rne[s](l),i)}case E3e:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new Rne[a](o),i)};return r},Ine=e=>IHt(new Map,e)(0),V1="",{toString:jHt}={},{keys:NHt}=Object,o2=e=>{const t=typeof e;if(t!=="object"||!e)return[e7,t];const n=jHt.call(e).slice(8,-1);switch(n){case"Array":return[o5,V1];case"Object":return[s5,V1];case"Date":return[oU,V1];case"RegExp":return[sU,V1];case"Map":return[lU,V1];case"Set":return[cU,V1]}return n.includes("Array")?[o5,n]:n.includes("Error")?[k3e,n]:[s5,n]},rC=([e,t])=>e===e7&&(t==="function"||t==="symbol"),AHt=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=o2(o);switch(s){case e7:{let u=o;switch(l){case"bigint":s=E3e,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([_3e],o)}return i([s,u],o)}case o5:{if(l)return i([l,[...o]],o);const u=[],f=i([s,u],o);for(const p of o)u.push(a(p));return f}case s5:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const u=[],f=i([s,u],o);for(const p of NHt(o))(e||!rC(o2(o[p])))&&u.push([a(p),a(o[p])]);return f}case oU:return i([s,o.toISOString()],o);case sU:{const{source:u,flags:f}=o;return i([s,{source:u,flags:f}],o)}case lU:{const u=[],f=i([s,u],o);for(const[p,h]of o)(e||!(rC(o2(p))||rC(o2(h))))&&u.push([a(p),a(h)]);return f}case cU:{const u=[],f=i([s,u],o);for(const p of o)(e||!rC(o2(p)))&&u.push(a(p));return f}}const{message:c}=o;return i([s,{name:l,message:c}],o)};return a},jne=(e,{json:t,lossy:n}={})=>{const r=[];return AHt(!(t||n),!!t,new Map,r)(e),r},l5=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ine(jne(e,t)):structuredClone(e):(e,t)=>Ine(jne(e,t));function DHt(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function FHt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function LHt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||DHt,r=e.options.footnoteBackLabel||FHt,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let w=typeof n=="string"?n:n(l,h);typeof w=="string"&&(w={type:"text",value:w}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const w=v.children[v.children.length-1];w&&w.type==="text"?w.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else u.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(u,!0)};e.patch(c,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...l5(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)}function wHt(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function xHt(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=JH(t.children[1]),l=n3e(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function EHt(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(One(t.slice(i),i>0,!1)),a.join("")}function One(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Tne||a===Pne;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Tne||a===Pne;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function THt(e,t){const n={type:"text",value:MHt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function PHt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const OHt={blockquote:oHt,break:sHt,code:lHt,delete:cHt,emphasis:uHt,footnoteReference:dHt,heading:fHt,html:pHt,imageReference:hHt,image:mHt,inlineCode:gHt,linkReference:vHt,link:yHt,listItem:bHt,list:xHt,paragraph:SHt,root:CHt,strong:_Ht,table:kHt,tableCell:$Ht,tableRow:EHt,text:THt,thematicBreak:PHt,toml:tC,yaml:tC,definition:tC,footnoteDefinition:tC};function tC(){}const C3e=-1,e7=0,a5=1,o5=2,oU=3,sU=4,lU=5,cU=6,_3e=7,k3e=8,Rne=typeof self=="object"?self:globalThis,RHt=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case e7:case C3e:return n(o,i);case a5:{const s=n([],i);for(const l of o)s.push(r(l));return s}case o5:{const s=n({},i);for(const[l,c]of o)s[r(l)]=r(c);return s}case oU:return n(new Date(o),i);case sU:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case lU:{const s=n(new Map,i);for(const[l,c]of o)s.set(r(l),r(c));return s}case cU:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case _3e:{const{name:s,message:l}=o;return n(new Rne[s](l),i)}case k3e:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new Rne[a](o),i)};return r},Ine=e=>RHt(new Map,e)(0),V1="",{toString:IHt}={},{keys:jHt}=Object,o2=e=>{const t=typeof e;if(t!=="object"||!e)return[e7,t];const n=IHt.call(e).slice(8,-1);switch(n){case"Array":return[a5,V1];case"Object":return[o5,V1];case"Date":return[oU,V1];case"RegExp":return[sU,V1];case"Map":return[lU,V1];case"Set":return[cU,V1]}return n.includes("Array")?[a5,n]:n.includes("Error")?[_3e,n]:[o5,n]},nC=([e,t])=>e===e7&&(t==="function"||t==="symbol"),NHt=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=o2(o);switch(s){case e7:{let u=o;switch(l){case"bigint":s=k3e,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([C3e],o)}return i([s,u],o)}case a5:{if(l)return i([l,[...o]],o);const u=[],f=i([s,u],o);for(const p of o)u.push(a(p));return f}case o5:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const u=[],f=i([s,u],o);for(const p of jHt(o))(e||!nC(o2(o[p])))&&u.push([a(p),a(o[p])]);return f}case oU:return i([s,o.toISOString()],o);case sU:{const{source:u,flags:f}=o;return i([s,{source:u,flags:f}],o)}case lU:{const u=[],f=i([s,u],o);for(const[p,h]of o)(e||!(nC(o2(p))||nC(o2(h))))&&u.push([a(p),a(h)]);return f}case cU:{const u=[],f=i([s,u],o);for(const p of o)(e||!nC(o2(p)))&&u.push(a(p));return f}}const{message:c}=o;return i([s,{name:l,message:c}],o)};return a},jne=(e,{json:t,lossy:n}={})=>{const r=[];return NHt(!(t||n),!!t,new Map,r)(e),r},s5=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ine(jne(e,t)):structuredClone(e):(e,t)=>Ine(jne(e,t));function AHt(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function DHt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function FHt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||AHt,r=e.options.footnoteBackLabel||DHt,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let w=typeof n=="string"?n:n(l,h);typeof w=="string"&&(w={type:"text",value:w}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const w=v.children[v.children.length-1];w&&w.type==="text"?w.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else u.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(u,!0)};e.patch(c,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...s5(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const $3e=function(e){if(e==null)return UHt;if(typeof e=="function")return t7(e);if(typeof e=="object")return Array.isArray(e)?BHt(e):zHt(e);if(typeof e=="string")return HHt(e);throw new Error("Expected function, string, or object as test")};function BHt(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let h=M3e,m,g,v;if((!t||a(l,c,u[u.length-1]||void 0))&&(h=GHt(n(l,u)),h[0]===Nne))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==qHt)for(g=(r?y.children.length:-1)+o,v=u.concat(y);g>-1&&g":""))+")"})}return p;function p(){let h=$3e,m,g,v;if((!t||a(l,c,u[u.length-1]||void 0))&&(h=KHt(n(l,u)),h[0]===Nne))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==VHt)for(g=(r?y.children.length:-1)+o,v=u.concat(y);g>-1&&g0&&n.push({type:"text",value:` -`}),n}function Ane(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Dne(e,t){const n=XHt(e,t),r=n.one(e,void 0),i=LHt(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function tUt(e,t){return e&&"run"in e?async function(n,r){const i=Dne(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Dne(n,{file:r,...e||t})}}function Fne(e){if(e)throw e}var M_=Object.prototype.hasOwnProperty,P3e=Object.prototype.toString,Lne=Object.defineProperty,Bne=Object.getOwnPropertyDescriptor,zne=function(t){return typeof Array.isArray=="function"?Array.isArray(t):P3e.call(t)==="[object Array]"},Hne=function(t){if(!t||P3e.call(t)!=="[object Object]")return!1;var n=M_.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&M_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||M_.call(t,i)},Une=function(t,n){Lne&&n.name==="__proto__"?Lne(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Wne=function(t,n){if(n==="__proto__")if(M_.call(t,n)){if(Bne)return Bne(t,n).value}else return;return t[n]},nUt=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Wu={basename:aUt,dirname:oUt,extname:sUt,join:lUt,sep:"/"};function aUt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ux(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function oUt(e){if(ux(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function sUt(e){ux(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function lUt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function uUt(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function ux(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dUt={cwd:fUt};function fUt(){return"/"}function IA(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pUt(e){if(typeof e=="string")e=new URL(e);else if(!IA(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return hUt(e)}function hUt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...m]=u;const g=r[p][1];RA(g)&&RA(h)&&(h=vP(!0,g,h)),r[p]=[c,h,...m]}}}}const yUt=new uU().freeze();function xP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function SP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function CP(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qne(e){if(!RA(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Kne(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function iC(e){return bUt(e)?e:new O3e(e)}function bUt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wUt(e){return typeof e=="string"||xUt(e)}function xUt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const SUt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Gne=[],Yne={allowDangerousHtml:!0},CUt=/^(https?|ircs?|mailto|xmpp)$/i,_Ut=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Xne(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||Gne,l=e.remarkPlugins||Gne,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Yne}:Yne,u=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||kUt,h=yUt().use(oHt).use(l).use(tUt,c).use(s),m=new O3e;typeof r=="string"&&(m.value=r);for(const w of _Ut)Object.hasOwn(e,w.from)&&(""+w.from+(w.to?"use `"+w.to+"` instead":"remove it")+SUt+w.id,void 0);const g=h.parse(m);let v=h.runSync(g,m);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:v.type==="root"?v.children:[v]}),T3e(v,y),FLt(v,{Fragment:x.Fragment,components:a,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function y(w,b,C){if(w.type==="raw"&&C&&typeof b=="number")return u?C.children.splice(b,1):C.children[b]={type:"text",value:w.value},b;if(w.type==="element"){let k;for(k in hP)if(Object.hasOwn(hP,k)&&Object.hasOwn(w.properties,k)){const S=w.properties[k],_=hP[k];(_===null||_.includes(w.tagName))&&(w.properties[k]=p(String(S||""),k,w))}}if(w.type==="element"){let k=t?!t.includes(w.tagName):o?o.includes(w.tagName):!1;if(!k&&n&&typeof b=="number"&&(k=!n(w,b,C)),k&&C&&typeof b=="number")return f&&w.children?C.children.splice(b,1,...w.children):C.children.splice(b,1),b}}}function kUt(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||CUt.test(e.slice(0,t))?e:""}const R3e=({uid:e,content:t,thread:n,visitor:r,onQuestionClick:i})=>{const[a,o]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1),[f,p]=d.useState([]);d.useEffect(()=>{o(t)},[t]);const h=g=>{console.log("handleRateClicked:",e,g,n,r)},m=g=>{console.log("Question clicked:",g),i(g.question,g.answer)};return x.jsxs(x.Fragment,{children:[x.jsx(Xs,{children:x.jsxs(UH,{style:{textAlign:"left"},children:[x.jsx(Xne,{children:a}),s&&x.jsxs("div",{style:{marginTop:"12px"},children:[x.jsx("button",{onClick:()=>u(!c),style:{background:"#e8e8e8",border:"none",borderRadius:"4px",padding:"4px 8px",fontSize:"12px",color:"#666",cursor:"pointer",marginBottom:"8px"},children:c?"收起思考过程":"查看思考过程"}),c&&x.jsx("div",{style:{background:"#f9f9f9",padding:"12px",borderRadius:"8px",fontSize:"14px",color:"#666",whiteSpace:"pre-wrap"},children:x.jsx(Xne,{children:s})})]}),f.length>0&&x.jsx("div",{className:"qa-buttons",style:{marginTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:f.map((g,v)=>x.jsx("button",{onClick:()=>m(g),style:{background:"#f5f5f5",border:"none",borderRadius:"18px",padding:"8px 16px",fontSize:"14px",color:"#333",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s"},children:g.question},v))})]})}),x.jsx(Swe,{onClick:h})]})},EUt=Su.div` +`}),n}function Ane(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Dne(e,t){const n=YHt(e,t),r=n.one(e,void 0),i=FHt(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function eUt(e,t){return e&&"run"in e?async function(n,r){const i=Dne(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Dne(n,{file:r,...e||t})}}function Fne(e){if(e)throw e}var $_=Object.prototype.hasOwnProperty,T3e=Object.prototype.toString,Lne=Object.defineProperty,Bne=Object.getOwnPropertyDescriptor,zne=function(t){return typeof Array.isArray=="function"?Array.isArray(t):T3e.call(t)==="[object Array]"},Hne=function(t){if(!t||T3e.call(t)!=="[object Object]")return!1;var n=$_.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&$_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||$_.call(t,i)},Une=function(t,n){Lne&&n.name==="__proto__"?Lne(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Wne=function(t,n){if(n==="__proto__")if($_.call(t,n)){if(Bne)return Bne(t,n).value}else return;return t[n]},tUt=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Wu={basename:iUt,dirname:aUt,extname:oUt,join:sUt,sep:"/"};function iUt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function aUt(e){if(cx(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function oUt(e){cx(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function sUt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function cUt(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function cx(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const uUt={cwd:dUt};function dUt(){return"/"}function IA(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function fUt(e){if(typeof e=="string")e=new URL(e);else if(!IA(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return pUt(e)}function pUt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...m]=u;const g=r[p][1];RA(g)&&RA(h)&&(h=vP(!0,g,h)),r[p]=[c,h,...m]}}}}const vUt=new uU().freeze();function xP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function SP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function CP(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qne(e){if(!RA(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Kne(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rC(e){return yUt(e)?e:new P3e(e)}function yUt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function bUt(e){return typeof e=="string"||wUt(e)}function wUt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xUt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Gne=[],Yne={allowDangerousHtml:!0},SUt=/^(https?|ircs?|mailto|xmpp)$/i,CUt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Xne(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||Gne,l=e.remarkPlugins||Gne,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Yne}:Yne,u=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||_Ut,h=vUt().use(aHt).use(l).use(eUt,c).use(s),m=new P3e;typeof r=="string"&&(m.value=r);for(const w of CUt)Object.hasOwn(e,w.from)&&(""+w.from+(w.to?"use `"+w.to+"` instead":"remove it")+xUt+w.id,void 0);const g=h.parse(m);let v=h.runSync(g,m);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:v.type==="root"?v.children:[v]}),M3e(v,y),DLt(v,{Fragment:x.Fragment,components:a,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function y(w,b,C){if(w.type==="raw"&&C&&typeof b=="number")return u?C.children.splice(b,1):C.children[b]={type:"text",value:w.value},b;if(w.type==="element"){let k;for(k in hP)if(Object.hasOwn(hP,k)&&Object.hasOwn(w.properties,k)){const S=w.properties[k],_=hP[k];(_===null||_.includes(w.tagName))&&(w.properties[k]=p(String(S||""),k,w))}}if(w.type==="element"){let k=t?!t.includes(w.tagName):o?o.includes(w.tagName):!1;if(!k&&n&&typeof b=="number"&&(k=!n(w,b,C)),k&&C&&typeof b=="number")return f&&w.children?C.children.splice(b,1,...w.children):C.children.splice(b,1),b}}}function _Ut(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||SUt.test(e.slice(0,t))?e:""}const O3e=({uid:e,content:t,thread:n,visitor:r,onQuestionClick:i})=>{const[a,o]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1),[f,p]=d.useState([]);d.useEffect(()=>{o(t)},[t]);const h=g=>{console.log("handleRateClicked:",e,g,n,r)},m=g=>{console.log("Question clicked:",g),i(g.question,g.answer)};return x.jsxs(x.Fragment,{children:[x.jsx(Xs,{children:x.jsxs(UH,{style:{textAlign:"left"},children:[x.jsx(Xne,{children:a}),s&&x.jsxs("div",{style:{marginTop:"12px"},children:[x.jsx("button",{onClick:()=>u(!c),style:{background:"#e8e8e8",border:"none",borderRadius:"4px",padding:"4px 8px",fontSize:"12px",color:"#666",cursor:"pointer",marginBottom:"8px"},children:c?"收起思考过程":"查看思考过程"}),c&&x.jsx("div",{style:{background:"#f9f9f9",padding:"12px",borderRadius:"8px",fontSize:"14px",color:"#666",whiteSpace:"pre-wrap"},children:x.jsx(Xne,{children:s})})]}),f.length>0&&x.jsx("div",{className:"qa-buttons",style:{marginTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:f.map((g,v)=>x.jsx("button",{onClick:()=>m(g),style:{background:"#f5f5f5",border:"none",borderRadius:"18px",padding:"8px 16px",fontSize:"14px",color:"#333",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s"},children:g.question},v))})]})}),x.jsx(xwe,{onClick:h})]})},kUt=Su.div` /* 容器样式 */ height: 100%; .ChatApp { height: 100% !important; } -`,$Ut=Su(Mwe)` -`,MUt=()=>{const{translateString:e}=Zr(),{isDarkMode:t,locale:n}=d.useContext(Ea),r=fr($=>$.currentThread),i=ia($=>$.userInfo),a=Eo($=>$.agentInfo),[o,s]=d.useState(null),[l,c]=d.useState(null),u=[],[f,p]=d.useState(u),{messages:h,resetList:m}=dwe([]),{messageList:g,addMessage:v,addMessageProtobuf:y}=QFt($=>({messageList:$.messageList,addMessage:$.addMessage,addMessageProtobuf:$.addMessageProtobuf,addMessageList:$.addMessageList,updateMessage:$.updateMessage}));d.useEffect(()=>{p(u)},[n]);const w=()=>{var M,P,R;const $={uid:"df_welcome_uid",type:vo,status:Dw,createdAt:Pv(),client:kn,content:"您好,我是客服助手小微,有什么可以帮助您的吗?",user:{uid:(M=l==null?void 0:l.user)==null?void 0:M.uid,avatar:(P=l==null?void 0:l.user)==null?void 0:P.avatar,nickname:(R=l==null?void 0:l.user)==null?void 0:R.nickname},topic:l==null?void 0:l.topic};console.log("addWelcomeMessage:",$),v($)};d.useEffect(()=>{S()},[r]),d.useEffect(()=>{l!=null&&w()},[l]);const b=$=>{const{_id:M,type:P,content:R}=$;switch(P){case _se:case vo:return x.jsx(x.Fragment,{children:x.jsx(qu,{content:e(R),isRichText:yde(R)})});case $f:return x.jsx(x.Fragment,{children:x.jsx(R3e,{uid:M.toString(),content:R,thread:l})});default:return x.jsx(x.Fragment,{children:x.jsx(qu,{content:R})})}},C=($,M)=>{console.log("QuickButton:",$,M),$.type},k=($,M)=>{if(console.log("handleSend",$,M),l===null)return;const P=Ba(),R=bde(l,i,a,P,vo,M,Pv());console.log("handleSend messageResponse:",R),v(R);const O=SL(l,i,a,P,vo,M,Pv());Mle(JSON.stringify(O),function(j){console.log("sendSseMessage receive: ",j),y(j)})},S=async()=>{if(l!=null)return;const M={agent:JSON.stringify({uid:T5e}),forceNew:!1,hide:!0,client:kn},P=await XH(M);console.log("startAgentAssistantChat response:",M,P.data),P.data.code===200?c(P.data.data):je.error(P.data.message)},_=$=>{var M;return((M=$==null?void 0:$.user)==null?void 0:M.uid)===(i==null?void 0:i.uid)?"right":"left"};d.useEffect(()=>{const $=[];g.forEach(M=>{var R,O;let P=!1;(M==null?void 0:M.topic)===(l==null?void 0:l.topic)&&(P=!0),P&&$.push({_id:M==null?void 0:M.uid,type:M==null?void 0:M.type,status:M==null?void 0:M.status,hasTime:!0,createdAt:en(M==null?void 0:M.createdAt).toDate().getTime(),content:M==null?void 0:M.content,position:_(M),user:{avatar:(R=M==null?void 0:M.user)==null?void 0:R.avatar,name:(O=M==null?void 0:M.user)==null?void 0:O.nickname}})}),m($)},[g,l]),d.useEffect(()=>{l&&o&&k("text",o==null?void 0:o.content)},[l,o]),d.useEffect(()=>{const $=M=>{console.log("EVENT_BUS_ASK_AI_COPILOT");const P=JSON.parse(M);console.log("messageObject:",P),s(P),l===null&&S()};return $n.on(Nw,$),()=>{$n.off(Nw,$)}},[]);const E={"@":[{value:"all",label:"所有人"}],"/":[{value:"test1",label:"Test1"}]};return x.jsxs(EUt,{children:[t&&x.jsx(qH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:wse})}),x.jsx($Ut,{messages:h,renderMessageContent:b,onSend:k,quickReplies:f,onQuickReplyClick:C,metionOptions:E})]})};async function I3e(e){return bn("/api/v1/visitor/query/uid",{method:"GET",params:{uid:e,client:kn}})}async function TUt(e){return bn("/api/v1/visitor/update",{method:"POST",data:{...e,client:kn}})}async function PUt(e){return bn("/api/v1/visitor/update/tagList",{method:"POST",data:{...e,client:kn}})}const v1=so()(es(ts(ns(e=>({currentVisitor:{nickname:"",user:{uid:"",avatar:""}},setCurrentVisitor(t){e({currentVisitor:t})},resetVisitors:()=>e({currentVisitor:{nickname:""}})})),{name:_6e})));async function OUt(e){return bn("/api/v1/thread/query",{method:"GET",params:{...e}})}async function RUt(e){return bn("/api/v1/thread/query/uid",{method:"GET",params:{uid:e}})}async function j3e(e){return bn("/api/v1/thread/create",{method:"POST",data:{...e}})}async function IUt(e){return bn("/api/v1/thread/update/top",{method:"POST",data:{...e}})}async function jUt(e){return bn("/api/v1/thread/update/star",{method:"POST",data:{...e}})}async function NUt(e){return bn("/api/v1/thread/update/mute",{method:"POST",data:{...e}})}async function N3e(e){return bn("/api/v1/thread/update/user",{method:"POST",data:{...e}})}async function AUt(e){return bn("/api/v1/thread/update/tagList",{method:"POST",data:{...e}})}async function A3e(e){return bn("/api/v1/thread/update/unread",{method:"POST",data:{...e}})}async function DUt(e){return bn("/api/v1/thread/close",{method:"POST",data:{...e}})}async function FUt(e){return bn("/api/v1/thread/accept",{method:"POST",data:{...e}})}const LUt=()=>{const e=jn(),[t]=Kn.useForm(),{currentVisitor:n,setCurrentVisitor:r}=v1(),{currentThread:i,setCurrentThread:a}=fr(),[o,s]=d.useState({nickname:!1,mobile:!1,email:!1,note:!1});console.log("BasicInfo render:",n),d.useEffect(()=>{t.setFieldsValue({nickname:n==null?void 0:n.nickname,mobile:n==null?void 0:n.mobile,email:n==null?void 0:n.email,note:n==null?void 0:n.note})},[n,t]);const l=p=>{t.setFieldsValue({[p]:n[p]}),s(h=>({...h,[p]:!0}))},c=async p=>{var h,m,g,v,y;try{const w=await t.validateFields([p]),b={uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,mobile:n==null?void 0:n.mobile,email:n==null?void 0:n.email,note:n==null?void 0:n.note,[p]:w[p]},C=await TUt(b);console.log("updateVisitor:",b,C.data),C.data.code===200&&(je.success(e.formatMessage({id:"customer.basic.update.success",defaultMessage:"Updated successfully"})),r((h=C==null?void 0:C.data)==null?void 0:h.data),s(k=>({...k,[p]:!1})),u({uid:(g=(m=C==null?void 0:C.data)==null?void 0:m.data)==null?void 0:g.uid,nickname:(v=C==null?void 0:C.data)==null?void 0:v.data.nickname,avatar:(y=C==null?void 0:C.data)==null?void 0:y.data.avatar,type:G6e}))}catch(w){console.error("Update failed:",w),je.error(e.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},u=async p=>{var h;try{const m={uid:i==null?void 0:i.uid,user:p},g=await N3e(m);console.log("updateThreadUser:",m,g.data),g.data.code===200&&a((h=g==null?void 0:g.data)==null?void 0:h.data)}catch(m){console.error("Update failed:",m),je.error(e.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},f=p=>{t.setFieldValue(p,n[p]),s(h=>({...h,[p]:!1}))};return x.jsxs(Kn,{form:t,layout:"vertical",submitter:!1,children:[x.jsx(Or,{name:"nickname",label:e.formatMessage({id:"customer.basic.nickname",defaultMessage:"Nickname"}),rules:[{required:!0,message:"Please input nickname!"}],disabled:!o.nickname,addonAfter:o.nickname?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("nickname"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("nickname"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("nickname"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Or,{name:"mobile",label:"手机号",disabled:!o.mobile,addonAfter:o.mobile?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("mobile"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("mobile"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("mobile"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Or,{name:"email",label:"邮箱",rules:[{type:"email",message:"Please input valid email!"}],disabled:!(o!=null&&o.email),addonAfter:o.email?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("email"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("email"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("email"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Cd,{name:"note",label:e.formatMessage({id:"customer.basic.note",defaultMessage:"Note"}),fieldProps:{rows:4},disabled:!(o!=null&&o.note),addonAfter:o.note?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("note"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("note"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("note"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})})]})},BUt=d.memo(LUt),zUt={name:"名称",version:"版本",major:"主版本号",vendor:"厂商",model:"型号",type:"类型",architecture:"架构"},s2={browserName:{Chrome:"谷歌浏览器",Firefox:"火狐浏览器",Safari:"Safari浏览器",Edge:"Edge浏览器",IE:"IE浏览器",Opera:"Opera浏览器"},deviceType:{mobile:"移动设备",tablet:"平板设备",desktop:"桌面设备",console:"游戏机",smarttv:"智能电视",wearable:"可穿戴设备",embedded:"嵌入式设备"},osName:{Windows:"Windows",iOS:"iOS",Android:"安卓","Mac OS":"macOS",Linux:"Linux",Ubuntu:"Ubuntu",CentOS:"CentOS"},vendor:{Apple:"苹果",Samsung:"三星",Huawei:"华为",Xiaomi:"小米",OPPO:"OPPO",vivo:"vivo",Google:"谷歌",OnePlus:"一加",LG:"LG",Sony:"索尼",Microsoft:"微软"},model:{Macintosh:"Mac电脑",iPhone:"iPhone",iPad:"iPad",iPod:"iPod",Pixel:"Pixel手机",Galaxy:"Galaxy系列"}},_P=(e,t)=>{if(!e)return x.jsx("p",{children:"暂无信息"});try{const n=typeof e=="string"?JSON.parse(e):e;if(!n||typeof n!="object")return x.jsx("p",{children:"无效设备信息"});const r=Object.keys(n);return x.jsx(x.Fragment,{children:r.map(i=>{const a=zUt[i]||i;let o=n[i];if(i==="name")t==="browser"?o=s2.browserName[n[i]]||n[i]:t==="os"&&(o=s2.osName[n[i]]||n[i]);else if(i==="vendor")o=s2.vendor[n[i]]||n[i];else if(i==="type")o=s2.deviceType[n[i]]||n[i];else if(i==="model"){for(const[s,l]of Object.entries(s2.model))if(n[i].includes(s)){o=n[i].replace(s,l);break}}return x.jsxs("p",{children:[a,": ",o]},i)})})}catch(n){return console.error("解析设备信息时出错:",n,e),x.jsx("p",{children:"解析设备信息出错"})}},{Title:kP}=Zf,HUt=()=>{var n,r,i;const e=jn(),t=v1(a=>a.currentVisitor);return x.jsxs(x.Fragment,{children:[x.jsx(kP,{level:5,children:e.formatMessage({id:"customer.info.browser",defaultMessage:"Browser Info"})}),_P((n=t==null?void 0:t.device)==null?void 0:n.browser,"browser"),x.jsx(kP,{level:5,children:e.formatMessage({id:"customer.info.os",defaultMessage:"OS Info"})}),_P((r=t==null?void 0:t.device)==null?void 0:r.os,"os"),x.jsx(kP,{level:5,children:e.formatMessage({id:"customer.info.device",defaultMessage:"Device Info"})}),_P((i=t==null?void 0:t.device)==null?void 0:i.device,"device")]})},Zne={width:64,height:22,marginInlineEnd:8,verticalAlign:"top"},UUt=()=>{const{token:e}=Ho.useToken(),t=jn(),{currentVisitor:n,setCurrentVisitor:r}=v1(),[i,a]=d.useState((n==null?void 0:n.tagList)||[]),[o,s]=d.useState(!1),[l,c]=d.useState(""),[u,f]=d.useState(-1),[p,h]=d.useState(""),m=d.useRef(null),g=d.useRef(null),{currentThread:v,setCurrentThread:y}=fr();d.useEffect(()=>{var P;o&&((P=m.current)==null||P.focus())},[o]),d.useEffect(()=>{a((n==null?void 0:n.tagList)||[])},[n]),d.useEffect(()=>{var P;(P=g.current)==null||P.focus()},[p]);const w=async P=>{const R=i.filter(O=>O!==P);await E(R)},b=()=>{s(!0)},C=P=>{c(P.target.value)},k=async()=>{if(l&&!i.includes(l)){const P=[...i,l];await E(P)}s(!1),c("")},S=P=>{h(P.target.value)},_=async()=>{const P=[...i];P[u]=p,await E(P),f(-1),h("")},E=async P=>{try{const R={uid:n==null?void 0:n.uid,tagList:P},O=await PUt(R);console.log("updateTags response:",O.data,R),O.data.code===200&&(je.success("标签更新成功"),a(P),r(O.data.data),$(P))}catch(R){console.error("标签更新失败:",R),je.error("标签更新失败")}},$=async P=>{var R;try{const O={uid:v==null?void 0:v.uid,tagList:P},j=await AUt(O);console.log("updateThreadUser:",O,j.data),j.data.code===200&&y((R=j==null?void 0:j.data)==null?void 0:R.data)}catch(O){console.error("Update failed:",O),je.error(t.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},M={height:22,background:e.colorBgContainer,borderStyle:"dashed"};return x.jsxs(o3,{gap:"4px 0",wrap:!0,children:[i.map((P,R)=>{if(u===R)return x.jsx(Ur,{ref:g,size:"small",style:Zne,value:p,onChange:S,onBlur:_,onPressEnter:_},P);const O=P.length>20,j=x.jsx(Vi,{closable:!0,style:{userSelect:"none"},onClose:()=>w(P),color:"blue",children:x.jsx("span",{onDoubleClick:I=>{R!==0&&(f(R),h(P),I.preventDefault())},children:O?`${P.slice(0,20)}...`:P})},P);return O?x.jsx(_a,{title:P,children:j},P):j}),o?x.jsx(Ur,{ref:m,type:"text",size:"small",style:Zne,value:l,onChange:C,onBlur:k,onPressEnter:k}):x.jsx(Vi,{style:M,icon:x.jsx(Ny,{}),onClick:b,children:"添加标签"})]})},WUt=()=>{const e=v1(t=>t.currentVisitor);return console.log("visitor:",e),x.jsx("div",{children:x.jsx("h1",{children:x.jsx(za,{})})})},VUt=()=>{const e=v1(n=>n.currentVisitor),t=n=>{if(!n)return x.jsx("p",{children:"暂无信息"});const r=JSON.parse(n),i=Object.keys(r);return x.jsx(x.Fragment,{children:i.map(a=>x.jsxs("p",{children:[a,": ",r[a]]},a))})};return x.jsx(x.Fragment,{children:t(e==null?void 0:e.extra)})},qUt=()=>{var c;const e=jn(),t=fr(u=>u.currentThread),{currentVisitor:n,setCurrentVisitor:r}=v1(u=>u),i=[{key:"basicInfo",label:e.formatMessage({id:"customer.info.basic",defaultMessage:"Basic Info"}),children:x.jsx(BUt,{})},{key:"deviceInfo",label:e.formatMessage({id:"customer.info.device",defaultMessage:"Device Info"}),children:x.jsx(HUt,{})},{key:"tagInfo",label:e.formatMessage({id:"customer.info.tag",defaultMessage:"Tag Info"}),children:x.jsx(UUt,{})},{key:"extraInfo",label:e.formatMessage({id:"customer.info.extra",defaultMessage:"Extra Info"}),children:x.jsx(VUt,{})}],[a,o]=d.useState(i),s=d.useCallback(async()=>{var f,p,h;if(!((f=t==null?void 0:t.user)!=null&&f.uid))return;console.log("Fetching visitor info for:",(p=t==null?void 0:t.user)==null?void 0:p.uid);const u=await I3e((h=t==null?void 0:t.user)==null?void 0:h.uid);console.log("getVisitorInfo response:",u.data),u.data.code===200?r(u.data.data):je.error(e.formatMessage({id:"customer.info.load.error",defaultMessage:"Failed to load visitor info"}))},[(c=t==null?void 0:t.user)==null?void 0:c.uid,e]);d.useEffect(()=>{Rf(t)&&s()},[t,s]),d.useEffect(()=>{const u=[...i];Nl&&(u.push({key:"browseRecord",label:e.formatMessage({id:"customer.info.browse.record",defaultMessage:"Browse Record"}),children:x.jsx(WUt,{})}),o(u))},[n]);const l=u=>{console.log(u)};return x.jsx("div",{children:x.jsx(l8,{bordered:!1,items:a,defaultActiveKey:["basicInfo"],onChange:l})})};async function KUt(e){return bn("/api/v1/quickreply/query",{method:"GET",params:{...e,client:kn}})}async function GUt(e){return bn("/api/v1/quickreply/create",{method:"POST",data:{...e,client:kn}})}const YUt=({open:e,isEdit:t,category:n,kbUid:r,onCancel:i,onSubmit:a})=>{const[o]=Kn.useForm(),s=Vr(f=>f.currentOrg),l=jn();console.log("CategoryForm kbUid:",r),d.useEffect(()=>{t?o.setFieldsValue({name:n==null?void 0:n.name}):o.resetFields()},[e]);const c=()=>{o.validateFields().then(async f=>{console.log("handleSaveDep:",f);const p={uid:t?n==null?void 0:n.uid:"",name:f.name,type:x5e,kbUid:r,orgUid:s==null?void 0:s.uid};a(p)}).catch(f=>{console.log("Failed:",f),je.error("创建分类失败")})},u=f=>{f.key==="Enter"&&c()};return x.jsx("div",{children:x.jsx(yr,{title:l.formatMessage({id:"category.form.title",defaultMessage:"New Category"}),open:e,onOk:c,onCancel:i,children:x.jsx("div",{onKeyDown:u,children:x.jsx(Kn,{form:o,name:"categoryForm",initialValues:{name:""},submitter:{render:()=>null},children:x.jsx(Or,{label:l.formatMessage({id:"category.form.name",defaultMessage:"Category Name"}),name:"name",rules:[{required:!0,message:l.formatMessage({id:"category.form.name.required",defaultMessage:"Please enter category name!"})}]})})})})})};async function n7(e){return bn("/api/v1/category/query/org",{method:"GET",params:{...e,client:kn}})}async function D3e(e){return bn("/api/v1/category/create",{method:"POST",data:{...e,client:kn}})}async function XUt(e){return bn("/api/v1/category/update",{method:"POST",data:{...e,client:kn}})}async function ZUt(e){return bn("/api/v1/category/delete",{method:"POST",data:{...e,client:kn}})}const{Dragger:QUt}=e1,JUt=({isEdit:e,quickreply:t,open:n,myQuickReply:r,onClose:i,onSubmit:a})=>{var S;const[o]=Kn.useForm(),{translateString:s}=Zr(),l=Vr(_=>_.currentOrg),[c,u]=d.useState(),[f,p]=d.useState(vo),[h,m]=d.useState(".png,.jpg,.jpeg"),[g,v]=d.useState({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:r==null?void 0:r.key,client:kn});console.log("QuickReplyDrawer kbUid:",r==null?void 0:r.key);const y=jn();d.useEffect(()=>{e?o.setFieldsValue({type:t==null?void 0:t.type,title:t==null?void 0:t.title,content:t==null?void 0:t.content,categoryUid:t==null?void 0:t.categoryUid,kbUid:r==null?void 0:r.key}):o.resetFields()},[n]);const w=_=>{console.log(`category selected ${_}`),u(_)},b=_=>{console.log(`type selected ${_}`),p(_),_===Cl?m(".png,.jpg,.jpeg,.gif,.bmp"):_===sg?m(".mp4,.avi,.mov,.wmv"):_===Fw?m(".mp3,.wav,.flac"):_===cd&&m(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")},C=()=>{console.log("handleSubmit"),o.validateFields().then(_=>{console.log(_),a({...t,..._,kbUid:r==null?void 0:r.key,orgUid:l==null?void 0:l.uid})}).catch(_=>{console.log("Form errors:",_),je.error("请检查表单填写")})},k={name:"file",accept:h,action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:g,showUploadList:!1,beforeUpload(_){console.log("beforeUpload",_);const E=en(new Date).format("YYYYMMDDHHmmss")+"_"+_.name;g.file=_,g.file_name=E,g.file_type=_.type,g.kb_type=v5e,g.category_uid=c||"",g.kb_uid=r==null?void 0:r.key,console.log("beforeUpload",g)},onChange(_){if(_.file.status==="uploading"&&je.loading(`${_.file.name} 上传中`),_.file.status==="done")if(console.log("response: ",_.file.response),_.file.response.code===200){const E=_.file.response.data.fileUrl;o.setFieldValue("content",E),je.destroy(),je.success(`${_.file.name} 上传成功`)}else je.destroy(),je.error(`${_.file.name} 上传失败`);else _.file.status==="error"&&je.error(`${_.file.name} 上传失败`)},onDrop(_){console.log("Dropped files",_.dataTransfer.files)}};return d.useEffect(()=>{const _=$=>{console.log("keydown",$)},E=$=>{};return document.addEventListener("keydown",_),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",_),document.removeEventListener("keyup",E)}},[]),x.jsx(x.Fragment,{children:x.jsx(Sh,{title:y.formatMessage({id:"quickreply.drawer.title",defaultMessage:e?"Edit Quick Reply":"New Quick Reply"}),onClose:i,open:n,extra:x.jsxs(Xr,{children:[x.jsx(Yt,{onClick:i,children:y.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})}),x.jsx(Yt,{onClick:C,type:"primary",children:y.formatMessage({id:"common.save",defaultMessage:"Save"})})]}),children:x.jsxs(Kn,{form:o,initialValues:{...t},submitter:{render:()=>null},children:[x.jsx(ro,{label:y.formatMessage({id:"quickreply.form.category",defaultMessage:"Category"}),name:"categoryUid",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.category.required",defaultMessage:"Please select a category"})}],options:(S=r==null?void 0:r.children)==null?void 0:S.map(_=>({value:_.key,label:s(_.title)})),fieldProps:{allowClear:!0,placeholder:y.formatMessage({id:"quickreply.form.category.placeholder",defaultMessage:"Select a category"}),onChange:w}}),x.jsx(ro,{label:y.formatMessage({id:"quickreply.form.type",defaultMessage:"Type"}),name:"type",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.type.required",defaultMessage:"Please select a type"})}],options:[{label:y.formatMessage({id:"quickreply.type.text",defaultMessage:"Text"}),value:vo},{label:y.formatMessage({id:"quickreply.type.image",defaultMessage:"Image"}),value:Cl},{label:y.formatMessage({id:"quickreply.type.video",defaultMessage:"Video"}),value:sg},{label:y.formatMessage({id:"quickreply.type.audio",defaultMessage:"Audio"}),value:Fw},{label:y.formatMessage({id:"quickreply.type.file",defaultMessage:"File"}),value:cd}],fieldProps:{allowClear:!0,placeholder:y.formatMessage({id:"quickreply.form.type.placeholder",defaultMessage:"Select a type"}),onChange:b}}),x.jsx(Or,{label:y.formatMessage({id:"quickreply.form.title",defaultMessage:"Title"}),name:"title",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.title.required",defaultMessage:"Please enter a title"})}]}),x.jsx(Cd,{label:y.formatMessage({id:"quickreply.form.content",defaultMessage:"Content"}),name:"content"}),f!=vo&&x.jsxs(QUt,{...k,children:[x.jsx("p",{className:"ant-upload-drag-icon",children:x.jsx(yve,{})}),x.jsx("p",{className:"ant-upload-text",children:y.formatMessage({id:"quickreply.upload.text",defaultMessage:"Click or drag file to upload"})})]})]})})})},{Search:eWt}=Ur,tWt=()=>{const e=jn(),{translateString:t,translateStringTranct:n}=Zr(),[r]=d.useState(!1),i=Eo(N=>N.agentInfo),[a,o]=d.useState([]),[s,l]=d.useState(""),[c,u]=d.useState(!0),[f,p]=d.useState([]),[h,m]=d.useState(!1),[g,v]=d.useState(!1),[y,w]=d.useState(),[b,C]=d.useState(),k=N=>{o(N),u(!1)},S=Vr(N=>N.currentOrg),_=d.useMemo(()=>{if((s==null?void 0:s.trim().length)===0)return f;const N=[],F=L=>L.map(V=>{const B={...V},U=typeof B.title=="string"&&B.title.toLowerCase().includes(s.toLowerCase());return B.children&&(B.children=F(B.children)),U||B.children&&B.children.length>0?(B.key&&N.push(B.key),B):null}).filter(Boolean),K=F(f);return N.length>0&&(o(N),u(!0)),K},[s,f]),E=async()=>{const N={orgUid:S==null?void 0:S.uid,agentUid:i==null?void 0:i.uid},F=await KUt(N);if(je.destroy(),F.data.code===200){const K=B=>B.map(U=>{const Y=t(U.title),ee={...U,originalTitle:U.title,title:Y,displayTitle:n(U.title)};return U.children&&U.children.length>0&&(ee.children=K(U.children)),ee}),L=K(F.data.data);p(L),w(L.filter(B=>B.level===w5e)[0]);const V=L.map(B=>B.key);o(V)}else je.error(F.data.message)};d.useEffect(()=>{E()},[]);const $=N=>{const{value:F}=N.target;l(F),u(!0)},M=N=>{const F=JSON.stringify(N);$n.emit(JO,F)},P=N=>{navigator.clipboard.writeText(N.content),je.success(`${t(N.content)} 已复制到剪切板`)},R=()=>{console.log("handleCreateCategory"),m(!0)},O=()=>{console.log("handleCreateQuickReply"),v(!0)},j=async N=>{console.log("handleSubmit: ",N),r?je.loading(e.formatMessage({id:"updating"})):je.loading(e.formatMessage({id:"creating"}));const F=await D3e(N);console.log("createCategory response: ",F),F.data.code===200?(je.destroy(),r?je.success(e.formatMessage({id:"update.success"})):je.success(e.formatMessage({id:"create.success"})),m(!1),E()):(je.destroy(),je.error(F.data.message))},I=()=>{m(!1)},A=async N=>{console.log("handleSubmitDrawer",N),r?je.loading(e.formatMessage({id:"updating"})):je.loading(e.formatMessage({id:"creating"}));const F=await GUt(N);console.log("createQuickreply response:",N,F),F.data.code===200?(je.destroy(),je.loading(e.formatMessage({id:"create.success"})),v(!1),E()):(je.destroy(),je.error(F.data.message))};return d.useEffect(()=>{const N=K=>{const L=JSON.parse(K);console.log("handleQuickReplyAdd: ",L==null?void 0:L.content,L==null?void 0:L.type);const V={title:L==null?void 0:L.content,content:L==null?void 0:L.content,type:L==null?void 0:L.type};C(V),v(!0)},F=K=>{const L=JSON.parse(K);l(L==null?void 0:L.content)};return $n.on(eR,N),$n.on(Aw,F),()=>{$n.off(eR,N),$n.off(Aw,F)}},[]),x.jsxs("div",{style:{marginLeft:10,marginRight:10},children:[x.jsx(eWt,{allowClear:!0,style:{marginBottom:8},enterButton:!0,value:s,placeholder:e.formatMessage({id:"quickreply.search.placeholder",defaultMessage:"Search"}),onChange:$}),x.jsx(dz,{defaultExpandAll:!0,onExpand:k,expandedKeys:a,autoExpandParent:c,treeData:_,blockNode:!0,titleRender:N=>x.jsxs(_a,{title:N.title,children:[N.displayTitle||N.title,N.type!=y5e&&N.type!=b5e&&x.jsxs("span",{style:{float:"right"},children:[x.jsx(Yt,{type:"link",size:"small",onClick:()=>M(N),children:e.formatMessage({id:"quickreply.button.send",defaultMessage:"Send"})}),x.jsx(Yt,{type:"link",size:"small",onClick:()=>P(N),children:e.formatMessage({id:"quickreply.button.copy",defaultMessage:"Copy"})})]})]})}),h&&x.jsx(YUt,{open:h,isEdit:r,kbUid:y==null?void 0:y.key,onCancel:I,onSubmit:j}),g&&x.jsx(JUt,{isEdit:r,open:g,myQuickReply:y,quickreply:b,onClose:()=>v(!1),onSubmit:A}),x.jsxs(o3,{gap:"small",wrap:"wrap",style:{bottom:25,position:"fixed"},children:[x.jsx(Yt,{size:"small",onClick:R,disabled:(y==null?void 0:y.key)==="",children:e.formatMessage({id:"quickreply.button.create.category",defaultMessage:"Create Category"})}),x.jsx(Yt,{size:"small",onClick:O,disabled:(y==null?void 0:y.key)==="",children:e.formatMessage({id:"quickreply.button.create.reply",defaultMessage:"Create Quick Reply"})})]})]})};async function nWt(e){return bn("/api/v1/ticket/query/org",{method:"GET",params:{...e,client:kn}})}async function rWt(e){return bn("/api/v1/ticket/query/topic",{method:"GET",params:{...e,client:kn}})}async function iWt(e){return bn("/api/v1/ticket/query/thread/uid",{method:"GET",params:{...e,client:kn}})}async function aWt(e){return bn("/api/v1/ticket/create",{method:"POST",data:{...e,client:kn}})}async function oWt(e){return bn("/api/v1/ticket/update",{method:"POST",data:{...e,client:kn}})}async function sWt(e){return bn("/api/v1/ticket/delete",{method:"POST",data:{uid:e,client:kn}})}async function lWt(e){return bn("/api/v1/ticket/claim",{method:"POST",data:{...e,client:kn}})}async function cWt(e){return bn("/api/v1/ticket/start",{method:"POST",data:{...e,client:kn}})}async function uWt(e){return bn("/api/v1/ticket/unclaim",{method:"POST",data:{...e,client:kn}})}async function dWt(e){return bn("/api/v1/ticket/hold",{method:"POST",data:{...e,client:kn}})}async function Qne(e){return bn("/api/v1/ticket/resume",{method:"POST",data:{...e,client:kn}})}async function fWt(e){return bn("/api/v1/ticket/resolve",{method:"POST",data:{...e,client:kn}})}async function Jne(e){return bn("/api/v1/ticket/verify",{method:"POST",data:{...e,client:kn}})}async function pWt(e){return bn("/api/v1/ticket/close",{method:"POST",data:{...e,client:kn}})}async function hWt(e){return bn("/api/v1/ticket/history/activity",{method:"GET",params:{...e,client:kn}})}const Za={async loadTickets(e,t=3){const{setLoading:n,setError:r,setTickets:i,currentTicket:a,setCurrentTicket:o,filters:s,searchText:l,pagination:c}=ja.getState(),{memberInfo:u}=Na.getState(),f=async p=>{try{n(!0),r(null);const h={orgUid:e,pageNumber:c.pageNumber,pageSize:c.pageSize,assignmentAll:!1};if(s.status&&s.status!==b0&&(h.status=s.status),s.priority&&s.priority!==w0&&(h.priority=s.priority),s.assignment===jse?(h.assignmentAll=!1,h.reporterUid=(u==null?void 0:u.uid)||"",h.assigneeUid=""):s.assignment===Nse?(h.assignmentAll=!1,h.assigneeUid=(u==null?void 0:u.uid)||"",h.reporterUid=""):s.assignment===cR&&(h.assignmentAll=!1,h.assigneeUid=cR,h.reporterUid=""),s.time)switch(s.time){case S0:h.startDate=en().subtract(100,"years").startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Ase:h.startDate=en().startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Dse:h.startDate=en().subtract(1,"days").startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Fse:h.startDate=en().startOf("week").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case Lse:h.startDate=en().subtract(1,"week").startOf("week").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().subtract(1,"week").endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case Bse:h.startDate=en().startOf("month").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("month").format("YYYY-MM-DD HH:mm:ss");break;case zse:h.startDate=en().subtract(1,"month").startOf("month").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().subtract(1,"month").endOf("month").format("YYYY-MM-DD HH:mm:ss");break}l&&(h.searchText=l);const m=await nWt(h);if(console.log("queryTicketsFilter response",h,m.data),m.data.code===200)i(m.data.data.content),m.data.data.content.length>0&&!a?o(m.data.data.content[0]):m.data.data.content.length==0&&o(void 0);else throw new Error(m.data.message)}catch(h){if(psetTimeout(m,1e3)),f(p+1);r(h instanceof Error?h.message:"Failed to load tickets")}finally{n(!1)}};return f(1)},async loadHistoryTickets(e,t,n=3){const{setLoading:r,setError:i,setHistoryTickets:a,pagination:o}=ja.getState(),s=Vr.getState().currentOrg,l=async c=>{try{r(!0),i(null);const u={orgUid:s.uid,pageNumber:o.pageNumber,pageSize:o.pageSize,topic:e,searchText:t},f=await rWt(u);if(console.log("queryTicketByServiceThreadTopic response",u,f.data),f.data.code===200)a(f.data.data.content);else throw new Error(f.data.message)}catch(u){if(csetTimeout(f,1e3)),l(c+1);i(u instanceof Error?u.message:"Failed to load tickets")}finally{r(!1)}};return l(1)},async refreshTickets(){const e=Vr.getState().currentOrg;return this.loadTickets(e==null?void 0:e.uid)},async loadTicketsWithFilters(e){const t=Vr.getState().currentOrg,{setFilter:n}=ja.getState();return Object.entries(e).forEach(([r,i])=>{n(r,i)}),this.loadTickets(t==null?void 0:t.uid)}},mWt=Object.freeze(Object.defineProperty({__proto__:null,ticketService:Za},Symbol.toStringTag,{value:"Module"})),{Search:gWt}=Ur,{Paragraph:ere}=Zf,vWt=()=>{const e=jn(),{isDarkMode:t}=yz(),{translateString:n}=Zr(),r=Vr(C=>C.currentOrg),{historyTickets:i,loading:a,filters:o,setFilter:s}=ja(),[l,c]=d.useState([]),u=fr(C=>C.currentThread),[f,p]=d.useState(null),[h,m]=d.useState(""),g=async()=>{var C,k,S;try{const _=await n7({type:bk,orgUid:r==null?void 0:r.uid,pageNumber:0,pageSize:100});((C=_.data)==null?void 0:C.code)===200&&((S=(k=_.data)==null?void 0:k.data)!=null&&S.content)&&c(_.data.data.content)}catch(_){console.error("Fetch categories error:",_),c3.error(e.formatMessage({id:"ticket.category.load.error"}))}};d.useEffect(()=>{u!=null&&u.topic&&(Za.loadHistoryTickets(u==null?void 0:u.topic,h),g())},[u==null?void 0:u.topic]);const v=C=>{m(C),Za.loadHistoryTickets(u==null?void 0:u.topic,C)},y=C=>{switch(C){case"status":s("status",b0);break;case"priority":s("priority",w0);break;case"assignment":s("assignment",x0);break;case"time":s("time",S0);break}},w=C=>t?C?"#1f1f1f":"#141414":C?"#e6f7ff":"#ffffff",b=()=>{const C=[];return o!=null&&o.status&&o.status!==b0&&C.push(x.jsx(Vi,{color:Vw(o.status),closable:!0,onClose:()=>y("status"),children:e.formatMessage({id:`ticket.filter.status_${o.status.toLowerCase()}`})},"status")),o!=null&&o.priority&&o.priority!==w0&&C.push(x.jsx(Vi,{color:Lk(o.priority),closable:!0,onClose:()=>y("priority"),children:e.formatMessage({id:`ticket.filter.priority_${o.priority.toLowerCase()}`})},"priority")),o!=null&&o.assignment&&o.assignment!==x0&&C.push(x.jsx(Vi,{color:"blue",closable:!0,onClose:()=>y("assignment"),children:e.formatMessage({id:`ticket.filter.assignment_${o.assignment.toLowerCase()}`})},"assignment")),o!=null&&o.time&&o.time!==S0&&C.push(x.jsx(Vi,{color:"purple",closable:!0,onClose:()=>y("time"),children:e.formatMessage({id:`ticket.filter.time_${o.time.toLowerCase()}`})},"time")),C};return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{style:{padding:"10px 16px 16px",backgroundColor:t?"#141414":"#ffffff",borderBottom:"1px solid #f0f0f0"},children:[x.jsx(gWt,{placeholder:e.formatMessage({id:"ticket.list.search.placeholder"}),onSearch:v,style:{width:"100%"},allowClear:!0,enterButton:x.jsx(X8,{})}),x.jsx("div",{style:{marginTop:10},children:x.jsxs(Xr,{direction:"vertical",style:{width:"100%"},children:[b().length>0&&x.jsxs("div",{children:[x.jsxs("span",{style:{marginRight:8},children:[e.formatMessage({id:"ticket.current.filters"}),":"]}),x.jsx(Xr,{size:[0,8],wrap:!0,children:b()})]}),x.jsx("div",{children:x.jsxs(Vi,{color:"blue",children:[e.formatMessage({id:"ticket.list.total"}),": ",i.length]})})]})})]}),x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(Yn,{loading:a,dataSource:i,renderItem:C=>{var k,S;return x.jsx(Yn.Item,{onClick:()=>p(C),style:{cursor:"pointer",padding:"8px 16px",backgroundColor:w((f==null?void 0:f.uid)===C.uid),transition:"background-color 0.3s"},children:x.jsx(Yn.Item.Meta,{title:x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{marginRight:10,color:t?"#ffffff":void 0},children:C.title}),x.jsx(Vi,{color:Vw(C.status),children:e.formatMessage({id:`ticket.filter.status_${C.status.toLowerCase()}`})}),x.jsx(Vi,{color:Lk(C.priority),children:e.formatMessage({id:`ticket.filter.priority_${C.priority.toLowerCase()}`})})]}),description:x.jsxs(x.Fragment,{children:[x.jsxs(Xr,{direction:"vertical",style:{marginBottom:10},children:[x.jsxs(Vi,{color:"blue",children:[e.formatMessage({id:"ticket.type"}),": ",C.type===lR?e.formatMessage({id:"ticket.type.agent"}):e.formatMessage({id:"ticket.type.workgroup"})]}),x.jsxs(Vi,{color:"purple",children:[e.formatMessage({id:"ticket.reporter"}),": ",(k=C.reporter)==null?void 0:k.nickname]}),x.jsxs(Vi,{color:"orange",children:[e.formatMessage({id:"ticket.category"}),": ",n((S=l.find(_=>_.uid===C.categoryUid))==null?void 0:S.name)]})]}),x.jsx(ere,{ellipsis:{rows:1},style:{margin:0},children:C.description}),x.jsx(ere,{ellipsis:{rows:1},style:{margin:0},children:new Date(C.updatedAt).toLocaleString()})]})})})},locale:{emptyText:e.formatMessage({id:"ticket.list.empty"})}})})]})},yWt=so(e=>({activeKey:"quickreply",defaultKey:"quickreply",setActiveKey:t=>e({activeKey:t}),setDefaultKey:t=>e({defaultKey:t}),resetActiveKey:()=>e({activeKey:"quickreply"})})),dU=({file:e,onDelete:t,showDelete:n=!0})=>{var i,a;const r=jn();return x.jsxs("div",{style:{position:"relative",width:"50px",height:"50px",border:"1px solid #f0f0f0",borderRadius:"4px",overflow:"hidden"},title:r.formatMessage({id:(i=e==null?void 0:e.fileType)!=null&&i.startsWith("image/")?"upload.preview.image":"upload.preview.file"}),children:[n&&x.jsx(Yt,{type:"text",size:"small",icon:x.jsx(Y8,{}),onClick:()=>t(e.uid),style:{position:"absolute",top:0,right:0,padding:"2px",background:"rgba(255, 255, 255, 0.8)",border:"none",borderRadius:"0 4px 0 4px",zIndex:1}}),x.jsx("div",{onClick:()=>window.open(e.fileUrl,"_blank"),style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(a=e==null?void 0:e.fileType)!=null&&a.startsWith("image/")?x.jsx("img",{src:e==null?void 0:e.fileUrl,alt:e==null?void 0:e.fileName,style:{width:"100%",height:"100%",objectFit:"cover"}}):x.jsx("div",{style:{fontSize:"12px",padding:"4px",textAlign:"center",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.fileName})}),x.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0, 0, 0, 0.5)",color:"#fff",fontSize:"10px",padding:"2px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.fileName})]},e.uid)},F3e=({ticket:e,isThreadTicket:t=!1,onEdit:n,onDelete:r})=>{var y,w,b,C;const i=jn(),{translateString:a}=Zr(),o=Vr(k=>k.currentOrg),s=Eo(k=>k.agentInfo),[l,c]=d.useState([]),[u,f]=d.useState([]),p=ja(k=>k.currentTicket),h=ja(k=>k.setCurrentTicket),m=fr(k=>k.currentThread),g=async()=>{var k,S,_;try{const E=await n7({type:bk,orgUid:o==null?void 0:o.uid,pageNumber:0,pageSize:100});((k=E.data)==null?void 0:k.code)===200&&((_=(S=E.data)==null?void 0:S.data)!=null&&_.content)&&f(E.data.data.content)}catch(E){console.error("Fetch categories error:",E),je.error(i.formatMessage({id:"ticket.category.load.error"}))}},v=async()=>{var k,S,_,E,$,M;try{const P=await iWt({pageNumber:0,pageSize:1,threadUid:m==null?void 0:m.uid,orgUid:o==null?void 0:o.uid});console.log("queryTicketByThreadUid response",P.data),((k=P.data)==null?void 0:k.code)===200&&((_=(S=P.data)==null?void 0:S.data)!=null&&_.content)&&((M=($=(E=P.data)==null?void 0:E.data)==null?void 0:$.content)==null?void 0:M.length)>0?h(P.data.data.content[0]):h(void 0)}catch(P){console.error("Fetch ticket error:",P),je.error(i.formatMessage({id:"ticket.details.load.error"}))}};return d.useEffect(()=>{g(),t?v():h(e)},[m==null?void 0:m.uid,t,e]),d.useEffect(()=>{var k;p&&c((k=p==null?void 0:p.attachments)==null?void 0:k.map(S=>S.upload))},[p]),p?x.jsxs("div",{style:{padding:"16px"},children:[x.jsxs(ls,{bordered:!0,column:1,size:"small",styles:{label:{width:"90px"}},children:[x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.uid"}),children:(p==null?void 0:p.uid)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.title"}),children:(p==null?void 0:p.title)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.description"}),children:x.jsx("div",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:(p==null?void 0:p.description)||"-"})}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.status"}),children:x.jsx(Vi,{color:Vw(p==null?void 0:p.status),children:i.formatMessage({id:`ticket.status.${p==null?void 0:p.status.toLowerCase()}`})})}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.priority"}),children:x.jsx(Vi,{color:"red",children:i.formatMessage({id:`ticket.priority.${p==null?void 0:p.priority.toLowerCase()}`})})}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.type"}),children:(p==null?void 0:p.type)===lR?i.formatMessage({id:"ticket.type.agent"}):i.formatMessage({id:"ticket.type.department"})}),(p==null?void 0:p.type)===lR&&x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.assignee"}),children:a((y=p==null?void 0:p.assignee)==null?void 0:y.nickname)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.reporter"}),children:((w=p==null?void 0:p.reporter)==null?void 0:w.nickname)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.category"}),children:a((b=u.find(k=>k.uid===(p==null?void 0:p.categoryUid)))==null?void 0:b.name)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.createdAt"}),children:new Date(p==null?void 0:p.createdAt).toLocaleString()}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.updatedAt"}),children:new Date(p==null?void 0:p.updatedAt).toLocaleString()})]}),x.jsx("div",{style:{marginTop:"6px",marginBottom:"6px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:l.map(k=>x.jsx(dU,{file:k,showDelete:!1},k.uid))})}),(p==null?void 0:p.status)===lg&&(s==null?void 0:s.uid)===((C=p==null?void 0:p.reporter)==null?void 0:C.uid)&&x.jsx(x.Fragment,{children:x.jsxs(Xr,{direction:"horizontal",style:{marginTop:"6px"},children:[x.jsx(Yt,{type:"primary",icon:x.jsx(Em,{}),block:!0,onClick:n,children:i.formatMessage({id:"ticket.action.edit"})}),x.jsx(Yt,{danger:!0,icon:x.jsx(Y8,{}),block:!0,onClick:r,children:i.formatMessage({id:"ticket.action.delete"})})]})})]}):x.jsx(za,{description:i.formatMessage({id:"ticket.details.empty"}),style:{marginTop:"20%"}})},L3e=({isThreadTicket:e=!1})=>{const t=Vr(g=>g.currentOrg),n=ja(g=>g.currentTicket),[r,i]=d.useState([]),[a,o]=d.useState(!1),s=jn(),{memberResult:l,setMemberResult:c}=Na(),u=async()=>{if(n)try{o(!0);const g={pageNumber:0,pageSize:100,uid:n==null?void 0:n.uid},v=await hWt(g);console.log("queryTicketHistoryActivity response:",v.data),v.data.code===200?i(v.data.data||[]):(console.log("queryTicketHistoryActivity error:",v.data),je.error(v.data.message)),o(!1)}catch(g){console.error("Fetch ticket history error:",g),je.error("获取工单历史记录失败"),o(!1)}},f=async()=>{je.loading("loading");const g={pageNumber:0,pageSize:50,orgUid:t==null?void 0:t.uid},v=await t$(g);v.data.code===200?(je.destroy(),c(v.data)):je.destroy()};d.useEffect(()=>{e||(u(),f())},[n]);const p=g=>g?g===lg||g===Rse||g===Y3||g===Ise||g===ly||g===X3||g===Z3||g===PF||g===Q3||g===J3||g===$5e||g===e4||g===t4?s.formatMessage({id:`ticket.status.${g.toLowerCase()}`}):g:"",h=g=>{if(!g)return"-";const v=l.data.content.find(y=>y.uid===g);return(v==null?void 0:v.nickname)||""},m=()=>r.map((g,v)=>{var y;return{title:p(g==null?void 0:g.activityName)||"活动",description:x.jsxs("div",{children:[(g==null?void 0:g.assignee)&&x.jsxs("div",{children:["处理人: ",h(g==null?void 0:g.assignee)||(g==null?void 0:g.assignee)]}),x.jsxs("div",{children:["处理时间: ",((y=g.startTime)==null?void 0:y.toLocaleString())||"-"]})]}),status:v===r.length-1?"process":"finish"}});return x.jsxs(x.Fragment,{children:[x.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 16px"},children:[x.jsx("h4",{style:{margin:0},children:s.formatMessage({id:"ticket.activity.history"})||"工单活动记录"}),x.jsx(Yt,{type:"primary",icon:x.jsx(X8,{}),size:"small",onClick:u,loading:a,children:s.formatMessage({id:"common.refresh"})||"刷新"})]}),x.jsxs(Zo,{spinning:a,children:[x.jsx($ve,{direction:"vertical",size:"small",current:r.length-1,style:{padding:"16px"},items:m()}),r.length===0&&x.jsx(za,{description:"请选择工单查看流转过程"})]})]})},bWt=()=>{const e=jn(),{locale:t}=d.useContext(Ea),n=fr(u=>u.currentThread),{activeKey:r,setActiveKey:i,defaultKey:a}=yWt(),[o,s]=d.useState([]),[l]=ja(u=>[u.currentThreadTicket]);d.useEffect(()=>{},[n]),d.useEffect(()=>{const u=[{key:"quickreply",label:e.formatMessage({id:"chat.right.quickreply"}),children:x.jsx(tWt,{})},{key:"userinfo",label:e.formatMessage({id:"chat.right.userinfo"}),children:x.jsx(qUt,{})}];Rf(n)?(u.splice(0,0,{key:"ai",label:e.formatMessage({id:"chat.right.ai"}),children:x.jsx(MUt,{})}),u.push({key:"ticket",label:e.formatMessage({id:"chat.right.ticket"}),children:x.jsx(vWt,{})}),s(u)):Dk(n)?s([{key:"ticket-details",label:e.formatMessage({id:"ticket.details.title"}),children:x.jsx(F3e,{ticket:l,isThreadTicket:!0})},{key:"ticket-steps",label:e.formatMessage({id:"ticket.steps.title"}),children:x.jsx(L3e,{ticket:l})}]):s([])},[n,e,t]);const c=u=>{i(u)};return d.useEffect(()=>{const u=()=>{i("ai")},f=()=>{i("quickreply")},p=()=>{i("userinfo")};return $n.on(Nw,u),$n.on(Aw,f),$n.on(tR,p),()=>{$n.off(Nw,u),$n.off(Aw,f),$n.off(tR,p)}},[]),o.length===0?null:x.jsx(x.Fragment,{children:x.jsx(Yg,{centered:!0,activeKey:r,defaultActiveKey:a,items:o,onChange:c})})};function r7(){const[e,t]=d.useState(!0);return d.useEffect(()=>{function n(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&t(!0)}function r(){console.log("networkStatus offline:",!navigator.onLine),t(!1)}return window.addEventListener("online",n),window.addEventListener("offline",r),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}},[]),e}function B3e(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;td.useContext(z3e),U3e=e=>te.createElement(z3e.Provider,{...e});function wWt(){let e=new Map;return{on(t,n){return e.has(t)?e.get(t).add(n):e.set(t,new Set([n])),this},off(t,n){return e.has(t)&&e.get(t).delete(n),this},emit(t,n){return e.has(t)&&e.get(t).forEach(r=>{r(n)}),this}}}var c5=wWt(),W3e=()=>d.useRef(new Map).current,xWt=()=>{},tre=["resize","contextmenu","click","scroll","blur"],jA={show({event:e,id:t,props:n,position:r}){e.preventDefault&&e.preventDefault(),c5.emit(0).emit(t,{event:e.nativeEvent||e,props:n,position:r})},hideAll(){c5.emit(0)}};function V3e(e){return{show(t){jA.show({...e,...t})},hideAll(){jA.hideAll()}}}function SWt(){let e=new Map,t,n,r,i,a=!1;function o(v){i=Array.from(v.values()),t=-1,r=!0}function s(){i[t].node.focus()}let l=()=>t>=0&&i[t].isSubmenu,c=()=>Array.from(i[t].submenuRefTracker.values());function u(){return t===-1?(f(),!1):!0}function f(){t+10?(t=0,i=v):a=!0,r=!1,s(),!0}return!1}function m(){if(u()&&!r){let v=e.get(n);n.classList.remove("contexify_submenu-isOpen"),i=v.items,n=v.parentNode,v.isRoot&&(r=!0,e.clear()),a||(t=v.focusedIndex,s())}}function g(v){function y(w){for(let b of w)b.isSubmenu&&b.submenuRefTracker&&y(Array.from(b.submenuRefTracker.values())),b.keyMatcher&&b.keyMatcher(v)}y(i)}return{init:o,moveDown:f,moveUp:p,openSubmenu:h,closeSubmenu:m,matchKeys:g}}function R3(e){return typeof e=="function"}function nre(e){return typeof e=="string"}function q3e(e,t){return d.Children.map(d.Children.toArray(e).filter(Boolean),n=>d.cloneElement(n,t))}function CWt(e){let t={x:e.clientX,y:e.clientY},n=e.changedTouches;return n&&(t.x=n[0].clientX,t.y=n[0].clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function I3(e,t){return R3(e)?e(t):e}function _Wt(e,t){return{...e,...R3(t)?t(e):t}}var K3e=({id:e,theme:t,style:n,className:r,children:i,animation:a="fade",preventDefaultOnKeydown:o=!0,disableBoundariesCheck:s=!1,onVisibilityChange:l,...c})=>{let[u,f]=d.useReducer(_Wt,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),p=d.useRef(null),h=W3e(),[m]=d.useState(()=>SWt()),g=d.useRef(),v=d.useRef();d.useEffect(()=>(c5.on(e,w).on(0,b),()=>{c5.off(e,w).off(0,b)}),[e,a,s]),d.useEffect(()=>{u.visible?m.init(h):h.clear()},[u.visible,m,h]);function y(O,j){if(p.current&&!s){let{innerWidth:I,innerHeight:A}=window,{offsetWidth:N,offsetHeight:F}=p.current;O+N>I&&(O-=O+N-I),j+F>A&&(j-=j+F-A)}return{x:O,y:j}}d.useEffect(()=>{u.visible&&f(y(u.x,u.y))},[u.visible]),d.useEffect(()=>{function O(I){o&&I.preventDefault()}function j(I){switch(I.key){case"Enter":case" ":m.openSubmenu()||b();break;case"Escape":b();break;case"ArrowUp":O(I),m.moveUp();break;case"ArrowDown":O(I),m.moveDown();break;case"ArrowRight":O(I),m.openSubmenu();break;case"ArrowLeft":O(I),m.closeSubmenu();break;default:m.matchKeys(I);break}}if(u.visible){window.addEventListener("keydown",j);for(let I of tre)window.addEventListener(I,b)}return()=>{window.removeEventListener("keydown",j);for(let I of tre)window.removeEventListener(I,b)}},[u.visible,m,o]);function w({event:O,props:j,position:I}){O.stopPropagation();let A=I||CWt(O),{x:N,y:F}=y(A.x,A.y);Va.flushSync(()=>{f({visible:!0,willLeave:!1,x:N,y:F,triggerEvent:O,propsFromTrigger:j})}),clearTimeout(v.current),!g.current&&R3(l)&&(l(!0),g.current=!0)}function b(O){O!=null&&(O.button===2||O.ctrlKey)&&O.type!=="contextmenu"||(a&&(nre(a)||"exit"in a&&a.exit)?f(j=>({willLeave:j.visible})):f(j=>({visible:j.visible?!1:j.visible})),v.current=setTimeout(()=>{R3(l)&&l(!1),g.current=!1}))}function C(){u.willLeave&&u.visible&&Va.flushSync(()=>f({visible:!1,willLeave:!1}))}function k(){return nre(a)?Uv({[`contexify_willEnter-${a}`]:S&&!P,[`contexify_willLeave-${a} contexify_willLeave-'disabled'`]:S&&P}):a&&"enter"in a&&"exit"in a?Uv({[`contexify_willEnter-${a.enter}`]:a.enter&&S&&!P,[`contexify_willLeave-${a.exit} contexify_willLeave-'disabled'`]:a.exit&&S&&P}):null}let{visible:S,triggerEvent:_,propsFromTrigger:E,x:$,y:M,willLeave:P}=u,R=Uv("contexify",r,{[`contexify_theme-${t}`]:t},k());return te.createElement(U3e,{value:h},S&&te.createElement("div",{...c,className:R,onAnimationEnd:C,style:{...n,left:$,top:M,opacity:1},ref:p,role:"menu"},q3e(i,{propsFromTrigger:E,triggerEvent:_})))},ci=({id:e,children:t,className:n,style:r,triggerEvent:i,data:a,propsFromTrigger:o,keyMatcher:s,onClick:l=xWt,disabled:c=!1,hidden:u=!1,closeOnClick:f=!0,handlerEvent:p="onClick",...h})=>{let m=d.useRef(),g=H3e(),v={id:e,data:a,triggerEvent:i,props:o},y=I3(c,v),w=I3(u,v);function b(_){v.event=_,_.stopPropagation(),y||(f?C():l(v))}function C(){let _=m.current;_.focus(),_.addEventListener("animationend",()=>setTimeout(jA.hideAll),{once:!0}),_.classList.add("contexify_item-feedback"),l(v)}function k(_){_&&!y&&(m.current=_,g.set(_,{node:_,isSubmenu:!1,keyMatcher:!y&&R3(s)&&(E=>{s(E)&&(E.stopPropagation(),E.preventDefault(),v.event=E,C())})}))}function S(_){(_.key==="Enter"||_.key===" ")&&(_.stopPropagation(),v.event=_,C())}return w?null:te.createElement("div",{...h,[p]:b,className:Uv("contexify_item",n,{"contexify_item-disabled":y}),style:r,onKeyDown:S,ref:k,tabIndex:-1,role:"menuitem","aria-disabled":y},te.createElement("div",{className:"contexify_itemContent"},t))},Wv=({triggerEvent:e,data:t,propsFromTrigger:n,hidden:r=!1})=>I3(r,{data:t,triggerEvent:e,props:n})?null:te.createElement("div",{className:"contexify_separator"}),kWt=()=>te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},te.createElement("polyline",{points:"9 18 15 12 9 6"})),EWt=({className:e,...t})=>te.createElement("div",{className:Uv("contexify_rightSlot",e),...t}),rre=({arrow:e,children:t,disabled:n=!1,hidden:r=!1,label:i,className:a,triggerEvent:o,propsFromTrigger:s,style:l,...c})=>{let u=H3e(),f=W3e(),p=d.useRef(null),h={triggerEvent:o,props:s},m=I3(n,h),g=I3(r,h);function v(){let b=p.current;if(b){let C="contexify_submenu-bottom",k="contexify_submenu-right";b.classList.remove(C,k);let S=b.getBoundingClientRect();S.right>window.innerWidth&&b.classList.add(k),S.bottom>window.innerHeight&&b.classList.add(C)}}function y(b){b&&!m&&u.set(b,{node:b,isSubmenu:!0,submenuRefTracker:f,setSubmenuPosition:v})}if(g)return null;let w=Uv("contexify_item",a,{"contexify_item-disabled":m});return te.createElement(U3e,{value:f},te.createElement("div",{...c,className:w,ref:y,tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":m,onMouseEnter:v,onTouchStart:v},te.createElement("div",{className:"contexify_itemContent",onClick:b=>b.stopPropagation()},i,te.createElement(EWt,null,e||te.createElement(kWt,null))),te.createElement("div",{className:"contexify contexify_submenu",ref:p,style:l},q3e(t,{propsFromTrigger:s,triggerEvent:o}))))};/*! ***************************************************************************** +`,EUt=Su($we)` +`,$Ut=()=>{const{translateString:e}=Zr(),{isDarkMode:t,locale:n}=d.useContext(Ea),r=fr($=>$.currentThread),i=ia($=>$.userInfo),a=Eo($=>$.agentInfo),[o,s]=d.useState(null),[l,c]=d.useState(null),u=[],[f,p]=d.useState(u),{messages:h,resetList:m}=uwe([]),{messageList:g,addMessage:v,addMessageProtobuf:y}=ZFt($=>({messageList:$.messageList,addMessage:$.addMessage,addMessageProtobuf:$.addMessageProtobuf,addMessageList:$.addMessageList,updateMessage:$.updateMessage}));d.useEffect(()=>{p(u)},[n]);const w=()=>{var M,P,R;const $={uid:"df_welcome_uid",type:vo,status:Dw,createdAt:Pv(),client:_n,content:"您好,我是客服助手小微,有什么可以帮助您的吗?",user:{uid:(M=l==null?void 0:l.user)==null?void 0:M.uid,avatar:(P=l==null?void 0:l.user)==null?void 0:P.avatar,nickname:(R=l==null?void 0:l.user)==null?void 0:R.nickname},topic:l==null?void 0:l.topic};console.log("addWelcomeMessage:",$),v($)};d.useEffect(()=>{S()},[r]),d.useEffect(()=>{l!=null&&w()},[l]);const b=$=>{const{_id:M,type:P,content:R}=$;switch(P){case Cse:case vo:return x.jsx(x.Fragment,{children:x.jsx(qu,{content:e(R),isRichText:vde(R)})});case $f:return x.jsx(x.Fragment,{children:x.jsx(O3e,{uid:M.toString(),content:R,thread:l})});default:return x.jsx(x.Fragment,{children:x.jsx(qu,{content:R})})}},C=($,M)=>{console.log("QuickButton:",$,M),$.type},k=($,M)=>{if(console.log("handleSend",$,M),l===null)return;const P=Ba(),R=yde(l,i,a,P,vo,M,Pv());console.log("handleSend messageResponse:",R),v(R);const O=SL(l,i,a,P,vo,M,Pv());$le(JSON.stringify(O),function(j){console.log("sendSseMessage receive: ",j),y(j)})},S=async()=>{if(l!=null)return;const M={agent:JSON.stringify({uid:M5e}),forceNew:!1,hide:!0,client:_n},P=await XH(M);console.log("startAgentAssistantChat response:",M,P.data),P.data.code===200?c(P.data.data):je.error(P.data.message)},_=$=>{var M;return((M=$==null?void 0:$.user)==null?void 0:M.uid)===(i==null?void 0:i.uid)?"right":"left"};d.useEffect(()=>{const $=[];g.forEach(M=>{var R,O;let P=!1;(M==null?void 0:M.topic)===(l==null?void 0:l.topic)&&(P=!0),P&&$.push({_id:M==null?void 0:M.uid,type:M==null?void 0:M.type,status:M==null?void 0:M.status,hasTime:!0,createdAt:en(M==null?void 0:M.createdAt).toDate().getTime(),content:M==null?void 0:M.content,position:_(M),user:{avatar:(R=M==null?void 0:M.user)==null?void 0:R.avatar,name:(O=M==null?void 0:M.user)==null?void 0:O.nickname}})}),m($)},[g,l]),d.useEffect(()=>{l&&o&&k("text",o==null?void 0:o.content)},[l,o]),d.useEffect(()=>{const $=M=>{console.log("EVENT_BUS_ASK_AI_COPILOT");const P=JSON.parse(M);console.log("messageObject:",P),s(P),l===null&&S()};return $n.on(Nw,$),()=>{$n.off(Nw,$)}},[]);const E={"@":[{value:"all",label:"所有人"}],"/":[{value:"test1",label:"Test1"}]};return x.jsxs(kUt,{children:[t&&x.jsx(qH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:bse})}),x.jsx(EUt,{messages:h,renderMessageContent:b,onSend:k,quickReplies:f,onQuickReplyClick:C,metionOptions:E})]})};async function R3e(e){return gn("/api/v1/visitor/query/uid",{method:"GET",params:{uid:e,client:_n}})}async function MUt(e){return gn("/api/v1/visitor/update",{method:"POST",data:{...e,client:_n}})}async function TUt(e){return gn("/api/v1/visitor/update/tagList",{method:"POST",data:{...e,client:_n}})}const v1=so()(Jo(es(ts(e=>({currentVisitor:{nickname:"",user:{uid:"",avatar:""}},setCurrentVisitor(t){e({currentVisitor:t})},resetVisitors:()=>e({currentVisitor:{nickname:""}})})),{name:C6e})));async function PUt(e){return gn("/api/v1/thread/query",{method:"GET",params:{...e}})}async function OUt(e){return gn("/api/v1/thread/query/uid",{method:"GET",params:{uid:e}})}async function I3e(e){return gn("/api/v1/thread/create",{method:"POST",data:{...e}})}async function RUt(e){return gn("/api/v1/thread/update/top",{method:"POST",data:{...e}})}async function IUt(e){return gn("/api/v1/thread/update/star",{method:"POST",data:{...e}})}async function jUt(e){return gn("/api/v1/thread/update/mute",{method:"POST",data:{...e}})}async function j3e(e){return gn("/api/v1/thread/update/user",{method:"POST",data:{...e}})}async function NUt(e){return gn("/api/v1/thread/update/tagList",{method:"POST",data:{...e}})}async function N3e(e){return gn("/api/v1/thread/update/unread",{method:"POST",data:{...e}})}async function AUt(e){return gn("/api/v1/thread/close",{method:"POST",data:{...e}})}async function DUt(e){return gn("/api/v1/thread/accept",{method:"POST",data:{...e}})}const FUt=()=>{const e=jn(),[t]=Kn.useForm(),{currentVisitor:n,setCurrentVisitor:r}=v1(),{currentThread:i,setCurrentThread:a}=fr(),[o,s]=d.useState({nickname:!1,mobile:!1,email:!1,note:!1});console.log("BasicInfo render:",n),d.useEffect(()=>{t.setFieldsValue({nickname:n==null?void 0:n.nickname,mobile:n==null?void 0:n.mobile,email:n==null?void 0:n.email,note:n==null?void 0:n.note})},[n,t]);const l=p=>{t.setFieldsValue({[p]:n[p]}),s(h=>({...h,[p]:!0}))},c=async p=>{var h,m,g,v,y;try{const w=await t.validateFields([p]),b={uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,mobile:n==null?void 0:n.mobile,email:n==null?void 0:n.email,note:n==null?void 0:n.note,[p]:w[p]},C=await MUt(b);console.log("updateVisitor:",b,C.data),C.data.code===200&&(je.success(e.formatMessage({id:"customer.basic.update.success",defaultMessage:"Updated successfully"})),r((h=C==null?void 0:C.data)==null?void 0:h.data),s(k=>({...k,[p]:!1})),u({uid:(g=(m=C==null?void 0:C.data)==null?void 0:m.data)==null?void 0:g.uid,nickname:(v=C==null?void 0:C.data)==null?void 0:v.data.nickname,avatar:(y=C==null?void 0:C.data)==null?void 0:y.data.avatar,type:K6e}))}catch(w){console.error("Update failed:",w),je.error(e.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},u=async p=>{var h;try{const m={uid:i==null?void 0:i.uid,user:p},g=await j3e(m);console.log("updateThreadUser:",m,g.data),g.data.code===200&&a((h=g==null?void 0:g.data)==null?void 0:h.data)}catch(m){console.error("Update failed:",m),je.error(e.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},f=p=>{t.setFieldValue(p,n[p]),s(h=>({...h,[p]:!1}))};return x.jsxs(Kn,{form:t,layout:"vertical",submitter:!1,children:[x.jsx(Or,{name:"nickname",label:e.formatMessage({id:"customer.basic.nickname",defaultMessage:"Nickname"}),rules:[{required:!0,message:"Please input nickname!"}],disabled:!o.nickname,addonAfter:o.nickname?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("nickname"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("nickname"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("nickname"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Or,{name:"mobile",label:"手机号",disabled:!o.mobile,addonAfter:o.mobile?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("mobile"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("mobile"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("mobile"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Or,{name:"email",label:"邮箱",rules:[{type:"email",message:"Please input valid email!"}],disabled:!(o!=null&&o.email),addonAfter:o.email?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("email"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("email"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("email"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})}),x.jsx(Cd,{name:"note",label:e.formatMessage({id:"customer.basic.note",defaultMessage:"Note"}),fieldProps:{rows:4},disabled:!(o!=null&&o.note),addonAfter:o.note?x.jsxs(Xr,{children:[x.jsx(Yt,{type:"primary",onClick:()=>c("note"),children:e.formatMessage({id:"common.save",defaultMessage:"Save"})}),x.jsx(Yt,{onClick:()=>f("note"),children:e.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})})]}):x.jsx(Yt,{type:"link",icon:x.jsx(Em,{}),onClick:()=>l("note"),children:e.formatMessage({id:"customer.basic.edit",defaultMessage:"Edit"})})})]})},LUt=d.memo(FUt),BUt={name:"名称",version:"版本",major:"主版本号",vendor:"厂商",model:"型号",type:"类型",architecture:"架构"},s2={browserName:{Chrome:"谷歌浏览器",Firefox:"火狐浏览器",Safari:"Safari浏览器",Edge:"Edge浏览器",IE:"IE浏览器",Opera:"Opera浏览器"},deviceType:{mobile:"移动设备",tablet:"平板设备",desktop:"桌面设备",console:"游戏机",smarttv:"智能电视",wearable:"可穿戴设备",embedded:"嵌入式设备"},osName:{Windows:"Windows",iOS:"iOS",Android:"安卓","Mac OS":"macOS",Linux:"Linux",Ubuntu:"Ubuntu",CentOS:"CentOS"},vendor:{Apple:"苹果",Samsung:"三星",Huawei:"华为",Xiaomi:"小米",OPPO:"OPPO",vivo:"vivo",Google:"谷歌",OnePlus:"一加",LG:"LG",Sony:"索尼",Microsoft:"微软"},model:{Macintosh:"Mac电脑",iPhone:"iPhone",iPad:"iPad",iPod:"iPod",Pixel:"Pixel手机",Galaxy:"Galaxy系列"}},_P=(e,t)=>{if(!e)return x.jsx("p",{children:"暂无信息"});try{const n=typeof e=="string"?JSON.parse(e):e;if(!n||typeof n!="object")return x.jsx("p",{children:"无效设备信息"});const r=Object.keys(n);return x.jsx(x.Fragment,{children:r.map(i=>{const a=BUt[i]||i;let o=n[i];if(i==="name")t==="browser"?o=s2.browserName[n[i]]||n[i]:t==="os"&&(o=s2.osName[n[i]]||n[i]);else if(i==="vendor")o=s2.vendor[n[i]]||n[i];else if(i==="type")o=s2.deviceType[n[i]]||n[i];else if(i==="model"){for(const[s,l]of Object.entries(s2.model))if(n[i].includes(s)){o=n[i].replace(s,l);break}}return x.jsxs("p",{children:[a,": ",o]},i)})})}catch(n){return console.error("解析设备信息时出错:",n,e),x.jsx("p",{children:"解析设备信息出错"})}},{Title:kP}=Zf,zUt=()=>{var n,r,i;const e=jn(),t=v1(a=>a.currentVisitor);return x.jsxs(x.Fragment,{children:[x.jsx(kP,{level:5,children:e.formatMessage({id:"customer.info.browser",defaultMessage:"Browser Info"})}),_P((n=t==null?void 0:t.device)==null?void 0:n.browser,"browser"),x.jsx(kP,{level:5,children:e.formatMessage({id:"customer.info.os",defaultMessage:"OS Info"})}),_P((r=t==null?void 0:t.device)==null?void 0:r.os,"os"),x.jsx(kP,{level:5,children:e.formatMessage({id:"customer.info.device",defaultMessage:"Device Info"})}),_P((i=t==null?void 0:t.device)==null?void 0:i.device,"device")]})},Zne={width:64,height:22,marginInlineEnd:8,verticalAlign:"top"},HUt=()=>{const{token:e}=zo.useToken(),t=jn(),{currentVisitor:n,setCurrentVisitor:r}=v1(),[i,a]=d.useState((n==null?void 0:n.tagList)||[]),[o,s]=d.useState(!1),[l,c]=d.useState(""),[u,f]=d.useState(-1),[p,h]=d.useState(""),m=d.useRef(null),g=d.useRef(null),{currentThread:v,setCurrentThread:y}=fr();d.useEffect(()=>{var P;o&&((P=m.current)==null||P.focus())},[o]),d.useEffect(()=>{a((n==null?void 0:n.tagList)||[])},[n]),d.useEffect(()=>{var P;(P=g.current)==null||P.focus()},[p]);const w=async P=>{const R=i.filter(O=>O!==P);await E(R)},b=()=>{s(!0)},C=P=>{c(P.target.value)},k=async()=>{if(l&&!i.includes(l)){const P=[...i,l];await E(P)}s(!1),c("")},S=P=>{h(P.target.value)},_=async()=>{const P=[...i];P[u]=p,await E(P),f(-1),h("")},E=async P=>{try{const R={uid:n==null?void 0:n.uid,tagList:P},O=await TUt(R);console.log("updateTags response:",O.data,R),O.data.code===200&&(je.success("标签更新成功"),a(P),r(O.data.data),$(P))}catch(R){console.error("标签更新失败:",R),je.error("标签更新失败")}},$=async P=>{var R;try{const O={uid:v==null?void 0:v.uid,tagList:P},j=await NUt(O);console.log("updateThreadUser:",O,j.data),j.data.code===200&&y((R=j==null?void 0:j.data)==null?void 0:R.data)}catch(O){console.error("Update failed:",O),je.error(t.formatMessage({id:"customer.basic.update.failed",defaultMessage:"Update failed"}))}},M={height:22,background:e.colorBgContainer,borderStyle:"dashed"};return x.jsxs(o3,{gap:"4px 0",wrap:!0,children:[i.map((P,R)=>{if(u===R)return x.jsx(Ur,{ref:g,size:"small",style:Zne,value:p,onChange:S,onBlur:_,onPressEnter:_},P);const O=P.length>20,j=x.jsx(Vi,{closable:!0,style:{userSelect:"none"},onClose:()=>w(P),color:"blue",children:x.jsx("span",{onDoubleClick:I=>{R!==0&&(f(R),h(P),I.preventDefault())},children:O?`${P.slice(0,20)}...`:P})},P);return O?x.jsx(_a,{title:P,children:j},P):j}),o?x.jsx(Ur,{ref:m,type:"text",size:"small",style:Zne,value:l,onChange:C,onBlur:k,onPressEnter:k}):x.jsx(Vi,{style:M,icon:x.jsx(Ny,{}),onClick:b,children:"添加标签"})]})},UUt=()=>{const e=v1(t=>t.currentVisitor);return console.log("visitor:",e),x.jsx("div",{children:x.jsx("h1",{children:x.jsx(za,{})})})},WUt=()=>{const e=v1(n=>n.currentVisitor),t=n=>{if(!n)return x.jsx("p",{children:"暂无信息"});const r=JSON.parse(n),i=Object.keys(r);return x.jsx(x.Fragment,{children:i.map(a=>x.jsxs("p",{children:[a,": ",r[a]]},a))})};return x.jsx(x.Fragment,{children:t(e==null?void 0:e.extra)})},VUt=()=>{var c;const e=jn(),t=fr(u=>u.currentThread),{currentVisitor:n,setCurrentVisitor:r}=v1(u=>u),i=[{key:"basicInfo",label:e.formatMessage({id:"customer.info.basic",defaultMessage:"Basic Info"}),children:x.jsx(LUt,{})},{key:"deviceInfo",label:e.formatMessage({id:"customer.info.device",defaultMessage:"Device Info"}),children:x.jsx(zUt,{})},{key:"tagInfo",label:e.formatMessage({id:"customer.info.tag",defaultMessage:"Tag Info"}),children:x.jsx(HUt,{})},{key:"extraInfo",label:e.formatMessage({id:"customer.info.extra",defaultMessage:"Extra Info"}),children:x.jsx(WUt,{})}],[a,o]=d.useState(i),s=d.useCallback(async()=>{var f,p,h;if(!((f=t==null?void 0:t.user)!=null&&f.uid))return;console.log("Fetching visitor info for:",(p=t==null?void 0:t.user)==null?void 0:p.uid);const u=await R3e((h=t==null?void 0:t.user)==null?void 0:h.uid);console.log("getVisitorInfo response:",u.data),u.data.code===200?r(u.data.data):je.error(e.formatMessage({id:"customer.info.load.error",defaultMessage:"Failed to load visitor info"}))},[(c=t==null?void 0:t.user)==null?void 0:c.uid,e]);d.useEffect(()=>{Rf(t)&&s()},[t,s]),d.useEffect(()=>{const u=[...i];jl&&(u.push({key:"browseRecord",label:e.formatMessage({id:"customer.info.browse.record",defaultMessage:"Browse Record"}),children:x.jsx(UUt,{})}),o(u))},[n]);const l=u=>{console.log(u)};return x.jsx("div",{children:x.jsx(l8,{bordered:!1,items:a,defaultActiveKey:["basicInfo"],onChange:l})})};async function qUt(e){return gn("/api/v1/quickreply/query",{method:"GET",params:{...e,client:_n}})}async function KUt(e){return gn("/api/v1/quickreply/create",{method:"POST",data:{...e,client:_n}})}const GUt=({open:e,isEdit:t,category:n,kbUid:r,onCancel:i,onSubmit:a})=>{const[o]=Kn.useForm(),s=Vr(f=>f.currentOrg),l=jn();console.log("CategoryForm kbUid:",r),d.useEffect(()=>{t?o.setFieldsValue({name:n==null?void 0:n.name}):o.resetFields()},[e]);const c=()=>{o.validateFields().then(async f=>{console.log("handleSaveDep:",f);const p={uid:t?n==null?void 0:n.uid:"",name:f.name,type:w5e,kbUid:r,orgUid:s==null?void 0:s.uid};a(p)}).catch(f=>{console.log("Failed:",f),je.error("创建分类失败")})},u=f=>{f.key==="Enter"&&c()};return x.jsx("div",{children:x.jsx(yr,{title:l.formatMessage({id:"category.form.title",defaultMessage:"New Category"}),open:e,onOk:c,onCancel:i,children:x.jsx("div",{onKeyDown:u,children:x.jsx(Kn,{form:o,name:"categoryForm",initialValues:{name:""},submitter:{render:()=>null},children:x.jsx(Or,{label:l.formatMessage({id:"category.form.name",defaultMessage:"Category Name"}),name:"name",rules:[{required:!0,message:l.formatMessage({id:"category.form.name.required",defaultMessage:"Please enter category name!"})}]})})})})})};async function n7(e){return gn("/api/v1/category/query/org",{method:"GET",params:{...e,client:_n}})}async function A3e(e){return gn("/api/v1/category/create",{method:"POST",data:{...e,client:_n}})}async function YUt(e){return gn("/api/v1/category/update",{method:"POST",data:{...e,client:_n}})}async function XUt(e){return gn("/api/v1/category/delete",{method:"POST",data:{...e,client:_n}})}const{Dragger:ZUt}=e1,QUt=({isEdit:e,quickreply:t,open:n,myQuickReply:r,onClose:i,onSubmit:a})=>{var S;const[o]=Kn.useForm(),{translateString:s}=Zr(),l=Vr(_=>_.currentOrg),[c,u]=d.useState(),[f,p]=d.useState(vo),[h,m]=d.useState(".png,.jpg,.jpeg"),[g,v]=d.useState({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:r==null?void 0:r.key,client:_n});console.log("QuickReplyDrawer kbUid:",r==null?void 0:r.key);const y=jn();d.useEffect(()=>{e?o.setFieldsValue({type:t==null?void 0:t.type,title:t==null?void 0:t.title,content:t==null?void 0:t.content,categoryUid:t==null?void 0:t.categoryUid,kbUid:r==null?void 0:r.key}):o.resetFields()},[n]);const w=_=>{console.log(`category selected ${_}`),u(_)},b=_=>{console.log(`type selected ${_}`),p(_),_===Sl?m(".png,.jpg,.jpeg,.gif,.bmp"):_===sg?m(".mp4,.avi,.mov,.wmv"):_===Fw?m(".mp3,.wav,.flac"):_===cd&&m(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")},C=()=>{console.log("handleSubmit"),o.validateFields().then(_=>{console.log(_),a({...t,..._,kbUid:r==null?void 0:r.key,orgUid:l==null?void 0:l.uid})}).catch(_=>{console.log("Form errors:",_),je.error("请检查表单填写")})},k={name:"file",accept:h,action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:g,showUploadList:!1,beforeUpload(_){console.log("beforeUpload",_);const E=en(new Date).format("YYYYMMDDHHmmss")+"_"+_.name;g.file=_,g.file_name=E,g.file_type=_.type,g.kb_type=g5e,g.category_uid=c||"",g.kb_uid=r==null?void 0:r.key,console.log("beforeUpload",g)},onChange(_){if(_.file.status==="uploading"&&je.loading(`${_.file.name} 上传中`),_.file.status==="done")if(console.log("response: ",_.file.response),_.file.response.code===200){const E=_.file.response.data.fileUrl;o.setFieldValue("content",E),je.destroy(),je.success(`${_.file.name} 上传成功`)}else je.destroy(),je.error(`${_.file.name} 上传失败`);else _.file.status==="error"&&je.error(`${_.file.name} 上传失败`)},onDrop(_){console.log("Dropped files",_.dataTransfer.files)}};return d.useEffect(()=>{const _=$=>{console.log("keydown",$)},E=$=>{};return document.addEventListener("keydown",_),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",_),document.removeEventListener("keyup",E)}},[]),x.jsx(x.Fragment,{children:x.jsx(Sh,{title:y.formatMessage({id:"quickreply.drawer.title",defaultMessage:e?"Edit Quick Reply":"New Quick Reply"}),onClose:i,open:n,extra:x.jsxs(Xr,{children:[x.jsx(Yt,{onClick:i,children:y.formatMessage({id:"common.cancel",defaultMessage:"Cancel"})}),x.jsx(Yt,{onClick:C,type:"primary",children:y.formatMessage({id:"common.save",defaultMessage:"Save"})})]}),children:x.jsxs(Kn,{form:o,initialValues:{...t},submitter:{render:()=>null},children:[x.jsx(ro,{label:y.formatMessage({id:"quickreply.form.category",defaultMessage:"Category"}),name:"categoryUid",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.category.required",defaultMessage:"Please select a category"})}],options:(S=r==null?void 0:r.children)==null?void 0:S.map(_=>({value:_.key,label:s(_.title)})),fieldProps:{allowClear:!0,placeholder:y.formatMessage({id:"quickreply.form.category.placeholder",defaultMessage:"Select a category"}),onChange:w}}),x.jsx(ro,{label:y.formatMessage({id:"quickreply.form.type",defaultMessage:"Type"}),name:"type",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.type.required",defaultMessage:"Please select a type"})}],options:[{label:y.formatMessage({id:"quickreply.type.text",defaultMessage:"Text"}),value:vo},{label:y.formatMessage({id:"quickreply.type.image",defaultMessage:"Image"}),value:Sl},{label:y.formatMessage({id:"quickreply.type.video",defaultMessage:"Video"}),value:sg},{label:y.formatMessage({id:"quickreply.type.audio",defaultMessage:"Audio"}),value:Fw},{label:y.formatMessage({id:"quickreply.type.file",defaultMessage:"File"}),value:cd}],fieldProps:{allowClear:!0,placeholder:y.formatMessage({id:"quickreply.form.type.placeholder",defaultMessage:"Select a type"}),onChange:b}}),x.jsx(Or,{label:y.formatMessage({id:"quickreply.form.title",defaultMessage:"Title"}),name:"title",rules:[{required:!0,message:y.formatMessage({id:"quickreply.form.title.required",defaultMessage:"Please enter a title"})}]}),x.jsx(Cd,{label:y.formatMessage({id:"quickreply.form.content",defaultMessage:"Content"}),name:"content"}),f!=vo&&x.jsxs(ZUt,{...k,children:[x.jsx("p",{className:"ant-upload-drag-icon",children:x.jsx(vve,{})}),x.jsx("p",{className:"ant-upload-text",children:y.formatMessage({id:"quickreply.upload.text",defaultMessage:"Click or drag file to upload"})})]})]})})})},{Search:JUt}=Ur,eWt=()=>{const e=jn(),{translateString:t,translateStringTranct:n}=Zr(),[r]=d.useState(!1),i=Eo(N=>N.agentInfo),[a,o]=d.useState([]),[s,l]=d.useState(""),[c,u]=d.useState(!0),[f,p]=d.useState([]),[h,m]=d.useState(!1),[g,v]=d.useState(!1),[y,w]=d.useState(),[b,C]=d.useState(),k=N=>{o(N),u(!1)},S=Vr(N=>N.currentOrg),_=d.useMemo(()=>{if((s==null?void 0:s.trim().length)===0)return f;const N=[],F=L=>L.map(V=>{const B={...V},U=typeof B.title=="string"&&B.title.toLowerCase().includes(s.toLowerCase());return B.children&&(B.children=F(B.children)),U||B.children&&B.children.length>0?(B.key&&N.push(B.key),B):null}).filter(Boolean),K=F(f);return N.length>0&&(o(N),u(!0)),K},[s,f]),E=async()=>{const N={orgUid:S==null?void 0:S.uid,agentUid:i==null?void 0:i.uid},F=await qUt(N);if(je.destroy(),F.data.code===200){const K=B=>B.map(U=>{const Y=t(U.title),ee={...U,originalTitle:U.title,title:Y,displayTitle:n(U.title)};return U.children&&U.children.length>0&&(ee.children=K(U.children)),ee}),L=K(F.data.data);p(L),w(L.filter(B=>B.level===b5e)[0]);const V=L.map(B=>B.key);o(V)}else je.error(F.data.message)};d.useEffect(()=>{E()},[]);const $=N=>{const{value:F}=N.target;l(F),u(!0)},M=N=>{const F=JSON.stringify(N);$n.emit(JO,F)},P=N=>{navigator.clipboard.writeText(N.content),je.success(`${t(N.content)} 已复制到剪切板`)},R=()=>{console.log("handleCreateCategory"),m(!0)},O=()=>{console.log("handleCreateQuickReply"),v(!0)},j=async N=>{console.log("handleSubmit: ",N),r?je.loading(e.formatMessage({id:"updating"})):je.loading(e.formatMessage({id:"creating"}));const F=await A3e(N);console.log("createCategory response: ",F),F.data.code===200?(je.destroy(),r?je.success(e.formatMessage({id:"update.success"})):je.success(e.formatMessage({id:"create.success"})),m(!1),E()):(je.destroy(),je.error(F.data.message))},I=()=>{m(!1)},A=async N=>{console.log("handleSubmitDrawer",N),r?je.loading(e.formatMessage({id:"updating"})):je.loading(e.formatMessage({id:"creating"}));const F=await KUt(N);console.log("createQuickreply response:",N,F),F.data.code===200?(je.destroy(),je.loading(e.formatMessage({id:"create.success"})),v(!1),E()):(je.destroy(),je.error(F.data.message))};return d.useEffect(()=>{const N=K=>{const L=JSON.parse(K);console.log("handleQuickReplyAdd: ",L==null?void 0:L.content,L==null?void 0:L.type);const V={title:L==null?void 0:L.content,content:L==null?void 0:L.content,type:L==null?void 0:L.type};C(V),v(!0)},F=K=>{const L=JSON.parse(K);l(L==null?void 0:L.content)};return $n.on(eR,N),$n.on(Aw,F),()=>{$n.off(eR,N),$n.off(Aw,F)}},[]),x.jsxs("div",{style:{marginLeft:10,marginRight:10},children:[x.jsx(JUt,{allowClear:!0,style:{marginBottom:8},enterButton:!0,value:s,placeholder:e.formatMessage({id:"quickreply.search.placeholder",defaultMessage:"Search"}),onChange:$}),x.jsx(dz,{defaultExpandAll:!0,onExpand:k,expandedKeys:a,autoExpandParent:c,treeData:_,blockNode:!0,titleRender:N=>x.jsxs(_a,{title:N.title,children:[N.displayTitle||N.title,N.type!=v5e&&N.type!=y5e&&x.jsxs("span",{style:{float:"right"},children:[x.jsx(Yt,{type:"link",size:"small",onClick:()=>M(N),children:e.formatMessage({id:"quickreply.button.send",defaultMessage:"Send"})}),x.jsx(Yt,{type:"link",size:"small",onClick:()=>P(N),children:e.formatMessage({id:"quickreply.button.copy",defaultMessage:"Copy"})})]})]})}),h&&x.jsx(GUt,{open:h,isEdit:r,kbUid:y==null?void 0:y.key,onCancel:I,onSubmit:j}),g&&x.jsx(QUt,{isEdit:r,open:g,myQuickReply:y,quickreply:b,onClose:()=>v(!1),onSubmit:A}),x.jsxs(o3,{gap:"small",wrap:"wrap",style:{bottom:25,position:"fixed"},children:[x.jsx(Yt,{size:"small",onClick:R,disabled:(y==null?void 0:y.key)==="",children:e.formatMessage({id:"quickreply.button.create.category",defaultMessage:"Create Category"})}),x.jsx(Yt,{size:"small",onClick:O,disabled:(y==null?void 0:y.key)==="",children:e.formatMessage({id:"quickreply.button.create.reply",defaultMessage:"Create Quick Reply"})})]})]})};async function tWt(e){return gn("/api/v1/ticket/query/org",{method:"GET",params:{...e,client:_n}})}async function nWt(e){return gn("/api/v1/ticket/query/topic",{method:"GET",params:{...e,client:_n}})}async function rWt(e){return gn("/api/v1/ticket/query/thread/uid",{method:"GET",params:{...e,client:_n}})}async function iWt(e){return gn("/api/v1/ticket/create",{method:"POST",data:{...e,client:_n}})}async function aWt(e){return gn("/api/v1/ticket/update",{method:"POST",data:{...e,client:_n}})}async function oWt(e){return gn("/api/v1/ticket/delete",{method:"POST",data:{uid:e,client:_n}})}async function sWt(e){return gn("/api/v1/ticket/claim",{method:"POST",data:{...e,client:_n}})}async function lWt(e){return gn("/api/v1/ticket/start",{method:"POST",data:{...e,client:_n}})}async function cWt(e){return gn("/api/v1/ticket/unclaim",{method:"POST",data:{...e,client:_n}})}async function uWt(e){return gn("/api/v1/ticket/hold",{method:"POST",data:{...e,client:_n}})}async function dWt(e){return gn("/api/v1/ticket/resume",{method:"POST",data:{...e,client:_n}})}async function fWt(e){return gn("/api/v1/ticket/reopen",{method:"POST",data:{...e,client:_n}})}async function pWt(e){return gn("/api/v1/ticket/resolve",{method:"POST",data:{...e,client:_n}})}async function Qne(e){return gn("/api/v1/ticket/verify",{method:"POST",data:{...e,client:_n}})}async function hWt(e){return gn("/api/v1/ticket/close",{method:"POST",data:{...e,client:_n}})}async function mWt(e){return gn("/api/v1/ticket/history/activity",{method:"GET",params:{...e,client:_n}})}const Za={async loadTickets(e,t=3){const{setLoading:n,setError:r,setTickets:i,currentTicket:a,setCurrentTicket:o,filters:s,searchText:l,pagination:c}=ja.getState(),{memberInfo:u}=Na.getState(),f=async p=>{try{n(!0),r(null);const h={orgUid:e,pageNumber:c.pageNumber,pageSize:c.pageSize,assignmentAll:!1};if(s.status&&s.status!==b0&&(h.status=s.status),s.priority&&s.priority!==w0&&(h.priority=s.priority),s.assignment===Ise?(h.assignmentAll=!1,h.reporterUid=(u==null?void 0:u.uid)||"",h.assigneeUid=""):s.assignment===jse?(h.assignmentAll=!1,h.assigneeUid=(u==null?void 0:u.uid)||"",h.reporterUid=""):s.assignment===cR&&(h.assignmentAll=!1,h.assigneeUid=cR,h.reporterUid=""),s.time)switch(s.time){case S0:h.startDate=en().subtract(100,"years").startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Nse:h.startDate=en().startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Ase:h.startDate=en().subtract(1,"days").startOf("day").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm:ss");break;case Dse:h.startDate=en().startOf("week").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case Fse:h.startDate=en().subtract(1,"week").startOf("week").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().subtract(1,"week").endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case Lse:h.startDate=en().startOf("month").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().endOf("month").format("YYYY-MM-DD HH:mm:ss");break;case Bse:h.startDate=en().subtract(1,"month").startOf("month").format("YYYY-MM-DD HH:mm:ss"),h.endDate=en().subtract(1,"month").endOf("month").format("YYYY-MM-DD HH:mm:ss");break}l&&(h.searchText=l);const m=await tWt(h);if(console.log("queryTicketsFilter response",h,m.data),m.data.code===200)i(m.data.data.content),m.data.data.content.length>0&&!a?o(m.data.data.content[0]):m.data.data.content.length==0&&o(void 0);else throw new Error(m.data.message)}catch(h){if(psetTimeout(m,1e3)),f(p+1);r(h instanceof Error?h.message:"Failed to load tickets")}finally{n(!1)}};return f(1)},async loadHistoryTickets(e,t,n=3){const{setLoading:r,setError:i,setHistoryTickets:a,pagination:o}=ja.getState(),s=Vr.getState().currentOrg,l=async c=>{try{r(!0),i(null);const u={orgUid:s.uid,pageNumber:o.pageNumber,pageSize:o.pageSize,topic:e,searchText:t},f=await nWt(u);if(console.log("queryTicketByServiceThreadTopic response",u,f.data),f.data.code===200)a(f.data.data.content);else throw new Error(f.data.message)}catch(u){if(csetTimeout(f,1e3)),l(c+1);i(u instanceof Error?u.message:"Failed to load tickets")}finally{r(!1)}};return l(1)},async refreshTickets(){const e=Vr.getState().currentOrg;return this.loadTickets(e==null?void 0:e.uid)},async loadTicketsWithFilters(e){const t=Vr.getState().currentOrg,{setFilter:n}=ja.getState();return Object.entries(e).forEach(([r,i])=>{n(r,i)}),this.loadTickets(t==null?void 0:t.uid)}},gWt=Object.freeze(Object.defineProperty({__proto__:null,ticketService:Za},Symbol.toStringTag,{value:"Module"})),{Search:vWt}=Ur,{Paragraph:Jne}=Zf,yWt=()=>{const e=jn(),{isDarkMode:t}=yz(),{translateString:n}=Zr(),r=Vr(C=>C.currentOrg),{historyTickets:i,loading:a,filters:o,setFilter:s}=ja(),[l,c]=d.useState([]),u=fr(C=>C.currentThread),[f,p]=d.useState(null),[h,m]=d.useState(""),g=async()=>{var C,k,S;try{const _=await n7({type:yk,orgUid:r==null?void 0:r.uid,pageNumber:0,pageSize:100});((C=_.data)==null?void 0:C.code)===200&&((S=(k=_.data)==null?void 0:k.data)!=null&&S.content)&&c(_.data.data.content)}catch(_){console.error("Fetch categories error:",_),c3.error(e.formatMessage({id:"ticket.category.load.error"}))}};d.useEffect(()=>{u!=null&&u.topic&&(Za.loadHistoryTickets(u==null?void 0:u.topic,h),g())},[u==null?void 0:u.topic]);const v=C=>{m(C),Za.loadHistoryTickets(u==null?void 0:u.topic,C)},y=C=>{switch(C){case"status":s("status",b0);break;case"priority":s("priority",w0);break;case"assignment":s("assignment",x0);break;case"time":s("time",S0);break}},w=C=>t?C?"#1f1f1f":"#141414":C?"#e6f7ff":"#ffffff",b=()=>{const C=[];return o!=null&&o.status&&o.status!==b0&&C.push(x.jsx(Vi,{color:Vw(o.status),closable:!0,onClose:()=>y("status"),children:e.formatMessage({id:`ticket.filter.status_${o.status.toLowerCase()}`})},"status")),o!=null&&o.priority&&o.priority!==w0&&C.push(x.jsx(Vi,{color:Fk(o.priority),closable:!0,onClose:()=>y("priority"),children:e.formatMessage({id:`ticket.filter.priority_${o.priority.toLowerCase()}`})},"priority")),o!=null&&o.assignment&&o.assignment!==x0&&C.push(x.jsx(Vi,{color:"blue",closable:!0,onClose:()=>y("assignment"),children:e.formatMessage({id:`ticket.filter.assignment_${o.assignment.toLowerCase()}`})},"assignment")),o!=null&&o.time&&o.time!==S0&&C.push(x.jsx(Vi,{color:"purple",closable:!0,onClose:()=>y("time"),children:e.formatMessage({id:`ticket.filter.time_${o.time.toLowerCase()}`})},"time")),C};return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{style:{padding:"10px 16px 16px",backgroundColor:t?"#141414":"#ffffff",borderBottom:"1px solid #f0f0f0"},children:[x.jsx(vWt,{placeholder:e.formatMessage({id:"ticket.list.search.placeholder"}),onSearch:v,style:{width:"100%"},allowClear:!0,enterButton:x.jsx(X8,{})}),x.jsx("div",{style:{marginTop:10},children:x.jsxs(Xr,{direction:"vertical",style:{width:"100%"},children:[b().length>0&&x.jsxs("div",{children:[x.jsxs("span",{style:{marginRight:8},children:[e.formatMessage({id:"ticket.current.filters"}),":"]}),x.jsx(Xr,{size:[0,8],wrap:!0,children:b()})]}),x.jsx("div",{children:x.jsxs(Vi,{color:"blue",children:[e.formatMessage({id:"ticket.list.total"}),": ",i.length]})})]})})]}),x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(Yn,{loading:a,dataSource:i,renderItem:C=>{var k,S;return x.jsx(Yn.Item,{onClick:()=>p(C),style:{cursor:"pointer",padding:"8px 16px",backgroundColor:w((f==null?void 0:f.uid)===C.uid),transition:"background-color 0.3s"},children:x.jsx(Yn.Item.Meta,{title:x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{marginRight:10,color:t?"#ffffff":void 0},children:C.title}),x.jsx(Vi,{color:Vw(C.status),children:e.formatMessage({id:`ticket.filter.status_${C.status.toLowerCase()}`})}),x.jsx(Vi,{color:Fk(C.priority),children:e.formatMessage({id:`ticket.filter.priority_${C.priority.toLowerCase()}`})})]}),description:x.jsxs(x.Fragment,{children:[x.jsxs(Xr,{direction:"vertical",style:{marginBottom:10},children:[x.jsxs(Vi,{color:"blue",children:[e.formatMessage({id:"ticket.type"}),": ",C.type===lR?e.formatMessage({id:"ticket.type.agent"}):e.formatMessage({id:"ticket.type.workgroup"})]}),x.jsxs(Vi,{color:"purple",children:[e.formatMessage({id:"ticket.reporter"}),": ",(k=C.reporter)==null?void 0:k.nickname]}),x.jsxs(Vi,{color:"orange",children:[e.formatMessage({id:"ticket.category"}),": ",n((S=l.find(_=>_.uid===C.categoryUid))==null?void 0:S.name)]})]}),x.jsx(Jne,{ellipsis:{rows:1},style:{margin:0},children:C.description}),x.jsx(Jne,{ellipsis:{rows:1},style:{margin:0},children:new Date(C.updatedAt).toLocaleString()})]})})})},locale:{emptyText:e.formatMessage({id:"ticket.list.empty"})}})})]})},bWt=so(e=>({activeKey:"quickreply",defaultKey:"quickreply",setActiveKey:t=>e({activeKey:t}),setDefaultKey:t=>e({defaultKey:t}),resetActiveKey:()=>e({activeKey:"quickreply"})})),dU=({file:e,onDelete:t,showDelete:n=!0})=>{var i,a;const r=jn();return x.jsxs("div",{style:{position:"relative",width:"50px",height:"50px",border:"1px solid #f0f0f0",borderRadius:"4px",overflow:"hidden"},title:r.formatMessage({id:(i=e==null?void 0:e.fileType)!=null&&i.startsWith("image/")?"upload.preview.image":"upload.preview.file"}),children:[n&&x.jsx(Yt,{type:"text",size:"small",icon:x.jsx(Y8,{}),onClick:()=>t(e.uid),style:{position:"absolute",top:0,right:0,padding:"2px",background:"rgba(255, 255, 255, 0.8)",border:"none",borderRadius:"0 4px 0 4px",zIndex:1}}),x.jsx("div",{onClick:()=>window.open(e.fileUrl,"_blank"),style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(a=e==null?void 0:e.fileType)!=null&&a.startsWith("image/")?x.jsx("img",{src:e==null?void 0:e.fileUrl,alt:e==null?void 0:e.fileName,style:{width:"100%",height:"100%",objectFit:"cover"}}):x.jsx("div",{style:{fontSize:"12px",padding:"4px",textAlign:"center",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.fileName})}),x.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0, 0, 0, 0.5)",color:"#fff",fontSize:"10px",padding:"2px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.fileName})]},e.uid)},D3e=({ticket:e,isThreadTicket:t=!1,onEdit:n,onDelete:r})=>{var y,w,b,C;const i=jn(),{translateString:a}=Zr(),o=Vr(k=>k.currentOrg),s=Eo(k=>k.agentInfo),[l,c]=d.useState([]),[u,f]=d.useState([]),p=ja(k=>k.currentTicket),h=ja(k=>k.setCurrentTicket),m=fr(k=>k.currentThread),g=async()=>{var k,S,_;try{const E=await n7({type:yk,orgUid:o==null?void 0:o.uid,pageNumber:0,pageSize:100});((k=E.data)==null?void 0:k.code)===200&&((_=(S=E.data)==null?void 0:S.data)!=null&&_.content)&&f(E.data.data.content)}catch(E){console.error("Fetch categories error:",E),je.error(i.formatMessage({id:"ticket.category.load.error"}))}},v=async()=>{var k,S,_,E,$,M;try{const P=await rWt({pageNumber:0,pageSize:1,threadUid:m==null?void 0:m.uid,orgUid:o==null?void 0:o.uid});console.log("queryTicketByThreadUid response",P.data),((k=P.data)==null?void 0:k.code)===200&&((_=(S=P.data)==null?void 0:S.data)!=null&&_.content)&&((M=($=(E=P.data)==null?void 0:E.data)==null?void 0:$.content)==null?void 0:M.length)>0?h(P.data.data.content[0]):h(void 0)}catch(P){console.error("Fetch ticket error:",P),je.error(i.formatMessage({id:"ticket.details.load.error"}))}};return d.useEffect(()=>{g(),t?v():h(e)},[m==null?void 0:m.uid,t,e]),d.useEffect(()=>{var k;p&&c((k=p==null?void 0:p.attachments)==null?void 0:k.map(S=>S.upload))},[p]),p?x.jsxs("div",{style:{padding:"16px"},children:[x.jsxs(ls,{bordered:!0,column:1,size:"small",styles:{label:{width:"90px"}},children:[x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.uid"}),children:(p==null?void 0:p.uid)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.title"}),children:(p==null?void 0:p.title)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.description"}),children:x.jsx("div",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:(p==null?void 0:p.description)||"-"})}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.status"}),children:x.jsx(Vi,{color:Vw(p==null?void 0:p.status),children:i.formatMessage({id:`ticket.status.${p==null?void 0:p.status.toLowerCase()}`})})}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.priority"}),children:x.jsx(Vi,{color:"red",children:i.formatMessage({id:`ticket.priority.${p==null?void 0:p.priority.toLowerCase()}`})})}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.type"}),children:(p==null?void 0:p.type)===lR?i.formatMessage({id:"ticket.type.agent"}):i.formatMessage({id:"ticket.type.department"})}),(p==null?void 0:p.type)===lR&&x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.assignee"}),children:a((y=p==null?void 0:p.assignee)==null?void 0:y.nickname)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.reporter"}),children:((w=p==null?void 0:p.reporter)==null?void 0:w.nickname)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.category"}),children:a((b=u.find(k=>k.uid===(p==null?void 0:p.categoryUid)))==null?void 0:b.name)||"-"}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.createdAt"}),children:new Date(p==null?void 0:p.createdAt).toLocaleString()}),x.jsx(ls.Item,{label:i.formatMessage({id:"ticket.form.updatedAt"}),children:new Date(p==null?void 0:p.updatedAt).toLocaleString()})]}),x.jsx("div",{style:{marginTop:"6px",marginBottom:"6px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:l.map(k=>x.jsx(dU,{file:k,showDelete:!1},k.uid))})}),(p==null?void 0:p.status)===lg&&(s==null?void 0:s.uid)===((C=p==null?void 0:p.reporter)==null?void 0:C.uid)&&x.jsx(x.Fragment,{children:x.jsxs(Xr,{direction:"horizontal",style:{marginTop:"6px"},children:[x.jsx(Yt,{type:"primary",icon:x.jsx(Em,{}),block:!0,onClick:n,children:i.formatMessage({id:"ticket.action.edit"})}),x.jsx(Yt,{danger:!0,icon:x.jsx(Y8,{}),block:!0,onClick:r,children:i.formatMessage({id:"ticket.action.delete"})})]})})]}):x.jsx(za,{description:i.formatMessage({id:"ticket.details.empty"}),style:{marginTop:"20%"}})},F3e=({isThreadTicket:e=!1})=>{const t=Vr(g=>g.currentOrg),n=ja(g=>g.currentTicket),[r,i]=d.useState([]),[a,o]=d.useState(!1),s=jn(),{memberResult:l,setMemberResult:c}=Na(),u=async()=>{if(n)try{o(!0);const g={pageNumber:0,pageSize:100,uid:n==null?void 0:n.uid},v=await mWt(g);console.log("queryTicketHistoryActivity response:",v.data),v.data.code===200?i(v.data.data||[]):(console.log("queryTicketHistoryActivity error:",v.data),je.error(v.data.message)),o(!1)}catch(g){console.error("Fetch ticket history error:",g),je.error("获取工单历史记录失败"),o(!1)}},f=async()=>{je.loading("loading");const g={pageNumber:0,pageSize:50,orgUid:t==null?void 0:t.uid},v=await t$(g);v.data.code===200?(je.destroy(),c(v.data)):je.destroy()};d.useEffect(()=>{e||(u(),f())},[n]);const p=g=>g?g===lg||g===Ose||g===Y3||g===Rse||g===ly||g===X3||g===Z3||g===PF||g===Q3||g===J3||g===E5e||g===V5||g===e4?s.formatMessage({id:`ticket.status.${g.toLowerCase()}`}):g:"",h=g=>{if(!g)return"-";const v=l.data.content.find(y=>y.uid===g);return(v==null?void 0:v.nickname)||""},m=()=>r.map((g,v)=>{var y;return{title:p(g==null?void 0:g.activityName)||"活动",description:x.jsxs("div",{children:[(g==null?void 0:g.assignee)&&x.jsxs("div",{children:["处理人: ",h(g==null?void 0:g.assignee)||(g==null?void 0:g.assignee)]}),x.jsxs("div",{children:["处理时间: ",((y=g.startTime)==null?void 0:y.toLocaleString())||"-"]})]}),status:v===r.length-1?"process":"finish"}});return x.jsxs(x.Fragment,{children:[x.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 16px"},children:[x.jsx("h4",{style:{margin:0},children:s.formatMessage({id:"ticket.activity.history"})||"工单活动记录"}),x.jsx(Yt,{type:"primary",icon:x.jsx(X8,{}),size:"small",onClick:u,loading:a,children:s.formatMessage({id:"common.refresh"})||"刷新"})]}),x.jsxs(Xo,{spinning:a,children:[x.jsx(Eve,{direction:"vertical",size:"small",current:r.length-1,style:{padding:"16px"},items:m()}),r.length===0&&x.jsx(za,{description:"请选择工单查看流转过程"})]})]})},wWt=()=>{const e=jn(),{locale:t}=d.useContext(Ea),n=fr(u=>u.currentThread),{activeKey:r,setActiveKey:i,defaultKey:a}=bWt(),[o,s]=d.useState([]),[l]=ja(u=>[u.currentThreadTicket]);d.useEffect(()=>{},[n]),d.useEffect(()=>{const u=[{key:"quickreply",label:e.formatMessage({id:"chat.right.quickreply"}),children:x.jsx(eWt,{})},{key:"userinfo",label:e.formatMessage({id:"chat.right.userinfo"}),children:x.jsx(VUt,{})}];Rf(n)?(u.splice(0,0,{key:"ai",label:e.formatMessage({id:"chat.right.ai"}),children:x.jsx($Ut,{})}),u.push({key:"ticket",label:e.formatMessage({id:"chat.right.ticket"}),children:x.jsx(yWt,{})}),s(u)):Ak(n)?s([{key:"ticket-details",label:e.formatMessage({id:"ticket.details.title"}),children:x.jsx(D3e,{ticket:l,isThreadTicket:!0})},{key:"ticket-steps",label:e.formatMessage({id:"ticket.steps.title"}),children:x.jsx(F3e,{ticket:l})}]):s([])},[n,e,t]);const c=u=>{i(u)};return d.useEffect(()=>{const u=()=>{i("ai")},f=()=>{i("quickreply")},p=()=>{i("userinfo")};return $n.on(Nw,u),$n.on(Aw,f),$n.on(tR,p),()=>{$n.off(Nw,u),$n.off(Aw,f),$n.off(tR,p)}},[]),o.length===0?null:x.jsx(x.Fragment,{children:x.jsx(Yg,{centered:!0,activeKey:r,defaultActiveKey:a,items:o,onChange:c})})};function r7(){const[e,t]=d.useState(!0);return d.useEffect(()=>{function n(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&t(!0)}function r(){console.log("networkStatus offline:",!navigator.onLine),t(!1)}return window.addEventListener("online",n),window.addEventListener("offline",r),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}},[]),e}function L3e(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;td.useContext(B3e),H3e=e=>te.createElement(B3e.Provider,{...e});function xWt(){let e=new Map;return{on(t,n){return e.has(t)?e.get(t).add(n):e.set(t,new Set([n])),this},off(t,n){return e.has(t)&&e.get(t).delete(n),this},emit(t,n){return e.has(t)&&e.get(t).forEach(r=>{r(n)}),this}}}var l5=xWt(),U3e=()=>d.useRef(new Map).current,SWt=()=>{},ere=["resize","contextmenu","click","scroll","blur"],jA={show({event:e,id:t,props:n,position:r}){e.preventDefault&&e.preventDefault(),l5.emit(0).emit(t,{event:e.nativeEvent||e,props:n,position:r})},hideAll(){l5.emit(0)}};function W3e(e){return{show(t){jA.show({...e,...t})},hideAll(){jA.hideAll()}}}function CWt(){let e=new Map,t,n,r,i,a=!1;function o(v){i=Array.from(v.values()),t=-1,r=!0}function s(){i[t].node.focus()}let l=()=>t>=0&&i[t].isSubmenu,c=()=>Array.from(i[t].submenuRefTracker.values());function u(){return t===-1?(f(),!1):!0}function f(){t+10?(t=0,i=v):a=!0,r=!1,s(),!0}return!1}function m(){if(u()&&!r){let v=e.get(n);n.classList.remove("contexify_submenu-isOpen"),i=v.items,n=v.parentNode,v.isRoot&&(r=!0,e.clear()),a||(t=v.focusedIndex,s())}}function g(v){function y(w){for(let b of w)b.isSubmenu&&b.submenuRefTracker&&y(Array.from(b.submenuRefTracker.values())),b.keyMatcher&&b.keyMatcher(v)}y(i)}return{init:o,moveDown:f,moveUp:p,openSubmenu:h,closeSubmenu:m,matchKeys:g}}function R3(e){return typeof e=="function"}function tre(e){return typeof e=="string"}function V3e(e,t){return d.Children.map(d.Children.toArray(e).filter(Boolean),n=>d.cloneElement(n,t))}function _Wt(e){let t={x:e.clientX,y:e.clientY},n=e.changedTouches;return n&&(t.x=n[0].clientX,t.y=n[0].clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function I3(e,t){return R3(e)?e(t):e}function kWt(e,t){return{...e,...R3(t)?t(e):t}}var q3e=({id:e,theme:t,style:n,className:r,children:i,animation:a="fade",preventDefaultOnKeydown:o=!0,disableBoundariesCheck:s=!1,onVisibilityChange:l,...c})=>{let[u,f]=d.useReducer(kWt,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),p=d.useRef(null),h=U3e(),[m]=d.useState(()=>CWt()),g=d.useRef(),v=d.useRef();d.useEffect(()=>(l5.on(e,w).on(0,b),()=>{l5.off(e,w).off(0,b)}),[e,a,s]),d.useEffect(()=>{u.visible?m.init(h):h.clear()},[u.visible,m,h]);function y(O,j){if(p.current&&!s){let{innerWidth:I,innerHeight:A}=window,{offsetWidth:N,offsetHeight:F}=p.current;O+N>I&&(O-=O+N-I),j+F>A&&(j-=j+F-A)}return{x:O,y:j}}d.useEffect(()=>{u.visible&&f(y(u.x,u.y))},[u.visible]),d.useEffect(()=>{function O(I){o&&I.preventDefault()}function j(I){switch(I.key){case"Enter":case" ":m.openSubmenu()||b();break;case"Escape":b();break;case"ArrowUp":O(I),m.moveUp();break;case"ArrowDown":O(I),m.moveDown();break;case"ArrowRight":O(I),m.openSubmenu();break;case"ArrowLeft":O(I),m.closeSubmenu();break;default:m.matchKeys(I);break}}if(u.visible){window.addEventListener("keydown",j);for(let I of ere)window.addEventListener(I,b)}return()=>{window.removeEventListener("keydown",j);for(let I of ere)window.removeEventListener(I,b)}},[u.visible,m,o]);function w({event:O,props:j,position:I}){O.stopPropagation();let A=I||_Wt(O),{x:N,y:F}=y(A.x,A.y);Va.flushSync(()=>{f({visible:!0,willLeave:!1,x:N,y:F,triggerEvent:O,propsFromTrigger:j})}),clearTimeout(v.current),!g.current&&R3(l)&&(l(!0),g.current=!0)}function b(O){O!=null&&(O.button===2||O.ctrlKey)&&O.type!=="contextmenu"||(a&&(tre(a)||"exit"in a&&a.exit)?f(j=>({willLeave:j.visible})):f(j=>({visible:j.visible?!1:j.visible})),v.current=setTimeout(()=>{R3(l)&&l(!1),g.current=!1}))}function C(){u.willLeave&&u.visible&&Va.flushSync(()=>f({visible:!1,willLeave:!1}))}function k(){return tre(a)?Uv({[`contexify_willEnter-${a}`]:S&&!P,[`contexify_willLeave-${a} contexify_willLeave-'disabled'`]:S&&P}):a&&"enter"in a&&"exit"in a?Uv({[`contexify_willEnter-${a.enter}`]:a.enter&&S&&!P,[`contexify_willLeave-${a.exit} contexify_willLeave-'disabled'`]:a.exit&&S&&P}):null}let{visible:S,triggerEvent:_,propsFromTrigger:E,x:$,y:M,willLeave:P}=u,R=Uv("contexify",r,{[`contexify_theme-${t}`]:t},k());return te.createElement(H3e,{value:h},S&&te.createElement("div",{...c,className:R,onAnimationEnd:C,style:{...n,left:$,top:M,opacity:1},ref:p,role:"menu"},V3e(i,{propsFromTrigger:E,triggerEvent:_})))},ci=({id:e,children:t,className:n,style:r,triggerEvent:i,data:a,propsFromTrigger:o,keyMatcher:s,onClick:l=SWt,disabled:c=!1,hidden:u=!1,closeOnClick:f=!0,handlerEvent:p="onClick",...h})=>{let m=d.useRef(),g=z3e(),v={id:e,data:a,triggerEvent:i,props:o},y=I3(c,v),w=I3(u,v);function b(_){v.event=_,_.stopPropagation(),y||(f?C():l(v))}function C(){let _=m.current;_.focus(),_.addEventListener("animationend",()=>setTimeout(jA.hideAll),{once:!0}),_.classList.add("contexify_item-feedback"),l(v)}function k(_){_&&!y&&(m.current=_,g.set(_,{node:_,isSubmenu:!1,keyMatcher:!y&&R3(s)&&(E=>{s(E)&&(E.stopPropagation(),E.preventDefault(),v.event=E,C())})}))}function S(_){(_.key==="Enter"||_.key===" ")&&(_.stopPropagation(),v.event=_,C())}return w?null:te.createElement("div",{...h,[p]:b,className:Uv("contexify_item",n,{"contexify_item-disabled":y}),style:r,onKeyDown:S,ref:k,tabIndex:-1,role:"menuitem","aria-disabled":y},te.createElement("div",{className:"contexify_itemContent"},t))},Wv=({triggerEvent:e,data:t,propsFromTrigger:n,hidden:r=!1})=>I3(r,{data:t,triggerEvent:e,props:n})?null:te.createElement("div",{className:"contexify_separator"}),EWt=()=>te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},te.createElement("polyline",{points:"9 18 15 12 9 6"})),$Wt=({className:e,...t})=>te.createElement("div",{className:Uv("contexify_rightSlot",e),...t}),nre=({arrow:e,children:t,disabled:n=!1,hidden:r=!1,label:i,className:a,triggerEvent:o,propsFromTrigger:s,style:l,...c})=>{let u=z3e(),f=U3e(),p=d.useRef(null),h={triggerEvent:o,props:s},m=I3(n,h),g=I3(r,h);function v(){let b=p.current;if(b){let C="contexify_submenu-bottom",k="contexify_submenu-right";b.classList.remove(C,k);let S=b.getBoundingClientRect();S.right>window.innerWidth&&b.classList.add(k),S.bottom>window.innerHeight&&b.classList.add(C)}}function y(b){b&&!m&&u.set(b,{node:b,isSubmenu:!0,submenuRefTracker:f,setSubmenuPosition:v})}if(g)return null;let w=Uv("contexify_item",a,{"contexify_item-disabled":m});return te.createElement(H3e,{value:f},te.createElement("div",{...c,className:w,ref:y,tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":m,onMouseEnter:v,onTouchStart:v},te.createElement("div",{className:"contexify_itemContent",onClick:b=>b.stopPropagation()},i,te.createElement($Wt,null,e||te.createElement(EWt,null))),te.createElement("div",{className:"contexify contexify_submenu",ref:p,style:l},V3e(t,{propsFromTrigger:s,triggerEvent:o}))))};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -690,16 +690,16 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */var NA=function(e,t){return NA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},NA(e,t)};function $Wt(e,t){NA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var lw=function(){return lw=Object.assign||function(t){for(var n,r=1,i=arguments.length;re?h():t!==!0&&(i=setTimeout(r?m:h,r===void 0?e-f:e))}return c.cancel=l,c}var Vv={Pixel:"Pixel",Percent:"Percent"},ire={unit:Vv.Percent,value:.8};function are(e){return typeof e=="number"?{unit:Vv.Percent,value:e*100}:typeof e=="string"?e.match(/^(\d*(\.\d+)?)px$/)?{unit:Vv.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:Vv.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),ire):(console.warn("scrollThreshold should be string or number"),ire)}var TWt=function(e){$Wt(t,e);function t(n){var r=e.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might +***************************************************************************** */var NA=function(e,t){return NA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},NA(e,t)};function MWt(e,t){NA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var lw=function(){return lw=Object.assign||function(t){for(var n,r=1,i=arguments.length;re?h():t!==!0&&(i=setTimeout(r?m:h,r===void 0?e-f:e))}return c.cancel=l,c}var Vv={Pixel:"Pixel",Percent:"Percent"},rre={unit:Vv.Percent,value:.8};function ire(e){return typeof e=="number"?{unit:Vv.Percent,value:e*100}:typeof e=="string"?e.match(/^(\d*(\.\d+)?)px$/)?{unit:Vv.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:Vv.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),rre):(console.warn("scrollThreshold should be string or number"),rre)}var PWt=function(e){MWt(t,e);function t(n){var r=e.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might happen because the element may not have been added to DOM yet. See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info. - `),null)},r.onStart=function(i){r.lastScrollTop||(r.dragging=!0,i instanceof MouseEvent?r.startY=i.pageY:i instanceof TouchEvent&&(r.startY=i.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(i){r.dragging&&(i instanceof MouseEvent?r.currentY=i.pageY:i instanceof TouchEvent&&(r.currentY=i.touches[0].pageY),!(r.currentY=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(i){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(i)},0);var a=r.props.height||r._scrollableNode?i.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var o=r.props.inverse?r.isElementAtTop(a,r.props.scrollThreshold):r.isElementAtBottom(a,r.props.scrollThreshold);o&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=a.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=MWt(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return t.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing. + `),null)},r.onStart=function(i){r.lastScrollTop||(r.dragging=!0,i instanceof MouseEvent?r.startY=i.pageY:i instanceof TouchEvent&&(r.startY=i.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(i){r.dragging&&(i instanceof MouseEvent?r.currentY=i.pageY:i instanceof TouchEvent&&(r.currentY=i.touches[0].pageY),!(r.currentY=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(i){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(i)},0);var a=r.props.height||r._scrollableNode?i.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var o=r.props.inverse?r.isElementAtTop(a,r.props.scrollThreshold):r.isElementAtBottom(a,r.props.scrollThreshold);o&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=a.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=TWt(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return t.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing. Pull Down To Refresh functionality will not work - as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var i=n.dataLength!==r.prevDataLength;return i?lw(lw({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=are(r);return a.unit===Vv.Pixel?n.scrollTop<=a.value+i-n.scrollHeight+1:n.scrollTop<=a.value/100+i-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=are(r);return a.unit===Vv.Pixel?n.scrollTop+i>=n.scrollHeight-a.value:n.scrollTop+i>=a.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=lw({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),a=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return te.createElement("div",{style:a,className:"infinite-scroll-component__outerdiv"},te.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(o){return n._infScroll=o},style:r},this.props.pullDownToRefresh&&te.createElement("div",{style:{position:"relative"},ref:function(o){return n._pullDown=o}},te.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(d.Component);async function PWt(e){return bn("/api/v1/group/query/uid",{method:"GET",params:{...e,client:kn}})}async function OWt(e){return bn("/api/v1/group/create",{method:"POST",data:{...e,client:kn}})}const RWt=({open:e,onSubmit:t,onCancel:n})=>{const r=jn(),{userInfo:i}=t1(),a=fr(S=>S.addThread),o=fr(S=>S.setCurrentThread),[s,l]=d.useState([]),[c,u]=d.useState([]),f=Na(S=>S.setMemberResult),p=Na(S=>S.memberResult),h=d.useMemo(()=>{const S=p==null?void 0:p.data.content;return S?(console.log("membersWithoutSelf",S,i==null?void 0:i.uid),S.filter(_=>{var E;return((E=_==null?void 0:_.user)==null?void 0:E.uid)!=(i==null?void 0:i.uid)})):[]},[p,i]),m=async()=>{var $;if(console.log("getAllMembers"),!(i!=null&&i.currentOrganization)){je.warning("userInfo.organizations is empty");return}const _={pageNumber:0,pageSize:50,orgUid:($=i==null?void 0:i.currentOrganization)==null?void 0:$.uid},E=await t$(_);console.log("queryMembersByOrg:",_,E.data),E.data.code===200?f(E.data):E.data.code===601||je.error(E.data.message)};d.useEffect(()=>{m()},[]);const g=(S,_,E)=>{console.log("onChange targetKeys:",S,_,E),l(S)},v=(S,_)=>{console.log("sourceSelectedKeys:",S),console.log("targetSelectedKeys:",_),u([...S,..._])},y=async()=>{console.log("createGroup"),je.loading("creating group");const S={name:k(),memberUids:s,type:f5e};console.log("groupRequest:",S);const _=await OWt(S);_.data.code===200?(je.destroy(),w(_.data.data)):(je.destroy(),je.error(_.data.message))},w=async S=>{console.log("startChat"),je.loading("starting group thread");const _={user:{uid:S==null?void 0:S.uid,nickname:S==null?void 0:S.name,avatar:S==null?void 0:S.avatar},topic:Tse+(S==null?void 0:S.uid),memberUids:s,content:"",type:Sse,extra:"",client:kn};console.log("thread request:",_);const E=await j3e(_);console.log("create group thread response",E.data),E.data.code===200?(je.destroy(),a(E.data.data),o(E.data.data),t()):(je.destroy(),je.error(E.data.message))},b=()=>{if(console.log("targetKeys:",s),s.length<2){je.warning(r.formatMessage({id:"group.create.members.min",defaultMessage:"至少选择2名成员"}));return}if(je.loading(r.formatMessage({id:"group.create.creating",defaultMessage:"创建群组中..."})),!(i!=null&&i.currentOrganization)){je.warning(r.formatMessage({id:"group.create.org.empty",defaultMessage:"未选择组织"}));return}y()},C=()=>{n()},k=()=>{const S=s.reduce((_,E)=>{const $=p.data.content.find(M=>M.uid===E);return $?_+$.nickname+"":_},"");return(S==null?void 0:S.length)>10?S.substring(0,10)+"...":S};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"group.create.title",defaultMessage:"发起群聊"}),open:e,onOk:b,onCancel:C,children:x.jsx(Q8,{dataSource:h,rowKey:S=>S.uid,titles:[r.formatMessage({id:"group.create.contacts",defaultMessage:"好友"}),r.formatMessage({id:"group.create.members",defaultMessage:"群成员"})],targetKeys:s,selectedKeys:c,onChange:g,onSelectChange:v,render:S=>S.nickname})})})},fU=so()(es(ts(ns((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i.splice(a,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:I6e}))),G3e="thread_list_item",aC={"star-1":"#FFB800","star-2":"#FF4D4F","star-3":"#52C41A","star-4":"#1890FF"},IWt=({currentThread:e,filters:t,onFilterChange:n,onSetCurrentThread:r,onOpenBlockModal:i,onOpenThreadNoteModal:a})=>{const o=jn(),s=async()=>{const h={uid:e==null?void 0:e.uid,top:!(e!=null&&e.top)};if((h==null?void 0:h.uid)==null)return;const m=await IUt(h);m.data.code===200?(r(m.data.data),je.success(o.formatMessage({id:"thread.set.success"}))):je.error(m.data.message)},l=async h=>{const m={uid:e==null?void 0:e.uid,star:h,top:e==null?void 0:e.top};if((m==null?void 0:m.uid)==null)return;const g=await jUt(m);if(g.data.code===200){if(r(g.data.data),h===0){const{refreshThreads:v}=fr.getState();await v()}je.success(o.formatMessage({id:"thread.set.success"}))}else je.error(g.data.message)},c=async()=>{const h={uid:e==null?void 0:e.uid,mute:!(e!=null&&e.mute)};if((h==null?void 0:h.uid)==null)return;const m=await NUt(h);m.data.code===200?(r(m.data.data),je.success(o.formatMessage({id:"thread.set.success"}))):je.error(m.data.message)},u=async()=>{const h={uid:e==null?void 0:e.uid,unread:!(e!=null&&e.unread)};if((h==null?void 0:h.uid)==null)return;const m=await A3e(h);m.data.code===200?(r(m.data.data),je.success(o.formatMessage({id:"thread.set.success"}))):je.error(m.data.message)},f=async()=>{YI(e)?$n.emit(tR):a()},p=({id:h})=>{switch(h){case"top":s();break;case"star-0":l(0);break;case"star-1":l(1);break;case"star-2":l(2);break;case"star-3":l(3);break;case"star-4":l(4);break;case"mute":c();break;case"unread":u();break;case"black":i();break;case"remark":f();break;default:je.warning(o.formatMessage({id:"thread.coming.soon"}))}};return x.jsx(x.Fragment,{children:x.jsxs(K3e,{id:G3e,children:[x.jsx(ci,{id:"top",onClick:p,children:e!=null&&e.top?o.formatMessage({id:"thread.menu.untop"}):o.formatMessage({id:"thread.menu.top"})}),x.jsxs(rre,{label:o.formatMessage({id:"thread.menu.star"}),children:[x.jsx(ci,{id:"star-1",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:aC["star-1"]}}),o.formatMessage({id:"thread.menu.star.1"})]})}),x.jsx(ci,{id:"star-2",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:aC["star-2"]}}),o.formatMessage({id:"thread.menu.star.2"})]})}),x.jsx(ci,{id:"star-3",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:aC["star-3"]}}),o.formatMessage({id:"thread.menu.star.3"})]})}),x.jsx(ci,{id:"star-4",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:aC["star-4"]}}),o.formatMessage({id:"thread.menu.star.4"})]})}),(e==null?void 0:e.star)&&x.jsxs(x.Fragment,{children:[x.jsx(Wv,{}),x.jsx(ci,{id:"star-0",onClick:p,children:o.formatMessage({id:"thread.menu.star.cancel"})})]})]}),x.jsx(Wv,{}),x.jsx(ci,{id:"mute",onClick:p,children:e!=null&&e.mute?o.formatMessage({id:"thread.menu.unmute"}):o.formatMessage({id:"thread.menu.mute"})}),x.jsx(ci,{id:"unread",onClick:p,children:e!=null&&e.unread?o.formatMessage({id:"thread.menu.read"}):o.formatMessage({id:"thread.menu.unread"})}),x.jsx(ci,{id:"black",onClick:p,children:o.formatMessage({id:"thread.menu.block"})}),x.jsx(ci,{id:"remark",onClick:p,children:o.formatMessage({id:"thread.menu.remark"})}),x.jsx(Wv,{}),x.jsxs(rre,{label:o.formatMessage({id:"thread.menu.filter"}),children:[x.jsx(ci,{children:x.jsx(ps,{checked:t.groupThread,onChange:()=>n("groupThread"),children:o.formatMessage({id:"thread.menu.groupThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.robotThread,onChange:()=>n("robotThread"),children:o.formatMessage({id:"thread.menu.robotThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.workgroupThread,onChange:()=>n("workgroupThread"),children:o.formatMessage({id:"thread.menu.workgroupThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.agentThread,onChange:()=>n("agentThread"),children:o.formatMessage({id:"thread.menu.agentThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.ticketThread,onChange:()=>n("ticketThread"),children:o.formatMessage({id:"thread.menu.ticketThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.memberThread,onChange:()=>n("memberThread"),children:o.formatMessage({id:"thread.menu.memberThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.deviceThread,onChange:()=>n("deviceThread"),children:o.formatMessage({id:"thread.menu.deviceThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.systemThread,onChange:()=>n("systemThread"),children:o.formatMessage({id:"thread.menu.systemThread"})})})]})]})})},jWt=({open:e,onSubmit:t,onCancel:n})=>{const r=d.useRef(!1),i=jn(),{translateString:a}=Zr(),[o,s]=d.useState(0),[l]=d.useState(5),[c,u]=d.useState(0),[f,p]=d.useState([]),[h,m]=d.useState(!1),[g,v]=d.useState(""),y=Vr(P=>P.currentOrg),w=fr(P=>P.addThread),b=fr(P=>P.setCurrentThread),C=async(P=o)=>{if(r.current){console.log("isLoading: 1",r.current);return}r.current=!0,m(!0),je.loading("loading");const R={pageNumber:P,pageSize:l,nickname:g,orgUid:y==null?void 0:y.uid,categoryUid:"",type:_F,level:Lw};try{const O=await Kwe(R);console.log("queryRobotsByOrg: ",O.data,R),O.data.code===200?(je.destroy(),p(O.data.data.content),u(O.data.data.totalElements),s(P)):(je.destroy(),je.error(O.data.message))}catch{je.destroy(),je.error("加载失败,请稍后重试")}finally{r.current=!1,m(!1)}};d.useEffect(()=>{e&&C(0)},[e,g]);const k=P=>{v(P)},S=P=>{C(P-1)},_=()=>{n()},E=async P=>{console.log("startRobotChat",P);const R={agent:JSON.stringify(P),forceNew:!0,hide:!1,client:kn},O=await XH(R);console.log("startRobotChat response:",R,O.data),O.data.code===200?(w(O.data.data),b(O.data.data),t()):(je.error(O.data.message),n())},$=async()=>{await E({uid:"df_org_uid_1",nickname:"新对话",avatar:"https://cdn.weiyuai.cn/assets/images/llm/provider/zhipu.png",type:Y6e})};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:i.formatMessage({id:"robot.create.title",defaultMessage:"创建机器人"}),open:e,onCancel:_,footer:[x.jsx(Yt,{type:"primary",icon:x.jsx(Ny,{}),onClick:$,children:i.formatMessage({id:"robot.create.void",defaultMessage:"创建空白机器人"})},"create-empty"),x.jsx(Yt,{onClick:_,children:i.formatMessage({id:"common.cancel",defaultMessage:"取消"})},"cancel")],children:[x.jsx(Ur,{placeholder:i.formatMessage({id:"robot.search.placeholder",defaultMessage:"搜索机器人昵称"}),prefix:x.jsx(Ty,{}),value:g,onChange:P=>k(P.target.value),style:{marginBottom:16,marginTop:8},allowClear:!0}),f.length===0&&g&&!h&&x.jsx("div",{style:{textAlign:"center",padding:"20px 0"},children:i.formatMessage({id:"common.noSearchResults",defaultMessage:"没有找到匹配的机器人"})}),x.jsx("div",{style:{height:250,overflowY:"auto"},children:x.jsx(Yn,{dataSource:f,style:{marginTop:10},renderItem:P=>x.jsx(Yn.Item,{actions:[x.jsx(Yt,{onClick:()=>E(P),children:i.formatMessage({id:"pages.robot.chat",defaultMessage:"Chat"})})],children:x.jsx(Yn.Item.Meta,{style:{marginLeft:"10px"},title:a(P==null?void 0:P.nickname),description:a(P==null?void 0:P.description)})},P==null?void 0:P.uid)})}),!h&&f.length>0&&x.jsx("div",{style:{textAlign:"center",marginTop:16},children:x.jsx(j4,{current:o+1,pageSize:l,total:c,onChange:S,size:"small",simple:!0})}),h&&x.jsx("div",{style:{textAlign:"center",marginTop:20},children:x.jsxs(Xr,{children:[x.jsx(Zo,{}),x.jsx("span",{children:i.formatMessage({id:"common.loading",defaultMessage:"加载中..."})})]})})]})})};async function NWt(e){return bn("/api/v1/black/create",{method:"POST",data:{...e,client:kn}})}const Y3e=({open:e,onOk:t,onCancel:n})=>{var m;const[r]=Kn.useForm(),i=jn(),{translateString:a}=Zr(),o=fr(g=>g.currentThread),{currentVisitor:s,setCurrentVisitor:l}=v1(g=>g),c=Vr(g=>g.currentOrg),u=d.useCallback(async()=>{var v,y,w;if(!((v=o==null?void 0:o.user)!=null&&v.uid))return;console.log("Fetching visitor info for:",(y=o==null?void 0:o.user)==null?void 0:y.uid);const g=await I3e((w=o==null?void 0:o.user)==null?void 0:w.uid);console.log("getVisitorInfo response:",g.data),g.data.code===200?l(g.data.data):je.error(i.formatMessage({id:"customer.info.load.error",defaultMessage:"Failed to load visitor info"}))},[(m=o==null?void 0:o.user)==null?void 0:m.uid,l,i]);d.useEffect(()=>{r.setFieldValue("blackIp",!1)},[e,s]),d.useEffect(()=>{Rf(o)&&u()},[o,u]);const f=g=>{if(g){const v=cr().add(100,"year");r.setFieldValue("endTime",v)}else r.setFieldValue("endTime",null)},p=async()=>{const g=await r.validateFields(),v={blackUid:s==null?void 0:s.uid,blackNickname:s==null?void 0:s.nickname,blackAvatar:s==null?void 0:s.avatar,blockIp:g.blackIp,endTime:g.endTime?g.endTime.format("YYYY-MM-DD")+" 00:00:00":void 0,reason:g.reason,threadTopic:o==null?void 0:o.topic,orgUid:c==null?void 0:c.uid};console.log("blackModel params",v);const y=await NWt(v);console.log("blackModel result",y),y.data.code===200?(je.success(i.formatMessage({id:"black.success"})),t(v)):je.error(a(y.data.message))},h=()=>{r.resetFields(),n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:i.formatMessage({id:"black.title"}),open:e,onOk:p,onCancel:h,children:x.jsxs(Kn,{form:r,submitter:!1,onFinish:p,children:[x.jsx(VN,{name:"blackIp",label:i.formatMessage({id:"black.ip"})}),x.jsx(VN,{name:"isPermanent",label:i.formatMessage({id:"black.permanent"}),fieldProps:{onChange:f}}),x.jsx(cTt,{name:"endTime",label:i.formatMessage({id:"black.until"}),dependencies:["isPermanent"],fieldProps:{showTime:!1,disabled:r.getFieldValue("isPermanent"),disabledDate:g=>g&&g!r.getFieldValue("isPermanent")&&!v?Promise.reject(i.formatMessage({id:"black.until.required"})):Promise.resolve()}]}),x.jsx(Cd,{name:"reason",label:i.formatMessage({id:"black.reason"}),rules:[{required:!0,message:i.formatMessage({id:"black.reason.required"})}],fieldProps:{placeholder:i.formatMessage({id:"black.reason.placeholder"})}})]})})})},P2={async loadThreads(e=3){const{setLoading:t,setError:n,setThreads:r,searchText:i,pagination:a,setPagination:o}=fr.getState(),{agentInfo:s}=Eo.getState(),{memberInfo:l}=Na.getState(),c=async u=>{try{t(!0),n(null);const f={pageNumber:a.pageNumber,pageSize:a.pageSize,inviteUids:[s==null?void 0:s.uid],monitorUids:[s==null?void 0:s.uid],ticketorUids:[l==null?void 0:l.uid],mergeByTopic:!0};i&&(f.searchText=i);const p=await OUt(f);if(console.log("queryThreads response",f,p.data),p.data.code===200){if(o({...a,total:p.data.data.totalElements,pageNumber:p.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)r(p.data.data.content);else{const{threads:m}=fr.getState();r([...m,...p.data.data.content])}const{setThreadResult:h}=fr.getState();h(p.data)}else throw new Error(p.data.message)}catch(f){if(usetTimeout(p,1e3)),c(u+1);n(f instanceof Error?f.message:"Failed to load threads")}finally{t(!1)}};return c(1)},async resetAndLoad(){const{setPagination:e}=fr.getState(),t=Vr.getState().currentOrg;return e({pageNumber:0,pageSize:100,total:0}),this.loadThreads(t.uid)},async loadThreadsWithFilters(e){const{setFilter:t}=fr.getState();return Object.entries(e).forEach(([n,r])=>{t(n,r)}),this.resetAndLoad()}},AWt=Object.freeze(Object.defineProperty({__proto__:null,threadService:P2},Symbol.toStringTag,{value:"Module"})),X3e=({open:e,handleOk:t,handleCancel:n,currentThread:r})=>{var c;const i=jn(),[a]=Kn.useForm(),{translateString:o}=Zr(),{setCurrentThread:s}=fr();te.useEffect(()=>{var u,f;(u=r==null?void 0:r.user)!=null&&u.nickname&&a.setFieldsValue({nickname:o((f=r==null?void 0:r.user)==null?void 0:f.nickname)})},[r]);const l=async()=>{var p,h,m,g;const u=await a.validateFields(),{nickname:f}=u;try{const v={uid:r==null?void 0:r.uid,user:{uid:(p=r==null?void 0:r.user)==null?void 0:p.uid,nickname:f,avatar:(h=r==null?void 0:r.user)==null?void 0:h.avatar,type:(m=r==null?void 0:r.user)==null?void 0:m.type}},y=await N3e(v);console.log("updateThreadUser:",v,y.data),y.data.code===200&&s((g=y==null?void 0:y.data)==null?void 0:g.data),t&&t()}catch(v){console.error("Update failed:",v)}};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:i.formatMessage({id:"thread.menu.remark",defaultMessage:"备注"}),open:e,onOk:l,onCancel:n,children:x.jsx(Kn,{form:a,submitter:!1,children:x.jsx(Or,{name:"nickname",label:"昵称",initialValue:(c=r==null?void 0:r.user)==null?void 0:c.nickname,placeholder:"请输入新的昵称",rules:[{required:!0,message:"请输入昵称"}]})})})})},{Text:ore}=Zf,sre={"star-1":"#FFB800","star-2":"#FF4D4F","star-3":"#52C41A","star-4":"#1890FF"},DWt=()=>{const e=jn(),{translateStringTranct:t}=Zr(),{isDarkMode:n,agentInfo:r,hasRoleAgent:i,handleUpdateAgentStatus:a}=yz(),o=r7(),[s,l]=d.useState("下线"),c=fU(se=>se.workgroupResult),[u,f]=d.useState(!1),p=Vr(se=>se.currentOrg),[h,m]=d.useState(!1),g=[{key:"group",label:e.formatMessage({id:"thread.dropdown.create.group",defaultMessage:"创建群聊"})},{key:"ai",label:e.formatMessage({id:"thread.dropdown.create.ai",defaultMessage:"创建AI对话"})}],v=[{key:y0,label:e.formatMessage({id:"thread.agent.status.online",defaultMessage:"😀 - 在线接待"})},{key:Dm,label:e.formatMessage({id:"thread.agent.status.offline",defaultMessage:"🔻 - 客服下线"})},{key:yq,label:e.formatMessage({id:"thread.agent.status.busy",defaultMessage:"🏃‍♀️ - 客服忙碌"})}],{threads:y,queuingThreads:w,threadResult:b,currentThread:C,showQueueList:k,loading:S,pagination:_,searchText:E,setSearchText:$,setCurrentThread:M,setShowQueueList:P}=fr(),R=d.useRef(!1),O=async()=>{if(!(R.current||!(p!=null&&p.uid))){R.current=!0;try{await P2.loadThreads(),await j()}finally{R.current=!1}}},j=async()=>{if(!i)return;const se={uid:r==null?void 0:r.uid},ye=await i$e(se);console.log("syncCurrentThreadCount:",ye.data)};d.useEffect(()=>{o&&(p!=null&&p.uid)&&(console.log("网络重连,重新加载会话列表"),O())},[o,p==null?void 0:p.uid]);const I=async se=>{if(se.uid===(C==null?void 0:C.uid)){console.log("handleSelectThreadClick 当前聊天窗口,无需操作");return}se.unreadCount>0?A(se):M(se)},A=async se=>{const ye={uid:se.uid,unreadCount:0};if((ye==null?void 0:ye.uid)==null){je.error("当前会话uid为空,无法清除未读消息数");return}console.log("handleUpdateThreadUnreadCount",ye);const Oe=await A3e(ye);console.log("handleUpdateThreadUnreadCount response:",Oe.data),Oe.data.code===200?M(Oe.data.data):console.log("handleUpdateThreadUnreadCount error:",Oe)},{show:N}=V3e({id:G3e});function F(se,ye){console.log("handleContextMenu:",se," item:",ye),M(ye),N({event:se})}const K=se=>{var ye,Oe,z,H,G,de,xe,he,Ue;return((ye=se==null?void 0:se.user)==null?void 0:ye.avatar)===null||((Oe=se==null?void 0:se.user)==null?void 0:Oe.avatar)===void 0?x.jsx("img",{style:{marginLeft:10},src:jk(((z=se==null?void 0:se.user)==null?void 0:z.uid)||""),alt:"Avatar"}):((H=se==null?void 0:se.user)==null?void 0:H.avatar.indexOf("local"))>-1?x.jsx("img",{style:{marginLeft:10},src:jk(((G=se==null?void 0:se.user)==null?void 0:G.uid)||""),alt:"Avatar"}):((de=se==null?void 0:se.user)==null?void 0:de.avatar.indexOf("http"))===-1?x.jsx("p",{style:{marginLeft:25},children:(xe=se==null?void 0:se.user)==null?void 0:xe.avatar}):x.jsx(x.Fragment,{children:se!=null&&se.unread?x.jsx(x.Fragment,{children:x.jsx(Lo,{dot:se==null?void 0:se.unread,style:{marginTop:10},children:x.jsx(Pi,{style:{marginLeft:10,marginTop:5},shape:"square",size:"large",src:((he=se==null?void 0:se.user)==null?void 0:he.avatar)||""})})}):x.jsx(x.Fragment,{children:x.jsx(Lo,{count:se==null?void 0:se.unreadCount,style:{marginTop:10},children:x.jsx(Pi,{style:{marginLeft:10,marginTop:5},shape:"square",size:"large",src:((Ue=se==null?void 0:se.user)==null?void 0:Ue.avatar)||""})})})})},[L,V]=d.useState(!1),B=()=>{V(!0)},U=()=>{V(!1)},Y=()=>{V(!1)},[ee,ie]=d.useState(!1),Z=()=>{ie(!0)},X=()=>{ie(!1)},ae=()=>{ie(!1)},oe=se=>{console.log("handleSearchChange:",se),$(se),p!=null&&p.uid&&P2.loadThreadsWithFilters({searchText:se})},le=se=>{if(console.log("setAgentStatusByKey:",se),se===y0)return l(e.formatMessage({id:"thread.status.online",defaultMessage:"😀接待"}));if(se===Dm)return l(e.formatMessage({id:"thread.status.offline",defaultMessage:"🔻下线"}));if(se===yq)return l(e.formatMessage({id:"thread.status.busy",defaultMessage:"🏃‍♀️忙碌"}))};d.useEffect(()=>{console.log("useEffect agentStatus"),le(r==null?void 0:r.status)},[r,e]);const ce=se=>{console.log("handleAgentStatusClick:",se),a(se.key),le(se.key)},pe=se=>{const ye=se==null?void 0:se.topic.split("/")[2],Oe=c==null?void 0:c.data.content.find(z=>ye===(z==null?void 0:z.uid));if(Oe!=null)return t(Oe==null?void 0:Oe.nickname)},me=()=>{console.log("handleSwitchQueue"),P(!k)},re=({key:se})=>{se==="group"?B():se==="ai"&&Z()},[fe,ve]=d.useState({groupThread:!1,robotThread:!1,workgroupThread:!1,agentThread:!1,ticketThread:!1,memberThread:!1,deviceThread:!1,systemThread:!1}),$e=se=>{ve(ye=>({...ye,[se]:!ye[se]}))},be=(se=>{let ye=[...se];return Object.values(fe).some(Oe=>Oe)&&(ye=ye.filter(Oe=>!!(fe.groupThread&&Fo(Oe)||fe.robotThread&&Fk(Oe)||fe.workgroupThread&&nRe(Oe)||fe.agentThread&&tRe(Oe)||fe.ticketThread&&Dk(Oe)||fe.memberThread&&Ak(Oe)||fe.deviceThread&&rRe(Oe)||fe.systemThread&&iRe(Oe)))),[...ye].sort((Oe,z)=>{const H=Oe.top||!1,G=z.top||!1;if(H!==G)return H?-1:1;const de=Oe.star||0,xe=z.star||0;return de!==xe?xe-de:new Date(z.updatedAt).getTime()-new Date(Oe.updatedAt).getTime()})})(y);d.useEffect(()=>{p!=null&&p.uid&&P2.resetAndLoad()},[p==null?void 0:p.uid]);const Se=async()=>{S||!(p!=null&&p.uid)||b.data.last||await P2.loadThreads()},we=se=>!se||se.length===0?null:(se=se.filter(ye=>ye!==""),x.jsx(o3,{gap:"4px 0",children:se.map(ye=>{const Oe=ye.length>10,z=x.jsx(Vi,{color:"blue",children:Oe?`${ye.slice(0,10)}...`:ye},ye);return Oe?x.jsx(_a,{title:ye,children:z},ye):z})}));return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{children:[x.jsxs("div",{children:[x.jsxs(o3,{style:{marginTop:15,marginBottom:15},gap:"middle",justify:"center",align:"center",children:[x.jsx(Ur,{style:{width:"55%"},size:"small",placeholder:e.formatMessage({id:"thread.search.placeholder",defaultMessage:"搜索"}),value:E,onChange:se=>oe(se.target.value),prefix:x.jsx(Ty,{}),allowClear:!0}),x.jsx(k6,{menu:{items:g,onClick:re},children:x.jsx("a",{onClick:se=>se.preventDefault(),children:x.jsx(Xr,{children:x.jsx(Ny,{})})})}),i&&x.jsx(k6,{menu:{items:v,onClick:ce},children:x.jsxs(Xr,{children:[x.jsx(ore,{children:s}),x.jsx(ore,{children:x.jsx(My,{})})]})})]}),!o&&x.jsx(JE,{message:e.formatMessage({id:"i18n.network.disconnected"}),banner:!0}),S&&x.jsx("p",{style:{paddingLeft:10,paddingRight:10},children:x.jsx(Yt,{loading:!0,block:!0,children:e.formatMessage({id:"i18n.message.pulling"})})})]}),i&&w.length>0&&x.jsx(Yt,{icon:x.jsx(xve,{}),block:!0,onClick:me,children:e.formatMessage({id:"i18n.queue.tip"})+"("+w.length+")"}),(be==null?void 0:be.length)===0&&x.jsx(za,{}),(be==null?void 0:be.length)>0&&x.jsx(TWt,{dataLength:be.length,next:Se,hasMore:!b.data.last&&be.length<_.total,loader:x.jsx("div",{style:{textAlign:"center",padding:"20px"},children:x.jsx(Zo,{tip:e.formatMessage({id:"thread.loading.more"})})}),scrollableTarget:"scrollableDiv",style:{overflow:"hidden"},children:x.jsx(Yn,{dataSource:be,renderItem:se=>{var ye;return x.jsxs(Yn.Item,{onClick:()=>I(se),onContextMenu:()=>F(event,se),className:(C==null?void 0:C.uid)===(se==null?void 0:se.uid)?n?"list-item-dark-active":"list-item-active":n?"list-item-dark":"list-item",style:{backgroundColor:se.star?sre[`star-${se.star}`]+"10":void 0,borderLeft:se.star?`3px solid ${sre[`star-${se.star}`]}`:void 0},children:[x.jsx(Yn.Item.Meta,{avatar:K(se),title:x.jsxs(x.Fragment,{children:[se!=null&&se.top?x.jsx(RWe,{}):x.jsx(x.Fragment,{}),t((ye=se==null?void 0:se.user)==null?void 0:ye.nickname)]}),description:x.jsx("span",{className:"ellipsis",children:x.jsxs(x.Fragment,{children:[se!=null&&se.mute?x.jsx(Bit,{}):x.jsx(x.Fragment,{}),we(se==null?void 0:se.tagList),pRe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:t("i18n.robot")}):x.jsx(x.Fragment,{}),hRe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:t("i18n.agent")}):x.jsx(x.Fragment,{}),mRe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:"["+pe(se)+"]"}):x.jsx(x.Fragment,{})," "+t(yRe(se==null?void 0:se.content))]})})}),x.jsx("span",{className:"timestamp",children:JOe(se==null?void 0:se.updatedAt)})]},se==null?void 0:se.uid)}})})]}),x.jsx(IWt,{currentThread:C,filters:fe,onFilterChange:$e,onSetCurrentThread:M,onOpenBlockModal:()=>f(!0),onOpenThreadNoteModal:()=>m(!0)}),L&&x.jsx(RWt,{open:L,onSubmit:U,onCancel:Y}),ee&&x.jsx(jWt,{open:ee,onSubmit:X,onCancel:ae}),u&&x.jsx(Y3e,{open:u,onOk:()=>{f(!1)},onCancel:()=>{f(!1)}}),h&&x.jsx(X3e,{open:h,currentThread:C,handleOk:()=>{m(!1)},handleCancel:()=>{m(!1)}})]})};function co(){const{isDarkMode:e}=Ag(),{token:t}=Ho.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=300,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:a,contentStyle:o,footerStyle:s}}const FWt=()=>{const e=jn(),{isDarkMode:t}=Ag(),n=Eo(f=>f.agentInfo),{currentQueuingThread:r,queuingThreads:i,threads:a,setCurrentQueuingThread:o,setQueuingThreads:s,setThreads:l}=fr(f=>({currentQueuingThread:f.currentQueuingThread,queuingThreads:f.queuingThreads,threads:f.threads,setCurrentQueuingThread:f.setCurrentQueuingThread,setQueuingThreads:f.setQueuingThreads,setThreads:f.setThreads})),c=async(f,p)=>{var g;console.log("acceptQueuingThread",f,p),je.loading(e.formatMessage({id:"queue.accepting",defaultMessage:"接受中..."}));const h={uid:f.uid,agent:JSON.stringify({uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,type:uh})},m=await FUt(h);if(((g=m==null?void 0:m.data)==null?void 0:g.code)===200){je.destroy(),je.success(e.formatMessage({id:"queue.accept.success",defaultMessage:"接受成功"}));const v={...f,state:X6e},y=a.filter(w=>w.topic!==f.topic);l([v,...y]),s(i.filter(w=>w.uid!==f.uid))}else je.destroy(),je.error(e.formatMessage({id:"queue.accept.failed",defaultMessage:"接受失败"}))},u=(f,p)=>{console.log("handleListOnClick",f,p),o(f)};return x.jsx(x.Fragment,{children:x.jsx(Yn,{dataSource:i,renderItem:(f,p)=>x.jsx(Yn.Item,{style:(r==null?void 0:r.uid)===f.uid?{backgroundColor:t?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>u(f,p),actions:[x.jsx(Yt,{onClick:()=>c(f,p),children:e.formatMessage({id:"queue.accept",defaultMessage:"接受"})})],children:x.jsx(Yn.Item.Meta,{style:{marginLeft:10},avatar:x.jsx(Pi,{src:f.user.avatar}),title:f.user.nickname,description:f.content})},f==null?void 0:f.uid)})})};var Z3e={exports:{}},LWt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",BWt=LWt,zWt=BWt;function Q3e(){}function J3e(){}J3e.resetWarningCache=Q3e;var HWt=function(){function e(r,i,a,o,s,l){if(l!==zWt){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:J3e,resetWarningCache:Q3e};return n.PropTypes=n,n};Z3e.exports=HWt();var UWt=Z3e.exports;const wi=ei(UWt),WWt=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Q0(e,t,n){const r=VWt(e),{webkitRelativePath:i}=e,a=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&lre(r,"path",a),lre(r,"relativePath",a),r}function VWt(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=WWt.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function lre(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const qWt=[".DS_Store","Thumbs.db"];function KWt(e){return f1(this,void 0,void 0,function*(){return u5(e)&&GWt(e.dataTransfer)?QWt(e.dataTransfer,e.type):YWt(e)?XWt(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?ZWt(e):[]})}function GWt(e){return u5(e)}function YWt(e){return u5(e)&&u5(e.target)}function u5(e){return typeof e=="object"&&e!==null}function XWt(e){return AA(e.target.files).map(t=>Q0(t))}function ZWt(e){return f1(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Q0(n))})}function QWt(e,t){return f1(this,void 0,void 0,function*(){if(e.items){const n=AA(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(JWt));return cre(e4e(r))}return cre(AA(e.files).map(n=>Q0(n)))})}function cre(e){return e.filter(t=>qWt.indexOf(t.name)===-1)}function AA(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?e4e(n):[n]],[])}function ure(e,t){return f1(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const o=yield a.getFile();return o.handle=a,Q0(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return Q0(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function eVt(e){return f1(this,void 0,void 0,function*(){return e.isDirectory?t4e(e):tVt(e)})}function t4e(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function a(){t.readEntries(o=>f1(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(eVt));i.push(s),a()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),o=>{r(o)})}a()})}function tVt(e){return f1(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=Q0(r,e.fullPath);t(i)},r=>{n(r)})})})}var EP=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function dre(e){return iVt(e)||rVt(e)||r4e(e)||nVt()}function nVt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rVt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iVt(e){if(Array.isArray(e))return DA(e)}function fre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pre(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:cVt,message:"File type must be ".concat(r)}},hre=function(t){return{code:uVt,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},mre=function(t){return{code:dVt,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},hVt={code:fVt,message:"Too many files"};function i4e(e,t){var n=e.type==="application/x-moz-file"||lVt(e,t);return[n,n?null:pVt(t)]}function a4e(e,t,n){if(dm(e.size))if(dm(t)&&dm(n)){if(e.size>n)return[!1,hre(n)];if(e.sizen)return[!1,hre(n)]}return[!0,null]}function dm(e){return e!=null}function mVt(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(l){var c=i4e(l,n),u=j3(c,1),f=u[0],p=a4e(l,r,i),h=j3(p,1),m=h[0],g=s?s(l):null;return f&&m&&!g})}function d5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function oC(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function gre(e){e.preventDefault()}function gVt(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function vVt(e){return e.indexOf("Edge/")!==-1}function yVt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return gVt(e)||vVt(e)}function Lu(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NVt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var pU=d.forwardRef(function(e,t){var n=e.children,r=f5(e,_Vt),i=u4e(r),a=i.open,o=f5(i,kVt);return d.useImperativeHandle(t,function(){return{open:a}},[a]),te.createElement(d.Fragment,null,n(Ji(Ji({},o),{},{open:a})))});pU.displayName="Dropzone";var c4e={disabled:!1,getFilesFromEvent:KWt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};pU.defaultProps=c4e;pU.propTypes={children:wi.func,accept:wi.objectOf(wi.arrayOf(wi.string)),multiple:wi.bool,preventDropOnDocument:wi.bool,noClick:wi.bool,noKeyboard:wi.bool,noDrag:wi.bool,noDragEventsBubbling:wi.bool,minSize:wi.number,maxSize:wi.number,maxFiles:wi.number,disabled:wi.bool,getFilesFromEvent:wi.func,onFileDialogCancel:wi.func,onFileDialogOpen:wi.func,useFsAccessApi:wi.bool,autoFocus:wi.bool,onDragEnter:wi.func,onDragLeave:wi.func,onDragOver:wi.func,onDrop:wi.func,onDropAccepted:wi.func,onDropRejected:wi.func,onError:wi.func,validator:wi.func};var BA={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function u4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ji(Ji({},c4e),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,w=t.autoFocus,b=t.preventDropOnDocument,C=t.noClick,k=t.noKeyboard,S=t.noDrag,_=t.noDragEventsBubbling,E=t.onError,$=t.validator,M=d.useMemo(function(){return xVt(n)},[n]),P=d.useMemo(function(){return wVt(n)},[n]),R=d.useMemo(function(){return typeof v=="function"?v:yre},[v]),O=d.useMemo(function(){return typeof g=="function"?g:yre},[g]),j=d.useRef(null),I=d.useRef(null),A=d.useReducer(AVt,BA),N=$P(A,2),F=N[0],K=N[1],L=F.isFocused,V=F.isFileDialogActive,B=d.useRef(typeof window<"u"&&window.isSecureContext&&y&&bVt()),U=function(){!B.current&&V&&setTimeout(function(){if(I.current){var Oe=I.current.files;Oe.length||(K({type:"closeDialog"}),O())}},300)};d.useEffect(function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}},[I,V,O,B]);var Y=d.useRef([]),ee=function(Oe){j.current&&j.current.contains(Oe.target)||(Oe.preventDefault(),Y.current=[])};d.useEffect(function(){return b&&(document.addEventListener("dragover",gre,!1),document.addEventListener("drop",ee,!1)),function(){b&&(document.removeEventListener("dragover",gre),document.removeEventListener("drop",ee))}},[j,b]),d.useEffect(function(){return!r&&w&&j.current&&j.current.focus(),function(){}},[j,w,r]);var ie=d.useCallback(function(ye){E?E(ye):console.error(ye)},[E]),Z=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye),Y.current=[].concat(MVt(Y.current),[ye.target]),oC(ye)&&Promise.resolve(i(ye)).then(function(Oe){if(!(d5(ye)&&!_)){var z=Oe.length,H=z>0&&mVt({files:Oe,accept:M,minSize:o,maxSize:a,multiple:s,maxFiles:l,validator:$}),G=z>0&&!H;K({isDragAccept:H,isDragReject:G,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ye)}}).catch(function(Oe){return ie(Oe)})},[i,c,ie,_,M,o,a,s,l,$]),X=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye);var Oe=oC(ye);if(Oe&&ye.dataTransfer)try{ye.dataTransfer.dropEffect="copy"}catch{}return Oe&&f&&f(ye),!1},[f,_]),ae=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye);var Oe=Y.current.filter(function(H){return j.current&&j.current.contains(H)}),z=Oe.indexOf(ye.target);z!==-1&&Oe.splice(z,1),Y.current=Oe,!(Oe.length>0)&&(K({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),oC(ye)&&u&&u(ye))},[j,u,_]),oe=d.useCallback(function(ye,Oe){var z=[],H=[];ye.forEach(function(G){var de=i4e(G,M),xe=$P(de,2),he=xe[0],Ue=xe[1],We=a4e(G,o,a),ge=$P(We,2),ze=ge[0],Ve=ge[1],Be=$?$(G):null;if(he&&ze&&!Be)z.push(G);else{var Xe=[Ue,Ve];Be&&(Xe=Xe.concat(Be)),H.push({file:G,errors:Xe.filter(function(Ke){return Ke})})}}),(!s&&z.length>1||s&&l>=1&&z.length>l)&&(z.forEach(function(G){H.push({file:G,errors:[hVt]})}),z.splice(0)),K({acceptedFiles:z,fileRejections:H,isDragReject:H.length>0,type:"setFiles"}),p&&p(z,H,Oe),H.length>0&&m&&m(H,Oe),z.length>0&&h&&h(z,Oe)},[K,s,M,o,a,l,p,h,m,$]),le=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye),Y.current=[],oC(ye)&&Promise.resolve(i(ye)).then(function(Oe){d5(ye)&&!_||oe(Oe,ye)}).catch(function(Oe){return ie(Oe)}),K({type:"reset"})},[i,oe,ie,_]),ce=d.useCallback(function(){if(B.current){K({type:"openDialog"}),R();var ye={multiple:s,types:P};window.showOpenFilePicker(ye).then(function(Oe){return i(Oe)}).then(function(Oe){oe(Oe,null),K({type:"closeDialog"})}).catch(function(Oe){SVt(Oe)?(O(Oe),K({type:"closeDialog"})):CVt(Oe)?(B.current=!1,I.current?(I.current.value=null,I.current.click()):ie(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ie(Oe)});return}I.current&&(K({type:"openDialog"}),R(),I.current.value=null,I.current.click())},[K,R,O,y,oe,ie,P,s]),pe=d.useCallback(function(ye){!j.current||!j.current.isEqualNode(ye.target)||(ye.key===" "||ye.key==="Enter"||ye.keyCode===32||ye.keyCode===13)&&(ye.preventDefault(),ce())},[j,ce]),me=d.useCallback(function(){K({type:"focus"})},[]),re=d.useCallback(function(){K({type:"blur"})},[]),fe=d.useCallback(function(){C||(yVt()?setTimeout(ce,0):ce())},[C,ce]),ve=function(Oe){return r?null:Oe},$e=function(Oe){return k?null:ve(Oe)},Ce=function(Oe){return S?null:ve(Oe)},be=function(Oe){_&&Oe.stopPropagation()},Se=d.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ye.refKey,z=Oe===void 0?"ref":Oe,H=ye.role,G=ye.onKeyDown,de=ye.onFocus,xe=ye.onBlur,he=ye.onClick,Ue=ye.onDragEnter,We=ye.onDragOver,ge=ye.onDragLeave,ze=ye.onDrop,Ve=f5(ye,EVt);return Ji(Ji(LA({onKeyDown:$e(Lu(G,pe)),onFocus:$e(Lu(de,me)),onBlur:$e(Lu(xe,re)),onClick:ve(Lu(he,fe)),onDragEnter:Ce(Lu(Ue,Z)),onDragOver:Ce(Lu(We,X)),onDragLeave:Ce(Lu(ge,ae)),onDrop:Ce(Lu(ze,le)),role:typeof H=="string"&&H!==""?H:"presentation"},z,j),!r&&!k?{tabIndex:0}:{}),Ve)}},[j,pe,me,re,fe,Z,X,ae,le,k,S,r]),we=d.useCallback(function(ye){ye.stopPropagation()},[]),se=d.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ye.refKey,z=Oe===void 0?"ref":Oe,H=ye.onChange,G=ye.onClick,de=f5(ye,$Vt),xe=LA({accept:M,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ve(Lu(H,le)),onClick:ve(Lu(G,we)),tabIndex:-1},z,I);return Ji(Ji({},xe),de)}},[I,n,s,le,r]);return Ji(Ji({},F),{},{isFocused:L&&!r,getRootProps:Se,getInputProps:se,rootRef:j,inputRef:I,open:ve(ce)})}function AVt(e,t){switch(t.type){case"focus":return Ji(Ji({},e),{},{isFocused:!0});case"blur":return Ji(Ji({},e),{},{isFocused:!1});case"openDialog":return Ji(Ji({},BA),{},{isFileDialogActive:!0});case"closeDialog":return Ji(Ji({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ji(Ji({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ji(Ji({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Ji({},BA);default:return e}}function yre(){}const DVt=({onImageSend:e,children:t})=>{const[n,r]=d.useState(null),i=d.useCallback(()=>{console.log("DropUpload handleImageCancel"),r(null)},[]),a=d.useCallback(()=>{console.log("DropUpload handleImageSend"),KC(n,c=>{n!=null&&n.type.startsWith("image")?e(c.data.fileUrl,Cl):n!=null&&n.type.startsWith("video/")?e(c.data.fileUrl,sg):e(c.data.fileUrl,cd),r(null)})},[n]),o=d.useCallback(c=>{console.log("DropUpload acceptedFiles",c),c.map(u=>{console.log(u),r(u)})},[]),{getRootProps:s,getInputProps:l}=u4e({maxFiles:1,onDrop:o,onDropAccepted(c,u){console.log("DropUpload onDropAccepted",c,u)},onDropRejected(c,u){console.log("DropUpload onDropRejected",c,u)},noClick:!0});return x.jsxs("div",{...s(),style:{height:"100%"},children:[x.jsx("input",{...l()}),x.jsx(x.Fragment,{children:t}),n&&x.jsx(kwe,{file:n,onCancel:i,onSend:a})]})};function FVt(e,t,n){var r=this,i=d.useRef(null),a=d.useRef(0),o=d.useRef(null),s=d.useRef([]),l=d.useRef(),c=d.useRef(),u=d.useRef(e),f=d.useRef(!0);u.current=e;var p=typeof window<"u",h=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,v="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,w=v?Math.max(+n.maxWait||0,t):null;d.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var b=d.useMemo(function(){var C=function(M){var P=s.current,R=l.current;return s.current=l.current=null,a.current=M,c.current=u.current.apply(R,P)},k=function(M,P){h&&cancelAnimationFrame(o.current),o.current=h?requestAnimationFrame(M):setTimeout(M,P)},S=function(M){if(!f.current)return!1;var P=M-i.current;return!i.current||P>=t||P<0||v&&M-a.current>=w},_=function(M){return o.current=null,g&&s.current?C(M):(s.current=l.current=null,c.current)},E=function M(){var P=Date.now();if(S(P))return _(P);if(f.current){var R=t-(P-i.current),O=v?Math.min(R,w-(P-a.current)):R;k(M,O)}},$=function(){if(p||y){var M=Date.now(),P=S(M);if(s.current=[].slice.call(arguments),l.current=r,i.current=M,P){if(!o.current&&f.current)return a.current=i.current,k(E,t),m?C(i.current):c.current;if(v)return k(E,t),C(i.current)}return o.current||k(E,t),c.current}};return $.cancel=function(){o.current&&(h?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=l.current=o.current=null},$.isPending=function(){return!!o.current},$.flush=function(){return o.current?_(Date.now()):c.current},$},[m,v,t,w,g,h,p,y]);return b}function LVt(e,t){return e===t}function BVt(e,t,n){var r=LVt,i=d.useRef(e),a=d.useState({})[1],o=FVt(d.useCallback(function(l){i.current=l,a({})},[a]),t,n),s=d.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const zVt=({uid:e,content:t,status:n,type:r})=>x.jsx("div",{className:"rate-bubble",children:x.jsx(fu,{children:x.jsxs(Xs,{fluid:!0,children:[x.jsx(np,{children:r===pv?"邀请评价":"主动评价"}),x.jsx(tp,{}),x.jsx(mwe,{children:x.jsx(qs,{color:"primary",disabled:!0,children:n===$se?"已评价":"待评价"})})]})})});function La(){return La=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Zm(e){var t=d.useRef({fn:e,curr:void 0}).current;if(t.fn=e,!t.curr){var n=Object.create(null);Object.keys(e).forEach(function(r){n[r]=function(){var i;return(i=t.fn[r]).call.apply(i,[t.fn].concat([].slice.call(arguments)))}}),t.curr=n}return t.curr}function p5(e){return d.useReducer(function(t,n){return La({},t,typeof n=="function"?n(t):n)},e)}var d4e=d.createContext(void 0),Zd=typeof window<"u"&&"ontouchstart"in window,zA=function(e,t,n){return Math.max(Math.min(e,n),t)},sC=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),zA(e,1*(1-n),Math.max(6,t)*(1+n))},HA=typeof window>"u"||/ServerSideRendering/.test(navigator&&navigator.userAgent)?d.useEffect:d.useLayoutEffect;function Q1(e,t,n){var r=d.useRef(t);r.current=t,d.useEffect(function(){function i(a){r.current(a)}return e&&window.addEventListener(e,i,n),function(){e&&window.removeEventListener(e,i)}},[e])}var HVt=["container"];function UVt(e){var t=e.container,n=t===void 0?document.body:t,r=i7(e,HVt);return Va.createPortal(te.createElement("div",La({},r)),n)}function WVt(e){return te.createElement("svg",La({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))}function VVt(e){return te.createElement("svg",La({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))}function qVt(e){return te.createElement("svg",La({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"}))}function KVt(){return d.useEffect(function(){var e=document.body.style,t=e.overflow;return e.overflow="hidden",function(){e.overflow=t}},[]),null}function bre(e){var t=e.touches[0],n=t.clientX,r=t.clientY;if(e.touches.length>=2){var i=e.touches[1],a=i.clientX,o=i.clientY;return[(n+a)/2,(r+o)/2,Math.sqrt(Math.pow(a-n,2)+Math.pow(o-r,2))]}return[n,r,0]}var _p=function(e,t,n,r){var i,a=n*t,o=(a-r)/2,s=e;return a<=r?(i=1,s=0):e>0&&o-e<=0?(i=2,s=o):e<0&&o+e<=0&&(i=3,s=-o),[i,s]};function MP(e,t,n,r,i,a,o,s,l,c){o===void 0&&(o=innerWidth/2),s===void 0&&(s=innerHeight/2),l===void 0&&(l=0),c===void 0&&(c=0);var u=_p(e,a,n,innerWidth)[0],f=_p(t,a,r,innerHeight),p=innerWidth/2,h=innerHeight/2;return{x:o-a/i*(o-(p+e))-p+(r/n>=3&&n*a===innerWidth?0:u?l/2:l),y:s-a/i*(s-(h+t))-h+(f[0]?c/2:c),lastCX:o,lastCY:s}}function UA(e,t,n){var r=e%180!=0;return r?[n,t,r]:[t,n,r]}function TP(e,t,n){var r=UA(n,innerWidth,innerHeight),i=r[0],a=r[1],o=0,s=i,l=a,c=e/t*a,u=t/e*i;return e=a?s=c:e>=i&&ti/a?l=u:t/e>=3&&!r[2]?o=((l=u)-a)/2:s=c,{width:s,height:l,x:0,y:o,pause:!0}}function lC(e,t){var n=t.leading,r=n!==void 0&&n,i=t.maxWait,a=t.wait,o=a===void 0?i||0:a,s=d.useRef(e);s.current=e;var l=d.useRef(0),c=d.useRef(),u=function(){return c.current&&clearTimeout(c.current)},f=d.useCallback(function(){var p=[].slice.call(arguments),h=Date.now();function m(){l.current=h,u(),s.current.apply(null,p)}var g=l.current,v=h-g;if(g===0&&(r&&m(),l.current=h),i!==void 0){if(v>i)return void m()}else v=1&&a&&a())};u()}function u(){l=requestAnimationFrame(c)}}var YVt={T:0,L:0,W:0,H:0,FIT:void 0},f4e=function(){var e=d.useRef(!1);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},XVt=["className"];function ZVt(e){var t=e.className,n=t===void 0?"":t,r=i7(e,XVt);return te.createElement("div",La({className:"PhotoView__Spinner "+n},r),te.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},te.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),te.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))}var QVt=["src","loaded","broken","className","onPhotoLoad","loadingElement","brokenElement"];function JVt(e){var t=e.src,n=e.loaded,r=e.broken,i=e.className,a=e.onPhotoLoad,o=e.loadingElement,s=e.brokenElement,l=i7(e,QVt),c=f4e();return t&&!r?te.createElement(te.Fragment,null,te.createElement("img",La({className:"PhotoView__Photo"+(i?" "+i:""),src:t,onLoad:function(u){var f=u.target;c.current&&a({loaded:!0,naturalWidth:f.naturalWidth,naturalHeight:f.naturalHeight})},onError:function(){c.current&&a({broken:!0})},alt:""},l)),!n&&(te.createElement("span",{className:"PhotoView__icon"},o)||te.createElement(ZVt,{className:"PhotoView__icon"}))):s?te.createElement("span",{className:"PhotoView__icon"},typeof s=="function"?s({src:t}):s):null}var eqt={naturalWidth:void 0,naturalHeight:void 0,width:void 0,height:void 0,loaded:void 0,broken:!1,x:0,y:0,touched:!1,maskTouched:!1,rotate:0,scale:1,CX:0,CY:0,lastX:0,lastY:0,lastCX:0,lastCY:0,lastScale:1,touchTime:0,touchLength:0,pause:!0,stopRaf:!0,reach:void 0};function tqt(e){var t=e.item,n=t.src,r=t.render,i=t.width,a=i===void 0?0:i,o=t.height,s=o===void 0?0:o,l=t.originRef,c=e.visible,u=e.speed,f=e.easing,p=e.wrapClassName,h=e.className,m=e.style,g=e.loadingElement,v=e.brokenElement,y=e.onPhotoTap,w=e.onMaskTap,b=e.onReachMove,C=e.onReachUp,k=e.onPhotoResize,S=e.isActive,_=e.expose,E=p5(eqt),$=E[0],M=E[1],P=d.useRef(0),R=f4e(),O=$.naturalWidth,j=O===void 0?a:O,I=$.naturalHeight,A=I===void 0?s:I,N=$.width,F=N===void 0?a:N,K=$.height,L=K===void 0?s:K,V=$.loaded,B=V===void 0?!n:V,U=$.broken,Y=$.x,ee=$.y,ie=$.touched,Z=$.stopRaf,X=$.maskTouched,ae=$.rotate,oe=$.scale,le=$.CX,ce=$.CY,pe=$.lastX,me=$.lastY,re=$.lastCX,fe=$.lastCY,ve=$.lastScale,$e=$.touchTime,Ce=$.touchLength,be=$.pause,Se=$.reach,we=Zm({onScale:function(Qe){return se(sC(Qe))},onRotate:function(Qe){ae!==Qe&&(_({rotate:Qe}),M(La({rotate:Qe},TP(j,A,Qe))))}});function se(Qe,nt,jt){oe!==Qe&&(_({scale:Qe}),M(La({scale:Qe},MP(Y,ee,F,L,oe,Qe,nt,jt),Qe<=1&&{x:0,y:0})))}var ye=lC(function(Qe,nt,jt){if(jt===void 0&&(jt=0),(ie||X)&&S){var Lt=UA(ae,F,L),Bt=Lt[0],Ut=Lt[1];if(jt===0&&P.current===0){var Ne=Math.abs(Qe-le)<=20,He=Math.abs(nt-ce)<=20;if(Ne&&He)return void M({lastCX:Qe,lastCY:nt});P.current=Ne?nt>ce?3:2:1}var Le,Je=Qe-re,pt=nt-fe;if(jt===0){var xt=_p(Je+pe,oe,Bt,innerWidth)[0],Nt=_p(pt+me,oe,Ut,innerHeight);Le=function(Pt,st,Ct,kt){return st&&Pt===1||kt==="x"?"x":Ct&&Pt>1||kt==="y"?"y":void 0}(P.current,xt,Nt[0],Se),Le!==void 0&&b(Le,Qe,nt,oe)}if(Le==="x"||X)return void M({reach:"x"});var Ot=sC(oe+(jt-Ce)/100/2*oe,j/F,.2);_({scale:Ot}),M(La({touchLength:jt,reach:Le,scale:Ot},MP(Y,ee,F,L,oe,Ot,Qe,nt,Je,pt)))}},{maxWait:8});function Oe(Qe){return!Z&&!ie&&(R.current&&M(La({},Qe,{pause:c})),R.current)}var z,H,G,de,xe,he,Ue,We,ge=(xe=function(Qe){return Oe({x:Qe})},he=function(Qe){return Oe({y:Qe})},Ue=function(Qe){return R.current&&(_({scale:Qe}),M({scale:Qe})),!ie&&R.current},We=Zm({X:function(Qe){return xe(Qe)},Y:function(Qe){return he(Qe)},S:function(Qe){return Ue(Qe)}}),function(Qe,nt,jt,Lt,Bt,Ut,Ne,He,Le,Je,pt){var xt=UA(Je,Bt,Ut),Nt=xt[0],Ot=xt[1],Pt=_p(Qe,He,Nt,innerWidth),st=Pt[0],Ct=Pt[1],kt=_p(nt,He,Ot,innerHeight),qt=kt[0],vt=kt[1],At=Date.now()-pt;if(At>=200||He!==Ne||Math.abs(Le-Ne)>1){var dt=MP(Qe,nt,Bt,Ut,Ne,He),De=dt.x,Ye=dt.y,ot=st?Ct:De!==Qe?De:null,Re=qt?vt:Ye!==nt?Ye:null;return ot!==null&&fm(Qe,ot,We.X),Re!==null&&fm(nt,Re,We.Y),void(He!==Ne&&fm(Ne,He,We.S))}var It=(Qe-jt)/At,rt=(nt-Lt)/At,$t=Math.sqrt(Math.pow(It,2)+Math.pow(rt,2)),Mt=!1,dn=!1;(function(pn,T){var D,J=pn,ke=0,Ie=0,it=function(On){D||(D=On);var Er=On-D,Mr=Math.sign(pn),mr=-.001*Mr,pr=Math.sign(-J)*Math.pow(J,2)*2e-4,cn=J*Er+(mr+pr)*Math.pow(Er,2)/2;ke+=cn,D=On,Mr*(J+=(mr+pr)*Er)<=0?rn():T(ke)?Ft():rn()};function Ft(){Ie=requestAnimationFrame(it)}function rn(){cancelAnimationFrame(Ie)}Ft()})($t,function(pn){var T=Qe+pn*(It/$t),D=nt+pn*(rt/$t),J=_p(T,Ne,Nt,innerWidth),ke=J[0],Ie=J[1],it=_p(D,Ne,Ot,innerHeight),Ft=it[0],rn=it[1];if(ke&&!Mt&&(Mt=!0,st?fm(T,Ie,We.X):wre(Ie,T+(T-Ie),We.X)),Ft&&!dn&&(dn=!0,qt?fm(D,rn,We.Y):wre(rn,D+(D-rn),We.Y)),Mt&&dn)return!1;var On=Mt||We.X(Ie),Er=dn||We.Y(rn);return On&&Er})}),ze=(z=y,H=function(Qe,nt){Se||se(oe!==1?1:Math.max(2,j/F),Qe,nt)},G=d.useRef(0),de=lC(function(){G.current=0,z.apply(void 0,[].slice.call(arguments))},{wait:300}),function(){var Qe=[].slice.call(arguments);G.current+=1,de.apply(void 0,Qe),G.current>=2&&(de.cancel(),G.current=0,H.apply(void 0,Qe))});function Ve(Qe,nt){if(P.current=0,(ie||X)&&S){M({touched:!1,maskTouched:!1,pause:!1,stopRaf:!1,reach:void 0});var jt=sC(oe,j/F);if(ge(Y,ee,pe,me,F,L,oe,jt,ve,ae,$e),C(Qe,nt),le===Qe&&ce===nt){if(ie)return void ze(Qe,nt);X&&w(Qe,nt)}}}function Be(Qe,nt,jt){jt===void 0&&(jt=0),M({touched:!0,CX:Qe,CY:nt,lastCX:Qe,lastCY:nt,lastX:Y,lastY:ee,lastScale:oe,touchLength:jt,touchTime:Date.now()})}function Xe(Qe){M({maskTouched:!0,CX:Qe.clientX,CY:Qe.clientY,lastX:Y,lastY:ee})}Q1(Zd?void 0:"mousemove",function(Qe){Qe.preventDefault(),ye(Qe.clientX,Qe.clientY)}),Q1(Zd?void 0:"mouseup",function(Qe){Ve(Qe.clientX,Qe.clientY)}),Q1(Zd?"touchmove":void 0,function(Qe){Qe.preventDefault();var nt=bre(Qe);ye.apply(void 0,nt)},{passive:!1}),Q1(Zd?"touchend":void 0,function(Qe){var nt=Qe.changedTouches[0];Ve(nt.clientX,nt.clientY)},{passive:!1}),Q1("resize",lC(function(){B&&!ie&&(M(TP(j,A,ae)),k())},{maxWait:8})),HA(function(){S&&_(La({scale:oe,rotate:ae},we))},[S]);var Ke=function(Qe,nt,jt,Lt,Bt,Ut,Ne,He,Le,Je){var pt=function(De,Ye,ot,Re,It){var rt=d.useRef(!1),$t=p5({lead:!0,scale:ot}),Mt=$t[0],dn=Mt.lead,pn=Mt.scale,T=$t[1],D=lC(function(J){try{return It(!0),T({lead:!1,scale:J}),Promise.resolve()}catch(ke){return Promise.reject(ke)}},{wait:Re});return HA(function(){rt.current?(It(!1),T({lead:!0}),D(ot)):rt.current=!0},[ot]),dn?[De*pn,Ye*pn,ot/pn]:[De*ot,Ye*ot,1]}(Ut,Ne,He,Le,Je),xt=pt[0],Nt=pt[1],Ot=pt[2],Pt=function(De,Ye,ot,Re,It){var rt=d.useState(YVt),$t=rt[0],Mt=rt[1],dn=d.useState(0),pn=dn[0],T=dn[1],D=d.useRef(),J=Zm({OK:function(){return De&&T(4)}});function ke(Ie){It(!1),T(Ie)}return d.useEffect(function(){if(D.current||(D.current=Date.now()),ot){if(function(Ie,it){var Ft=Ie&&Ie.current;if(Ft&&Ft.nodeType===1){var rn=Ft.getBoundingClientRect();it({T:rn.top,L:rn.left,W:rn.width,H:rn.height,FIT:Ft.tagName==="IMG"?getComputedStyle(Ft).objectFit:void 0})}}(Ye,Mt),De)return Date.now()-D.current<250?(T(1),requestAnimationFrame(function(){T(2),requestAnimationFrame(function(){return ke(3)})}),void setTimeout(J.OK,Re)):void T(4);ke(5)}},[De,ot]),[pn,$t]}(Qe,nt,jt,Le,Je),st=Pt[0],Ct=Pt[1],kt=Ct.W,qt=Ct.FIT,vt=innerWidth/2,At=innerHeight/2,dt=st<3||st>4;return[dt?kt?Ct.L:vt:Lt+(vt-Ut*He/2),dt?kt?Ct.T:At:Bt+(At-Ne*He/2),xt,dt&&qt?xt*(Ct.H/kt):Nt,st===0?Ot:dt?kt/(Ut*He)||.01:Ot,dt?qt?1:0:1,st,qt]}(c,l,B,Y,ee,F,L,oe,u,function(Qe){return M({pause:Qe})}),qe=Ke[4],Et=Ke[6],ut="transform "+u+"ms "+f,gt={className:h,onMouseDown:Zd?void 0:function(Qe){Qe.stopPropagation(),Qe.button===0&&Be(Qe.clientX,Qe.clientY,0)},onTouchStart:Zd?function(Qe){Qe.stopPropagation(),Be.apply(void 0,bre(Qe))}:void 0,onWheel:function(Qe){if(!Se){var nt=sC(oe-Qe.deltaY/100/2,j/F);M({stopRaf:!0}),se(nt,Qe.clientX,Qe.clientY)}},style:{width:Ke[2]+"px",height:Ke[3]+"px",opacity:Ke[5],objectFit:Et===4?void 0:Ke[7],transform:ae?"rotate("+ae+"deg)":void 0,transition:Et>2?ut+", opacity "+u+"ms ease, height "+(Et<4?u/2:Et>4?u:0)+"ms "+f:void 0}};return te.createElement("div",{className:"PhotoView__PhotoWrap"+(p?" "+p:""),style:m,onMouseDown:!Zd&&S?Xe:void 0,onTouchStart:Zd&&S?function(Qe){return Xe(Qe.touches[0])}:void 0},te.createElement("div",{className:"PhotoView__PhotoBox",style:{transform:"matrix("+qe+", 0, 0, "+qe+", "+Ke[0]+", "+Ke[1]+")",transition:ie||be?void 0:ut,willChange:S?"transform":void 0}},n?te.createElement(JVt,La({src:n,loaded:B,broken:U},gt,{onPhotoLoad:function(Qe){M(La({},Qe,Qe.loaded&&TP(Qe.naturalWidth||0,Qe.naturalHeight||0,ae)))},loadingElement:g,brokenElement:v})):r&&r({attrs:gt,scale:qe,rotate:ae})))}var xre={x:0,touched:!1,pause:!1,lastCX:void 0,lastCY:void 0,bg:void 0,lastBg:void 0,overlay:!0,minimal:!0,scale:1,rotate:0};function nqt(e){var t=e.loop,n=t===void 0?3:t,r=e.speed,i=e.easing,a=e.photoClosable,o=e.maskClosable,s=o===void 0||o,l=e.maskOpacity,c=l===void 0?1:l,u=e.pullClosable,f=u===void 0||u,p=e.bannerVisible,h=p===void 0||p,m=e.overlayRender,g=e.toolbarRender,v=e.className,y=e.maskClassName,w=e.photoClassName,b=e.photoWrapClassName,C=e.loadingElement,k=e.brokenElement,S=e.images,_=e.index,E=_===void 0?0:_,$=e.onIndexChange,M=e.visible,P=e.onClose,R=e.afterClose,O=e.portalContainer,j=p5(xre),I=j[0],A=j[1],N=d.useState(0),F=N[0],K=N[1],L=I.x,V=I.touched,B=I.pause,U=I.lastCX,Y=I.lastCY,ee=I.bg,ie=ee===void 0?c:ee,Z=I.lastBg,X=I.overlay,ae=I.minimal,oe=I.scale,le=I.rotate,ce=I.onScale,pe=I.onRotate,me=e.hasOwnProperty("index"),re=me?E:F,fe=me?$:K,ve=d.useRef(re),$e=S.length,Ce=S[re],be=typeof n=="boolean"?n:$e>n,Se=function(qe,Et){var ut=d.useReducer(function(jt){return!jt},!1)[1],gt=d.useRef(0),Qe=function(jt,Lt){var Bt=d.useRef(jt);function Ut(Ne){Bt.current=Ne}return d.useMemo(function(){(function(Ne){qe?(Ne(qe),gt.current=1):gt.current=2})(Ut)},[jt]),[Bt.current,Ut]}(qe),nt=Qe[1];return[Qe[0],gt.current,function(){ut(),gt.current===2&&(nt(!1),Et&&Et()),gt.current=0}]}(M,R),we=Se[0],se=Se[1],ye=Se[2];HA(function(){if(we)return A({pause:!0,x:re*-(innerWidth+20)}),void(ve.current=re);A(xre)},[we]);var Oe=Zm({close:function(qe){pe&&pe(0),A({overlay:!0,lastBg:ie}),P(qe)},changeIndex:function(qe,Et){Et===void 0&&(Et=!1);var ut=be?ve.current+(qe-re):qe,gt=$e-1,Qe=zA(ut,0,gt),nt=be?ut:Qe,jt=innerWidth+20;A({touched:!1,lastCX:void 0,lastCY:void 0,x:-jt*nt,pause:Et}),ve.current=nt,fe&&fe(be?qe<0?gt:qe>gt?0:qe:Qe)}}),z=Oe.close,H=Oe.changeIndex;function G(qe){return qe?z():A({overlay:!X})}function de(){A({x:-(innerWidth+20)*re,lastCX:void 0,lastCY:void 0,pause:!0}),ve.current=re}function xe(qe,Et,ut,gt){qe==="x"?function(Qe){if(U!==void 0){var nt=Qe-U,jt=nt;!be&&(re===0&&nt>0||re===$e-1&&nt<0)&&(jt=nt/2),A({touched:!0,lastCX:U,x:-(innerWidth+20)*ve.current+jt,pause:!1})}else A({touched:!0,lastCX:Qe,x:L,pause:!1})}(Et):qe==="y"&&function(Qe,nt){if(Y!==void 0){var jt=c===null?null:zA(c,.01,c-Math.abs(Qe-Y)/100/4);A({touched:!0,lastCY:Y,bg:nt===1?jt:c,minimal:nt===1})}else A({touched:!0,lastCY:Qe,bg:ie,minimal:!0})}(ut,gt)}function he(qe,Et){var ut=qe-(U??qe),gt=Et-(Y??Et),Qe=!1;if(ut<-40)H(re+1);else if(ut>40)H(re-1);else{var nt=-(innerWidth+20)*ve.current;Math.abs(gt)>100&&ae&&f&&(Qe=!0,z()),A({touched:!1,x:nt,lastCX:void 0,lastCY:void 0,bg:c,overlay:!!Qe||X})}}Q1("keydown",function(qe){if(M)switch(qe.key){case"ArrowLeft":H(re-1,!0);break;case"ArrowRight":H(re+1,!0);break;case"Escape":z()}});var Ue=function(qe,Et,ut){return d.useMemo(function(){var gt=qe.length;return ut?qe.concat(qe).concat(qe).slice(gt+Et-1,gt+Et+2):qe.slice(Math.max(Et-1,0),Math.min(Et+2,gt+1))},[qe,Et,ut])}(S,re,be);if(!we)return null;var We=X&&!se,ge=M?ie:Z,ze=ce&&pe&&{images:S,index:re,visible:M,onClose:z,onIndexChange:H,overlayVisible:We,overlay:Ce&&Ce.overlay,scale:oe,rotate:le,onScale:ce,onRotate:pe},Ve=r?r(se):400,Be=i?i(se):"cubic-bezier(0.25, 0.8, 0.25, 1)",Xe=r?r(3):600,Ke=i?i(3):"cubic-bezier(0.25, 0.8, 0.25, 1)";return te.createElement(UVt,{className:"PhotoView-Portal"+(We?"":" PhotoView-Slider__clean")+(M?"":" PhotoView-Slider__willClose")+(v?" "+v:""),role:"dialog",onClick:function(qe){return qe.stopPropagation()},container:O},M&&te.createElement(KVt,null),te.createElement("div",{className:"PhotoView-Slider__Backdrop"+(y?" "+y:"")+(se===1?" PhotoView-Slider__fadeIn":se===2?" PhotoView-Slider__fadeOut":""),style:{background:ge?"rgba(0, 0, 0, "+ge+")":void 0,transitionTimingFunction:Be,transitionDuration:(V?0:Ve)+"ms",animationDuration:Ve+"ms"},onAnimationEnd:ye}),h&&te.createElement("div",{className:"PhotoView-Slider__BannerWrap"},te.createElement("div",{className:"PhotoView-Slider__Counter"},re+1," / ",$e),te.createElement("div",{className:"PhotoView-Slider__BannerRight"},g&&ze&&g(ze),te.createElement(WVt,{className:"PhotoView-Slider__toolbarIcon",onClick:z}))),Ue.map(function(qe,Et){var ut=be||re!==0?ve.current-1+Et:re+Et;return te.createElement(tqt,{key:be?qe.key+"/"+qe.src+"/"+ut:qe.key,item:qe,speed:Ve,easing:Be,visible:M,onReachMove:xe,onReachUp:he,onPhotoTap:function(){return G(a)},onMaskTap:function(){return G(s)},wrapClassName:b,className:w,style:{left:(innerWidth+20)*ut+"px",transform:"translate3d("+L+"px, 0px, 0)",transition:V||B?void 0:"transform "+Xe+"ms "+Ke},loadingElement:C,brokenElement:k,onPhotoResize:de,isActive:ve.current===ut,expose:A})}),!Zd&&h&&te.createElement(te.Fragment,null,(be||re!==0)&&te.createElement("div",{className:"PhotoView-Slider__ArrowLeft",onClick:function(){return H(re-1,!0)}},te.createElement(VVt,null)),(be||re+1<$e)&&te.createElement("div",{className:"PhotoView-Slider__ArrowRight",onClick:function(){return H(re+1,!0)}},te.createElement(qVt,null))),m&&ze&&te.createElement("div",{className:"PhotoView-Slider__Overlay"},m(ze)))}var rqt=["children","onIndexChange","onVisibleChange"],iqt={images:[],visible:!1,index:0};function aqt(e){var t=e.children,n=e.onIndexChange,r=e.onVisibleChange,i=i7(e,rqt),a=p5(iqt),o=a[0],s=a[1],l=d.useRef(0),c=o.images,u=o.visible,f=o.index,p=Zm({nextId:function(){return l.current+=1},update:function(g){var v=c.findIndex(function(w){return w.key===g.key});if(v>-1){var y=c.slice();return y.splice(v,1,g),void s({images:y})}s(function(w){return{images:w.images.concat(g)}})},remove:function(g){s(function(v){var y=v.images.filter(function(w){return w.key!==g});return{images:y,index:Math.min(y.length-1,f)}})},show:function(g){var v=c.findIndex(function(y){return y.key===g});s({visible:!0,index:v}),r&&r(!0,v,o)}}),h=Zm({close:function(){s({visible:!1}),r&&r(!1,f,o)},changeIndex:function(g){s({index:g}),n&&n(g,o)}}),m=d.useMemo(function(){return La({},o,p)},[o,p]);return te.createElement(d4e.Provider,{value:m},t,te.createElement(nqt,La({images:c,visible:u,index:f,onIndexChange:h.changeIndex,onClose:h.close},i)))}var p4e=function(e){var t,n,r=e.src,i=e.render,a=e.overlay,o=e.width,s=e.height,l=e.triggers,c=l===void 0?["onClick"]:l,u=e.children,f=d.useContext(d4e),p=(t=function(){return f.nextId()},(n=d.useRef({sign:!1,fn:void 0}).current).sign||(n.sign=!0,n.fn=t()),n.fn),h=d.useRef(null);d.useImperativeHandle(u==null?void 0:u.ref,function(){return h.current}),d.useEffect(function(){return function(){f.remove(p)}},[]);var m=Zm({render:function(v){return i&&i(v)},show:function(v,y){f.show(p),function(w,b){if(u){var C=u.props[w];C&&C(b)}}(v,y)}}),g=d.useMemo(function(){var v={};return c.forEach(function(y){v[y]=m.show.bind(null,y)}),v},[]);return d.useEffect(function(){f.update({key:p,src:r,originRef:h,render:m.render,overlay:a,width:o,height:s})},[r]),u?d.Children.only(d.cloneElement(u,La({},g,{ref:h}))):null};const oqt=({content:e,status:t})=>{const[n,r]=d.useState(""),[i,a]=d.useState(""),[o,s]=d.useState(!1),l=jn();d.useEffect(()=>{if(t===Z6e){s(!0);let f=null;try{f=JSON.parse(e)}catch{}f&&(r(f.contact),a(f.content))}},[t]);const c=f=>{console.log("handleContactChange:",f),r(f)},u=f=>{console.log("handleContentChange:",f),a(f)};return x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:l.formatMessage({id:"leavemsg.title",defaultMessage:"留言"})}),x.jsxs(tp,{children:[o&&x.jsx(vA,{value:n,placeholder:l.formatMessage({id:"leavemsg.contact.placeholder",defaultMessage:"请输入联系方式..."}),rows:1,onChange:c,style:{marginTop:"8px"},disabled:!0}),o&&x.jsx(vA,{value:i,placeholder:l.formatMessage({id:"leavemsg.content.placeholder",defaultMessage:"请输入留言..."}),rows:3,onChange:u,style:{marginTop:"8px"},disabled:!0})]}),x.jsx(mwe,{children:x.jsx(qs,{color:"primary",disabled:!0,children:o?l.formatMessage({id:"leavemsg.status.submitted",defaultMessage:"访客已留言"}):l.formatMessage({id:"leavemsg.status.pending",defaultMessage:"待留言"})})})]})})},sqt=({uid:e,content:t})=>(console.log("RobotQa",e,t),x.jsx(x.Fragment,{children:x.jsxs(fu,{children:[x.jsx(Xs,{fluid:!0,children:x.jsx(UH,{children:t})}),x.jsx(Swe,{onClick:console.log})]})})),lqt=te.forwardRef((e,t)=>{const{uid:n,content:r}=e,[i,a]=d.useState();return d.useEffect(()=>{let o=null;try{o=JSON.parse(r)}catch{}o&&a(o)},[r]),x.jsx("div",{ref:t,children:x.jsx(Xs,{children:x.jsxs(UH,{children:[(i==null?void 0:i.type)===vo&&x.jsx(x.Fragment,{children:i==null?void 0:i.content}),(i==null?void 0:i.type)===Cl&&x.jsx(p4e,{src:i==null?void 0:i.content,children:x.jsx("img",{src:i==null?void 0:i.content,alt:""})})]})})})}),cqt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"转接会话"}),x.jsx(tp,{children:r})]})})};async function uqt(e){return bn("/api/v1/thread/invite/create",{method:"POST",data:{...e}})}async function h4e(e){return bn("/api/v1/thread/invite/accept",{method:"POST",data:{...e}})}async function m4e(e){return bn("/api/v1/thread/invite/reject",{method:"POST",data:{...e}})}async function dqt(e){return bn("/api/v1/thread/invite/exit",{method:"POST",data:{...e}})}async function fqt(e){return bn("/api/v1/thread/transfer/create",{method:"POST",data:{...e}})}async function g4e(e){return bn("/api/v1/thread/transfer/accept",{method:"POST",data:{...e}})}async function v4e(e){return bn("/api/v1/thread/transfer/reject",{method:"POST",data:{...e}})}const pqt=({content:e})=>{const[t,n]=d.useState({}),[r,i]=d.useState({}),[a,o]=d.useState(null),[s,l]=d.useState(null),[c,u]=d.useState(null),[f,p]=d.useState(null),h=fr(k=>k.addThread),{updateMessageTransferStatus:m,updateMessageInviteStatus:g}=Td(),{translateString:v}=Zr();d.useEffect(()=>{var k,S,_,E,$,M,P,R,O,j;try{const I=JSON.parse(e);if(n(I),I.extra)try{const A=JSON.parse(I.extra);if(i(A),I.type===Ld&&I.extra)try{const N=JSON.parse(I.extra);o(N);const F={uid:(k=a==null?void 0:a.thread)==null?void 0:k.uid,topic:(S=a==null?void 0:a.thread)==null?void 0:S.topic,type:(_=a==null?void 0:a.thread)==null?void 0:_.type,state:(E=a==null?void 0:a.thread)==null?void 0:E.state,user:($=a==null?void 0:a.thread)==null?void 0:$.user};l(F)}catch(N){console.error("Failed to parse transfer extra:",N)}if(I.type===Bd&&I.extra)try{const N=JSON.parse(I.extra);u(N);const F={uid:(M=c==null?void 0:c.thread)==null?void 0:M.uid,topic:(P=c==null?void 0:c.thread)==null?void 0:P.topic,type:(R=c==null?void 0:c.thread)==null?void 0:R.type,state:(O=c==null?void 0:c.thread)==null?void 0:O.state,user:(j=c==null?void 0:c.thread)==null?void 0:j.user};p(F)}catch(N){console.error("Failed to parse invite extra:",N)}}catch(A){console.error("Failed to parse extra data:",A)}}catch(I){console.error("Failed to parse content:",I)}},[e]);const y=async()=>{var _;console.log("接受操作",t);let k="",S="";t.type===Ld?(k=v("i18n.confirm_accept_transfer"),S=v("i18n.confirm_accept_transfer_desc"),a!=null&&a.sender&&(S+=` ${a.sender.nickname} → ${(_=a.receiver)==null?void 0:_.nickname}`)):t.type===Bd&&(k=v("i18n.confirm_accept_invite"),S=v("i18n.confirm_accept_invite_desc"),c!=null&&c.sender&&(S+=` ${c.sender.nickname}`)),yr.confirm({title:k,content:S,onOk:async()=>{if(t.type===Ld){if(a){console.log("Transfer Content:",a),[a.sender,a.receiver]=[a.receiver,a.sender],a.status=p0;const E=await g4e(a);console.log("acceptThread response:",E),E.data.code===200?(je.success("同意转接会话成功"),Xve(JSON.stringify(a),s),h(s),m(a.messageUid,p0)):je.error(v(E.data.message))}}else if(t.type===Bd&&c){console.log("Invite Content:",c),[c.sender,c.receiver]=[c.receiver,c.sender],c.status=zV;const E=await h4e(c);console.log("acceptThreadInvite response:",E),E.data.code===200?(je.success("同意邀请会话成功"),Qve(JSON.stringify(c),f),h(f),g(c.messageUid,zV)):je.error(v(E.data.message))}},okText:v("i18n.confirm"),cancelText:v("i18n.cancel")})},w=async()=>{console.log("拒绝操作",t);let k="",S="";t.type===Ld?(k=v("i18n.confirm_reject_transfer"),S=v("i18n.confirm_reject_transfer_desc"),a!=null&&a.sender&&(S+=` ${a.sender.nickname}`)):t.type===Bd&&(k=v("i18n.confirm_reject_invite"),S=v("i18n.confirm_reject_invite_desc"),c!=null&&c.sender&&(S+=` ${c.sender.nickname}`)),yr.confirm({title:k,content:S,onOk:async()=>{if(t.type===Ld){if(a){console.log("Transfer Content:",a),[a.sender,a.receiver]=[a.receiver,a.sender],a.status=h0;const _=await v4e(a);console.log("transferThreadReject response:",_),_.data.code===200?(je.success("拒绝转接会话成功"),Zve(JSON.stringify(a),s),m(a.messageUid,h0)):je.error(v(_.data.message))}}else if(t.type===Bd&&c){console.log("Invite Content:",c),[c.sender,c.receiver]=[c.receiver,c.sender],c.status=HV;const _=await m4e(c);console.log("rejectThreadInvite response:",_),_.data.code===200?(je.success("拒绝邀请会话成功"),Jve(JSON.stringify(c),f),g(c.messageUid,HV)):je.error(v(_.data.message))}},okText:v("i18n.confirm"),cancelText:v("i18n.cancel")})},b=()=>t.type===Ld||t.type===Bd?x.jsxs(Xr,{style:{marginTop:10},children:[x.jsx(qs,{onClick:()=>y(),color:"primary",className:"bg-green-500 hover:bg-green-600 text-white",size:"sm",children:v("i18n.accept")}),x.jsx(qs,{onClick:()=>w(),className:"bg-red-500 hover:bg-red-600 text-white",size:"sm",children:v("i18n.reject")})]}):null,C=()=>{var k,S,_,E,$,M,P,R;return t.type===d5e?x.jsxs("div",{className:"space-y-2",children:[x.jsx("div",{className:"font-medium text-base",children:v("i18n.login_notification")}),x.jsxs("div",{className:"text-sm",children:[x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.login_time"),":"]})," ",new Date().toLocaleString()]}),r.loginIp&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.login_ip"),":"]})," ",r.loginIp]}),r.loginLocation&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.login_location"),":"]})," ",r.loginLocation]})]}),x.jsx("div",{className:"text-xs text-gray-500 mt-2",children:v("i18n.if_not_you_please_change_password")})]}):[Ld,VV,WV,qV,KV].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===Ld&&v("i18n.transfer_notification"),t.type===VV&&v("i18n.transfer_accepted"),t.type===WV&&v("i18n.transfer_rejected"),t.type===qV&&v("i18n.transfer_timeout"),t.type===KV&&v("i18n.transfer_cancelled")]}),x.jsx("div",{className:"text-sm",children:x.jsxs(x.Fragment,{children:[(a==null?void 0:a.sender)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.from"),":"]})," ",(k=a==null?void 0:a.sender)==null?void 0:k.nickname]}),(a==null?void 0:a.receiver)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.to"),":"]})," ",(S=a==null?void 0:a.receiver)==null?void 0:S.nickname]}),(a==null?void 0:a.thread)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",(E=(_=a==null?void 0:a.thread)==null?void 0:_.user)==null?void 0:E.nickname]}),(a==null?void 0:a.note)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",a==null?void 0:a.note]})]})}),t.type===Ld&&b()]}):[Bd,YV,GV,XV,ZV].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===Bd&&v("i18n.invite_notification"),t.type===YV&&v("i18n.invite_accepted"),t.type===GV&&v("i18n.invite_rejected"),t.type===XV&&v("i18n.invite_timeout"),t.type===ZV&&v("i18n.invite_cancelled")]}),x.jsx("div",{className:"text-sm",children:x.jsxs(x.Fragment,{children:[(c==null?void 0:c.sender)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",($=c==null?void 0:c.sender)==null?void 0:$.nickname]}),(c==null?void 0:c.receiver)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.invitee"),":"]})," ",(M=c==null?void 0:c.receiver)==null?void 0:M.nickname]}),(c==null?void 0:c.thread)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",((R=(P=c==null?void 0:c.thread)==null?void 0:P.user)==null?void 0:R.nickname)||v("i18n.untitled_conversation")]}),(c==null?void 0:c.note)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",c==null?void 0:c.note]})]})}),t.type===Bd&&b()]}):[QV,eq,JV,tq,nq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===QV&&v("i18n.visitor_invite_notification"),t.type===eq&&v("i18n.visitor_invite_accepted"),t.type===JV&&v("i18n.visitor_invite_rejected"),t.type===tq&&v("i18n.visitor_invite_timeout"),t.type===nq&&v("i18n.visitor_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.visitorNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.visitor"),":"]})," ",r.visitorNickname]}),r.agentNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.agent"),":"]})," ",r.agentNickname]})]})]}):[rq,aq,iq,oq,sq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===rq&&v("i18n.group_invite_notification"),t.type===aq&&v("i18n.group_invite_accepted"),t.type===iq&&v("i18n.group_invite_rejected"),t.type===oq&&v("i18n.group_invite_timeout"),t.type===sq&&v("i18n.group_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.groupName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.group_name"),":"]})," ",r.groupName]}),r.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",r.inviterNickname]})]})]}):[lq,uq,cq,dq,fq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===lq&&v("i18n.kbase_invite_notification"),t.type===uq&&v("i18n.kbase_invite_accepted"),t.type===cq&&v("i18n.kbase_invite_rejected"),t.type===dq&&v("i18n.kbase_invite_timeout"),t.type===fq&&v("i18n.kbase_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.kbaseName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.kbase_name"),":"]})," ",r.kbaseName]}),r.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",r.inviterNickname]})]})]}):[pq,mq,hq,gq,vq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===pq&&v("i18n.organization_invite_notification"),t.type===mq&&v("i18n.organization_invite_accepted"),t.type===hq&&v("i18n.organization_invite_rejected"),t.type===gq&&v("i18n.organization_invite_timeout"),t.type===vq&&v("i18n.organization_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.organizationName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.organization_name"),":"]})," ",r.organizationName]}),r.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",r.inviterNickname]})]})]}):x.jsx("div",{children:(t==null?void 0:t.title)||v("i18n.system_notification")})};return x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:v("i18n.notice")}),x.jsx(tp,{children:C()})]})})},{Header:hqt}=Qn,mqt=({fromTicketTab:e=!1,chatThread:t,typing:n,previewContent:r,setIsTransferThreadModelOpen:i,setIsInviteThreadModelOpen:a,setIsTicketCreateModelOpen:o,showCloseThreadConfirm:s,setIsGroupInfoDrawerOpen:l,setIsMemberInfoDrawerOpen:c,setIsRobotInfoDrawerOpen:u})=>{const f=jn(),{headerStyle:p}=co(),{isDarkMode:h}=d.useContext(Ea),m=ja(Y=>Y.currentTicket),g=ja(Y=>Y.setCurrentTicket),[v,y]=yr.useModal(),{agentInfo:w}=Eo.getState(),b=Na(Y=>Y.memberInfo),C=Vr(Y=>Y.currentOrg),{removeThreadWithUid:k,setCurrentThread:S}=fr(),[_,E]=d.useState(!1),$=()=>{var Y;if(!e)return t!=null&&t.user?(Y=t==null?void 0:t.user)==null?void 0:Y.avatar:""},M=()=>{var Y,ee,ie,Z,X;return e?m==null?void 0:m.title:t!=null&&t.user?(ee=(Y=t==null?void 0:t.user)==null?void 0:Y.nickname)!=null&&ee.startsWith(Iw)?f.formatMessage({id:(ie=t==null?void 0:t.user)==null?void 0:ie.nickname,defaultMessage:(Z=t==null?void 0:t.user)==null?void 0:Z.nickname}):((X=t==null?void 0:t.user)==null?void 0:X.nickname)||f.formatMessage({id:"chat.header.user.unnamed"}):""},P=()=>e?" 工单编号:#"+(m==null?void 0:m.uid)+","+Nk(m==null?void 0:m.description,100):n?r||f.formatMessage({id:"i18n.typing"}):Dk(t)?"工单编号:#"+(m==null?void 0:m.uid)+","+Nk(m==null?void 0:m.title,100):"会话编号:#"+(t==null?void 0:t.uid),R=async()=>{v.confirm({title:"认领工单",content:"确定认领该工单吗?",onOk:async()=>{je.loading("认领中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await lWt(Y);console.log("claimTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.claim.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message),g(void 0),Za.refreshTickets())}})},O=async()=>{v.confirm({title:"处理工单",content:"确定处理该工单吗?",onOk:async()=>{je.loading("处理中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await cWt(Y);console.log("query startProcessingTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.process.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},j=async()=>{v.confirm({title:"解决工单",content:"确定解决该工单吗?",onOk:async()=>{je.loading("解决中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await fWt(Y);console.log("query resolveTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.resolve.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},I=()=>{v.confirm({title:f.formatMessage({id:"ticket.verify.title"}),content:f.formatMessage({id:"ticket.verify.content"}),okText:f.formatMessage({id:"ticket.verify.pass"}),cancelText:f.formatMessage({id:"ticket.verify.reject"}),okButtonProps:{type:"primary"},cancelButtonProps:{danger:!0},onOk:async()=>{je.loading("验证中...",2);try{const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid,verified:!0},ee=await Jne(Y);console.log("query verifyTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.verify.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}catch{je.destroy(),je.error(f.formatMessage({id:"ticket.verify.error"}))}},onCancel:async()=>{je.loading("验证中...",2);try{const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid,verified:!1},ee=await Jne(Y);console.log("query verifyTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.verify.reject.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}catch{je.destroy(),je.error(f.formatMessage({id:"ticket.verify.error"}))}},footer:(Y,{OkBtn:ee,CancelBtn:ie})=>x.jsxs(x.Fragment,{children:[x.jsx(Yt,{onClick:()=>yr.destroyAll(),children:f.formatMessage({id:"ticket.verify.later"})}),x.jsx(ie,{}),x.jsx(ee,{})]})})},A=async()=>{v.confirm({title:"挂起工单",content:"确定挂起该工单吗?",onOk:async()=>{je.loading("挂起中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await dWt(Y);console.log("query holdTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.hold.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},N=async()=>{v.confirm({title:"恢复工单",content:"确定恢复该工单吗?",onOk:async()=>{je.loading("恢复中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await Qne(Y);console.log("query resumeTicket response",Y,ee.data),ee.data.code===200?(je.success(f.formatMessage({id:"ticket.action.resume.success"})),g(ee.data.data),Za.refreshTickets()):je.error(ee.data.message)}})},F=async()=>{v.confirm({title:"退回工单",content:"确定退回该工单吗?",onOk:async()=>{je.loading("退回中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await uWt(Y);console.log("query unclaimTicket response",Y,ee.data),ee.data.code===200?(je.success(f.formatMessage({id:"ticket.action.unclaim.success"})),g(ee.data.data),Za.refreshTickets()):(je.error(ee.data.message),g(void 0),Za.refreshTickets())}})},K=async()=>{v.confirm({title:"关闭工单",content:"确定关闭该工单吗?",onOk:async()=>{je.loading("关闭中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await pWt(Y);console.log("query closeTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.close.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},L=async()=>{v.confirm({title:"重新打开工单",content:"确定重新打开该工单吗?",onOk:async()=>{je.loading("重新打开中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await Qne(Y);console.log("query resumeTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.resume.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},V=()=>{v.confirm({title:"退出会话",content:"确定要退出当前会话吗?",onOk:async()=>{const Y={sender:{uid:w==null?void 0:w.uid},thread:{uid:t==null?void 0:t.uid}},ee=await dqt(Y);console.log("exitThreadInvite response",ee.data),ee.data.code===200?(je.success("退出会话成功"),k(t==null?void 0:t.uid),S(void 0)):je.error(ee.data.message)}})},B=()=>{if(!m)return null;const Y=[];switch(m.status){case lg:case Rse:case Ise:Y.push(x.jsx(Yt,{type:"primary",onClick:R,children:f.formatMessage({id:"ticket.action.claim"})},"claim"));break;case Y3:case Q3:FK(m,b)&&Y.push(x.jsx(Yt,{type:"primary",onClick:O,danger:!0,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.process"})},"process"),x.jsx(Yt,{onClick:F,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.unclaim"})},"return"));break;case ly:case PF:FK(m,b)&&Y.push(x.jsx(Yt,{type:"primary",onClick:j,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.resolve"})},"resolve"),x.jsx(Yt,{onClick:A,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.hold"})},"hold"),x.jsx(Yt,{type:"primary",onClick:K,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.close"})},"close"));break;case X3:case Z3:Y.push(x.jsx(Yt,{type:"primary",onClick:N,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.resume"})},"resume"));break;case e4:case t4:Y.push(x.jsx(Yt,{onClick:L,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.reopen"})},"reopen"));break;case J3:(m==null?void 0:m.reporter.uid)===(b==null?void 0:b.uid)&&Y.push(x.jsx(Yt,{onClick:I,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.verify"})},"verify"));break}return Y},U=Y=>!Y||Y.length===0?null:(Y=Y.filter(ee=>ee!==""),x.jsx("span",{style:{marginLeft:"5px"},children:Y.map(ee=>{const ie=ee.length>10,Z=x.jsx(Vi,{color:"blue",children:ie?`${ee.slice(0,10)}...`:ee},ee);return ie?x.jsx(_a,{title:ee,children:Z},ee):Z})}));return x.jsxs(x.Fragment,{children:[x.jsxs(hqt,{style:{...p,padding:"0 16px",display:"flex",justifyContent:"space-between",alignItems:"center",height:60},children:[x.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"8px"},children:[$()&&x.jsx("img",{src:$(),alt:"avatar",style:{width:32,height:32,borderRadius:"50%",objectFit:"cover"}}),x.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0"},children:[x.jsxs("span",{style:{fontSize:"16px",fontWeight:500,color:h?"#fff":"#000",lineHeight:"20px",display:"flex",alignItems:"center"},children:[M(),U(t==null?void 0:t.tagList),(t==null?void 0:t.user)&&x.jsx(Yt,{type:"text",size:"small",icon:x.jsx(Em,{}),onClick:()=>E(!0),style:{marginLeft:"4px",padding:"0 4px"}})]}),x.jsx("span",{style:{fontSize:"12px",color:h?"#fff":"#000",lineHeight:"16px",minHeight:"16px"},children:P()})]})]}),!e&&Rf(t)&&x.jsxs(Xr,{children:[x.jsx(Yt,{color:"green",variant:"filled",onClick:()=>i(!0),children:f.formatMessage({id:"chat.header.action.transfer"})}),x.jsx(Yt,{color:"pink",variant:"filled",onClick:()=>a(!0),children:f.formatMessage({id:"chat.header.action.invite"})}),x.jsx(Yt,{color:"purple",variant:"filled",onClick:()=>o(!0),children:f.formatMessage({id:"chat.header.action.create.ticket"})}),t&&t.state!==nR&&x.jsx(Yt,{color:"danger",variant:"filled",onClick:s,children:f.formatMessage({id:"chat.header.action.close"})}),aRe(w,t)&&x.jsx(Yt,{color:"danger",variant:"text",onClick:V,children:f.formatMessage({id:"chat.header.action.exit"})})]}),!e&&(Fo(t)||Ak(t)||Fk(t))&&x.jsx(Xr,{children:x.jsx(Yt,{icon:x.jsx(bve,{}),onClick:()=>{Fo(t)?l(!0):Ak(t)?c(!0):Fk(t)?u(!0):je.warning(f.formatMessage({id:"chat.header.type.not.supported"}))}})}),(e||Dk(t))&&x.jsx(Xr,{children:B()})]}),y,_&&t&&x.jsx(X3e,{open:_,currentThread:t,handleOk:()=>E(!1),handleCancel:()=>E(!1)})]})};async function gqt(e){return bn("/api/v1/kbase/query/org",{method:"GET",params:{...e,client:kn}})}async function vqt(e){return bn("/api/v1/autoreply/fixed/query/org",{method:"GET",params:{...e,client:kn}})}const yqt=({open:e,onOk:t,onCancel:n})=>{var S;const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),o=Vr(_=>_.currentOrg),[s,l]=d.useState(),[c,u]=d.useState(),[f,p]=d.useState(jM),{agentInfo:h,setAgentInfo:m}=Eo(_=>({agentInfo:_.agentInfo,setAgentInfo:_.setAgentInfo})),g=async()=>{console.log("getAgentProfile:",o==null?void 0:o.uid);const _=await $le(o==null?void 0:o.uid);console.log("getAgentProfile response:",o==null?void 0:o.uid,_.data),_.data.code===200&&m(_.data.data)},v=d.useCallback(async()=>{try{je.loading(r.formatMessage({id:"loading"}));const _={pageNumber:0,pageSize:50,orgUid:o==null?void 0:o.uid},E=await vqt(_);console.log("queryAutoReplyFixedByOrg response:",E.data,_),E.data.code===200?l(E.data):je.error(E.data.message)}catch(_){console.error("Error fetching auto replies:",_),je.error(r.formatMessage({id:"error.fetch.failed"}))}finally{je.destroy()}},[o==null?void 0:o.uid]),y=d.useCallback(async _=>{try{je.loading(r.formatMessage({id:"loading"}));const E={pageNumber:0,pageSize:50,type:_,orgUid:o==null?void 0:o.uid},$=await gqt(E);console.log("getKeywordBase response:",$.data),$.data.code===200?u($.data):je.error($.data.message)}catch(E){console.error("Error fetching knowledge base:",E),je.error(r.formatMessage({id:"error.fetch.failed"}))}finally{je.destroy()}},[f,o==null?void 0:o.uid]);d.useEffect(()=>{v(),y(bq)},[]),d.useEffect(()=>{f===NM?y(bq):f===AM&&y(g5e)},[f]),d.useEffect(()=>{var _,E,$,M,P,R;h!=null&&h.autoReplySettings&&i.setFieldsValue({kbUid:(_=h==null?void 0:h.autoReplySettings)==null?void 0:_.kbUid,autoReplyEnabled:(E=h==null?void 0:h.autoReplySettings)==null?void 0:E.autoReplyEnabled,autoReplyType:($=h==null?void 0:h.autoReplySettings)==null?void 0:$.autoReplyType,autoReplyUid:(M=h==null?void 0:h.autoReplySettings)==null?void 0:M.autoReplyUid,autoReplyContent:(P=h==null?void 0:h.autoReplySettings)==null?void 0:P.autoReplyContent,autoReplyContentType:(R=h==null?void 0:h.autoReplySettings)==null?void 0:R.autoReplyContentType})},[h,i]);const w=(_,E)=>{console.log("handleAutoReplyTypeChange:",_,E),p(_)},b=(_,E)=>{var $;console.log("handleAutoReplySelectChange:",_,E),($=s==null?void 0:s.data.content)==null||$.forEach(M=>{M.uid===_&&i.setFieldsValue({autoReplyContentType:M.type,autoReplyContent:M.content})})},C=async()=>{console.log("handleAutoReplySubmit:"),je.loading(r.formatMessage({id:"autoreply.save.loading",defaultMessage:"正在保存,请稍后..."}));const _={uid:h==null?void 0:h.uid,autoReplySettings:{autoReplyEnabled:i.getFieldValue("autoReplyEnabled"),autoReplyType:i.getFieldValue("autoReplyType"),autoReplyUid:i.getFieldValue("autoReplyUid"),autoReplyContent:i.getFieldValue("autoReplyContent"),autoReplyContentType:i.getFieldValue("autoReplyContentType"),kbUid:i.getFieldValue("kbUid")}},E=await s$e(_);console.log("handleUpdateAutoReply:",E),E.data.code===200?(je.destroy(),m(E.data.data),t()):(je.destroy(),je.error(r.formatMessage({id:"autoreply.save.error",defaultMessage:"保存失败"})))},k=()=>{n()};return d.useEffect(()=>{g()},[]),x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"autoreply.title",defaultMessage:"自动回复"}),open:e,forceRender:!0,onOk:C,onCancel:k,children:x.jsxs(Kn,{form:i,submitter:{render:!1},children:[x.jsx(VN,{width:"md",name:"autoReplyEnabled",label:r.formatMessage({id:"autoreply.enable.label",defaultMessage:"是否启用自动回复"}),fieldProps:{onChange:C}}),x.jsx(ro,{width:"md",name:"autoReplyType",label:r.formatMessage({id:"autoreply.type.label",defaultMessage:"自动回复类型"}),options:[{label:r.formatMessage({id:"autoreply.type.fixed"}),value:jM},{label:r.formatMessage({id:"autoreply.type.keyword"}),value:NM},{label:r.formatMessage({id:"autoreply.type.llm"}),value:AM,disabled:!Nl}],fieldProps:{onChange(_,E){w(_,E)}}}),f===jM&&x.jsx(x.Fragment,{children:x.jsx(ro,{width:"md",name:"autoReplyContent",label:r.formatMessage({id:"autoreply.fixed.select",defaultMessage:"选择固定回复内容"}),options:(S=s==null?void 0:s.data)==null?void 0:S.content.map(_=>({label:a(_==null?void 0:_.content),value:_==null?void 0:_.content})),fieldProps:{onChange(_,E){b(_,E)}}})}),f===NM&&x.jsx(x.Fragment,{children:x.jsx(ro,{width:"md",name:"kbUid",label:r.formatMessage({id:"autoreply.keyword.select",defaultMessage:"选择关键词知识库"}),options:c==null?void 0:c.data.content.map(_=>({label:a(_.name),value:_.uid}))})}),f===AM&&x.jsx(x.Fragment,{children:x.jsx(ro,{width:"md",name:"kbUid",label:r.formatMessage({id:"autoreply.llm.select",defaultMessage:"选择大模型知识库"}),options:c==null?void 0:c.data.content.map(_=>({label:a(_.name),value:_.uid}))})})]})})})};var Gi=(e=>(e[e.Edit=0]="Edit",e[e.Source=1]="Source",e))(Gi||{});function h5({image:e,width:t,height:n,history:r,bounds:i}){return new Promise((a,o)=>{const s=document.createElement("canvas"),l=i.width*window.devicePixelRatio,c=i.height*window.devicePixelRatio;s.width=l,s.height=c;const u=s.getContext("2d");if(!u)return o(new Error("convert image to blob fail"));const f=e.naturalWidth/t,p=e.naturalHeight/n;u.imageSmoothingEnabled=!0,u.imageSmoothingQuality="low",u.setTransform(window.devicePixelRatio,0,0,window.devicePixelRatio,0,0),u.clearRect(0,0,i.width,i.height),u.drawImage(e,i.x*f,i.y*p,i.width*f,i.height*p,0,0,i.width,i.height),r.stack.slice(0,r.index+1).forEach(h=>{h.type===Gi.Source&&h.draw(u,h)}),s.toBlob(h=>{if(!h)return o(new Error("canvas toBlob fail"));a(h)},"image/png")})}const y4e={magnifier_position_label:"坐标",operation_ok_title:"确定",operation_cancel_title:"取消",operation_save_title:"保存",operation_redo_title:"重做",operation_undo_title:"撤销",operation_mosaic_title:"马赛克",operation_text_title:"文本",operation_brush_title:"画笔",operation_arrow_title:"箭头",operation_ellipse_title:"椭圆",operation_rectangle_title:"矩形"},hU=te.createContext({store:{url:void 0,image:null,width:0,height:0,lang:y4e,emiterRef:{current:{}},canvasContextRef:{current:null},history:{index:-1,stack:[]},bounds:null,cursor:"move",operation:void 0},dispatcher:{call:void 0,setHistory:void 0,setBounds:void 0,setCursor:void 0,setOperation:void 0}});function dx(){const{dispatcher:e}=d.useContext(hU);return e}function Zs(){const{store:e}=d.useContext(hU);return e}function ib(){const{bounds:e}=Zs(),{setBounds:t}=dx(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t(null)},[t]);return[e,{set:n,reset:r}]}function Nd(){const{lang:e}=Zs();return e}const q1=100,K1=80,bqt=d.memo(function({x:t,y:n}){const{width:r,height:i,image:a}=Zs(),o=Nd(),[s,l]=d.useState(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),[p,h]=d.useState("000000");return d.useLayoutEffect(()=>{if(!c.current)return;const m=c.current.getBoundingClientRect();let g=t+20,v=n+20;g+m.width>r&&(g=t-m.width-20),v+m.height>i&&(v=n-m.height-20),g<0&&(g=0),v<0&&(v=0),l({x:g,y:v})},[r,i,t,n]),d.useEffect(()=>{if(!a||!u.current){f.current=null;return}if(f.current||(f.current=u.current.getContext("2d")),!f.current)return;const m=f.current;m.clearRect(0,0,q1,K1);const g=a.naturalWidth/r,v=a.naturalHeight/i;m.drawImage(a,t*g-q1/2,n*v-K1/2,q1,K1,0,0,q1,K1);const{data:y}=m.getImageData(Math.floor(q1/2),Math.floor(K1/2),1,1),w=Array.from(y.slice(0,3)).map(b=>b>=16?b.toString(16):`0${b.toString(16)}`).join("").toUpperCase();h(w)},[r,i,a,t,n]),x.jsxs("div",{ref:c,className:"screenshots-magnifier",style:{transform:`translate(${s==null?void 0:s.x}px, ${s==null?void 0:s.y}px)`},children:[x.jsx("div",{className:"screenshots-magnifier-body",children:x.jsx("canvas",{ref:u,className:"screenshots-magnifier-body-canvas",width:q1,height:K1})}),x.jsxs("div",{className:"screenshots-magnifier-footer",children:[x.jsxs("div",{className:"screenshots-magnifier-footer-item",children:[o.magnifier_position_label,": (",t,",",n,")"]}),x.jsxs("div",{className:"screenshots-magnifier-footer-item",children:["RGB: #",p]})]})]})});function wqt({x:e,y:t},{x:n,y:r},i,a){return e>n&&([e,n]=[n,e]),t>r&&([t,r]=[r,t]),e<0&&(e=0),n>i&&(n=i),t<0&&(t=0),r>a&&(r=a),{x:e,y:t,width:n-e,height:r-t}}const xqt=d.memo(function(){const{url:t,image:n,width:r,height:i}=Zs(),[a,o]=ib(),s=d.useRef(null),l=d.useRef(null),c=d.useRef(!1),[u,f]=d.useState(null),p=d.useCallback((m,g)=>{if(!s.current)return;const{x:v,y}=s.current.getBoundingClientRect();o.set(wqt({x:m.x-v,y:m.y-y},{x:g.x-v,y:g.y-y},r,i))},[r,i,o]),h=d.useCallback(m=>{l.current||a||m.button!==0||(l.current={x:m.clientX,y:m.clientY},c.current=!1)},[a]);return d.useEffect(()=>{const m=v=>{if(s.current){const y=s.current.getBoundingClientRect();v.clientXy.right||v.clientY>y.bottom?f(null):f({x:v.clientX-y.x,y:v.clientY-y.y})}l.current&&(p(l.current,{x:v.clientX,y:v.clientY}),c.current=!0)},g=v=>{l.current&&(c.current&&p(l.current,{x:v.clientX,y:v.clientY}),l.current=null,c.current=!1)};return window.addEventListener("mousemove",m),window.addEventListener("mouseup",g),()=>{window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",g)}},[p]),d.useLayoutEffect(()=>{(!n||a)&&f(null)},[n,a]),!t||!n?null:x.jsxs("div",{ref:s,className:"screenshots-background",onMouseDown:h,children:[x.jsx("img",{className:"screenshots-background-image",src:t}),x.jsx("div",{className:"screenshots-background-mask"}),u&&!a&&x.jsx(bqt,{x:u==null?void 0:u.x,y:u==null?void 0:u.y})]})});function Ph(){const{cursor:e}=Zs(),{setCursor:t}=dx(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t("move")},[t]);return[e,{set:n,reset:r}]}function ab(){const{emiterRef:e}=Zs(),t=d.useCallback((a,o)=>{const s=e.current;Array.isArray(s[a])?s[a].push(o):s[a]=[o]},[e]),n=d.useCallback((a,o)=>{const s=e.current;if(Array.isArray(s[a])){const l=s[a].findIndex(c=>c===o);l!==-1&&s[a].splice(l,1)}},[e]),r=d.useCallback((a,...o)=>{const s=e.current;Array.isArray(s[a])&&s[a].forEach(l=>l(...o))},[e]),i=d.useCallback(()=>{e.current={}},[e]);return{on:t,off:n,emit:r,reset:i}}function Rc(){const{history:e}=Zs(),{setHistory:t}=dx(),n=d.useCallback(u=>{const{index:f,stack:p}=e;p.forEach(h=>{h.type===Gi.Source&&(h.isSelected=!1)}),u.type===Gi.Source?u.isSelected=!0:u.type===Gi.Edit&&(u.source.isSelected=!0),p.splice(f+1),p.push(u),t==null||t({index:p.length-1,stack:p})},[e,t]),r=d.useCallback(()=>{const{stack:u}=e;u.pop(),t==null||t({index:u.length-1,stack:u})},[e,t]),i=d.useCallback(()=>{const{index:u,stack:f}=e,p=f[u];p&&(p.type===Gi.Source?p.isSelected=!1:p.type===Gi.Edit&&p.source.editHistory.pop()),t==null||t({index:u<=0?-1:u-1,stack:f})},[e,t]),a=d.useCallback(()=>{const{index:u,stack:f}=e,p=f[u+1];p&&(p.type===Gi.Source?p.isSelected=!1:p.type===Gi.Edit&&p.source.editHistory.push(p)),t==null||t({index:u>=f.length-1?f.length-1:u+1,stack:f})},[e,t]),o=d.useCallback(u=>{t==null||t({...u})},[t]),s=d.useCallback(u=>{e.stack.forEach(f=>{f.type===Gi.Source&&(f===u?f.isSelected=!0:f.isSelected=!1)}),t==null||t({...e})},[e,t]),l=d.useCallback(()=>{e.stack.forEach(u=>{u.type===Gi.Source&&(u.isSelected=!1)}),t==null||t({...e})},[e,t]),c=d.useCallback(()=>{t==null||t({index:-1,stack:[]})},[t]);return[{index:e.index,stack:e.stack,top:e.stack.slice(e.index,e.index+1)[0]},{push:n,pop:r,undo:i,redo:a,set:o,select:s,clearSelect:l,reset:c}]}function Oh(){const{operation:e}=Zs(),{setOperation:t}=dx(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t(void 0)},[t]);return[e,{set:n,reset:r}]}function Sqt({x:e,y:t},{x:n,y:r},i,a,o,s){return e>n&&([e,n]=[n,e]),t>r&&([t,r]=[r,t]),e<0&&(e=0,s==="move"&&(n=i.width)),n>a&&(n=a,s==="move"&&(e=n-i.width)),t<0&&(t=0,s==="move"&&(r=i.height)),r>o&&(r=o,s==="move"&&(t=r-i.height)),{x:e,y:t,width:Math.max(n-e,1),height:Math.max(r-t,1)}}function Cqt(e,t,n,r){const i=e.clientX-n.x,a=e.clientY-n.y;let o=r.x,s=r.y,l=r.x+r.width,c=r.y+r.height;switch(t){case"top":s+=a;break;case"top-right":l+=i,s+=a;break;case"right":l+=i;break;case"right-bottom":l+=i,c+=a;break;case"bottom":c+=a;break;case"bottom-left":o+=i,c+=a;break;case"left":o+=i;break;case"left-top":o+=i,s+=a;break;case"move":o+=i,s+=a,l+=i,c+=a;break}return[{x:o,y:s},{x:l,y:c}]}function _qt(e,t,n,r){if(!t)return!1;const i=document.createElement("canvas");i.width=e.width,i.height=e.height;const a=i.getContext("2d");if(!a)return!1;const{left:o,top:s}=t.getBoundingClientRect(),l=r.clientX-o,c=r.clientY-s;return[...n.stack.slice(0,n.index+1)].reverse().find(f=>{var p;return f.type!==Gi.Source?!1:(a.clearRect(0,0,e.width,e.height),(p=f.isHit)==null?void 0:p.call(f,a,f,{x:l,y:c}))})}const kqt=["top","right","bottom","left"],Eqt=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"],$qt=d.memo(d.forwardRef(function(t,n){const{url:r,image:i,width:a,height:o}=Zs(),s=ab(),[l]=Rc(),[c]=Ph(),[u,f]=ib(),[p]=Oh(),h=d.useRef(),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=d.useRef(null),w=u&&!l.stack.length&&!p,b=d.useCallback(()=>{if(!u||!y.current)return;const S=y.current;S.imageSmoothingEnabled=!0,S.imageSmoothingQuality="low",S.clearRect(0,0,u.width,u.height),l.stack.slice(0,l.index+1).forEach(_=>{_.type===Gi.Source&&_.draw(S,_)})},[u,y,l]),C=d.useCallback((S,_)=>{if(!(S.button!==0||!u))if(!p)h.current=_,m.current={x:S.clientX,y:S.clientY},g.current={x:u.x,y:u.y,width:u.width,height:u.height};else{const E=_qt(u,v.current,l,S.nativeEvent);E?s.emit("drawselect",E,S.nativeEvent):s.emit("mousedown",S.nativeEvent)}},[u,p,s,l]),k=d.useCallback(S=>{if(!h.current||!m.current||!g.current||!u)return;const _=Cqt(S,h.current,m.current,g.current);f.set(Sqt(_[0],_[1],u,a,o,h.current))},[a,o,u,f]);return d.useLayoutEffect(()=>{if(!i||!u||!v.current){y.current=null;return}y.current||(y.current=v.current.getContext("2d")),b()},[i,u,b]),d.useEffect(()=>{const S=E=>{if(p)s.emit("mousemove",E);else{if(!h.current||!m.current||!g.current)return;k(E)}},_=E=>{if(p)s.emit("mouseup",E);else{if(!h.current||!m.current||!g.current)return;k(E),h.current=void 0,m.current=null,g.current=null}};return window.addEventListener("mousemove",S),window.addEventListener("mouseup",_),()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",_)}},[k,p,s]),d.useImperativeHandle(n,()=>y.current),x.jsxs("div",{className:"screenshots-canvas",style:{width:(u==null?void 0:u.width)||0,height:(u==null?void 0:u.height)||0,transform:u?`translate(${u.x}px, ${u.y}px)`:"none"},children:[x.jsxs("div",{className:"screenshots-canvas-body",children:[x.jsx("img",{className:"screenshots-canvas-image",src:r,style:{width:a,height:o,transform:u?`translate(${-u.x}px, ${-u.y}px)`:"none"}}),x.jsx("canvas",{ref:v,className:"screenshots-canvas-panel",width:(u==null?void 0:u.width)||0,height:(u==null?void 0:u.height)||0})]}),x.jsx("div",{className:"screenshots-canvas-mask",style:{cursor:c},onMouseDown:S=>C(S,"move"),children:w&&x.jsxs("div",{className:"screenshots-canvas-size",children:[u.width," × ",u.height]})}),kqt.map(S=>x.jsx("div",{className:`screenshots-canvas-border-${S}`},S)),w&&Eqt.map(S=>x.jsx("div",{className:`screenshots-canvas-point-${S}`,onMouseDown:_=>C(_,S)},S))]})}));function mU(){const e=dx();return d.useCallback((n,...r)=>{var i;(i=e.call)==null||i.call(e,n,...r)},[e])}function Rh(){const{canvasContextRef:e}=Zs();return e}function gU(){const e=ab(),[,t]=ib(),[,n]=Ph(),[,r]=Rc(),[,i]=Oh();return d.useCallback(()=>{e.reset(),r.reset(),t.reset(),n.reset(),i.reset()},[e,r,t,n,i])}const Mqt=d.memo(function({open:t,content:n,children:r}){const i=d.useRef(null),a=d.useRef(null),o=d.useRef(null),s=d.useContext(_4e),[l,c]=d.useState("bottom"),[u,f]=d.useState(null),[p,h]=d.useState(0),m=()=>(a.current||(a.current=document.createElement("div")),a.current);return d.useEffect(()=>{const g=m();return t&&document.body.appendChild(g),()=>{g.remove()}},[t]),d.useEffect(()=>{if(!t||!s||!i.current||!o.current)return;const g=i.current.getBoundingClientRect(),v=o.current.getBoundingClientRect();let y=l,w=g.left+g.width/2,b=g.top+g.height,C=p;if(w+v.width/2>s.x+s.width){const k=w;w=s.x+s.width-v.width/2,C=k-w}if(wwindow.innerHeight-v.height&&(y==="bottom"&&(y="top"),b=g.top-v.height),b<0&&(y==="top"&&(y="bottom"),b=g.top+g.height),y!==l&&c(y),((u==null?void 0:u.x)!==w||u.y!==b)&&f({x:w,y:b}),C!==p&&h(C)}),x.jsxs(x.Fragment,{children:[d.cloneElement(r,{ref:i}),t&&n&&Va.createPortal(x.jsxs("div",{ref:o,className:"screenshots-option",style:{visibility:u?"visible":"hidden",transform:`translate(${(u==null?void 0:u.x)??0}px, ${(u==null?void 0:u.y)??0}px)`},"data-placement":l,children:[x.jsx("div",{className:"screenshots-option-container",children:n}),x.jsx("div",{className:"screenshots-option-arrow",style:{marginLeft:p}})]}),m())]})}),Ou=d.memo(function({title:t,icon:n,checked:r,disabled:i,option:a,onClick:o}){const s=["screenshots-button"],l=d.useCallback(c=>{i||!o||o(c)},[i,o]);return r&&s.push("screenshots-button-checked"),i&&s.push("screenshots-button-disabled"),x.jsx(Mqt,{open:r,content:a,children:x.jsx("div",{className:s.join(" "),title:t,onClick:l,children:x.jsx("span",{className:n})})})});function Tqt(){const{image:e,width:t,height:n,history:r,bounds:i,lang:a}=Zs(),o=Rh(),[,s]=Rc(),l=mU(),c=gU(),u=d.useCallback(()=>{s.clearSelect(),setTimeout(()=>{!o.current||!e||!i||h5({image:e,width:t,height:n,history:r,bounds:i}).then(f=>{l("onOk",f,i),c()})})},[o,s,e,t,n,r,i,l,c]);return x.jsx(Ou,{title:a.operation_ok_title,icon:"icon-ok",onClick:u})}function Pqt(){const e=mU(),t=gU(),n=Nd(),r=d.useCallback(()=>{e("onCancel"),t()},[e,t]);return x.jsx(Ou,{title:n.operation_cancel_title,icon:"icon-cancel",onClick:r})}function Oqt(){const{image:e,width:t,height:n,history:r,bounds:i,lang:a}=Zs(),o=Rh(),[,s]=Rc(),l=mU(),c=gU(),u=d.useCallback(()=>{s.clearSelect(),setTimeout(()=>{!o.current||!e||!i||h5({image:e,width:t,height:n,history:r,bounds:i}).then(f=>{l("onSave",f,i),c()})})},[o,s,e,t,n,r,i,l,c]);return x.jsx(Ou,{title:a.operation_save_title,icon:"icon-save",onClick:u})}function Rqt(){const e=Nd(),[t,n]=Rc(),r=d.useCallback(()=>{n.redo()},[n]);return x.jsx(Ou,{title:e.operation_redo_title,icon:"icon-redo",disabled:!t.stack.length||t.stack.length-1===t.index,onClick:r})}function Iqt(){const e=Nd(),[t,n]=Rc(),r=d.useCallback(()=>{n.undo()},[n]);return x.jsx(Ou,{title:e.operation_undo_title,icon:"icon-undo",disabled:t.index===-1,onClick:r})}const b4e=d.memo(function({value:t,onChange:n}){const r=[3,6,9];return x.jsx("div",{className:"screenshots-size",children:r.map(i=>{const a=["screenshots-size-item"];return i===t&&a.push("screenshots-size-active"),x.jsx("div",{className:a.join(" "),onClick:()=>n&&n(i),children:x.jsx("div",{className:"screenshots-size-pointer",style:{width:i*1.8,height:i*1.8}})},i)})})});function ob(e){const t=ab();d.useEffect(()=>(t.on("mousedown",e),()=>{t.off("mousedown",e)}),[e,t])}function sb(e){const t=ab();d.useEffect(()=>(t.on("mousemove",e),()=>{t.off("mousemove",e)}),[e,t])}function lb(e){const t=ab();d.useEffect(()=>(t.on("mouseup",e),()=>{t.off("mouseup",e)}),[e,t])}function cC(e,t,n){if(!n)return[0,0,0,0];const{data:r,width:i}=n,a=t*i*4+e*4;return Array.from(r.slice(a,a+4))}function jqt(e,t){const{tiles:n,size:r}=t.data;n.forEach(i=>{const a=Math.round(i.color[0]),o=Math.round(i.color[1]),s=Math.round(i.color[2]),l=i.color[3]/255;e.fillStyle=`rgba(${a}, ${o}, ${s}, ${l})`,e.fillRect(i.x-r/2,i.y-r/2,r,r)})}function Nqt(){const e=Nd(),{image:t,width:n,height:r}=Zs(),[i,a]=Oh(),o=Rh(),[s,l]=Rc(),[c]=ib(),[,u]=Ph(),[f,p]=d.useState(3),h=d.useRef(null),m=d.useRef(null),g=i==="Mosaic",v=d.useCallback(()=>{a.set("Mosaic"),u.set("crosshair")},[a,u]),y=d.useCallback(()=>{g||(v(),l.clearSelect())},[g,v,l]),w=d.useCallback(k=>{if(!g||m.current||!h.current||!o.current)return;const S=o.current.canvas.getBoundingClientRect(),_=k.clientX-S.x,E=k.clientY-S.y,$=f*2;m.current={name:"Mosaic",type:Gi.Source,data:{size:$,tiles:[{x:_,y:E,color:cC(_,E,h.current)}]},editHistory:[],draw:jqt}},[g,f,o]),b=d.useCallback(k=>{if(!g||!m.current||!o.current||!h.current)return;const S=o.current.canvas.getBoundingClientRect(),_=k.clientX-S.x,E=k.clientY-S.y,$=m.current.data.size,M=m.current.data.tiles;let P=M[M.length-1];if(!P)M.push({x:_,y:E,color:cC(_,E,h.current)});else{const R=P.x-_,O=P.y-E;let j=Math.sqrt(R**2+O**2);const I=-O/j,A=-R/j;for(;j>$;){const N=Math.floor(P.x+$*A),F=Math.floor(P.y+$*I);P={x:N,y:F,color:cC(N,F,h.current)},M.push(P),j-=$}j>$/2&&M.push({x:_,y:E,color:cC(_,E,h.current)})}s.top!==m.current?l.push(m.current):l.set(s)},[g,o,s,l]),C=d.useCallback(()=>{g&&(m.current=null)},[g]);return ob(w),sb(b),lb(C),d.useEffect(()=>{if(!c||!t||!g)return;const k=document.createElement("canvas"),S=k.getContext("2d");if(!S)return;k.width=c.width,k.height=c.height;const _=t.naturalWidth/n,E=t.naturalHeight/r;S.drawImage(t,c.x*_,c.y*E,c.width*_,c.height*E,0,0,c.width,c.height),h.current=S.getImageData(0,0,c.width,c.height)},[n,r,c,t,g]),x.jsx(Ou,{title:e.operation_mosaic_title,icon:"icon-mosaic",checked:g,onClick:y,option:x.jsx(b4e,{value:f,onChange:p})})}const Aqt=d.memo(function({value:t,onChange:n}){const r=["#ee5126","#fceb4d","#90e746","#51c0fa","#7a7a7a","#ffffff"];return x.jsx("div",{className:"screenshots-color",children:r.map(i=>{const a=["screenshots-color-item"];return i===t&&a.push("screenshots-color-active"),x.jsx("div",{className:a.join(" "),style:{backgroundColor:i},onClick:()=>n&&n(i)},i)})})}),fx=d.memo(function({size:t,color:n,onSizeChange:r,onColorChange:i}){return x.jsxs("div",{className:"screenshots-sizecolor",children:[x.jsx(b4e,{value:t,onChange:r}),x.jsx(Aqt,{value:n,onChange:i})]})}),Dqt=` + as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var i=n.dataLength!==r.prevDataLength;return i?lw(lw({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=ire(r);return a.unit===Vv.Pixel?n.scrollTop<=a.value+i-n.scrollHeight+1:n.scrollTop<=a.value/100+i-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=ire(r);return a.unit===Vv.Pixel?n.scrollTop+i>=n.scrollHeight-a.value:n.scrollTop+i>=a.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=lw({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),a=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return te.createElement("div",{style:a,className:"infinite-scroll-component__outerdiv"},te.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(o){return n._infScroll=o},style:r},this.props.pullDownToRefresh&&te.createElement("div",{style:{position:"relative"},ref:function(o){return n._pullDown=o}},te.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(d.Component);async function OWt(e){return gn("/api/v1/group/query/uid",{method:"GET",params:{...e,client:_n}})}async function RWt(e){return gn("/api/v1/group/create",{method:"POST",data:{...e,client:_n}})}const IWt=({open:e,onSubmit:t,onCancel:n})=>{const r=jn(),{userInfo:i}=t1(),a=fr(S=>S.addThread),o=fr(S=>S.setCurrentThread),[s,l]=d.useState([]),[c,u]=d.useState([]),f=Na(S=>S.setMemberResult),p=Na(S=>S.memberResult),h=d.useMemo(()=>{const S=p==null?void 0:p.data.content;return S?(console.log("membersWithoutSelf",S,i==null?void 0:i.uid),S.filter(_=>{var E;return((E=_==null?void 0:_.user)==null?void 0:E.uid)!=(i==null?void 0:i.uid)})):[]},[p,i]),m=async()=>{var $;if(console.log("getAllMembers"),!(i!=null&&i.currentOrganization)){je.warning("userInfo.organizations is empty");return}const _={pageNumber:0,pageSize:50,orgUid:($=i==null?void 0:i.currentOrganization)==null?void 0:$.uid},E=await t$(_);console.log("queryMembersByOrg:",_,E.data),E.data.code===200?f(E.data):E.data.code===601||je.error(E.data.message)};d.useEffect(()=>{m()},[]);const g=(S,_,E)=>{console.log("onChange targetKeys:",S,_,E),l(S)},v=(S,_)=>{console.log("sourceSelectedKeys:",S),console.log("targetSelectedKeys:",_),u([...S,..._])},y=async()=>{console.log("createGroup"),je.loading("creating group");const S={name:k(),memberUids:s,type:d5e};console.log("groupRequest:",S);const _=await RWt(S);_.data.code===200?(je.destroy(),w(_.data.data)):(je.destroy(),je.error(_.data.message))},w=async S=>{console.log("startChat"),je.loading("starting group thread");const _={user:{uid:S==null?void 0:S.uid,nickname:S==null?void 0:S.name,avatar:S==null?void 0:S.avatar},topic:Mse+(S==null?void 0:S.uid),memberUids:s,content:"",type:xse,extra:"",client:_n};console.log("thread request:",_);const E=await I3e(_);console.log("create group thread response",E.data),E.data.code===200?(je.destroy(),a(E.data.data),o(E.data.data),t()):(je.destroy(),je.error(E.data.message))},b=()=>{if(console.log("targetKeys:",s),s.length<2){je.warning(r.formatMessage({id:"group.create.members.min",defaultMessage:"至少选择2名成员"}));return}if(je.loading(r.formatMessage({id:"group.create.creating",defaultMessage:"创建群组中..."})),!(i!=null&&i.currentOrganization)){je.warning(r.formatMessage({id:"group.create.org.empty",defaultMessage:"未选择组织"}));return}y()},C=()=>{n()},k=()=>{const S=s.reduce((_,E)=>{const $=p.data.content.find(M=>M.uid===E);return $?_+$.nickname+"":_},"");return(S==null?void 0:S.length)>10?S.substring(0,10)+"...":S};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"group.create.title",defaultMessage:"发起群聊"}),open:e,onOk:b,onCancel:C,children:x.jsx(Q8,{dataSource:h,rowKey:S=>S.uid,titles:[r.formatMessage({id:"group.create.contacts",defaultMessage:"好友"}),r.formatMessage({id:"group.create.members",defaultMessage:"群成员"})],targetKeys:s,selectedKeys:c,onChange:g,onSelectChange:v,render:S=>S.nickname})})})},fU=so()(Jo(es(ts((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i.splice(a,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:R6e}))),K3e="thread_list_item",iC={"star-1":"#FFB800","star-2":"#FF4D4F","star-3":"#52C41A","star-4":"#1890FF"},jWt=({currentThread:e,filters:t,onFilterChange:n,onSetCurrentThread:r,onOpenBlockModal:i,onOpenThreadNoteModal:a})=>{const o=jn(),s=async()=>{const h={uid:e==null?void 0:e.uid,top:!(e!=null&&e.top)};if((h==null?void 0:h.uid)==null)return;const m=await RUt(h);m.data.code===200?(r(m.data.data),je.success(o.formatMessage({id:"thread.set.success"}))):je.error(m.data.message)},l=async h=>{const m={uid:e==null?void 0:e.uid,star:h,top:e==null?void 0:e.top};if((m==null?void 0:m.uid)==null)return;const g=await IUt(m);if(g.data.code===200){if(r(g.data.data),h===0){const{refreshThreads:v}=fr.getState();await v()}je.success(o.formatMessage({id:"thread.set.success"}))}else je.error(g.data.message)},c=async()=>{const h={uid:e==null?void 0:e.uid,mute:!(e!=null&&e.mute)};if((h==null?void 0:h.uid)==null)return;const m=await jUt(h);m.data.code===200?(r(m.data.data),je.success(o.formatMessage({id:"thread.set.success"}))):je.error(m.data.message)},u=async()=>{const h={uid:e==null?void 0:e.uid,unread:!(e!=null&&e.unread)};if((h==null?void 0:h.uid)==null)return;const m=await N3e(h);m.data.code===200?(r(m.data.data),je.success(o.formatMessage({id:"thread.set.success"}))):je.error(m.data.message)},f=async()=>{YI(e)?$n.emit(tR):a()},p=({id:h})=>{switch(h){case"top":s();break;case"star-0":l(0);break;case"star-1":l(1);break;case"star-2":l(2);break;case"star-3":l(3);break;case"star-4":l(4);break;case"mute":c();break;case"unread":u();break;case"black":i();break;case"remark":f();break;default:je.warning(o.formatMessage({id:"thread.coming.soon"}))}};return x.jsx(x.Fragment,{children:x.jsxs(q3e,{id:K3e,children:[x.jsx(ci,{id:"top",onClick:p,children:e!=null&&e.top?o.formatMessage({id:"thread.menu.untop"}):o.formatMessage({id:"thread.menu.top"})}),x.jsxs(nre,{label:o.formatMessage({id:"thread.menu.star"}),children:[x.jsx(ci,{id:"star-1",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:iC["star-1"]}}),o.formatMessage({id:"thread.menu.star.1"})]})}),x.jsx(ci,{id:"star-2",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:iC["star-2"]}}),o.formatMessage({id:"thread.menu.star.2"})]})}),x.jsx(ci,{id:"star-3",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:iC["star-3"]}}),o.formatMessage({id:"thread.menu.star.3"})]})}),x.jsx(ci,{id:"star-4",onClick:p,children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:iC["star-4"]}}),o.formatMessage({id:"thread.menu.star.4"})]})}),(e==null?void 0:e.star)&&x.jsxs(x.Fragment,{children:[x.jsx(Wv,{}),x.jsx(ci,{id:"star-0",onClick:p,children:o.formatMessage({id:"thread.menu.star.cancel"})})]})]}),x.jsx(Wv,{}),x.jsx(ci,{id:"mute",onClick:p,children:e!=null&&e.mute?o.formatMessage({id:"thread.menu.unmute"}):o.formatMessage({id:"thread.menu.mute"})}),x.jsx(ci,{id:"unread",onClick:p,children:e!=null&&e.unread?o.formatMessage({id:"thread.menu.read"}):o.formatMessage({id:"thread.menu.unread"})}),x.jsx(ci,{id:"black",onClick:p,children:o.formatMessage({id:"thread.menu.block"})}),x.jsx(ci,{id:"remark",onClick:p,children:o.formatMessage({id:"thread.menu.remark"})}),x.jsx(Wv,{}),x.jsxs(nre,{label:o.formatMessage({id:"thread.menu.filter"}),children:[x.jsx(ci,{children:x.jsx(ps,{checked:t.groupThread,onChange:()=>n("groupThread"),children:o.formatMessage({id:"thread.menu.groupThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.robotThread,onChange:()=>n("robotThread"),children:o.formatMessage({id:"thread.menu.robotThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.workgroupThread,onChange:()=>n("workgroupThread"),children:o.formatMessage({id:"thread.menu.workgroupThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.agentThread,onChange:()=>n("agentThread"),children:o.formatMessage({id:"thread.menu.agentThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.ticketThread,onChange:()=>n("ticketThread"),children:o.formatMessage({id:"thread.menu.ticketThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.memberThread,onChange:()=>n("memberThread"),children:o.formatMessage({id:"thread.menu.memberThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.deviceThread,onChange:()=>n("deviceThread"),children:o.formatMessage({id:"thread.menu.deviceThread"})})}),x.jsx(ci,{children:x.jsx(ps,{checked:t.systemThread,onChange:()=>n("systemThread"),children:o.formatMessage({id:"thread.menu.systemThread"})})})]})]})})},NWt=({open:e,onSubmit:t,onCancel:n})=>{const r=d.useRef(!1),i=jn(),{translateString:a}=Zr(),[o,s]=d.useState(0),[l]=d.useState(5),[c,u]=d.useState(0),[f,p]=d.useState([]),[h,m]=d.useState(!1),[g,v]=d.useState(""),y=Vr(P=>P.currentOrg),w=fr(P=>P.addThread),b=fr(P=>P.setCurrentThread),C=async(P=o)=>{if(r.current){console.log("isLoading: 1",r.current);return}r.current=!0,m(!0),je.loading("loading");const R={pageNumber:P,pageSize:l,nickname:g,orgUid:y==null?void 0:y.uid,categoryUid:"",type:_F,level:Lw};try{const O=await qwe(R);console.log("queryRobotsByOrg: ",O.data,R),O.data.code===200?(je.destroy(),p(O.data.data.content),u(O.data.data.totalElements),s(P)):(je.destroy(),je.error(O.data.message))}catch{je.destroy(),je.error("加载失败,请稍后重试")}finally{r.current=!1,m(!1)}};d.useEffect(()=>{e&&C(0)},[e,g]);const k=P=>{v(P)},S=P=>{C(P-1)},_=()=>{n()},E=async P=>{console.log("startRobotChat",P);const R={agent:JSON.stringify(P),forceNew:!0,hide:!1,client:_n},O=await XH(R);console.log("startRobotChat response:",R,O.data),O.data.code===200?(w(O.data.data),b(O.data.data),t()):(je.error(O.data.message),n())},$=async()=>{await E({uid:"df_org_uid_1",nickname:"新对话",avatar:"https://cdn.weiyuai.cn/assets/images/llm/provider/zhipu.png",type:G6e})};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:i.formatMessage({id:"robot.create.title",defaultMessage:"创建机器人"}),open:e,onCancel:_,footer:[x.jsx(Yt,{type:"primary",icon:x.jsx(Ny,{}),onClick:$,children:i.formatMessage({id:"robot.create.void",defaultMessage:"创建空白机器人"})},"create-empty"),x.jsx(Yt,{onClick:_,children:i.formatMessage({id:"common.cancel",defaultMessage:"取消"})},"cancel")],children:[x.jsx(Ur,{placeholder:i.formatMessage({id:"robot.search.placeholder",defaultMessage:"搜索机器人昵称"}),prefix:x.jsx(Ty,{}),value:g,onChange:P=>k(P.target.value),style:{marginBottom:16,marginTop:8},allowClear:!0}),f.length===0&&g&&!h&&x.jsx("div",{style:{textAlign:"center",padding:"20px 0"},children:i.formatMessage({id:"common.noSearchResults",defaultMessage:"没有找到匹配的机器人"})}),x.jsx("div",{style:{height:250,overflowY:"auto"},children:x.jsx(Yn,{dataSource:f,style:{marginTop:10},renderItem:P=>x.jsx(Yn.Item,{actions:[x.jsx(Yt,{onClick:()=>E(P),children:i.formatMessage({id:"pages.robot.chat",defaultMessage:"Chat"})})],children:x.jsx(Yn.Item.Meta,{style:{marginLeft:"10px"},title:a(P==null?void 0:P.nickname),description:a(P==null?void 0:P.description)})},P==null?void 0:P.uid)})}),!h&&f.length>0&&x.jsx("div",{style:{textAlign:"center",marginTop:16},children:x.jsx(I4,{current:o+1,pageSize:l,total:c,onChange:S,size:"small",simple:!0})}),h&&x.jsx("div",{style:{textAlign:"center",marginTop:20},children:x.jsxs(Xr,{children:[x.jsx(Xo,{}),x.jsx("span",{children:i.formatMessage({id:"common.loading",defaultMessage:"加载中..."})})]})})]})})};async function AWt(e){return gn("/api/v1/black/create",{method:"POST",data:{...e,client:_n}})}const G3e=({open:e,onOk:t,onCancel:n})=>{var m;const[r]=Kn.useForm(),i=jn(),{translateString:a}=Zr(),o=fr(g=>g.currentThread),{currentVisitor:s,setCurrentVisitor:l}=v1(g=>g),c=Vr(g=>g.currentOrg),u=d.useCallback(async()=>{var v,y,w;if(!((v=o==null?void 0:o.user)!=null&&v.uid))return;console.log("Fetching visitor info for:",(y=o==null?void 0:o.user)==null?void 0:y.uid);const g=await R3e((w=o==null?void 0:o.user)==null?void 0:w.uid);console.log("getVisitorInfo response:",g.data),g.data.code===200?l(g.data.data):je.error(i.formatMessage({id:"customer.info.load.error",defaultMessage:"Failed to load visitor info"}))},[(m=o==null?void 0:o.user)==null?void 0:m.uid,l,i]);d.useEffect(()=>{r.setFieldValue("blackIp",!1)},[e,s]),d.useEffect(()=>{Rf(o)&&u()},[o,u]);const f=g=>{if(g){const v=cr().add(100,"year");r.setFieldValue("endTime",v)}else r.setFieldValue("endTime",null)},p=async()=>{const g=await r.validateFields(),v={blackUid:s==null?void 0:s.uid,blackNickname:s==null?void 0:s.nickname,blackAvatar:s==null?void 0:s.avatar,blockIp:g.blackIp,endTime:g.endTime?g.endTime.format("YYYY-MM-DD")+" 00:00:00":void 0,reason:g.reason,threadTopic:o==null?void 0:o.topic,orgUid:c==null?void 0:c.uid};console.log("blackModel params",v);const y=await AWt(v);console.log("blackModel result",y),y.data.code===200?(je.success(i.formatMessage({id:"black.success"})),t(v)):je.error(a(y.data.message))},h=()=>{r.resetFields(),n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:i.formatMessage({id:"black.title"}),open:e,onOk:p,onCancel:h,children:x.jsxs(Kn,{form:r,submitter:!1,onFinish:p,children:[x.jsx(VN,{name:"blackIp",label:i.formatMessage({id:"black.ip"})}),x.jsx(VN,{name:"isPermanent",label:i.formatMessage({id:"black.permanent"}),fieldProps:{onChange:f}}),x.jsx(lTt,{name:"endTime",label:i.formatMessage({id:"black.until"}),dependencies:["isPermanent"],fieldProps:{showTime:!1,disabled:r.getFieldValue("isPermanent"),disabledDate:g=>g&&g!r.getFieldValue("isPermanent")&&!v?Promise.reject(i.formatMessage({id:"black.until.required"})):Promise.resolve()}]}),x.jsx(Cd,{name:"reason",label:i.formatMessage({id:"black.reason"}),rules:[{required:!0,message:i.formatMessage({id:"black.reason.required"})}],fieldProps:{placeholder:i.formatMessage({id:"black.reason.placeholder"})}})]})})})},P2={async loadThreads(e=3){const{setLoading:t,setError:n,setThreads:r,searchText:i,pagination:a,setPagination:o}=fr.getState(),{agentInfo:s}=Eo.getState(),{memberInfo:l}=Na.getState(),c=async u=>{try{t(!0),n(null);const f={pageNumber:a.pageNumber,pageSize:a.pageSize,inviteUids:[s==null?void 0:s.uid],monitorUids:[s==null?void 0:s.uid],ticketorUids:[l==null?void 0:l.uid],mergeByTopic:!0};i&&(f.searchText=i);const p=await PUt(f);if(console.log("queryThreads response",f,p.data),p.data.code===200){if(o({...a,total:p.data.data.totalElements,pageNumber:p.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)r(p.data.data.content);else{const{threads:m}=fr.getState();r([...m,...p.data.data.content])}const{setThreadResult:h}=fr.getState();h(p.data)}else throw new Error(p.data.message)}catch(f){if(usetTimeout(p,1e3)),c(u+1);n(f instanceof Error?f.message:"Failed to load threads")}finally{t(!1)}};return c(1)},async resetAndLoad(){const{setPagination:e}=fr.getState(),t=Vr.getState().currentOrg;return e({pageNumber:0,pageSize:100,total:0}),this.loadThreads(t.uid)},async loadThreadsWithFilters(e){const{setFilter:t}=fr.getState();return Object.entries(e).forEach(([n,r])=>{t(n,r)}),this.resetAndLoad()}},DWt=Object.freeze(Object.defineProperty({__proto__:null,threadService:P2},Symbol.toStringTag,{value:"Module"})),Y3e=({open:e,handleOk:t,handleCancel:n,currentThread:r})=>{var c;const i=jn(),[a]=Kn.useForm(),{translateString:o}=Zr(),{setCurrentThread:s}=fr();te.useEffect(()=>{var u,f;(u=r==null?void 0:r.user)!=null&&u.nickname&&a.setFieldsValue({nickname:o((f=r==null?void 0:r.user)==null?void 0:f.nickname)})},[r]);const l=async()=>{var p,h,m,g;const u=await a.validateFields(),{nickname:f}=u;try{const v={uid:r==null?void 0:r.uid,user:{uid:(p=r==null?void 0:r.user)==null?void 0:p.uid,nickname:f,avatar:(h=r==null?void 0:r.user)==null?void 0:h.avatar,type:(m=r==null?void 0:r.user)==null?void 0:m.type}},y=await j3e(v);console.log("updateThreadUser:",v,y.data),y.data.code===200&&s((g=y==null?void 0:y.data)==null?void 0:g.data),t&&t()}catch(v){console.error("Update failed:",v)}};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:i.formatMessage({id:"thread.menu.remark",defaultMessage:"备注"}),open:e,onOk:l,onCancel:n,children:x.jsx(Kn,{form:a,submitter:!1,children:x.jsx(Or,{name:"nickname",label:"昵称",initialValue:(c=r==null?void 0:r.user)==null?void 0:c.nickname,placeholder:"请输入新的昵称",rules:[{required:!0,message:"请输入昵称"}]})})})})},{Text:are}=Zf,ore={"star-1":"#FFB800","star-2":"#FF4D4F","star-3":"#52C41A","star-4":"#1890FF"},FWt=()=>{const e=jn(),{translateStringTranct:t}=Zr(),{isDarkMode:n,agentInfo:r,hasRoleAgent:i,handleUpdateAgentStatus:a}=yz(),o=r7(),[s,l]=d.useState("下线"),c=fU(se=>se.workgroupResult),[u,f]=d.useState(!1),p=Vr(se=>se.currentOrg),[h,m]=d.useState(!1),g=[{key:"group",label:e.formatMessage({id:"thread.dropdown.create.group",defaultMessage:"创建群聊"})},{key:"ai",label:e.formatMessage({id:"thread.dropdown.create.ai",defaultMessage:"创建AI对话"})}],v=[{key:y0,label:e.formatMessage({id:"thread.agent.status.online",defaultMessage:"😀 - 在线接待"})},{key:Dm,label:e.formatMessage({id:"thread.agent.status.offline",defaultMessage:"🔻 - 客服下线"})},{key:yq,label:e.formatMessage({id:"thread.agent.status.busy",defaultMessage:"🏃‍♀️ - 客服忙碌"})}],{threads:y,queuingThreads:w,threadResult:b,currentThread:C,showQueueList:k,loading:S,pagination:_,searchText:E,setSearchText:$,setCurrentThread:M,setShowQueueList:P}=fr(),R=d.useRef(!1),O=async()=>{if(!(R.current||!(p!=null&&p.uid))){R.current=!0;try{await P2.loadThreads(),await j()}finally{R.current=!1}}},j=async()=>{if(!i)return;const se={uid:r==null?void 0:r.uid},ye=await r$e(se);console.log("syncCurrentThreadCount:",ye.data)};d.useEffect(()=>{o&&(p!=null&&p.uid)&&(console.log("网络重连,重新加载会话列表"),O())},[o,p==null?void 0:p.uid]);const I=async se=>{if(se.uid===(C==null?void 0:C.uid)){console.log("handleSelectThreadClick 当前聊天窗口,无需操作");return}se.unreadCount>0?A(se):M(se)},A=async se=>{const ye={uid:se.uid,unreadCount:0};if((ye==null?void 0:ye.uid)==null){je.error("当前会话uid为空,无法清除未读消息数");return}console.log("handleUpdateThreadUnreadCount",ye);const Oe=await N3e(ye);console.log("handleUpdateThreadUnreadCount response:",Oe.data),Oe.data.code===200?M(Oe.data.data):console.log("handleUpdateThreadUnreadCount error:",Oe)},{show:N}=W3e({id:K3e});function F(se,ye){console.log("handleContextMenu:",se," item:",ye),M(ye),N({event:se})}const K=se=>{var ye,Oe,z,H,G,de,xe,he,Ue;return((ye=se==null?void 0:se.user)==null?void 0:ye.avatar)===null||((Oe=se==null?void 0:se.user)==null?void 0:Oe.avatar)===void 0?x.jsx("img",{style:{marginLeft:10},src:Ik(((z=se==null?void 0:se.user)==null?void 0:z.uid)||""),alt:"Avatar"}):((H=se==null?void 0:se.user)==null?void 0:H.avatar.indexOf("local"))>-1?x.jsx("img",{style:{marginLeft:10},src:Ik(((G=se==null?void 0:se.user)==null?void 0:G.uid)||""),alt:"Avatar"}):((de=se==null?void 0:se.user)==null?void 0:de.avatar.indexOf("http"))===-1?x.jsx("p",{style:{marginLeft:25},children:(xe=se==null?void 0:se.user)==null?void 0:xe.avatar}):x.jsx(x.Fragment,{children:se!=null&&se.unread?x.jsx(x.Fragment,{children:x.jsx(Fo,{dot:se==null?void 0:se.unread,style:{marginTop:10},children:x.jsx(Pi,{style:{marginLeft:10,marginTop:5},shape:"square",size:"large",src:((he=se==null?void 0:se.user)==null?void 0:he.avatar)||""})})}):x.jsx(x.Fragment,{children:x.jsx(Fo,{count:se==null?void 0:se.unreadCount,style:{marginTop:10},children:x.jsx(Pi,{style:{marginLeft:10,marginTop:5},shape:"square",size:"large",src:((Ue=se==null?void 0:se.user)==null?void 0:Ue.avatar)||""})})})})},[L,V]=d.useState(!1),B=()=>{V(!0)},U=()=>{V(!1)},Y=()=>{V(!1)},[ee,ie]=d.useState(!1),Z=()=>{ie(!0)},X=()=>{ie(!1)},ae=()=>{ie(!1)},oe=se=>{console.log("handleSearchChange:",se),$(se),p!=null&&p.uid&&P2.loadThreadsWithFilters({searchText:se})},le=se=>{if(console.log("setAgentStatusByKey:",se),se===y0)return l(e.formatMessage({id:"thread.status.online",defaultMessage:"😀接待"}));if(se===Dm)return l(e.formatMessage({id:"thread.status.offline",defaultMessage:"🔻下线"}));if(se===yq)return l(e.formatMessage({id:"thread.status.busy",defaultMessage:"🏃‍♀️忙碌"}))};d.useEffect(()=>{console.log("useEffect agentStatus"),le(r==null?void 0:r.status)},[r,e]);const ce=se=>{console.log("handleAgentStatusClick:",se),a(se.key),le(se.key)},pe=se=>{const ye=se==null?void 0:se.topic.split("/")[2],Oe=c==null?void 0:c.data.content.find(z=>ye===(z==null?void 0:z.uid));if(Oe!=null)return t(Oe==null?void 0:Oe.nickname)},me=()=>{console.log("handleSwitchQueue"),P(!k)},re=({key:se})=>{se==="group"?B():se==="ai"&&Z()},[fe,ve]=d.useState({groupThread:!1,robotThread:!1,workgroupThread:!1,agentThread:!1,ticketThread:!1,memberThread:!1,deviceThread:!1,systemThread:!1}),$e=se=>{ve(ye=>({...ye,[se]:!ye[se]}))},be=(se=>{let ye=[...se];return Object.values(fe).some(Oe=>Oe)&&(ye=ye.filter(Oe=>!!(fe.groupThread&&Do(Oe)||fe.robotThread&&Dk(Oe)||fe.workgroupThread&&tRe(Oe)||fe.agentThread&&eRe(Oe)||fe.ticketThread&&Ak(Oe)||fe.memberThread&&Nk(Oe)||fe.deviceThread&&nRe(Oe)||fe.systemThread&&rRe(Oe)))),[...ye].sort((Oe,z)=>{const H=Oe.top||!1,G=z.top||!1;if(H!==G)return H?-1:1;const de=Oe.star||0,xe=z.star||0;return de!==xe?xe-de:new Date(z.updatedAt).getTime()-new Date(Oe.updatedAt).getTime()})})(y);d.useEffect(()=>{p!=null&&p.uid&&P2.resetAndLoad()},[p==null?void 0:p.uid]);const Se=async()=>{S||!(p!=null&&p.uid)||b.data.last||await P2.loadThreads()},we=se=>!se||se.length===0?null:(se=se.filter(ye=>ye!==""),x.jsx(o3,{gap:"4px 0",children:se.map(ye=>{const Oe=ye.length>10,z=x.jsx(Vi,{color:"blue",children:Oe?`${ye.slice(0,10)}...`:ye},ye);return Oe?x.jsx(_a,{title:ye,children:z},ye):z})}));return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{children:[x.jsxs("div",{children:[x.jsxs(o3,{style:{marginTop:15,marginBottom:15},gap:"middle",justify:"center",align:"center",children:[x.jsx(Ur,{style:{width:"55%"},size:"small",placeholder:e.formatMessage({id:"thread.search.placeholder",defaultMessage:"搜索"}),value:E,onChange:se=>oe(se.target.value),prefix:x.jsx(Ty,{}),allowClear:!0}),x.jsx(_6,{menu:{items:g,onClick:re},children:x.jsx("a",{onClick:se=>se.preventDefault(),children:x.jsx(Xr,{children:x.jsx(Ny,{})})})}),i&&x.jsx(_6,{menu:{items:v,onClick:ce},children:x.jsxs(Xr,{children:[x.jsx(are,{children:s}),x.jsx(are,{children:x.jsx(My,{})})]})})]}),!o&&x.jsx(JE,{message:e.formatMessage({id:"i18n.network.disconnected"}),banner:!0}),S&&x.jsx("p",{style:{paddingLeft:10,paddingRight:10},children:x.jsx(Yt,{loading:!0,block:!0,children:e.formatMessage({id:"i18n.message.pulling"})})})]}),i&&w.length>0&&x.jsx(Yt,{icon:x.jsx(wve,{}),block:!0,onClick:me,children:e.formatMessage({id:"i18n.queue.tip"})+"("+w.length+")"}),(be==null?void 0:be.length)===0&&x.jsx(za,{}),(be==null?void 0:be.length)>0&&x.jsx(PWt,{dataLength:be.length,next:Se,hasMore:!b.data.last&&be.length<_.total,loader:x.jsx("div",{style:{textAlign:"center",padding:"20px"},children:x.jsx(Xo,{tip:e.formatMessage({id:"thread.loading.more"})})}),scrollableTarget:"scrollableDiv",style:{overflow:"hidden"},children:x.jsx(Yn,{dataSource:be,renderItem:se=>{var ye;return x.jsxs(Yn.Item,{onClick:()=>I(se),onContextMenu:()=>F(event,se),className:(C==null?void 0:C.uid)===(se==null?void 0:se.uid)?n?"list-item-dark-active":"list-item-active":n?"list-item-dark":"list-item",style:{backgroundColor:se.star?ore[`star-${se.star}`]+"10":void 0,borderLeft:se.star?`3px solid ${ore[`star-${se.star}`]}`:void 0},children:[x.jsx(Yn.Item.Meta,{avatar:K(se),title:x.jsxs(x.Fragment,{children:[se!=null&&se.top?x.jsx(OWe,{}):x.jsx(x.Fragment,{}),t((ye=se==null?void 0:se.user)==null?void 0:ye.nickname)]}),description:x.jsx("span",{className:"ellipsis",children:x.jsxs(x.Fragment,{children:[se!=null&&se.mute?x.jsx(Lit,{}):x.jsx(x.Fragment,{}),we(se==null?void 0:se.tagList),fRe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:t("i18n.robot")}):x.jsx(x.Fragment,{}),pRe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:t("i18n.agent")}):x.jsx(x.Fragment,{}),hRe(se==null?void 0:se.topic)?x.jsx(x.Fragment,{children:"["+pe(se)+"]"}):x.jsx(x.Fragment,{})," "+t(vRe(se==null?void 0:se.content))]})})}),x.jsx("span",{className:"timestamp",children:QOe(se==null?void 0:se.updatedAt)})]},se==null?void 0:se.uid)}})})]}),x.jsx(jWt,{currentThread:C,filters:fe,onFilterChange:$e,onSetCurrentThread:M,onOpenBlockModal:()=>f(!0),onOpenThreadNoteModal:()=>m(!0)}),L&&x.jsx(IWt,{open:L,onSubmit:U,onCancel:Y}),ee&&x.jsx(NWt,{open:ee,onSubmit:X,onCancel:ae}),u&&x.jsx(G3e,{open:u,onOk:()=>{f(!1)},onCancel:()=>{f(!1)}}),h&&x.jsx(Y3e,{open:h,currentThread:C,handleOk:()=>{m(!1)},handleCancel:()=>{m(!1)}})]})};function co(){const{isDarkMode:e}=Ag(),{token:t}=zo.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=300,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:a,contentStyle:o,footerStyle:s}}const LWt=()=>{const e=jn(),{isDarkMode:t}=Ag(),n=Eo(f=>f.agentInfo),{currentQueuingThread:r,queuingThreads:i,threads:a,setCurrentQueuingThread:o,setQueuingThreads:s,setThreads:l}=fr(f=>({currentQueuingThread:f.currentQueuingThread,queuingThreads:f.queuingThreads,threads:f.threads,setCurrentQueuingThread:f.setCurrentQueuingThread,setQueuingThreads:f.setQueuingThreads,setThreads:f.setThreads})),c=async(f,p)=>{var g;console.log("acceptQueuingThread",f,p),je.loading(e.formatMessage({id:"queue.accepting",defaultMessage:"接受中..."}));const h={uid:f.uid,agent:JSON.stringify({uid:n==null?void 0:n.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar,type:uh})},m=await DUt(h);if(((g=m==null?void 0:m.data)==null?void 0:g.code)===200){je.destroy(),je.success(e.formatMessage({id:"queue.accept.success",defaultMessage:"接受成功"}));const v={...f,state:Y6e},y=a.filter(w=>w.topic!==f.topic);l([v,...y]),s(i.filter(w=>w.uid!==f.uid))}else je.destroy(),je.error(e.formatMessage({id:"queue.accept.failed",defaultMessage:"接受失败"}))},u=(f,p)=>{console.log("handleListOnClick",f,p),o(f)};return x.jsx(x.Fragment,{children:x.jsx(Yn,{dataSource:i,renderItem:(f,p)=>x.jsx(Yn.Item,{style:(r==null?void 0:r.uid)===f.uid?{backgroundColor:t?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>u(f,p),actions:[x.jsx(Yt,{onClick:()=>c(f,p),children:e.formatMessage({id:"queue.accept",defaultMessage:"接受"})})],children:x.jsx(Yn.Item.Meta,{style:{marginLeft:10},avatar:x.jsx(Pi,{src:f.user.avatar}),title:f.user.nickname,description:f.content})},f==null?void 0:f.uid)})})};var X3e={exports:{}},BWt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zWt=BWt,HWt=zWt;function Z3e(){}function Q3e(){}Q3e.resetWarningCache=Z3e;var UWt=function(){function e(r,i,a,o,s,l){if(l!==HWt){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Q3e,resetWarningCache:Z3e};return n.PropTypes=n,n};X3e.exports=UWt();var WWt=X3e.exports;const wi=ei(WWt),VWt=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Q0(e,t,n){const r=qWt(e),{webkitRelativePath:i}=e,a=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&sre(r,"path",a),sre(r,"relativePath",a),r}function qWt(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=VWt.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function sre(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const KWt=[".DS_Store","Thumbs.db"];function GWt(e){return f1(this,void 0,void 0,function*(){return c5(e)&&YWt(e.dataTransfer)?JWt(e.dataTransfer,e.type):XWt(e)?ZWt(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?QWt(e):[]})}function YWt(e){return c5(e)}function XWt(e){return c5(e)&&c5(e.target)}function c5(e){return typeof e=="object"&&e!==null}function ZWt(e){return AA(e.target.files).map(t=>Q0(t))}function QWt(e){return f1(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Q0(n))})}function JWt(e,t){return f1(this,void 0,void 0,function*(){if(e.items){const n=AA(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(eVt));return lre(J3e(r))}return lre(AA(e.files).map(n=>Q0(n)))})}function lre(e){return e.filter(t=>KWt.indexOf(t.name)===-1)}function AA(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?J3e(n):[n]],[])}function cre(e,t){return f1(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const o=yield a.getFile();return o.handle=a,Q0(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return Q0(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function tVt(e){return f1(this,void 0,void 0,function*(){return e.isDirectory?e4e(e):nVt(e)})}function e4e(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function a(){t.readEntries(o=>f1(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(tVt));i.push(s),a()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),o=>{r(o)})}a()})}function nVt(e){return f1(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=Q0(r,e.fullPath);t(i)},r=>{n(r)})})})}var EP=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function ure(e){return aVt(e)||iVt(e)||n4e(e)||rVt()}function rVt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iVt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aVt(e){if(Array.isArray(e))return DA(e)}function dre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fre(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:uVt,message:"File type must be ".concat(r)}},pre=function(t){return{code:dVt,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},hre=function(t){return{code:fVt,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},mVt={code:pVt,message:"Too many files"};function r4e(e,t){var n=e.type==="application/x-moz-file"||cVt(e,t);return[n,n?null:hVt(t)]}function i4e(e,t,n){if(dm(e.size))if(dm(t)&&dm(n)){if(e.size>n)return[!1,pre(n)];if(e.sizen)return[!1,pre(n)]}return[!0,null]}function dm(e){return e!=null}function gVt(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(l){var c=r4e(l,n),u=j3(c,1),f=u[0],p=i4e(l,r,i),h=j3(p,1),m=h[0],g=s?s(l):null;return f&&m&&!g})}function u5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function aC(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function mre(e){e.preventDefault()}function vVt(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function yVt(e){return e.indexOf("Edge/")!==-1}function bVt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return vVt(e)||yVt(e)}function Lu(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AVt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var pU=d.forwardRef(function(e,t){var n=e.children,r=d5(e,kVt),i=c4e(r),a=i.open,o=d5(i,EVt);return d.useImperativeHandle(t,function(){return{open:a}},[a]),te.createElement(d.Fragment,null,n(Ji(Ji({},o),{},{open:a})))});pU.displayName="Dropzone";var l4e={disabled:!1,getFilesFromEvent:GWt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};pU.defaultProps=l4e;pU.propTypes={children:wi.func,accept:wi.objectOf(wi.arrayOf(wi.string)),multiple:wi.bool,preventDropOnDocument:wi.bool,noClick:wi.bool,noKeyboard:wi.bool,noDrag:wi.bool,noDragEventsBubbling:wi.bool,minSize:wi.number,maxSize:wi.number,maxFiles:wi.number,disabled:wi.bool,getFilesFromEvent:wi.func,onFileDialogCancel:wi.func,onFileDialogOpen:wi.func,useFsAccessApi:wi.bool,autoFocus:wi.bool,onDragEnter:wi.func,onDragLeave:wi.func,onDragOver:wi.func,onDrop:wi.func,onDropAccepted:wi.func,onDropRejected:wi.func,onError:wi.func,validator:wi.func};var BA={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function c4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ji(Ji({},l4e),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,w=t.autoFocus,b=t.preventDropOnDocument,C=t.noClick,k=t.noKeyboard,S=t.noDrag,_=t.noDragEventsBubbling,E=t.onError,$=t.validator,M=d.useMemo(function(){return SVt(n)},[n]),P=d.useMemo(function(){return xVt(n)},[n]),R=d.useMemo(function(){return typeof v=="function"?v:vre},[v]),O=d.useMemo(function(){return typeof g=="function"?g:vre},[g]),j=d.useRef(null),I=d.useRef(null),A=d.useReducer(DVt,BA),N=$P(A,2),F=N[0],K=N[1],L=F.isFocused,V=F.isFileDialogActive,B=d.useRef(typeof window<"u"&&window.isSecureContext&&y&&wVt()),U=function(){!B.current&&V&&setTimeout(function(){if(I.current){var Oe=I.current.files;Oe.length||(K({type:"closeDialog"}),O())}},300)};d.useEffect(function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}},[I,V,O,B]);var Y=d.useRef([]),ee=function(Oe){j.current&&j.current.contains(Oe.target)||(Oe.preventDefault(),Y.current=[])};d.useEffect(function(){return b&&(document.addEventListener("dragover",mre,!1),document.addEventListener("drop",ee,!1)),function(){b&&(document.removeEventListener("dragover",mre),document.removeEventListener("drop",ee))}},[j,b]),d.useEffect(function(){return!r&&w&&j.current&&j.current.focus(),function(){}},[j,w,r]);var ie=d.useCallback(function(ye){E?E(ye):console.error(ye)},[E]),Z=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye),Y.current=[].concat(TVt(Y.current),[ye.target]),aC(ye)&&Promise.resolve(i(ye)).then(function(Oe){if(!(u5(ye)&&!_)){var z=Oe.length,H=z>0&&gVt({files:Oe,accept:M,minSize:o,maxSize:a,multiple:s,maxFiles:l,validator:$}),G=z>0&&!H;K({isDragAccept:H,isDragReject:G,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ye)}}).catch(function(Oe){return ie(Oe)})},[i,c,ie,_,M,o,a,s,l,$]),X=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye);var Oe=aC(ye);if(Oe&&ye.dataTransfer)try{ye.dataTransfer.dropEffect="copy"}catch{}return Oe&&f&&f(ye),!1},[f,_]),ae=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye);var Oe=Y.current.filter(function(H){return j.current&&j.current.contains(H)}),z=Oe.indexOf(ye.target);z!==-1&&Oe.splice(z,1),Y.current=Oe,!(Oe.length>0)&&(K({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),aC(ye)&&u&&u(ye))},[j,u,_]),oe=d.useCallback(function(ye,Oe){var z=[],H=[];ye.forEach(function(G){var de=r4e(G,M),xe=$P(de,2),he=xe[0],Ue=xe[1],We=i4e(G,o,a),ge=$P(We,2),ze=ge[0],Ve=ge[1],Be=$?$(G):null;if(he&&ze&&!Be)z.push(G);else{var Xe=[Ue,Ve];Be&&(Xe=Xe.concat(Be)),H.push({file:G,errors:Xe.filter(function(Ke){return Ke})})}}),(!s&&z.length>1||s&&l>=1&&z.length>l)&&(z.forEach(function(G){H.push({file:G,errors:[mVt]})}),z.splice(0)),K({acceptedFiles:z,fileRejections:H,isDragReject:H.length>0,type:"setFiles"}),p&&p(z,H,Oe),H.length>0&&m&&m(H,Oe),z.length>0&&h&&h(z,Oe)},[K,s,M,o,a,l,p,h,m,$]),le=d.useCallback(function(ye){ye.preventDefault(),ye.persist(),be(ye),Y.current=[],aC(ye)&&Promise.resolve(i(ye)).then(function(Oe){u5(ye)&&!_||oe(Oe,ye)}).catch(function(Oe){return ie(Oe)}),K({type:"reset"})},[i,oe,ie,_]),ce=d.useCallback(function(){if(B.current){K({type:"openDialog"}),R();var ye={multiple:s,types:P};window.showOpenFilePicker(ye).then(function(Oe){return i(Oe)}).then(function(Oe){oe(Oe,null),K({type:"closeDialog"})}).catch(function(Oe){CVt(Oe)?(O(Oe),K({type:"closeDialog"})):_Vt(Oe)?(B.current=!1,I.current?(I.current.value=null,I.current.click()):ie(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ie(Oe)});return}I.current&&(K({type:"openDialog"}),R(),I.current.value=null,I.current.click())},[K,R,O,y,oe,ie,P,s]),pe=d.useCallback(function(ye){!j.current||!j.current.isEqualNode(ye.target)||(ye.key===" "||ye.key==="Enter"||ye.keyCode===32||ye.keyCode===13)&&(ye.preventDefault(),ce())},[j,ce]),me=d.useCallback(function(){K({type:"focus"})},[]),re=d.useCallback(function(){K({type:"blur"})},[]),fe=d.useCallback(function(){C||(bVt()?setTimeout(ce,0):ce())},[C,ce]),ve=function(Oe){return r?null:Oe},$e=function(Oe){return k?null:ve(Oe)},Ce=function(Oe){return S?null:ve(Oe)},be=function(Oe){_&&Oe.stopPropagation()},Se=d.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ye.refKey,z=Oe===void 0?"ref":Oe,H=ye.role,G=ye.onKeyDown,de=ye.onFocus,xe=ye.onBlur,he=ye.onClick,Ue=ye.onDragEnter,We=ye.onDragOver,ge=ye.onDragLeave,ze=ye.onDrop,Ve=d5(ye,$Vt);return Ji(Ji(LA({onKeyDown:$e(Lu(G,pe)),onFocus:$e(Lu(de,me)),onBlur:$e(Lu(xe,re)),onClick:ve(Lu(he,fe)),onDragEnter:Ce(Lu(Ue,Z)),onDragOver:Ce(Lu(We,X)),onDragLeave:Ce(Lu(ge,ae)),onDrop:Ce(Lu(ze,le)),role:typeof H=="string"&&H!==""?H:"presentation"},z,j),!r&&!k?{tabIndex:0}:{}),Ve)}},[j,pe,me,re,fe,Z,X,ae,le,k,S,r]),we=d.useCallback(function(ye){ye.stopPropagation()},[]),se=d.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Oe=ye.refKey,z=Oe===void 0?"ref":Oe,H=ye.onChange,G=ye.onClick,de=d5(ye,MVt),xe=LA({accept:M,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ve(Lu(H,le)),onClick:ve(Lu(G,we)),tabIndex:-1},z,I);return Ji(Ji({},xe),de)}},[I,n,s,le,r]);return Ji(Ji({},F),{},{isFocused:L&&!r,getRootProps:Se,getInputProps:se,rootRef:j,inputRef:I,open:ve(ce)})}function DVt(e,t){switch(t.type){case"focus":return Ji(Ji({},e),{},{isFocused:!0});case"blur":return Ji(Ji({},e),{},{isFocused:!1});case"openDialog":return Ji(Ji({},BA),{},{isFileDialogActive:!0});case"closeDialog":return Ji(Ji({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ji(Ji({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ji(Ji({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Ji({},BA);default:return e}}function vre(){}const FVt=({onImageSend:e,children:t})=>{const[n,r]=d.useState(null),i=d.useCallback(()=>{console.log("DropUpload handleImageCancel"),r(null)},[]),a=d.useCallback(()=>{console.log("DropUpload handleImageSend"),qC(n,c=>{n!=null&&n.type.startsWith("image")?e(c.data.fileUrl,Sl):n!=null&&n.type.startsWith("video/")?e(c.data.fileUrl,sg):e(c.data.fileUrl,cd),r(null)})},[n]),o=d.useCallback(c=>{console.log("DropUpload acceptedFiles",c),c.map(u=>{console.log(u),r(u)})},[]),{getRootProps:s,getInputProps:l}=c4e({maxFiles:1,onDrop:o,onDropAccepted(c,u){console.log("DropUpload onDropAccepted",c,u)},onDropRejected(c,u){console.log("DropUpload onDropRejected",c,u)},noClick:!0});return x.jsxs("div",{...s(),style:{height:"100%"},children:[x.jsx("input",{...l()}),x.jsx(x.Fragment,{children:t}),n&&x.jsx(_we,{file:n,onCancel:i,onSend:a})]})};function LVt(e,t,n){var r=this,i=d.useRef(null),a=d.useRef(0),o=d.useRef(null),s=d.useRef([]),l=d.useRef(),c=d.useRef(),u=d.useRef(e),f=d.useRef(!0);u.current=e;var p=typeof window<"u",h=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,v="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,w=v?Math.max(+n.maxWait||0,t):null;d.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var b=d.useMemo(function(){var C=function(M){var P=s.current,R=l.current;return s.current=l.current=null,a.current=M,c.current=u.current.apply(R,P)},k=function(M,P){h&&cancelAnimationFrame(o.current),o.current=h?requestAnimationFrame(M):setTimeout(M,P)},S=function(M){if(!f.current)return!1;var P=M-i.current;return!i.current||P>=t||P<0||v&&M-a.current>=w},_=function(M){return o.current=null,g&&s.current?C(M):(s.current=l.current=null,c.current)},E=function M(){var P=Date.now();if(S(P))return _(P);if(f.current){var R=t-(P-i.current),O=v?Math.min(R,w-(P-a.current)):R;k(M,O)}},$=function(){if(p||y){var M=Date.now(),P=S(M);if(s.current=[].slice.call(arguments),l.current=r,i.current=M,P){if(!o.current&&f.current)return a.current=i.current,k(E,t),m?C(i.current):c.current;if(v)return k(E,t),C(i.current)}return o.current||k(E,t),c.current}};return $.cancel=function(){o.current&&(h?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=l.current=o.current=null},$.isPending=function(){return!!o.current},$.flush=function(){return o.current?_(Date.now()):c.current},$},[m,v,t,w,g,h,p,y]);return b}function BVt(e,t){return e===t}function zVt(e,t,n){var r=BVt,i=d.useRef(e),a=d.useState({})[1],o=LVt(d.useCallback(function(l){i.current=l,a({})},[a]),t,n),s=d.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const HVt=({uid:e,content:t,status:n,type:r})=>x.jsx("div",{className:"rate-bubble",children:x.jsx(fu,{children:x.jsxs(Xs,{fluid:!0,children:[x.jsx(np,{children:r===pv?"邀请评价":"主动评价"}),x.jsx(tp,{}),x.jsx(hwe,{children:x.jsx(qs,{color:"primary",disabled:!0,children:n===Ese?"已评价":"待评价"})})]})})});function La(){return La=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Zm(e){var t=d.useRef({fn:e,curr:void 0}).current;if(t.fn=e,!t.curr){var n=Object.create(null);Object.keys(e).forEach(function(r){n[r]=function(){var i;return(i=t.fn[r]).call.apply(i,[t.fn].concat([].slice.call(arguments)))}}),t.curr=n}return t.curr}function f5(e){return d.useReducer(function(t,n){return La({},t,typeof n=="function"?n(t):n)},e)}var u4e=d.createContext(void 0),Zd=typeof window<"u"&&"ontouchstart"in window,zA=function(e,t,n){return Math.max(Math.min(e,n),t)},oC=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),zA(e,1*(1-n),Math.max(6,t)*(1+n))},HA=typeof window>"u"||/ServerSideRendering/.test(navigator&&navigator.userAgent)?d.useEffect:d.useLayoutEffect;function Q1(e,t,n){var r=d.useRef(t);r.current=t,d.useEffect(function(){function i(a){r.current(a)}return e&&window.addEventListener(e,i,n),function(){e&&window.removeEventListener(e,i)}},[e])}var UVt=["container"];function WVt(e){var t=e.container,n=t===void 0?document.body:t,r=i7(e,UVt);return Va.createPortal(te.createElement("div",La({},r)),n)}function VVt(e){return te.createElement("svg",La({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))}function qVt(e){return te.createElement("svg",La({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))}function KVt(e){return te.createElement("svg",La({width:"44",height:"44",viewBox:"0 0 768 768"},e),te.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"}))}function GVt(){return d.useEffect(function(){var e=document.body.style,t=e.overflow;return e.overflow="hidden",function(){e.overflow=t}},[]),null}function yre(e){var t=e.touches[0],n=t.clientX,r=t.clientY;if(e.touches.length>=2){var i=e.touches[1],a=i.clientX,o=i.clientY;return[(n+a)/2,(r+o)/2,Math.sqrt(Math.pow(a-n,2)+Math.pow(o-r,2))]}return[n,r,0]}var _p=function(e,t,n,r){var i,a=n*t,o=(a-r)/2,s=e;return a<=r?(i=1,s=0):e>0&&o-e<=0?(i=2,s=o):e<0&&o+e<=0&&(i=3,s=-o),[i,s]};function MP(e,t,n,r,i,a,o,s,l,c){o===void 0&&(o=innerWidth/2),s===void 0&&(s=innerHeight/2),l===void 0&&(l=0),c===void 0&&(c=0);var u=_p(e,a,n,innerWidth)[0],f=_p(t,a,r,innerHeight),p=innerWidth/2,h=innerHeight/2;return{x:o-a/i*(o-(p+e))-p+(r/n>=3&&n*a===innerWidth?0:u?l/2:l),y:s-a/i*(s-(h+t))-h+(f[0]?c/2:c),lastCX:o,lastCY:s}}function UA(e,t,n){var r=e%180!=0;return r?[n,t,r]:[t,n,r]}function TP(e,t,n){var r=UA(n,innerWidth,innerHeight),i=r[0],a=r[1],o=0,s=i,l=a,c=e/t*a,u=t/e*i;return e=a?s=c:e>=i&&ti/a?l=u:t/e>=3&&!r[2]?o=((l=u)-a)/2:s=c,{width:s,height:l,x:0,y:o,pause:!0}}function sC(e,t){var n=t.leading,r=n!==void 0&&n,i=t.maxWait,a=t.wait,o=a===void 0?i||0:a,s=d.useRef(e);s.current=e;var l=d.useRef(0),c=d.useRef(),u=function(){return c.current&&clearTimeout(c.current)},f=d.useCallback(function(){var p=[].slice.call(arguments),h=Date.now();function m(){l.current=h,u(),s.current.apply(null,p)}var g=l.current,v=h-g;if(g===0&&(r&&m(),l.current=h),i!==void 0){if(v>i)return void m()}else v=1&&a&&a())};u()}function u(){l=requestAnimationFrame(c)}}var XVt={T:0,L:0,W:0,H:0,FIT:void 0},d4e=function(){var e=d.useRef(!1);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},ZVt=["className"];function QVt(e){var t=e.className,n=t===void 0?"":t,r=i7(e,ZVt);return te.createElement("div",La({className:"PhotoView__Spinner "+n},r),te.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},te.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),te.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))}var JVt=["src","loaded","broken","className","onPhotoLoad","loadingElement","brokenElement"];function eqt(e){var t=e.src,n=e.loaded,r=e.broken,i=e.className,a=e.onPhotoLoad,o=e.loadingElement,s=e.brokenElement,l=i7(e,JVt),c=d4e();return t&&!r?te.createElement(te.Fragment,null,te.createElement("img",La({className:"PhotoView__Photo"+(i?" "+i:""),src:t,onLoad:function(u){var f=u.target;c.current&&a({loaded:!0,naturalWidth:f.naturalWidth,naturalHeight:f.naturalHeight})},onError:function(){c.current&&a({broken:!0})},alt:""},l)),!n&&(te.createElement("span",{className:"PhotoView__icon"},o)||te.createElement(QVt,{className:"PhotoView__icon"}))):s?te.createElement("span",{className:"PhotoView__icon"},typeof s=="function"?s({src:t}):s):null}var tqt={naturalWidth:void 0,naturalHeight:void 0,width:void 0,height:void 0,loaded:void 0,broken:!1,x:0,y:0,touched:!1,maskTouched:!1,rotate:0,scale:1,CX:0,CY:0,lastX:0,lastY:0,lastCX:0,lastCY:0,lastScale:1,touchTime:0,touchLength:0,pause:!0,stopRaf:!0,reach:void 0};function nqt(e){var t=e.item,n=t.src,r=t.render,i=t.width,a=i===void 0?0:i,o=t.height,s=o===void 0?0:o,l=t.originRef,c=e.visible,u=e.speed,f=e.easing,p=e.wrapClassName,h=e.className,m=e.style,g=e.loadingElement,v=e.brokenElement,y=e.onPhotoTap,w=e.onMaskTap,b=e.onReachMove,C=e.onReachUp,k=e.onPhotoResize,S=e.isActive,_=e.expose,E=f5(tqt),$=E[0],M=E[1],P=d.useRef(0),R=d4e(),O=$.naturalWidth,j=O===void 0?a:O,I=$.naturalHeight,A=I===void 0?s:I,N=$.width,F=N===void 0?a:N,K=$.height,L=K===void 0?s:K,V=$.loaded,B=V===void 0?!n:V,U=$.broken,Y=$.x,ee=$.y,ie=$.touched,Z=$.stopRaf,X=$.maskTouched,ae=$.rotate,oe=$.scale,le=$.CX,ce=$.CY,pe=$.lastX,me=$.lastY,re=$.lastCX,fe=$.lastCY,ve=$.lastScale,$e=$.touchTime,Ce=$.touchLength,be=$.pause,Se=$.reach,we=Zm({onScale:function(Qe){return se(oC(Qe))},onRotate:function(Qe){ae!==Qe&&(_({rotate:Qe}),M(La({rotate:Qe},TP(j,A,Qe))))}});function se(Qe,nt,jt){oe!==Qe&&(_({scale:Qe}),M(La({scale:Qe},MP(Y,ee,F,L,oe,Qe,nt,jt),Qe<=1&&{x:0,y:0})))}var ye=sC(function(Qe,nt,jt){if(jt===void 0&&(jt=0),(ie||X)&&S){var Lt=UA(ae,F,L),Bt=Lt[0],Ut=Lt[1];if(jt===0&&P.current===0){var Ne=Math.abs(Qe-le)<=20,He=Math.abs(nt-ce)<=20;if(Ne&&He)return void M({lastCX:Qe,lastCY:nt});P.current=Ne?nt>ce?3:2:1}var Le,Je=Qe-re,pt=nt-fe;if(jt===0){var xt=_p(Je+pe,oe,Bt,innerWidth)[0],Nt=_p(pt+me,oe,Ut,innerHeight);Le=function(Pt,st,Ct,kt){return st&&Pt===1||kt==="x"?"x":Ct&&Pt>1||kt==="y"?"y":void 0}(P.current,xt,Nt[0],Se),Le!==void 0&&b(Le,Qe,nt,oe)}if(Le==="x"||X)return void M({reach:"x"});var Ot=oC(oe+(jt-Ce)/100/2*oe,j/F,.2);_({scale:Ot}),M(La({touchLength:jt,reach:Le,scale:Ot},MP(Y,ee,F,L,oe,Ot,Qe,nt,Je,pt)))}},{maxWait:8});function Oe(Qe){return!Z&&!ie&&(R.current&&M(La({},Qe,{pause:c})),R.current)}var z,H,G,de,xe,he,Ue,We,ge=(xe=function(Qe){return Oe({x:Qe})},he=function(Qe){return Oe({y:Qe})},Ue=function(Qe){return R.current&&(_({scale:Qe}),M({scale:Qe})),!ie&&R.current},We=Zm({X:function(Qe){return xe(Qe)},Y:function(Qe){return he(Qe)},S:function(Qe){return Ue(Qe)}}),function(Qe,nt,jt,Lt,Bt,Ut,Ne,He,Le,Je,pt){var xt=UA(Je,Bt,Ut),Nt=xt[0],Ot=xt[1],Pt=_p(Qe,He,Nt,innerWidth),st=Pt[0],Ct=Pt[1],kt=_p(nt,He,Ot,innerHeight),qt=kt[0],vt=kt[1],At=Date.now()-pt;if(At>=200||He!==Ne||Math.abs(Le-Ne)>1){var dt=MP(Qe,nt,Bt,Ut,Ne,He),De=dt.x,Ye=dt.y,ot=st?Ct:De!==Qe?De:null,Re=qt?vt:Ye!==nt?Ye:null;return ot!==null&&fm(Qe,ot,We.X),Re!==null&&fm(nt,Re,We.Y),void(He!==Ne&&fm(Ne,He,We.S))}var It=(Qe-jt)/At,rt=(nt-Lt)/At,$t=Math.sqrt(Math.pow(It,2)+Math.pow(rt,2)),Mt=!1,dn=!1;(function(pn,T){var D,J=pn,ke=0,Ie=0,it=function(On){D||(D=On);var Er=On-D,Mr=Math.sign(pn),mr=-.001*Mr,pr=Math.sign(-J)*Math.pow(J,2)*2e-4,cn=J*Er+(mr+pr)*Math.pow(Er,2)/2;ke+=cn,D=On,Mr*(J+=(mr+pr)*Er)<=0?rn():T(ke)?Ft():rn()};function Ft(){Ie=requestAnimationFrame(it)}function rn(){cancelAnimationFrame(Ie)}Ft()})($t,function(pn){var T=Qe+pn*(It/$t),D=nt+pn*(rt/$t),J=_p(T,Ne,Nt,innerWidth),ke=J[0],Ie=J[1],it=_p(D,Ne,Ot,innerHeight),Ft=it[0],rn=it[1];if(ke&&!Mt&&(Mt=!0,st?fm(T,Ie,We.X):bre(Ie,T+(T-Ie),We.X)),Ft&&!dn&&(dn=!0,qt?fm(D,rn,We.Y):bre(rn,D+(D-rn),We.Y)),Mt&&dn)return!1;var On=Mt||We.X(Ie),Er=dn||We.Y(rn);return On&&Er})}),ze=(z=y,H=function(Qe,nt){Se||se(oe!==1?1:Math.max(2,j/F),Qe,nt)},G=d.useRef(0),de=sC(function(){G.current=0,z.apply(void 0,[].slice.call(arguments))},{wait:300}),function(){var Qe=[].slice.call(arguments);G.current+=1,de.apply(void 0,Qe),G.current>=2&&(de.cancel(),G.current=0,H.apply(void 0,Qe))});function Ve(Qe,nt){if(P.current=0,(ie||X)&&S){M({touched:!1,maskTouched:!1,pause:!1,stopRaf:!1,reach:void 0});var jt=oC(oe,j/F);if(ge(Y,ee,pe,me,F,L,oe,jt,ve,ae,$e),C(Qe,nt),le===Qe&&ce===nt){if(ie)return void ze(Qe,nt);X&&w(Qe,nt)}}}function Be(Qe,nt,jt){jt===void 0&&(jt=0),M({touched:!0,CX:Qe,CY:nt,lastCX:Qe,lastCY:nt,lastX:Y,lastY:ee,lastScale:oe,touchLength:jt,touchTime:Date.now()})}function Xe(Qe){M({maskTouched:!0,CX:Qe.clientX,CY:Qe.clientY,lastX:Y,lastY:ee})}Q1(Zd?void 0:"mousemove",function(Qe){Qe.preventDefault(),ye(Qe.clientX,Qe.clientY)}),Q1(Zd?void 0:"mouseup",function(Qe){Ve(Qe.clientX,Qe.clientY)}),Q1(Zd?"touchmove":void 0,function(Qe){Qe.preventDefault();var nt=yre(Qe);ye.apply(void 0,nt)},{passive:!1}),Q1(Zd?"touchend":void 0,function(Qe){var nt=Qe.changedTouches[0];Ve(nt.clientX,nt.clientY)},{passive:!1}),Q1("resize",sC(function(){B&&!ie&&(M(TP(j,A,ae)),k())},{maxWait:8})),HA(function(){S&&_(La({scale:oe,rotate:ae},we))},[S]);var Ke=function(Qe,nt,jt,Lt,Bt,Ut,Ne,He,Le,Je){var pt=function(De,Ye,ot,Re,It){var rt=d.useRef(!1),$t=f5({lead:!0,scale:ot}),Mt=$t[0],dn=Mt.lead,pn=Mt.scale,T=$t[1],D=sC(function(J){try{return It(!0),T({lead:!1,scale:J}),Promise.resolve()}catch(ke){return Promise.reject(ke)}},{wait:Re});return HA(function(){rt.current?(It(!1),T({lead:!0}),D(ot)):rt.current=!0},[ot]),dn?[De*pn,Ye*pn,ot/pn]:[De*ot,Ye*ot,1]}(Ut,Ne,He,Le,Je),xt=pt[0],Nt=pt[1],Ot=pt[2],Pt=function(De,Ye,ot,Re,It){var rt=d.useState(XVt),$t=rt[0],Mt=rt[1],dn=d.useState(0),pn=dn[0],T=dn[1],D=d.useRef(),J=Zm({OK:function(){return De&&T(4)}});function ke(Ie){It(!1),T(Ie)}return d.useEffect(function(){if(D.current||(D.current=Date.now()),ot){if(function(Ie,it){var Ft=Ie&&Ie.current;if(Ft&&Ft.nodeType===1){var rn=Ft.getBoundingClientRect();it({T:rn.top,L:rn.left,W:rn.width,H:rn.height,FIT:Ft.tagName==="IMG"?getComputedStyle(Ft).objectFit:void 0})}}(Ye,Mt),De)return Date.now()-D.current<250?(T(1),requestAnimationFrame(function(){T(2),requestAnimationFrame(function(){return ke(3)})}),void setTimeout(J.OK,Re)):void T(4);ke(5)}},[De,ot]),[pn,$t]}(Qe,nt,jt,Le,Je),st=Pt[0],Ct=Pt[1],kt=Ct.W,qt=Ct.FIT,vt=innerWidth/2,At=innerHeight/2,dt=st<3||st>4;return[dt?kt?Ct.L:vt:Lt+(vt-Ut*He/2),dt?kt?Ct.T:At:Bt+(At-Ne*He/2),xt,dt&&qt?xt*(Ct.H/kt):Nt,st===0?Ot:dt?kt/(Ut*He)||.01:Ot,dt?qt?1:0:1,st,qt]}(c,l,B,Y,ee,F,L,oe,u,function(Qe){return M({pause:Qe})}),qe=Ke[4],Et=Ke[6],ut="transform "+u+"ms "+f,gt={className:h,onMouseDown:Zd?void 0:function(Qe){Qe.stopPropagation(),Qe.button===0&&Be(Qe.clientX,Qe.clientY,0)},onTouchStart:Zd?function(Qe){Qe.stopPropagation(),Be.apply(void 0,yre(Qe))}:void 0,onWheel:function(Qe){if(!Se){var nt=oC(oe-Qe.deltaY/100/2,j/F);M({stopRaf:!0}),se(nt,Qe.clientX,Qe.clientY)}},style:{width:Ke[2]+"px",height:Ke[3]+"px",opacity:Ke[5],objectFit:Et===4?void 0:Ke[7],transform:ae?"rotate("+ae+"deg)":void 0,transition:Et>2?ut+", opacity "+u+"ms ease, height "+(Et<4?u/2:Et>4?u:0)+"ms "+f:void 0}};return te.createElement("div",{className:"PhotoView__PhotoWrap"+(p?" "+p:""),style:m,onMouseDown:!Zd&&S?Xe:void 0,onTouchStart:Zd&&S?function(Qe){return Xe(Qe.touches[0])}:void 0},te.createElement("div",{className:"PhotoView__PhotoBox",style:{transform:"matrix("+qe+", 0, 0, "+qe+", "+Ke[0]+", "+Ke[1]+")",transition:ie||be?void 0:ut,willChange:S?"transform":void 0}},n?te.createElement(eqt,La({src:n,loaded:B,broken:U},gt,{onPhotoLoad:function(Qe){M(La({},Qe,Qe.loaded&&TP(Qe.naturalWidth||0,Qe.naturalHeight||0,ae)))},loadingElement:g,brokenElement:v})):r&&r({attrs:gt,scale:qe,rotate:ae})))}var wre={x:0,touched:!1,pause:!1,lastCX:void 0,lastCY:void 0,bg:void 0,lastBg:void 0,overlay:!0,minimal:!0,scale:1,rotate:0};function rqt(e){var t=e.loop,n=t===void 0?3:t,r=e.speed,i=e.easing,a=e.photoClosable,o=e.maskClosable,s=o===void 0||o,l=e.maskOpacity,c=l===void 0?1:l,u=e.pullClosable,f=u===void 0||u,p=e.bannerVisible,h=p===void 0||p,m=e.overlayRender,g=e.toolbarRender,v=e.className,y=e.maskClassName,w=e.photoClassName,b=e.photoWrapClassName,C=e.loadingElement,k=e.brokenElement,S=e.images,_=e.index,E=_===void 0?0:_,$=e.onIndexChange,M=e.visible,P=e.onClose,R=e.afterClose,O=e.portalContainer,j=f5(wre),I=j[0],A=j[1],N=d.useState(0),F=N[0],K=N[1],L=I.x,V=I.touched,B=I.pause,U=I.lastCX,Y=I.lastCY,ee=I.bg,ie=ee===void 0?c:ee,Z=I.lastBg,X=I.overlay,ae=I.minimal,oe=I.scale,le=I.rotate,ce=I.onScale,pe=I.onRotate,me=e.hasOwnProperty("index"),re=me?E:F,fe=me?$:K,ve=d.useRef(re),$e=S.length,Ce=S[re],be=typeof n=="boolean"?n:$e>n,Se=function(qe,Et){var ut=d.useReducer(function(jt){return!jt},!1)[1],gt=d.useRef(0),Qe=function(jt,Lt){var Bt=d.useRef(jt);function Ut(Ne){Bt.current=Ne}return d.useMemo(function(){(function(Ne){qe?(Ne(qe),gt.current=1):gt.current=2})(Ut)},[jt]),[Bt.current,Ut]}(qe),nt=Qe[1];return[Qe[0],gt.current,function(){ut(),gt.current===2&&(nt(!1),Et&&Et()),gt.current=0}]}(M,R),we=Se[0],se=Se[1],ye=Se[2];HA(function(){if(we)return A({pause:!0,x:re*-(innerWidth+20)}),void(ve.current=re);A(wre)},[we]);var Oe=Zm({close:function(qe){pe&&pe(0),A({overlay:!0,lastBg:ie}),P(qe)},changeIndex:function(qe,Et){Et===void 0&&(Et=!1);var ut=be?ve.current+(qe-re):qe,gt=$e-1,Qe=zA(ut,0,gt),nt=be?ut:Qe,jt=innerWidth+20;A({touched:!1,lastCX:void 0,lastCY:void 0,x:-jt*nt,pause:Et}),ve.current=nt,fe&&fe(be?qe<0?gt:qe>gt?0:qe:Qe)}}),z=Oe.close,H=Oe.changeIndex;function G(qe){return qe?z():A({overlay:!X})}function de(){A({x:-(innerWidth+20)*re,lastCX:void 0,lastCY:void 0,pause:!0}),ve.current=re}function xe(qe,Et,ut,gt){qe==="x"?function(Qe){if(U!==void 0){var nt=Qe-U,jt=nt;!be&&(re===0&&nt>0||re===$e-1&&nt<0)&&(jt=nt/2),A({touched:!0,lastCX:U,x:-(innerWidth+20)*ve.current+jt,pause:!1})}else A({touched:!0,lastCX:Qe,x:L,pause:!1})}(Et):qe==="y"&&function(Qe,nt){if(Y!==void 0){var jt=c===null?null:zA(c,.01,c-Math.abs(Qe-Y)/100/4);A({touched:!0,lastCY:Y,bg:nt===1?jt:c,minimal:nt===1})}else A({touched:!0,lastCY:Qe,bg:ie,minimal:!0})}(ut,gt)}function he(qe,Et){var ut=qe-(U??qe),gt=Et-(Y??Et),Qe=!1;if(ut<-40)H(re+1);else if(ut>40)H(re-1);else{var nt=-(innerWidth+20)*ve.current;Math.abs(gt)>100&&ae&&f&&(Qe=!0,z()),A({touched:!1,x:nt,lastCX:void 0,lastCY:void 0,bg:c,overlay:!!Qe||X})}}Q1("keydown",function(qe){if(M)switch(qe.key){case"ArrowLeft":H(re-1,!0);break;case"ArrowRight":H(re+1,!0);break;case"Escape":z()}});var Ue=function(qe,Et,ut){return d.useMemo(function(){var gt=qe.length;return ut?qe.concat(qe).concat(qe).slice(gt+Et-1,gt+Et+2):qe.slice(Math.max(Et-1,0),Math.min(Et+2,gt+1))},[qe,Et,ut])}(S,re,be);if(!we)return null;var We=X&&!se,ge=M?ie:Z,ze=ce&&pe&&{images:S,index:re,visible:M,onClose:z,onIndexChange:H,overlayVisible:We,overlay:Ce&&Ce.overlay,scale:oe,rotate:le,onScale:ce,onRotate:pe},Ve=r?r(se):400,Be=i?i(se):"cubic-bezier(0.25, 0.8, 0.25, 1)",Xe=r?r(3):600,Ke=i?i(3):"cubic-bezier(0.25, 0.8, 0.25, 1)";return te.createElement(WVt,{className:"PhotoView-Portal"+(We?"":" PhotoView-Slider__clean")+(M?"":" PhotoView-Slider__willClose")+(v?" "+v:""),role:"dialog",onClick:function(qe){return qe.stopPropagation()},container:O},M&&te.createElement(GVt,null),te.createElement("div",{className:"PhotoView-Slider__Backdrop"+(y?" "+y:"")+(se===1?" PhotoView-Slider__fadeIn":se===2?" PhotoView-Slider__fadeOut":""),style:{background:ge?"rgba(0, 0, 0, "+ge+")":void 0,transitionTimingFunction:Be,transitionDuration:(V?0:Ve)+"ms",animationDuration:Ve+"ms"},onAnimationEnd:ye}),h&&te.createElement("div",{className:"PhotoView-Slider__BannerWrap"},te.createElement("div",{className:"PhotoView-Slider__Counter"},re+1," / ",$e),te.createElement("div",{className:"PhotoView-Slider__BannerRight"},g&&ze&&g(ze),te.createElement(VVt,{className:"PhotoView-Slider__toolbarIcon",onClick:z}))),Ue.map(function(qe,Et){var ut=be||re!==0?ve.current-1+Et:re+Et;return te.createElement(nqt,{key:be?qe.key+"/"+qe.src+"/"+ut:qe.key,item:qe,speed:Ve,easing:Be,visible:M,onReachMove:xe,onReachUp:he,onPhotoTap:function(){return G(a)},onMaskTap:function(){return G(s)},wrapClassName:b,className:w,style:{left:(innerWidth+20)*ut+"px",transform:"translate3d("+L+"px, 0px, 0)",transition:V||B?void 0:"transform "+Xe+"ms "+Ke},loadingElement:C,brokenElement:k,onPhotoResize:de,isActive:ve.current===ut,expose:A})}),!Zd&&h&&te.createElement(te.Fragment,null,(be||re!==0)&&te.createElement("div",{className:"PhotoView-Slider__ArrowLeft",onClick:function(){return H(re-1,!0)}},te.createElement(qVt,null)),(be||re+1<$e)&&te.createElement("div",{className:"PhotoView-Slider__ArrowRight",onClick:function(){return H(re+1,!0)}},te.createElement(KVt,null))),m&&ze&&te.createElement("div",{className:"PhotoView-Slider__Overlay"},m(ze)))}var iqt=["children","onIndexChange","onVisibleChange"],aqt={images:[],visible:!1,index:0};function oqt(e){var t=e.children,n=e.onIndexChange,r=e.onVisibleChange,i=i7(e,iqt),a=f5(aqt),o=a[0],s=a[1],l=d.useRef(0),c=o.images,u=o.visible,f=o.index,p=Zm({nextId:function(){return l.current+=1},update:function(g){var v=c.findIndex(function(w){return w.key===g.key});if(v>-1){var y=c.slice();return y.splice(v,1,g),void s({images:y})}s(function(w){return{images:w.images.concat(g)}})},remove:function(g){s(function(v){var y=v.images.filter(function(w){return w.key!==g});return{images:y,index:Math.min(y.length-1,f)}})},show:function(g){var v=c.findIndex(function(y){return y.key===g});s({visible:!0,index:v}),r&&r(!0,v,o)}}),h=Zm({close:function(){s({visible:!1}),r&&r(!1,f,o)},changeIndex:function(g){s({index:g}),n&&n(g,o)}}),m=d.useMemo(function(){return La({},o,p)},[o,p]);return te.createElement(u4e.Provider,{value:m},t,te.createElement(rqt,La({images:c,visible:u,index:f,onIndexChange:h.changeIndex,onClose:h.close},i)))}var f4e=function(e){var t,n,r=e.src,i=e.render,a=e.overlay,o=e.width,s=e.height,l=e.triggers,c=l===void 0?["onClick"]:l,u=e.children,f=d.useContext(u4e),p=(t=function(){return f.nextId()},(n=d.useRef({sign:!1,fn:void 0}).current).sign||(n.sign=!0,n.fn=t()),n.fn),h=d.useRef(null);d.useImperativeHandle(u==null?void 0:u.ref,function(){return h.current}),d.useEffect(function(){return function(){f.remove(p)}},[]);var m=Zm({render:function(v){return i&&i(v)},show:function(v,y){f.show(p),function(w,b){if(u){var C=u.props[w];C&&C(b)}}(v,y)}}),g=d.useMemo(function(){var v={};return c.forEach(function(y){v[y]=m.show.bind(null,y)}),v},[]);return d.useEffect(function(){f.update({key:p,src:r,originRef:h,render:m.render,overlay:a,width:o,height:s})},[r]),u?d.Children.only(d.cloneElement(u,La({},g,{ref:h}))):null};const sqt=({content:e,status:t})=>{const[n,r]=d.useState(""),[i,a]=d.useState(""),[o,s]=d.useState(!1),l=jn();d.useEffect(()=>{if(t===X6e){s(!0);let f=null;try{f=JSON.parse(e)}catch{}f&&(r(f.contact),a(f.content))}},[t]);const c=f=>{console.log("handleContactChange:",f),r(f)},u=f=>{console.log("handleContentChange:",f),a(f)};return x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:l.formatMessage({id:"leavemsg.title",defaultMessage:"留言"})}),x.jsxs(tp,{children:[o&&x.jsx(vA,{value:n,placeholder:l.formatMessage({id:"leavemsg.contact.placeholder",defaultMessage:"请输入联系方式..."}),rows:1,onChange:c,style:{marginTop:"8px"},disabled:!0}),o&&x.jsx(vA,{value:i,placeholder:l.formatMessage({id:"leavemsg.content.placeholder",defaultMessage:"请输入留言..."}),rows:3,onChange:u,style:{marginTop:"8px"},disabled:!0})]}),x.jsx(hwe,{children:x.jsx(qs,{color:"primary",disabled:!0,children:o?l.formatMessage({id:"leavemsg.status.submitted",defaultMessage:"访客已留言"}):l.formatMessage({id:"leavemsg.status.pending",defaultMessage:"待留言"})})})]})})},lqt=({uid:e,content:t})=>(console.log("RobotQa",e,t),x.jsx(x.Fragment,{children:x.jsxs(fu,{children:[x.jsx(Xs,{fluid:!0,children:x.jsx(UH,{children:t})}),x.jsx(xwe,{onClick:console.log})]})})),cqt=te.forwardRef((e,t)=>{const{uid:n,content:r}=e,[i,a]=d.useState();return d.useEffect(()=>{let o=null;try{o=JSON.parse(r)}catch{}o&&a(o)},[r]),x.jsx("div",{ref:t,children:x.jsx(Xs,{children:x.jsxs(UH,{children:[(i==null?void 0:i.type)===vo&&x.jsx(x.Fragment,{children:i==null?void 0:i.content}),(i==null?void 0:i.type)===Sl&&x.jsx(f4e,{src:i==null?void 0:i.content,children:x.jsx("img",{src:i==null?void 0:i.content,alt:""})})]})})})}),uqt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"转接会话"}),x.jsx(tp,{children:r})]})})};async function dqt(e){return gn("/api/v1/thread/invite/create",{method:"POST",data:{...e}})}async function p4e(e){return gn("/api/v1/thread/invite/accept",{method:"POST",data:{...e}})}async function h4e(e){return gn("/api/v1/thread/invite/reject",{method:"POST",data:{...e}})}async function fqt(e){return gn("/api/v1/thread/invite/exit",{method:"POST",data:{...e}})}async function pqt(e){return gn("/api/v1/thread/transfer/create",{method:"POST",data:{...e}})}async function m4e(e){return gn("/api/v1/thread/transfer/accept",{method:"POST",data:{...e}})}async function g4e(e){return gn("/api/v1/thread/transfer/reject",{method:"POST",data:{...e}})}const hqt=({content:e})=>{const[t,n]=d.useState({}),[r,i]=d.useState({}),[a,o]=d.useState(null),[s,l]=d.useState(null),[c,u]=d.useState(null),[f,p]=d.useState(null),h=fr(k=>k.addThread),{updateMessageTransferStatus:m,updateMessageInviteStatus:g}=Td(),{translateString:v}=Zr();d.useEffect(()=>{var k,S,_,E,$,M,P,R,O,j;try{const I=JSON.parse(e);if(n(I),I.extra)try{const A=JSON.parse(I.extra);if(i(A),I.type===Ld&&I.extra)try{const N=JSON.parse(I.extra);o(N);const F={uid:(k=a==null?void 0:a.thread)==null?void 0:k.uid,topic:(S=a==null?void 0:a.thread)==null?void 0:S.topic,type:(_=a==null?void 0:a.thread)==null?void 0:_.type,state:(E=a==null?void 0:a.thread)==null?void 0:E.state,user:($=a==null?void 0:a.thread)==null?void 0:$.user};l(F)}catch(N){console.error("Failed to parse transfer extra:",N)}if(I.type===Bd&&I.extra)try{const N=JSON.parse(I.extra);u(N);const F={uid:(M=c==null?void 0:c.thread)==null?void 0:M.uid,topic:(P=c==null?void 0:c.thread)==null?void 0:P.topic,type:(R=c==null?void 0:c.thread)==null?void 0:R.type,state:(O=c==null?void 0:c.thread)==null?void 0:O.state,user:(j=c==null?void 0:c.thread)==null?void 0:j.user};p(F)}catch(N){console.error("Failed to parse invite extra:",N)}}catch(A){console.error("Failed to parse extra data:",A)}}catch(I){console.error("Failed to parse content:",I)}},[e]);const y=async()=>{var _;console.log("接受操作",t);let k="",S="";t.type===Ld?(k=v("i18n.confirm_accept_transfer"),S=v("i18n.confirm_accept_transfer_desc"),a!=null&&a.sender&&(S+=` ${a.sender.nickname} → ${(_=a.receiver)==null?void 0:_.nickname}`)):t.type===Bd&&(k=v("i18n.confirm_accept_invite"),S=v("i18n.confirm_accept_invite_desc"),c!=null&&c.sender&&(S+=` ${c.sender.nickname}`)),yr.confirm({title:k,content:S,onOk:async()=>{if(t.type===Ld){if(a){console.log("Transfer Content:",a),[a.sender,a.receiver]=[a.receiver,a.sender],a.status=p0;const E=await m4e(a);console.log("acceptThread response:",E),E.data.code===200?(je.success("同意转接会话成功"),Yve(JSON.stringify(a),s),h(s),m(a.messageUid,p0)):je.error(v(E.data.message))}}else if(t.type===Bd&&c){console.log("Invite Content:",c),[c.sender,c.receiver]=[c.receiver,c.sender],c.status=zV;const E=await p4e(c);console.log("acceptThreadInvite response:",E),E.data.code===200?(je.success("同意邀请会话成功"),Zve(JSON.stringify(c),f),h(f),g(c.messageUid,zV)):je.error(v(E.data.message))}},okText:v("i18n.confirm"),cancelText:v("i18n.cancel")})},w=async()=>{console.log("拒绝操作",t);let k="",S="";t.type===Ld?(k=v("i18n.confirm_reject_transfer"),S=v("i18n.confirm_reject_transfer_desc"),a!=null&&a.sender&&(S+=` ${a.sender.nickname}`)):t.type===Bd&&(k=v("i18n.confirm_reject_invite"),S=v("i18n.confirm_reject_invite_desc"),c!=null&&c.sender&&(S+=` ${c.sender.nickname}`)),yr.confirm({title:k,content:S,onOk:async()=>{if(t.type===Ld){if(a){console.log("Transfer Content:",a),[a.sender,a.receiver]=[a.receiver,a.sender],a.status=h0;const _=await g4e(a);console.log("transferThreadReject response:",_),_.data.code===200?(je.success("拒绝转接会话成功"),Xve(JSON.stringify(a),s),m(a.messageUid,h0)):je.error(v(_.data.message))}}else if(t.type===Bd&&c){console.log("Invite Content:",c),[c.sender,c.receiver]=[c.receiver,c.sender],c.status=HV;const _=await h4e(c);console.log("rejectThreadInvite response:",_),_.data.code===200?(je.success("拒绝邀请会话成功"),Qve(JSON.stringify(c),f),g(c.messageUid,HV)):je.error(v(_.data.message))}},okText:v("i18n.confirm"),cancelText:v("i18n.cancel")})},b=()=>t.type===Ld||t.type===Bd?x.jsxs(Xr,{style:{marginTop:10},children:[x.jsx(qs,{onClick:()=>y(),color:"primary",className:"bg-green-500 hover:bg-green-600 text-white",size:"sm",children:v("i18n.accept")}),x.jsx(qs,{onClick:()=>w(),className:"bg-red-500 hover:bg-red-600 text-white",size:"sm",children:v("i18n.reject")})]}):null,C=()=>{var k,S,_,E,$,M,P,R;return t.type===u5e?x.jsxs("div",{className:"space-y-2",children:[x.jsx("div",{className:"font-medium text-base",children:v("i18n.login_notification")}),x.jsxs("div",{className:"text-sm",children:[x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.login_time"),":"]})," ",new Date().toLocaleString()]}),r.loginIp&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.login_ip"),":"]})," ",r.loginIp]}),r.loginLocation&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.login_location"),":"]})," ",r.loginLocation]})]}),x.jsx("div",{className:"text-xs text-gray-500 mt-2",children:v("i18n.if_not_you_please_change_password")})]}):[Ld,VV,WV,qV,KV].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===Ld&&v("i18n.transfer_notification"),t.type===VV&&v("i18n.transfer_accepted"),t.type===WV&&v("i18n.transfer_rejected"),t.type===qV&&v("i18n.transfer_timeout"),t.type===KV&&v("i18n.transfer_cancelled")]}),x.jsx("div",{className:"text-sm",children:x.jsxs(x.Fragment,{children:[(a==null?void 0:a.sender)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.from"),":"]})," ",(k=a==null?void 0:a.sender)==null?void 0:k.nickname]}),(a==null?void 0:a.receiver)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.to"),":"]})," ",(S=a==null?void 0:a.receiver)==null?void 0:S.nickname]}),(a==null?void 0:a.thread)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",(E=(_=a==null?void 0:a.thread)==null?void 0:_.user)==null?void 0:E.nickname]}),(a==null?void 0:a.note)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",a==null?void 0:a.note]})]})}),t.type===Ld&&b()]}):[Bd,YV,GV,XV,ZV].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===Bd&&v("i18n.invite_notification"),t.type===YV&&v("i18n.invite_accepted"),t.type===GV&&v("i18n.invite_rejected"),t.type===XV&&v("i18n.invite_timeout"),t.type===ZV&&v("i18n.invite_cancelled")]}),x.jsx("div",{className:"text-sm",children:x.jsxs(x.Fragment,{children:[(c==null?void 0:c.sender)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",($=c==null?void 0:c.sender)==null?void 0:$.nickname]}),(c==null?void 0:c.receiver)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.invitee"),":"]})," ",(M=c==null?void 0:c.receiver)==null?void 0:M.nickname]}),(c==null?void 0:c.thread)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",((R=(P=c==null?void 0:c.thread)==null?void 0:P.user)==null?void 0:R.nickname)||v("i18n.untitled_conversation")]}),(c==null?void 0:c.note)&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.note"),":"]})," ",c==null?void 0:c.note]})]})}),t.type===Bd&&b()]}):[QV,eq,JV,tq,nq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===QV&&v("i18n.visitor_invite_notification"),t.type===eq&&v("i18n.visitor_invite_accepted"),t.type===JV&&v("i18n.visitor_invite_rejected"),t.type===tq&&v("i18n.visitor_invite_timeout"),t.type===nq&&v("i18n.visitor_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.visitorNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.visitor"),":"]})," ",r.visitorNickname]}),r.agentNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.agent"),":"]})," ",r.agentNickname]})]})]}):[rq,aq,iq,oq,sq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===rq&&v("i18n.group_invite_notification"),t.type===aq&&v("i18n.group_invite_accepted"),t.type===iq&&v("i18n.group_invite_rejected"),t.type===oq&&v("i18n.group_invite_timeout"),t.type===sq&&v("i18n.group_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.groupName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.group_name"),":"]})," ",r.groupName]}),r.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",r.inviterNickname]})]})]}):[lq,uq,cq,dq,fq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===lq&&v("i18n.kbase_invite_notification"),t.type===uq&&v("i18n.kbase_invite_accepted"),t.type===cq&&v("i18n.kbase_invite_rejected"),t.type===dq&&v("i18n.kbase_invite_timeout"),t.type===fq&&v("i18n.kbase_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.kbaseName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.kbase_name"),":"]})," ",r.kbaseName]}),r.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",r.inviterNickname]})]})]}):[pq,mq,hq,gq,vq].includes(t.type)?x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"font-medium text-base",children:[t.type===pq&&v("i18n.organization_invite_notification"),t.type===mq&&v("i18n.organization_invite_accepted"),t.type===hq&&v("i18n.organization_invite_rejected"),t.type===gq&&v("i18n.organization_invite_timeout"),t.type===vq&&v("i18n.organization_invite_cancelled")]}),x.jsxs("div",{className:"text-sm",children:[r.organizationName&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.organization_name"),":"]})," ",r.organizationName]}),r.inviterNickname&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium",children:[v("i18n.inviter"),":"]})," ",r.inviterNickname]})]})]}):x.jsx("div",{children:(t==null?void 0:t.title)||v("i18n.system_notification")})};return x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:v("i18n.notice")}),x.jsx(tp,{children:C()})]})})},{Header:mqt}=Qn,gqt=({fromTicketTab:e=!1,chatThread:t,typing:n,previewContent:r,setIsTransferThreadModelOpen:i,setIsInviteThreadModelOpen:a,setIsTicketCreateModelOpen:o,showCloseThreadConfirm:s,setIsGroupInfoDrawerOpen:l,setIsMemberInfoDrawerOpen:c,setIsRobotInfoDrawerOpen:u})=>{const f=jn(),{headerStyle:p}=co(),{isDarkMode:h}=d.useContext(Ea),m=ja(Y=>Y.currentTicket),g=ja(Y=>Y.setCurrentTicket),[v,y]=yr.useModal(),{agentInfo:w}=Eo.getState(),b=Na(Y=>Y.memberInfo),C=Vr(Y=>Y.currentOrg),{removeThreadWithUid:k,setCurrentThread:S}=fr(),[_,E]=d.useState(!1),$=()=>{var Y;if(!e)return t!=null&&t.user?(Y=t==null?void 0:t.user)==null?void 0:Y.avatar:""},M=()=>{var Y,ee,ie,Z,X;return e?m==null?void 0:m.title:t!=null&&t.user?(ee=(Y=t==null?void 0:t.user)==null?void 0:Y.nickname)!=null&&ee.startsWith(Iw)?f.formatMessage({id:(ie=t==null?void 0:t.user)==null?void 0:ie.nickname,defaultMessage:(Z=t==null?void 0:t.user)==null?void 0:Z.nickname}):((X=t==null?void 0:t.user)==null?void 0:X.nickname)||f.formatMessage({id:"chat.header.user.unnamed"}):""},P=()=>e?" 工单编号:#"+(m==null?void 0:m.uid)+","+jk(m==null?void 0:m.description,100):n?r||f.formatMessage({id:"i18n.typing"}):Ak(t)?"工单编号:#"+(m==null?void 0:m.uid)+","+jk(m==null?void 0:m.title,100):"会话编号:#"+(t==null?void 0:t.uid),R=async()=>{v.confirm({title:"认领工单",content:"确定认领该工单吗?",onOk:async()=>{je.loading("认领中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await sWt(Y);console.log("claimTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.claim.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message),g(void 0),Za.refreshTickets())}})},O=async()=>{v.confirm({title:"处理工单",content:"确定处理该工单吗?",onOk:async()=>{je.loading("处理中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await lWt(Y);console.log("query startProcessingTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.process.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},j=async()=>{v.confirm({title:"解决工单",content:"确定解决该工单吗?",onOk:async()=>{je.loading("解决中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await pWt(Y);console.log("query resolveTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.resolve.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},I=()=>{v.confirm({title:f.formatMessage({id:"ticket.verify.title"}),content:f.formatMessage({id:"ticket.verify.content"}),okText:f.formatMessage({id:"ticket.verify.pass"}),cancelText:f.formatMessage({id:"ticket.verify.reject"}),okButtonProps:{type:"primary"},cancelButtonProps:{danger:!0},onOk:async()=>{je.loading("验证中...",2);try{const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid,verified:!0},ee=await Qne(Y);console.log("query verifyTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.verify.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}catch{je.destroy(),je.error(f.formatMessage({id:"ticket.verify.error"}))}},onCancel:async()=>{je.loading("验证中...",2);try{const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid,verified:!1},ee=await Qne(Y);console.log("query verifyTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.verify.reject.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}catch{je.destroy(),je.error(f.formatMessage({id:"ticket.verify.error"}))}},footer:(Y,{OkBtn:ee,CancelBtn:ie})=>x.jsxs(x.Fragment,{children:[x.jsx(Yt,{onClick:()=>yr.destroyAll(),children:f.formatMessage({id:"ticket.verify.later"})}),x.jsx(ie,{}),x.jsx(ee,{})]})})},A=async()=>{v.confirm({title:"挂起工单",content:"确定挂起该工单吗?",onOk:async()=>{je.loading("挂起中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await uWt(Y);console.log("query holdTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.hold.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},N=async()=>{v.confirm({title:"恢复工单",content:"确定恢复该工单吗?",onOk:async()=>{je.loading("恢复中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await dWt(Y);console.log("query resumeTicket response",Y,ee.data),ee.data.code===200?(je.success(f.formatMessage({id:"ticket.action.resume.success"})),g(ee.data.data),Za.refreshTickets()):je.error(ee.data.message)}})},F=async()=>{v.confirm({title:"退回工单",content:"确定退回该工单吗?",onOk:async()=>{je.loading("退回中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await cWt(Y);console.log("query unclaimTicket response",Y,ee.data),ee.data.code===200?(je.success(f.formatMessage({id:"ticket.action.unclaim.success"})),g(ee.data.data),Za.refreshTickets()):(je.error(ee.data.message),g(void 0),Za.refreshTickets())}})},K=async()=>{v.confirm({title:"关闭工单",content:"确定关闭该工单吗?",onOk:async()=>{je.loading("关闭中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await hWt(Y);console.log("query closeTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.close.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},L=async()=>{v.confirm({title:"重新打开工单",content:"确定重新打开该工单吗?",onOk:async()=>{je.loading("重新打开中...",2);const Y={uid:m==null?void 0:m.uid,assignee:{uid:b==null?void 0:b.uid,nickname:b==null?void 0:b.nickname},orgUid:C==null?void 0:C.uid},ee=await fWt(Y);console.log("query reopenTicket response",Y,ee.data),ee.data.code===200?(je.destroy(),je.success(f.formatMessage({id:"ticket.action.reopen.success"})),g(ee.data.data),Za.refreshTickets()):(je.destroy(),je.error(ee.data.message))}})},V=()=>{v.confirm({title:"退出会话",content:"确定要退出当前会话吗?",onOk:async()=>{const Y={sender:{uid:w==null?void 0:w.uid},thread:{uid:t==null?void 0:t.uid}},ee=await fqt(Y);console.log("exitThreadInvite response",ee.data),ee.data.code===200?(je.success("退出会话成功"),k(t==null?void 0:t.uid),S(void 0)):je.error(ee.data.message)}})},B=()=>{if(!m)return null;const Y=[];switch(m.status){case lg:case Ose:case Rse:Y.push(x.jsx(Yt,{type:"primary",onClick:R,children:f.formatMessage({id:"ticket.action.claim"})},"claim"));break;case Y3:case Q3:FK(m,b)&&Y.push(x.jsx(Yt,{type:"primary",onClick:O,danger:!0,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.process"})},"process"),x.jsx(Yt,{onClick:F,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.unclaim"})},"return"));break;case ly:case PF:FK(m,b)&&Y.push(x.jsx(Yt,{type:"primary",onClick:j,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.resolve"})},"resolve"),x.jsx(Yt,{onClick:A,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.hold"})},"hold"),x.jsx(Yt,{type:"primary",onClick:K,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.close"})},"close"));break;case X3:case Z3:Y.push(x.jsx(Yt,{type:"primary",onClick:N,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.resume"})},"resume"));break;case e4:Y.push(x.jsx(Yt,{onClick:L,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.reopen"})},"reopen"));break;case J3:(m==null?void 0:m.reporter.uid)===(b==null?void 0:b.uid)&&Y.push(x.jsx(Yt,{onClick:I,disabled:!Ja(e,m,t,b),children:f.formatMessage({id:"ticket.action.verify"})},"verify"));break}return Y},U=Y=>!Y||Y.length===0?null:(Y=Y.filter(ee=>ee!==""),x.jsx("span",{style:{marginLeft:"5px"},children:Y.map(ee=>{const ie=ee.length>10,Z=x.jsx(Vi,{color:"blue",children:ie?`${ee.slice(0,10)}...`:ee},ee);return ie?x.jsx(_a,{title:ee,children:Z},ee):Z})}));return x.jsxs(x.Fragment,{children:[x.jsxs(mqt,{style:{...p,padding:"0 16px",display:"flex",justifyContent:"space-between",alignItems:"center",height:60},children:[x.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"8px"},children:[$()&&x.jsx("img",{src:$(),alt:"avatar",style:{width:32,height:32,borderRadius:"50%",objectFit:"cover"}}),x.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0"},children:[x.jsxs("span",{style:{fontSize:"16px",fontWeight:500,color:h?"#fff":"#000",lineHeight:"20px",display:"flex",alignItems:"center"},children:[M(),U(t==null?void 0:t.tagList),(t==null?void 0:t.user)&&x.jsx(Yt,{type:"text",size:"small",icon:x.jsx(Em,{}),onClick:()=>E(!0),style:{marginLeft:"4px",padding:"0 4px"}})]}),x.jsx("span",{style:{fontSize:"12px",color:h?"#fff":"#000",lineHeight:"16px",minHeight:"16px"},children:P()})]})]}),!e&&Rf(t)&&x.jsxs(Xr,{children:[x.jsx(Yt,{color:"green",variant:"filled",onClick:()=>i(!0),children:f.formatMessage({id:"chat.header.action.transfer"})}),x.jsx(Yt,{color:"pink",variant:"filled",onClick:()=>a(!0),children:f.formatMessage({id:"chat.header.action.invite"})}),x.jsx(Yt,{color:"purple",variant:"filled",onClick:()=>o(!0),children:f.formatMessage({id:"chat.header.action.create.ticket"})}),t&&t.state!==nR&&x.jsx(Yt,{color:"danger",variant:"filled",onClick:s,children:f.formatMessage({id:"chat.header.action.close"})}),iRe(w,t)&&x.jsx(Yt,{color:"danger",variant:"text",onClick:V,children:f.formatMessage({id:"chat.header.action.exit"})})]}),!e&&(Do(t)||Nk(t)||Dk(t))&&x.jsx(Xr,{children:x.jsx(Yt,{icon:x.jsx(yve,{}),onClick:()=>{Do(t)?l(!0):Nk(t)?c(!0):Dk(t)?u(!0):je.warning(f.formatMessage({id:"chat.header.type.not.supported"}))}})}),(e||Ak(t))&&x.jsx(Xr,{children:B()})]}),y,_&&t&&x.jsx(Y3e,{open:_,currentThread:t,handleOk:()=>E(!1),handleCancel:()=>E(!1)})]})};async function vqt(e){return gn("/api/v1/kbase/query/org",{method:"GET",params:{...e,client:_n}})}async function yqt(e){return gn("/api/v1/autoreply/fixed/query/org",{method:"GET",params:{...e,client:_n}})}const bqt=({open:e,onOk:t,onCancel:n})=>{var S;const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),o=Vr(_=>_.currentOrg),[s,l]=d.useState(),[c,u]=d.useState(),[f,p]=d.useState(jM),{agentInfo:h,setAgentInfo:m}=Eo(_=>({agentInfo:_.agentInfo,setAgentInfo:_.setAgentInfo})),g=async()=>{console.log("getAgentProfile:",o==null?void 0:o.uid);const _=await Ele(o==null?void 0:o.uid);console.log("getAgentProfile response:",o==null?void 0:o.uid,_.data),_.data.code===200&&m(_.data.data)},v=d.useCallback(async()=>{try{je.loading(r.formatMessage({id:"loading"}));const _={pageNumber:0,pageSize:50,orgUid:o==null?void 0:o.uid},E=await yqt(_);console.log("queryAutoReplyFixedByOrg response:",E.data,_),E.data.code===200?l(E.data):je.error(E.data.message)}catch(_){console.error("Error fetching auto replies:",_),je.error(r.formatMessage({id:"error.fetch.failed"}))}finally{je.destroy()}},[o==null?void 0:o.uid]),y=d.useCallback(async _=>{try{je.loading(r.formatMessage({id:"loading"}));const E={pageNumber:0,pageSize:50,type:_,orgUid:o==null?void 0:o.uid},$=await vqt(E);console.log("getKeywordBase response:",$.data),$.data.code===200?u($.data):je.error($.data.message)}catch(E){console.error("Error fetching knowledge base:",E),je.error(r.formatMessage({id:"error.fetch.failed"}))}finally{je.destroy()}},[f,o==null?void 0:o.uid]);d.useEffect(()=>{v(),y(bq)},[]),d.useEffect(()=>{f===NM?y(bq):f===AM&&y(m5e)},[f]),d.useEffect(()=>{var _,E,$,M,P,R;h!=null&&h.autoReplySettings&&i.setFieldsValue({kbUid:(_=h==null?void 0:h.autoReplySettings)==null?void 0:_.kbUid,autoReplyEnabled:(E=h==null?void 0:h.autoReplySettings)==null?void 0:E.autoReplyEnabled,autoReplyType:($=h==null?void 0:h.autoReplySettings)==null?void 0:$.autoReplyType,autoReplyUid:(M=h==null?void 0:h.autoReplySettings)==null?void 0:M.autoReplyUid,autoReplyContent:(P=h==null?void 0:h.autoReplySettings)==null?void 0:P.autoReplyContent,autoReplyContentType:(R=h==null?void 0:h.autoReplySettings)==null?void 0:R.autoReplyContentType})},[h,i]);const w=(_,E)=>{console.log("handleAutoReplyTypeChange:",_,E),p(_)},b=(_,E)=>{var $;console.log("handleAutoReplySelectChange:",_,E),($=s==null?void 0:s.data.content)==null||$.forEach(M=>{M.uid===_&&i.setFieldsValue({autoReplyContentType:M.type,autoReplyContent:M.content})})},C=async()=>{console.log("handleAutoReplySubmit:"),je.loading(r.formatMessage({id:"autoreply.save.loading",defaultMessage:"正在保存,请稍后..."}));const _={uid:h==null?void 0:h.uid,autoReplySettings:{autoReplyEnabled:i.getFieldValue("autoReplyEnabled"),autoReplyType:i.getFieldValue("autoReplyType"),autoReplyUid:i.getFieldValue("autoReplyUid"),autoReplyContent:i.getFieldValue("autoReplyContent"),autoReplyContentType:i.getFieldValue("autoReplyContentType"),kbUid:i.getFieldValue("kbUid")}},E=await o$e(_);console.log("handleUpdateAutoReply:",E),E.data.code===200?(je.destroy(),m(E.data.data),t()):(je.destroy(),je.error(r.formatMessage({id:"autoreply.save.error",defaultMessage:"保存失败"})))},k=()=>{n()};return d.useEffect(()=>{g()},[]),x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"autoreply.title",defaultMessage:"自动回复"}),open:e,forceRender:!0,onOk:C,onCancel:k,children:x.jsxs(Kn,{form:i,submitter:{render:!1},children:[x.jsx(VN,{width:"md",name:"autoReplyEnabled",label:r.formatMessage({id:"autoreply.enable.label",defaultMessage:"是否启用自动回复"}),fieldProps:{onChange:C}}),x.jsx(ro,{width:"md",name:"autoReplyType",label:r.formatMessage({id:"autoreply.type.label",defaultMessage:"自动回复类型"}),options:[{label:r.formatMessage({id:"autoreply.type.fixed"}),value:jM},{label:r.formatMessage({id:"autoreply.type.keyword"}),value:NM},{label:r.formatMessage({id:"autoreply.type.llm"}),value:AM,disabled:!jl}],fieldProps:{onChange(_,E){w(_,E)}}}),f===jM&&x.jsx(x.Fragment,{children:x.jsx(ro,{width:"md",name:"autoReplyContent",label:r.formatMessage({id:"autoreply.fixed.select",defaultMessage:"选择固定回复内容"}),options:(S=s==null?void 0:s.data)==null?void 0:S.content.map(_=>({label:a(_==null?void 0:_.content),value:_==null?void 0:_.content})),fieldProps:{onChange(_,E){b(_,E)}}})}),f===NM&&x.jsx(x.Fragment,{children:x.jsx(ro,{width:"md",name:"kbUid",label:r.formatMessage({id:"autoreply.keyword.select",defaultMessage:"选择关键词知识库"}),options:c==null?void 0:c.data.content.map(_=>({label:a(_.name),value:_.uid}))})}),f===AM&&x.jsx(x.Fragment,{children:x.jsx(ro,{width:"md",name:"kbUid",label:r.formatMessage({id:"autoreply.llm.select",defaultMessage:"选择大模型知识库"}),options:c==null?void 0:c.data.content.map(_=>({label:a(_.name),value:_.uid}))})})]})})})};var Gi=(e=>(e[e.Edit=0]="Edit",e[e.Source=1]="Source",e))(Gi||{});function p5({image:e,width:t,height:n,history:r,bounds:i}){return new Promise((a,o)=>{const s=document.createElement("canvas"),l=i.width*window.devicePixelRatio,c=i.height*window.devicePixelRatio;s.width=l,s.height=c;const u=s.getContext("2d");if(!u)return o(new Error("convert image to blob fail"));const f=e.naturalWidth/t,p=e.naturalHeight/n;u.imageSmoothingEnabled=!0,u.imageSmoothingQuality="low",u.setTransform(window.devicePixelRatio,0,0,window.devicePixelRatio,0,0),u.clearRect(0,0,i.width,i.height),u.drawImage(e,i.x*f,i.y*p,i.width*f,i.height*p,0,0,i.width,i.height),r.stack.slice(0,r.index+1).forEach(h=>{h.type===Gi.Source&&h.draw(u,h)}),s.toBlob(h=>{if(!h)return o(new Error("canvas toBlob fail"));a(h)},"image/png")})}const v4e={magnifier_position_label:"坐标",operation_ok_title:"确定",operation_cancel_title:"取消",operation_save_title:"保存",operation_redo_title:"重做",operation_undo_title:"撤销",operation_mosaic_title:"马赛克",operation_text_title:"文本",operation_brush_title:"画笔",operation_arrow_title:"箭头",operation_ellipse_title:"椭圆",operation_rectangle_title:"矩形"},hU=te.createContext({store:{url:void 0,image:null,width:0,height:0,lang:v4e,emiterRef:{current:{}},canvasContextRef:{current:null},history:{index:-1,stack:[]},bounds:null,cursor:"move",operation:void 0},dispatcher:{call:void 0,setHistory:void 0,setBounds:void 0,setCursor:void 0,setOperation:void 0}});function ux(){const{dispatcher:e}=d.useContext(hU);return e}function Zs(){const{store:e}=d.useContext(hU);return e}function ib(){const{bounds:e}=Zs(),{setBounds:t}=ux(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t(null)},[t]);return[e,{set:n,reset:r}]}function Nd(){const{lang:e}=Zs();return e}const q1=100,K1=80,wqt=d.memo(function({x:t,y:n}){const{width:r,height:i,image:a}=Zs(),o=Nd(),[s,l]=d.useState(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),[p,h]=d.useState("000000");return d.useLayoutEffect(()=>{if(!c.current)return;const m=c.current.getBoundingClientRect();let g=t+20,v=n+20;g+m.width>r&&(g=t-m.width-20),v+m.height>i&&(v=n-m.height-20),g<0&&(g=0),v<0&&(v=0),l({x:g,y:v})},[r,i,t,n]),d.useEffect(()=>{if(!a||!u.current){f.current=null;return}if(f.current||(f.current=u.current.getContext("2d")),!f.current)return;const m=f.current;m.clearRect(0,0,q1,K1);const g=a.naturalWidth/r,v=a.naturalHeight/i;m.drawImage(a,t*g-q1/2,n*v-K1/2,q1,K1,0,0,q1,K1);const{data:y}=m.getImageData(Math.floor(q1/2),Math.floor(K1/2),1,1),w=Array.from(y.slice(0,3)).map(b=>b>=16?b.toString(16):`0${b.toString(16)}`).join("").toUpperCase();h(w)},[r,i,a,t,n]),x.jsxs("div",{ref:c,className:"screenshots-magnifier",style:{transform:`translate(${s==null?void 0:s.x}px, ${s==null?void 0:s.y}px)`},children:[x.jsx("div",{className:"screenshots-magnifier-body",children:x.jsx("canvas",{ref:u,className:"screenshots-magnifier-body-canvas",width:q1,height:K1})}),x.jsxs("div",{className:"screenshots-magnifier-footer",children:[x.jsxs("div",{className:"screenshots-magnifier-footer-item",children:[o.magnifier_position_label,": (",t,",",n,")"]}),x.jsxs("div",{className:"screenshots-magnifier-footer-item",children:["RGB: #",p]})]})]})});function xqt({x:e,y:t},{x:n,y:r},i,a){return e>n&&([e,n]=[n,e]),t>r&&([t,r]=[r,t]),e<0&&(e=0),n>i&&(n=i),t<0&&(t=0),r>a&&(r=a),{x:e,y:t,width:n-e,height:r-t}}const Sqt=d.memo(function(){const{url:t,image:n,width:r,height:i}=Zs(),[a,o]=ib(),s=d.useRef(null),l=d.useRef(null),c=d.useRef(!1),[u,f]=d.useState(null),p=d.useCallback((m,g)=>{if(!s.current)return;const{x:v,y}=s.current.getBoundingClientRect();o.set(xqt({x:m.x-v,y:m.y-y},{x:g.x-v,y:g.y-y},r,i))},[r,i,o]),h=d.useCallback(m=>{l.current||a||m.button!==0||(l.current={x:m.clientX,y:m.clientY},c.current=!1)},[a]);return d.useEffect(()=>{const m=v=>{if(s.current){const y=s.current.getBoundingClientRect();v.clientXy.right||v.clientY>y.bottom?f(null):f({x:v.clientX-y.x,y:v.clientY-y.y})}l.current&&(p(l.current,{x:v.clientX,y:v.clientY}),c.current=!0)},g=v=>{l.current&&(c.current&&p(l.current,{x:v.clientX,y:v.clientY}),l.current=null,c.current=!1)};return window.addEventListener("mousemove",m),window.addEventListener("mouseup",g),()=>{window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",g)}},[p]),d.useLayoutEffect(()=>{(!n||a)&&f(null)},[n,a]),!t||!n?null:x.jsxs("div",{ref:s,className:"screenshots-background",onMouseDown:h,children:[x.jsx("img",{className:"screenshots-background-image",src:t}),x.jsx("div",{className:"screenshots-background-mask"}),u&&!a&&x.jsx(wqt,{x:u==null?void 0:u.x,y:u==null?void 0:u.y})]})});function Ph(){const{cursor:e}=Zs(),{setCursor:t}=ux(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t("move")},[t]);return[e,{set:n,reset:r}]}function ab(){const{emiterRef:e}=Zs(),t=d.useCallback((a,o)=>{const s=e.current;Array.isArray(s[a])?s[a].push(o):s[a]=[o]},[e]),n=d.useCallback((a,o)=>{const s=e.current;if(Array.isArray(s[a])){const l=s[a].findIndex(c=>c===o);l!==-1&&s[a].splice(l,1)}},[e]),r=d.useCallback((a,...o)=>{const s=e.current;Array.isArray(s[a])&&s[a].forEach(l=>l(...o))},[e]),i=d.useCallback(()=>{e.current={}},[e]);return{on:t,off:n,emit:r,reset:i}}function Rc(){const{history:e}=Zs(),{setHistory:t}=ux(),n=d.useCallback(u=>{const{index:f,stack:p}=e;p.forEach(h=>{h.type===Gi.Source&&(h.isSelected=!1)}),u.type===Gi.Source?u.isSelected=!0:u.type===Gi.Edit&&(u.source.isSelected=!0),p.splice(f+1),p.push(u),t==null||t({index:p.length-1,stack:p})},[e,t]),r=d.useCallback(()=>{const{stack:u}=e;u.pop(),t==null||t({index:u.length-1,stack:u})},[e,t]),i=d.useCallback(()=>{const{index:u,stack:f}=e,p=f[u];p&&(p.type===Gi.Source?p.isSelected=!1:p.type===Gi.Edit&&p.source.editHistory.pop()),t==null||t({index:u<=0?-1:u-1,stack:f})},[e,t]),a=d.useCallback(()=>{const{index:u,stack:f}=e,p=f[u+1];p&&(p.type===Gi.Source?p.isSelected=!1:p.type===Gi.Edit&&p.source.editHistory.push(p)),t==null||t({index:u>=f.length-1?f.length-1:u+1,stack:f})},[e,t]),o=d.useCallback(u=>{t==null||t({...u})},[t]),s=d.useCallback(u=>{e.stack.forEach(f=>{f.type===Gi.Source&&(f===u?f.isSelected=!0:f.isSelected=!1)}),t==null||t({...e})},[e,t]),l=d.useCallback(()=>{e.stack.forEach(u=>{u.type===Gi.Source&&(u.isSelected=!1)}),t==null||t({...e})},[e,t]),c=d.useCallback(()=>{t==null||t({index:-1,stack:[]})},[t]);return[{index:e.index,stack:e.stack,top:e.stack.slice(e.index,e.index+1)[0]},{push:n,pop:r,undo:i,redo:a,set:o,select:s,clearSelect:l,reset:c}]}function Oh(){const{operation:e}=Zs(),{setOperation:t}=ux(),n=d.useCallback(i=>{t==null||t(i)},[t]),r=d.useCallback(()=>{t==null||t(void 0)},[t]);return[e,{set:n,reset:r}]}function Cqt({x:e,y:t},{x:n,y:r},i,a,o,s){return e>n&&([e,n]=[n,e]),t>r&&([t,r]=[r,t]),e<0&&(e=0,s==="move"&&(n=i.width)),n>a&&(n=a,s==="move"&&(e=n-i.width)),t<0&&(t=0,s==="move"&&(r=i.height)),r>o&&(r=o,s==="move"&&(t=r-i.height)),{x:e,y:t,width:Math.max(n-e,1),height:Math.max(r-t,1)}}function _qt(e,t,n,r){const i=e.clientX-n.x,a=e.clientY-n.y;let o=r.x,s=r.y,l=r.x+r.width,c=r.y+r.height;switch(t){case"top":s+=a;break;case"top-right":l+=i,s+=a;break;case"right":l+=i;break;case"right-bottom":l+=i,c+=a;break;case"bottom":c+=a;break;case"bottom-left":o+=i,c+=a;break;case"left":o+=i;break;case"left-top":o+=i,s+=a;break;case"move":o+=i,s+=a,l+=i,c+=a;break}return[{x:o,y:s},{x:l,y:c}]}function kqt(e,t,n,r){if(!t)return!1;const i=document.createElement("canvas");i.width=e.width,i.height=e.height;const a=i.getContext("2d");if(!a)return!1;const{left:o,top:s}=t.getBoundingClientRect(),l=r.clientX-o,c=r.clientY-s;return[...n.stack.slice(0,n.index+1)].reverse().find(f=>{var p;return f.type!==Gi.Source?!1:(a.clearRect(0,0,e.width,e.height),(p=f.isHit)==null?void 0:p.call(f,a,f,{x:l,y:c}))})}const Eqt=["top","right","bottom","left"],$qt=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"],Mqt=d.memo(d.forwardRef(function(t,n){const{url:r,image:i,width:a,height:o}=Zs(),s=ab(),[l]=Rc(),[c]=Ph(),[u,f]=ib(),[p]=Oh(),h=d.useRef(),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=d.useRef(null),w=u&&!l.stack.length&&!p,b=d.useCallback(()=>{if(!u||!y.current)return;const S=y.current;S.imageSmoothingEnabled=!0,S.imageSmoothingQuality="low",S.clearRect(0,0,u.width,u.height),l.stack.slice(0,l.index+1).forEach(_=>{_.type===Gi.Source&&_.draw(S,_)})},[u,y,l]),C=d.useCallback((S,_)=>{if(!(S.button!==0||!u))if(!p)h.current=_,m.current={x:S.clientX,y:S.clientY},g.current={x:u.x,y:u.y,width:u.width,height:u.height};else{const E=kqt(u,v.current,l,S.nativeEvent);E?s.emit("drawselect",E,S.nativeEvent):s.emit("mousedown",S.nativeEvent)}},[u,p,s,l]),k=d.useCallback(S=>{if(!h.current||!m.current||!g.current||!u)return;const _=_qt(S,h.current,m.current,g.current);f.set(Cqt(_[0],_[1],u,a,o,h.current))},[a,o,u,f]);return d.useLayoutEffect(()=>{if(!i||!u||!v.current){y.current=null;return}y.current||(y.current=v.current.getContext("2d")),b()},[i,u,b]),d.useEffect(()=>{const S=E=>{if(p)s.emit("mousemove",E);else{if(!h.current||!m.current||!g.current)return;k(E)}},_=E=>{if(p)s.emit("mouseup",E);else{if(!h.current||!m.current||!g.current)return;k(E),h.current=void 0,m.current=null,g.current=null}};return window.addEventListener("mousemove",S),window.addEventListener("mouseup",_),()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",_)}},[k,p,s]),d.useImperativeHandle(n,()=>y.current),x.jsxs("div",{className:"screenshots-canvas",style:{width:(u==null?void 0:u.width)||0,height:(u==null?void 0:u.height)||0,transform:u?`translate(${u.x}px, ${u.y}px)`:"none"},children:[x.jsxs("div",{className:"screenshots-canvas-body",children:[x.jsx("img",{className:"screenshots-canvas-image",src:r,style:{width:a,height:o,transform:u?`translate(${-u.x}px, ${-u.y}px)`:"none"}}),x.jsx("canvas",{ref:v,className:"screenshots-canvas-panel",width:(u==null?void 0:u.width)||0,height:(u==null?void 0:u.height)||0})]}),x.jsx("div",{className:"screenshots-canvas-mask",style:{cursor:c},onMouseDown:S=>C(S,"move"),children:w&&x.jsxs("div",{className:"screenshots-canvas-size",children:[u.width," × ",u.height]})}),Eqt.map(S=>x.jsx("div",{className:`screenshots-canvas-border-${S}`},S)),w&&$qt.map(S=>x.jsx("div",{className:`screenshots-canvas-point-${S}`,onMouseDown:_=>C(_,S)},S))]})}));function mU(){const e=ux();return d.useCallback((n,...r)=>{var i;(i=e.call)==null||i.call(e,n,...r)},[e])}function Rh(){const{canvasContextRef:e}=Zs();return e}function gU(){const e=ab(),[,t]=ib(),[,n]=Ph(),[,r]=Rc(),[,i]=Oh();return d.useCallback(()=>{e.reset(),r.reset(),t.reset(),n.reset(),i.reset()},[e,r,t,n,i])}const Tqt=d.memo(function({open:t,content:n,children:r}){const i=d.useRef(null),a=d.useRef(null),o=d.useRef(null),s=d.useContext(C4e),[l,c]=d.useState("bottom"),[u,f]=d.useState(null),[p,h]=d.useState(0),m=()=>(a.current||(a.current=document.createElement("div")),a.current);return d.useEffect(()=>{const g=m();return t&&document.body.appendChild(g),()=>{g.remove()}},[t]),d.useEffect(()=>{if(!t||!s||!i.current||!o.current)return;const g=i.current.getBoundingClientRect(),v=o.current.getBoundingClientRect();let y=l,w=g.left+g.width/2,b=g.top+g.height,C=p;if(w+v.width/2>s.x+s.width){const k=w;w=s.x+s.width-v.width/2,C=k-w}if(wwindow.innerHeight-v.height&&(y==="bottom"&&(y="top"),b=g.top-v.height),b<0&&(y==="top"&&(y="bottom"),b=g.top+g.height),y!==l&&c(y),((u==null?void 0:u.x)!==w||u.y!==b)&&f({x:w,y:b}),C!==p&&h(C)}),x.jsxs(x.Fragment,{children:[d.cloneElement(r,{ref:i}),t&&n&&Va.createPortal(x.jsxs("div",{ref:o,className:"screenshots-option",style:{visibility:u?"visible":"hidden",transform:`translate(${(u==null?void 0:u.x)??0}px, ${(u==null?void 0:u.y)??0}px)`},"data-placement":l,children:[x.jsx("div",{className:"screenshots-option-container",children:n}),x.jsx("div",{className:"screenshots-option-arrow",style:{marginLeft:p}})]}),m())]})}),Ou=d.memo(function({title:t,icon:n,checked:r,disabled:i,option:a,onClick:o}){const s=["screenshots-button"],l=d.useCallback(c=>{i||!o||o(c)},[i,o]);return r&&s.push("screenshots-button-checked"),i&&s.push("screenshots-button-disabled"),x.jsx(Tqt,{open:r,content:a,children:x.jsx("div",{className:s.join(" "),title:t,onClick:l,children:x.jsx("span",{className:n})})})});function Pqt(){const{image:e,width:t,height:n,history:r,bounds:i,lang:a}=Zs(),o=Rh(),[,s]=Rc(),l=mU(),c=gU(),u=d.useCallback(()=>{s.clearSelect(),setTimeout(()=>{!o.current||!e||!i||p5({image:e,width:t,height:n,history:r,bounds:i}).then(f=>{l("onOk",f,i),c()})})},[o,s,e,t,n,r,i,l,c]);return x.jsx(Ou,{title:a.operation_ok_title,icon:"icon-ok",onClick:u})}function Oqt(){const e=mU(),t=gU(),n=Nd(),r=d.useCallback(()=>{e("onCancel"),t()},[e,t]);return x.jsx(Ou,{title:n.operation_cancel_title,icon:"icon-cancel",onClick:r})}function Rqt(){const{image:e,width:t,height:n,history:r,bounds:i,lang:a}=Zs(),o=Rh(),[,s]=Rc(),l=mU(),c=gU(),u=d.useCallback(()=>{s.clearSelect(),setTimeout(()=>{!o.current||!e||!i||p5({image:e,width:t,height:n,history:r,bounds:i}).then(f=>{l("onSave",f,i),c()})})},[o,s,e,t,n,r,i,l,c]);return x.jsx(Ou,{title:a.operation_save_title,icon:"icon-save",onClick:u})}function Iqt(){const e=Nd(),[t,n]=Rc(),r=d.useCallback(()=>{n.redo()},[n]);return x.jsx(Ou,{title:e.operation_redo_title,icon:"icon-redo",disabled:!t.stack.length||t.stack.length-1===t.index,onClick:r})}function jqt(){const e=Nd(),[t,n]=Rc(),r=d.useCallback(()=>{n.undo()},[n]);return x.jsx(Ou,{title:e.operation_undo_title,icon:"icon-undo",disabled:t.index===-1,onClick:r})}const y4e=d.memo(function({value:t,onChange:n}){const r=[3,6,9];return x.jsx("div",{className:"screenshots-size",children:r.map(i=>{const a=["screenshots-size-item"];return i===t&&a.push("screenshots-size-active"),x.jsx("div",{className:a.join(" "),onClick:()=>n&&n(i),children:x.jsx("div",{className:"screenshots-size-pointer",style:{width:i*1.8,height:i*1.8}})},i)})})});function ob(e){const t=ab();d.useEffect(()=>(t.on("mousedown",e),()=>{t.off("mousedown",e)}),[e,t])}function sb(e){const t=ab();d.useEffect(()=>(t.on("mousemove",e),()=>{t.off("mousemove",e)}),[e,t])}function lb(e){const t=ab();d.useEffect(()=>(t.on("mouseup",e),()=>{t.off("mouseup",e)}),[e,t])}function lC(e,t,n){if(!n)return[0,0,0,0];const{data:r,width:i}=n,a=t*i*4+e*4;return Array.from(r.slice(a,a+4))}function Nqt(e,t){const{tiles:n,size:r}=t.data;n.forEach(i=>{const a=Math.round(i.color[0]),o=Math.round(i.color[1]),s=Math.round(i.color[2]),l=i.color[3]/255;e.fillStyle=`rgba(${a}, ${o}, ${s}, ${l})`,e.fillRect(i.x-r/2,i.y-r/2,r,r)})}function Aqt(){const e=Nd(),{image:t,width:n,height:r}=Zs(),[i,a]=Oh(),o=Rh(),[s,l]=Rc(),[c]=ib(),[,u]=Ph(),[f,p]=d.useState(3),h=d.useRef(null),m=d.useRef(null),g=i==="Mosaic",v=d.useCallback(()=>{a.set("Mosaic"),u.set("crosshair")},[a,u]),y=d.useCallback(()=>{g||(v(),l.clearSelect())},[g,v,l]),w=d.useCallback(k=>{if(!g||m.current||!h.current||!o.current)return;const S=o.current.canvas.getBoundingClientRect(),_=k.clientX-S.x,E=k.clientY-S.y,$=f*2;m.current={name:"Mosaic",type:Gi.Source,data:{size:$,tiles:[{x:_,y:E,color:lC(_,E,h.current)}]},editHistory:[],draw:Nqt}},[g,f,o]),b=d.useCallback(k=>{if(!g||!m.current||!o.current||!h.current)return;const S=o.current.canvas.getBoundingClientRect(),_=k.clientX-S.x,E=k.clientY-S.y,$=m.current.data.size,M=m.current.data.tiles;let P=M[M.length-1];if(!P)M.push({x:_,y:E,color:lC(_,E,h.current)});else{const R=P.x-_,O=P.y-E;let j=Math.sqrt(R**2+O**2);const I=-O/j,A=-R/j;for(;j>$;){const N=Math.floor(P.x+$*A),F=Math.floor(P.y+$*I);P={x:N,y:F,color:lC(N,F,h.current)},M.push(P),j-=$}j>$/2&&M.push({x:_,y:E,color:lC(_,E,h.current)})}s.top!==m.current?l.push(m.current):l.set(s)},[g,o,s,l]),C=d.useCallback(()=>{g&&(m.current=null)},[g]);return ob(w),sb(b),lb(C),d.useEffect(()=>{if(!c||!t||!g)return;const k=document.createElement("canvas"),S=k.getContext("2d");if(!S)return;k.width=c.width,k.height=c.height;const _=t.naturalWidth/n,E=t.naturalHeight/r;S.drawImage(t,c.x*_,c.y*E,c.width*_,c.height*E,0,0,c.width,c.height),h.current=S.getImageData(0,0,c.width,c.height)},[n,r,c,t,g]),x.jsx(Ou,{title:e.operation_mosaic_title,icon:"icon-mosaic",checked:g,onClick:y,option:x.jsx(y4e,{value:f,onChange:p})})}const Dqt=d.memo(function({value:t,onChange:n}){const r=["#ee5126","#fceb4d","#90e746","#51c0fa","#7a7a7a","#ffffff"];return x.jsx("div",{className:"screenshots-color",children:r.map(i=>{const a=["screenshots-color-item"];return i===t&&a.push("screenshots-color-active"),x.jsx("div",{className:a.join(" "),style:{backgroundColor:i},onClick:()=>n&&n(i)},i)})})}),dx=d.memo(function({size:t,color:n,onSizeChange:r,onColorChange:i}){return x.jsxs("div",{className:"screenshots-sizecolor",children:[x.jsx(y4e,{value:t,onChange:r}),x.jsx(Dqt,{value:n,onChange:i})]})}),Fqt=` min-width: 0 !important; width: 0 !important; min-height: 0 !important; @@ -710,9 +710,9 @@ position: absolute !important; z-index: -1000 !important; top:0 !important; right:0 !important; -`,Fqt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","text-indent","padding-left","padding-right","border-width","box-sizing","white-space","word-break"];let dp;function Lqt(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing")||t.getPropertyValue("-moz-box-sizing")||t.getPropertyValue("-webkit-box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{sizingStyle:Fqt.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function Bqt(e,t,n,r){dp||(dp=document.createElement("textarea"),dp.setAttribute("tab-index","-1"),document.body.appendChild(dp));const{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=Lqt(e);dp.setAttribute("style",`${s};${Dqt};max-width:${n}px;max-height:${r}px`),dp.value=t||" ";let l=dp.scrollWidth,c=dp.scrollHeight;return o==="border-box"?(l+=a,c+=a):o==="content-box"&&(l-=i,c-=i),{width:Math.min(l,n),height:Math.min(c,r)}}const zqt=d.memo(function({x:t,y:n,maxWidth:r,maxHeight:i,size:a,color:o,value:s,onChange:l,onBlur:c}){const u=d.useRef(null),f=d.useRef(null),[p,h]=d.useState(0),[m,g]=d.useState(0),v=()=>(u.current||(u.current=document.createElement("div")),u.current);return d.useLayoutEffect(()=>(u.current&&(document.body.appendChild(u.current),requestAnimationFrame(()=>{var y;(y=f.current)==null||y.focus()})),()=>{var y;(y=u.current)==null||y.remove()}),[]),d.useLayoutEffect(()=>{if(!f.current)return;const{width:y,height:w}=Bqt(f.current,s,r,i);h(y),g(w)},[s,r,i]),Va.createPortal(x.jsx("textarea",{ref:f,className:"screenshots-textarea",style:{color:o,width:p,height:m,maxWidth:r,maxHeight:i,fontSize:a,lineHeight:`${a}px`,transform:`translate(${t}px, ${n}px)`},value:s,onChange:y=>l&&l(y.target.value),onBlur:y=>c&&c(y)}),v())});function px(e){const t=ab();d.useEffect(()=>(t.on("drawselect",e),()=>{t.off("drawselect",e)}),[e,t])}const PP={3:18,6:32,9:46};function Hqt(e,t){const{size:n,color:r,fontFamily:i,x:a,y:o,text:s}=t.data;e.fillStyle=r,e.textAlign="left",e.textBaseline="top",e.font=`${n}px ${i}`;const l=t.editHistory.reduce((c,{data:u})=>({x:c.x+u.x2-u.x1,y:c.y+u.y2-u.y1}),{x:0,y:0});s.split(` -`).forEach((c,u)=>{e.fillText(c,a+l.x,o+l.y+u*n)})}function Uqt(e,t,n){e.textAlign="left",e.textBaseline="top",e.font=`${t.data.size}px ${t.data.fontFamily}`;let r=0,i=0;t.data.text.split(` -`).forEach(f=>{const p=e.measureText(f);r({x:f.x+p.x2-p.x1,y:f.y+p.y2-p.y1}),{x:0,y:0}),s=t.data.x+a,l=t.data.y+o,c=s+r,u=l+i;return n.x>=s&&n.x<=c&&n.y>=l&&n.y<=u}function Wqt(){const e=Nd(),[t,n]=Rc(),[r]=ib(),[i,a]=Oh(),[,o]=Ph(),s=Rh(),[l,c]=d.useState(3),[u,f]=d.useState("#ee5126"),p=d.useRef(null),h=d.useRef(null),[m,g]=d.useState(null),[v,y]=d.useState(""),w=i==="Text",b=d.useCallback(()=>{a.set("Text"),o.set("default")},[a,o]),C=d.useCallback(()=>{w||(b(),n.clearSelect())},[w,b,n]),k=d.useCallback(O=>{p.current&&(p.current.data.size=PP[O]),c(O)},[]),S=d.useCallback(O=>{p.current&&(p.current.data.color=O),f(O)},[]),_=d.useCallback(O=>{y(O),w&&p.current&&(p.current.data.text=O)},[w]),E=d.useCallback(()=>{p.current&&p.current.data.text&&n.push(p.current),p.current=null,y(""),g(null)},[n]),$=d.useCallback((O,j)=>{O.name==="Text"&&(b(),h.current={type:Gi.Edit,data:{x1:j.clientX,y1:j.clientY,x2:j.clientX,y2:j.clientY},source:O},n.select(O))},[b,n]),M=d.useCallback(O=>{if(!w||!s.current||p.current||!r)return;const{left:j,top:I}=s.current.canvas.getBoundingClientRect(),A=window.getComputedStyle(s.current.canvas).fontFamily,N=O.clientX-j,F=O.clientY-I;p.current={name:"Text",type:Gi.Source,data:{size:PP[l],color:u,fontFamily:A,x:N,y:F,text:""},editHistory:[],draw:Hqt,isHit:Uqt},g({x:O.clientX,y:O.clientY,maxWidth:r.width-N,maxHeight:r.height-F})},[w,l,u,r,s]),P=d.useCallback(O=>{w&&h.current&&(h.current.data.x2=O.clientX,h.current.data.y2=O.clientY,t.top!==h.current?(h.current.source.editHistory.push(h.current),n.push(h.current)):n.set(t))},[w,t,n]),R=d.useCallback(()=>{w&&(h.current=null)},[w]);return px($),ob(M),sb(P),lb(R),x.jsxs(x.Fragment,{children:[x.jsx(Ou,{title:e.operation_text_title,icon:"icon-text",checked:w,onClick:C,option:x.jsx(fx,{size:l,color:u,onSizeChange:k,onColorChange:S})}),w&&m&&x.jsx(zqt,{x:m.x,y:m.y,maxWidth:m.maxWidth,maxHeight:m.maxHeight,size:PP[l],color:u,value:v,onChange:_,onBlur:E})]})}const w4e=4;function eo(e,t,n){e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",e.beginPath(),e.arc(t,n,w4e,0,2*Math.PI),e.fill(),e.stroke()}function a7(e,t,n){t.draw(e,t);const{data:r}=e.getImageData(n.x,n.y,1,1);return r.some(i=>i!==0)}function to(e,t,n){if(!e)return!1;const{left:r,top:i}=e.getBoundingClientRect(),a=t.clientX-r,o=t.clientY-i;return(n.x-a)**2+(n.y-o)**2({x:o.x+s.x2-s.x1,y:o.y+s.y2-s.y1}),{x:0,y:0});e.beginPath(),i.forEach((o,s)=>{s===0?e.moveTo(o.x+a.x,o.y+a.y):e.lineTo(o.x+a.x,o.y+a.y)}),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.beginPath(),i.forEach((o,s)=>{s===0?e.moveTo(o.x+a.x,o.y+a.y):e.lineTo(o.x+a.x,o.y+a.y)}),e.stroke())}function qqt(){const e=Nd(),[,t]=Ph(),[n,r]=Oh(),i=Rh(),[a,o]=Rc(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=n==="Brush",m=d.useCallback(()=>{r.set("Brush"),t.set("default")},[r,t]),g=d.useCallback(()=>{h||(m(),o.clearSelect())},[h,m,o]),v=d.useCallback((C,k)=>{C.name==="Brush"&&(m(),p.current={type:Gi.Edit,data:{x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:C},o.select(C))},[m,o]),y=d.useCallback(C=>{if(!h||f.current||!i.current)return;const{left:k,top:S}=i.current.canvas.getBoundingClientRect();f.current={name:"Brush",type:Gi.Source,data:{size:s,color:c,points:[{x:C.clientX-k,y:C.clientY-S}]},editHistory:[],draw:Vqt,isHit:a7}},[h,i,s,c]),w=d.useCallback(C=>{if(!(!h||!i.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,a.top!==p.current?(p.current.source.editHistory.push(p.current),o.push(p.current)):o.set(a);else if(f.current){const{left:k,top:S}=i.current.canvas.getBoundingClientRect();f.current.data.points.push({x:C.clientX-k,y:C.clientY-S}),a.top!==f.current?o.push(f.current):o.set(a)}}},[h,a,i,o]),b=d.useCallback(()=>{h&&(f.current&&o.clearSelect(),f.current=null,p.current=null)},[h,o]);return px(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_brush_title,icon:"icon-brush",checked:h,onClick:g,option:x.jsx(fx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function x4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===T_.Move?(t+=o,n+=s,r+=o,i+=s):a.type===T_.MoveStart?(t+=o,n+=s):a.type===T_.MoveEnd&&(r+=o,i+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Kqt(e,t){const{size:n,color:r,x1:i,x2:a,y1:o,y2:s}=x4e(t);e.lineCap="round",e.lineJoin="bevel",e.lineWidth=n,e.strokeStyle=r;const l=a-i,c=s-o,u=n*3,f=Math.atan2(c,l);e.beginPath(),e.moveTo(i,o),e.lineTo(a,s),e.lineTo(a-u*Math.cos(f-Math.PI/6),s-u*Math.sin(f-Math.PI/6)),e.moveTo(a,s),e.lineTo(a-u*Math.cos(f+Math.PI/6),s-u*Math.sin(f+Math.PI/6)),e.stroke(),t.isSelected&&(eo(e,i,o),eo(e,a,s))}var T_=(e=>(e[e.Move=0]="Move",e[e.MoveStart=1]="MoveStart",e[e.MoveEnd=2]="MoveEnd",e))(T_||{});function Gqt(){const e=Nd(),[,t]=Ph(),[n,r]=Oh(),[i,a]=Rc(),o=Rh(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=n==="Arrow",m=d.useCallback(()=>{r.set("Arrow"),t.set("default")},[r,t]),g=d.useCallback(()=>{h||(m(),a.clearSelect())},[h,m,a]),v=d.useCallback((C,k)=>{if(C.name!=="Arrow"||!o.current)return;const S=C;m();const{x1:_,y1:E,x2:$,y2:M}=x4e(S);let P=0;to(o.current.canvas,k,{x:_,y:E})?P=1:to(o.current.canvas,k,{x:$,y:M})&&(P=2),p.current={type:Gi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:S},a.select(C)},[o,m,a]),y=d.useCallback(C=>{if(!h||f.current||!o.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current={name:"Arrow",type:Gi.Source,data:{size:s,color:c,x1:C.clientX-k,y1:C.clientY-S,x2:C.clientX-k,y2:C.clientY-S},editHistory:[],draw:Kqt,isHit:a7}},[h,c,s,o]),w=d.useCallback(C=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,i.top!==p.current?(p.current.source.editHistory.push(p.current),a.push(p.current)):a.set(i);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current.data.x2=C.clientX-k,f.current.data.y2=C.clientY-S,i.top!==f.current?a.push(f.current):a.set(i)}}},[h,i,o,a]),b=d.useCallback(()=>{h&&(f.current&&a.clearSelect(),f.current=null,p.current=null)},[h,a]);return px(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_arrow_title,icon:"icon-arrow",checked:h,onClick:g,option:x.jsx(fx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function S4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===zu.Move?(t+=o,n+=s,r+=o,i+=s):a.type===zu.ResizeTop?n+=s:a.type===zu.ResizeRightTop?(r+=o,n+=s):a.type===zu.ResizeRight?r+=o:a.type===zu.ResizeRightBottom?(r+=o,i+=s):a.type===zu.ResizeBottom?i+=s:a.type===zu.ResizeLeftBottom?(t+=o,i+=s):a.type===zu.ResizeLeft?t+=o:a.type===zu.ResizeLeftTop&&(t+=o,n+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Yqt(e,t){const{size:n,color:r,x1:i,y1:a,x2:o,y2:s}=S4e(t);e.lineCap="butt",e.lineJoin="miter",e.lineWidth=n,e.strokeStyle=r;const l=(i+o)/2,c=(a+s)/2,u=Math.abs(o-i)/2,f=Math.abs(s-a)/2,p=.5522848,h=u*p,m=f*p;e.beginPath(),e.moveTo(l-u,c),e.bezierCurveTo(l-u,c-m,l-h,c-f,l,c-f),e.bezierCurveTo(l+h,c-f,l+u,c-m,l+u,c),e.bezierCurveTo(l+u,c+m,l+h,c+f,l,c+f),e.bezierCurveTo(l-h,c+f,l-u,c+m,l-u,c),e.closePath(),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",e.beginPath(),e.moveTo(i,a),e.lineTo(o,a),e.lineTo(o,s),e.lineTo(i,s),e.closePath(),e.stroke(),eo(e,(i+o)/2,a),eo(e,o,a),eo(e,o,(a+s)/2),eo(e,o,s),eo(e,(i+o)/2,s),eo(e,i,s),eo(e,i,(a+s)/2),eo(e,i,a))}var zu=(e=>(e[e.Move=0]="Move",e[e.ResizeTop=1]="ResizeTop",e[e.ResizeRightTop=2]="ResizeRightTop",e[e.ResizeRight=3]="ResizeRight",e[e.ResizeRightBottom=4]="ResizeRightBottom",e[e.ResizeBottom=5]="ResizeBottom",e[e.ResizeLeftBottom=6]="ResizeLeftBottom",e[e.ResizeLeft=7]="ResizeLeft",e[e.ResizeLeftTop=8]="ResizeLeftTop",e))(zu||{});function Xqt(){const e=Nd(),[t,n]=Rc(),[r,i]=Oh(),[,a]=Ph(),o=Rh(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=r==="Ellipse",m=d.useCallback(()=>{i.set("Ellipse"),a.set("crosshair")},[i,a]),g=d.useCallback(()=>{h||(m(),n.clearSelect())},[h,m,n]),v=d.useCallback((C,k)=>{if(C.name!=="Ellipse"||!o.current)return;const S=C;m();const{x1:_,y1:E,x2:$,y2:M}=S4e(S);let P=0;to(o.current.canvas,k,{x:(_+$)/2,y:E})?P=1:to(o.current.canvas,k,{x:$,y:E})?P=2:to(o.current.canvas,k,{x:$,y:(E+M)/2})?P=3:to(o.current.canvas,k,{x:$,y:M})?P=4:to(o.current.canvas,k,{x:(_+$)/2,y:M})?P=5:to(o.current.canvas,k,{x:_,y:M})?P=6:to(o.current.canvas,k,{x:_,y:(E+M)/2})?P=7:to(o.current.canvas,k,{x:_,y:E})&&(P=8),p.current={type:Gi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:S},n.select(C)},[o,m,n]),y=d.useCallback(C=>{if(!h||!o.current||f.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),_=C.clientX-k,E=C.clientY-S;f.current={name:"Ellipse",type:Gi.Source,data:{size:s,color:c,x1:_,y1:E,x2:_,y2:E},editHistory:[],draw:Yqt,isHit:a7}},[h,s,c,o]),w=d.useCallback(C=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,t.top!==p.current?(p.current.source.editHistory.push(p.current),n.push(p.current)):n.set(t);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current.data.x2=C.clientX-k,f.current.data.y2=C.clientY-S,t.top!==f.current?n.push(f.current):n.set(t)}}},[h,o,t,n]),b=d.useCallback(()=>{h&&(f.current&&n.clearSelect(),f.current=null,p.current=null)},[h,n]);return px(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_ellipse_title,icon:"icon-ellipse",checked:h,onClick:g,option:x.jsx(fx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function C4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===Hu.Move?(t+=o,n+=s,r+=o,i+=s):a.type===Hu.ResizeTop?n+=s:a.type===Hu.ResizeRightTop?(r+=o,n+=s):a.type===Hu.ResizeRight?r+=o:a.type===Hu.ResizeRightBottom?(r+=o,i+=s):a.type===Hu.ResizeBottom?i+=s:a.type===Hu.ResizeLeftBottom?(t+=o,i+=s):a.type===Hu.ResizeLeft?t+=o:a.type===Hu.ResizeLeftTop&&(t+=o,n+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Zqt(e,t){const{size:n,color:r,x1:i,y1:a,x2:o,y2:s}=C4e(t);e.lineCap="butt",e.lineJoin="miter",e.lineWidth=n,e.strokeStyle=r,e.beginPath(),e.moveTo(i,a),e.lineTo(o,a),e.lineTo(o,s),e.lineTo(i,s),e.closePath(),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",eo(e,(i+o)/2,a),eo(e,o,a),eo(e,o,(a+s)/2),eo(e,o,s),eo(e,(i+o)/2,s),eo(e,i,s),eo(e,i,(a+s)/2),eo(e,i,a))}var Hu=(e=>(e[e.Move=0]="Move",e[e.ResizeTop=1]="ResizeTop",e[e.ResizeRightTop=2]="ResizeRightTop",e[e.ResizeRight=3]="ResizeRight",e[e.ResizeRightBottom=4]="ResizeRightBottom",e[e.ResizeBottom=5]="ResizeBottom",e[e.ResizeLeftBottom=6]="ResizeLeftBottom",e[e.ResizeLeft=7]="ResizeLeft",e[e.ResizeLeftTop=8]="ResizeLeftTop",e))(Hu||{});function Qqt(){const e=Nd(),[t,n]=Rc(),[r,i]=Oh(),[,a]=Ph(),o=Rh(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=r==="Rectangle",m=d.useCallback(()=>{i.set("Rectangle"),a.set("crosshair")},[i,a]),g=d.useCallback(()=>{h||(m(),n.clearSelect())},[h,m,n]),v=d.useCallback((C,k)=>{if(C.name!=="Rectangle"||!o.current)return;const S=C;m();const{x1:_,y1:E,x2:$,y2:M}=C4e(S);let P=0;to(o.current.canvas,k,{x:(_+$)/2,y:E})?P=1:to(o.current.canvas,k,{x:$,y:E})?P=2:to(o.current.canvas,k,{x:$,y:(E+M)/2})?P=3:to(o.current.canvas,k,{x:$,y:M})?P=4:to(o.current.canvas,k,{x:(_+$)/2,y:M})?P=5:to(o.current.canvas,k,{x:_,y:M})?P=6:to(o.current.canvas,k,{x:_,y:(E+M)/2})?P=7:to(o.current.canvas,k,{x:_,y:E})&&(P=8),p.current={type:Gi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:C},n.select(C)},[o,m,n]),y=d.useCallback(C=>{if(!h||!o.current||f.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),_=C.clientX-k,E=C.clientY-S;f.current={name:"Rectangle",type:Gi.Source,data:{size:s,color:c,x1:_,y1:E,x2:_,y2:E},editHistory:[],draw:Zqt,isHit:a7}},[h,s,c,o]),w=d.useCallback(C=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,t.top!==p.current?(p.current.source.editHistory.push(p.current),n.push(p.current)):n.set(t);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),_=f.current.data;_.x2=C.clientX-k,_.y2=C.clientY-S,t.top!==f.current?n.push(f.current):n.set(t)}}},[h,o,t,n]),b=d.useCallback(()=>{h&&(f.current&&n.clearSelect(),f.current=null,p.current=null)},[h,n]);return px(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_rectangle_title,icon:"icon-rectangle",checked:h,onClick:g,option:x.jsx(fx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}const Jqt=[Qqt,Xqt,Gqt,qqt,Wqt,Nqt,"|",Iqt,Rqt,"|",Oqt,Pqt,Tqt],_4e=te.createContext(null),eKt=d.memo(function(){const{width:t,height:n}=Zs(),[r]=ib(),[i,a]=d.useState(null),[o,s]=d.useState(null),l=d.useRef(null),c=d.useCallback(f=>{f.stopPropagation()},[]),u=d.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return d.useEffect(()=>{if(!r||!l.current)return;const f=l.current.getBoundingClientRect();let p=r.x+r.width-f.width,h=r.y+r.height+10;p<0&&(p=0),p>t-f.width&&(p=t-f.width),h>n-f.height&&(h=n-f.height-10),(!o||Math.abs(o.x-p)>1||Math.abs(o.y-h)>1)&&s({x:p,y:h}),(!i||Math.abs(i.x-f.x)>1||Math.abs(i.y-f.y)>1||Math.abs(i.width-f.width)>1||Math.abs(i.height-f.height)>1)&&a({x:f.x,y:f.y,width:f.width,height:f.height})}),r?x.jsx(_4e.Provider,{value:i,children:x.jsx("div",{ref:l,className:"screenshots-operations",style:{visibility:o?"visible":"hidden",transform:`translate(${(o==null?void 0:o.x)??0}px, ${(o==null?void 0:o.y)??0}px)`},onDoubleClick:c,onContextMenu:u,children:x.jsx("div",{className:"screenshots-operations-buttons",children:Jqt.map((f,p)=>f==="|"?x.jsx("div",{className:"screenshots-operations-divider"},p):x.jsx(f,{},p))})})}):null});function tKt(e){const[t,n]=d.useState(null);return d.useEffect(()=>{if(n(null),e==null)return;const r=document.createElement("img"),i=()=>n(r),a=()=>n(null);return r.addEventListener("load",i),r.addEventListener("error",a),r.src=e,()=>{r.removeEventListener("load",i),r.removeEventListener("error",a)}},[e]),t}function nKt({url:e,width:t,height:n,lang:r,className:i,...a}){const o=tKt(e),s=d.useRef(null),l=d.useRef({}),[c,u]=d.useState({index:-1,stack:[]}),[f,p]=d.useState(null),[h,m]=d.useState("move"),[g,v]=d.useState(void 0),y={url:e,width:t,height:n,image:o,lang:{...y4e,...r},emiterRef:l,canvasContextRef:s,history:c,bounds:f,cursor:h,operation:g},w=d.useCallback((E,...$)=>{const M=a[E];typeof M=="function"&&M(...$)},[a]),b={call:w,setHistory:u,setBounds:p,setCursor:m,setOperation:v},C=["screenshots"];i&&C.push(i);const k=()=>{l.current={},u({index:-1,stack:[]}),p(null),m("move"),v(void 0)},S=d.useCallback(async E=>{if(!(E.button!==0||!o))if(f&&s.current)h5({image:o,width:t,height:n,history:c,bounds:f}).then($=>{w("onOk",$,f),k()});else{const $={x:0,y:0,width:t,height:n};h5({image:o,width:t,height:n,history:c,bounds:$}).then(M=>{w("onOk",M,$),k()})}},[o,c,f,t,n,w]),_=d.useCallback(E=>{E.button===2&&(E.preventDefault(),w("onCancel"),k())},[w]);return d.useLayoutEffect(()=>{k()},[e]),x.jsx(hU.Provider,{value:{store:y,dispatcher:b},children:x.jsxs("div",{className:C.join(" "),style:{width:t,height:n},onDoubleClick:S,onContextMenu:_,children:[x.jsx(xqt,{}),x.jsx($qt,{ref:s}),x.jsx(eKt,{})]})})}const rKt=({open:e,screenShotImg:t,onOk:n,onCancel:r})=>{const i=d.useCallback((u,f)=>{if(console.log("onScreenSave",u,f),u){const p=URL.createObjectURL(u);console.log(p),F0(p)}},[]),a=d.useCallback(()=>{console.log("onScreenCancel")},[]),o=d.useCallback((u,f)=>{console.log("onScreenOk",u,f),u&&c(u)},[]),s=()=>{if(t.startsWith("data:image/png;base64,")){const u=t.split(",")[1],f=atob(u),p=[];for(let m=0;m{r()},c=async u=>{const f=en(new Date).format("YYYYMMDDHHmmss")+"_screenshot.png",p=new FormData;p.append("file",u,f),p.append("file_name",f),p.append("file_type","image/png"),p.append("is_avatar","false"),p.append("kb_type",kF),p.append("category_uid",""),p.append("kb_uid",""),p.append("client",kn),console.log("handleUpload formData",p),fetch(fy(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},body:p}).then(h=>(console.log("upload response:",h),h.json())).then(h=>{console.log("upload data:",h),$n.emit(RC,h.data.fileUrl),n()})};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"截屏录屏",open:e,okText:"发送",onOk:s,onCancel:l,children:x.jsx(nKt,{url:t,width:470,height:400,onSave:i,onCancel:a,onOk:o})})})},iKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabThread"})}),aKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabContact"})}),oKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabGroup"})}),sKt=e=>{console.log(e)},lKt=[{key:"1",label:"会话",children:x.jsx(iKt,{})},{key:"2",label:"联系人",children:x.jsx(aKt,{})},{key:"3",label:"群聊",children:x.jsx(oKt,{})}],cKt=({open:e,onOk:t,onCancel:n})=>{const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"转发消息",open:e,onOk:r,onCancel:i,children:x.jsx(Yg,{defaultActiveKey:"1",items:lKt,onChange:sKt})})})},uKt=({open:e,onOk:t,onCancel:n})=>{Kn.useForm();const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"TODO:历史消息",open:e,onOk:r,onCancel:i})})},dKt=({open:e,onOk:t,onCancel:n})=>{const[r]=Kn.useForm(),i=()=>{t()},a=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"转发消息",open:e,onOk:i,onCancel:a,children:x.jsx(Kn,{form:r,submitter:{render:!1}})})})},{TextArea:fKt}=Ur,pKt=({open:e,onOk:t,onCancel:n})=>{const r=jn(),{isDarkMode:i}=Ag(),a=Vr(I=>I.currentOrg),{translateStringTranct:o,translateString:s}=Zr(),[l,c]=d.useState({uid:""}),[u,f]=d.useState(),[p,h]=d.useState(""),{userInfo:m}=t1(),{agentInfo:g}=Eo(),v=fr(I=>I.currentThread),[y,w]=d.useState(120),[b,C]=d.useState(0),[k,S]=d.useState(10),_=d.useMemo(()=>{const I=u==null?void 0:u.data.content;if(I){const A=I.filter(N=>(N==null?void 0:N.userUid)!==(m==null?void 0:m.uid));return A.length>0&&c(A[0]),A}else return[]},[u]),E=async()=>{je.loading(r.formatMessage({id:"querying",defaultMessage:"查询中..."}));const I={pageNumber:b,pageSize:k,orgUid:a==null?void 0:a.uid},A=await Ele(I);console.log("queryAgentsByOrg:",A.data),A.data.code===200?(je.destroy(),f(A.data),A.data.data.content.length===0&&A.data.data.totalPages>0&&C(0)):(je.destroy(),je.error(A.data.message))};d.useEffect(()=>{e&&E()},[e,b,k]);const $=(I,A)=>{console.log("list on click",I,A),c(I)},M=()=>{E()},P=async()=>{if((l==null?void 0:l.uid)!==""){const I=Ba(),A={note:p,sender:{uid:g==null?void 0:g.uid,nickname:g==null?void 0:g.nickname,avatar:g==null?void 0:g.avatar,type:uh},receiver:{uid:l==null?void 0:l.uid,nickname:l==null?void 0:l.nickname,avatar:l==null?void 0:l.avatar,type:uh},thread:{uid:v==null?void 0:v.uid,topic:v==null?void 0:v.topic,type:v==null?void 0:v.type,state:v==null?void 0:v.state,user:v==null?void 0:v.user},status:Q6e,messageUid:I,expireTime:y,orgUid:a==null?void 0:a.uid},N=await fqt(A);if(console.log("transferThread:",N.data),N.data.code===200){je.success("发起转接成功");const F=JSON.stringify(A);Rct(I,F,v),t()}else je.error(s(N.data.message))}else je.warning("请选择转接客服")},R=()=>{n()},O=I=>x.jsx(x.Fragment,{children:x.jsxs("span",{style:{color:"#999999",fontSize:12},children:[I.status===y0&&"[✅接待]",I.status===yk&&"[忙碌]",I.status===Dm&&"[下线]",I.connected?"✅连接":"❌断开"]})}),j=(I,A)=>{C(I-1),A&&A!==k&&S(A)};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:r.formatMessage({id:"transfer",defaultMessage:"Transfer"}),open:e,onOk:P,onCancel:R,width:400,footer:[x.jsx(Yt,{onClick:R,children:r.formatMessage({id:"cancel",defaultMessage:"Cancel"})},"cancel"),x.jsx(Yt,{onClick:M,children:r.formatMessage({id:"refresh",defaultMessage:"Refresh"})},"refresh"),x.jsx(Yt,{type:"primary",onClick:P,disabled:(l==null?void 0:l.uid)==="",children:r.formatMessage({id:"transfer",defaultMessage:"Transfer"})},"submit")],children:[x.jsx(Yn,{itemLayout:"horizontal",dataSource:_,locale:{emptyText:r.formatMessage({id:"noAgent",defaultMessage:"No Agent available"})},renderItem:(I,A)=>x.jsx(Yn.Item,{style:l.uid===I.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>$(I,A),children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:I.avatar}),title:o(I.nickname),description:O(I)})})}),u&&u.data&&u.data.totalElements>k&&x.jsx("div",{style:{marginTop:16,textAlign:"right"},children:x.jsx(j4,{current:b+1,pageSize:k,total:u.data.totalElements,onChange:j,size:"small",showSizeChanger:!0,showQuickJumper:!1,showTotal:I=>r.formatMessage({id:"pagination.total",defaultMessage:"共 {total} 条"},{total:I})})}),x.jsx(fKt,{rows:2,style:{marginTop:5,marginBottom:5},placeholder:r.formatMessage({id:"transfer.reason",defaultMessage:"Transfer Reason"}),value:p,onChange:I=>{h(I.target.value)}}),!1]})})},{TextArea:hKt}=Ur,mKt=({open:e,onOk:t,onCancel:n})=>{const r=jn(),{isDarkMode:i}=Ag(),a=Vr(I=>I.currentOrg),{translateStringTranct:o,translateString:s}=Zr(),[l,c]=d.useState({uid:""}),[u,f]=d.useState(),[p,h]=d.useState(""),{userInfo:m}=t1(),{agentInfo:g}=Eo(),v=fr(I=>I.currentThread),[y,w]=d.useState(120),[b,C]=d.useState(0),[k,S]=d.useState(10),_=d.useMemo(()=>{const I=u==null?void 0:u.data.content;if(I){const A=I.filter(N=>(N==null?void 0:N.userUid)!==(m==null?void 0:m.uid));return A.length>0&&c(A[0]),A}else return[]},[u]),E=async()=>{je.loading(r.formatMessage({id:"querying",defaultMessage:"查询中..."}));const I={pageNumber:b,pageSize:k,orgUid:a==null?void 0:a.uid},A=await Ele(I);console.log("queryAgentsByOrg:",A.data),A.data.code===200?(je.destroy(),f(A.data),A.data.data.content.length===0&&A.data.data.totalPages>0&&C(0)):(je.destroy(),je.error(A.data.message))};d.useEffect(()=>{e&&E()},[e,b,k]);const $=(I,A)=>{console.log("list on click",I,A),c(I)},M=()=>{E()},P=async()=>{if(console.log("invite note:",p,l),(l==null?void 0:l.uid)!==""){const I=Ba(),A={note:p,sender:{uid:g==null?void 0:g.uid,nickname:g==null?void 0:g.nickname,avatar:g==null?void 0:g.avatar,type:uh},receiver:{uid:l==null?void 0:l.uid,nickname:l==null?void 0:l.nickname,avatar:l==null?void 0:l.avatar,type:uh},thread:{uid:v==null?void 0:v.uid,topic:v==null?void 0:v.topic,type:v==null?void 0:v.type,state:v==null?void 0:v.state,user:v==null?void 0:v.user},status:J6e,messageUid:I,expireTime:y,orgUid:a==null?void 0:a.uid},N=await uqt(A);if(console.log("inviteThread:",N.data),N.data.code===200){je.success("发起转接成功");const F=JSON.stringify(A);Ict(I,F,v),t()}else je.error(s(N.data.message))}else je.warning("请选择转接客服")},R=()=>{n()},O=I=>x.jsx(x.Fragment,{children:x.jsxs("span",{style:{color:"#999999",fontSize:12},children:[I.status===y0&&"[✅接待]",I.status===yk&&"[忙碌]",I.status===Dm&&"[下线]",I.connected?"✅连接":"❌断开"]})}),j=(I,A)=>{C(I-1),A&&A!==k&&S(A)};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:r.formatMessage({id:"invite",defaultMessage:"Invite"}),open:e,onOk:P,onCancel:R,width:400,footer:[x.jsx(Yt,{onClick:R,children:r.formatMessage({id:"cancel",defaultMessage:"Cancel"})},"cancel"),x.jsx(Yt,{onClick:M,children:r.formatMessage({id:"refresh",defaultMessage:"Refresh"})},"refresh"),x.jsx(Yt,{type:"primary",onClick:P,disabled:(l==null?void 0:l.uid)==="",children:r.formatMessage({id:"invite",defaultMessage:"Invite"})},"submit")],children:[x.jsx(Yn,{itemLayout:"horizontal",dataSource:_,locale:{emptyText:r.formatMessage({id:"noAgent",defaultMessage:"No Agent available"})},renderItem:(I,A)=>x.jsx(Yn.Item,{style:l.uid===I.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>$(I,A),children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:I.avatar}),title:o(I.nickname),description:O(I)})})}),u&&u.data&&u.data.totalElements>k&&x.jsx("div",{style:{marginTop:16,textAlign:"right"},children:x.jsx(j4,{current:b+1,pageSize:k,total:u.data.totalElements,onChange:j,size:"small",showSizeChanger:!0,showQuickJumper:!1,showTotal:I=>r.formatMessage({id:"pagination.total",defaultMessage:"共 {total} 条"},{total:I})})}),x.jsx(hKt,{rows:2,style:{marginTop:5,marginBottom:5},placeholder:r.formatMessage({id:"invite.reason",defaultMessage:"Invite Reason"}),value:p,onChange:I=>{h(I.target.value)}}),!1]})})},gKt=({open:e,onOk:t,onCancel:n})=>{Kn.useForm();const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"TODO:录音/音视频通话",open:e,onOk:r,onCancel:i})})},{Dragger:vKt}=e1,yKt=({type:e,acceptType:t,maxCount:n=5,isModalOpen:r,attachments:i,handleSubmit:a,handleCancel:o})=>{const s=jn(),[l,c]=d.useState([]),[u,f]=d.useState([]),[p,h]=d.useState({file:null,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:e,category_uid:"",kb_uid:"",client:kn});console.log("acceptType",t);const m=d.useMemo(()=>({name:"file",multiple:!0,action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:p,showUploadList:!1,beforeUpload(y){if(l.length>=n)return je.error(s.formatMessage({id:"upload.maxCount"},{maxCount:n})),!1;c(b=>[...b,y]);const w=en(new Date).format("YYYYMMDDHHmmss")+"_"+y.name;return h(b=>({...b,file:y,file_name:w,file_type:y.type,category_uid:""})),!0},onChange(y){y.file.status==="uploading"&&je.loading(s.formatMessage({id:"upload.uploading"},{filename:y.file.name})),y.file.status==="done"?y.file.response.code===200?(je.destroy(),je.success(s.formatMessage({id:"upload.success"},{filename:y.file.name})),f(w=>[...w,y.file.response.data])):(je.destroy(),je.error(s.formatMessage({id:"upload.failed"},{filename:y.file.name}))):y.file.status==="error"&&je.error(s.formatMessage({id:"upload.failed"},{filename:y.file.name}))},onDrop(y){console.log("Dropped files",y.dataTransfer.files)}}),[p,s]);d.useEffect(()=>{h(y=>({...y,kb_type:e,category_uid:""})),i&&f(i.map(y=>y.upload))},[e]);const g=()=>{a(l,u)},v=y=>{console.log("handleDelete",y);const w=u.find(C=>C.uid===y);if(!w)return;const b=w.fileName.split("_").slice(1).join("_");c(C=>C.filter(k=>k.name!==b)),f(C=>C.filter(k=>k.uid!==y))};return x.jsxs(yr,{title:s.formatMessage({id:"upload.modal.title"}),open:r,onOk:g,onCancel:o,children:[x.jsxs(vKt,{...m,children:[x.jsx("p",{className:"ant-upload-drag-icon",children:x.jsx(yve,{})}),x.jsx("p",{className:"ant-upload-text",children:s.formatMessage({id:"upload.drag.text"})}),x.jsx("p",{className:"ant-upload-hint",children:s.formatMessage({id:"upload.drag.hint"})})]}),x.jsx("div",{style:{marginTop:"16px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:u.map(y=>x.jsx(dU,{file:y,onDelete:v},y.uid))})})]})};async function bKt(e){return bn("/api/v1/ticket/process/query/org",{method:"GET",params:{...e}})}async function wKt(e){return bn("/api/v1/department/query/org",{method:"GET",params:{...e,client:kn}})}const xKt=so()(es(ts(ns((e,t)=>({departmentResult:{data:{content:[]}},currentDepartment:{uid:fv,nickname:fv},insertDepartment(n){e(r=>{const i=r.departmentResult.data.content;if(n.parentUid){const a=i.find(o=>o.uid===n.parentUid);a&&(a.children||(a.children=[]),a.children.push(n))}else i.push(n)})},upgradeDepartment(n){e(r=>{const i=r.departmentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:i.forEach(o=>{if(o.children){const s=o.children.findIndex(l=>l.uid===n.uid);s!==-1&&(o.children[s]=n)}})})},setDepartmentResult:n=>{var a,o;e({departmentResult:{...n,data:{content:[{uid:fv,name:fv},...n.data.content]}}}),t().currentDepartment.uid===""&&((o=(a=n.data)==null?void 0:a.content)==null?void 0:o.length)>0&&e({currentDepartment:n.data.content[0]})},setCurrentDepartment(n){const r=t().departmentResult.data.content,i=r.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...r.slice(0,i),n,...r.slice(i+1)],o={...t().departmentResult,data:{content:a}};e({departmentResult:o,currentDepartment:n})}else console.warn("Department with the specified uid not found."),e({currentDepartment:n})},removeDepartment(n){e(r=>{const i=r.departmentResult.data.content,a=(o,s)=>o.filter(l=>l.uid===s?!1:(l.children&&(l.children=a(l.children,s)),!0));r.departmentResult.data.content=a(i,n)}),t().currentDepartment.uid===n&&e({currentDepartment:{uid:""}})},setCurrentDepUid(n){var a,o,s,l,c;const r=(s=(o=(a=t().departmentResult)==null?void 0:a.data)==null?void 0:o.content)==null?void 0:s.find(u=>u.uid===n);if(r){e({currentDepartment:r});return}const i=u=>{for(const f of u){if(f.uid===n){e({currentDepartment:f});return}f.children&&f.children.length>0&&i(f.children)}};i(((c=(l=t().departmentResult)==null?void 0:l.data)==null?void 0:c.content)||[])},deleteDepartmentCache:()=>e({},!0)})),{name:S6e}))),k4e=({open:e,isEdit:t=!1,currentTicket:n,onSuccess:r,onCancel:i})=>{const[a]=Kn.useForm(),o=jn(),{translateString:s}=Zr(),l=Vr(V=>V.currentOrg),c=Na(V=>V.memberInfo),u=fr(V=>V.currentThread),f=fr(V=>V.threads),[p,h]=d.useState([]),[m,g]=d.useState([]),[v,y]=d.useState({uid:"",nickname:"",avatar:""}),{refreshTickets:w}=ja(),[b,C]=d.useState(!1),[k,S]=d.useState([]),[_,E]=d.useState([]),{departmentResult:$,setDepartmentResult:M}=xKt(V=>({departmentResult:V.departmentResult,setDepartmentResult:V.setDepartmentResult}));d.useEffect(()=>{var V,B,U;if(t&&n)a.setFieldsValue({title:n.title,description:n.description,status:n.status,priority:n.priority,threadUid:n==null?void 0:n.threadUid,departmentUid:n==null?void 0:n.departmentUid,categoryUid:n==null?void 0:n.categoryUid,assigneeUid:(V=n.assignee)==null?void 0:V.uid,uploadUids:(B=n.attachments)==null?void 0:B.map(Y=>{var ee;return(ee=Y.upload)==null?void 0:ee.uid}),processEntityUid:n==null?void 0:n.processEntityUid}),S((U=n.attachments)==null?void 0:U.map(Y=>Y.upload));else{const Y=localStorage.getItem("ticketDraft");Y&&a.setFieldsValue({description:Y}),a.setFieldsValue({status:lg,priority:wk,processEntityUid:(l==null?void 0:l.uid)+"_"+M5e.toLowerCase()}),u!=null&&u.uid&&f.some(ee=>ee.uid===(u==null?void 0:u.uid))?Rf(u)&&a.setFieldsValue({threadUid:u==null?void 0:u.uid}):a.setFieldsValue({threadUid:""}),S([])}},[e,t,n]);const P=async()=>{var V,B,U;try{const Y=await n7({type:bk,orgUid:l==null?void 0:l.uid,pageNumber:0,pageSize:100});((V=Y.data)==null?void 0:V.code)===200&&((U=(B=Y.data)==null?void 0:B.data)!=null&&U.content)&&(h(Y.data.data.content),!t&&Y.data.data.content.length>0&&a.setFieldValue("categoryUid",Y.data.data.content[0].uid))}catch(Y){console.error("Fetch categories error:",Y),je.error(o.formatMessage({id:"ticket.category.load.error"}))}},R=(V,B)=>{if(V.name.startsWith(Iw)?B.title=o.formatMessage({id:V.name,defaultMessage:V.name}):B.title=V.name,B.key=V.uid,B.value=V.uid,V.children){B.children=[];for(let U=0;U{const V=[];for(let B=0;B<$.data.content.length;B++){const U={title:"",key:"",children:[]};R($.data.content[B],U),V.push(U)}return V},[$]),j=async()=>{try{const V={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid},B=await wKt(V);console.log("queryDepartmentsByOrg response:",B.data,V),B.data.code===200?M(B.data):je.error(B.data.message)}catch(V){console.error("Fetch departments error:",V),je.error(o.formatMessage({id:"ticket.department.load.error"}))}},I=async()=>{var U,Y,ee;const V={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid},B=await bKt(V);console.log("queryProcessesByOrg response:",B.data,V),((U=B.data)==null?void 0:U.code)===200&&((ee=(Y=B.data)==null?void 0:Y.data)!=null&&ee.content)?(E(B.data.data.content),B.data.data.content.length>0&&a.setFieldValue("processEntityUid",B.data.data.content[0].uid)):je.error(o.formatMessage({id:"ticket.process.load.error"}))},A=async V=>{var B,U,Y;try{const ee={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid,deptUid:V},ie=await t$(ee);console.log("queryMembersByOrg response:",ie.data,ee),((B=ie.data)==null?void 0:B.code)===200&&((Y=(U=ie.data)==null?void 0:U.data)!=null&&Y.content)&&(g(ie.data.data.content),a.setFieldValue("assigneeUid",void 0))}catch(ee){console.error("Fetch members error:",ee),je.error(o.formatMessage({id:"ticket.member.load.error"}))}},N=V=>{A(V===fv?"":V)};d.useEffect(()=>{e&&(j(),P(),I(),n!=null&&n.departmentUid&&A(n==null?void 0:n.departmentUid))},[e]);const F=async()=>{try{const V=await a.validateFields();je.loading(o.formatMessage({id:"ticket.submitting"}),0);const B=V.threadUid,U=f.find(ee=>ee.uid===B);U&&(V.topic=U.topic);const Y={...V,departmentUid:V.departmentUid===fv?"":V.departmentUid,orgUid:l==null?void 0:l.uid,assignee:{uid:v==null?void 0:v.uid,nickname:v==null?void 0:v.nickname,avatar:v==null?void 0:v.avatar,type:gk},reporter:{uid:c==null?void 0:c.uid,nickname:c==null?void 0:c.nickname,avatar:c==null?void 0:c.avatar,type:gk},uploadUids:[...new Set(k.map(ee=>ee.uid))]};if(console.log("ticketRequest",Y),t&&n){Y.uid=n.uid;const ee=await oWt(Y);console.log("updateTicket response",ee.data),ee.data.code===200?(je.destroy(),je.success(o.formatMessage({id:"ticket.update.success"})),w(),r()):(je.destroy(),je.error(o.formatMessage({id:"ticket.update.failed"})))}else{const ee=await aWt(Y);console.log("createTicket response",ee.data),ee.data.code===200?(je.destroy(),je.success(o.formatMessage({id:"ticket.create.success"})),w(),r()):(je.destroy(),je.error(o.formatMessage({id:"ticket.create.failed"})))}}catch(V){je.destroy(),console.error("Submit ticket error:",V),je.error(o.formatMessage({id:"ticket.submit.error"}))}finally{localStorage.removeItem("ticketDraft")}},K=V=>{console.log("handleDelete",V),S(B=>B.filter(U=>U.uid!==V))},L=()=>{console.log("handleDescriptionBlur",a.getFieldsValue());const V=a.getFieldValue("description");localStorage.setItem("ticketDraft",V)};return x.jsx(Sh,{title:o.formatMessage({id:t?"ticket.edit.title":"ticket.create.title",defaultMessage:t?"编辑工单":"创建工单"}),width:600,open:e,onClose:i,extra:x.jsxs(Xr,{children:[x.jsx(Yt,{onClick:i,children:o.formatMessage({id:"common.cancel"})}),x.jsx(Yt,{type:"primary",onClick:F,children:o.formatMessage({id:"common.confirm"})})]}),children:x.jsxs(Kn,{form:a,submitter:!1,children:[x.jsx(Or,{name:"title",label:o.formatMessage({id:"ticket.form.title"}),rules:[{required:!0}]}),x.jsx(Cd,{name:"description",label:o.formatMessage({id:"ticket.form.description"}),rules:[{required:!0}],fieldProps:{onBlur:L}}),x.jsx(ro,{name:"status",label:o.formatMessage({id:"ticket.form.status"}),disabled:!0,options:[{label:o.formatMessage({id:"ticket.status.new"}),value:lg},{label:o.formatMessage({id:"ticket.status.claimed"}),value:Y3},{label:o.formatMessage({id:"ticket.status.processing"}),value:ly},{label:o.formatMessage({id:"ticket.status.pending"}),value:X3},{label:o.formatMessage({id:"ticket.status.holding"}),value:Z3},{label:o.formatMessage({id:"ticket.status.reopened"}),value:Q3},{label:o.formatMessage({id:"ticket.status.resolved"}),value:J3},{label:o.formatMessage({id:"ticket.status.closed"}),value:e4},{label:o.formatMessage({id:"ticket.status.cancelled"}),value:t4}],rules:[{required:!0}]}),x.jsx(ro,{name:"priority",label:o.formatMessage({id:"ticket.form.priority"}),options:[{label:o.formatMessage({id:"ticket.priority.lowest"}),value:Ose},{label:o.formatMessage({id:"ticket.priority.low"}),value:EF},{label:o.formatMessage({id:"ticket.priority.medium"}),value:wk},{label:o.formatMessage({id:"ticket.priority.high"}),value:$F},{label:o.formatMessage({id:"ticket.priority.urgent"}),value:MF},{label:o.formatMessage({id:"ticket.priority.critical"}),value:TF}],rules:[{required:!0}]}),x.jsx(ro,{name:"categoryUid",label:o.formatMessage({id:"ticket.form.category"}),rules:[{required:!0}],options:p.map(V=>({label:s(V.name),value:V.uid})),placeholder:o.formatMessage({id:"ticket.form.category.placeholder"})}),x.jsx(KTt,{name:"departmentUid",label:o.formatMessage({id:"ticket.form.department"}),rules:[{required:!0}],fieldProps:{treeData:O,treeDefaultExpandAll:!0,onChange:N,placeholder:o.formatMessage({id:"ticket.form.department.placeholder"})}}),x.jsx(ro,{name:"assigneeUid",label:o.formatMessage({id:"ticket.form.assignee"}),options:m.map(V=>{var B;return{label:V.nickname||((B=V.user)==null?void 0:B.nickname),value:V.uid}}),placeholder:o.formatMessage({id:"ticket.form.assignee.placeholder"}),fieldProps:{onChange:V=>{const B=m.find(U=>U.uid===V);y(B||{uid:"",nickname:"",avatar:""})}},disabled:m.length===0}),x.jsx(ro,{name:"threadUid",label:o.formatMessage({id:"ticket.form.thread"}),options:[{label:o.formatMessage({id:"ticket.form.thread.none"}),value:""},...(f==null?void 0:f.filter(Rf).map(V=>{var B;return{label:((B=V.user)==null?void 0:B.nickname)||V.uid,value:V.uid}}))||[]],placeholder:o.formatMessage({id:"ticket.form.thread.placeholder"})}),x.jsx(ro,{name:"processEntityUid",label:o.formatMessage({id:"ticket.form.process"}),rules:[{required:!0}],options:_.map(V=>({label:s(V.name),value:V.uid})),placeholder:o.formatMessage({id:"ticket.form.process.placeholder"})}),b&&x.jsx(yKt,{type:bk,isModalOpen:b,attachments:n==null?void 0:n.attachments,handleSubmit:(V,B)=>{if(console.log("handleSubmit",V,B),t&&n){const U=B.filter(Y=>{var ee;return!((ee=n.attachments)!=null&&ee.some(ie=>{var Z;return((Z=ie.upload)==null?void 0:Z.uid)===Y.uid}))});S(U)}else{const U=B.filter(Y=>{var ee;return!((ee=n.attachments)!=null&&ee.some(ie=>{var Z;return((Z=ie.upload)==null?void 0:Z.uid)===Y.uid}))});S(U)}C(!1)},handleCancel:()=>{C(!1)}}),x.jsx("div",{style:{marginTop:"16px",marginBottom:"16px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:k.map(V=>x.jsx(dU,{file:V,onDelete:K},V.uid))})}),x.jsx(Yt,{icon:x.jsx(F4,{}),onClick:()=>C(!0),children:o.formatMessage({id:"ticket.form.upload.button"})})]})})},SKt=({group:e})=>x.jsx("div",{children:"GroupNotice"}),CKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.members,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),_Kt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.admins,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),kKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.robots,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),EKt=({group:e})=>(console.log("group",e),x.jsx("div",{style:{textAlign:"center"},children:x.jsx(oz,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"./logo.png"})})),$Kt=({open:e,onClose:t})=>{const n=jn(),r=fr(c=>c.currentThread),[i,a]=d.useState(),o=[{key:"notice",label:n.formatMessage({id:"chat.group.notice"}),children:x.jsx(SKt,{group:i})},{key:"members",label:n.formatMessage({id:"chat.group.members"}),children:x.jsx(CKt,{group:i})},{key:"admins",label:n.formatMessage({id:"chat.group.admins"}),children:x.jsx(_Kt,{group:i})},{key:"robots",label:n.formatMessage({id:"chat.group.robots"}),children:x.jsx(kKt,{group:i})},{key:"qrcode",label:n.formatMessage({id:"chat.group.qrcode"}),children:x.jsx(EKt,{group:i})}],s=async()=>{var p,h;const c=(r==null?void 0:r.topic.split("/")[2])||"";c===""&&je.warning(n.formatMessage({id:"chat.group.uid.error"}));const u={uid:c},f=await PWt(u);console.log("queryGroupByUid:",f.data,u),f.data.code===200?a((p=f==null?void 0:f.data)==null?void 0:p.data):je.error((h=f==null?void 0:f.data)==null?void 0:h.message)};d.useEffect(()=>{Fo(r)&&s()},[r]);const l=c=>{console.log(c)};return x.jsx(Sh,{title:"群组资料",width:500,onClose:t,open:e,children:x.jsx(l8,{bordered:!1,items:o,defaultActiveKey:["1"],onChange:l})})},MKt=({open:e,onClose:t})=>{const n=fr(s=>s.currentThread),[r,i]=d.useState(),a=[{key:"nickname",label:"昵称",children:(r==null?void 0:r.nickname)||"暂无"},{key:"jobNo",label:"jobNo",children:(r==null?void 0:r.jobNo)||"暂无"},{key:"jobTitle",label:"jobTitle",children:(r==null?void 0:r.jobTitle)||"暂无"},{key:"seatNo",label:"seatNo",children:(r==null?void 0:r.seatNo)||"暂无"},{key:"telephone",label:"telephone",children:(r==null?void 0:r.telephone)||"暂无"},{key:"email",label:"email",children:(r==null?void 0:r.email)||"暂无"},{key:"mobile",label:"mobile",children:(r==null?void 0:r.mobile)||"暂无"}],o=async()=>{var c,u,f,p;const s=(c=n==null?void 0:n.user)==null?void 0:c.uid,l=await nut(s);console.log("response:",l==null?void 0:l.data,s),((u=l==null?void 0:l.data)==null?void 0:u.code)===200?i((f=l==null?void 0:l.data)==null?void 0:f.data):je.error((p=l==null?void 0:l.data)==null?void 0:p.message)};return d.useEffect(()=>{Ak(n)&&o()},[n]),x.jsx(Sh,{title:"成员资料",width:500,onClose:t,open:e,children:x.jsx(ls,{column:1,items:a,bordered:!1})})};async function TKt(e){return bn("/api/v1/model/query/org",{method:"GET",params:{...e,client:kn}})}async function PKt(e){return bn("/api/v1/provider/query/org",{method:"GET",params:{...e,client:kn}})}async function OKt(){return bn("/api/v1/ollama4j/ping",{method:"GET",params:{client:kn}})}async function RKt(){return bn("/api/v1/ollama4j/local-models",{method:"GET",params:{client:kn}})}const IKt=so()(es(ts(ns((e,t)=>({llmproviderResult:{data:{content:[]}},currentLlmProvider:{uid:"",nickname:""},insertLlmProvider(n){e(r=>{r.llmproviderResult.data.content.unshift(n)})},setLlmProviderResult:n=>{var i,a;e({llmproviderResult:n});const r=t().currentLlmProvider;(r.uid===""||r===void 0)&&((a=(i=n.data)==null?void 0:i.content)==null?void 0:a.length)>0&&e({currentLlmProvider:n.data.content[0]})},setCurrentLlmProvider(n){const r=t().llmproviderResult.data.content,i=r.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...r.slice(0,i),n,...r.slice(i+1)],o={...t().llmproviderResult,data:{content:a}};e({llmproviderResult:o,currentLlmProvider:n})}else console.warn("LlmProvider with the specified uid not found."),e({currentLlmProvider:n})},deleteCurrentLlmProvider(n){const r=t().llmproviderResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({llmproviderResult:{...t().llmproviderResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("LlmProvider not found in cache:",n),t().currentLlmProvider.uid===n&&e({currentLlmProvider:{uid:""}})},deleteLlmProviderCache:()=>e({},!0)})),{name:j6e}))),jKt=({open:e,onClose:t})=>{var E;const n=jn(),[r]=Kn.useForm(),{translateString:i}=Zr(),a=Vr($=>$.currentOrg),{currentThread:o,setCurrentThread:s}=fr($=>({currentThread:$.currentThread,setCurrentThread:$.setCurrentThread})),{llmproviderResult:l,setLlmProviderResult:c}=IKt($=>({llmproviderResult:$.llmproviderResult,setLlmProviderResult:$.setLlmProviderResult})),[u,f]=d.useState({}),[p,h]=d.useState(),[m,g]=d.useState({});d.useEffect(()=>{h(o);const $=o==null?void 0:o.agent;let M;try{M=JSON.parse($)}catch(P){console.error("解析content为JSON时出错:",P)}f(M)},[o]);const v=async()=>{console.log("getLlmProviders");const $={pageNumber:0,pageSize:50,level:Lw,orgUid:a==null?void 0:a.uid},M=await PKt($);console.log("queryLlmProvidersByOrg: ",M.data),M.data.code===200?c(M.data):je.error(M.data.message)};d.useEffect(()=>{var M,P,R,O,j;r.setFieldsValue({provider:(M=u==null?void 0:u.llm)==null?void 0:M.provider,model:(P=u==null?void 0:u.llm)==null?void 0:P.model,temperature:(R=u==null?void 0:u.llm)==null?void 0:R.temperature,prompt:i((O=u==null?void 0:u.llm)==null?void 0:O.prompt),contextMsgCount:(j=u==null?void 0:u.llm)==null?void 0:j.contextMsgCount}),v(),k({uid:"",name:"zhipu"})},[u]);const y=async $=>{console.log("llm handleSubmit",$),u.llm={...u.llm,...$},console.log("llm handleSubmit robot:",u);const M=JSON.stringify(u),P={...p,agent:M};console.log("llm handleSubmit threadRequest:",P);const R=await XFt(P);console.log("llm updateThread response:",R.data,P),R.data.code===200?(je.success("更新成功"),s(R.data.data),t()):je.error(R.data.message)},w=($,M)=>[x.jsx(Yt,{type:"default",onClick:()=>{var P,R,O,j,I;r.setFieldsValue({provider:(P=u==null?void 0:u.llm)==null?void 0:P.provider,model:(R=u==null?void 0:u.llm)==null?void 0:R.model,temperature:(O=u==null?void 0:u.llm)==null?void 0:O.temperature,prompt:i((j=u==null?void 0:u.llm)==null?void 0:j.prompt),contextMsgCount:(I=u==null?void 0:u.llm)==null?void 0:I.contextMsgCount})},children:"重置"},"reset"),x.jsx(Yt,{type:"primary",onClick:()=>{var P;(P=$.form)==null||P.submit()},children:"保存"},"submit")],b=async()=>{const $=await OKt();console.log("getOllamaServerStatus: ",$.data),$.data.code===200&&$.data.data?C():je.error($.data.message)},C=async()=>{const $=await RKt();if(console.log("requestLocalModels: ",$.data),$.data.code===200){const M=$.data.data.map(P=>({value:P.name,label:P.name}));g(P=>({...P,ollama:M})),M.length===0?r.setFieldValue("model",void 0):r.getFieldValue("model")||r.setFieldValue("model",M[0].value)}else je.error($.data.message)},k=async $=>{je.loading(n.formatMessage({id:"loading"}));try{const M={pageNumber:0,pageSize:50,providerUid:$.uid,orgUid:a==null?void 0:a.uid,level:Lw},P=await TKt(M);if(console.log("queryLlmModelsByOrg response:",P.data),P.data.code===200){const R=P.data.data.content.map(O=>({value:O.name,label:O.nickname}));g(O=>({...O,[$.name]:R})),R.length===0?r.setFieldValue("model",void 0):r.getFieldValue("model")||r.setFieldValue("model",R[0].value)}else je.error(P.data.message)}catch(M){console.error("Failed to fetch models:",M),je.error(n.formatMessage({id:"error"}))}finally{je.destroy()}},S=$=>{var P;const M=(P=l==null?void 0:l.data)==null?void 0:P.content.find(R=>R.name===$);console.log("selectedProvider:",M),M!=null&&M.name&&(M.name==="ollama"?b():k(M))},_=$=>{console.log("handleModelSelected:",$)};return x.jsx(Sh,{title:"大模型设置",width:500,onClose:t,open:e,children:x.jsxs(Kn,{form:r,submitter:{render:w,submitButtonProps:{size:"large",htmlType:"button"}},onFinish:y,children:[x.jsx(Cd,{width:"lg",name:"prompt",label:"提示词",placeholder:"请输入prompt",rules:[{required:!0,message:"请输入prompt"}],fieldProps:{autoSize:!0,rows:3}}),x.jsx(ro,{width:"lg",name:"provider",label:"提供商",allowClear:!0,options:(E=l==null?void 0:l.data)==null?void 0:E.content.map($=>({value:$.name,label:$.nickname})),fieldProps:{onChange($,M){console.log("provider value:",$,M),S($)}},rules:[{required:!0,message:"请选择大模型"}]}),x.jsx(ro,{width:"lg",name:"model",label:"模型",allowClear:!0,options:m[r.getFieldValue("provider")]||[],fieldProps:{onChange($,M){console.log("model value:",$,M),_($)}},rules:[{required:!0,message:"请选择大模型"}]}),x.jsx(Nee,{width:"lg",label:"温度",name:"temperature",min:0,max:1,fieldProps:{precision:1,step:.1},rules:[{required:!0,message:"请输入温度"}]}),x.jsx(Nee,{width:"lg",label:"上下文消息数",name:"contextMsgCount",min:0,max:10,fieldProps:{precision:0,step:1},rules:[{required:!0,message:"请输入上下文消息数"}]})]})})},NKt=[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],AKt={100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square","1","2","3","4"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing","shy"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},shaking_face:{id:"shaking_face",name:"Shaking Face",keywords:["dizzy","shock","blurry","earthquake"],skins:[{unified:"1fae8",native:"🫨"}],version:15},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease","covid"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever","covid"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy","cry","tears","sad","grievance"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude","cry"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["2&&(o.children=arguments.length>3?o7.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return P_(e,o,r,i,null)}function P_(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++$4e};return i==null&&sr.vnode!=null&&sr.vnode(a),a}function Kd(){return{current:null}}function J0(e){return e.children}function pd(e,t){this.props=e,this.context=t}function ey(e,t){if(t==null)return e.__?ey(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?P_(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(p=y[u])===null||p&&h.key==p.key&&h.type===p.type)y[u]=void 0;else for(f=0;f{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,r=Math.floor(t/2);return e.font=r+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,i=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(i,0,22),e.fillStyle="#0000FF",e.fillText(i,n,22);const a=e.getImageData(0,0,n,t).data,o=a.length;let s=0;for(;s=o)return!1;const l=n+s/4%n,c=Math.floor(s/4/n),u=e.getImageData(l,c,1,1).data;return!(a[s]!==u[0]||a[s+2]!==u[2]||e.measureText(i).width>=n)}})();var $re={latestVersion:GKt,noCountryFlags:YKt};const VA=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let mo=null;function ZKt(e){mo||(mo=oh.get("frequently")||{});const t=e.id||e;t&&(mo[t]||(mo[t]=0),mo[t]+=1,oh.set("last",t),oh.set("frequently",mo))}function QKt({maxFrequentRows:e,perLine:t}){if(!e)return[];mo||(mo=oh.get("frequently"));let n=[];if(!mo){mo={};for(let a in VA.slice(0,t)){const o=VA[a];mo[o]=t-a,n.push(o)}return n}const r=e*t,i=oh.get("last");for(let a in mo)n.push(a);if(n.sort((a,o)=>{const s=mo[o],l=mo[a];return s==l?a.localeCompare(o):s-l}),n.length>r){const a=n.slice(r);n=n.slice(0,r);for(let o of a)o!=i&&delete mo[o];i&&n.indexOf(i)==-1&&(delete mo[n[n.length-1]],n.splice(-1,1,i)),oh.set("frequently",mo)}return n}var B4e={add:ZKt,get:QKt,DEFAULTS:VA},z4e={};z4e=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var lf={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Ao=null,Ir=null;const RP={};async function Mre(e){if(RP[e])return RP[e];const n=await(await fetch(e)).json();return RP[e]=n,n}let IP=null,H4e=null,U4e=!1;function s7(e,{caller:t}={}){return IP||(IP=new Promise(n=>{H4e=n})),e?JKt(e):t&&!U4e&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),IP}async function JKt(e){U4e=!0;let{emojiVersion:t,set:n,locale:r}=e;if(t||(t=lf.emojiVersion.value),n||(n=lf.set.value),r||(r=lf.locale.value),Ir)Ir.categories=Ir.categories.filter(l=>!l.name);else{Ir=(typeof e.data=="function"?await e.data():e.data)||await Mre(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Ir.emoticons={},Ir.natives={},Ir.categories.unshift({id:"frequent",emojis:[]});for(const l in Ir.aliases){const c=Ir.aliases[l],u=Ir.emojis[c];u&&(u.aliases||(u.aliases=[]),u.aliases.push(l))}Ir.originalCategories=Ir.categories}if(Ao=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(r=="en"?E4e(z4e):await Mre(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),e.custom)for(let l in e.custom){l=parseInt(l);const c=e.custom[l],u=e.custom[l-1];if(!(!c.emojis||!c.emojis.length)){c.id||(c.id=`custom_${l+1}`),c.name||(c.name=Ao.categories.custom),u&&!c.icon&&(c.target=u.target||u),Ir.categories.push(c);for(const f of c.emojis)Ir.emojis[f.id]=f}}e.categories&&(Ir.categories=Ir.originalCategories.filter(l=>e.categories.indexOf(l.id)!=-1).sort((l,c)=>{const u=e.categories.indexOf(l.id),f=e.categories.indexOf(c.id);return u-f}));let i=null,a=null;n=="native"&&(i=$re.latestVersion(),a=e.noCountryFlags||$re.noCountryFlags());let o=Ir.categories.length,s=!1;for(;o--;){const l=Ir.categories[o];if(l.id=="frequent"){let{maxFrequentRows:f,perLine:p}=e;f=f>=0?f:lf.maxFrequentRows.value,p||(p=lf.perLine.value),l.emojis=B4e.get({maxFrequentRows:f,perLine:p})}if(!l.emojis||!l.emojis.length){Ir.categories.splice(o,1);continue}const{categoryIcons:c}=e;if(c){const f=c[l.id];f&&!l.icon&&(l.icon=f)}let u=l.emojis.length;for(;u--;){const f=l.emojis[u],p=f.id?f:Ir.emojis[f],h=()=>{l.emojis.splice(u,1)};if(!p||e.exceptEmojis&&e.exceptEmojis.includes(p.id)){h();continue}if(i&&p.version>i){h();continue}if(a&&l.id=="flags"&&!iGt.includes(p.id)){h();continue}if(!p.search){if(s=!0,p.search=","+[[p.id,!1],[p.name,!0],[p.keywords,!1],[p.emoticons,!1]].map(([g,v])=>{if(g)return(Array.isArray(g)?g:[g]).map(y=>(v?y.split(/[-|_|\s]+/):[y]).map(w=>w.toLowerCase())).flat()}).flat().filter(g=>g&&g.trim()).join(","),p.emoticons)for(const g of p.emoticons)Ir.emoticons[g]||(Ir.emoticons[g]=p.id);let m=0;for(const g of p.skins){if(!g)continue;m++;const{native:v}=g;v&&(Ir.natives[v]=p.id,p.search+=`,${v}`);const y=m==1?"":`:skin-tone-${m}:`;g.shortcodes=`:${p.id}:${y}`}}}}s&&qv.reset(),H4e()}function W4e(e,t,n){e||(e={});const r={};for(let i in t)r[i]=V4e(i,e,t,n);return r}function V4e(e,t,n,r){const i=n[e];let a=r&&r.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return i&&(a!=null&&i.value&&typeof i.value!=typeof a&&(typeof i.value=="boolean"?a=a!="false":a=i.value.constructor(a)),i.transform&&a&&(a=i.transform(a)),(a==null||i.choices&&i.choices.indexOf(a)==-1)&&(a=i.value)),a}const eGt=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let qA=null;function tGt(e){return e.id?e:Ir.emojis[e]||Ir.emojis[Ir.aliases[e]]||Ir.emojis[Ir.natives[e]]}function nGt(){qA=null}async function rGt(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await s7(null,{caller:n||"SearchIndex.search"});const r=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,l,c)=>s.trim()&&c.indexOf(s)==l);if(!r.length)return;let i=qA||(qA=Object.values(Ir.emojis)),a,o;for(const s of r){if(!i.length)break;a=[],o={};for(const l of i){if(!l.search)continue;const c=l.search.indexOf(`,${s}`);c!=-1&&(a.push(l),o[l.id]||(o[l.id]=0),o[l.id]+=l.id==s?0:c+1)}i=a}return a.length<2||(a.sort((s,l)=>{const c=o[s.id],u=o[l.id];return c==u?s.id.localeCompare(l.id):c-u}),a.length>t&&(a=a.slice(0,t))),a}var qv={search:rGt,get:tGt,reset:nGt,SHORTCODES_REGEX:eGt};const iGt=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function aGt(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,r)=>n==t[r])}async function oGt(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function sGt(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),r={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(r.skin=t+1),n.src&&(r.src=n.src),e.aliases&&e.aliases.length&&(r.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(r.emoticons=e.emoticons),r}const lGt={activity:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:nn("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),nn("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),nn("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:nn("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),nn("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:nn("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),nn("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),nn("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},cGt={loupe:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:nn("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:nn("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var b5={categories:lGt,search:cGt};function KA(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){const s=e.shortcodes.match(qv.SHORTCODES_REGEX);s&&(t=s[1],s[2]&&(n=s[2]))}if(r||(r=qv.get(t||e.native)),!r)return e.fallback;const i=r.skins[n-1]||r.skins[0],a=i.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,i.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${i.unified}.png`:void 0),o=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return nn("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?nn("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:i.native||i.shortcodes,src:a}):e.set=="native"?nn("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:i.native}):nn("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${o})`,backgroundSize:`${100*Ir.sheet.cols}% ${100*Ir.sheet.rows}%`,backgroundPosition:`${100/(Ir.sheet.cols-1)*i.x}% ${100/(Ir.sheet.rows-1)*i.y}%`}})})}const uGt=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class q4e extends uGt{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,r){if(!this.component)return;const i=V4e(t,{[t]:r},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:i}):(this.component.props[t]=i,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const r=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),r&&r.appendChild(this)}}}class dGt extends q4e{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var K4e={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:lf.set,skin:lf.skin};class G4e extends q4e{async connectedCallback(){const t=W4e(this.props,K4e,this);t.element=this,t.ref=n=>{this.component=n},await s7(),!this.disconnected&&F4e(nn(KA,{...t}),this)}constructor(t){super(t)}}Ql(G4e,"Props",K4e);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",G4e);var Tre,GA=[],Pre=sr.__b,Ore=sr.__r,Rre=sr.diffed,Ire=sr.__c,jre=sr.unmount;function fGt(){var e;for(GA.sort(function(t,n){return t.__v.__b-n.__v.__b});e=GA.pop();)if(e.__P)try{e.__H.__h.forEach(O_),e.__H.__h.forEach(YA),e.__H.__h=[]}catch(t){e.__H.__h=[],sr.__e(t,e.__v)}}sr.__b=function(e){Pre&&Pre(e)},sr.__r=function(e){Ore&&Ore(e);var t=e.__c.__H;t&&(t.__h.forEach(O_),t.__h.forEach(YA),t.__h=[])},sr.diffed=function(e){Rre&&Rre(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(GA.push(t)!==1&&Tre===sr.requestAnimationFrame||((Tre=sr.requestAnimationFrame)||function(n){var r,i=function(){clearTimeout(a),Nre&&cancelAnimationFrame(r),setTimeout(n)},a=setTimeout(i,100);Nre&&(r=requestAnimationFrame(i))})(fGt))},sr.__c=function(e,t){t.some(function(n){try{n.__h.forEach(O_),n.__h=n.__h.filter(function(r){return!r.__||YA(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],sr.__e(r,n.__v)}}),Ire&&Ire(e,t)},sr.unmount=function(e){jre&&jre(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{O_(r)}catch(i){t=i}}),t&&sr.__e(t,n.__v))};var Nre=typeof requestAnimationFrame=="function";function O_(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function YA(e){e.__c=e.__()}function pGt(e,t){for(var n in t)e[n]=t[n];return e}function Are(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function w5(e){this.props=e}(w5.prototype=new pd).isPureReactComponent=!0,w5.prototype.shouldComponentUpdate=function(e,t){return Are(this.props,e)||Are(this.state,t)};var Dre=sr.__b;sr.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Dre&&Dre(e)};var hGt=sr.__e;sr.__e=function(e,t,n){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}hGt(e,t,n)};var Fre=sr.unmount;function jP(){this.__u=0,this.t=null,this.__b=null}function Y4e(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function uC(){this.u=null,this.o=null}sr.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Fre&&Fre(e)},(jP.prototype=new pd).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Y4e(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__e){var c=r.state.__e;r.__v.__k[0]=function f(p,h,m){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(g){return f(g,h,m)}),p.__c&&p.__c.__P===h&&(p.__e&&m.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=m)),p}(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__e:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(o,o)},jP.prototype.componentWillUnmount=function(){this.t=[]},jP.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),o.__c.__H=null),(o=pGt({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(c){return a(c,s,l)})),o}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&WA(J0,null,e.fallback);return i&&(i.__h=null),[WA(J0,null,t.__e?null:e.children),i]};var Lre=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const i=n.name||Ao.categories[n.id],a=!this.props.unfocused&&n.id==this.state.categoryId;return a&&(t=r),nn("button",{"aria-label":i,"aria-selected":a||void 0,title:i,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:n,i:r})},children:this.renderIcon(n)})}),nn("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Ir.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class _Gt extends w5{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const dC={rowsPerRender:10};class kGt extends pd{getInitialState(t=this.props){return{skin:oh.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=Ao.rtl?"rtl":"ltr",this.refs={menu:Kd(),navigation:Kd(),scroll:Kd(),search:Kd(),searchInput:Kd(),skinToneButton:Kd(),skinToneRadio:Kd()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const i in this.nextState)this.props[i]=this.nextState[i],(i==="custom"||i==="categories")&&(n=!0);delete this.nextState;const r=this.getInitialState();if(n)return this.reset(r);this.setState(r)})}componentWillUnmount(){this.unregister()}async reset(t={}){await s7(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Ir;this.refs.categories=new Map;const n=Ir.categories.map(i=>i.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const r=(i,a)=>{const o=[];o.__categoryId=a.id,o.__index=i.length,this.grid.push(o);const s=this.grid.length-1,l=s%dC.rowsPerRender?{}:Kd();return l.index=s,l.posinset=this.grid.setsize+1,i.push(l),o};for(let i of t){const a=[];let o=r(a,i);for(let s of i.emojis)o.length==this.getPerLine()&&(o=r(a,i)),this.grid.setsize+=1,o.push(s);this.refs.categories.set(i.id,{root:Kd(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:r}=t,i=()=>{const{width:o}=n.getBoundingClientRect();return Math.floor(o/r)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:i()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(n),this.observers.push(a),i()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const r=this.state.searchResults||this.grid,i=r[t]&&r[t][n];if(i)return qv.get(i)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,r=o=>{o!=t.state.categoryId&&t.setState({categoryId:o})},i={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const l of o){const c=l.target.dataset.id;n.set(c,l.intersectionRatio)}const s=[...n];for(const[l,c]of s)if(c){r(l);break}},i);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(r=>{for(const i of r){const a=parseInt(i.target.dataset.index);i.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(dC.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*dC.rowsPerRender}px`});for(const{rows:r}of this.refs.categories.values())for(const i of r)i.current&&n.observe(i.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:r,right:i,up:a,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[l,c]=this.state.pos;const u=(()=>{if(l==0&&c==0&&!t.repeat&&(r||a))return null;if(l==-1)return!t.repeat&&(i||o)&&n.selectionStart==n.value.length?[0,0]:null;if(r||i){let f=s[l];const p=r?-1:1;if(c+=p,!f[c]){if(l+=p,f=s[l],!f)return l=r?0:s.length-1,c=r?0:s[l].length-1,[l,c];c=r?f.length-1:0}return[l,c]}if(a||o){l+=a?-1:1;const f=s[l];return f?(f[c]||(c=f.length-1),[l,c]):(l=a?0:s.length-1,c=a?0:s[l].length-1,[l,c])}})();if(u)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:u,keyboard:!0},()=>{this.scrollTo({row:u[0]})})}scrollTo({categoryId:t,row:n}){const r=this.state.searchResults||this.grid;if(!r.length)return;const i=this.refs.scroll.current,a=i.getBoundingClientRect();let o=0;if(n>=0&&(t=r[n].__categoryId),t&&(o=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-i.scrollTop)+1),n>=0)if(!n)o=0;else{const s=r[n].__index,l=o+s*this.props.emojiButtonSize,c=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(li.scrollTop+a.height)o=c-a.height;else return}this.ignoreMouse(),i.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:r}){if(this.props.onEmojiSelect&&(!n&&r&&(n=this.getEmojiByPos(r)),n)){const i=sGt(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&B4e.add(i,this.props),this.props.onEmojiSelect(i,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),oh.set("skin",t)}renderNav(){return nn(CGt,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return nn("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[nn("div",{class:"flex flex-middle flex-grow",children:[nn("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:nn(KA,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),nn("div",{class:`margin-${this.dir[0]}`,children:t||n?nn("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[nn("div",{class:"preview-title ellipsis",children:t?t.name:Ao.search_no_results_1}),nn("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:Ao.search_no_results_2})]}):nn("div",{class:"preview-placeholder color-c",children:Ao.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:r,grid:i}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,l=(t.skins[o-1]||t.skins[0]).native,c=aGt(this.state.pos,n),u=n.concat(t.id).join("");return nn(_Gt,{selected:c,skin:o,size:a,children:nn("button",{"aria-label":l,"aria-selected":c||void 0,"aria-posinset":r,"aria-setsize":i.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:f=>this.handleEmojiClick({e:f,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[nn("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(r-1)%this.props.emojiButtonColors.length]:void 0}}),nn(KA,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},u)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return nn("div",{children:[nn("div",{class:"spacer"}),nn("div",{class:"flex flex-middle",children:[nn("div",{class:"search relative flex-grow",children:[nn("input",{type:"search",ref:this.refs.searchInput,placeholder:Ao.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),nn("span",{class:"icon loupe flex",children:b5.search.loupe}),this.state.searchResults&&nn("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:b5.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?nn("div",{class:"category",ref:this.refs.search,children:[nn("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Ao.categories.search}),nn("div",{children:t.length?t.map((n,r)=>nn("div",{class:"flex",children:n.map((i,a)=>this.renderEmojiButton(i,{pos:[r,a],posinset:r*this.props.perLine+a+1,grid:t}))})):nn("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&nn("a",{onClick:this.props.onAddCustomEmoji,children:Ao.add_custom})})})]}):null}renderCategories(){const{categories:t}=Ir,n=!!this.state.searchResults,r=this.getPerLine();return nn("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(i=>{const{root:a,rows:o}=this.refs.categories.get(i.id);return nn("div",{"data-id":i.target?i.target.id:i.id,class:"category",ref:a,children:[nn("div",{class:`sticky padding-small align-${this.dir[0]}`,children:i.name||Ao.categories[i.id]}),nn("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((s,l)=>{const c=s.index-s.index%dC.rowsPerRender,u=this.state.visibleRows[c],f="current"in s?s:void 0;if(!u&&!f)return null;const p=l*r,h=p+r,m=i.emojis.slice(p,h);return m.length{if(!g)return nn("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const y=qv.get(g);return this.renderEmojiButton(y,{pos:[s.index,v],posinset:s.posinset+v,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:nn("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:nn("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Ao.skins.choose,title:Ao.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:nn("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return nn("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),r=this.base.getBoundingClientRect(),i={};return this.dir=="ltr"?i.right=r.right-n.right-3:i.left=n.left-r.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?i.bottom=r.bottom-n.top+6:(i.top=n.bottom-r.top+3,i.bottom="auto"),nn("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Ao.skins.choose,class:"menu hidden","data-position":i.top?"top":"bottom",style:i,children:[...Array(6).keys()].map(a=>{const o=a+1,s=this.state.skin==o;return nn("div",{children:[nn("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Ao.skins[o],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(o))}}),nn("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[nn("span",{class:`skin-tone skin-tone-${o}`}),nn("span",{class:"margin-small-lr",children:Ao.skins[o]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return nn("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&nn("div",{class:"padding-lr",children:this.renderSearch()}),nn("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:nn("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),Ql(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Ql(this,"handleClickOutside",n=>{const{element:r}=this.props;n.target!=r&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),Ql(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),Ql(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),Ql(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Ql(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:r}=n,i=await qv.search(r),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!i)return this.setState({searchResults:i,pos:[-1,-1]},a);const o=n.selectionStart==n.value.length?[0,0]:[-1,-1],s=[];s.setsize=i.length;let l=null;for(let c of i)(!s.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=s.length,s.push(l)),l.push(c);this.ignoreMouse(),this.setState({searchResults:s,pos:o},a)}),Ql(this,"handleSearchKeyDown",n=>{const r=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:r,left:!0});break;case"ArrowRight":this.navigate({e:n,input:r,right:!0});break;case"ArrowUp":this.navigate({e:n,input:r,up:!0});break;case"ArrowDown":this.navigate({e:n,input:r,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Ql(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),Ql(this,"handleCategoryClick",({category:n,i:r})=>{this.scrollTo(r==0?{row:-1}:{categoryId:n.id})}),Ql(this,"openSkins",n=>{const{currentTarget:r}=n,i=r.getBoundingClientRect();this.setState({showSkins:i},async()=>{await oGt(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class yU extends dGt{async connectedCallback(){const t=W4e(this.props,lf,this);t.element=this,t.ref=n=>{this.component=n},await s7(t),!this.disconnected&&F4e(nn(kGt,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:E4e(X4e)})}}Ql(yU,"Props",lf);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",yU);var X4e={};X4e=`:host { +`,Lqt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","text-indent","padding-left","padding-right","border-width","box-sizing","white-space","word-break"];let dp;function Bqt(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing")||t.getPropertyValue("-moz-box-sizing")||t.getPropertyValue("-webkit-box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{sizingStyle:Lqt.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function zqt(e,t,n,r){dp||(dp=document.createElement("textarea"),dp.setAttribute("tab-index","-1"),document.body.appendChild(dp));const{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=Bqt(e);dp.setAttribute("style",`${s};${Fqt};max-width:${n}px;max-height:${r}px`),dp.value=t||" ";let l=dp.scrollWidth,c=dp.scrollHeight;return o==="border-box"?(l+=a,c+=a):o==="content-box"&&(l-=i,c-=i),{width:Math.min(l,n),height:Math.min(c,r)}}const Hqt=d.memo(function({x:t,y:n,maxWidth:r,maxHeight:i,size:a,color:o,value:s,onChange:l,onBlur:c}){const u=d.useRef(null),f=d.useRef(null),[p,h]=d.useState(0),[m,g]=d.useState(0),v=()=>(u.current||(u.current=document.createElement("div")),u.current);return d.useLayoutEffect(()=>(u.current&&(document.body.appendChild(u.current),requestAnimationFrame(()=>{var y;(y=f.current)==null||y.focus()})),()=>{var y;(y=u.current)==null||y.remove()}),[]),d.useLayoutEffect(()=>{if(!f.current)return;const{width:y,height:w}=zqt(f.current,s,r,i);h(y),g(w)},[s,r,i]),Va.createPortal(x.jsx("textarea",{ref:f,className:"screenshots-textarea",style:{color:o,width:p,height:m,maxWidth:r,maxHeight:i,fontSize:a,lineHeight:`${a}px`,transform:`translate(${t}px, ${n}px)`},value:s,onChange:y=>l&&l(y.target.value),onBlur:y=>c&&c(y)}),v())});function fx(e){const t=ab();d.useEffect(()=>(t.on("drawselect",e),()=>{t.off("drawselect",e)}),[e,t])}const PP={3:18,6:32,9:46};function Uqt(e,t){const{size:n,color:r,fontFamily:i,x:a,y:o,text:s}=t.data;e.fillStyle=r,e.textAlign="left",e.textBaseline="top",e.font=`${n}px ${i}`;const l=t.editHistory.reduce((c,{data:u})=>({x:c.x+u.x2-u.x1,y:c.y+u.y2-u.y1}),{x:0,y:0});s.split(` +`).forEach((c,u)=>{e.fillText(c,a+l.x,o+l.y+u*n)})}function Wqt(e,t,n){e.textAlign="left",e.textBaseline="top",e.font=`${t.data.size}px ${t.data.fontFamily}`;let r=0,i=0;t.data.text.split(` +`).forEach(f=>{const p=e.measureText(f);r({x:f.x+p.x2-p.x1,y:f.y+p.y2-p.y1}),{x:0,y:0}),s=t.data.x+a,l=t.data.y+o,c=s+r,u=l+i;return n.x>=s&&n.x<=c&&n.y>=l&&n.y<=u}function Vqt(){const e=Nd(),[t,n]=Rc(),[r]=ib(),[i,a]=Oh(),[,o]=Ph(),s=Rh(),[l,c]=d.useState(3),[u,f]=d.useState("#ee5126"),p=d.useRef(null),h=d.useRef(null),[m,g]=d.useState(null),[v,y]=d.useState(""),w=i==="Text",b=d.useCallback(()=>{a.set("Text"),o.set("default")},[a,o]),C=d.useCallback(()=>{w||(b(),n.clearSelect())},[w,b,n]),k=d.useCallback(O=>{p.current&&(p.current.data.size=PP[O]),c(O)},[]),S=d.useCallback(O=>{p.current&&(p.current.data.color=O),f(O)},[]),_=d.useCallback(O=>{y(O),w&&p.current&&(p.current.data.text=O)},[w]),E=d.useCallback(()=>{p.current&&p.current.data.text&&n.push(p.current),p.current=null,y(""),g(null)},[n]),$=d.useCallback((O,j)=>{O.name==="Text"&&(b(),h.current={type:Gi.Edit,data:{x1:j.clientX,y1:j.clientY,x2:j.clientX,y2:j.clientY},source:O},n.select(O))},[b,n]),M=d.useCallback(O=>{if(!w||!s.current||p.current||!r)return;const{left:j,top:I}=s.current.canvas.getBoundingClientRect(),A=window.getComputedStyle(s.current.canvas).fontFamily,N=O.clientX-j,F=O.clientY-I;p.current={name:"Text",type:Gi.Source,data:{size:PP[l],color:u,fontFamily:A,x:N,y:F,text:""},editHistory:[],draw:Uqt,isHit:Wqt},g({x:O.clientX,y:O.clientY,maxWidth:r.width-N,maxHeight:r.height-F})},[w,l,u,r,s]),P=d.useCallback(O=>{w&&h.current&&(h.current.data.x2=O.clientX,h.current.data.y2=O.clientY,t.top!==h.current?(h.current.source.editHistory.push(h.current),n.push(h.current)):n.set(t))},[w,t,n]),R=d.useCallback(()=>{w&&(h.current=null)},[w]);return fx($),ob(M),sb(P),lb(R),x.jsxs(x.Fragment,{children:[x.jsx(Ou,{title:e.operation_text_title,icon:"icon-text",checked:w,onClick:C,option:x.jsx(dx,{size:l,color:u,onSizeChange:k,onColorChange:S})}),w&&m&&x.jsx(Hqt,{x:m.x,y:m.y,maxWidth:m.maxWidth,maxHeight:m.maxHeight,size:PP[l],color:u,value:v,onChange:_,onBlur:E})]})}const b4e=4;function eo(e,t,n){e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",e.beginPath(),e.arc(t,n,b4e,0,2*Math.PI),e.fill(),e.stroke()}function a7(e,t,n){t.draw(e,t);const{data:r}=e.getImageData(n.x,n.y,1,1);return r.some(i=>i!==0)}function to(e,t,n){if(!e)return!1;const{left:r,top:i}=e.getBoundingClientRect(),a=t.clientX-r,o=t.clientY-i;return(n.x-a)**2+(n.y-o)**2({x:o.x+s.x2-s.x1,y:o.y+s.y2-s.y1}),{x:0,y:0});e.beginPath(),i.forEach((o,s)=>{s===0?e.moveTo(o.x+a.x,o.y+a.y):e.lineTo(o.x+a.x,o.y+a.y)}),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.beginPath(),i.forEach((o,s)=>{s===0?e.moveTo(o.x+a.x,o.y+a.y):e.lineTo(o.x+a.x,o.y+a.y)}),e.stroke())}function Kqt(){const e=Nd(),[,t]=Ph(),[n,r]=Oh(),i=Rh(),[a,o]=Rc(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=n==="Brush",m=d.useCallback(()=>{r.set("Brush"),t.set("default")},[r,t]),g=d.useCallback(()=>{h||(m(),o.clearSelect())},[h,m,o]),v=d.useCallback((C,k)=>{C.name==="Brush"&&(m(),p.current={type:Gi.Edit,data:{x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:C},o.select(C))},[m,o]),y=d.useCallback(C=>{if(!h||f.current||!i.current)return;const{left:k,top:S}=i.current.canvas.getBoundingClientRect();f.current={name:"Brush",type:Gi.Source,data:{size:s,color:c,points:[{x:C.clientX-k,y:C.clientY-S}]},editHistory:[],draw:qqt,isHit:a7}},[h,i,s,c]),w=d.useCallback(C=>{if(!(!h||!i.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,a.top!==p.current?(p.current.source.editHistory.push(p.current),o.push(p.current)):o.set(a);else if(f.current){const{left:k,top:S}=i.current.canvas.getBoundingClientRect();f.current.data.points.push({x:C.clientX-k,y:C.clientY-S}),a.top!==f.current?o.push(f.current):o.set(a)}}},[h,a,i,o]),b=d.useCallback(()=>{h&&(f.current&&o.clearSelect(),f.current=null,p.current=null)},[h,o]);return fx(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_brush_title,icon:"icon-brush",checked:h,onClick:g,option:x.jsx(dx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function w4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===M_.Move?(t+=o,n+=s,r+=o,i+=s):a.type===M_.MoveStart?(t+=o,n+=s):a.type===M_.MoveEnd&&(r+=o,i+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Gqt(e,t){const{size:n,color:r,x1:i,x2:a,y1:o,y2:s}=w4e(t);e.lineCap="round",e.lineJoin="bevel",e.lineWidth=n,e.strokeStyle=r;const l=a-i,c=s-o,u=n*3,f=Math.atan2(c,l);e.beginPath(),e.moveTo(i,o),e.lineTo(a,s),e.lineTo(a-u*Math.cos(f-Math.PI/6),s-u*Math.sin(f-Math.PI/6)),e.moveTo(a,s),e.lineTo(a-u*Math.cos(f+Math.PI/6),s-u*Math.sin(f+Math.PI/6)),e.stroke(),t.isSelected&&(eo(e,i,o),eo(e,a,s))}var M_=(e=>(e[e.Move=0]="Move",e[e.MoveStart=1]="MoveStart",e[e.MoveEnd=2]="MoveEnd",e))(M_||{});function Yqt(){const e=Nd(),[,t]=Ph(),[n,r]=Oh(),[i,a]=Rc(),o=Rh(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=n==="Arrow",m=d.useCallback(()=>{r.set("Arrow"),t.set("default")},[r,t]),g=d.useCallback(()=>{h||(m(),a.clearSelect())},[h,m,a]),v=d.useCallback((C,k)=>{if(C.name!=="Arrow"||!o.current)return;const S=C;m();const{x1:_,y1:E,x2:$,y2:M}=w4e(S);let P=0;to(o.current.canvas,k,{x:_,y:E})?P=1:to(o.current.canvas,k,{x:$,y:M})&&(P=2),p.current={type:Gi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:S},a.select(C)},[o,m,a]),y=d.useCallback(C=>{if(!h||f.current||!o.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current={name:"Arrow",type:Gi.Source,data:{size:s,color:c,x1:C.clientX-k,y1:C.clientY-S,x2:C.clientX-k,y2:C.clientY-S},editHistory:[],draw:Gqt,isHit:a7}},[h,c,s,o]),w=d.useCallback(C=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,i.top!==p.current?(p.current.source.editHistory.push(p.current),a.push(p.current)):a.set(i);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current.data.x2=C.clientX-k,f.current.data.y2=C.clientY-S,i.top!==f.current?a.push(f.current):a.set(i)}}},[h,i,o,a]),b=d.useCallback(()=>{h&&(f.current&&a.clearSelect(),f.current=null,p.current=null)},[h,a]);return fx(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_arrow_title,icon:"icon-arrow",checked:h,onClick:g,option:x.jsx(dx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function x4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===zu.Move?(t+=o,n+=s,r+=o,i+=s):a.type===zu.ResizeTop?n+=s:a.type===zu.ResizeRightTop?(r+=o,n+=s):a.type===zu.ResizeRight?r+=o:a.type===zu.ResizeRightBottom?(r+=o,i+=s):a.type===zu.ResizeBottom?i+=s:a.type===zu.ResizeLeftBottom?(t+=o,i+=s):a.type===zu.ResizeLeft?t+=o:a.type===zu.ResizeLeftTop&&(t+=o,n+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Xqt(e,t){const{size:n,color:r,x1:i,y1:a,x2:o,y2:s}=x4e(t);e.lineCap="butt",e.lineJoin="miter",e.lineWidth=n,e.strokeStyle=r;const l=(i+o)/2,c=(a+s)/2,u=Math.abs(o-i)/2,f=Math.abs(s-a)/2,p=.5522848,h=u*p,m=f*p;e.beginPath(),e.moveTo(l-u,c),e.bezierCurveTo(l-u,c-m,l-h,c-f,l,c-f),e.bezierCurveTo(l+h,c-f,l+u,c-m,l+u,c),e.bezierCurveTo(l+u,c+m,l+h,c+f,l,c+f),e.bezierCurveTo(l-h,c+f,l-u,c+m,l-u,c),e.closePath(),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",e.beginPath(),e.moveTo(i,a),e.lineTo(o,a),e.lineTo(o,s),e.lineTo(i,s),e.closePath(),e.stroke(),eo(e,(i+o)/2,a),eo(e,o,a),eo(e,o,(a+s)/2),eo(e,o,s),eo(e,(i+o)/2,s),eo(e,i,s),eo(e,i,(a+s)/2),eo(e,i,a))}var zu=(e=>(e[e.Move=0]="Move",e[e.ResizeTop=1]="ResizeTop",e[e.ResizeRightTop=2]="ResizeRightTop",e[e.ResizeRight=3]="ResizeRight",e[e.ResizeRightBottom=4]="ResizeRightBottom",e[e.ResizeBottom=5]="ResizeBottom",e[e.ResizeLeftBottom=6]="ResizeLeftBottom",e[e.ResizeLeft=7]="ResizeLeft",e[e.ResizeLeftTop=8]="ResizeLeftTop",e))(zu||{});function Zqt(){const e=Nd(),[t,n]=Rc(),[r,i]=Oh(),[,a]=Ph(),o=Rh(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=r==="Ellipse",m=d.useCallback(()=>{i.set("Ellipse"),a.set("crosshair")},[i,a]),g=d.useCallback(()=>{h||(m(),n.clearSelect())},[h,m,n]),v=d.useCallback((C,k)=>{if(C.name!=="Ellipse"||!o.current)return;const S=C;m();const{x1:_,y1:E,x2:$,y2:M}=x4e(S);let P=0;to(o.current.canvas,k,{x:(_+$)/2,y:E})?P=1:to(o.current.canvas,k,{x:$,y:E})?P=2:to(o.current.canvas,k,{x:$,y:(E+M)/2})?P=3:to(o.current.canvas,k,{x:$,y:M})?P=4:to(o.current.canvas,k,{x:(_+$)/2,y:M})?P=5:to(o.current.canvas,k,{x:_,y:M})?P=6:to(o.current.canvas,k,{x:_,y:(E+M)/2})?P=7:to(o.current.canvas,k,{x:_,y:E})&&(P=8),p.current={type:Gi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:S},n.select(C)},[o,m,n]),y=d.useCallback(C=>{if(!h||!o.current||f.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),_=C.clientX-k,E=C.clientY-S;f.current={name:"Ellipse",type:Gi.Source,data:{size:s,color:c,x1:_,y1:E,x2:_,y2:E},editHistory:[],draw:Xqt,isHit:a7}},[h,s,c,o]),w=d.useCallback(C=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,t.top!==p.current?(p.current.source.editHistory.push(p.current),n.push(p.current)):n.set(t);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect();f.current.data.x2=C.clientX-k,f.current.data.y2=C.clientY-S,t.top!==f.current?n.push(f.current):n.set(t)}}},[h,o,t,n]),b=d.useCallback(()=>{h&&(f.current&&n.clearSelect(),f.current=null,p.current=null)},[h,n]);return fx(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_ellipse_title,icon:"icon-ellipse",checked:h,onClick:g,option:x.jsx(dx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}function S4e(e){let{x1:t,y1:n,x2:r,y2:i}=e.data;return e.editHistory.forEach(({data:a})=>{const o=a.x2-a.x1,s=a.y2-a.y1;a.type===Hu.Move?(t+=o,n+=s,r+=o,i+=s):a.type===Hu.ResizeTop?n+=s:a.type===Hu.ResizeRightTop?(r+=o,n+=s):a.type===Hu.ResizeRight?r+=o:a.type===Hu.ResizeRightBottom?(r+=o,i+=s):a.type===Hu.ResizeBottom?i+=s:a.type===Hu.ResizeLeftBottom?(t+=o,i+=s):a.type===Hu.ResizeLeft?t+=o:a.type===Hu.ResizeLeftTop&&(t+=o,n+=s)}),{...e.data,x1:t,x2:r,y1:n,y2:i}}function Qqt(e,t){const{size:n,color:r,x1:i,y1:a,x2:o,y2:s}=S4e(t);e.lineCap="butt",e.lineJoin="miter",e.lineWidth=n,e.strokeStyle=r,e.beginPath(),e.moveTo(i,a),e.lineTo(o,a),e.lineTo(o,s),e.lineTo(i,s),e.closePath(),e.stroke(),t.isSelected&&(e.lineWidth=1,e.strokeStyle="#000000",e.fillStyle="#ffffff",eo(e,(i+o)/2,a),eo(e,o,a),eo(e,o,(a+s)/2),eo(e,o,s),eo(e,(i+o)/2,s),eo(e,i,s),eo(e,i,(a+s)/2),eo(e,i,a))}var Hu=(e=>(e[e.Move=0]="Move",e[e.ResizeTop=1]="ResizeTop",e[e.ResizeRightTop=2]="ResizeRightTop",e[e.ResizeRight=3]="ResizeRight",e[e.ResizeRightBottom=4]="ResizeRightBottom",e[e.ResizeBottom=5]="ResizeBottom",e[e.ResizeLeftBottom=6]="ResizeLeftBottom",e[e.ResizeLeft=7]="ResizeLeft",e[e.ResizeLeftTop=8]="ResizeLeftTop",e))(Hu||{});function Jqt(){const e=Nd(),[t,n]=Rc(),[r,i]=Oh(),[,a]=Ph(),o=Rh(),[s,l]=d.useState(3),[c,u]=d.useState("#ee5126"),f=d.useRef(null),p=d.useRef(null),h=r==="Rectangle",m=d.useCallback(()=>{i.set("Rectangle"),a.set("crosshair")},[i,a]),g=d.useCallback(()=>{h||(m(),n.clearSelect())},[h,m,n]),v=d.useCallback((C,k)=>{if(C.name!=="Rectangle"||!o.current)return;const S=C;m();const{x1:_,y1:E,x2:$,y2:M}=S4e(S);let P=0;to(o.current.canvas,k,{x:(_+$)/2,y:E})?P=1:to(o.current.canvas,k,{x:$,y:E})?P=2:to(o.current.canvas,k,{x:$,y:(E+M)/2})?P=3:to(o.current.canvas,k,{x:$,y:M})?P=4:to(o.current.canvas,k,{x:(_+$)/2,y:M})?P=5:to(o.current.canvas,k,{x:_,y:M})?P=6:to(o.current.canvas,k,{x:_,y:(E+M)/2})?P=7:to(o.current.canvas,k,{x:_,y:E})&&(P=8),p.current={type:Gi.Edit,data:{type:P,x1:k.clientX,y1:k.clientY,x2:k.clientX,y2:k.clientY},source:C},n.select(C)},[o,m,n]),y=d.useCallback(C=>{if(!h||!o.current||f.current)return;const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),_=C.clientX-k,E=C.clientY-S;f.current={name:"Rectangle",type:Gi.Source,data:{size:s,color:c,x1:_,y1:E,x2:_,y2:E},editHistory:[],draw:Qqt,isHit:a7}},[h,s,c,o]),w=d.useCallback(C=>{if(!(!h||!o.current)){if(p.current)p.current.data.x2=C.clientX,p.current.data.y2=C.clientY,t.top!==p.current?(p.current.source.editHistory.push(p.current),n.push(p.current)):n.set(t);else if(f.current){const{left:k,top:S}=o.current.canvas.getBoundingClientRect(),_=f.current.data;_.x2=C.clientX-k,_.y2=C.clientY-S,t.top!==f.current?n.push(f.current):n.set(t)}}},[h,o,t,n]),b=d.useCallback(()=>{h&&(f.current&&n.clearSelect(),f.current=null,p.current=null)},[h,n]);return fx(v),ob(y),sb(w),lb(b),x.jsx(Ou,{title:e.operation_rectangle_title,icon:"icon-rectangle",checked:h,onClick:g,option:x.jsx(dx,{size:s,color:c,onSizeChange:l,onColorChange:u})})}const eKt=[Jqt,Zqt,Yqt,Kqt,Vqt,Aqt,"|",jqt,Iqt,"|",Rqt,Oqt,Pqt],C4e=te.createContext(null),tKt=d.memo(function(){const{width:t,height:n}=Zs(),[r]=ib(),[i,a]=d.useState(null),[o,s]=d.useState(null),l=d.useRef(null),c=d.useCallback(f=>{f.stopPropagation()},[]),u=d.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return d.useEffect(()=>{if(!r||!l.current)return;const f=l.current.getBoundingClientRect();let p=r.x+r.width-f.width,h=r.y+r.height+10;p<0&&(p=0),p>t-f.width&&(p=t-f.width),h>n-f.height&&(h=n-f.height-10),(!o||Math.abs(o.x-p)>1||Math.abs(o.y-h)>1)&&s({x:p,y:h}),(!i||Math.abs(i.x-f.x)>1||Math.abs(i.y-f.y)>1||Math.abs(i.width-f.width)>1||Math.abs(i.height-f.height)>1)&&a({x:f.x,y:f.y,width:f.width,height:f.height})}),r?x.jsx(C4e.Provider,{value:i,children:x.jsx("div",{ref:l,className:"screenshots-operations",style:{visibility:o?"visible":"hidden",transform:`translate(${(o==null?void 0:o.x)??0}px, ${(o==null?void 0:o.y)??0}px)`},onDoubleClick:c,onContextMenu:u,children:x.jsx("div",{className:"screenshots-operations-buttons",children:eKt.map((f,p)=>f==="|"?x.jsx("div",{className:"screenshots-operations-divider"},p):x.jsx(f,{},p))})})}):null});function nKt(e){const[t,n]=d.useState(null);return d.useEffect(()=>{if(n(null),e==null)return;const r=document.createElement("img"),i=()=>n(r),a=()=>n(null);return r.addEventListener("load",i),r.addEventListener("error",a),r.src=e,()=>{r.removeEventListener("load",i),r.removeEventListener("error",a)}},[e]),t}function rKt({url:e,width:t,height:n,lang:r,className:i,...a}){const o=nKt(e),s=d.useRef(null),l=d.useRef({}),[c,u]=d.useState({index:-1,stack:[]}),[f,p]=d.useState(null),[h,m]=d.useState("move"),[g,v]=d.useState(void 0),y={url:e,width:t,height:n,image:o,lang:{...v4e,...r},emiterRef:l,canvasContextRef:s,history:c,bounds:f,cursor:h,operation:g},w=d.useCallback((E,...$)=>{const M=a[E];typeof M=="function"&&M(...$)},[a]),b={call:w,setHistory:u,setBounds:p,setCursor:m,setOperation:v},C=["screenshots"];i&&C.push(i);const k=()=>{l.current={},u({index:-1,stack:[]}),p(null),m("move"),v(void 0)},S=d.useCallback(async E=>{if(!(E.button!==0||!o))if(f&&s.current)p5({image:o,width:t,height:n,history:c,bounds:f}).then($=>{w("onOk",$,f),k()});else{const $={x:0,y:0,width:t,height:n};p5({image:o,width:t,height:n,history:c,bounds:$}).then(M=>{w("onOk",M,$),k()})}},[o,c,f,t,n,w]),_=d.useCallback(E=>{E.button===2&&(E.preventDefault(),w("onCancel"),k())},[w]);return d.useLayoutEffect(()=>{k()},[e]),x.jsx(hU.Provider,{value:{store:y,dispatcher:b},children:x.jsxs("div",{className:C.join(" "),style:{width:t,height:n},onDoubleClick:S,onContextMenu:_,children:[x.jsx(Sqt,{}),x.jsx(Mqt,{ref:s}),x.jsx(tKt,{})]})})}const iKt=({open:e,screenShotImg:t,onOk:n,onCancel:r})=>{const i=d.useCallback((u,f)=>{if(console.log("onScreenSave",u,f),u){const p=URL.createObjectURL(u);console.log(p),F0(p)}},[]),a=d.useCallback(()=>{console.log("onScreenCancel")},[]),o=d.useCallback((u,f)=>{console.log("onScreenOk",u,f),u&&c(u)},[]),s=()=>{if(t.startsWith("data:image/png;base64,")){const u=t.split(",")[1],f=atob(u),p=[];for(let m=0;m{r()},c=async u=>{const f=en(new Date).format("YYYYMMDDHHmmss")+"_screenshot.png",p=new FormData;p.append("file",u,f),p.append("file_name",f),p.append("file_type","image/png"),p.append("is_avatar","false"),p.append("kb_type",kF),p.append("category_uid",""),p.append("kb_uid",""),p.append("client",_n),console.log("handleUpload formData",p),fetch(fy(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},body:p}).then(h=>(console.log("upload response:",h),h.json())).then(h=>{console.log("upload data:",h),$n.emit(OC,h.data.fileUrl),n()})};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"截屏录屏",open:e,okText:"发送",onOk:s,onCancel:l,children:x.jsx(rKt,{url:t,width:470,height:400,onSave:i,onCancel:a,onOk:o})})})},aKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabThread"})}),oKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabContact"})}),sKt=()=>x.jsx("div",{children:x.jsx("h1",{children:"TabGroup"})}),lKt=e=>{console.log(e)},cKt=[{key:"1",label:"会话",children:x.jsx(aKt,{})},{key:"2",label:"联系人",children:x.jsx(oKt,{})},{key:"3",label:"群聊",children:x.jsx(sKt,{})}],uKt=({open:e,onOk:t,onCancel:n})=>{const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"转发消息",open:e,onOk:r,onCancel:i,children:x.jsx(Yg,{defaultActiveKey:"1",items:cKt,onChange:lKt})})})},dKt=({open:e,onOk:t,onCancel:n})=>{Kn.useForm();const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"TODO:历史消息",open:e,onOk:r,onCancel:i})})},fKt=({open:e,onOk:t,onCancel:n})=>{const[r]=Kn.useForm(),i=()=>{t()},a=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"转发消息",open:e,onOk:i,onCancel:a,children:x.jsx(Kn,{form:r,submitter:{render:!1}})})})},{TextArea:pKt}=Ur,hKt=({open:e,onOk:t,onCancel:n})=>{const r=jn(),{isDarkMode:i}=Ag(),a=Vr(I=>I.currentOrg),{translateStringTranct:o,translateString:s}=Zr(),[l,c]=d.useState({uid:""}),[u,f]=d.useState(),[p,h]=d.useState(""),{userInfo:m}=t1(),{agentInfo:g}=Eo(),v=fr(I=>I.currentThread),[y,w]=d.useState(120),[b,C]=d.useState(0),[k,S]=d.useState(10),_=d.useMemo(()=>{const I=u==null?void 0:u.data.content;if(I){const A=I.filter(N=>(N==null?void 0:N.userUid)!==(m==null?void 0:m.uid));return A.length>0&&c(A[0]),A}else return[]},[u]),E=async()=>{je.loading(r.formatMessage({id:"querying",defaultMessage:"查询中..."}));const I={pageNumber:b,pageSize:k,orgUid:a==null?void 0:a.uid},A=await kle(I);console.log("queryAgentsByOrg:",A.data),A.data.code===200?(je.destroy(),f(A.data),A.data.data.content.length===0&&A.data.data.totalPages>0&&C(0)):(je.destroy(),je.error(A.data.message))};d.useEffect(()=>{e&&E()},[e,b,k]);const $=(I,A)=>{console.log("list on click",I,A),c(I)},M=()=>{E()},P=async()=>{if((l==null?void 0:l.uid)!==""){const I=Ba(),A={note:p,sender:{uid:g==null?void 0:g.uid,nickname:g==null?void 0:g.nickname,avatar:g==null?void 0:g.avatar,type:uh},receiver:{uid:l==null?void 0:l.uid,nickname:l==null?void 0:l.nickname,avatar:l==null?void 0:l.avatar,type:uh},thread:{uid:v==null?void 0:v.uid,topic:v==null?void 0:v.topic,type:v==null?void 0:v.type,state:v==null?void 0:v.state,user:v==null?void 0:v.user},status:Z6e,messageUid:I,expireTime:y,orgUid:a==null?void 0:a.uid},N=await pqt(A);if(console.log("transferThread:",N.data),N.data.code===200){je.success("发起转接成功");const F=JSON.stringify(A);Oct(I,F,v),t()}else je.error(s(N.data.message))}else je.warning("请选择转接客服")},R=()=>{n()},O=I=>x.jsx(x.Fragment,{children:x.jsxs("span",{style:{color:"#999999",fontSize:12},children:[I.status===y0&&"[✅接待]",I.status===vk&&"[忙碌]",I.status===Dm&&"[下线]",I.connected?"✅连接":"❌断开"]})}),j=(I,A)=>{C(I-1),A&&A!==k&&S(A)};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:r.formatMessage({id:"transfer",defaultMessage:"Transfer"}),open:e,onOk:P,onCancel:R,width:400,footer:[x.jsx(Yt,{onClick:R,children:r.formatMessage({id:"cancel",defaultMessage:"Cancel"})},"cancel"),x.jsx(Yt,{onClick:M,children:r.formatMessage({id:"refresh",defaultMessage:"Refresh"})},"refresh"),x.jsx(Yt,{type:"primary",onClick:P,disabled:(l==null?void 0:l.uid)==="",children:r.formatMessage({id:"transfer",defaultMessage:"Transfer"})},"submit")],children:[x.jsx(Yn,{itemLayout:"horizontal",dataSource:_,locale:{emptyText:r.formatMessage({id:"noAgent",defaultMessage:"No Agent available"})},renderItem:(I,A)=>x.jsx(Yn.Item,{style:l.uid===I.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>$(I,A),children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:I.avatar}),title:o(I.nickname),description:O(I)})})}),u&&u.data&&u.data.totalElements>k&&x.jsx("div",{style:{marginTop:16,textAlign:"right"},children:x.jsx(I4,{current:b+1,pageSize:k,total:u.data.totalElements,onChange:j,size:"small",showSizeChanger:!0,showQuickJumper:!1,showTotal:I=>r.formatMessage({id:"pagination.total",defaultMessage:"共 {total} 条"},{total:I})})}),x.jsx(pKt,{rows:2,style:{marginTop:5,marginBottom:5},placeholder:r.formatMessage({id:"transfer.reason",defaultMessage:"Transfer Reason"}),value:p,onChange:I=>{h(I.target.value)}}),!1]})})},{TextArea:mKt}=Ur,gKt=({open:e,onOk:t,onCancel:n})=>{const r=jn(),{isDarkMode:i}=Ag(),a=Vr(I=>I.currentOrg),{translateStringTranct:o,translateString:s}=Zr(),[l,c]=d.useState({uid:""}),[u,f]=d.useState(),[p,h]=d.useState(""),{userInfo:m}=t1(),{agentInfo:g}=Eo(),v=fr(I=>I.currentThread),[y,w]=d.useState(120),[b,C]=d.useState(0),[k,S]=d.useState(10),_=d.useMemo(()=>{const I=u==null?void 0:u.data.content;if(I){const A=I.filter(N=>(N==null?void 0:N.userUid)!==(m==null?void 0:m.uid));return A.length>0&&c(A[0]),A}else return[]},[u]),E=async()=>{je.loading(r.formatMessage({id:"querying",defaultMessage:"查询中..."}));const I={pageNumber:b,pageSize:k,orgUid:a==null?void 0:a.uid},A=await kle(I);console.log("queryAgentsByOrg:",A.data),A.data.code===200?(je.destroy(),f(A.data),A.data.data.content.length===0&&A.data.data.totalPages>0&&C(0)):(je.destroy(),je.error(A.data.message))};d.useEffect(()=>{e&&E()},[e,b,k]);const $=(I,A)=>{console.log("list on click",I,A),c(I)},M=()=>{E()},P=async()=>{if(console.log("invite note:",p,l),(l==null?void 0:l.uid)!==""){const I=Ba(),A={note:p,sender:{uid:g==null?void 0:g.uid,nickname:g==null?void 0:g.nickname,avatar:g==null?void 0:g.avatar,type:uh},receiver:{uid:l==null?void 0:l.uid,nickname:l==null?void 0:l.nickname,avatar:l==null?void 0:l.avatar,type:uh},thread:{uid:v==null?void 0:v.uid,topic:v==null?void 0:v.topic,type:v==null?void 0:v.type,state:v==null?void 0:v.state,user:v==null?void 0:v.user},status:Q6e,messageUid:I,expireTime:y,orgUid:a==null?void 0:a.uid},N=await dqt(A);if(console.log("inviteThread:",N.data),N.data.code===200){je.success("发起转接成功");const F=JSON.stringify(A);Rct(I,F,v),t()}else je.error(s(N.data.message))}else je.warning("请选择转接客服")},R=()=>{n()},O=I=>x.jsx(x.Fragment,{children:x.jsxs("span",{style:{color:"#999999",fontSize:12},children:[I.status===y0&&"[✅接待]",I.status===vk&&"[忙碌]",I.status===Dm&&"[下线]",I.connected?"✅连接":"❌断开"]})}),j=(I,A)=>{C(I-1),A&&A!==k&&S(A)};return x.jsx(x.Fragment,{children:x.jsxs(yr,{title:r.formatMessage({id:"invite",defaultMessage:"Invite"}),open:e,onOk:P,onCancel:R,width:400,footer:[x.jsx(Yt,{onClick:R,children:r.formatMessage({id:"cancel",defaultMessage:"Cancel"})},"cancel"),x.jsx(Yt,{onClick:M,children:r.formatMessage({id:"refresh",defaultMessage:"Refresh"})},"refresh"),x.jsx(Yt,{type:"primary",onClick:P,disabled:(l==null?void 0:l.uid)==="",children:r.formatMessage({id:"invite",defaultMessage:"Invite"})},"submit")],children:[x.jsx(Yn,{itemLayout:"horizontal",dataSource:_,locale:{emptyText:r.formatMessage({id:"noAgent",defaultMessage:"No Agent available"})},renderItem:(I,A)=>x.jsx(Yn.Item,{style:l.uid===I.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>$(I,A),children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:I.avatar}),title:o(I.nickname),description:O(I)})})}),u&&u.data&&u.data.totalElements>k&&x.jsx("div",{style:{marginTop:16,textAlign:"right"},children:x.jsx(I4,{current:b+1,pageSize:k,total:u.data.totalElements,onChange:j,size:"small",showSizeChanger:!0,showQuickJumper:!1,showTotal:I=>r.formatMessage({id:"pagination.total",defaultMessage:"共 {total} 条"},{total:I})})}),x.jsx(mKt,{rows:2,style:{marginTop:5,marginBottom:5},placeholder:r.formatMessage({id:"invite.reason",defaultMessage:"Invite Reason"}),value:p,onChange:I=>{h(I.target.value)}}),!1]})})},vKt=({open:e,onOk:t,onCancel:n})=>{Kn.useForm();const r=()=>{t()},i=()=>{n()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:"TODO:录音/音视频通话",open:e,onOk:r,onCancel:i})})},{Dragger:yKt}=e1,bKt=({type:e,acceptType:t,maxCount:n=5,isModalOpen:r,attachments:i,handleSubmit:a,handleCancel:o})=>{const s=jn(),[l,c]=d.useState([]),[u,f]=d.useState([]),[p,h]=d.useState({file:null,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:e,category_uid:"",kb_uid:"",client:_n});console.log("acceptType",t);const m=d.useMemo(()=>({name:"file",multiple:!0,action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:p,showUploadList:!1,beforeUpload(y){if(l.length>=n)return je.error(s.formatMessage({id:"upload.maxCount"},{maxCount:n})),!1;c(b=>[...b,y]);const w=en(new Date).format("YYYYMMDDHHmmss")+"_"+y.name;return h(b=>({...b,file:y,file_name:w,file_type:y.type,category_uid:""})),!0},onChange(y){y.file.status==="uploading"&&je.loading(s.formatMessage({id:"upload.uploading"},{filename:y.file.name})),y.file.status==="done"?y.file.response.code===200?(je.destroy(),je.success(s.formatMessage({id:"upload.success"},{filename:y.file.name})),f(w=>[...w,y.file.response.data])):(je.destroy(),je.error(s.formatMessage({id:"upload.failed"},{filename:y.file.name}))):y.file.status==="error"&&je.error(s.formatMessage({id:"upload.failed"},{filename:y.file.name}))},onDrop(y){console.log("Dropped files",y.dataTransfer.files)}}),[p,s]);d.useEffect(()=>{h(y=>({...y,kb_type:e,category_uid:""})),i&&f(i.map(y=>y.upload))},[e]);const g=()=>{a(l,u)},v=y=>{console.log("handleDelete",y);const w=u.find(C=>C.uid===y);if(!w)return;const b=w.fileName.split("_").slice(1).join("_");c(C=>C.filter(k=>k.name!==b)),f(C=>C.filter(k=>k.uid!==y))};return x.jsxs(yr,{title:s.formatMessage({id:"upload.modal.title"}),open:r,onOk:g,onCancel:o,children:[x.jsxs(yKt,{...m,children:[x.jsx("p",{className:"ant-upload-drag-icon",children:x.jsx(vve,{})}),x.jsx("p",{className:"ant-upload-text",children:s.formatMessage({id:"upload.drag.text"})}),x.jsx("p",{className:"ant-upload-hint",children:s.formatMessage({id:"upload.drag.hint"})})]}),x.jsx("div",{style:{marginTop:"16px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:u.map(y=>x.jsx(dU,{file:y,onDelete:v},y.uid))})})]})};async function wKt(e){return gn("/api/v1/ticket/process/query/org",{method:"GET",params:{...e}})}async function xKt(e){return gn("/api/v1/department/query/org",{method:"GET",params:{...e,client:_n}})}const SKt=so()(Jo(es(ts((e,t)=>({departmentResult:{data:{content:[]}},currentDepartment:{uid:fv,nickname:fv},insertDepartment(n){e(r=>{const i=r.departmentResult.data.content;if(n.parentUid){const a=i.find(o=>o.uid===n.parentUid);a&&(a.children||(a.children=[]),a.children.push(n))}else i.push(n)})},upgradeDepartment(n){e(r=>{const i=r.departmentResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:i.forEach(o=>{if(o.children){const s=o.children.findIndex(l=>l.uid===n.uid);s!==-1&&(o.children[s]=n)}})})},setDepartmentResult:n=>{var a,o;e({departmentResult:{...n,data:{content:[{uid:fv,name:fv},...n.data.content]}}}),t().currentDepartment.uid===""&&((o=(a=n.data)==null?void 0:a.content)==null?void 0:o.length)>0&&e({currentDepartment:n.data.content[0]})},setCurrentDepartment(n){const r=t().departmentResult.data.content,i=r.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...r.slice(0,i),n,...r.slice(i+1)],o={...t().departmentResult,data:{content:a}};e({departmentResult:o,currentDepartment:n})}else console.warn("Department with the specified uid not found."),e({currentDepartment:n})},removeDepartment(n){e(r=>{const i=r.departmentResult.data.content,a=(o,s)=>o.filter(l=>l.uid===s?!1:(l.children&&(l.children=a(l.children,s)),!0));r.departmentResult.data.content=a(i,n)}),t().currentDepartment.uid===n&&e({currentDepartment:{uid:""}})},setCurrentDepUid(n){var a,o,s,l,c;const r=(s=(o=(a=t().departmentResult)==null?void 0:a.data)==null?void 0:o.content)==null?void 0:s.find(u=>u.uid===n);if(r){e({currentDepartment:r});return}const i=u=>{for(const f of u){if(f.uid===n){e({currentDepartment:f});return}f.children&&f.children.length>0&&i(f.children)}};i(((c=(l=t().departmentResult)==null?void 0:l.data)==null?void 0:c.content)||[])},deleteDepartmentCache:()=>e({},!0)})),{name:x6e}))),_4e=({open:e,isEdit:t=!1,currentTicket:n,onSuccess:r,onCancel:i})=>{const[a]=Kn.useForm(),o=jn(),{translateString:s}=Zr(),l=Vr(V=>V.currentOrg),c=Na(V=>V.memberInfo),u=fr(V=>V.currentThread),f=fr(V=>V.threads),[p,h]=d.useState([]),[m,g]=d.useState([]),[v,y]=d.useState({uid:"",nickname:"",avatar:""}),{refreshTickets:w}=ja(),[b,C]=d.useState(!1),[k,S]=d.useState([]),[_,E]=d.useState([]),{departmentResult:$,setDepartmentResult:M}=SKt(V=>({departmentResult:V.departmentResult,setDepartmentResult:V.setDepartmentResult}));d.useEffect(()=>{var V,B,U;if(t&&n)a.setFieldsValue({title:n.title,description:n.description,status:n.status,priority:n.priority,threadUid:n==null?void 0:n.threadUid,departmentUid:n==null?void 0:n.departmentUid,categoryUid:n==null?void 0:n.categoryUid,assigneeUid:(V=n.assignee)==null?void 0:V.uid,uploadUids:(B=n.attachments)==null?void 0:B.map(Y=>{var ee;return(ee=Y.upload)==null?void 0:ee.uid}),processEntityUid:n==null?void 0:n.processEntityUid}),S((U=n.attachments)==null?void 0:U.map(Y=>Y.upload));else{const Y=localStorage.getItem("ticketDraft");Y&&a.setFieldsValue({description:Y}),a.setFieldsValue({status:lg,priority:bk,processEntityUid:(l==null?void 0:l.uid)+"_"+$5e.toLowerCase()}),u!=null&&u.uid&&f.some(ee=>ee.uid===(u==null?void 0:u.uid))?Rf(u)&&a.setFieldsValue({threadUid:u==null?void 0:u.uid}):a.setFieldsValue({threadUid:""}),S([])}},[e,t,n]);const P=async()=>{var V,B,U;try{const Y=await n7({type:yk,orgUid:l==null?void 0:l.uid,pageNumber:0,pageSize:100});((V=Y.data)==null?void 0:V.code)===200&&((U=(B=Y.data)==null?void 0:B.data)!=null&&U.content)&&(h(Y.data.data.content),!t&&Y.data.data.content.length>0&&a.setFieldValue("categoryUid",Y.data.data.content[0].uid))}catch(Y){console.error("Fetch categories error:",Y),je.error(o.formatMessage({id:"ticket.category.load.error"}))}},R=(V,B)=>{if(V.name.startsWith(Iw)?B.title=o.formatMessage({id:V.name,defaultMessage:V.name}):B.title=V.name,B.key=V.uid,B.value=V.uid,V.children){B.children=[];for(let U=0;U{const V=[];for(let B=0;B<$.data.content.length;B++){const U={title:"",key:"",children:[]};R($.data.content[B],U),V.push(U)}return V},[$]),j=async()=>{try{const V={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid},B=await xKt(V);console.log("queryDepartmentsByOrg response:",B.data,V),B.data.code===200?M(B.data):je.error(B.data.message)}catch(V){console.error("Fetch departments error:",V),je.error(o.formatMessage({id:"ticket.department.load.error"}))}},I=async()=>{var U,Y,ee;const V={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid},B=await wKt(V);console.log("queryProcessesByOrg response:",B.data,V),((U=B.data)==null?void 0:U.code)===200&&((ee=(Y=B.data)==null?void 0:Y.data)!=null&&ee.content)?(E(B.data.data.content),B.data.data.content.length>0&&a.setFieldValue("processEntityUid",B.data.data.content[0].uid)):je.error(o.formatMessage({id:"ticket.process.load.error"}))},A=async V=>{var B,U,Y;try{const ee={pageNumber:0,pageSize:100,orgUid:l==null?void 0:l.uid,deptUid:V},ie=await t$(ee);console.log("queryMembersByOrg response:",ie.data,ee),((B=ie.data)==null?void 0:B.code)===200&&((Y=(U=ie.data)==null?void 0:U.data)!=null&&Y.content)&&(g(ie.data.data.content),a.setFieldValue("assigneeUid",void 0))}catch(ee){console.error("Fetch members error:",ee),je.error(o.formatMessage({id:"ticket.member.load.error"}))}},N=V=>{A(V===fv?"":V)};d.useEffect(()=>{e&&(j(),P(),I(),n!=null&&n.departmentUid&&A(n==null?void 0:n.departmentUid))},[e]);const F=async()=>{try{const V=await a.validateFields();je.loading(o.formatMessage({id:"ticket.submitting"}),0);const B=V.threadUid,U=f.find(ee=>ee.uid===B);U&&(V.topic=U.topic);const Y={...V,departmentUid:V.departmentUid===fv?"":V.departmentUid,orgUid:l==null?void 0:l.uid,assignee:{uid:v==null?void 0:v.uid,nickname:v==null?void 0:v.nickname,avatar:v==null?void 0:v.avatar,type:mk},reporter:{uid:c==null?void 0:c.uid,nickname:c==null?void 0:c.nickname,avatar:c==null?void 0:c.avatar,type:mk},uploadUids:[...new Set(k.map(ee=>ee.uid))]};if(console.log("ticketRequest",Y),t&&n){Y.uid=n.uid;const ee=await aWt(Y);console.log("updateTicket response",ee.data),ee.data.code===200?(je.destroy(),je.success(o.formatMessage({id:"ticket.update.success"})),w(),r()):(je.destroy(),je.error(o.formatMessage({id:"ticket.update.failed"})))}else{const ee=await iWt(Y);console.log("createTicket response",ee.data),ee.data.code===200?(je.destroy(),je.success(o.formatMessage({id:"ticket.create.success"})),w(),r()):(je.destroy(),je.error(o.formatMessage({id:"ticket.create.failed"})))}}catch(V){je.destroy(),console.error("Submit ticket error:",V),je.error(o.formatMessage({id:"ticket.submit.error"}))}finally{localStorage.removeItem("ticketDraft")}},K=V=>{console.log("handleDelete",V),S(B=>B.filter(U=>U.uid!==V))},L=()=>{console.log("handleDescriptionBlur",a.getFieldsValue());const V=a.getFieldValue("description");localStorage.setItem("ticketDraft",V)};return x.jsx(Sh,{title:o.formatMessage({id:t?"ticket.edit.title":"ticket.create.title",defaultMessage:t?"编辑工单":"创建工单"}),width:600,open:e,onClose:i,extra:x.jsxs(Xr,{children:[x.jsx(Yt,{onClick:i,children:o.formatMessage({id:"common.cancel"})}),x.jsx(Yt,{type:"primary",onClick:F,children:o.formatMessage({id:"common.confirm"})})]}),children:x.jsxs(Kn,{form:a,submitter:!1,children:[x.jsx(Or,{name:"title",label:o.formatMessage({id:"ticket.form.title"}),rules:[{required:!0}]}),x.jsx(Cd,{name:"description",label:o.formatMessage({id:"ticket.form.description"}),rules:[{required:!0}],fieldProps:{onBlur:L}}),x.jsx(ro,{name:"status",label:o.formatMessage({id:"ticket.form.status"}),disabled:!0,options:[{label:o.formatMessage({id:"ticket.status.new"}),value:lg},{label:o.formatMessage({id:"ticket.status.claimed"}),value:Y3},{label:o.formatMessage({id:"ticket.status.processing"}),value:ly},{label:o.formatMessage({id:"ticket.status.pending"}),value:X3},{label:o.formatMessage({id:"ticket.status.holding"}),value:Z3},{label:o.formatMessage({id:"ticket.status.reopened"}),value:Q3},{label:o.formatMessage({id:"ticket.status.resolved"}),value:J3},{label:o.formatMessage({id:"ticket.status.closed"}),value:V5},{label:o.formatMessage({id:"ticket.status.cancelled"}),value:e4}],rules:[{required:!0}]}),x.jsx(ro,{name:"priority",label:o.formatMessage({id:"ticket.form.priority"}),options:[{label:o.formatMessage({id:"ticket.priority.lowest"}),value:Pse},{label:o.formatMessage({id:"ticket.priority.low"}),value:EF},{label:o.formatMessage({id:"ticket.priority.medium"}),value:bk},{label:o.formatMessage({id:"ticket.priority.high"}),value:$F},{label:o.formatMessage({id:"ticket.priority.urgent"}),value:MF},{label:o.formatMessage({id:"ticket.priority.critical"}),value:TF}],rules:[{required:!0}]}),x.jsx(ro,{name:"categoryUid",label:o.formatMessage({id:"ticket.form.category"}),rules:[{required:!0}],options:p.map(V=>({label:s(V.name),value:V.uid})),placeholder:o.formatMessage({id:"ticket.form.category.placeholder"})}),x.jsx(qTt,{name:"departmentUid",label:o.formatMessage({id:"ticket.form.department"}),rules:[{required:!0}],fieldProps:{treeData:O,treeDefaultExpandAll:!0,onChange:N,placeholder:o.formatMessage({id:"ticket.form.department.placeholder"})}}),x.jsx(ro,{name:"assigneeUid",label:o.formatMessage({id:"ticket.form.assignee"}),options:m.map(V=>{var B;return{label:V.nickname||((B=V.user)==null?void 0:B.nickname),value:V.uid}}),placeholder:o.formatMessage({id:"ticket.form.assignee.placeholder"}),fieldProps:{onChange:V=>{const B=m.find(U=>U.uid===V);y(B||{uid:"",nickname:"",avatar:""})}},disabled:m.length===0}),x.jsx(ro,{name:"threadUid",label:o.formatMessage({id:"ticket.form.thread"}),options:[{label:o.formatMessage({id:"ticket.form.thread.none"}),value:""},...(f==null?void 0:f.filter(Rf).map(V=>{var B;return{label:((B=V.user)==null?void 0:B.nickname)||V.uid,value:V.uid}}))||[]],placeholder:o.formatMessage({id:"ticket.form.thread.placeholder"})}),x.jsx(ro,{name:"processEntityUid",label:o.formatMessage({id:"ticket.form.process"}),rules:[{required:!0}],options:_.map(V=>({label:s(V.name),value:V.uid})),placeholder:o.formatMessage({id:"ticket.form.process.placeholder"})}),b&&x.jsx(bKt,{type:yk,isModalOpen:b,attachments:n==null?void 0:n.attachments,handleSubmit:(V,B)=>{if(console.log("handleSubmit",V,B),t&&n){const U=B.filter(Y=>{var ee;return!((ee=n.attachments)!=null&&ee.some(ie=>{var Z;return((Z=ie.upload)==null?void 0:Z.uid)===Y.uid}))});S(U)}else{const U=B.filter(Y=>{var ee;return!((ee=n.attachments)!=null&&ee.some(ie=>{var Z;return((Z=ie.upload)==null?void 0:Z.uid)===Y.uid}))});S(U)}C(!1)},handleCancel:()=>{C(!1)}}),x.jsx("div",{style:{marginTop:"16px",marginBottom:"16px",maxHeight:"200px",overflowY:"auto"},children:x.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:k.map(V=>x.jsx(dU,{file:V,onDelete:K},V.uid))})}),x.jsx(Yt,{icon:x.jsx(D4,{}),onClick:()=>C(!0),children:o.formatMessage({id:"ticket.form.upload.button"})})]})})},CKt=({group:e})=>x.jsx("div",{children:"GroupNotice"}),_Kt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.members,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),kKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.admins,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),EKt=({group:e})=>x.jsx(x.Fragment,{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:e==null?void 0:e.robots,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:t==null?void 0:t.avatar}),title:x.jsx(x.Fragment,{children:t==null?void 0:t.nickname})})})})}),$Kt=({group:e})=>(console.log("group",e),x.jsx("div",{style:{textAlign:"center"},children:x.jsx(oz,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"./logo.png"})})),MKt=({open:e,onClose:t})=>{const n=jn(),r=fr(c=>c.currentThread),[i,a]=d.useState(),o=[{key:"notice",label:n.formatMessage({id:"chat.group.notice"}),children:x.jsx(CKt,{group:i})},{key:"members",label:n.formatMessage({id:"chat.group.members"}),children:x.jsx(_Kt,{group:i})},{key:"admins",label:n.formatMessage({id:"chat.group.admins"}),children:x.jsx(kKt,{group:i})},{key:"robots",label:n.formatMessage({id:"chat.group.robots"}),children:x.jsx(EKt,{group:i})},{key:"qrcode",label:n.formatMessage({id:"chat.group.qrcode"}),children:x.jsx($Kt,{group:i})}],s=async()=>{var p,h;const c=(r==null?void 0:r.topic.split("/")[2])||"";c===""&&je.warning(n.formatMessage({id:"chat.group.uid.error"}));const u={uid:c},f=await OWt(u);console.log("queryGroupByUid:",f.data,u),f.data.code===200?a((p=f==null?void 0:f.data)==null?void 0:p.data):je.error((h=f==null?void 0:f.data)==null?void 0:h.message)};d.useEffect(()=>{Do(r)&&s()},[r]);const l=c=>{console.log(c)};return x.jsx(Sh,{title:"群组资料",width:500,onClose:t,open:e,children:x.jsx(l8,{bordered:!1,items:o,defaultActiveKey:["1"],onChange:l})})},TKt=({open:e,onClose:t})=>{const n=fr(s=>s.currentThread),[r,i]=d.useState(),a=[{key:"nickname",label:"昵称",children:(r==null?void 0:r.nickname)||"暂无"},{key:"jobNo",label:"jobNo",children:(r==null?void 0:r.jobNo)||"暂无"},{key:"jobTitle",label:"jobTitle",children:(r==null?void 0:r.jobTitle)||"暂无"},{key:"seatNo",label:"seatNo",children:(r==null?void 0:r.seatNo)||"暂无"},{key:"telephone",label:"telephone",children:(r==null?void 0:r.telephone)||"暂无"},{key:"email",label:"email",children:(r==null?void 0:r.email)||"暂无"},{key:"mobile",label:"mobile",children:(r==null?void 0:r.mobile)||"暂无"}],o=async()=>{var c,u,f,p;const s=(c=n==null?void 0:n.user)==null?void 0:c.uid,l=await tut(s);console.log("response:",l==null?void 0:l.data,s),((u=l==null?void 0:l.data)==null?void 0:u.code)===200?i((f=l==null?void 0:l.data)==null?void 0:f.data):je.error((p=l==null?void 0:l.data)==null?void 0:p.message)};return d.useEffect(()=>{Nk(n)&&o()},[n]),x.jsx(Sh,{title:"成员资料",width:500,onClose:t,open:e,children:x.jsx(ls,{column:1,items:a,bordered:!1})})};async function PKt(e){return gn("/api/v1/model/query/org",{method:"GET",params:{...e,client:_n}})}async function OKt(e){return gn("/api/v1/provider/query/org",{method:"GET",params:{...e,client:_n}})}async function RKt(){return gn("/api/v1/ollama4j/ping",{method:"GET",params:{client:_n}})}async function IKt(){return gn("/api/v1/ollama4j/local-models",{method:"GET",params:{client:_n}})}const jKt=so()(Jo(es(ts((e,t)=>({llmproviderResult:{data:{content:[]}},currentLlmProvider:{uid:"",nickname:""},insertLlmProvider(n){e(r=>{r.llmproviderResult.data.content.unshift(n)})},setLlmProviderResult:n=>{var i,a;e({llmproviderResult:n});const r=t().currentLlmProvider;(r.uid===""||r===void 0)&&((a=(i=n.data)==null?void 0:i.content)==null?void 0:a.length)>0&&e({currentLlmProvider:n.data.content[0]})},setCurrentLlmProvider(n){const r=t().llmproviderResult.data.content,i=r.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...r.slice(0,i),n,...r.slice(i+1)],o={...t().llmproviderResult,data:{content:a}};e({llmproviderResult:o,currentLlmProvider:n})}else console.warn("LlmProvider with the specified uid not found."),e({currentLlmProvider:n})},deleteCurrentLlmProvider(n){const r=t().llmproviderResult.data.content,i=r.findIndex(a=>a.uid===n);i!==-1?e({llmproviderResult:{...t().llmproviderResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("LlmProvider not found in cache:",n),t().currentLlmProvider.uid===n&&e({currentLlmProvider:{uid:""}})},deleteLlmProviderCache:()=>e({},!0)})),{name:I6e}))),NKt=({open:e,onClose:t})=>{var E;const n=jn(),[r]=Kn.useForm(),{translateString:i}=Zr(),a=Vr($=>$.currentOrg),{currentThread:o,setCurrentThread:s}=fr($=>({currentThread:$.currentThread,setCurrentThread:$.setCurrentThread})),{llmproviderResult:l,setLlmProviderResult:c}=jKt($=>({llmproviderResult:$.llmproviderResult,setLlmProviderResult:$.setLlmProviderResult})),[u,f]=d.useState({}),[p,h]=d.useState(),[m,g]=d.useState({});d.useEffect(()=>{h(o);const $=o==null?void 0:o.agent;let M;try{M=JSON.parse($)}catch(P){console.error("解析content为JSON时出错:",P)}f(M)},[o]);const v=async()=>{console.log("getLlmProviders");const $={pageNumber:0,pageSize:50,level:Lw,orgUid:a==null?void 0:a.uid},M=await OKt($);console.log("queryLlmProvidersByOrg: ",M.data),M.data.code===200?c(M.data):je.error(M.data.message)};d.useEffect(()=>{var M,P,R,O,j;r.setFieldsValue({provider:(M=u==null?void 0:u.llm)==null?void 0:M.provider,model:(P=u==null?void 0:u.llm)==null?void 0:P.model,temperature:(R=u==null?void 0:u.llm)==null?void 0:R.temperature,prompt:i((O=u==null?void 0:u.llm)==null?void 0:O.prompt),contextMsgCount:(j=u==null?void 0:u.llm)==null?void 0:j.contextMsgCount}),v(),k({uid:"",name:"zhipu"})},[u]);const y=async $=>{console.log("llm handleSubmit",$),u.llm={...u.llm,...$},console.log("llm handleSubmit robot:",u);const M=JSON.stringify(u),P={...p,agent:M};console.log("llm handleSubmit threadRequest:",P);const R=await YFt(P);console.log("llm updateThread response:",R.data,P),R.data.code===200?(je.success("更新成功"),s(R.data.data),t()):je.error(R.data.message)},w=($,M)=>[x.jsx(Yt,{type:"default",onClick:()=>{var P,R,O,j,I;r.setFieldsValue({provider:(P=u==null?void 0:u.llm)==null?void 0:P.provider,model:(R=u==null?void 0:u.llm)==null?void 0:R.model,temperature:(O=u==null?void 0:u.llm)==null?void 0:O.temperature,prompt:i((j=u==null?void 0:u.llm)==null?void 0:j.prompt),contextMsgCount:(I=u==null?void 0:u.llm)==null?void 0:I.contextMsgCount})},children:"重置"},"reset"),x.jsx(Yt,{type:"primary",onClick:()=>{var P;(P=$.form)==null||P.submit()},children:"保存"},"submit")],b=async()=>{const $=await RKt();console.log("getOllamaServerStatus: ",$.data),$.data.code===200&&$.data.data?C():je.error($.data.message)},C=async()=>{const $=await IKt();if(console.log("requestLocalModels: ",$.data),$.data.code===200){const M=$.data.data.map(P=>({value:P.name,label:P.name}));g(P=>({...P,ollama:M})),M.length===0?r.setFieldValue("model",void 0):r.getFieldValue("model")||r.setFieldValue("model",M[0].value)}else je.error($.data.message)},k=async $=>{je.loading(n.formatMessage({id:"loading"}));try{const M={pageNumber:0,pageSize:50,providerUid:$.uid,orgUid:a==null?void 0:a.uid,level:Lw},P=await PKt(M);if(console.log("queryLlmModelsByOrg response:",P.data),P.data.code===200){const R=P.data.data.content.map(O=>({value:O.name,label:O.nickname}));g(O=>({...O,[$.name]:R})),R.length===0?r.setFieldValue("model",void 0):r.getFieldValue("model")||r.setFieldValue("model",R[0].value)}else je.error(P.data.message)}catch(M){console.error("Failed to fetch models:",M),je.error(n.formatMessage({id:"error"}))}finally{je.destroy()}},S=$=>{var P;const M=(P=l==null?void 0:l.data)==null?void 0:P.content.find(R=>R.name===$);console.log("selectedProvider:",M),M!=null&&M.name&&(M.name==="ollama"?b():k(M))},_=$=>{console.log("handleModelSelected:",$)};return x.jsx(Sh,{title:"大模型设置",width:500,onClose:t,open:e,children:x.jsxs(Kn,{form:r,submitter:{render:w,submitButtonProps:{size:"large",htmlType:"button"}},onFinish:y,children:[x.jsx(Cd,{width:"lg",name:"prompt",label:"提示词",placeholder:"请输入prompt",rules:[{required:!0,message:"请输入prompt"}],fieldProps:{autoSize:!0,rows:3}}),x.jsx(ro,{width:"lg",name:"provider",label:"提供商",allowClear:!0,options:(E=l==null?void 0:l.data)==null?void 0:E.content.map($=>({value:$.name,label:$.nickname})),fieldProps:{onChange($,M){console.log("provider value:",$,M),S($)}},rules:[{required:!0,message:"请选择大模型"}]}),x.jsx(ro,{width:"lg",name:"model",label:"模型",allowClear:!0,options:m[r.getFieldValue("provider")]||[],fieldProps:{onChange($,M){console.log("model value:",$,M),_($)}},rules:[{required:!0,message:"请选择大模型"}]}),x.jsx(Nee,{width:"lg",label:"温度",name:"temperature",min:0,max:1,fieldProps:{precision:1,step:.1},rules:[{required:!0,message:"请输入温度"}]}),x.jsx(Nee,{width:"lg",label:"上下文消息数",name:"contextMsgCount",min:0,max:10,fieldProps:{precision:0,step:1},rules:[{required:!0,message:"请输入上下文消息数"}]})]})})},AKt=[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],DKt={100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square","1","2","3","4"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing","shy"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},shaking_face:{id:"shaking_face",name:"Shaking Face",keywords:["dizzy","shock","blurry","earthquake"],skins:[{unified:"1fae8",native:"🫨"}],version:15},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease","covid"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever","covid"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy","cry","tears","sad","grievance"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude","cry"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["2&&(o.children=arguments.length>3?o7.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return T_(e,o,r,i,null)}function T_(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++E4e};return i==null&&sr.vnode!=null&&sr.vnode(a),a}function Kd(){return{current:null}}function J0(e){return e.children}function pd(e,t){this.props=e,this.context=t}function ey(e,t){if(t==null)return e.__?ey(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?T_(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(p=y[u])===null||p&&h.key==p.key&&h.type===p.type)y[u]=void 0;else for(f=0;f{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,r=Math.floor(t/2);return e.font=r+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,i=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(i,0,22),e.fillStyle="#0000FF",e.fillText(i,n,22);const a=e.getImageData(0,0,n,t).data,o=a.length;let s=0;for(;s=o)return!1;const l=n+s/4%n,c=Math.floor(s/4/n),u=e.getImageData(l,c,1,1).data;return!(a[s]!==u[0]||a[s+2]!==u[2]||e.measureText(i).width>=n)}})();var Ere={latestVersion:YKt,noCountryFlags:XKt};const VA=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let mo=null;function QKt(e){mo||(mo=oh.get("frequently")||{});const t=e.id||e;t&&(mo[t]||(mo[t]=0),mo[t]+=1,oh.set("last",t),oh.set("frequently",mo))}function JKt({maxFrequentRows:e,perLine:t}){if(!e)return[];mo||(mo=oh.get("frequently"));let n=[];if(!mo){mo={};for(let a in VA.slice(0,t)){const o=VA[a];mo[o]=t-a,n.push(o)}return n}const r=e*t,i=oh.get("last");for(let a in mo)n.push(a);if(n.sort((a,o)=>{const s=mo[o],l=mo[a];return s==l?a.localeCompare(o):s-l}),n.length>r){const a=n.slice(r);n=n.slice(0,r);for(let o of a)o!=i&&delete mo[o];i&&n.indexOf(i)==-1&&(delete mo[n[n.length-1]],n.splice(-1,1,i)),oh.set("frequently",mo)}return n}var L4e={add:QKt,get:JKt,DEFAULTS:VA},B4e={};B4e=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var lf={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let No=null,Ir=null;const RP={};async function $re(e){if(RP[e])return RP[e];const n=await(await fetch(e)).json();return RP[e]=n,n}let IP=null,z4e=null,H4e=!1;function s7(e,{caller:t}={}){return IP||(IP=new Promise(n=>{z4e=n})),e?eGt(e):t&&!H4e&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),IP}async function eGt(e){H4e=!0;let{emojiVersion:t,set:n,locale:r}=e;if(t||(t=lf.emojiVersion.value),n||(n=lf.set.value),r||(r=lf.locale.value),Ir)Ir.categories=Ir.categories.filter(l=>!l.name);else{Ir=(typeof e.data=="function"?await e.data():e.data)||await $re(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Ir.emoticons={},Ir.natives={},Ir.categories.unshift({id:"frequent",emojis:[]});for(const l in Ir.aliases){const c=Ir.aliases[l],u=Ir.emojis[c];u&&(u.aliases||(u.aliases=[]),u.aliases.push(l))}Ir.originalCategories=Ir.categories}if(No=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(r=="en"?k4e(B4e):await $re(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),e.custom)for(let l in e.custom){l=parseInt(l);const c=e.custom[l],u=e.custom[l-1];if(!(!c.emojis||!c.emojis.length)){c.id||(c.id=`custom_${l+1}`),c.name||(c.name=No.categories.custom),u&&!c.icon&&(c.target=u.target||u),Ir.categories.push(c);for(const f of c.emojis)Ir.emojis[f.id]=f}}e.categories&&(Ir.categories=Ir.originalCategories.filter(l=>e.categories.indexOf(l.id)!=-1).sort((l,c)=>{const u=e.categories.indexOf(l.id),f=e.categories.indexOf(c.id);return u-f}));let i=null,a=null;n=="native"&&(i=Ere.latestVersion(),a=e.noCountryFlags||Ere.noCountryFlags());let o=Ir.categories.length,s=!1;for(;o--;){const l=Ir.categories[o];if(l.id=="frequent"){let{maxFrequentRows:f,perLine:p}=e;f=f>=0?f:lf.maxFrequentRows.value,p||(p=lf.perLine.value),l.emojis=L4e.get({maxFrequentRows:f,perLine:p})}if(!l.emojis||!l.emojis.length){Ir.categories.splice(o,1);continue}const{categoryIcons:c}=e;if(c){const f=c[l.id];f&&!l.icon&&(l.icon=f)}let u=l.emojis.length;for(;u--;){const f=l.emojis[u],p=f.id?f:Ir.emojis[f],h=()=>{l.emojis.splice(u,1)};if(!p||e.exceptEmojis&&e.exceptEmojis.includes(p.id)){h();continue}if(i&&p.version>i){h();continue}if(a&&l.id=="flags"&&!aGt.includes(p.id)){h();continue}if(!p.search){if(s=!0,p.search=","+[[p.id,!1],[p.name,!0],[p.keywords,!1],[p.emoticons,!1]].map(([g,v])=>{if(g)return(Array.isArray(g)?g:[g]).map(y=>(v?y.split(/[-|_|\s]+/):[y]).map(w=>w.toLowerCase())).flat()}).flat().filter(g=>g&&g.trim()).join(","),p.emoticons)for(const g of p.emoticons)Ir.emoticons[g]||(Ir.emoticons[g]=p.id);let m=0;for(const g of p.skins){if(!g)continue;m++;const{native:v}=g;v&&(Ir.natives[v]=p.id,p.search+=`,${v}`);const y=m==1?"":`:skin-tone-${m}:`;g.shortcodes=`:${p.id}:${y}`}}}}s&&qv.reset(),z4e()}function U4e(e,t,n){e||(e={});const r={};for(let i in t)r[i]=W4e(i,e,t,n);return r}function W4e(e,t,n,r){const i=n[e];let a=r&&r.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return i&&(a!=null&&i.value&&typeof i.value!=typeof a&&(typeof i.value=="boolean"?a=a!="false":a=i.value.constructor(a)),i.transform&&a&&(a=i.transform(a)),(a==null||i.choices&&i.choices.indexOf(a)==-1)&&(a=i.value)),a}const tGt=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let qA=null;function nGt(e){return e.id?e:Ir.emojis[e]||Ir.emojis[Ir.aliases[e]]||Ir.emojis[Ir.natives[e]]}function rGt(){qA=null}async function iGt(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await s7(null,{caller:n||"SearchIndex.search"});const r=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,l,c)=>s.trim()&&c.indexOf(s)==l);if(!r.length)return;let i=qA||(qA=Object.values(Ir.emojis)),a,o;for(const s of r){if(!i.length)break;a=[],o={};for(const l of i){if(!l.search)continue;const c=l.search.indexOf(`,${s}`);c!=-1&&(a.push(l),o[l.id]||(o[l.id]=0),o[l.id]+=l.id==s?0:c+1)}i=a}return a.length<2||(a.sort((s,l)=>{const c=o[s.id],u=o[l.id];return c==u?s.id.localeCompare(l.id):c-u}),a.length>t&&(a=a.slice(0,t))),a}var qv={search:iGt,get:nGt,reset:rGt,SHORTCODES_REGEX:tGt};const aGt=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function oGt(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,r)=>n==t[r])}async function sGt(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function lGt(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),r={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(r.skin=t+1),n.src&&(r.src=n.src),e.aliases&&e.aliases.length&&(r.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(r.emoticons=e.emoticons),r}const cGt={activity:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:nn("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),nn("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),nn("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:nn("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),nn("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:nn("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),nn("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[nn("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),nn("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:nn("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:nn("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},uGt={loupe:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:nn("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:nn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:nn("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var y5={categories:cGt,search:uGt};function KA(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){const s=e.shortcodes.match(qv.SHORTCODES_REGEX);s&&(t=s[1],s[2]&&(n=s[2]))}if(r||(r=qv.get(t||e.native)),!r)return e.fallback;const i=r.skins[n-1]||r.skins[0],a=i.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,i.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${i.unified}.png`:void 0),o=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return nn("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?nn("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:i.native||i.shortcodes,src:a}):e.set=="native"?nn("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:i.native}):nn("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${o})`,backgroundSize:`${100*Ir.sheet.cols}% ${100*Ir.sheet.rows}%`,backgroundPosition:`${100/(Ir.sheet.cols-1)*i.x}% ${100/(Ir.sheet.rows-1)*i.y}%`}})})}const dGt=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class V4e extends dGt{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,r){if(!this.component)return;const i=W4e(t,{[t]:r},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:i}):(this.component.props[t]=i,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const r=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),r&&r.appendChild(this)}}}class fGt extends V4e{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var q4e={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:lf.set,skin:lf.skin};class K4e extends V4e{async connectedCallback(){const t=U4e(this.props,q4e,this);t.element=this,t.ref=n=>{this.component=n},await s7(),!this.disconnected&&D4e(nn(KA,{...t}),this)}constructor(t){super(t)}}Ql(K4e,"Props",q4e);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",K4e);var Mre,GA=[],Tre=sr.__b,Pre=sr.__r,Ore=sr.diffed,Rre=sr.__c,Ire=sr.unmount;function pGt(){var e;for(GA.sort(function(t,n){return t.__v.__b-n.__v.__b});e=GA.pop();)if(e.__P)try{e.__H.__h.forEach(P_),e.__H.__h.forEach(YA),e.__H.__h=[]}catch(t){e.__H.__h=[],sr.__e(t,e.__v)}}sr.__b=function(e){Tre&&Tre(e)},sr.__r=function(e){Pre&&Pre(e);var t=e.__c.__H;t&&(t.__h.forEach(P_),t.__h.forEach(YA),t.__h=[])},sr.diffed=function(e){Ore&&Ore(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(GA.push(t)!==1&&Mre===sr.requestAnimationFrame||((Mre=sr.requestAnimationFrame)||function(n){var r,i=function(){clearTimeout(a),jre&&cancelAnimationFrame(r),setTimeout(n)},a=setTimeout(i,100);jre&&(r=requestAnimationFrame(i))})(pGt))},sr.__c=function(e,t){t.some(function(n){try{n.__h.forEach(P_),n.__h=n.__h.filter(function(r){return!r.__||YA(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],sr.__e(r,n.__v)}}),Rre&&Rre(e,t)},sr.unmount=function(e){Ire&&Ire(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{P_(r)}catch(i){t=i}}),t&&sr.__e(t,n.__v))};var jre=typeof requestAnimationFrame=="function";function P_(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function YA(e){e.__c=e.__()}function hGt(e,t){for(var n in t)e[n]=t[n];return e}function Nre(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function b5(e){this.props=e}(b5.prototype=new pd).isPureReactComponent=!0,b5.prototype.shouldComponentUpdate=function(e,t){return Nre(this.props,e)||Nre(this.state,t)};var Are=sr.__b;sr.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Are&&Are(e)};var mGt=sr.__e;sr.__e=function(e,t,n){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}mGt(e,t,n)};var Dre=sr.unmount;function jP(){this.__u=0,this.t=null,this.__b=null}function G4e(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function cC(){this.u=null,this.o=null}sr.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Dre&&Dre(e)},(jP.prototype=new pd).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=G4e(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__e){var c=r.state.__e;r.__v.__k[0]=function f(p,h,m){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(g){return f(g,h,m)}),p.__c&&p.__c.__P===h&&(p.__e&&m.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=m)),p}(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__e:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(o,o)},jP.prototype.componentWillUnmount=function(){this.t=[]},jP.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),o.__c.__H=null),(o=hGt({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(c){return a(c,s,l)})),o}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&WA(J0,null,e.fallback);return i&&(i.__h=null),[WA(J0,null,t.__e?null:e.children),i]};var Fre=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const i=n.name||No.categories[n.id],a=!this.props.unfocused&&n.id==this.state.categoryId;return a&&(t=r),nn("button",{"aria-label":i,"aria-selected":a||void 0,title:i,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:n,i:r})},children:this.renderIcon(n)})}),nn("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Ir.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class kGt extends b5{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const uC={rowsPerRender:10};class EGt extends pd{getInitialState(t=this.props){return{skin:oh.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=No.rtl?"rtl":"ltr",this.refs={menu:Kd(),navigation:Kd(),scroll:Kd(),search:Kd(),searchInput:Kd(),skinToneButton:Kd(),skinToneRadio:Kd()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const i in this.nextState)this.props[i]=this.nextState[i],(i==="custom"||i==="categories")&&(n=!0);delete this.nextState;const r=this.getInitialState();if(n)return this.reset(r);this.setState(r)})}componentWillUnmount(){this.unregister()}async reset(t={}){await s7(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Ir;this.refs.categories=new Map;const n=Ir.categories.map(i=>i.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const r=(i,a)=>{const o=[];o.__categoryId=a.id,o.__index=i.length,this.grid.push(o);const s=this.grid.length-1,l=s%uC.rowsPerRender?{}:Kd();return l.index=s,l.posinset=this.grid.setsize+1,i.push(l),o};for(let i of t){const a=[];let o=r(a,i);for(let s of i.emojis)o.length==this.getPerLine()&&(o=r(a,i)),this.grid.setsize+=1,o.push(s);this.refs.categories.set(i.id,{root:Kd(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:r}=t,i=()=>{const{width:o}=n.getBoundingClientRect();return Math.floor(o/r)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:i()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(n),this.observers.push(a),i()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const r=this.state.searchResults||this.grid,i=r[t]&&r[t][n];if(i)return qv.get(i)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,r=o=>{o!=t.state.categoryId&&t.setState({categoryId:o})},i={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const l of o){const c=l.target.dataset.id;n.set(c,l.intersectionRatio)}const s=[...n];for(const[l,c]of s)if(c){r(l);break}},i);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(r=>{for(const i of r){const a=parseInt(i.target.dataset.index);i.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(uC.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*uC.rowsPerRender}px`});for(const{rows:r}of this.refs.categories.values())for(const i of r)i.current&&n.observe(i.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:r,right:i,up:a,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[l,c]=this.state.pos;const u=(()=>{if(l==0&&c==0&&!t.repeat&&(r||a))return null;if(l==-1)return!t.repeat&&(i||o)&&n.selectionStart==n.value.length?[0,0]:null;if(r||i){let f=s[l];const p=r?-1:1;if(c+=p,!f[c]){if(l+=p,f=s[l],!f)return l=r?0:s.length-1,c=r?0:s[l].length-1,[l,c];c=r?f.length-1:0}return[l,c]}if(a||o){l+=a?-1:1;const f=s[l];return f?(f[c]||(c=f.length-1),[l,c]):(l=a?0:s.length-1,c=a?0:s[l].length-1,[l,c])}})();if(u)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:u,keyboard:!0},()=>{this.scrollTo({row:u[0]})})}scrollTo({categoryId:t,row:n}){const r=this.state.searchResults||this.grid;if(!r.length)return;const i=this.refs.scroll.current,a=i.getBoundingClientRect();let o=0;if(n>=0&&(t=r[n].__categoryId),t&&(o=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-i.scrollTop)+1),n>=0)if(!n)o=0;else{const s=r[n].__index,l=o+s*this.props.emojiButtonSize,c=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(li.scrollTop+a.height)o=c-a.height;else return}this.ignoreMouse(),i.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:r}){if(this.props.onEmojiSelect&&(!n&&r&&(n=this.getEmojiByPos(r)),n)){const i=lGt(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&L4e.add(i,this.props),this.props.onEmojiSelect(i,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),oh.set("skin",t)}renderNav(){return nn(_Gt,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return nn("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[nn("div",{class:"flex flex-middle flex-grow",children:[nn("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:nn(KA,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),nn("div",{class:`margin-${this.dir[0]}`,children:t||n?nn("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[nn("div",{class:"preview-title ellipsis",children:t?t.name:No.search_no_results_1}),nn("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:No.search_no_results_2})]}):nn("div",{class:"preview-placeholder color-c",children:No.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:r,grid:i}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,l=(t.skins[o-1]||t.skins[0]).native,c=oGt(this.state.pos,n),u=n.concat(t.id).join("");return nn(kGt,{selected:c,skin:o,size:a,children:nn("button",{"aria-label":l,"aria-selected":c||void 0,"aria-posinset":r,"aria-setsize":i.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:f=>this.handleEmojiClick({e:f,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[nn("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(r-1)%this.props.emojiButtonColors.length]:void 0}}),nn(KA,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},u)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return nn("div",{children:[nn("div",{class:"spacer"}),nn("div",{class:"flex flex-middle",children:[nn("div",{class:"search relative flex-grow",children:[nn("input",{type:"search",ref:this.refs.searchInput,placeholder:No.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),nn("span",{class:"icon loupe flex",children:y5.search.loupe}),this.state.searchResults&&nn("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:y5.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?nn("div",{class:"category",ref:this.refs.search,children:[nn("div",{class:`sticky padding-small align-${this.dir[0]}`,children:No.categories.search}),nn("div",{children:t.length?t.map((n,r)=>nn("div",{class:"flex",children:n.map((i,a)=>this.renderEmojiButton(i,{pos:[r,a],posinset:r*this.props.perLine+a+1,grid:t}))})):nn("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&nn("a",{onClick:this.props.onAddCustomEmoji,children:No.add_custom})})})]}):null}renderCategories(){const{categories:t}=Ir,n=!!this.state.searchResults,r=this.getPerLine();return nn("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(i=>{const{root:a,rows:o}=this.refs.categories.get(i.id);return nn("div",{"data-id":i.target?i.target.id:i.id,class:"category",ref:a,children:[nn("div",{class:`sticky padding-small align-${this.dir[0]}`,children:i.name||No.categories[i.id]}),nn("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((s,l)=>{const c=s.index-s.index%uC.rowsPerRender,u=this.state.visibleRows[c],f="current"in s?s:void 0;if(!u&&!f)return null;const p=l*r,h=p+r,m=i.emojis.slice(p,h);return m.length{if(!g)return nn("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const y=qv.get(g);return this.renderEmojiButton(y,{pos:[s.index,v],posinset:s.posinset+v,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:nn("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:nn("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":No.skins.choose,title:No.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:nn("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return nn("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),r=this.base.getBoundingClientRect(),i={};return this.dir=="ltr"?i.right=r.right-n.right-3:i.left=n.left-r.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?i.bottom=r.bottom-n.top+6:(i.top=n.bottom-r.top+3,i.bottom="auto"),nn("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":No.skins.choose,class:"menu hidden","data-position":i.top?"top":"bottom",style:i,children:[...Array(6).keys()].map(a=>{const o=a+1,s=this.state.skin==o;return nn("div",{children:[nn("input",{type:"radio",name:"skin-tone",value:o,"aria-label":No.skins[o],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(o))}}),nn("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[nn("span",{class:`skin-tone skin-tone-${o}`}),nn("span",{class:"margin-small-lr",children:No.skins[o]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return nn("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&nn("div",{class:"padding-lr",children:this.renderSearch()}),nn("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:nn("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),Ql(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Ql(this,"handleClickOutside",n=>{const{element:r}=this.props;n.target!=r&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),Ql(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),Ql(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),Ql(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Ql(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:r}=n,i=await qv.search(r),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!i)return this.setState({searchResults:i,pos:[-1,-1]},a);const o=n.selectionStart==n.value.length?[0,0]:[-1,-1],s=[];s.setsize=i.length;let l=null;for(let c of i)(!s.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=s.length,s.push(l)),l.push(c);this.ignoreMouse(),this.setState({searchResults:s,pos:o},a)}),Ql(this,"handleSearchKeyDown",n=>{const r=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:r,left:!0});break;case"ArrowRight":this.navigate({e:n,input:r,right:!0});break;case"ArrowUp":this.navigate({e:n,input:r,up:!0});break;case"ArrowDown":this.navigate({e:n,input:r,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Ql(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),Ql(this,"handleCategoryClick",({category:n,i:r})=>{this.scrollTo(r==0?{row:-1}:{categoryId:n.id})}),Ql(this,"openSkins",n=>{const{currentTarget:r}=n,i=r.getBoundingClientRect();this.setState({showSkins:i},async()=>{await sGt(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class yU extends fGt{async connectedCallback(){const t=U4e(this.props,lf,this);t.element=this,t.ref=n=>{this.component=n},await s7(t),!this.disconnected&&D4e(nn(EGt,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:k4e(Y4e)})}}Ql(yU,"Props",lf);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",yU);var Y4e={};Y4e=`:host { width: min-content; height: 435px; min-height: 230px; @@ -1427,16 +1427,16 @@ button { background-color: #61493f; } -`;function EGt(e){const t=d.useRef(null),n=d.useRef(null);return n.current&&n.current.update(e),d.useEffect(()=>(n.current=new yU({...e,ref:t}),()=>{n.current=null}),[]),te.createElement("div",{ref:t})}const $Gt=({onSelect:e,onClose:t})=>{const[n,r]=d.useState(!0),i=a=>{r(!1),e(a.native)};return x.jsx(jAt,{className:"EmojiPicker",active:n,onClose:()=>{r(!1),t()},title:"请选择表情",children:x.jsx("div",{children:x.jsx(EGt,{data:LKt,onEmojiSelect:i})})})},MGt=({isAutoReplyModelOpen:e,handleAutoReplyModelOk:t,handleAutoReplyModelCancel:n,isTransferThreadModelOpen:r,handleTransferThreadModelOk:i,handleTransferThreadModelCancel:a,isInviteThreadModelOpen:o,handleInviteThreadModelOk:s,handleInviteThreadModelCancel:l,isForwardMessageModelOpen:c,handleForwardMessageModelOk:u,handleForwardMessageModelCancel:f,isTransferMessageModelOpen:p,handleTransferMessageModelOk:h,handleTransferMessageModelCancel:m,isHistoryMessageModelOpen:g,handleHistoryMessageModelOk:v,handleHistoryMessageModelCancel:y,isTicketCreateModelOpen:w,handleTicketCreateModelSuccess:b,handleTicketCreateModelCancel:C,isBlockModelOpen:k,handleBlockModelOk:S,handleBlockModelCancel:_,isWebRtcModelOpen:E,handleWebRtcModelOk:$,handleWebRtcModelCancel:M,isScreenRecorderModelOpen:P,screenShotImg:R,handleScreenRecorderModelOk:O,handleScreenRecorderModelCancel:j,isGroupInfoDrawerOpen:I,setIsGroupInfoDrawerOpen:A,isMemberInfoDrawerOpen:N,setIsMemberInfoDrawerOpen:F,isRobotInfoDrawerOpen:K,setIsRobotInfoDrawerOpen:L,showEmoji:V,handleEmojiSelect:B,setShowEmoji:U})=>x.jsxs(x.Fragment,{children:[e&&x.jsx(yqt,{open:e,onOk:t,onCancel:n}),r&&x.jsx(pKt,{open:r,onOk:i,onCancel:a}),o&&x.jsx(mKt,{open:o,onOk:s,onCancel:l}),c&&x.jsx(cKt,{open:c,onOk:u,onCancel:f}),p&&x.jsx(dKt,{open:p,onOk:h,onCancel:m}),g&&x.jsx(uKt,{open:g,onOk:v,onCancel:y}),w&&x.jsx(k4e,{open:w,onSuccess:b,onCancel:C}),k&&x.jsx(Y3e,{open:k,onOk:S,onCancel:_}),E&&x.jsx(gKt,{open:E,onOk:$,onCancel:M}),P&&x.jsx(rKt,{open:P,screenShotImg:R,onOk:O,onCancel:j}),I&&x.jsx($Kt,{open:I,onClose:()=>A(!1)}),N&&x.jsx(MKt,{open:N,onClose:()=>F(!1)}),K&&x.jsx(jKt,{open:K,onClose:()=>L(!1)}),V&&x.jsx($Gt,{onSelect:B,onClose:()=>U(!1)})]}),TGt=({contextMessage:e,handleRightClick:t})=>{const n=jn(),{isDarkMode:r,hasRoleAgent:i}=d.useContext(Ea);return x.jsx(x.Fragment,{children:x.jsxs(K3e,{id:dse,theme:r?"dark":"light",children:[x.jsx(ci,{id:"copy",onClick:t,children:n.formatMessage({id:"chat.menu.copy",defaultMessage:"复制"})}),(e==null?void 0:e.type)===vo&&x.jsx(ci,{id:"translate",onClick:t,children:n.formatMessage({id:"chat.menu.translate",defaultMessage:"翻译"})}),(e==null?void 0:e.position)==="right"&&x.jsx(ci,{id:"recall",onClick:t,children:n.formatMessage({id:"chat.menu.recall",defaultMessage:"撤回"})}),ha&&(e==null?void 0:e.type)===vo&&x.jsx(ci,{id:"enlarge",onClick:t,children:n.formatMessage({id:"chat.menu.enlarge",defaultMessage:"放大阅读"})}),i&&x.jsx(ci,{id:"addquickreply",onClick:t,children:n.formatMessage({id:"chat.menu.quickreply.add",defaultMessage:"添加快捷回复..."})}),(e==null?void 0:e.type)===Cl&&x.jsxs(x.Fragment,{children:[x.jsx(Wv,{}),x.jsx(ci,{id:"browser-open",onClick:t,children:n.formatMessage({id:"chat.menu.browser.open",defaultMessage:"浏览器打开"})})]}),Nl&&x.jsxs(x.Fragment,{children:[x.jsx(Wv,{}),x.jsx(ci,{id:"forward",onClick:t,children:n.formatMessage({id:"chat.menu.forward",defaultMessage:"转发..."})}),x.jsx(ci,{id:"collect",onClick:t,children:n.formatMessage({id:"chat.menu.collect",defaultMessage:"收藏"})}),x.jsx(ci,{id:"quote",onClick:t,children:n.formatMessage({id:"chat.menu.quote",defaultMessage:"引用"})})]}),x.jsx(Wv,{}),x.jsx(ci,{id:"ai",onClick:t,children:n.formatMessage({id:"chat.menu.ai",defaultMessage:"问AI"})}),x.jsx(ci,{id:"searchQuickReply",onClick:t,children:n.formatMessage({id:"chat.menu.quickreply.search",defaultMessage:"搜索知识库"})})]})})},PGt=({isDarkMode:e,imageInputRef:t,fileInputRef:n,handleImageChange:r,handleFileChange:i})=>x.jsxs(x.Fragment,{children:[e&&x.jsx(qH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:wse})}),x.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:t,onChange:r}),x.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:i})]}),OGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"邀请会话"}),x.jsx(tp,{children:r})]})})},RGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"同意转接会话"}),x.jsx(tp,{children:r})]})})},IGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"拒绝转接会话"}),x.jsx(tp,{children:r})]})})},jGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"同意邀请会话"}),x.jsx(tp,{children:r})]})})},NGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"拒绝邀请会话"}),x.jsx(tp,{children:r})]})})},XA=({fromTicketTab:e=!1,ticket:t})=>{const n=jn(),{translateString:r}=Zr(),i=r7(),[a,o]=d.useState(""),[s]=BVt(a,1e3),l=ia(Ze=>Ze.userInfo),c=Eo(Ze=>Ze.agentInfo),u=Na(Ze=>Ze.memberInfo),[f,p]=d.useState(0),{messages:h,appendMsg:m,updateMsg:g,resetList:v}=dwe([]),{currentThread:y,currentTicketThread:w,setCurrentTicketThread:b}=fr(Ze=>({currentThread:Ze.currentThread,currentTicketThread:Ze.currentTicketThread,setCurrentTicketThread:Ze.setCurrentTicketThread})),[C,k]=d.useState(e?w:y),[S,_]=d.useState(!1),[E]=d.useState(""),[$,M]=d.useState(r("i18n.load.more")),P=d.useRef(null),R=d.useRef(null),O=d.useRef(!1),j=d.useRef(null),I=d.useRef(null),{isDarkMode:A,locale:N}=d.useContext(Ea),[F,K]=d.useState(null),[L,V]=yr.useModal(),[B,U]=d.useState(""),[Y,ee]=d.useState(!1),[ie,Z]=d.useState(!1),[X,ae]=d.useState(!1),[oe,le]=d.useState(!1),[ce,pe]=d.useState(!1),[me,re]=d.useState(!1),[fe,ve]=d.useState(!1),[$e,Ce]=d.useState(!1),[be,Se]=d.useState(!1),[we,se]=d.useState(!1),[ye,Oe]=d.useState(""),[z,H]=d.useState(!1),[G,de]=d.useState(!1),[xe,he]=d.useState(!1),[Ue,We]=d.useState(!1),ge=ja(Ze=>Ze.currentTicket),{messageList:ze,addMessage:Ve,addMessageProtobuf:Be,addMessageList:Xe,updateMessage:Ke}=Td(Ze=>({messageList:Ze.messageList,addMessage:Ze.addMessage,addMessageProtobuf:Ze.addMessageProtobuf,addMessageList:Ze.addMessageList,updateMessage:Ze.updateMessage})),qe=async Ze=>{if(Ze==null){v(),k(null),b(null);return}je.loading(r("i18n.loading"));const bt=await RUt(Ze);if(console.log("ChatPage fetchTicketThread:",Ze,bt.data),bt.data.code===200){const sn=bt.data.data;k(sn),b(sn)}else je.error(bt.data.message);je.destroy()};d.useEffect(()=>{e&&qe(t==null?void 0:t.threadUid),((t==null?void 0:t.threadUid)===null||(t==null?void 0:t.threadUid)===void 0)&&(v(),k(null),b(null))},[t,e]),d.useEffect(()=>{!e&&y&&k(y)},[y]);let Et=[{name:n.formatMessage({id:"chat.toolbar.emoji",defaultMessage:"表情"}),type:"emoji",code:"emoji",icon:"smile",isHighlight:!1},{name:n.formatMessage({id:"chat.toolbar.image",defaultMessage:"图片"}),type:"image",code:"image",icon:"image",isHighlight:!1},{name:n.formatMessage({id:"chat.toolbar.file",defaultMessage:"文件"}),type:"file",code:"file",icon:"file",isHighlight:!1}];const[ut,gt]=d.useState(Et),{show:Qe}=V3e({id:dse}),nt=(Ze,bt)=>{console.log("handleContextMenu:",Ze," item:",bt),K(bt),Qe({event:Ze,props:{key:bt==null?void 0:bt._id.toString()}})},jt=({id:Ze,event:bt,props:sn})=>{console.log("handleRightClick:",Ze,bt,sn);const Pn=F==null?void 0:F._id.toString();switch(Ze){case"copy":navigator.clipboard.writeText(r(F==null?void 0:F.content)).then(()=>{je.success(n.formatMessage({id:"chat.copy.success",defaultMessage:"复制成功"}))}).catch(qn=>{console.error("无法复制文本: ",qn),je.error(qn)});break;case"enlarge":Jct(F==null?void 0:F.content);break;case"translate":Lt(Pn,F==null?void 0:F.content);break;case"forward":pe(!0);break;case"browser-open":F0(F==null?void 0:F.content);break;case"recall":jct(Pn,C);break;case"addquickreply":Bt();break;case"ai":Ut();break;case"searchQuickReply":Ne();break;case"collect":case"quote":case"delete":default:je.warning("TODO: 即将上线,敬请期待");break}},Lt=async(Ze,bt)=>{var Pn,qn,ln;const sn=await u$e(Ze,bt);if(console.log("ChatPage handleTranslate",sn.data),sn.data.code===200){const or=(Pn=sn==null?void 0:sn.data)==null?void 0:Pn.data.msgUid,ri=(qn=sn==null?void 0:sn.data)==null?void 0:qn.data.result,wn=ze.find(An=>An.uid===or);wn&&(wn.content=wn.content+` -`+ri,Ke(wn),g(or,{_id:F==null?void 0:F._id,type:F==null?void 0:F.type,hasTime:F==null?void 0:F.hasTime,createdAt:F==null?void 0:F.createdAt,content:wn==null?void 0:wn.content,position:F==null?void 0:F.position,user:F==null?void 0:F.user,status:wn==null?void 0:wn.type}))}else je.error((ln=sn==null?void 0:sn.data)==null?void 0:ln.message)},Bt=()=>{const Ze=JSON.stringify(F);$n.emit(eR,Ze)},Ut=Ze=>{const bt=JSON.stringify(Ze||F);$n.emit(Nw,bt)},Ne=Ze=>{const bt=JSON.stringify(Ze||F);$n.emit(Aw,bt)},He=async()=>{var sn;je.loading(n.formatMessage({id:"chat.thread.closing",defaultMessage:"结束会话中..."}));const Ze={uid:C==null?void 0:C.uid},bt=await DUt(Ze);console.log("handleCloseThread",bt.data),bt.data.code===200?(k((sn=bt==null?void 0:bt.data)==null?void 0:sn.data),je.destroy(),je.success(n.formatMessage({id:"chat.thread.close.success",defaultMessage:"结束会话成功"}))):(je.destroy(),je.error(bt.data.message))},Le=()=>{var Ze;L.confirm({title:n.formatMessage({id:"chat.thread.close.confirm.title",defaultMessage:"确定要结束会话?"}),icon:x.jsx(qf,{}),content:x.jsx(x.Fragment,{children:(Ze=C==null?void 0:C.user)==null?void 0:Ze.nickname}),onOk(){console.log("OK"),He()},onCancel(){console.log("Cancel")}})},Je=async()=>{if(O.current)return;O.current=!0,je.loading(r("i18n.loading"));const Ze={pageNumber:f,pageSize:20,topic:C==null?void 0:C.topic},bt=await l$e(Ze);console.log("ChatPage getHistoryMessages: ",bt.data,Ze),je.destroy(),bt.data.code===200?(Xe(bt.data.data.content),bt.data.data.last?(M(""),je.success(r("i18n.load.nomore"))):p(f+1)):bt.data.code===601||je.error(bt.data.message),O.current=!1};d.useEffect(()=>{p(0),M(r("i18n.load.more")),ze.length===0&&Je();let Ze=[];if(Nl){const bt={name:n.formatMessage({id:"chat.toolbar.audio",defaultMessage:"录音"}),type:"audio",code:"audio",icon:"mic",isHighlight:!1};Ze.push(bt);const sn={name:n.formatMessage({id:"chat.toolbar.webrtc",defaultMessage:"视频会话"}),type:"webrtc",code:"webrtc",icon:"play-circle",isHighlight:!1};Ze.push(sn)}if(Rf(C)){const bt={name:n.formatMessage({id:"chat.toolbar.autoreply",defaultMessage:"自动回复"}),type:"autoreply",code:"autoreply",icon:"apps"};Ze.push(bt);const sn={name:n.formatMessage({id:"chat.toolbar.invite.rate",defaultMessage:"邀请评价"}),type:pv,code:pv,icon:"thumbs-up",isHighlight:!1};Ze.push(sn);const Pn={name:n.formatMessage({id:"chat.toolbar.block",defaultMessage:"拉黑"}),type:"block",code:"block",icon:"thumbs-down"};if(Ze.push(Pn),Nl){const qn={name:n.formatMessage({id:"chat.toolbar.history",defaultMessage:"历史消息"}),type:"history",code:"history",icon:"message"};Ze.push(qn)}}if(Fk(C)&&(Et=[],Ze=[]),ha){const bt={name:n.formatMessage({id:"chat.toolbar.screenshot",defaultMessage:"截图"}),type:"screenshot",code:"screenshot",icon:"camera",isHighlight:!1};Ze.push(bt)}gt([...Et,...Ze]),P.current&&P.current.scrollToEnd()},[C,N]);const pt=(Ze,bt)=>{if(console.log("handleSend",Ze,bt),U(""),!i){je.error(n.formatMessage({id:"chat.network.error",defaultMessage:"网络连接失败,请检查网络"}));return}Ze===vo.toLowerCase()&&bt.trim()?xt(bt):je.error("暂不支持消息类型")},xt=Ze=>{const bt=Ba();if(eRe(C)){Ct();const sn=bde(C,l,c,bt,vo,Ze,Pv());Ve(sn);const Pn=SL(C,l,c,bt,vo,Ze,Pv());Mle(JSON.stringify(Pn),function(qn){console.log("sendSseMessage receive: ",qn),Be(qn),kt()})}else m({_id:bt,type:vo,status:$p,hasTime:!0,createdAt:en().toDate().getTime(),content:Ze,position:"right",user:Mr()}),Ect(bt,Ze,e,C);P.current.scrollToEnd()};d.useEffect(()=>{var Ze;((Ze=C==null?void 0:C.topic)==null?void 0:Ze.length)>0&&s.trim().length>0&&Oct(C,e)},[s,C]);const Nt=Ze=>{U(Ze),o(Ze)},Ot=Ze=>(console.log("ChatPage handleImageSend",Ze),KC(Ze,bt=>{qt(bt.data.fileUrl,Cl)}),null),Pt=Ze=>{var sn;console.log("handleImageChange event: ",Ze);const bt=(sn=Ze.target.files)==null?void 0:sn.item(0);bt&&(console.log("handleImageChange file: ",bt),KC(bt,Pn=>{qt(Pn.data.fileUrl,Cl)}))},st=Ze=>{var sn;console.log("handleFileChange event: ",Ze);const bt=(sn=Ze.target.files)==null?void 0:sn.item(0);bt&&(console.log("handleFileChange file: ",bt),KC(bt,Pn=>{qt(Pn.data.fileUrl,cd)}))},Ct=()=>{_(!0)},kt=()=>{_(!1)},qt=(Ze,bt)=>{console.log("handleImageDropSend",Ze);const sn=Ba();m({_id:sn,type:bt,status:$p,hasTime:!0,createdAt:en().toDate().getTime(),content:Ze,position:"right",user:{avatar:l.avatar}}),wo(sn,bt,Ze,C,e),P.current.scrollToEnd(),console.log("scrollToEnd:",P)},vt=()=>{console.log("handleAutoReplyModelOk"),Z(!1)},At=()=>{console.log("handleAutoReplyModelCancel"),Z(!1)},dt=()=>{console.log("handleTransferThreadModelOk"),ae(!1)},De=()=>{console.log("handleTransferThreadModelCancel"),ae(!1)},Ye=()=>{console.log("handleInviteThreadModelOk"),le(!1)},ot=()=>{console.log("handleInviteThreadModelCancel"),le(!1)},Re=()=>{console.log("handleForwardMessageModelOk"),pe(!1)},It=()=>{console.log("handleForwardMessageModelCancel"),pe(!1)},rt=()=>{console.log("handleTransferMessageModelOk"),re(!1)},$t=()=>{console.log("handleTransferMessageModelCancel"),re(!1)},Mt=()=>{console.log("handleHistoryMessageModelOk"),ve(!1)},dn=()=>{console.log("handleHistoryMessageModelCancel"),ve(!1)},pn=()=>{console.log("handleTicketCreateModelSuccess"),Ce(!1)},T=()=>{console.log("handleTicketCreateModelCancel"),Ce(!1)},D=()=>{console.log("handleBlockModelOk"),Se(!1)},J=()=>{console.log("handleBlockModelCancel"),Se(!1)},ke=()=>{console.log("handleWebRtcModelOk"),se(!1)},Ie=()=>{console.log("handleWebRtcModelCancel"),se(!1)},it=()=>{console.log("handleScreenRecorderModelOk"),H(!1)},Ft=()=>{console.log("handleScreenRecorderModelCancel"),H(!1)},rn=Ze=>{console.log("handleEmojiSelect",Ze),ee(!1),U(B+Ze),R.current.setText(B+Ze)},On=(Ze,bt)=>{console.log("QuickButton:",Ze,bt),Ze.code===pv?L.confirm({title:n.formatMessage({id:"chat.rate.invite.confirm.title",defaultMessage:"确认要邀请评价?"}),okText:n.formatMessage({id:"common.confirm",defaultMessage:"确认"}),cancelText:n.formatMessage({id:"common.cancel",defaultMessage:"取消"}),onOk:()=>{Pct(C)},onCancel:()=>{console.log("onCancel")}}):Ze.code==="autoreply"?Z(!0):Ze.type==="emoji"?ee(!0):Ze.type==="image"?j.current.click():Ze.type==="file"?I.current.click():Ze.type==="screenshot"?(eut(),ha||gr()):Ze.type==="audio"||Ze.type==="webrtc"?se(!0):Ze.type==="history"?ve(!0):Ze.type==="block"&&Se(!0)},Er=Ze=>{var bt,sn,Pn;return(Ze==null?void 0:Ze.type)===rR?"left":(Ze==null?void 0:Ze.type)===G3?"center":((bt=Ze==null?void 0:Ze.user)==null?void 0:bt.uid)===(l==null?void 0:l.uid)||((sn=Ze==null?void 0:Ze.user)==null?void 0:sn.uid)===(c==null?void 0:c.uid)||((Pn=Ze==null?void 0:Ze.user)==null?void 0:Pn.uid)===(u==null?void 0:u.uid)?"right":"left"},Mr=()=>e?{avatar:u==null?void 0:u.avatar,name:u==null?void 0:u.nickname}:Rf(C)?{avatar:c==null?void 0:c.avatar,name:c==null?void 0:c.nickname}:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname};d.useEffect(()=>{const Ze=[];ze.forEach(bt=>{var Pn,qn;let sn=!1;if(uRe(C==null?void 0:C.topic)){const ln=dRe(C==null?void 0:C.topic);console.log("useEffect messageList :",bt==null?void 0:bt.topic,C==null?void 0:C.topic,ln),((bt==null?void 0:bt.topic)===(C==null?void 0:C.topic)||(bt==null?void 0:bt.topic)===ln)&&(sn=!0)}else(bt==null?void 0:bt.topic)===(C==null?void 0:C.topic)&&(sn=!0);sn&&Ze.push({_id:bt==null?void 0:bt.uid,type:bt==null?void 0:bt.type,status:bt==null?void 0:bt.status,hasTime:!0,createdAt:en(bt==null?void 0:bt.createdAt).toDate().getTime(),content:r(bt==null?void 0:bt.content),position:Er(bt),user:{avatar:(Pn=bt==null?void 0:bt.user)==null?void 0:Pn.avatar,name:r((qn=bt==null?void 0:bt.user)==null?void 0:qn.nickname)}})}),v(Ze)},[ze,C]);const mr=Ze=>{console.log("handleResendMessage",Ze);const{_id:bt,type:sn,content:Pn}=Ze;wo(bt.toString(),sn,Pn,C,e)},pr=Ze=>{console.log("handlePhoneClick",Ze),Ze&&(navigator.clipboard.writeText(Ze),je.success("电话号码:"+Ze+" 已复制到剪贴板"))},cn=Ze=>{console.log("handleEmailClick",Ze),Ze&&(navigator.clipboard.writeText(Ze),je.success("邮箱:"+Ze+" 已复制到剪贴板"))},Sn=Ze=>{const{_id:bt,type:sn,content:Pn,position:qn,status:ln,createdAt:or}=Ze;switch(sn){case _se:case vo:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{content:r(Pn),isRichText:yde(Pn),onPhoneClick:pr,onEmailClick:cn,onContextMenu:()=>nt(event,Ze),onAiClick:()=>{Ut(Ze)},onSearchClick:()=>{Ne(Ze)},showFunctionButtons:qn==="left"}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case $f:return x.jsxs(x.Fragment,{children:[x.jsx(R3e,{uid:bt.toString(),content:Pn,thread:C}),qn==="right"&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case kse:return x.jsx(x.Fragment,{children:x.jsx(pqt,{content:Pn,createdAt:or})});case Cl:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{type:"image",onContextMenu:()=>nt(event,Ze),children:x.jsx(p4e,{src:Pn,children:x.jsx("img",{src:Pn,alt:""})})}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case cd:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{type:"file",onContextMenu:()=>nt(event,Ze),children:x.jsx(Cwe,{fileUrl:Pn,children:x.jsx(Yt,{onClick:()=>F0(Pn),children:"下载文件"})})}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case sg:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{style:{maxWidth:200},onContextMenu:()=>nt(event,Ze),children:x.jsx(JAt,{src:Ze.content})}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case t5e:return x.jsx(x.Fragment,{children:x.jsx(Xs,{size:"xl",children:x.jsx(eDt,{img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"这个商品名称非常非常长长到会换行",desc:"商品描述",tags:[{name:"3个月免息"},{name:"4.1折"},{name:"黑卡再省33.96"}],currency:"¥",meta:"7人付款",count:6,unit:"kg",onClick:ri=>console.log(ri),action:{onClick(ri){console.log(ri),ri.stopPropagation()}}})})});case rR:return x.jsx(x.Fragment,{children:x.jsx(oqt,{content:Pn,status:ln,type:sn})});case Ese:return x.jsx(x.Fragment,{children:x.jsx(qu,{onContextMenu:()=>nt(event,Ze),children:x.jsx(lqt,{uid:bt.toString(),content:Pn})})});case o5e:return x.jsx(x.Fragment,{children:x.jsx(qu,{onContextMenu:()=>nt(event,Ze),children:x.jsx(sqt,{uid:bt.toString()})})});case c5e:case pv:return x.jsxs(x.Fragment,{children:[x.jsx(zVt,{uid:bt.toString(),content:Pn,status:ln,type:sn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case yF:return x.jsxs(x.Fragment,{children:[x.jsx(cqt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case bF:return x.jsxs(x.Fragment,{children:[x.jsx(RGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case wF:return x.jsxs(x.Fragment,{children:[x.jsx(IGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case xF:return x.jsxs(x.Fragment,{children:[x.jsx(OGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case SF:return x.jsxs(x.Fragment,{children:[x.jsx(jGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case CF:return x.jsxs(x.Fragment,{children:[x.jsx(NGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});default:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{content:r(Pn),onContextMenu:()=>nt(event,Ze)}),qn==="right"&&!Fo(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]})}};async function gr(){navigator.mediaDevices.getDisplayMedia({video:!0}).then(Ze=>{const bt=document.createElement("canvas");bt.width=window.innerWidth,bt.height=window.innerHeight;const sn=document.createElement("video");sn.srcObject=Ze,sn.play(),sn.addEventListener("loadedmetadata",()=>{bt.getContext("2d").drawImage(sn,0,0,bt.width,bt.height);const qn=bt.toDataURL("image/png");console.log("dataURL:",qn),Oe(qn),H(!0),Ze.getTracks().forEach(ln=>ln.stop())})}).catch(Ze=>{console.error("Error accessing screen:",Ze)})}d.useEffect(()=>{const Ze=ln=>{var An;const or=JSON.parse(ln),ri=(An=or==null?void 0:or.uid)==null?void 0:An.toString(),wn=h.find(tr=>tr._id.toString()===ri);wn?g(or==null?void 0:or.uid,{_id:wn==null?void 0:wn._id,type:wn==null?void 0:wn.type,hasTime:wn==null?void 0:wn.hasTime,createdAt:wn==null?void 0:wn.createdAt,content:wn==null?void 0:wn.content,position:wn==null?void 0:wn.position,user:wn==null?void 0:wn.user,status:or==null?void 0:or.type}):console.log("handleMessageTypeStatus msg is undefined")},bt=ln=>{console.log("EVENT_BUS_SEND_IMAGE_MESSAGE",ln);const or=Ba();m({_id:or,type:Cl,status:$p,createdAt:en().toDate().getTime(),content:ln,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),$ct(or,ln,e,C)},sn=ln=>{console.log("EVENT_BUS_SEND_FILE_MESSAGE",ln);const or=Ba();m({_id:or,type:cd,status:$p,createdAt:en().toDate().getTime(),content:ln,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),Mct(or,ln,e,C)},Pn=ln=>{console.log("handleScreenCaptureImage",ln),Oe(ln),H(!0)},qn=ln=>{console.log("handleQuickButtonClick",ln);const or=JSON.parse(ln),ri=Ba();m({_id:ri,type:or.type,status:$p,createdAt:en().toDate().getTime(),content:or.content,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),wo(ri,or.type,or.content,C,e)};return $n.on(mk,Ze),$n.on(RC,bt),$n.on(IM,sn),$n.on(QO,Pn),$n.on(JO,qn),()=>{$n.off(RC),$n.off(IM),$n.off(mk,Ze),$n.off(RC,bt),$n.off(IM,sn),$n.off(QO,Pn),$n.off(JO,qn)}},[h]);const on={"@":[{value:"all",label:"所有人"},{value:"one",label:"Person"}],"/":[{value:"test1",label:"Test1"},{value:"test2",label:"Test2"}]};return e&&!ge?x.jsx(za,{style:{marginTop:200},description:!1}):x.jsxs(x.Fragment,{children:[x.jsx(PGt,{isDarkMode:A,imageInputRef:j,fileInputRef:I,handleImageChange:Pt,handleFileChange:st}),x.jsxs(DVt,{onImageSend:qt,children:[x.jsx(mqt,{fromTicketTab:e,chatThread:C,typing:S,previewContent:E,setIsTransferThreadModelOpen:ae,setIsInviteThreadModelOpen:le,setIsTicketCreateModelOpen:Ce,showCloseThreadConfirm:Le,setIsGroupInfoDrawerOpen:de,setIsMemberInfoDrawerOpen:he,setIsRobotInfoDrawerOpen:We}),(C==null?void 0:C.topic)===""?x.jsx(x.Fragment,{children:x.jsx(za,{style:{marginTop:200},description:!1})}):x.jsxs(x.Fragment,{children:[x.jsx(aqt,{children:x.jsx(Mwe,{elderMode:!1,loadMoreText:$,onRefresh:Je,messages:h,isTyping:S,showTransition:!1,translationPlaceholder:n.formatMessage({id:"chat.translation.placeholder",defaultMessage:"请输入翻译内容..."}),messagesRef:P,renderMessageContent:Sn,text:B,composerRef:R,inputOptions:{showCount:!0},quickReplies:ut,onQuickReplyClick:On,onSend:pt,placeholder:n.formatMessage({id:"chat.input.placeholder",defaultMessage:"请输入内容, Ctrl+V 粘贴截图/图片"}),onInputChange:Nt,onImageSend:Ot,wideBreakpoint:"600px",recorder:{canRecord:!1},metionOptions:on,fromTicketTab:e,chatThread:C})}),x.jsx(TGt,{fromTicketTab:e,chatThread:C,contextMessage:F,handleRightClick:jt})]}),x.jsx(MGt,{fromTicketTab:e,chatThread:C,isAutoReplyModelOpen:ie,handleAutoReplyModelOk:vt,handleAutoReplyModelCancel:At,isTransferThreadModelOpen:X,handleTransferThreadModelOk:dt,handleTransferThreadModelCancel:De,isInviteThreadModelOpen:oe,handleInviteThreadModelOk:Ye,handleInviteThreadModelCancel:ot,isForwardMessageModelOpen:ce,handleForwardMessageModelOk:Re,handleForwardMessageModelCancel:It,isTransferMessageModelOpen:me,handleTransferMessageModelOk:rt,handleTransferMessageModelCancel:$t,isHistoryMessageModelOpen:fe,handleHistoryMessageModelOk:Mt,handleHistoryMessageModelCancel:dn,isTicketCreateModelOpen:$e,handleTicketCreateModelSuccess:pn,handleTicketCreateModelCancel:T,isBlockModelOpen:be,handleBlockModelOk:D,handleBlockModelCancel:J,isWebRtcModelOpen:we,handleWebRtcModelOk:ke,handleWebRtcModelCancel:Ie,isScreenRecorderModelOpen:z,screenShotImg:ye,handleScreenRecorderModelOk:it,handleScreenRecorderModelCancel:Ft,isGroupInfoDrawerOpen:G,setIsGroupInfoDrawerOpen:de,isMemberInfoDrawerOpen:xe,setIsMemberInfoDrawerOpen:he,isRobotInfoDrawerOpen:Ue,setIsRobotInfoDrawerOpen:We,showEmoji:Y,handleEmojiSelect:rn,setShowEmoji:ee}),V]})]})},{Sider:AGt,Header:DGt,Content:Wre}=Qn,ZA=()=>{const e=jn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co(),{currentThread:a,queuingThreads:o,showQueueList:s}=fr(l=>({currentThread:l.currentThread,queuingThreads:l.queuingThreads,showQueueList:l.showQueueList,showRightPanel:l.showRightPanel}));return x.jsxs(Qn,{children:[x.jsx(AGt,{style:t,width:n,id:"scrollableDiv",children:x.jsx(DWt,{})}),x.jsxs(Qn,{children:[s&&x.jsxs(x.Fragment,{children:[x.jsx(DGt,{style:r,children:x.jsxs(Xr,{children:[x.jsx(xve,{}),e.formatMessage({id:"i18n.queue.tip"})+"("+o.length+")"]})}),x.jsx(Wre,{style:i,children:x.jsx(FWt,{})})]}),!s&&x.jsxs(x.Fragment,{children:[YI(a)&&x.jsxs(Bp,{children:[x.jsx(Bp.Panel,{children:x.jsx(XA,{})}),x.jsx(Bp.Panel,{defaultSize:"40%",children:x.jsx(bWt,{})})]}),!YI(a)&&x.jsx(Wre,{style:i,children:x.jsx(XA,{})})]})]})]})};function bU(){const[e,t]=d.useState(!1),[n,r]=d.useState(!1),i=async(o,s)=>{ha?await Xct()?console.log("showWebNotification handleNewMessage isWindowActive"):(console.log("showWebNotification handleNewMessage not isWindowActive"),Zct(o,s)):n?(console.log("showWebNotification handleNewMessage isBrowserTabHidden"),a(o,s)):console.log("showWebNotification handleNewMessage not isBrowserTabHidden")},a=(o,s)=>{if(localStorage.getItem(TC)!="true"){console.log("showWebNotification not showNetNotification");return}console.log("showWebNotification");const c=new Notification(o,{body:s,icon:"./logo.png"});c.onshow=function(){console.log("Notification shown")},c.onclick=function(){console.log("notification click")},c.onclose=function(){console.log("notification close")},c.onerror=function(){console.log("notification error")}};return d.useEffect(()=>(ha||(console.log("showWebNotification Notification.permission"),window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(o){t(o==="granted")}):(console.log("已经授权或浏览器不支持通知"),t(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?r(!0):document.visibilityState==="visible"&&r(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),{isNotificationGranted:e,showWebNotification:a,showNotification:i}}var mf={},Z4e={exports:{}},Q4e={exports:{}};(function(e){var t=Kbe;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Q4e);var FGt=Q4e.exports,J4e={exports:{}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(J4e);var exe=J4e.exports,txe={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(txe);var LGt=txe.exports;(function(e){var t=FGt,n=exe,r=hH,i=LGt;function a(o){return t(o)||n(o)||r(o)||i()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(Z4e);var nxe=Z4e.exports,l7={};Object.defineProperty(l7,"__esModule",{value:!0});l7.default=BGt;function BGt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var wU={};const Ih=B3(Ije);var c7={},zGt=$a.default;Object.defineProperty(c7,"__esModule",{value:!0});c7.default=UGt;var HGt=zGt(d);function UGt(e,t,n){var r=HGt.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var u7={},rxe={exports:{}};(function(e){var t=Ube,n=exe,r=hH,i=Ybe;function a(o){return t(o)||n(o)||r(o)||i()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(rxe);var WGt=rxe.exports,xU={};Object.defineProperty(xU,"__esModule",{value:!0});xU.default=VGt;function VGt(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,QA.default)(e,t.slice(0,-1))?e:oxe(e,t,n,r)}function GGt(e){return(0,ixe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Vre(e){return Array.isArray(e)?[]:{}}var YGt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function XGt(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=SU,e};pc.default=eYt;var d7={};Object.defineProperty(d7,"__esModule",{value:!0});d7.default=void 0;var tYt=d;d7.default=(0,tYt.createContext)(void 0);var lxe={},f7={},nYt=br.default;Object.defineProperty(f7,"__esModule",{value:!0});f7.changeConfirmLocale=rYt;f7.getConfirmLocale=iYt;var CU=nYt(Ig);let I_=Object.assign({},CU.default.Modal),j_=[];const qre=()=>j_.reduce((e,t)=>Object.assign(Object.assign({},e),t),CU.default.Modal);function rYt(e){if(e){const t=Object.assign({},e);return j_.push(t),I_=qre(),()=>{j_=j_.filter(n=>n!==t),I_=qre()}}I_=Object.assign({},CU.default.Modal)}function iYt(){return I_}var cb={};Object.defineProperty(cb,"__esModule",{value:!0});cb.default=void 0;var aYt=d;const oYt=(0,aYt.createContext)(void 0);cb.default=oYt;var p7={},cxe=br.default,sYt=$a.default;Object.defineProperty(p7,"__esModule",{value:!0});p7.default=void 0;var NP=sYt(d),lYt=cxe(cb),Kre=cxe(Ig);const cYt=(e,t)=>{const n=NP.useContext(lYt.default),r=NP.useMemo(()=>{var a;const o=t||Kre.default[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=NP.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Kre.default.locale:a},[n]);return[r,i]};p7.default=cYt;(function(e){"use client";var t=br.default,n=$a.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return o.default}});var r=n(d),i=f7,a=t(cb),o=t(p7);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:f}=l;r.useEffect(()=>(0,i.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const p=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(a.default.Provider,{value:p},u)};e.default=s})(lxe);var hd={},_U={},Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});Ed.defaultPresetColors=Ed.default=void 0;const uYt=Ed.defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},dYt=Object.assign(Object.assign({},uYt),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +`;function $Gt(e){const t=d.useRef(null),n=d.useRef(null);return n.current&&n.current.update(e),d.useEffect(()=>(n.current=new yU({...e,ref:t}),()=>{n.current=null}),[]),te.createElement("div",{ref:t})}const MGt=({onSelect:e,onClose:t})=>{const[n,r]=d.useState(!0),i=a=>{r(!1),e(a.native)};return x.jsx(IAt,{className:"EmojiPicker",active:n,onClose:()=>{r(!1),t()},title:"请选择表情",children:x.jsx("div",{children:x.jsx($Gt,{data:BKt,onEmojiSelect:i})})})},TGt=({isAutoReplyModelOpen:e,handleAutoReplyModelOk:t,handleAutoReplyModelCancel:n,isTransferThreadModelOpen:r,handleTransferThreadModelOk:i,handleTransferThreadModelCancel:a,isInviteThreadModelOpen:o,handleInviteThreadModelOk:s,handleInviteThreadModelCancel:l,isForwardMessageModelOpen:c,handleForwardMessageModelOk:u,handleForwardMessageModelCancel:f,isTransferMessageModelOpen:p,handleTransferMessageModelOk:h,handleTransferMessageModelCancel:m,isHistoryMessageModelOpen:g,handleHistoryMessageModelOk:v,handleHistoryMessageModelCancel:y,isTicketCreateModelOpen:w,handleTicketCreateModelSuccess:b,handleTicketCreateModelCancel:C,isBlockModelOpen:k,handleBlockModelOk:S,handleBlockModelCancel:_,isWebRtcModelOpen:E,handleWebRtcModelOk:$,handleWebRtcModelCancel:M,isScreenRecorderModelOpen:P,screenShotImg:R,handleScreenRecorderModelOk:O,handleScreenRecorderModelCancel:j,isGroupInfoDrawerOpen:I,setIsGroupInfoDrawerOpen:A,isMemberInfoDrawerOpen:N,setIsMemberInfoDrawerOpen:F,isRobotInfoDrawerOpen:K,setIsRobotInfoDrawerOpen:L,showEmoji:V,handleEmojiSelect:B,setShowEmoji:U})=>x.jsxs(x.Fragment,{children:[e&&x.jsx(bqt,{open:e,onOk:t,onCancel:n}),r&&x.jsx(hKt,{open:r,onOk:i,onCancel:a}),o&&x.jsx(gKt,{open:o,onOk:s,onCancel:l}),c&&x.jsx(uKt,{open:c,onOk:u,onCancel:f}),p&&x.jsx(fKt,{open:p,onOk:h,onCancel:m}),g&&x.jsx(dKt,{open:g,onOk:v,onCancel:y}),w&&x.jsx(_4e,{open:w,onSuccess:b,onCancel:C}),k&&x.jsx(G3e,{open:k,onOk:S,onCancel:_}),E&&x.jsx(vKt,{open:E,onOk:$,onCancel:M}),P&&x.jsx(iKt,{open:P,screenShotImg:R,onOk:O,onCancel:j}),I&&x.jsx(MKt,{open:I,onClose:()=>A(!1)}),N&&x.jsx(TKt,{open:N,onClose:()=>F(!1)}),K&&x.jsx(NKt,{open:K,onClose:()=>L(!1)}),V&&x.jsx(MGt,{onSelect:B,onClose:()=>U(!1)})]}),PGt=({contextMessage:e,handleRightClick:t})=>{const n=jn(),{isDarkMode:r,hasRoleAgent:i}=d.useContext(Ea);return x.jsx(x.Fragment,{children:x.jsxs(q3e,{id:use,theme:r?"dark":"light",children:[x.jsx(ci,{id:"copy",onClick:t,children:n.formatMessage({id:"chat.menu.copy",defaultMessage:"复制"})}),(e==null?void 0:e.type)===vo&&x.jsx(ci,{id:"translate",onClick:t,children:n.formatMessage({id:"chat.menu.translate",defaultMessage:"翻译"})}),(e==null?void 0:e.position)==="right"&&x.jsx(ci,{id:"recall",onClick:t,children:n.formatMessage({id:"chat.menu.recall",defaultMessage:"撤回"})}),ha&&(e==null?void 0:e.type)===vo&&x.jsx(ci,{id:"enlarge",onClick:t,children:n.formatMessage({id:"chat.menu.enlarge",defaultMessage:"放大阅读"})}),i&&x.jsx(ci,{id:"addquickreply",onClick:t,children:n.formatMessage({id:"chat.menu.quickreply.add",defaultMessage:"添加快捷回复..."})}),(e==null?void 0:e.type)===Sl&&x.jsxs(x.Fragment,{children:[x.jsx(Wv,{}),x.jsx(ci,{id:"browser-open",onClick:t,children:n.formatMessage({id:"chat.menu.browser.open",defaultMessage:"浏览器打开"})})]}),jl&&x.jsxs(x.Fragment,{children:[x.jsx(Wv,{}),x.jsx(ci,{id:"forward",onClick:t,children:n.formatMessage({id:"chat.menu.forward",defaultMessage:"转发..."})}),x.jsx(ci,{id:"collect",onClick:t,children:n.formatMessage({id:"chat.menu.collect",defaultMessage:"收藏"})}),x.jsx(ci,{id:"quote",onClick:t,children:n.formatMessage({id:"chat.menu.quote",defaultMessage:"引用"})})]}),x.jsx(Wv,{}),x.jsx(ci,{id:"ai",onClick:t,children:n.formatMessage({id:"chat.menu.ai",defaultMessage:"问AI"})}),x.jsx(ci,{id:"searchQuickReply",onClick:t,children:n.formatMessage({id:"chat.menu.quickreply.search",defaultMessage:"搜索知识库"})})]})})},OGt=({isDarkMode:e,imageInputRef:t,fileInputRef:n,handleImageChange:r,handleFileChange:i})=>x.jsxs(x.Fragment,{children:[e&&x.jsx(qH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:bse})}),x.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:t,onChange:r}),x.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:i})]}),RGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"邀请会话"}),x.jsx(tp,{children:r})]})})},IGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"同意转接会话"}),x.jsx(tp,{children:r})]})})},jGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"拒绝转接会话"}),x.jsx(tp,{children:r})]})})},NGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"同意邀请会话"}),x.jsx(tp,{children:r})]})})},AGt=({content:e,status:t,position:n})=>{const[r,i]=d.useState("");return d.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&i(a.note)},[e,t]),x.jsx(x.Fragment,{children:x.jsxs(Xs,{children:[x.jsx(np,{children:"拒绝邀请会话"}),x.jsx(tp,{children:r})]})})},XA=({fromTicketTab:e=!1,ticket:t})=>{const n=jn(),{translateString:r}=Zr(),i=r7(),[a,o]=d.useState(""),[s]=zVt(a,1e3),l=ia(Ze=>Ze.userInfo),c=Eo(Ze=>Ze.agentInfo),u=Na(Ze=>Ze.memberInfo),[f,p]=d.useState(0),{messages:h,appendMsg:m,updateMsg:g,resetList:v}=uwe([]),{currentThread:y,currentTicketThread:w,setCurrentTicketThread:b}=fr(Ze=>({currentThread:Ze.currentThread,currentTicketThread:Ze.currentTicketThread,setCurrentTicketThread:Ze.setCurrentTicketThread})),[C,k]=d.useState(e?w:y),[S,_]=d.useState(!1),[E]=d.useState(""),[$,M]=d.useState(r("i18n.load.more")),P=d.useRef(null),R=d.useRef(null),O=d.useRef(!1),j=d.useRef(null),I=d.useRef(null),{isDarkMode:A,locale:N}=d.useContext(Ea),[F,K]=d.useState(null),[L,V]=yr.useModal(),[B,U]=d.useState(""),[Y,ee]=d.useState(!1),[ie,Z]=d.useState(!1),[X,ae]=d.useState(!1),[oe,le]=d.useState(!1),[ce,pe]=d.useState(!1),[me,re]=d.useState(!1),[fe,ve]=d.useState(!1),[$e,Ce]=d.useState(!1),[be,Se]=d.useState(!1),[we,se]=d.useState(!1),[ye,Oe]=d.useState(""),[z,H]=d.useState(!1),[G,de]=d.useState(!1),[xe,he]=d.useState(!1),[Ue,We]=d.useState(!1),ge=ja(Ze=>Ze.currentTicket),{messageList:ze,addMessage:Ve,addMessageProtobuf:Be,addMessageList:Xe,updateMessage:Ke}=Td(Ze=>({messageList:Ze.messageList,addMessage:Ze.addMessage,addMessageProtobuf:Ze.addMessageProtobuf,addMessageList:Ze.addMessageList,updateMessage:Ze.updateMessage})),qe=async Ze=>{if(Ze==null){v(),k(null),b(null);return}je.loading(r("i18n.loading"));const bt=await OUt(Ze);if(console.log("ChatPage fetchTicketThread:",Ze,bt.data),bt.data.code===200){const sn=bt.data.data;k(sn),b(sn)}else je.error(bt.data.message);je.destroy()};d.useEffect(()=>{e&&qe(t==null?void 0:t.threadUid),((t==null?void 0:t.threadUid)===null||(t==null?void 0:t.threadUid)===void 0)&&(v(),k(null),b(null))},[t,e]),d.useEffect(()=>{!e&&y&&k(y)},[y]);let Et=[{name:n.formatMessage({id:"chat.toolbar.emoji",defaultMessage:"表情"}),type:"emoji",code:"emoji",icon:"smile",isHighlight:!1},{name:n.formatMessage({id:"chat.toolbar.image",defaultMessage:"图片"}),type:"image",code:"image",icon:"image",isHighlight:!1},{name:n.formatMessage({id:"chat.toolbar.file",defaultMessage:"文件"}),type:"file",code:"file",icon:"file",isHighlight:!1}];const[ut,gt]=d.useState(Et),{show:Qe}=W3e({id:use}),nt=(Ze,bt)=>{console.log("handleContextMenu:",Ze," item:",bt),K(bt),Qe({event:Ze,props:{key:bt==null?void 0:bt._id.toString()}})},jt=({id:Ze,event:bt,props:sn})=>{console.log("handleRightClick:",Ze,bt,sn);const Pn=F==null?void 0:F._id.toString();switch(Ze){case"copy":navigator.clipboard.writeText(r(F==null?void 0:F.content)).then(()=>{je.success(n.formatMessage({id:"chat.copy.success",defaultMessage:"复制成功"}))}).catch(qn=>{console.error("无法复制文本: ",qn),je.error(qn)});break;case"enlarge":Qct(F==null?void 0:F.content);break;case"translate":Lt(Pn,F==null?void 0:F.content);break;case"forward":pe(!0);break;case"browser-open":F0(F==null?void 0:F.content);break;case"recall":Ict(Pn,C);break;case"addquickreply":Bt();break;case"ai":Ut();break;case"searchQuickReply":Ne();break;case"collect":case"quote":case"delete":default:je.warning("TODO: 即将上线,敬请期待");break}},Lt=async(Ze,bt)=>{var Pn,qn,ln;const sn=await c$e(Ze,bt);if(console.log("ChatPage handleTranslate",sn.data),sn.data.code===200){const or=(Pn=sn==null?void 0:sn.data)==null?void 0:Pn.data.msgUid,ri=(qn=sn==null?void 0:sn.data)==null?void 0:qn.data.result,wn=ze.find(An=>An.uid===or);wn&&(wn.content=wn.content+` +`+ri,Ke(wn),g(or,{_id:F==null?void 0:F._id,type:F==null?void 0:F.type,hasTime:F==null?void 0:F.hasTime,createdAt:F==null?void 0:F.createdAt,content:wn==null?void 0:wn.content,position:F==null?void 0:F.position,user:F==null?void 0:F.user,status:wn==null?void 0:wn.type}))}else je.error((ln=sn==null?void 0:sn.data)==null?void 0:ln.message)},Bt=()=>{const Ze=JSON.stringify(F);$n.emit(eR,Ze)},Ut=Ze=>{const bt=JSON.stringify(Ze||F);$n.emit(Nw,bt)},Ne=Ze=>{const bt=JSON.stringify(Ze||F);$n.emit(Aw,bt)},He=async()=>{var sn;je.loading(n.formatMessage({id:"chat.thread.closing",defaultMessage:"结束会话中..."}));const Ze={uid:C==null?void 0:C.uid},bt=await AUt(Ze);console.log("handleCloseThread",bt.data),bt.data.code===200?(k((sn=bt==null?void 0:bt.data)==null?void 0:sn.data),je.destroy(),je.success(n.formatMessage({id:"chat.thread.close.success",defaultMessage:"结束会话成功"}))):(je.destroy(),je.error(bt.data.message))},Le=()=>{var Ze;L.confirm({title:n.formatMessage({id:"chat.thread.close.confirm.title",defaultMessage:"确定要结束会话?"}),icon:x.jsx(qf,{}),content:x.jsx(x.Fragment,{children:(Ze=C==null?void 0:C.user)==null?void 0:Ze.nickname}),onOk(){console.log("OK"),He()},onCancel(){console.log("Cancel")}})},Je=async()=>{if(O.current)return;O.current=!0,je.loading(r("i18n.loading"));const Ze={pageNumber:f,pageSize:20,topic:C==null?void 0:C.topic},bt=await s$e(Ze);console.log("ChatPage getHistoryMessages: ",bt.data,Ze),je.destroy(),bt.data.code===200?(Xe(bt.data.data.content),bt.data.data.last?(M(""),je.success(r("i18n.load.nomore"))):p(f+1)):bt.data.code===601||je.error(bt.data.message),O.current=!1};d.useEffect(()=>{p(0),M(r("i18n.load.more")),ze.length===0&&Je();let Ze=[];if(jl){const bt={name:n.formatMessage({id:"chat.toolbar.audio",defaultMessage:"录音"}),type:"audio",code:"audio",icon:"mic",isHighlight:!1};Ze.push(bt);const sn={name:n.formatMessage({id:"chat.toolbar.webrtc",defaultMessage:"视频会话"}),type:"webrtc",code:"webrtc",icon:"play-circle",isHighlight:!1};Ze.push(sn)}if(Rf(C)){const bt={name:n.formatMessage({id:"chat.toolbar.autoreply",defaultMessage:"自动回复"}),type:"autoreply",code:"autoreply",icon:"apps"};Ze.push(bt);const sn={name:n.formatMessage({id:"chat.toolbar.invite.rate",defaultMessage:"邀请评价"}),type:pv,code:pv,icon:"thumbs-up",isHighlight:!1};Ze.push(sn);const Pn={name:n.formatMessage({id:"chat.toolbar.block",defaultMessage:"拉黑"}),type:"block",code:"block",icon:"thumbs-down"};if(Ze.push(Pn),jl){const qn={name:n.formatMessage({id:"chat.toolbar.history",defaultMessage:"历史消息"}),type:"history",code:"history",icon:"message"};Ze.push(qn)}}if(Dk(C)&&(Et=[],Ze=[]),ha){const bt={name:n.formatMessage({id:"chat.toolbar.screenshot",defaultMessage:"截图"}),type:"screenshot",code:"screenshot",icon:"camera",isHighlight:!1};Ze.push(bt)}gt([...Et,...Ze]),P.current&&P.current.scrollToEnd()},[C,N]);const pt=(Ze,bt)=>{if(console.log("handleSend",Ze,bt),U(""),!i){je.error(n.formatMessage({id:"chat.network.error",defaultMessage:"网络连接失败,请检查网络"}));return}Ze===vo.toLowerCase()&&bt.trim()?xt(bt):je.error("暂不支持消息类型")},xt=Ze=>{const bt=Ba();if(JOe(C)){Ct();const sn=yde(C,l,c,bt,vo,Ze,Pv());Ve(sn);const Pn=SL(C,l,c,bt,vo,Ze,Pv());$le(JSON.stringify(Pn),function(qn){console.log("sendSseMessage receive: ",qn),Be(qn),kt()})}else m({_id:bt,type:vo,status:$p,hasTime:!0,createdAt:en().toDate().getTime(),content:Ze,position:"right",user:Mr()}),kct(bt,Ze,e,C);P.current.scrollToEnd()};d.useEffect(()=>{var Ze;((Ze=C==null?void 0:C.topic)==null?void 0:Ze.length)>0&&s.trim().length>0&&Pct(C,e)},[s,C]);const Nt=Ze=>{U(Ze),o(Ze)},Ot=Ze=>(console.log("ChatPage handleImageSend",Ze),qC(Ze,bt=>{qt(bt.data.fileUrl,Sl)}),null),Pt=Ze=>{var sn;console.log("handleImageChange event: ",Ze);const bt=(sn=Ze.target.files)==null?void 0:sn.item(0);bt&&(console.log("handleImageChange file: ",bt),qC(bt,Pn=>{qt(Pn.data.fileUrl,Sl)}))},st=Ze=>{var sn;console.log("handleFileChange event: ",Ze);const bt=(sn=Ze.target.files)==null?void 0:sn.item(0);bt&&(console.log("handleFileChange file: ",bt),qC(bt,Pn=>{qt(Pn.data.fileUrl,cd)}))},Ct=()=>{_(!0)},kt=()=>{_(!1)},qt=(Ze,bt)=>{console.log("handleImageDropSend",Ze);const sn=Ba();m({_id:sn,type:bt,status:$p,hasTime:!0,createdAt:en().toDate().getTime(),content:Ze,position:"right",user:{avatar:l.avatar}}),wo(sn,bt,Ze,C,e),P.current.scrollToEnd(),console.log("scrollToEnd:",P)},vt=()=>{console.log("handleAutoReplyModelOk"),Z(!1)},At=()=>{console.log("handleAutoReplyModelCancel"),Z(!1)},dt=()=>{console.log("handleTransferThreadModelOk"),ae(!1)},De=()=>{console.log("handleTransferThreadModelCancel"),ae(!1)},Ye=()=>{console.log("handleInviteThreadModelOk"),le(!1)},ot=()=>{console.log("handleInviteThreadModelCancel"),le(!1)},Re=()=>{console.log("handleForwardMessageModelOk"),pe(!1)},It=()=>{console.log("handleForwardMessageModelCancel"),pe(!1)},rt=()=>{console.log("handleTransferMessageModelOk"),re(!1)},$t=()=>{console.log("handleTransferMessageModelCancel"),re(!1)},Mt=()=>{console.log("handleHistoryMessageModelOk"),ve(!1)},dn=()=>{console.log("handleHistoryMessageModelCancel"),ve(!1)},pn=()=>{console.log("handleTicketCreateModelSuccess"),Ce(!1)},T=()=>{console.log("handleTicketCreateModelCancel"),Ce(!1)},D=()=>{console.log("handleBlockModelOk"),Se(!1)},J=()=>{console.log("handleBlockModelCancel"),Se(!1)},ke=()=>{console.log("handleWebRtcModelOk"),se(!1)},Ie=()=>{console.log("handleWebRtcModelCancel"),se(!1)},it=()=>{console.log("handleScreenRecorderModelOk"),H(!1)},Ft=()=>{console.log("handleScreenRecorderModelCancel"),H(!1)},rn=Ze=>{console.log("handleEmojiSelect",Ze),ee(!1),U(B+Ze),R.current.setText(B+Ze)},On=(Ze,bt)=>{console.log("QuickButton:",Ze,bt),Ze.code===pv?L.confirm({title:n.formatMessage({id:"chat.rate.invite.confirm.title",defaultMessage:"确认要邀请评价?"}),okText:n.formatMessage({id:"common.confirm",defaultMessage:"确认"}),cancelText:n.formatMessage({id:"common.cancel",defaultMessage:"取消"}),onOk:()=>{Tct(C)},onCancel:()=>{console.log("onCancel")}}):Ze.code==="autoreply"?Z(!0):Ze.type==="emoji"?ee(!0):Ze.type==="image"?j.current.click():Ze.type==="file"?I.current.click():Ze.type==="screenshot"?(Jct(),ha||gr()):Ze.type==="audio"||Ze.type==="webrtc"?se(!0):Ze.type==="history"?ve(!0):Ze.type==="block"&&Se(!0)},Er=Ze=>{var bt,sn,Pn;return(Ze==null?void 0:Ze.type)===rR?"left":(Ze==null?void 0:Ze.type)===G3?"center":((bt=Ze==null?void 0:Ze.user)==null?void 0:bt.uid)===(l==null?void 0:l.uid)||((sn=Ze==null?void 0:Ze.user)==null?void 0:sn.uid)===(c==null?void 0:c.uid)||((Pn=Ze==null?void 0:Ze.user)==null?void 0:Pn.uid)===(u==null?void 0:u.uid)?"right":"left"},Mr=()=>e?{avatar:u==null?void 0:u.avatar,name:u==null?void 0:u.nickname}:Rf(C)?{avatar:c==null?void 0:c.avatar,name:c==null?void 0:c.nickname}:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname};d.useEffect(()=>{const Ze=[];ze.forEach(bt=>{var Pn,qn;let sn=!1;if(cRe(C==null?void 0:C.topic)){const ln=uRe(C==null?void 0:C.topic);console.log("useEffect messageList :",bt==null?void 0:bt.topic,C==null?void 0:C.topic,ln),((bt==null?void 0:bt.topic)===(C==null?void 0:C.topic)||(bt==null?void 0:bt.topic)===ln)&&(sn=!0)}else(bt==null?void 0:bt.topic)===(C==null?void 0:C.topic)&&(sn=!0);sn&&Ze.push({_id:bt==null?void 0:bt.uid,type:bt==null?void 0:bt.type,status:bt==null?void 0:bt.status,hasTime:!0,createdAt:en(bt==null?void 0:bt.createdAt).toDate().getTime(),content:r(bt==null?void 0:bt.content),position:Er(bt),user:{avatar:(Pn=bt==null?void 0:bt.user)==null?void 0:Pn.avatar,name:r((qn=bt==null?void 0:bt.user)==null?void 0:qn.nickname)}})}),v(Ze)},[ze,C]);const mr=Ze=>{console.log("handleResendMessage",Ze);const{_id:bt,type:sn,content:Pn}=Ze;wo(bt.toString(),sn,Pn,C,e)},pr=Ze=>{console.log("handlePhoneClick",Ze),Ze&&(navigator.clipboard.writeText(Ze),je.success("电话号码:"+Ze+" 已复制到剪贴板"))},cn=Ze=>{console.log("handleEmailClick",Ze),Ze&&(navigator.clipboard.writeText(Ze),je.success("邮箱:"+Ze+" 已复制到剪贴板"))},Sn=Ze=>{const{_id:bt,type:sn,content:Pn,position:qn,status:ln,createdAt:or}=Ze;switch(sn){case Cse:case vo:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{content:r(Pn),isRichText:vde(Pn),onPhoneClick:pr,onEmailClick:cn,onContextMenu:()=>nt(event,Ze),onAiClick:()=>{Ut(Ze)},onSearchClick:()=>{Ne(Ze)},showFunctionButtons:qn==="left"}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case $f:return x.jsxs(x.Fragment,{children:[x.jsx(O3e,{uid:bt.toString(),content:Pn,thread:C}),qn==="right"&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case _se:return x.jsx(x.Fragment,{children:x.jsx(hqt,{content:Pn,createdAt:or})});case Sl:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{type:"image",onContextMenu:()=>nt(event,Ze),children:x.jsx(f4e,{src:Pn,children:x.jsx("img",{src:Pn,alt:""})})}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case cd:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{type:"file",onContextMenu:()=>nt(event,Ze),children:x.jsx(Swe,{fileUrl:Pn,children:x.jsx(Yt,{onClick:()=>F0(Pn),children:"下载文件"})})}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case sg:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{style:{maxWidth:200},onContextMenu:()=>nt(event,Ze),children:x.jsx(QAt,{src:Ze.content})}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case e5e:return x.jsx(x.Fragment,{children:x.jsx(Xs,{size:"xl",children:x.jsx(JAt,{img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"这个商品名称非常非常长长到会换行",desc:"商品描述",tags:[{name:"3个月免息"},{name:"4.1折"},{name:"黑卡再省33.96"}],currency:"¥",meta:"7人付款",count:6,unit:"kg",onClick:ri=>console.log(ri),action:{onClick(ri){console.log(ri),ri.stopPropagation()}}})})});case rR:return x.jsx(x.Fragment,{children:x.jsx(sqt,{content:Pn,status:ln,type:sn})});case kse:return x.jsx(x.Fragment,{children:x.jsx(qu,{onContextMenu:()=>nt(event,Ze),children:x.jsx(cqt,{uid:bt.toString(),content:Pn})})});case a5e:return x.jsx(x.Fragment,{children:x.jsx(qu,{onContextMenu:()=>nt(event,Ze),children:x.jsx(lqt,{uid:bt.toString()})})});case l5e:case pv:return x.jsxs(x.Fragment,{children:[x.jsx(HVt,{uid:bt.toString(),content:Pn,status:ln,type:sn}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case yF:return x.jsxs(x.Fragment,{children:[x.jsx(uqt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case bF:return x.jsxs(x.Fragment,{children:[x.jsx(IGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case wF:return x.jsxs(x.Fragment,{children:[x.jsx(jGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case xF:return x.jsxs(x.Fragment,{children:[x.jsx(RGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case SF:return x.jsxs(x.Fragment,{children:[x.jsx(NGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});case CF:return x.jsxs(x.Fragment,{children:[x.jsx(AGt,{uid:bt.toString(),content:r(Pn),status:ln,position:qn}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]});default:return x.jsxs(x.Fragment,{children:[x.jsx(qu,{content:r(Pn),onContextMenu:()=>nt(event,Ze)}),qn==="right"&&!Do(C)&&x.jsx(ll,{status:ln,onRetry:()=>mr(Ze)})]})}};async function gr(){navigator.mediaDevices.getDisplayMedia({video:!0}).then(Ze=>{const bt=document.createElement("canvas");bt.width=window.innerWidth,bt.height=window.innerHeight;const sn=document.createElement("video");sn.srcObject=Ze,sn.play(),sn.addEventListener("loadedmetadata",()=>{bt.getContext("2d").drawImage(sn,0,0,bt.width,bt.height);const qn=bt.toDataURL("image/png");console.log("dataURL:",qn),Oe(qn),H(!0),Ze.getTracks().forEach(ln=>ln.stop())})}).catch(Ze=>{console.error("Error accessing screen:",Ze)})}d.useEffect(()=>{const Ze=ln=>{var An;const or=JSON.parse(ln),ri=(An=or==null?void 0:or.uid)==null?void 0:An.toString(),wn=h.find(tr=>tr._id.toString()===ri);wn?g(or==null?void 0:or.uid,{_id:wn==null?void 0:wn._id,type:wn==null?void 0:wn.type,hasTime:wn==null?void 0:wn.hasTime,createdAt:wn==null?void 0:wn.createdAt,content:wn==null?void 0:wn.content,position:wn==null?void 0:wn.position,user:wn==null?void 0:wn.user,status:or==null?void 0:or.type}):console.log("handleMessageTypeStatus msg is undefined")},bt=ln=>{console.log("EVENT_BUS_SEND_IMAGE_MESSAGE",ln);const or=Ba();m({_id:or,type:Sl,status:$p,createdAt:en().toDate().getTime(),content:ln,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),Ect(or,ln,e,C)},sn=ln=>{console.log("EVENT_BUS_SEND_FILE_MESSAGE",ln);const or=Ba();m({_id:or,type:cd,status:$p,createdAt:en().toDate().getTime(),content:ln,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),$ct(or,ln,e,C)},Pn=ln=>{console.log("handleScreenCaptureImage",ln),Oe(ln),H(!0)},qn=ln=>{console.log("handleQuickButtonClick",ln);const or=JSON.parse(ln),ri=Ba();m({_id:ri,type:or.type,status:$p,createdAt:en().toDate().getTime(),content:or.content,position:"right",user:{avatar:l==null?void 0:l.avatar,name:l==null?void 0:l.nickname}}),wo(ri,or.type,or.content,C,e)};return $n.on(hk,Ze),$n.on(OC,bt),$n.on(IM,sn),$n.on(QO,Pn),$n.on(JO,qn),()=>{$n.off(OC),$n.off(IM),$n.off(hk,Ze),$n.off(OC,bt),$n.off(IM,sn),$n.off(QO,Pn),$n.off(JO,qn)}},[h]);const on={"@":[{value:"all",label:"所有人"},{value:"one",label:"Person"}],"/":[{value:"test1",label:"Test1"},{value:"test2",label:"Test2"}]};return e&&!ge?x.jsx(za,{style:{marginTop:200},description:!1}):x.jsxs(x.Fragment,{children:[x.jsx(OGt,{isDarkMode:A,imageInputRef:j,fileInputRef:I,handleImageChange:Pt,handleFileChange:st}),x.jsxs(FVt,{onImageSend:qt,children:[x.jsx(gqt,{fromTicketTab:e,chatThread:C,typing:S,previewContent:E,setIsTransferThreadModelOpen:ae,setIsInviteThreadModelOpen:le,setIsTicketCreateModelOpen:Ce,showCloseThreadConfirm:Le,setIsGroupInfoDrawerOpen:de,setIsMemberInfoDrawerOpen:he,setIsRobotInfoDrawerOpen:We}),(C==null?void 0:C.topic)===""?x.jsx(x.Fragment,{children:x.jsx(za,{style:{marginTop:200},description:!1})}):x.jsxs(x.Fragment,{children:[x.jsx(oqt,{children:x.jsx($we,{elderMode:!1,loadMoreText:$,onRefresh:Je,messages:h,isTyping:S,showTransition:!1,translationPlaceholder:n.formatMessage({id:"chat.translation.placeholder",defaultMessage:"请输入翻译内容..."}),messagesRef:P,renderMessageContent:Sn,text:B,composerRef:R,inputOptions:{showCount:!0},quickReplies:ut,onQuickReplyClick:On,onSend:pt,placeholder:n.formatMessage({id:"chat.input.placeholder",defaultMessage:"请输入内容, Ctrl+V 粘贴截图/图片"}),onInputChange:Nt,onImageSend:Ot,wideBreakpoint:"600px",recorder:{canRecord:!1},metionOptions:on,fromTicketTab:e,chatThread:C})}),x.jsx(PGt,{fromTicketTab:e,chatThread:C,contextMessage:F,handleRightClick:jt})]}),x.jsx(TGt,{fromTicketTab:e,chatThread:C,isAutoReplyModelOpen:ie,handleAutoReplyModelOk:vt,handleAutoReplyModelCancel:At,isTransferThreadModelOpen:X,handleTransferThreadModelOk:dt,handleTransferThreadModelCancel:De,isInviteThreadModelOpen:oe,handleInviteThreadModelOk:Ye,handleInviteThreadModelCancel:ot,isForwardMessageModelOpen:ce,handleForwardMessageModelOk:Re,handleForwardMessageModelCancel:It,isTransferMessageModelOpen:me,handleTransferMessageModelOk:rt,handleTransferMessageModelCancel:$t,isHistoryMessageModelOpen:fe,handleHistoryMessageModelOk:Mt,handleHistoryMessageModelCancel:dn,isTicketCreateModelOpen:$e,handleTicketCreateModelSuccess:pn,handleTicketCreateModelCancel:T,isBlockModelOpen:be,handleBlockModelOk:D,handleBlockModelCancel:J,isWebRtcModelOpen:we,handleWebRtcModelOk:ke,handleWebRtcModelCancel:Ie,isScreenRecorderModelOpen:z,screenShotImg:ye,handleScreenRecorderModelOk:it,handleScreenRecorderModelCancel:Ft,isGroupInfoDrawerOpen:G,setIsGroupInfoDrawerOpen:de,isMemberInfoDrawerOpen:xe,setIsMemberInfoDrawerOpen:he,isRobotInfoDrawerOpen:Ue,setIsRobotInfoDrawerOpen:We,showEmoji:Y,handleEmojiSelect:rn,setShowEmoji:ee}),V]})]})},{Sider:DGt,Header:FGt,Content:Ure}=Qn,ZA=()=>{const e=jn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co(),{currentThread:a,queuingThreads:o,showQueueList:s}=fr(l=>({currentThread:l.currentThread,queuingThreads:l.queuingThreads,showQueueList:l.showQueueList,showRightPanel:l.showRightPanel}));return x.jsxs(Qn,{children:[x.jsx(DGt,{style:t,width:n,id:"scrollableDiv",children:x.jsx(FWt,{})}),x.jsxs(Qn,{children:[s&&x.jsxs(x.Fragment,{children:[x.jsx(FGt,{style:r,children:x.jsxs(Xr,{children:[x.jsx(wve,{}),e.formatMessage({id:"i18n.queue.tip"})+"("+o.length+")"]})}),x.jsx(Ure,{style:i,children:x.jsx(LWt,{})})]}),!s&&x.jsxs(x.Fragment,{children:[YI(a)&&x.jsxs(Bp,{children:[x.jsx(Bp.Panel,{children:x.jsx(XA,{})}),x.jsx(Bp.Panel,{defaultSize:"40%",children:x.jsx(wWt,{})})]}),!YI(a)&&x.jsx(Ure,{style:i,children:x.jsx(XA,{})})]})]})]})};function bU(){const[e,t]=d.useState(!1),[n,r]=d.useState(!1),i=async(o,s)=>{ha?await Yct()?console.log("showWebNotification handleNewMessage isWindowActive"):(console.log("showWebNotification handleNewMessage not isWindowActive"),Xct(o,s)):n?(console.log("showWebNotification handleNewMessage isBrowserTabHidden"),a(o,s)):console.log("showWebNotification handleNewMessage not isBrowserTabHidden")},a=(o,s)=>{if(localStorage.getItem(MC)!="true"){console.log("showWebNotification not showNetNotification");return}console.log("showWebNotification");const c=new Notification(o,{body:s,icon:"./logo.png"});c.onshow=function(){console.log("Notification shown")},c.onclick=function(){console.log("notification click")},c.onclose=function(){console.log("notification close")},c.onerror=function(){console.log("notification error")}};return d.useEffect(()=>(ha||(console.log("showWebNotification Notification.permission"),window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(o){t(o==="granted")}):(console.log("已经授权或浏览器不支持通知"),t(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?r(!0):document.visibilityState==="visible"&&r(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),{isNotificationGranted:e,showWebNotification:a,showNotification:i}}var mf={},X4e={exports:{}},Z4e={exports:{}};(function(e){var t=qbe;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Z4e);var LGt=Z4e.exports,Q4e={exports:{}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Q4e);var J4e=Q4e.exports,exe={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(exe);var BGt=exe.exports;(function(e){var t=LGt,n=J4e,r=hH,i=BGt;function a(o){return t(o)||n(o)||r(o)||i()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(X4e);var txe=X4e.exports,l7={};Object.defineProperty(l7,"__esModule",{value:!0});l7.default=zGt;function zGt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var wU={};const Ih=B3(Rje);var c7={},HGt=$a.default;Object.defineProperty(c7,"__esModule",{value:!0});c7.default=WGt;var UGt=HGt(d);function WGt(e,t,n){var r=UGt.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var u7={},nxe={exports:{}};(function(e){var t=Hbe,n=J4e,r=hH,i=Gbe;function a(o){return t(o)||n(o)||r(o)||i()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(nxe);var VGt=nxe.exports,xU={};Object.defineProperty(xU,"__esModule",{value:!0});xU.default=qGt;function qGt(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,QA.default)(e,t.slice(0,-1))?e:axe(e,t,n,r)}function YGt(e){return(0,rxe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wre(e){return Array.isArray(e)?[]:{}}var XGt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ZGt(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=SU,e};pc.default=tYt;var d7={};Object.defineProperty(d7,"__esModule",{value:!0});d7.default=void 0;var nYt=d;d7.default=(0,nYt.createContext)(void 0);var sxe={},f7={},rYt=br.default;Object.defineProperty(f7,"__esModule",{value:!0});f7.changeConfirmLocale=iYt;f7.getConfirmLocale=aYt;var CU=rYt(Ig);let R_=Object.assign({},CU.default.Modal),I_=[];const Vre=()=>I_.reduce((e,t)=>Object.assign(Object.assign({},e),t),CU.default.Modal);function iYt(e){if(e){const t=Object.assign({},e);return I_.push(t),R_=Vre(),()=>{I_=I_.filter(n=>n!==t),R_=Vre()}}R_=Object.assign({},CU.default.Modal)}function aYt(){return R_}var cb={};Object.defineProperty(cb,"__esModule",{value:!0});cb.default=void 0;var oYt=d;const sYt=(0,oYt.createContext)(void 0);cb.default=sYt;var p7={},lxe=br.default,lYt=$a.default;Object.defineProperty(p7,"__esModule",{value:!0});p7.default=void 0;var NP=lYt(d),cYt=lxe(cb),qre=lxe(Ig);const uYt=(e,t)=>{const n=NP.useContext(cYt.default),r=NP.useMemo(()=>{var a;const o=t||qre.default[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=NP.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?qre.default.locale:a},[n]);return[r,i]};p7.default=uYt;(function(e){"use client";var t=br.default,n=$a.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return o.default}});var r=n(d),i=f7,a=t(cb),o=t(p7);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:f}=l;r.useEffect(()=>(0,i.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const p=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(a.default.Provider,{value:p},u)};e.default=s})(sxe);var hd={},_U={},Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});Ed.defaultPresetColors=Ed.default=void 0;const dYt=Ed.defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},fYt=Object.assign(Object.assign({},dYt),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});Ed.default=dYt;var kU={};const mx=B3(Hje);Object.defineProperty(kU,"__esModule",{value:!0});kU.default=fYt;var AP=mx;function fYt(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),p=n(i),h=n(a),m=n(o),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,w=n(y),b=new AP.FastColor(m[1]).mix(new AP.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new AP.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var EU={},h7={};Object.defineProperty(h7,"__esModule",{value:!0});h7.default=void 0;const pYt=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};h7.default=pYt;var hYt=br.default;Object.defineProperty(EU,"__esModule",{value:!0});EU.default=gYt;var mYt=hYt(h7);function gYt(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},(0,mYt.default)(r))}var m7={};Object.defineProperty(m7,"__esModule",{value:!0});m7.default=void 0;const vYt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};m7.default=vYt;var g7={},gx={};Object.defineProperty(gx,"__esModule",{value:!0});gx.default=yYt;gx.getLineHeight=uxe;function uxe(e){return(e+8)/e}function yYt(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:uxe(n)}))}var bYt=br.default;Object.defineProperty(g7,"__esModule",{value:!0});g7.default=void 0;var wYt=bYt(gx);const xYt=e=>{const t=(0,wYt.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};g7.default=xYt;var $U={};Object.defineProperty($U,"__esModule",{value:!0});$U.default=SYt;function SYt(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var ty={},ny={};Object.defineProperty(ny,"__esModule",{value:!0});ny.getSolidColor=ny.getAlphaColor=void 0;var dxe=mx;const CYt=(e,t)=>new dxe.FastColor(e).setA(t).toRgbString();ny.getAlphaColor=CYt;const _Yt=(e,t)=>new dxe.FastColor(e).darken(t).toHexString();ny.getSolidColor=_Yt;Object.defineProperty(ty,"__esModule",{value:!0});ty.generateNeutralColorPalettes=ty.generateColorPalettes=void 0;var kYt=nx,fo=ny;const EYt=e=>{const t=(0,kYt.generate)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}};ty.generateColorPalettes=EYt;const $Yt=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,fo.getAlphaColor)(r,.88),colorTextSecondary:(0,fo.getAlphaColor)(r,.65),colorTextTertiary:(0,fo.getAlphaColor)(r,.45),colorTextQuaternary:(0,fo.getAlphaColor)(r,.25),colorFill:(0,fo.getAlphaColor)(r,.15),colorFillSecondary:(0,fo.getAlphaColor)(r,.06),colorFillTertiary:(0,fo.getAlphaColor)(r,.04),colorFillQuaternary:(0,fo.getAlphaColor)(r,.02),colorBgSolid:(0,fo.getAlphaColor)(r,1),colorBgSolidHover:(0,fo.getAlphaColor)(r,.75),colorBgSolidActive:(0,fo.getAlphaColor)(r,.95),colorBgLayout:(0,fo.getSolidColor)(n,4),colorBgContainer:(0,fo.getSolidColor)(n,0),colorBgElevated:(0,fo.getSolidColor)(n,0),colorBgSpotlight:(0,fo.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,fo.getSolidColor)(n,15),colorBorderSecondary:(0,fo.getSolidColor)(n,6)}};ty.generateNeutralColorPalettes=$Yt;var vx=br.default;Object.defineProperty(_U,"__esModule",{value:!0});_U.default=jYt;var Zh=nx,MYt=Ed,TYt=vx(kU),PYt=vx(EU),OYt=vx(m7),RYt=vx(g7),IYt=vx($U),Gre=ty;function jYt(e){Zh.presetPrimaryColors.pink=Zh.presetPrimaryColors.magenta,Zh.presetPalettes.pink=Zh.presetPalettes.magenta;const t=Object.keys(MYt.defaultPresetColors).map(n=>{const r=e[n]===Zh.presetPrimaryColors[n]?Zh.presetPalettes[n]:(0,Zh.generate)(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,TYt.default)(e,{generateColorPalettes:Gre.generateColorPalettes,generateNeutralColorPalettes:Gre.generateNeutralColorPalettes})),(0,RYt.default)(e.fontSize)),(0,IYt.default)(e)),(0,OYt.default)(e)),(0,PYt.default)(e))}var MU=br.default;Object.defineProperty(hd,"__esModule",{value:!0});hd.defaultTheme=hd.defaultConfig=hd.DesignTokenContext=void 0;var NYt=MU(d),AYt=Ih,DYt=MU(_U),Yre=MU(Ed);hd.defaultTheme=(0,AYt.createTheme)(DYt.default);const FYt=hd.defaultConfig={token:Yre.default,override:{override:Yre.default},hashed:!0};hd.DesignTokenContext=NYt.default.createContext(FYt);var xl={},LYt=$a.default;Object.defineProperty(xl,"__esModule",{value:!0});xl.defaultPrefixCls=xl.defaultIconPrefixCls=xl.Variants=xl.ConfigContext=xl.ConfigConsumer=void 0;var BYt=LYt(d);const Xre=xl.defaultPrefixCls="ant",zYt=xl.defaultIconPrefixCls="anticon";xl.Variants=["outlined","borderless","filled"];const HYt=(e,t)=>t||(e?`${Xre}-${e}`:Xre),UYt=xl.ConfigContext=BYt.createContext({getPrefixCls:HYt,iconPrefixCls:zYt}),{Consumer:WYt}=UYt;xl.ConfigConsumer=WYt;var v7={},fxe=br.default;Object.defineProperty(v7,"__esModule",{value:!0});v7.getStyle=pxe;v7.registerTheme=GYt;var Zre=nx,DP=mx,VYt=fxe(P$),qYt=u1;fxe(pc);const KYt=`-ant-${Date.now()}-${Math.random()}`;function pxe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new DP.FastColor(o),c=(0,Zre.generate)(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new DP.FastColor(t.primaryColor),s=(0,Zre.generate)(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new DP.FastColor(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});Ed.default=fYt;var kU={};const hx=B3(zje);Object.defineProperty(kU,"__esModule",{value:!0});kU.default=pYt;var AP=hx;function pYt(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),p=n(i),h=n(a),m=n(o),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,w=n(y),b=new AP.FastColor(m[1]).mix(new AP.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new AP.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var EU={},h7={};Object.defineProperty(h7,"__esModule",{value:!0});h7.default=void 0;const hYt=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};h7.default=hYt;var mYt=br.default;Object.defineProperty(EU,"__esModule",{value:!0});EU.default=vYt;var gYt=mYt(h7);function vYt(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},(0,gYt.default)(r))}var m7={};Object.defineProperty(m7,"__esModule",{value:!0});m7.default=void 0;const yYt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};m7.default=yYt;var g7={},mx={};Object.defineProperty(mx,"__esModule",{value:!0});mx.default=bYt;mx.getLineHeight=cxe;function cxe(e){return(e+8)/e}function bYt(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:cxe(n)}))}var wYt=br.default;Object.defineProperty(g7,"__esModule",{value:!0});g7.default=void 0;var xYt=wYt(mx);const SYt=e=>{const t=(0,xYt.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};g7.default=SYt;var $U={};Object.defineProperty($U,"__esModule",{value:!0});$U.default=CYt;function CYt(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var ty={},ny={};Object.defineProperty(ny,"__esModule",{value:!0});ny.getSolidColor=ny.getAlphaColor=void 0;var uxe=hx;const _Yt=(e,t)=>new uxe.FastColor(e).setA(t).toRgbString();ny.getAlphaColor=_Yt;const kYt=(e,t)=>new uxe.FastColor(e).darken(t).toHexString();ny.getSolidColor=kYt;Object.defineProperty(ty,"__esModule",{value:!0});ty.generateNeutralColorPalettes=ty.generateColorPalettes=void 0;var EYt=tx,fo=ny;const $Yt=e=>{const t=(0,EYt.generate)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}};ty.generateColorPalettes=$Yt;const MYt=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,fo.getAlphaColor)(r,.88),colorTextSecondary:(0,fo.getAlphaColor)(r,.65),colorTextTertiary:(0,fo.getAlphaColor)(r,.45),colorTextQuaternary:(0,fo.getAlphaColor)(r,.25),colorFill:(0,fo.getAlphaColor)(r,.15),colorFillSecondary:(0,fo.getAlphaColor)(r,.06),colorFillTertiary:(0,fo.getAlphaColor)(r,.04),colorFillQuaternary:(0,fo.getAlphaColor)(r,.02),colorBgSolid:(0,fo.getAlphaColor)(r,1),colorBgSolidHover:(0,fo.getAlphaColor)(r,.75),colorBgSolidActive:(0,fo.getAlphaColor)(r,.95),colorBgLayout:(0,fo.getSolidColor)(n,4),colorBgContainer:(0,fo.getSolidColor)(n,0),colorBgElevated:(0,fo.getSolidColor)(n,0),colorBgSpotlight:(0,fo.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,fo.getSolidColor)(n,15),colorBorderSecondary:(0,fo.getSolidColor)(n,6)}};ty.generateNeutralColorPalettes=MYt;var gx=br.default;Object.defineProperty(_U,"__esModule",{value:!0});_U.default=NYt;var Zh=tx,TYt=Ed,PYt=gx(kU),OYt=gx(EU),RYt=gx(m7),IYt=gx(g7),jYt=gx($U),Kre=ty;function NYt(e){Zh.presetPrimaryColors.pink=Zh.presetPrimaryColors.magenta,Zh.presetPalettes.pink=Zh.presetPalettes.magenta;const t=Object.keys(TYt.defaultPresetColors).map(n=>{const r=e[n]===Zh.presetPrimaryColors[n]?Zh.presetPalettes[n]:(0,Zh.generate)(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,PYt.default)(e,{generateColorPalettes:Kre.generateColorPalettes,generateNeutralColorPalettes:Kre.generateNeutralColorPalettes})),(0,IYt.default)(e.fontSize)),(0,jYt.default)(e)),(0,RYt.default)(e)),(0,OYt.default)(e))}var MU=br.default;Object.defineProperty(hd,"__esModule",{value:!0});hd.defaultTheme=hd.defaultConfig=hd.DesignTokenContext=void 0;var AYt=MU(d),DYt=Ih,FYt=MU(_U),Gre=MU(Ed);hd.defaultTheme=(0,DYt.createTheme)(FYt.default);const LYt=hd.defaultConfig={token:Gre.default,override:{override:Gre.default},hashed:!0};hd.DesignTokenContext=AYt.default.createContext(LYt);var wl={},BYt=$a.default;Object.defineProperty(wl,"__esModule",{value:!0});wl.defaultPrefixCls=wl.defaultIconPrefixCls=wl.Variants=wl.ConfigContext=wl.ConfigConsumer=void 0;var zYt=BYt(d);const Yre=wl.defaultPrefixCls="ant",HYt=wl.defaultIconPrefixCls="anticon";wl.Variants=["outlined","borderless","filled"];const UYt=(e,t)=>t||(e?`${Yre}-${e}`:Yre),WYt=wl.ConfigContext=zYt.createContext({getPrefixCls:UYt,iconPrefixCls:HYt}),{Consumer:VYt}=WYt;wl.ConfigConsumer=VYt;var v7={},dxe=br.default;Object.defineProperty(v7,"__esModule",{value:!0});v7.getStyle=fxe;v7.registerTheme=YYt;var Xre=tx,DP=hx,qYt=dxe(P$),KYt=u1;dxe(pc);const GYt=`-ant-${Date.now()}-${Math.random()}`;function fxe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new DP.FastColor(o),c=(0,Xre.generate)(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new DP.FastColor(t.primaryColor),s=(0,Xre.generate)(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new DP.FastColor(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(` `)} } - `.trim()}function GYt(e,t){const n=pxe(e,t);(0,VYt.default)()&&(0,qYt.updateCSS)(n,`${KYt}-dynamic-theme`)}var Tg={},YYt=$a.default;Object.defineProperty(Tg,"__esModule",{value:!0});Tg.default=Tg.DisabledContextProvider=void 0;var JA=YYt(d);const eD=JA.createContext(!1),XYt=e=>{let{children:t,disabled:n}=e;const r=JA.useContext(eD);return JA.createElement(eD.Provider,{value:n??r},t)};Tg.DisabledContextProvider=XYt;Tg.default=eD;var y7={},Pg={},ZYt=$a.default;Object.defineProperty(Pg,"__esModule",{value:!0});Pg.default=Pg.SizeContextProvider=void 0;var tD=ZYt(d);const nD=tD.createContext(void 0),QYt=e=>{let{children:t,size:n}=e;const r=tD.useContext(nD);return tD.createElement(nD.Provider,{value:n||r},t)};Pg.SizeContextProvider=QYt;Pg.default=nD;var hxe=br.default;Object.defineProperty(y7,"__esModule",{value:!0});y7.default=void 0;var Qre=d,JYt=hxe(Tg),eXt=hxe(Pg);function tXt(){const e=(0,Qre.useContext)(JYt.default),t=(0,Qre.useContext)(eXt.default);return{componentDisabled:e,componentSize:t}}y7.default=tXt;var TU={},b7={},mxe=br.default;Object.defineProperty(b7,"__esModule",{value:!0});b7.default=void 0;var Jre=mxe(jg),nXt=mxe(Ys);function rXt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if((0,nXt.default)(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u=0&&e<=255}function oXt(e,t){const{r:n,g:r,b:i,a}=new fC.FastColor(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new fC.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(FP(u)&&FP(f)&&FP(p))return new fC.FastColor({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new fC.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}C7.default=oXt;var vxe=br.default;Object.defineProperty(OU,"__esModule",{value:!0});OU.default=cXt;var LP=mx,sXt=vxe(Ed),pC=vxe(C7),lXt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,pC.default)(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:(0,pC.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,pC.default)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,pC.default)(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + `.trim()}function YYt(e,t){const n=fxe(e,t);(0,qYt.default)()&&(0,KYt.updateCSS)(n,`${GYt}-dynamic-theme`)}var Tg={},XYt=$a.default;Object.defineProperty(Tg,"__esModule",{value:!0});Tg.default=Tg.DisabledContextProvider=void 0;var JA=XYt(d);const eD=JA.createContext(!1),ZYt=e=>{let{children:t,disabled:n}=e;const r=JA.useContext(eD);return JA.createElement(eD.Provider,{value:n??r},t)};Tg.DisabledContextProvider=ZYt;Tg.default=eD;var y7={},Pg={},QYt=$a.default;Object.defineProperty(Pg,"__esModule",{value:!0});Pg.default=Pg.SizeContextProvider=void 0;var tD=QYt(d);const nD=tD.createContext(void 0),JYt=e=>{let{children:t,size:n}=e;const r=tD.useContext(nD);return tD.createElement(nD.Provider,{value:n||r},t)};Pg.SizeContextProvider=JYt;Pg.default=nD;var pxe=br.default;Object.defineProperty(y7,"__esModule",{value:!0});y7.default=void 0;var Zre=d,eXt=pxe(Tg),tXt=pxe(Pg);function nXt(){const e=(0,Zre.useContext)(eXt.default),t=(0,Zre.useContext)(tXt.default);return{componentDisabled:e,componentSize:t}}y7.default=nXt;var TU={},b7={},hxe=br.default;Object.defineProperty(b7,"__esModule",{value:!0});b7.default=void 0;var Qre=hxe(jg),rXt=hxe(Ys);function iXt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if((0,rXt.default)(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u=0&&e<=255}function sXt(e,t){const{r:n,g:r,b:i,a}=new dC.FastColor(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new dC.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((i-l*(1-c))/c);if(FP(u)&&FP(f)&&FP(p))return new dC.FastColor({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new dC.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}C7.default=sXt;var gxe=br.default;Object.defineProperty(OU,"__esModule",{value:!0});OU.default=uXt;var LP=hx,lXt=gxe(Ed),fC=gxe(C7),cXt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[p]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,fC.default)(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:(0,fC.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,fC.default)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,fC.default)(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -1468,7 +1468,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var _7=br.default;Object.defineProperty(pu,"__esModule",{value:!0});pu.default=vXt;pu.unitless=pu.ignore=pu.getComputedToken=void 0;var uXt=_7(d),dXt=Ih,fXt=_7(x7),eie=hd,pXt=_7(Ed),yxe=_7(OU),tie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=tie(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=(0,yxe.default)(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=tie(c,["theme"]);let p=f;u&&(p=RU(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=p}),o};pu.getComputedToken=RU;function vXt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=uXt.default.useContext(eie.DesignTokenContext),a=`${fXt.default}-${t||""}`,o=n||eie.defaultTheme,[s,l,c]=(0,dXt.useCacheToken)(o,[pXt.default,e],{salt:a,override:r,getComputedToken:RU,formatToken:yxe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:hXt,ignore:mXt,preserve:gXt}});return[o,c,t?l:"",s,i]}var sh={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.textEllipsis=ea.resetIcon=ea.resetComponent=ea.operationUnit=ea.genLinkStyle=ea.genIconStyle=ea.genFocusStyle=ea.genFocusOutline=ea.genCommonStyle=ea.clearFix=void 0;var yXt=Ih;ea.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const bXt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};ea.resetComponent=bXt;const bxe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});ea.resetIcon=bxe;const wXt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});ea.clearFix=wXt;const xXt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});ea.genLinkStyle=xXt;const SXt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}};ea.genCommonStyle=SXt;const wxe=(e,t)=>({outline:`${(0,yXt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});ea.genFocusOutline=wxe;const xxe=(e,t)=>({"&:focus-visible":Object.assign({},wxe(e,t))});ea.genFocusStyle=xxe;const CXt=e=>({[`.${e}`]:Object.assign(Object.assign({},bxe()),{[`.${e} .${e}-icon`]:{display:"block"}})});ea.genIconStyle=CXt;const _Xt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},xxe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});ea.operationUnit=_Xt;var kXt=$a.default;Object.defineProperty(sh,"__esModule",{value:!0});sh.genSubStyleComponent=sh.genStyleHooks=sh.genComponentStyleHook=void 0;var nie=d,EXt=gxe,BP=xl,zP=ea,rie=kXt(pu);const{genStyleHooks:$Xt,genComponentStyleHook:MXt,genSubStyleComponent:TXt}=(0,EXt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,nie.useContext)(BP.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,rie.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,nie.useContext)(BP.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,zP.genLinkStyle)(e)},(0,zP.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:BP.defaultIconPrefixCls)]},getCommonStyle:zP.genCommonStyle,getCompUnitless:()=>rie.unitless});sh.genSubStyleComponent=TXt;sh.genComponentStyleHook=MXt;sh.genStyleHooks=$Xt;var IU={};Object.defineProperty(IU,"__esModule",{value:!0});IU.default=OXt;var PXt=PU;function OXt(e,t){return PXt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}var k7={},RXt=br.default;Object.defineProperty(k7,"__esModule",{value:!0});k7.default=void 0;var IXt=Ih,jXt=ea,NXt=RXt(pu);const AXt=(e,t)=>{const[n,r]=(0,NXt.default)();return(0,IXt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,jXt.genIconStyle)(e)])};k7.default=AXt;(function(e){var t=br.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return a.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return o.default}});var n=Ih,r=gxe,i=PU,a=gx,o=t(pu),s=sh,l=t(IU),c=t(k7),u=hd})(ub);var E7={},DXt=$a.default;Object.defineProperty(E7,"__esModule",{value:!0});E7.default=void 0;var FXt=DXt(d);const LXt=Object.assign({},FXt),{useId:iie}=LXt,BXt=()=>"",zXt=typeof iie>"u"?BXt:iie;E7.default=zXt;var jU=br.default;Object.defineProperty(TU,"__esModule",{value:!0});TU.default=qXt;var HXt=jU(c7),UXt=jU(b7),WXt=pc,aie=ub,VXt=jU(E7);function qXt(e,t,n){var r;(0,WXt.devUseWarning)("ConfigProvider");const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},aie.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:aie.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=(0,VXt.default)();return(0,HXt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!(0,UXt.default)(c,f,!0)}))}var NU={};const KXt=B3(QNe);var GXt=$a.default;Object.defineProperty(NU,"__esModule",{value:!0});NU.default=ZXt;var oie=GXt(d),YXt=KXt,XXt=ub;function ZXt(e){const{children:t}=e,[,n]=(0,XXt.useToken)(),{motion:r}=n,i=oie.useRef(!1);return i.current=i.current||r===!1,i.current?oie.createElement(YXt.Provider,{motion:r},t):t}var $7={},QXt=$a.default;Object.defineProperty($7,"__esModule",{value:!0});$7.default=void 0;QXt(d);$7.default=()=>null;var Sxe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=ub})(Sxe);(function(e){"use client";var t=br.default,n=$a.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(d),i=Ih,a=t(Qy),o=t(c7),s=u7,l=n(pc),c=t(d7),u=n(lxe),f=t(cb),p=t(Ig),h=hd,m=t(Ed),g=xl,v=v7,y=Tg,w=t(y7),b=t(TU),C=t(NU),k=t($7),S=n(Pg),_=t(Sxe),E=function(V,B){var U={};for(var Y in V)Object.prototype.hasOwnProperty.call(V,Y)&&B.indexOf(Y)<0&&(U[Y]=V[Y]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Y=Object.getOwnPropertySymbols(V);eeB.endsWith("Color"))}const N=V=>{const{prefixCls:B,iconPrefixCls:U,theme:Y,holderRender:ee}=V;B!==void 0&&(M=B),U!==void 0&&(P=U),"holderRender"in V&&(O=ee),Y&&(A(Y)?(0,v.registerTheme)(j(),Y):R=Y)},F=()=>({getPrefixCls:(V,B)=>B||(V?`${j()}-${V}`:j()),getIconPrefixCls:I,getRootPrefixCls:()=>M||j(),getTheme:()=>R,holderRender:O});e.globalConfig=F;const K=V=>{const{children:B,csp:U,autoInsertSpaceInButton:Y,alert:ee,anchor:ie,form:Z,locale:X,componentSize:ae,direction:oe,space:le,splitter:ce,virtual:pe,dropdownMatchSelectWidth:me,popupMatchSelectWidth:re,popupOverflow:fe,legacyLocale:ve,parentContext:$e,iconPrefixCls:Ce,theme:be,componentDisabled:Se,segmented:we,statistic:se,spin:ye,calendar:Oe,carousel:z,cascader:H,collapse:G,typography:de,checkbox:xe,descriptions:he,divider:Ue,drawer:We,skeleton:ge,steps:ze,image:Ve,layout:Be,list:Xe,mentions:Ke,modal:qe,progress:Et,result:ut,slider:gt,breadcrumb:Qe,menu:nt,pagination:jt,input:Lt,textArea:Bt,empty:Ut,badge:Ne,radio:He,rate:Le,switch:Je,transfer:pt,avatar:xt,message:Nt,tag:Ot,table:Pt,card:st,tabs:Ct,timeline:kt,timePicker:qt,upload:vt,notification:At,tree:dt,colorPicker:De,datePicker:Ye,rangePicker:ot,flex:Re,wave:It,dropdown:rt,warning:$t,tour:Mt,tooltip:dn,popover:pn,popconfirm:T,floatButtonGroup:D,variant:J,inputNumber:ke,treeSelect:Ie}=V,it=r.useCallback((on,Ze)=>{const{prefixCls:bt}=V;if(Ze)return Ze;const sn=bt||$e.getPrefixCls("");return on?`${sn}-${on}`:sn},[$e.getPrefixCls,V.prefixCls]),Ft=Ce||$e.iconPrefixCls||g.defaultIconPrefixCls,rn=U||$e.csp;(0,_.default)(Ft,rn);const On=(0,b.default)(be,$e.theme,{prefixCls:it("")}),Er={csp:rn,autoInsertSpaceInButton:Y,alert:ee,anchor:ie,locale:X||ve,direction:oe,space:le,splitter:ce,virtual:pe,popupMatchSelectWidth:re??me,popupOverflow:fe,getPrefixCls:it,iconPrefixCls:Ft,theme:On,segmented:we,statistic:se,spin:ye,calendar:Oe,carousel:z,cascader:H,collapse:G,typography:de,checkbox:xe,descriptions:he,divider:Ue,drawer:We,skeleton:ge,steps:ze,image:Ve,input:Lt,textArea:Bt,layout:Be,list:Xe,mentions:Ke,modal:qe,progress:Et,result:ut,slider:gt,breadcrumb:Qe,menu:nt,pagination:jt,empty:Ut,badge:Ne,radio:He,rate:Le,switch:Je,transfer:pt,avatar:xt,message:Nt,tag:Ot,table:Pt,card:st,tabs:Ct,timeline:kt,timePicker:qt,upload:vt,notification:At,tree:dt,colorPicker:De,datePicker:Ye,rangePicker:ot,flex:Re,wave:It,dropdown:rt,warning:$t,tour:Mt,tooltip:dn,popover:pn,popconfirm:T,floatButtonGroup:D,variant:J,inputNumber:ke,treeSelect:Ie},Mr=Object.assign({},$e);Object.keys(Er).forEach(on=>{Er[on]!==void 0&&(Mr[on]=Er[on])}),$.forEach(on=>{const Ze=V[on];Ze&&(Mr[on]=Ze)}),typeof Y<"u"&&(Mr.button=Object.assign({autoInsertSpace:Y},Mr.button));const mr=(0,o.default)(()=>Mr,Mr,(on,Ze)=>{const bt=Object.keys(on),sn=Object.keys(Ze);return bt.length!==sn.length||bt.some(Pn=>on[Pn]!==Ze[Pn])}),pr=r.useMemo(()=>({prefixCls:Ft,csp:rn}),[Ft,rn]);let cn=r.createElement(r.Fragment,null,r.createElement(k.default,{dropdownMatchSelectWidth:me}),B);const Sn=r.useMemo(()=>{var on,Ze,bt,sn;return(0,s.merge)(((on=p.default.Form)===null||on===void 0?void 0:on.defaultValidateMessages)||{},((bt=(Ze=mr.locale)===null||Ze===void 0?void 0:Ze.Form)===null||bt===void 0?void 0:bt.defaultValidateMessages)||{},((sn=mr.form)===null||sn===void 0?void 0:sn.validateMessages)||{},(Z==null?void 0:Z.validateMessages)||{})},[mr,Z==null?void 0:Z.validateMessages]);Object.keys(Sn).length>0&&(cn=r.createElement(c.default.Provider,{value:Sn},cn)),X&&(cn=r.createElement(u.default,{locale:X,_ANT_MARK__:u.ANT_MARK},cn)),(Ft||rn)&&(cn=r.createElement(a.default.Provider,{value:pr},cn)),ae&&(cn=r.createElement(S.SizeContextProvider,{size:ae},cn)),cn=r.createElement(C.default,null,cn);const gr=r.useMemo(()=>{const on=On||{},{algorithm:Ze,token:bt,components:sn,cssVar:Pn}=on,qn=E(on,["algorithm","token","components","cssVar"]),ln=Ze&&(!Array.isArray(Ze)||Ze.length>0)?(0,i.createTheme)(Ze):h.defaultTheme,or={};Object.entries(sn||{}).forEach(wn=>{let[An,tr]=wn;const wr=Object.assign({},tr);"algorithm"in wr&&(wr.algorithm===!0?wr.theme=ln:(Array.isArray(wr.algorithm)||typeof wr.algorithm=="function")&&(wr.theme=(0,i.createTheme)(wr.algorithm)),delete wr.algorithm),or[An]=wr});const ri=Object.assign(Object.assign({},m.default),bt);return Object.assign(Object.assign({},qn),{theme:ln,token:ri,components:or,override:Object.assign({override:ri},or),cssVar:Pn})},[On]);return be&&(cn=r.createElement(h.DesignTokenContext.Provider,{value:gr},cn)),mr.warning&&(cn=r.createElement(l.WarningContext.Provider,{value:mr.warning},cn)),Se!==void 0&&(cn=r.createElement(y.DisabledContextProvider,{disabled:Se},cn)),r.createElement(g.ConfigContext.Provider,{value:mr},cn)},L=V=>{const B=r.useContext(g.ConfigContext),U=r.useContext(f.default);return r.createElement(K,Object.assign({parentContext:B,legacyLocale:U},V))};L.ConfigContext=g.ConfigContext,L.SizeContext=S.default,L.config=N,L.useConfig=w.default,Object.defineProperty(L,"SizeContext",{get:()=>S.default}),e.default=L})(wU);var yx={},JXt=$a.default;Object.defineProperty(yx,"__esModule",{value:!0});yx.LayoutContext=void 0;var eZt=JXt(d);yx.LayoutContext=eZt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var AU={},DU={},FU={},tZt=br.default;Object.defineProperty(FU,"__esModule",{value:!0});FU.default=oZt;var nZt=tZt(jg),rZt=Symbol.for("react.element"),iZt=Symbol.for("react.transitional.element"),aZt=Symbol.for("react.fragment");function oZt(e){return e&&(0,nZt.default)(e)==="object"&&(e.$$typeof===rZt||e.$$typeof===iZt)&&e.type===aZt}var Cxe=br.default;Object.defineProperty(DU,"__esModule",{value:!0});DU.default=rD;var sZt=Cxe(FU),lZt=Cxe(d);function rD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return lZt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(rD(r)):(0,sZt.default)(r)&&r.props?n=n.concat(rD(r.props.children,t)):n.push(r))}),n}var ry={},iD={exports:{}},M7={},LU={};Object.defineProperty(LU,"__esModule",{value:!0});var cZt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};LU.default=cZt;var uZt=$a.default,BU=br.default;Object.defineProperty(M7,"__esModule",{value:!0});M7.default=void 0;var dZt=BU(T$),_xe=uZt(d),fZt=BU(LU),pZt=BU(Zy),hZt=function(t,n){return _xe.createElement(pZt.default,(0,dZt.default)({},t,{ref:n,icon:fZt.default}))},mZt=_xe.forwardRef(hZt);M7.default=mZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(M7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(iD,iD.exports);var gZt=iD.exports,aD={exports:{}},T7={},zU={};Object.defineProperty(zU,"__esModule",{value:!0});var vZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};zU.default=vZt;var yZt=$a.default,HU=br.default;Object.defineProperty(T7,"__esModule",{value:!0});T7.default=void 0;var bZt=HU(T$),kxe=yZt(d),wZt=HU(zU),xZt=HU(Zy),SZt=function(t,n){return kxe.createElement(xZt.default,(0,bZt.default)({},t,{ref:n,icon:wZt.default}))},CZt=kxe.forwardRef(SZt);T7.default=CZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(T7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(aD,aD.exports);var _Zt=aD.exports,oD={exports:{}},P7={},UU={};Object.defineProperty(UU,"__esModule",{value:!0});var kZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};UU.default=kZt;var EZt=$a.default,WU=br.default;Object.defineProperty(P7,"__esModule",{value:!0});P7.default=void 0;var $Zt=WU(T$),Exe=EZt(d),MZt=WU(UU),TZt=WU(Zy),PZt=function(t,n){return Exe.createElement(TZt.default,(0,$Zt.default)({},t,{ref:n,icon:MZt.default}))},OZt=Exe.forwardRef(PZt);P7.default=OZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(P7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(oD,oD.exports);var RZt=oD.exports,O7={},xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.prepareComponentToken=xf.default=xf.DEPRECATED_TOKENS=void 0;var IZt=Ih,jZt=ub;const NZt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:(0,IZt.unit)(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},$xe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};xf.prepareComponentToken=$xe;const AZt=xf.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];xf.default=(0,jZt.genStyleHooks)("Layout",e=>[NZt(e)],$xe,{deprecatedTokens:AZt});Object.defineProperty(O7,"__esModule",{value:!0});O7.default=void 0;var l2=Ih,sie=xf,DZt=ub;const FZt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:(0,l2.unit)(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,l2.unit)(p)} ${(0,l2.unit)(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,l2.unit)(p)} 0 0 ${(0,l2.unit)(p)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};O7.default=(0,DZt.genStyleHooks)(["Layout","Sider"],e=>[FZt(e)],sie.prepareComponentToken,{deprecatedTokens:sie.DEPRECATED_TOKENS});var db=br.default,LZt=$a.default;Object.defineProperty(ry,"__esModule",{value:!0});ry.default=ry.SiderContext=void 0;var Qd=LZt(d),pl=Qd,BZt=db(gZt),lie=db(_Zt),cie=db(RZt),uie=db(TE),zZt=db(l7),HZt=wU,UZt=yx,WZt=db(O7),VZt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),KZt=ry.SiderContext=pl.createContext({}),GZt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),YZt=pl.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=VZt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=(0,Qd.useContext)(UZt.LayoutContext),[b,C]=(0,Qd.useState)("collapsed"in e?e.collapsed:o),[k,S]=(0,Qd.useState)(!1);(0,Qd.useEffect)(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const _=(X,ae)=>{"collapsed"in e||C(X),g==null||g(X,ae)},{getPrefixCls:E,direction:$}=(0,Qd.useContext)(HZt.ConfigContext),M=E("layout-sider",n),[P,R,O]=(0,WZt.default)(M),j=(0,Qd.useRef)(null);j.current=X=>{S(X.matches),v==null||v(X.matches),b!==X.matches&&_(X.matches,"responsive")},(0,Qd.useEffect)(()=>{function X(oe){return j.current(oe)}let ae;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&m&&m in die){ae=oe(`screen and (max-width: ${die[m]})`);try{ae.addEventListener("change",X)}catch{ae.addListener(X)}X(ae)}}return()=>{try{ae==null||ae.removeEventListener("change",X)}catch{ae==null||ae.removeListener(X)}}},[m]),(0,Qd.useEffect)(()=>{const X=GZt("ant-sider-");return w.addSider(X),()=>w.removeSider(X)},[]);const I=()=>{_(!b,"clickTrigger")},A=(0,zZt.default)(y,["collapsed"]),N=b?p:f,F=qZt(N)?`${N}px`:String(N),K=parseFloat(String(p||0))===0?pl.createElement("span",{onClick:I,className:(0,uie.default)(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${u?"right":"left"}`),style:h},i||pl.createElement(BZt.default,null)):null,L=$==="rtl"==!u,U={expanded:L?pl.createElement(cie.default,null):pl.createElement(lie.default,null),collapsed:L?pl.createElement(lie.default,null):pl.createElement(cie.default,null)}[b?"collapsed":"expanded"],Y=i!==null?K||pl.createElement("div",{className:`${M}-trigger`,onClick:I,style:{width:F}},i||U):null,ee=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=(0,uie.default)(M,`${M}-${s}`,{[`${M}-collapsed`]:!!b,[`${M}-has-trigger`]:c&&i!==null&&!K,[`${M}-below`]:!!k,[`${M}-zero-width`]:parseFloat(F)===0},r,R,O),Z=pl.useMemo(()=>({siderCollapsed:b}),[b]);return P(pl.createElement(KZt.Provider,{value:Z},pl.createElement("aside",Object.assign({className:ie},A,{style:ee,ref:t}),pl.createElement("div",{className:`${M}-children`},a),c||k&&K?Y:null)))});ry.default=YZt;var Mxe=br.default;Object.defineProperty(AU,"__esModule",{value:!0});AU.default=QZt;var XZt=Mxe(DU),ZZt=Mxe(ry);function QZt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,XZt.default)(t).some(i=>i.type===ZZt.default)}var R7,I7,JZt=$a.default,bx=br.default;Object.defineProperty(mf,"__esModule",{value:!0});mf.default=mf.Header=I7=mf.Footer=R7=mf.Content=void 0;var eQt=bx(nxe),nc=JZt(d),Txe=bx(TE),tQt=bx(l7),sD=wU,nQt=yx,rQt=bx(AU),Pxe=bx(xf),Oxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);inc.forwardRef((o,s)=>nc.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const VU=nc.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=Oxe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=nc.useContext(sD.ConfigContext),l=s("layout",n),[c,u,f]=(0,Pxe.default)(l),p=r?`${l}-${r}`:l;return c(nc.createElement(a,Object.assign({className:(0,Txe.default)(n||p,i,u,f),ref:t},o)))}),iQt=nc.forwardRef((e,t)=>{const{direction:n}=nc.useContext(sD.ConfigContext),[r,i]=nc.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,p=Oxe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,tQt.default)(p,["suffixCls"]),{getPrefixCls:m,layout:g}=nc.useContext(sD.ConfigContext),v=m("layout",a),y=(0,rQt.default)(r,l,c),[w,b,C]=(0,Pxe.default)(v),k=(0,Txe.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,o,s,b,C),S=nc.useMemo(()=>({siderHook:{addSider:_=>{i(E=>[].concat((0,eQt.default)(E),[_]))},removeSider:_=>{i(E=>E.filter($=>$!==_))}}}),[]);return w(nc.createElement(nQt.LayoutContext.Provider,{value:S},nc.createElement(u,Object.assign({ref:t,className:k,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},h),l)))}),aQt=j7({tagName:"div",displayName:"Layout"})(iQt);mf.Header=j7({suffixCls:"header",tagName:"header",displayName:"Header"})(VU);I7=mf.Footer=j7({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(VU);R7=mf.Content=j7({suffixCls:"content",tagName:"main",displayName:"Content"})(VU);mf.default=aQt;const oQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},qU=so()(es(ts(ns((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===bse){const i=t().devices.some(a=>a.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(a=>a.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===A6e){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:E6e}))),sQt=e=>{const t=n=>{var r,i,a,o,s,l,c;return((r=n==null?void 0:n.user)==null?void 0:r.avatar)===null||((i=n==null?void 0:n.user)==null?void 0:i.avatar)===void 0||((a=n==null?void 0:n.user)==null?void 0:a.avatar)===""?x.jsx("img",{src:jk((o=n==null?void 0:n.user)==null?void 0:o.uid),alt:"Avatar"}):((s=n==null?void 0:n.user)==null?void 0:s.avatar.indexOf("local"))>-1?x.jsx("img",{src:jk((l=n==null?void 0:n.user)==null?void 0:l.uid),alt:"Avatar"}):x.jsx(Pi,{shape:"square",size:"large",src:(c=n==null?void 0:n.user)==null?void 0:c.avatar})};return x.jsx("div",{children:t(e)})},KU=()=>{const{devices:e,currentContact:t,setCurrentContact:n}=qU(a=>({devices:a.devices,currentContact:a.currentContact,setCurrentContact:a.setCurrentContact})),r=(a,o)=>{console.log("handleContactClick",a,o),n(a)},i=(a,o)=>{console.log("handleContactDoubleClick",a,o)};return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(a,o)=>{var s,l,c;return x.jsx(Yn.Item,{onClick:()=>r(a,o),onDoubleClick:()=>i(a,o),children:x.jsx(Yn.Item.Meta,{style:((s=t==null?void 0:t.device)==null?void 0:s.uid)===((l=a==null?void 0:a.device)==null?void 0:l.uid)?{backgroundColor:"#f0f2f5"}:{},avatar:sQt(a),title:(c=a==null?void 0:a.user)==null?void 0:c.nickname,description:a==null?void 0:a.createdAt})})}}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},lQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},cQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},uQt=()=>{console.log("MemberList");const{userInfo:e}=t1(),{translateString:t}=Zr(),{isDarkMode:n}=d.useContext(Ea),{currentMember:r,memberResult:i,setCurrentMember:a,setMemberSelf:o,setMemberResult:s}=Na(f=>({currentMember:f.currentMember,memberResult:f.memberResult,setCurrentMember:f.setCurrentMember,setMemberSelf:f.setMemberInfo,setMemberResult:f.setMemberResult})),l=d.useMemo(()=>{const f=i==null?void 0:i.data.content;return f?(console.log("membersWithoutSelf",f,e==null?void 0:e.uid),f.filter(p=>{var h;return((h=p==null?void 0:p.user)==null?void 0:h.uid)!=(e==null?void 0:e.uid)})):[]},[i,e]),c=async()=>{var m,g;if(console.log("getAllMembers"),(e==null?void 0:e.currentOrganization)==null||(e==null?void 0:e.currentOrganization)===void 0){console.log("userInfo.organizations is empty");return}const p={pageNumber:0,pageSize:100,orgUid:(m=e==null?void 0:e.currentOrganization)==null?void 0:m.uid},h=await t$(p);if(console.log("queryMembersByOrg:",p,h.data),h.data.code===200){for(let v=0;v{c()},[]);const u=f=>{console.log("handleMemberClick",f),a(f)};return x.jsx("div",{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:l,renderItem:f=>x.jsx(Yn.Item,{style:(r==null?void 0:r.uid)===(f==null?void 0:f.uid)?{backgroundColor:n?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>u(f),children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:f==null?void 0:f.avatar}),title:x.jsx("a",{children:f==null?void 0:f.nickname}),description:t(f==null?void 0:f.description)})})})})},dQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},fQt=()=>{const e=jn(),t=[{key:"new",label:e.formatMessage({id:"contact.list.new",defaultMessage:"New Friends"}),children:x.jsx(oQt,{})},{key:"device",label:e.formatMessage({id:"contact.list.device",defaultMessage:"LAN Devices"}),children:x.jsx(KU,{})},{key:"group",label:e.formatMessage({id:"contact.list.group",defaultMessage:"Groups"}),children:x.jsx(lQt,{})},{key:"channel",label:e.formatMessage({id:"contact.list.channel",defaultMessage:"Channels"}),children:x.jsx(cQt,{})},{key:"company",label:e.formatMessage({id:"contact.list.company",defaultMessage:"Company Contacts"}),children:x.jsx(uQt,{})},{key:"friend",label:e.formatMessage({id:"contact.list.friend",defaultMessage:"Contacts"}),children:x.jsx(dQt,{})}],n=()=>{console.log("handleContactManager"),je.warning(e.formatMessage({id:"contact.manager.coming",defaultMessage:"Coming soon..."}))};return x.jsxs("div",{style:{padding:10},children:[x.jsx(Ur.Search,{style:{paddingBottom:10},placeholder:e.formatMessage({id:"contact.search.placeholder",defaultMessage:"Search contacts..."})}),Nl&&x.jsx(Yt,{icon:x.jsx(trt,{}),block:!0,onClick:n,children:e.formatMessage({id:"contact.manager.button",defaultMessage:"Contact Manager"})}),x.jsx(l8,{items:t,bordered:!1,defaultActiveKey:["1"]})]})},pQt=()=>{var u,f;const e=jn(),t=Mo(),{currentMember:n,memberInfo:r}=Na(p=>({currentMember:p.currentMember,memberInfo:p.memberInfo})),i=fr(p=>p.addThread),a=fr(p=>p.setCurrentThread),o=OF(p=>p.setCurrentMenu),s=ia(p=>p.userInfo),l=[{key:"1",label:e.formatMessage({id:"member.detail.nickname",defaultMessage:"Nickname"}),children:n==null?void 0:n.nickname},{key:"2",label:"Email",children:n==null?void 0:n.email},{key:"3",label:e.formatMessage({id:"member.detail.jobno",defaultMessage:"Job No."}),children:n==null?void 0:n.jobNo},{key:"4",label:e.formatMessage({id:"member.detail.seatno",defaultMessage:"Seat No."}),children:n==null?void 0:n.seatNo},{key:"5",label:e.formatMessage({id:"member.detail.telephone",defaultMessage:"Telephone"}),children:n==null?void 0:n.telephone}],c=async()=>{var m;console.log("createMemberThread"),je.loading(e.formatMessage({id:"member.detail.loading",defaultMessage:"Loading..."}));const p={user:{uid:(m=n==null?void 0:n.user)==null?void 0:m.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar},topic:Mse+(r==null?void 0:r.uid)+"/"+(n==null?void 0:n.uid),content:"",type:xse,extra:"",client:kn};console.log("thread request:",p);const h=await j3e(p);console.log("response:",h.data),h.data.code===200?(je.destroy(),i(h.data.data),a(h.data.data),o("chat"),t("/chat")):(je.destroy(),je.error(h.data.message))};return x.jsxs("div",{style:{textAlign:"center",overflowY:"auto",marginBottom:100},children:[x.jsx(Pi,{size:50,src:n==null?void 0:n.avatar}),x.jsx(ls,{style:{width:"50%",margin:"20px auto auto",overflowY:"auto"},bordered:!0,column:1,items:l}),((u=n==null?void 0:n.user)==null?void 0:u.uid)!==(s==null?void 0:s.uid)&&x.jsx(Yt,{style:{marginTop:"20px"},onClick:c,disabled:((f=n==null?void 0:n.user)==null?void 0:f.uid)==="",children:e.formatMessage({id:"member.detail.chat.button",defaultMessage:"Start Chat"})})]})},hQt=()=>x.jsx("div",{style:{overflowY:"auto",marginTop:60},children:x.jsx(pQt,{})}),{Sider:mQt,Header:gQt,Content:vQt}=Qn,Rxe=()=>{const e=jn(),{headerStyle:t,leftSiderStyle:n,leftSiderWidth:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsx(mQt,{style:n,width:r,children:x.jsx(fQt,{})}),x.jsxs(Qn,{children:[x.jsx(gQt,{style:t,children:e.formatMessage({id:"menu.dashboard.contact"})}),x.jsx(vQt,{style:i,children:x.jsx(hQt,{})})]})]})},{Header:yQt,Sider:bQt,Content:wQt}=Qn,Ixe=()=>{const e=jn(),{isLoggedIn:t,hasRoleAgent:n}=d.useContext(Ea),r=Mo(),{headerStyle:i,leftSiderStyle:a,leftSiderWidth:o,contentStyle:s}=co(),l=Vr(p=>p.currentOrg),[c,u]=d.useState([]);d.useEffect(()=>{const p=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];u(p)},[e]),d.useEffect(()=>{var g,v,y,w;if(!t||(l==null?void 0:l.uid)===""||!n)return;const p=[...c];if(p.length===0)return;const h={label:e.formatMessage({id:"setting.menu.agent",defaultMessage:"客服设置"}),key:"agentProfile"};((v=(g=p[0])==null?void 0:g.children)==null?void 0:v.some(b=>b.key===h.key))||((w=(y=p[0])==null?void 0:y.children)==null||w.splice(1,0,h),u(p))},[l,c,e,t,n]),d.useEffect(()=>{if(!Nl)return;const p=[...c];if(p.length===0)return;p.some(m=>m.key==="model")||(p.push({label:e.formatMessage({id:"setting.menu.model",defaultMessage:"大模型"}),key:"model"}),u(p))},[c,e]);const f=p=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),p),r("/setting/"+p.key)};return x.jsxs(Qn,{children:[x.jsx(bQt,{style:a,width:o,children:x.jsx(ks,{mode:"inline",onClick:f,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:c})}),x.jsxs(Qn,{children:[x.jsx(yQt,{style:i,children:e.formatMessage({id:"menu.dashboard.mine"})}),x.jsx(wQt,{style:s,children:x.jsx(z4,{})})]})]})},xQt=()=>{const e=Vr(u=>u.deleteOrg),t=fr(u=>u.resetThreads),n=Td(u=>u.resetMessageList),r=Na(u=>u.resetMembers),i=n4(u=>u.removeAccessToken),a=ia(u=>u.resetUserInfo),o=qU(u=>u.resetContactInfo),s=Eo(u=>u.resetAgentInfo),l=fU(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),a(),o(),s(),l()}}};function GU(){const e=n4(w=>w.accessToken),t=ia(w=>w.userInfo),n=Eo(w=>w.agentInfo),r=r7(),[i,a]=d.useState(!1),{showNotification:o}=bU(),{translateString:s}=Zr(),l=fr(w=>w.threads),[c,u]=d.useState(l),f=d.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!Nct()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),p=async()=>{},h=d.useRef(n==null?void 0:n.uid),m=d.useCallback(()=>{if(!i&&e)return setInterval(async()=>{h.current?p():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4)},[i,e,t,n]),g=()=>{kct({uid:t.uid,username:t.username,accessToken:e})},v=()=>{xT()},y=w=>{var b,C;(w==null?void 0:w.type)!==g0&&((b=w==null?void 0:w.user)==null?void 0:b.uid)!==(t==null?void 0:t.uid)&&((C=w==null?void 0:w.user)==null?void 0:C.uid)!==(n==null?void 0:n.uid)&&(QOe(),console.log("playAudio"))};return d.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():xT()},[r]),d.useEffect(()=>{if(n!=null&&n.uid){h.current=n==null?void 0:n.uid;const w=m();return()=>{clearInterval(w)}}else h.current=null},[n]),d.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const w=f();return()=>{xT(),clearInterval(w)}},[e,t]),d.useEffect(()=>{u(l)},[l]),d.useEffect(()=>{const w=function(b){if(console.log("useMqtt handleNewMessage",b),b.type===$f||b.type===G3||b.type===m0||b.type===g0||b.type===v0)return;const C=b.topic,k=c.find(S=>S.topic===C);k?k.mute?console.log("useMqtt matchingThread muted",C):(console.log("useMqtt matchingThread no mute",C),o(s(Qx),s(Qx)),y(b)):(console.log("useMqtt matchingThread no"),o(s(Qx),s(Qx)),y(b))};return $n.on(jw,w),()=>{$n.off(jw)}},[c]),d.useEffect(()=>{console.log("useMqtt useEffect");const w=function(){console.log("handleMqttConnected"),a(!0)},b=function(){console.log("handleMqttDisconnected"),a(!1)};return $n.on(qO,w),$n.on(GO,b),$n.on(YO,b),$n.on(KO,b),$n.on(XO,b),$n.on(ZO,b),()=>{console.log("un - useEffect mqttDisconnect"),$n.off(qO),$n.off(GO),$n.off(YO),$n.off(KO),$n.off(XO),$n.off(ZO)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}function jxe(){const{clearStorage:e}=xQt(),{doDisconnect:t}=GU(),{setPingLoading:n}=d.useContext(Ea),r=d.useCallback(async()=>{try{const i=await SNt();console.log("logout result:",i.data),n(!1),t(),e(),tut()}catch(i){console.log("logout error:",i)}},[]);return d.useEffect(()=>{const i=function(a){console.log("token过期,强制刷新登录",a),$n.off(eh,i),r()};return $n.on(eh,i),()=>{console.log("un - useEffect mqttDisconnect"),$n.off(eh)}},[]),{doLogout:r}}const Nxe=()=>{const e=jn(),{isLoggedIn:t,mode:n}=d.useContext(Ea),{doLogout:r}=jxe(),[i,a]=d.useState("✅"),[o,s]=d.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=r7();d.useEffect(()=>{l?(a("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(a("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=x.jsx("div",{children:x.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=x.jsx("div",{children:x.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[f,p]=d.useState(!1),h=()=>{p(!0)},m=()=>{p(!1)},g=()=>{console.log("handleShowLoginModel"),h()},v=w=>{console.log(w),r()},y=w=>{console.log(w)};return x.jsxs(x.Fragment,{children:[x.jsx(yr,{open:f&&!t,onOk:m,onCancel:m,footer:[x.jsx(Yt,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:x.jsx(fA,{isModel:!0})}),x.jsxs("span",{children:[!t&&x.jsxs(x.Fragment,{children:[x.jsx(wc,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:x.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),x.jsx(wc,{content:u,children:x.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&x.jsx(x.Fragment,{children:x.jsx(rve,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:v,onCancel:y,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:x.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===Rw&&Nl&&x.jsx("span",{style:{marginLeft:10},children:x.jsx(_a,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:x.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),x.jsxs("span",{className:"footerRightButton",children:[x.jsx(_a,{title:o,children:x.jsx("span",{children:i})}),x.jsxs("span",{style:{marginLeft:"10px"},children:["v",ZOe()]})]})]})},Axe=()=>{const e=Mo(),{userInfo:t}=t1(),{translateString:n}=Zr(),{mode:r}=d.useContext(Ea),[i,a]=d.useState(""),[o,s]=d.useState(""),[l,c]=d.useState(""),u=()=>{e("/setting")};return d.useEffect(()=>{a(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),x.jsx(x.Fragment,{children:x.jsx(wc,{title:i,content:o,placement:"rightBottom",children:x.jsx(x.Fragment,{children:x.jsx(Pi,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function Dxe(){const e=Mo(),t=ia(r=>r.userInfo),n=qU(r=>r.addDevice);d.useEffect(()=>(ha?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const a={type:bse,device:i.device,user:i.user,createdAt:i.createdAt};n(a)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===m6e){je.success("截图成功");const i=r.data;$n.emit(QO,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),ha?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const SQt=()=>{const e=jn(),{doLogout:t}=jxe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:a,changeMode:o,handleUpdateAgentStatus:s}=d.useContext(Ea),{agentInfo:l}=Eo(h=>({agentInfo:h.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:x.jsx(Sve,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,f]=d.useState(c);d.useEffect(()=>{if(f(c),l.uid!==""&&a===Rw){console.log("agentInfo changed",l);const h=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:y0,icon:l.status===y0?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:yk,icon:l.status===yk?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:Dm,icon:l.status===Dm?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=h[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),h[0].children=g,f(h)}},[l,r,a]);const p=async h=>{console.log("click",h.key),h.key==="logout"?t():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?i(h.key):h.key===$C||h.key===Rw||h.key===cse?(console.log("mode",h.key),o(h.key)):(console.log("status"),h.key===Dm&&c3.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(h.key))};return x.jsx(x.Fragment,{children:n?x.jsx(x.Fragment,{children:x.jsx(ks,{inlineCollapsed:!0,onClick:p,style:{width:64,height:34},mode:"inline",items:u})}):x.jsx(x.Fragment,{})})},CQt=({open:e,notice:t,onAccept:n,onReject:r})=>{var h;const{translateString:i}=Zr(),[a,o]=d.useState(null),[s,l]=d.useState(null),c=fr(m=>m.addThread),u=Td(m=>m.updateMessageStatus);d.useEffect(()=>{var m,g,v,y,w;if(t){const b=JSON.parse(t.extra);o(b);const C={uid:(m=b==null?void 0:b.thread)==null?void 0:m.uid,topic:(g=b==null?void 0:b.thread)==null?void 0:g.topic,type:(v=b==null?void 0:b.thread)==null?void 0:v.type,state:(y=b==null?void 0:b.thread)==null?void 0:y.state,user:(w=b==null?void 0:b.thread)==null?void 0:w.user};l(C)}},[t]);const f=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=p0;const m=await g4e(a);if(console.log("acceptThread response:",m),m.data.code===200){const g=m.data.data;console.log("acceptedThread:",g),je.success("同意转接会话成功"),Xve(JSON.stringify(a),g),c(g),u(a.messageUid,p0),n()}else je.error(i(m.data.message))},p=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=h0;const m=await v4e(a);console.log("transferThreadReject response:",m),m.data.code===200?(je.success("拒绝转接会话成功"),Zve(JSON.stringify(a),s),u(a.messageUid,h0),r()):je.error(i(m.data.message))};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:`${(h=a==null?void 0:a.sender)==null?void 0:h.nickname}请求转接会话`,open:e,okText:"同意",onOk:f,cancelText:"拒绝",onCancel:p,children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:[{}],renderItem:()=>{var m,g;return x.jsx(Yn.Item,{style:{cursor:"pointer"},children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:(m=s==null?void 0:s.user)==null?void 0:m.avatar}),title:(g=s==null?void 0:s.user)==null?void 0:g.nickname,description:a==null?void 0:a.note})})}})})})};async function _Qt(e){return bn("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:kn}})}const Fxe=()=>{const[e,t]=d.useState([]),n=new Gve;d.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async o=>{try{await n.createMessage(o);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(o,s)=>{try{await n.updateMessage(o,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},a=async o=>{try{await n.deleteMessage(o);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return d.useEffect(()=>{console.log("useIndexedDB useEffect");const o=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return $n.on(jw,o),()=>{console.log("useIndexedDB useEffect return"),$n.off(jw,o)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:a}},{Search:kQt}=Ur,{Paragraph:fie}=Zf,EQt=({onSelect:e,onCreateTicket:t})=>{const n=jn(),{isDarkMode:r}=yz(),i=Vr(v=>v.currentOrg),{tickets:a,loading:o,error:s,filters:l,setFilter:c,currentTicket:u,setSearchText:f}=ja();d.useEffect(()=>{i!=null&&i.uid&&Za.loadTickets(i.uid)},[i==null?void 0:i.uid,l]);const p=v=>{f(v),Za.loadTicketsWithFilters({searchText:v})},h=v=>{let y="";switch(v){case"status":y=b0;break;case"priority":y=w0;break;case"assignment":y=x0;break;case"time":y=S0;break}c(v,y),Za.loadTicketsWithFilters({[v]:y})},m=v=>r?v?"#1f1f1f":"#141414":v?"#e6f7ff":"#ffffff",g=()=>{const v=[];return l!=null&&l.status&&l.status!==b0&&v.push(x.jsx(Vi,{color:Vw(l.status),closable:!0,onClose:()=>h("status"),children:n.formatMessage({id:`ticket.filter.status_${l.status.toLowerCase()}`})},"status")),l!=null&&l.priority&&l.priority!==w0&&v.push(x.jsx(Vi,{color:Lk(l.priority),closable:!0,onClose:()=>h("priority"),children:n.formatMessage({id:`ticket.filter.priority_${l.priority.toLowerCase()}`})},"priority")),l!=null&&l.assignment&&l.assignment!==x0&&v.push(x.jsx(Vi,{color:"blue",closable:!0,onClose:()=>h("assignment"),children:n.formatMessage({id:`ticket.filter.assignment_${l.assignment.toLowerCase()}`})},"assignment")),l!=null&&l.time&&l.time!==S0&&v.push(x.jsx(Vi,{color:"purple",closable:!0,onClose:()=>h("time"),children:n.formatMessage({id:`ticket.filter.time_${l.time.toLowerCase()}`})},"time")),v};return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{style:{padding:"10px 16px 16px",backgroundColor:r?"#141414":"#ffffff",borderBottom:"1px solid #f0f0f0"},children:[x.jsx(Yt,{type:"primary",block:!0,icon:x.jsx(Ny,{}),onClick:t,style:{marginBottom:16,width:"100%"},children:n.formatMessage({id:"ticket.list.create"})}),x.jsx(kQt,{placeholder:n.formatMessage({id:"ticket.list.search.placeholder"}),onSearch:p,style:{width:"100%"},allowClear:!0,enterButton:x.jsx(X8,{})}),x.jsx("div",{style:{marginTop:10},children:x.jsxs(Xr,{direction:"vertical",style:{width:"100%"},children:[g(),x.jsx("div",{children:x.jsxs(Vi,{color:"blue",children:[n.formatMessage({id:"ticket.list.total"}),": ",a.length]})})]})})]}),x.jsx("div",{style:{flex:1,overflow:"auto",position:"relative"},children:o?x.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:x.jsx(Zo,{tip:n.formatMessage({id:"ticket.loading"}),size:"large",spinning:!0,children:x.jsx("div",{style:{padding:"50px"}})})}):s?x.jsx(JE,{type:"error",message:n.formatMessage({id:"ticket.load.error"}),description:s}):x.jsx(Yn,{dataSource:a,renderItem:v=>x.jsx(Yn.Item,{onClick:()=>e(v),style:{cursor:"pointer",padding:"8px 16px",backgroundColor:m((u==null?void 0:u.uid)===v.uid),transition:"background-color 0.3s"},children:x.jsx(Yn.Item.Meta,{title:x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{marginRight:10,color:r?"#ffffff":void 0},children:v.title}),x.jsx(Vi,{color:Vw(v.status),children:n.formatMessage({id:`ticket.filter.status_${v.status.toLowerCase()}`})}),x.jsx(Vi,{color:Lk(v.priority),children:n.formatMessage({id:`ticket.filter.priority_${v.priority.toLowerCase()}`})})]}),description:x.jsxs(x.Fragment,{children:[x.jsx(fie,{ellipsis:{rows:1},style:{margin:0},children:v.description}),x.jsx(fie,{ellipsis:{rows:1},style:{margin:0},children:new Date(v.updatedAt).toLocaleString()})]})})}),locale:{emptyText:n.formatMessage({id:"ticket.list.empty"})}})})]})},$Qt=({ticket:e,onEdit:t,onDelete:n})=>{const r=jn();return x.jsx(Yg,{centered:!0,defaultActiveKey:"details",items:[{key:"details",label:r.formatMessage({id:"ticket.details.title"}),children:x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(F3e,{ticket:e,isThreadTicket:!1,onEdit:t,onDelete:n})})},{key:"steps",label:r.formatMessage({id:"ticket.steps.title"}),children:x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(L3e,{ticket:e,isThreadTicket:!1})})}]})},{Sider:MQt,Content:TQt,Header:PQt}=Qn,Lxe=()=>{const{leftSiderStyle:e,headerStyle:t}=co(),n=jn(),{currentTicket:r,setCurrentTicket:i,filters:a,setFilter:o,refreshTickets:s}=ja(),[l,c]=d.useState(!1),[u,f]=d.useState(!1),p=[{key:"status",label:n.formatMessage({id:"ticket.filter.by.status"}),children:[{key:b0,label:n.formatMessage({id:"ticket.filter.status_all"})},{key:lg,label:n.formatMessage({id:"ticket.filter.status_new"})},{key:Y3,label:n.formatMessage({id:"ticket.filter.status_claimed"})},{key:ly,label:n.formatMessage({id:"ticket.filter.status_processing"})},{key:X3,label:n.formatMessage({id:"ticket.filter.status_pending"})},{key:Z3,label:n.formatMessage({id:"ticket.filter.status_holding"})},{key:Q3,label:n.formatMessage({id:"ticket.filter.status_reopened"})},{key:J3,label:n.formatMessage({id:"ticket.filter.status_resolved"})},{key:e4,label:n.formatMessage({id:"ticket.filter.status_closed"})},{key:t4,label:n.formatMessage({id:"ticket.filter.status_cancelled"})}]},{key:"priority",label:n.formatMessage({id:"ticket.filter.by.priority"}),children:[{key:w0,label:n.formatMessage({id:"ticket.filter.priority_all"})},{key:Ose,label:n.formatMessage({id:"ticket.filter.priority_lowest"})},{key:EF,label:n.formatMessage({id:"ticket.filter.priority_low"})},{key:wk,label:n.formatMessage({id:"ticket.filter.priority_medium"})},{key:$F,label:n.formatMessage({id:"ticket.filter.priority_high"})},{key:MF,label:n.formatMessage({id:"ticket.filter.priority_urgent"})},{key:TF,label:n.formatMessage({id:"ticket.filter.priority_critical"})}]},{key:"assignment",label:n.formatMessage({id:"ticket.filter.by.assignment"}),children:[{key:x0,label:n.formatMessage({id:"ticket.filter.assignment_all"})},{key:jse,label:n.formatMessage({id:"ticket.filter.assignment_my_created"})},{key:Nse,label:n.formatMessage({id:"ticket.filter.assignment_my_assigned"})},{key:cR,label:n.formatMessage({id:"ticket.filter.assignment_unassigned"})}]},{key:"time",label:n.formatMessage({id:"ticket.filter.by.time"}),children:[{key:S0,label:n.formatMessage({id:"ticket.filter.time_all"})},{key:Ase,label:n.formatMessage({id:"ticket.filter.time_today"})},{key:Dse,label:n.formatMessage({id:"ticket.filter.time_yesterday"})},{key:Fse,label:n.formatMessage({id:"ticket.filter.time_this_week"})},{key:Lse,label:n.formatMessage({id:"ticket.filter.time_last_week"})},{key:Bse,label:n.formatMessage({id:"ticket.filter.time_this_month"})},{key:zse,label:n.formatMessage({id:"ticket.filter.time_last_month"})}]}],h=b=>{console.log("handleTicketSelect",b),i(b)},m=()=>{c(!0),f(!1)},g=()=>{c(!1)},v=()=>{c(!0),f(!0)},y=()=>{console.log("handleDeleteTicket",r),yr.confirm({title:n.formatMessage({id:"ticket.delete.title"}),content:x.jsxs("div",{children:[x.jsx("p",{children:n.formatMessage({id:"ticket.delete.content"})}),x.jsxs("p",{style:{marginTop:"8px",color:"#666"},children:[n.formatMessage({id:"ticket.content.title"}),": ",r.title]})]}),onOk:async()=>{(await sWt(r.uid)).data.code===200?(je.success(n.formatMessage({id:"ticket.delete.success"})),s(),i(void 0)):je.error(n.formatMessage({id:"ticket.delete.failed"}))}})},w=({keyPath:b})=>{console.log("handleFilterClick",b);const[C,k]=b;o(k,C)};return x.jsxs(Qn,{children:[x.jsxs(MQt,{style:{...e,position:"relative",zIndex:2},width:156,children:[x.jsx(PQt,{style:t,children:n.formatMessage({id:"chat.navbar.ticket"})}),x.jsx(ks,{onClick:w,style:{width:156,position:"relative",zIndex:3},mode:"inline",selectedKeys:Object.values(a),items:p})]}),x.jsx(Qn,{children:x.jsx(TQt,{style:{position:"relative",zIndex:1},children:x.jsxs(Bp,{children:[x.jsx(Bp.Panel,{defaultSize:"20%",children:x.jsx(EQt,{onSelect:h,onCreateTicket:m})}),x.jsx(Bp.Panel,{defaultSize:"55%",children:x.jsx(XA,{fromTicketTab:!0,ticket:r})}),x.jsx(Bp.Panel,{children:x.jsx($Qt,{ticket:r,onEdit:v,onDelete:y})})]})})}),l&&x.jsx(k4e,{open:l,isEdit:u,currentTicket:r,onSuccess:g,onCancel:()=>c(!1)})]})},OQt=()=>{const e=jn(),{locale:t,changeLocale:n}=d.useContext(Ea),r=[{key:"lang",icon:x.jsx(Vrt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=a=>{const o=a.key;n(o)};return x.jsx(ks,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})},RQt=({open:e,notice:t,onAccept:n,onReject:r})=>{var h;const{translateString:i}=Zr(),[a,o]=d.useState(null),[s,l]=d.useState(null),c=fr(m=>m.addThread),u=Td(m=>m.updateMessageStatus);d.useEffect(()=>{var m,g,v,y,w;if(t){const b=JSON.parse(t.extra);o(b);const C={uid:(m=b==null?void 0:b.thread)==null?void 0:m.uid,topic:(g=b==null?void 0:b.thread)==null?void 0:g.topic,type:(v=b==null?void 0:b.thread)==null?void 0:v.type,state:(y=b==null?void 0:b.thread)==null?void 0:y.state,user:(w=b==null?void 0:b.thread)==null?void 0:w.user};l(C)}},[t]);const f=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=p0;const m=await h4e(a);if(console.log("acceptThread response:",m),m.data.code===200){const g=m.data.data;console.log("acceptedThread:",g),je.success("同意邀请会话成功"),Qve(JSON.stringify(a),g),c(g),u(a.messageUid,p0),n()}else je.error(i(m.data.message))},p=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=h0;const m=await m4e(a);console.log("inviteThreadReject response:",m),m.data.code===200?(je.success("拒绝邀请会话成功"),Jve(JSON.stringify(a),s),u(a.messageUid,h0),r()):je.error(i(m.data.message))};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:`${(h=a==null?void 0:a.sender)==null?void 0:h.nickname}请求邀请会话`,open:e,okText:"同意",onOk:f,cancelText:"拒绝",onCancel:p,children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:[{}],renderItem:()=>{var m,g;return x.jsx(Yn.Item,{style:{cursor:"pointer"},children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:(m=s==null?void 0:s.user)==null?void 0:m.avatar}),title:(g=s==null?void 0:s.user)==null?void 0:g.nickname,description:a==null?void 0:a.note})})}})})})};async function IQt(e){return bn("/api/v1/org/create",{method:"POST",data:{...e,client:kn}})}const jQt=({open:e,onClose:t,onSuccess:n})=>{const r=jn(),{userInfo:i}=t1(),[a,o]=d.useState(!1),[s,l]=d.useState(""),[c,u]=d.useState(!1),f=()=>{t()},p=()=>{je.error(r.formatMessage({id:"welcome.message.org.required"}))},h=async()=>{if(s===""){je.error(r.formatMessage({id:"welcome.message.org.name.required"}));return}o(!0),je.loading(r.formatMessage({id:"welcome.message.org.creating"}));const g=i!=null&&i.mobile?i==null?void 0:i.mobile:i==null?void 0:i.email,v={name:s,code:g,logo:"https://www.weiyuai.cn/logo.png",description:s+"description"};try{const y=await IQt(v);y.data.code===200?(o(!1),je.destroy(),je.success(r.formatMessage({id:"welcome.message.create.success"})),n(y.data.data),t()):(o(!1),je.destroy(),je.error(r.formatMessage({id:"welcome.message.create.failed"})))}catch{o(!1),je.destroy(),je.error(r.formatMessage({id:"welcome.message.create.failed"}))}},m=()=>{c?h():(u(!0),o(!1))};return x.jsxs(yr,{title:r.formatMessage({id:"welcome.modal.title"}),closable:!1,open:e,onCancel:p,maskClosable:!1,footer:[x.jsx(Yt,{type:"primary",onClick:f,disabled:!0,children:r.formatMessage({id:"welcome.modal.join"})},"join"),x.jsx(Yt,{type:"primary",loading:a,onClick:m,children:r.formatMessage({id:"welcome.modal.create"})},"create")],children:[x.jsx("p",{children:r.formatMessage({id:"welcome.modal.description"})}),c&&x.jsx(Ur,{placeholder:r.formatMessage({id:"welcome.modal.input.placeholder"}),value:s,onChange:g=>l(g.target.value),onPressEnter:h,autoFocus:!0})]})},NQt=({open:e,onClose:t})=>{const n=jn(),r=Mo(),i=()=>{t(),r("/setting/certification")},a=()=>{localStorage.setItem("skipVerification","true"),t()};return x.jsx(yr,{title:n.formatMessage({id:"welcome.verify.modal.title",defaultMessage:"账号验证提示"}),open:e,onCancel:a,footer:[x.jsx(Yt,{onClick:a,children:n.formatMessage({id:"welcome.verify.later",defaultMessage:"稍后验证"})},"later"),x.jsx(Yt,{type:"primary",onClick:i,children:n.formatMessage({id:"welcome.verify.now",defaultMessage:"立即验证"})},"now")],children:x.jsx("p",{children:n.formatMessage({id:"welcome.verify.modal.description",defaultMessage:"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。"})})})},AQt=()=>{const e=jn(),{locale:t,isLoggedIn:n,hasRoleAgent:r}=d.useContext(Ea),i=Mo(),{footerStyle:a}=co(),{currentOrg:o,setCurrentOrg:s}=Vr(X=>({currentOrg:X.currentOrg,setCurrentOrg:X.setCurrentOrg})),{userInfo:l,setUserInfo:c}=ia(X=>({userInfo:X.userInfo,setUserInfo:X.setUserInfo})),u=Eo(X=>X.setAgentInfo),f=Na(X=>X.setMemberInfo),{threads:p,removeThread:h}=fr(X=>({threads:X.threads,removeThread:X.removeThread})),m=fU(X=>X.setWorkgroupResult),g=localStorage.getItem(wq),[v,y]=d.useState(g||"/chat"),[w,b]=d.useState(!1),[C,k]=d.useState(!1),[S,_]=d.useState(!1),[E,$]=d.useState(!1),[M,P]=d.useState(!1),[R,O]=d.useState({}),[j,I]=d.useState({});Fxe(),GU(),Dxe(),bU();const A=d.useMemo(()=>[{path:"/chat",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:x.jsx(wve,{}),component:x.jsx(ZA,{})},{path:"/contact",name:e.formatMessage({id:"menu.dashboard.contact"}),icon:x.jsx(prt,{}),component:x.jsx(Rxe,{})},{path:"/ticket",name:e.formatMessage({id:"menu.dashboard.ticket"}),icon:x.jsx(srt,{}),component:x.jsx(Lxe,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:x.jsx(Sve,{}),component:x.jsx(Ixe,{})}],[e,t]);d.useEffect(()=>{const X=p.some(ae=>ae.unreadCount>0);b(X)},[p]);const N=d.useCallback(async()=>{if(n)try{const X=await AF();X.data.code===200?c(X.data.data):je.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))}catch(X){console.error("Failed to fetch user profile:",X)}},[n,c,e]),F=d.useCallback(async()=>{var X,ae,oe;if(!(!n||!l)){if(!l.currentOrganization){k(!0);return}if(s(l.currentOrganization),r&&((X=l.currentOrganization)!=null&&X.uid))try{const le=await $le((ae=l==null?void 0:l.currentOrganization)==null?void 0:ae.uid);console.log("agentResponse:",le.data),le.data.code===200&&u(le.data.data)}catch(le){console.error("Failed to fetch agent info:",le)}try{const le=await t0e((oe=l==null?void 0:l.currentOrganization)==null?void 0:oe.uid);console.log("memberResponse:",le.data),le.data.code===200&&f(le.data.data)}catch(le){console.error("Failed to fetch member info:",le)}L()}},[n,l,r,s,u]),K=d.useCallback(async()=>{if(!(!n||!(o!=null&&o.uid)))try{const X={pageNumber:0,pageSize:100,orgUid:o==null?void 0:o.uid},ae=await _Qt(X);console.log("workgroupResponse:",ae.data,X),ae.data.code===200?m(ae.data):console.log("获取工作组失败")}catch(X){console.error("Failed to fetch workgroups:",X)}},[n,o,r,m]);d.useEffect(()=>{N()},[N]),d.useEffect(()=>{F()},[F]),d.useEffect(()=>{K()},[K]);const L=d.useCallback(()=>{localStorage.getItem("skipVerification")!=="true"&&l&&!l.emailVerified&&!l.mobileVerified&&_(!0)},[l]);d.useEffect(()=>{const X={[pse]:ae=>{console.log("handleTransfer:",ae);const oe=JSON.parse(ae);O(oe),$(!0)},[hse]:ae=>{var pe,me,re,fe,ve;console.log("handleTransferAccept:",ae),je.success("转接会话成功");const oe=JSON.parse(ae),le=JSON.parse(oe.extra),ce={uid:(pe=le==null?void 0:le.thread)==null?void 0:pe.uid,topic:(me=le==null?void 0:le.thread)==null?void 0:me.topic,type:(re=le==null?void 0:le.thread)==null?void 0:re.type,state:(fe=le==null?void 0:le.thread)==null?void 0:fe.state,user:(ve=le==null?void 0:le.thread)==null?void 0:ve.user};h(ce)},[mse]:()=>{console.log("handleTransferReject"),je.warning("转接会话已被拒绝")},[gse]:ae=>{console.log("handInvite:",ae);const oe=JSON.parse(ae);I(oe),P(!0)},[vse]:()=>{console.log("handInviteAccept"),je.success("邀请会话成功")},[yse]:()=>{console.log("handInviteReject"),je.warning("邀请会话已被拒绝")}};return Object.entries(X).forEach(([ae,oe])=>{$n.on(ae,oe)}),()=>{Object.entries(X).forEach(([ae,oe])=>{$n.off(ae,oe)})}},[h]);const V=d.useCallback(()=>{$(!1)},[]),B=d.useCallback(()=>{$(!1)},[]),U=d.useCallback(()=>{P(!1)},[]),Y=d.useCallback(()=>{P(!1)},[]),ee=d.useCallback(X=>{s(X)},[s]),ie=d.useCallback(X=>{y(X),i(X),localStorage.setItem(wq,X)},[i]),Z=d.useCallback((X,ae)=>x.jsx("div",{onClick:()=>ie(X.path),children:X.path==="/chat"&&w?x.jsx(Lo,{size:"small",dot:!0,offset:[-5,5],children:ae}):ae}),[ie,w]);return x.jsxs(C2e,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:A},location:{pathname:v},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:()=>[x.jsx(OQt,{},"language"),x.jsx(SQt,{},"menu")],menuHeaderRender:()=>x.jsx(Axe,{}),menuFooterRender:()=>null,menuItemRender:Z,children:[x.jsx(R7,{children:x.jsx(z4,{},t.locale)}),x.jsx(I7,{style:a,children:x.jsx(Nxe,{})}),E&&x.jsx(CQt,{open:E,notice:R,onAccept:V,onReject:B}),M&&x.jsx(RQt,{open:M,notice:j,onAccept:U,onReject:Y}),x.jsx(jQt,{open:C,onClose:()=>k(!1),onSuccess:ee}),x.jsx(NQt,{open:S,onClose:()=>_(!1)}),x.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},DQt=()=>x.jsx(x.Fragment,{children:x.jsx(z4,{})}),FQt=({open:e,onClose:t})=>{const n=jn(),{translateString:r}=Zr(),i=()=>{t()},a=()=>{t()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:a,children:x.jsxs(Kn,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async o=>{if(console.log("changePassword:",o),o.newPassword.trim().length<6){je.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(o.newPassword!==o.confirmPassword){je.error(n.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const s={oldPassword:o.oldPassword,newPassword:o.newPassword},l=await f$e(s);console.log("changePassword response:",l),l.data.code===200?(je.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),i()):je.error(r(l.data.message))},children:[x.jsx(Or.Password,{name:"oldPassword",label:n.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:n.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),x.jsx(Or.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),x.jsx(Or.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},YU=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:kF,category_uid:"",kb_uid:"",client:kn},i={name:"file",accept:"image/*",action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:r,showUploadList:!1,beforeUpload(a){console.log("beforeUpload",a);const o=en(new Date).format("YYYYMMDDHHmmss")+"_"+a.name;r.file=a,r.file_name=o,r.file_type=a.type,console.log("beforeUpload",r)},onChange(a){if(a.file.status!=="uploading"&&console.log("not uploading:",a.file),a.file.status==="done")if(console.log("response: ",a.file.response),a.file.response.code===200){const o=a.file.response.data.fileUrl;t(o),je.success(`${a.file.name} 上传成功`)}else n(a.file),je.error(`${a.file.name} 上传失败`);else a.file.status==="error"&&(je.error(`${a.file.name} 上传失败`),n(a.file))}};return x.jsx(e1,{...i,children:e})},LQt=({open:e,onSubmit:t,onClose:n})=>{const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1),v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{if(console.log("changeEmail:",S),o.email===S.email){je.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const _={email:S.email,code:S.code,platform:gc},E=await Ple(_);console.log("changeEmail response:",E),E.data.code===200?(je.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(S.email),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeEmail:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(D4,{})},name:"email",placeholder:r.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:r.formatMessage({id:"profile.email.required",defaultMessage:"Please enter email address!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:r.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:r.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),x.jsx(Kn.Item,{name:"captchaCode",children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(V4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async S=>{if(S){if(o.email===S){je.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),k();return}const _={email:S,type:B6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o.uid,orgUid:l.uid,platform:gc},E=await rwe(_);if(E.data.code!==200){je.error(E.data.message),k();return}je.success(E.data.message)}else je.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},BQt=({open:e,onSubmit:t,onClose:n})=>{const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1),v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{if(console.log("changeMobile:",S),o.mobile===S.mobile){je.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const _={mobile:S.mobile,code:S.code,platform:gc},E=await Ole(_);console.log("changeMobile response:",E),E.data.code===200?(je.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(S.mobile),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeMobile:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(D4,{})},name:"mobile",placeholder:r.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:r.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),x.jsx(Kn.Item,{name:"captchaCode",children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(V4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async S=>{if(S&&S.length===11){if(o.mobile===S){je.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),k();return}const _={mobile:S,type:F6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o.uid,orgUid:l.uid,platform:gc},E=await LH(_);if(E.data.code!==200){je.error(E.data.message),k();return}je.success(E.data.message)}else je.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},zQt={labelCol:{span:8},wrapperCol:{span:8}},pie=()=>{const e=jn(),[t]=Kn.useForm(),{translateString:n}=Zr(),{userInfo:r,setUserInfo:i}=ia(M=>({userInfo:M.userInfo,setUserInfo:M.setUserInfo})),[a,o]=d.useState(""),[s,l]=d.useState(!1),[c,u]=d.useState(!1),[f,p]=d.useState(!1),h=()=>{l(!0)},m=()=>{u(!0)},g=()=>{p(!0)},v=()=>{l(!1)},y=()=>{u(!1)},w=M=>{u(!1),r.email=M,i(r),t.setFieldValue("email",M)},b=()=>{p(!1)},C=M=>{p(!1),r.mobile=M,i(r),t.setFieldValue("mobile",M)},k=M=>{console.log("handleUploadSuccess:",M),o(M)},S=M=>{console.log("handleUploadError:",M)},_=async M=>{const P={...r,...M,avatar:a};console.log(P);const R=await Tle(P);console.log("updateProfile response:",R.data),R.data.code===200?(je.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),i(R.data.data)):je.error(R.data.message)},E=M=>Array.isArray(M)?M:M==null?void 0:M.fileList;d.useEffect(()=>{r&&o(r.avatar)},[r]);const $=async()=>{const M=await AF();console.log("handleRefreshProfile getProfile response:",M.data),M.data.code===200?(i(M.data.data),t.setFieldsValue({uid:M.data.data.uid,username:M.data.data.username,nickname:n(M.data.data.nickname),email:M.data.data.email,mobile:M.data.data.mobile,description:n(M.data.data.description)})):je.error(M.data.message)};return d.useEffect(()=>{$()},[]),x.jsxs("div",{className:"profile-container",children:[x.jsxs(Kn,{...zQt,form:t,onFinish:_,children:[x.jsx(Or,{name:"uid",label:"UID",readonly:!0}),x.jsx(Kn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:E,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:x.jsxs(YU,{onSuccess:k,onError:S,children:[x.jsx(Pi,{src:a}),x.jsx(Yt,{icon:x.jsx(F4,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Or,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),x.jsx(Yt,{onClick:h,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),x.jsx(Or,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),x.jsx(Or,{name:"email",label:r.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),x.jsx(Yt,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),x.jsx(Or,{name:"mobile",label:r.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),x.jsx(Yt,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),x.jsx(Cd,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&x.jsx(FQt,{open:s,onClose:v}),c&&x.jsx(LQt,{open:c,onSubmit:w,onClose:y}),f&&x.jsx(BQt,{open:f,onSubmit:C,onClose:b})]})},Bxe=d.createContext(null),XU=d.createContext(null);function HQt({children:e}){const[t,n]=d.useReducer(VQt,qQt);return x.jsx(Bxe.Provider,{value:t,children:x.jsx(XU.Provider,{value:n,children:e})})}function UQt(){return d.useContext(Bxe)}function WQt(){return d.useContext(XU)}function VQt(e,t){switch(t.type){case"added":return[...e,{id:t.id,text:t.text,done:!1}];case"changed":return e.map(n=>n.id===t.task.id?t.task:n);case"deleted":return e.filter(n=>n.id!==t.id);default:throw Error("Unknown action: "+t.type)}}const qQt=[{id:0,text:"Philosopher’s Path",done:!0},{id:1,text:"Visit the temple",done:!1},{id:2,text:"Drink matcha",done:!1}];let KQt=3;function GQt(){const[e,t]=d.useState(""),n=WQt();return x.jsxs(x.Fragment,{children:[x.jsx("input",{placeholder:"添加任务",value:e,onChange:r=>t(r.target.value)}),x.jsx("button",{onClick:()=>{t(""),n({type:"added",id:KQt++,text:e})},children:"添加"})]})}function YQt(){const e=UQt();return x.jsx("ul",{children:e.map(t=>x.jsx("li",{children:x.jsx(XQt,{task:t})},t.id))})}function XQt({task:e}){const[t,n]=d.useState(!1),r=d.useContext(XU);let i;return t?i=x.jsxs(x.Fragment,{children:[x.jsx("input",{value:e.text,onChange:a=>{r({type:"changed",task:{...e,text:a.target.value}})}}),x.jsx("button",{onClick:()=>n(!1),children:"保存"})]}):i=x.jsxs(x.Fragment,{children:[e.text,x.jsx("button",{onClick:()=>n(!0),children:"编辑"})]}),x.jsxs("label",{children:[x.jsx("input",{type:"checkbox",checked:e.done,onChange:a=>{r({type:"changed",task:{...e,done:a.target.value}})}}),i,x.jsx("button",{onClick:()=>{r({type:"deleted",id:e.id})},children:"删除"})]})}function ZQt(){return x.jsxs(HQt,{children:[x.jsx("h1",{children:"任务列表"}),x.jsx(GQt,{}),x.jsx(YQt,{})]})}const QQt=()=>x.jsx(x.Fragment,{children:"Note"}),JQt=()=>x.jsx(Qg,{status:"warning",title:"TODO: 即将上线,敬请期待."}),hie=()=>x.jsx(Qg,{status:"warning",title:"TODO: 即将上线,敬请期待."}),eJt=()=>{const e=jn(),{isMqttConnected:t}=GU(),[n,r]=d.useState(!0),[i,a]=d.useState(!0),[o,s]=d.useState(!1),l=w=>{console.log("radio checked",w.target.value),s(w.target.value),ha?window.electronAPI.setOpenAtLogin(w.target.value):console.log("not electron")},c=async()=>{if(ha){const w=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",w),s(w)}};d.useEffect(()=>{c(),Yct(),e0e();const w=localStorage.getItem(MC);w===null?(localStorage.setItem(MC,"true"),r(!0)):r(w==="true");const b=localStorage.getItem(TC);b===null?(localStorage.setItem(TC,"true"),a(!0)):a(b==="true")},[]);const{themeMode:u,setThemeMode:f,locale:p,changeLocale:h}=d.useContext(Ea),m=w=>{console.log("radio checked",w.target.value),f(w.target.value),Qct(w.target.value)},g=w=>{console.log("language change",w.target.value),h(w.target.value)},v=w=>{console.log("play audio switch",w),localStorage.setItem(MC,w?"true":"false"),r(w)},y=w=>{console.log("show network status notification",w),localStorage.setItem(TC,w?"true":"false"),a(w)};return x.jsxs("div",{className:"profile-container",children:[x.jsx("p",{children:x.jsx(R6,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:n,onChange:v})}),x.jsx("p",{children:x.jsx(R6,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:i,onChange:y})}),Nl&&x.jsxs(x.Fragment,{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),x.jsx("div",{children:t?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),ha&&x.jsxs(x.Fragment,{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),x.jsxs(us.Group,{onChange:l,value:o,children:[x.jsx(us,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),x.jsx(us,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),x.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),x.jsxs(us.Group,{onChange:m,value:u,children:[x.jsx(us,{value:"light",children:x.jsx(nu,{id:"theme.light"})}),x.jsx(us,{value:"dark",children:x.jsx(nu,{id:"theme.dark"})}),x.jsx(us,{value:"system",children:x.jsx(nu,{id:"theme.system"})})]}),x.jsxs("div",{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),x.jsxs(us.Group,{value:p.locale,onChange:g,children:[x.jsx(us,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),x.jsx(us,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),x.jsx(us,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]})]})},{Header:tJt,Sider:nJt,Content:rJt}=Qn,iJt=()=>{const e=jn(),t=Mo(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:a}=co(),o=[{label:"剪贴板",key:"clipboard"},{label:"收藏",key:"collect"}],s=l=>{console.log("menu click ",l),t("/plugins/"+l.key)};return d.useEffect(()=>{},[]),x.jsxs(Qn,{children:[x.jsxs(nJt,{style:r,width:i,children:[x.jsx(Ur.Search,{style:{padding:10}}),x.jsx(ks,{mode:"inline",onClick:s,defaultSelectedKeys:["clipboard"],defaultOpenKeys:["plugins"],items:o})]}),x.jsxs(Qn,{children:[x.jsx(tJt,{style:n,children:e.formatMessage({id:"menu.dashboard.plugins"})}),x.jsx(rJt,{style:a,children:x.jsx(z4,{})})]})]})},aJt=()=>{const e=ia(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const i=n.toDataURL(),a=document.createElement("a");a.download=e.username+"_profile.png",a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}else console.log("canvas is null")};return x.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[x.jsx(oz,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),x.jsx(Yt,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},oJt=()=>x.jsx(x.Fragment,{children:x.jsx("div",{children:"ShortcutAdmin"})}),sJt=()=>{const e=Mo();return x.jsx(Qg,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:x.jsx(Yt,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},lJt={labelCol:{span:8},wrapperCol:{span:8}},cJt=()=>{const e=jn(),[t]=Kn.useForm(),{userInfo:n,setUserInfo:r}=ia(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[i,a]=d.useState(""),o={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},showUploadList:!1,data:o,beforeUpload(u){const f=en(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;o.file=u,o.file_name=f,o.file_type=u.type,console.log("beforeUpload",o)},onChange(u){if(u.file.status!=="uploading"&&console.log(u.file,u.fileList),u.file.status==="done"){const f=u.file.response.data.fileUrl;console.log("url: ",f),a(f),je.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&je.error(`${u.file.name} file upload failed.`)}},l=async u=>{const f={...n,...u,avatar:i};console.log(f);const p=await Tle(f);console.log("updateProfile response:",p),p.data.code===200?(je.success("修改成功"),r(p.data.data)):je.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return d.useEffect(()=>{n&&a(n.avatar)},[n]),x.jsxs("div",{className:"profile-container",children:[x.jsx("p",{children:"员工信息"}),x.jsxs(Kn,{...lJt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[x.jsx(Zi.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(e1,{...s,children:[x.jsx(Pi,{src:i}),x.jsx(Yt,{icon:x.jsx(F4,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Or,{name:"nickname",label:"昵称",rules:[{required:!0}],children:x.jsx(Ur,{})}),x.jsx(Or,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:x.jsx(Ur,{})}),x.jsx(Or,{name:"mobile",label:"手机号",disabled:!0,children:x.jsx(Ur,{})}),x.jsx(Cd,{name:"description",label:"描述",children:x.jsx(Ur.TextArea,{})})]})]})},uJt=()=>{const e=n1(),{content:t}=e.state||{},[n,r]=d.useState(30),i=()=>{r(c=>c+2)},a=()=>{n>30&&r(c=>c-2)},o=()=>{navigator.clipboard.writeText(t).then(()=>{je.success("复制成功")}).catch(c=>{console.error("无法复制文本: ",c),je.error(c)})},s=()=>{je.warning("TODO: 即将上线,敬请期待")},l=()=>{je.warning("TODO: 即将上线,敬请期待")};return x.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh"},children:[x.jsx("div",{style:{marginBottom:"1rem"},children:x.jsxs(Xr,{children:[x.jsx(Yt,{shape:"circle",onClick:i,style:{marginRight:"0.5rem"},children:"+"}),x.jsx(Yt,{shape:"circle",onClick:a,children:"-"}),x.jsx(Yt,{onClick:o,children:"复制"}),Nl&&x.jsx(Yt,{onClick:s,children:"转发"}),Nl&&x.jsx(Yt,{onClick:l,children:"收藏"})]})}),x.jsx("div",{style:{fontSize:`${n}px`},dangerouslySetInnerHTML:{__html:t}})]})},{Sider:dJt,Content:fJt}=Qn,pJt=[{key:"grp",label:"留言管理",type:"group",children:[{key:"13",label:"待分配"},{key:"14",label:"待处理"},{key:"15",label:"处理中"},{key:"16",label:"处理完毕"}]}],hJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(dJt,{style:e,width:t,children:x.jsx(ks,{onClick:n,style:{width:256},mode:"inline",items:pJt})}),x.jsx(Qn,{children:x.jsx(fJt,{children:"leavemsg"})})]})})},{Sider:mJt,Content:gJt}=Qn,vJt=[{key:"grp",label:"实时监控",type:"group",children:[{key:"13",label:"当前在线"},{key:"14",label:"已离线"}]}],yJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(mJt,{style:e,width:t,children:x.jsx(ks,{onClick:n,mode:"inline",items:vJt})}),x.jsx(Qn,{children:x.jsx(gJt,{children:"监控"})})]})})},{Sider:bJt,Content:wJt}=Qn,xJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,contentStyle:n}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(bJt,{style:e,width:t}),x.jsx(Qn,{children:x.jsx(wJt,{style:n})})]})})},N7=so()(es(ts(ns((e,t)=>({categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult(n){var s,l;const r=CJt(n),a={...n,data:{content:[{uid:"all",name:"i18n.all"},...n.data.content]}},o=SJt(a);e({categoryResult:a,categoryTreeOptions:o,categorySelectOptions:r}),((l=(s=n.data)==null?void 0:s.content)==null?void 0:l.length)>0?e({currentCategory:n.data.content[0]}):e({currentCategory:{uid:""}})},insertCategory(n){e(r=>{r.categoryResult.data.content.unshift(n)})},upgradeCategory(n){e(r=>{const i=r.categoryResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Category with uid ${n.uid} not found.`)})},setCurrentCategory(n){e({currentCategory:n})},setCurrentCategoryUid(n){const r=t().categoryResult.data.content.find(i=>i.uid===n);e({currentCategory:r})},deleteCategoryCache:()=>e({},!0)})),{name:R6e})));function SJt(e){const t=[];return e.data.content.forEach(n=>{const r={title:n.name,key:n.uid,children:[]};n.children&&Array.isArray(n.children)&&(r.children=n.children.map(i=>({title:i.name,key:i.uid,children:[]}))),t.push(r)}),t}function CJt(e){const t=[];return e.data.content.forEach(n=>{const r={label:n.name,value:n.uid};t.push(r)}),t}const _Jt=({open:e,level:t,type:n,isEdit:r,onCancel:i,onSubmit:a})=>{const[o]=Kn.useForm(),s=jn(),{translateString:l}=Zr(),c=Vr(h=>h.currentOrg),u=N7(h=>h.currentCategory);d.useEffect(()=>{r?o.setFieldsValue({name:l(u==null?void 0:u.name)}):o.resetFields()},[e,r]);const f=()=>{o.validateFields().then(async h=>{console.log("handleSaveDep:",h);const m={uid:r?u==null?void 0:u.uid:"",name:h.name,level:t,type:n,kbUid:h.kbUid,orgUid:c==null?void 0:c.uid};a(m)}).catch(h=>{console.log("Failed:",h),je.error(s.formatMessage({id:"category.create.failed",defaultMessage:"Failed to create category"}))})},p=h=>{h.key==="Enter"&&f()};return x.jsx("div",{children:x.jsx(yr,{title:r?s.formatMessage({id:"category.form.edit.title",defaultMessage:"Edit Category"}):s.formatMessage({id:"category.form.create.title",defaultMessage:"Create Category"}),open:e,forceRender:!0,onOk:f,onCancel:i,getContainer:!1,children:x.jsx(Kn,{form:o,name:"categoryForm",submitter:!1,children:x.jsx(Or,{label:s.formatMessage({id:"category.form.name",defaultMessage:"Category Name"}),name:"name",rules:[{required:!0,message:s.formatMessage({id:"category.form.name.required",defaultMessage:"Please enter category name!"})}],fieldProps:{onKeyDown:p,placeholder:s.formatMessage({id:"category.form.name.placeholder",defaultMessage:"Enter category name"})}})})})})},kJt=({level:e,type:t})=>{var R;const{isDarkMode:n}=Ag(),r=jn(),[i,a]=d.useState(!0),o=Vr(O=>O.currentOrg),{translateString:s}=Zr(),[l,c]=d.useState(!1),[u,f]=yr.useModal(),{categoryResult:p,currentCategory:h,setCategoryResult:m,setCurrentCategory:g,insertCategory:v,upgradeCategory:y}=N7(O=>({categoryResult:O.categoryResult,currentCategory:O.currentCategory,setCategoryResult:O.setCategoryResult,setCurrentCategory:O.setCurrentCategory,insertCategory:O.insertCategory,upgradeCategory:O.upgradeCategory})),w=O=>{u.confirm({title:r.formatMessage({id:"deleteTip"}),icon:x.jsx(gve,{}),content:`${r.formatMessage({id:"deleteAffirm",defaultMessage:"Delete"})}【${s(O.name)}】?`,onOk(){C(O)},onCancel(){},okText:r.formatMessage({id:"ok"}),cancelText:r.formatMessage({id:"cancel"})})},b=async()=>{console.log("handleEditCategory: ",h),a(!0),c(!0)},C=async O=>{console.log("handleDeleteCategory: ",O);const j={uid:O==null?void 0:O.uid,orgUid:o==null?void 0:o.uid},I=await ZUt(j);console.log("deleteCategory: ",I),I.data.code===200?(je.success(I.data.message),k()):je.error(I.data.message)},k=async()=>{const O={pageNumber:0,pageSize:100,orgUid:o==null?void 0:o.uid,level:e,type:t},j=await n7(O);console.log("queryCategoriesByOrg: ",e,t,j.data),j.data.code===200?m(j.data):je.error(j.data.message)};d.useEffect(()=>{k()},[]);const S=()=>{c(!1)},_=()=>{a(!1),c(!0)},E=async O=>{console.log("handleSubmit: ",O),je.loading(r.formatMessage({id:"creating"}));const j=await D3e(O);console.log("createCategory response: ",j),j.data.code===200?(je.destroy(),je.success(r.formatMessage({id:"create.success"})),v(j.data.data),c(!1)):(je.destroy(),je.error(j.data.message))},$=async O=>{console.log("handleUpdateCategory: ",O),je.loading(r.formatMessage({id:"updating"}));const j=await XUt(O);console.log("createCategory response: ",j),j.data.code===200?(je.destroy(),je.success(r.formatMessage({id:"update.success"})),y(j.data.data),c(!1)):(je.destroy(),je.error(j.data.message))},M=async O=>{console.log("handleSubmit: ",O),i?$(O):E(O)},P=(O,j)=>{console.log("list on click",O,j),g(O)};return x.jsxs(x.Fragment,{children:[x.jsxs(o3,{gap:"small",wrap:"wrap",style:{margin:5},children:[x.jsx(Yt,{type:"primary",size:"small",icon:x.jsx(xit,{}),onClick:_,children:r.formatMessage({id:"create"})}),(h==null?void 0:h.uid)!==""&&(h==null?void 0:h.uid)!=="all"&&x.jsx(Yt,{size:"small",onClick:b,children:r.formatMessage({id:"pages.robot.edit"})}),(h==null?void 0:h.uid)!==""&&(h==null?void 0:h.uid)!=="all"&&x.jsx(Yt,{onClick:()=>w(h),size:"small",style:{float:"right"},danger:!0,children:r.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]}),x.jsx(Yn,{itemLayout:"horizontal",dataSource:(R=p==null?void 0:p.data)==null?void 0:R.content,renderItem:(O,j)=>x.jsx(Yn.Item,{style:(h==null?void 0:h.uid)===O.uid?{backgroundColor:n?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>P(O,j),children:x.jsx(Yn.Item.Meta,{style:{marginLeft:"10px"},title:s(O.name)})})}),l&&x.jsx(_Jt,{open:l,level:e,type:t,isEdit:i,onCancel:S,onSubmit:M}),f]})},EJt=({isEdit:e,robot:t,open:n,level:r,onClose:i,onSubmit:a})=>{var w,b,C;const[o]=Kn.useForm(),s=jn(),l=Vr(k=>k.currentOrg),[c]=d.useState("https://cdn.weiyuai.cn/assets/images/llm/provider/zhipu.png"),[u,f]=d.useState(),p=N7(k=>k.categoryResult),{translateString:h}=Zr();d.useEffect(()=>{var k,S,_;if(e&&t&&o){o.setFieldsValue({uid:t==null?void 0:t.uid,nickname:t==null?void 0:t.nickname,prompt:(k=t==null?void 0:t.llm)==null?void 0:k.prompt,description:t==null?void 0:t.description,categoryUid:t==null?void 0:t.categoryUid});const E=(_=(S=p==null?void 0:p.data)==null?void 0:S.content)==null?void 0:_.find($=>$.uid===(t==null?void 0:t.categoryUid));f(E)}else console.log("form resetFields"),o.resetFields()},[t]);const m=()=>{console.log("handleSubmit"),o.validateFields().then(k=>{console.log("Form values:",k);const S={uid:e?t==null?void 0:t.uid:"",nickname:k.nickname,avatar:c,categoryUid:u==null?void 0:u.uid,llm:{prompt:k.prompt},description:k.description,type:_F,level:r,orgUid:l==null?void 0:l.uid};console.log("robotObject:",S),a(S)}).catch(k=>{console.log("Form errors:",k)})};d.useEffect(()=>{},[t]);const g=k=>{console.log("handleUploadSuccess:",k)},v=k=>{console.log("handleUploadError:",k),je.error(k)},y=k=>Array.isArray(k)?k:k==null?void 0:k.fileList;return x.jsx("div",{children:x.jsx(Sh,{title:e?"编辑提示语":"新建提示语",onClose:i,open:n,extra:x.jsxs(Xr,{children:[x.jsx(Yt,{onClick:i,children:"取消"}),x.jsx(Yt,{onClick:m,type:"primary",children:"保存"})]}),children:x.jsxs(Kn,{form:o,name:"model",submitter:!1,children:[x.jsx(ro,{label:"类别",name:"categoryUid",required:!0,options:(C=(b=(w=p==null?void 0:p.data)==null?void 0:w.content)==null?void 0:b.filter(k=>k.uid!=="all"))==null?void 0:C.map(k=>({label:h(k==null?void 0:k.name),value:k==null?void 0:k.uid})),fieldProps:{allowClear:!0,onChange:k=>{var S,_;console.log("handleChange:",k),f((_=(S=p==null?void 0:p.data)==null?void 0:S.content)==null?void 0:_.find(E=>E.uid===k))}}}),x.jsx(Or,{label:"昵称",name:"nickname",required:!0}),x.jsx(Kn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:y,label:s.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(YU,{onSuccess:g,onError:v,children:[x.jsx(Pi,{src:c}),x.jsx(Yt,{icon:x.jsx(F4,{}),children:s.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Cd,{label:"提示语Prompt",name:"prompt",required:!0}),x.jsx(Cd,{label:"简介描述",name:"description"})]})})})},$Jt=({level:e,type:t})=>{console.log("RobotList",e,t);const n=d.useRef(!1),r=jn(),{isDarkMode:i}=Ag(),[a,o]=d.useState(!0),{translateString:s}=Zr(),[l,c]=d.useState(!1),[u,f]=d.useState(),[p,h]=d.useState({}),m=N7(I=>I.currentCategory),g=Vr(I=>I.currentOrg),[v,y]=yr.useModal(),w=Mo(),b=fr(I=>I.addThread),C=fr(I=>I.setCurrentThread),k=OF(I=>I.setCurrentMenu),S=ia(I=>I.userInfo),_=I=>{v.confirm({title:r.formatMessage({id:"deleteTip"}),icon:x.jsx(gve,{}),content:r.formatMessage({id:"robot.list.delete.confirm",defaultMessage:"Delete【{name}】?"},{name:s(I.nickname)}),onOk(){E(I)},onCancel(){console.log("取消")},okText:r.formatMessage({id:"ok"}),cancelText:r.formatMessage({id:"cancel"})})},E=async I=>{var N;console.log("delete robot",I),je.loading(r.formatMessage({id:"robot.list.deleting",defaultMessage:"Deleting"}));const A=await ZFt(I);if(console.log("delete robot response",A),A.data.code===200){je.destroy(),je.success(r.formatMessage({id:"robot.list.delete.success",defaultMessage:"Delete success"}));const F=[...(N=u==null?void 0:u.data)==null?void 0:N.content];for(const K in F)if(F[K].uid===I.uid){F.splice(Number(K),1);break}f({...u,data:{content:F}})}else je.destroy(),je.error(A.data.message)},$=async()=>{if(n.current){console.log("isLoading: 1",n.current);return}n.current=!0,je.loading(r.formatMessage({id:"robot.list.loading",defaultMessage:"Loading"}));const I={pageNumber:0,pageSize:100,orgUid:g==null?void 0:g.uid,categoryUid:(m==null?void 0:m.uid)==="all"?"":m==null?void 0:m.uid,type:_F,level:e},A=await Kwe(I);console.log("getPlatformRobots queryRobotsByOrg: ",A),A.data.code===200?(je.destroy(),f(A.data)):(je.destroy(),je.error(A.data.message)),n.current=!1};d.useEffect(()=>{$()},[m]);const M=async I=>{var A,N,F,K;if(console.log("handleSubmit"),a){const L=await YFt(I);if(console.log("updatePromptRobot:",L),L.data.code===200){je.success(r.formatMessage({id:"robot.list.update.success",defaultMessage:"Update success"}));const V=[...(A=u==null?void 0:u.data)==null?void 0:A.content];for(const B in V)if(V[B].uid===I.uid){V[B]=(N=L==null?void 0:L.data)==null?void 0:N.data;break}f({...u,data:{content:V}}),c(!1)}else je.error(L.data.message)}else{const L=await GFt(I);if(console.log("createPromptRobot:",L),L.data.code===200){je.success(r.formatMessage({id:"robot.list.create.success",defaultMessage:"Create success"}));const V=[...(F=u==null?void 0:u.data)==null?void 0:F.content];V.unshift((K=L==null?void 0:L.data)==null?void 0:K.data),f({...u,data:{content:V}}),c(!1)}else je.error(L.data.message)}},P=(I,A)=>{console.log("list on click",I,A),h(I)},R=(I,A)=>{console.log("list on edit",I,A),o(!0),h(I),c(!0)},O=(I,A)=>{console.log("list on delete",I,A),h(I),_(I)},j=async(I,A)=>{console.log("startRobotChat",I,A);const N={user:{uid:I==null?void 0:I.uid,nickname:I==null?void 0:I.nickname,avatar:I==null?void 0:I.avatar,type:V5},topic:Pse+(I==null?void 0:I.uid)+"/"+(S==null?void 0:S.uid),content:"",type:vF,extra:"",client:kn};console.log("startRobotChat request:",N);const F=await XH(N);console.log("startRobotChat response:",F.data),F.data.code===200?(b(F.data.data),C(F.data.data),k("chat"),w("/chat")):je.error(F.data.message)};return x.jsxs(x.Fragment,{children:[x.jsx(Xr,{children:x.jsx(Yt,{icon:x.jsx(Ny,{}),type:"primary",style:{marginLeft:10,marginTop:10},onClick:()=>{o(!1),c(!0)},children:r.formatMessage({id:"robot.list.add",defaultMessage:"Add AI Agent"})})}),x.jsx(Yn,{dataSource:u==null?void 0:u.data.content,style:{marginTop:10},renderItem:(I,A)=>{var N;return x.jsx(Yn.Item,{style:(p==null?void 0:p.uid)===I.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>P(I,A),actions:[x.jsx(Yt,{onClick:()=>j(I,A),children:r.formatMessage({id:"robot.list.chat",defaultMessage:"Chat"})}),x.jsx(Yt,{type:"link",onClick:()=>R(I,A),children:r.formatMessage({id:"robot.list.edit",defaultMessage:"Edit"})},"edit"),x.jsx(Yt,{type:"link",onClick:()=>O(I,A),children:r.formatMessage({id:"robot.list.delete",defaultMessage:"Delete"})},"delete")],children:x.jsx(Yn.Item.Meta,{style:{marginLeft:"10px"},title:s(I==null?void 0:I.nickname)+" "+s(I==null?void 0:I.description),description:s((N=I==null?void 0:I.llm)==null?void 0:N.prompt)})},I==null?void 0:I.uid)}}),l&&x.jsx(EJt,{isEdit:a,robot:p,level:e,open:l,onClose:()=>c(!1),onSubmit:M}),y]})},{Sider:MJt,Header:mie,Content:TJt}=Qn,PJt=()=>{const e=jn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsxs(MJt,{width:n,style:t,children:[x.jsx(mie,{style:r,children:e.formatMessage({id:"chat.navbar.category"})}),x.jsx(kJt,{level:Lw,type:S5e})]}),x.jsxs(Qn,{children:[x.jsx(mie,{style:r,children:e.formatMessage({id:"chat.navbar.ai"})}),x.jsx(TJt,{style:i,children:x.jsx($Jt,{level:Lw})})]})]})},OJt=({open:e,onSubmit:t,onClose:n})=>{const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?i.setFieldsValue({email:o==null?void 0:o.email}):(i.resetFields(),k())},[e]);const v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{console.log("changeEmail:",S);const _={email:S.email,code:S.code,platform:gc},E=await Ple(_);console.log("changeEmail response:",E),E.data.code===200?(je.success("Email verify successfully!"),t(S.email),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeEmail:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(D4,{})},name:"email",placeholder:r.formatMessage({id:"pages.login.email.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}],readonly:!0}),x.jsx(Kn.Item,{name:"captchaCode",rules:[],children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(V4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async S=>{if(console.log("email:",S),S){const _={email:S,type:z6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o==null?void 0:o.uid,orgUid:l.uid,platform:gc},E=await rwe(_);if(console.log("sendEmailCode",E),E.data.code!==200){je.error(a(E.data.message)),k();return}je.success(a(E.data.message))}else je.error("手机号格式错误")}})]})})})},RJt=({open:e,onSubmit:t,onClose:n})=>{const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?i.setFieldsValue({mobile:o==null?void 0:o.mobile}):(i.resetFields(),k())},[e]);const v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{console.log("changeMobile:",S);const _={mobile:S.mobile,code:S.code,platform:gc},E=await Ole(_);console.log("changeMobile response:",E),E.data.code===200?(je.success("Mobile verify successfully!"),t(S.mobile),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeMobile:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(D4,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),x.jsx(Kn.Item,{name:"captchaCode",rules:[],children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(V4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async S=>{if(console.log("mobile:",S),S&&S.length===11){const _={mobile:S,type:L6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o==null?void 0:o.uid,orgUid:l.uid,platform:gc},E=await LH(_);if(console.log("sendMobileCode",E),E.data.code!==200){je.error(a(E.data.message)),k();return}je.success(a(E.data.message))}else je.error("手机号格式错误")}})]})})})},IJt=()=>{const e=jn(),t=Mo(),[n]=Kn.useForm(),{userInfo:r,setUserInfo:i}=ia(y=>({userInfo:y.userInfo,setUserInfo:y.setUserInfo})),[a,o]=d.useState(!1),[s,l]=d.useState(!1),c=()=>{o(!0)},u=()=>{l(!0)},f=()=>{o(!1)},p=y=>{o(!1),r.email=y,r.emailVerified=!0,i(r),n.setFieldValue("email",y)},h=()=>{l(!1)},m=y=>{l(!1),r.mobile=y,r.mobileVerified=!0,i(r),n.setFieldValue("mobile",y)};d.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const g=()=>{t("/setting/profile")},v=()=>{t("/setting/profile")};return x.jsxs("div",{children:[x.jsxs(Kn,{form:n,submitter:!1,children:[x.jsx(Or,{name:"email",label:r!=null&&r.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(r!=null&&r.emailVerified)&&r.email!=null&&x.jsx(Yt,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),x.jsx(Yt,{type:"link",onClick:g,children:"重置邮箱"}),x.jsx(Or,{name:"mobile",label:r!=null&&r.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(r!=null&&r.mobileVerified)&&r.mobile!=null&&x.jsx(Yt,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),x.jsx(Yt,{type:"link",onClick:v,children:"重置手机号"})]}),a&&x.jsx(OJt,{open:a,onSubmit:p,onClose:f}),s&&x.jsx(RJt,{open:s,onSubmit:m,onClose:h})]})},jJt=e=>{console.log(e)},NJt=[{key:"personal",label:"个人认证",children:x.jsx(IJt,{})}],AJt=()=>x.jsx("div",{className:"profile-container",children:x.jsx(Yg,{defaultActiveKey:"personal",items:NJt,onChange:jJt})}),DJt=()=>{const[e]=Kn.useForm(),t=jn(),{translateString:n}=Zr(),{agentInfo:r,setAgentInfo:i}=Eo(f=>({agentInfo:f.agentInfo,setAgentInfo:f.setAgentInfo})),[a,o]=d.useState("");d.useEffect(()=>{var f;r&&e.setFieldsValue({nickname:n(r==null?void 0:r.nickname),email:r==null?void 0:r.email,mobile:r==null?void 0:r.mobile,description:n(r==null?void 0:r.description),memberUid:(f=r==null?void 0:r.member)==null?void 0:f.uid})},[r]);const s=f=>{console.log("handleUploadSuccess:",f),o(f)},l=f=>{console.log("handleUploadError:",f),je.error(f)},c=async f=>{var m,g,v,y,w,b,C,k,S,_,E,$,M,P;console.log("onFinish:",f),je.loading(t.formatMessage({id:"updating"}));const p={...r,...f,avatar:a,serviceSettings:{...r.serviceSettings,quickFaqUids:(g=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:g.map(R=>R.uid),faqUids:(y=(v=r==null?void 0:r.serviceSettings)==null?void 0:v.faqs)==null?void 0:y.map(R=>R.uid),guessFaqUids:(b=(w=r==null?void 0:r.serviceSettings)==null?void 0:w.guessFaqs)==null?void 0:b.map(R=>R.uid),hotFaqUids:(k=(C=r==null?void 0:r.serviceSettings)==null?void 0:C.hotFaqs)==null?void 0:k.map(R=>R.uid),shortcutFaqUids:(_=(S=r==null?void 0:r.serviceSettings)==null?void 0:S.shortcutFaqs)==null?void 0:_.map(R=>R.uid)},robotSettings:{...r.robotSettings,robotUid:($=(E=r==null?void 0:r.robotSettings)==null?void 0:E.robot)==null?void 0:$.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(P=(M=r==null?void 0:r.leaveMsgSettings)==null?void 0:M.worktimes)==null?void 0:P.map(R=>R.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",p);const h=await a$e(p);console.log("updateAgent response:",h),h.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"update.success"})),i(h.data.data)):(je.destroy(),je.error(h.data.message))},u=f=>Array.isArray(f)?f:f==null?void 0:f.fileList;return d.useEffect(()=>{var f;r&&(o(r.avatar),e.setFieldsValue({member:(f=r==null?void 0:r.member)==null?void 0:f.nickname}))},[r]),x.jsx(x.Fragment,{children:x.jsxs(Kn,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[x.jsx(Kn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(YU,{onSuccess:s,onError:l,children:[x.jsx(Pi,{src:a}),x.jsx(Yt,{icon:x.jsx(F4,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Or,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),x.jsx(Or,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),x.jsx(Or,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),x.jsx(Cd,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},FJt=()=>(d.useEffect(()=>{},[]),x.jsx(x.Fragment,{children:x.jsx(DJt,{})})),{Sider:LJt,Content:BJt}=Qn,lD=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsxs(LJt,{style:e,width:t,children:[x.jsx(xg,{style:n,children:"home"}),x.jsx(KU,{})]}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"home"}),x.jsx(BJt,{style:r,children:"home"})]})]})})},zJt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);d.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class HJt{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const n of this._parts)t.push(n);return UJt(t).buffer}}function UJt(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e){const a=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);n.set(a,r),r+=i.byteLength}return n}function zxe(e){return new WJt(e).unpack()}function Hxe(e){const t=new VJt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class WJt{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let n;if((n=t^160)<=15)return this.unpack_raw(n);if((n=t^176)<=15)return this.unpack_string(n);if((n=t^144)<=15)return this.unpack_array(n);if((n=t^128)<=15)return this.unpack_map(n);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return n=this.unpack_uint16(),this.unpack_string(n);case 217:return n=this.unpack_uint32(),this.unpack_string(n);case 218:return n=this.unpack_uint16(),this.unpack_raw(n);case 219:return n=this.unpack_uint32(),this.unpack_raw(n);case 220:return n=this.unpack_uint16(),this.unpack_array(n);case 221:return n=this.unpack_uint32(),this.unpack_array(n);case 222:return n=this.unpack_uint16(),this.unpack_map(n);case 223:return n=this.unpack_uint32(),this.unpack_map(n)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),n=(t[0]&255)*256+(t[1]&255);return this.index+=2,n}unpack_uint32(){const t=this.read(4),n=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,n}unpack_uint64(){const t=this.read(8),n=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,n}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length>31,r=(t>>23&255)-127,i=t&8388607|8388608;return(n===0?1:-1)*i*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,i=(t>>20&2047)-1023,o=(t&1048575|1048576)*2**(i-20)+n*2**(i-52);return(r===0?1:-1)*o}read(t){const n=this.index;if(n+t<=this.length)return this.dataView.subarray(n,n+t);throw new Error("BinaryPackFailure: read index out of range")}}class VJt{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const n=t.constructor;if(t instanceof Array){const r=this.pack_array(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const r=t;this.pack_bin(new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(r=>{this.pack_bin(new Uint8Array(r)),this._bufferBuilder.flush()});if(n==Object||n.toString().startsWith("class")){const r=this.pack_object(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${n.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const n=t.length;if(n<=15)this.pack_uint8(160+n);else if(n<=65535)this._bufferBuilder.append(218),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(n);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const n=this._textEncoder.encode(t),r=n.length;if(r<=15)this.pack_uint8(176+r);else if(r<=65535)this._bufferBuilder.append(216),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_array(t){const n=t.length;if(n<=15)this.pack_uint8(144+n);else if(n<=65535)this._bufferBuilder.append(220),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(n);else throw new Error("Invalid length");const r=i=>{if(ir(i+1)):r(i+1)}};return r(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let n=0;t<0&&(n=1,t=-t);const r=Math.floor(Math.log(t)/Math.LN2),i=t/2**r-1,a=Math.floor(i*2**52),o=2**32,s=n<<31|r+1023<<20|a/o&1048575,l=a%o;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const n=Object.keys(t),r=n.length;if(r<=15)this.pack_uint8(128+r);else if(r<=65535)this._bufferBuilder.append(222),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(r);else throw new Error("Invalid length");const i=a=>{if(ai(a+1))}return i(a+1)}};return i(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const n=t&4294967295;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_uint64(t){const n=t/4294967296,r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const n=Math.floor(t/4294967296),r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}constructor(){this._bufferBuilder=new HJt,this._textEncoder=new TextEncoder}}let Uxe=!0,Wxe=!0;function N_(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function y1(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(o,s){if(o!==t)return i.apply(this,arguments);const l=c=>{const u=n(c);u&&(s.handleEvent?s.handleEvent(u):s(u))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),i.apply(this,[o,l])};const a=r.removeEventListener;r.removeEventListener=function(o,s){if(o!==t||!this._eventMap||!this._eventMap[t])return a.apply(this,arguments);if(!this._eventMap[t].has(s))return a.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[o,l])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(o){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),o&&this.addEventListener(t,this["_on"+t]=o)},enumerable:!0,configurable:!0})}function qJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Uxe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function KJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Wxe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Vxe(){if(typeof window=="object"){if(Uxe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function ZU(e,t){Wxe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function GJt(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(i=>i.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=N_(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=N_(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=N_(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function gie(e){return Object.prototype.toString.call(e)==="[object Object]"}function qxe(e){return gie(e)?Object.keys(e).reduce(function(t,n){const r=gie(e[n]),i=r?qxe(e[n]):e[n],a=r&&!Object.keys(i).length;return i===void 0||a?t:Object.assign(t,{[n]:i})},{}):e}function cD(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?cD(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{cD(e,e.get(i),n)})}))}function vie(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;const a=[];return e.forEach(o=>{o.type==="track"&&o.trackIdentifier===t.id&&a.push(o)}),a.forEach(o=>{e.forEach(s=>{s.type===r&&s.trackId===o.id&&cD(e,s,i)})}),i}const yie=Vxe;function Kxe(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const u=typeof s[c]=="object"?s[c]:{ideal:s[c]};u.exact!==void 0&&typeof u.exact=="number"&&(u.min=u.max=u.exact);const f=function(p,h){return p?p+h.charAt(0).toUpperCase()+h.slice(1):h==="deviceId"?"sourceId":h};if(u.ideal!==void 0){l.optional=l.optional||[];let p={};typeof u.ideal=="number"?(p[f("min",c)]=u.ideal,l.optional.push(p),p={},p[f("max",c)]=u.ideal,l.optional.push(p)):(p[f("",c)]=u.ideal,l.optional.push(p))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[f("",c)]=u.exact):["min","max"].forEach(p=>{u[p]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[f(p,c)]=u[p])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},i=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(u,f,p){f in u&&!(p in u)&&(u[p]=u[f],delete u[f])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=r(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const u=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete s.video.facingMode;let f;if(c.exact==="environment"||c.ideal==="environment"?f=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(f=["front"]),f)return n.mediaDevices.enumerateDevices().then(p=>{p=p.filter(m=>m.kind==="videoinput");let h=p.find(m=>f.some(g=>m.label.toLowerCase().includes(g)));return!h&&p.length&&f.includes("back")&&(h=p[p.length-1]),h&&(s.video.deviceId=c.exact?{exact:h.deviceId}:{ideal:h.deviceId}),s.video=r(s.video),yie("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return yie("chrome: "+JSON.stringify(s)),l(s)},a=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},o=function(s,l,c){i(s,u=>{n.webkitGetUserMedia(u,l,f=>{c&&c(a(f))})})};if(n.getUserMedia=o.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return i(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(a(u))))}}}function Gxe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Yxe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",i=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(s=>s.track&&s.track.id===i.track.id):a={track:i.track};const o=new Event("track");o.track=i.track,o.receiver=a,o.transceiver={receiver:a},o.streams=[r.stream],this.dispatchEvent(o)}),r.stream.getTracks().forEach(i=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(s=>s.track&&s.track.id===i.id):a={track:i};const o=new Event("track");o.track=i,o.receiver=a,o.transceiver={receiver:a},o.streams=[r.stream],this.dispatchEvent(o)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else y1(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function Xxe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(i,a){return{track:a,get dtmf(){return this._dtmf===void 0&&(a.kind==="audio"?this._dtmf=i.createDTMFSender(a):this._dtmf=null),this._dtmf},_pc:i}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const i=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=i.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const a=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){a.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._senders=this._senders||[],n.apply(this,[a]),a.getTracks().forEach(o=>{this._senders.push(t(this,o))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){this._senders=this._senders||[],r.apply(this,[a]),a.getTracks().forEach(o=>{const s=this._senders.find(l=>l.track===o);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Zxe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const a=n.apply(this,[]);return a.forEach(o=>o._pc=this),a});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const a=r.apply(this,arguments);return a._pc=this,a}),e.RTCRtpSender.prototype.getStats=function(){const a=this;return this._pc.getStats().then(o=>vie(o,a.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=n.apply(this,[]);return i.forEach(a=>a._pc=this),i}),y1(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>vie(a,i.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let i,a,o;return this.getSenders().forEach(s=>{s.track===r&&(i?o=!0:i=s)}),this.getReceivers().forEach(s=>(s.track===r&&(a?o=!0:a=s),s.track===r)),o||i&&a?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():a?a.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Qxe(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(o=>this._shimmedLocalStreams[o][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(o,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(o){this._shimmedLocalStreams=this._shimmedLocalStreams||{},o.getTracks().forEach(c=>{if(this.getSenders().find(f=>f.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();n.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[o.id]=[o].concat(l)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(o){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[o.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(o){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},o&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(o);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),i.apply(this,arguments)}}function Jxe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Qxe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(f=>this._reverseStreams[f.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(f=>{if(this.getSenders().find(h=>h.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const f=new e.MediaStream(u.getTracks());this._streams[u.id]=f,this._reverseStreams[f.id]=u,u=f}r.apply(this,[u])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,f){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const p=[].slice.call(arguments,1);if(p.length!==1||!p[0].getTracks().find(g=>g===u))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(g=>g.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[f.id];if(m)m.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const g=new e.MediaStream([u]);this._streams[f.id]=g,this._reverseStreams[g.id]=f,this.addStream(g)}return this.getSenders().find(g=>g.track===u)};function a(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{const h=c._reverseStreams[p],m=c._streams[h.id];f=f.replace(new RegExp(m.id,"g"),h.id)}),new RTCSessionDescription({type:u.type,sdp:f})}function o(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{const h=c._reverseStreams[p],m=c._streams[h.id];f=f.replace(new RegExp(h.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:f})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],f={[c](){const p=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const g=a(this,m);p[0].apply(null,[g])},m=>{p[1]&&p[1].apply(null,m)},arguments[2]]):u.apply(this,arguments).then(m=>a(this,m))}};e.RTCPeerConnection.prototype[c]=f[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=o(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:a(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!u._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(u._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let p;Object.keys(this._streams).forEach(h=>{this._streams[h].getTracks().find(g=>u.track===g)&&(p=this._streams[h])}),p&&(p.getTracks().length===1?this.removeStream(this._reverseStreams[p.id]):p.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function uD(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],i={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=i[n]})}function eSe(e,t){y1(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const bie=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:eSe,shimAddTrackRemoveTrack:Jxe,shimAddTrackRemoveTrackWithNative:Qxe,shimGetSendersWithDtmf:Xxe,shimGetUserMedia:Kxe,shimMediaStream:Gxe,shimOnTrack:Yxe,shimPeerConnection:uD,shimSenderReceiverGetStats:Zxe},Symbol.toStringTag,{value:"Module"}));function tSe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,a,o){ZU("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(i).then(a,o)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const i=function(o,s,l){s in o&&!(l in o)&&(o[l]=o[s],delete o[s])},a=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(o){return typeof o=="object"&&typeof o.audio=="object"&&(o=JSON.parse(JSON.stringify(o)),i(o.audio,"autoGainControl","mozAutoGainControl"),i(o.audio,"noiseSuppression","mozNoiseSuppression")),a(o)},r&&r.prototype.getSettings){const o=r.prototype.getSettings;r.prototype.getSettings=function(){const s=o.apply(this,arguments);return i(s,"mozAutoGainControl","autoGainControl"),i(s,"mozNoiseSuppression","noiseSuppression"),s}}if(r&&r.prototype.applyConstraints){const o=r.prototype.applyConstraints;r.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),i(s,"autoGainControl","mozAutoGainControl"),i(s,"noiseSuppression","mozNoiseSuppression")),o.apply(this,[s])}}}}function YJt(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function nSe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function dD(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){const a=e.RTCPeerConnection.prototype[i],o={[i](){return arguments[0]=new(i==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};e.RTCPeerConnection.prototype[i]=o[i]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[a,o,s]=arguments;return r.apply(this,[a||null]).then(l=>{if(t.version<53&&!o)try{l.forEach(c=>{c.type=n[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((u,f)=>{l.set(f,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(o,s)}}function rSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=t.apply(this,[]);return i.forEach(a=>a._pc=this),i});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=n.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function iSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r}),y1(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function aSe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){ZU("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function oSe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function sSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const i=r.length>0;i&&r.forEach(o=>{if("rid"in o&&!/^[a-z0-9]{0,16}$/i.test(o.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in o&&!(parseFloat(o.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in o&&!(parseFloat(o.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const a=t.apply(this,arguments);if(i){const{sender:o}=a,s=o.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=r,o.sendEncodings=r,this.setParametersPromises.push(o.setParameters(s).then(()=>{delete o.sendEncodings}).catch(()=>{delete o.sendEncodings})))}return a})}function lSe(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function cSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function uSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const wie=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:sSe,shimCreateAnswer:uSe,shimCreateOffer:cSe,shimGetDisplayMedia:YJt,shimGetParameters:lSe,shimGetUserMedia:tSe,shimOnTrack:nSe,shimPeerConnection:dD,shimRTCDataChannel:oSe,shimReceiverGetStats:iSe,shimRemoveStream:aSe,shimSenderGetStats:rSe},Symbol.toStringTag,{value:"Module"}));function dSe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(i=>t.call(this,i,r)),r.getVideoTracks().forEach(i=>t.call(this,i,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...i){return i&&i.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const i=n.getTracks();this.getSenders().forEach(a=>{i.includes(a.track)&&this.removeTrack(a)})})}}function fSe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,this.dispatchEvent(a)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(a=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(a)>=0)return;r._remoteStreams.push(a);const o=new Event("addstream");o.stream=a,r.dispatchEvent(o)})}),t.apply(r,arguments)}}}function pSe(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,a=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],p=n.apply(this,[f]);return u?(p.then(c,u),Promise.resolve()):p},t.createAnswer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],p=r.apply(this,[f]);return u?(p.then(c,u),Promise.resolve()):p};let s=function(l,c,u){const f=i.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f};t.setLocalDescription=s,s=function(l,c,u){const f=a.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.setRemoteDescription=s,s=function(l,c,u){const f=o.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.addIceCandidate=s}function hSe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=i=>r(mSe(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,a){t.mediaDevices.getUserMedia(r).then(i,a)}).bind(t))}function mSe(e){return e&&e.video!==void 0?Object.assign({},e,{video:qxe(e.video)}):e}function gSe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){const a=[];for(let o=0;oo.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const a=this.getTransceivers().find(o=>o.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):r.offerToReceiveVideo===!0&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function bSe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const xie=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:bSe,shimCallbacksAPI:pSe,shimConstraints:mSe,shimCreateOfferLegacy:ySe,shimGetUserMedia:hSe,shimLocalStreamsAPI:dSe,shimRTCIceServerUrls:gSe,shimRemoteStreamsAPI:fSe,shimTrackEventTransceiver:vSe},Symbol.toStringTag,{value:"Module"}));var wSe={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var _7=br.default;Object.defineProperty(pu,"__esModule",{value:!0});pu.default=yXt;pu.unitless=pu.ignore=pu.getComputedToken=void 0;var dXt=_7(d),fXt=Ih,pXt=_7(x7),Jre=hd,hXt=_7(Ed),vxe=_7(OU),eie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=eie(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=(0,vxe.default)(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=eie(c,["theme"]);let p=f;u&&(p=RU(Object.assign(Object.assign({},o),f),{override:f},u)),o[l]=p}),o};pu.getComputedToken=RU;function yXt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=dXt.default.useContext(Jre.DesignTokenContext),a=`${pXt.default}-${t||""}`,o=n||Jre.defaultTheme,[s,l,c]=(0,fXt.useCacheToken)(o,[hXt.default,e],{salt:a,override:r,getComputedToken:RU,formatToken:vxe.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:mXt,ignore:gXt,preserve:vXt}});return[o,c,t?l:"",s,i]}var sh={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.textEllipsis=ea.resetIcon=ea.resetComponent=ea.operationUnit=ea.genLinkStyle=ea.genIconStyle=ea.genFocusStyle=ea.genFocusOutline=ea.genCommonStyle=ea.clearFix=void 0;var bXt=Ih;ea.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const wXt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};ea.resetComponent=wXt;const yxe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});ea.resetIcon=yxe;const xXt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});ea.clearFix=xXt;const SXt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});ea.genLinkStyle=SXt;const CXt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}};ea.genCommonStyle=CXt;const bxe=(e,t)=>({outline:`${(0,bXt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});ea.genFocusOutline=bxe;const wxe=(e,t)=>({"&:focus-visible":Object.assign({},bxe(e,t))});ea.genFocusStyle=wxe;const _Xt=e=>({[`.${e}`]:Object.assign(Object.assign({},yxe()),{[`.${e} .${e}-icon`]:{display:"block"}})});ea.genIconStyle=_Xt;const kXt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},wxe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});ea.operationUnit=kXt;var EXt=$a.default;Object.defineProperty(sh,"__esModule",{value:!0});sh.genSubStyleComponent=sh.genStyleHooks=sh.genComponentStyleHook=void 0;var tie=d,$Xt=mxe,BP=wl,zP=ea,nie=EXt(pu);const{genStyleHooks:MXt,genComponentStyleHook:TXt,genSubStyleComponent:PXt}=(0,$Xt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,tie.useContext)(BP.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,nie.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,tie.useContext)(BP.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,zP.genLinkStyle)(e)},(0,zP.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:BP.defaultIconPrefixCls)]},getCommonStyle:zP.genCommonStyle,getCompUnitless:()=>nie.unitless});sh.genSubStyleComponent=PXt;sh.genComponentStyleHook=TXt;sh.genStyleHooks=MXt;var IU={};Object.defineProperty(IU,"__esModule",{value:!0});IU.default=RXt;var OXt=PU;function RXt(e,t){return OXt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}var k7={},IXt=br.default;Object.defineProperty(k7,"__esModule",{value:!0});k7.default=void 0;var jXt=Ih,NXt=ea,AXt=IXt(pu);const DXt=(e,t)=>{const[n,r]=(0,AXt.default)();return(0,jXt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,NXt.genIconStyle)(e)])};k7.default=DXt;(function(e){var t=br.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return a.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return o.default}});var n=Ih,r=mxe,i=PU,a=mx,o=t(pu),s=sh,l=t(IU),c=t(k7),u=hd})(ub);var E7={},FXt=$a.default;Object.defineProperty(E7,"__esModule",{value:!0});E7.default=void 0;var LXt=FXt(d);const BXt=Object.assign({},LXt),{useId:rie}=BXt,zXt=()=>"",HXt=typeof rie>"u"?zXt:rie;E7.default=HXt;var jU=br.default;Object.defineProperty(TU,"__esModule",{value:!0});TU.default=KXt;var UXt=jU(c7),WXt=jU(b7),VXt=pc,iie=ub,qXt=jU(E7);function KXt(e,t,n){var r;(0,VXt.devUseWarning)("ConfigProvider");const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},iie.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:iie.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=(0,qXt.default)();return(0,UXt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!(0,WXt.default)(c,f,!0)}))}var NU={};const GXt=B3(ZNe);var YXt=$a.default;Object.defineProperty(NU,"__esModule",{value:!0});NU.default=QXt;var aie=YXt(d),XXt=GXt,ZXt=ub;function QXt(e){const{children:t}=e,[,n]=(0,ZXt.useToken)(),{motion:r}=n,i=aie.useRef(!1);return i.current=i.current||r===!1,i.current?aie.createElement(XXt.Provider,{motion:r},t):t}var $7={},JXt=$a.default;Object.defineProperty($7,"__esModule",{value:!0});$7.default=void 0;JXt(d);$7.default=()=>null;var xxe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=ub})(xxe);(function(e){"use client";var t=br.default,n=$a.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(d),i=Ih,a=t(Qy),o=t(c7),s=u7,l=n(pc),c=t(d7),u=n(sxe),f=t(cb),p=t(Ig),h=hd,m=t(Ed),g=wl,v=v7,y=Tg,w=t(y7),b=t(TU),C=t(NU),k=t($7),S=n(Pg),_=t(xxe),E=function(V,B){var U={};for(var Y in V)Object.prototype.hasOwnProperty.call(V,Y)&&B.indexOf(Y)<0&&(U[Y]=V[Y]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Y=Object.getOwnPropertySymbols(V);eeB.endsWith("Color"))}const N=V=>{const{prefixCls:B,iconPrefixCls:U,theme:Y,holderRender:ee}=V;B!==void 0&&(M=B),U!==void 0&&(P=U),"holderRender"in V&&(O=ee),Y&&(A(Y)?(0,v.registerTheme)(j(),Y):R=Y)},F=()=>({getPrefixCls:(V,B)=>B||(V?`${j()}-${V}`:j()),getIconPrefixCls:I,getRootPrefixCls:()=>M||j(),getTheme:()=>R,holderRender:O});e.globalConfig=F;const K=V=>{const{children:B,csp:U,autoInsertSpaceInButton:Y,alert:ee,anchor:ie,form:Z,locale:X,componentSize:ae,direction:oe,space:le,splitter:ce,virtual:pe,dropdownMatchSelectWidth:me,popupMatchSelectWidth:re,popupOverflow:fe,legacyLocale:ve,parentContext:$e,iconPrefixCls:Ce,theme:be,componentDisabled:Se,segmented:we,statistic:se,spin:ye,calendar:Oe,carousel:z,cascader:H,collapse:G,typography:de,checkbox:xe,descriptions:he,divider:Ue,drawer:We,skeleton:ge,steps:ze,image:Ve,layout:Be,list:Xe,mentions:Ke,modal:qe,progress:Et,result:ut,slider:gt,breadcrumb:Qe,menu:nt,pagination:jt,input:Lt,textArea:Bt,empty:Ut,badge:Ne,radio:He,rate:Le,switch:Je,transfer:pt,avatar:xt,message:Nt,tag:Ot,table:Pt,card:st,tabs:Ct,timeline:kt,timePicker:qt,upload:vt,notification:At,tree:dt,colorPicker:De,datePicker:Ye,rangePicker:ot,flex:Re,wave:It,dropdown:rt,warning:$t,tour:Mt,tooltip:dn,popover:pn,popconfirm:T,floatButtonGroup:D,variant:J,inputNumber:ke,treeSelect:Ie}=V,it=r.useCallback((on,Ze)=>{const{prefixCls:bt}=V;if(Ze)return Ze;const sn=bt||$e.getPrefixCls("");return on?`${sn}-${on}`:sn},[$e.getPrefixCls,V.prefixCls]),Ft=Ce||$e.iconPrefixCls||g.defaultIconPrefixCls,rn=U||$e.csp;(0,_.default)(Ft,rn);const On=(0,b.default)(be,$e.theme,{prefixCls:it("")}),Er={csp:rn,autoInsertSpaceInButton:Y,alert:ee,anchor:ie,locale:X||ve,direction:oe,space:le,splitter:ce,virtual:pe,popupMatchSelectWidth:re??me,popupOverflow:fe,getPrefixCls:it,iconPrefixCls:Ft,theme:On,segmented:we,statistic:se,spin:ye,calendar:Oe,carousel:z,cascader:H,collapse:G,typography:de,checkbox:xe,descriptions:he,divider:Ue,drawer:We,skeleton:ge,steps:ze,image:Ve,input:Lt,textArea:Bt,layout:Be,list:Xe,mentions:Ke,modal:qe,progress:Et,result:ut,slider:gt,breadcrumb:Qe,menu:nt,pagination:jt,empty:Ut,badge:Ne,radio:He,rate:Le,switch:Je,transfer:pt,avatar:xt,message:Nt,tag:Ot,table:Pt,card:st,tabs:Ct,timeline:kt,timePicker:qt,upload:vt,notification:At,tree:dt,colorPicker:De,datePicker:Ye,rangePicker:ot,flex:Re,wave:It,dropdown:rt,warning:$t,tour:Mt,tooltip:dn,popover:pn,popconfirm:T,floatButtonGroup:D,variant:J,inputNumber:ke,treeSelect:Ie},Mr=Object.assign({},$e);Object.keys(Er).forEach(on=>{Er[on]!==void 0&&(Mr[on]=Er[on])}),$.forEach(on=>{const Ze=V[on];Ze&&(Mr[on]=Ze)}),typeof Y<"u"&&(Mr.button=Object.assign({autoInsertSpace:Y},Mr.button));const mr=(0,o.default)(()=>Mr,Mr,(on,Ze)=>{const bt=Object.keys(on),sn=Object.keys(Ze);return bt.length!==sn.length||bt.some(Pn=>on[Pn]!==Ze[Pn])}),pr=r.useMemo(()=>({prefixCls:Ft,csp:rn}),[Ft,rn]);let cn=r.createElement(r.Fragment,null,r.createElement(k.default,{dropdownMatchSelectWidth:me}),B);const Sn=r.useMemo(()=>{var on,Ze,bt,sn;return(0,s.merge)(((on=p.default.Form)===null||on===void 0?void 0:on.defaultValidateMessages)||{},((bt=(Ze=mr.locale)===null||Ze===void 0?void 0:Ze.Form)===null||bt===void 0?void 0:bt.defaultValidateMessages)||{},((sn=mr.form)===null||sn===void 0?void 0:sn.validateMessages)||{},(Z==null?void 0:Z.validateMessages)||{})},[mr,Z==null?void 0:Z.validateMessages]);Object.keys(Sn).length>0&&(cn=r.createElement(c.default.Provider,{value:Sn},cn)),X&&(cn=r.createElement(u.default,{locale:X,_ANT_MARK__:u.ANT_MARK},cn)),(Ft||rn)&&(cn=r.createElement(a.default.Provider,{value:pr},cn)),ae&&(cn=r.createElement(S.SizeContextProvider,{size:ae},cn)),cn=r.createElement(C.default,null,cn);const gr=r.useMemo(()=>{const on=On||{},{algorithm:Ze,token:bt,components:sn,cssVar:Pn}=on,qn=E(on,["algorithm","token","components","cssVar"]),ln=Ze&&(!Array.isArray(Ze)||Ze.length>0)?(0,i.createTheme)(Ze):h.defaultTheme,or={};Object.entries(sn||{}).forEach(wn=>{let[An,tr]=wn;const wr=Object.assign({},tr);"algorithm"in wr&&(wr.algorithm===!0?wr.theme=ln:(Array.isArray(wr.algorithm)||typeof wr.algorithm=="function")&&(wr.theme=(0,i.createTheme)(wr.algorithm)),delete wr.algorithm),or[An]=wr});const ri=Object.assign(Object.assign({},m.default),bt);return Object.assign(Object.assign({},qn),{theme:ln,token:ri,components:or,override:Object.assign({override:ri},or),cssVar:Pn})},[On]);return be&&(cn=r.createElement(h.DesignTokenContext.Provider,{value:gr},cn)),mr.warning&&(cn=r.createElement(l.WarningContext.Provider,{value:mr.warning},cn)),Se!==void 0&&(cn=r.createElement(y.DisabledContextProvider,{disabled:Se},cn)),r.createElement(g.ConfigContext.Provider,{value:mr},cn)},L=V=>{const B=r.useContext(g.ConfigContext),U=r.useContext(f.default);return r.createElement(K,Object.assign({parentContext:B,legacyLocale:U},V))};L.ConfigContext=g.ConfigContext,L.SizeContext=S.default,L.config=N,L.useConfig=w.default,Object.defineProperty(L,"SizeContext",{get:()=>S.default}),e.default=L})(wU);var vx={},eZt=$a.default;Object.defineProperty(vx,"__esModule",{value:!0});vx.LayoutContext=void 0;var tZt=eZt(d);vx.LayoutContext=tZt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var AU={},DU={},FU={},nZt=br.default;Object.defineProperty(FU,"__esModule",{value:!0});FU.default=sZt;var rZt=nZt(jg),iZt=Symbol.for("react.element"),aZt=Symbol.for("react.transitional.element"),oZt=Symbol.for("react.fragment");function sZt(e){return e&&(0,rZt.default)(e)==="object"&&(e.$$typeof===iZt||e.$$typeof===aZt)&&e.type===oZt}var Sxe=br.default;Object.defineProperty(DU,"__esModule",{value:!0});DU.default=rD;var lZt=Sxe(FU),cZt=Sxe(d);function rD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return cZt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(rD(r)):(0,lZt.default)(r)&&r.props?n=n.concat(rD(r.props.children,t)):n.push(r))}),n}var ry={},iD={exports:{}},M7={},LU={};Object.defineProperty(LU,"__esModule",{value:!0});var uZt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};LU.default=uZt;var dZt=$a.default,BU=br.default;Object.defineProperty(M7,"__esModule",{value:!0});M7.default=void 0;var fZt=BU(T$),Cxe=dZt(d),pZt=BU(LU),hZt=BU(Zy),mZt=function(t,n){return Cxe.createElement(hZt.default,(0,fZt.default)({},t,{ref:n,icon:pZt.default}))},gZt=Cxe.forwardRef(mZt);M7.default=gZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(M7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(iD,iD.exports);var vZt=iD.exports,aD={exports:{}},T7={},zU={};Object.defineProperty(zU,"__esModule",{value:!0});var yZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};zU.default=yZt;var bZt=$a.default,HU=br.default;Object.defineProperty(T7,"__esModule",{value:!0});T7.default=void 0;var wZt=HU(T$),_xe=bZt(d),xZt=HU(zU),SZt=HU(Zy),CZt=function(t,n){return _xe.createElement(SZt.default,(0,wZt.default)({},t,{ref:n,icon:xZt.default}))},_Zt=_xe.forwardRef(CZt);T7.default=_Zt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(T7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(aD,aD.exports);var kZt=aD.exports,oD={exports:{}},P7={},UU={};Object.defineProperty(UU,"__esModule",{value:!0});var EZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};UU.default=EZt;var $Zt=$a.default,WU=br.default;Object.defineProperty(P7,"__esModule",{value:!0});P7.default=void 0;var MZt=WU(T$),kxe=$Zt(d),TZt=WU(UU),PZt=WU(Zy),OZt=function(t,n){return kxe.createElement(PZt.default,(0,MZt.default)({},t,{ref:n,icon:TZt.default}))},RZt=kxe.forwardRef(OZt);P7.default=RZt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(P7);function r(a){return a&&a.__esModule?a:{default:a}}const i=n;t.default=i,e.exports=i})(oD,oD.exports);var IZt=oD.exports,O7={},xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.prepareComponentToken=xf.default=xf.DEPRECATED_TOKENS=void 0;var jZt=Ih,NZt=ub;const AZt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:(0,jZt.unit)(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Exe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};xf.prepareComponentToken=Exe;const DZt=xf.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];xf.default=(0,NZt.genStyleHooks)("Layout",e=>[AZt(e)],Exe,{deprecatedTokens:DZt});Object.defineProperty(O7,"__esModule",{value:!0});O7.default=void 0;var l2=Ih,oie=xf,FZt=ub;const LZt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:(0,l2.unit)(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,l2.unit)(p)} ${(0,l2.unit)(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,l2.unit)(p)} 0 0 ${(0,l2.unit)(p)}`}}},"&-light":{background:h,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};O7.default=(0,FZt.genStyleHooks)(["Layout","Sider"],e=>[LZt(e)],oie.prepareComponentToken,{deprecatedTokens:oie.DEPRECATED_TOKENS});var db=br.default,BZt=$a.default;Object.defineProperty(ry,"__esModule",{value:!0});ry.default=ry.SiderContext=void 0;var Qd=BZt(d),fl=Qd,zZt=db(vZt),sie=db(kZt),lie=db(IZt),cie=db(TE),HZt=db(l7),UZt=wU,WZt=vx,VZt=db(O7),qZt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),GZt=ry.SiderContext=fl.createContext({}),YZt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),XZt=fl.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=qZt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=(0,Qd.useContext)(WZt.LayoutContext),[b,C]=(0,Qd.useState)("collapsed"in e?e.collapsed:o),[k,S]=(0,Qd.useState)(!1);(0,Qd.useEffect)(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const _=(X,ae)=>{"collapsed"in e||C(X),g==null||g(X,ae)},{getPrefixCls:E,direction:$}=(0,Qd.useContext)(UZt.ConfigContext),M=E("layout-sider",n),[P,R,O]=(0,VZt.default)(M),j=(0,Qd.useRef)(null);j.current=X=>{S(X.matches),v==null||v(X.matches),b!==X.matches&&_(X.matches,"responsive")},(0,Qd.useEffect)(()=>{function X(oe){return j.current(oe)}let ae;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&m&&m in uie){ae=oe(`screen and (max-width: ${uie[m]})`);try{ae.addEventListener("change",X)}catch{ae.addListener(X)}X(ae)}}return()=>{try{ae==null||ae.removeEventListener("change",X)}catch{ae==null||ae.removeListener(X)}}},[m]),(0,Qd.useEffect)(()=>{const X=YZt("ant-sider-");return w.addSider(X),()=>w.removeSider(X)},[]);const I=()=>{_(!b,"clickTrigger")},A=(0,HZt.default)(y,["collapsed"]),N=b?p:f,F=KZt(N)?`${N}px`:String(N),K=parseFloat(String(p||0))===0?fl.createElement("span",{onClick:I,className:(0,cie.default)(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${u?"right":"left"}`),style:h},i||fl.createElement(zZt.default,null)):null,L=$==="rtl"==!u,U={expanded:L?fl.createElement(lie.default,null):fl.createElement(sie.default,null),collapsed:L?fl.createElement(sie.default,null):fl.createElement(lie.default,null)}[b?"collapsed":"expanded"],Y=i!==null?K||fl.createElement("div",{className:`${M}-trigger`,onClick:I,style:{width:F}},i||U):null,ee=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=(0,cie.default)(M,`${M}-${s}`,{[`${M}-collapsed`]:!!b,[`${M}-has-trigger`]:c&&i!==null&&!K,[`${M}-below`]:!!k,[`${M}-zero-width`]:parseFloat(F)===0},r,R,O),Z=fl.useMemo(()=>({siderCollapsed:b}),[b]);return P(fl.createElement(GZt.Provider,{value:Z},fl.createElement("aside",Object.assign({className:ie},A,{style:ee,ref:t}),fl.createElement("div",{className:`${M}-children`},a),c||k&&K?Y:null)))});ry.default=XZt;var $xe=br.default;Object.defineProperty(AU,"__esModule",{value:!0});AU.default=JZt;var ZZt=$xe(DU),QZt=$xe(ry);function JZt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,ZZt.default)(t).some(i=>i.type===QZt.default)}var R7,I7,eQt=$a.default,yx=br.default;Object.defineProperty(mf,"__esModule",{value:!0});mf.default=mf.Header=I7=mf.Footer=R7=mf.Content=void 0;var tQt=yx(txe),nc=eQt(d),Mxe=yx(TE),nQt=yx(l7),sD=wU,rQt=vx,iQt=yx(AU),Txe=yx(xf),Pxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);inc.forwardRef((o,s)=>nc.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const VU=nc.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=Pxe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=nc.useContext(sD.ConfigContext),l=s("layout",n),[c,u,f]=(0,Txe.default)(l),p=r?`${l}-${r}`:l;return c(nc.createElement(a,Object.assign({className:(0,Mxe.default)(n||p,i,u,f),ref:t},o)))}),aQt=nc.forwardRef((e,t)=>{const{direction:n}=nc.useContext(sD.ConfigContext),[r,i]=nc.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,p=Pxe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,nQt.default)(p,["suffixCls"]),{getPrefixCls:m,layout:g}=nc.useContext(sD.ConfigContext),v=m("layout",a),y=(0,iQt.default)(r,l,c),[w,b,C]=(0,Txe.default)(v),k=(0,Mxe.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,o,s,b,C),S=nc.useMemo(()=>({siderHook:{addSider:_=>{i(E=>[].concat((0,tQt.default)(E),[_]))},removeSider:_=>{i(E=>E.filter($=>$!==_))}}}),[]);return w(nc.createElement(rQt.LayoutContext.Provider,{value:S},nc.createElement(u,Object.assign({ref:t,className:k,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},h),l)))}),oQt=j7({tagName:"div",displayName:"Layout"})(aQt);mf.Header=j7({suffixCls:"header",tagName:"header",displayName:"Header"})(VU);I7=mf.Footer=j7({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(VU);R7=mf.Content=j7({suffixCls:"content",tagName:"main",displayName:"Content"})(VU);mf.default=oQt;const sQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},qU=so()(Jo(es(ts((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===yse){const i=t().devices.some(a=>a.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(a=>a.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===N6e){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:k6e}))),lQt=e=>{const t=n=>{var r,i,a,o,s,l,c;return((r=n==null?void 0:n.user)==null?void 0:r.avatar)===null||((i=n==null?void 0:n.user)==null?void 0:i.avatar)===void 0||((a=n==null?void 0:n.user)==null?void 0:a.avatar)===""?x.jsx("img",{src:Ik((o=n==null?void 0:n.user)==null?void 0:o.uid),alt:"Avatar"}):((s=n==null?void 0:n.user)==null?void 0:s.avatar.indexOf("local"))>-1?x.jsx("img",{src:Ik((l=n==null?void 0:n.user)==null?void 0:l.uid),alt:"Avatar"}):x.jsx(Pi,{shape:"square",size:"large",src:(c=n==null?void 0:n.user)==null?void 0:c.avatar})};return x.jsx("div",{children:t(e)})},KU=()=>{const{devices:e,currentContact:t,setCurrentContact:n}=qU(a=>({devices:a.devices,currentContact:a.currentContact,setCurrentContact:a.setCurrentContact})),r=(a,o)=>{console.log("handleContactClick",a,o),n(a)},i=(a,o)=>{console.log("handleContactDoubleClick",a,o)};return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(a,o)=>{var s,l,c;return x.jsx(Yn.Item,{onClick:()=>r(a,o),onDoubleClick:()=>i(a,o),children:x.jsx(Yn.Item.Meta,{style:((s=t==null?void 0:t.device)==null?void 0:s.uid)===((l=a==null?void 0:a.device)==null?void 0:l.uid)?{backgroundColor:"#f0f2f5"}:{},avatar:lQt(a),title:(c=a==null?void 0:a.user)==null?void 0:c.nickname,description:a==null?void 0:a.createdAt})})}}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},cQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},uQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},dQt=()=>{console.log("MemberList");const{userInfo:e}=t1(),{translateString:t}=Zr(),{isDarkMode:n}=d.useContext(Ea),{currentMember:r,memberResult:i,setCurrentMember:a,setMemberSelf:o,setMemberResult:s}=Na(f=>({currentMember:f.currentMember,memberResult:f.memberResult,setCurrentMember:f.setCurrentMember,setMemberSelf:f.setMemberInfo,setMemberResult:f.setMemberResult})),l=d.useMemo(()=>{const f=i==null?void 0:i.data.content;return f?(console.log("membersWithoutSelf",f,e==null?void 0:e.uid),f.filter(p=>{var h;return((h=p==null?void 0:p.user)==null?void 0:h.uid)!=(e==null?void 0:e.uid)})):[]},[i,e]),c=async()=>{var m,g;if(console.log("getAllMembers"),(e==null?void 0:e.currentOrganization)==null||(e==null?void 0:e.currentOrganization)===void 0){console.log("userInfo.organizations is empty");return}const p={pageNumber:0,pageSize:100,orgUid:(m=e==null?void 0:e.currentOrganization)==null?void 0:m.uid},h=await t$(p);if(console.log("queryMembersByOrg:",p,h.data),h.data.code===200){for(let v=0;v{c()},[]);const u=f=>{console.log("handleMemberClick",f),a(f)};return x.jsx("div",{children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:l,renderItem:f=>x.jsx(Yn.Item,{style:(r==null?void 0:r.uid)===(f==null?void 0:f.uid)?{backgroundColor:n?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>u(f),children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:f==null?void 0:f.avatar}),title:x.jsx("a",{children:f==null?void 0:f.nickname}),description:t(f==null?void 0:f.description)})})})})},fQt=()=>{const e=[];return x.jsx("div",{children:e.length>0?x.jsx(Yn,{itemLayout:"horizontal",dataSource:e,renderItem:(t,n)=>x.jsx(Yn.Item,{children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${n}`}),title:x.jsx("a",{children:t.title}),description:"Ant Design"})})}):x.jsx(x.Fragment,{children:x.jsx(za,{})})})},pQt=()=>{const e=jn(),t=[{key:"new",label:e.formatMessage({id:"contact.list.new",defaultMessage:"New Friends"}),children:x.jsx(sQt,{})},{key:"device",label:e.formatMessage({id:"contact.list.device",defaultMessage:"LAN Devices"}),children:x.jsx(KU,{})},{key:"group",label:e.formatMessage({id:"contact.list.group",defaultMessage:"Groups"}),children:x.jsx(cQt,{})},{key:"channel",label:e.formatMessage({id:"contact.list.channel",defaultMessage:"Channels"}),children:x.jsx(uQt,{})},{key:"company",label:e.formatMessage({id:"contact.list.company",defaultMessage:"Company Contacts"}),children:x.jsx(dQt,{})},{key:"friend",label:e.formatMessage({id:"contact.list.friend",defaultMessage:"Contacts"}),children:x.jsx(fQt,{})}],n=()=>{console.log("handleContactManager"),je.warning(e.formatMessage({id:"contact.manager.coming",defaultMessage:"Coming soon..."}))};return x.jsxs("div",{style:{padding:10},children:[x.jsx(Ur.Search,{style:{paddingBottom:10},placeholder:e.formatMessage({id:"contact.search.placeholder",defaultMessage:"Search contacts..."})}),jl&&x.jsx(Yt,{icon:x.jsx(ert,{}),block:!0,onClick:n,children:e.formatMessage({id:"contact.manager.button",defaultMessage:"Contact Manager"})}),x.jsx(l8,{items:t,bordered:!1,defaultActiveKey:["1"]})]})},hQt=()=>{var u,f;const e=jn(),t=rs(),{currentMember:n,memberInfo:r}=Na(p=>({currentMember:p.currentMember,memberInfo:p.memberInfo})),i=fr(p=>p.addThread),a=fr(p=>p.setCurrentThread),o=OF(p=>p.setCurrentMenu),s=ia(p=>p.userInfo),l=[{key:"1",label:e.formatMessage({id:"member.detail.nickname",defaultMessage:"Nickname"}),children:n==null?void 0:n.nickname},{key:"2",label:"Email",children:n==null?void 0:n.email},{key:"3",label:e.formatMessage({id:"member.detail.jobno",defaultMessage:"Job No."}),children:n==null?void 0:n.jobNo},{key:"4",label:e.formatMessage({id:"member.detail.seatno",defaultMessage:"Seat No."}),children:n==null?void 0:n.seatNo},{key:"5",label:e.formatMessage({id:"member.detail.telephone",defaultMessage:"Telephone"}),children:n==null?void 0:n.telephone}],c=async()=>{var m;console.log("createMemberThread"),je.loading(e.formatMessage({id:"member.detail.loading",defaultMessage:"Loading..."}));const p={user:{uid:(m=n==null?void 0:n.user)==null?void 0:m.uid,nickname:n==null?void 0:n.nickname,avatar:n==null?void 0:n.avatar},topic:$se+(r==null?void 0:r.uid)+"/"+(n==null?void 0:n.uid),content:"",type:wse,extra:"",client:_n};console.log("thread request:",p);const h=await I3e(p);console.log("response:",h.data),h.data.code===200?(je.destroy(),i(h.data.data),a(h.data.data),o("chat"),t("/chat")):(je.destroy(),je.error(h.data.message))};return x.jsxs("div",{style:{textAlign:"center",overflowY:"auto",marginBottom:100},children:[x.jsx(Pi,{size:50,src:n==null?void 0:n.avatar}),x.jsx(ls,{style:{width:"50%",margin:"20px auto auto",overflowY:"auto"},bordered:!0,column:1,items:l}),((u=n==null?void 0:n.user)==null?void 0:u.uid)!==(s==null?void 0:s.uid)&&x.jsx(Yt,{style:{marginTop:"20px"},onClick:c,disabled:((f=n==null?void 0:n.user)==null?void 0:f.uid)==="",children:e.formatMessage({id:"member.detail.chat.button",defaultMessage:"Start Chat"})})]})},mQt=()=>x.jsx("div",{style:{overflowY:"auto",marginTop:60},children:x.jsx(hQt,{})}),{Sider:gQt,Header:vQt,Content:yQt}=Qn,Oxe=()=>{const e=jn(),{headerStyle:t,leftSiderStyle:n,leftSiderWidth:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsx(gQt,{style:n,width:r,children:x.jsx(pQt,{})}),x.jsxs(Qn,{children:[x.jsx(vQt,{style:t,children:e.formatMessage({id:"menu.dashboard.contact"})}),x.jsx(yQt,{style:i,children:x.jsx(mQt,{})})]})]})},{Header:bQt,Sider:wQt,Content:xQt}=Qn,Rxe=()=>{const e=jn(),{isLoggedIn:t,hasRoleAgent:n}=d.useContext(Ea),r=rs(),{headerStyle:i,leftSiderStyle:a,leftSiderWidth:o,contentStyle:s}=co(),l=Vr(p=>p.currentOrg),[c,u]=d.useState([]);d.useEffect(()=>{const p=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];u(p)},[e]),d.useEffect(()=>{var g,v,y,w;if(!t||(l==null?void 0:l.uid)===""||!n)return;const p=[...c];if(p.length===0)return;const h={label:e.formatMessage({id:"setting.menu.agent",defaultMessage:"客服设置"}),key:"agentProfile"};((v=(g=p[0])==null?void 0:g.children)==null?void 0:v.some(b=>b.key===h.key))||((w=(y=p[0])==null?void 0:y.children)==null||w.splice(1,0,h),u(p))},[l,c,e,t,n]),d.useEffect(()=>{if(!jl)return;const p=[...c];if(p.length===0)return;p.some(m=>m.key==="model")||(p.push({label:e.formatMessage({id:"setting.menu.model",defaultMessage:"大模型"}),key:"model"}),u(p))},[c,e]);const f=p=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),p),r("/setting/"+p.key)};return x.jsxs(Qn,{children:[x.jsx(wQt,{style:a,width:o,children:x.jsx(ks,{mode:"inline",onClick:f,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:c})}),x.jsxs(Qn,{children:[x.jsx(bQt,{style:i,children:e.formatMessage({id:"menu.dashboard.mine"})}),x.jsx(xQt,{style:s,children:x.jsx(B4,{})})]})]})},SQt=()=>{const e=Vr(u=>u.deleteOrg),t=fr(u=>u.resetThreads),n=Td(u=>u.resetMessageList),r=Na(u=>u.resetMembers),i=t4(u=>u.removeAccessToken),a=ia(u=>u.resetUserInfo),o=qU(u=>u.resetContactInfo),s=Eo(u=>u.resetAgentInfo),l=fU(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),a(),o(),s(),l()}}};function GU(){const e=t4(w=>w.accessToken),t=ia(w=>w.userInfo),n=Eo(w=>w.agentInfo),r=r7(),[i,a]=d.useState(!1),{showNotification:o}=bU(),{translateString:s}=Zr(),l=fr(w=>w.threads),[c,u]=d.useState(l),f=d.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!jct()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),p=async()=>{},h=d.useRef(n==null?void 0:n.uid),m=d.useCallback(()=>{if(!i&&e)return setInterval(async()=>{h.current?p():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4)},[i,e,t,n]),g=()=>{_ct({uid:t.uid,username:t.username,accessToken:e})},v=()=>{xT()},y=w=>{var b,C;(w==null?void 0:w.type)!==g0&&((b=w==null?void 0:w.user)==null?void 0:b.uid)!==(t==null?void 0:t.uid)&&((C=w==null?void 0:w.user)==null?void 0:C.uid)!==(n==null?void 0:n.uid)&&(ZOe(),console.log("playAudio"))};return d.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():xT()},[r]),d.useEffect(()=>{if(n!=null&&n.uid){h.current=n==null?void 0:n.uid;const w=m();return()=>{clearInterval(w)}}else h.current=null},[n]),d.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const w=f();return()=>{xT(),clearInterval(w)}},[e,t]),d.useEffect(()=>{u(l)},[l]),d.useEffect(()=>{const w=function(b){if(console.log("useMqtt handleNewMessage",b),b.type===$f||b.type===G3||b.type===m0||b.type===g0||b.type===v0)return;const C=b.topic,k=c.find(S=>S.topic===C);k?k.mute?console.log("useMqtt matchingThread muted",C):(console.log("useMqtt matchingThread no mute",C),o(s(Zx),s(Zx)),y(b)):(console.log("useMqtt matchingThread no"),o(s(Zx),s(Zx)),y(b))};return $n.on(jw,w),()=>{$n.off(jw)}},[c]),d.useEffect(()=>{console.log("useMqtt useEffect");const w=function(){console.log("handleMqttConnected"),a(!0)},b=function(){console.log("handleMqttDisconnected"),a(!1)};return $n.on(qO,w),$n.on(GO,b),$n.on(YO,b),$n.on(KO,b),$n.on(XO,b),$n.on(ZO,b),()=>{console.log("un - useEffect mqttDisconnect"),$n.off(qO),$n.off(GO),$n.off(YO),$n.off(KO),$n.off(XO),$n.off(ZO)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}function Ixe(){const{clearStorage:e}=SQt(),{doDisconnect:t}=GU(),{setPingLoading:n}=d.useContext(Ea),r=d.useCallback(async()=>{try{const i=await xNt();console.log("logout result:",i.data),n(!1),t(),e(),eut()}catch(i){console.log("logout error:",i)}},[]);return d.useEffect(()=>{const i=function(a){console.log("token过期,强制刷新登录",a),$n.off(eh,i),r()};return $n.on(eh,i),()=>{console.log("un - useEffect mqttDisconnect"),$n.off(eh)}},[]),{doLogout:r}}const jxe=()=>{const e=jn(),{isLoggedIn:t,mode:n}=d.useContext(Ea),{doLogout:r}=Ixe(),[i,a]=d.useState("✅"),[o,s]=d.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=r7();d.useEffect(()=>{l?(a("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(a("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=x.jsx("div",{children:x.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=x.jsx("div",{children:x.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[f,p]=d.useState(!1),h=()=>{p(!0)},m=()=>{p(!1)},g=()=>{console.log("handleShowLoginModel"),h()},v=w=>{console.log(w),r()},y=w=>{console.log(w)};return x.jsxs(x.Fragment,{children:[x.jsx(yr,{open:f&&!t,onOk:m,onCancel:m,footer:[x.jsx(Yt,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:x.jsx(fA,{isModel:!0})}),x.jsxs("span",{children:[!t&&x.jsxs(x.Fragment,{children:[x.jsx(wc,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:x.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),x.jsx(wc,{content:u,children:x.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&x.jsx(x.Fragment,{children:x.jsx(nve,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:v,onCancel:y,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:x.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===Rw&&jl&&x.jsx("span",{style:{marginLeft:10},children:x.jsx(_a,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:x.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),x.jsxs("span",{className:"footerRightButton",children:[x.jsx(_a,{title:o,children:x.jsx("span",{children:i})}),x.jsxs("span",{style:{marginLeft:"10px"},children:["v",XOe()]})]})]})},Nxe=()=>{const e=rs(),{userInfo:t}=t1(),{translateString:n}=Zr(),{mode:r}=d.useContext(Ea),[i,a]=d.useState(""),[o,s]=d.useState(""),[l,c]=d.useState(""),u=()=>{e("/setting")};return d.useEffect(()=>{a(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),x.jsx(x.Fragment,{children:x.jsx(wc,{title:i,content:o,placement:"rightBottom",children:x.jsx(x.Fragment,{children:x.jsx(Pi,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function Axe(){const e=rs(),t=ia(r=>r.userInfo),n=qU(r=>r.addDevice);d.useEffect(()=>(ha?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const a={type:yse,device:i.device,user:i.user,createdAt:i.createdAt};n(a)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===h6e){je.success("截图成功");const i=r.data;$n.emit(QO,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),ha?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const CQt=()=>{const e=jn(),{doLogout:t}=Ixe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:a,changeMode:o,handleUpdateAgentStatus:s}=d.useContext(Ea),{agentInfo:l}=Eo(h=>({agentInfo:h.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:x.jsx(xve,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,f]=d.useState(c);d.useEffect(()=>{if(f(c),l.uid!==""&&a===Rw){console.log("agentInfo changed",l);const h=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:y0,icon:l.status===y0?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:vk,icon:l.status===vk?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:Dm,icon:l.status===Dm?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=h[0].children,v=g.findIndex(y=>y.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),h[0].children=g,f(h)}},[l,r,a]);const p=async h=>{console.log("click",h.key),h.key==="logout"?t():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?i(h.key):h.key===EC||h.key===Rw||h.key===lse?(console.log("mode",h.key),o(h.key)):(console.log("status"),h.key===Dm&&c3.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(h.key))};return x.jsx(x.Fragment,{children:n?x.jsx(x.Fragment,{children:x.jsx(ks,{inlineCollapsed:!0,onClick:p,style:{width:64,height:34},mode:"inline",items:u})}):x.jsx(x.Fragment,{})})},_Qt=({open:e,notice:t,onAccept:n,onReject:r})=>{var h;const{translateString:i}=Zr(),[a,o]=d.useState(null),[s,l]=d.useState(null),c=fr(m=>m.addThread),u=Td(m=>m.updateMessageStatus);d.useEffect(()=>{var m,g,v,y,w;if(t){const b=JSON.parse(t.extra);o(b);const C={uid:(m=b==null?void 0:b.thread)==null?void 0:m.uid,topic:(g=b==null?void 0:b.thread)==null?void 0:g.topic,type:(v=b==null?void 0:b.thread)==null?void 0:v.type,state:(y=b==null?void 0:b.thread)==null?void 0:y.state,user:(w=b==null?void 0:b.thread)==null?void 0:w.user};l(C)}},[t]);const f=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=p0;const m=await m4e(a);if(console.log("acceptThread response:",m),m.data.code===200){const g=m.data.data;console.log("acceptedThread:",g),je.success("同意转接会话成功"),Yve(JSON.stringify(a),g),c(g),u(a.messageUid,p0),n()}else je.error(i(m.data.message))},p=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=h0;const m=await g4e(a);console.log("transferThreadReject response:",m),m.data.code===200?(je.success("拒绝转接会话成功"),Xve(JSON.stringify(a),s),u(a.messageUid,h0),r()):je.error(i(m.data.message))};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:`${(h=a==null?void 0:a.sender)==null?void 0:h.nickname}请求转接会话`,open:e,okText:"同意",onOk:f,cancelText:"拒绝",onCancel:p,children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:[{}],renderItem:()=>{var m,g;return x.jsx(Yn.Item,{style:{cursor:"pointer"},children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:(m=s==null?void 0:s.user)==null?void 0:m.avatar}),title:(g=s==null?void 0:s.user)==null?void 0:g.nickname,description:a==null?void 0:a.note})})}})})})};async function kQt(e){return gn("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:_n}})}const Dxe=()=>{const[e,t]=d.useState([]),n=new Kve;d.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async o=>{try{await n.createMessage(o);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(o,s)=>{try{await n.updateMessage(o,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},a=async o=>{try{await n.deleteMessage(o);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return d.useEffect(()=>{console.log("useIndexedDB useEffect");const o=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return $n.on(jw,o),()=>{console.log("useIndexedDB useEffect return"),$n.off(jw,o)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:a}},{Search:EQt}=Ur,{Paragraph:die}=Zf,$Qt=({onSelect:e,onCreateTicket:t})=>{const n=jn(),{isDarkMode:r}=yz(),i=Vr(v=>v.currentOrg),{tickets:a,loading:o,error:s,filters:l,setFilter:c,currentTicket:u,setSearchText:f}=ja();d.useEffect(()=>{i!=null&&i.uid&&Za.loadTickets(i.uid)},[i==null?void 0:i.uid,l]);const p=v=>{f(v),Za.loadTicketsWithFilters({searchText:v})},h=v=>{let y="";switch(v){case"status":y=b0;break;case"priority":y=w0;break;case"assignment":y=x0;break;case"time":y=S0;break}c(v,y),Za.loadTicketsWithFilters({[v]:y})},m=v=>r?v?"#1f1f1f":"#141414":v?"#e6f7ff":"#ffffff",g=()=>{const v=[];return l!=null&&l.status&&l.status!==b0&&v.push(x.jsx(Vi,{color:Vw(l.status),closable:!0,onClose:()=>h("status"),children:n.formatMessage({id:`ticket.filter.status_${l.status.toLowerCase()}`})},"status")),l!=null&&l.priority&&l.priority!==w0&&v.push(x.jsx(Vi,{color:Fk(l.priority),closable:!0,onClose:()=>h("priority"),children:n.formatMessage({id:`ticket.filter.priority_${l.priority.toLowerCase()}`})},"priority")),l!=null&&l.assignment&&l.assignment!==x0&&v.push(x.jsx(Vi,{color:"blue",closable:!0,onClose:()=>h("assignment"),children:n.formatMessage({id:`ticket.filter.assignment_${l.assignment.toLowerCase()}`})},"assignment")),l!=null&&l.time&&l.time!==S0&&v.push(x.jsx(Vi,{color:"purple",closable:!0,onClose:()=>h("time"),children:n.formatMessage({id:`ticket.filter.time_${l.time.toLowerCase()}`})},"time")),v};return x.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x.jsxs("div",{style:{padding:"10px 16px 16px",backgroundColor:r?"#141414":"#ffffff",borderBottom:"1px solid #f0f0f0"},children:[x.jsx(Yt,{type:"primary",block:!0,icon:x.jsx(Ny,{}),onClick:t,style:{marginBottom:16,width:"100%"},children:n.formatMessage({id:"ticket.list.create"})}),x.jsx(EQt,{placeholder:n.formatMessage({id:"ticket.list.search.placeholder"}),onSearch:p,style:{width:"100%"},allowClear:!0,enterButton:x.jsx(X8,{})}),x.jsx("div",{style:{marginTop:10},children:x.jsxs(Xr,{direction:"vertical",style:{width:"100%"},children:[g(),x.jsx("div",{children:x.jsxs(Vi,{color:"blue",children:[n.formatMessage({id:"ticket.list.total"}),": ",a.length]})})]})})]}),x.jsx("div",{style:{flex:1,overflow:"auto",position:"relative"},children:o?x.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:x.jsx(Xo,{tip:n.formatMessage({id:"ticket.loading"}),size:"large",spinning:!0,children:x.jsx("div",{style:{padding:"50px"}})})}):s?x.jsx(JE,{type:"error",message:n.formatMessage({id:"ticket.load.error"}),description:s}):x.jsx(Yn,{dataSource:a,renderItem:v=>x.jsx(Yn.Item,{onClick:()=>e(v),style:{cursor:"pointer",padding:"8px 16px",backgroundColor:m((u==null?void 0:u.uid)===v.uid),transition:"background-color 0.3s"},children:x.jsx(Yn.Item.Meta,{title:x.jsxs(x.Fragment,{children:[x.jsx("span",{style:{marginRight:10,color:r?"#ffffff":void 0},children:v.title}),x.jsx(Vi,{color:Vw(v.status),children:n.formatMessage({id:`ticket.filter.status_${v.status.toLowerCase()}`})}),x.jsx(Vi,{color:Fk(v.priority),children:n.formatMessage({id:`ticket.filter.priority_${v.priority.toLowerCase()}`})})]}),description:x.jsxs(x.Fragment,{children:[x.jsx(die,{ellipsis:{rows:1},style:{margin:0},children:v.description}),x.jsx(die,{ellipsis:{rows:1},style:{margin:0},children:new Date(v.updatedAt).toLocaleString()})]})})}),locale:{emptyText:n.formatMessage({id:"ticket.list.empty"})}})})]})},MQt=({ticket:e,onEdit:t,onDelete:n})=>{const r=jn();return x.jsx(Yg,{centered:!0,defaultActiveKey:"details",items:[{key:"details",label:r.formatMessage({id:"ticket.details.title"}),children:x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(D3e,{ticket:e,isThreadTicket:!1,onEdit:t,onDelete:n})})},{key:"steps",label:r.formatMessage({id:"ticket.steps.title"}),children:x.jsx("div",{style:{flex:1,overflow:"auto"},children:x.jsx(F3e,{ticket:e,isThreadTicket:!1})})}]})},{Sider:TQt,Content:PQt,Header:OQt}=Qn,Fxe=()=>{const{leftSiderStyle:e,headerStyle:t}=co(),n=jn(),{currentTicket:r,setCurrentTicket:i,filters:a,setFilter:o,refreshTickets:s}=ja(),[l,c]=d.useState(!1),[u,f]=d.useState(!1),p=[{key:"status",label:n.formatMessage({id:"ticket.filter.by.status"}),children:[{key:b0,label:n.formatMessage({id:"ticket.filter.status_all"})},{key:lg,label:n.formatMessage({id:"ticket.filter.status_new"})},{key:Y3,label:n.formatMessage({id:"ticket.filter.status_claimed"})},{key:ly,label:n.formatMessage({id:"ticket.filter.status_processing"})},{key:X3,label:n.formatMessage({id:"ticket.filter.status_pending"})},{key:Z3,label:n.formatMessage({id:"ticket.filter.status_holding"})},{key:Q3,label:n.formatMessage({id:"ticket.filter.status_reopened"})},{key:J3,label:n.formatMessage({id:"ticket.filter.status_resolved"})},{key:V5,label:n.formatMessage({id:"ticket.filter.status_closed"})},{key:e4,label:n.formatMessage({id:"ticket.filter.status_cancelled"})}]},{key:"priority",label:n.formatMessage({id:"ticket.filter.by.priority"}),children:[{key:w0,label:n.formatMessage({id:"ticket.filter.priority_all"})},{key:Pse,label:n.formatMessage({id:"ticket.filter.priority_lowest"})},{key:EF,label:n.formatMessage({id:"ticket.filter.priority_low"})},{key:bk,label:n.formatMessage({id:"ticket.filter.priority_medium"})},{key:$F,label:n.formatMessage({id:"ticket.filter.priority_high"})},{key:MF,label:n.formatMessage({id:"ticket.filter.priority_urgent"})},{key:TF,label:n.formatMessage({id:"ticket.filter.priority_critical"})}]},{key:"assignment",label:n.formatMessage({id:"ticket.filter.by.assignment"}),children:[{key:x0,label:n.formatMessage({id:"ticket.filter.assignment_all"})},{key:Ise,label:n.formatMessage({id:"ticket.filter.assignment_my_created"})},{key:jse,label:n.formatMessage({id:"ticket.filter.assignment_my_assigned"})},{key:cR,label:n.formatMessage({id:"ticket.filter.assignment_unassigned"})}]},{key:"time",label:n.formatMessage({id:"ticket.filter.by.time"}),children:[{key:S0,label:n.formatMessage({id:"ticket.filter.time_all"})},{key:Nse,label:n.formatMessage({id:"ticket.filter.time_today"})},{key:Ase,label:n.formatMessage({id:"ticket.filter.time_yesterday"})},{key:Dse,label:n.formatMessage({id:"ticket.filter.time_this_week"})},{key:Fse,label:n.formatMessage({id:"ticket.filter.time_last_week"})},{key:Lse,label:n.formatMessage({id:"ticket.filter.time_this_month"})},{key:Bse,label:n.formatMessage({id:"ticket.filter.time_last_month"})}]}],h=b=>{console.log("handleTicketSelect",b),i(b)},m=()=>{c(!0),f(!1)},g=()=>{c(!1)},v=()=>{c(!0),f(!0)},y=()=>{console.log("handleDeleteTicket",r),yr.confirm({title:n.formatMessage({id:"ticket.delete.title"}),content:x.jsxs("div",{children:[x.jsx("p",{children:n.formatMessage({id:"ticket.delete.content"})}),x.jsxs("p",{style:{marginTop:"8px",color:"#666"},children:[n.formatMessage({id:"ticket.content.title"}),": ",r.title]})]}),onOk:async()=>{(await oWt(r.uid)).data.code===200?(je.success(n.formatMessage({id:"ticket.delete.success"})),s(),i(void 0)):je.error(n.formatMessage({id:"ticket.delete.failed"}))}})},w=({keyPath:b})=>{console.log("handleFilterClick",b);const[C,k]=b;o(k,C)};return x.jsxs(Qn,{children:[x.jsxs(TQt,{style:{...e,position:"relative",zIndex:2},width:156,children:[x.jsx(OQt,{style:t,children:n.formatMessage({id:"chat.navbar.ticket"})}),x.jsx(ks,{onClick:w,style:{width:156,position:"relative",zIndex:3},mode:"inline",selectedKeys:Object.values(a),items:p})]}),x.jsx(Qn,{children:x.jsx(PQt,{style:{position:"relative",zIndex:1},children:x.jsxs(Bp,{children:[x.jsx(Bp.Panel,{defaultSize:"20%",children:x.jsx($Qt,{onSelect:h,onCreateTicket:m})}),x.jsx(Bp.Panel,{defaultSize:"55%",children:x.jsx(XA,{fromTicketTab:!0,ticket:r})}),x.jsx(Bp.Panel,{children:x.jsx(MQt,{ticket:r,onEdit:v,onDelete:y})})]})})}),l&&x.jsx(_4e,{open:l,isEdit:u,currentTicket:r,onSuccess:g,onCancel:()=>c(!1)})]})},RQt=()=>{const e=jn(),{locale:t,changeLocale:n}=d.useContext(Ea),r=[{key:"lang",icon:x.jsx(Wrt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?x.jsx(ud,{}):x.jsx(x.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=a=>{const o=a.key;n(o)};return x.jsx(ks,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})},IQt=({open:e,notice:t,onAccept:n,onReject:r})=>{var h;const{translateString:i}=Zr(),[a,o]=d.useState(null),[s,l]=d.useState(null),c=fr(m=>m.addThread),u=Td(m=>m.updateMessageStatus);d.useEffect(()=>{var m,g,v,y,w;if(t){const b=JSON.parse(t.extra);o(b);const C={uid:(m=b==null?void 0:b.thread)==null?void 0:m.uid,topic:(g=b==null?void 0:b.thread)==null?void 0:g.topic,type:(v=b==null?void 0:b.thread)==null?void 0:v.type,state:(y=b==null?void 0:b.thread)==null?void 0:y.state,user:(w=b==null?void 0:b.thread)==null?void 0:w.user};l(C)}},[t]);const f=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=p0;const m=await p4e(a);if(console.log("acceptThread response:",m),m.data.code===200){const g=m.data.data;console.log("acceptedThread:",g),je.success("同意邀请会话成功"),Zve(JSON.stringify(a),g),c(g),u(a.messageUid,p0),n()}else je.error(i(m.data.message))},p=async()=>{[a.sender,a.receiver]=[a.receiver,a.sender],a.status=h0;const m=await h4e(a);console.log("inviteThreadReject response:",m),m.data.code===200?(je.success("拒绝邀请会话成功"),Qve(JSON.stringify(a),s),u(a.messageUid,h0),r()):je.error(i(m.data.message))};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:`${(h=a==null?void 0:a.sender)==null?void 0:h.nickname}请求邀请会话`,open:e,okText:"同意",onOk:f,cancelText:"拒绝",onCancel:p,children:x.jsx(Yn,{itemLayout:"horizontal",dataSource:[{}],renderItem:()=>{var m,g;return x.jsx(Yn.Item,{style:{cursor:"pointer"},children:x.jsx(Yn.Item.Meta,{avatar:x.jsx(Pi,{src:(m=s==null?void 0:s.user)==null?void 0:m.avatar}),title:(g=s==null?void 0:s.user)==null?void 0:g.nickname,description:a==null?void 0:a.note})})}})})})};async function jQt(e){return gn("/api/v1/org/create",{method:"POST",data:{...e,client:_n}})}const NQt=({open:e,onClose:t,onSuccess:n})=>{const r=jn(),{userInfo:i}=t1(),[a,o]=d.useState(!1),[s,l]=d.useState(""),[c,u]=d.useState(!1),f=()=>{t()},p=()=>{je.error(r.formatMessage({id:"welcome.message.org.required"}))},h=async()=>{if(s===""){je.error(r.formatMessage({id:"welcome.message.org.name.required"}));return}o(!0),je.loading(r.formatMessage({id:"welcome.message.org.creating"}));const g=i!=null&&i.mobile?i==null?void 0:i.mobile:i==null?void 0:i.email,v={name:s,code:g,logo:"https://www.weiyuai.cn/logo.png",description:s+"description"};try{const y=await jQt(v);y.data.code===200?(o(!1),je.destroy(),je.success(r.formatMessage({id:"welcome.message.create.success"})),n(y.data.data),t()):(o(!1),je.destroy(),je.error(r.formatMessage({id:"welcome.message.create.failed"})))}catch{o(!1),je.destroy(),je.error(r.formatMessage({id:"welcome.message.create.failed"}))}},m=()=>{c?h():(u(!0),o(!1))};return x.jsxs(yr,{title:r.formatMessage({id:"welcome.modal.title"}),closable:!1,open:e,onCancel:p,maskClosable:!1,footer:[x.jsx(Yt,{type:"primary",onClick:f,disabled:!0,children:r.formatMessage({id:"welcome.modal.join"})},"join"),x.jsx(Yt,{type:"primary",loading:a,onClick:m,children:r.formatMessage({id:"welcome.modal.create"})},"create")],children:[x.jsx("p",{children:r.formatMessage({id:"welcome.modal.description"})}),c&&x.jsx(Ur,{placeholder:r.formatMessage({id:"welcome.modal.input.placeholder"}),value:s,onChange:g=>l(g.target.value),onPressEnter:h,autoFocus:!0})]})},AQt=({open:e,onClose:t})=>{const n=jn(),r=rs(),i=()=>{t(),r("/setting/certification")},a=()=>{localStorage.setItem("skipVerification","true"),t()};return x.jsx(yr,{title:n.formatMessage({id:"welcome.verify.modal.title",defaultMessage:"账号验证提示"}),open:e,onCancel:a,footer:[x.jsx(Yt,{onClick:a,children:n.formatMessage({id:"welcome.verify.later",defaultMessage:"稍后验证"})},"later"),x.jsx(Yt,{type:"primary",onClick:i,children:n.formatMessage({id:"welcome.verify.now",defaultMessage:"立即验证"})},"now")],children:x.jsx("p",{children:n.formatMessage({id:"welcome.verify.modal.description",defaultMessage:"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。"})})})},DQt=()=>{const e=jn(),{locale:t,isLoggedIn:n,hasRoleAgent:r}=d.useContext(Ea),i=rs(),{footerStyle:a}=co(),{currentOrg:o,setCurrentOrg:s}=Vr(X=>({currentOrg:X.currentOrg,setCurrentOrg:X.setCurrentOrg})),{userInfo:l,setUserInfo:c}=ia(X=>({userInfo:X.userInfo,setUserInfo:X.setUserInfo})),u=Eo(X=>X.setAgentInfo),f=Na(X=>X.setMemberInfo),{threads:p,removeThread:h}=fr(X=>({threads:X.threads,removeThread:X.removeThread})),m=fU(X=>X.setWorkgroupResult),g=localStorage.getItem(wq),[v,y]=d.useState(g||"/chat"),[w,b]=d.useState(!1),[C,k]=d.useState(!1),[S,_]=d.useState(!1),[E,$]=d.useState(!1),[M,P]=d.useState(!1),[R,O]=d.useState({}),[j,I]=d.useState({});Dxe(),GU(),Axe(),bU();const A=d.useMemo(()=>[{path:"/chat",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:x.jsx(bve,{}),component:x.jsx(ZA,{})},{path:"/contact",name:e.formatMessage({id:"menu.dashboard.contact"}),icon:x.jsx(frt,{}),component:x.jsx(Oxe,{})},{path:"/ticket",name:e.formatMessage({id:"menu.dashboard.ticket"}),icon:x.jsx(ort,{}),component:x.jsx(Fxe,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:x.jsx(xve,{}),component:x.jsx(Rxe,{})}],[e,t]);d.useEffect(()=>{const X=p.some(ae=>ae.unreadCount>0);b(X)},[p]);const N=d.useCallback(async()=>{if(n)try{const X=await AF();X.data.code===200?c(X.data.data):je.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))}catch(X){console.error("Failed to fetch user profile:",X)}},[n,c,e]),F=d.useCallback(async()=>{var X,ae,oe;if(!(!n||!l)){if(!l.currentOrganization){k(!0);return}if(s(l.currentOrganization),r&&((X=l.currentOrganization)!=null&&X.uid))try{const le=await Ele((ae=l==null?void 0:l.currentOrganization)==null?void 0:ae.uid);console.log("agentResponse:",le.data),le.data.code===200&&u(le.data.data)}catch(le){console.error("Failed to fetch agent info:",le)}try{const le=await e0e((oe=l==null?void 0:l.currentOrganization)==null?void 0:oe.uid);console.log("memberResponse:",le.data),le.data.code===200&&f(le.data.data)}catch(le){console.error("Failed to fetch member info:",le)}L()}},[n,l,r,s,u]),K=d.useCallback(async()=>{if(!(!n||!(o!=null&&o.uid)))try{const X={pageNumber:0,pageSize:100,orgUid:o==null?void 0:o.uid},ae=await kQt(X);console.log("workgroupResponse:",ae.data,X),ae.data.code===200?m(ae.data):console.log("获取工作组失败")}catch(X){console.error("Failed to fetch workgroups:",X)}},[n,o,r,m]);d.useEffect(()=>{N()},[N]),d.useEffect(()=>{F()},[F]),d.useEffect(()=>{K()},[K]);const L=d.useCallback(()=>{localStorage.getItem("skipVerification")!=="true"&&l&&!l.emailVerified&&!l.mobileVerified&&_(!0)},[l]);d.useEffect(()=>{const X={[fse]:ae=>{console.log("handleTransfer:",ae);const oe=JSON.parse(ae);O(oe),$(!0)},[pse]:ae=>{var pe,me,re,fe,ve;console.log("handleTransferAccept:",ae),je.success("转接会话成功");const oe=JSON.parse(ae),le=JSON.parse(oe.extra),ce={uid:(pe=le==null?void 0:le.thread)==null?void 0:pe.uid,topic:(me=le==null?void 0:le.thread)==null?void 0:me.topic,type:(re=le==null?void 0:le.thread)==null?void 0:re.type,state:(fe=le==null?void 0:le.thread)==null?void 0:fe.state,user:(ve=le==null?void 0:le.thread)==null?void 0:ve.user};h(ce)},[hse]:()=>{console.log("handleTransferReject"),je.warning("转接会话已被拒绝")},[mse]:ae=>{console.log("handInvite:",ae);const oe=JSON.parse(ae);I(oe),P(!0)},[gse]:()=>{console.log("handInviteAccept"),je.success("邀请会话成功")},[vse]:()=>{console.log("handInviteReject"),je.warning("邀请会话已被拒绝")}};return Object.entries(X).forEach(([ae,oe])=>{$n.on(ae,oe)}),()=>{Object.entries(X).forEach(([ae,oe])=>{$n.off(ae,oe)})}},[h]);const V=d.useCallback(()=>{$(!1)},[]),B=d.useCallback(()=>{$(!1)},[]),U=d.useCallback(()=>{P(!1)},[]),Y=d.useCallback(()=>{P(!1)},[]),ee=d.useCallback(X=>{s(X)},[s]),ie=d.useCallback(X=>{y(X),i(X),localStorage.setItem(wq,X)},[i]),Z=d.useCallback((X,ae)=>x.jsx("div",{onClick:()=>ie(X.path),children:X.path==="/chat"&&w?x.jsx(Fo,{size:"small",dot:!0,offset:[-5,5],children:ae}):ae}),[ie,w]);return x.jsxs(S2e,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:A},location:{pathname:v},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:()=>[x.jsx(RQt,{},"language"),x.jsx(CQt,{},"menu")],menuHeaderRender:()=>x.jsx(Nxe,{}),menuFooterRender:()=>null,menuItemRender:Z,children:[x.jsx(R7,{children:x.jsx(B4,{},t.locale)}),x.jsx(I7,{style:a,children:x.jsx(jxe,{})}),E&&x.jsx(_Qt,{open:E,notice:R,onAccept:V,onReject:B}),M&&x.jsx(IQt,{open:M,notice:j,onAccept:U,onReject:Y}),x.jsx(NQt,{open:C,onClose:()=>k(!1),onSuccess:ee}),x.jsx(AQt,{open:S,onClose:()=>_(!1)}),x.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},FQt=()=>x.jsx(x.Fragment,{children:x.jsx(B4,{})}),LQt=({open:e,onClose:t})=>{const n=jn(),{translateString:r}=Zr(),i=()=>{t()},a=()=>{t()};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:a,children:x.jsxs(Kn,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async o=>{if(console.log("changePassword:",o),o.newPassword.trim().length<6){je.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(o.newPassword!==o.confirmPassword){je.error(n.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const s={oldPassword:o.oldPassword,newPassword:o.newPassword},l=await d$e(s);console.log("changePassword response:",l),l.data.code===200?(je.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),i()):je.error(r(l.data.message))},children:[x.jsx(Or.Password,{name:"oldPassword",label:n.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:n.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),x.jsx(Or.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),x.jsx(Or.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},YU=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:kF,category_uid:"",kb_uid:"",client:_n},i={name:"file",accept:"image/*",action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},data:r,showUploadList:!1,beforeUpload(a){console.log("beforeUpload",a);const o=en(new Date).format("YYYYMMDDHHmmss")+"_"+a.name;r.file=a,r.file_name=o,r.file_type=a.type,console.log("beforeUpload",r)},onChange(a){if(a.file.status!=="uploading"&&console.log("not uploading:",a.file),a.file.status==="done")if(console.log("response: ",a.file.response),a.file.response.code===200){const o=a.file.response.data.fileUrl;t(o),je.success(`${a.file.name} 上传成功`)}else n(a.file),je.error(`${a.file.name} 上传失败`);else a.file.status==="error"&&(je.error(`${a.file.name} 上传失败`),n(a.file))}};return x.jsx(e1,{...i,children:e})},BQt=({open:e,onSubmit:t,onClose:n})=>{const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1),v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{if(console.log("changeEmail:",S),o.email===S.email){je.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const _={email:S.email,code:S.code,platform:gc},E=await Tle(_);console.log("changeEmail response:",E),E.data.code===200?(je.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(S.email),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeEmail:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{})},name:"email",placeholder:r.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:r.formatMessage({id:"profile.email.required",defaultMessage:"Please enter email address!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:r.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:r.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),x.jsx(Kn.Item,{name:"captchaCode",children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async S=>{if(S){if(o.email===S){je.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),k();return}const _={email:S,type:L6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o.uid,orgUid:l.uid,platform:gc},E=await nwe(_);if(E.data.code!==200){je.error(E.data.message),k();return}je.success(E.data.message)}else je.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},zQt=({open:e,onSubmit:t,onClose:n})=>{const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1),v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{if(console.log("changeMobile:",S),o.mobile===S.mobile){je.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const _={mobile:S.mobile,code:S.code,platform:gc},E=await Ple(_);console.log("changeMobile response:",E),E.data.code===200?(je.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(S.mobile),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeMobile:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{})},name:"mobile",placeholder:r.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:r.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),x.jsx(Kn.Item,{name:"captchaCode",children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async S=>{if(S&&S.length===11){if(o.mobile===S){je.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),k();return}const _={mobile:S,type:D6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o.uid,orgUid:l.uid,platform:gc},E=await LH(_);if(E.data.code!==200){je.error(E.data.message),k();return}je.success(E.data.message)}else je.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},HQt={labelCol:{span:8},wrapperCol:{span:8}},fie=()=>{const e=jn(),[t]=Kn.useForm(),{translateString:n}=Zr(),{userInfo:r,setUserInfo:i}=ia(M=>({userInfo:M.userInfo,setUserInfo:M.setUserInfo})),[a,o]=d.useState(""),[s,l]=d.useState(!1),[c,u]=d.useState(!1),[f,p]=d.useState(!1),h=()=>{l(!0)},m=()=>{u(!0)},g=()=>{p(!0)},v=()=>{l(!1)},y=()=>{u(!1)},w=M=>{u(!1),r.email=M,i(r),t.setFieldValue("email",M)},b=()=>{p(!1)},C=M=>{p(!1),r.mobile=M,i(r),t.setFieldValue("mobile",M)},k=M=>{console.log("handleUploadSuccess:",M),o(M)},S=M=>{console.log("handleUploadError:",M)},_=async M=>{const P={...r,...M,avatar:a};console.log(P);const R=await Mle(P);console.log("updateProfile response:",R.data),R.data.code===200?(je.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),i(R.data.data)):je.error(R.data.message)},E=M=>Array.isArray(M)?M:M==null?void 0:M.fileList;d.useEffect(()=>{r&&o(r.avatar)},[r]);const $=async()=>{const M=await AF();console.log("handleRefreshProfile getProfile response:",M.data),M.data.code===200?(i(M.data.data),t.setFieldsValue({uid:M.data.data.uid,username:M.data.data.username,nickname:n(M.data.data.nickname),email:M.data.data.email,mobile:M.data.data.mobile,description:n(M.data.data.description)})):je.error(M.data.message)};return d.useEffect(()=>{$()},[]),x.jsxs("div",{className:"profile-container",children:[x.jsxs(Kn,{...HQt,form:t,onFinish:_,children:[x.jsx(Or,{name:"uid",label:"UID",readonly:!0}),x.jsx(Kn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:E,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:x.jsxs(YU,{onSuccess:k,onError:S,children:[x.jsx(Pi,{src:a}),x.jsx(Yt,{icon:x.jsx(D4,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Or,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),x.jsx(Yt,{onClick:h,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),x.jsx(Or,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),x.jsx(Or,{name:"email",label:r.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),x.jsx(Yt,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),x.jsx(Or,{name:"mobile",label:r.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),x.jsx(Yt,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),x.jsx(Cd,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&x.jsx(LQt,{open:s,onClose:v}),c&&x.jsx(BQt,{open:c,onSubmit:w,onClose:y}),f&&x.jsx(zQt,{open:f,onSubmit:C,onClose:b})]})},Lxe=d.createContext(null),XU=d.createContext(null);function UQt({children:e}){const[t,n]=d.useReducer(qQt,KQt);return x.jsx(Lxe.Provider,{value:t,children:x.jsx(XU.Provider,{value:n,children:e})})}function WQt(){return d.useContext(Lxe)}function VQt(){return d.useContext(XU)}function qQt(e,t){switch(t.type){case"added":return[...e,{id:t.id,text:t.text,done:!1}];case"changed":return e.map(n=>n.id===t.task.id?t.task:n);case"deleted":return e.filter(n=>n.id!==t.id);default:throw Error("Unknown action: "+t.type)}}const KQt=[{id:0,text:"Philosopher’s Path",done:!0},{id:1,text:"Visit the temple",done:!1},{id:2,text:"Drink matcha",done:!1}];let GQt=3;function YQt(){const[e,t]=d.useState(""),n=VQt();return x.jsxs(x.Fragment,{children:[x.jsx("input",{placeholder:"添加任务",value:e,onChange:r=>t(r.target.value)}),x.jsx("button",{onClick:()=>{t(""),n({type:"added",id:GQt++,text:e})},children:"添加"})]})}function XQt(){const e=WQt();return x.jsx("ul",{children:e.map(t=>x.jsx("li",{children:x.jsx(ZQt,{task:t})},t.id))})}function ZQt({task:e}){const[t,n]=d.useState(!1),r=d.useContext(XU);let i;return t?i=x.jsxs(x.Fragment,{children:[x.jsx("input",{value:e.text,onChange:a=>{r({type:"changed",task:{...e,text:a.target.value}})}}),x.jsx("button",{onClick:()=>n(!1),children:"保存"})]}):i=x.jsxs(x.Fragment,{children:[e.text,x.jsx("button",{onClick:()=>n(!0),children:"编辑"})]}),x.jsxs("label",{children:[x.jsx("input",{type:"checkbox",checked:e.done,onChange:a=>{r({type:"changed",task:{...e,done:a.target.value}})}}),i,x.jsx("button",{onClick:()=>{r({type:"deleted",id:e.id})},children:"删除"})]})}function QQt(){return x.jsxs(UQt,{children:[x.jsx("h1",{children:"任务列表"}),x.jsx(YQt,{}),x.jsx(XQt,{})]})}const JQt=()=>x.jsx(x.Fragment,{children:"Note"}),eJt=()=>x.jsx(Qg,{status:"warning",title:"TODO: 即将上线,敬请期待."}),pie=()=>x.jsx(Qg,{status:"warning",title:"TODO: 即将上线,敬请期待."}),tJt=()=>{const e=jn(),{isMqttConnected:t}=GU(),[n,r]=d.useState(!0),[i,a]=d.useState(!0),[o,s]=d.useState(!1),l=w=>{console.log("radio checked",w.target.value),s(w.target.value),ha?window.electronAPI.setOpenAtLogin(w.target.value):console.log("not electron")},c=async()=>{if(ha){const w=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",w),s(w)}};d.useEffect(()=>{c(),Gct(),Jve();const w=localStorage.getItem($C);w===null?(localStorage.setItem($C,"true"),r(!0)):r(w==="true");const b=localStorage.getItem(MC);b===null?(localStorage.setItem(MC,"true"),a(!0)):a(b==="true")},[]);const{themeMode:u,setThemeMode:f,locale:p,changeLocale:h}=d.useContext(Ea),m=w=>{console.log("radio checked",w.target.value),f(w.target.value),Zct(w.target.value)},g=w=>{console.log("language change",w.target.value),h(w.target.value)},v=w=>{console.log("play audio switch",w),localStorage.setItem($C,w?"true":"false"),r(w)},y=w=>{console.log("show network status notification",w),localStorage.setItem(MC,w?"true":"false"),a(w)};return x.jsxs("div",{className:"profile-container",children:[x.jsx("p",{children:x.jsx(O6,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:n,onChange:v})}),x.jsx("p",{children:x.jsx(O6,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:i,onChange:y})}),jl&&x.jsxs(x.Fragment,{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),x.jsx("div",{children:t?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),ha&&x.jsxs(x.Fragment,{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),x.jsxs(us.Group,{onChange:l,value:o,children:[x.jsx(us,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),x.jsx(us,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),x.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),x.jsxs(us.Group,{onChange:m,value:u,children:[x.jsx(us,{value:"light",children:x.jsx(nu,{id:"theme.light"})}),x.jsx(us,{value:"dark",children:x.jsx(nu,{id:"theme.dark"})}),x.jsx(us,{value:"system",children:x.jsx(nu,{id:"theme.system"})})]}),x.jsxs("div",{children:[x.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),x.jsxs(us.Group,{value:p.locale,onChange:g,children:[x.jsx(us,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),x.jsx(us,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),x.jsx(us,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]})]})},{Header:nJt,Sider:rJt,Content:iJt}=Qn,aJt=()=>{const e=jn(),t=rs(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:a}=co(),o=[{label:"剪贴板",key:"clipboard"},{label:"收藏",key:"collect"}],s=l=>{console.log("menu click ",l),t("/plugins/"+l.key)};return d.useEffect(()=>{},[]),x.jsxs(Qn,{children:[x.jsxs(rJt,{style:r,width:i,children:[x.jsx(Ur.Search,{style:{padding:10}}),x.jsx(ks,{mode:"inline",onClick:s,defaultSelectedKeys:["clipboard"],defaultOpenKeys:["plugins"],items:o})]}),x.jsxs(Qn,{children:[x.jsx(nJt,{style:n,children:e.formatMessage({id:"menu.dashboard.plugins"})}),x.jsx(iJt,{style:a,children:x.jsx(B4,{})})]})]})},oJt=()=>{const e=ia(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const i=n.toDataURL(),a=document.createElement("a");a.download=e.username+"_profile.png",a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}else console.log("canvas is null")};return x.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[x.jsx(oz,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),x.jsx(Yt,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},sJt=()=>x.jsx(x.Fragment,{children:x.jsx("div",{children:"ShortcutAdmin"})}),lJt=()=>{const e=rs();return x.jsx(Qg,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:x.jsx(Yt,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},cJt={labelCol:{span:8},wrapperCol:{span:8}},uJt=()=>{const e=jn(),[t]=Kn.useForm(),{userInfo:n,setUserInfo:r}=ia(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[i,a]=d.useState(""),o={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:fy(),headers:{Authorization:"Bearer "+localStorage.getItem(Ef)},showUploadList:!1,data:o,beforeUpload(u){const f=en(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;o.file=u,o.file_name=f,o.file_type=u.type,console.log("beforeUpload",o)},onChange(u){if(u.file.status!=="uploading"&&console.log(u.file,u.fileList),u.file.status==="done"){const f=u.file.response.data.fileUrl;console.log("url: ",f),a(f),je.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&je.error(`${u.file.name} file upload failed.`)}},l=async u=>{const f={...n,...u,avatar:i};console.log(f);const p=await Mle(f);console.log("updateProfile response:",p),p.data.code===200?(je.success("修改成功"),r(p.data.data)):je.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return d.useEffect(()=>{n&&a(n.avatar)},[n]),x.jsxs("div",{className:"profile-container",children:[x.jsx("p",{children:"员工信息"}),x.jsxs(Kn,{...cJt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[x.jsx(Zi.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(e1,{...s,children:[x.jsx(Pi,{src:i}),x.jsx(Yt,{icon:x.jsx(D4,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Or,{name:"nickname",label:"昵称",rules:[{required:!0}],children:x.jsx(Ur,{})}),x.jsx(Or,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:x.jsx(Ur,{})}),x.jsx(Or,{name:"mobile",label:"手机号",disabled:!0,children:x.jsx(Ur,{})}),x.jsx(Cd,{name:"description",label:"描述",children:x.jsx(Ur.TextArea,{})})]})]})},dJt=()=>{const e=n1(),{content:t}=e.state||{},[n,r]=d.useState(30),i=()=>{r(c=>c+2)},a=()=>{n>30&&r(c=>c-2)},o=()=>{navigator.clipboard.writeText(t).then(()=>{je.success("复制成功")}).catch(c=>{console.error("无法复制文本: ",c),je.error(c)})},s=()=>{je.warning("TODO: 即将上线,敬请期待")},l=()=>{je.warning("TODO: 即将上线,敬请期待")};return x.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh"},children:[x.jsx("div",{style:{marginBottom:"1rem"},children:x.jsxs(Xr,{children:[x.jsx(Yt,{shape:"circle",onClick:i,style:{marginRight:"0.5rem"},children:"+"}),x.jsx(Yt,{shape:"circle",onClick:a,children:"-"}),x.jsx(Yt,{onClick:o,children:"复制"}),jl&&x.jsx(Yt,{onClick:s,children:"转发"}),jl&&x.jsx(Yt,{onClick:l,children:"收藏"})]})}),x.jsx("div",{style:{fontSize:`${n}px`},dangerouslySetInnerHTML:{__html:t}})]})},{Sider:fJt,Content:pJt}=Qn,hJt=[{key:"grp",label:"留言管理",type:"group",children:[{key:"13",label:"待分配"},{key:"14",label:"待处理"},{key:"15",label:"处理中"},{key:"16",label:"处理完毕"}]}],mJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(fJt,{style:e,width:t,children:x.jsx(ks,{onClick:n,style:{width:256},mode:"inline",items:hJt})}),x.jsx(Qn,{children:x.jsx(pJt,{children:"leavemsg"})})]})})},{Sider:gJt,Content:vJt}=Qn,yJt=[{key:"grp",label:"实时监控",type:"group",children:[{key:"13",label:"当前在线"},{key:"14",label:"已离线"}]}],bJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(gJt,{style:e,width:t,children:x.jsx(ks,{onClick:n,mode:"inline",items:yJt})}),x.jsx(Qn,{children:x.jsx(vJt,{children:"监控"})})]})})},{Sider:wJt,Content:xJt}=Qn,SJt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,contentStyle:n}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(wJt,{style:e,width:t}),x.jsx(Qn,{children:x.jsx(xJt,{style:n})})]})})},N7=so()(Jo(es(ts((e,t)=>({categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult(n){var s,l;const r=_Jt(n),a={...n,data:{content:[{uid:"all",name:"i18n.all"},...n.data.content]}},o=CJt(a);e({categoryResult:a,categoryTreeOptions:o,categorySelectOptions:r}),((l=(s=n.data)==null?void 0:s.content)==null?void 0:l.length)>0?e({currentCategory:n.data.content[0]}):e({currentCategory:{uid:""}})},insertCategory(n){e(r=>{r.categoryResult.data.content.unshift(n)})},upgradeCategory(n){e(r=>{const i=r.categoryResult.data.content,a=i.findIndex(o=>o.uid===n.uid);a!==-1?i[a]=n:console.warn(`Category with uid ${n.uid} not found.`)})},setCurrentCategory(n){e({currentCategory:n})},setCurrentCategoryUid(n){const r=t().categoryResult.data.content.find(i=>i.uid===n);e({currentCategory:r})},deleteCategoryCache:()=>e({},!0)})),{name:O6e})));function CJt(e){const t=[];return e.data.content.forEach(n=>{const r={title:n.name,key:n.uid,children:[]};n.children&&Array.isArray(n.children)&&(r.children=n.children.map(i=>({title:i.name,key:i.uid,children:[]}))),t.push(r)}),t}function _Jt(e){const t=[];return e.data.content.forEach(n=>{const r={label:n.name,value:n.uid};t.push(r)}),t}const kJt=({open:e,level:t,type:n,isEdit:r,onCancel:i,onSubmit:a})=>{const[o]=Kn.useForm(),s=jn(),{translateString:l}=Zr(),c=Vr(h=>h.currentOrg),u=N7(h=>h.currentCategory);d.useEffect(()=>{r?o.setFieldsValue({name:l(u==null?void 0:u.name)}):o.resetFields()},[e,r]);const f=()=>{o.validateFields().then(async h=>{console.log("handleSaveDep:",h);const m={uid:r?u==null?void 0:u.uid:"",name:h.name,level:t,type:n,kbUid:h.kbUid,orgUid:c==null?void 0:c.uid};a(m)}).catch(h=>{console.log("Failed:",h),je.error(s.formatMessage({id:"category.create.failed",defaultMessage:"Failed to create category"}))})},p=h=>{h.key==="Enter"&&f()};return x.jsx("div",{children:x.jsx(yr,{title:r?s.formatMessage({id:"category.form.edit.title",defaultMessage:"Edit Category"}):s.formatMessage({id:"category.form.create.title",defaultMessage:"Create Category"}),open:e,forceRender:!0,onOk:f,onCancel:i,getContainer:!1,children:x.jsx(Kn,{form:o,name:"categoryForm",submitter:!1,children:x.jsx(Or,{label:s.formatMessage({id:"category.form.name",defaultMessage:"Category Name"}),name:"name",rules:[{required:!0,message:s.formatMessage({id:"category.form.name.required",defaultMessage:"Please enter category name!"})}],fieldProps:{onKeyDown:p,placeholder:s.formatMessage({id:"category.form.name.placeholder",defaultMessage:"Enter category name"})}})})})})},EJt=({level:e,type:t})=>{var R;const{isDarkMode:n}=Ag(),r=jn(),[i,a]=d.useState(!0),o=Vr(O=>O.currentOrg),{translateString:s}=Zr(),[l,c]=d.useState(!1),[u,f]=yr.useModal(),{categoryResult:p,currentCategory:h,setCategoryResult:m,setCurrentCategory:g,insertCategory:v,upgradeCategory:y}=N7(O=>({categoryResult:O.categoryResult,currentCategory:O.currentCategory,setCategoryResult:O.setCategoryResult,setCurrentCategory:O.setCurrentCategory,insertCategory:O.insertCategory,upgradeCategory:O.upgradeCategory})),w=O=>{u.confirm({title:r.formatMessage({id:"deleteTip"}),icon:x.jsx(mve,{}),content:`${r.formatMessage({id:"deleteAffirm",defaultMessage:"Delete"})}【${s(O.name)}】?`,onOk(){C(O)},onCancel(){},okText:r.formatMessage({id:"ok"}),cancelText:r.formatMessage({id:"cancel"})})},b=async()=>{console.log("handleEditCategory: ",h),a(!0),c(!0)},C=async O=>{console.log("handleDeleteCategory: ",O);const j={uid:O==null?void 0:O.uid,orgUid:o==null?void 0:o.uid},I=await XUt(j);console.log("deleteCategory: ",I),I.data.code===200?(je.success(I.data.message),k()):je.error(I.data.message)},k=async()=>{const O={pageNumber:0,pageSize:100,orgUid:o==null?void 0:o.uid,level:e,type:t},j=await n7(O);console.log("queryCategoriesByOrg: ",e,t,j.data),j.data.code===200?m(j.data):je.error(j.data.message)};d.useEffect(()=>{k()},[]);const S=()=>{c(!1)},_=()=>{a(!1),c(!0)},E=async O=>{console.log("handleSubmit: ",O),je.loading(r.formatMessage({id:"creating"}));const j=await A3e(O);console.log("createCategory response: ",j),j.data.code===200?(je.destroy(),je.success(r.formatMessage({id:"create.success"})),v(j.data.data),c(!1)):(je.destroy(),je.error(j.data.message))},$=async O=>{console.log("handleUpdateCategory: ",O),je.loading(r.formatMessage({id:"updating"}));const j=await YUt(O);console.log("createCategory response: ",j),j.data.code===200?(je.destroy(),je.success(r.formatMessage({id:"update.success"})),y(j.data.data),c(!1)):(je.destroy(),je.error(j.data.message))},M=async O=>{console.log("handleSubmit: ",O),i?$(O):E(O)},P=(O,j)=>{console.log("list on click",O,j),g(O)};return x.jsxs(x.Fragment,{children:[x.jsxs(o3,{gap:"small",wrap:"wrap",style:{margin:5},children:[x.jsx(Yt,{type:"primary",size:"small",icon:x.jsx(wit,{}),onClick:_,children:r.formatMessage({id:"create"})}),(h==null?void 0:h.uid)!==""&&(h==null?void 0:h.uid)!=="all"&&x.jsx(Yt,{size:"small",onClick:b,children:r.formatMessage({id:"pages.robot.edit"})}),(h==null?void 0:h.uid)!==""&&(h==null?void 0:h.uid)!=="all"&&x.jsx(Yt,{onClick:()=>w(h),size:"small",style:{float:"right"},danger:!0,children:r.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]}),x.jsx(Yn,{itemLayout:"horizontal",dataSource:(R=p==null?void 0:p.data)==null?void 0:R.content,renderItem:(O,j)=>x.jsx(Yn.Item,{style:(h==null?void 0:h.uid)===O.uid?{backgroundColor:n?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>P(O,j),children:x.jsx(Yn.Item.Meta,{style:{marginLeft:"10px"},title:s(O.name)})})}),l&&x.jsx(kJt,{open:l,level:e,type:t,isEdit:i,onCancel:S,onSubmit:M}),f]})},$Jt=({isEdit:e,robot:t,open:n,level:r,onClose:i,onSubmit:a})=>{var w,b,C;const[o]=Kn.useForm(),s=jn(),l=Vr(k=>k.currentOrg),[c]=d.useState("https://cdn.weiyuai.cn/assets/images/llm/provider/zhipu.png"),[u,f]=d.useState(),p=N7(k=>k.categoryResult),{translateString:h}=Zr();d.useEffect(()=>{var k,S,_;if(e&&t&&o){o.setFieldsValue({uid:t==null?void 0:t.uid,nickname:t==null?void 0:t.nickname,prompt:(k=t==null?void 0:t.llm)==null?void 0:k.prompt,description:t==null?void 0:t.description,categoryUid:t==null?void 0:t.categoryUid});const E=(_=(S=p==null?void 0:p.data)==null?void 0:S.content)==null?void 0:_.find($=>$.uid===(t==null?void 0:t.categoryUid));f(E)}else console.log("form resetFields"),o.resetFields()},[t]);const m=()=>{console.log("handleSubmit"),o.validateFields().then(k=>{console.log("Form values:",k);const S={uid:e?t==null?void 0:t.uid:"",nickname:k.nickname,avatar:c,categoryUid:u==null?void 0:u.uid,llm:{prompt:k.prompt},description:k.description,type:_F,level:r,orgUid:l==null?void 0:l.uid};console.log("robotObject:",S),a(S)}).catch(k=>{console.log("Form errors:",k)})};d.useEffect(()=>{},[t]);const g=k=>{console.log("handleUploadSuccess:",k)},v=k=>{console.log("handleUploadError:",k),je.error(k)},y=k=>Array.isArray(k)?k:k==null?void 0:k.fileList;return x.jsx("div",{children:x.jsx(Sh,{title:e?"编辑提示语":"新建提示语",onClose:i,open:n,extra:x.jsxs(Xr,{children:[x.jsx(Yt,{onClick:i,children:"取消"}),x.jsx(Yt,{onClick:m,type:"primary",children:"保存"})]}),children:x.jsxs(Kn,{form:o,name:"model",submitter:!1,children:[x.jsx(ro,{label:"类别",name:"categoryUid",required:!0,options:(C=(b=(w=p==null?void 0:p.data)==null?void 0:w.content)==null?void 0:b.filter(k=>k.uid!=="all"))==null?void 0:C.map(k=>({label:h(k==null?void 0:k.name),value:k==null?void 0:k.uid})),fieldProps:{allowClear:!0,onChange:k=>{var S,_;console.log("handleChange:",k),f((_=(S=p==null?void 0:p.data)==null?void 0:S.content)==null?void 0:_.find(E=>E.uid===k))}}}),x.jsx(Or,{label:"昵称",name:"nickname",required:!0}),x.jsx(Kn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:y,label:s.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(YU,{onSuccess:g,onError:v,children:[x.jsx(Pi,{src:c}),x.jsx(Yt,{icon:x.jsx(D4,{}),children:s.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Cd,{label:"提示语Prompt",name:"prompt",required:!0}),x.jsx(Cd,{label:"简介描述",name:"description"})]})})})},MJt=({level:e,type:t})=>{console.log("RobotList",e,t);const n=d.useRef(!1),r=jn(),{isDarkMode:i}=Ag(),[a,o]=d.useState(!0),{translateString:s}=Zr(),[l,c]=d.useState(!1),[u,f]=d.useState(),[p,h]=d.useState({}),m=N7(I=>I.currentCategory),g=Vr(I=>I.currentOrg),[v,y]=yr.useModal(),w=rs(),b=fr(I=>I.addThread),C=fr(I=>I.setCurrentThread),k=OF(I=>I.setCurrentMenu),S=ia(I=>I.userInfo),_=I=>{v.confirm({title:r.formatMessage({id:"deleteTip"}),icon:x.jsx(mve,{}),content:r.formatMessage({id:"robot.list.delete.confirm",defaultMessage:"Delete【{name}】?"},{name:s(I.nickname)}),onOk(){E(I)},onCancel(){console.log("取消")},okText:r.formatMessage({id:"ok"}),cancelText:r.formatMessage({id:"cancel"})})},E=async I=>{var N;console.log("delete robot",I),je.loading(r.formatMessage({id:"robot.list.deleting",defaultMessage:"Deleting"}));const A=await XFt(I);if(console.log("delete robot response",A),A.data.code===200){je.destroy(),je.success(r.formatMessage({id:"robot.list.delete.success",defaultMessage:"Delete success"}));const F=[...(N=u==null?void 0:u.data)==null?void 0:N.content];for(const K in F)if(F[K].uid===I.uid){F.splice(Number(K),1);break}f({...u,data:{content:F}})}else je.destroy(),je.error(A.data.message)},$=async()=>{if(n.current){console.log("isLoading: 1",n.current);return}n.current=!0,je.loading(r.formatMessage({id:"robot.list.loading",defaultMessage:"Loading"}));const I={pageNumber:0,pageSize:100,orgUid:g==null?void 0:g.uid,categoryUid:(m==null?void 0:m.uid)==="all"?"":m==null?void 0:m.uid,type:_F,level:e},A=await qwe(I);console.log("getPlatformRobots queryRobotsByOrg: ",A),A.data.code===200?(je.destroy(),f(A.data)):(je.destroy(),je.error(A.data.message)),n.current=!1};d.useEffect(()=>{$()},[m]);const M=async I=>{var A,N,F,K;if(console.log("handleSubmit"),a){const L=await GFt(I);if(console.log("updatePromptRobot:",L),L.data.code===200){je.success(r.formatMessage({id:"robot.list.update.success",defaultMessage:"Update success"}));const V=[...(A=u==null?void 0:u.data)==null?void 0:A.content];for(const B in V)if(V[B].uid===I.uid){V[B]=(N=L==null?void 0:L.data)==null?void 0:N.data;break}f({...u,data:{content:V}}),c(!1)}else je.error(L.data.message)}else{const L=await KFt(I);if(console.log("createPromptRobot:",L),L.data.code===200){je.success(r.formatMessage({id:"robot.list.create.success",defaultMessage:"Create success"}));const V=[...(F=u==null?void 0:u.data)==null?void 0:F.content];V.unshift((K=L==null?void 0:L.data)==null?void 0:K.data),f({...u,data:{content:V}}),c(!1)}else je.error(L.data.message)}},P=(I,A)=>{console.log("list on click",I,A),h(I)},R=(I,A)=>{console.log("list on edit",I,A),o(!0),h(I),c(!0)},O=(I,A)=>{console.log("list on delete",I,A),h(I),_(I)},j=async(I,A)=>{console.log("startRobotChat",I,A);const N={user:{uid:I==null?void 0:I.uid,nickname:I==null?void 0:I.nickname,avatar:I==null?void 0:I.avatar,type:W5},topic:Tse+(I==null?void 0:I.uid)+"/"+(S==null?void 0:S.uid),content:"",type:vF,extra:"",client:_n};console.log("startRobotChat request:",N);const F=await XH(N);console.log("startRobotChat response:",F.data),F.data.code===200?(b(F.data.data),C(F.data.data),k("chat"),w("/chat")):je.error(F.data.message)};return x.jsxs(x.Fragment,{children:[x.jsx(Xr,{children:x.jsx(Yt,{icon:x.jsx(Ny,{}),type:"primary",style:{marginLeft:10,marginTop:10},onClick:()=>{o(!1),c(!0)},children:r.formatMessage({id:"robot.list.add",defaultMessage:"Add AI Agent"})})}),x.jsx(Yn,{dataSource:u==null?void 0:u.data.content,style:{marginTop:10},renderItem:(I,A)=>{var N;return x.jsx(Yn.Item,{style:(p==null?void 0:p.uid)===I.uid?{backgroundColor:i?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:()=>P(I,A),actions:[x.jsx(Yt,{onClick:()=>j(I,A),children:r.formatMessage({id:"robot.list.chat",defaultMessage:"Chat"})}),x.jsx(Yt,{type:"link",onClick:()=>R(I,A),children:r.formatMessage({id:"robot.list.edit",defaultMessage:"Edit"})},"edit"),x.jsx(Yt,{type:"link",onClick:()=>O(I,A),children:r.formatMessage({id:"robot.list.delete",defaultMessage:"Delete"})},"delete")],children:x.jsx(Yn.Item.Meta,{style:{marginLeft:"10px"},title:s(I==null?void 0:I.nickname)+" "+s(I==null?void 0:I.description),description:s((N=I==null?void 0:I.llm)==null?void 0:N.prompt)})},I==null?void 0:I.uid)}}),l&&x.jsx($Jt,{isEdit:a,robot:p,level:e,open:l,onClose:()=>c(!1),onSubmit:M}),y]})},{Sider:TJt,Header:hie,Content:PJt}=Qn,OJt=()=>{const e=jn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsxs(TJt,{width:n,style:t,children:[x.jsx(hie,{style:r,children:e.formatMessage({id:"chat.navbar.category"})}),x.jsx(EJt,{level:Lw,type:x5e})]}),x.jsxs(Qn,{children:[x.jsx(hie,{style:r,children:e.formatMessage({id:"chat.navbar.ai"})}),x.jsx(PJt,{style:i,children:x.jsx(MJt,{level:Lw})})]})]})},RJt=({open:e,onSubmit:t,onClose:n})=>{const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?i.setFieldsValue({email:o==null?void 0:o.email}):(i.resetFields(),k())},[e]);const v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{console.log("changeEmail:",S);const _={email:S.email,code:S.code,platform:gc},E=await Tle(_);console.log("changeEmail response:",E),E.data.code===200?(je.success("Email verify successfully!"),t(S.email),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeEmail:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{})},name:"email",placeholder:r.formatMessage({id:"pages.login.email.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}],readonly:!0}),x.jsx(Kn.Item,{name:"captchaCode",rules:[],children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async S=>{if(console.log("email:",S),S){const _={email:S,type:B6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o==null?void 0:o.uid,orgUid:l.uid,platform:gc},E=await nwe(_);if(console.log("sendEmailCode",E),E.data.code!==200){je.error(a(E.data.message)),k();return}je.success(a(E.data.message))}else je.error("手机号格式错误")}})]})})})},IJt=({open:e,onSubmit:t,onClose:n})=>{const r=jn(),[i]=Kn.useForm(),{translateString:a}=Zr(),{userInfo:o,deviceUid:s}=ia(S=>({userInfo:S.userInfo,deviceUid:S.deviceUid})),l=Vr(S=>S.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[p,h]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?i.setFieldsValue({mobile:o==null?void 0:o.mobile}):(i.resetFields(),k())},[e]);const v=async(S,_)=>{console.log("captchaUid",S," captchaValue",_),f(S),h(_)},y=async S=>{console.log("captcha check result",S),g(S)},w=()=>{n()},b=()=>{n()},C=async()=>{i.validateFields().then(async S=>{console.log("changeMobile:",S);const _={mobile:S.mobile,code:S.code,platform:gc},E=await Ple(_);console.log("changeMobile response:",E),E.data.code===200?(je.success("Mobile verify successfully!"),t(S.mobile),w()):je.error(a(E.data.message))})},k=()=>{setTimeout(()=>{var S;console.log("endCaptchaTiming"),(S=c.current)==null||S.endTiming()},2)};return x.jsx(x.Fragment,{children:x.jsx(yr,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:b,children:x.jsxs(Kn,{form:i,onFinish:async S=>{console.log("changeMobile:",S),C()},children:[x.jsx(Or,{fieldProps:{size:"large",prefix:x.jsx(A4,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),x.jsx(Kn.Item,{name:"captchaCode",rules:[],children:x.jsx(eb,{onKaptchaChange:v,onKaptchaCheck:y})}),x.jsx(W4,{fieldProps:{size:"large",prefix:x.jsx(Zg,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(S,_)=>S?`${_} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async S=>{if(console.log("mobile:",S),S&&S.length===11){const _={mobile:S,type:F6e,captchaUid:u,captchaCode:p,deviceUid:s,userUid:o==null?void 0:o.uid,orgUid:l.uid,platform:gc},E=await LH(_);if(console.log("sendMobileCode",E),E.data.code!==200){je.error(a(E.data.message)),k();return}je.success(a(E.data.message))}else je.error("手机号格式错误")}})]})})})},jJt=()=>{const e=jn(),t=rs(),[n]=Kn.useForm(),{userInfo:r,setUserInfo:i}=ia(y=>({userInfo:y.userInfo,setUserInfo:y.setUserInfo})),[a,o]=d.useState(!1),[s,l]=d.useState(!1),c=()=>{o(!0)},u=()=>{l(!0)},f=()=>{o(!1)},p=y=>{o(!1),r.email=y,r.emailVerified=!0,i(r),n.setFieldValue("email",y)},h=()=>{l(!1)},m=y=>{l(!1),r.mobile=y,r.mobileVerified=!0,i(r),n.setFieldValue("mobile",y)};d.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const g=()=>{t("/setting/profile")},v=()=>{t("/setting/profile")};return x.jsxs("div",{children:[x.jsxs(Kn,{form:n,submitter:!1,children:[x.jsx(Or,{name:"email",label:r!=null&&r.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(r!=null&&r.emailVerified)&&r.email!=null&&x.jsx(Yt,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),x.jsx(Yt,{type:"link",onClick:g,children:"重置邮箱"}),x.jsx(Or,{name:"mobile",label:r!=null&&r.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(r!=null&&r.mobileVerified)&&r.mobile!=null&&x.jsx(Yt,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),x.jsx(Yt,{type:"link",onClick:v,children:"重置手机号"})]}),a&&x.jsx(RJt,{open:a,onSubmit:p,onClose:f}),s&&x.jsx(IJt,{open:s,onSubmit:m,onClose:h})]})},NJt=e=>{console.log(e)},AJt=[{key:"personal",label:"个人认证",children:x.jsx(jJt,{})}],DJt=()=>x.jsx("div",{className:"profile-container",children:x.jsx(Yg,{defaultActiveKey:"personal",items:AJt,onChange:NJt})}),FJt=()=>{const[e]=Kn.useForm(),t=jn(),{translateString:n}=Zr(),{agentInfo:r,setAgentInfo:i}=Eo(f=>({agentInfo:f.agentInfo,setAgentInfo:f.setAgentInfo})),[a,o]=d.useState("");d.useEffect(()=>{var f;r&&e.setFieldsValue({nickname:n(r==null?void 0:r.nickname),email:r==null?void 0:r.email,mobile:r==null?void 0:r.mobile,description:n(r==null?void 0:r.description),memberUid:(f=r==null?void 0:r.member)==null?void 0:f.uid})},[r]);const s=f=>{console.log("handleUploadSuccess:",f),o(f)},l=f=>{console.log("handleUploadError:",f),je.error(f)},c=async f=>{var m,g,v,y,w,b,C,k,S,_,E,$,M,P;console.log("onFinish:",f),je.loading(t.formatMessage({id:"updating"}));const p={...r,...f,avatar:a,serviceSettings:{...r.serviceSettings,quickFaqUids:(g=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:g.map(R=>R.uid),faqUids:(y=(v=r==null?void 0:r.serviceSettings)==null?void 0:v.faqs)==null?void 0:y.map(R=>R.uid),guessFaqUids:(b=(w=r==null?void 0:r.serviceSettings)==null?void 0:w.guessFaqs)==null?void 0:b.map(R=>R.uid),hotFaqUids:(k=(C=r==null?void 0:r.serviceSettings)==null?void 0:C.hotFaqs)==null?void 0:k.map(R=>R.uid),shortcutFaqUids:(_=(S=r==null?void 0:r.serviceSettings)==null?void 0:S.shortcutFaqs)==null?void 0:_.map(R=>R.uid)},robotSettings:{...r.robotSettings,robotUid:($=(E=r==null?void 0:r.robotSettings)==null?void 0:E.robot)==null?void 0:$.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(P=(M=r==null?void 0:r.leaveMsgSettings)==null?void 0:M.worktimes)==null?void 0:P.map(R=>R.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",p);const h=await i$e(p);console.log("updateAgent response:",h),h.data.code===200?(je.destroy(),je.success(t.formatMessage({id:"update.success"})),i(h.data.data)):(je.destroy(),je.error(h.data.message))},u=f=>Array.isArray(f)?f:f==null?void 0:f.fileList;return d.useEffect(()=>{var f;r&&(o(r.avatar),e.setFieldsValue({member:(f=r==null?void 0:r.member)==null?void 0:f.nickname}))},[r]),x.jsx(x.Fragment,{children:x.jsxs(Kn,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[x.jsx(Kn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:x.jsxs(YU,{onSuccess:s,onError:l,children:[x.jsx(Pi,{src:a}),x.jsx(Yt,{icon:x.jsx(D4,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),x.jsx(Or,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),x.jsx(Or,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),x.jsx(Or,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),x.jsx(Cd,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},LJt=()=>(d.useEffect(()=>{},[]),x.jsx(x.Fragment,{children:x.jsx(FJt,{})})),{Sider:BJt,Content:zJt}=Qn,lD=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsxs(BJt,{style:e,width:t,children:[x.jsx(xg,{style:n,children:"home"}),x.jsx(KU,{})]}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"home"}),x.jsx(zJt,{style:r,children:"home"})]})]})})},HJt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);d.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class UJt{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const n of this._parts)t.push(n);return WJt(t).buffer}}function WJt(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e){const a=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);n.set(a,r),r+=i.byteLength}return n}function Bxe(e){return new VJt(e).unpack()}function zxe(e){const t=new qJt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class VJt{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let n;if((n=t^160)<=15)return this.unpack_raw(n);if((n=t^176)<=15)return this.unpack_string(n);if((n=t^144)<=15)return this.unpack_array(n);if((n=t^128)<=15)return this.unpack_map(n);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return n=this.unpack_uint16(),this.unpack_string(n);case 217:return n=this.unpack_uint32(),this.unpack_string(n);case 218:return n=this.unpack_uint16(),this.unpack_raw(n);case 219:return n=this.unpack_uint32(),this.unpack_raw(n);case 220:return n=this.unpack_uint16(),this.unpack_array(n);case 221:return n=this.unpack_uint32(),this.unpack_array(n);case 222:return n=this.unpack_uint16(),this.unpack_map(n);case 223:return n=this.unpack_uint32(),this.unpack_map(n)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),n=(t[0]&255)*256+(t[1]&255);return this.index+=2,n}unpack_uint32(){const t=this.read(4),n=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,n}unpack_uint64(){const t=this.read(8),n=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,n}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length>31,r=(t>>23&255)-127,i=t&8388607|8388608;return(n===0?1:-1)*i*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,i=(t>>20&2047)-1023,o=(t&1048575|1048576)*2**(i-20)+n*2**(i-52);return(r===0?1:-1)*o}read(t){const n=this.index;if(n+t<=this.length)return this.dataView.subarray(n,n+t);throw new Error("BinaryPackFailure: read index out of range")}}class qJt{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const n=t.constructor;if(t instanceof Array){const r=this.pack_array(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const r=t;this.pack_bin(new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(r=>{this.pack_bin(new Uint8Array(r)),this._bufferBuilder.flush()});if(n==Object||n.toString().startsWith("class")){const r=this.pack_object(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${n.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const n=t.length;if(n<=15)this.pack_uint8(160+n);else if(n<=65535)this._bufferBuilder.append(218),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(n);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const n=this._textEncoder.encode(t),r=n.length;if(r<=15)this.pack_uint8(176+r);else if(r<=65535)this._bufferBuilder.append(216),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_array(t){const n=t.length;if(n<=15)this.pack_uint8(144+n);else if(n<=65535)this._bufferBuilder.append(220),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(n);else throw new Error("Invalid length");const r=i=>{if(ir(i+1)):r(i+1)}};return r(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let n=0;t<0&&(n=1,t=-t);const r=Math.floor(Math.log(t)/Math.LN2),i=t/2**r-1,a=Math.floor(i*2**52),o=2**32,s=n<<31|r+1023<<20|a/o&1048575,l=a%o;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const n=Object.keys(t),r=n.length;if(r<=15)this.pack_uint8(128+r);else if(r<=65535)this._bufferBuilder.append(222),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(r);else throw new Error("Invalid length");const i=a=>{if(ai(a+1))}return i(a+1)}};return i(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const n=t&4294967295;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_uint64(t){const n=t/4294967296,r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const n=Math.floor(t/4294967296),r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}constructor(){this._bufferBuilder=new UJt,this._textEncoder=new TextEncoder}}let Hxe=!0,Uxe=!0;function j_(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function y1(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(o,s){if(o!==t)return i.apply(this,arguments);const l=c=>{const u=n(c);u&&(s.handleEvent?s.handleEvent(u):s(u))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),i.apply(this,[o,l])};const a=r.removeEventListener;r.removeEventListener=function(o,s){if(o!==t||!this._eventMap||!this._eventMap[t])return a.apply(this,arguments);if(!this._eventMap[t].has(s))return a.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[o,l])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(o){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),o&&this.addEventListener(t,this["_on"+t]=o)},enumerable:!0,configurable:!0})}function KJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Hxe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function GJt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Uxe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Wxe(){if(typeof window=="object"){if(Hxe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function ZU(e,t){Uxe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function YJt(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(i=>i.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=j_(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=j_(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=j_(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function mie(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vxe(e){return mie(e)?Object.keys(e).reduce(function(t,n){const r=mie(e[n]),i=r?Vxe(e[n]):e[n],a=r&&!Object.keys(i).length;return i===void 0||a?t:Object.assign(t,{[n]:i})},{}):e}function cD(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?cD(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{cD(e,e.get(i),n)})}))}function gie(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;const a=[];return e.forEach(o=>{o.type==="track"&&o.trackIdentifier===t.id&&a.push(o)}),a.forEach(o=>{e.forEach(s=>{s.type===r&&s.trackId===o.id&&cD(e,s,i)})}),i}const vie=Wxe;function qxe(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const u=typeof s[c]=="object"?s[c]:{ideal:s[c]};u.exact!==void 0&&typeof u.exact=="number"&&(u.min=u.max=u.exact);const f=function(p,h){return p?p+h.charAt(0).toUpperCase()+h.slice(1):h==="deviceId"?"sourceId":h};if(u.ideal!==void 0){l.optional=l.optional||[];let p={};typeof u.ideal=="number"?(p[f("min",c)]=u.ideal,l.optional.push(p),p={},p[f("max",c)]=u.ideal,l.optional.push(p)):(p[f("",c)]=u.ideal,l.optional.push(p))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[f("",c)]=u.exact):["min","max"].forEach(p=>{u[p]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[f(p,c)]=u[p])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},i=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(u,f,p){f in u&&!(p in u)&&(u[p]=u[f],delete u[f])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=r(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const u=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete s.video.facingMode;let f;if(c.exact==="environment"||c.ideal==="environment"?f=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(f=["front"]),f)return n.mediaDevices.enumerateDevices().then(p=>{p=p.filter(m=>m.kind==="videoinput");let h=p.find(m=>f.some(g=>m.label.toLowerCase().includes(g)));return!h&&p.length&&f.includes("back")&&(h=p[p.length-1]),h&&(s.video.deviceId=c.exact?{exact:h.deviceId}:{ideal:h.deviceId}),s.video=r(s.video),vie("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return vie("chrome: "+JSON.stringify(s)),l(s)},a=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},o=function(s,l,c){i(s,u=>{n.webkitGetUserMedia(u,l,f=>{c&&c(a(f))})})};if(n.getUserMedia=o.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return i(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(a(u))))}}}function Kxe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Gxe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",i=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(s=>s.track&&s.track.id===i.track.id):a={track:i.track};const o=new Event("track");o.track=i.track,o.receiver=a,o.transceiver={receiver:a},o.streams=[r.stream],this.dispatchEvent(o)}),r.stream.getTracks().forEach(i=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(s=>s.track&&s.track.id===i.id):a={track:i};const o=new Event("track");o.track=i,o.receiver=a,o.transceiver={receiver:a},o.streams=[r.stream],this.dispatchEvent(o)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else y1(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function Yxe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(i,a){return{track:a,get dtmf(){return this._dtmf===void 0&&(a.kind==="audio"?this._dtmf=i.createDTMFSender(a):this._dtmf=null),this._dtmf},_pc:i}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const i=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=i.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const a=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){a.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._senders=this._senders||[],n.apply(this,[a]),a.getTracks().forEach(o=>{this._senders.push(t(this,o))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){this._senders=this._senders||[],r.apply(this,[a]),a.getTracks().forEach(o=>{const s=this._senders.find(l=>l.track===o);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Xxe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const a=n.apply(this,[]);return a.forEach(o=>o._pc=this),a});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const a=r.apply(this,arguments);return a._pc=this,a}),e.RTCRtpSender.prototype.getStats=function(){const a=this;return this._pc.getStats().then(o=>gie(o,a.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=n.apply(this,[]);return i.forEach(a=>a._pc=this),i}),y1(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>gie(a,i.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let i,a,o;return this.getSenders().forEach(s=>{s.track===r&&(i?o=!0:i=s)}),this.getReceivers().forEach(s=>(s.track===r&&(a?o=!0:a=s),s.track===r)),o||i&&a?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():a?a.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Zxe(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(o=>this._shimmedLocalStreams[o][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(o,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(o){this._shimmedLocalStreams=this._shimmedLocalStreams||{},o.getTracks().forEach(c=>{if(this.getSenders().find(f=>f.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();n.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[o.id]=[o].concat(l)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(o){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[o.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(o){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},o&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(o);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),i.apply(this,arguments)}}function Qxe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Zxe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(f=>this._reverseStreams[f.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(f=>{if(this.getSenders().find(h=>h.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const f=new e.MediaStream(u.getTracks());this._streams[u.id]=f,this._reverseStreams[f.id]=u,u=f}r.apply(this,[u])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,f){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const p=[].slice.call(arguments,1);if(p.length!==1||!p[0].getTracks().find(g=>g===u))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(g=>g.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[f.id];if(m)m.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const g=new e.MediaStream([u]);this._streams[f.id]=g,this._reverseStreams[g.id]=f,this.addStream(g)}return this.getSenders().find(g=>g.track===u)};function a(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{const h=c._reverseStreams[p],m=c._streams[h.id];f=f.replace(new RegExp(m.id,"g"),h.id)}),new RTCSessionDescription({type:u.type,sdp:f})}function o(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(p=>{const h=c._reverseStreams[p],m=c._streams[h.id];f=f.replace(new RegExp(h.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:f})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],f={[c](){const p=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const g=a(this,m);p[0].apply(null,[g])},m=>{p[1]&&p[1].apply(null,m)},arguments[2]]):u.apply(this,arguments).then(m=>a(this,m))}};e.RTCPeerConnection.prototype[c]=f[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=o(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:a(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!u._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(u._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let p;Object.keys(this._streams).forEach(h=>{this._streams[h].getTracks().find(g=>u.track===g)&&(p=this._streams[h])}),p&&(p.getTracks().length===1?this.removeStream(this._reverseStreams[p.id]):p.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function uD(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],i={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=i[n]})}function Jxe(e,t){y1(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const yie=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:Jxe,shimAddTrackRemoveTrack:Qxe,shimAddTrackRemoveTrackWithNative:Zxe,shimGetSendersWithDtmf:Yxe,shimGetUserMedia:qxe,shimMediaStream:Kxe,shimOnTrack:Gxe,shimPeerConnection:uD,shimSenderReceiverGetStats:Xxe},Symbol.toStringTag,{value:"Module"}));function eSe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,a,o){ZU("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(i).then(a,o)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const i=function(o,s,l){s in o&&!(l in o)&&(o[l]=o[s],delete o[s])},a=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(o){return typeof o=="object"&&typeof o.audio=="object"&&(o=JSON.parse(JSON.stringify(o)),i(o.audio,"autoGainControl","mozAutoGainControl"),i(o.audio,"noiseSuppression","mozNoiseSuppression")),a(o)},r&&r.prototype.getSettings){const o=r.prototype.getSettings;r.prototype.getSettings=function(){const s=o.apply(this,arguments);return i(s,"mozAutoGainControl","autoGainControl"),i(s,"mozNoiseSuppression","noiseSuppression"),s}}if(r&&r.prototype.applyConstraints){const o=r.prototype.applyConstraints;r.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),i(s,"autoGainControl","mozAutoGainControl"),i(s,"noiseSuppression","mozNoiseSuppression")),o.apply(this,[s])}}}}function XJt(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function tSe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function dD(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){const a=e.RTCPeerConnection.prototype[i],o={[i](){return arguments[0]=new(i==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};e.RTCPeerConnection.prototype[i]=o[i]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[a,o,s]=arguments;return r.apply(this,[a||null]).then(l=>{if(t.version<53&&!o)try{l.forEach(c=>{c.type=n[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((u,f)=>{l.set(f,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(o,s)}}function nSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=t.apply(this,[]);return i.forEach(a=>a._pc=this),i});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=n.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function rSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r}),y1(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function iSe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){ZU("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function aSe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function oSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const i=r.length>0;i&&r.forEach(o=>{if("rid"in o&&!/^[a-z0-9]{0,16}$/i.test(o.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in o&&!(parseFloat(o.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in o&&!(parseFloat(o.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const a=t.apply(this,arguments);if(i){const{sender:o}=a,s=o.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=r,o.sendEncodings=r,this.setParametersPromises.push(o.setParameters(s).then(()=>{delete o.sendEncodings}).catch(()=>{delete o.sendEncodings})))}return a})}function sSe(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function lSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function cSe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const bie=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:oSe,shimCreateAnswer:cSe,shimCreateOffer:lSe,shimGetDisplayMedia:XJt,shimGetParameters:sSe,shimGetUserMedia:eSe,shimOnTrack:tSe,shimPeerConnection:dD,shimRTCDataChannel:aSe,shimReceiverGetStats:rSe,shimRemoveStream:iSe,shimSenderGetStats:nSe},Symbol.toStringTag,{value:"Module"}));function uSe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(i=>t.call(this,i,r)),r.getVideoTracks().forEach(i=>t.call(this,i,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...i){return i&&i.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const i=n.getTracks();this.getSenders().forEach(a=>{i.includes(a.track)&&this.removeTrack(a)})})}}function dSe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,this.dispatchEvent(a)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(a=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(a)>=0)return;r._remoteStreams.push(a);const o=new Event("addstream");o.stream=a,r.dispatchEvent(o)})}),t.apply(r,arguments)}}}function fSe(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,a=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],p=n.apply(this,[f]);return u?(p.then(c,u),Promise.resolve()):p},t.createAnswer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],p=r.apply(this,[f]);return u?(p.then(c,u),Promise.resolve()):p};let s=function(l,c,u){const f=i.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f};t.setLocalDescription=s,s=function(l,c,u){const f=a.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.setRemoteDescription=s,s=function(l,c,u){const f=o.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.addIceCandidate=s}function pSe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=i=>r(hSe(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,a){t.mediaDevices.getUserMedia(r).then(i,a)}).bind(t))}function hSe(e){return e&&e.video!==void 0?Object.assign({},e,{video:Vxe(e.video)}):e}function mSe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){const a=[];for(let o=0;oo.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const a=this.getTransceivers().find(o=>o.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):r.offerToReceiveVideo===!0&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function ySe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const wie=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:ySe,shimCallbacksAPI:fSe,shimConstraints:hSe,shimCreateOfferLegacy:vSe,shimGetUserMedia:pSe,shimLocalStreamsAPI:uSe,shimRTCIceServerUrls:mSe,shimRemoteStreamsAPI:dSe,shimTrackEventTransceiver:gSe},Symbol.toStringTag,{value:"Module"}));var bSe={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(` `).map(r=>r.trim())},t.splitSections=function(n){return n.split(` m=`).map((i,a)=>(a>0?"m="+i:i).trim()+`\r `)},t.getDescription=function(n){const r=t.splitSections(n);return r&&r[0]},t.getMediaSections=function(n){const r=t.splitSections(n);return r.shift(),r},t.matchPrefix=function(n,r){return t.splitLines(n).filter(i=>i.indexOf(r)===0)},t.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const i={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let a=8;a(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function fD(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||y1(e,"icecandidate",t=>{if(t.candidate){const n=Kv.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function D_(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(s){if(!s||!s.sdp)return!1;const l=Kv.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=Kv.parseMLine(c);return u&&u.kind==="application"&&u.protocol.indexOf("SCTP")!==-1})},r=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},i=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},a=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=Kv.matchPrefix(s.sdp,"a=max-message-size:");return u.length>0?c=parseInt(u[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},o=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const l=r(arguments[0]),c=i(l),u=a(arguments[0],l);let f;c===0&&u===0?f=Number.POSITIVE_INFINITY:c===0||u===0?f=Math.max(c,u):f=Math.min(c,u);const p={};Object.defineProperty(p,"maxMessageSize",{get(){return f}}),this._sctp=p}return o.apply(this,arguments)}}function F_(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,i){const a=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&i.sctp&&l>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return a.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const i=n.apply(this,arguments);return t(i,this),i},y1(e,"datachannel",r=>(t(r.channel,r.target),r))}function pD(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{const a=i.target;if(a._lastConnectionState!==a.connectionState){a._lastConnectionState=a.connectionState;const o=new Event("connectionstatechange",i);a.dispatchEvent(o)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function hD(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(` +`},t.getDirection=function(n,r){const i=t.splitLines(n);for(let a=0;a(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function fD(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||y1(e,"icecandidate",t=>{if(t.candidate){const n=Kv.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function A_(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(s){if(!s||!s.sdp)return!1;const l=Kv.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=Kv.parseMLine(c);return u&&u.kind==="application"&&u.protocol.indexOf("SCTP")!==-1})},r=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},i=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},a=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=Kv.matchPrefix(s.sdp,"a=max-message-size:");return u.length>0?c=parseInt(u[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},o=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const l=r(arguments[0]),c=i(l),u=a(arguments[0],l);let f;c===0&&u===0?f=Number.POSITIVE_INFINITY:c===0||u===0?f=Math.max(c,u):f=Math.min(c,u);const p={};Object.defineProperty(p,"maxMessageSize",{get(){return f}}),this._sctp=p}return o.apply(this,arguments)}}function D_(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,i){const a=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&i.sctp&&l>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return a.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const i=n.apply(this,arguments);return t(i,this),i},y1(e,"datachannel",r=>(t(r.channel,r.target),r))}function pD(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{const a=i.target;if(a._lastConnectionState!==a.connectionState){a._lastConnectionState=a.connectionState;const o=new Event("connectionstatechange",i);a.dispatchEvent(o)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function hD(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(` a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` `).filter(o=>o.trim()!=="a=extmap-allow-mixed").join(` -`);e.RTCSessionDescription&&i instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:i.type,sdp:a}):i.sdp=a}return n.apply(this,arguments)}}function L_(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function B_(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return n.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?n.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(o=>n.apply(this,[o]))})}const ZJt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:hD,shimAddIceCandidateNullOrEmpty:L_,shimConnectionState:pD,shimMaxMessageSize:D_,shimParameterlessSetLocalDescription:B_,shimRTCIceCandidate:A_,shimRTCIceCandidateRelayProtocol:fD,shimSendThrowTypeError:F_},Symbol.toStringTag,{value:"Module"}));function QJt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Vxe,r=GJt(e),i={browserDetails:r,commonShim:ZJt,extractVersion:N_,disableLog:qJt,disableWarnings:KJt,sdp:XJt};switch(r.browser){case"chrome":if(!bie||!uD||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=bie,L_(e,r),B_(e),Kxe(e,r),Gxe(e),uD(e,r),Yxe(e),Jxe(e,r),Xxe(e),Zxe(e),eSe(e,r),A_(e),fD(e),pD(e),D_(e,r),F_(e),hD(e,r);break;case"firefox":if(!wie||!dD||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=wie,L_(e,r),B_(e),tSe(e,r),dD(e,r),nSe(e),aSe(e),rSe(e),iSe(e),oSe(e),sSe(e),lSe(e),cSe(e),uSe(e),A_(e),pD(e),D_(e,r),F_(e);break;case"safari":if(!xie||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=xie,L_(e,r),B_(e),gSe(e),ySe(e),pSe(e),dSe(e),fSe(e),vSe(e),hSe(e),bSe(e),A_(e),fD(e),D_(e,r),F_(e),hD(e,r);break;default:n("Unsupported browser!");break}return i}const Sie=QJt({window:typeof window>"u"?void 0:window});function b1(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class SSe{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,i=Math.ceil(r/this.chunkedMTU);let a=0,o=0;for(;o=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return HP.browserDetails.browser}getVersion(){return HP.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=HP.browserDetails.version||0;if(e==="chrome"&&t=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let n,r=!1;try{n=new RTCPeerConnection,n.addTransceiver("audio"),r=!0}catch{}finally{n&&n.close()}return r}toString(){return`Supports: +`);e.RTCSessionDescription&&i instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:i.type,sdp:a}):i.sdp=a}return n.apply(this,arguments)}}function F_(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function L_(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return n.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?n.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(o=>n.apply(this,[o]))})}const QJt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:hD,shimAddIceCandidateNullOrEmpty:F_,shimConnectionState:pD,shimMaxMessageSize:A_,shimParameterlessSetLocalDescription:L_,shimRTCIceCandidate:N_,shimRTCIceCandidateRelayProtocol:fD,shimSendThrowTypeError:D_},Symbol.toStringTag,{value:"Module"}));function JJt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Wxe,r=YJt(e),i={browserDetails:r,commonShim:QJt,extractVersion:j_,disableLog:KJt,disableWarnings:GJt,sdp:ZJt};switch(r.browser){case"chrome":if(!yie||!uD||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=yie,F_(e,r),L_(e),qxe(e,r),Kxe(e),uD(e,r),Gxe(e),Qxe(e,r),Yxe(e),Xxe(e),Jxe(e,r),N_(e),fD(e),pD(e),A_(e,r),D_(e),hD(e,r);break;case"firefox":if(!bie||!dD||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=bie,F_(e,r),L_(e),eSe(e,r),dD(e,r),tSe(e),iSe(e),nSe(e),rSe(e),aSe(e),oSe(e),sSe(e),lSe(e),cSe(e),N_(e),pD(e),A_(e,r),D_(e);break;case"safari":if(!wie||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=wie,F_(e,r),L_(e),mSe(e),vSe(e),fSe(e),uSe(e),dSe(e),gSe(e),pSe(e),ySe(e),N_(e),fD(e),A_(e,r),D_(e),hD(e,r);break;default:n("Unsupported browser!");break}return i}const xie=JJt({window:typeof window>"u"?void 0:window});function b1(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class xSe{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,i=Math.ceil(r/this.chunkedMTU);let a=0,o=0;for(;o=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return HP.browserDetails.browser}getVersion(){return HP.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=HP.browserDetails.version||0;if(e==="chrome"&&t=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let n,r=!1;try{n=new RTCPeerConnection,n.addTransceiver("audio"),r=!0}catch{}finally{n&&n.close()}return r}toString(){return`Supports: browser:${this.getBrowser()} version:${this.getVersion()} isIOS:${this.isIOS} isWebRTCSupported:${this.isWebRTCSupported()} isBrowserSupported:${this.isBrowserSupported()} - isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},een=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),CSe=()=>Math.random().toString(36).slice(2),Cie={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class ten extends SSe{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(i){i.target&&n(i.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...n){const r=[nen,...n];for(const i in r)r[i]instanceof Error&&(r[i]="("+r[i].name+") "+r[i].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var Wn=new ren,QU={},ien=Object.prototype.hasOwnProperty,Ss="~";function N3(){}Object.create&&(N3.prototype=Object.create(null),new N3().__proto__||(Ss=!1));function aen(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function _Se(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var a=new aen(n,r||e,i),o=Ss?Ss+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function z_(e,t){--e._eventsCount===0?e._events=new N3:delete e._events[t]}function Jo(){this._events=new N3,this._eventsCount=0}Jo.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)ien.call(n,r)&&t.push(Ss?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Jo.prototype.listeners=function(t){var n=Ss?Ss+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);imd);b1(w1,"PeerErrorType",()=>da);b1(w1,"BaseConnectionErrorType",()=>A3);b1(w1,"DataConnectionErrorType",()=>D3);b1(w1,"SerializationType",()=>iy);b1(w1,"SocketEventType",()=>od);b1(w1,"ServerMessageType",()=>no);var md;(function(e){e.Data="data",e.Media="media"})(md||(md={}));var da;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(da||(da={}));var A3;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(A3||(A3={}));var D3;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(D3||(D3={}));var iy;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(iy||(iy={}));var od;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(od||(od={}));var no;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(no||(no={}));var JU={};JU=JSON.parse('{"name":"peerjs","version":"1.5.4","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu ","afrokick ","ericz ","Jairo ","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana ","Carlos Caballero ","hc ","Muhammad Asif ","PrashoonB ","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski ","lmb ","Jairooo ","Moritz Stückler ","Simon ","Denis Lukov ","Philipp Hancke ","Hans Oksendahl ","Jess ","khankuan ","DUODVK ","XiZhao ","Matthias Lohr ","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt ","Chris Cowan ","Alex Chuev ","alxnull ","Yemel Jardi ","Ben Parnell ","Benny Lichtner ","fresheneesz ","bob.barstead@exaptive.com ","chandika ","emersion ","Christopher Van ","eddieherm ","Eduardo Pinho ","Evandro Zanatta ","Gardner Bickford ","Gian Luca ","PatrickJS ","jonnyf ","Hizkia Felix ","Hristo Oskov ","Isaac Madwed ","Ilya Konanykhin ","jasonbarry ","Jonathan Burke ","Josh Hamit ","Jordan Austin ","Joel Wetzell ","xizhao ","Alberto Torres ","Jonathan Mayol ","Jefferson Felix ","Rolf Erik Lekang ","Kevin Mai-Husan Chia ","Pepijn de Vos ","JooYoung ","Tobias Speicher ","Steve Blaurock ","Kyrylo Shegeda ","Diwank Singh Tomer ","Sören Balko ","Arpit Solanki ","Yuki Ito ","Artur Zayats "],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^9.0.0"},"alias":{"process":false,"buffer":false}}');class oen extends QU.EventEmitter{constructor(t,n,r,i,a,o=5e3){super(),this.pingInterval=o,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+i+"peerjs?key="+a}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+JU.version),this._disconnected=!1,this._socket.onmessage=i=>{let a;try{a=JSON.parse(i.data),Wn.log("Server message received:",a)}catch{Wn.log("Invalid server message",i.data);return}this.emit(od.Message,a)},this._socket.onclose=i=>{this._disconnected||(Wn.log("Socket closed.",i),this._cleanup(),this._disconnected=!0,this.emit(od.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),Wn.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){Wn.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:no.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const n of t)this.send(n)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(od.Error,"Invalid message");return}if(!this._wsOpen())return;const n=JSON.stringify(t);this._socket.send(n)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class kSe{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===md.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,i={ordered:!!t.reliable},a=n.createDataChannel(r.label,i);r._initializeDataChannel(a),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){Wn.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const n=this.connection.peer,r=this.connection.connectionId,i=this.connection.type,a=this.connection.provider;Wn.log("Listening for ICE candidates."),t.onicecandidate=o=>{!o.candidate||!o.candidate.candidate||(Wn.log(`Received ICE candidates for ${n}:`,o.candidate),a.socket.send({type:no.Candidate,payload:{candidate:o.candidate,type:i,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":Wn.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(A3.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":Wn.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(A3.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":Wn.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},Wn.log("Listening for data channel"),t.ondatachannel=o=>{Wn.log("Received data channel");const s=o.channel;a.getConnection(n,r)._initializeDataChannel(s)},Wn.log("Listening for remote stream"),t.ontrack=o=>{Wn.log("Received remote stream");const s=o.streams[0],l=a.getConnection(n,r);if(l.type===md.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){Wn.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const n=t.signalingState!=="closed";let r=!1;const i=this.connection.dataChannel;i&&(r=!!i.readyState&&i.readyState!=="closed"),(n||r)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createOffer(this.connection.options.constraints);Wn.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),Wn.log("Set localDescription:",r,`for:${this.connection.peer}`);let i={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===md.Data){const a=this.connection;i={...i,label:a.label,reliable:a.reliable,serialization:a.serialization}}n.socket.send({type:no.Offer,payload:i,dst:this.connection.peer})}catch(i){i!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(da.WebRTC,i),Wn.log("Failed to setLocalDescription, ",i))}}catch(r){n.emitError(da.WebRTC,r),Wn.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();Wn.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),Wn.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:no.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(i){n.emitError(da.WebRTC,i),Wn.log("Failed to setLocalDescription, ",i)}}catch(r){n.emitError(da.WebRTC,r),Wn.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,i=this.connection.provider;Wn.log("Setting remote description",n);const a=this;try{await r.setRemoteDescription(n),Wn.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await a._makeAnswer()}catch(o){i.emitError(da.WebRTC,o),Wn.log("Failed to setRemoteDescription, ",o)}}async handleCandidate(t){Wn.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),Wn.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(da.WebRTC,n),Wn.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(Wn.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return Wn.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){Wn.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class ESe extends QU.EventEmitter{emitError(t,n){Wn.error("Error:",n),this.emit("error",new sen(`${t}`,n))}}class sen extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class $Se extends ESe{get open(){return this._open}constructor(t,n,r){super(),this.peer=t,this.provider=n,this.options=r,this._open=!1,this.metadata=r.metadata}}var gD;const uw=class uw extends $Se{get type(){return md.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,n,r){super(t,n,r),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||uw.ID_PREFIX+Rs.randomToken(),this._negotiator=new kSe(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Wn.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{Wn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){Wn.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case no.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case no.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:Wn.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){Wn.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,n&&n.sdpTransform&&(this.options.sdpTransform=n.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const r=this.provider._getMessages(this.connectionId);for(const i of r)this.handleMessage(i);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};gD=new WeakMap,Un(uw,gD,uw.ID_PREFIX="mc_");let x5=uw;class len{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:i,path:a,key:o}=this._options,s=new URL(`${n}://${r}:${i}${a}${o}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",JU.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){Wn.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==Rs.CLOUD_HOST&&(n=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+n)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let n="";throw this._options.host===Rs.CLOUD_HOST?n="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":n="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+n)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw Wn.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var vD,yD;const pm=class pm extends $Se{get type(){return md.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||pm.ID_PREFIX+CSe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new kSe(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Wn.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{Wn.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{Wn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,n=!1){if(!this.open){this.emitError(D3.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,n)}async handleMessage(t){const n=t.payload;switch(t.type){case no.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case no.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:Wn.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};vD=new WeakMap,yD=new WeakMap,Un(pm,vD,pm.ID_PREFIX="dc_"),Un(pm,yD,pm.MAX_BUFFERED_AMOUNT=8388608);let S5=pm;class eW extends S5{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",n=>this._handleDataMessage(n))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>S5.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return Wn.error(`DC#:${this.connectionId} Error when sending:`,n),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class UP extends eW{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new SSe,this.serialization=iy.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=zxe(t),r=n.__peerData;if(r){if(r.type==="close"){this.close();return}this._handleChunk(n);return}this.emit("data",n)}_handleChunk(t){const n=t.__peerData,r=this._chunkedData[n]||{data:[],count:0,total:t.total};if(r.data[t.n]=new Uint8Array(t.data),r.count++,this._chunkedData[n]=r,r.total===r.count){delete this._chunkedData[n];const i=JJt(r.data);this._handleDataMessage({data:i})}}_send(t,n){const r=Hxe(t);if(r instanceof Promise)return this._send_blob(r);if(!n&&r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}async _send_blob(t){const n=await t;if(n.byteLength>this.chunker.chunkedMTU){this._sendChunks(n);return}this._bufferedSend(n)}_sendChunks(t){const n=this.chunker.chunk(t);Wn.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class cen extends eW{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=iy.None}}class uen extends eW{_handleDataMessage({data:t}){const n=this.parse(this.decoder.decode(t)),r=n.__peerData;if(r&&r.type==="close"){this.close();return}this.emit("data",n)}_send(t,n){const r=this.encoder.encode(this.stringify(t));if(r.byteLength>=Rs.chunkedMTU){this.emitError(D3.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=iy.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var bD;const dw=class dw extends ESe{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[n,r]of this._connections)t[n]=r;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,n){super(),this._serializers={raw:cen,json:uen,binary:UP,"binary-utf8":UP,default:UP},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let r;if(t&&t.constructor==Object?n=t:t&&(r=t.toString()),n={debug:0,host:Rs.CLOUD_HOST,port:Rs.CLOUD_PORT,path:"/",key:dw.DEFAULT_KEY,token:Rs.randomToken(),config:Rs.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...n},this._options=n,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==Rs.CLOUD_HOST?this._options.secure=Rs.isSecure():this._options.host==Rs.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&Wn.setLogFunction(this._options.logFunction),Wn.logLevel=this._options.debug||0,this._api=new len(n),this._socket=this._createServerConnection(),!Rs.supports.audioVideo&&!Rs.supports.data){this._delayedAbort(da.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!Rs.validateId(r)){this._delayedAbort(da.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(i=>this._initialize(i)).catch(i=>this._abort(da.ServerError,i))}_createServerConnection(){const t=new oen(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(od.Message,n=>{this._handleMessage(n)}),t.on(od.Error,n=>{this._abort(da.SocketError,n)}),t.on(od.Disconnected,()=>{this.disconnected||(this.emitError(da.Network,"Lost connection to server."),this.disconnect())}),t.on(od.Close,()=>{this.disconnected||this._abort(da.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const n=t.type,r=t.payload,i=t.src;switch(n){case no.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case no.Error:this._abort(da.ServerError,r.msg);break;case no.IdTaken:this._abort(da.UnavailableID,`ID "${this.id}" is taken`);break;case no.InvalidKey:this._abort(da.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case no.Leave:Wn.log(`Received leave message from ${i}`),this._cleanupPeer(i),this._connections.delete(i);break;case no.Expire:this.emitError(da.PeerUnavailable,`Could not connect to peer ${i}`);break;case no.Offer:{const a=r.connectionId;let o=this.getConnection(i,a);if(o&&(o.close(),Wn.warn(`Offer received for existing Connection ID:${a}`)),r.type===md.Media){const l=new x5(i,this,{connectionId:a,_payload:r,metadata:r.metadata});o=l,this._addConnection(i,o),this.emit("call",l)}else if(r.type===md.Data){const l=new this._serializers[r.serialization](i,this,{connectionId:a,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});o=l,this._addConnection(i,o),this.emit("connection",l)}else{Wn.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(a);for(const l of s)o.handleMessage(l);break}default:{if(!r){Wn.warn(`You received a malformed message from ${i} of type ${n}`);return}const a=r.connectionId,o=this.getConnection(i,a);o&&o.peerConnection?o.handleMessage(t):a?this._storeMessage(a,t):Wn.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,n){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(n)}_getMessages(t){const n=this._lostMessages.get(t);return n?(this._lostMessages.delete(t),n):[]}connect(t,n={}){if(n={serialization:"default",...n},this.disconnected){Wn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(da.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const r=new this._serializers[n.serialization](t,this,n);return this._addConnection(t,r),r}call(t,n,r={}){if(this.disconnected){Wn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(da.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){Wn.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const i=new x5(t,this,{...r,_stream:n});return this._addConnection(t,i),i}_addConnection(t,n){Wn.log(`add connection ${n.type}:${n.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(n)}_removeConnection(t){const n=this._connections.get(t.peer);if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,n){const r=this._connections.get(t);if(!r)return null;for(const i of r)if(i.connectionId===n)return i;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){Wn.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(Wn.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const n=this._connections.get(t);if(n)for(const r of n)r.close()}disconnect(){if(this.disconnected)return;const t=this.id;Wn.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)Wn.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)Wn.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=n=>{}){this._api.listAllPeers().then(n=>t(n)).catch(n=>this._abort(da.ServerError,n))}};bD=new WeakMap,Un(dw,bD,dw.DEFAULT_KEY="peerjs");let mD=dw,den="127.0.0.1",fen=9e3,pen="/";function hen(){console.log("usePeer");const e=ia(o=>o.userInfo);let t=null,n=null;const r=o=>{n=t.connect(o),n.on("open",()=>{console.log("Connected to peer with ID:",o),n.send("hi!")})},i=o=>{n?(console.log("sending message:",o),n.send(o)):console.error("no connection to send message")},a=o=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(s=>{t.call(o,s).on("stream",c=>{})}).catch(s=>{console.error("Failed to get local stream",s)})};return d.useEffect(()=>{const o=new mD(e.uid,{host:den,port:fen,path:pen});console.log("Starting self peer with ID:",e.uid),o.on("open",function(){console.log("self peer opened!")}),o.on("connection",s=>{s.on("data",l=>{console.log("connection data:",l)}),s.on("open",()=>{s.send("connection data open!")})}),o.on("call",s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{s.answer(l),s.on("stream",c=>{})}).catch(l=>{console.error("Failed to get local stream",l)})})},[e]),{peer:t,connectOtherPeer:r,sendMessage:i,callOtherPeer:a}}const men=()=>{const e=jn(),[t,n]=d.useState("/chat"),r=Mo(),{isLoggedIn:i,mode:a}=d.useContext(Ea),{footerStyle:o}=co(),[s,l]=d.useState(!1),c=fr(h=>h.threads);d.useEffect(()=>{const h=c.some(m=>m.unreadCount>0);l(h)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:x.jsx(wve,{}),component:x.jsx(lD,{})}],[f,p]=d.useState(u);return Fxe(),Dxe(),zJt(),hen(),bU(),d.useEffect(()=>{p(u)},[a]),d.useEffect(()=>(i&&r("/chat"),()=>{console.log("un - useEffect")}),[i]),x.jsxs(C2e,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:f},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:h=>h.isMobile?[]:[x.jsx($it,{onClick:Gct},"QuestionCircleFilled")],menuHeaderRender:()=>x.jsx(Axe,{}),menuFooterRender:h=>{h!=null&&h.collapsed},onMenuHeaderClick:h=>{console.log("onMenuHeaderClick",h)},menuItemRender:(h,m)=>x.jsx(x.Fragment,{children:x.jsxs("a",{onClick:()=>{n(h.path),r(h.path)},children:[s&&x.jsxs(x.Fragment,{children:[h.path==="/anonymous/home"&&x.jsx(Lo,{size:"small",dot:s,offset:[-5,5],children:m}),h.path!=="/anonymous/home"&&m]}),!s&&x.jsx(x.Fragment,{children:m})]})}),children:[x.jsx(R7,{children:x.jsx(z4,{})}),x.jsx(I7,{style:o,children:x.jsx(Nxe,{})}),x.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:gen,Content:ven}=Qn,yen=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsxs(gen,{style:e,width:t,children:[x.jsx(xg,{style:n,children:"contact"}),x.jsx(KU,{})]}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"contact"}),x.jsx(ven,{style:r,children:"contact"})]})]})})},{Sider:ben,Content:wen}=Qn,xen=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(ben,{style:e,width:t}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"robot"}),x.jsx(wen,{style:r,children:"robot"})]})]})})},{Sider:Sen,Content:Cen}=Qn,_en=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(Sen,{style:e,width:t}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"setting"}),x.jsx(Cen,{style:r,children:"setting"})]})]})})},{Sider:ken,Header:kie,Content:Een}=Qn,$en=()=>{const e=jn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsx(ken,{width:n,style:t,children:x.jsx(kie,{style:r,children:e.formatMessage({id:"chat.navbar.kbase"})})}),x.jsxs(Qn,{children:[x.jsx(kie,{style:r,children:e.formatMessage({id:"chat.navbar.kbase"})}),x.jsx(Een,{style:i})]})]})},{Title:Men,Text:Ten}=Zf,Pen=Su.div` + isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},ten=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),SSe=()=>Math.random().toString(36).slice(2),Sie={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class nen extends xSe{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(i){i.target&&n(i.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...n){const r=[ren,...n];for(const i in r)r[i]instanceof Error&&(r[i]="("+r[i].name+") "+r[i].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var Wn=new ien,QU={},aen=Object.prototype.hasOwnProperty,Ss="~";function N3(){}Object.create&&(N3.prototype=Object.create(null),new N3().__proto__||(Ss=!1));function oen(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function CSe(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var a=new oen(n,r||e,i),o=Ss?Ss+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function B_(e,t){--e._eventsCount===0?e._events=new N3:delete e._events[t]}function Qo(){this._events=new N3,this._eventsCount=0}Qo.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)aen.call(n,r)&&t.push(Ss?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Qo.prototype.listeners=function(t){var n=Ss?Ss+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);imd);b1(w1,"PeerErrorType",()=>da);b1(w1,"BaseConnectionErrorType",()=>A3);b1(w1,"DataConnectionErrorType",()=>D3);b1(w1,"SerializationType",()=>iy);b1(w1,"SocketEventType",()=>od);b1(w1,"ServerMessageType",()=>no);var md;(function(e){e.Data="data",e.Media="media"})(md||(md={}));var da;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(da||(da={}));var A3;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(A3||(A3={}));var D3;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(D3||(D3={}));var iy;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(iy||(iy={}));var od;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(od||(od={}));var no;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(no||(no={}));var JU={};JU=JSON.parse('{"name":"peerjs","version":"1.5.4","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu ","afrokick ","ericz ","Jairo ","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana ","Carlos Caballero ","hc ","Muhammad Asif ","PrashoonB ","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski ","lmb ","Jairooo ","Moritz Stückler ","Simon ","Denis Lukov ","Philipp Hancke ","Hans Oksendahl ","Jess ","khankuan ","DUODVK ","XiZhao ","Matthias Lohr ","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt ","Chris Cowan ","Alex Chuev ","alxnull ","Yemel Jardi ","Ben Parnell ","Benny Lichtner ","fresheneesz ","bob.barstead@exaptive.com ","chandika ","emersion ","Christopher Van ","eddieherm ","Eduardo Pinho ","Evandro Zanatta ","Gardner Bickford ","Gian Luca ","PatrickJS ","jonnyf ","Hizkia Felix ","Hristo Oskov ","Isaac Madwed ","Ilya Konanykhin ","jasonbarry ","Jonathan Burke ","Josh Hamit ","Jordan Austin ","Joel Wetzell ","xizhao ","Alberto Torres ","Jonathan Mayol ","Jefferson Felix ","Rolf Erik Lekang ","Kevin Mai-Husan Chia ","Pepijn de Vos ","JooYoung ","Tobias Speicher ","Steve Blaurock ","Kyrylo Shegeda ","Diwank Singh Tomer ","Sören Balko ","Arpit Solanki ","Yuki Ito ","Artur Zayats "],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^9.0.0"},"alias":{"process":false,"buffer":false}}');class sen extends QU.EventEmitter{constructor(t,n,r,i,a,o=5e3){super(),this.pingInterval=o,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+i+"peerjs?key="+a}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+JU.version),this._disconnected=!1,this._socket.onmessage=i=>{let a;try{a=JSON.parse(i.data),Wn.log("Server message received:",a)}catch{Wn.log("Invalid server message",i.data);return}this.emit(od.Message,a)},this._socket.onclose=i=>{this._disconnected||(Wn.log("Socket closed.",i),this._cleanup(),this._disconnected=!0,this.emit(od.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),Wn.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){Wn.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:no.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const n of t)this.send(n)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(od.Error,"Invalid message");return}if(!this._wsOpen())return;const n=JSON.stringify(t);this._socket.send(n)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class _Se{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===md.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,i={ordered:!!t.reliable},a=n.createDataChannel(r.label,i);r._initializeDataChannel(a),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){Wn.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const n=this.connection.peer,r=this.connection.connectionId,i=this.connection.type,a=this.connection.provider;Wn.log("Listening for ICE candidates."),t.onicecandidate=o=>{!o.candidate||!o.candidate.candidate||(Wn.log(`Received ICE candidates for ${n}:`,o.candidate),a.socket.send({type:no.Candidate,payload:{candidate:o.candidate,type:i,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":Wn.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(A3.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":Wn.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(A3.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":Wn.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},Wn.log("Listening for data channel"),t.ondatachannel=o=>{Wn.log("Received data channel");const s=o.channel;a.getConnection(n,r)._initializeDataChannel(s)},Wn.log("Listening for remote stream"),t.ontrack=o=>{Wn.log("Received remote stream");const s=o.streams[0],l=a.getConnection(n,r);if(l.type===md.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){Wn.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const n=t.signalingState!=="closed";let r=!1;const i=this.connection.dataChannel;i&&(r=!!i.readyState&&i.readyState!=="closed"),(n||r)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createOffer(this.connection.options.constraints);Wn.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),Wn.log("Set localDescription:",r,`for:${this.connection.peer}`);let i={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===md.Data){const a=this.connection;i={...i,label:a.label,reliable:a.reliable,serialization:a.serialization}}n.socket.send({type:no.Offer,payload:i,dst:this.connection.peer})}catch(i){i!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(da.WebRTC,i),Wn.log("Failed to setLocalDescription, ",i))}}catch(r){n.emitError(da.WebRTC,r),Wn.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();Wn.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),Wn.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:no.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(i){n.emitError(da.WebRTC,i),Wn.log("Failed to setLocalDescription, ",i)}}catch(r){n.emitError(da.WebRTC,r),Wn.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,i=this.connection.provider;Wn.log("Setting remote description",n);const a=this;try{await r.setRemoteDescription(n),Wn.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await a._makeAnswer()}catch(o){i.emitError(da.WebRTC,o),Wn.log("Failed to setRemoteDescription, ",o)}}async handleCandidate(t){Wn.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),Wn.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(da.WebRTC,n),Wn.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(Wn.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return Wn.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){Wn.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class kSe extends QU.EventEmitter{emitError(t,n){Wn.error("Error:",n),this.emit("error",new len(`${t}`,n))}}class len extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class ESe extends kSe{get open(){return this._open}constructor(t,n,r){super(),this.peer=t,this.provider=n,this.options=r,this._open=!1,this.metadata=r.metadata}}var gD;const uw=class uw extends ESe{get type(){return md.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,n,r){super(t,n,r),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||uw.ID_PREFIX+Rs.randomToken(),this._negotiator=new _Se(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Wn.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{Wn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){Wn.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case no.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case no.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:Wn.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){Wn.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,n&&n.sdpTransform&&(this.options.sdpTransform=n.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const r=this.provider._getMessages(this.connectionId);for(const i of r)this.handleMessage(i);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};gD=new WeakMap,Un(uw,gD,uw.ID_PREFIX="mc_");let w5=uw;class cen{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:i,path:a,key:o}=this._options,s=new URL(`${n}://${r}:${i}${a}${o}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",JU.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){Wn.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==Rs.CLOUD_HOST&&(n=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+n)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let n="";throw this._options.host===Rs.CLOUD_HOST?n="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":n="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+n)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw Wn.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var vD,yD;const pm=class pm extends ESe{get type(){return md.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||pm.ID_PREFIX+SSe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new _Se(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Wn.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{Wn.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{Wn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,n=!1){if(!this.open){this.emitError(D3.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,n)}async handleMessage(t){const n=t.payload;switch(t.type){case no.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case no.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:Wn.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};vD=new WeakMap,yD=new WeakMap,Un(pm,vD,pm.ID_PREFIX="dc_"),Un(pm,yD,pm.MAX_BUFFERED_AMOUNT=8388608);let x5=pm;class eW extends x5{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",n=>this._handleDataMessage(n))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>x5.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return Wn.error(`DC#:${this.connectionId} Error when sending:`,n),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class UP extends eW{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new xSe,this.serialization=iy.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=Bxe(t),r=n.__peerData;if(r){if(r.type==="close"){this.close();return}this._handleChunk(n);return}this.emit("data",n)}_handleChunk(t){const n=t.__peerData,r=this._chunkedData[n]||{data:[],count:0,total:t.total};if(r.data[t.n]=new Uint8Array(t.data),r.count++,this._chunkedData[n]=r,r.total===r.count){delete this._chunkedData[n];const i=een(r.data);this._handleDataMessage({data:i})}}_send(t,n){const r=zxe(t);if(r instanceof Promise)return this._send_blob(r);if(!n&&r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}async _send_blob(t){const n=await t;if(n.byteLength>this.chunker.chunkedMTU){this._sendChunks(n);return}this._bufferedSend(n)}_sendChunks(t){const n=this.chunker.chunk(t);Wn.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class uen extends eW{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=iy.None}}class den extends eW{_handleDataMessage({data:t}){const n=this.parse(this.decoder.decode(t)),r=n.__peerData;if(r&&r.type==="close"){this.close();return}this.emit("data",n)}_send(t,n){const r=this.encoder.encode(this.stringify(t));if(r.byteLength>=Rs.chunkedMTU){this.emitError(D3.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=iy.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var bD;const dw=class dw extends kSe{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[n,r]of this._connections)t[n]=r;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,n){super(),this._serializers={raw:uen,json:den,binary:UP,"binary-utf8":UP,default:UP},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let r;if(t&&t.constructor==Object?n=t:t&&(r=t.toString()),n={debug:0,host:Rs.CLOUD_HOST,port:Rs.CLOUD_PORT,path:"/",key:dw.DEFAULT_KEY,token:Rs.randomToken(),config:Rs.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...n},this._options=n,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==Rs.CLOUD_HOST?this._options.secure=Rs.isSecure():this._options.host==Rs.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&Wn.setLogFunction(this._options.logFunction),Wn.logLevel=this._options.debug||0,this._api=new cen(n),this._socket=this._createServerConnection(),!Rs.supports.audioVideo&&!Rs.supports.data){this._delayedAbort(da.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!Rs.validateId(r)){this._delayedAbort(da.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(i=>this._initialize(i)).catch(i=>this._abort(da.ServerError,i))}_createServerConnection(){const t=new sen(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(od.Message,n=>{this._handleMessage(n)}),t.on(od.Error,n=>{this._abort(da.SocketError,n)}),t.on(od.Disconnected,()=>{this.disconnected||(this.emitError(da.Network,"Lost connection to server."),this.disconnect())}),t.on(od.Close,()=>{this.disconnected||this._abort(da.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const n=t.type,r=t.payload,i=t.src;switch(n){case no.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case no.Error:this._abort(da.ServerError,r.msg);break;case no.IdTaken:this._abort(da.UnavailableID,`ID "${this.id}" is taken`);break;case no.InvalidKey:this._abort(da.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case no.Leave:Wn.log(`Received leave message from ${i}`),this._cleanupPeer(i),this._connections.delete(i);break;case no.Expire:this.emitError(da.PeerUnavailable,`Could not connect to peer ${i}`);break;case no.Offer:{const a=r.connectionId;let o=this.getConnection(i,a);if(o&&(o.close(),Wn.warn(`Offer received for existing Connection ID:${a}`)),r.type===md.Media){const l=new w5(i,this,{connectionId:a,_payload:r,metadata:r.metadata});o=l,this._addConnection(i,o),this.emit("call",l)}else if(r.type===md.Data){const l=new this._serializers[r.serialization](i,this,{connectionId:a,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});o=l,this._addConnection(i,o),this.emit("connection",l)}else{Wn.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(a);for(const l of s)o.handleMessage(l);break}default:{if(!r){Wn.warn(`You received a malformed message from ${i} of type ${n}`);return}const a=r.connectionId,o=this.getConnection(i,a);o&&o.peerConnection?o.handleMessage(t):a?this._storeMessage(a,t):Wn.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,n){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(n)}_getMessages(t){const n=this._lostMessages.get(t);return n?(this._lostMessages.delete(t),n):[]}connect(t,n={}){if(n={serialization:"default",...n},this.disconnected){Wn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(da.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const r=new this._serializers[n.serialization](t,this,n);return this._addConnection(t,r),r}call(t,n,r={}){if(this.disconnected){Wn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(da.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){Wn.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const i=new w5(t,this,{...r,_stream:n});return this._addConnection(t,i),i}_addConnection(t,n){Wn.log(`add connection ${n.type}:${n.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(n)}_removeConnection(t){const n=this._connections.get(t.peer);if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,n){const r=this._connections.get(t);if(!r)return null;for(const i of r)if(i.connectionId===n)return i;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){Wn.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(Wn.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const n=this._connections.get(t);if(n)for(const r of n)r.close()}disconnect(){if(this.disconnected)return;const t=this.id;Wn.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)Wn.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)Wn.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=n=>{}){this._api.listAllPeers().then(n=>t(n)).catch(n=>this._abort(da.ServerError,n))}};bD=new WeakMap,Un(dw,bD,dw.DEFAULT_KEY="peerjs");let mD=dw,fen="127.0.0.1",pen=9e3,hen="/";function men(){console.log("usePeer");const e=ia(o=>o.userInfo);let t=null,n=null;const r=o=>{n=t.connect(o),n.on("open",()=>{console.log("Connected to peer with ID:",o),n.send("hi!")})},i=o=>{n?(console.log("sending message:",o),n.send(o)):console.error("no connection to send message")},a=o=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(s=>{t.call(o,s).on("stream",c=>{})}).catch(s=>{console.error("Failed to get local stream",s)})};return d.useEffect(()=>{const o=new mD(e.uid,{host:fen,port:pen,path:hen});console.log("Starting self peer with ID:",e.uid),o.on("open",function(){console.log("self peer opened!")}),o.on("connection",s=>{s.on("data",l=>{console.log("connection data:",l)}),s.on("open",()=>{s.send("connection data open!")})}),o.on("call",s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{s.answer(l),s.on("stream",c=>{})}).catch(l=>{console.error("Failed to get local stream",l)})})},[e]),{peer:t,connectOtherPeer:r,sendMessage:i,callOtherPeer:a}}const gen=()=>{const e=jn(),[t,n]=d.useState("/chat"),r=rs(),{isLoggedIn:i,mode:a}=d.useContext(Ea),{footerStyle:o}=co(),[s,l]=d.useState(!1),c=fr(h=>h.threads);d.useEffect(()=>{const h=c.some(m=>m.unreadCount>0);l(h)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:x.jsx(bve,{}),component:x.jsx(lD,{})}],[f,p]=d.useState(u);return Dxe(),Axe(),HJt(),men(),bU(),d.useEffect(()=>{p(u)},[a]),d.useEffect(()=>(i&&r("/chat"),()=>{console.log("un - useEffect")}),[i]),x.jsxs(S2e,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:f},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:h=>h.isMobile?[]:[x.jsx(Eit,{onClick:Kct},"QuestionCircleFilled")],menuHeaderRender:()=>x.jsx(Nxe,{}),menuFooterRender:h=>{h!=null&&h.collapsed},onMenuHeaderClick:h=>{console.log("onMenuHeaderClick",h)},menuItemRender:(h,m)=>x.jsx(x.Fragment,{children:x.jsxs("a",{onClick:()=>{n(h.path),r(h.path)},children:[s&&x.jsxs(x.Fragment,{children:[h.path==="/anonymous/home"&&x.jsx(Fo,{size:"small",dot:s,offset:[-5,5],children:m}),h.path!=="/anonymous/home"&&m]}),!s&&x.jsx(x.Fragment,{children:m})]})}),children:[x.jsx(R7,{children:x.jsx(B4,{})}),x.jsx(I7,{style:o,children:x.jsx(jxe,{})}),x.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:ven,Content:yen}=Qn,ben=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsxs(ven,{style:e,width:t,children:[x.jsx(xg,{style:n,children:"contact"}),x.jsx(KU,{})]}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"contact"}),x.jsx(yen,{style:r,children:"contact"})]})]})})},{Sider:wen,Content:xen}=Qn,Sen=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(wen,{style:e,width:t}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"robot"}),x.jsx(xen,{style:r,children:"robot"})]})]})})},{Sider:Cen,Content:_en}=Qn,ken=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=co();return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(Cen,{style:e,width:t}),x.jsxs(Qn,{children:[x.jsx(xg,{style:n,children:"setting"}),x.jsx(_en,{style:r,children:"setting"})]})]})})},{Sider:Een,Header:_ie,Content:$en}=Qn,Men=()=>{const e=jn(),{leftSiderStyle:t,leftSiderWidth:n,headerStyle:r,contentStyle:i}=co();return x.jsxs(Qn,{children:[x.jsx(Een,{width:n,style:t,children:x.jsx(_ie,{style:r,children:e.formatMessage({id:"chat.navbar.kbase"})})}),x.jsxs(Qn,{children:[x.jsx(_ie,{style:r,children:e.formatMessage({id:"chat.navbar.kbase"})}),x.jsx($en,{style:i})]})]})},{Title:Ten,Text:Pen}=Zf,Oen=Su.div` min-height: 100vh; display: flex; justify-content: center; @@ -1516,14 +1516,14 @@ a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` background: linear-gradient(135deg, #2b1055 0%, #4365e0 100%); position: relative; overflow: hidden; -`,Oen=Su(WB)` +`,Ren=Su(WB)` width: 400px; background: rgba(32, 34, 37, 0.9); border-radius: 8px; text-align: center; padding: 24px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); -`,Ren=Su.div` +`,Ien=Su.div` width: 80px; height: 80px; background: #7289da; @@ -1534,14 +1534,14 @@ a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` justify-content: center; font-size: 32px; color: white; -`,Eie=Su(Men)` +`,kie=Su(Ten)` color: white !important; margin-bottom: 8px !important; -`,$ie=Su(Ten)` +`,Eie=Su(Pen)` color: #b9bbbe !important; display: block; margin-bottom: 24px; -`,Ien=Su(Yt)` +`,jen=Su(Yt)` background: #5865f2; border: none; height: 44px; @@ -1550,7 +1550,7 @@ a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` &:hover { background: #4752c4 !important; } -`,jen=Su.div` +`,Nen=Su.div` position: absolute; width: 2px; height: 2px; @@ -1564,9 +1564,9 @@ a=extmap-allow-mixed`)!==-1){const a=i.sdp.split(` 50% { opacity: 1; } 100% { opacity: 0.5; } } -`,Nen=()=>{const{groupUid:e}=Mdt(),t=Mo(),n=()=>{const i=[];for(let a=0;a<50;a++){const o={left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,animationDelay:`${Math.random()*2}s`};i.push(x.jsx(jen,{style:o},a))}return i},r=()=>{console.log("Accept invite:",e),t("/chat?groupUid="+e)};return x.jsxs(Pen,{children:[n(),x.jsx(Oen,{children:x.jsxs(Xr,{direction:"vertical",size:"large",style:{width:"100%"},children:[x.jsx(Ren,{children:x.jsx(az,{})}),x.jsxs("div",{children:[x.jsx(Eie,{level:4,children:"Korey (koreyspace) 邀请您加入"}),x.jsx(Eie,{level:3,children:"Bytedesk AI Community"})]}),x.jsxs(Xr,{direction:"vertical",size:"small",style:{width:"100%"},children:[x.jsxs($ie,{children:[x.jsx("span",{style:{color:"#3ba55c"},children:"● "}),"1,343 人在线"]}),x.jsxs($ie,{children:[x.jsx("span",{style:{color:"#747f8d"},children:"● "}),"16,449 位成员"]})]}),x.jsx(Ien,{type:"primary",size:"large",onClick:r,children:"接受邀请"})]})})]})},{Sider:Aen,Content:Den}=Qn,Fen=[{key:"grp",label:"质检",type:"group",children:[{key:"13",label:"当前在线"},{key:"14",label:"已离线"}]}],Len=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(Aen,{style:e,width:t,children:x.jsx(ks,{onClick:n,mode:"inline",items:Fen})}),x.jsx(Qn,{children:x.jsx(Den,{children:"质检"})})]})})};function Ben({children:e}){const{isLoggedIn:t}=d.useContext(Ea),n=n1();return t?e:x.jsx(Hdt,{to:"/auth/login",replace:!0,state:{from:n}})}const zen=[{path:"/",element:x.jsx(x.Fragment,{children:x.jsx(Ben,{children:x.jsx(AQt,{})})}),children:[{path:"/",element:x.jsx(ZA,{})},{path:"/chat",element:x.jsx(ZA,{})},{path:"/contact",element:x.jsx(Rxe,{})},{path:"/robot",element:x.jsx(PJt,{})},{path:"/ticket",element:x.jsx(Lxe,{})},{path:"/leavemsg",element:x.jsx(hJt,{})},{path:"/notebase",element:x.jsx($en,{})},{path:"monitor",element:x.jsx(yJt,{})},{path:"quality",element:x.jsx(Len,{})},{path:"/plugins",element:x.jsx(iJt,{}),children:[{path:"/plugins",element:x.jsx(hie,{})},{path:"/plugins/collect",element:x.jsx(hie,{})},{path:"/plugins/task",element:x.jsx(ZQt,{})},{path:"/plugins/note",element:x.jsx(QQt,{})},{path:"/plugins/clipboard",element:x.jsx(JQt,{})}]},{path:"/setting",element:x.jsx(Ixe,{}),children:[{path:"/setting",element:x.jsx(pie,{})},{path:"/setting/profile",element:x.jsx(pie,{})},{path:"/setting/agentProfile",element:x.jsx(FJt,{})},{path:"/setting/memberProfile",element:x.jsx(cJt,{})},{path:"/setting/basic",element:x.jsx(eJt,{})},{path:"/setting/certification",element:x.jsx(AJt,{})},{path:"/setting/qrcode",element:x.jsx(aJt,{})},{path:"/setting/shortcut",element:x.jsx(oJt,{})},{path:"/setting/model",element:x.jsx(xJt,{})}]}]},{path:"/auth",element:x.jsx(DQt,{}),children:[{path:"/auth",element:x.jsx(fA,{isModel:!1})},{path:"/auth/login",element:x.jsx(fA,{isModel:!1})},{path:"/auth/register",element:x.jsx(ENt,{})},{path:"/auth/server",element:x.jsx(iwe,{})}]},{path:"/anonymous",element:x.jsx(men,{}),children:[{path:"/anonymous",element:x.jsx(lD,{})},{path:"/anonymous/home",element:x.jsx(lD,{})},{path:"/anonymous/contact",element:x.jsx(yen,{})},{path:"/anonymous/robot",element:x.jsx(xen,{})},{path:"/anonymous/setting",element:x.jsx(_en,{})}]},{path:"/invite/:groupUid",element:x.jsx(Nen,{})},{path:"/enlarge",element:x.jsx(uJt,{})},{path:"*",element:x.jsx(sJt,{})}],MSe=!1;console.log("router isElectron:",MSe);let TSe;console.log("isElectron web:",MSe),TSe=Xdt(zen,{basename:"/agent",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const Hen=TSe,Uen={i18_file_assistant:"文件助手",slogan:"对话即服务","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"客服助手","chat.right.quickreply":"快捷回复/知识库","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服机器人(对外)",MARKETING:"营销机器人(对外)",KNOWLEDGEBASE:"知识库机器人(内部)",QA:"问答机器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"加载中",create:"创建",creating:"创建中...","create.success":"创建成功","create.fail":"创建失败",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失败",save:"保存",saving:"正在保存...",email:"邮箱","email.verified":"邮箱(已验证)","email.unverified":"邮箱(待验证)",mobile:"手机号","mobile.verified":"手机号(已验证)","mobile.unverified":"手机号(待验证)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登录用户名(修改用户名之后,需要重新登录)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"导入",export:"导出","download.template":"下载模板",open:"打开",copy:"复制","copy.success":"复制成功",ok:"确定",cancel:"取消",bind:"绑定",edit:"编辑",editing:"修改中...","edit.success":"修改成功","edit.fail":"修改失败",delete:"删除",deleting:"删除中...",deleteTip:"删除提示",deleteAffirm:"确定要删除","delete.success":"删除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"预览",close:"关闭",closing:"关闭中...",closeTip:"关闭提示",closeASure:"确定要关闭","close.success":"关闭成功",choose:"选择","leavemsg.enabled":"留言启用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"暂无客服在线",invite:"邀请","invite.success":"邀请成功","invite.fail":"邀请失败","invite.reason":"邀请原因","invite.no.agent":"暂无客服在线"},Wen={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"聊天","menu.dashboard.contact":"联系人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"笔记","menu.dashboard.kbase":"知识库","menu.dashboard.mine":"设置","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.quality":"质检","menu.settings":"设置","menu.settings.logout":"登出","menu.agent.status":"客服状态","menu.agent.status.available":"在线","menu.agent.status.rest":"小休","menu.agent.status.offline":"离线","menu.language":"语言","menu.mode":"模式","menu.mode.team":"团队模式","menu.mode.personal":"个人模式","menu.mode.agent":"客服模式","menu.agent.offline.warning":"请在离线前结束所有正在進行中的会话","menu.mode.personal.coming":"即将推出..."},Ven={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复/知识库","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},qen={"app.title":"微语","app.logout":"登出","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","app.name":"微语客服","app.description":"新一代智能客服系统","app.welcome":"欢迎使用微语客服系统","app.copyright":"© 2024 微语客服. 保留所有权利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"确认","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"编辑","app.action.delete":"删除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"设置","app.action.help":"帮助","app.tip.loading":"加载中...","app.tip.success":"操作成功","app.tip.error":"操作失败","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"确认要执行此操作吗?","app.tip.nodata":"暂无数据","app.tip.network.error":"网络连接失败","app.tip.server.error":"服务器错误","app.status.online":"在线","app.status.offline":"离线","app.status.busy":"忙碌","app.status.away":"离开","app.status.invisible":"隐身","app.status.disabled":"已禁用","app.status.expired":"已过期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"刚刚","app.time.minutes":"{count} 分钟前","app.time.hours":"{count} 小时前","app.time.days":"{count} 天前","app.file.upload":"上传文件","app.file.download":"下载文件","app.file.preview":"预览文件","app.file.size.limit":"文件大小不能超过 {size}","app.file.type.unsupported":"不支持的文件类型","app.file.upload.success":"上传成功","app.file.upload.failed":"上传失败","app.file.download.success":"下载成功","app.file.download.failed":"下载失败","app.layout.sidebar.collapse":"收起侧边栏","app.layout.sidebar.expand":"展开侧边栏","app.layout.header.profile":"个人中心","app.layout.header.logout":"退出登录","app.layout.footer.copyright":"版权所有","app.layout.footer.terms":"服务条款","app.layout.footer.privacy":"隐私政策","category.form.title":"新建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!"},Ken={"auth.login.title":"登录","auth.login.subtitle":"欢迎使用微语客服系统","auth.login.username":"用户名","auth.login.username.required":"请输入用户名","auth.login.password":"密码","auth.login.password.required":"请输入密码","auth.login.remember":"记住密码","auth.login.forgot":"忘记密码?","auth.login.submit":"登录","auth.login.other":"其他登录方式","auth.login.register":"注册账号","auth.login.success":"登录成功","auth.login.failed":"登录失败","auth.register.title":"注册","auth.register.subtitle":"创建新账号","auth.register.username":"用户名","auth.register.username.required":"请输入用户名","auth.register.email":"邮箱","auth.register.email.required":"请输入邮箱","auth.register.password":"密码","auth.register.password.required":"请输入密码","auth.register.confirm":"确认密码","auth.register.confirm.required":"请确认密码","auth.register.submit":"注册","auth.register.login":"已有账号?登录","auth.register.success":"注册成功","auth.register.failed":"注册失败","auth.forgot.title":"忘记密码","auth.forgot.subtitle":"重置密码","auth.forgot.email":"邮箱","auth.forgot.email.required":"请输入邮箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登录","auth.forgot.success":"重置密码邮件已发送","auth.forgot.failed":"重置密码失败","auth.reset.title":"重置密码","auth.reset.subtitle":"设置新密码","auth.reset.password":"新密码","auth.reset.password.required":"请输入新密码","auth.reset.confirm":"确认密码","auth.reset.confirm.required":"请确认新密码","auth.reset.submit":"提交","auth.reset.success":"密码重置成功","auth.reset.failed":"密码重置失败","auth.verify.code":"验证码","auth.verify.code.required":"请输入验证码","auth.verify.code.send":"发送验证码","auth.verify.code.resend":"重新发送","auth.verify.code.success":"验证码发送成功","auth.verify.code.failed":"验证码发送失败","auth.password.strength.weak":"密码强度:弱","auth.password.strength.medium":"密码强度:中","auth.password.strength.strong":"密码强度:强","auth.agreement.text":"我已阅读并同意","auth.agreement.terms":"服务条款","auth.agreement.privacy":"隐私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"帮助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢复默认云服务器","server.custom.enable":"启用自定义服务器","server.api.url.label":"API服务器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服务器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"请输入正确的服务器地址"},Gen={"chat.title":"会话","chat.empty":"暂无会话","chat.loading":"加载中...","chat.load.error":"加载失败","chat.load.more":"加载更多","chat.no.more":"没有更多了","chat.refresh":"刷新","chat.status.connecting":"连接中...","chat.status.connected":"已连接","chat.status.disconnected":"连接断开","chat.status.reconnecting":"重新连接中...","chat.network.error":"网络连接失败,请检查网络","chat.thread.closing":"结束会话中...","chat.thread.close.success":"结束会话成功","chat.thread.close.failed":"结束会话失败","chat.thread.close.confirm.title":"确定要结束会话?","chat.rate.invite.confirm.title":"确认要邀请评价?","chat.message.send.failed":"发送失败","chat.message.resend":"重新发送","chat.message.recall":"撤回消息","chat.message.copy.success":"复制成功","chat.copy.success":"复制成功","chat.menu.copy":"复制","chat.menu.translate":"翻译","chat.menu.recall":"撤回","chat.menu.enlarge":"放大阅读","chat.menu.quickreply.add":"添加快捷回复...","chat.menu.browser.open":"浏览器打开","chat.menu.forward":"转发...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.menu.ai":"问AI","chat.menu.quickreply.search":"搜索知识库","chat.input.placeholder":"请输入内容, Ctrl+V 粘贴截图/图片","chat.translation.placeholder":"请输入翻译内容...","chat.input.send":"发送","chat.input.sending":"发送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截图","chat.toolbar.autoreply":"自动回复","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频会话","chat.toolbar.history":"历史","chat.toolbar.block":"拉黑","chat.toolbar.invite.rate":"邀请评价","chat.navbar.transfer":"转接","chat.navbar.close":"结束","chat.navbar.note":"笔记","chat.navbar.kbase":"知识库","chat.right.quickreply":"快捷回复/知识库","chat.right.userinfo":"访客信息","chat.right.ai":"AI助手","chat.right.ticket":"工单","chat.right.llm":"大模型","chat.right.group":"群组信息","chat.right.member":"成员信息","chat.right.docview":"文档查看","chat.upload.size.limit":"文件大小不能超过 {size}","chat.upload.type.unsupported":"不支持的文件类型","chat.upload.failed":"上传失败","chat.upload.success":"上传成功","chat.upload.progress":"上传中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"来电...","chat.webrtc.connected":"通话中...","chat.webrtc.ended":"通话结束","chat.webrtc.rejected":"对方拒绝","chat.webrtc.busy":"对方忙","chat.webrtc.failed":"通话失败","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒绝","chat.webrtc.hangup":"挂断","chat.group.notice":"群公告","chat.group.members":"群成员","chat.group.admins":"管理员","chat.group.robots":"机器人","chat.group.qrcode":"二维码","chat.group.uid.error":"群组ID错误","chat.header.group.unnamed":"未命名群组","chat.header.member.unnamed":"未命名成员","chat.header.robot.unnamed":"未命名机器人","chat.header.user.unnamed":"未命名用户","chat.header.typing":"正在输入...","chat.header.no.message":"暂无消息","chat.header.action.transfer":"转接","chat.header.action.invite":"邀请","chat.header.action.create.ticket":"创建工单","chat.header.action.close":"结束","chat.header.action.exit":"退出","chat.header.type.not.supported":"当前聊天类型不支持"},Yen={"common.confirm":"确认","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"删除","common.edit":"编辑","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加载中...","common.success":"操作成功","common.failed":"操作失败","common.error":"错误","common.warning":"警告","common.info":"提示","common.status.online":"在线","common.status.offline":"离线","common.status.busy":"忙碌","common.status.away":"离开","common.status.invisible":"隐身","common.operation.success":"操作成功","common.operation.failed":"操作失败","common.operation.confirm":"确认要执行此操作吗?","common.operation.processing":"处理中...","common.operation.completed":"处理完成","common.operation.error":"处理出错","common.form.required":"此项为必填项","common.form.optional":"选填","common.form.invalid":"输入无效","common.form.validate.error":"表单验证失败","common.form.validate.success":"表单验证通过","common.refresh":"刷新"},Xen={"customer.list.title":"客户列表","customer.list.empty":"暂无客户","customer.list.loading":"加载中...","customer.list.load.error":"加载失败","customer.list.load.more":"加载更多","customer.list.no.more":"没有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"昵称","customer.info.gender":"性别","customer.info.age":"年龄","customer.info.birthday":"生日","customer.info.mobile":"手机号","customer.info.email":"邮箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"职位","customer.info.remark":"备注","customer.info.tags":"标签","customer.info.extra":"其他信息","customer.info.source":"来源","customer.info.created":"创建时间","customer.info.updated":"更新时间","customer.status.online":"在线","customer.status.offline":"离线","customer.status.away":"离开","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"编辑","customer.action.delete":"删除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"转移","customer.action.merge":"合并","customer.action.export":"导出","customer.form.name":"姓名","customer.form.name.required":"请输入姓名","customer.form.nickname":"昵称","customer.form.gender":"性别","customer.form.age":"年龄","customer.form.birthday":"生日","customer.form.mobile":"手机号","customer.form.email":"邮箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"职位","customer.form.remark":"备注","customer.form.tags":"标签","customer.form.source":"来源","customer.create.success":"客户创建成功","customer.create.failed":"客户创建失败","customer.update.success":"客户更新成功","customer.update.failed":"客户更新失败","customer.delete.success":"客户删除成功","customer.delete.failed":"客户删除失败","customer.block.success":"客户拉黑成功","customer.block.failed":"客户拉黑失败","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失败","customer.transfer.success":"客户转移成功","customer.transfer.failed":"客户转移失败","customer.merge.success":"客户合并成功","customer.merge.failed":"客户合并失败","customer.export.success":"客户导出成功","customer.export.failed":"客户导出失败","black.title":"拉黑设置","black.type":"拉黑类型","black.type.required":"请选择至少一种拉黑类型","black.user":"拉黑用户","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"请选择拉黑截至时间","black.reason":"拉黑原因","black.reason.required":"请输入拉黑原因","black.reason.placeholder":"请输入拉黑原因","black.success":"拉黑成功","customer.info.browser":"浏览器信息","customer.info.os":"操作系统信息","customer.info.device":"设备信息","customer.info.browse.record":"浏览记录","customer.info.tag":"标签信息","customer.info.load.error":"加载访客信息失败","customer.basic.title":"基本信息","customer.basic.nickname":"昵称","customer.basic.empty":"无","customer.basic.edit":"编辑","customer.basic.update.success":"更新成功","customer.basic.update.failed":"更新失败","customer.basic.note":"备注"},Zen={"dashboard.error.message":"获取数据失败","dashboard.init.organization":"初始化组织","dashboard.init.profile":"初始化个人信息","dashboard.init.workgroups":"初始化工作组","dashboard.init.agent":"初始化客服信息","dashboard.transfer.accept":"{nickname} 已接受转接","dashboard.transfer.reject":"{nickname} 已拒绝转接","dashboard.transfer.success":"转接请求已发送,等待对方响应"},Qen={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁体中文","i18n.all":"全部","i18n.queue.tip":"排队队列","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.queue.empty":"暂无排队用户","i18n.queue.accept":"接入","i18n.system.notification":"系统通知","i18n.old.password.wrong":"旧密码错误","i18n.change.password":"修改密码","i18n.auth.captcha.send.success":"验证码发送成功","i18n.auth.captcha.error":"验证码错误","i18n.auth.captcha.expired":"验证码过期","i18n.auth.captcha.already.send":"验证码已经发送,请等待","i18n.auth.captcha.validate.failed":"验证码验证失败","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在输入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀请评价","i18n.ticket":"[工单]","i18n.ticket.thread":"[工单会话]","i18n.DEPT_ALL":"全部","i18n.DEPT_ADMIN":"管理部","i18n.DEPT_CS":"客服部",ROLE_SUPER:"超级管理员",ROLE_ADMIN:"管理员",ROLE_MEMBER:"成员",ROLE_AGENT:"客服",ROLE_USER:"用户",ROLE_VISITOR:"访客","i18n.notice":"通知","i18n.notice.title":"标题","i18n.notice.content":"内容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.login_notification":"登录通知","i18n.login_time":"登录时间","i18n.login_ip":"登录IP","i18n.login_location":"登录地点","i18n.if_not_you_please_change_password":"如果这不是您的操作,请立即修改密码。","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理员","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技术部","i18n.DEPT.MONEY":"财务部","i18n.DEPT.MARKETING":"市场部","i18n.DEPT.SALES":"销售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.top.tip":"默认置顶语","i18n.top.make":"置顶","i18n.top.cancel":"取消置顶","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开-123","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"无客服在线,请留言","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.before.nickname":"售前技能组","i18n.workgroup.after.nickname":"售后技能组","i18n.workgroup.description":"默认技能组描述","i18n.workgroup.before.description":"售前技能组描述","i18n.workgroup.after.description":"售后技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开-123","i18n.tip.network.connected":"网络已连接-123","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的话请您提供一下您的联系电话","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.online.chat":"在线客服","i18n.JOB":"工作","i18n.LANGUAGE":"语言","i18n.TOOL":"工具","i18n.WRITING":"写作","i18n.RAG":"知识库问答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工单","i18n.black.user.already.exists":"用户已拉黑","i18n.ticket.category.technical_support":"技术支持","i18n.ticket.category.service_request":"服务请求","i18n.ticket.category.consultation":"咨询","i18n.ticket.category.complaint_suggestion":"投诉建议","i18n.ticket.category.operation_maintenance":"运维","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP组件, 联系我们了解更多详情","i18n.vip.contactUs":"联系我们","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name.group":"技能组流程","i18n.ticket.process.name.group.simple":"技能组简易流程","i18n.ticket.process.name.agent":"一对一流程","i18n.username.or.password.incorrect":"用户名或密码错误","i18n.system_notification":"系统通知","i18n.transfer_notification":"会话转接请求","i18n.transfer_accepted":"会话转接已接受","i18n.transfer_rejected":"会话转接已拒绝","i18n.transfer_timeout":"会话转接请求超时","i18n.transfer_cancelled":"会话转接已取消","i18n.confirm_accept_transfer":"确定接受转接","i18n.confirm_accept_transfer_desc":"确定接受转接请求吗?","i18n.confirm_reject_transfer":"确定拒绝转接","i18n.confirm_reject_transfer_desc":"确定拒绝转接请求吗?","i18n.confirm_cancel_transfer":"确定取消转接","i18n.confirm_cancel_transfer_desc":"确定取消转接请求吗?","i18n.transfer.notice.title":"会话转接","i18n.transfer.notice.content":"客服希望将您的会话转接给其他客服","i18n.transfer.accept.notice.title":"转接已接受","i18n.transfer.accept.notice.content":"会话转接请求已被接受","i18n.transfer.reject.notice.title":"转接已拒绝","i18n.transfer.reject.notice.content":"会话转接请求已被拒绝","i18n.transfer.timeout.notice.title":"转接已超时","i18n.transfer.timeout.notice.content":"会话转接请求已超时","i18n.transfer.cancel.notice.title":"转接已取消","i18n.transfer.cancel.notice.content":"会话转接请求已取消","i18n.already.in.transfer.pending.state":"会话已处于转接等待状态","i18n.already.in.transfer.accepted.state":"会话已处于转接接受状态","i18n.already.in.transfer.rejected.state":"会话已处于转接拒绝状态","i18n.already.in.transfer.timeout.state":"会话已处于转接超时状态","i18n.already.in.transfer.canceled.state":"会话已处于转接取消状态","i18n.invite_notification":"邀请请求","i18n.invite_accepted":"邀请已接受","i18n.invite_rejected":"邀请已拒绝","i18n.invite_timeout":"邀请请求超时","i18n.invite_cancelled":"邀请已取消","i18n.confirm_accept_invite":"确定接受邀请","i18n.confirm_accept_invite_desc":"确定接受邀请请求吗?","i18n.confirm_reject_invite":"确定拒绝邀请","i18n.confirm_reject_invite_desc":"确定拒绝邀请请求吗?","i18n.visitor_invite_notification":"访客邀请","i18n.visitor_invite_accepted":"访客邀请已接受","i18n.visitor_invite_rejected":"访客邀请已拒绝","i18n.visitor_invite_timeout":"访客邀请超时","i18n.visitor_invite_cancelled":"访客邀请已取消","i18n.group_invite_notification":"群组邀请","i18n.group_invite_accepted":"群组邀请已接受","i18n.group_invite_rejected":"群组邀请已拒绝","i18n.group_invite_timeout":"群组邀请超时","i18n.group_invite_cancelled":"群组邀请已取消","i18n.kbase_invite_notification":"知识库邀请","i18n.kbase_invite_accepted":"知识库邀请已接受","i18n.kbase_invite_rejected":"知识库邀请已拒绝","i18n.kbase_invite_timeout":"知识库邀请超时","i18n.kbase_invite_cancelled":"知识库邀请已取消","i18n.organization_invite_notification":"组织邀请","i18n.organization_invite_accepted":"组织邀请已接受","i18n.organization_invite_rejected":"组织邀请已拒绝","i18n.organization_invite_timeout":"组织邀请超时","i18n.organization_invite_cancelled":"组织邀请已取消","i18n.from":"来自","i18n.to":"至","i18n.note":"备注","i18n.status":"状态","i18n.time":"时间","i18n.inviter":"邀请人","i18n.invitee":"被邀请人","i18n.visitor":"访客","i18n.group_name":"群组名称","i18n.kbase_name":"知识库名称","i18n.organization_name":"组织名称","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.accept":"接受","i18n.reject":"拒绝","i18n.user.signup.first":"请先注册","i18n.email.signup.first":"请先验证邮箱","i18n.mobile.signup.first":"请先验证手机号","i18n.resource.not.found":"资源未找到","i18n.user.disabled":"用户已被禁用","i18n.forbidden.access":"禁止访问","i18n.user.blocked":"用户已被封禁","i18n.sensitive.content":"检测到敏感内容","i18n.message.processing.failed":"消息处理失败","i18n.null.pointer.exception":"空指针异常","i18n.response.status.exception":"响应状态异常","i18n.websocket.timeout.exception":"WebSocket超时异常","i18n.http.method.not.supported":"不支持的HTTP方法","i18n.authorization.denied":"授权被拒绝","i18n.request.rejected":"请求被拒绝","i18n.entity.not.found":"实体未找到","i18n.internal.server.error":"服务器内部错误"},Jen={"message.type.text":"文本消息","message.type.image":"图片消息","message.type.file":"文件消息","message.type.voice":"语音消息","message.type.video":"视频消息","message.type.location":"位置消息","message.type.link":"链接消息","message.type.card":"卡片消息","message.type.system":"系统消息","message.type.notification":"通知消息","message.type.custom":"自定义消息","message.status.sending":"发送中","message.status.sent":"已发送","message.status.delivered":"已送达","message.status.read":"已读","message.status.failed":"发送失败","message.status.recalled":"已撤回","message.status.deleted":"已删除","message.action.send":"发送","message.action.recall":"撤回","message.action.delete":"删除","message.action.resend":"重新发送","message.action.forward":"转发","message.action.quote":"引用","message.action.copy":"复制","message.action.translate":"翻译","message.action.download":"下载","message.action.preview":"预览","message.tip.sending":"消息发送中...","message.tip.sent":"消息已发送","message.tip.delivered":"消息已送达","message.tip.read":"消息已读","message.tip.failed":"消息发送失败","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已删除","message.tip.copy.success":"复制成功","message.tip.download.start":"开始下载...","message.tip.download.success":"下载成功","message.tip.download.failed":"下载失败","message.input.placeholder":"请输入消息","message.input.send.button":"发送","message.input.emoji.button":"表情","message.input.image.button":"图片","message.input.file.button":"文件","message.input.voice.button":"语音","message.input.video.button":"视频","message.input.location.button":"位置","message.list.load.more":"加载更多","message.list.loading":"加载中...","message.list.no.more":"没有更多消息","message.list.empty":"暂无消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相关消息","message.time.just":"刚刚","message.time.minutes":"{count}分钟前","message.time.hours":"{count}小时前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}个月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超过 {size}","message.file.type.unsupported":"不支持的文件类型","message.file.uploading":"上传中...","message.file.download":"下载文件","message.file.preview":"预览文件","message.image.loading":"图片加载中","message.image.load.error":"图片加载失败","message.image.save":"保存图片","message.image.save.success":"图片保存成功","message.image.save.failed":"图片保存失败","quickreply.search.placeholder":"搜索","quickreply.button.send":"发送","quickreply.button.copy":"复制","quickreply.button.create.category":"创建分类","quickreply.button.create.reply":"创建快捷回复","quickreply.copy.success":"{content} 已复制到剪贴板","category.form.edit.title":"编辑分类","category.form.create.title":"创建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!","category.form.name.placeholder":"输入分类名称","category.create.failed":"创建分类失败","quickreply.drawer.title":"快捷回复","quickreply.form.category":"分类","quickreply.form.category.required":"请选择分类","quickreply.form.category.placeholder":"选择分类","quickreply.form.type":"类型","quickreply.form.type.required":"请选择类型","quickreply.form.type.placeholder":"选择类型","quickreply.form.title":"标题","quickreply.form.title.required":"请输入标题","quickreply.form.content":"内容","quickreply.type.text":"文本","quickreply.type.image":"图片","quickreply.type.video":"视频","quickreply.type.audio":"音频","quickreply.type.file":"文件","quickreply.upload.text":"点击或拖拽文件上传","quickreply.upload.success":"{filename} 上传成功","quickreply.upload.error":"{filename} 上传失败","quickreply.upload.uploading":"{filename} 上传中","quickreply.form.validate.error":"请检查表单"},etn={"profile.update.success":"个人信息更新成功","profile.form.avatar":"头像","profile.form.upload":"上传","profile.form.username":"用户名","profile.form.nickname":"昵称","profile.form.description":"描述","profile.button.change.password":"修改密码","profile.button.change.email":"修改邮箱","profile.button.change.mobile":"修改手机号","profile.email.verified":"邮箱已验证","profile.email.unverified":"邮箱未验证","profile.mobile.verified":"手机已验证","profile.mobile.unverified":"手机未验证","profile.email.change.title":"修改邮箱","profile.email.placeholder":"请输入邮箱地址","profile.email.required":"请输入邮箱地址!","profile.email.format.invalid":"邮箱格式不正确","profile.email.length.limit":"邮箱不得超过50字符","profile.email.verification.code.placeholder":"请输入验证码","profile.email.verification.code.countdown":"秒后重新获取","profile.email.verification.code.get":"获取验证码","profile.email.verification.code.required":"请输入验证码!","profile.email.not.changed":"邮箱未更改!","profile.email.change.success":"邮箱修改成功!","profile.email.format.error":"邮箱格式错误","profile.mobile.change.title":"修改手机号","profile.mobile.placeholder":"请输入手机号","profile.mobile.required":"请输入手机号!","profile.mobile.format.invalid":"手机号格式错误!","profile.mobile.verification.code.placeholder":"请输入验证码","profile.mobile.verification.code.countdown":"秒后重新获取","profile.mobile.verification.code.get":"获取验证码","profile.mobile.verification.code.required":"请输入验证码!","profile.mobile.not.changed":"手机号未更改!","profile.mobile.change.success":"手机号修改成功!","profile.mobile.format.error":"手机号格式错误","profile.password.change.title":"修改密码","profile.password.old":"原密码","profile.password.old.empty":"手机号直接登录用户,可以留空","profile.password.new":"新密码","profile.password.confirm":"确认密码","profile.password.length.error":"密码最小长度不能小于6","profile.password.mismatch":"两次输入密码不一致","profile.password.change.success":"密码修改成功!"},ttn={"setting.menu.title":"设置","setting.menu.profile":"个人信息","setting.menu.basic":"基本设置","setting.menu.agent":"客服设置","setting.menu.model":"大模型","setting.menu.certification":"实名认证","setting.menu.qrcode":"二维码","setting.menu.shortcut":"快捷键","setting.menu.click":"菜单点击","setting.save.success":"设置保存成功","setting.save.error":"设置保存失败","setting.load.error":"设置加载失败","setting.header.profile":"个人信息","setting.header.basic":"基本设置","setting.header.agent":"客服设置","setting.header.model":"大模型设置","setting.basic.sound.on":"已开启消息提示音","setting.basic.sound.off":"已关闭消息提示音","setting.basic.notification.on":"已开启网络状态通知","setting.basic.notification.off":"已关闭网络状态通知","setting.basic.connection.status":"长链接状态:","setting.basic.connection.connected":"✅连接正常","setting.basic.connection.disconnected":"❌连接断开","setting.basic.startup":"开机启动:","setting.basic.startup.on":"开机启动","setting.basic.startup.off":"不开机启动","setting.basic.theme":"颜色主题:","setting.basic.language":"语言设置:","setting.basic.mode":"模式设置:","setting.basic.mode.team":"团队模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"个人模式"},ntn={"thread.error.message":"获取数据失败","thread.feature.unavailable":"TODO: 该功能暂未开放","thread.menu.top":"置顶","thread.menu.untop":"取消置顶","thread.menu.read":"标记已读","thread.menu.unread":"标记未读","thread.menu.mute":"静音","thread.menu.unmute":"取消静音","thread.menu.transfer":"转接","thread.menu.block":"拉黑","thread.menu.unblock":"取消拉黑","thread.menu.remark":"备注","thread.menu.ticket":"创建工单","thread.menu.crm":"查看CRM","thread.menu.summary":"会话总结","thread.status.robot":"[机器人]","thread.status.agent":"[一对一]","thread.status.workgroup":"[工作组]","thread.search.placeholder":"搜索会话...","thread.menu.filter":"会话过滤","thread.menu.groupThread":"群聊会话","thread.menu.robotThread":"机器人会话","thread.menu.workgroupThread":"工作组会话","thread.menu.agentThread":"一对一会话","thread.menu.ticketThread":"工单会话","thread.menu.memberThread":"成员会话","thread.menu.deviceThread":"设备会话","thread.menu.systemThread":"系统会话","thread.dropdown.create.group":"创建群聊","thread.dropdown.create.ai":"创建AI对话","thread.agent.status.online":"😀 - 在线接待","thread.agent.status.offline":"🔻 - 客服下线","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 松开刷新","thread.list.no.more":"没有更多了","thread.coming.soon":"即将上线,敬请期待","thread.set.success":"设置成功","thread.set.error":"设置失败","thread.menu.star":"星标","thread.menu.star.1":"星标1","thread.menu.star.2":"星标2","thread.menu.star.3":"星标3","thread.menu.star.4":"星标4","thread.menu.hide":"隐藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下线","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加载中...","thread.status.empty":"暂无会话","thread.status.error":"加载会话失败","thread.status.queue":"排队({count})","thread.status.network.offline":"网络已断开-234","thread.status.network.online":"网络已连接-234","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暂无消息","thread.status.message.error":"加载消息失败","thread.status.message.end":"没有更多消息","thread.status.message.typing":"正在输入...","thread.status.message.transfer":"转接中...","thread.status.message.transferred":"已转接","thread.status.message.closed":"会话已关闭","thread.menu.star.cancel":"取消星标","thread.loading.more":"加载更多..."},rtn={"ticket.create.title":"创建工单","ticket.edit.title":"编辑工单","ticket.form.uid":"编号","ticket.form.title":"标题","ticket.form.title.required":"请输入工单标题","ticket.form.title.placeholder":"请输入工单标题","ticket.form.description":"描述","ticket.form.description.required":"请输入工单描述","ticket.form.description.placeholder":"请输入工单描述","ticket.form.status":"状态","ticket.form.status.required":"请选择工单状态","ticket.form.priority":"优先级","ticket.form.priority.required":"请选择优先级","ticket.form.category":"分类","ticket.form.category.required":"请选择工单分类","ticket.form.category.placeholder":"请选择工单分类","ticket.form.user":"客户","ticket.form.user.placeholder":"请选择客户","ticket.form.assignee":"处理人","ticket.form.assignee.placeholder":"请选择处理人","ticket.form.reporter":"报告人","ticket.form.reporter.placeholder":"请选择报告人","ticket.form.workgroup":"技能组","ticket.form.workgroup.required":"请选择技能组","ticket.form.workgroup.placeholder":"请选择技能组","ticket.form.department":"部门","ticket.form.department.required":"请选择部门","ticket.form.department.placeholder":"请选择部门","ticket.workgroup.load.error":"加载技能组失败","ticket.status.all":"全部状态","ticket.status.new":"待认领","ticket.status.assigned":"已分配","ticket.status.claimed":"已认领","ticket.status.unclaimed":"被退回","ticket.status.processing":"处理中","ticket.status.pending":"待处理","ticket.status.holding":"挂起","ticket.status.resumed":"恢复","ticket.status.reopened":"重新打开","ticket.status.resolved":"已解决","ticket.status.closed":"已关闭","ticket.status.cancelled":"已取消","ticket.status.label":"状态","ticket.status.escalated":"已升级","ticket.priority.all":"全部优先级","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"紧急","ticket.priority.critical":"严重","ticket.create.success":"工单创建成功","ticket.create.failed":"工单创建失败","ticket.update.success":"工单更新成功","ticket.update.failed":"工单更新失败","ticket.submit.error":"工单提交失败","ticket.delete.success":"工单删除成功","ticket.delete.error":"工单删除失败","ticket.load.error":"工单数据加载失败","ticket.submitting":"提交工单中...","ticket.list.title":"工单列表","ticket.list.empty":"暂无工单","ticket.list.search.placeholder":"搜索工单","ticket.list.filter.all":"全部工单","ticket.list.filter.my":"我的工单","ticket.list.filter.unassigned":"未分配","ticket.list.create":"创建工单","ticket.list.total":"工单总数","ticket.action.edit":"编辑","ticket.action.delete":"删除","ticket.action.assign":"分配","ticket.action.close":"关闭","ticket.action.reopen":"重新打开","ticket.action.verify":"验证","ticket.action.verify.success":"验证成功","ticket.delete.confirm":"确定要删除此工单吗?","ticket.category.load.error":"加载工单分类失败","ticket.action.invite":"邀请","ticket.conversation.title":"工单对话","ticket.conversation.empty":"请选择工单查看对话","ticket.conversation.input.placeholder":"请输入消息...","ticket.details.title":"工单详情","ticket.details.empty":"请选择工单查看详情","ticket.messages.load.error":"加载工单消息失败","ticket.message.send.error":"发送消息失败","ticket.form.thread":"关联会话","ticket.form.thread.placeholder":"选择关联会话","ticket.form.thread.none":"不关联","ticket.form.createdAt":"创建时间","ticket.form.updatedAt":"更新时间","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能组","ticket.type.department":"部门","ticket.assignee":"处理人","ticket.reporter":"报告人","ticket.type":"类型","ticket.category":"分类","ticket.steps.title":"流转过程","ticket.form.upload.button":"上传附件","ticket.upload.success":"文件上传成功","ticket.upload.failed":"文件上传失败","ticket.current.filters":"当前筛选","ticket.filter.by.status":"按状态筛选","ticket.filter.by.priority":"按优先级筛选","ticket.filter.by.assignment":"按分配筛选","ticket.filter.by.time":"按时间筛选","ticket.filter.status_all":"全部状态","ticket.filter.status_new":"待认领","ticket.filter.status_assigned":"已分配","ticket.filter.status_claimed":"已认领","ticket.filter.status_unclaimed":"被退回","ticket.filter.status_processing":"处理中","ticket.filter.status_pending":"待处理","ticket.filter.status_holding":"挂起","ticket.filter.status_resumed":"恢复","ticket.filter.status_reopened":"重新打开","ticket.filter.status_resolved":"已解决","ticket.filter.status_closed":"已关闭","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部优先级","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"紧急","ticket.filter.priority_critical":"严重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工单","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能组","ticket.filter.assignment_my_created":"我创建的","ticket.filter.assignment_my_assigned":"待我处理","ticket.filter.time_all":"全部时间","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本周","ticket.filter.time_last_week":"上周","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工单","ticket.content.number":"编号","ticket.delete.title":"删除工单","ticket.delete.content":"确定要删除此工单吗?","ticket.delete.failed":"工单删除失败","ticket.loading":"加载工单...","ticket.empty":"暂无工单","ticket.form.process":"流程","ticket.form.process.placeholder":"选择流程","ticket.process.load.error":"加载流程失败","ticket.action.claim":"认领","ticket.action.claim.success":"认领工单成功","ticket.action.process":"开始处理","ticket.action.process.success":"开始处理工单成功","ticket.action.resolve":"解决","ticket.action.resolve.success":"解决工单成功","ticket.action.pending":"待处理","ticket.action.pending.success":"设置工单为待处理成功","ticket.action.hold":"挂起","ticket.action.resume":"继续处理","ticket.action.resume.success":"继续处理工单成功","ticket.action.close.success":"关闭工单成功","ticket.action.reopen.success":"重新打开工单成功","ticket.action.escalate":"升级","ticket.action.escalate.success":"升级工单成功","ticket.action.unclaim":"退回","ticket.action.unclaim.success":"退回工单成功","ticket.action.claim.confirm.title":"认领工单","ticket.action.claim.confirm.content":"确定要认领该工单吗?","ticket.action.claim.loading":"认领中...","ticket.action.claim.error":"工单认领失败","ticket.verify.title":"验证工单","ticket.verify.content":"请验证此工单","ticket.verify.pass":"通过","ticket.verify.reject":"不通过","ticket.verify.success":"工单验证通过","ticket.verify.reject.success":"工单验证未通过","ticket.verify.error":"工单验证失败","ticket.verify.later":"稍后决定","create.title":"創建工單","edit.title":"編輯工單","form.title":"標題","form.description":"描述","form.status":"狀態","form.priority":"優先級","form.category":"分類","form.category.placeholder":"請選擇分類","form.department":"部門","form.department.placeholder":"請選擇部門","form.assignee":"處理人","form.assignee.placeholder":"請選擇處理人","form.thread":"會話","form.thread.placeholder":"請選擇會話","form.thread.none":"無","form.process":"流程","form.process.placeholder":"請選擇流程","form.upload.button":"上傳文件","status.new":"新建","status.claimed":"已認領","status.processing":"處理中","status.pending":"待處理","status.holding":"掛起","status.reopened":"重新打開","status.resolved":"已解決","status.closed":"已關閉","status.cancelled":"已取消","priority.lowest":"最低","priority.low":"低","priority.medium":"中","priority.high":"高","priority.urgent":"緊急","priority.critical":"嚴重","create.success":"工單創建成功","create.failed":"工單創建失敗","update.success":"工單更新成功","update.failed":"工單更新失敗","submit.error":"工單提交失敗",submitting:"正在提交工單...","category.load.error":"加載分類失敗","department.load.error":"加載部門失敗","member.load.error":"加載成員失敗","process.load.error":"加載流程失敗","ticket.department.load.error":"加载部门失败","ticket.member.load.error":"加载部门成员失败","ticket.activity.history":"工单活动记录"},itn={"contact.list.new":"新朋友","contact.list.device":"内网设备","contact.list.group":"群聊","contact.list.channel":"频道","contact.list.company":"企业联系人","contact.list.friend":"联系人","contact.search.placeholder":"搜索联系人...","contact.manager.button":"通讯录管理","contact.manager.coming":"敬请期待","member.detail.nickname":"昵称","member.detail.jobno":"工号","member.detail.seatno":"座位号","member.detail.telephone":"电话","member.detail.loading":"加载中...","member.detail.chat.button":"开始聊天"},atn={"group.create.title":"发起群聊","group.create.contacts":"好友","group.create.members":"群成员","group.create.members.min":"至少选择2名成员","group.create.creating":"创建群组中...","group.create.org.empty":"未选择组织","group.create.success":"创建群组成功","group.create.failed":"创建群组失败","group.create.loading":"加载成员中...","group.create.error":"加载成员失败"},otn={"robot.create.title":"创建机器人","robot.create.available":"可选机器人","robot.create.selected":"已选机器人","robot.create.success":"创建机器人成功","robot.create.failed":"创建机器人失败","robot.create.loading":"创建机器人中...","robot.create.error":"加载机器人失败","robot.create.empty":"暂无可用机器人","robot.create.min":"请至少选择一个机器人","robot.list.add":"添加机器人","robot.list.chat":"聊天","robot.list.edit":"编辑","robot.list.delete":"删除"},stn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},ltn={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.uploading":"{filename} 上传中...","upload.success":"{filename} 上传成功","upload.failed":"{filename} 上传失败","upload.delete.confirm":"确定要删除此文件吗?","upload.preview.image":"图片预览","upload.preview.file":"文件预览","upload.button.ok":"确定","upload.button.cancel":"取消","upload.maxCount":"最多只能上传 {maxCount} 个文件","upload.maxSize":"文件大小不能超过 {maxSize}MB"},ctn={"welcome.modal.title":"未发现所在组织","welcome.modal.description":"您需要创建或加入已有组织","welcome.modal.join":"加入已有组织(即将上线)","welcome.modal.create":"创建组织","welcome.modal.input.placeholder":"请输入组织名称","welcome.message.org.required":"请创建或加入组织","welcome.message.create.success":"创建组织成功","welcome.message.create.failed":"创建组织失败","welcome.message.verify.email":"请先验证邮箱","welcome.message.verify.mobile":"请先验证手机号","welcome.message.org.name.required":"请输入组织名称","welcome.message.org.creating":"创建组织中,请稍后...","welcome.verify.modal.title":"账号验证提示","welcome.verify.modal.description":"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。","welcome.verify.now":"立即验证","welcome.verify.later":"稍后验证"},utn={...qen,...Ken,...Gen,...Yen,...Xen,...Zen,...Qen,...Wen,...Jen,...Ven,...etn,...ttn,...ntn,...rtn,...Uen,...itn,...atn,...otn,...stn,...ltn,...ctn},dtn={i18_file_assistant:"檔案助手",slogan:"对话即服务","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"客服助手","chat.right.quickreply":"快捷回复/知识库","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服機器人",MARKETING:"營銷機器人",KNOWLEDGEBASE:"知識庫機器人(内部)",QA:"問答機器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"載入中",create:"新增",creating:"新增中...","create.success":"新增成功","create.fail":"新增失敗",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失敗",save:"儲存",saving:"正在儲存...",email:"電子郵件","email.verified":"電子郵件(已驗證)","email.unverified":"電子郵件(待驗證)",mobile:"手機號碼","mobile.verified":"手機號碼(已驗證)","mobile.unverified":"手機號碼(待驗證)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登入用戶名(修改用戶名之後,需要重新登入)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"匯入",export:"匯出","download.template":"下载模板",open:"開啟",copy:"複製","copy.success":"複製成功",ok:"確定",cancel:"取消",bind:"綁定",edit:"編輯",editing:"編輯中...","edit.success":"編輯成功","edit.fail":"編輯失敗",delete:"刪除",deleting:"删除中...",deleteTip:"刪除提示",deleteAffirm:"確定要刪除","delete.success":"刪除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"預覽",close:"關閉",closing:"關閉中...",closeTip:"關閉提示",closeASure:"確定要關閉","close.success":"關閉成功",choose:"選擇","leavemsg.enabled":"留言啟用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"无客服在线",invite:"邀请","invite.success":"邀请成功","invite.fail":"邀请失败","invite.reason":"邀请原因","invite.no.agent":"无客服在线"},ftn={"menu.anonymous.title":"匿名模式","menu.anonymous.home":"訊息","menu.anonymous.contact":"聯絡人","menu.anonymous.robot":"機器人","menu.anonymous.setting":"設定","menu.anonymous.status":"匿名狀態","menu.anonymous.status.tip":"匿名模式僅支援同一區域網內的在線設備之間的通訊","menu.anonymous.login.tip":"登入以訪問離線訊息和更多功能","menu.anonymous.login":"登入","menu.anonymous.current.users":"當前用戶","menu.dashboard.chat":"聊天","menu.dashboard.contact":"聯絡人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"筆記","menu.dashboard.kbase":"知識庫","menu.dashboard.mine":"設定","menu.dashboard.queue":"排隊","menu.dashboard.ticket":"工單","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"訪客","menu.dashboard.monitor":"監控","menu.dashboard.plugins":"插件","menu.dashboard.quality":"質檢","menu.settings":"設定","menu.settings.logout":"登出","menu.agent.status":"客服狀態","menu.agent.status.available":"可用","menu.agent.status.rest":"休息","menu.agent.status.offline":"離線","menu.language":"語言","menu.mode":"模式","menu.mode.team":"團隊模式","menu.mode.agent":"一對一模式","menu.mode.personal":"個人模式","menu.agent.offline.warning":"請在離線前結束所有正在進行中的會話","menu.mode.personal.coming":"即將推出..."},ptn={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},htn={"app.title":"微語","app.logout":"登出","app.copyright.produced":"微語出品","app.preview.down.block":"下載此頁面到本地項目","app.welcome.link.fetch-blocks":"獲取全部區塊","app.welcome.link.block-list":"基於 block 開發,快速構建標準頁面","navBar.lang":"語言","layout.user.link.help":"幫助","layout.user.link.privacy":"隱私","layout.user.link.terms":"條款","theme.light":"淺色","theme.dark":"深色","theme.system":"自動","setting.lang":"Languages","setting.theme":"主題","app.name":"微語客服","app.description":"新一代智能客服系統","app.welcome":"歡迎使用微語客服系統","app.copyright":"© 2024 微語客服. 保留所有權利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"確認","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"編輯","app.action.delete":"刪除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"設置","app.action.help":"幫助","app.tip.loading":"加載中...","app.tip.success":"操作成功","app.tip.error":"操作失敗","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"確認要執行此操作嗎?","app.tip.nodata":"暫無數據","app.tip.network.error":"網絡連接失敗","app.tip.server.error":"服務器錯誤","app.status.online":"在線","app.status.offline":"離線","app.status.busy":"忙碌","app.status.away":"離開","app.status.invisible":"隱身","app.status.disabled":"已禁用","app.status.expired":"已過期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"剛剛","app.time.minutes":"{count} 分鐘前","app.time.hours":"{count} 小時前","app.time.days":"{count} 天前","app.file.upload":"上傳文件","app.file.download":"下載文件","app.file.preview":"預覽文件","app.file.size.limit":"文件大小不能超過 {size}","app.file.type.unsupported":"不支持的文件類型","app.file.upload.success":"上傳成功","app.file.upload.failed":"上傳失敗","app.file.download.success":"下載成功","app.file.download.failed":"下載失敗","app.layout.sidebar.collapse":"收起側邊欄","app.layout.sidebar.expand":"展開側邊欄","app.layout.header.profile":"個人中心","app.layout.header.logout":"退出登錄","app.layout.footer.copyright":"版權所有","app.layout.footer.terms":"服務條款","app.layout.footer.privacy":"隱私政策","category.form.title":"新建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!"},mtn={"auth.login.title":"登錄","auth.login.subtitle":"歡迎使用微語客服系統","auth.login.username":"用戶名","auth.login.username.required":"請輸入用戶名","auth.login.password":"密碼","auth.login.password.required":"請輸入密碼","auth.login.remember":"記住密碼","auth.login.forgot":"忘記密碼?","auth.login.submit":"登錄","auth.login.other":"其他登錄方式","auth.login.register":"註冊賬號","auth.login.success":"登錄成功","auth.login.failed":"登錄失敗","auth.register.title":"註冊","auth.register.subtitle":"創建新賬號","auth.register.username":"用戶名","auth.register.username.required":"請輸入用戶名","auth.register.email":"郵箱","auth.register.email.required":"請輸入郵箱","auth.register.password":"密碼","auth.register.password.required":"請輸入密碼","auth.register.confirm":"確認密碼","auth.register.confirm.required":"請確認密碼","auth.register.submit":"註冊","auth.register.login":"已有賬號?登錄","auth.register.success":"註冊成功","auth.register.failed":"註冊失敗","auth.forgot.title":"忘記密碼","auth.forgot.subtitle":"重置密碼","auth.forgot.email":"郵箱","auth.forgot.email.required":"請輸入郵箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登錄","auth.forgot.success":"重置密碼郵件已發送","auth.forgot.failed":"重置密碼失敗","auth.reset.title":"重置密碼","auth.reset.subtitle":"設置新密碼","auth.reset.password":"新密碼","auth.reset.password.required":"請輸入新密碼","auth.reset.confirm":"確認密碼","auth.reset.confirm.required":"請確認新密碼","auth.reset.submit":"提交","auth.reset.success":"密碼重置成功","auth.reset.failed":"密碼重置失敗","auth.verify.code":"驗證碼","auth.verify.code.required":"請輸入驗證碼","auth.verify.code.send":"發送驗證碼","auth.verify.code.resend":"重新發送","auth.verify.code.success":"驗證碼發送成功","auth.verify.code.failed":"驗證碼發送失敗","auth.password.strength.weak":"密碼強度:弱","auth.password.strength.medium":"密碼強度:中","auth.password.strength.strong":"密碼強度:強","auth.agreement.text":"我已閱讀並同意","auth.agreement.terms":"服務條款","auth.agreement.privacy":"隱私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"幫助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢復默認雲服務器","server.custom.enable":"啟用自定義服務器","server.api.url.label":"API服務器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服務器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"請輸入正確的服務器地址"},gtn={"chat.title":"會話","chat.empty":"暫無會話","chat.loading":"加載中...","chat.load.error":"加載失敗","chat.load.more":"加載更多","chat.no.more":"沒有更多了","chat.refresh":"刷新","chat.status.connecting":"連接中...","chat.status.connected":"已連接","chat.status.disconnected":"連接斷開","chat.status.reconnecting":"重新連接中...","chat.network.error":"網絡連接失敗,請檢查網絡","chat.thread.closing":"結束會話中...","chat.thread.close.success":"結束會話成功","chat.thread.close.failed":"結束會話失敗","chat.thread.close.confirm.title":"確定要結束會話?","chat.rate.invite.confirm.title":"確認要邀請評價?","chat.message.send.failed":"發送失敗","chat.message.resend":"重新發送","chat.message.recall":"撤回消息","chat.message.copy.success":"複製成功","chat.copy.success":"複製成功","chat.menu.copy":"複製","chat.menu.translate":"翻譯","chat.menu.recall":"撤回","chat.menu.enlarge":"放大閱讀","chat.menu.quickreply.add":"添加快捷回復...","chat.menu.browser.open":"瀏覽器打開","chat.menu.forward":"轉發...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.menu.ai":"問AI","chat.menu.quickreply.search":"搜索知識庫","chat.input.placeholder":"請輸入內容, Ctrl+V 粘貼截圖/圖片","chat.translation.placeholder":"請輸入翻譯內容...","chat.input.send":"發送","chat.input.sending":"發送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截圖","chat.toolbar.autoreply":"自動回復","chat.toolbar.audio":"錄音","chat.toolbar.webrtc":"視頻會話","chat.upload.size.limit":"文件大小不能超過 {size}","chat.upload.type.unsupported":"不支持的文件類型","chat.upload.failed":"上傳失敗","chat.upload.success":"上傳成功","chat.upload.progress":"上傳中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"來電...","chat.webrtc.connected":"通話中...","chat.webrtc.ended":"通話結束","chat.webrtc.rejected":"對方拒絕","chat.webrtc.busy":"對方忙","chat.webrtc.failed":"通話失敗","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒絕","chat.webrtc.hangup":"掛斷","chat.navbar.transfer":"轉接","chat.navbar.close":"結束","chat.navbar.note":"筆記","chat.navbar.kbase":"知識庫","chat.right.quickreply":"快捷回覆","chat.right.userinfo":"訪客信息","chat.right.ai":"客服助手","chat.right.ticket":"工單","chat.right.llm":"大模型","chat.right.docview":"文檔查看","chat.right.group":"群組信息","chat.right.member":"成員信息","chat.group.notice":"群公告","chat.group.members":"群成員","chat.group.admins":"管理員","chat.group.robots":"機器人","chat.group.qrcode":"二維碼","chat.group.uid.error":"群組ID錯誤","chat.header.group.unnamed":"未命名群組","chat.header.member.unnamed":"未命名成員","chat.header.robot.unnamed":"未命名機器人","chat.header.user.unnamed":"未命名用戶","chat.header.typing":"正在輸入...","chat.header.no.message":"暫無消息","chat.header.action.transfer":"轉接","chat.header.action.invite":"邀請","chat.header.action.create.ticket":"創建工單","chat.header.action.close":"結束","chat.header.action.exit":"退出","chat.header.type.not.supported":"當前聊天類型不支持"},vtn={"common.confirm":"確認","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"刪除","common.edit":"編輯","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加載中...","common.success":"操作成功","common.failed":"操作失敗","common.error":"錯誤","common.warning":"警告","common.info":"提示","common.status.online":"在線","common.status.offline":"離線","common.status.busy":"忙碌","common.status.away":"離開","common.status.invisible":"隱身","common.operation.success":"操作成功","common.operation.failed":"操作失敗","common.operation.confirm":"確認要執行此操作嗎?","common.operation.processing":"處理中...","common.operation.completed":"處理完成","common.operation.error":"處理出錯","common.form.required":"此項為必填項","common.form.optional":"選填","common.form.invalid":"輸入無效","common.form.validate.error":"表單驗證失敗","common.form.validate.success":"表單驗證通過","common.refresh":"刷新"},ytn={"customer.list.title":"客戶列表","customer.list.empty":"暫無客戶","customer.list.loading":"加載中...","customer.list.load.error":"加載失敗","customer.list.load.more":"加載更多","customer.list.no.more":"沒有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"暱稱","customer.info.gender":"性別","customer.info.age":"年齡","customer.info.birthday":"生日","customer.info.mobile":"手機號","customer.info.email":"郵箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"職位","customer.info.remark":"備註","customer.info.tags":"標籤","customer.info.extra":"其他信息","customer.info.source":"來源","customer.info.created":"創建時間","customer.info.updated":"更新時間","customer.status.online":"在線","customer.status.offline":"離線","customer.status.away":"離開","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"編輯","customer.action.delete":"刪除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"轉移","customer.action.merge":"合併","customer.action.export":"導出","customer.form.name":"姓名","customer.form.name.required":"請輸入姓名","customer.form.nickname":"暱稱","customer.form.gender":"性別","customer.form.age":"年齡","customer.form.birthday":"生日","customer.form.mobile":"手機號","customer.form.email":"郵箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"職位","customer.form.remark":"備註","customer.form.tags":"標籤","customer.form.source":"來源","customer.create.success":"客戶創建成功","customer.create.failed":"客戶創建失敗","customer.update.success":"客戶更新成功","customer.update.failed":"客戶更新失敗","customer.delete.success":"客戶刪除成功","customer.delete.failed":"客戶刪除失敗","customer.block.success":"客戶拉黑成功","customer.block.failed":"客戶拉黑失敗","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失敗","customer.transfer.success":"客戶轉移成功","customer.transfer.failed":"客戶轉移失敗","customer.merge.success":"客戶合併成功","customer.merge.failed":"客戶合併失敗","customer.export.success":"客戶導出成功","customer.export.failed":"客戶導出失敗","black.title":"拉黑設置","black.type":"拉黑類型","black.type.required":"請選擇至少一種拉黑類型","black.user":"拉黑用戶","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"請選擇拉黑截至時間","black.reason":"拉黑原因","black.reason.required":"請輸入拉黑原因","black.reason.placeholder":"請輸入拉黑原因","black.success":"拉黑成功","customer.info.browser":"瀏覽器資訊","customer.info.os":"作業系統資訊","customer.info.device":"裝置資訊","customer.info.browse.record":"瀏覽記錄","customer.info.tag":"標籤資訊","customer.info.load.error":"載入訪客資訊失敗","customer.basic.title":"基本資訊","customer.basic.nickname":"暱稱","customer.basic.empty":"無","customer.basic.edit":"編輯","customer.basic.update.success":"更新成功","customer.basic.update.failed":"更新失敗","customer.basic.note":"備註"},btn={"dashboard.menu.overview":"總覽","dashboard.menu.workbench":"工作台","dashboard.menu.monitor":"監控台","dashboard.menu.workplace":"工作區","dashboard.menu.message":"消息中心","dashboard.menu.settings":"系統設置","dashboard.overview.title":"總覽","dashboard.overview.total.conversations":"總會話數","dashboard.overview.total.customers":"總客戶數","dashboard.overview.total.tickets":"總工單數","dashboard.overview.total.agents":"總客服數","dashboard.overview.online.agents":"在線客服","dashboard.overview.waiting.customers":"排隊訪客","dashboard.overview.avg.response.time":"平均響應時間","dashboard.overview.avg.handle.time":"平均處理時間","dashboard.stats.title":"數據統計","dashboard.stats.realtime":"實時數據","dashboard.stats.today":"今日統計","dashboard.stats.yesterday":"昨日統計","dashboard.stats.week":"本週統計","dashboard.stats.month":"本月統計","dashboard.stats.custom":"自定義時段","dashboard.workbench.online":"在線狀態","dashboard.workbench.offline":"離線狀態","dashboard.workbench.busy":"忙碌狀態","dashboard.workbench.away":"離開狀態","dashboard.workbench.auto.distribution":"自動分配","dashboard.workbench.manual.distribution":"手動分配","dashboard.workbench.max.session":"最大會話數","dashboard.workbench.current.session":"當前會話數","dashboard.monitor.system":"系統監控","dashboard.monitor.performance":"性能監控","dashboard.monitor.network":"網絡監控","dashboard.monitor.server":"服務器狀態","dashboard.monitor.database":"數據庫狀態","dashboard.monitor.cache":"緩存狀態","dashboard.monitor.queue":"隊列狀態","dashboard.workplace.quick.start":"快速開始","dashboard.workplace.recent":"最近訪問","dashboard.workplace.todo":"待辦事項","dashboard.workplace.announcement":"系統公告","dashboard.workplace.calendar":"工作日曆","dashboard.workplace.links":"常用鏈接","dashboard.message.all":"全部消息","dashboard.message.unread":"未讀消息","dashboard.message.system":"系統消息","dashboard.message.business":"業務消息","dashboard.message.operation":"運營消息","dashboard.monitor.title":"實時監控","dashboard.monitor.online.status":"在線狀態","dashboard.monitor.conversation.status":"會話狀態","dashboard.monitor.queue.status":"排隊狀態","dashboard.monitor.system.status":"系統狀態","dashboard.monitor.refresh":"刷新","dashboard.monitor.auto.refresh":"自動刷新","dashboard.analysis.title":"數據分析","dashboard.analysis.conversation.trend":"會話趨勢","dashboard.analysis.customer.trend":"客戶趨勢","dashboard.analysis.ticket.trend":"工單趨勢","dashboard.analysis.satisfaction.trend":"滿意度趨勢","dashboard.analysis.time.range":"時間範圍","dashboard.analysis.export":"導出數據","dashboard.workplace.title":"工作台","dashboard.workplace.my.conversations":"我的會話","dashboard.workplace.my.tickets":"我的工單","dashboard.workplace.my.tasks":"我的任務","dashboard.workplace.my.performance":"我的績效","dashboard.workplace.quick.actions":"快捷操作","dashboard.workplace.announcements":"公告通知","dashboard.report.title":"統計報表","dashboard.report.conversation":"會話報表","dashboard.report.customer":"客戶報表","dashboard.report.ticket":"工單報表","dashboard.report.agent":"客服報表","dashboard.report.satisfaction":"滿意度報表","dashboard.report.export":"導出報表","dashboard.chart.today":"今日","dashboard.chart.yesterday":"昨日","dashboard.chart.last7days":"最近7天","dashboard.chart.last30days":"最近30天","dashboard.chart.thisMonth":"本月","dashboard.chart.lastMonth":"上月","dashboard.chart.custom":"自定義","dashboard.chart.loading":"加載中...","dashboard.chart.no.data":"暫無數據","dashboard.tip.refresh.success":"刷新成功","dashboard.tip.refresh.failed":"刷新失敗","dashboard.tip.export.success":"導出成功","dashboard.tip.export.failed":"導出失敗","dashboard.tip.data.loading":"數據加載中...","dashboard.tip.data.load.failed":"數據加載失敗"},wtn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.all":"全部","i18n.queue.tip":"排隊隊列","i18n.queue.message.template":"當前排隊人數:{0},大約等待時間:{1} 分鐘","i18n.queue.empty":"隊列為空","i18n.queue.accept":"接入","i18n.system.notification":"系統通知","i18n.system.notification.tip":"系統通知","i18n.old.password.wrong":"舊密碼錯誤","i18n.change.password":"修改密碼","i18n.auth.captcha.send.success":"驗證碼發送成功","i18n.auth.captcha.error":"驗證碼錯誤","i18n.auth.captcha.expired":"驗證碼過期","i18n.auth.captcha.already.send":"驗證碼已發送,請等待","i18n.auth.captcha.validate.failed":"驗證碼驗證失敗","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在輸入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀請評價","i18n.ticket":"[工單]","i18n.ticket.thread":"[工單會話]","i18n.DEPT_ALL":"全部","i18n.DEPT_ADMIN":"管理員","i18n.DEPT_MEMBER":"所有成员","i18n.DEPT_CS":"客服部",ROLE_SUPER:"超級管理員",ROLE_ADMIN:"管理員",ROLE_MEMBER:"成员",ROLE_AGENT:"客服",ROLE_USER:"用戶",ROLE_VISITOR:"訪客","i18n.notice":"通知","i18n.notice.title":"通知標題","i18n.notice.content":"通知內容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.login_notification":"登錄通知","i18n.login_time":"登錄時間","i18n.login_ip":"登錄IP","i18n.login_location":"登錄地點","i18n.if_not_you_please_change_password":"如果這不是您的操作,請立即修改密碼。","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理員","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技術部","i18n.DEPT.MONEY":"財務部","i18n.DEPT.MARKETING":"市場部","i18n.DEPT.SALES":"銷售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.top.tip":"默認置顶語","i18n.top.make":"置頂","i18n.top.cancel":"取消置頂","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开-456","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.before.nickname":"售前技能組","i18n.workgroup.after.nickname":"售后技能組","i18n.workgroup.description":"預設技能組描述","i18n.workgroup.description.before":"售前技能組描述","i18n.workgroup.description.after":"售后技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开-456","i18n.tip.network.connected":"网络已连接-456","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的話請您提供一下您的聯繫電話","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常見問題分類Demo1","i18n.faq.category.demo.2":"常見問題分類Demo2","i18n.faq.demo.title.1":"常見問題文字Demo1","i18n.faq.demo.content.1":"常見問題文字Demo1","i18n.faq.demo.title.2":"常見問題圖片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.content.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.title.2":"快捷按鈕連結Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"預覽","i18n.cancel":"取消","i18n.confirm":"確定","i18n.send":"發送","i18n.transferToAgent":"轉人工服務","i18n.auto.closed":"會話自動關閉","i18n.agent.closed":"客服關閉會話","i18n.online.chat":"在線客服","i18n.JOB":"工作","i18n.LANGUAGE":"語言","i18n.TOOL":"工具","i18n.WRITING":"寫作","i18n.RAG":"知識庫問答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工單","i18n.black.user.already.exists":"用戶已拉黑","i18n.ticket.category.technical_support":"技術支持","i18n.ticket.category.service_request":"服務請求","i18n.ticket.category.consultation":"咨詢","i18n.ticket.category.complaint_suggestion":"投訴建議","i18n.ticket.category.operation_maintenance":"運維","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP組件, 聯繫我們了解更多詳情","i18n.vip.contactUs":"聯繫我們","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name.group":"技能組流程","i18n.ticket.process.name.group.simple":"技能組簡易流程","i18n.ticket.process.name.agent":"一對一流程","i18n.username.or.password.incorrect":"用戶名或密碼不正確","i18n.system_notification":"系統通知","i18n.transfer_notification":"會話轉接請求","i18n.transfer_accepted":"會話轉接已接受","i18n.transfer_rejected":"會話轉接已拒絕","i18n.transfer_timeout":"會話轉接請求超時","i18n.transfer_cancelled":"會話轉接已取消","i18n.confirm_accept_transfer":"确定接受转接","i18n.confirm_accept_transfer_desc":"确定接受转接请求吗?","i18n.confirm_reject_transfer":"确定拒绝转接","i18n.confirm_reject_transfer_desc":"确定拒绝转接请求吗?","i18n.confirm_cancel_transfer":"确定取消转接","i18n.confirm_cancel_transfer_desc":"确定取消转接请求吗?","i18n.transfer.notice.title":"会话转接","i18n.transfer.notice.content":"客服希望将您的会话转接给其他客服","i18n.transfer.accept.notice.title":"转接已接受","i18n.transfer.accept.notice.content":"会话转接请求已被接受","i18n.transfer.reject.notice.title":"转接已拒绝","i18n.transfer.reject.notice.content":"会话转接请求已被拒绝","i18n.transfer.timeout.notice.title":"转接已超时","i18n.transfer.timeout.notice.content":"会话转接请求已超时","i18n.transfer.cancel.notice.title":"转接已取消","i18n.transfer.cancel.notice.content":"会话转接请求已取消","i18n.already.in.transfer.pending.state":"会话已处于转接等待状态","i18n.already.in.transfer.accepted.state":"会话已处于转接接受状态","i18n.already.in.transfer.rejected.state":"会话已处于转接拒绝状态","i18n.already.in.transfer.timeout.state":"会话已处于转接超时状态","i18n.already.in.transfer.canceled.state":"会话已处于转接取消状态","i18n.invite_notification":"邀請請求","i18n.invite_accepted":"邀請已接受","i18n.invite_rejected":"邀請已拒絕","i18n.invite_timeout":"邀請請求超時","i18n.invite_cancelled":"邀請已取消","i18n.confirm_accept_invite":"确定接受邀请","i18n.confirm_accept_invite_desc":"确定接受邀请请求吗?","i18n.confirm_reject_invite":"确定拒绝邀请","i18n.confirm_reject_invite_desc":"确定拒绝邀请请求吗?","i18n.visitor_invite_notification":"訪客邀請","i18n.visitor_invite_accepted":"訪客邀請已接受","i18n.visitor_invite_rejected":"訪客邀請已拒絕","i18n.visitor_invite_timeout":"訪客邀請超時","i18n.visitor_invite_cancelled":"訪客邀請已取消","i18n.group_invite_notification":"群組邀請","i18n.group_invite_accepted":"群組邀請已接受","i18n.group_invite_rejected":"群組邀請已拒絕","i18n.group_invite_timeout":"群組邀請超時","i18n.group_invite_cancelled":"群組邀請已取消","i18n.kbase_invite_notification":"知識庫邀請","i18n.kbase_invite_accepted":"知識庫邀請已接受","i18n.kbase_invite_rejected":"知識庫邀請已拒絕","i18n.kbase_invite_timeout":"知識庫邀請超時","i18n.kbase_invite_cancelled":"知識庫邀請已取消","i18n.organization_invite_notification":"組織邀請","i18n.organization_invite_accepted":"組織邀請已接受","i18n.organization_invite_rejected":"組織邀請已拒絕","i18n.organization_invite_timeout":"組織邀請超時","i18n.organization_invite_cancelled":"組織邀請已取消","i18n.from":"來自","i18n.to":"至","i18n.note":"备注","i18n.status":"状态","i18n.time":"時間","i18n.inviter":"邀請人","i18n.invitee":"被邀請人","i18n.visitor":"訪客","i18n.group_name":"群組名稱","i18n.kbase_name":"知識庫名稱","i18n.organization_name":"組織名稱","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.accept":"接受","i18n.reject":"拒絕","i18n.user.signup.first":"請先註冊","i18n.email.signup.first":"請先驗證郵箱","i18n.mobile.signup.first":"請先驗證手機號","i18n.resource.not.found":"資源未找到","i18n.user.disabled":"用戶已被禁用","i18n.forbidden.access":"禁止訪問","i18n.user.blocked":"用戶已被封禁","i18n.sensitive.content":"檢測到敏感內容","i18n.message.processing.failed":"訊息處理失敗","i18n.null.pointer.exception":"空指針異常","i18n.response.status.exception":"響應狀態異常","i18n.websocket.timeout.exception":"WebSocket超時異常","i18n.http.method.not.supported":"不支持的HTTP方法","i18n.authorization.denied":"授權被拒絕","i18n.request.rejected":"請求被拒絕","i18n.entity.not.found":"實體未找到","i18n.internal.server.error":"伺服器內部錯誤"},xtn={"message.type.text":"文本消息","message.type.image":"圖片消息","message.type.file":"文件消息","message.type.voice":"語音消息","message.type.video":"視頻消息","message.type.location":"位置消息","message.type.link":"鏈接消息","message.type.card":"卡片消息","message.type.system":"系統消息","message.type.notification":"通知消息","message.type.custom":"自定義消息","message.status.sending":"發送中","message.status.sent":"已發送","message.status.delivered":"已送達","message.status.read":"已讀","message.status.failed":"發送失敗","message.status.recalled":"已撤回","message.status.deleted":"已刪除","quickreply.search.placeholder":"搜索","quickreply.button.send":"發送","quickreply.button.copy":"複製","quickreply.button.create.category":"創建分類","quickreply.button.create.reply":"創建快捷回復","quickreply.copy.success":"{content} 已複製到剪貼板","category.form.edit.title":"編輯分類","category.form.create.title":"創建分類","category.form.name":"分類名稱","category.form.name.required":"請輸入分類名稱!","category.form.name.placeholder":"輸入分類名稱","category.create.failed":"創建分類失敗","quickreply.drawer.title":"{isEdit, select, true {編輯快捷回復} other {新建快捷回復}}","quickreply.form.category":"分類","quickreply.form.category.required":"請選擇分類","quickreply.form.category.placeholder":"選擇分類","quickreply.form.type":"類型","quickreply.form.type.required":"請選擇類型","quickreply.form.type.placeholder":"選擇類型","quickreply.form.title":"標題","quickreply.form.title.required":"請輸入標題","quickreply.form.content":"內容","quickreply.type.text":"文本","quickreply.type.image":"圖片","quickreply.type.video":"視頻","quickreply.type.audio":"音頻","quickreply.type.file":"文件","quickreply.upload.text":"點擊或拖拽文件上傳","quickreply.upload.success":"{filename} 上傳成功","quickreply.upload.error":"{filename} 上傳失敗","quickreply.upload.uploading":"{filename} 上傳中","quickreply.form.validate.error":"請檢查表單","message.action.send":"發送","message.action.recall":"撤回","message.action.delete":"刪除","message.action.resend":"重新發送","message.action.forward":"轉發","message.action.quote":"引用","message.action.copy":"複製","message.action.translate":"翻譯","message.action.download":"下載","message.action.preview":"預覽","message.tip.sending":"消息發送中...","message.tip.sent":"消息已發送","message.tip.delivered":"消息已送達","message.tip.read":"消息已讀","message.tip.failed":"消息發送失敗","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已刪除","message.tip.copy.success":"複製成功","message.tip.download.start":"開始下載...","message.tip.download.success":"下載成功","message.tip.download.failed":"下載失敗","message.input.placeholder":"請輸入消息","message.input.send.button":"發送","message.input.emoji.button":"表情","message.input.image.button":"圖片","message.input.file.button":"文件","message.input.voice.button":"語音","message.input.video.button":"視頻","message.input.location.button":"位置","message.list.load.more":"加載更多","message.list.loading":"加載中...","message.list.no.more":"沒有更多消息","message.list.empty":"暫無消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相關消息","message.time.just":"剛剛","message.time.minutes":"{count}分鐘前","message.time.hours":"{count}小時前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}個月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超過 {size}","message.file.type.unsupported":"不支持的文件類型","message.file.uploading":"上傳中...","message.file.download":"下載文件","message.file.preview":"預覽文件","message.image.loading":"圖片加載中","message.image.load.error":"圖片加載失敗","message.image.save":"保存圖片","message.image.save.success":"圖片保存成功","message.image.save.failed":"圖片保存失敗"},Stn={"profile.update.success":"個人信息更新成功","profile.form.avatar":"頭像","profile.form.upload":"上傳","profile.form.username":"用戶名","profile.form.nickname":"暱稱","profile.form.description":"描述","profile.button.change.password":"修改密碼","profile.button.change.email":"修改郵箱","profile.button.change.mobile":"修改手機號","profile.email.verified":"郵箱已驗證","profile.email.unverified":"郵箱未驗證","profile.mobile.verified":"手機已驗證","profile.mobile.unverified":"手機未驗證","profile.email.change.title":"修改郵箱","profile.email.placeholder":"請輸入郵箱地址","profile.email.required":"請輸入郵箱地址!","profile.email.format.invalid":"郵箱格式不正確","profile.email.length.limit":"郵箱不得超過50字符","profile.email.verification.code.placeholder":"請輸入驗證碼","profile.email.verification.code.countdown":"秒後重新獲取","profile.email.verification.code.get":"獲取驗證碼","profile.email.verification.code.required":"請輸入驗證碼!","profile.email.not.changed":"郵箱未更改!","profile.email.change.success":"郵箱修改成功!","profile.email.format.error":"郵箱格式錯誤","profile.mobile.change.title":"修改手機號","profile.mobile.placeholder":"請輸入手機號","profile.mobile.required":"請輸入手機號!","profile.mobile.format.invalid":"手機號格式錯誤!","profile.mobile.verification.code.placeholder":"請輸入驗證碼","profile.mobile.verification.code.countdown":"秒後重新獲取","profile.mobile.verification.code.get":"獲取驗證碼","profile.mobile.verification.code.required":"請輸入驗證碼!","profile.mobile.not.changed":"手機號未更改!","profile.mobile.change.success":"手機號修改成功!","profile.mobile.format.error":"手機號格式錯誤","profile.password.change.title":"修改密碼","profile.password.old":"原密碼","profile.password.old.empty":"手機號直接登錄用戶,可以留空","profile.password.new":"新密碼","profile.password.confirm":"確認密碼","profile.password.length.error":"密碼最小長度不能小於6","profile.password.mismatch":"兩次輸入密碼不一致","profile.password.change.success":"密碼修改成功!"},Ctn={"setting.menu.title":"設置","setting.menu.profile":"個人信息","setting.menu.basic":"基本設置","setting.menu.agent":"客服設置","setting.menu.model":"大模型","setting.menu.certification":"實名認證","setting.menu.qrcode":"二維碼","setting.menu.shortcut":"快捷鍵","setting.menu.click":"菜單點擊","setting.save.success":"設置保存成功","setting.save.error":"設置保存失敗","setting.load.error":"設置加載失敗","setting.header.profile":"個人信息","setting.header.basic":"基本設置","setting.header.agent":"客服設置","setting.header.model":"大模型設置","setting.basic.sound.on":"已開啟消息提示音","setting.basic.sound.off":"已關閉消息提示音","setting.basic.notification.on":"已開啟網絡狀態通知","setting.basic.notification.off":"已關閉網絡狀態通知","setting.basic.connection.status":"長鏈接狀態:","setting.basic.connection.connected":"✅連接正常","setting.basic.connection.disconnected":"❌連接斷開","setting.basic.startup":"開機啟動:","setting.basic.startup.on":"開機啟動","setting.basic.startup.off":"不開機啟動","setting.basic.theme":"顏色主題:","setting.basic.language":"語言設置:","setting.basic.mode":"模式設置:","setting.basic.mode.team":"團隊模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"個人模式"},_tn={"thread.error.message":"獲取數據失敗","thread.feature.unavailable":"TODO: 該功能暫未開放","thread.menu.top":"置頂","thread.menu.untop":"取消置頂","thread.menu.read":"標記已讀","thread.menu.unread":"標記未讀","thread.menu.mute":"靜音","thread.menu.unmute":"取消靜音","thread.menu.transfer":"轉接","thread.menu.block":"拉黑","thread.menu.remark":"備註","thread.menu.ticket":"創建工單","thread.menu.crm":"查看CRM","thread.menu.summary":"會話總結","thread.menu.filter":"會話過濾","thread.menu.groupThread":"群聊會話","thread.menu.robotThread":"機器人會話","thread.menu.workgroupThread":"工作組會話","thread.menu.agentThread":"一對一會話","thread.menu.ticketThread":"工單會話","thread.menu.memberThread":"成員會話","thread.menu.deviceThread":"設備會話","thread.menu.systemThread":"系統會話","thread.status.robot":"[機器人]","thread.status.agent":"[一對一]","thread.status.workgroup":"[工作組]","thread.search.placeholder":"搜索會話...","thread.dropdown.create.group":"創建群聊","thread.dropdown.create.ai":"創建AI對話","thread.agent.status.online":"😀 - 在線接待","thread.agent.status.offline":"🔻 - 客服下線","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 鬆開刷新","thread.list.no.more":"沒有更多了","thread.coming.soon":"即將上線,敬請期待","thread.set.success":"設置成功","thread.set.error":"設置失敗","thread.menu.star":"星標","thread.menu.star.1":"星標1","thread.menu.star.2":"星標2","thread.menu.star.3":"星標3","thread.menu.star.4":"星標4","thread.menu.hide":"隱藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下線","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加載中...","thread.status.empty":"暫無會話","thread.status.error":"加載會話失敗","thread.status.queue":"排隊({count})","thread.status.network.offline":"網絡已斷開","thread.status.network.online":"網絡已連接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暫無消息","thread.status.message.error":"加載消息失敗","thread.status.message.end":"沒有更多消息","thread.status.message.typing":"正在輸入...","thread.status.message.transfer":"轉接中...","thread.status.message.transferred":"已轉接","thread.status.message.closed":"會話已關閉","thread.menu.star.cancel":"取消星標","thread.loading.more":"加載更多..."},ktn={"ticket.create.title":"創建工單","ticket.edit.title":"編輯工單","ticket.form.uid":"編號","ticket.form.title":"標題","ticket.form.title.required":"請輸入工單標題","ticket.form.title.placeholder":"請輸入工單標題","ticket.form.description":"描述","ticket.form.description.required":"請輸入工單描述","ticket.form.description.placeholder":"請輸入工單描述","ticket.form.status":"狀態","ticket.form.status.required":"請選擇工單狀態","ticket.form.priority":"優先級","ticket.form.priority.required":"請選擇優先級","ticket.form.category":"分類","ticket.form.category.required":"請選擇工單分類","ticket.form.category.placeholder":"請選擇工單分類","ticket.form.user":"客戶","ticket.form.user.placeholder":"請選擇客戶","ticket.form.assignee":"處理人","ticket.form.assignee.placeholder":"請選擇處理人","ticket.form.reporter":"報告人","ticket.form.reporter.placeholder":"請選擇報告人","ticket.form.workgroup":"技能組","ticket.form.workgroup.required":"請選擇技能組","ticket.form.workgroup.placeholder":"請選擇技能組","ticket.form.department":"部門","ticket.form.department.required":"請選擇部門","ticket.form.department.placeholder":"請選擇部門","ticket.workgroup.load.error":"加載技能組失敗","ticket.status.all":"全部狀態","ticket.status.new":"待认领","ticket.status.assigned":"已分配","ticket.status.claimed":"已认领","ticket.status.unclaimed":"被退回","ticket.status.processing":"處理中","ticket.status.pending":"待處理","ticket.status.holding":"掛起","ticket.status.resumed":"恢復","ticket.status.reopened":"重新打開","ticket.status.resolved":"已解決","ticket.status.closed":"已關閉","ticket.status.cancelled":"已取消","ticket.status.label":"狀態","ticket.status.escalated":"已升級","ticket.priority.all":"全部優先級","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"緊急","ticket.priority.critical":"嚴重","ticket.create.success":"工單創建成功","ticket.create.failed":"工單創建失敗","ticket.update.success":"工單更新成功","ticket.update.failed":"工單更新失敗","ticket.submit.error":"工單提交失敗","ticket.delete.success":"工單刪除成功","ticket.delete.error":"工單刪除失敗","ticket.load.error":"工單數據加載失敗","ticket.messages.load.error":"工單消息加載失敗","ticket.message.send.error":"消息發送失敗","ticket.category.load.error":"分類加載失敗","ticket.submitting":"提交工单中...","ticket.list.title":"工單列表","ticket.list.empty":"暫無工單","ticket.list.search.placeholder":"搜索工單","ticket.list.create":"創建工單","ticket.list.total":"工單總數","ticket.action.edit":"編輯","ticket.action.delete":"刪除","ticket.action.assign":"分配","ticket.action.close":"關閉","ticket.action.reopen":"重新打開","ticket.action.verify":"驗證","ticket.action.verify.success":"驗證成功","ticket.delete.confirm":"確定要刪除此工單嗎?","ticket.action.invite":"邀請","ticket.conversation.title":"工單對話","ticket.conversation.empty":"請選擇工單查看對話","ticket.conversation.input.placeholder":"請輸入消息...","ticket.details.title":"工單詳情","ticket.details.empty":"請選擇工單查看詳情","ticket.category.technical_support":"技術支持","ticket.category.service_request":"服務請求","ticket.category.consultation":"咨詢","ticket.category.complaint_suggestion":"投訴建議","ticket.category.operation_maintenance":"運維","ticket.category.other":"其他","ticket.form.thread":"關聯會話","ticket.form.thread.placeholder":"選擇關聯會話","ticket.form.thread.none":"不關聯","ticket.form.createdAt":"創建時間","ticket.form.updatedAt":"更新時間","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能組","ticket.type.department":"部門","ticket.assignee":"處理人","ticket.reporter":"報告人","ticket.type":"類型","ticket.category":"分類","ticket.steps.title":"轉移過程","ticket.filter.by.status":"按狀態篩選","ticket.filter.by.priority":"按優先級篩選","ticket.filter.by.assignment":"按分配篩選","ticket.filter.by.time":"按時間篩選","ticket.filter.status_all":"全部狀態","ticket.filter.status_new":"待认领","ticket.filter.status_assigned":"已分配","ticket.filter.status_claimed":"已认领","ticket.filter.status_unclaimed":"被退回","ticket.filter.status_processing":"處理中","ticket.filter.status_pending":"待處理","ticket.filter.status_holding":"掛起","ticket.filter.status_resumed":"恢復","ticket.filter.status_reopened":"重新打開","ticket.filter.status_resolved":"已解決","ticket.filter.status_closed":"已關閉","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部優先級","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"緊急","ticket.filter.priority_critical":"嚴重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工單","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能組","ticket.filter.assignment_my_created":"我創建的","ticket.filter.assignment_my_assigned":"待我處理","ticket.filter.time_all":"全部時間","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本週","ticket.filter.time_last_week":"上週","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工單","ticket.content.number":"編號","ticket.delete.title":"刪除工單","ticket.delete.content":"確定要刪除此工單嗎?","ticket.delete.failed":"工單刪除失敗","ticket.loading":"加載工單...","ticket.empty":"暫無工單","ticket.form.process":"流程","ticket.form.process.placeholder":"選擇流程","ticket.process.load.error":"加載流程失敗","ticket.action.claim":"認領","ticket.action.claim.success":"認領工單成功","ticket.action.process":"開始處理","ticket.action.process.success":"開始處理工單成功","ticket.action.resolve":"解決","ticket.action.resolve.success":"解決工單成功","ticket.action.pending":"待處理","ticket.action.pending.success":"設置工單為待處理成功","ticket.action.hold":"掛起","ticket.action.hold.success":"設置工單為掛起成功","ticket.action.resume":"繼續處理","ticket.action.resume.success":"繼續處理工單成功","ticket.action.close.success":"關閉工單成功","ticket.action.reopen.success":"重新打開工單成功","ticket.action.escalate":"升級","ticket.action.escalate.success":"升級工單成功","ticket.action.unclaim":"退回","ticket.action.unclaim.success":"退回工單成功","ticket.action.claim.confirm.title":"認領工單","ticket.action.claim.confirm.content":"確定要認領該工單嗎?","ticket.action.claim.loading":"認領中...","ticket.action.claim.error":"工單認領失敗","ticket.verify.title":"驗證工單","ticket.verify.content":"請驗證此工單","ticket.verify.pass":"通過","ticket.verify.reject":"不通過","ticket.verify.success":"工單驗證通過","ticket.verify.reject.success":"工單驗證未通過","ticket.verify.error":"工單驗證失敗","ticket.verify.later":"稍後決定","ticket.department.load.error":"加载部门失败","ticket.member.load.error":"加载部门成员失败","ticket.activity.history":"工单活动记录"},Etn={"contact.list.new":"新朋友","contact.list.device":"內網設備","contact.list.group":"群聊","contact.list.channel":"頻道","contact.list.company":"企業聯繫人","contact.list.friend":"聯繫人","contact.search.placeholder":"搜索聯繫人...","contact.manager.button":"通訊錄管理","contact.manager.coming":"敬請期待","member.detail.nickname":"暱稱","member.detail.jobno":"工號","member.detail.seatno":"座位號","member.detail.telephone":"電話","member.detail.loading":"加載中...","member.detail.chat.button":"開始聊天"},$tn={"group.create.title":"發起群聊","group.create.contacts":"好友","group.create.members":"群成員","group.create.members.min":"至少選擇2名成員","group.create.creating":"創建群組中...","group.create.org.empty":"未選擇組織","group.create.success":"創建群組成功","group.create.failed":"創建群組失敗","group.create.loading":"加載成員中...","group.create.error":"加載成員失敗"},Mtn={"robot.list.add":"添加智能體","robot.list.loading":"加載中","robot.list.delete.confirm":"刪除【{name}】?","robot.list.deleting":"刪除中","robot.list.delete.success":"刪除成功","robot.list.update.success":"更新成功","robot.list.create.success":"創建成功","robot.list.chat":"對話","robot.list.edit":"編輯","robot.list.delete":"刪除","robot.list.create":"創建"},Ttn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},Ptn={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.uploading":"{filename} 上傳中...","upload.success":"{filename} 上傳成功","upload.failed":"{filename} 上傳失敗","upload.delete.confirm":"確定要刪除此文件嗎?","upload.preview.image":"圖片預覽","upload.preview.file":"文件預覽","upload.button.ok":"確定","upload.button.cancel":"取消","upload.maxCount":"最多只能上傳 {maxCount} 個文件","upload.maxSize":"文件大小不能超過 {maxSize}MB"},Otn={"welcome.modal.title":"未發現所在組織","welcome.modal.description":"您需要創建或加入已有組織","welcome.modal.join":"加入已有組織(即將上線)","welcome.modal.create":"創建組織","welcome.modal.input.placeholder":"請輸入組織名稱","welcome.message.org.required":"請創建或加入組織","welcome.message.create.success":"創建組織成功","welcome.message.create.failed":"創建組織失敗","welcome.message.verify.email":"請先驗證郵箱","welcome.message.verify.mobile":"請先驗證手機號","welcome.message.org.name.required":"請輸入組織名稱","welcome.message.org.creating":"創建組織中,請稍後...","welcome.verify.modal.title":"賬號驗證提示","welcome.verify.modal.description":"您的郵箱和手機號尚未驗證,為保障賬號安全,建議您儘快完成驗證。","welcome.verify.now":"立即驗證","welcome.verify.later":"稍後驗證"},Rtn={...htn,...mtn,...gtn,...vtn,...ytn,...btn,...wtn,...ftn,...xtn,...ptn,...Stn,...Ctn,..._tn,...ktn,...dtn,...Etn,...$tn,...Mtn,...Ttn,...Ptn,...Otn},Itn={"app.title":"Bytedesk","app.logout":"Logout","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","footbar.network.normal":"Network Normal","footbar.network.disconnected":"Network Disconnected","footbar.anonymous.tip":"Anonymous mode, only supports communication between online devices in the same LAN","footbar.login.tip":"After login, supports offline messages and more features","footbar.login.skip":"Skip Login","footbar.anonymous.status":"Anonymous","footbar.login":"Login","footbar.logout":"Logout","footbar.logout.title":"Logout","footbar.logout.confirm":"Are you sure to logout?","footbar.serving.count":"Current serving count","footbar.serving.text":"Current serving: 0","category.form.title":"New Category","category.form.name":"category name","category.form.name.required":"please enter category name!"},jtn={"common.confirm":"Confirm","common.cancel":"Cancel","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","theme.light":"Light","theme.dark":"Dark","theme.system":"System","common.refresh":"Refresh"},Ntn={"chat.copy.success":"Copy successful","chat.network.error":"Network connection failed, please check network","chat.thread.closing":"Ending conversation...","chat.thread.close.success":"Conversation ended successfully","chat.thread.close.confirm.title":"Are you sure to end the conversation?","chat.rate.invite.confirm.title":"Confirm to invite rating?","chat.menu.copy":"Copy","chat.menu.translate":"Translate","chat.menu.recall":"Recall","chat.menu.enlarge":"Enlarge","chat.menu.quickreply.add":"Add Quick Reply...","chat.menu.browser.open":"Open in Browser","chat.menu.forward":"Forward...","chat.menu.collect":"Collect","chat.menu.quote":"Quote","chat.menu.ai":"Ask AI","chat.menu.quickreply.search":"Search Kbase","chat.translation.placeholder":"Please enter translation content...","chat.input.placeholder":"Please enter content, Ctrl+V to paste screenshot/image","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.screenshot":"Screenshot","chat.toolbar.autoreply":"Auto Reply","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Video Call","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.invite.rate":"Invite Rating","chat.navbar.transfer":"Transfer","chat.navbar.close":"End","chat.navbar.note":"Notebase","chat.navbar.kbase":"Knowledge Base","chat.right.quickreply":"Quick Reply","chat.right.userinfo":"User Info","chat.right.ai":"Copilot","chat.right.ticket":"Ticket","chat.right.llm":"LLM","chat.right.group":"Group Info","chat.right.member":"Member Info","chat.right.docview":"Doc View","chat.group.notice":"Notice","chat.group.members":"Members","chat.group.admins":"Admins","chat.group.robots":"Robots","chat.group.qrcode":"QR Code","chat.group.uid.error":"Group ID error","chat.header.group.unnamed":"Unnamed Group","chat.header.member.unnamed":"Unnamed Member","chat.header.robot.unnamed":"Unnamed Robot","chat.header.user.unnamed":"Unnamed User","chat.header.typing":"Typing...","chat.header.no.message":"No messages yet","chat.header.action.transfer":"Transfer","chat.header.action.invite":"Invite","chat.header.action.create.ticket":"Create Ticket","chat.header.action.close":"Close","chat.header.action.exit":"Exit","chat.header.type.not.supported":"Current chat type not supported"},Atn={"dashboard.error.message":"Failed to get data","dashboard.init.organization":"Initializing organization","dashboard.init.profile":"Initializing profile","dashboard.init.workgroups":"Initializing workgroups","dashboard.init.agent":"Initializing agent profile","dashboard.transfer.accept":"{nickname} has accepted the transfer","dashboard.transfer.reject":"{nickname} has rejected the transfer","dashboard.transfer.success":"Transfer request sent successfully, waiting for response"},Dtn={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.ai":"AI Assistant","menu.dashboard.note":"Notebase","menu.dashboard.kbase":"Knowledge","menu.dashboard.mine":"Settings","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Tickets","menu.dashboard.leavemsg":"Messages","menu.dashboard.visitor":"Visitors","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.dashboard.quality":"Quality","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon..."},Ftn={"profile.update.success":"Profile updated successfully","profile.form.avatar":"Avatar","profile.form.upload":"Upload","profile.form.username":"Username","profile.form.nickname":"Nickname","profile.form.description":"Description","profile.button.change.password":"Change Password","profile.button.change.email":"Change Email","profile.button.change.mobile":"Change Mobile","profile.email.verified":"Email Verified","profile.email.unverified":"Email Unverified","profile.mobile.verified":"Mobile Verified","profile.mobile.unverified":"Mobile Unverified","profile.email.change.title":"Change Email","profile.email.placeholder":"Enter email address","profile.email.required":"Please enter email address!","profile.email.format.invalid":"Invalid email format","profile.email.length.limit":"Email cannot exceed 50 characters","profile.email.verification.code.placeholder":"Enter verification code","profile.email.verification.code.countdown":"seconds","profile.email.verification.code.get":"Get Code","profile.email.verification.code.required":"Please enter verification code!","profile.email.not.changed":"Email is not changed!","profile.email.change.success":"Email changed successfully!","profile.email.format.error":"Invalid email format","profile.mobile.change.title":"Change Mobile","profile.mobile.placeholder":"Enter mobile number","profile.mobile.required":"Please enter mobile number!","profile.mobile.format.invalid":"Invalid mobile format","profile.mobile.verification.code.placeholder":"Enter verification code","profile.mobile.verification.code.countdown":"seconds","profile.mobile.verification.code.get":"Get Code","profile.mobile.verification.code.required":"Please enter verification code!","profile.mobile.not.changed":"Mobile number is not changed!","profile.mobile.change.success":"Mobile number changed successfully!","profile.mobile.format.error":"Invalid mobile format","profile.password.change.title":"Change Password","profile.password.old":"Old Password","profile.password.old.empty":"Old password can be empty for phone login users","profile.password.new":"New Password","profile.password.confirm":"Confirm Password","profile.password.length.error":"Password must be at least 6 characters","profile.password.mismatch":"The two passwords do not match","profile.password.change.success":"Password changed successfully!"},Ltn={"setting.menu.title":"Settings","setting.menu.profile":"Profile","setting.menu.basic":"Basic Settings","setting.menu.agent":"Agent Settings","setting.menu.model":"AI Model","setting.menu.certification":"Certification","setting.menu.qrcode":"QR Code","setting.menu.shortcut":"Shortcuts","setting.menu.click":"Menu clicked","setting.save.success":"Settings saved successfully","setting.save.error":"Failed to save settings","setting.load.error":"Failed to load settings","setting.header.profile":"Personal Profile","setting.header.basic":"Basic Settings","setting.header.agent":"Agent Settings","setting.header.model":"AI Model Settings","setting.basic.sound.on":"Message Sound On","setting.basic.sound.off":"Message Sound Off","setting.basic.notification.on":"Network Status Notification On","setting.basic.notification.off":"Network Status Notification Off","setting.basic.connection.status":"Connection Status:","setting.basic.connection.connected":"✅Connected","setting.basic.connection.disconnected":"❌Disconnected","setting.basic.startup":"Start on Boot:","setting.basic.startup.on":"Enable","setting.basic.startup.off":"Disable","setting.basic.theme":"Theme:","setting.basic.language":"Language:","setting.basic.mode":"Mode:","setting.basic.mode.team":"Team Mode","setting.basic.mode.agent":"Agent Mode","setting.basic.mode.personal":"Personal Mode"},Btn={"ticket.create.title":"Create Ticket","ticket.edit.title":"Edit Ticket","ticket.form.uid":"UID","ticket.form.title":"Title","ticket.form.title.required":"Please enter ticket title","ticket.form.title.placeholder":"Enter ticket title","ticket.form.description":"Description","ticket.form.description.required":"Please enter ticket description","ticket.form.description.placeholder":"Enter ticket description","ticket.form.status":"Status","ticket.form.status.required":"Please select ticket status","ticket.form.priority":"Priority","ticket.form.priority.required":"Please select priority","ticket.form.category":"Category","ticket.form.category.required":"Please select category","ticket.form.category.placeholder":"Select category","ticket.form.user":"Customer","ticket.form.user.placeholder":"Select customer","ticket.form.assignee":"Assignee","ticket.form.assignee.placeholder":"Select assignee","ticket.form.reporter":"Reporter","ticket.form.reporter.placeholder":"Select reporter","ticket.form.workgroup":"Workgroup","ticket.form.workgroup.required":"Please select workgroup","ticket.form.workgroup.placeholder":"Select workgroup","ticket.form.department":"Department","ticket.form.department.required":"Please select department","ticket.form.department.placeholder":"Select department","ticket.form.thread":"Related Conversation","ticket.form.thread.placeholder":"Select related conversation","ticket.form.thread.none":"No Association","ticket.create.success":"Ticket created successfully","ticket.create.failed":"Failed to create ticket","ticket.update.success":"Ticket updated successfully","ticket.update.failed":"Failed to update ticket","ticket.submit.error":"Failed to submit ticket","ticket.delete.success":"Ticket deleted successfully","ticket.delete.error":"Failed to delete ticket","ticket.load.error":"Failed to load tickets","ticket.messages.load.error":"Failed to load ticket messages","ticket.message.send.error":"Failed to send message","ticket.workgroup.load.error":"Failed to load workgroups","ticket.category.load.error":"Failed to load categories","ticket.submitting":"Ticket Submitting","ticket.list.title":"Tickets","ticket.list.empty":"No tickets found","ticket.list.search.placeholder":"Search tickets","ticket.list.create":"Create Ticket","ticket.list.total":"Total","ticket.action.edit":"Edit","ticket.action.delete":"Delete","ticket.action.assign":"Assign","ticket.action.close":"Close","ticket.action.reopen":"Reopen","ticket.action.verify":"Verify","ticket.action.verify.success":"Verify successfully","ticket.delete.confirm":"Are you sure to delete this ticket?","ticket.action.invite":"Invite","ticket.conversation.title":"Conversation","ticket.conversation.empty":"Select a ticket to view conversation","ticket.conversation.input.placeholder":"Type your message...","ticket.details.title":"Ticket Details","ticket.details.empty":"Select a ticket to view details","ticket.form.createdAt":"Created At","ticket.form.updatedAt":"Updated At","ticket.type.agent":"Agent","ticket.type.workgroup":"Workgroup","ticket.type.department":"Department","ticket.type":"Type","ticket.assignee":"Assignee","ticket.reporter":"Reporter","ticket.category":"Category","ticket.steps.title":"Processing Steps","ticket.form.upload.button":"Upload Attachments","ticket.upload.success":"File uploaded successfully","ticket.upload.failed":"File upload failed","ticket.current.filters":"Current Filters","ticket.filter.by.status":"Filter by Status","ticket.filter.by.priority":"Filter by Priority","ticket.filter.by.assignment":"Filter by Assignment","ticket.filter.by.time":"Filter by Time","ticket.filter.status_all":"All Status","ticket.filter.status_new":"Unassigned","ticket.filter.status_assigned":"Assigned","ticket.filter.status_claimed":"Claimed","ticket.filter.status_unclaimed":"Unclaimed","ticket.filter.status_processing":"In Progress","ticket.filter.status_pending":"Pending","ticket.filter.status_holding":"On Hold","ticket.filter.status_resumed":"Resumed ","ticket.filter.status_reopened":"Reopened","ticket.filter.status_resolved":"Resolved","ticket.filter.status_closed":"Closed","ticket.filter.status_cancelled":"Cancelled","ticket.filter.priority_all":"All Priority","ticket.filter.priority_lowest":"Lowest","ticket.filter.priority_low":"Low","ticket.filter.priority_medium":"Medium","ticket.filter.priority_high":"High","ticket.filter.priority_urgent":"Urgent","ticket.filter.priority_critical":"Critical","ticket.filter.assignment_all":"All","ticket.filter.assignment_my_tickets":"My Tickets","ticket.filter.assignment_unassigned":"Unassigned","ticket.filter.assignment_my_workgroup":"My Workgroup","ticket.filter.assignment_my_created":"Created by Me","ticket.filter.assignment_my_assigned":"Assigned to Me","ticket.filter.time_all":"All Time","ticket.filter.time_today":"Today","ticket.filter.time_yesterday":"Yesterday","ticket.filter.time_this_week":"This Week","ticket.filter.time_last_week":"Last Week","ticket.filter.time_this_month":"This Month","ticket.filter.time_last_month":"Last Month","ticket.content.title":"Ticket","ticket.content.number":"No.","ticket.delete.title":"Delete Ticket","ticket.delete.content":"Are you sure you want to delete this ticket?","ticket.delete.failed":"Failed to delete ticket","ticket.loading":"Loading tickets...","ticket.empty":"No tickets found","ticket.form.process":"Process","ticket.form.process.placeholder":"Select process","ticket.process.load.error":"Failed to load processes","ticket.status.label":"Status","ticket.status.new":"Unassigned","ticket.status.assigned":"Assigned","ticket.status.claimed":"Claimed","ticket.status.unclaimed":"Unclaimed","ticket.status.processing":"In Progress","ticket.status.pending":"Pending","ticket.status.holding":"Holding","ticket.status.resumed":"Resumed","ticket.status.reopened":"Reopened","ticket.status.resolved":"Resolved","ticket.status.escalated":"Escalated","ticket.status.closed":"Closed","ticket.status.cancelled":"Cancelled","ticket.action.claim":"Claim","ticket.action.claim.success":"Claim ticket","ticket.action.process":"Start Process","ticket.action.process.success":"Start process ticket","ticket.action.resolve":"Resolve","ticket.action.resolve.success":"Resolve ticket","ticket.action.pending":"Pending","ticket.action.pending.success":"Set ticket to pending","ticket.action.hold":"Hold","ticket.action.hold.success":"Set ticket to hold","ticket.action.resume":"Resume","ticket.action.resume.success":"Resume ticket","ticket.action.close.success":"Close ticket","ticket.action.reopen.success":"Reopen ticket","ticket.action.escalate":"Escalate","ticket.action.escalate.success":"Escalate ticket","ticket.action.unclaim":"Unclaim","ticket.action.unclaim.success":"Unclaim ticket","ticket.action.claim.confirm.title":"Claim Ticket","ticket.action.claim.confirm.content":"Are you sure you want to claim this ticket?","ticket.action.claim.loading":"Claiming ticket...","ticket.action.claim.error":"Failed to claim ticket","ticket.verify.title":"Verify Ticket","ticket.verify.content":"Please verify this ticket","ticket.verify.pass":"Pass","ticket.verify.reject":"Reject","ticket.verify.success":"Ticket verified successfully","ticket.verify.reject.success":"Ticket rejected successfully","ticket.verify.error":"Failed to verify ticket","ticket.verify.later":"Decide Later","ticket.priority.lowest":"Lowest","ticket.priority.low":"Low","ticket.priority.medium":"Medium","ticket.priority.high":"High","ticket.priority.urgent":"Urgent","ticket.priority.critical":"Critical","ticket.department.load.error":"Failed to load departments","ticket.member.load.error":"Failed to load members","ticket.activity.history":"Ticket Activity History"},ztn={i18_file_assistant:"File Assistant",slogan:"Chat As A Service","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Webrtc","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.screenshot":"Screenshot","chat.toolbar.invite.rate":"InviteRate","chat.toolbar.autoreply":"AutoReply","chat.toolbar.autoreply.on":"AutoReply(On)","chat.navbar.transfer":"Transfer","chat.navbar.ticket":"Ticket","chat.navbar.crm":"Crm","chat.navbar.close":"Close","chat.navbar.category":"Category","chat.navbar.ai":"AI","chat.navbar.queue":"Queue","chat.right.ai":"Copilot","chat.right.quickreply":"QuickReply","chat.right.ticket":"Ticket","chat.right.userinfo":"UserInfo","chat.right.llm":"Llm","chat.right.docview":"DocView","chat.right.group":"Group","chat.right.member":"Member","chat.ai.summary":"Thread Summary","chat.ai.switch":"Switch","chat.thread.nomore":"No More","chat.message.loadmore":"Load More","dashboard.footbar.logout":"Logout",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Knowledgebase Robot",QA:"QA Robot",AGENT_ASSISTANT:"Agent Asistant",loading:"Loading",create:"Create",creating:"Creating","create.success":"Create success","create.fail":"Create fail",update:"Update",updating:"Updating","update.success":"Update success","update.fail":"Update fail",save:"Save",saving:"Saving",email:"Email","email.verified":"Email Verified","email.unverified":"Email Unverified",mobile:"Mobile","mobile.verified":"Mobile Verified","mobile.unverified":"Mobile Unverified",captcha:"Captcha",logging:"Logging","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed","username.change.tip":"Username(should re login after changed)",createKb:"Create Knowledge Base",createDept:"Create Department",upload:"Upload",import:"Import",export:"Export","download.template":"Download Template",open:"Open",copy:"Copy","copy.success":"Copy success",ok:"OK",cancel:"Cancel",bind:"Bind",edit:"Edit",editing:"Editing","edit.success":"Edit success","edit.fail":"Edit fail",delete:"Delete",deleting:"Deleting",deleteTip:"Delete Tip",deleteAffirm:"Are u sure to delete","delete.success":"Delete success","delete.fail":"Delete fail","process.success":"Process success","process.fail":"Process fail",preview:"Preview",close:"Close",closing:"Closing",closeTip:"Close Tip",closeASure:"Are u sure to close","close.success":"Close success",choose:"Choose","leavemsg.enabled":"Leave Message Enabled",transfer:"Transfer","transfer.success":"Transfer success","transfer.fail":"Transfer fail","transfer.reason":"Transfer Reason",refresh:"Refresh",noAgent:"No Agent Available",invite:"Invite","invite.success":"Invite success","invite.fail":"Invite fail","invite.reason":"Invite Reason","invite.no.agent":"No Agent Available"},Htn={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},Utn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.all":"All","i18n.queue.tip":"Queue","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.queue.empty":"Queue empty","i18n.queue.accept":"accept","i18n.system.notification":"System Notification","i18n.old.password.wrong":"Old password is incorrect","i18n.change.password":"Change Password","i18n.auth.captcha.send.success":"Captcha Send success","i18n.auth.captcha.error":"Captcha Error","i18n.auth.captcha.expired":"Captcha Expired","i18n.auth.captcha.already.send":"Captcha Already Send","i18n.auth.captcha.validate.failed":"Captcha Validate Failed","i18n.DEPT_ALL":"All","i18n.DEPT_ADMIN":"Admin","i18n.DEPT_MEMBER":"Member","i18n.DEPT_CS":"CustomerService",ROLE_SUPER:"Super",ROLE_ADMIN:"Admin",ROLE_MEMBER:"Member",ROLE_AGENT:"Agent",ROLE_USER:"User",ROLE_VISITOR:"Visitor","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.loading":"Loading","i18n.load.more":"Load more","i18n.load.nomore":"No more","i18n.typing":"Typing","i18n.robot":"Robot","i18n.agent":"Agent","i18n.workgroup":"WorkGroup","i18n.group":"Group","i18n.rate.invite":"Rate Invite","i18n.ticket":"Ticket","i18n.ticket.thread":"Ticket Thread","i18n.notice":"Notice","i18n.notice.title":"Notice","i18n.notice.content":"Notice Content","i18n.notice.ip":"IP Address","i18n.notice.ipLocation":"IP Location","i18n.notice.parse.file.success":"Parse file success","i18n.notice.parse.file.error":"Parse file error","i18n.login_notification":"登录通知","i18n.login_time":"登录时间","i18n.login_ip":"登录IP","i18n.login_location":"登录地点","i18n.if_not_you_please_change_password":"如果这不是您的操作,请立即修改密码。","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.new.message":"New Message","i18n.file.assistant":"file assistant","i18n.clipboard.assistant":"clipboard assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.top.tip":"Top Tip","i18n.top.make":"Make Top","i18n.top.cancel":"Cancel Top","i18n.unread.make":"Mark as unread","i18n.unread.cancel":"Mark as read","i18n.star.make":"Make Star","i18n.star.cancel":"Cancel Star","i18n.disturb.make":"Make Disturb","i18n.disturb.cancel":"Cancel Disturb","i18n.transfer":"Transfer","i18n.hide":"Hide","i18n.network.disconnected":"Network disconnected","i18n.message.pulling":"Message pulling","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultRobotAgent","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.before.nickname":"BeforeWorkgroup","i18n.workgroup.after.nickname":"AfterWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.workgroup.before.description":"BeforeWorkgroup Description","i18n.workgroup.after.description":"AfterWorkgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.tip.title":"Tip","i18n.tip.network.disconnected":"Network disconnected","i18n.tip.network.connected":"Network connected","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpcenter.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.online.chat":"Online Chat","i18n.JOB":"Job","i18n.LANGUAGE":"Language","i18n.TOOL":"Tool","i18n.WRITING":"Writing","i18n.RAG":"RAG","i18n.module.ai":"AI","i18n.module.void":"Void","i18n.module.service":"Service","i18n.module.ticket":"Ticket","i18n.black.user.already.exists":"User already blocked","i18n.ticket.category.technical_support":"Technical Support","i18n.ticket.category.service_request":"Service Request","i18n.ticket.category.consultation":"Consultation","i18n.ticket.category.complaint_suggestion":"Complaint Suggestion","i18n.ticket.category.operation_maintenance":"Operation Maintenance","i18n.ticket.category.other":"Other","i18n.vip.component":"VIP Component, Contact us for more details","i18n.vip.contactUs":"Contact us","i18n.vip.contactUrl":"https://www.bytedesk.com","i18n.ticket.process.name.group":"WorkGroup Process","i18n.ticket.process.name.group.simple":"WorkGroup Simple Process","i18n.ticket.process.name.agent":"Agent Process","i18n.username.or.password.incorrect":"Username or password incorrect","i18n.system_notification":"System Notification","i18n.transfer_notification":"Transfer Request","i18n.transfer_accepted":"Transfer Accepted","i18n.transfer_rejected":"Transfer Rejected","i18n.transfer_timeout":"Transfer Request Timeout","i18n.transfer_cancelled":"Transfer Cancelled","i18n.confirm_accept_transfer":"Confirm Accept Transfer","i18n.confirm_accept_transfer_desc":"Are you sure to accept the transfer request?","i18n.confirm_reject_transfer":"Confirm Reject Transfer","i18n.confirm_reject_transfer_desc":"Are you sure to reject the transfer request?","i18n.confirm_cancel_transfer":"Confirm Cancel Transfer","i18n.confirm_cancel_transfer_desc":"Are you sure to cancel the transfer request?","i18n.transfer.notice.title":"Transfer Notice","i18n.transfer.notice.content":"Transfer Notice Content","i18n.transfer.accept.notice.title":"Transfer Accept Notice","i18n.transfer.accept.notice.content":"Transfer Accept Notice Content","i18n.transfer.reject.notice.title":"Transfer Reject Notice","i18n.transfer.reject.notice.content":"Transfer Reject Notice Content","i18n.transfer.timeout.notice.title":"Transfer Timeout Notice","i18n.transfer.timeout.notice.content":"Transfer Timeout Notice Content","i18n.transfer.cancel.notice.title":"Transfer Cancel Notice","i18n.transfer.cancel.notice.content":"Transfer Cancel Notice Content","i18n.already.in.transfer.pending.state":"Already in transfer pending state","i18n.already.in.transfer.accepted.state":"Already in transfer accepted state","i18n.already.in.transfer.rejected.state":"Already in transfer rejected state","i18n.already.in.transfer.timeout.state":"Already in transfer timeout state","i18n.already.in.transfer.canceled.state":"Already in transfer canceled state","i18n.invite_notification":"Invite Request","i18n.invite_accepted":"Invite Accepted","i18n.invite_rejected":"Invite Rejected","i18n.invite_timeout":"Invite Request Timeout","i18n.invite_cancelled":"Invite Cancelled","i18n.confirm_accept_invite":"Confirm Accept Invite","i18n.confirm_accept_invite_desc":"Are you sure to accept the invite request?","i18n.confirm_reject_invite":"Confirm Reject Invite","i18n.confirm_reject_invite_desc":"Are you sure to reject the invite request?","i18n.visitor_invite_notification":"Visitor Invite","i18n.visitor_invite_accepted":"Visitor Invite Accepted","i18n.visitor_invite_rejected":"Visitor Invite Rejected","i18n.visitor_invite_timeout":"Visitor Invite Timeout","i18n.visitor_invite_cancelled":"Visitor Invite Cancelled","i18n.group_invite_notification":"Group Invite","i18n.group_invite_accepted":"Group Invite Accepted","i18n.group_invite_rejected":"Group Invite Rejected","i18n.group_invite_timeout":"Group Invite Timeout","i18n.group_invite_cancelled":"Group Invite Cancelled","i18n.kbase_invite_notification":"Knowledge Base Invite","i18n.kbase_invite_accepted":"Knowledge Base Invite Accepted","i18n.kbase_invite_rejected":"Knowledge Base Invite Rejected","i18n.kbase_invite_timeout":"Knowledge Base Invite Timeout","i18n.kbase_invite_cancelled":"Knowledge Base Invite Cancelled","i18n.organization_invite_notification":"Organization Invite","i18n.organization_invite_accepted":"Organization Invite Accepted","i18n.organization_invite_rejected":"Organization Invite Rejected","i18n.organization_invite_timeout":"Organization Invite Timeout","i18n.organization_invite_cancelled":"Organization Invite Cancelled","i18n.from":"From","i18n.to":"To","i18n.note":"Note","i18n.status":"Status","i18n.time":"Time","i18n.inviter":"Inviter","i18n.invitee":"Invitee","i18n.visitor":"Visitor","i18n.group_name":"Group Name","i18n.kbase_name":"Knowledge Base Name","i18n.organization_name":"Organization Name","i18n.auto.close.tip":"The conversation has been automatically closed","i18n.agent.close.tip":"The conversation has been closed by the agent","i18n.accept":"Accept","i18n.reject":"Reject","i18n.user.signup.first":"Please sign up first","i18n.email.signup.first":"Please verify your email first","i18n.mobile.signup.first":"Please verify your mobile first","i18n.resource.not.found":"Resource not found","i18n.user.disabled":"User is disabled","i18n.forbidden.access":"Forbidden access","i18n.user.blocked":"User is blocked","i18n.sensitive.content":"Sensitive content detected","i18n.message.processing.failed":"Message processing failed","i18n.null.pointer.exception":"Null pointer exception","i18n.response.status.exception":"Response status exception","i18n.websocket.timeout.exception":"WebSocket timeout exception","i18n.http.method.not.supported":"HTTP method not supported","i18n.authorization.denied":"Authorization denied","i18n.request.rejected":"Request rejected","i18n.entity.not.found":"Entity not found","i18n.internal.server.error":"Internal server error"},Wtn={"login.privacy.required":"Please read and agree to the privacy agreement","login.privacy.agreement":"Agree to Privacy Agreement","login.switch.server":"Switch Server","login.success":"Login successful","login.failed":"Login failed","login.anonymous":"Anonymous Login","login.other.methods":"Other login methods","login.remember":"Remember me","login.forgot":"Forgot password?","login.register":"Register account","server.button.back":"Back","server.button.save":"Save","server.button.reset":"Reset","server.button.help":"Help","server.save.success":"Save successfully","server.reset.success":"Reset successfully, restored to default cloud server","server.custom.enable":"Enable Custom Server","server.api.url.label":"API Server URL (e.g. http://127.0.0.1:9003 or https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket Server URL (e.g. ws://127.0.0.1:9885/websocket or wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"Please enter correct server address"},Vtn={"thread.error.message":"Failed to get data","thread.feature.unavailable":"TODO: This feature is not available yet","thread.menu.top":"Pin to Top","thread.menu.untop":"Unpin","thread.menu.read":"Mark as Read","thread.menu.unread":"Mark as Unread","thread.menu.mute":"Mute","thread.menu.unmute":"Unmute","thread.menu.transfer":"Transfer","thread.menu.block":"Block","thread.menu.remark":"Remark","thread.menu.ticket":"Create Ticket","thread.menu.crm":"View in CRM","thread.menu.summary":"Summary","thread.status.robot":"[Robot]","thread.status.agent":"[1-on-1]","thread.status.workgroup":"[Group]","thread.search.placeholder":"Search conversations...","thread.menu.filter":"Filter Threads","thread.menu.groupThread":"Group Thread","thread.menu.robotThread":"Robot Thread","thread.menu.workgroupThread":"Workgroup Thread","thread.menu.agentThread":"Agent Thread","thread.menu.ticketThread":"Ticket Thread","thread.menu.memberThread":"Member Thread","thread.menu.deviceThread":"Device Thread","thread.menu.systemThread":"System Thread","thread.status.loading":"Loading...","thread.status.empty":"No conversations","thread.status.error":"Failed to load conversations","thread.status.queue":"Queue ({count})","thread.status.network.offline":"Network disconnected","thread.status.network.online":"Network connected","thread.status.message.pulling":"Pulling messages...","thread.status.message.empty":"No messages","thread.status.message.error":"Failed to load messages","thread.status.message.end":"No more messages","thread.status.message.typing":"Typing...","thread.status.message.transfer":"Transferring...","thread.status.message.transferred":"Transferred","thread.status.message.closed":"Conversation closed","thread.dropdown.create.group":"Create Group Chat","thread.dropdown.create.ai":"Create AI Chat","thread.agent.status.online":"Online","thread.agent.status.offline":"Offline","thread.agent.status.busy":"Busy","thread.refresh.pull":"↓ Pull to refresh","thread.refresh.release":"↑ Release to refresh","thread.list.no.more":"No more data","thread.set.success":"Set successfully","thread.set.error":"Set failed","thread.menu.star":"Star","thread.menu.star.1":"Star Level 1","thread.menu.star.2":"Star Level 2","thread.menu.star.3":"Star Level 3","thread.menu.star.4":"Star Level 4","thread.menu.hide":"Hide","thread.status.text":"{status}","thread.status.online":"Online","thread.status.offline":"Offline","thread.status.busy":"🏃‍♀️Busy","thread.coming.soon":"Coming soon...","thread.menu.star.cancel":"Remove Star","thread.loading.more":"Loading more..."},qtn={"message.status.read":"Read","message.status.delivered":"Delivered","message.status.sending":"Sending","message.status.sent":"Sent","message.status.failed":"Failed to send","message.status.retry":"Retry","quickreply.search.placeholder":"Search","quickreply.button.send":"Send","quickreply.button.copy":"Copy","quickreply.button.create.category":"Create Category","quickreply.button.create.reply":"Create Quick Reply","quickreply.copy.success":"{content} copied to clipboard","category.form.edit.title":"Edit Category","category.form.create.title":"Create Category","category.form.name":"Category Name","category.form.name.required":"Please enter category name!","category.form.name.placeholder":"Enter category name","category.create.failed":"Failed to create category","quickreply.drawer.title":"{isEdit, select, true {Edit Quick Reply} other {New Quick Reply}}","quickreply.form.category":"Category","quickreply.form.category.required":"Please select a category","quickreply.form.category.placeholder":"Select a category","quickreply.form.type":"Type","quickreply.form.type.required":"Please select a type","quickreply.form.type.placeholder":"Select a type","quickreply.form.title":"Title","quickreply.form.title.required":"Please enter a title","quickreply.form.content":"Content","quickreply.type.text":"Text","quickreply.type.image":"Image","quickreply.type.video":"Video","quickreply.type.audio":"Audio","quickreply.type.file":"File","quickreply.upload.text":"Click or drag file to upload","quickreply.upload.success":"{filename} uploaded successfully","quickreply.upload.error":"{filename} upload failed","quickreply.upload.uploading":"{filename} uploading","quickreply.form.validate.error":"Please check the form"},Ktn={"customer.info.basic":"Basic Info","customer.info.browser":"Browser Info","customer.info.os":"OS Info","customer.info.device":"Device Info","customer.info.browse.record":"Browse Record","customer.info.tag":"Tag Info","customer.info.extra":"Extra Info","customer.info.load.error":"Failed to load visitor info","customer.info.add.crm":"Add to CRM","customer.info.add.tag":"Add Tag","customer.basic.nickname":"Nickname","customer.basic.location":"IP Location","customer.basic.note":"Note","customer.basic.client":"Client","customer.basic.status":"Status","customer.basic.empty":"N/A","black.title":"Block Settings","black.type":"Block Type","black.type.required":"Please select at least one block type","black.user":"Block User","black.ip":"Block IP","black.permanent":"Permanent Block","black.until":"Block Until","black.until.required":"Please select block end time","black.reason":"Block Reason","black.reason.required":"Please enter block reason","black.success":"Block successfully"},Gtn={"contact.list.new":"New Friends","contact.list.device":"LAN Devices","contact.list.group":"Groups","contact.list.channel":"Channels","contact.list.company":"Company Contacts","contact.list.friend":"Contacts","contact.search.placeholder":"Search contacts...","contact.manager.button":"Contact Manager","contact.manager.coming":"Coming soon...","member.detail.nickname":"Nickname","member.detail.jobno":"Job No.","member.detail.seatno":"Seat No.","member.detail.telephone":"Telephone","member.detail.loading":"Loading...","member.detail.chat.button":"Start Chat"},Ytn={"autoreply.title":"Auto Reply","autoreply.enable.label":"Enable Auto Reply","autoreply.type.label":"Auto Reply Type","autoreply.type.fixed":"Fixed Reply","autoreply.type.keyword":"Keyword Match","autoreply.type.llm":"AI Model Reply","autoreply.fixed.add":"Add Fixed Reply","autoreply.fixed.select":"Select Fixed Reply","autoreply.fixed.type":"Fixed Reply Type","autoreply.fixed.content":"Fixed Reply Content","autoreply.content.text":"Text","autoreply.content.image":"Image","autoreply.content.video":"Video","autoreply.content.audio":"Audio","autoreply.content.file":"File","autoreply.save.loading":"Saving...","autoreply.save.success":"Saved successfully","autoreply.save.error":"Failed to save","autoreply.keyword.add":"Add Keyword Knowledge Base","autoreply.keyword.select":"Select Keyword Knowledge Base","autoreply.llm.add":"Add AI Model Knowledge Base","autoreply.llm.select":"Select AI Model Knowledge Base"},Xtn={"queue.accepting":"Accepting...","queue.accept.success":"Accepted successfully","queue.accept.failed":"Failed to accept","queue.accept":"Accept","queue.empty":"No queuing visitors","queue.loading":"Loading queue...","queue.error":"Failed to load queue","queue.count":"{count} visitors queuing","queue.wait.time":"Estimated wait time: {minutes} minutes"},Ztn={"group.create.title":"Create Group Chat","group.create.contacts":"Contacts","group.create.members":"Members","group.create.members.min":"Please select at least 2 members","group.create.creating":"Creating group...","group.create.org.empty":"No organization selected","group.create.success":"Group created successfully","group.create.failed":"Failed to create group","group.create.loading":"Loading members...","group.create.error":"Failed to load members"},Qtn={"upload.modal.title":"Upload Files","upload.drag.text":"Click or drag files here to upload","upload.drag.hint":"Support for single or bulk upload","upload.uploading":"{filename} uploading...","upload.success":"{filename} uploaded successfully","upload.failed":"{filename} upload failed","upload.delete.confirm":"Are you sure to delete this file?","upload.preview.image":"Image Preview","upload.preview.file":"File Preview","upload.button.ok":"OK","upload.button.cancel":"Cancel","upload.maxCount":"Cannot upload more than {maxCount} files","upload.maxSize":"File size cannot exceed {maxSize}MB"},Jtn={"robot.list.add":"Add AI Agent","robot.list.chat":"Chat","robot.list.edit":"Edit","robot.list.delete":"Delete","robot.list.create":"Create"},enn={"welcome.modal.title":"No Organization Found","welcome.modal.description":"You need to create or join an organization","welcome.modal.join":"Join Organization (Coming Soon)","welcome.modal.create":"Create Organization","welcome.modal.input.placeholder":"Please enter organization name","welcome.message.org.required":"Please create or join an organization","welcome.message.create.success":"Organization created successfully","welcome.message.create.failed":"Failed to create organization","welcome.message.verify.email":"Please verify your email first","welcome.message.verify.mobile":"Please verify your mobile number first","welcome.message.org.name.required":"Please enter organization name","welcome.message.org.creating":"Creating organization, please wait...","welcome.verify.modal.title":"Account Verification","welcome.verify.modal.description":"Your email and mobile number have not been verified. For account security, we recommend completing verification as soon as possible.","welcome.verify.now":"Verify Now","welcome.verify.later":"Verify Later"},tnn={...Itn,...jtn,...Ntn,...Atn,...Dtn,...Ftn,...Ltn,...Btn,...ztn,...Htn,...Utn,...Wtn,...Vtn,...qtn,...Ktn,...Gtn,...Ytn,...Xtn,...Ztn,...Qtn,...Jtn,...enn},nnn={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},PSe={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},ya={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ss={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},wp={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class tn{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=tn.getVersionPrecision(t),a=tn.getVersionPrecision(n);let o=Math.max(i,a),s=0;const l=tn.map([t,n],c=>{const u=o-tn.getVersionPrecision(c),f=c+new Array(u+1).join(".0");return tn.map(f.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=o-Math.min(i,a)),o-=1;o>=s;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===s)return 0;o-=1}else if(l[0][o]{r[l]=o[l]})}return t}static getBrowserAlias(t){return nnn[t]}static getBrowserTypeByAlias(t){return PSe[t]||""}}const xi=/version\/(\d+(\.?_?\d+)+)/i,rnn=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=tn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=tn.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=tn.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=tn.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=tn.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=tn.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=tn.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=tn.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=tn.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=tn.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=tn.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=tn.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=tn.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=tn.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=tn.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=tn.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=tn.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=tn.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=tn.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=tn.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=tn.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=tn.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=tn.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=tn.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=tn.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=tn.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=tn.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:tn.getFirstMatch(i,e),version:tn.getSecondMatch(i,e)}}}],inn=[{test:[/Roku\/DVP/],describe(e){const t=tn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ss.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=tn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ss.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=tn.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=tn.getWindowsVersionName(t);return{name:ss.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:ss.iOS},n=tn.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=tn.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=tn.getMacOSVersionName(t),r={name:ss.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=tn.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ss.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=tn.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=tn.getAndroidVersionName(t),r={name:ss.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=tn.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:ss.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=tn.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||tn.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||tn.getFirstMatch(/\bbb(\d+)/i,e);return{name:ss.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=tn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ss.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=tn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ss.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:ss.Linux}}},{test:[/CrOS/],describe(){return{name:ss.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=tn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ss.PlayStation4,version:t}}}],ann=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=tn.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:ya.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:ya.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:ya.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:ya.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:ya.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:ya.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:ya.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=tn.getFirstMatch(/(ipod|iphone)/i,e);return{type:ya.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:ya.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:ya.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:ya.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:ya.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:ya.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:ya.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:ya.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:ya.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:ya.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:ya.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:ya.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:ya.tv}}}],onn=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:wp.Blink};const n=tn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:wp.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:wp.Trident},n=tn.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:wp.Presto},n=tn.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:wp.Gecko},n=tn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:wp.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:wp.WebKit},n=tn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class Mie{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=tn.find(rnn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=tn.find(inn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=tn.find(ann,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=tn.find(onn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return tn.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let a=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(i[s]=l,a+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=tn.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=tn.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(a>0){const s=Object.keys(i),l=tn.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const a=tn.getBrowserTypeByAlias(i);return n&&a&&(i=a.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const a=this.getBrowserVersion();if(typeof a=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(tn.compareVersions(a,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! +`,Aen=()=>{const{groupUid:e}=$dt(),t=rs(),n=()=>{const i=[];for(let a=0;a<50;a++){const o={left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,animationDelay:`${Math.random()*2}s`};i.push(x.jsx(Nen,{style:o},a))}return i},r=()=>{console.log("Accept invite:",e),t("/chat?groupUid="+e)};return x.jsxs(Oen,{children:[n(),x.jsx(Ren,{children:x.jsxs(Xr,{direction:"vertical",size:"large",style:{width:"100%"},children:[x.jsx(Ien,{children:x.jsx(az,{})}),x.jsxs("div",{children:[x.jsx(kie,{level:4,children:"Korey (koreyspace) 邀请您加入"}),x.jsx(kie,{level:3,children:"Bytedesk AI Community"})]}),x.jsxs(Xr,{direction:"vertical",size:"small",style:{width:"100%"},children:[x.jsxs(Eie,{children:[x.jsx("span",{style:{color:"#3ba55c"},children:"● "}),"1,343 人在线"]}),x.jsxs(Eie,{children:[x.jsx("span",{style:{color:"#747f8d"},children:"● "}),"16,449 位成员"]})]}),x.jsx(jen,{type:"primary",size:"large",onClick:r,children:"接受邀请"})]})})]})},{Sider:Den,Content:Fen}=Qn,Len=[{key:"grp",label:"质检",type:"group",children:[{key:"13",label:"当前在线"},{key:"14",label:"已离线"}]}],Ben=()=>{const{leftSiderStyle:e,leftSiderWidth:t}=co(),n=r=>{console.log("click ",r)};return x.jsx(x.Fragment,{children:x.jsxs(Qn,{children:[x.jsx(Den,{style:e,width:t,children:x.jsx(ks,{onClick:n,mode:"inline",items:Len})}),x.jsx(Qn,{children:x.jsx(Fen,{children:"质检"})})]})})};function zen({children:e}){const{isLoggedIn:t}=d.useContext(Ea),n=n1();return t?e:x.jsx(zdt,{to:"/auth/login",replace:!0,state:{from:n}})}const Hen=[{path:"/",element:x.jsx(x.Fragment,{children:x.jsx(zen,{children:x.jsx(DQt,{})})}),children:[{path:"/",element:x.jsx(ZA,{})},{path:"/chat",element:x.jsx(ZA,{})},{path:"/contact",element:x.jsx(Oxe,{})},{path:"/robot",element:x.jsx(OJt,{})},{path:"/ticket",element:x.jsx(Fxe,{})},{path:"/leavemsg",element:x.jsx(mJt,{})},{path:"/notebase",element:x.jsx(Men,{})},{path:"monitor",element:x.jsx(bJt,{})},{path:"quality",element:x.jsx(Ben,{})},{path:"/plugins",element:x.jsx(aJt,{}),children:[{path:"/plugins",element:x.jsx(pie,{})},{path:"/plugins/collect",element:x.jsx(pie,{})},{path:"/plugins/task",element:x.jsx(QQt,{})},{path:"/plugins/note",element:x.jsx(JQt,{})},{path:"/plugins/clipboard",element:x.jsx(eJt,{})}]},{path:"/setting",element:x.jsx(Rxe,{}),children:[{path:"/setting",element:x.jsx(fie,{})},{path:"/setting/profile",element:x.jsx(fie,{})},{path:"/setting/agentProfile",element:x.jsx(LJt,{})},{path:"/setting/memberProfile",element:x.jsx(uJt,{})},{path:"/setting/basic",element:x.jsx(tJt,{})},{path:"/setting/certification",element:x.jsx(DJt,{})},{path:"/setting/qrcode",element:x.jsx(oJt,{})},{path:"/setting/shortcut",element:x.jsx(sJt,{})},{path:"/setting/model",element:x.jsx(SJt,{})}]}]},{path:"/auth",element:x.jsx(FQt,{}),children:[{path:"/auth",element:x.jsx(fA,{isModel:!1})},{path:"/auth/login",element:x.jsx(fA,{isModel:!1})},{path:"/auth/register",element:x.jsx(kNt,{})},{path:"/auth/server",element:x.jsx(rwe,{})}]},{path:"/anonymous",element:x.jsx(gen,{}),children:[{path:"/anonymous",element:x.jsx(lD,{})},{path:"/anonymous/home",element:x.jsx(lD,{})},{path:"/anonymous/contact",element:x.jsx(ben,{})},{path:"/anonymous/robot",element:x.jsx(Sen,{})},{path:"/anonymous/setting",element:x.jsx(ken,{})}]},{path:"/invite/:groupUid",element:x.jsx(Aen,{})},{path:"/enlarge",element:x.jsx(dJt,{})},{path:"*",element:x.jsx(lJt,{})}],$Se=!1;console.log("router isElectron:",$Se);let MSe;console.log("isElectron web:",$Se),MSe=Ydt(Hen,{basename:"/agent",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const Uen=MSe,Wen={i18_file_assistant:"文件助手",slogan:"对话即服务","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"客服助手","chat.right.quickreply":"快捷回复/知识库","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服机器人(对外)",MARKETING:"营销机器人(对外)",KNOWLEDGEBASE:"知识库机器人(内部)",QA:"问答机器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"加载中",create:"创建",creating:"创建中...","create.success":"创建成功","create.fail":"创建失败",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失败",save:"保存",saving:"正在保存...",email:"邮箱","email.verified":"邮箱(已验证)","email.unverified":"邮箱(待验证)",mobile:"手机号","mobile.verified":"手机号(已验证)","mobile.unverified":"手机号(待验证)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登录用户名(修改用户名之后,需要重新登录)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"导入",export:"导出","download.template":"下载模板",open:"打开",copy:"复制","copy.success":"复制成功",ok:"确定",cancel:"取消",bind:"绑定",edit:"编辑",editing:"修改中...","edit.success":"修改成功","edit.fail":"修改失败",delete:"删除",deleting:"删除中...",deleteTip:"删除提示",deleteAffirm:"确定要删除","delete.success":"删除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"预览",close:"关闭",closing:"关闭中...",closeTip:"关闭提示",closeASure:"确定要关闭","close.success":"关闭成功",choose:"选择","leavemsg.enabled":"留言启用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"暂无客服在线",invite:"邀请","invite.success":"邀请成功","invite.fail":"邀请失败","invite.reason":"邀请原因","invite.no.agent":"暂无客服在线"},Ven={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"聊天","menu.dashboard.contact":"联系人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"笔记","menu.dashboard.kbase":"知识库","menu.dashboard.mine":"设置","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.quality":"质检","menu.settings":"设置","menu.settings.logout":"登出","menu.agent.status":"客服状态","menu.agent.status.available":"在线","menu.agent.status.rest":"小休","menu.agent.status.offline":"离线","menu.language":"语言","menu.mode":"模式","menu.mode.team":"团队模式","menu.mode.personal":"个人模式","menu.mode.agent":"客服模式","menu.agent.offline.warning":"请在离线前结束所有正在進行中的会话","menu.mode.personal.coming":"即将推出..."},qen={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复/知识库","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},Ken={"app.title":"微语","app.logout":"登出","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","app.name":"微语客服","app.description":"新一代智能客服系统","app.welcome":"欢迎使用微语客服系统","app.copyright":"© 2024 微语客服. 保留所有权利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"确认","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"编辑","app.action.delete":"删除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"设置","app.action.help":"帮助","app.tip.loading":"加载中...","app.tip.success":"操作成功","app.tip.error":"操作失败","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"确认要执行此操作吗?","app.tip.nodata":"暂无数据","app.tip.network.error":"网络连接失败","app.tip.server.error":"服务器错误","app.status.online":"在线","app.status.offline":"离线","app.status.busy":"忙碌","app.status.away":"离开","app.status.invisible":"隐身","app.status.disabled":"已禁用","app.status.expired":"已过期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"刚刚","app.time.minutes":"{count} 分钟前","app.time.hours":"{count} 小时前","app.time.days":"{count} 天前","app.file.upload":"上传文件","app.file.download":"下载文件","app.file.preview":"预览文件","app.file.size.limit":"文件大小不能超过 {size}","app.file.type.unsupported":"不支持的文件类型","app.file.upload.success":"上传成功","app.file.upload.failed":"上传失败","app.file.download.success":"下载成功","app.file.download.failed":"下载失败","app.layout.sidebar.collapse":"收起侧边栏","app.layout.sidebar.expand":"展开侧边栏","app.layout.header.profile":"个人中心","app.layout.header.logout":"退出登录","app.layout.footer.copyright":"版权所有","app.layout.footer.terms":"服务条款","app.layout.footer.privacy":"隐私政策","category.form.title":"新建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!"},Gen={"auth.login.title":"登录","auth.login.subtitle":"欢迎使用微语客服系统","auth.login.username":"用户名","auth.login.username.required":"请输入用户名","auth.login.password":"密码","auth.login.password.required":"请输入密码","auth.login.remember":"记住密码","auth.login.forgot":"忘记密码?","auth.login.submit":"登录","auth.login.other":"其他登录方式","auth.login.register":"注册账号","auth.login.success":"登录成功","auth.login.failed":"登录失败","auth.register.title":"注册","auth.register.subtitle":"创建新账号","auth.register.username":"用户名","auth.register.username.required":"请输入用户名","auth.register.email":"邮箱","auth.register.email.required":"请输入邮箱","auth.register.password":"密码","auth.register.password.required":"请输入密码","auth.register.confirm":"确认密码","auth.register.confirm.required":"请确认密码","auth.register.submit":"注册","auth.register.login":"已有账号?登录","auth.register.success":"注册成功","auth.register.failed":"注册失败","auth.forgot.title":"忘记密码","auth.forgot.subtitle":"重置密码","auth.forgot.email":"邮箱","auth.forgot.email.required":"请输入邮箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登录","auth.forgot.success":"重置密码邮件已发送","auth.forgot.failed":"重置密码失败","auth.reset.title":"重置密码","auth.reset.subtitle":"设置新密码","auth.reset.password":"新密码","auth.reset.password.required":"请输入新密码","auth.reset.confirm":"确认密码","auth.reset.confirm.required":"请确认新密码","auth.reset.submit":"提交","auth.reset.success":"密码重置成功","auth.reset.failed":"密码重置失败","auth.verify.code":"验证码","auth.verify.code.required":"请输入验证码","auth.verify.code.send":"发送验证码","auth.verify.code.resend":"重新发送","auth.verify.code.success":"验证码发送成功","auth.verify.code.failed":"验证码发送失败","auth.password.strength.weak":"密码强度:弱","auth.password.strength.medium":"密码强度:中","auth.password.strength.strong":"密码强度:强","auth.agreement.text":"我已阅读并同意","auth.agreement.terms":"服务条款","auth.agreement.privacy":"隐私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"帮助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢复默认云服务器","server.custom.enable":"启用自定义服务器","server.api.url.label":"API服务器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服务器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"请输入正确的服务器地址"},Yen={"chat.title":"会话","chat.empty":"暂无会话","chat.loading":"加载中...","chat.load.error":"加载失败","chat.load.more":"加载更多","chat.no.more":"没有更多了","chat.refresh":"刷新","chat.status.connecting":"连接中...","chat.status.connected":"已连接","chat.status.disconnected":"连接断开","chat.status.reconnecting":"重新连接中...","chat.network.error":"网络连接失败,请检查网络","chat.thread.closing":"结束会话中...","chat.thread.close.success":"结束会话成功","chat.thread.close.failed":"结束会话失败","chat.thread.close.confirm.title":"确定要结束会话?","chat.rate.invite.confirm.title":"确认要邀请评价?","chat.message.send.failed":"发送失败","chat.message.resend":"重新发送","chat.message.recall":"撤回消息","chat.message.copy.success":"复制成功","chat.copy.success":"复制成功","chat.menu.copy":"复制","chat.menu.translate":"翻译","chat.menu.recall":"撤回","chat.menu.enlarge":"放大阅读","chat.menu.quickreply.add":"添加快捷回复...","chat.menu.browser.open":"浏览器打开","chat.menu.forward":"转发...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.menu.ai":"问AI","chat.menu.quickreply.search":"搜索知识库","chat.input.placeholder":"请输入内容, Ctrl+V 粘贴截图/图片","chat.translation.placeholder":"请输入翻译内容...","chat.input.send":"发送","chat.input.sending":"发送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截图","chat.toolbar.autoreply":"自动回复","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频会话","chat.toolbar.history":"历史","chat.toolbar.block":"拉黑","chat.toolbar.invite.rate":"邀请评价","chat.navbar.transfer":"转接","chat.navbar.close":"结束","chat.navbar.note":"笔记","chat.navbar.kbase":"知识库","chat.right.quickreply":"快捷回复/知识库","chat.right.userinfo":"访客信息","chat.right.ai":"AI助手","chat.right.ticket":"工单","chat.right.llm":"大模型","chat.right.group":"群组信息","chat.right.member":"成员信息","chat.right.docview":"文档查看","chat.upload.size.limit":"文件大小不能超过 {size}","chat.upload.type.unsupported":"不支持的文件类型","chat.upload.failed":"上传失败","chat.upload.success":"上传成功","chat.upload.progress":"上传中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"来电...","chat.webrtc.connected":"通话中...","chat.webrtc.ended":"通话结束","chat.webrtc.rejected":"对方拒绝","chat.webrtc.busy":"对方忙","chat.webrtc.failed":"通话失败","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒绝","chat.webrtc.hangup":"挂断","chat.group.notice":"群公告","chat.group.members":"群成员","chat.group.admins":"管理员","chat.group.robots":"机器人","chat.group.qrcode":"二维码","chat.group.uid.error":"群组ID错误","chat.header.group.unnamed":"未命名群组","chat.header.member.unnamed":"未命名成员","chat.header.robot.unnamed":"未命名机器人","chat.header.user.unnamed":"未命名用户","chat.header.typing":"正在输入...","chat.header.no.message":"暂无消息","chat.header.action.transfer":"转接","chat.header.action.invite":"邀请","chat.header.action.create.ticket":"创建工单","chat.header.action.close":"结束","chat.header.action.exit":"退出","chat.header.type.not.supported":"当前聊天类型不支持"},Xen={"common.confirm":"确认","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"删除","common.edit":"编辑","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加载中...","common.success":"操作成功","common.failed":"操作失败","common.error":"错误","common.warning":"警告","common.info":"提示","common.status.online":"在线","common.status.offline":"离线","common.status.busy":"忙碌","common.status.away":"离开","common.status.invisible":"隐身","common.operation.success":"操作成功","common.operation.failed":"操作失败","common.operation.confirm":"确认要执行此操作吗?","common.operation.processing":"处理中...","common.operation.completed":"处理完成","common.operation.error":"处理出错","common.form.required":"此项为必填项","common.form.optional":"选填","common.form.invalid":"输入无效","common.form.validate.error":"表单验证失败","common.form.validate.success":"表单验证通过","common.refresh":"刷新"},Zen={"customer.list.title":"客户列表","customer.list.empty":"暂无客户","customer.list.loading":"加载中...","customer.list.load.error":"加载失败","customer.list.load.more":"加载更多","customer.list.no.more":"没有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"昵称","customer.info.gender":"性别","customer.info.age":"年龄","customer.info.birthday":"生日","customer.info.mobile":"手机号","customer.info.email":"邮箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"职位","customer.info.remark":"备注","customer.info.tags":"标签","customer.info.extra":"其他信息","customer.info.source":"来源","customer.info.created":"创建时间","customer.info.updated":"更新时间","customer.status.online":"在线","customer.status.offline":"离线","customer.status.away":"离开","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"编辑","customer.action.delete":"删除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"转移","customer.action.merge":"合并","customer.action.export":"导出","customer.form.name":"姓名","customer.form.name.required":"请输入姓名","customer.form.nickname":"昵称","customer.form.gender":"性别","customer.form.age":"年龄","customer.form.birthday":"生日","customer.form.mobile":"手机号","customer.form.email":"邮箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"职位","customer.form.remark":"备注","customer.form.tags":"标签","customer.form.source":"来源","customer.create.success":"客户创建成功","customer.create.failed":"客户创建失败","customer.update.success":"客户更新成功","customer.update.failed":"客户更新失败","customer.delete.success":"客户删除成功","customer.delete.failed":"客户删除失败","customer.block.success":"客户拉黑成功","customer.block.failed":"客户拉黑失败","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失败","customer.transfer.success":"客户转移成功","customer.transfer.failed":"客户转移失败","customer.merge.success":"客户合并成功","customer.merge.failed":"客户合并失败","customer.export.success":"客户导出成功","customer.export.failed":"客户导出失败","black.title":"拉黑设置","black.type":"拉黑类型","black.type.required":"请选择至少一种拉黑类型","black.user":"拉黑用户","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"请选择拉黑截至时间","black.reason":"拉黑原因","black.reason.required":"请输入拉黑原因","black.reason.placeholder":"请输入拉黑原因","black.success":"拉黑成功","customer.info.browser":"浏览器信息","customer.info.os":"操作系统信息","customer.info.device":"设备信息","customer.info.browse.record":"浏览记录","customer.info.tag":"标签信息","customer.info.load.error":"加载访客信息失败","customer.basic.title":"基本信息","customer.basic.nickname":"昵称","customer.basic.empty":"无","customer.basic.edit":"编辑","customer.basic.update.success":"更新成功","customer.basic.update.failed":"更新失败","customer.basic.note":"备注"},Qen={"dashboard.error.message":"获取数据失败","dashboard.init.organization":"初始化组织","dashboard.init.profile":"初始化个人信息","dashboard.init.workgroups":"初始化工作组","dashboard.init.agent":"初始化客服信息","dashboard.transfer.accept":"{nickname} 已接受转接","dashboard.transfer.reject":"{nickname} 已拒绝转接","dashboard.transfer.success":"转接请求已发送,等待对方响应"},Jen={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁体中文","i18n.all":"全部","i18n.queue.tip":"排队队列","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.queue.empty":"暂无排队用户","i18n.queue.accept":"接入","i18n.system.notification":"系统通知","i18n.old.password.wrong":"旧密码错误","i18n.change.password":"修改密码","i18n.auth.captcha.send.success":"验证码发送成功","i18n.auth.captcha.error":"验证码错误","i18n.auth.captcha.expired":"验证码过期","i18n.auth.captcha.already.send":"验证码已经发送,请等待","i18n.auth.captcha.validate.failed":"验证码验证失败","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在输入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀请评价","i18n.ticket":"[工单]","i18n.ticket.thread":"[工单会话]","i18n.DEPT_ALL":"全部","i18n.DEPT_ADMIN":"管理部","i18n.DEPT_CS":"客服部",ROLE_SUPER:"超级管理员",ROLE_ADMIN:"管理员",ROLE_MEMBER:"成员",ROLE_AGENT:"客服",ROLE_USER:"用户",ROLE_VISITOR:"访客","i18n.notice":"通知","i18n.notice.title":"标题","i18n.notice.content":"内容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.login_notification":"登录通知","i18n.login_time":"登录时间","i18n.login_ip":"登录IP","i18n.login_location":"登录地点","i18n.if_not_you_please_change_password":"如果这不是您的操作,请立即修改密码。","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理员","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技术部","i18n.DEPT.MONEY":"财务部","i18n.DEPT.MARKETING":"市场部","i18n.DEPT.SALES":"销售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.top.tip":"默认置顶语","i18n.top.make":"置顶","i18n.top.cancel":"取消置顶","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开-123","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"无客服在线,请留言","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.before.nickname":"售前技能组","i18n.workgroup.after.nickname":"售后技能组","i18n.workgroup.description":"默认技能组描述","i18n.workgroup.before.description":"售前技能组描述","i18n.workgroup.after.description":"售后技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开-123","i18n.tip.network.connected":"网络已连接-123","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的话请您提供一下您的联系电话","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.online.chat":"在线客服","i18n.JOB":"工作","i18n.LANGUAGE":"语言","i18n.TOOL":"工具","i18n.WRITING":"写作","i18n.RAG":"知识库问答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工单","i18n.black.user.already.exists":"用户已拉黑","i18n.ticket.category.technical_support":"技术支持","i18n.ticket.category.service_request":"服务请求","i18n.ticket.category.consultation":"咨询","i18n.ticket.category.complaint_suggestion":"投诉建议","i18n.ticket.category.operation_maintenance":"运维","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP组件, 联系我们了解更多详情","i18n.vip.contactUs":"联系我们","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name.group":"技能组流程","i18n.ticket.process.name.group.simple":"技能组简易流程","i18n.ticket.process.name.agent":"一对一流程","i18n.username.or.password.incorrect":"用户名或密码错误","i18n.system_notification":"系统通知","i18n.transfer_notification":"会话转接请求","i18n.transfer_accepted":"会话转接已接受","i18n.transfer_rejected":"会话转接已拒绝","i18n.transfer_timeout":"会话转接请求超时","i18n.transfer_cancelled":"会话转接已取消","i18n.confirm_accept_transfer":"确定接受转接","i18n.confirm_accept_transfer_desc":"确定接受转接请求吗?","i18n.confirm_reject_transfer":"确定拒绝转接","i18n.confirm_reject_transfer_desc":"确定拒绝转接请求吗?","i18n.confirm_cancel_transfer":"确定取消转接","i18n.confirm_cancel_transfer_desc":"确定取消转接请求吗?","i18n.transfer.notice.title":"会话转接","i18n.transfer.notice.content":"客服希望将您的会话转接给其他客服","i18n.transfer.accept.notice.title":"转接已接受","i18n.transfer.accept.notice.content":"会话转接请求已被接受","i18n.transfer.reject.notice.title":"转接已拒绝","i18n.transfer.reject.notice.content":"会话转接请求已被拒绝","i18n.transfer.timeout.notice.title":"转接已超时","i18n.transfer.timeout.notice.content":"会话转接请求已超时","i18n.transfer.cancel.notice.title":"转接已取消","i18n.transfer.cancel.notice.content":"会话转接请求已取消","i18n.already.in.transfer.pending.state":"会话已处于转接等待状态","i18n.already.in.transfer.accepted.state":"会话已处于转接接受状态","i18n.already.in.transfer.rejected.state":"会话已处于转接拒绝状态","i18n.already.in.transfer.timeout.state":"会话已处于转接超时状态","i18n.already.in.transfer.canceled.state":"会话已处于转接取消状态","i18n.invite_notification":"邀请请求","i18n.invite_accepted":"邀请已接受","i18n.invite_rejected":"邀请已拒绝","i18n.invite_timeout":"邀请请求超时","i18n.invite_cancelled":"邀请已取消","i18n.confirm_accept_invite":"确定接受邀请","i18n.confirm_accept_invite_desc":"确定接受邀请请求吗?","i18n.confirm_reject_invite":"确定拒绝邀请","i18n.confirm_reject_invite_desc":"确定拒绝邀请请求吗?","i18n.visitor_invite_notification":"访客邀请","i18n.visitor_invite_accepted":"访客邀请已接受","i18n.visitor_invite_rejected":"访客邀请已拒绝","i18n.visitor_invite_timeout":"访客邀请超时","i18n.visitor_invite_cancelled":"访客邀请已取消","i18n.group_invite_notification":"群组邀请","i18n.group_invite_accepted":"群组邀请已接受","i18n.group_invite_rejected":"群组邀请已拒绝","i18n.group_invite_timeout":"群组邀请超时","i18n.group_invite_cancelled":"群组邀请已取消","i18n.kbase_invite_notification":"知识库邀请","i18n.kbase_invite_accepted":"知识库邀请已接受","i18n.kbase_invite_rejected":"知识库邀请已拒绝","i18n.kbase_invite_timeout":"知识库邀请超时","i18n.kbase_invite_cancelled":"知识库邀请已取消","i18n.organization_invite_notification":"组织邀请","i18n.organization_invite_accepted":"组织邀请已接受","i18n.organization_invite_rejected":"组织邀请已拒绝","i18n.organization_invite_timeout":"组织邀请超时","i18n.organization_invite_cancelled":"组织邀请已取消","i18n.from":"来自","i18n.to":"至","i18n.note":"备注","i18n.status":"状态","i18n.time":"时间","i18n.inviter":"邀请人","i18n.invitee":"被邀请人","i18n.visitor":"访客","i18n.group_name":"群组名称","i18n.kbase_name":"知识库名称","i18n.organization_name":"组织名称","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.accept":"接受","i18n.reject":"拒绝","i18n.user.signup.first":"请先注册","i18n.email.signup.first":"请先验证邮箱","i18n.mobile.signup.first":"请先验证手机号","i18n.resource.not.found":"资源未找到","i18n.user.disabled":"用户已被禁用","i18n.forbidden.access":"禁止访问","i18n.user.blocked":"用户已被封禁","i18n.sensitive.content":"检测到敏感内容","i18n.message.processing.failed":"消息处理失败","i18n.null.pointer.exception":"空指针异常","i18n.response.status.exception":"响应状态异常","i18n.websocket.timeout.exception":"WebSocket超时异常","i18n.http.method.not.supported":"不支持的HTTP方法","i18n.authorization.denied":"授权被拒绝","i18n.request.rejected":"请求被拒绝","i18n.entity.not.found":"实体未找到","i18n.internal.server.error":"服务器内部错误"},etn={"message.type.text":"文本消息","message.type.image":"图片消息","message.type.file":"文件消息","message.type.voice":"语音消息","message.type.video":"视频消息","message.type.location":"位置消息","message.type.link":"链接消息","message.type.card":"卡片消息","message.type.system":"系统消息","message.type.notification":"通知消息","message.type.custom":"自定义消息","message.status.sending":"发送中","message.status.sent":"已发送","message.status.delivered":"已送达","message.status.read":"已读","message.status.failed":"发送失败","message.status.recalled":"已撤回","message.status.deleted":"已删除","message.action.send":"发送","message.action.recall":"撤回","message.action.delete":"删除","message.action.resend":"重新发送","message.action.forward":"转发","message.action.quote":"引用","message.action.copy":"复制","message.action.translate":"翻译","message.action.download":"下载","message.action.preview":"预览","message.tip.sending":"消息发送中...","message.tip.sent":"消息已发送","message.tip.delivered":"消息已送达","message.tip.read":"消息已读","message.tip.failed":"消息发送失败","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已删除","message.tip.copy.success":"复制成功","message.tip.download.start":"开始下载...","message.tip.download.success":"下载成功","message.tip.download.failed":"下载失败","message.input.placeholder":"请输入消息","message.input.send.button":"发送","message.input.emoji.button":"表情","message.input.image.button":"图片","message.input.file.button":"文件","message.input.voice.button":"语音","message.input.video.button":"视频","message.input.location.button":"位置","message.list.load.more":"加载更多","message.list.loading":"加载中...","message.list.no.more":"没有更多消息","message.list.empty":"暂无消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相关消息","message.time.just":"刚刚","message.time.minutes":"{count}分钟前","message.time.hours":"{count}小时前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}个月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超过 {size}","message.file.type.unsupported":"不支持的文件类型","message.file.uploading":"上传中...","message.file.download":"下载文件","message.file.preview":"预览文件","message.image.loading":"图片加载中","message.image.load.error":"图片加载失败","message.image.save":"保存图片","message.image.save.success":"图片保存成功","message.image.save.failed":"图片保存失败","quickreply.search.placeholder":"搜索","quickreply.button.send":"发送","quickreply.button.copy":"复制","quickreply.button.create.category":"创建分类","quickreply.button.create.reply":"创建快捷回复","quickreply.copy.success":"{content} 已复制到剪贴板","category.form.edit.title":"编辑分类","category.form.create.title":"创建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!","category.form.name.placeholder":"输入分类名称","category.create.failed":"创建分类失败","quickreply.drawer.title":"快捷回复","quickreply.form.category":"分类","quickreply.form.category.required":"请选择分类","quickreply.form.category.placeholder":"选择分类","quickreply.form.type":"类型","quickreply.form.type.required":"请选择类型","quickreply.form.type.placeholder":"选择类型","quickreply.form.title":"标题","quickreply.form.title.required":"请输入标题","quickreply.form.content":"内容","quickreply.type.text":"文本","quickreply.type.image":"图片","quickreply.type.video":"视频","quickreply.type.audio":"音频","quickreply.type.file":"文件","quickreply.upload.text":"点击或拖拽文件上传","quickreply.upload.success":"{filename} 上传成功","quickreply.upload.error":"{filename} 上传失败","quickreply.upload.uploading":"{filename} 上传中","quickreply.form.validate.error":"请检查表单"},ttn={"profile.update.success":"个人信息更新成功","profile.form.avatar":"头像","profile.form.upload":"上传","profile.form.username":"用户名","profile.form.nickname":"昵称","profile.form.description":"描述","profile.button.change.password":"修改密码","profile.button.change.email":"修改邮箱","profile.button.change.mobile":"修改手机号","profile.email.verified":"邮箱已验证","profile.email.unverified":"邮箱未验证","profile.mobile.verified":"手机已验证","profile.mobile.unverified":"手机未验证","profile.email.change.title":"修改邮箱","profile.email.placeholder":"请输入邮箱地址","profile.email.required":"请输入邮箱地址!","profile.email.format.invalid":"邮箱格式不正确","profile.email.length.limit":"邮箱不得超过50字符","profile.email.verification.code.placeholder":"请输入验证码","profile.email.verification.code.countdown":"秒后重新获取","profile.email.verification.code.get":"获取验证码","profile.email.verification.code.required":"请输入验证码!","profile.email.not.changed":"邮箱未更改!","profile.email.change.success":"邮箱修改成功!","profile.email.format.error":"邮箱格式错误","profile.mobile.change.title":"修改手机号","profile.mobile.placeholder":"请输入手机号","profile.mobile.required":"请输入手机号!","profile.mobile.format.invalid":"手机号格式错误!","profile.mobile.verification.code.placeholder":"请输入验证码","profile.mobile.verification.code.countdown":"秒后重新获取","profile.mobile.verification.code.get":"获取验证码","profile.mobile.verification.code.required":"请输入验证码!","profile.mobile.not.changed":"手机号未更改!","profile.mobile.change.success":"手机号修改成功!","profile.mobile.format.error":"手机号格式错误","profile.password.change.title":"修改密码","profile.password.old":"原密码","profile.password.old.empty":"手机号直接登录用户,可以留空","profile.password.new":"新密码","profile.password.confirm":"确认密码","profile.password.length.error":"密码最小长度不能小于6","profile.password.mismatch":"两次输入密码不一致","profile.password.change.success":"密码修改成功!"},ntn={"setting.menu.title":"设置","setting.menu.profile":"个人信息","setting.menu.basic":"基本设置","setting.menu.agent":"客服设置","setting.menu.model":"大模型","setting.menu.certification":"实名认证","setting.menu.qrcode":"二维码","setting.menu.shortcut":"快捷键","setting.menu.click":"菜单点击","setting.save.success":"设置保存成功","setting.save.error":"设置保存失败","setting.load.error":"设置加载失败","setting.header.profile":"个人信息","setting.header.basic":"基本设置","setting.header.agent":"客服设置","setting.header.model":"大模型设置","setting.basic.sound.on":"已开启消息提示音","setting.basic.sound.off":"已关闭消息提示音","setting.basic.notification.on":"已开启网络状态通知","setting.basic.notification.off":"已关闭网络状态通知","setting.basic.connection.status":"长链接状态:","setting.basic.connection.connected":"✅连接正常","setting.basic.connection.disconnected":"❌连接断开","setting.basic.startup":"开机启动:","setting.basic.startup.on":"开机启动","setting.basic.startup.off":"不开机启动","setting.basic.theme":"颜色主题:","setting.basic.language":"语言设置:","setting.basic.mode":"模式设置:","setting.basic.mode.team":"团队模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"个人模式"},rtn={"thread.error.message":"获取数据失败","thread.feature.unavailable":"TODO: 该功能暂未开放","thread.menu.top":"置顶","thread.menu.untop":"取消置顶","thread.menu.read":"标记已读","thread.menu.unread":"标记未读","thread.menu.mute":"静音","thread.menu.unmute":"取消静音","thread.menu.transfer":"转接","thread.menu.block":"拉黑","thread.menu.unblock":"取消拉黑","thread.menu.remark":"备注","thread.menu.ticket":"创建工单","thread.menu.crm":"查看CRM","thread.menu.summary":"会话总结","thread.status.robot":"[机器人]","thread.status.agent":"[一对一]","thread.status.workgroup":"[工作组]","thread.search.placeholder":"搜索会话...","thread.menu.filter":"会话过滤","thread.menu.groupThread":"群聊会话","thread.menu.robotThread":"机器人会话","thread.menu.workgroupThread":"工作组会话","thread.menu.agentThread":"一对一会话","thread.menu.ticketThread":"工单会话","thread.menu.memberThread":"成员会话","thread.menu.deviceThread":"设备会话","thread.menu.systemThread":"系统会话","thread.dropdown.create.group":"创建群聊","thread.dropdown.create.ai":"创建AI对话","thread.agent.status.online":"😀 - 在线接待","thread.agent.status.offline":"🔻 - 客服下线","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 松开刷新","thread.list.no.more":"没有更多了","thread.coming.soon":"即将上线,敬请期待","thread.set.success":"设置成功","thread.set.error":"设置失败","thread.menu.star":"星标","thread.menu.star.1":"星标1","thread.menu.star.2":"星标2","thread.menu.star.3":"星标3","thread.menu.star.4":"星标4","thread.menu.hide":"隐藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下线","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加载中...","thread.status.empty":"暂无会话","thread.status.error":"加载会话失败","thread.status.queue":"排队({count})","thread.status.network.offline":"网络已断开-234","thread.status.network.online":"网络已连接-234","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暂无消息","thread.status.message.error":"加载消息失败","thread.status.message.end":"没有更多消息","thread.status.message.typing":"正在输入...","thread.status.message.transfer":"转接中...","thread.status.message.transferred":"已转接","thread.status.message.closed":"会话已关闭","thread.menu.star.cancel":"取消星标","thread.loading.more":"加载更多..."},itn={"ticket.create.title":"创建工单","ticket.edit.title":"编辑工单","ticket.form.uid":"编号","ticket.form.title":"标题","ticket.form.title.required":"请输入工单标题","ticket.form.title.placeholder":"请输入工单标题","ticket.form.description":"描述","ticket.form.description.required":"请输入工单描述","ticket.form.description.placeholder":"请输入工单描述","ticket.form.status":"状态","ticket.form.status.required":"请选择工单状态","ticket.form.priority":"优先级","ticket.form.priority.required":"请选择优先级","ticket.form.category":"分类","ticket.form.category.required":"请选择工单分类","ticket.form.category.placeholder":"请选择工单分类","ticket.form.user":"客户","ticket.form.user.placeholder":"请选择客户","ticket.form.assignee":"处理人","ticket.form.assignee.placeholder":"请选择处理人","ticket.form.reporter":"报告人","ticket.form.reporter.placeholder":"请选择报告人","ticket.form.workgroup":"技能组","ticket.form.workgroup.required":"请选择技能组","ticket.form.workgroup.placeholder":"请选择技能组","ticket.form.department":"部门","ticket.form.department.required":"请选择部门","ticket.form.department.placeholder":"请选择部门","ticket.workgroup.load.error":"加载技能组失败","ticket.status.all":"全部状态","ticket.status.new":"待认领","ticket.status.assigned":"已分配","ticket.status.claimed":"已认领","ticket.status.unclaimed":"被退回","ticket.status.processing":"处理中","ticket.status.pending":"待处理","ticket.status.holding":"挂起","ticket.status.resumed":"恢复","ticket.status.reopened":"重新打开","ticket.status.resolved":"已解决","ticket.status.closed":"已关闭","ticket.status.cancelled":"已取消","ticket.status.label":"状态","ticket.status.escalated":"已升级","ticket.status.verified_ok":"验证通过","ticket.status.verified_failed":"验证失败","ticket.priority.all":"全部优先级","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"紧急","ticket.priority.critical":"严重","ticket.create.success":"工单创建成功","ticket.create.failed":"工单创建失败","ticket.update.success":"工单更新成功","ticket.update.failed":"工单更新失败","ticket.submit.error":"工单提交失败","ticket.delete.success":"工单删除成功","ticket.delete.error":"工单删除失败","ticket.load.error":"工单数据加载失败","ticket.submitting":"提交工单中...","ticket.list.title":"工单列表","ticket.list.empty":"暂无工单","ticket.list.search.placeholder":"搜索工单","ticket.list.filter.all":"全部工单","ticket.list.filter.my":"我的工单","ticket.list.filter.unassigned":"未分配","ticket.list.create":"创建工单","ticket.list.total":"工单总数","ticket.action.edit":"编辑","ticket.action.delete":"删除","ticket.action.assign":"分配","ticket.action.close":"关闭","ticket.action.reopen":"重新打开","ticket.action.verify":"验证","ticket.action.verify.success":"验证成功","ticket.delete.confirm":"确定要删除此工单吗?","ticket.category.load.error":"加载工单分类失败","ticket.action.invite":"邀请","ticket.conversation.title":"工单对话","ticket.conversation.empty":"请选择工单查看对话","ticket.conversation.input.placeholder":"请输入消息...","ticket.details.title":"工单详情","ticket.details.empty":"请选择工单查看详情","ticket.messages.load.error":"加载工单消息失败","ticket.message.send.error":"发送消息失败","ticket.form.thread":"关联会话","ticket.form.thread.placeholder":"选择关联会话","ticket.form.thread.none":"不关联","ticket.form.createdAt":"创建时间","ticket.form.updatedAt":"更新时间","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能组","ticket.type.department":"部门","ticket.assignee":"处理人","ticket.reporter":"报告人","ticket.type":"类型","ticket.category":"分类","ticket.steps.title":"流转过程","ticket.form.upload.button":"上传附件","ticket.upload.success":"文件上传成功","ticket.upload.failed":"文件上传失败","ticket.current.filters":"当前筛选","ticket.filter.by.status":"按状态筛选","ticket.filter.by.priority":"按优先级筛选","ticket.filter.by.assignment":"按分配筛选","ticket.filter.by.time":"按时间筛选","ticket.filter.status_all":"全部状态","ticket.filter.status_new":"待认领","ticket.filter.status_assigned":"已分配","ticket.filter.status_claimed":"已认领","ticket.filter.status_unclaimed":"被退回","ticket.filter.status_processing":"处理中","ticket.filter.status_pending":"待处理","ticket.filter.status_holding":"挂起","ticket.filter.status_resumed":"恢复","ticket.filter.status_reopened":"重新打开","ticket.filter.status_resolved":"已解决","ticket.filter.status_escalated":"已升级","ticket.filter.status_closed":"已关闭","ticket.filter.status_cancelled":"已取消","ticket.filter.status_verified_ok":"已验证","ticket.filter.status_verified_failed":"验证失败","ticket.filter.status_verified_pending":"验证中","ticket.filter.priority_all":"全部优先级","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"紧急","ticket.filter.priority_critical":"严重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工单","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能组","ticket.filter.assignment_my_created":"我创建的","ticket.filter.assignment_my_assigned":"待我处理","ticket.filter.time_all":"全部时间","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本周","ticket.filter.time_last_week":"上周","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工单","ticket.content.number":"编号","ticket.delete.title":"删除工单","ticket.delete.content":"确定要删除此工单吗?","ticket.delete.failed":"工单删除失败","ticket.loading":"加载工单...","ticket.empty":"暂无工单","ticket.form.process":"流程","ticket.form.process.placeholder":"选择流程","ticket.process.load.error":"加载流程失败","ticket.action.claim":"认领","ticket.action.claim.success":"认领工单成功","ticket.action.process":"开始处理","ticket.action.process.success":"开始处理工单成功","ticket.action.resolve":"解决","ticket.action.resolve.success":"解决工单成功","ticket.action.pending":"待处理","ticket.action.pending.success":"设置工单为待处理成功","ticket.action.hold":"挂起","ticket.action.hold.success":"挂起成功","ticket.action.resume":"继续处理","ticket.action.resume.success":"继续处理工单成功","ticket.action.close.success":"关闭工单成功","ticket.action.reopen.success":"重新打开工单成功","ticket.action.escalate":"升级","ticket.action.escalate.success":"升级工单成功","ticket.action.unclaim":"退回","ticket.action.unclaim.success":"退回工单成功","ticket.action.claim.confirm.title":"认领工单","ticket.action.claim.confirm.content":"确定要认领该工单吗?","ticket.action.claim.loading":"认领中...","ticket.action.claim.error":"工单认领失败","ticket.verify.title":"验证工单","ticket.verify.content":"请验证此工单","ticket.verify.pass":"通过","ticket.verify.reject":"不通过","ticket.verify.success":"工单验证通过","ticket.verify.reject.success":"工单验证未通过","ticket.verify.error":"工单验证失败","ticket.verify.later":"稍后决定","create.title":"創建工單","edit.title":"編輯工單","form.title":"標題","form.description":"描述","form.status":"狀態","form.priority":"優先級","form.category":"分類","form.category.placeholder":"請選擇分類","form.department":"部門","form.department.placeholder":"請選擇部門","form.assignee":"處理人","form.assignee.placeholder":"請選擇處理人","form.thread":"會話","form.thread.placeholder":"請選擇會話","form.thread.none":"無","form.process":"流程","form.process.placeholder":"請選擇流程","form.upload.button":"上傳文件","status.new":"新建","status.claimed":"已認領","status.processing":"處理中","status.pending":"待處理","status.holding":"掛起","status.reopened":"重新打開","status.resolved":"已解決","status.closed":"已關閉","status.cancelled":"已取消","priority.lowest":"最低","priority.low":"低","priority.medium":"中","priority.high":"高","priority.urgent":"緊急","priority.critical":"嚴重","create.success":"工單創建成功","create.failed":"工單創建失敗","update.success":"工單更新成功","update.failed":"工單更新失敗","submit.error":"工單提交失敗",submitting:"正在提交工單...","category.load.error":"加載分類失敗","department.load.error":"加載部門失敗","member.load.error":"加載成員失敗","process.load.error":"加載流程失敗","ticket.department.load.error":"加载部门失败","ticket.member.load.error":"加载部门成员失败","ticket.activity.history":"工单活动记录"},atn={"contact.list.new":"新朋友","contact.list.device":"内网设备","contact.list.group":"群聊","contact.list.channel":"频道","contact.list.company":"企业联系人","contact.list.friend":"联系人","contact.search.placeholder":"搜索联系人...","contact.manager.button":"通讯录管理","contact.manager.coming":"敬请期待","member.detail.nickname":"昵称","member.detail.jobno":"工号","member.detail.seatno":"座位号","member.detail.telephone":"电话","member.detail.loading":"加载中...","member.detail.chat.button":"开始聊天"},otn={"group.create.title":"发起群聊","group.create.contacts":"好友","group.create.members":"群成员","group.create.members.min":"至少选择2名成员","group.create.creating":"创建群组中...","group.create.org.empty":"未选择组织","group.create.success":"创建群组成功","group.create.failed":"创建群组失败","group.create.loading":"加载成员中...","group.create.error":"加载成员失败"},stn={"robot.create.title":"创建机器人","robot.create.available":"可选机器人","robot.create.selected":"已选机器人","robot.create.success":"创建机器人成功","robot.create.failed":"创建机器人失败","robot.create.loading":"创建机器人中...","robot.create.error":"加载机器人失败","robot.create.empty":"暂无可用机器人","robot.create.min":"请至少选择一个机器人","robot.list.add":"添加机器人","robot.list.chat":"聊天","robot.list.edit":"编辑","robot.list.delete":"删除"},ltn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},ctn={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.uploading":"{filename} 上传中...","upload.success":"{filename} 上传成功","upload.failed":"{filename} 上传失败","upload.delete.confirm":"确定要删除此文件吗?","upload.preview.image":"图片预览","upload.preview.file":"文件预览","upload.button.ok":"确定","upload.button.cancel":"取消","upload.maxCount":"最多只能上传 {maxCount} 个文件","upload.maxSize":"文件大小不能超过 {maxSize}MB"},utn={"welcome.modal.title":"未发现所在组织","welcome.modal.description":"您需要创建或加入已有组织","welcome.modal.join":"加入已有组织(即将上线)","welcome.modal.create":"创建组织","welcome.modal.input.placeholder":"请输入组织名称","welcome.message.org.required":"请创建或加入组织","welcome.message.create.success":"创建组织成功","welcome.message.create.failed":"创建组织失败","welcome.message.verify.email":"请先验证邮箱","welcome.message.verify.mobile":"请先验证手机号","welcome.message.org.name.required":"请输入组织名称","welcome.message.org.creating":"创建组织中,请稍后...","welcome.verify.modal.title":"账号验证提示","welcome.verify.modal.description":"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。","welcome.verify.now":"立即验证","welcome.verify.later":"稍后验证"},dtn={...Ken,...Gen,...Yen,...Xen,...Zen,...Qen,...Jen,...Ven,...etn,...qen,...ttn,...ntn,...rtn,...itn,...Wen,...atn,...otn,...stn,...ltn,...ctn,...utn},ftn={i18_file_assistant:"檔案助手",slogan:"对话即服务","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"客服助手","chat.right.quickreply":"快捷回复/知识库","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服機器人",MARKETING:"營銷機器人",KNOWLEDGEBASE:"知識庫機器人(内部)",QA:"問答機器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"載入中",create:"新增",creating:"新增中...","create.success":"新增成功","create.fail":"新增失敗",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失敗",save:"儲存",saving:"正在儲存...",email:"電子郵件","email.verified":"電子郵件(已驗證)","email.unverified":"電子郵件(待驗證)",mobile:"手機號碼","mobile.verified":"手機號碼(已驗證)","mobile.unverified":"手機號碼(待驗證)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登入用戶名(修改用戶名之後,需要重新登入)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"匯入",export:"匯出","download.template":"下载模板",open:"開啟",copy:"複製","copy.success":"複製成功",ok:"確定",cancel:"取消",bind:"綁定",edit:"編輯",editing:"編輯中...","edit.success":"編輯成功","edit.fail":"編輯失敗",delete:"刪除",deleting:"删除中...",deleteTip:"刪除提示",deleteAffirm:"確定要刪除","delete.success":"刪除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"預覽",close:"關閉",closing:"關閉中...",closeTip:"關閉提示",closeASure:"確定要關閉","close.success":"關閉成功",choose:"選擇","leavemsg.enabled":"留言啟用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"无客服在线",invite:"邀请","invite.success":"邀请成功","invite.fail":"邀请失败","invite.reason":"邀请原因","invite.no.agent":"无客服在线"},ptn={"menu.anonymous.title":"匿名模式","menu.anonymous.home":"訊息","menu.anonymous.contact":"聯絡人","menu.anonymous.robot":"機器人","menu.anonymous.setting":"設定","menu.anonymous.status":"匿名狀態","menu.anonymous.status.tip":"匿名模式僅支援同一區域網內的在線設備之間的通訊","menu.anonymous.login.tip":"登入以訪問離線訊息和更多功能","menu.anonymous.login":"登入","menu.anonymous.current.users":"當前用戶","menu.dashboard.chat":"聊天","menu.dashboard.contact":"聯絡人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"筆記","menu.dashboard.kbase":"知識庫","menu.dashboard.mine":"設定","menu.dashboard.queue":"排隊","menu.dashboard.ticket":"工單","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"訪客","menu.dashboard.monitor":"監控","menu.dashboard.plugins":"插件","menu.dashboard.quality":"質檢","menu.settings":"設定","menu.settings.logout":"登出","menu.agent.status":"客服狀態","menu.agent.status.available":"可用","menu.agent.status.rest":"休息","menu.agent.status.offline":"離線","menu.language":"語言","menu.mode":"模式","menu.mode.team":"團隊模式","menu.mode.agent":"一對一模式","menu.mode.personal":"個人模式","menu.agent.offline.warning":"請在離線前結束所有正在進行中的會話","menu.mode.personal.coming":"即將推出..."},htn={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},mtn={"app.title":"微語","app.logout":"登出","app.copyright.produced":"微語出品","app.preview.down.block":"下載此頁面到本地項目","app.welcome.link.fetch-blocks":"獲取全部區塊","app.welcome.link.block-list":"基於 block 開發,快速構建標準頁面","navBar.lang":"語言","layout.user.link.help":"幫助","layout.user.link.privacy":"隱私","layout.user.link.terms":"條款","theme.light":"淺色","theme.dark":"深色","theme.system":"自動","setting.lang":"Languages","setting.theme":"主題","app.name":"微語客服","app.description":"新一代智能客服系統","app.welcome":"歡迎使用微語客服系統","app.copyright":"© 2024 微語客服. 保留所有權利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"確認","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"編輯","app.action.delete":"刪除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"設置","app.action.help":"幫助","app.tip.loading":"加載中...","app.tip.success":"操作成功","app.tip.error":"操作失敗","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"確認要執行此操作嗎?","app.tip.nodata":"暫無數據","app.tip.network.error":"網絡連接失敗","app.tip.server.error":"服務器錯誤","app.status.online":"在線","app.status.offline":"離線","app.status.busy":"忙碌","app.status.away":"離開","app.status.invisible":"隱身","app.status.disabled":"已禁用","app.status.expired":"已過期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"剛剛","app.time.minutes":"{count} 分鐘前","app.time.hours":"{count} 小時前","app.time.days":"{count} 天前","app.file.upload":"上傳文件","app.file.download":"下載文件","app.file.preview":"預覽文件","app.file.size.limit":"文件大小不能超過 {size}","app.file.type.unsupported":"不支持的文件類型","app.file.upload.success":"上傳成功","app.file.upload.failed":"上傳失敗","app.file.download.success":"下載成功","app.file.download.failed":"下載失敗","app.layout.sidebar.collapse":"收起側邊欄","app.layout.sidebar.expand":"展開側邊欄","app.layout.header.profile":"個人中心","app.layout.header.logout":"退出登錄","app.layout.footer.copyright":"版權所有","app.layout.footer.terms":"服務條款","app.layout.footer.privacy":"隱私政策","category.form.title":"新建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!"},gtn={"auth.login.title":"登錄","auth.login.subtitle":"歡迎使用微語客服系統","auth.login.username":"用戶名","auth.login.username.required":"請輸入用戶名","auth.login.password":"密碼","auth.login.password.required":"請輸入密碼","auth.login.remember":"記住密碼","auth.login.forgot":"忘記密碼?","auth.login.submit":"登錄","auth.login.other":"其他登錄方式","auth.login.register":"註冊賬號","auth.login.success":"登錄成功","auth.login.failed":"登錄失敗","auth.register.title":"註冊","auth.register.subtitle":"創建新賬號","auth.register.username":"用戶名","auth.register.username.required":"請輸入用戶名","auth.register.email":"郵箱","auth.register.email.required":"請輸入郵箱","auth.register.password":"密碼","auth.register.password.required":"請輸入密碼","auth.register.confirm":"確認密碼","auth.register.confirm.required":"請確認密碼","auth.register.submit":"註冊","auth.register.login":"已有賬號?登錄","auth.register.success":"註冊成功","auth.register.failed":"註冊失敗","auth.forgot.title":"忘記密碼","auth.forgot.subtitle":"重置密碼","auth.forgot.email":"郵箱","auth.forgot.email.required":"請輸入郵箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登錄","auth.forgot.success":"重置密碼郵件已發送","auth.forgot.failed":"重置密碼失敗","auth.reset.title":"重置密碼","auth.reset.subtitle":"設置新密碼","auth.reset.password":"新密碼","auth.reset.password.required":"請輸入新密碼","auth.reset.confirm":"確認密碼","auth.reset.confirm.required":"請確認新密碼","auth.reset.submit":"提交","auth.reset.success":"密碼重置成功","auth.reset.failed":"密碼重置失敗","auth.verify.code":"驗證碼","auth.verify.code.required":"請輸入驗證碼","auth.verify.code.send":"發送驗證碼","auth.verify.code.resend":"重新發送","auth.verify.code.success":"驗證碼發送成功","auth.verify.code.failed":"驗證碼發送失敗","auth.password.strength.weak":"密碼強度:弱","auth.password.strength.medium":"密碼強度:中","auth.password.strength.strong":"密碼強度:強","auth.agreement.text":"我已閱讀並同意","auth.agreement.terms":"服務條款","auth.agreement.privacy":"隱私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"幫助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢復默認雲服務器","server.custom.enable":"啟用自定義服務器","server.api.url.label":"API服務器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服務器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"請輸入正確的服務器地址"},vtn={"chat.title":"會話","chat.empty":"暫無會話","chat.loading":"加載中...","chat.load.error":"加載失敗","chat.load.more":"加載更多","chat.no.more":"沒有更多了","chat.refresh":"刷新","chat.status.connecting":"連接中...","chat.status.connected":"已連接","chat.status.disconnected":"連接斷開","chat.status.reconnecting":"重新連接中...","chat.network.error":"網絡連接失敗,請檢查網絡","chat.thread.closing":"結束會話中...","chat.thread.close.success":"結束會話成功","chat.thread.close.failed":"結束會話失敗","chat.thread.close.confirm.title":"確定要結束會話?","chat.rate.invite.confirm.title":"確認要邀請評價?","chat.message.send.failed":"發送失敗","chat.message.resend":"重新發送","chat.message.recall":"撤回消息","chat.message.copy.success":"複製成功","chat.copy.success":"複製成功","chat.menu.copy":"複製","chat.menu.translate":"翻譯","chat.menu.recall":"撤回","chat.menu.enlarge":"放大閱讀","chat.menu.quickreply.add":"添加快捷回復...","chat.menu.browser.open":"瀏覽器打開","chat.menu.forward":"轉發...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.menu.ai":"問AI","chat.menu.quickreply.search":"搜索知識庫","chat.input.placeholder":"請輸入內容, Ctrl+V 粘貼截圖/圖片","chat.translation.placeholder":"請輸入翻譯內容...","chat.input.send":"發送","chat.input.sending":"發送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截圖","chat.toolbar.autoreply":"自動回復","chat.toolbar.audio":"錄音","chat.toolbar.webrtc":"視頻會話","chat.upload.size.limit":"文件大小不能超過 {size}","chat.upload.type.unsupported":"不支持的文件類型","chat.upload.failed":"上傳失敗","chat.upload.success":"上傳成功","chat.upload.progress":"上傳中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"來電...","chat.webrtc.connected":"通話中...","chat.webrtc.ended":"通話結束","chat.webrtc.rejected":"對方拒絕","chat.webrtc.busy":"對方忙","chat.webrtc.failed":"通話失敗","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒絕","chat.webrtc.hangup":"掛斷","chat.navbar.transfer":"轉接","chat.navbar.close":"結束","chat.navbar.note":"筆記","chat.navbar.kbase":"知識庫","chat.right.quickreply":"快捷回覆","chat.right.userinfo":"訪客信息","chat.right.ai":"客服助手","chat.right.ticket":"工單","chat.right.llm":"大模型","chat.right.docview":"文檔查看","chat.right.group":"群組信息","chat.right.member":"成員信息","chat.group.notice":"群公告","chat.group.members":"群成員","chat.group.admins":"管理員","chat.group.robots":"機器人","chat.group.qrcode":"二維碼","chat.group.uid.error":"群組ID錯誤","chat.header.group.unnamed":"未命名群組","chat.header.member.unnamed":"未命名成員","chat.header.robot.unnamed":"未命名機器人","chat.header.user.unnamed":"未命名用戶","chat.header.typing":"正在輸入...","chat.header.no.message":"暫無消息","chat.header.action.transfer":"轉接","chat.header.action.invite":"邀請","chat.header.action.create.ticket":"創建工單","chat.header.action.close":"結束","chat.header.action.exit":"退出","chat.header.type.not.supported":"當前聊天類型不支持"},ytn={"common.confirm":"確認","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"刪除","common.edit":"編輯","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加載中...","common.success":"操作成功","common.failed":"操作失敗","common.error":"錯誤","common.warning":"警告","common.info":"提示","common.status.online":"在線","common.status.offline":"離線","common.status.busy":"忙碌","common.status.away":"離開","common.status.invisible":"隱身","common.operation.success":"操作成功","common.operation.failed":"操作失敗","common.operation.confirm":"確認要執行此操作嗎?","common.operation.processing":"處理中...","common.operation.completed":"處理完成","common.operation.error":"處理出錯","common.form.required":"此項為必填項","common.form.optional":"選填","common.form.invalid":"輸入無效","common.form.validate.error":"表單驗證失敗","common.form.validate.success":"表單驗證通過","common.refresh":"刷新"},btn={"customer.list.title":"客戶列表","customer.list.empty":"暫無客戶","customer.list.loading":"加載中...","customer.list.load.error":"加載失敗","customer.list.load.more":"加載更多","customer.list.no.more":"沒有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"暱稱","customer.info.gender":"性別","customer.info.age":"年齡","customer.info.birthday":"生日","customer.info.mobile":"手機號","customer.info.email":"郵箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"職位","customer.info.remark":"備註","customer.info.tags":"標籤","customer.info.extra":"其他信息","customer.info.source":"來源","customer.info.created":"創建時間","customer.info.updated":"更新時間","customer.status.online":"在線","customer.status.offline":"離線","customer.status.away":"離開","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"編輯","customer.action.delete":"刪除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"轉移","customer.action.merge":"合併","customer.action.export":"導出","customer.form.name":"姓名","customer.form.name.required":"請輸入姓名","customer.form.nickname":"暱稱","customer.form.gender":"性別","customer.form.age":"年齡","customer.form.birthday":"生日","customer.form.mobile":"手機號","customer.form.email":"郵箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"職位","customer.form.remark":"備註","customer.form.tags":"標籤","customer.form.source":"來源","customer.create.success":"客戶創建成功","customer.create.failed":"客戶創建失敗","customer.update.success":"客戶更新成功","customer.update.failed":"客戶更新失敗","customer.delete.success":"客戶刪除成功","customer.delete.failed":"客戶刪除失敗","customer.block.success":"客戶拉黑成功","customer.block.failed":"客戶拉黑失敗","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失敗","customer.transfer.success":"客戶轉移成功","customer.transfer.failed":"客戶轉移失敗","customer.merge.success":"客戶合併成功","customer.merge.failed":"客戶合併失敗","customer.export.success":"客戶導出成功","customer.export.failed":"客戶導出失敗","black.title":"拉黑設置","black.type":"拉黑類型","black.type.required":"請選擇至少一種拉黑類型","black.user":"拉黑用戶","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"請選擇拉黑截至時間","black.reason":"拉黑原因","black.reason.required":"請輸入拉黑原因","black.reason.placeholder":"請輸入拉黑原因","black.success":"拉黑成功","customer.info.browser":"瀏覽器資訊","customer.info.os":"作業系統資訊","customer.info.device":"裝置資訊","customer.info.browse.record":"瀏覽記錄","customer.info.tag":"標籤資訊","customer.info.load.error":"載入訪客資訊失敗","customer.basic.title":"基本資訊","customer.basic.nickname":"暱稱","customer.basic.empty":"無","customer.basic.edit":"編輯","customer.basic.update.success":"更新成功","customer.basic.update.failed":"更新失敗","customer.basic.note":"備註"},wtn={"dashboard.menu.overview":"總覽","dashboard.menu.workbench":"工作台","dashboard.menu.monitor":"監控台","dashboard.menu.workplace":"工作區","dashboard.menu.message":"消息中心","dashboard.menu.settings":"系統設置","dashboard.overview.title":"總覽","dashboard.overview.total.conversations":"總會話數","dashboard.overview.total.customers":"總客戶數","dashboard.overview.total.tickets":"總工單數","dashboard.overview.total.agents":"總客服數","dashboard.overview.online.agents":"在線客服","dashboard.overview.waiting.customers":"排隊訪客","dashboard.overview.avg.response.time":"平均響應時間","dashboard.overview.avg.handle.time":"平均處理時間","dashboard.stats.title":"數據統計","dashboard.stats.realtime":"實時數據","dashboard.stats.today":"今日統計","dashboard.stats.yesterday":"昨日統計","dashboard.stats.week":"本週統計","dashboard.stats.month":"本月統計","dashboard.stats.custom":"自定義時段","dashboard.workbench.online":"在線狀態","dashboard.workbench.offline":"離線狀態","dashboard.workbench.busy":"忙碌狀態","dashboard.workbench.away":"離開狀態","dashboard.workbench.auto.distribution":"自動分配","dashboard.workbench.manual.distribution":"手動分配","dashboard.workbench.max.session":"最大會話數","dashboard.workbench.current.session":"當前會話數","dashboard.monitor.system":"系統監控","dashboard.monitor.performance":"性能監控","dashboard.monitor.network":"網絡監控","dashboard.monitor.server":"服務器狀態","dashboard.monitor.database":"數據庫狀態","dashboard.monitor.cache":"緩存狀態","dashboard.monitor.queue":"隊列狀態","dashboard.workplace.quick.start":"快速開始","dashboard.workplace.recent":"最近訪問","dashboard.workplace.todo":"待辦事項","dashboard.workplace.announcement":"系統公告","dashboard.workplace.calendar":"工作日曆","dashboard.workplace.links":"常用鏈接","dashboard.message.all":"全部消息","dashboard.message.unread":"未讀消息","dashboard.message.system":"系統消息","dashboard.message.business":"業務消息","dashboard.message.operation":"運營消息","dashboard.monitor.title":"實時監控","dashboard.monitor.online.status":"在線狀態","dashboard.monitor.conversation.status":"會話狀態","dashboard.monitor.queue.status":"排隊狀態","dashboard.monitor.system.status":"系統狀態","dashboard.monitor.refresh":"刷新","dashboard.monitor.auto.refresh":"自動刷新","dashboard.analysis.title":"數據分析","dashboard.analysis.conversation.trend":"會話趨勢","dashboard.analysis.customer.trend":"客戶趨勢","dashboard.analysis.ticket.trend":"工單趨勢","dashboard.analysis.satisfaction.trend":"滿意度趨勢","dashboard.analysis.time.range":"時間範圍","dashboard.analysis.export":"導出數據","dashboard.workplace.title":"工作台","dashboard.workplace.my.conversations":"我的會話","dashboard.workplace.my.tickets":"我的工單","dashboard.workplace.my.tasks":"我的任務","dashboard.workplace.my.performance":"我的績效","dashboard.workplace.quick.actions":"快捷操作","dashboard.workplace.announcements":"公告通知","dashboard.report.title":"統計報表","dashboard.report.conversation":"會話報表","dashboard.report.customer":"客戶報表","dashboard.report.ticket":"工單報表","dashboard.report.agent":"客服報表","dashboard.report.satisfaction":"滿意度報表","dashboard.report.export":"導出報表","dashboard.chart.today":"今日","dashboard.chart.yesterday":"昨日","dashboard.chart.last7days":"最近7天","dashboard.chart.last30days":"最近30天","dashboard.chart.thisMonth":"本月","dashboard.chart.lastMonth":"上月","dashboard.chart.custom":"自定義","dashboard.chart.loading":"加載中...","dashboard.chart.no.data":"暫無數據","dashboard.tip.refresh.success":"刷新成功","dashboard.tip.refresh.failed":"刷新失敗","dashboard.tip.export.success":"導出成功","dashboard.tip.export.failed":"導出失敗","dashboard.tip.data.loading":"數據加載中...","dashboard.tip.data.load.failed":"數據加載失敗"},xtn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.all":"全部","i18n.queue.tip":"排隊隊列","i18n.queue.message.template":"當前排隊人數:{0},大約等待時間:{1} 分鐘","i18n.queue.empty":"隊列為空","i18n.queue.accept":"接入","i18n.system.notification":"系統通知","i18n.system.notification.tip":"系統通知","i18n.old.password.wrong":"舊密碼錯誤","i18n.change.password":"修改密碼","i18n.auth.captcha.send.success":"驗證碼發送成功","i18n.auth.captcha.error":"驗證碼錯誤","i18n.auth.captcha.expired":"驗證碼過期","i18n.auth.captcha.already.send":"驗證碼已發送,請等待","i18n.auth.captcha.validate.failed":"驗證碼驗證失敗","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在輸入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀請評價","i18n.ticket":"[工單]","i18n.ticket.thread":"[工單會話]","i18n.DEPT_ALL":"全部","i18n.DEPT_ADMIN":"管理員","i18n.DEPT_MEMBER":"所有成员","i18n.DEPT_CS":"客服部",ROLE_SUPER:"超級管理員",ROLE_ADMIN:"管理員",ROLE_MEMBER:"成员",ROLE_AGENT:"客服",ROLE_USER:"用戶",ROLE_VISITOR:"訪客","i18n.notice":"通知","i18n.notice.title":"通知標題","i18n.notice.content":"通知內容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.login_notification":"登錄通知","i18n.login_time":"登錄時間","i18n.login_ip":"登錄IP","i18n.login_location":"登錄地點","i18n.if_not_you_please_change_password":"如果這不是您的操作,請立即修改密碼。","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理員","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技術部","i18n.DEPT.MONEY":"財務部","i18n.DEPT.MARKETING":"市場部","i18n.DEPT.SALES":"銷售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.top.tip":"默認置顶語","i18n.top.make":"置頂","i18n.top.cancel":"取消置頂","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开-456","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.before.nickname":"售前技能組","i18n.workgroup.after.nickname":"售后技能組","i18n.workgroup.description":"預設技能組描述","i18n.workgroup.description.before":"售前技能組描述","i18n.workgroup.description.after":"售后技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开-456","i18n.tip.network.connected":"网络已连接-456","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的話請您提供一下您的聯繫電話","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常見問題分類Demo1","i18n.faq.category.demo.2":"常見問題分類Demo2","i18n.faq.demo.title.1":"常見問題文字Demo1","i18n.faq.demo.content.1":"常見問題文字Demo1","i18n.faq.demo.title.2":"常見問題圖片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.content.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.title.2":"快捷按鈕連結Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"預覽","i18n.cancel":"取消","i18n.confirm":"確定","i18n.send":"發送","i18n.transferToAgent":"轉人工服務","i18n.auto.closed":"會話自動關閉","i18n.agent.closed":"客服關閉會話","i18n.online.chat":"在線客服","i18n.JOB":"工作","i18n.LANGUAGE":"語言","i18n.TOOL":"工具","i18n.WRITING":"寫作","i18n.RAG":"知識庫問答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工單","i18n.black.user.already.exists":"用戶已拉黑","i18n.ticket.category.technical_support":"技術支持","i18n.ticket.category.service_request":"服務請求","i18n.ticket.category.consultation":"咨詢","i18n.ticket.category.complaint_suggestion":"投訴建議","i18n.ticket.category.operation_maintenance":"運維","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP組件, 聯繫我們了解更多詳情","i18n.vip.contactUs":"聯繫我們","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name.group":"技能組流程","i18n.ticket.process.name.group.simple":"技能組簡易流程","i18n.ticket.process.name.agent":"一對一流程","i18n.username.or.password.incorrect":"用戶名或密碼不正確","i18n.system_notification":"系統通知","i18n.transfer_notification":"會話轉接請求","i18n.transfer_accepted":"會話轉接已接受","i18n.transfer_rejected":"會話轉接已拒絕","i18n.transfer_timeout":"會話轉接請求超時","i18n.transfer_cancelled":"會話轉接已取消","i18n.confirm_accept_transfer":"确定接受转接","i18n.confirm_accept_transfer_desc":"确定接受转接请求吗?","i18n.confirm_reject_transfer":"确定拒绝转接","i18n.confirm_reject_transfer_desc":"确定拒绝转接请求吗?","i18n.confirm_cancel_transfer":"确定取消转接","i18n.confirm_cancel_transfer_desc":"确定取消转接请求吗?","i18n.transfer.notice.title":"会话转接","i18n.transfer.notice.content":"客服希望将您的会话转接给其他客服","i18n.transfer.accept.notice.title":"转接已接受","i18n.transfer.accept.notice.content":"会话转接请求已被接受","i18n.transfer.reject.notice.title":"转接已拒绝","i18n.transfer.reject.notice.content":"会话转接请求已被拒绝","i18n.transfer.timeout.notice.title":"转接已超时","i18n.transfer.timeout.notice.content":"会话转接请求已超时","i18n.transfer.cancel.notice.title":"转接已取消","i18n.transfer.cancel.notice.content":"会话转接请求已取消","i18n.already.in.transfer.pending.state":"会话已处于转接等待状态","i18n.already.in.transfer.accepted.state":"会话已处于转接接受状态","i18n.already.in.transfer.rejected.state":"会话已处于转接拒绝状态","i18n.already.in.transfer.timeout.state":"会话已处于转接超时状态","i18n.already.in.transfer.canceled.state":"会话已处于转接取消状态","i18n.invite_notification":"邀請請求","i18n.invite_accepted":"邀請已接受","i18n.invite_rejected":"邀請已拒絕","i18n.invite_timeout":"邀請請求超時","i18n.invite_cancelled":"邀請已取消","i18n.confirm_accept_invite":"确定接受邀请","i18n.confirm_accept_invite_desc":"确定接受邀请请求吗?","i18n.confirm_reject_invite":"确定拒绝邀请","i18n.confirm_reject_invite_desc":"确定拒绝邀请请求吗?","i18n.visitor_invite_notification":"訪客邀請","i18n.visitor_invite_accepted":"訪客邀請已接受","i18n.visitor_invite_rejected":"訪客邀請已拒絕","i18n.visitor_invite_timeout":"訪客邀請超時","i18n.visitor_invite_cancelled":"訪客邀請已取消","i18n.group_invite_notification":"群組邀請","i18n.group_invite_accepted":"群組邀請已接受","i18n.group_invite_rejected":"群組邀請已拒絕","i18n.group_invite_timeout":"群組邀請超時","i18n.group_invite_cancelled":"群組邀請已取消","i18n.kbase_invite_notification":"知識庫邀請","i18n.kbase_invite_accepted":"知識庫邀請已接受","i18n.kbase_invite_rejected":"知識庫邀請已拒絕","i18n.kbase_invite_timeout":"知識庫邀請超時","i18n.kbase_invite_cancelled":"知識庫邀請已取消","i18n.organization_invite_notification":"組織邀請","i18n.organization_invite_accepted":"組織邀請已接受","i18n.organization_invite_rejected":"組織邀請已拒絕","i18n.organization_invite_timeout":"組織邀請超時","i18n.organization_invite_cancelled":"組織邀請已取消","i18n.from":"來自","i18n.to":"至","i18n.note":"备注","i18n.status":"状态","i18n.time":"時間","i18n.inviter":"邀請人","i18n.invitee":"被邀請人","i18n.visitor":"訪客","i18n.group_name":"群組名稱","i18n.kbase_name":"知識庫名稱","i18n.organization_name":"組織名稱","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.accept":"接受","i18n.reject":"拒絕","i18n.user.signup.first":"請先註冊","i18n.email.signup.first":"請先驗證郵箱","i18n.mobile.signup.first":"請先驗證手機號","i18n.resource.not.found":"資源未找到","i18n.user.disabled":"用戶已被禁用","i18n.forbidden.access":"禁止訪問","i18n.user.blocked":"用戶已被封禁","i18n.sensitive.content":"檢測到敏感內容","i18n.message.processing.failed":"訊息處理失敗","i18n.null.pointer.exception":"空指針異常","i18n.response.status.exception":"響應狀態異常","i18n.websocket.timeout.exception":"WebSocket超時異常","i18n.http.method.not.supported":"不支持的HTTP方法","i18n.authorization.denied":"授權被拒絕","i18n.request.rejected":"請求被拒絕","i18n.entity.not.found":"實體未找到","i18n.internal.server.error":"伺服器內部錯誤"},Stn={"message.type.text":"文本消息","message.type.image":"圖片消息","message.type.file":"文件消息","message.type.voice":"語音消息","message.type.video":"視頻消息","message.type.location":"位置消息","message.type.link":"鏈接消息","message.type.card":"卡片消息","message.type.system":"系統消息","message.type.notification":"通知消息","message.type.custom":"自定義消息","message.status.sending":"發送中","message.status.sent":"已發送","message.status.delivered":"已送達","message.status.read":"已讀","message.status.failed":"發送失敗","message.status.recalled":"已撤回","message.status.deleted":"已刪除","quickreply.search.placeholder":"搜索","quickreply.button.send":"發送","quickreply.button.copy":"複製","quickreply.button.create.category":"創建分類","quickreply.button.create.reply":"創建快捷回復","quickreply.copy.success":"{content} 已複製到剪貼板","category.form.edit.title":"編輯分類","category.form.create.title":"創建分類","category.form.name":"分類名稱","category.form.name.required":"請輸入分類名稱!","category.form.name.placeholder":"輸入分類名稱","category.create.failed":"創建分類失敗","quickreply.drawer.title":"{isEdit, select, true {編輯快捷回復} other {新建快捷回復}}","quickreply.form.category":"分類","quickreply.form.category.required":"請選擇分類","quickreply.form.category.placeholder":"選擇分類","quickreply.form.type":"類型","quickreply.form.type.required":"請選擇類型","quickreply.form.type.placeholder":"選擇類型","quickreply.form.title":"標題","quickreply.form.title.required":"請輸入標題","quickreply.form.content":"內容","quickreply.type.text":"文本","quickreply.type.image":"圖片","quickreply.type.video":"視頻","quickreply.type.audio":"音頻","quickreply.type.file":"文件","quickreply.upload.text":"點擊或拖拽文件上傳","quickreply.upload.success":"{filename} 上傳成功","quickreply.upload.error":"{filename} 上傳失敗","quickreply.upload.uploading":"{filename} 上傳中","quickreply.form.validate.error":"請檢查表單","message.action.send":"發送","message.action.recall":"撤回","message.action.delete":"刪除","message.action.resend":"重新發送","message.action.forward":"轉發","message.action.quote":"引用","message.action.copy":"複製","message.action.translate":"翻譯","message.action.download":"下載","message.action.preview":"預覽","message.tip.sending":"消息發送中...","message.tip.sent":"消息已發送","message.tip.delivered":"消息已送達","message.tip.read":"消息已讀","message.tip.failed":"消息發送失敗","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已刪除","message.tip.copy.success":"複製成功","message.tip.download.start":"開始下載...","message.tip.download.success":"下載成功","message.tip.download.failed":"下載失敗","message.input.placeholder":"請輸入消息","message.input.send.button":"發送","message.input.emoji.button":"表情","message.input.image.button":"圖片","message.input.file.button":"文件","message.input.voice.button":"語音","message.input.video.button":"視頻","message.input.location.button":"位置","message.list.load.more":"加載更多","message.list.loading":"加載中...","message.list.no.more":"沒有更多消息","message.list.empty":"暫無消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相關消息","message.time.just":"剛剛","message.time.minutes":"{count}分鐘前","message.time.hours":"{count}小時前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}個月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超過 {size}","message.file.type.unsupported":"不支持的文件類型","message.file.uploading":"上傳中...","message.file.download":"下載文件","message.file.preview":"預覽文件","message.image.loading":"圖片加載中","message.image.load.error":"圖片加載失敗","message.image.save":"保存圖片","message.image.save.success":"圖片保存成功","message.image.save.failed":"圖片保存失敗"},Ctn={"profile.update.success":"個人信息更新成功","profile.form.avatar":"頭像","profile.form.upload":"上傳","profile.form.username":"用戶名","profile.form.nickname":"暱稱","profile.form.description":"描述","profile.button.change.password":"修改密碼","profile.button.change.email":"修改郵箱","profile.button.change.mobile":"修改手機號","profile.email.verified":"郵箱已驗證","profile.email.unverified":"郵箱未驗證","profile.mobile.verified":"手機已驗證","profile.mobile.unverified":"手機未驗證","profile.email.change.title":"修改郵箱","profile.email.placeholder":"請輸入郵箱地址","profile.email.required":"請輸入郵箱地址!","profile.email.format.invalid":"郵箱格式不正確","profile.email.length.limit":"郵箱不得超過50字符","profile.email.verification.code.placeholder":"請輸入驗證碼","profile.email.verification.code.countdown":"秒後重新獲取","profile.email.verification.code.get":"獲取驗證碼","profile.email.verification.code.required":"請輸入驗證碼!","profile.email.not.changed":"郵箱未更改!","profile.email.change.success":"郵箱修改成功!","profile.email.format.error":"郵箱格式錯誤","profile.mobile.change.title":"修改手機號","profile.mobile.placeholder":"請輸入手機號","profile.mobile.required":"請輸入手機號!","profile.mobile.format.invalid":"手機號格式錯誤!","profile.mobile.verification.code.placeholder":"請輸入驗證碼","profile.mobile.verification.code.countdown":"秒後重新獲取","profile.mobile.verification.code.get":"獲取驗證碼","profile.mobile.verification.code.required":"請輸入驗證碼!","profile.mobile.not.changed":"手機號未更改!","profile.mobile.change.success":"手機號修改成功!","profile.mobile.format.error":"手機號格式錯誤","profile.password.change.title":"修改密碼","profile.password.old":"原密碼","profile.password.old.empty":"手機號直接登錄用戶,可以留空","profile.password.new":"新密碼","profile.password.confirm":"確認密碼","profile.password.length.error":"密碼最小長度不能小於6","profile.password.mismatch":"兩次輸入密碼不一致","profile.password.change.success":"密碼修改成功!"},_tn={"setting.menu.title":"設置","setting.menu.profile":"個人信息","setting.menu.basic":"基本設置","setting.menu.agent":"客服設置","setting.menu.model":"大模型","setting.menu.certification":"實名認證","setting.menu.qrcode":"二維碼","setting.menu.shortcut":"快捷鍵","setting.menu.click":"菜單點擊","setting.save.success":"設置保存成功","setting.save.error":"設置保存失敗","setting.load.error":"設置加載失敗","setting.header.profile":"個人信息","setting.header.basic":"基本設置","setting.header.agent":"客服設置","setting.header.model":"大模型設置","setting.basic.sound.on":"已開啟消息提示音","setting.basic.sound.off":"已關閉消息提示音","setting.basic.notification.on":"已開啟網絡狀態通知","setting.basic.notification.off":"已關閉網絡狀態通知","setting.basic.connection.status":"長鏈接狀態:","setting.basic.connection.connected":"✅連接正常","setting.basic.connection.disconnected":"❌連接斷開","setting.basic.startup":"開機啟動:","setting.basic.startup.on":"開機啟動","setting.basic.startup.off":"不開機啟動","setting.basic.theme":"顏色主題:","setting.basic.language":"語言設置:","setting.basic.mode":"模式設置:","setting.basic.mode.team":"團隊模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"個人模式"},ktn={"thread.error.message":"獲取數據失敗","thread.feature.unavailable":"TODO: 該功能暫未開放","thread.menu.top":"置頂","thread.menu.untop":"取消置頂","thread.menu.read":"標記已讀","thread.menu.unread":"標記未讀","thread.menu.mute":"靜音","thread.menu.unmute":"取消靜音","thread.menu.transfer":"轉接","thread.menu.block":"拉黑","thread.menu.remark":"備註","thread.menu.ticket":"創建工單","thread.menu.crm":"查看CRM","thread.menu.summary":"會話總結","thread.menu.filter":"會話過濾","thread.menu.groupThread":"群聊會話","thread.menu.robotThread":"機器人會話","thread.menu.workgroupThread":"工作組會話","thread.menu.agentThread":"一對一會話","thread.menu.ticketThread":"工單會話","thread.menu.memberThread":"成員會話","thread.menu.deviceThread":"設備會話","thread.menu.systemThread":"系統會話","thread.status.robot":"[機器人]","thread.status.agent":"[一對一]","thread.status.workgroup":"[工作組]","thread.search.placeholder":"搜索會話...","thread.dropdown.create.group":"創建群聊","thread.dropdown.create.ai":"創建AI對話","thread.agent.status.online":"😀 - 在線接待","thread.agent.status.offline":"🔻 - 客服下線","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 鬆開刷新","thread.list.no.more":"沒有更多了","thread.coming.soon":"即將上線,敬請期待","thread.set.success":"設置成功","thread.set.error":"設置失敗","thread.menu.star":"星標","thread.menu.star.1":"星標1","thread.menu.star.2":"星標2","thread.menu.star.3":"星標3","thread.menu.star.4":"星標4","thread.menu.hide":"隱藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下線","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加載中...","thread.status.empty":"暫無會話","thread.status.error":"加載會話失敗","thread.status.queue":"排隊({count})","thread.status.network.offline":"網絡已斷開","thread.status.network.online":"網絡已連接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暫無消息","thread.status.message.error":"加載消息失敗","thread.status.message.end":"沒有更多消息","thread.status.message.typing":"正在輸入...","thread.status.message.transfer":"轉接中...","thread.status.message.transferred":"已轉接","thread.status.message.closed":"會話已關閉","thread.menu.star.cancel":"取消星標","thread.loading.more":"加載更多..."},Etn={"ticket.create.title":"創建工單","ticket.edit.title":"編輯工單","ticket.form.uid":"編號","ticket.form.title":"標題","ticket.form.title.required":"請輸入工單標題","ticket.form.title.placeholder":"請輸入工單標題","ticket.form.description":"描述","ticket.form.description.required":"請輸入工單描述","ticket.form.description.placeholder":"請輸入工單描述","ticket.form.status":"狀態","ticket.form.status.required":"請選擇工單狀態","ticket.form.priority":"優先級","ticket.form.priority.required":"請選擇優先級","ticket.form.category":"分類","ticket.form.category.required":"請選擇工單分類","ticket.form.category.placeholder":"請選擇工單分類","ticket.form.user":"客戶","ticket.form.user.placeholder":"請選擇客戶","ticket.form.assignee":"處理人","ticket.form.assignee.placeholder":"請選擇處理人","ticket.form.reporter":"報告人","ticket.form.reporter.placeholder":"請選擇報告人","ticket.form.workgroup":"技能組","ticket.form.workgroup.required":"請選擇技能組","ticket.form.workgroup.placeholder":"請選擇技能組","ticket.form.department":"部門","ticket.form.department.required":"請選擇部門","ticket.form.department.placeholder":"請選擇部門","ticket.workgroup.load.error":"加載技能組失敗","ticket.status.all":"全部狀態","ticket.status.new":"待认领","ticket.status.assigned":"已分配","ticket.status.claimed":"已认领","ticket.status.unclaimed":"被退回","ticket.status.processing":"處理中","ticket.status.pending":"待處理","ticket.status.holding":"掛起","ticket.status.resumed":"恢復","ticket.status.reopened":"重新打開","ticket.status.resolved":"已解決","ticket.status.closed":"已關閉","ticket.status.cancelled":"已取消","ticket.status.label":"狀態","ticket.status.escalated":"已升級","ticket.status.verified_ok":"已驗證","ticket.status.verified_failed":"驗證失敗","ticket.priority.all":"全部優先級","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"緊急","ticket.priority.critical":"嚴重","ticket.create.success":"工單創建成功","ticket.create.failed":"工單創建失敗","ticket.update.success":"工單更新成功","ticket.update.failed":"工單更新失敗","ticket.submit.error":"工單提交失敗","ticket.delete.success":"工單刪除成功","ticket.delete.error":"工單刪除失敗","ticket.load.error":"工單數據加載失敗","ticket.messages.load.error":"工單消息加載失敗","ticket.message.send.error":"消息發送失敗","ticket.category.load.error":"分類加載失敗","ticket.submitting":"提交工单中...","ticket.list.title":"工單列表","ticket.list.empty":"暫無工單","ticket.list.search.placeholder":"搜索工單","ticket.list.create":"創建工單","ticket.list.total":"工單總數","ticket.action.edit":"編輯","ticket.action.delete":"刪除","ticket.action.assign":"分配","ticket.action.close":"關閉","ticket.action.reopen":"重新打開","ticket.action.verify":"驗證","ticket.action.verify.success":"驗證成功","ticket.delete.confirm":"確定要刪除此工單嗎?","ticket.action.invite":"邀請","ticket.conversation.title":"工單對話","ticket.conversation.empty":"請選擇工單查看對話","ticket.conversation.input.placeholder":"請輸入消息...","ticket.details.title":"工單詳情","ticket.details.empty":"請選擇工單查看詳情","ticket.category.technical_support":"技術支持","ticket.category.service_request":"服務請求","ticket.category.consultation":"咨詢","ticket.category.complaint_suggestion":"投訴建議","ticket.category.operation_maintenance":"運維","ticket.category.other":"其他","ticket.form.thread":"關聯會話","ticket.form.thread.placeholder":"選擇關聯會話","ticket.form.thread.none":"不關聯","ticket.form.createdAt":"創建時間","ticket.form.updatedAt":"更新時間","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能組","ticket.type.department":"部門","ticket.assignee":"處理人","ticket.reporter":"報告人","ticket.type":"類型","ticket.category":"分類","ticket.steps.title":"轉移過程","ticket.filter.by.status":"按狀態篩選","ticket.filter.by.priority":"按優先級篩選","ticket.filter.by.assignment":"按分配篩選","ticket.filter.by.time":"按時間篩選","ticket.filter.status_all":"全部狀態","ticket.filter.status_new":"待认领","ticket.filter.status_assigned":"已分配","ticket.filter.status_claimed":"已认领","ticket.filter.status_unclaimed":"被退回","ticket.filter.status_processing":"處理中","ticket.filter.status_pending":"待處理","ticket.filter.status_holding":"掛起","ticket.filter.status_resumed":"恢復","ticket.filter.status_reopened":"重新打開","ticket.filter.status_resolved":"已解決","ticket.filter.status_escalated":"已升级","ticket.filter.status_closed":"已關閉","ticket.filter.status_cancelled":"已取消","ticket.filter.status_verified_ok":"已验证","ticket.filter.status_verified_failed":"验证失败","ticket.filter.status_verified_pending":"验证中","ticket.filter.priority_all":"全部優先級","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"緊急","ticket.filter.priority_critical":"嚴重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工單","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能組","ticket.filter.assignment_my_created":"我創建的","ticket.filter.assignment_my_assigned":"待我處理","ticket.filter.time_all":"全部時間","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本週","ticket.filter.time_last_week":"上週","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工單","ticket.content.number":"編號","ticket.delete.title":"刪除工單","ticket.delete.content":"確定要刪除此工單嗎?","ticket.delete.failed":"工單刪除失敗","ticket.loading":"加載工單...","ticket.empty":"暫無工單","ticket.form.process":"流程","ticket.form.process.placeholder":"選擇流程","ticket.process.load.error":"加載流程失敗","ticket.action.claim":"認領","ticket.action.claim.success":"認領工單成功","ticket.action.process":"開始處理","ticket.action.process.success":"開始處理工單成功","ticket.action.resolve":"解決","ticket.action.resolve.success":"解決工單成功","ticket.action.pending":"待處理","ticket.action.pending.success":"設置工單為待處理成功","ticket.action.hold":"掛起","ticket.action.hold.success":"設置工單為掛起成功","ticket.action.resume":"繼續處理","ticket.action.resume.success":"繼續處理工單成功","ticket.action.close.success":"關閉工單成功","ticket.action.reopen.success":"重新打開工單成功","ticket.action.escalate":"升級","ticket.action.escalate.success":"升級工單成功","ticket.action.unclaim":"退回","ticket.action.unclaim.success":"退回工單成功","ticket.action.claim.confirm.title":"認領工單","ticket.action.claim.confirm.content":"確定要認領該工單嗎?","ticket.action.claim.loading":"認領中...","ticket.action.claim.error":"工單認領失敗","ticket.verify.title":"驗證工單","ticket.verify.content":"請驗證此工單","ticket.verify.pass":"通過","ticket.verify.reject":"不通過","ticket.verify.success":"工單驗證通過","ticket.verify.reject.success":"工單驗證未通過","ticket.verify.error":"工單驗證失敗","ticket.verify.later":"稍後決定","ticket.department.load.error":"加载部门失败","ticket.member.load.error":"加载部门成员失败","ticket.activity.history":"工单活动记录"},$tn={"contact.list.new":"新朋友","contact.list.device":"內網設備","contact.list.group":"群聊","contact.list.channel":"頻道","contact.list.company":"企業聯繫人","contact.list.friend":"聯繫人","contact.search.placeholder":"搜索聯繫人...","contact.manager.button":"通訊錄管理","contact.manager.coming":"敬請期待","member.detail.nickname":"暱稱","member.detail.jobno":"工號","member.detail.seatno":"座位號","member.detail.telephone":"電話","member.detail.loading":"加載中...","member.detail.chat.button":"開始聊天"},Mtn={"group.create.title":"發起群聊","group.create.contacts":"好友","group.create.members":"群成員","group.create.members.min":"至少選擇2名成員","group.create.creating":"創建群組中...","group.create.org.empty":"未選擇組織","group.create.success":"創建群組成功","group.create.failed":"創建群組失敗","group.create.loading":"加載成員中...","group.create.error":"加載成員失敗"},Ttn={"robot.list.add":"添加智能體","robot.list.loading":"加載中","robot.list.delete.confirm":"刪除【{name}】?","robot.list.deleting":"刪除中","robot.list.delete.success":"刪除成功","robot.list.update.success":"更新成功","robot.list.create.success":"創建成功","robot.list.chat":"對話","robot.list.edit":"編輯","robot.list.delete":"刪除","robot.list.create":"創建"},Ptn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},Otn={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.uploading":"{filename} 上傳中...","upload.success":"{filename} 上傳成功","upload.failed":"{filename} 上傳失敗","upload.delete.confirm":"確定要刪除此文件嗎?","upload.preview.image":"圖片預覽","upload.preview.file":"文件預覽","upload.button.ok":"確定","upload.button.cancel":"取消","upload.maxCount":"最多只能上傳 {maxCount} 個文件","upload.maxSize":"文件大小不能超過 {maxSize}MB"},Rtn={"welcome.modal.title":"未發現所在組織","welcome.modal.description":"您需要創建或加入已有組織","welcome.modal.join":"加入已有組織(即將上線)","welcome.modal.create":"創建組織","welcome.modal.input.placeholder":"請輸入組織名稱","welcome.message.org.required":"請創建或加入組織","welcome.message.create.success":"創建組織成功","welcome.message.create.failed":"創建組織失敗","welcome.message.verify.email":"請先驗證郵箱","welcome.message.verify.mobile":"請先驗證手機號","welcome.message.org.name.required":"請輸入組織名稱","welcome.message.org.creating":"創建組織中,請稍後...","welcome.verify.modal.title":"賬號驗證提示","welcome.verify.modal.description":"您的郵箱和手機號尚未驗證,為保障賬號安全,建議您儘快完成驗證。","welcome.verify.now":"立即驗證","welcome.verify.later":"稍後驗證"},Itn={...mtn,...gtn,...vtn,...ytn,...btn,...wtn,...xtn,...ptn,...Stn,...htn,...Ctn,..._tn,...ktn,...Etn,...ftn,...$tn,...Mtn,...Ttn,...Ptn,...Otn,...Rtn},jtn={"app.title":"Bytedesk","app.logout":"Logout","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","footbar.network.normal":"Network Normal","footbar.network.disconnected":"Network Disconnected","footbar.anonymous.tip":"Anonymous mode, only supports communication between online devices in the same LAN","footbar.login.tip":"After login, supports offline messages and more features","footbar.login.skip":"Skip Login","footbar.anonymous.status":"Anonymous","footbar.login":"Login","footbar.logout":"Logout","footbar.logout.title":"Logout","footbar.logout.confirm":"Are you sure to logout?","footbar.serving.count":"Current serving count","footbar.serving.text":"Current serving: 0","category.form.title":"New Category","category.form.name":"category name","category.form.name.required":"please enter category name!"},Ntn={"common.confirm":"Confirm","common.cancel":"Cancel","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","theme.light":"Light","theme.dark":"Dark","theme.system":"System","common.refresh":"Refresh"},Atn={"chat.copy.success":"Copy successful","chat.network.error":"Network connection failed, please check network","chat.thread.closing":"Ending conversation...","chat.thread.close.success":"Conversation ended successfully","chat.thread.close.confirm.title":"Are you sure to end the conversation?","chat.rate.invite.confirm.title":"Confirm to invite rating?","chat.menu.copy":"Copy","chat.menu.translate":"Translate","chat.menu.recall":"Recall","chat.menu.enlarge":"Enlarge","chat.menu.quickreply.add":"Add Quick Reply...","chat.menu.browser.open":"Open in Browser","chat.menu.forward":"Forward...","chat.menu.collect":"Collect","chat.menu.quote":"Quote","chat.menu.ai":"Ask AI","chat.menu.quickreply.search":"Search Kbase","chat.translation.placeholder":"Please enter translation content...","chat.input.placeholder":"Please enter content, Ctrl+V to paste screenshot/image","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.screenshot":"Screenshot","chat.toolbar.autoreply":"Auto Reply","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Video Call","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.invite.rate":"Invite Rating","chat.navbar.transfer":"Transfer","chat.navbar.close":"End","chat.navbar.note":"Notebase","chat.navbar.kbase":"Knowledge Base","chat.right.quickreply":"Quick Reply","chat.right.userinfo":"User Info","chat.right.ai":"Copilot","chat.right.ticket":"Ticket","chat.right.llm":"LLM","chat.right.group":"Group Info","chat.right.member":"Member Info","chat.right.docview":"Doc View","chat.group.notice":"Notice","chat.group.members":"Members","chat.group.admins":"Admins","chat.group.robots":"Robots","chat.group.qrcode":"QR Code","chat.group.uid.error":"Group ID error","chat.header.group.unnamed":"Unnamed Group","chat.header.member.unnamed":"Unnamed Member","chat.header.robot.unnamed":"Unnamed Robot","chat.header.user.unnamed":"Unnamed User","chat.header.typing":"Typing...","chat.header.no.message":"No messages yet","chat.header.action.transfer":"Transfer","chat.header.action.invite":"Invite","chat.header.action.create.ticket":"Create Ticket","chat.header.action.close":"Close","chat.header.action.exit":"Exit","chat.header.type.not.supported":"Current chat type not supported"},Dtn={"dashboard.error.message":"Failed to get data","dashboard.init.organization":"Initializing organization","dashboard.init.profile":"Initializing profile","dashboard.init.workgroups":"Initializing workgroups","dashboard.init.agent":"Initializing agent profile","dashboard.transfer.accept":"{nickname} has accepted the transfer","dashboard.transfer.reject":"{nickname} has rejected the transfer","dashboard.transfer.success":"Transfer request sent successfully, waiting for response"},Ftn={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.ai":"AI Assistant","menu.dashboard.note":"Notebase","menu.dashboard.kbase":"Knowledge","menu.dashboard.mine":"Settings","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Tickets","menu.dashboard.leavemsg":"Messages","menu.dashboard.visitor":"Visitors","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.dashboard.quality":"Quality","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon..."},Ltn={"profile.update.success":"Profile updated successfully","profile.form.avatar":"Avatar","profile.form.upload":"Upload","profile.form.username":"Username","profile.form.nickname":"Nickname","profile.form.description":"Description","profile.button.change.password":"Change Password","profile.button.change.email":"Change Email","profile.button.change.mobile":"Change Mobile","profile.email.verified":"Email Verified","profile.email.unverified":"Email Unverified","profile.mobile.verified":"Mobile Verified","profile.mobile.unverified":"Mobile Unverified","profile.email.change.title":"Change Email","profile.email.placeholder":"Enter email address","profile.email.required":"Please enter email address!","profile.email.format.invalid":"Invalid email format","profile.email.length.limit":"Email cannot exceed 50 characters","profile.email.verification.code.placeholder":"Enter verification code","profile.email.verification.code.countdown":"seconds","profile.email.verification.code.get":"Get Code","profile.email.verification.code.required":"Please enter verification code!","profile.email.not.changed":"Email is not changed!","profile.email.change.success":"Email changed successfully!","profile.email.format.error":"Invalid email format","profile.mobile.change.title":"Change Mobile","profile.mobile.placeholder":"Enter mobile number","profile.mobile.required":"Please enter mobile number!","profile.mobile.format.invalid":"Invalid mobile format","profile.mobile.verification.code.placeholder":"Enter verification code","profile.mobile.verification.code.countdown":"seconds","profile.mobile.verification.code.get":"Get Code","profile.mobile.verification.code.required":"Please enter verification code!","profile.mobile.not.changed":"Mobile number is not changed!","profile.mobile.change.success":"Mobile number changed successfully!","profile.mobile.format.error":"Invalid mobile format","profile.password.change.title":"Change Password","profile.password.old":"Old Password","profile.password.old.empty":"Old password can be empty for phone login users","profile.password.new":"New Password","profile.password.confirm":"Confirm Password","profile.password.length.error":"Password must be at least 6 characters","profile.password.mismatch":"The two passwords do not match","profile.password.change.success":"Password changed successfully!"},Btn={"setting.menu.title":"Settings","setting.menu.profile":"Profile","setting.menu.basic":"Basic Settings","setting.menu.agent":"Agent Settings","setting.menu.model":"AI Model","setting.menu.certification":"Certification","setting.menu.qrcode":"QR Code","setting.menu.shortcut":"Shortcuts","setting.menu.click":"Menu clicked","setting.save.success":"Settings saved successfully","setting.save.error":"Failed to save settings","setting.load.error":"Failed to load settings","setting.header.profile":"Personal Profile","setting.header.basic":"Basic Settings","setting.header.agent":"Agent Settings","setting.header.model":"AI Model Settings","setting.basic.sound.on":"Message Sound On","setting.basic.sound.off":"Message Sound Off","setting.basic.notification.on":"Network Status Notification On","setting.basic.notification.off":"Network Status Notification Off","setting.basic.connection.status":"Connection Status:","setting.basic.connection.connected":"✅Connected","setting.basic.connection.disconnected":"❌Disconnected","setting.basic.startup":"Start on Boot:","setting.basic.startup.on":"Enable","setting.basic.startup.off":"Disable","setting.basic.theme":"Theme:","setting.basic.language":"Language:","setting.basic.mode":"Mode:","setting.basic.mode.team":"Team Mode","setting.basic.mode.agent":"Agent Mode","setting.basic.mode.personal":"Personal Mode"},ztn={"ticket.create.title":"Create Ticket","ticket.edit.title":"Edit Ticket","ticket.form.uid":"UID","ticket.form.title":"Title","ticket.form.title.required":"Please enter ticket title","ticket.form.title.placeholder":"Enter ticket title","ticket.form.description":"Description","ticket.form.description.required":"Please enter ticket description","ticket.form.description.placeholder":"Enter ticket description","ticket.form.status":"Status","ticket.form.status.required":"Please select ticket status","ticket.form.priority":"Priority","ticket.form.priority.required":"Please select priority","ticket.form.category":"Category","ticket.form.category.required":"Please select category","ticket.form.category.placeholder":"Select category","ticket.form.user":"Customer","ticket.form.user.placeholder":"Select customer","ticket.form.assignee":"Assignee","ticket.form.assignee.placeholder":"Select assignee","ticket.form.reporter":"Reporter","ticket.form.reporter.placeholder":"Select reporter","ticket.form.workgroup":"Workgroup","ticket.form.workgroup.required":"Please select workgroup","ticket.form.workgroup.placeholder":"Select workgroup","ticket.form.department":"Department","ticket.form.department.required":"Please select department","ticket.form.department.placeholder":"Select department","ticket.form.thread":"Related Conversation","ticket.form.thread.placeholder":"Select related conversation","ticket.form.thread.none":"No Association","ticket.create.success":"Ticket created successfully","ticket.create.failed":"Failed to create ticket","ticket.update.success":"Ticket updated successfully","ticket.update.failed":"Failed to update ticket","ticket.submit.error":"Failed to submit ticket","ticket.delete.success":"Ticket deleted successfully","ticket.delete.error":"Failed to delete ticket","ticket.load.error":"Failed to load tickets","ticket.messages.load.error":"Failed to load ticket messages","ticket.message.send.error":"Failed to send message","ticket.workgroup.load.error":"Failed to load workgroups","ticket.category.load.error":"Failed to load categories","ticket.submitting":"Ticket Submitting","ticket.list.title":"Tickets","ticket.list.empty":"No tickets found","ticket.list.search.placeholder":"Search tickets","ticket.list.create":"Create Ticket","ticket.list.total":"Total","ticket.action.edit":"Edit","ticket.action.delete":"Delete","ticket.action.assign":"Assign","ticket.action.close":"Close","ticket.action.reopen":"Reopen","ticket.action.verify":"Verify","ticket.action.verify.success":"Verify successfully","ticket.delete.confirm":"Are you sure to delete this ticket?","ticket.action.invite":"Invite","ticket.conversation.title":"Conversation","ticket.conversation.empty":"Select a ticket to view conversation","ticket.conversation.input.placeholder":"Type your message...","ticket.details.title":"Ticket Details","ticket.details.empty":"Select a ticket to view details","ticket.form.createdAt":"Created At","ticket.form.updatedAt":"Updated At","ticket.type.agent":"Agent","ticket.type.workgroup":"Workgroup","ticket.type.department":"Department","ticket.type":"Type","ticket.assignee":"Assignee","ticket.reporter":"Reporter","ticket.category":"Category","ticket.steps.title":"Processing Steps","ticket.form.upload.button":"Upload Attachments","ticket.upload.success":"File uploaded successfully","ticket.upload.failed":"File upload failed","ticket.current.filters":"Current Filters","ticket.filter.by.status":"Filter by Status","ticket.filter.by.priority":"Filter by Priority","ticket.filter.by.assignment":"Filter by Assignment","ticket.filter.by.time":"Filter by Time","ticket.filter.status_all":"All Status","ticket.filter.status_new":"Unassigned","ticket.filter.status_assigned":"Assigned","ticket.filter.status_claimed":"Claimed","ticket.filter.status_unclaimed":"Unclaimed","ticket.filter.status_processing":"In Progress","ticket.filter.status_pending":"Pending","ticket.filter.status_holding":"On Hold","ticket.filter.status_resumed":"Resumed ","ticket.filter.status_reopened":"Reopened","ticket.filter.status_resolved":"Resolved","ticket.filter.status_escalated":"Escalated","ticket.filter.status_closed":"Closed","ticket.filter.status_cancelled":"Cancelled","ticket.filter.status_verified_ok":"Verified","ticket.filter.status_verified_failed":"Verification Failed","ticket.filter.status_verified_pending":"Verification Pending","ticket.filter.priority_all":"All Priority","ticket.filter.priority_lowest":"Lowest","ticket.filter.priority_low":"Low","ticket.filter.priority_medium":"Medium","ticket.filter.priority_high":"High","ticket.filter.priority_urgent":"Urgent","ticket.filter.priority_critical":"Critical","ticket.filter.assignment_all":"All","ticket.filter.assignment_my_tickets":"My Tickets","ticket.filter.assignment_unassigned":"Unassigned","ticket.filter.assignment_my_workgroup":"My Workgroup","ticket.filter.assignment_my_created":"Created by Me","ticket.filter.assignment_my_assigned":"Assigned to Me","ticket.filter.time_all":"All Time","ticket.filter.time_today":"Today","ticket.filter.time_yesterday":"Yesterday","ticket.filter.time_this_week":"This Week","ticket.filter.time_last_week":"Last Week","ticket.filter.time_this_month":"This Month","ticket.filter.time_last_month":"Last Month","ticket.content.title":"Ticket","ticket.content.number":"No.","ticket.delete.title":"Delete Ticket","ticket.delete.content":"Are you sure you want to delete this ticket?","ticket.delete.failed":"Failed to delete ticket","ticket.loading":"Loading tickets...","ticket.empty":"No tickets found","ticket.form.process":"Process","ticket.form.process.placeholder":"Select process","ticket.process.load.error":"Failed to load processes","ticket.status.label":"Status","ticket.status.new":"Unassigned","ticket.status.assigned":"Assigned","ticket.status.claimed":"Claimed","ticket.status.unclaimed":"Unclaimed","ticket.status.processing":"In Progress","ticket.status.pending":"Pending","ticket.status.holding":"Holding","ticket.status.resumed":"Resumed","ticket.status.reopened":"Reopened","ticket.status.resolved":"Resolved","ticket.status.escalated":"Escalated","ticket.status.closed":"Closed","ticket.status.cancelled":"Cancelled","ticket.status.verified_ok":"Verified","ticket.status.verified_failed":"Verification Failed","ticket.status.verified_pending":"Verification Pending","ticket.action.claim":"Claim","ticket.action.claim.success":"Claim ticket","ticket.action.process":"Start Process","ticket.action.process.success":"Start process ticket","ticket.action.resolve":"Resolve","ticket.action.resolve.success":"Resolve ticket","ticket.action.pending":"Pending","ticket.action.pending.success":"Set ticket to pending","ticket.action.hold":"Hold","ticket.action.hold.success":"Set ticket to hold success","ticket.action.resume":"Resume","ticket.action.resume.success":"Resume ticket","ticket.action.close.success":"Close ticket","ticket.action.reopen.success":"Reopen ticket","ticket.action.escalate":"Escalate","ticket.action.escalate.success":"Escalate ticket","ticket.action.unclaim":"Unclaim","ticket.action.unclaim.success":"Unclaim ticket","ticket.action.claim.confirm.title":"Claim Ticket","ticket.action.claim.confirm.content":"Are you sure you want to claim this ticket?","ticket.action.claim.loading":"Claiming ticket...","ticket.action.claim.error":"Failed to claim ticket","ticket.verify.title":"Verify Ticket","ticket.verify.content":"Please verify this ticket","ticket.verify.pass":"Pass","ticket.verify.reject":"Reject","ticket.verify.success":"Ticket verified successfully","ticket.verify.reject.success":"Ticket rejected successfully","ticket.verify.error":"Failed to verify ticket","ticket.verify.later":"Decide Later","ticket.priority.lowest":"Lowest","ticket.priority.low":"Low","ticket.priority.medium":"Medium","ticket.priority.high":"High","ticket.priority.urgent":"Urgent","ticket.priority.critical":"Critical","ticket.department.load.error":"Failed to load departments","ticket.member.load.error":"Failed to load members","ticket.activity.history":"Ticket Activity History"},Htn={i18_file_assistant:"File Assistant",slogan:"Chat As A Service","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Webrtc","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.screenshot":"Screenshot","chat.toolbar.invite.rate":"InviteRate","chat.toolbar.autoreply":"AutoReply","chat.toolbar.autoreply.on":"AutoReply(On)","chat.navbar.transfer":"Transfer","chat.navbar.ticket":"Ticket","chat.navbar.crm":"Crm","chat.navbar.close":"Close","chat.navbar.category":"Category","chat.navbar.ai":"AI","chat.navbar.queue":"Queue","chat.right.ai":"Copilot","chat.right.quickreply":"QuickReply","chat.right.ticket":"Ticket","chat.right.userinfo":"UserInfo","chat.right.llm":"Llm","chat.right.docview":"DocView","chat.right.group":"Group","chat.right.member":"Member","chat.ai.summary":"Thread Summary","chat.ai.switch":"Switch","chat.thread.nomore":"No More","chat.message.loadmore":"Load More","dashboard.footbar.logout":"Logout",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Knowledgebase Robot",QA:"QA Robot",AGENT_ASSISTANT:"Agent Asistant",loading:"Loading",create:"Create",creating:"Creating","create.success":"Create success","create.fail":"Create fail",update:"Update",updating:"Updating","update.success":"Update success","update.fail":"Update fail",save:"Save",saving:"Saving",email:"Email","email.verified":"Email Verified","email.unverified":"Email Unverified",mobile:"Mobile","mobile.verified":"Mobile Verified","mobile.unverified":"Mobile Unverified",captcha:"Captcha",logging:"Logging","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed","username.change.tip":"Username(should re login after changed)",createKb:"Create Knowledge Base",createDept:"Create Department",upload:"Upload",import:"Import",export:"Export","download.template":"Download Template",open:"Open",copy:"Copy","copy.success":"Copy success",ok:"OK",cancel:"Cancel",bind:"Bind",edit:"Edit",editing:"Editing","edit.success":"Edit success","edit.fail":"Edit fail",delete:"Delete",deleting:"Deleting",deleteTip:"Delete Tip",deleteAffirm:"Are u sure to delete","delete.success":"Delete success","delete.fail":"Delete fail","process.success":"Process success","process.fail":"Process fail",preview:"Preview",close:"Close",closing:"Closing",closeTip:"Close Tip",closeASure:"Are u sure to close","close.success":"Close success",choose:"Choose","leavemsg.enabled":"Leave Message Enabled",transfer:"Transfer","transfer.success":"Transfer success","transfer.fail":"Transfer fail","transfer.reason":"Transfer Reason",refresh:"Refresh",noAgent:"No Agent Available",invite:"Invite","invite.success":"Invite success","invite.fail":"Invite fail","invite.reason":"Invite Reason","invite.no.agent":"No Agent Available"},Utn={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},Wtn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.all":"All","i18n.queue.tip":"Queue","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.queue.empty":"Queue empty","i18n.queue.accept":"accept","i18n.system.notification":"System Notification","i18n.old.password.wrong":"Old password is incorrect","i18n.change.password":"Change Password","i18n.auth.captcha.send.success":"Captcha Send success","i18n.auth.captcha.error":"Captcha Error","i18n.auth.captcha.expired":"Captcha Expired","i18n.auth.captcha.already.send":"Captcha Already Send","i18n.auth.captcha.validate.failed":"Captcha Validate Failed","i18n.DEPT_ALL":"All","i18n.DEPT_ADMIN":"Admin","i18n.DEPT_MEMBER":"Member","i18n.DEPT_CS":"CustomerService",ROLE_SUPER:"Super",ROLE_ADMIN:"Admin",ROLE_MEMBER:"Member",ROLE_AGENT:"Agent",ROLE_USER:"User",ROLE_VISITOR:"Visitor","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.loading":"Loading","i18n.load.more":"Load more","i18n.load.nomore":"No more","i18n.typing":"Typing","i18n.robot":"Robot","i18n.agent":"Agent","i18n.workgroup":"WorkGroup","i18n.group":"Group","i18n.rate.invite":"Rate Invite","i18n.ticket":"Ticket","i18n.ticket.thread":"Ticket Thread","i18n.notice":"Notice","i18n.notice.title":"Notice","i18n.notice.content":"Notice Content","i18n.notice.ip":"IP Address","i18n.notice.ipLocation":"IP Location","i18n.notice.parse.file.success":"Parse file success","i18n.notice.parse.file.error":"Parse file error","i18n.login_notification":"登录通知","i18n.login_time":"登录时间","i18n.login_ip":"登录IP","i18n.login_location":"登录地点","i18n.if_not_you_please_change_password":"如果这不是您的操作,请立即修改密码。","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.new.message":"New Message","i18n.file.assistant":"file assistant","i18n.clipboard.assistant":"clipboard assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.top.tip":"Top Tip","i18n.top.make":"Make Top","i18n.top.cancel":"Cancel Top","i18n.unread.make":"Mark as unread","i18n.unread.cancel":"Mark as read","i18n.star.make":"Make Star","i18n.star.cancel":"Cancel Star","i18n.disturb.make":"Make Disturb","i18n.disturb.cancel":"Cancel Disturb","i18n.transfer":"Transfer","i18n.hide":"Hide","i18n.network.disconnected":"Network disconnected","i18n.message.pulling":"Message pulling","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultRobotAgent","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.before.nickname":"BeforeWorkgroup","i18n.workgroup.after.nickname":"AfterWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.workgroup.before.description":"BeforeWorkgroup Description","i18n.workgroup.after.description":"AfterWorkgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.tip.title":"Tip","i18n.tip.network.disconnected":"Network disconnected","i18n.tip.network.connected":"Network connected","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpcenter.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.online.chat":"Online Chat","i18n.JOB":"Job","i18n.LANGUAGE":"Language","i18n.TOOL":"Tool","i18n.WRITING":"Writing","i18n.RAG":"RAG","i18n.module.ai":"AI","i18n.module.void":"Void","i18n.module.service":"Service","i18n.module.ticket":"Ticket","i18n.black.user.already.exists":"User already blocked","i18n.ticket.category.technical_support":"Technical Support","i18n.ticket.category.service_request":"Service Request","i18n.ticket.category.consultation":"Consultation","i18n.ticket.category.complaint_suggestion":"Complaint Suggestion","i18n.ticket.category.operation_maintenance":"Operation Maintenance","i18n.ticket.category.other":"Other","i18n.vip.component":"VIP Component, Contact us for more details","i18n.vip.contactUs":"Contact us","i18n.vip.contactUrl":"https://www.bytedesk.com","i18n.ticket.process.name.group":"WorkGroup Process","i18n.ticket.process.name.group.simple":"WorkGroup Simple Process","i18n.ticket.process.name.agent":"Agent Process","i18n.username.or.password.incorrect":"Username or password incorrect","i18n.system_notification":"System Notification","i18n.transfer_notification":"Transfer Request","i18n.transfer_accepted":"Transfer Accepted","i18n.transfer_rejected":"Transfer Rejected","i18n.transfer_timeout":"Transfer Request Timeout","i18n.transfer_cancelled":"Transfer Cancelled","i18n.confirm_accept_transfer":"Confirm Accept Transfer","i18n.confirm_accept_transfer_desc":"Are you sure to accept the transfer request?","i18n.confirm_reject_transfer":"Confirm Reject Transfer","i18n.confirm_reject_transfer_desc":"Are you sure to reject the transfer request?","i18n.confirm_cancel_transfer":"Confirm Cancel Transfer","i18n.confirm_cancel_transfer_desc":"Are you sure to cancel the transfer request?","i18n.transfer.notice.title":"Transfer Notice","i18n.transfer.notice.content":"Transfer Notice Content","i18n.transfer.accept.notice.title":"Transfer Accept Notice","i18n.transfer.accept.notice.content":"Transfer Accept Notice Content","i18n.transfer.reject.notice.title":"Transfer Reject Notice","i18n.transfer.reject.notice.content":"Transfer Reject Notice Content","i18n.transfer.timeout.notice.title":"Transfer Timeout Notice","i18n.transfer.timeout.notice.content":"Transfer Timeout Notice Content","i18n.transfer.cancel.notice.title":"Transfer Cancel Notice","i18n.transfer.cancel.notice.content":"Transfer Cancel Notice Content","i18n.already.in.transfer.pending.state":"Already in transfer pending state","i18n.already.in.transfer.accepted.state":"Already in transfer accepted state","i18n.already.in.transfer.rejected.state":"Already in transfer rejected state","i18n.already.in.transfer.timeout.state":"Already in transfer timeout state","i18n.already.in.transfer.canceled.state":"Already in transfer canceled state","i18n.invite_notification":"Invite Request","i18n.invite_accepted":"Invite Accepted","i18n.invite_rejected":"Invite Rejected","i18n.invite_timeout":"Invite Request Timeout","i18n.invite_cancelled":"Invite Cancelled","i18n.confirm_accept_invite":"Confirm Accept Invite","i18n.confirm_accept_invite_desc":"Are you sure to accept the invite request?","i18n.confirm_reject_invite":"Confirm Reject Invite","i18n.confirm_reject_invite_desc":"Are you sure to reject the invite request?","i18n.visitor_invite_notification":"Visitor Invite","i18n.visitor_invite_accepted":"Visitor Invite Accepted","i18n.visitor_invite_rejected":"Visitor Invite Rejected","i18n.visitor_invite_timeout":"Visitor Invite Timeout","i18n.visitor_invite_cancelled":"Visitor Invite Cancelled","i18n.group_invite_notification":"Group Invite","i18n.group_invite_accepted":"Group Invite Accepted","i18n.group_invite_rejected":"Group Invite Rejected","i18n.group_invite_timeout":"Group Invite Timeout","i18n.group_invite_cancelled":"Group Invite Cancelled","i18n.kbase_invite_notification":"Knowledge Base Invite","i18n.kbase_invite_accepted":"Knowledge Base Invite Accepted","i18n.kbase_invite_rejected":"Knowledge Base Invite Rejected","i18n.kbase_invite_timeout":"Knowledge Base Invite Timeout","i18n.kbase_invite_cancelled":"Knowledge Base Invite Cancelled","i18n.organization_invite_notification":"Organization Invite","i18n.organization_invite_accepted":"Organization Invite Accepted","i18n.organization_invite_rejected":"Organization Invite Rejected","i18n.organization_invite_timeout":"Organization Invite Timeout","i18n.organization_invite_cancelled":"Organization Invite Cancelled","i18n.from":"From","i18n.to":"To","i18n.note":"Note","i18n.status":"Status","i18n.time":"Time","i18n.inviter":"Inviter","i18n.invitee":"Invitee","i18n.visitor":"Visitor","i18n.group_name":"Group Name","i18n.kbase_name":"Knowledge Base Name","i18n.organization_name":"Organization Name","i18n.auto.close.tip":"The conversation has been automatically closed","i18n.agent.close.tip":"The conversation has been closed by the agent","i18n.accept":"Accept","i18n.reject":"Reject","i18n.user.signup.first":"Please sign up first","i18n.email.signup.first":"Please verify your email first","i18n.mobile.signup.first":"Please verify your mobile first","i18n.resource.not.found":"Resource not found","i18n.user.disabled":"User is disabled","i18n.forbidden.access":"Forbidden access","i18n.user.blocked":"User is blocked","i18n.sensitive.content":"Sensitive content detected","i18n.message.processing.failed":"Message processing failed","i18n.null.pointer.exception":"Null pointer exception","i18n.response.status.exception":"Response status exception","i18n.websocket.timeout.exception":"WebSocket timeout exception","i18n.http.method.not.supported":"HTTP method not supported","i18n.authorization.denied":"Authorization denied","i18n.request.rejected":"Request rejected","i18n.entity.not.found":"Entity not found","i18n.internal.server.error":"Internal server error"},Vtn={"login.privacy.required":"Please read and agree to the privacy agreement","login.privacy.agreement":"Agree to Privacy Agreement","login.switch.server":"Switch Server","login.success":"Login successful","login.failed":"Login failed","login.anonymous":"Anonymous Login","login.other.methods":"Other login methods","login.remember":"Remember me","login.forgot":"Forgot password?","login.register":"Register account","server.button.back":"Back","server.button.save":"Save","server.button.reset":"Reset","server.button.help":"Help","server.save.success":"Save successfully","server.reset.success":"Reset successfully, restored to default cloud server","server.custom.enable":"Enable Custom Server","server.api.url.label":"API Server URL (e.g. http://127.0.0.1:9003 or https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket Server URL (e.g. ws://127.0.0.1:9885/websocket or wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"Please enter correct server address"},qtn={"thread.error.message":"Failed to get data","thread.feature.unavailable":"TODO: This feature is not available yet","thread.menu.top":"Pin to Top","thread.menu.untop":"Unpin","thread.menu.read":"Mark as Read","thread.menu.unread":"Mark as Unread","thread.menu.mute":"Mute","thread.menu.unmute":"Unmute","thread.menu.transfer":"Transfer","thread.menu.block":"Block","thread.menu.remark":"Remark","thread.menu.ticket":"Create Ticket","thread.menu.crm":"View in CRM","thread.menu.summary":"Summary","thread.status.robot":"[Robot]","thread.status.agent":"[1-on-1]","thread.status.workgroup":"[Group]","thread.search.placeholder":"Search conversations...","thread.menu.filter":"Filter Threads","thread.menu.groupThread":"Group Thread","thread.menu.robotThread":"Robot Thread","thread.menu.workgroupThread":"Workgroup Thread","thread.menu.agentThread":"Agent Thread","thread.menu.ticketThread":"Ticket Thread","thread.menu.memberThread":"Member Thread","thread.menu.deviceThread":"Device Thread","thread.menu.systemThread":"System Thread","thread.status.loading":"Loading...","thread.status.empty":"No conversations","thread.status.error":"Failed to load conversations","thread.status.queue":"Queue ({count})","thread.status.network.offline":"Network disconnected","thread.status.network.online":"Network connected","thread.status.message.pulling":"Pulling messages...","thread.status.message.empty":"No messages","thread.status.message.error":"Failed to load messages","thread.status.message.end":"No more messages","thread.status.message.typing":"Typing...","thread.status.message.transfer":"Transferring...","thread.status.message.transferred":"Transferred","thread.status.message.closed":"Conversation closed","thread.dropdown.create.group":"Create Group Chat","thread.dropdown.create.ai":"Create AI Chat","thread.agent.status.online":"Online","thread.agent.status.offline":"Offline","thread.agent.status.busy":"Busy","thread.refresh.pull":"↓ Pull to refresh","thread.refresh.release":"↑ Release to refresh","thread.list.no.more":"No more data","thread.set.success":"Set successfully","thread.set.error":"Set failed","thread.menu.star":"Star","thread.menu.star.1":"Star Level 1","thread.menu.star.2":"Star Level 2","thread.menu.star.3":"Star Level 3","thread.menu.star.4":"Star Level 4","thread.menu.hide":"Hide","thread.status.text":"{status}","thread.status.online":"Online","thread.status.offline":"Offline","thread.status.busy":"🏃‍♀️Busy","thread.coming.soon":"Coming soon...","thread.menu.star.cancel":"Remove Star","thread.loading.more":"Loading more..."},Ktn={"message.status.read":"Read","message.status.delivered":"Delivered","message.status.sending":"Sending","message.status.sent":"Sent","message.status.failed":"Failed to send","message.status.retry":"Retry","quickreply.search.placeholder":"Search","quickreply.button.send":"Send","quickreply.button.copy":"Copy","quickreply.button.create.category":"Create Category","quickreply.button.create.reply":"Create Quick Reply","quickreply.copy.success":"{content} copied to clipboard","category.form.edit.title":"Edit Category","category.form.create.title":"Create Category","category.form.name":"Category Name","category.form.name.required":"Please enter category name!","category.form.name.placeholder":"Enter category name","category.create.failed":"Failed to create category","quickreply.drawer.title":"{isEdit, select, true {Edit Quick Reply} other {New Quick Reply}}","quickreply.form.category":"Category","quickreply.form.category.required":"Please select a category","quickreply.form.category.placeholder":"Select a category","quickreply.form.type":"Type","quickreply.form.type.required":"Please select a type","quickreply.form.type.placeholder":"Select a type","quickreply.form.title":"Title","quickreply.form.title.required":"Please enter a title","quickreply.form.content":"Content","quickreply.type.text":"Text","quickreply.type.image":"Image","quickreply.type.video":"Video","quickreply.type.audio":"Audio","quickreply.type.file":"File","quickreply.upload.text":"Click or drag file to upload","quickreply.upload.success":"{filename} uploaded successfully","quickreply.upload.error":"{filename} upload failed","quickreply.upload.uploading":"{filename} uploading","quickreply.form.validate.error":"Please check the form"},Gtn={"customer.info.basic":"Basic Info","customer.info.browser":"Browser Info","customer.info.os":"OS Info","customer.info.device":"Device Info","customer.info.browse.record":"Browse Record","customer.info.tag":"Tag Info","customer.info.extra":"Extra Info","customer.info.load.error":"Failed to load visitor info","customer.info.add.crm":"Add to CRM","customer.info.add.tag":"Add Tag","customer.basic.nickname":"Nickname","customer.basic.location":"IP Location","customer.basic.note":"Note","customer.basic.client":"Client","customer.basic.status":"Status","customer.basic.empty":"N/A","black.title":"Block Settings","black.type":"Block Type","black.type.required":"Please select at least one block type","black.user":"Block User","black.ip":"Block IP","black.permanent":"Permanent Block","black.until":"Block Until","black.until.required":"Please select block end time","black.reason":"Block Reason","black.reason.required":"Please enter block reason","black.success":"Block successfully"},Ytn={"contact.list.new":"New Friends","contact.list.device":"LAN Devices","contact.list.group":"Groups","contact.list.channel":"Channels","contact.list.company":"Company Contacts","contact.list.friend":"Contacts","contact.search.placeholder":"Search contacts...","contact.manager.button":"Contact Manager","contact.manager.coming":"Coming soon...","member.detail.nickname":"Nickname","member.detail.jobno":"Job No.","member.detail.seatno":"Seat No.","member.detail.telephone":"Telephone","member.detail.loading":"Loading...","member.detail.chat.button":"Start Chat"},Xtn={"autoreply.title":"Auto Reply","autoreply.enable.label":"Enable Auto Reply","autoreply.type.label":"Auto Reply Type","autoreply.type.fixed":"Fixed Reply","autoreply.type.keyword":"Keyword Match","autoreply.type.llm":"AI Model Reply","autoreply.fixed.add":"Add Fixed Reply","autoreply.fixed.select":"Select Fixed Reply","autoreply.fixed.type":"Fixed Reply Type","autoreply.fixed.content":"Fixed Reply Content","autoreply.content.text":"Text","autoreply.content.image":"Image","autoreply.content.video":"Video","autoreply.content.audio":"Audio","autoreply.content.file":"File","autoreply.save.loading":"Saving...","autoreply.save.success":"Saved successfully","autoreply.save.error":"Failed to save","autoreply.keyword.add":"Add Keyword Knowledge Base","autoreply.keyword.select":"Select Keyword Knowledge Base","autoreply.llm.add":"Add AI Model Knowledge Base","autoreply.llm.select":"Select AI Model Knowledge Base"},Ztn={"queue.accepting":"Accepting...","queue.accept.success":"Accepted successfully","queue.accept.failed":"Failed to accept","queue.accept":"Accept","queue.empty":"No queuing visitors","queue.loading":"Loading queue...","queue.error":"Failed to load queue","queue.count":"{count} visitors queuing","queue.wait.time":"Estimated wait time: {minutes} minutes"},Qtn={"group.create.title":"Create Group Chat","group.create.contacts":"Contacts","group.create.members":"Members","group.create.members.min":"Please select at least 2 members","group.create.creating":"Creating group...","group.create.org.empty":"No organization selected","group.create.success":"Group created successfully","group.create.failed":"Failed to create group","group.create.loading":"Loading members...","group.create.error":"Failed to load members"},Jtn={"upload.modal.title":"Upload Files","upload.drag.text":"Click or drag files here to upload","upload.drag.hint":"Support for single or bulk upload","upload.uploading":"{filename} uploading...","upload.success":"{filename} uploaded successfully","upload.failed":"{filename} upload failed","upload.delete.confirm":"Are you sure to delete this file?","upload.preview.image":"Image Preview","upload.preview.file":"File Preview","upload.button.ok":"OK","upload.button.cancel":"Cancel","upload.maxCount":"Cannot upload more than {maxCount} files","upload.maxSize":"File size cannot exceed {maxSize}MB"},enn={"robot.list.add":"Add AI Agent","robot.list.chat":"Chat","robot.list.edit":"Edit","robot.list.delete":"Delete","robot.list.create":"Create"},tnn={"welcome.modal.title":"No Organization Found","welcome.modal.description":"You need to create or join an organization","welcome.modal.join":"Join Organization (Coming Soon)","welcome.modal.create":"Create Organization","welcome.modal.input.placeholder":"Please enter organization name","welcome.message.org.required":"Please create or join an organization","welcome.message.create.success":"Organization created successfully","welcome.message.create.failed":"Failed to create organization","welcome.message.verify.email":"Please verify your email first","welcome.message.verify.mobile":"Please verify your mobile number first","welcome.message.org.name.required":"Please enter organization name","welcome.message.org.creating":"Creating organization, please wait...","welcome.verify.modal.title":"Account Verification","welcome.verify.modal.description":"Your email and mobile number have not been verified. For account security, we recommend completing verification as soon as possible.","welcome.verify.now":"Verify Now","welcome.verify.later":"Verify Later"},nnn={...jtn,...Ntn,...Atn,...Dtn,...Ftn,...Ltn,...Btn,...ztn,...Htn,...Utn,...Wtn,...Vtn,...qtn,...Ktn,...Gtn,...Ytn,...Xtn,...Ztn,...Qtn,...Jtn,...enn,...tnn},rnn={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},TSe={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},ya={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ss={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},wp={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class tn{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=tn.getVersionPrecision(t),a=tn.getVersionPrecision(n);let o=Math.max(i,a),s=0;const l=tn.map([t,n],c=>{const u=o-tn.getVersionPrecision(c),f=c+new Array(u+1).join(".0");return tn.map(f.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=o-Math.min(i,a)),o-=1;o>=s;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===s)return 0;o-=1}else if(l[0][o]{r[l]=o[l]})}return t}static getBrowserAlias(t){return rnn[t]}static getBrowserTypeByAlias(t){return TSe[t]||""}}const xi=/version\/(\d+(\.?_?\d+)+)/i,inn=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=tn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=tn.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=tn.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=tn.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=tn.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=tn.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=tn.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=tn.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=tn.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=tn.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=tn.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=tn.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=tn.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=tn.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=tn.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=tn.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=tn.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=tn.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=tn.getFirstMatch(xi,e)||tn.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=tn.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=tn.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=tn.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=tn.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=tn.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=tn.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=tn.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=tn.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=tn.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=tn.getFirstMatch(xi,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:tn.getFirstMatch(i,e),version:tn.getSecondMatch(i,e)}}}],ann=[{test:[/Roku\/DVP/],describe(e){const t=tn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ss.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=tn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ss.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=tn.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=tn.getWindowsVersionName(t);return{name:ss.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:ss.iOS},n=tn.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=tn.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=tn.getMacOSVersionName(t),r={name:ss.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=tn.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ss.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=tn.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=tn.getAndroidVersionName(t),r={name:ss.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=tn.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:ss.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=tn.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||tn.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||tn.getFirstMatch(/\bbb(\d+)/i,e);return{name:ss.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=tn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ss.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=tn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ss.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:ss.Linux}}},{test:[/CrOS/],describe(){return{name:ss.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=tn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ss.PlayStation4,version:t}}}],onn=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=tn.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:ya.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:ya.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:ya.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:ya.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:ya.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:ya.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:ya.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=tn.getFirstMatch(/(ipod|iphone)/i,e);return{type:ya.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:ya.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:ya.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:ya.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:ya.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:ya.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:ya.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:ya.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:ya.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:ya.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:ya.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:ya.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:ya.tv}}}],snn=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:wp.Blink};const n=tn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:wp.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:wp.Trident},n=tn.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:wp.Presto},n=tn.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:wp.Gecko},n=tn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:wp.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:wp.WebKit},n=tn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class $ie{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=tn.find(inn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=tn.find(ann,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=tn.find(onn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=tn.find(snn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return tn.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let a=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(i[s]=l,a+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=tn.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=tn.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(a>0){const s=Object.keys(i),l=tn.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const a=tn.getBrowserTypeByAlias(i);return n&&a&&(i=a.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const a=this.getBrowserVersion();if(typeof a=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(tn.compareVersions(a,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! * Bowser - a browser detector * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 - */class snn{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new Mie(t,n)}static parse(t){return new Mie(t).getResult()}static get BROWSER_MAP(){return PSe}static get ENGINE_MAP(){return wp}static get OS_MAP(){return ss}static get PLATFORMS_MAP(){return ya}}const{defaultAlgorithm:lnn,darkAlgorithm:cnn}=Ho,WP={"zh-cn":utn,"zh-tw":Rtn,en:tnn},unn=()=>{const{isDarkMode:e,locale:t}=d.useContext(Ea),n=(t==null?void 0:t.locale)||gRe(),r=new kut({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[i,a]=d.useState(!1),o=()=>{const c=snn.getParser(window.navigator.userAgent);console.log("browser:",c),ha?console.log("OsName:",c.getOSName()):console.log("BrowserName:",c.getBrowserName()),c.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&a(!0)},s=c=>{document.title=c||WP[n]["app.title"]},l=async()=>{var p,h;console.log("getConfig");const c=await kle();console.log("getConfig config: ",c);const u=(p=c==null?void 0:c.custom)==null?void 0:p.enabled,f=(h=c==null?void 0:c.custom)==null?void 0:h.name;if(s(u&&f?f:WP[n]["app.title"]),ha)console.log("is electron");else{await _le();const m=d4();console.log("Base URL:",m)}};return d.useEffect(()=>{vde(),o(),l()},[]),x.jsx(zn,{locale:t,theme:{algorithm:e?cnn:lnn},children:x.jsx($ut,{client:r,children:x.jsx(Nwe,{children:x.jsx(d.Suspense,{fallback:x.jsx("div",{children:"loading..."}),children:x.jsxs(mNt,{messages:WP[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[i&&x.jsx(qH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:K6e})}),x.jsxs(v8,{children:[x.jsx(Sct,{}),x.jsx(aft,{router:Hen})]})]})})})})})},dnn=()=>x.jsx("div",{className:"App",children:x.jsx(rut,{children:x.jsx(unn,{})})});qP.createRoot(document.getElementById("root")).render(x.jsx(dnn,{}));postMessage({payload:"removeLoading"},"*")});export default fnn(); + */class lnn{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new $ie(t,n)}static parse(t){return new $ie(t).getResult()}static get BROWSER_MAP(){return TSe}static get ENGINE_MAP(){return wp}static get OS_MAP(){return ss}static get PLATFORMS_MAP(){return ya}}const{defaultAlgorithm:cnn,darkAlgorithm:unn}=zo,WP={"zh-cn":dtn,"zh-tw":Itn,en:nnn},dnn=()=>{const{isDarkMode:e,locale:t}=d.useContext(Ea),n=(t==null?void 0:t.locale)||mRe(),r=new _ut({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[i,a]=d.useState(!1),o=()=>{const c=lnn.getParser(window.navigator.userAgent);console.log("browser:",c),ha?console.log("OsName:",c.getOSName()):console.log("BrowserName:",c.getBrowserName()),c.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&a(!0)},s=c=>{document.title=c||WP[n]["app.title"]},l=async()=>{var p,h;console.log("getConfig");const c=await _le();console.log("getConfig config: ",c);const u=(p=c==null?void 0:c.custom)==null?void 0:p.enabled,f=(h=c==null?void 0:c.custom)==null?void 0:h.name;if(s(u&&f?f:WP[n]["app.title"]),ha)console.log("is electron");else{await Cle();const m=u4();console.log("Base URL:",m)}};return d.useEffect(()=>{gde(),o(),l()},[]),x.jsx(zn,{locale:t,theme:{algorithm:e?unn:cnn},children:x.jsx(Eut,{client:r,children:x.jsx(jwe,{children:x.jsx(d.Suspense,{fallback:x.jsx("div",{children:"loading..."}),children:x.jsxs(hNt,{messages:WP[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[i&&x.jsx(qH,{children:x.jsx("link",{rel:"stylesheet",type:"text/css",href:q6e})}),x.jsxs(v8,{children:[x.jsx(xct,{}),x.jsx(ift,{router:Uen})]})]})})})})})},fnn=()=>x.jsx("div",{className:"App",children:x.jsx(nut,{children:x.jsx(dnn,{})})});qP.createRoot(document.getElementById("root")).render(x.jsx(fnn,{}));postMessage({payload:"removeLoading"},"*")});export default pnn(); diff --git a/starter/src/main/resources/templates/agent/index.html b/starter/src/main/resources/templates/agent/index.html index 50b76c5ba9..15e52f62a2 100644 --- a/starter/src/main/resources/templates/agent/index.html +++ b/starter/src/main/resources/templates/agent/index.html @@ -1 +1 @@ -微语
      \ No newline at end of file +微语
      \ No newline at end of file diff --git a/starter/src/main/resources/templates/chat/assets/index-C5y6TUnm.js b/starter/src/main/resources/templates/chat/assets/index-C5y6TUnm.js deleted file mode 100644 index ff9723c5e1..0000000000 --- a/starter/src/main/resources/templates/chat/assets/index-C5y6TUnm.js +++ /dev/null @@ -1,1761 +0,0 @@ -var Ose=Object.defineProperty;var Rse=(e,t,n)=>t in e?Ose(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ise=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ur=(e,t,n)=>Rse(e,typeof t!="symbol"?t+"":t,n);var c4t=Ise((lo,Xi)=>{function FV(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var AV={exports:{}},LS={},LV={exports:{}},Tn={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var S0=Symbol.for("react.element"),Mse=Symbol.for("react.portal"),Nse=Symbol.for("react.fragment"),Dse=Symbol.for("react.strict_mode"),jse=Symbol.for("react.profiler"),Fse=Symbol.for("react.provider"),Ase=Symbol.for("react.context"),Lse=Symbol.for("react.forward_ref"),Bse=Symbol.for("react.suspense"),zse=Symbol.for("react.memo"),Hse=Symbol.for("react.lazy"),k5=Symbol.iterator;function Vse(e){return e===null||typeof e!="object"?null:(e=k5&&e[k5]||e["@@iterator"],typeof e=="function"?e:null)}var BV={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zV=Object.assign,HV={};function Ap(e,t,n){this.props=e,this.context=t,this.refs=HV,this.updater=n||BV}Ap.prototype.isReactComponent={};Ap.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ap.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function VV(){}VV.prototype=Ap.prototype;function y6(e,t,n){this.props=e,this.context=t,this.refs=HV,this.updater=n||BV}var w6=y6.prototype=new VV;w6.constructor=y6;zV(w6,Ap.prototype);w6.isPureReactComponent=!0;var $5=Array.isArray,WV=Object.prototype.hasOwnProperty,x6={current:null},UV={key:!0,ref:!0,__self:!0,__source:!0};function qV(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)WV.call(t,r)&&!UV.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,V=F[H];if(0>>1;Hi(U,I))Xi(q,U)?(F[H]=q,F[X]=I,H=X):(F[H]=U,F[W]=I,H=W);else if(Xi(q,I))F[H]=q,F[X]=I,H=X;else break e}}return z}function i(F,z){var I=F.sortIndex-z.sortIndex;return I!==0?I:F.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],d=1,f=null,m=3,p=!1,h=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(F){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=F)r(c),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(c)}}function x(F){if(v=!1,b(F),!h)if(n(l)!==null)h=!0,R(C);else{var z=n(c);z!==null&&D(x,z.startTime-F)}}function C(F,z){h=!1,v&&(v=!1,w(k),k=-1),p=!0;var I=m;try{for(b(z),f=n(l);f!==null&&(!(f.expirationTime>z)||F&&!P());){var H=f.callback;if(typeof H=="function"){f.callback=null,m=f.priorityLevel;var V=H(f.expirationTime<=z);z=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(l)&&r(l),b(z)}else r(l);f=n(l)}if(f!==null)var B=!0;else{var W=n(c);W!==null&&D(x,W.startTime-z),B=!1}return B}finally{f=null,m=I,p=!1}}var S=!1,_=null,k=-1,$=5,E=-1;function P(){return!(e.unstable_now()-E<$)}function M(){if(_!==null){var F=e.unstable_now();E=F;var z=!0;try{z=_(!0,F)}finally{z?j():(S=!1,_=null)}}else S=!1}var j;if(typeof y=="function")j=function(){y(M)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,N=O.port2;O.port1.onmessage=M,j=function(){N.postMessage(null)}}else j=function(){g(M,0)};function R(F){_=F,S||(S=!0,j())}function D(F,z){k=g(function(){F(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,R(C))},e.unstable_forceFrameRate=function(F){0>F||125H?(F.sortIndex=I,t(c,F),n(l)===null&&F===n(c)&&(v?(w(k),k=-1):v=!0,D(x,I-H))):(F.sortIndex=V,t(l,F),h||p||(h=!0,R(C))),F},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(F){var z=m;return function(){var I=m;m=z;try{return F.apply(this,arguments)}finally{m=I}}}})(QV);XV.exports=QV;var ele=XV.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var tle=u,po=ele;function Pt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),H3=Object.prototype.hasOwnProperty,nle=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,P5={},T5={};function rle(e){return H3.call(T5,e)?!0:H3.call(P5,e)?!1:nle.test(e)?T5[e]=!0:(P5[e]=!0,!1)}function ile(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ale(e,t,n,r){if(t===null||typeof t>"u"||ile(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ba(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ai={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ai[e]=new ba(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ai[t]=new ba(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ai[e]=new ba(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ai[e]=new ba(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ai[e]=new ba(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ai[e]=new ba(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ai[e]=new ba(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ai[e]=new ba(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ai[e]=new ba(e,5,!1,e.toLowerCase(),null,!1,!1)});var C6=/[\-:]([a-z])/g;function _6(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C6,_6);Ai[t]=new ba(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C6,_6);Ai[t]=new ba(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C6,_6);Ai[t]=new ba(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ai[e]=new ba(e,1,!1,e.toLowerCase(),null,!1,!1)});Ai.xlinkHref=new ba("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ai[e]=new ba(e,1,!1,e.toLowerCase(),null,!0,!0)});function k6(e,t,n,r){var i=Ai.hasOwnProperty(t)?Ai[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Ck=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vv(e):""}function ole(e){switch(e.tag){case 5:return vv(e.type);case 16:return vv("Lazy");case 13:return vv("Suspense");case 19:return vv("SuspenseList");case 0:case 2:case 15:return e=_k(e.type,!1),e;case 11:return e=_k(e.type.render,!1),e;case 1:return e=_k(e.type,!0),e;default:return""}}function q3(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sm:return"Fragment";case om:return"Portal";case V3:return"Profiler";case $6:return"StrictMode";case W3:return"Suspense";case U3:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eW:return(e.displayName||"Context")+".Consumer";case JV:return(e._context.displayName||"Context")+".Provider";case E6:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P6:return t=e.displayName||null,t!==null?t:q3(e.type)||"Memo";case qc:t=e._payload,e=e._init;try{return q3(e(t))}catch{}}return null}function sle(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q3(t);case 8:return t===$6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nW(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lle(e){var t=nW(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function U1(e){e._valueTracker||(e._valueTracker=lle(e))}function rW(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nW(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fw(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function G3(e,t){var n=t.checked;return jr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function R5(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ku(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function iW(e,t){t=t.checked,t!=null&&k6(e,"checked",t,!1)}function K3(e,t){iW(e,t);var n=ku(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Y3(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y3(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function I5(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Y3(e,t,n){(t!=="number"||Fw(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gv=Array.isArray;function $m(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=q1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fg(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dv={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cle=["Webkit","ms","Moz","O"];Object.keys(Dv).forEach(function(e){cle.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dv[t]=Dv[e]})});function lW(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Dv.hasOwnProperty(e)&&Dv[e]?(""+t).trim():t+"px"}function cW(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=lW(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ule=jr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Z3(e,t){if(t){if(ule[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pt(62))}}function J3(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var e4=null;function T6(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var t4=null,Em=null,Pm=null;function D5(e){if(e=k0(e)){if(typeof t4!="function")throw Error(Pt(280));var t=e.stateNode;t&&(t=WS(t),t4(e.stateNode,e.type,t))}}function uW(e){Em?Pm?Pm.push(e):Pm=[e]:Em=e}function dW(){if(Em){var e=Em,t=Pm;if(Pm=Em=null,D5(e),t)for(e=0;e>>=0,e===0?32:31-(xle(e)/Sle|0)|0}var G1=64,K1=4194304;function bv(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zw(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=bv(s):(a&=o,a!==0&&(r=bv(a)))}else o=n&~i,o!==0?r=bv(o):a!==0&&(r=bv(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function C0(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$s(t),e[t]=n}function $le(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Fv),W5=" ",U5=!1;function RW(e,t){switch(e){case"keyup":return ece.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function IW(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lm=!1;function nce(e,t){switch(e){case"compositionend":return IW(t);case"keypress":return t.which!==32?null:(U5=!0,W5);case"textInput":return e=t.data,e===W5&&U5?null:e;default:return null}}function rce(e,t){if(lm)return e==="compositionend"||!F6&&RW(e,t)?(e=TW(),Cy=N6=Jc=null,lm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Y5(n)}}function jW(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jW(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FW(){for(var e=window,t=Fw();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fw(e.document)}return t}function A6(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fce(e){var t=FW(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jW(n.ownerDocument.documentElement,n)){if(r!==null&&A6(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=X5(n,a);var o=X5(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,cm=null,s4=null,Lv=null,l4=!1;function Q5(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;l4||cm==null||cm!==Fw(r)||(r=cm,"selectionStart"in r&&A6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Lv&&bg(Lv,r)||(Lv=r,r=Ww(s4,"onSelect"),0fm||(e.current=p4[fm],p4[fm]=null,fm--)}function gr(e,t){fm++,p4[fm]=e.current,e.current=t}var $u={},Ji=Nu($u),Ra=Nu(!1),Hd=$u;function Xm(e,t){var n=e.type.contextTypes;if(!n)return $u;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ia(e){return e=e.childContextTypes,e!=null}function qw(){$r(Ra),$r(Ji)}function i8(e,t,n){if(Ji.current!==$u)throw Error(Pt(168));gr(Ji,t),gr(Ra,n)}function qW(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pt(108,sle(e)||"Unknown",i));return jr({},n,r)}function Gw(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$u,Hd=Ji.current,gr(Ji,e),gr(Ra,Ra.current),!0}function a8(e,t,n){var r=e.stateNode;if(!r)throw Error(Pt(169));n?(e=qW(e,t,Hd),r.__reactInternalMemoizedMergedChildContext=e,$r(Ra),$r(Ji),gr(Ji,e)):$r(Ra),gr(Ra,n)}var Ql=null,US=!1,Ak=!1;function GW(e){Ql===null?Ql=[e]:Ql.push(e)}function _ce(e){US=!0,GW(e)}function Du(){if(!Ak&&Ql!==null){Ak=!0;var e=0,t=Jn;try{var n=Ql;for(Jn=1;e>=o,i-=o,rc=1<<32-$s(t)+i|n<k?($=_,_=null):$=_.sibling;var E=m(w,_,b[k],x);if(E===null){_===null&&(_=$);break}e&&_&&E.alternate===null&&t(w,_),y=a(E,y,k),S===null?C=E:S.sibling=E,S=E,_=$}if(k===b.length)return n(w,_),Ir&&Zu(w,k),C;if(_===null){for(;kk?($=_,_=null):$=_.sibling;var P=m(w,_,E.value,x);if(P===null){_===null&&(_=$);break}e&&_&&P.alternate===null&&t(w,_),y=a(P,y,k),S===null?C=P:S.sibling=P,S=P,_=$}if(E.done)return n(w,_),Ir&&Zu(w,k),C;if(_===null){for(;!E.done;k++,E=b.next())E=f(w,E.value,x),E!==null&&(y=a(E,y,k),S===null?C=E:S.sibling=E,S=E);return Ir&&Zu(w,k),C}for(_=r(w,_);!E.done;k++,E=b.next())E=p(_,w,k,E.value,x),E!==null&&(e&&E.alternate!==null&&_.delete(E.key===null?k:E.key),y=a(E,y,k),S===null?C=E:S.sibling=E,S=E);return e&&_.forEach(function(M){return t(w,M)}),Ir&&Zu(w,k),C}function g(w,y,b,x){if(typeof b=="object"&&b!==null&&b.type===sm&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case W1:e:{for(var C=b.key,S=y;S!==null;){if(S.key===C){if(C=b.type,C===sm){if(S.tag===7){n(w,S.sibling),y=i(S,b.props.children),y.return=w,w=y;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===qc&&l8(C)===S.type){n(w,S.sibling),y=i(S,b.props),y.ref=Mh(w,S,b),y.return=w,w=y;break e}n(w,S);break}else t(w,S);S=S.sibling}b.type===sm?(y=Pd(b.props.children,w.mode,x,b.key),y.return=w,w=y):(x=Ry(b.type,b.key,b.props,null,w.mode,x),x.ref=Mh(w,y,b),x.return=w,w=x)}return o(w);case om:e:{for(S=b.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(w,y.sibling),y=i(y,b.children||[]),y.return=w,w=y;break e}else{n(w,y);break}else t(w,y);y=y.sibling}y=qk(b,w.mode,x),y.return=w,w=y}return o(w);case qc:return S=b._init,g(w,y,S(b._payload),x)}if(gv(b))return h(w,y,b,x);if(Ph(b))return v(w,y,b,x);tb(w,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(w,y.sibling),y=i(y,b),y.return=w,w=y):(n(w,y),y=Uk(b,w.mode,x),y.return=w,w=y),o(w)):n(w,y)}return g}var Zm=QW(!0),ZW=QW(!1),Xw=Nu(null),Qw=null,hm=null,H6=null;function V6(){H6=hm=Qw=null}function W6(e){var t=Xw.current;$r(Xw),e._currentValue=t}function g4(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Om(e,t){Qw=e,H6=hm=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ta=!0),e.firstContext=null)}function Wo(e){var t=e._currentValue;if(H6!==e)if(e={context:e,memoizedValue:t,next:null},hm===null){if(Qw===null)throw Error(Pt(308));hm=e,Qw.dependencies={lanes:0,firstContext:e}}else hm=hm.next=e;return t}var pd=null;function U6(e){pd===null?pd=[e]:pd.push(e)}function JW(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,U6(t)):(n.next=i.next,i.next=n),t.interleaved=n,pc(e,r)}function pc(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Gc=!1;function q6(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eU(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cc(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pu(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zn&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,pc(e,n)}return i=r.interleaved,i===null?(t.next=t,U6(r)):(t.next=i.next,i.next=t),r.interleaved=t,pc(e,n)}function ky(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,R6(e,n)}}function c8(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zw(e,t,n,r){var i=e.updateQueue;Gc=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==o&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,d=c=l=null,s=a;do{var m=s.lane,p=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(m=t,p=n,v.tag){case 1:if(h=v.payload,typeof h=="function"){f=h.call(p,f,m);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,m=typeof h=="function"?h.call(p,f,m):h,m==null)break e;f=jr({},f,m);break e;case 2:Gc=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[s]:m.push(s))}else p={eventTime:p,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=p,l=f):d=d.next=p,o|=m;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Ud|=o,e.lanes=o,e.memoizedState=f}}function u8(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Bk.transition;Bk.transition={};try{e(!1),t()}finally{Jn=n,Bk.transition=r}}function gU(){return Uo().memoizedState}function Pce(e,t,n){var r=vu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bU(e))yU(t,n);else if(n=JW(e,t,n,r),n!==null){var i=pa();Es(n,e,r,i),wU(n,t,r)}}function Tce(e,t,n){var r=vu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bU(e))yU(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ms(s,o)){var l=t.interleaved;l===null?(i.next=i,U6(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=JW(e,t,i,r),n!==null&&(i=pa(),Es(n,e,r,i),wU(n,t,r))}}function bU(e){var t=e.alternate;return e===Dr||t!==null&&t===Dr}function yU(e,t){Bv=ex=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wU(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,R6(e,n)}}var tx={readContext:Wo,useCallback:zi,useContext:zi,useEffect:zi,useImperativeHandle:zi,useInsertionEffect:zi,useLayoutEffect:zi,useMemo:zi,useReducer:zi,useRef:zi,useState:zi,useDebugValue:zi,useDeferredValue:zi,useTransition:zi,useMutableSource:zi,useSyncExternalStore:zi,useId:zi,unstable_isNewReconciler:!1},Oce={readContext:Wo,useCallback:function(e,t){return ll().memoizedState=[e,t===void 0?null:t],e},useContext:Wo,useEffect:f8,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ey(4194308,4,fU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ey(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ey(4,2,e,t)},useMemo:function(e,t){var n=ll();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ll();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Pce.bind(null,Dr,e),[r.memoizedState,e]},useRef:function(e){var t=ll();return e={current:e},t.memoizedState=e},useState:d8,useDebugValue:eR,useDeferredValue:function(e){return ll().memoizedState=e},useTransition:function(){var e=d8(!1),t=e[0];return e=Ece.bind(null,e[1]),ll().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Dr,i=ll();if(Ir){if(n===void 0)throw Error(Pt(407));n=n()}else{if(n=t(),Ei===null)throw Error(Pt(349));Wd&30||iU(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,f8(oU.bind(null,r,a,e),[e]),r.flags|=2048,$g(9,aU.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ll(),t=Ei.identifierPrefix;if(Ir){var n=ic,r=rc;n=(r&~(1<<32-$s(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_g++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[hl]=t,e[xg]=r,OU(e,t,!1,!1),t.stateNode=e;e:{switch(o=J3(n,r),n){case"dialog":xr("cancel",e),xr("close",e),i=r;break;case"iframe":case"object":case"embed":xr("load",e),i=r;break;case"video":case"audio":for(i=0;itp&&(t.flags|=128,r=!0,Nh(a,!1),t.lanes=4194304)}else{if(!r)if(e=Jw(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nh(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ir)return Hi(t),null}else 2*Yr()-a.renderingStartTime>tp&&n!==1073741824&&(t.flags|=128,r=!0,Nh(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Yr(),t.sibling=null,n=Nr.current,gr(Nr,r?n&1|2:n&1),t):(Hi(t),null);case 22:case 23:return oR(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?eo&1073741824&&(Hi(t),t.subtreeFlags&6&&(t.flags|=8192)):Hi(t),null;case 24:return null;case 25:return null}throw Error(Pt(156,t.tag))}function Ace(e,t){switch(B6(t),t.tag){case 1:return Ia(t.type)&&qw(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jm(),$r(Ra),$r(Ji),Y6(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return K6(t),null;case 13:if($r(Nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pt(340));Qm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $r(Nr),null;case 4:return Jm(),null;case 10:return W6(t.type._context),null;case 22:case 23:return oR(),null;case 24:return null;default:return null}}var rb=!1,qi=!1,Lce=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function vm(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ar(e,t,r)}else n.current=null}function $4(e,t,n){try{n()}catch(r){Ar(e,t,r)}}var C8=!1;function Bce(e,t){if(c4=Hw,e=FW(),A6(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++d===r&&(l=o),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(u4={focusedElem:e,selectionRange:n},Hw=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){t=Gt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,g=h.memoizedState,w=t.stateNode,y=w.getSnapshotBeforeUpdate(t.elementType===t.type?v:ps(t.type,v),g);w.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pt(163))}}catch(x){Ar(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}return h=C8,C8=!1,h}function zv(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&$4(t,n,a)}i=i.next}while(i!==r)}}function KS(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function E4(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function MU(e){var t=e.alternate;t!==null&&(e.alternate=null,MU(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[hl],delete t[xg],delete t[m4],delete t[Sce],delete t[Cce])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function NU(e){return e.tag===5||e.tag===3||e.tag===4}function _8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||NU(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function P4(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Uw));else if(r!==4&&(e=e.child,e!==null))for(P4(e,t,n),e=e.sibling;e!==null;)P4(e,t,n),e=e.sibling}function T4(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(T4(e,t,n),e=e.sibling;e!==null;)T4(e,t,n),e=e.sibling}var Ii=null,hs=!1;function Nc(e,t,n){for(n=n.child;n!==null;)DU(e,t,n),n=n.sibling}function DU(e,t,n){if(xl&&typeof xl.onCommitFiberUnmount=="function")try{xl.onCommitFiberUnmount(BS,n)}catch{}switch(n.tag){case 5:qi||vm(n,t);case 6:var r=Ii,i=hs;Ii=null,Nc(e,t,n),Ii=r,hs=i,Ii!==null&&(hs?(e=Ii,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ii.removeChild(n.stateNode));break;case 18:Ii!==null&&(hs?(e=Ii,n=n.stateNode,e.nodeType===8?Fk(e.parentNode,n):e.nodeType===1&&Fk(e,n),vg(e)):Fk(Ii,n.stateNode));break;case 4:r=Ii,i=hs,Ii=n.stateNode.containerInfo,hs=!0,Nc(e,t,n),Ii=r,hs=i;break;case 0:case 11:case 14:case 15:if(!qi&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&$4(n,t,o),i=i.next}while(i!==r)}Nc(e,t,n);break;case 1:if(!qi&&(vm(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ar(n,t,s)}Nc(e,t,n);break;case 21:Nc(e,t,n);break;case 22:n.mode&1?(qi=(r=qi)||n.memoizedState!==null,Nc(e,t,n),qi=r):Nc(e,t,n);break;default:Nc(e,t,n)}}function k8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lce),t.forEach(function(r){var i=Yce.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cs(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Yr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hce(r/1960))-r,10e?16:e,eu===null)var r=!1;else{if(e=eu,eu=null,ix=0,zn&6)throw Error(Pt(331));var i=zn;for(zn|=4,Gt=e.current;Gt!==null;){var a=Gt,o=a.child;if(Gt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lYr()-iR?Ed(e,0):rR|=n),Ma(e,t)}function VU(e,t){t===0&&(e.mode&1?(t=K1,K1<<=1,!(K1&130023424)&&(K1=4194304)):t=1);var n=pa();e=pc(e,t),e!==null&&(C0(e,t,n),Ma(e,n))}function Kce(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),VU(e,n)}function Yce(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pt(314))}r!==null&&r.delete(t),VU(e,n)}var WU;WU=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ra.current)Ta=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ta=!1,jce(e,t,n);Ta=!!(e.flags&131072)}else Ta=!1,Ir&&t.flags&1048576&&KW(t,Yw,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Py(e,t),e=t.pendingProps;var i=Xm(t,Ji.current);Om(t,n),i=Q6(null,t,r,e,i,n);var a=Z6();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ia(r)?(a=!0,Gw(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,q6(t),i.updater=GS,t.stateNode=i,i._reactInternals=t,y4(t,r,e,n),t=S4(null,t,r,!0,a,n)):(t.tag=0,Ir&&a&&L6(t),la(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Py(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Qce(r),e=ps(r,e),i){case 0:t=x4(null,t,r,e,n);break e;case 1:t=w8(null,t,r,e,n);break e;case 11:t=b8(null,t,r,e,n);break e;case 14:t=y8(null,t,r,ps(r.type,e),n);break e}throw Error(Pt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ps(r,i),x4(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ps(r,i),w8(e,t,r,i,n);case 3:e:{if(EU(t),e===null)throw Error(Pt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,eU(e,t),Zw(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=ep(Error(Pt(423)),t),t=x8(e,t,r,n,i);break e}else if(r!==i){i=ep(Error(Pt(424)),t),t=x8(e,t,r,n,i);break e}else for(io=mu(t.stateNode.containerInfo.firstChild),co=t,Ir=!0,ys=null,n=ZW(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qm(),r===i){t=hc(e,t,n);break e}la(e,t,r,n)}t=t.child}return t;case 5:return tU(t),e===null&&v4(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,d4(r,i)?o=null:a!==null&&d4(r,a)&&(t.flags|=32),$U(e,t),la(e,t,o,n),t.child;case 6:return e===null&&v4(t),null;case 13:return PU(e,t,n);case 4:return G6(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zm(t,null,r,n):la(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ps(r,i),b8(e,t,r,i,n);case 7:return la(e,t,t.pendingProps,n),t.child;case 8:return la(e,t,t.pendingProps.children,n),t.child;case 12:return la(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,gr(Xw,r._currentValue),r._currentValue=o,a!==null)if(Ms(a.value,o)){if(a.children===i.children&&!Ra.current){t=hc(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=cc(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),g4(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pt(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),g4(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}la(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Om(t,n),i=Wo(i),r=r(i),t.flags|=1,la(e,t,r,n),t.child;case 14:return r=t.type,i=ps(r,t.pendingProps),i=ps(r.type,i),y8(e,t,r,i,n);case 15:return _U(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ps(r,i),Py(e,t),t.tag=1,Ia(r)?(e=!0,Gw(t)):e=!1,Om(t,n),xU(t,r,i),y4(t,r,i,n),S4(null,t,r,!0,e,n);case 19:return TU(e,t,n);case 22:return kU(e,t,n)}throw Error(Pt(156,t.tag))};function UU(e,t){return bW(e,t)}function Xce(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zo(e,t,n,r){return new Xce(e,t,n,r)}function lR(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qce(e){if(typeof e=="function")return lR(e)?1:0;if(e!=null){if(e=e.$$typeof,e===E6)return 11;if(e===P6)return 14}return 2}function gu(e,t){var n=e.alternate;return n===null?(n=zo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ry(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")lR(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case sm:return Pd(n.children,i,a,t);case $6:o=8,i|=8;break;case V3:return e=zo(12,n,t,i|2),e.elementType=V3,e.lanes=a,e;case W3:return e=zo(13,n,t,i),e.elementType=W3,e.lanes=a,e;case U3:return e=zo(19,n,t,i),e.elementType=U3,e.lanes=a,e;case tW:return XS(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case JV:o=10;break e;case eW:o=9;break e;case E6:o=11;break e;case P6:o=14;break e;case qc:o=16,r=null;break e}throw Error(Pt(130,e==null?e:typeof e,""))}return t=zo(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Pd(e,t,n,r){return e=zo(7,e,r,t),e.lanes=n,e}function XS(e,t,n,r){return e=zo(22,e,r,t),e.elementType=tW,e.lanes=n,e.stateNode={isHidden:!1},e}function Uk(e,t,n){return e=zo(6,e,null,t),e.lanes=n,e}function qk(e,t,n){return t=zo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zce(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$k(0),this.expirationTimes=$k(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$k(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cR(e,t,n,r,i,a,o,s,l){return e=new Zce(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=zo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},q6(a),e}function Jce(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YU)}catch(e){console.error(e)}}YU(),YV.exports=xo;var yi=YV.exports;const Pg=Wn(yi),XU=FV({__proto__:null,default:Pg},[yi]);var M8=yi;jw.createRoot=M8.createRoot,jw.hydrateRoot=M8.hydrateRoot;var iue=typeof Element<"u",aue=typeof Map=="function",oue=typeof Set=="function",sue=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Iy(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Iy(e[r],t[r]))return!1;return!0}var a;if(aue&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Iy(r.value[1],t.get(r.value[0])))return!1;return!0}if(oue&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(sue&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(iue&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Iy(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var lue=function(t,n){try{return Iy(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const cue=Wn(lue);var uue=function(e,t,n,r,i,a,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],d=0;l=new Error(t.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},due=uue;const N8=Wn(due);var fue=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(QU||{}),Gk={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},D8=Object.values(QU),mR={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},pue=Object.entries(mR).reduce((e,[t,n])=>(e[n]=t,e),{}),Cs="data-rh",Im={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Mm=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},hue=e=>{let t=Mm(e,"title");const n=Mm(e,Im.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Mm(e,Im.DEFAULT_TITLE);return t||r||void 0},vue=e=>Mm(e,Im.ON_CHANGE_CLIENT_STATE)||(()=>{}),Kk=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),gue=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let a=0;aconsole&&typeof console.warn=="function"&&console.warn(e),jh=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&bue(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(l=>{let c;const d=Object.keys(l);for(let m=0;mi.push(l));const s=Object.keys(o);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:gue(["href"],e),bodyAttributes:Kk("bodyAttributes",e),defer:Mm(e,Im.DEFER),encode:Mm(e,Im.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Kk("htmlAttributes",e),linkTags:jh("link",["rel","href"],e),metaTags:jh("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:jh("noscript",["innerHTML"],e),onChangeClientState:vue(e),scriptTags:jh("script",["src","innerHTML"],e),styleTags:jh("style",["cssText"],e),title:hue(e),titleAttributes:Kk("titleAttributes",e),prioritizeSeoTags:yue(e,Im.PRIORITIZE_SEO_TAGS)}),ZU=e=>Array.isArray(e)?e.join(""):e,xue=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(xue(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},j8=(e,t)=>({...e,[t]:void 0}),Sue=["noscript","script","style"],N4=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),JU=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),Cue=(e,t,n,r)=>{const i=JU(n),a=ZU(t);return i?`<${e} ${Cs}="true" ${i}>${N4(a,r)}`:`<${e} ${Cs}="true">${N4(a,r)}`},_ue=(e,t,n=!0)=>t.reduce((r,i)=>{const a=i,o=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,d)=>{const f=typeof a[d]>"u"?d:`${d}="${N4(a[d],n)}"`;return c?`${c} ${f}`:f},""),s=a.innerHTML||a.cssText||"",l=Sue.indexOf(e)===-1;return`${r}<${e} ${Cs}="true" ${o}${l?"/>":`>${s}`}`},""),eq=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=mR[r];return n[i||r]=e[r],n},t),kue=(e,t,n)=>{const r={key:t,[Cs]:!0},i=eq(n,r);return[L.createElement("title",i,t)]},My=(e,t)=>t.map((n,r)=>{const i={key:r,[Cs]:!0};return Object.keys(n).forEach(a=>{const s=mR[a]||a;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[a]}),L.createElement(e,i)}),Mo=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>kue(e,t.title,t.titleAttributes),toString:()=>Cue(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>eq(t),toString:()=>JU(t)};default:return{toComponent:()=>My(e,t),toString:()=>_ue(e,t,n)}}},$ue=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=Yk(e,Gk.meta),a=Yk(t,Gk.link),o=Yk(n,Gk.script);return{priorityMethods:{toComponent:()=>[...My("meta",i.priority),...My("link",a.priority),...My("script",o.priority)],toString:()=>`${Mo("meta",i.priority,r)} ${Mo("link",a.priority,r)} ${Mo("script",o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},Eue=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:f,scriptTags:m}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:d,metaTags:f,scriptTags:m}=$ue(e)),{priority:p,base:Mo("base",t,r),bodyAttributes:Mo("bodyAttributes",n,r),htmlAttributes:Mo("htmlAttributes",i,r),link:Mo("link",d,r),meta:Mo("meta",f,r),noscript:Mo("noscript",a,r),script:Mo("script",m,r),style:Mo("style",o,r),title:Mo("title",{title:s,titleAttributes:l},r)}},D4=Eue,ob=[],tq=!!(typeof window<"u"&&window.document&&window.document.createElement),j4=class{constructor(e,t){Ur(this,"instances",[]);Ur(this,"canUseDOM",tq);Ur(this,"context");Ur(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ob:this.instances,add:e=>{(this.canUseDOM?ob:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ob:this.instances).indexOf(e);(this.canUseDOM?ob:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=D4({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Pue={},nq=L.createContext(Pue),$d,rq=($d=class extends u.Component{constructor(n){super(n);Ur(this,"helmetData");this.helmetData=new j4(this.props.context||{},$d.canUseDOM)}render(){return L.createElement(nq.Provider,{value:this.helmetData.value},this.props.children)}},Ur($d,"canUseDOM",tq),$d),Ff=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Cs}]`),i=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const d=c,f=typeof s[d]>"u"?"":s[d];l.setAttribute(c,f)}l.setAttribute(Cs,"true"),i.some((c,d)=>(o=d,l.isEqualNode(c)))?i.splice(o,1):a.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),a.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:a}},F4=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Cs),i=r?r.split(","):[],a=[...i],o=Object.keys(t);for(const s of o){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=a.indexOf(s);c!==-1&&a.splice(c,1)}for(let s=a.length-1;s>=0;s-=1)n.removeAttribute(a[s]);i.length===a.length?n.removeAttribute(Cs):n.getAttribute(Cs)!==o.join(",")&&n.setAttribute(Cs,o.join(","))},Tue=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=ZU(e)),F4("title",t)},F8=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:d,title:f,titleAttributes:m}=e;F4("body",r),F4("html",i),Tue(f,m);const p={baseTag:Ff("base",n),linkTags:Ff("link",a),metaTags:Ff("meta",o),noscriptTags:Ff("noscript",s),scriptTags:Ff("script",c),styleTags:Ff("style",d)},h={},v={};Object.keys(p).forEach(g=>{const{newTags:w,oldTags:y}=p[g];w.length&&(h[g]=w),y.length&&(v[g]=p[g].oldTags)}),t&&t(),l(e,h,v)},Fh=null,Oue=e=>{Fh&&cancelAnimationFrame(Fh),e.defer?Fh=requestAnimationFrame(()=>{F8(e,()=>{Fh=null})}):(F8(e),Fh=null)},Rue=Oue,A8=class extends u.Component{constructor(){super(...arguments);Ur(this,"rendered",!1)}shouldComponentUpdate(t){return!mue(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=wue(t.get().map(a=>{const o={...a.props};return delete o.context,o}));rq.canUseDOM?Rue(i):D4&&(r=D4(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},z3,Iue=(z3=class extends u.Component{shouldComponentUpdate(e){return!cue(j8(this.props,"helmetData"),j8(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return N8(D8.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${D8.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),N8(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return L.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...a}=r.props,o=Object.keys(a).reduce((l,c)=>(l[pue[c]||c]=a[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof j4)){const i=r;r=new j4(i.context,!0),delete n.helmetData}return r?L.createElement(A8,{...n,context:r.value}):L.createElement(nq.Consumer,null,i=>L.createElement(A8,{...n,context:i}))}},Ur(z3,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),z3),A4=function(e,t){return A4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},A4(e,t)};function Jo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");A4(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Xt=function(){return Xt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u"&&(a=e.call(this,r),t.set(i,a)),a}function aq(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function pR(e,t,n,r,i){return n.bind(t,e,r,i)}function Nue(e,t){var n=e.length===1?iq:aq;return pR(e,this,n,t.cache.create(),t.serializer)}function Due(e,t){return pR(e,this,aq,t.cache.create(),t.serializer)}function jue(e,t){return pR(e,this,iq,t.cache.create(),t.serializer)}var Fue=function(){return JSON.stringify(arguments)};function hR(){this.cache=Object.create(null)}hR.prototype.get=function(e){return this.cache[e]};hR.prototype.set=function(e,t){this.cache[e]=t};var Aue={create:function(){return new hR}},ua={variadic:Due,monadic:jue};function oq(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}ca(function(){for(var e,t=[],n=0;n0}),n=[],r=0,i=t;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(que,function(l,c,d,f,m,p){if(c)t.minimumIntegerDigits=d.length;else{if(f&&m)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(vq.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(B8.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(B8,function(l,c,d,f,m,p){return d==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:m&&p?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var a=i.options[0];a==="w"?t=Xt(Xt({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Xt(Xt({},t),z8(a)));continue}if(hq.test(i.stem)){t=Xt(Xt({},t),z8(i.stem));continue}var o=gq(i.stem);o&&(t=Xt(Xt({},t),o));var s=Gue(i.stem);s&&(t=Xt(Xt({},t),s))}return t}var sb={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Yue(e,t){for(var n="",r=0;r>1),l="a",c=Xue(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function Xue(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=sb[r||""]||sb[n||""]||sb["".concat(n,"-001")]||sb["001"];return i[0]}var Xk,Que=new RegExp("^".concat(pq.source,"*")),Zue=new RegExp("".concat(pq.source,"*$"));function jn(e,t){return{start:e,end:t}}var Jue=!!String.prototype.startsWith&&"_a".startsWith("a",1),ede=!!String.fromCodePoint,tde=!!Object.fromEntries,nde=!!String.prototype.codePointAt,rde=!!String.prototype.trimStart,ide=!!String.prototype.trimEnd,ade=!!Number.isSafeInteger,ode=ade?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},B4=!0;try{var sde=yq("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");B4=((Xk=sde.exec("a"))===null||Xk===void 0?void 0:Xk[0])==="a"}catch{B4=!1}var V8=Jue?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},z4=ede?String.fromCodePoint:function(){for(var t=[],n=0;na;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},W8=tde?Object.fromEntries:function(t){for(var n={},r=0,i=t;r=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},lde=rde?function(t){return t.trimStart()}:function(t){return t.replace(Que,"")},cde=ide?function(t){return t.trimEnd()}:function(t){return t.replace(Zue,"")};function yq(e,t){return new RegExp(e,t)}var H4;if(B4){var U8=yq("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");H4=function(t,n){var r;U8.lastIndex=n;var i=U8.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else H4=function(t,n){for(var r=[];;){var i=bq(t,n);if(i===void 0||wq(i)||mde(i))break;r.push(i),n+=i>=65536?2:1}return z4.apply(void 0,r)};var ude=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:kr.pound,location:jn(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Mn.UNMATCHED_CLOSING_TAG,jn(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&V4(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:kr.literal,value:"<".concat(i,"/>"),location:jn(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:kr.tag,value:i,children:o,location:jn(r,this.clonePosition())},err:null}:this.error(Mn.INVALID_TAG,jn(s,this.clonePosition())))}else return this.error(Mn.UNCLOSED_TAG,jn(r,this.clonePosition()))}else return this.error(Mn.INVALID_TAG,jn(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&fde(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=jn(r,this.clonePosition());return{val:{type:kr.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!dde(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return z4.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),z4(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Mn.EXPECT_ARGUMENT_CLOSING_BRACE,jn(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Mn.EMPTY_ARGUMENT,jn(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Mn.MALFORMED_ARGUMENT,jn(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Mn.EXPECT_ARGUMENT_CLOSING_BRACE,jn(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:kr.argument,value:i,location:jn(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Mn.EXPECT_ARGUMENT_CLOSING_BRACE,jn(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(Mn.MALFORMED_ARGUMENT,jn(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=H4(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=jn(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Mn.EXPECT_ARGUMENT_TYPE,jn(o,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=cde(f.val);if(m.length===0)return this.error(Mn.EXPECT_ARGUMENT_STYLE,jn(this.clonePosition(),this.clonePosition()));var p=jn(d,this.clonePosition());c={style:m,styleLocation:p}}var h=this.tryParseArgumentClose(i);if(h.err)return h;var v=jn(i,this.clonePosition());if(c&&V8(c==null?void 0:c.style,"::",0)){var g=lde(c.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(g,c.styleLocation);return f.err?f:{val:{type:kr.number,value:r,location:v,style:f.val},err:null}}else{if(g.length===0)return this.error(Mn.EXPECT_DATE_TIME_SKELETON,v);var w=g;this.locale&&(w=Yue(g,this.locale));var m={type:np.dateTime,pattern:w,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Hue(w):{}},y=s==="date"?kr.date:kr.time;return{val:{type:y,value:r,location:v,style:m},err:null}}}return{val:{type:s==="number"?kr.number:s==="date"?kr.date:kr.time,value:r,location:v,style:(a=c==null?void 0:c.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Mn.EXPECT_SELECT_ARGUMENT_OPTIONS,jn(b,Xt({},b)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),C=0;if(s!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(Mn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,jn(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Mn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Mn.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),x=this.parseIdentifierIfPossible(),C=f.val}var S=this.tryParsePluralOrSelectOptions(t,s,n,x);if(S.err)return S;var h=this.tryParseArgumentClose(i);if(h.err)return h;var _=jn(i,this.clonePosition());return s==="select"?{val:{type:kr.select,value:r,options:W8(S.val),location:_},err:null}:{val:{type:kr.plural,value:r,options:W8(S.val),offset:C,pluralType:s==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(Mn.INVALID_ARGUMENT_TYPE,jn(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Mn.EXPECT_ARGUMENT_CLOSING_BRACE,jn(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Mn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,jn(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Wue(t)}catch{return this.error(Mn.INVALID_NUMBER_SKELETON,n)}return{val:{type:np.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Kue(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],l=new Set,c=i.value,d=i.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(Mn.EXPECT_PLURAL_ARGUMENT_SELECTOR,Mn.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;d=jn(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?Mn.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Mn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);c==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Mn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Mn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,jn(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(t+1,n,r);if(h.err)return h;var v=this.tryParseArgumentClose(p);if(v.err)return v;s.push([c,{value:h.val,location:jn(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),a=this.parseIdentifierIfPossible(),c=a.value,d=a.location}return s.length===0?this.error(n==="select"?Mn.EXPECT_SELECT_ARGUMENT_SELECTOR:Mn.EXPECT_PLURAL_ARGUMENT_SELECTOR,jn(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Mn.MISSING_OTHER_CLAUSE,jn(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var l=jn(i,this.clonePosition());return a?(o*=r,ode(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=bq(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(V8(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&wq(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function V4(e){return e>=97&&e<=122||e>=65&&e<=90}function dde(e){return V4(e)||e===47}function fde(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function wq(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function mde(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function W4(e){e.forEach(function(t){if(delete t.location,uq(t)||dq(t))for(var n in t.options)delete t.options[n].location,W4(t.options[n].value);else sq(t)&&mq(t.style)||(lq(t)||cq(t))&&L4(t.style)?delete t.style.location:fq(t)&&W4(t.children)})}function pde(e,t){t===void 0&&(t={}),t=Xt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ude(e,t).parse();if(n.err){var r=SyntaxError(Mn[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||W4(n.val),n.val}var $l;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($l||($l={}));var ju=function(e){Jo(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),q8=function(e){Jo(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),$l.INVALID_VALUE,a)||this}return t}(ju),hde=function(e){Jo(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$l.INVALID_VALUE,i)||this}return t}(ju),vde=function(e){Jo(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$l.MISSING_VALUE,r)||this}return t}(ju),oa;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(oa||(oa={}));function gde(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==oa.literal||n.type!==oa.literal?t.push(n):r.value+=n.value,t},[])}function xq(e){return typeof e=="function"}function Ny(e,t,n,r,i,a,o){if(e.length===1&&L8(e[0]))return[{type:oa.literal,value:e[0].value}];for(var s=[],l=0,c=e;l"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=pde,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Gd;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Gd||(Gd={}));var E0=function(e){Jo(t,e);function t(n,r,i){var a=this,o=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` -`).concat(o?` -`.concat(o.message,` -`).concat(o.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),xde=function(e){Jo(t,e);function t(n,r){return e.call(this,Gd.UNSUPPORTED_FORMATTER,n,r)||this}return t}(E0),Sde=function(e){Jo(t,e);function t(n,r){return e.call(this,Gd.INVALID_CONFIG,n,r)||this}return t}(E0),G8=function(e){Jo(t,e);function t(n,r){return e.call(this,Gd.MISSING_DATA,n,r)||this}return t}(E0),es=function(e){Jo(t,e);function t(n,r,i){var a=e.call(this,Gd.FORMAT_ERROR,"".concat(n,` -Locale: `).concat(r,` -`),i)||this;return a.locale=r,a}return t}(E0),Zk=function(e){Jo(t,e);function t(n,r,i,a){var o=e.call(this,"".concat(n,` -MessageID: `).concat(i==null?void 0:i.id,` -Default Message: `).concat(i==null?void 0:i.defaultMessage,` -Description: `).concat(i==null?void 0:i.description,` -`),r,a)||this;return o.descriptor=i,o.locale=r,o}return t}(es),Cde=function(e){Jo(t,e);function t(n,r){var i=e.call(this,Gd.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(a){var o;return(o=a.value)!==null&&o!==void 0?o:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(E0);function ff(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var _de=function(e){},kde=function(e){},Cq={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:_de,onWarn:kde};function _q(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Gu(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function $de(e){e===void 0&&(e=_q());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=ca(function(){for(var s,l=[],c=0;c needs to exist in the component ancestry.")}var Tq=Xt(Xt({},Cq),{textComponent:u.Fragment});function Kde(e){return function(t){return e(u.Children.toArray(t))}}function Yde(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var a=0;a{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{o.matches?n("dark"):n("light")}))},[]),u.useEffect(()=>{localStorage.setItem(oD,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),u.useEffect(()=>{localStorage.setItem(sD,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:a,isDarkMode:t==="dark",isLightMode:t==="light"}}//! moment.js -//! version : 2.30.1 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var iG;function Lt(){return iG.apply(null,arguments)}function Lpe(e){iG=e}function Ns(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Od(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Vn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function PR(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Vn(e,t))return!1;return!0}function _a(e){return e===void 0}function vc(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function B0(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function aG(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var IR=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,fb=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,l$={},Dm={};function nn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Dm[e]=i),t&&(Dm[t[0]]=function(){return El(i.apply(this,arguments),t[1],t[2])}),n&&(Dm[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Wpe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Upe(e){var t=e.match(IR),n,r;for(n=0,r=t.length;n=0&&fb.test(e);)e=e.replace(fb,r),fb.lastIndex=0,n-=1;return e}var qpe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Gpe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(IR).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Kpe="Invalid date";function Ype(){return this._invalidDate}var Xpe="%d",Qpe=/\d{1,2}/;function Zpe(e){return this._ordinal.replace("%d",e)}var Jpe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ehe(e,t,n,r){var i=this._relativeTime[n];return jl(i)?i(e,t,n,r):i.replace(/%d/i,e)}function the(e,t){var n=this._relativeTime[e>0?"future":"past"];return jl(n)?n(t):n.replace(/%s/i,t)}var _D={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ns(e){return typeof e=="string"?_D[e]||_D[e.toLowerCase()]:void 0}function MR(e){var t={},n,r;for(r in e)Vn(e,r)&&(n=ns(r),n&&(t[n]=e[r]));return t}var nhe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function rhe(e){var t=[],n;for(n in e)Vn(e,n)&&t.push({unit:n,priority:nhe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var cG=/\d/,_o=/\d\d/,uG=/\d{3}/,NR=/\d{4}/,LC=/[+-]?\d{6}/,Pr=/\d\d?/,dG=/\d\d\d\d?/,fG=/\d\d\d\d\d\d?/,BC=/\d{1,3}/,DR=/\d{1,4}/,zC=/[+-]?\d{1,6}/,Hp=/\d+/,HC=/[+-]?\d+/,ihe=/Z|[+-]\d\d:?\d\d/gi,VC=/Z|[+-]\d\d(?::?\d\d)?/gi,ahe=/[+-]?\d+(\.\d{1,3})?/,H0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Vp=/^[1-9]\d?/,jR=/^([1-9]\d|\d)/,cx;cx={};function qt(e,t,n){cx[e]=jl(t)?t:function(r,i){return r&&n?n:t}}function ohe(e,t){return Vn(cx,e)?cx[e](t._strict,t._locale):new RegExp(she(e))}function she(e){return uc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function uc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ao(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Rn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ao(t)),n}var tP={};function ir(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),vc(t)&&(r=function(a,o){o[t]=Rn(a)}),i=e.length,n=0;n68?1900:2e3)};var mG=Wp("FullYear",!0);function dhe(){return WC(this.year())}function Wp(e,t){return function(n){return n!=null?(pG(this,e,n),Lt.updateOffset(this,t),this):Rg(this,e)}}function Rg(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function pG(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!WC(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function fhe(e){return e=ns(e),jl(this[e])?this[e]():this}function mhe(e,t){if(typeof e=="object"){e=MR(e);var n=rhe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Ig(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ux(e,t,n){var r=7+t-n,i=(7+Ig(e,0,r).getUTCDay()-t)%7;return-i+r-1}function wG(e,t,n,r,i){var a=(7+n-r)%7,o=ux(e,r,i),s=1+7*(t-1)+a+o,l,c;return s<=0?(l=e-1,c=Uv(l)+s):s>Uv(e)?(l=e+1,c=s-Uv(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Mg(e,t,n){var r=ux(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+dc(o,t,n)):i>dc(e.year(),t,n)?(a=i-dc(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function dc(e,t,n){var r=ux(e,t,n),i=ux(e+1,t,n);return(Uv(e)-r+i)/7}nn("w",["ww",2],"wo","week");nn("W",["WW",2],"Wo","isoWeek");qt("w",Pr,Vp);qt("ww",Pr,_o);qt("W",Pr,Vp);qt("WW",Pr,_o);V0(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Rn(e)});function $he(e){return Mg(e,this._week.dow,this._week.doy).week}var Ehe={dow:0,doy:6};function Phe(){return this._week.dow}function The(){return this._week.doy}function Ohe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Rhe(e){var t=Mg(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}nn("d",0,"do","day");nn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});nn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});nn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});nn("e",0,0,"weekday");nn("E",0,0,"isoWeekday");qt("d",Pr);qt("e",Pr);qt("E",Pr);qt("dd",function(e,t){return t.weekdaysMinRegex(e)});qt("ddd",function(e,t){return t.weekdaysShortRegex(e)});qt("dddd",function(e,t){return t.weekdaysRegex(e)});V0(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:xn(n).invalidWeekday=e});V0(["d","e","E"],function(e,t,n,r){t[r]=Rn(e)});function Ihe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Mhe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function AR(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Nhe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xG="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dhe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jhe=H0,Fhe=H0,Ahe=H0;function Lhe(e,t){var n=Ns(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?AR(n,this._week.dow):e?n[e.day()]:n}function Bhe(e){return e===!0?AR(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zhe(e){return e===!0?AR(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Hhe(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Gr.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=Gr.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=Gr.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=Gr.call(this._weekdaysParse,o),i!==-1||(i=Gr.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=Gr.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=Gr.call(this._shortWeekdaysParse,o),i!==-1||(i=Gr.call(this._weekdaysParse,o),i!==-1)?i:(i=Gr.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=Gr.call(this._minWeekdaysParse,o),i!==-1||(i=Gr.call(this._weekdaysParse,o),i!==-1)?i:(i=Gr.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function Vhe(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Hhe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Dl([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Whe(e){if(!this.isValid())return e!=null?this:NaN;var t=Rg(this,"Day");return e!=null?(e=Ihe(e,this.localeData()),this.add(e-t,"d")):t}function Uhe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function qhe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Mhe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ghe(e){return this._weekdaysParseExact?(Vn(this,"_weekdaysRegex")||LR.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Vn(this,"_weekdaysRegex")||(this._weekdaysRegex=jhe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Khe(e){return this._weekdaysParseExact?(Vn(this,"_weekdaysRegex")||LR.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Vn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fhe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yhe(e){return this._weekdaysParseExact?(Vn(this,"_weekdaysRegex")||LR.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Vn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ahe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function LR(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],i=[],a,o,s,l,c;for(a=0;a<7;a++)o=Dl([2e3,1]).day(a),s=uc(this.weekdaysMin(o,"")),l=uc(this.weekdaysShort(o,"")),c=uc(this.weekdays(o,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function BR(){return this.hours()%12||12}function Xhe(){return this.hours()||24}nn("H",["HH",2],0,"hour");nn("h",["hh",2],0,BR);nn("k",["kk",2],0,Xhe);nn("hmm",0,0,function(){return""+BR.apply(this)+El(this.minutes(),2)});nn("hmmss",0,0,function(){return""+BR.apply(this)+El(this.minutes(),2)+El(this.seconds(),2)});nn("Hmm",0,0,function(){return""+this.hours()+El(this.minutes(),2)});nn("Hmmss",0,0,function(){return""+this.hours()+El(this.minutes(),2)+El(this.seconds(),2)});function SG(e,t){nn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}SG("a",!0);SG("A",!1);function CG(e,t){return t._meridiemParse}qt("a",CG);qt("A",CG);qt("H",Pr,jR);qt("h",Pr,Vp);qt("k",Pr,Vp);qt("HH",Pr,_o);qt("hh",Pr,_o);qt("kk",Pr,_o);qt("hmm",dG);qt("hmmss",fG);qt("Hmm",dG);qt("Hmmss",fG);ir(["H","HH"],vi);ir(["k","kk"],function(e,t,n){var r=Rn(e);t[vi]=r===24?0:r});ir(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ir(["h","hh"],function(e,t,n){t[vi]=Rn(e),xn(n).bigHour=!0});ir("hmm",function(e,t,n){var r=e.length-2;t[vi]=Rn(e.substr(0,r)),t[_s]=Rn(e.substr(r)),xn(n).bigHour=!0});ir("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[vi]=Rn(e.substr(0,r)),t[_s]=Rn(e.substr(r,2)),t[sc]=Rn(e.substr(i)),xn(n).bigHour=!0});ir("Hmm",function(e,t,n){var r=e.length-2;t[vi]=Rn(e.substr(0,r)),t[_s]=Rn(e.substr(r))});ir("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[vi]=Rn(e.substr(0,r)),t[_s]=Rn(e.substr(r,2)),t[sc]=Rn(e.substr(i))});function Qhe(e){return(e+"").toLowerCase().charAt(0)==="p"}var Zhe=/[ap]\.?m?\.?/i,Jhe=Wp("Hours",!0);function eve(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var _G={calendar:Hpe,longDateFormat:qpe,invalidDate:Kpe,ordinal:Xpe,dayOfMonthOrdinalParse:Qpe,relativeTime:Jpe,months:hhe,monthsShort:hG,week:Ehe,weekdays:Nhe,weekdaysMin:Dhe,weekdaysShort:xG,meridiemParse:Zhe},Tr={},Ah={},Ng;function tve(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=UC(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&tve(a,r)>=n-1)break;n--}t++}return Ng}function rve(e){return!!(e&&e.match("^[^/\\\\]*$"))}function UC(e){var t=null,n;if(Tr[e]===void 0&&typeof Xi<"u"&&Xi&&Xi.exports&&rve(e))try{t=Ng._abbr,n=require,n("./locale/"+e),yu(t)}catch{Tr[e]=null}return Tr[e]}function yu(e,t){var n;return e&&(_a(t)?n=_c(e):n=zR(e,t),n?Ng=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ng._abbr}function zR(e,t){if(t!==null){var n,r=_G;if(t.abbr=e,Tr[e]!=null)sG("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Tr[e]._config;else if(t.parentLocale!=null)if(Tr[t.parentLocale]!=null)r=Tr[t.parentLocale]._config;else if(n=UC(t.parentLocale),n!=null)r=n._config;else return Ah[t.parentLocale]||(Ah[t.parentLocale]=[]),Ah[t.parentLocale].push({name:e,config:t}),null;return Tr[e]=new RR(J4(r,t)),Ah[e]&&Ah[e].forEach(function(i){zR(i.name,i.config)}),yu(e),Tr[e]}else return delete Tr[e],null}function ive(e,t){if(t!=null){var n,r,i=_G;Tr[e]!=null&&Tr[e].parentLocale!=null?Tr[e].set(J4(Tr[e]._config,t)):(r=UC(e),r!=null&&(i=r._config),t=J4(i,t),r==null&&(t.abbr=e),n=new RR(t),n.parentLocale=Tr[e],Tr[e]=n),yu(e)}else Tr[e]!=null&&(Tr[e].parentLocale!=null?(Tr[e]=Tr[e].parentLocale,e===yu()&&yu(e)):Tr[e]!=null&&delete Tr[e]);return Tr[e]}function _c(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ng;if(!Ns(e)){if(t=UC(e),t)return t;e=[e]}return nve(e)}function ave(){return eP(Tr)}function HR(e){var t,n=e._a;return n&&xn(e).overflow===-2&&(t=n[oc]<0||n[oc]>11?oc:n[vl]<1||n[vl]>FR(n[Qi],n[oc])?vl:n[vi]<0||n[vi]>24||n[vi]===24&&(n[_s]!==0||n[sc]!==0||n[vd]!==0)?vi:n[_s]<0||n[_s]>59?_s:n[sc]<0||n[sc]>59?sc:n[vd]<0||n[vd]>999?vd:-1,xn(e)._overflowDayOfYear&&(tvl)&&(t=vl),xn(e)._overflowWeeks&&t===-1&&(t=che),xn(e)._overflowWeekday&&t===-1&&(t=uhe),xn(e).overflow=t),e}var ove=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sve=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lve=/Z|[+-]\d\d(?::?\d\d)?/,mb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],c$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],cve=/^\/?Date\((-?\d+)/i,uve=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,dve={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function kG(e){var t,n,r=e._i,i=ove.exec(r)||sve.exec(r),a,o,s,l,c=mb.length,d=c$.length;if(i){for(xn(e).iso=!0,t=0,n=c;tUv(o)||e._dayOfYear===0)&&(xn(e)._overflowDayOfYear=!0),n=Ig(o,0,e._dayOfYear),e._a[oc]=n.getUTCMonth(),e._a[vl]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[vi]===24&&e._a[_s]===0&&e._a[sc]===0&&e._a[vd]===0&&(e._nextDay=!0,e._a[vi]=0),e._d=(e._useUTC?Ig:khe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[vi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(xn(e).weekdayMismatch=!0)}}function yve(e){var t,n,r,i,a,o,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=im(t.GG,e._a[Qi],Mg(Er(),1,4).year),r=im(t.W,1),i=im(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=Mg(Er(),a,o),n=im(t.gg,e._a[Qi],c.year),r=im(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>dc(n,a,o)?xn(e)._overflowWeeks=!0:l!=null?xn(e)._overflowWeekday=!0:(s=wG(n,r,i,a,o),e._a[Qi]=s.year,e._dayOfYear=s.dayOfYear)}Lt.ISO_8601=function(){};Lt.RFC_2822=function(){};function WR(e){if(e._f===Lt.ISO_8601){kG(e);return}if(e._f===Lt.RFC_2822){$G(e);return}e._a=[],xn(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,l=0,c,d;for(i=lG(e._f,e._locale).match(IR)||[],d=i.length,n=0;n0&&xn(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Dm[a]?(r?xn(e).empty=!1:xn(e).unusedTokens.push(a),lhe(a,r,e)):e._strict&&!r&&xn(e).unusedTokens.push(a);xn(e).charsLeftOver=s-l,t.length>0&&xn(e).unusedInput.push(t),e._a[vi]<=12&&xn(e).bigHour===!0&&e._a[vi]>0&&(xn(e).bigHour=void 0),xn(e).parsedDateParts=e._a.slice(0),xn(e).meridiem=e._meridiem,e._a[vi]=wve(e._locale,e._a[vi],e._meridiem),c=xn(e).era,c!==null&&(e._a[Qi]=e._locale.erasConvertYear(c,e._a[Qi])),VR(e),HR(e)}function wve(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function xve(e){var t,n,r,i,a,o,s=!1,l=e._f.length;if(l===0){xn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:AC()});function TG(e,t){var n,r;if(t.length===1&&Ns(t[0])&&(t=t[0]),!t.length)return Er();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Hve(){if(!_a(this._isDSTShifted))return this._isDSTShifted;var e={},t;return OR(e,this),e=EG(e),e._a?(t=e._isUTC?Dl(e._a):Er(e._a),this._isDSTShifted=this.isValid()&&Mve(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vve(){return this.isValid()?!this._isUTC:!1}function Wve(){return this.isValid()?this._isUTC:!1}function RG(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Uve=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qve=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gs(e,t){var n=e,r=null,i,a,o;return By(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:vc(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Uve.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Rn(r[vl])*i,h:Rn(r[vi])*i,m:Rn(r[_s])*i,s:Rn(r[sc])*i,ms:Rn(nP(r[vd]*1e3))*i}):(r=qve.exec(e))?(i=r[1]==="-"?-1:1,n={y:Ku(r[2],i),M:Ku(r[3],i),w:Ku(r[4],i),d:Ku(r[5],i),h:Ku(r[6],i),m:Ku(r[7],i),s:Ku(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=Gve(Er(n.from),Er(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new qC(n),By(e)&&Vn(e,"_locale")&&(a._locale=e._locale),By(e)&&Vn(e,"_isValid")&&(a._isValid=e._isValid),a}Gs.fn=qC.prototype;Gs.invalid=Ive;function Ku(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function $D(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gve(e,t){var n;return e.isValid()&&t.isValid()?(t=qR(t,e),e.isBefore(t)?n=$D(e,t):(n=$D(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function IG(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(sG(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Gs(n,r),MG(this,i,e),this}}function MG(e,t,n,r){var i=t._milliseconds,a=nP(t._days),o=nP(t._months);e.isValid()&&(r=r??!0,o&&gG(e,Rg(e,"Month")+o*n),a&&pG(e,"Date",Rg(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Lt.updateOffset(e,a||o))}var Kve=IG(1,"add"),Yve=IG(-1,"subtract");function NG(e){return typeof e=="string"||e instanceof String}function Xve(e){return Ds(e)||B0(e)||NG(e)||vc(e)||Zve(e)||Qve(e)||e===null||e===void 0}function Qve(e){var t=Od(e)&&!PR(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,o=r.length;for(i=0;in.valueOf():n.valueOf()9999?Ly(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):jl(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ly(n,"Z")):Ly(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function fge(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function mge(e){e||(e=this.isUtc()?Lt.defaultFormatUtc:Lt.defaultFormat);var t=Ly(this,e);return this.localeData().postformat(t)}function pge(e,t){return this.isValid()&&(Ds(e)&&e.isValid()||Er(e).isValid())?Gs({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hge(e){return this.from(Er(),e)}function vge(e,t){return this.isValid()&&(Ds(e)&&e.isValid()||Er(e).isValid())?Gs({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gge(e){return this.to(Er(),e)}function DG(e){var t;return e===void 0?this._locale._abbr:(t=_c(e),t!=null&&(this._locale=t),this)}var jG=ts("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function FG(){return this._locale}var dx=1e3,jm=60*dx,fx=60*jm,AG=(365*400+97)*24*fx;function Fm(e,t){return(e%t+t)%t}function LG(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-AG:new Date(e,t,n).valueOf()}function BG(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-AG:Date.UTC(e,t,n)}function bge(e){var t,n;if(e=ns(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?BG:LG,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Fm(t+(this._isUTC?0:this.utcOffset()*jm),fx);break;case"minute":t=this._d.valueOf(),t-=Fm(t,jm);break;case"second":t=this._d.valueOf(),t-=Fm(t,dx);break}return this._d.setTime(t),Lt.updateOffset(this,!0),this}function yge(e){var t,n;if(e=ns(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?BG:LG,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fx-Fm(t+(this._isUTC?0:this.utcOffset()*jm),fx)-1;break;case"minute":t=this._d.valueOf(),t+=jm-Fm(t,jm)-1;break;case"second":t=this._d.valueOf(),t+=dx-Fm(t,dx)-1;break}return this._d.setTime(t),Lt.updateOffset(this,!0),this}function wge(){return this._d.valueOf()-(this._offset||0)*6e4}function xge(){return Math.floor(this.valueOf()/1e3)}function Sge(){return new Date(this.valueOf())}function Cge(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _ge(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function kge(){return this.isValid()?this.toISOString():null}function $ge(){return TR(this)}function Ege(){return tu({},xn(this))}function Pge(){return xn(this).overflow}function Tge(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}nn("N",0,0,"eraAbbr");nn("NN",0,0,"eraAbbr");nn("NNN",0,0,"eraAbbr");nn("NNNN",0,0,"eraName");nn("NNNNN",0,0,"eraNarrow");nn("y",["y",1],"yo","eraYear");nn("y",["yy",2],0,"eraYear");nn("y",["yyy",3],0,"eraYear");nn("y",["yyyy",4],0,"eraYear");qt("N",GR);qt("NN",GR);qt("NNN",GR);qt("NNNN",Bge);qt("NNNNN",zge);ir(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?xn(n).era=i:xn(n).invalidEra=e});qt("y",Hp);qt("yy",Hp);qt("yyy",Hp);qt("yyyy",Hp);qt("yo",Hge);ir(["y","yy","yyy","yyyy"],Qi);ir(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Qi]=n._locale.eraYearOrdinalParse(e,i):t[Qi]=parseInt(e,10)});function Oge(e,t){var n,r,i,a=this._eras||_c("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function Ige(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Lt(e.since).year():Lt(e.since).year()+(t-e.offset)*n}function Mge(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),Yge.call(this,e,t,n,r,i))}function Yge(e,t,n,r,i){var a=wG(e,t,n,r,i),o=Ig(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}nn("Q",0,"Qo","quarter");qt("Q",cG);ir("Q",function(e,t){t[oc]=(Rn(e)-1)*3});function Xge(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}nn("D",["DD",2],"Do","date");qt("D",Pr,Vp);qt("DD",Pr,_o);qt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ir(["D","DD"],vl);ir("Do",function(e,t){t[vl]=Rn(e.match(Pr)[0])});var HG=Wp("Date",!0);nn("DDD",["DDDD",3],"DDDo","dayOfYear");qt("DDD",BC);qt("DDDD",uG);ir(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Rn(e)});function Qge(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}nn("m",["mm",2],0,"minute");qt("m",Pr,jR);qt("mm",Pr,_o);ir(["m","mm"],_s);var Zge=Wp("Minutes",!1);nn("s",["ss",2],0,"second");qt("s",Pr,jR);qt("ss",Pr,_o);ir(["s","ss"],sc);var Jge=Wp("Seconds",!1);nn("S",0,0,function(){return~~(this.millisecond()/100)});nn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});nn(0,["SSS",3],0,"millisecond");nn(0,["SSSS",4],0,function(){return this.millisecond()*10});nn(0,["SSSSS",5],0,function(){return this.millisecond()*100});nn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});nn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});nn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});nn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});qt("S",BC,cG);qt("SS",BC,_o);qt("SSS",BC,uG);var nu,VG;for(nu="SSSS";nu.length<=9;nu+="S")qt(nu,Hp);function e0e(e,t){t[vd]=Rn(("0."+e)*1e3)}for(nu="S";nu.length<=9;nu+="S")ir(nu,e0e);VG=Wp("Milliseconds",!1);nn("z",0,0,"zoneAbbr");nn("zz",0,0,"zoneName");function t0e(){return this._isUTC?"UTC":""}function n0e(){return this._isUTC?"Coordinated Universal Time":""}var Tt=z0.prototype;Tt.add=Kve;Tt.calendar=tge;Tt.clone=nge;Tt.diff=cge;Tt.endOf=yge;Tt.format=mge;Tt.from=pge;Tt.fromNow=hge;Tt.to=vge;Tt.toNow=gge;Tt.get=fhe;Tt.invalidAt=Pge;Tt.isAfter=rge;Tt.isBefore=ige;Tt.isBetween=age;Tt.isSame=oge;Tt.isSameOrAfter=sge;Tt.isSameOrBefore=lge;Tt.isValid=$ge;Tt.lang=jG;Tt.locale=DG;Tt.localeData=FG;Tt.max=$ve;Tt.min=kve;Tt.parsingFlags=Ege;Tt.set=mhe;Tt.startOf=bge;Tt.subtract=Yve;Tt.toArray=Cge;Tt.toObject=_ge;Tt.toDate=Sge;Tt.toISOString=dge;Tt.inspect=fge;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=kge;Tt.toString=uge;Tt.unix=xge;Tt.valueOf=wge;Tt.creationData=Tge;Tt.eraName=Mge;Tt.eraNarrow=Nge;Tt.eraAbbr=Dge;Tt.eraYear=jge;Tt.year=mG;Tt.isLeapYear=dhe;Tt.weekYear=Vge;Tt.isoWeekYear=Wge;Tt.quarter=Tt.quarters=Xge;Tt.month=bG;Tt.daysInMonth=She;Tt.week=Tt.weeks=Ohe;Tt.isoWeek=Tt.isoWeeks=Rhe;Tt.weeksInYear=Gge;Tt.weeksInWeekYear=Kge;Tt.isoWeeksInYear=Uge;Tt.isoWeeksInISOWeekYear=qge;Tt.date=HG;Tt.day=Tt.days=Whe;Tt.weekday=Uhe;Tt.isoWeekday=qhe;Tt.dayOfYear=Qge;Tt.hour=Tt.hours=Jhe;Tt.minute=Tt.minutes=Zge;Tt.second=Tt.seconds=Jge;Tt.millisecond=Tt.milliseconds=VG;Tt.utcOffset=Dve;Tt.utc=Fve;Tt.local=Ave;Tt.parseZone=Lve;Tt.hasAlignedHourOffset=Bve;Tt.isDST=zve;Tt.isLocal=Vve;Tt.isUtcOffset=Wve;Tt.isUtc=RG;Tt.isUTC=RG;Tt.zoneAbbr=t0e;Tt.zoneName=n0e;Tt.dates=ts("dates accessor is deprecated. Use date instead.",HG);Tt.months=ts("months accessor is deprecated. Use month instead",bG);Tt.years=ts("years accessor is deprecated. Use year instead",mG);Tt.zone=ts("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jve);Tt.isDSTShifted=ts("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Hve);function r0e(e){return Er(e*1e3)}function i0e(){return Er.apply(null,arguments).parseZone()}function WG(e){return e}var Un=RR.prototype;Un.calendar=Vpe;Un.longDateFormat=Gpe;Un.invalidDate=Ype;Un.ordinal=Zpe;Un.preparse=WG;Un.postformat=WG;Un.relativeTime=ehe;Un.pastFuture=the;Un.set=zpe;Un.eras=Oge;Un.erasParse=Rge;Un.erasConvertYear=Ige;Un.erasAbbrRegex=Age;Un.erasNameRegex=Fge;Un.erasNarrowRegex=Lge;Un.months=bhe;Un.monthsShort=yhe;Un.monthsParse=xhe;Un.monthsRegex=_he;Un.monthsShortRegex=Che;Un.week=$he;Un.firstDayOfYear=The;Un.firstDayOfWeek=Phe;Un.weekdays=Lhe;Un.weekdaysMin=zhe;Un.weekdaysShort=Bhe;Un.weekdaysParse=Vhe;Un.weekdaysRegex=Ghe;Un.weekdaysShortRegex=Khe;Un.weekdaysMinRegex=Yhe;Un.isPM=Qhe;Un.meridiem=eve;function mx(e,t,n,r){var i=_c(),a=Dl().set(r,t);return i[n](a,e)}function UG(e,t,n){if(vc(e)&&(t=e,e=void 0),e=e||"",t!=null)return mx(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mx(e,r,n,"month");return i}function YR(e,t,n,r){typeof e=="boolean"?(vc(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,vc(t)&&(n=t,t=void 0),t=t||"");var i=_c(),a=e?i._week.dow:0,o,s=[];if(n!=null)return mx(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=mx(t,(o+a)%7,r,"day");return s}function a0e(e,t){return UG(e,t,"months")}function o0e(e,t){return UG(e,t,"monthsShort")}function s0e(e,t,n){return YR(e,t,n,"weekdays")}function l0e(e,t,n){return YR(e,t,n,"weekdaysShort")}function c0e(e,t,n){return YR(e,t,n,"weekdaysMin")}yu("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Rn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Lt.lang=ts("moment.lang is deprecated. Use moment.locale instead.",yu);Lt.langData=ts("moment.langData is deprecated. Use moment.localeData instead.",_c);var zl=Math.abs;function u0e(){var e=this._data;return this._milliseconds=zl(this._milliseconds),this._days=zl(this._days),this._months=zl(this._months),e.milliseconds=zl(e.milliseconds),e.seconds=zl(e.seconds),e.minutes=zl(e.minutes),e.hours=zl(e.hours),e.months=zl(e.months),e.years=zl(e.years),this}function qG(e,t,n,r){var i=Gs(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function d0e(e,t){return qG(this,e,t,1)}function f0e(e,t){return qG(this,e,t,-1)}function ED(e){return e<0?Math.floor(e):Math.ceil(e)}function m0e(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=ED(iP(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Ao(e/1e3),r.seconds=i%60,a=Ao(i/60),r.minutes=a%60,o=Ao(a/60),r.hours=o%24,t+=Ao(o/24),l=Ao(GG(t)),n+=l,t-=ED(iP(l)),s=Ao(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function GG(e){return e*4800/146097}function iP(e){return e*146097/4800}function p0e(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ns(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+GG(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(iP(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function kc(e){return function(){return this.as(e)}}var KG=kc("ms"),h0e=kc("s"),v0e=kc("m"),g0e=kc("h"),b0e=kc("d"),y0e=kc("w"),w0e=kc("M"),x0e=kc("Q"),S0e=kc("y"),C0e=KG;function _0e(){return Gs(this)}function k0e(e){return e=ns(e),this.isValid()?this[e+"s"]():NaN}function pf(e){return function(){return this.isValid()?this._data[e]:NaN}}var $0e=pf("milliseconds"),E0e=pf("seconds"),P0e=pf("minutes"),T0e=pf("hours"),O0e=pf("days"),R0e=pf("months"),I0e=pf("years");function M0e(){return Ao(this.days()/7)}var Kl=Math.round,ym={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function N0e(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function D0e(e,t,n,r){var i=Gs(e).abs(),a=Kl(i.as("s")),o=Kl(i.as("m")),s=Kl(i.as("h")),l=Kl(i.as("d")),c=Kl(i.as("M")),d=Kl(i.as("w")),f=Kl(i.as("y")),m=a<=n.ss&&["s",a]||a0,m[4]=r,N0e.apply(null,m)}function j0e(e){return e===void 0?Kl:typeof e=="function"?(Kl=e,!0):!1}function F0e(e,t){return ym[e]===void 0?!1:t===void 0?ym[e]:(ym[e]=t,e==="s"&&(ym.ss=t-1),!0)}function A0e(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=ym,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},ym,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=D0e(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var u$=Math.abs;function Af(e){return(e>0)-(e<0)||+e}function KC(){if(!this.isValid())return this.localeData().invalidDate();var e=u$(this._milliseconds)/1e3,t=u$(this._days),n=u$(this._months),r,i,a,o,s=this.asSeconds(),l,c,d,f;return s?(r=Ao(e/60),i=Ao(r/60),e%=60,r%=60,a=Ao(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=Af(this._months)!==Af(s)?"-":"",d=Af(this._days)!==Af(s)?"-":"",f=Af(this._milliseconds)!==Af(s)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var An=qC.prototype;An.isValid=Rve;An.abs=u0e;An.add=d0e;An.subtract=f0e;An.as=p0e;An.asMilliseconds=KG;An.asSeconds=h0e;An.asMinutes=v0e;An.asHours=g0e;An.asDays=b0e;An.asWeeks=y0e;An.asMonths=w0e;An.asQuarters=x0e;An.asYears=S0e;An.valueOf=C0e;An._bubble=m0e;An.clone=_0e;An.get=k0e;An.milliseconds=$0e;An.seconds=E0e;An.minutes=P0e;An.hours=T0e;An.days=O0e;An.weeks=M0e;An.months=R0e;An.years=I0e;An.humanize=A0e;An.toISOString=KC;An.toString=KC;An.toJSON=KC;An.locale=DG;An.localeData=FG;An.toIsoString=ts("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",KC);An.lang=jG;nn("X",0,0,"unix");nn("x",0,0,"valueOf");qt("x",HC);qt("X",ahe);ir("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ir("x",function(e,t,n){n._d=new Date(Rn(e))});//! moment.js -Lt.version="2.30.1";Lpe(Er);Lt.fn=Tt;Lt.min=Eve;Lt.max=Pve;Lt.now=Tve;Lt.utc=Dl;Lt.unix=r0e;Lt.months=a0e;Lt.isDate=B0;Lt.locale=yu;Lt.invalid=AC;Lt.duration=Gs;Lt.isMoment=Ds;Lt.weekdays=s0e;Lt.parseZone=i0e;Lt.localeData=_c;Lt.isDuration=By;Lt.monthsShort=o0e;Lt.weekdaysMin=c0e;Lt.defineLocale=zR;Lt.updateLocale=ive;Lt.locales=ave;Lt.weekdaysShort=l0e;Lt.normalizeUnits=ns;Lt.relativeTimeRounding=j0e;Lt.relativeTimeThreshold=F0e;Lt.calendarFormat=ege;Lt.prototype=Tt;Lt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let pb;const L0e=new Uint8Array(16);function B0e(){if(!pb&&(pb=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pb(L0e)}const Ri=[];for(let e=0;e<256;++e)Ri.push((e+256).toString(16).slice(1));function z0e(e,t=0){return Ri[e[t+0]]+Ri[e[t+1]]+Ri[e[t+2]]+Ri[e[t+3]]+"-"+Ri[e[t+4]]+Ri[e[t+5]]+"-"+Ri[e[t+6]]+Ri[e[t+7]]+"-"+Ri[e[t+8]]+Ri[e[t+9]]+"-"+Ri[e[t+10]]+Ri[e[t+11]]+Ri[e[t+12]]+Ri[e[t+13]]+Ri[e[t+14]]+Ri[e[t+15]]}const H0e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),PD={randomUUID:H0e};function V0e(e,t,n){if(PD.randomUUID&&!t&&!e)return PD.randomUUID();e=e||{};const r=e.random||(e.rng||B0e)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,z0e(r)}const W0e={BASE_URL:"/chat/",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},TD=e=>{let t;const n=new Set,r=(d,f)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const p=t;t=f??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(h=>h(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(W0e?"open":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},U0e=e=>e?TD(e):TD;var YG={exports:{}},XG={},QG={exports:{}},ZG={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ip=u;function q0e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var G0e=typeof Object.is=="function"?Object.is:q0e,K0e=ip.useState,Y0e=ip.useEffect,X0e=ip.useLayoutEffect,Q0e=ip.useDebugValue;function Z0e(e,t){var n=t(),r=K0e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return X0e(function(){i.value=n,i.getSnapshot=t,d$(i)&&a({inst:i})},[e,n,t]),Y0e(function(){return d$(i)&&a({inst:i}),e(function(){d$(i)&&a({inst:i})})},[e]),Q0e(n),n}function d$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!G0e(e,n)}catch{return!0}}function J0e(e,t){return t()}var e1e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?J0e:Z0e;ZG.useSyncExternalStore=ip.useSyncExternalStore!==void 0?ip.useSyncExternalStore:e1e;QG.exports=ZG;var JG=QG.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var YC=u,t1e=JG;function n1e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var r1e=typeof Object.is=="function"?Object.is:n1e,i1e=t1e.useSyncExternalStore,a1e=YC.useRef,o1e=YC.useEffect,s1e=YC.useMemo,l1e=YC.useDebugValue;XG.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=a1e(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=s1e(function(){function l(p){if(!c){if(c=!0,d=p,p=r(p),i!==void 0&&o.hasValue){var h=o.value;if(i(h,p))return f=h}return f=p}if(h=f,r1e(d,p))return h;var v=r(p);return i!==void 0&&i(h,v)?h:(d=p,f=v)}var c=!1,d,f,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=i1e(e,a[0],a[1]);return o1e(function(){o.hasValue=!0,o.value=s},[s]),l1e(s),s};YG.exports=XG;var c1e=YG.exports;const u1e=Wn(c1e),eK={BASE_URL:"/chat/",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:d1e}=L,{useSyncExternalStoreWithSelector:f1e}=u1e;let OD=!1;const m1e=e=>e;function p1e(e,t=m1e,n){(eK?"open":void 0)!=="production"&&n&&!OD&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),OD=!0);const r=f1e(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return d1e(r),r}const h1e=e=>{(eK?"open":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?U0e(e):e,n=(r,i)=>p1e(t,r,i);return Object.assign(n,t),n},v1e=e=>h1e,f$={BASE_URL:"/chat/",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},aP=new Map,hb=e=>{const t=aP.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},g1e=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=aP.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return aP.set(n.name,i),{type:"tracked",store:e,...i}},b1e=(e,t={})=>(n,r,i)=>{const{enabled:a,anonymousActionType:o,store:s,...l}=t;let c;try{c=(a??(f$?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(f$?"open":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:d,...f}=g1e(s,c,l);let m=!0;i.setState=(v,g,w)=>{const y=n(v,g);if(!m)return y;const b=w===void 0?{type:o||"anonymous"}:typeof w=="string"?{type:w}:w;return s===void 0?(d==null||d.send(b,r()),y):(d==null||d.send({...b,type:`${s}/${b.type}`},{...hb(l.name),[s]:i.getState()}),y)};const p=(...v)=>{const g=m;m=!1,n(...v),m=g},h=e(i.setState,r,i);if(f.type==="untracked"?d==null||d.init(h):(f.stores[f.store]=i,d==null||d.init(Object.fromEntries(Object.entries(f.stores).map(([v,g])=>[v,v===f.store?h:g.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let v=!1;const g=i.dispatch;i.dispatch=(...w)=>{(f$?"open":void 0)!=="production"&&w[0].type==="__setState"&&!v&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),v=!0),g(...w)}}return d.subscribe(v=>{var g;switch(v.type){case"ACTION":if(typeof v.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return m$(v.payload,w=>{if(w.type==="__setState"){if(s===void 0){p(w.state);return}Object.keys(w.state).length!==1&&console.error(` - [zustand devtools middleware] Unsupported __setState action format. - When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), - and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const y=w.state[s];if(y==null)return;JSON.stringify(i.getState())!==JSON.stringify(y)&&p(y);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(w)});case"DISPATCH":switch(v.payload.type){case"RESET":return p(h),s===void 0?d==null?void 0:d.init(i.getState()):d==null?void 0:d.init(hb(l.name));case"COMMIT":if(s===void 0){d==null||d.init(i.getState());return}return d==null?void 0:d.init(hb(l.name));case"ROLLBACK":return m$(v.state,w=>{if(s===void 0){p(w),d==null||d.init(i.getState());return}p(w[s]),d==null||d.init(hb(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return m$(v.state,w=>{if(s===void 0){p(w);return}JSON.stringify(i.getState())!==JSON.stringify(w[s])&&p(w[s])});case"IMPORT_STATE":{const{nextLiftedState:w}=v.payload,y=(g=w.computedStates.slice(-1)[0])==null?void 0:g.state;if(!y)return;p(s===void 0?y:y[s]),d==null||d.send(null,w);return}case"PAUSE_RECORDING":return m=!m}return}}),h},y1e=b1e,m$=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};var tK=Symbol.for("immer-nothing"),RD=Symbol.for("immer-draftable"),ho=Symbol.for("immer-state");function ws(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ap=Object.getPrototypeOf;function op(e){return!!e&&!!e[ho]}function Kd(e){var t;return e?nK(e)||Array.isArray(e)||!!e[RD]||!!((t=e.constructor)!=null&&t[RD])||QC(e)||ZC(e):!1}var w1e=Object.prototype.constructor.toString();function nK(e){if(!e||typeof e!="object")return!1;const t=ap(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===w1e}function px(e,t){XC(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function XC(e){const t=e[ho];return t?t.type_:Array.isArray(e)?1:QC(e)?2:ZC(e)?3:0}function oP(e,t){return XC(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rK(e,t,n){const r=XC(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function x1e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function QC(e){return e instanceof Map}function ZC(e){return e instanceof Set}function ed(e){return e.copy_||e.base_}function sP(e,t){if(QC(e))return new Map(e);if(ZC(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=nK(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ho];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=S1e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>XR(r,!0))),e}function S1e(){ws(2)}function JC(e){return Object.isFrozen(e)}var C1e={};function Yd(e){const t=C1e[e];return t||ws(0,e),t}var Dg;function iK(){return Dg}function _1e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ID(e,t){t&&(Yd("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function lP(e){cP(e),e.drafts_.forEach(k1e),e.drafts_=null}function cP(e){e===Dg&&(Dg=e.parent_)}function MD(e){return Dg=_1e(Dg,e)}function k1e(e){const t=e[ho];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ND(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ho].modified_&&(lP(t),ws(4)),Kd(e)&&(e=hx(t,e),t.parent_||vx(t,e)),t.patches_&&Yd("Patches").generateReplacementPatches_(n[ho].base_,e,t.patches_,t.inversePatches_)):e=hx(t,n,[]),lP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==tK?e:void 0}function hx(e,t,n){if(JC(t))return t;const r=t[ho];if(!r)return px(t,(i,a)=>DD(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return vx(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),px(a,(s,l)=>DD(e,r,i,s,l,n,o)),vx(e,i,!1),n&&e.patches_&&Yd("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function DD(e,t,n,r,i,a,o){if(op(i)){const s=a&&t&&t.type_!==3&&!oP(t.assigned_,r)?a.concat(r):void 0,l=hx(e,i,s);if(rK(n,r,l),op(l))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(Kd(i)&&!JC(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;hx(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&vx(e,i)}}function vx(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&XR(t,n)}function $1e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:iK(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=QR;n&&(i=[r],a=jg);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var QR={get(e,t){if(t===ho)return e;const n=ed(e);if(!oP(n,t))return E1e(e,n,t);const r=n[t];return e.finalized_||!Kd(r)?r:r===p$(e.base_,t)?(h$(e),e.copy_[t]=dP(r,e)):r},has(e,t){return t in ed(e)},ownKeys(e){return Reflect.ownKeys(ed(e))},set(e,t,n){const r=aK(ed(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=p$(ed(e),t),a=i==null?void 0:i[ho];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(x1e(n,i)&&(n!==void 0||oP(e.base_,t)))return!0;h$(e),uP(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return p$(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,h$(e),uP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ed(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ws(11)},getPrototypeOf(e){return ap(e.base_)},setPrototypeOf(){ws(12)}},jg={};px(QR,(e,t)=>{jg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});jg.deleteProperty=function(e,t){return jg.set.call(this,e,t,void 0)};jg.set=function(e,t,n){return QR.set.call(this,e[0],t,n,e[0])};function p$(e,t){const n=e[ho];return(n?ed(n):e)[t]}function E1e(e,t,n){var i;const r=aK(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function aK(e,t){if(!(t in e))return;let n=ap(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ap(n)}}function uP(e){e.modified_||(e.modified_=!0,e.parent_&&uP(e.parent_))}function h$(e){e.copy_||(e.copy_=sP(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var P1e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(l=a,...c){return o.produce(l,d=>n.call(this,d,...c))}}typeof n!="function"&&ws(6),r!==void 0&&typeof r!="function"&&ws(7);let i;if(Kd(t)){const a=MD(this),o=dP(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?lP(a):cP(a)}return ID(a,r),ND(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===tK&&(i=void 0),this.autoFreeze_&&XR(i,!0),r){const a=[],o=[];Yd("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else ws(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Kd(e)||ws(8),op(e)&&(e=T1e(e));const t=MD(this),n=dP(e,void 0);return n[ho].isManual_=!0,cP(t),n}finishDraft(e,t){const n=e&&e[ho];(!n||!n.isManual_)&&ws(9);const{scope_:r}=n;return ID(r,t),ND(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Yd("Patches").applyPatches_;return op(e)?r(e,t):this.produce(e,i=>r(i,t))}};function dP(e,t){const n=QC(e)?Yd("MapSet").proxyMap_(e,t):ZC(e)?Yd("MapSet").proxySet_(e,t):$1e(e,t);return(t?t.scope_:iK()).drafts_.push(n),n}function T1e(e){return op(e)||ws(10,e),oK(e)}function oK(e){if(!Kd(e)||JC(e))return e;const t=e[ho];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=sP(e,t.scope_.immer_.useStrictShallowCopy_)}else n=sP(e,!0);return px(n,(r,i)=>{rK(n,r,oK(i))}),t&&(t.finalized_=!1),n}var vo=new P1e,O1e=vo.produce;vo.produceWithPatches.bind(vo);vo.setAutoFreeze.bind(vo);vo.setUseStrictShallowCopy.bind(vo);vo.applyPatches.bind(vo);vo.createDraft.bind(vo);vo.finishDraft.bind(vo);const R1e=e=>(t,n,r)=>(r.setState=(i,a,...o)=>{const s=typeof i=="function"?O1e(i):i;return t(s,a,...o)},e(r.setState,n,r)),I1e=R1e,e2=v1e()(y1e(I1e((e,t)=>({messageList:[],addMessage(n){if(!t().messageList.some(i=>i.uid===n.uid))console.log("messageList add message"),e({messageList:[...t().messageList,n].sort((i,a)=>new Date(i.createdAt).getTime()-new Date(a.createdAt).getTime())});else{if(console.log("messageList update message"),n.type===Og){const a=t().messageList.findIndex(o=>o.type===Og&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n==null?void 0:n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}},addMessageList(n){const r=n.filter(i=>!t().messageList.some(a=>a.uid===i.uid));e({messageList:[...r,...t().messageList].sort((i,a)=>new Date(i.createdAt).getTime()-new Date(a.createdAt).getTime())})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);i!==-1&&(t().messageList[i].status=r)},updateMessageContent(n,r){const i=t().messageList.findIndex(a=>a.uid===n);i!==-1&&(t().messageList[i].content=r)},getHistoryMessage(){},deleteEverything:()=>e({},!0)})),{name:"MESSAGE_STORE_VISITOR"}));function M1e(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const ki=M1e();function sK(e,t){return function(){return e.apply(t,arguments)}}const{toString:N1e}=Object.prototype,{getPrototypeOf:ZR}=Object,t2=(e=>t=>{const n=N1e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ks=e=>(e=e.toLowerCase(),t=>t2(t)===e),n2=e=>t=>typeof t===e,{isArray:Up}=Array,Fg=n2("undefined");function D1e(e){return e!==null&&!Fg(e)&&e.constructor!==null&&!Fg(e.constructor)&&uo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const lK=Ks("ArrayBuffer");function j1e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&lK(e.buffer),t}const F1e=n2("string"),uo=n2("function"),cK=n2("number"),r2=e=>e!==null&&typeof e=="object",A1e=e=>e===!0||e===!1,Hy=e=>{if(t2(e)!=="object")return!1;const t=ZR(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},L1e=Ks("Date"),B1e=Ks("File"),z1e=Ks("Blob"),H1e=Ks("FileList"),V1e=e=>r2(e)&&uo(e.pipe),W1e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||uo(e.append)&&((t=t2(e))==="formdata"||t==="object"&&uo(e.toString)&&e.toString()==="[object FormData]"))},U1e=Ks("URLSearchParams"),[q1e,G1e,K1e,Y1e]=["ReadableStream","Request","Response","Headers"].map(Ks),X1e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W0(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Up(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const gd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dK=e=>!Fg(e)&&e!==gd;function fP(){const{caseless:e}=dK(this)&&this||{},t={},n=(r,i)=>{const a=e&&uK(t,i)||i;Hy(t[a])&&Hy(r)?t[a]=fP(t[a],r):Hy(r)?t[a]=fP({},r):Up(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(W0(t,(i,a)=>{n&&uo(i)?e[a]=sK(i,n):e[a]=i},{allOwnKeys:r}),e),Z1e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),J1e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ebe=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&ZR(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tbe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nbe=e=>{if(!e)return null;if(Up(e))return e;let t=e.length;if(!cK(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rbe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ZR(Uint8Array)),ibe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},abe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},obe=Ks("HTMLFormElement"),sbe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),jD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lbe=Ks("RegExp"),fK=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};W0(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},cbe=e=>{fK(e,(t,n)=>{if(uo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(uo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ube=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Up(e)?r(e):r(String(e).split(t)),n},dbe=()=>{},fbe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,v$="abcdefghijklmnopqrstuvwxyz",FD="0123456789",mK={DIGIT:FD,ALPHA:v$,ALPHA_DIGIT:v$+v$.toUpperCase()+FD},mbe=(e=16,t=mK.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function pbe(e){return!!(e&&uo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hbe=e=>{const t=new Array(10),n=(r,i)=>{if(r2(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=Up(r)?[]:{};return W0(r,(o,s)=>{const l=n(o,i+1);!Fg(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},vbe=Ks("AsyncFunction"),gbe=e=>e&&(r2(e)||uo(e))&&uo(e.then)&&uo(e.catch),pK=((e,t)=>e?setImmediate:t?((n,r)=>(gd.addEventListener("message",({source:i,data:a})=>{i===gd&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),gd.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",uo(gd.postMessage)),bbe=typeof queueMicrotask<"u"?queueMicrotask.bind(gd):typeof process<"u"&&process.nextTick||pK,dt={isArray:Up,isArrayBuffer:lK,isBuffer:D1e,isFormData:W1e,isArrayBufferView:j1e,isString:F1e,isNumber:cK,isBoolean:A1e,isObject:r2,isPlainObject:Hy,isReadableStream:q1e,isRequest:G1e,isResponse:K1e,isHeaders:Y1e,isUndefined:Fg,isDate:L1e,isFile:B1e,isBlob:z1e,isRegExp:lbe,isFunction:uo,isStream:V1e,isURLSearchParams:U1e,isTypedArray:rbe,isFileList:H1e,forEach:W0,merge:fP,extend:Q1e,trim:X1e,stripBOM:Z1e,inherits:J1e,toFlatObject:ebe,kindOf:t2,kindOfTest:Ks,endsWith:tbe,toArray:nbe,forEachEntry:ibe,matchAll:abe,isHTMLForm:obe,hasOwnProperty:jD,hasOwnProp:jD,reduceDescriptors:fK,freezeMethods:cbe,toObjectSet:ube,toCamelCase:sbe,noop:dbe,toFiniteNumber:fbe,findKey:uK,global:gd,isContextDefined:dK,ALPHABET:mK,generateString:mbe,isSpecCompliantForm:pbe,toJSONObject:hbe,isAsyncFn:vbe,isThenable:gbe,setImmediate:pK,asap:bbe};function yn(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}dt.inherits(yn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:dt.toJSONObject(this.config),code:this.code,status:this.status}}});const hK=yn.prototype,vK={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vK[e]={value:e}});Object.defineProperties(yn,vK);Object.defineProperty(hK,"isAxiosError",{value:!0});yn.from=(e,t,n,r,i,a)=>{const o=Object.create(hK);return dt.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),yn.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const ybe=null;function mP(e){return dt.isPlainObject(e)||dt.isArray(e)}function gK(e){return dt.endsWith(e,"[]")?e.slice(0,-2):e}function AD(e,t,n){return e?e.concat(t).map(function(i,a){return i=gK(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function wbe(e){return dt.isArray(e)&&!e.some(mP)}const xbe=dt.toFlatObject(dt,{},null,function(t){return/^is[A-Z]/.test(t)});function i2(e,t,n){if(!dt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=dt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!dt.isUndefined(g[v])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&dt.isSpecCompliantForm(t);if(!dt.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(dt.isDate(h))return h.toISOString();if(!l&&dt.isBlob(h))throw new yn("Blob is not supported. Use a Buffer instead.");return dt.isArrayBuffer(h)||dt.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,v,g){let w=h;if(h&&!g&&typeof h=="object"){if(dt.endsWith(v,"{}"))v=r?v:v.slice(0,-2),h=JSON.stringify(h);else if(dt.isArray(h)&&wbe(h)||(dt.isFileList(h)||dt.endsWith(v,"[]"))&&(w=dt.toArray(h)))return v=gK(v),w.forEach(function(b,x){!(dt.isUndefined(b)||b===null)&&t.append(o===!0?AD([v],x,a):o===null?v:v+"[]",c(b))}),!1}return mP(h)?!0:(t.append(AD(g,v,a),c(h)),!1)}const f=[],m=Object.assign(xbe,{defaultVisitor:d,convertValue:c,isVisitable:mP});function p(h,v){if(!dt.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(h),dt.forEach(h,function(w,y){(!(dt.isUndefined(w)||w===null)&&i.call(t,w,dt.isString(y)?y.trim():y,v,m))===!0&&p(w,v?v.concat(y):[y])}),f.pop()}}if(!dt.isObject(e))throw new TypeError("data must be an object");return p(e),t}function LD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function JR(e,t){this._pairs=[],e&&i2(e,this,t)}const bK=JR.prototype;bK.append=function(t,n){this._pairs.push([t,n])};bK.toString=function(t){const n=t?function(r){return t.call(this,r,LD)}:LD;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Sbe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yK(e,t,n){if(!t)return e;const r=n&&n.encode||Sbe;dt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=dt.isURLSearchParams(t)?t.toString():new JR(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class BD{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){dt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const wK={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cbe=typeof URLSearchParams<"u"?URLSearchParams:JR,_be=typeof FormData<"u"?FormData:null,kbe=typeof Blob<"u"?Blob:null,$be={isBrowser:!0,classes:{URLSearchParams:Cbe,FormData:_be,Blob:kbe},protocols:["http","https","file","blob","url","data"]},eI=typeof window<"u"&&typeof document<"u",pP=typeof navigator=="object"&&navigator||void 0,Ebe=eI&&(!pP||["ReactNative","NativeScript","NS"].indexOf(pP.product)<0),Pbe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tbe=eI&&window.location.href||"http://localhost",Obe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eI,hasStandardBrowserEnv:Ebe,hasStandardBrowserWebWorkerEnv:Pbe,navigator:pP,origin:Tbe},Symbol.toStringTag,{value:"Module"})),Gi={...Obe,...$be};function Rbe(e,t){return i2(e,new Gi.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Gi.isNode&&dt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Ibe(e){return dt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Mbe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&dt.isArray(i)?i.length:o,l?(dt.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!dt.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&dt.isArray(i[o])&&(i[o]=Mbe(i[o])),!s)}if(dt.isFormData(e)&&dt.isFunction(e.entries)){const n={};return dt.forEachEntry(e,(r,i)=>{t(Ibe(r),i,n,0)}),n}return null}function Nbe(e,t,n){if(dt.isString(e))try{return(t||JSON.parse)(e),dt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const U0={transitional:wK,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=dt.isObject(t);if(a&&dt.isHTMLForm(t)&&(t=new FormData(t)),dt.isFormData(t))return i?JSON.stringify(xK(t)):t;if(dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t)||dt.isReadableStream(t))return t;if(dt.isArrayBufferView(t))return t.buffer;if(dt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rbe(t,this.formSerializer).toString();if((s=dt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return i2(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),Nbe(t)):t}],transformResponse:[function(t){const n=this.transitional||U0.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(dt.isResponse(t)||dt.isReadableStream(t))return t;if(t&&dt.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?yn.from(s,yn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gi.classes.FormData,Blob:Gi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dt.forEach(["delete","get","head","post","put","patch"],e=>{U0.headers[e]={}});const Dbe=dt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jbe=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Dbe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zD=Symbol("internals");function Bh(e){return e&&String(e).trim().toLowerCase()}function Vy(e){return e===!1||e==null?e:dt.isArray(e)?e.map(Vy):String(e)}function Fbe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Abe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function g$(e,t,n,r,i){if(dt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!dt.isString(t)){if(dt.isString(r))return t.indexOf(r)!==-1;if(dt.isRegExp(r))return r.test(t)}}function Lbe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Bbe(e,t){const n=dt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class Na{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const d=Bh(l);if(!d)throw new Error("header name must be a non-empty string");const f=dt.findKey(i,d);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=Vy(s))}const o=(s,l)=>dt.forEach(s,(c,d)=>a(c,d,l));if(dt.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(dt.isString(t)&&(t=t.trim())&&!Abe(t))o(jbe(t),n);else if(dt.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Bh(t),t){const r=dt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Fbe(i);if(dt.isFunction(n))return n.call(this,i,r);if(dt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bh(t),t){const r=dt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||g$(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Bh(o),o){const s=dt.findKey(r,o);s&&(!n||g$(r,r[s],s,n))&&(delete r[s],i=!0)}}return dt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||g$(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return dt.forEach(this,(i,a)=>{const o=dt.findKey(r,a);if(o){n[o]=Vy(i),delete n[a];return}const s=t?Lbe(a):String(a).trim();s!==a&&delete n[a],n[s]=Vy(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return dt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&dt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[zD]=this[zD]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Bh(o);r[s]||(Bbe(i,o),r[s]=!0)}return dt.isArray(t)?t.forEach(a):a(t),this}}Na.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);dt.reduceDescriptors(Na.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});dt.freezeMethods(Na);function b$(e,t){const n=this||U0,r=t||n,i=Na.from(r.headers);let a=r.data;return dt.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function SK(e){return!!(e&&e.__CANCEL__)}function qp(e,t,n){yn.call(this,e??"canceled",yn.ERR_CANCELED,t,n),this.name="CanceledError"}dt.inherits(qp,yn,{__CANCEL__:!0});function CK(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new yn("Request failed with status code "+n.status,[yn.ERR_BAD_REQUEST,yn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function zbe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Hbe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[a];o||(o=c),n[i]=l,r[i]=c;let f=a,m=0;for(;f!==i;)m+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=d,i=null,a&&(clearTimeout(a),a=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?o(c,d):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-f)))},()=>i&&o(i)]}const gx=(e,t,n=3)=>{let r=0;const i=Hbe(50,250);return Vbe(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),d=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},HD=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},VD=e=>(...t)=>dt.asap(()=>e(...t)),Wbe=Gi.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Gi.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Gi.origin),Gi.navigator&&/(msie|trident)/i.test(Gi.navigator.userAgent)):()=>!0,Ube=Gi.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];dt.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),dt.isString(r)&&o.push("path="+r),dt.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qbe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gbe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _K(e,t){return e&&!qbe(t)?Gbe(e,t):t}const WD=e=>e instanceof Na?{...e}:e;function Xd(e,t){t=t||{};const n={};function r(c,d,f,m){return dt.isPlainObject(c)&&dt.isPlainObject(d)?dt.merge.call({caseless:m},c,d):dt.isPlainObject(d)?dt.merge({},d):dt.isArray(d)?d.slice():d}function i(c,d,f,m){if(dt.isUndefined(d)){if(!dt.isUndefined(c))return r(void 0,c,f,m)}else return r(c,d,f,m)}function a(c,d){if(!dt.isUndefined(d))return r(void 0,d)}function o(c,d){if(dt.isUndefined(d)){if(!dt.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function s(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,d,f)=>i(WD(c),WD(d),f,!0)};return dt.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||i,m=f(e[d],t[d],d);dt.isUndefined(m)&&f!==s||(n[d]=m)}),n}const kK=e=>{const t=Xd({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=Na.from(o),t.url=yK(_K(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(dt.isFormData(n)){if(Gi.hasStandardBrowserEnv||Gi.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Gi.hasStandardBrowserEnv&&(r&&dt.isFunction(r)&&(r=r(t)),r||r!==!1&&Wbe(t.url))){const c=i&&a&&Ube.read(a);c&&o.set(i,c)}return t},Kbe=typeof XMLHttpRequest<"u",Ybe=Kbe&&function(e){return new Promise(function(n,r){const i=kK(e);let a=i.data;const o=Na.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,d,f,m,p,h;function v(){p&&p(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function w(){if(!g)return;const b=Na.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};CK(function(_){n(_),v()},function(_){r(_),v()},C),g=null}"onloadend"in g?g.onloadend=w:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(w)},g.onabort=function(){g&&(r(new yn("Request aborted",yn.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new yn("Network Error",yn.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||wK;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new yn(x,C.clarifyTimeoutError?yn.ETIMEDOUT:yn.ECONNABORTED,e,g)),g=null},a===void 0&&o.setContentType(null),"setRequestHeader"in g&&dt.forEach(o.toJSON(),function(x,C){g.setRequestHeader(C,x)}),dt.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),c&&([m,h]=gx(c,!0),g.addEventListener("progress",m)),l&&g.upload&&([f,p]=gx(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(d=b=>{g&&(r(!b||b.type?new qp(null,e,g):b),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const y=zbe(i.url);if(y&&Gi.protocols.indexOf(y)===-1){r(new yn("Unsupported protocol "+y+":",yn.ERR_BAD_REQUEST,e));return}g.send(a||null)})},Xbe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,s();const d=c instanceof Error?c:this.reason;r.abort(d instanceof yn?d:new qp(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,a(new yn(`timeout ${t} of ms exceeded`,yn.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>dt.asap(s),l}},Qbe=function*(e,t){let n=e.byteLength;if(n{const i=Zbe(e,t);let a=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await i.next();if(c){s(),l.close();return}let f=d.byteLength;if(n){let m=a+=f;n(m)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},a2=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$K=a2&&typeof ReadableStream=="function",eye=a2&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),EK=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tye=$K&&EK(()=>{let e=!1;const t=new Request(Gi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qD=64*1024,hP=$K&&EK(()=>dt.isReadableStream(new Response("").body)),bx={stream:hP&&(e=>e.body)};a2&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!bx[t]&&(bx[t]=dt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new yn(`Response type '${t}' is not supported`,yn.ERR_NOT_SUPPORT,r)})})})(new Response);const nye=async e=>{if(e==null)return 0;if(dt.isBlob(e))return e.size;if(dt.isSpecCompliantForm(e))return(await new Request(Gi.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(dt.isArrayBufferView(e)||dt.isArrayBuffer(e))return e.byteLength;if(dt.isURLSearchParams(e)&&(e=e+""),dt.isString(e))return(await eye(e)).byteLength},rye=async(e,t)=>{const n=dt.toFiniteNumber(e.getContentLength());return n??nye(t)},iye=a2&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:m}=kK(e);c=c?(c+"").toLowerCase():"text";let p=Xbe([i,a&&a.toAbortSignal()],o),h;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&tye&&n!=="get"&&n!=="head"&&(g=await rye(d,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(dt.isFormData(r)&&(S=C.headers.get("content-type"))&&d.setContentType(S),C.body){const[_,k]=HD(g,gx(VD(l)));r=UD(C.body,qD,_,k)}}dt.isString(f)||(f=f?"include":"omit");const w="credentials"in Request.prototype;h=new Request(t,{...m,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?f:void 0});let y=await fetch(h);const b=hP&&(c==="stream"||c==="response");if(hP&&(s||b&&v)){const C={};["status","statusText","headers"].forEach($=>{C[$]=y[$]});const S=dt.toFiniteNumber(y.headers.get("content-length")),[_,k]=s&&HD(S,gx(VD(s),!0))||[];y=new Response(UD(y.body,qD,_,()=>{k&&k(),v&&v()}),C)}c=c||"text";let x=await bx[dt.findKey(bx,c)||"text"](y,e);return!b&&v&&v(),await new Promise((C,S)=>{CK(C,S,{data:x,headers:Na.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:h})})}catch(w){throw v&&v(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new yn("Network Error",yn.ERR_NETWORK,e,h),{cause:w.cause||w}):yn.from(w,w&&w.code,e,h)}}),vP={http:ybe,xhr:Ybe,fetch:iye};dt.forEach(vP,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const GD=e=>`- ${e}`,aye=e=>dt.isFunction(e)||e===null||e===!1,PK={getAdapter:e=>{e=dt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : -`+a.map(GD).join(` -`):" "+GD(a[0]):"as no adapter specified";throw new yn("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:vP};function y$(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qp(null,e)}function KD(e){return y$(e),e.headers=Na.from(e.headers),e.data=b$.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),PK.getAdapter(e.adapter||U0.adapter)(e).then(function(r){return y$(e),r.data=b$.call(e,e.transformResponse,r),r.headers=Na.from(r.headers),r},function(r){return SK(r)||(y$(e),r&&r.response&&(r.response.data=b$.call(e,e.transformResponse,r.response),r.response.headers=Na.from(r.response.headers))),Promise.reject(r)})}const TK="1.7.8",o2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{o2[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const YD={};o2.transitional=function(t,n,r){function i(a,o){return"[Axios v"+TK+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new yn(i(o," has been removed"+(n?" in "+n:"")),yn.ERR_DEPRECATED);return n&&!YD[o]&&(YD[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};o2.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function oye(e,t,n){if(typeof e!="object")throw new yn("options must be an object",yn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new yn("option "+a+" must be "+l,yn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yn("Unknown option "+a,yn.ERR_BAD_OPTION)}}const Wy={assertOptions:oye,validators:o2},il=Wy.validators;class Rd{constructor(t){this.defaults=t,this.interceptors={request:new BD,response:new BD}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Xd(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Wy.assertOptions(r,{silentJSONParsing:il.transitional(il.boolean),forcedJSONParsing:il.transitional(il.boolean),clarifyTimeoutError:il.transitional(il.boolean)},!1),i!=null&&(dt.isFunction(i)?n.paramsSerializer={serialize:i}:Wy.assertOptions(i,{encode:il.function,serialize:il.function},!0)),Wy.assertOptions(n,{baseUrl:il.spelling("baseURL"),withXsrfToken:il.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&dt.merge(a.common,a[n.method]);a&&dt.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=Na.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,m;if(!l){const h=[KD.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),m=h.length,d=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new qp(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new tI(function(i){t=i}),cancel:t}}}function sye(e){return function(n){return e.apply(null,n)}}function lye(e){return dt.isObject(e)&&e.isAxiosError===!0}const gP={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gP).forEach(([e,t])=>{gP[t]=e});function OK(e){const t=new Rd(e),n=sK(Rd.prototype.request,t);return dt.extend(n,Rd.prototype,t,{allOwnKeys:!0}),dt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return OK(Xd(e,i))},n}const Xr=OK(U0);Xr.Axios=Rd;Xr.CanceledError=qp;Xr.CancelToken=tI;Xr.isCancel=SK;Xr.VERSION=TK;Xr.toFormData=i2;Xr.AxiosError=yn;Xr.Cancel=Xr.CanceledError;Xr.all=function(t){return Promise.all(t)};Xr.spread=sye;Xr.isAxiosError=lye;Xr.mergeConfig=Xd;Xr.AxiosHeaders=Na;Xr.formToJSON=e=>xK(dt.isHTMLForm(e)?new FormData(e):e);Xr.getAdapter=PK.getAdapter;Xr.HttpStatusCode=gP;Xr.default=Xr;const xi=Xr.create({timeout:2e4,baseURL:s2()});xi.interceptors.request.use(e=>e,e=>(console.log("request error",e),e.response.status===403&&ki.emit(Td,"403"),e.response.status===401&&ki.emit(Td,"401"),Promise.reject(e)));xi.interceptors.response.use(e=>e,e=>{if(console.log("response error",e),e.response)switch(e.response.status){case 400:console.log("axios interception error 400"),ki.emit(Td,"400");break;case 401:console.log("axios interception error 401"),ki.emit(Td,"401");break;case 403:console.log("axios interception error 403"),ki.emit(Td,"403");break;case 500:console.log("axios interception error 500"),ki.emit(Wme,"500");break}return"return axios interception error"});async function cye(){return xi("/config/bytedesk/properties",{method:"GET",params:{client:lr}})}async function uye(){try{const t=(await Xr.get("/chat/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(Wv,"true"),localStorage.setItem(Dy,t.apiUrl),localStorage.setItem(jy,t.websocketUrl),localStorage.setItem(n$,t.htmlUrl);else if(Hme===Xq){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,i="ws://"+window.location.hostname+":"+n+"/stomp";console.log("apiUrl: ",r," port:",n," websocketUrl:",i),localStorage.setItem(Wv,"true"),localStorage.setItem(Dy,r),localStorage.setItem(jy,i),localStorage.setItem(n$,r)}else console.log("config disabled"),localStorage.setItem(Wv,"false"),localStorage.removeItem(Dy),localStorage.removeItem(jy),localStorage.removeItem(n$)}catch(e){console.log("error: ",e)}}function s2(){if(localStorage.getItem(bm)==="true"){const n=localStorage.getItem(xv);return n===null?e$:n}if(localStorage.getItem(Wv)==="true"){const n=localStorage.getItem(Dy);return n===null?e$:n}return e$}function dye(){return s2()+"/visitor/api/v1/upload/file"}function fye(){if(localStorage.getItem(bm)==="true"){const n=localStorage.getItem(Sv);return n===null?t$:n}if(localStorage.getItem(Wv)==="true"){const n=localStorage.getItem(jy);return n===null?t$:n}return t$}async function mye(){const e=await cye();return console.log("getConfigProperties response: ",e.data),e.data.code===200?(localStorage.setItem(xR,JSON.stringify(e.data.data)),e.data.data):null}function pye(){var t;const e=localStorage.getItem(xR);return e?(t=JSON.parse(e).custom)==null?void 0:t.enabled:null}function hye(){var t,n,r,i,a;const e=localStorage.getItem(xR);if(e){const o=JSON.parse(e);if((t=o==null?void 0:o.custom)!=null&&t.enabled&&((n=o==null?void 0:o.custom)!=null&&n.name)&&((i=(r=o==null?void 0:o.custom)==null?void 0:r.name)==null?void 0:i.length)>0)return(a=o==null?void 0:o.custom)==null?void 0:a.name}return null}function vye(){const e=localStorage.getItem(sx);(e===null||e==="true")&&new Audio(Vme).play()}function dl(){return Lt().format("YYYY-MM-DD HH:mm:ss")}function aa(){return V0e().replaceAll(/-/g,"")}function gye(e){window.open(e,"_blank")}function qv(e,t){const n=Lt(new Date).format("YYYYMMDDHHmmss")+"_"+e.name,r=new FormData;r.append("file",e),r.append("file_name",n),r.append("file_type",e.type),r.append("is_avatar","false"),r.append("kb_type",wpe),r.append("visitor_uid",localStorage.getItem(Nm)||""),r.append("nickname",localStorage.getItem(K4)||""),r.append("avatar",localStorage.getItem(wv)||""),r.append("org_uid",localStorage.getItem(zp)||""),r.append("client",lr),console.log("handleUpload formData",r),fetch(dye(),{method:"POST",headers:{},body:r}).then(i=>i.json()).then(i=>{console.log("upload data:",i),t(i)})}function XD(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function bye(e){if(rm===e||bu===e||rp===e||Q4===e||Tg===e)return!0}function yye(e){var t;return(e==null?void 0:e.type)===ope?"right":(e==null?void 0:e.type)===spe?"left":(e==null?void 0:e.type)===CR?"center":((t=e==null?void 0:e.user)==null?void 0:t.uid)===localStorage.getItem(Nm)?"right":"left"}function wye(e){var t;return((t=e==null?void 0:e.user)==null?void 0:t.type)===Jq}const w$=e=>(e==null?void 0:e.type)===Kme,xye=e=>JSON.parse(e).answer,Sye=e=>{var t,n,r;return((t=e==null?void 0:e.user)==null?void 0:t.uid)===((r=(n=e==null?void 0:e.thread)==null?void 0:n.user)==null?void 0:r.uid)},Cye=e=>e.type===$R||e.type===tG||e.type===eG||e.type===kR,Uy=e=>{console.log("update message status:",e==null?void 0:e.content,e==null?void 0:e.type),e2.getState().updateMessageStatus(e==null?void 0:e.content,e==null?void 0:e.type);const t={uid:e==null?void 0:e.content,type:e==null?void 0:e.type};ki.emit(Y4,JSON.stringify(t))},_ye=e=>{console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content);const t="消息被撤回";e2.getState().updateMessageContent(e==null?void 0:e.content,t);const n={uid:e==null?void 0:e.content,content:t};ki.emit(X4,JSON.stringify(n))};function kye(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const bP=()=>{const e=navigator.language.toLowerCase();console.log("AppWrapper getBrowserLanguage browserLang: ",e);const t=["en","zh-cn","zh-tw","ja","ko"];if(e.startsWith("zh"))return e.includes("tw")?"zh-tw":"zh-cn";const n=e.split("-")[0];return t.includes(n)?n:"en"},RK=e=>e&&(e.includes("

      ")||e.includes("

      ")||e.includes("")||e.includes("
        "));function Lf(e){return e.endsWith("/")?e.slice(0,-1):e}const vb=e=>{switch(e){case"en":return{locale:"en",antdLocale:eD};case"zh-cn":return{locale:"zh-cn",antdLocale:Hfe};case"zh-tw":return{locale:"zh-tw",antdLocale:ime};case"ja":return{locale:"ja",antdLocale:xme};case"ko":return{locale:"ko",antdLocale:Ame};default:return{locale:"en",antdLocale:eD}}},Gp=u.createContext({}),$ye=({children:e})=>{const[t,n]=u.useState(!1),{themeMode:r,setThemeMode:i,isDarkMode:a}=Ape(),[o,s]=u.useState(()=>{const c=localStorage.getItem(cb);return vb(c||bP())}),l=c=>{const d=vb(c);s(d),localStorage.setItem(cb,d.locale)};return u.useEffect(()=>{if(!localStorage.getItem(cb)){const c=bP();l(c)}},[]),T.jsx(Gp.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isDarkMode:a,themeMode:r,setThemeMode:i,locale:o,setLocale:c=>{const d=vb(c.locale);s(d),localStorage.setItem(cb,d.locale)},changeLocale:l},children:e})},Eye={"app.logout":"Logout","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","theme.light":"Light","theme.dark":"Dark","theme.system":"System","setting.lang":"语言","setting.theme":"Theme",title:"Hello there.",subtitle:"How can we help?","tabs.home":"Home","tabs.messages":"Messages","tabs.help":"Help","tabs.news":"News","settings.themeColor":"Theme Color","settings.title":"Title","settings.subtitle":"Subtitle","settings.embedCode":"Embed Code","settings.copyCode":"Copy Code","settings.copied":"Code copied to clipboard!","settings.position":"Position","settings.bottomRight":"Bottom Right","settings.bottomLeft":"Bottom Left","settings.bottomMargin":"Bottom Margin","settings.rightMargin":"Right Margin","settings.leftMargin":"Left Margin","settings.dragToMove":"Drag to move","settings.tabsVisibility":"Tab Visibility","bubble.title":"Want to chat about ByteDesk?","bubble.subtitle":"I'm an AI chatbot here to help you find your way.","settings.button":"Button","settings.button.title":"Button Title","settings.button.subtitle":"Button Subtitle","settings.button.icon":"Button Icon","settings.button.url":"Button URL","settings.bubbleMessage":"Bubble Message","settings.showBubble":"Show Bubble Message","settings.bubbleIcon":"Bubble Icon","settings.bubbleTitle":"Bubble Title","settings.bubbleSubtitle":"Bubble Subtitle","settings.navbar":"Navbar","settings.navbar.title":"Navbar Title","settings.navbar.subtitle":"Navbar Subtitle","settings.chatConfig":"Chat Parameters","settings.orgId":"Organization ID","settings.type":"Type","settings.agentId":"Agent ID","settings.support":"Technical Support","settings.showSupport":"Show Technical Support Text","settings.reset":"Reset Configuration","i18n.app.title":"Bytedesk","i18n.app.support":"support","i18n.app.url":"https://www.weiyuai.cn","i18n.loading":"Loading...","i18n.load.nomore":"No more","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.load.more":"Load more","i18n.typing":"Typing","i18n.guess.faq":"Guess","i18n.hot.faq":"Hot","i18n.change.faq":"Change","i18n.file.assistant":"file assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.system.notification":"notification","i18n.top.tip":"Top Tip","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.queue.tip":"Queuing","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultAsistant","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.agent.offline":"Agent offline","i18n.auto.close.tip":"The conversation has been automatically closed","i18n.agent.close.tip":"The conversation has been closed by the agent","chat.menu.copy":"Copy","chat.menu.delete":"Delete","chat.menu.forward":"Forward","chat.menu.reply":"Reply","chat.menu.quote":"Quote","chat.menu.recall":"Recall","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.message.type.unsupported":"This message type is not supported","chat.message.send.failed":"Failed to send message","chat.message.transferring":"Transferring...","chat.faq.title":"FAQ"},Pye={"app.logout":"登出","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取��部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题",title:"您好!",subtitle:"请问有什么可以帮您?","tabs.home":"首页","tabs.messages":"消息","tabs.help":"帮助","tabs.news":"新闻","settings.themeColor":"主题颜色","settings.title":"标题","settings.subtitle":"副标题","settings.embedCode":"嵌入代码","settings.copyCode":"复制代码","settings.copied":"代码已复制到剪贴板!","settings.position":"位置","settings.bottomRight":"右下角","settings.bottomLeft":"左下角","settings.bottomMargin":"底部边距","settings.rightMargin":"右侧边距","settings.leftMargin":"左侧边距","settings.tabsVisibility":"标签页显示","bubble.title":"需要帮助吗?","bubble.subtitle":"我是AI客服,随时为您服务。","settings.button":"按钮","settings.button.title":"按钮标题","settings.button.subtitle":"按钮副标题","settings.button.icon":"按钮图标","settings.button.url":"按钮链接","settings.bubbleMessage":"气泡消息","settings.showBubble":"显示气泡消息","settings.bubbleIcon":"气泡图标","settings.bubbleTitle":"气泡标题","settings.bubbleSubtitle":"气泡副标题","settings.navbar":"导航栏","settings.navbar.title":"导航栏标题","settings.navbar.subtitle":"导航栏副标题","settings.chatConfig":"聊天参数","settings.orgId":"组织ID","settings.type":"类型","settings.agentId":"客服ID","settings.support":"技术支持","settings.showSupport":"显示技术支持文本","settings.reset":"重置配置","i18n.app.title":"微语","i18n.app.support":"提供技术支持","i18n.app.url":"https://www.weiyuai.cn","i18n.loading":"加载中...","i18n.load.nomore":"没有更多了","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.load.more":"加载更多","i18n.typing":"对方正在输入...","i18n.guess.faq":"猜你相问","i18n.hot.faq":"热门问题","i18n.change.faq":"换一换","i18n.file.assistant":"文件助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.system.notification":"系统通知","i18n.top.tip":"默认置顶语","i18n.leavemsg.tip":"当前无客服在线,请留下联系方式","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.queue.tip":"排队中...","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"客服助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.description":"默认技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.contact.title":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临,欢迎再来","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好,有什么可以帮您的","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.agent.offline":"客服不在线","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","chat.menu.copy":"复制","chat.menu.delete":"删除","chat.menu.forward":"转发","chat.menu.reply":"回复","chat.menu.quote":"引用","chat.menu.recall":"撤回","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.message.type.unsupported":"暂不支持此类型","chat.message.send.failed":"发送失败","chat.message.transferring":"转接中...","chat.faq.title":"常见问题"},Tye={"app.logout":"登出","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取��部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","bubble.title":"您好!","bubble.subtitle":"有什麼可以幫您的嗎?","tabs.home":"首頁","tabs.messages":"消息","tabs.help":"幫助","tabs.news":"新聞","settings.themeColor":"主題顏色","settings.title":"標題","settings.subtitle":"副標題","settings.position":"位置","settings.bottomRight":"右下角","settings.bottomLeft":"左下角","settings.bottomMargin":"底部邊距","settings.rightMargin":"右側邊距","settings.leftMargin":"左側邊距","settings.button":"按鈕","settings.button.title":"按鈕標題","settings.button.subtitle":"按鈕副標題","settings.button.icon":"按鈕圖標","settings.button.url":"按鈕連結","settings.bubbleMessage":"氣泡消息","settings.showBubble":"顯示氣泡","settings.bubbleIcon":"氣泡圖標","settings.bubbleTitle":"氣泡標題","settings.bubbleSubtitle":"氣泡副標題","settings.tabsVisibility":"標籤頁顯示","settings.embedCode":"嵌入代碼","settings.copyCode":"複製代碼","settings.navbar":"導航欄","settings.navbar.title":"導航欄標題","settings.navbar.subtitle":"導航欄副標題",title:"在線客服",subtitle:"有什麼可以幫您的嗎?","settings.chatConfig":"聊天参数","settings.orgId":"组织ID","settings.type":"類型","settings.agentId":"客服ID","settings.support":"技術支持","settings.showSupport":"顯示技術支持文本","settings.reset":"重置配置","i18n.app.title":"微語","i18n.app.support":"提供技術支持","i18n.app.url":"https://www.weiyuai.cn","i18n.loading":"加載中...","i18n.load.nomore":"沒有更多了","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.load.more":"加载更多","i18n.typing":"对方正在输入...","i18n.guess.faq":"猜你相问","i18n.hot.faq":"热门问题","i18n.change.faq":"换一换","i18n.file.assistant":"文件助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.system.notification":"系統通知","i18n.top.tip":"默認置顶語","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.queue.tip":"排隊中...","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"客服助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"��設技能組","i18n.workgroup.description":"預設技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.contact.title":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨,歡迎再來","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好,有什麼可以幫您的","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.agent.offline":"客服離線","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","chat.menu.copy":"複製","chat.menu.delete":"刪除","chat.menu.forward":"轉發","chat.menu.reply":"回覆","chat.menu.quote":"引用","chat.menu.recall":"撤回","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.message.type.unsupported":"暫不支持此類型","chat.message.send.failed":"發送失敗","chat.message.transferring":"轉接中...","chat.faq.title":"常見問題"},Oye={"app.logout":"Logout","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","theme.light":"Light","theme.dark":"Dark","theme.system":"System","setting.lang":"语言","setting.theme":"Theme",title:"Hello there.",subtitle:"How can we help?","tabs.home":"Home","tabs.messages":"Messages","tabs.help":"Help","tabs.news":"News","settings.themeColor":"Theme Color","settings.title":"Title","settings.subtitle":"Subtitle","settings.embedCode":"Embed Code","settings.copyCode":"Copy Code","settings.copied":"Code copied to clipboard!","settings.position":"Position","settings.bottomRight":"Bottom Right","settings.bottomLeft":"Bottom Left","settings.bottomMargin":"Bottom Margin","settings.rightMargin":"Right Margin","settings.leftMargin":"Left Margin","settings.dragToMove":"Drag to move","settings.tabsVisibility":"Tab Visibility","bubble.title":"Want to chat about ByteDesk?","bubble.subtitle":"I'm an AI chatbot here to help you find your way.","settings.button":"Button","settings.button.title":"Button Title","settings.button.subtitle":"Button Subtitle","settings.button.icon":"Button Icon","settings.button.url":"Button URL","settings.bubbleMessage":"Bubble Message","settings.showBubble":"Show Bubble Message","settings.bubbleIcon":"Bubble Icon","settings.bubbleTitle":"Bubble Title","settings.bubbleSubtitle":"Bubble Subtitle","settings.navbar":"Navbar","settings.navbar.title":"Navbar Title","settings.navbar.subtitle":"Navbar Subtitle","settings.chatConfig":"Chat Parameters","settings.orgId":"Organization ID","settings.type":"Type","settings.agentId":"Agent ID","settings.support":"Technical Support","settings.showSupport":"Show Technical Support Text","settings.reset":"Reset Configuration","i18n.app.title":"Bytedesk","i18n.app.support":"support","i18n.app.url":"https://www.weiyuai.cn","i18n.loading":"Loading...","i18n.load.nomore":"No more","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.load.more":"Load more","i18n.typing":"Typing","i18n.guess.faq":"Guess","i18n.hot.faq":"Hot","i18n.change.faq":"Change","i18n.file.assistant":"file assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.system.notification":"notification","i18n.top.tip":"Top Tip","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.queue.tip":"Queuing","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultAsistant","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed"},Rye={"app.logout":"Logout","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","theme.light":"Light","theme.dark":"Dark","theme.system":"System","setting.lang":"语言","setting.theme":"Theme",title:"Hello there.",subtitle:"How can we help?","tabs.home":"Home","tabs.messages":"Messages","tabs.help":"Help","tabs.news":"News","settings.themeColor":"Theme Color","settings.title":"Title","settings.subtitle":"Subtitle","settings.embedCode":"Embed Code","settings.copyCode":"Copy Code","settings.copied":"Code copied to clipboard!","settings.position":"Position","settings.bottomRight":"Bottom Right","settings.bottomLeft":"Bottom Left","settings.bottomMargin":"Bottom Margin","settings.rightMargin":"Right Margin","settings.leftMargin":"Left Margin","settings.dragToMove":"Drag to move","settings.tabsVisibility":"Tab Visibility","bubble.title":"Want to chat about ByteDesk?","bubble.subtitle":"I'm an AI chatbot here to help you find your way.","settings.button":"Button","settings.button.title":"Button Title","settings.button.subtitle":"Button Subtitle","settings.button.icon":"Button Icon","settings.button.url":"Button URL","settings.bubbleMessage":"Bubble Message","settings.showBubble":"Show Bubble Message","settings.bubbleIcon":"Bubble Icon","settings.bubbleTitle":"Bubble Title","settings.bubbleSubtitle":"Bubble Subtitle","settings.navbar":"Navbar","settings.navbar.title":"Navbar Title","settings.navbar.subtitle":"Navbar Subtitle","settings.chatConfig":"Chat Parameters","settings.orgId":"Organization ID","settings.type":"Type","settings.agentId":"Agent ID","settings.support":"Technical Support","settings.showSupport":"Show Technical Support Text","settings.reset":"Reset Configuration","i18n.app.title":"Bytedesk","i18n.app.support":"support","i18n.app.url":"https://www.weiyuai.cn","i18n.loading":"Loading...","i18n.load.nomore":"No more","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.load.more":"Load more","i18n.typing":"Typing","i18n.guess.faq":"Guess","i18n.hot.faq":"Hot","i18n.change.faq":"Change","i18n.file.assistant":"file assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.system.notification":"notification","i18n.top.tip":"Top Tip","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.queue.tip":"Queuing","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultAsistant","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed"},x$={en:Eye,"zh-cn":Pye,"zh-tw":Tye,ja:Oye,ko:Rye};/** - * @remix-run/router v1.21.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Mye(){return Math.random().toString(36).substr(2,8)}function ZD(e,t){return{usr:e.state,key:e.key,idx:t}}function Ag(e,t,n,r){return n===void 0&&(n=null),Or({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Au(t):t,{state:n,key:t&&t.key||r||Mye()})}function q0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Au(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Nye(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=ni.Pop,l=null,c=d();c==null&&(c=0,o.replaceState(Or({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){s=ni.Pop;let g=d(),w=g==null?null:g-c;c=g,l&&l({action:s,location:v.location,delta:w})}function m(g,w){s=ni.Push;let y=Ag(v.location,g,w);c=d()+1;let b=ZD(y,c),x=v.createHref(y);try{o.pushState(b,"",x)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(x)}a&&l&&l({action:s,location:v.location,delta:1})}function p(g,w){s=ni.Replace;let y=Ag(v.location,g,w);c=d();let b=ZD(y,c),x=v.createHref(y);o.replaceState(b,"",x),a&&l&&l({action:s,location:v.location,delta:0})}function h(g){let w=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof g=="string"?g:q0(g);return y=y.replace(/ $/,"%20"),Nn(w,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,w)}let v={get action(){return s},get location(){return e(i,o)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(QD,f),l=g,()=>{i.removeEventListener(QD,f),l=null}},createHref(g){return t(i,g)},createURL:h,encodeLocation(g){let w=h(g);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:p,go(g){return o.go(g)}};return v}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const Dye=new Set(["lazy","caseSensitive","path","id","index","children"]);function jye(e){return e.index===!0}function yx(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(Nn(i.index!==!0||!i.children,"Cannot specify children on an index route"),Nn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),jye(i)){let l=Or({},i,t(i),{id:s});return r[s]=l,l}else{let l=Or({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=yx(i.children,t,o,r)),l}})}function id(e,t,n){return n===void 0&&(n="/"),qy(e,t,n,!1)}function qy(e,t,n,r){let i=typeof t=="string"?Au(t):t,a=G0(i.pathname||"/",n);if(a==null)return null;let o=IK(e);Aye(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Nn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=wu([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(Nn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),IK(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:Uye(c,a.index),routesMeta:d})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of MK(a.path))i(a,o,l)}),t}function MK(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=MK(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Aye(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qye(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Lye=/^:[\w-]+$/,Bye=3,zye=2,Hye=1,Vye=10,Wye=-2,JD=e=>e==="*";function Uye(e,t){let n=e.split("/"),r=n.length;return n.some(JD)&&(r+=Wye),t&&(r+=zye),n.filter(i=>!JD(i)).reduce((i,a)=>i+(Lye.test(a)?Bye:a===""?Hye:Vye),r)}function qye(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Gye(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:m,isOptional:p}=d;if(m==="*"){let v=s[f]||"";o=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const h=s[f];return p&&!h?c[m]=void 0:c[m]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function Kye(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Yye(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function G0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Xye(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Au(e):e;return{pathname:n?n.startsWith("/")?n:Qye(n,t):t,search:Jye(r),hash:ewe(i)}}function Qye(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function S$(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function NK(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function DK(e,t){let n=NK(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jK(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Au(e):(i=Or({},e),Nn(!i.pathname||!i.pathname.includes("?"),S$("?","pathname","search",i)),Nn(!i.pathname||!i.pathname.includes("#"),S$("#","pathname","hash",i)),Nn(!i.search||!i.search.includes("#"),S$("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let l=Xye(i,s),c=o&&o!=="/"&&o.endsWith("/"),d=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const wu=e=>e.join("/").replace(/\/\/+/g,"/"),Zye=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Jye=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ewe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class wx{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function l2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FK=["post","put","patch","delete"],twe=new Set(FK),nwe=["get",...FK],rwe=new Set(nwe),iwe=new Set([301,302,303,307,308]),awe=new Set([307,308]),C$={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},owe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},nI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,swe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),AK="remix-router-transitions";function lwe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Nn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let ge=e.detectErrorBoundary;i=Te=>({hasErrorBoundary:ge(Te)})}else i=swe;let a={},o=yx(e.routes,i,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||fwe,d=e.patchRoutesOnNavigation,f=Or({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,p=new Set,h=null,v=null,g=null,w=e.hydrationData!=null,y=id(o,e.history.location,l),b=null;if(y==null&&!d){let ge=$a(404,{pathname:e.history.location.pathname}),{matches:Te,route:Ce}=dj(o);y=Te,b={[Ce.id]:ge}}y&&!e.hydrationData&&et(y,o,e.history.location.pathname).active&&(y=null);let x;if(y)if(y.some(ge=>ge.route.lazy))x=!1;else if(!y.some(ge=>ge.route.loader))x=!0;else if(f.v7_partialHydration){let ge=e.hydrationData?e.hydrationData.loaderData:null,Te=e.hydrationData?e.hydrationData.errors:null;if(Te){let Ce=y.findIndex(Ie=>Te[Ie.route.id]!==void 0);x=y.slice(0,Ce+1).every(Ie=>!wP(Ie.route,ge,Te))}else x=y.every(Ce=>!wP(Ce.route,ge,Te))}else x=e.hydrationData!=null;else if(x=!1,y=[],f.v7_partialHydration){let ge=et(null,o,e.history.location.pathname);ge.active&&ge.matches&&(y=ge.matches)}let C,S={historyAction:e.history.action,location:e.history.location,matches:y,initialized:x,navigation:C$,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},_=ni.Pop,k=!1,$,E=!1,P=new Map,M=null,j=!1,O=!1,N=[],R=new Set,D=new Map,F=0,z=-1,I=new Map,H=new Set,V=new Map,B=new Map,W=new Set,U=new Map,X=new Map,q;function Y(){if(m=e.history.listen(ge=>{let{action:Te,location:Ce,delta:Ie}=ge;if(q){q(),q=void 0;return}sp(X.size===0||Ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ke=He({currentLocation:S.location,nextLocation:Ce,historyAction:Te});if(Ke&&Ie!=null){let Xe=new Promise(lt=>{q=lt});e.history.go(Ie*-1),je(Ke,{state:"blocked",location:Ce,proceed(){je(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:Ce}),Xe.then(()=>e.history.go(Ie))},reset(){let lt=new Map(S.blockers);lt.set(Ke,zh),Q({blockers:lt})}});return}return te(Te,Ce)}),n){$we(t,P);let ge=()=>Ewe(t,P);t.addEventListener("pagehide",ge),M=()=>t.removeEventListener("pagehide",ge)}return S.initialized||te(ni.Pop,S.location,{initialHydration:!0}),C}function re(){m&&m(),M&&M(),p.clear(),$&&$.abort(),S.fetchers.forEach((ge,Te)=>Se(Te)),S.blockers.forEach((ge,Te)=>_e(Te))}function G(ge){return p.add(ge),()=>p.delete(ge)}function Q(ge,Te){Te===void 0&&(Te={}),S=Or({},S,ge);let Ce=[],Ie=[];f.v7_fetcherPersist&&S.fetchers.forEach((Ke,Xe)=>{Ke.state==="idle"&&(W.has(Xe)?Ie.push(Xe):Ce.push(Xe))}),[...p].forEach(Ke=>Ke(S,{deletedFetchers:Ie,viewTransitionOpts:Te.viewTransitionOpts,flushSync:Te.flushSync===!0})),f.v7_fetcherPersist&&(Ce.forEach(Ke=>S.fetchers.delete(Ke)),Ie.forEach(Ke=>Se(Ke)))}function J(ge,Te,Ce){var Ie,Ke;let{flushSync:Xe}=Ce===void 0?{}:Ce,lt=S.actionData!=null&&S.navigation.formMethod!=null&&vs(S.navigation.formMethod)&&S.navigation.state==="loading"&&((Ie=ge.state)==null?void 0:Ie._isRedirect)!==!0,tt;Te.actionData?Object.keys(Te.actionData).length>0?tt=Te.actionData:tt=null:lt?tt=S.actionData:tt=null;let Qe=Te.loaderData?cj(S.loaderData,Te.loaderData,Te.matches||[],Te.errors):S.loaderData,Ge=S.blockers;Ge.size>0&&(Ge=new Map(Ge),Ge.forEach((yt,zt)=>Ge.set(zt,zh)));let st=k===!0||S.navigation.formMethod!=null&&vs(S.navigation.formMethod)&&((Ke=ge.state)==null?void 0:Ke._isRedirect)!==!0;s&&(o=s,s=void 0),j||_===ni.Pop||(_===ni.Push?e.history.push(ge,ge.state):_===ni.Replace&&e.history.replace(ge,ge.state));let pt;if(_===ni.Pop){let yt=P.get(S.location.pathname);yt&&yt.has(ge.pathname)?pt={currentLocation:S.location,nextLocation:ge}:P.has(ge.pathname)&&(pt={currentLocation:ge,nextLocation:S.location})}else if(E){let yt=P.get(S.location.pathname);yt?yt.add(ge.pathname):(yt=new Set([ge.pathname]),P.set(S.location.pathname,yt)),pt={currentLocation:S.location,nextLocation:ge}}Q(Or({},Te,{actionData:tt,loaderData:Qe,historyAction:_,location:ge,initialized:!0,navigation:C$,revalidation:"idle",restoreScrollPosition:Ae(ge,Te.matches||S.matches),preventScrollReset:st,blockers:Ge}),{viewTransitionOpts:pt,flushSync:Xe===!0}),_=ni.Pop,k=!1,E=!1,j=!1,O=!1,N=[]}async function Z(ge,Te){if(typeof ge=="number"){e.history.go(ge);return}let Ce=yP(S.location,S.matches,l,f.v7_prependBasename,ge,f.v7_relativeSplatPath,Te==null?void 0:Te.fromRouteId,Te==null?void 0:Te.relative),{path:Ie,submission:Ke,error:Xe}=tj(f.v7_normalizeFormMethod,!1,Ce,Te),lt=S.location,tt=Ag(S.location,Ie,Te&&Te.state);tt=Or({},tt,e.history.encodeLocation(tt));let Qe=Te&&Te.replace!=null?Te.replace:void 0,Ge=ni.Push;Qe===!0?Ge=ni.Replace:Qe===!1||Ke!=null&&vs(Ke.formMethod)&&Ke.formAction===S.location.pathname+S.location.search&&(Ge=ni.Replace);let st=Te&&"preventScrollReset"in Te?Te.preventScrollReset===!0:void 0,pt=(Te&&Te.flushSync)===!0,yt=He({currentLocation:lt,nextLocation:tt,historyAction:Ge});if(yt){je(yt,{state:"blocked",location:tt,proceed(){je(yt,{state:"proceeding",proceed:void 0,reset:void 0,location:tt}),Z(ge,Te)},reset(){let zt=new Map(S.blockers);zt.set(yt,zh),Q({blockers:zt})}});return}return await te(Ge,tt,{submission:Ke,pendingError:Xe,preventScrollReset:st,replace:Te&&Te.replace,enableViewTransition:Te&&Te.viewTransition,flushSync:pt})}function ee(){if(se(),Q({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){te(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}te(_||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:E===!0})}}async function te(ge,Te,Ce){$&&$.abort(),$=null,_=ge,j=(Ce&&Ce.startUninterruptedRevalidation)===!0,Ne(S.location,S.matches),k=(Ce&&Ce.preventScrollReset)===!0,E=(Ce&&Ce.enableViewTransition)===!0;let Ie=s||o,Ke=Ce&&Ce.overrideNavigation,Xe=id(Ie,Te,l),lt=(Ce&&Ce.flushSync)===!0,tt=et(Xe,Ie,Te.pathname);if(tt.active&&tt.matches&&(Xe=tt.matches),!Xe){let{error:$t,notFoundMatches:ze,route:fe}=Be(Te.pathname);J(Te,{matches:ze,loaderData:{},errors:{[fe.id]:$t}},{flushSync:lt});return}if(S.initialized&&!O&&bwe(S.location,Te)&&!(Ce&&Ce.submission&&vs(Ce.submission.formMethod))){J(Te,{matches:Xe},{flushSync:lt});return}$=new AbortController;let Qe=Bf(e.history,Te,$.signal,Ce&&Ce.submission),Ge;if(Ce&&Ce.pendingError)Ge=[ad(Xe).route.id,{type:rr.error,error:Ce.pendingError}];else if(Ce&&Ce.submission&&vs(Ce.submission.formMethod)){let $t=await le(Qe,Te,Ce.submission,Xe,tt.active,{replace:Ce.replace,flushSync:lt});if($t.shortCircuited)return;if($t.pendingActionResult){let[ze,fe]=$t.pendingActionResult;if(to(fe)&&l2(fe.error)&&fe.error.status===404){$=null,J(Te,{matches:$t.matches,loaderData:{},errors:{[ze]:fe.error}});return}}Xe=$t.matches||Xe,Ge=$t.pendingActionResult,Ke=_$(Te,Ce.submission),lt=!1,tt.active=!1,Qe=Bf(e.history,Qe.url,Qe.signal)}let{shortCircuited:st,matches:pt,loaderData:yt,errors:zt}=await oe(Qe,Te,Xe,tt.active,Ke,Ce&&Ce.submission,Ce&&Ce.fetcherSubmission,Ce&&Ce.replace,Ce&&Ce.initialHydration===!0,lt,Ge);st||($=null,J(Te,Or({matches:pt||Xe},uj(Ge),{loaderData:yt,errors:zt})))}async function le(ge,Te,Ce,Ie,Ke,Xe){Xe===void 0&&(Xe={}),se();let lt=_we(Te,Ce);if(Q({navigation:lt},{flushSync:Xe.flushSync===!0}),Ke){let Ge=await nt(Ie,Te.pathname,ge.signal);if(Ge.type==="aborted")return{shortCircuited:!0};if(Ge.type==="error"){let st=ad(Ge.partialMatches).route.id;return{matches:Ge.partialMatches,pendingActionResult:[st,{type:rr.error,error:Ge.error}]}}else if(Ge.matches)Ie=Ge.matches;else{let{notFoundMatches:st,error:pt,route:yt}=Be(Te.pathname);return{matches:st,pendingActionResult:[yt.id,{type:rr.error,error:pt}]}}}let tt,Qe=Cv(Ie,Te);if(!Qe.route.action&&!Qe.route.lazy)tt={type:rr.error,error:$a(405,{method:ge.method,pathname:Te.pathname,routeId:Qe.route.id})};else if(tt=(await ce("action",S,ge,[Qe],Ie,null))[Qe.route.id],ge.signal.aborted)return{shortCircuited:!0};if(bd(tt)){let Ge;return Xe&&Xe.replace!=null?Ge=Xe.replace:Ge=oj(tt.response.headers.get("Location"),new URL(ge.url),l)===S.location.pathname+S.location.search,await ue(ge,tt,!0,{submission:Ce,replace:Ge}),{shortCircuited:!0}}if(ru(tt))throw $a(400,{type:"defer-action"});if(to(tt)){let Ge=ad(Ie,Qe.route.id);return(Xe&&Xe.replace)!==!0&&(_=ni.Push),{matches:Ie,pendingActionResult:[Ge.route.id,tt]}}return{matches:Ie,pendingActionResult:[Qe.route.id,tt]}}async function oe(ge,Te,Ce,Ie,Ke,Xe,lt,tt,Qe,Ge,st){let pt=Ke||_$(Te,Xe),yt=Xe||lt||mj(pt),zt=!j&&(!f.v7_partialHydration||!Qe);if(Ie){if(zt){let at=de(st);Q(Or({navigation:pt},at!==void 0?{actionData:at}:{}),{flushSync:Ge})}let St=await nt(Ce,Te.pathname,ge.signal);if(St.type==="aborted")return{shortCircuited:!0};if(St.type==="error"){let at=ad(St.partialMatches).route.id;return{matches:St.partialMatches,loaderData:{},errors:{[at]:St.error}}}else if(St.matches)Ce=St.matches;else{let{error:at,notFoundMatches:_t,route:At}=Be(Te.pathname);return{matches:_t,loaderData:{},errors:{[At.id]:at}}}}let $t=s||o,[ze,fe]=rj(e.history,S,Ce,yt,Te,f.v7_partialHydration&&Qe===!0,f.v7_skipActionErrorRevalidation,O,N,R,W,V,H,$t,l,st);if(ct(St=>!(Ce&&Ce.some(at=>at.route.id===St))||ze&&ze.some(at=>at.route.id===St)),z=++F,ze.length===0&&fe.length===0){let St=be();return J(Te,Or({matches:Ce,loaderData:{},errors:st&&to(st[1])?{[st[0]]:st[1].error}:null},uj(st),St?{fetchers:new Map(S.fetchers)}:{}),{flushSync:Ge}),{shortCircuited:!0}}if(zt){let St={};if(!Ie){St.navigation=pt;let at=de(st);at!==void 0&&(St.actionData=at)}fe.length>0&&(St.fetchers=pe(fe)),Q(St,{flushSync:Ge})}fe.forEach(St=>{De(St.key),St.controller&&D.set(St.key,St.controller)});let Me=()=>fe.forEach(St=>De(St.key));$&&$.signal.addEventListener("abort",Me);let{loaderResults:We,fetcherResults:wt}=await $e(S,Ce,ze,fe,ge);if(ge.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Me),fe.forEach(St=>D.delete(St.key));let Je=gb(We);if(Je)return await ue(ge,Je.result,!0,{replace:tt}),{shortCircuited:!0};if(Je=gb(wt),Je)return H.add(Je.key),await ue(ge,Je.result,!0,{replace:tt}),{shortCircuited:!0};let{loaderData:Le,errors:ot}=lj(S,Ce,We,st,fe,wt,U);U.forEach((St,at)=>{St.subscribe(_t=>{(_t||St.done)&&U.delete(at)})}),f.v7_partialHydration&&Qe&&S.errors&&(ot=Or({},S.errors,ot));let vt=be(),Et=Pe(z),It=vt||Et||fe.length>0;return Or({matches:Ce,loaderData:Le,errors:ot},It?{fetchers:new Map(S.fetchers)}:{})}function de(ge){if(ge&&!to(ge[1]))return{[ge[0]]:ge[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function pe(ge){return ge.forEach(Te=>{let Ce=S.fetchers.get(Te.key),Ie=Hh(void 0,Ce?Ce.data:void 0);S.fetchers.set(Te.key,Ie)}),new Map(S.fetchers)}function ye(ge,Te,Ce,Ie){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");De(ge);let Ke=(Ie&&Ie.flushSync)===!0,Xe=s||o,lt=yP(S.location,S.matches,l,f.v7_prependBasename,Ce,f.v7_relativeSplatPath,Te,Ie==null?void 0:Ie.relative),tt=id(Xe,lt,l),Qe=et(tt,Xe,lt);if(Qe.active&&Qe.matches&&(tt=Qe.matches),!tt){ve(ge,Te,$a(404,{pathname:lt}),{flushSync:Ke});return}let{path:Ge,submission:st,error:pt}=tj(f.v7_normalizeFormMethod,!0,lt,Ie);if(pt){ve(ge,Te,pt,{flushSync:Ke});return}let yt=Cv(tt,Ge),zt=(Ie&&Ie.preventScrollReset)===!0;if(st&&vs(st.formMethod)){me(ge,Te,Ge,yt,tt,Qe.active,Ke,zt,st);return}V.set(ge,{routeId:Te,path:Ge}),xe(ge,Te,Ge,yt,tt,Qe.active,Ke,zt,st)}async function me(ge,Te,Ce,Ie,Ke,Xe,lt,tt,Qe){se(),V.delete(ge);function Ge(Dt){if(!Dt.route.action&&!Dt.route.lazy){let Jt=$a(405,{method:Qe.formMethod,pathname:Ce,routeId:Te});return ve(ge,Te,Jt,{flushSync:lt}),!0}return!1}if(!Xe&&Ge(Ie))return;let st=S.fetchers.get(ge);he(ge,kwe(Qe,st),{flushSync:lt});let pt=new AbortController,yt=Bf(e.history,Ce,pt.signal,Qe);if(Xe){let Dt=await nt(Ke,Ce,yt.signal);if(Dt.type==="aborted")return;if(Dt.type==="error"){ve(ge,Te,Dt.error,{flushSync:lt});return}else if(Dt.matches){if(Ke=Dt.matches,Ie=Cv(Ke,Ce),Ge(Ie))return}else{ve(ge,Te,$a(404,{pathname:Ce}),{flushSync:lt});return}}D.set(ge,pt);let zt=F,ze=(await ce("action",S,yt,[Ie],Ke,ge))[Ie.route.id];if(yt.signal.aborted){D.get(ge)===pt&&D.delete(ge);return}if(f.v7_fetcherPersist&&W.has(ge)){if(bd(ze)||to(ze)){he(ge,zc(void 0));return}}else{if(bd(ze))if(D.delete(ge),z>zt){he(ge,zc(void 0));return}else return H.add(ge),he(ge,Hh(Qe)),ue(yt,ze,!1,{fetcherSubmission:Qe,preventScrollReset:tt});if(to(ze)){ve(ge,Te,ze.error);return}}if(ru(ze))throw $a(400,{type:"defer-action"});let fe=S.navigation.location||S.location,Me=Bf(e.history,fe,pt.signal),We=s||o,wt=S.navigation.state!=="idle"?id(We,S.navigation.location,l):S.matches;Nn(wt,"Didn't find any matches after fetcher action");let Je=++F;I.set(ge,Je);let Le=Hh(Qe,ze.data);S.fetchers.set(ge,Le);let[ot,vt]=rj(e.history,S,wt,Qe,fe,!1,f.v7_skipActionErrorRevalidation,O,N,R,W,V,H,We,l,[Ie.route.id,ze]);vt.filter(Dt=>Dt.key!==ge).forEach(Dt=>{let Jt=Dt.key,pn=S.fetchers.get(Jt),gn=Hh(void 0,pn?pn.data:void 0);S.fetchers.set(Jt,gn),De(Jt),Dt.controller&&D.set(Jt,Dt.controller)}),Q({fetchers:new Map(S.fetchers)});let Et=()=>vt.forEach(Dt=>De(Dt.key));pt.signal.addEventListener("abort",Et);let{loaderResults:It,fetcherResults:St}=await $e(S,wt,ot,vt,Me);if(pt.signal.aborted)return;pt.signal.removeEventListener("abort",Et),I.delete(ge),D.delete(ge),vt.forEach(Dt=>D.delete(Dt.key));let at=gb(It);if(at)return ue(Me,at.result,!1,{preventScrollReset:tt});if(at=gb(St),at)return H.add(at.key),ue(Me,at.result,!1,{preventScrollReset:tt});let{loaderData:_t,errors:At}=lj(S,wt,It,void 0,vt,St,U);if(S.fetchers.has(ge)){let Dt=zc(ze.data);S.fetchers.set(ge,Dt)}Pe(Je),S.navigation.state==="loading"&&Je>z?(Nn(_,"Expected pending action"),$&&$.abort(),J(S.navigation.location,{matches:wt,loaderData:_t,errors:At,fetchers:new Map(S.fetchers)})):(Q({errors:At,loaderData:cj(S.loaderData,_t,wt,At),fetchers:new Map(S.fetchers)}),O=!1)}async function xe(ge,Te,Ce,Ie,Ke,Xe,lt,tt,Qe){let Ge=S.fetchers.get(ge);he(ge,Hh(Qe,Ge?Ge.data:void 0),{flushSync:lt});let st=new AbortController,pt=Bf(e.history,Ce,st.signal);if(Xe){let ze=await nt(Ke,Ce,pt.signal);if(ze.type==="aborted")return;if(ze.type==="error"){ve(ge,Te,ze.error,{flushSync:lt});return}else if(ze.matches)Ke=ze.matches,Ie=Cv(Ke,Ce);else{ve(ge,Te,$a(404,{pathname:Ce}),{flushSync:lt});return}}D.set(ge,st);let yt=F,$t=(await ce("loader",S,pt,[Ie],Ke,ge))[Ie.route.id];if(ru($t)&&($t=await rI($t,pt.signal,!0)||$t),D.get(ge)===st&&D.delete(ge),!pt.signal.aborted){if(W.has(ge)){he(ge,zc(void 0));return}if(bd($t))if(z>yt){he(ge,zc(void 0));return}else{H.add(ge),await ue(pt,$t,!1,{preventScrollReset:tt});return}if(to($t)){ve(ge,Te,$t.error);return}Nn(!ru($t),"Unhandled fetcher deferred data"),he(ge,zc($t.data))}}async function ue(ge,Te,Ce,Ie){let{submission:Ke,fetcherSubmission:Xe,preventScrollReset:lt,replace:tt}=Ie===void 0?{}:Ie;Te.response.headers.has("X-Remix-Revalidate")&&(O=!0);let Qe=Te.response.headers.get("Location");Nn(Qe,"Expected a Location header on the redirect Response"),Qe=oj(Qe,new URL(ge.url),l);let Ge=Ag(S.location,Qe,{_isRedirect:!0});if(n){let ze=!1;if(Te.response.headers.has("X-Remix-Reload-Document"))ze=!0;else if(nI.test(Qe)){const fe=e.history.createURL(Qe);ze=fe.origin!==t.location.origin||G0(fe.pathname,l)==null}if(ze){tt?t.location.replace(Qe):t.location.assign(Qe);return}}$=null;let st=tt===!0||Te.response.headers.has("X-Remix-Replace")?ni.Replace:ni.Push,{formMethod:pt,formAction:yt,formEncType:zt}=S.navigation;!Ke&&!Xe&&pt&&yt&&zt&&(Ke=mj(S.navigation));let $t=Ke||Xe;if(awe.has(Te.response.status)&&$t&&vs($t.formMethod))await te(st,Ge,{submission:Or({},$t,{formAction:Qe}),preventScrollReset:lt||k,enableViewTransition:Ce?E:void 0});else{let ze=_$(Ge,Ke);await te(st,Ge,{overrideNavigation:ze,fetcherSubmission:Xe,preventScrollReset:lt||k,enableViewTransition:Ce?E:void 0})}}async function ce(ge,Te,Ce,Ie,Ke,Xe){let lt,tt={};try{lt=await mwe(c,ge,Te,Ce,Ie,Ke,Xe,a,i)}catch(Qe){return Ie.forEach(Ge=>{tt[Ge.route.id]={type:rr.error,error:Qe}}),tt}for(let[Qe,Ge]of Object.entries(lt))if(ywe(Ge)){let st=Ge.result;tt[Qe]={type:rr.redirect,response:vwe(st,Ce,Qe,Ke,l,f.v7_relativeSplatPath)}}else tt[Qe]=await hwe(Ge);return tt}async function $e(ge,Te,Ce,Ie,Ke){let Xe=ge.matches,lt=ce("loader",ge,Ke,Ce,Te,null),tt=Promise.all(Ie.map(async st=>{if(st.matches&&st.match&&st.controller){let yt=(await ce("loader",ge,Bf(e.history,st.path,st.controller.signal),[st.match],st.matches,st.key))[st.match.route.id];return{[st.key]:yt}}else return Promise.resolve({[st.key]:{type:rr.error,error:$a(404,{pathname:st.path})}})})),Qe=await lt,Ge=(await tt).reduce((st,pt)=>Object.assign(st,pt),{});return await Promise.all([Swe(Te,Qe,Ke.signal,Xe,ge.loaderData),Cwe(Te,Ge,Ie)]),{loaderResults:Qe,fetcherResults:Ge}}function se(){O=!0,N.push(...ct()),V.forEach((ge,Te)=>{D.has(Te)&&R.add(Te),De(Te)})}function he(ge,Te,Ce){Ce===void 0&&(Ce={}),S.fetchers.set(ge,Te),Q({fetchers:new Map(S.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function ve(ge,Te,Ce,Ie){Ie===void 0&&(Ie={});let Ke=ad(S.matches,Te);Se(ge),Q({errors:{[Ke.route.id]:Ce},fetchers:new Map(S.fetchers)},{flushSync:(Ie&&Ie.flushSync)===!0})}function ke(ge){return f.v7_fetcherPersist&&(B.set(ge,(B.get(ge)||0)+1),W.has(ge)&&W.delete(ge)),S.fetchers.get(ge)||owe}function Se(ge){let Te=S.fetchers.get(ge);D.has(ge)&&!(Te&&Te.state==="loading"&&I.has(ge))&&De(ge),V.delete(ge),I.delete(ge),H.delete(ge),W.delete(ge),R.delete(ge),S.fetchers.delete(ge)}function Ee(ge){if(f.v7_fetcherPersist){let Te=(B.get(ge)||0)-1;Te<=0?(B.delete(ge),W.add(ge)):B.set(ge,Te)}else Se(ge);Q({fetchers:new Map(S.fetchers)})}function De(ge){let Te=D.get(ge);Te&&(Te.abort(),D.delete(ge))}function we(ge){for(let Te of ge){let Ce=ke(Te),Ie=zc(Ce.data);S.fetchers.set(Te,Ie)}}function be(){let ge=[],Te=!1;for(let Ce of H){let Ie=S.fetchers.get(Ce);Nn(Ie,"Expected fetcher: "+Ce),Ie.state==="loading"&&(H.delete(Ce),ge.push(Ce),Te=!0)}return we(ge),Te}function Pe(ge){let Te=[];for(let[Ce,Ie]of I)if(Ie0}function Re(ge,Te){let Ce=S.blockers.get(ge)||zh;return X.get(ge)!==Te&&X.set(ge,Te),Ce}function _e(ge){S.blockers.delete(ge),X.delete(ge)}function je(ge,Te){let Ce=S.blockers.get(ge)||zh;Nn(Ce.state==="unblocked"&&Te.state==="blocked"||Ce.state==="blocked"&&Te.state==="blocked"||Ce.state==="blocked"&&Te.state==="proceeding"||Ce.state==="blocked"&&Te.state==="unblocked"||Ce.state==="proceeding"&&Te.state==="unblocked","Invalid blocker state transition: "+Ce.state+" -> "+Te.state);let Ie=new Map(S.blockers);Ie.set(ge,Te),Q({blockers:Ie})}function He(ge){let{currentLocation:Te,nextLocation:Ce,historyAction:Ie}=ge;if(X.size===0)return;X.size>1&&sp(!1,"A router only supports one blocker at a time");let Ke=Array.from(X.entries()),[Xe,lt]=Ke[Ke.length-1],tt=S.blockers.get(Xe);if(!(tt&&tt.state==="proceeding")&<({currentLocation:Te,nextLocation:Ce,historyAction:Ie}))return Xe}function Be(ge){let Te=$a(404,{pathname:ge}),Ce=s||o,{matches:Ie,route:Ke}=dj(Ce);return ct(),{notFoundMatches:Ie,route:Ke,error:Te}}function ct(ge){let Te=[];return U.forEach((Ce,Ie)=>{(!ge||ge(Ie))&&(Ce.cancel(),Te.push(Ie),U.delete(Ie))}),Te}function Ve(ge,Te,Ce){if(h=ge,g=Te,v=Ce||null,!w&&S.navigation===C$){w=!0;let Ie=Ae(S.location,S.matches);Ie!=null&&Q({restoreScrollPosition:Ie})}return()=>{h=null,g=null,v=null}}function Ye(ge,Te){return v&&v(ge,Te.map(Ie=>Fye(Ie,S.loaderData)))||ge.key}function Ne(ge,Te){if(h&&g){let Ce=Ye(ge,Te);h[Ce]=g()}}function Ae(ge,Te){if(h){let Ce=Ye(ge,Te),Ie=h[Ce];if(typeof Ie=="number")return Ie}return null}function et(ge,Te,Ce){if(d)if(ge){if(Object.keys(ge[0].params).length>0)return{active:!0,matches:qy(Te,Ce,l,!0)}}else return{active:!0,matches:qy(Te,Ce,l,!0)||[]};return{active:!1,matches:null}}async function nt(ge,Te,Ce){if(!d)return{type:"success",matches:ge};let Ie=ge;for(;;){let Ke=s==null,Xe=s||o,lt=a;try{await d({path:Te,matches:Ie,patch:(Ge,st)=>{Ce.aborted||aj(Ge,st,Xe,lt,i)}})}catch(Ge){return{type:"error",error:Ge,partialMatches:Ie}}finally{Ke&&!Ce.aborted&&(o=[...o])}if(Ce.aborted)return{type:"aborted"};let tt=id(Xe,Te,l);if(tt)return{type:"success",matches:tt};let Qe=qy(Xe,Te,l,!0);if(!Qe||Ie.length===Qe.length&&Ie.every((Ge,st)=>Ge.route.id===Qe[st].route.id))return{type:"success",matches:null};Ie=Qe}}function rt(ge){a={},s=yx(ge,i,void 0,a)}function it(ge,Te){let Ce=s==null;aj(ge,Te,s||o,a,i),Ce&&(o=[...o],Q({}))}return C={get basename(){return l},get future(){return f},get state(){return S},get routes(){return o},get window(){return t},initialize:Y,subscribe:G,enableScrollRestoration:Ve,navigate:Z,fetch:ye,revalidate:ee,createHref:ge=>e.history.createHref(ge),encodeLocation:ge=>e.history.encodeLocation(ge),getFetcher:ke,deleteFetcher:Ee,dispose:re,getBlocker:Re,deleteBlocker:_e,patchRoutes:it,_internalFetchControllers:D,_internalActiveDeferreds:U,_internalSetRoutes:rt},C}function cwe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function yP(e,t,n,r,i,a,o,s){let l,c;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){c=f;break}}else l=t,c=t[t.length-1];let d=jK(i||".",DK(l,a),G0(e.pathname,n)||e.pathname,s==="path");if(i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&c){let f=iI(d.search);if(c.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let m=new URLSearchParams(d.search),p=m.getAll("index");m.delete("index"),p.filter(v=>v).forEach(v=>m.append("index",v));let h=m.toString();d.search=h?"?"+h:""}}return r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:wu([n,d.pathname])),q0(d)}function tj(e,t,n,r){if(!r||!cwe(r))return{path:n};if(r.formMethod&&!xwe(r.formMethod))return{path:n,error:$a(405,{method:r.formMethod})};let i=()=>({path:n,error:$a(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=zK(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!vs(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,h)=>{let[v,g]=h;return""+p+v+"="+g+` -`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!vs(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}Nn(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=xP(r.formData),c=r.formData;else if(r.body instanceof FormData)l=xP(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=sj(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=sj(l)}catch{return i()}let d={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(vs(d.formMethod))return{path:n,submission:d};let f=Au(n);return t&&f.search&&iI(f.search)&&l.append("index",""),f.search="?"+l,{path:q0(f),submission:d}}function nj(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function rj(e,t,n,r,i,a,o,s,l,c,d,f,m,p,h,v){let g=v?to(v[1])?v[1].error:v[1].data:void 0,w=e.createURL(t.location),y=e.createURL(i),b=n;a&&t.errors?b=nj(n,Object.keys(t.errors)[0],!0):v&&to(v[1])&&(b=nj(n,v[0]));let x=v?v[1].statusCode:void 0,C=o&&x&&x>=400,S=b.filter((k,$)=>{let{route:E}=k;if(E.lazy)return!0;if(E.loader==null)return!1;if(a)return wP(E,t.loaderData,t.errors);if(uwe(t.loaderData,t.matches[$],k)||l.some(j=>j===k.route.id))return!0;let P=t.matches[$],M=k;return ij(k,Or({currentUrl:w,currentParams:P.params,nextUrl:y,nextParams:M.params},r,{actionResult:g,actionStatus:x,defaultShouldRevalidate:C?!1:s||w.pathname+w.search===y.pathname+y.search||w.search!==y.search||LK(P,M)}))}),_=[];return f.forEach((k,$)=>{if(a||!n.some(O=>O.route.id===k.routeId)||d.has($))return;let E=id(p,k.path,h);if(!E){_.push({key:$,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),M=Cv(E,k.path),j=!1;m.has($)?j=!1:c.has($)?(c.delete($),j=!0):P&&P.state!=="idle"&&P.data===void 0?j=s:j=ij(M,Or({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:g,actionStatus:x,defaultShouldRevalidate:C?!1:s})),j&&_.push({key:$,routeId:k.routeId,path:k.path,matches:E,match:M,controller:new AbortController})}),[S,_]}function wP(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function uwe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function LK(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ij(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function aj(e,t,n,r,i){var a;let o;if(e){let c=r[e];Nn(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),o=c.children}else o=n;let s=t.filter(c=>!o.some(d=>BK(c,d))),l=yx(s,i,[e||"_","patch",String(((a=o)==null?void 0:a.length)||"0")],r);o.push(...l)}function BK(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(a=>BK(n,a))}):!1}async function dwe(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Nn(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";sp(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!Dye.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Or({},t(i),{lazy:void 0}))}async function fwe(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,a,o)=>Object.assign(i,{[n[o].route.id]:a}),{})}async function mwe(e,t,n,r,i,a,o,s,l,c){let d=a.map(p=>p.route.lazy?dwe(p.route,l,s):void 0),f=a.map((p,h)=>{let v=d[h],g=i.some(y=>y.route.id===p.route.id);return Or({},p,{shouldLoad:g,resolve:async y=>(y&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(g=!0),g?pwe(t,r,p,v,y,c):Promise.resolve({type:rr.data,result:void 0}))})}),m=await e({matches:f,request:r,params:a[0].params,fetcherKey:o,context:c});try{await Promise.all(d)}catch{}return m}async function pwe(e,t,n,r,i,a){let o,s,l=c=>{let d,f=new Promise((h,v)=>d=v);s=()=>d(),t.signal.addEventListener("abort",s);let m=h=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:a},...h!==void 0?[h]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(v=>m(v)):m())}}catch(h){return{type:"error",result:h}}})();return Promise.race([p,f])};try{let c=n.route[e];if(r)if(c){let d,[f]=await Promise.all([l(c).catch(m=>{d=m}),r]);if(d!==void 0)throw d;o=f}else if(await r,c=n.route[e],c)o=await l(c);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw $a(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:rr.data,result:void 0};else if(c)o=await l(c);else{let d=new URL(t.url),f=d.pathname+d.search;throw $a(404,{pathname:f})}Nn(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:rr.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return o}async function hwe(e){let{result:t,type:n}=e;if(HK(t)){let c;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(d){return{type:rr.error,error:d}}return n===rr.error?{type:rr.error,error:new wx(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:rr.data,data:c,statusCode:t.status,headers:t.headers}}if(n===rr.error){if(fj(t)){var r;if(t.data instanceof Error){var i;return{type:rr.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new wx(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:rr.error,error:t,statusCode:l2(t)?t.status:void 0}}if(wwe(t)){var a,o;return{type:rr.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(fj(t)){var s,l;return{type:rr.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:rr.data,data:t}}function vwe(e,t,n,r,i,a){let o=e.headers.get("Location");if(Nn(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!nI.test(o)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);o=yP(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function oj(e,t,n){if(nI.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=G0(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function Bf(e,t,n,r){let i=e.createURL(zK(t)).toString(),a={signal:n};if(r&&vs(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=xP(r.formData):a.body=r.formData}return new Request(i,a)}function xP(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function sj(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function gwe(e,t,n,r,i){let a={},o=null,s,l=!1,c={},d=n&&to(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let m=f.route.id,p=t[m];if(Nn(!bd(p),"Cannot handle redirect results in processLoaderData"),to(p)){let h=p.error;d!==void 0&&(h=d,d=void 0),o=o||{};{let v=ad(e,m);o[v.route.id]==null&&(o[v.route.id]=h)}a[m]=void 0,l||(l=!0,s=l2(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else ru(p)?(r.set(m,p.deferredData),a[m]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[m]=p.headers)):(a[m]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[m]=p.headers))}),d!==void 0&&n&&(o={[n[0]]:d},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function lj(e,t,n,r,i,a,o){let{loaderData:s,errors:l}=gwe(t,n,r,o);return i.forEach(c=>{let{key:d,match:f,controller:m}=c,p=a[d];if(Nn(p,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(to(p)){let h=ad(e.matches,f==null?void 0:f.route.id);l&&l[h.route.id]||(l=Or({},l,{[h.route.id]:p.error})),e.fetchers.delete(d)}else if(bd(p))Nn(!1,"Unhandled fetcher revalidation redirect");else if(ru(p))Nn(!1,"Unhandled fetcher deferred data");else{let h=zc(p.data);e.fetchers.set(d,h)}}),{loaderData:s,errors:l}}function cj(e,t,n,r){let i=Or({},t);for(let a of n){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function uj(e){return e?to(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ad(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function dj(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function $a(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new wx(e||500,s,new Error(l),!0)}function gb(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(bd(i))return{key:r,result:i}}}function zK(e){let t=typeof e=="string"?Au(e):e;return q0(Or({},t,{hash:""}))}function bwe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ywe(e){return HK(e.result)&&iwe.has(e.result.status)}function ru(e){return e.type===rr.deferred}function to(e){return e.type===rr.error}function bd(e){return(e&&e.type)===rr.redirect}function fj(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function wwe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function HK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function xwe(e){return rwe.has(e.toLowerCase())}function vs(e){return twe.has(e.toLowerCase())}async function Swe(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o(m==null?void 0:m.route.id)===s);if(!c)continue;let d=r.find(m=>m.route.id===c.route.id),f=d!=null&&!LK(d,c)&&(i&&i[c.route.id])!==void 0;ru(l)&&f&&await rI(l,n,!1).then(m=>{m&&(t[s]=m)})}}async function Cwe(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===a)&&ru(s)&&(Nn(o,"Expected an AbortController for revalidating fetcher deferred result"),await rI(s,o.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function rI(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:rr.error,error:i}}return{type:rr.data,data:e.deferredData.data}}}function iI(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Cv(e,t){let n=typeof t=="string"?Au(t).search:t.search;if(e[e.length-1].route.index&&iI(n||""))return e[e.length-1];let r=NK(e);return r[r.length-1]}function mj(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function _$(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _we(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Hh(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function kwe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function zc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $we(e,t){try{let n=e.sessionStorage.getItem(AK);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function Ewe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(AK,JSON.stringify(n))}catch(r){sp(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.28.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),u.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=jK(c,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wu([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,a,e])}function Twe(){let{matches:e}=u.useContext(hf),t=e[e.length-1];return t?t.params:{}}function Owe(e,t,n,r){d2()||Nn(!1);let{navigator:i}=u.useContext(u2),{matches:a}=u.useContext(hf),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=oI(),d;d=c;let f=d.pathname||"/",m=f;if(l!=="/"){let v=l.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let p=id(e,{pathname:m});return Dwe(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:wu([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:wu([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,n,r)}function Rwe(){let e=Lwe(),t=l2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:i},n):null,null)}const Iwe=u.createElement(Rwe,null);class Mwe extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement(hf.Provider,{value:this.props.routeContext},u.createElement(WK.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nwe(e){let{routeContext:t,match:n,children:r}=e,i=u.useContext(c2);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(hf.Provider,{value:t},r)}function Dwe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let d=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||Nn(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,m)=>{let p,h=!1,v=null,g=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,v=f.route.errorElement||Iwe,l&&(c<0&&m===0?(h=!0,g=null):c===m&&(h=!0,g=f.route.hydrateFallbackElement||null)));let w=t.concat(o.slice(0,m+1)),y=()=>{let b;return p?b=v:h?b=g:f.route.Component?b=u.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,u.createElement(Nwe,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?u.createElement(Mwe,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:y(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):y()},null)}var qK=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qK||{}),Sx=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Sx||{});function jwe(e){let t=u.useContext(c2);return t||Nn(!1),t}function Fwe(e){let t=u.useContext(VK);return t||Nn(!1),t}function Awe(e){let t=u.useContext(hf);return t||Nn(!1),t}function GK(e){let t=Awe(),n=t.matches[t.matches.length-1];return n.route.id||Nn(!1),n.route.id}function Lwe(){var e;let t=u.useContext(WK),n=Fwe(Sx.UseRouteError),r=GK(Sx.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Bwe(){let{router:e}=jwe(qK.UseNavigateStable),t=GK(Sx.UseNavigateStable),n=u.useRef(!1);return UK(()=>{n.current=!0}),u.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,xx({fromRouteId:t},a)))},[e,t])}const pj={};function zwe(e,t){pj[t]||(pj[t]=!0,console.warn(t))}const zf=(e,t,n)=>zwe(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Hwe(e,t){e!=null&&e.v7_startTransition||zf("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&zf("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||zf("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||zf("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||zf("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||zf("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function Vwe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ni.Pop,navigator:a,static:o=!1,future:s}=e;d2()&&Nn(!1);let l=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:l,navigator:a,static:o,future:xx({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=Au(r));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:h="default"}=r,v=u.useMemo(()=>{let g=G0(d,l);return g==null?null:{location:{pathname:g,search:f,hash:m,state:p,key:h},navigationType:i}},[l,d,f,m,p,h,i]);return v==null?null:u.createElement(u2.Provider,{value:c},u.createElement(aI.Provider,{children:n,value:v}))}new Promise(()=>{});function Wwe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:u.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:u.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:u.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.28.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Cx(){return Cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Uwe(e,t){let n=SP(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const qwe="6";try{window.__reactRouterVersion=qwe}catch{}function Gwe(e,t){return lwe({basename:t==null?void 0:t.basename,future:Cx({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Iye({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Kwe(),routes:e,mapRouteProperties:Wwe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function Kwe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Cx({},t,{errors:Ywe(t.errors)})),t}function Ywe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new wx(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const Xwe=u.createContext({isTransitioning:!1}),Qwe=u.createContext(new Map),Zwe="startTransition",hj=zd[Zwe],Jwe="flushSync",vj=XU[Jwe];function exe(e){hj?hj(e):e()}function Vh(e){vj?vj(e):e()}class txe{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function nxe(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=u.useState(n.state),[o,s]=u.useState(),[l,c]=u.useState({isTransitioning:!1}),[d,f]=u.useState(),[m,p]=u.useState(),[h,v]=u.useState(),g=u.useRef(new Map),{v7_startTransition:w}=r||{},y=u.useCallback(k=>{w?exe(k):k()},[w]),b=u.useCallback((k,$)=>{let{deletedFetchers:E,flushSync:P,viewTransitionOpts:M}=$;E.forEach(O=>g.current.delete(O)),k.fetchers.forEach((O,N)=>{O.data!==void 0&&g.current.set(N,O.data)});let j=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!M||j){P?Vh(()=>a(k)):y(()=>a(k));return}if(P){Vh(()=>{m&&(d&&d.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let O=n.window.document.startViewTransition(()=>{Vh(()=>a(k))});O.finished.finally(()=>{Vh(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),Vh(()=>p(O));return}m?(d&&d.resolve(),m.skipTransition(),v({state:k,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(s(k),c({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,m,d,g,y]);u.useLayoutEffect(()=>n.subscribe(b),[n,b]),u.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new txe)},[l]),u.useEffect(()=>{if(d&&o&&n.window){let k=o,$=d.promise,E=n.window.document.startViewTransition(async()=>{y(()=>a(k)),await $});E.finished.finally(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(E)}},[y,o,d,n.window]),u.useEffect(()=>{d&&o&&i.location.key===o.location.key&&d.resolve()},[d,m,i.location,o]),u.useEffect(()=>{!l.isTransitioning&&h&&(s(h.state),c({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),v(void 0))},[l.isTransitioning,h]),u.useEffect(()=>{},[]);let x=u.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,$,E)=>n.navigate(k,{state:$,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,$,E)=>n.navigate(k,{replace:!0,state:$,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[n]),C=n.basename||"/",S=u.useMemo(()=>({router:n,navigator:x,static:!1,basename:C}),[n,x,C]),_=u.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return u.useEffect(()=>Hwe(r,n.future),[r,n.future]),u.createElement(u.Fragment,null,u.createElement(c2.Provider,{value:S},u.createElement(VK.Provider,{value:i},u.createElement(Qwe.Provider,{value:g.current},u.createElement(Xwe.Provider,{value:l},u.createElement(Vwe,{basename:C,location:i.location,navigationType:i.historyAction,navigator:x,future:_},i.initialized||n.future.v7_partialHydration?u.createElement(rxe,{routes:n.routes,future:n.future,state:i}):t))))),null)}const rxe=u.memo(ixe);function ixe(e){let{routes:t,future:n,state:r}=e;return Owe(t,void 0,r,n)}var gj;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gj||(gj={}));var bj;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bj||(bj={}));function Y0(e){let t=u.useRef(SP(e)),n=u.useRef(!1),r=oI(),i=u.useMemo(()=>Uwe(r.search,n.current?null:t.current),[r.search]),a=K0(),o=u.useCallback((s,l)=>{const c=SP(typeof s=="function"?s(i):s);n.current=!0,a("?"+c,l)},[a,i]);return[i,o]}const axe=()=>{const e=mf(),[t,n]=u.useState(e.formatMessage({id:"i18n.app.title"}));return u.useEffect(()=>{(async()=>{try{const i=pye(),a=hye();n(i&&a?a:e.formatMessage({id:"i18n.app.title"}))}catch(i){console.error("Failed to load title:",i)}})()},[e]),T.jsxs("div",{children:[T.jsx("h1",{children:t}),T.jsx("p",{children:"对话即服务"}),T.jsx("p",{children:T.jsx("a",{href:"/chat/server",target:"_blank",children:"切换服务器"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/config",target:"_blank",children:"配置"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/home",target:"_blank",children:"首页"})}),T.jsx("p",{children:T.jsx("a",{href:"/chat/?org=df_org_uid&t=0&sid=df_ag_uid&",target:"_blank",children:"演示一对一全屏 chat"})}),T.jsx("p",{children:T.jsx("a",{href:"/chat/?org=df_org_uid&t=1&sid=df_wg_uid&",target:"_blank",children:"演示技能组全屏 chat"})}),T.jsx("p",{children:T.jsx("a",{href:"/chat/?org=df_org_uid&t=2&sid=df_rt_uid&",target:"_blank",children:"演示机器人全屏 chat"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/ticket?org=df_org_uid&t=0&sid=df_ag_uid&",target:"_blank",children:"工单系统"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/feedback?org=df_org_uid&t=0&sid=df_ag_uid&",target:"_blank",children:"意见反馈"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/number?org=df_org_uid",target:"_blank",children:"取号"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/queue?org=df_org_uid",target:"_blank",children:"排队大屏"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/center?org=df_org_uid",target:"_blank",children:"客服中心"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/helpcenter?org=df_org_uid",target:"_blank",children:"帮助中心"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/demo/airline",target:"_blank",children:"航空助手"})}),sa&&T.jsx("p",{children:T.jsx("a",{href:"/chat/demo/shopping",target:"_blank",children:"电商助手"})})]})};(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(b){try{return b.defaultView&&b.defaultView.frameElement||null}catch{return null}}var t=function(b){for(var x=b,C=e(x);C;)x=C.ownerDocument,C=e(x);return x}(window.document),n=[],r=null,i=null;function a(b){this.time=b.time,this.target=b.target,this.rootBounds=h(b.rootBounds),this.boundingClientRect=h(b.boundingClientRect),this.intersectionRect=h(b.intersectionRect||p()),this.isIntersecting=!!b.intersectionRect;var x=this.boundingClientRect,C=x.width*x.height,S=this.intersectionRect,_=S.width*S.height;C?this.intersectionRatio=Number((_/C).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(b,x){var C=x||{};if(typeof b!="function")throw new Error("callback must be a function");if(C.root&&C.root.nodeType!=1&&C.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=b,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(C.rootMargin),this.thresholds=this._initThresholds(C.threshold),this.root=C.root||null,this.rootMargin=this._rootMarginValues.map(function(S){return S.value+S.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return r||(r=function(b,x){!b||!x?i=p():i=v(b,x),n.forEach(function(C){C._checkForIntersections()})}),r},o._resetCrossOriginUpdater=function(){r=null,i=null},o.prototype.observe=function(b){var x=this._observationTargets.some(function(C){return C.element==b});if(!x){if(!(b&&b.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:b,entry:null}),this._monitorIntersections(b.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(b){this._observationTargets=this._observationTargets.filter(function(x){return x.element!=b}),this._unmonitorIntersections(b.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var b=this._queuedEntries.slice();return this._queuedEntries=[],b},o.prototype._initThresholds=function(b){var x=b||[0];return Array.isArray(x)||(x=[x]),x.sort().filter(function(C,S,_){if(typeof C!="number"||isNaN(C)||C<0||C>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return C!==_[S-1]})},o.prototype._parseRootMargin=function(b){var x=b||"0px",C=x.split(/\s+/).map(function(S){var _=/^(-?\d*\.?\d+)(px|%)$/.exec(S);if(!_)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(_[1]),unit:_[2]}});return C[1]=C[1]||C[0],C[2]=C[2]||C[0],C[3]=C[3]||C[1],C},o.prototype._monitorIntersections=function(b){var x=b.defaultView;if(x&&this._monitoringDocuments.indexOf(b)==-1){var C=this._checkForIntersections,S=null,_=null;this.POLL_INTERVAL?S=x.setInterval(C,this.POLL_INTERVAL):(c(x,"resize",C,!0),c(b,"scroll",C,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in x&&(_=new x.MutationObserver(C),_.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(b),this._monitoringUnsubscribes.push(function(){var E=b.defaultView;E&&(S&&E.clearInterval(S),d(E,"resize",C,!0)),d(b,"scroll",C,!0),_&&_.disconnect()});var k=this.root&&(this.root.ownerDocument||this.root)||t;if(b!=k){var $=e(b);$&&this._monitorIntersections($.ownerDocument)}}},o.prototype._unmonitorIntersections=function(b){var x=this._monitoringDocuments.indexOf(b);if(x!=-1){var C=this.root&&(this.root.ownerDocument||this.root)||t,S=this._observationTargets.some(function($){var E=$.element.ownerDocument;if(E==b)return!0;for(;E&&E!=C;){var P=e(E);if(E=P&&P.ownerDocument,E==b)return!0}return!1});if(!S){var _=this._monitoringUnsubscribes[x];if(this._monitoringDocuments.splice(x,1),this._monitoringUnsubscribes.splice(x,1),_(),b!=C){var k=e(b);k&&this._unmonitorIntersections(k.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var b=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var x=0;x=0&&E>=0&&{top:C,bottom:S,left:_,right:k,width:$,height:E}||null}function m(b){var x;try{x=b.getBoundingClientRect()}catch{}return x?(x.width&&x.height||(x={top:x.top,right:x.right,bottom:x.bottom,left:x.left,width:x.right-x.left,height:x.bottom-x.top}),x):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(b){return!b||"x"in b?b:{top:b.top,y:b.top,bottom:b.bottom,left:b.left,x:b.left,right:b.right,width:b.width,height:b.height}}function v(b,x){var C=x.top-b.top,S=x.left-b.left;return{top:C,left:S,height:x.height,width:x.width,bottom:C+x.height,right:S+x.width}}function g(b,x){for(var C=x;C;){if(C==b)return!0;C=w(C)}return!1}function w(b){var x=b.parentNode;return b.nodeType==9&&b!=t?e(b):(x&&x.assignedSlot&&(x=x.assignedSlot.parentNode),x&&x.nodeType==11&&x.host?x.host:x)}function y(b){return b&&b.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=a})();function KK(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Gy;yj&&yj(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(oxe(t)||(t[r]=a),i=a)}e[i]=!0}return e}function fxe(e){for(let t=0;t/gm),gxe=qo(/\${[\w\W]*}/gm),bxe=qo(/^data-[\-\w.\u00B7-\uFFFF]/),yxe=qo(/^aria-[\-\w]+$/),QK=qo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wxe=qo(/^(?:\w+script|data):/i),xxe=qo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ZK=qo(/^html$/i),Sxe=qo(/^[a-z][.\w]*(-[.\w]+)+$/i);var $j=Object.freeze({__proto__:null,ARIA_ATTR:yxe,ATTR_WHITESPACE:xxe,CUSTOM_ELEMENT:Sxe,DATA_ATTR:bxe,DOCTYPE_NAME:ZK,ERB_EXPR:vxe,IS_ALLOWED_URI:QK,IS_SCRIPT_OR_DATA:wxe,MUSTACHE_EXPR:hxe,TMPLIT_EXPR:gxe});const Kh={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Cxe=function(){return typeof window>"u"?null:window},_xe=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function JK(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cxe();const t=ze=>JK(ze);if(t.version="3.2.1",t.removed=[],!e||!e.document||e.document.nodeType!==Kh.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:p}=e,h=l.prototype,v=Gh(h,"cloneNode"),g=Gh(h,"remove"),w=Gh(h,"nextSibling"),y=Gh(h,"childNodes"),b=Gh(h,"parentNode");if(typeof o=="function"){const ze=n.createElement("template");ze.content&&ze.content.ownerDocument&&(n=ze.content.ownerDocument)}let x,C="";const{implementation:S,createNodeIterator:_,createDocumentFragment:k,getElementsByTagName:$}=n,{importNode:E}=r;let P={};t.isSupported=typeof YK=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:j,TMPLIT_EXPR:O,DATA_ATTR:N,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:z}=$j;let{IS_ALLOWED_URI:I}=$j,H=null;const V=En({},[...Sj,...$$,...E$,...P$,...Cj]);let B=null;const W=En({},[..._j,...T$,...kj,...yb]);let U=Object.seal(XK(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),X=null,q=null,Y=!0,re=!0,G=!1,Q=!0,J=!1,Z=!0,ee=!1,te=!1,le=!1,oe=!1,de=!1,pe=!1,ye=!0,me=!1;const xe="user-content-";let ue=!0,ce=!1,$e={},se=null;const he=En({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ve=null;const ke=En({},["audio","video","img","source","image","track"]);let Se=null;const Ee=En({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",we="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let Pe=be,Re=!1,_e=null;const je=En({},[De,we,be],k$);let He=En({},["mi","mo","mn","ms","mtext"]),Be=En({},["annotation-xml"]);const ct=En({},["title","style","font","a","script"]);let Ve=null;const Ye=["application/xhtml+xml","text/html"],Ne="text/html";let Ae=null,et=null;const nt=n.createElement("form"),rt=function(fe){return fe instanceof RegExp||fe instanceof Function},it=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(et&&et===fe)){if((!fe||typeof fe!="object")&&(fe={}),fe=td(fe),Ve=Ye.indexOf(fe.PARSER_MEDIA_TYPE)===-1?Ne:fe.PARSER_MEDIA_TYPE,Ae=Ve==="application/xhtml+xml"?k$:Gy,H=fs(fe,"ALLOWED_TAGS")?En({},fe.ALLOWED_TAGS,Ae):V,B=fs(fe,"ALLOWED_ATTR")?En({},fe.ALLOWED_ATTR,Ae):W,_e=fs(fe,"ALLOWED_NAMESPACES")?En({},fe.ALLOWED_NAMESPACES,k$):je,Se=fs(fe,"ADD_URI_SAFE_ATTR")?En(td(Ee),fe.ADD_URI_SAFE_ATTR,Ae):Ee,ve=fs(fe,"ADD_DATA_URI_TAGS")?En(td(ke),fe.ADD_DATA_URI_TAGS,Ae):ke,se=fs(fe,"FORBID_CONTENTS")?En({},fe.FORBID_CONTENTS,Ae):he,X=fs(fe,"FORBID_TAGS")?En({},fe.FORBID_TAGS,Ae):{},q=fs(fe,"FORBID_ATTR")?En({},fe.FORBID_ATTR,Ae):{},$e=fs(fe,"USE_PROFILES")?fe.USE_PROFILES:!1,Y=fe.ALLOW_ARIA_ATTR!==!1,re=fe.ALLOW_DATA_ATTR!==!1,G=fe.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=fe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,J=fe.SAFE_FOR_TEMPLATES||!1,Z=fe.SAFE_FOR_XML!==!1,ee=fe.WHOLE_DOCUMENT||!1,oe=fe.RETURN_DOM||!1,de=fe.RETURN_DOM_FRAGMENT||!1,pe=fe.RETURN_TRUSTED_TYPE||!1,le=fe.FORCE_BODY||!1,ye=fe.SANITIZE_DOM!==!1,me=fe.SANITIZE_NAMED_PROPS||!1,ue=fe.KEEP_CONTENT!==!1,ce=fe.IN_PLACE||!1,I=fe.ALLOWED_URI_REGEXP||QK,Pe=fe.NAMESPACE||be,He=fe.MATHML_TEXT_INTEGRATION_POINTS||He,Be=fe.HTML_INTEGRATION_POINTS||Be,U=fe.CUSTOM_ELEMENT_HANDLING||{},fe.CUSTOM_ELEMENT_HANDLING&&rt(fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),fe.CUSTOM_ELEMENT_HANDLING&&rt(fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),fe.CUSTOM_ELEMENT_HANDLING&&typeof fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&(re=!1),de&&(oe=!0),$e&&(H=En({},Cj),B=[],$e.html===!0&&(En(H,Sj),En(B,_j)),$e.svg===!0&&(En(H,$$),En(B,T$),En(B,yb)),$e.svgFilters===!0&&(En(H,E$),En(B,T$),En(B,yb)),$e.mathMl===!0&&(En(H,P$),En(B,kj),En(B,yb))),fe.ADD_TAGS&&(H===V&&(H=td(H)),En(H,fe.ADD_TAGS,Ae)),fe.ADD_ATTR&&(B===W&&(B=td(B)),En(B,fe.ADD_ATTR,Ae)),fe.ADD_URI_SAFE_ATTR&&En(Se,fe.ADD_URI_SAFE_ATTR,Ae),fe.FORBID_CONTENTS&&(se===he&&(se=td(se)),En(se,fe.FORBID_CONTENTS,Ae)),ue&&(H["#text"]=!0),ee&&En(H,["html","head","body"]),H.table&&(En(H,["tbody"]),delete X.tbody),fe.TRUSTED_TYPES_POLICY){if(typeof fe.TRUSTED_TYPES_POLICY.createHTML!="function")throw qh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof fe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=fe.TRUSTED_TYPES_POLICY,C=x.createHTML("")}else x===void 0&&(x=_xe(p,i)),x!==null&&typeof C=="string"&&(C=x.createHTML(""));ha&&ha(fe),et=fe}},ge=En({},[...$$,...E$,...mxe]),Te=En({},[...P$,...pxe]),Ce=function(fe){let Me=b(fe);(!Me||!Me.tagName)&&(Me={namespaceURI:Pe,tagName:"template"});const We=Gy(fe.tagName),wt=Gy(Me.tagName);return _e[fe.namespaceURI]?fe.namespaceURI===we?Me.namespaceURI===be?We==="svg":Me.namespaceURI===De?We==="svg"&&(wt==="annotation-xml"||He[wt]):!!ge[We]:fe.namespaceURI===De?Me.namespaceURI===be?We==="math":Me.namespaceURI===we?We==="math"&&Be[wt]:!!Te[We]:fe.namespaceURI===be?Me.namespaceURI===we&&!Be[wt]||Me.namespaceURI===De&&!He[wt]?!1:!Te[We]&&(ct[We]||!ge[We]):!!(Ve==="application/xhtml+xml"&&_e[fe.namespaceURI]):!1},Ie=function(fe){Wh(t.removed,{element:fe});try{b(fe).removeChild(fe)}catch{g(fe)}},Ke=function(fe,Me){try{Wh(t.removed,{attribute:Me.getAttributeNode(fe),from:Me})}catch{Wh(t.removed,{attribute:null,from:Me})}if(Me.removeAttribute(fe),fe==="is"&&!B[fe])if(oe||de)try{Ie(Me)}catch{}else try{Me.setAttribute(fe,"")}catch{}},Xe=function(fe){let Me=null,We=null;if(le)fe=""+fe;else{const Le=xj(fe,/^[\r\n\t ]+/);We=Le&&Le[0]}Ve==="application/xhtml+xml"&&Pe===be&&(fe=''+fe+"");const wt=x?x.createHTML(fe):fe;if(Pe===be)try{Me=new m().parseFromString(wt,Ve)}catch{}if(!Me||!Me.documentElement){Me=S.createDocument(Pe,"template",null);try{Me.documentElement.innerHTML=Re?C:wt}catch{}}const Je=Me.body||Me.documentElement;return fe&&We&&Je.insertBefore(n.createTextNode(We),Je.childNodes[0]||null),Pe===be?$.call(Me,ee?"html":"body")[0]:ee?Me.documentElement:Je},lt=function(fe){return _.call(fe.ownerDocument||fe,fe,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},tt=function(fe){return fe instanceof f&&(typeof fe.nodeName!="string"||typeof fe.textContent!="string"||typeof fe.removeChild!="function"||!(fe.attributes instanceof d)||typeof fe.removeAttribute!="function"||typeof fe.setAttribute!="function"||typeof fe.namespaceURI!="string"||typeof fe.insertBefore!="function"||typeof fe.hasChildNodes!="function")},Qe=function(fe){return typeof s=="function"&&fe instanceof s};function Ge(ze,fe,Me){P[ze]&&bb(P[ze],We=>{We.call(t,fe,Me,et)})}const st=function(fe){let Me=null;if(Ge("beforeSanitizeElements",fe,null),tt(fe))return Ie(fe),!0;const We=Ae(fe.nodeName);if(Ge("uponSanitizeElement",fe,{tagName:We,allowedTags:H}),fe.hasChildNodes()&&!Qe(fe.firstElementChild)&&ia(/<[/\w]/g,fe.innerHTML)&&ia(/<[/\w]/g,fe.textContent)||fe.nodeType===Kh.progressingInstruction||Z&&fe.nodeType===Kh.comment&&ia(/<[/\w]/g,fe.data))return Ie(fe),!0;if(!H[We]||X[We]){if(!X[We]&&yt(We)&&(U.tagNameCheck instanceof RegExp&&ia(U.tagNameCheck,We)||U.tagNameCheck instanceof Function&&U.tagNameCheck(We)))return!1;if(ue&&!se[We]){const wt=b(fe)||fe.parentNode,Je=y(fe)||fe.childNodes;if(Je&&wt){const Le=Je.length;for(let ot=Le-1;ot>=0;--ot){const vt=v(Je[ot],!0);vt.__removalCount=(fe.__removalCount||0)+1,wt.insertBefore(vt,w(fe))}}}return Ie(fe),!0}return fe instanceof l&&!Ce(fe)||(We==="noscript"||We==="noembed"||We==="noframes")&&ia(/<\/no(script|embed|frames)/i,fe.innerHTML)?(Ie(fe),!0):(J&&fe.nodeType===Kh.text&&(Me=fe.textContent,bb([M,j,O],wt=>{Me=Uh(Me,wt," ")}),fe.textContent!==Me&&(Wh(t.removed,{element:fe.cloneNode()}),fe.textContent=Me)),Ge("afterSanitizeElements",fe,null),!1)},pt=function(fe,Me,We){if(ye&&(Me==="id"||Me==="name")&&(We in n||We in nt))return!1;if(!(re&&!q[Me]&&ia(N,Me))){if(!(Y&&ia(R,Me))){if(!B[Me]||q[Me]){if(!(yt(fe)&&(U.tagNameCheck instanceof RegExp&&ia(U.tagNameCheck,fe)||U.tagNameCheck instanceof Function&&U.tagNameCheck(fe))&&(U.attributeNameCheck instanceof RegExp&&ia(U.attributeNameCheck,Me)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(Me))||Me==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&ia(U.tagNameCheck,We)||U.tagNameCheck instanceof Function&&U.tagNameCheck(We))))return!1}else if(!Se[Me]){if(!ia(I,Uh(We,F,""))){if(!((Me==="src"||Me==="xlink:href"||Me==="href")&&fe!=="script"&&cxe(We,"data:")===0&&ve[fe])){if(!(G&&!ia(D,Uh(We,F,"")))){if(We)return!1}}}}}}return!0},yt=function(fe){return fe!=="annotation-xml"&&xj(fe,z)},zt=function(fe){Ge("beforeSanitizeAttributes",fe,null);const{attributes:Me}=fe;if(!Me)return;const We={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let wt=Me.length;for(;wt--;){const Je=Me[wt],{name:Le,namespaceURI:ot,value:vt}=Je,Et=Ae(Le);let It=Le==="value"?vt:uxe(vt);if(We.attrName=Et,We.attrValue=It,We.keepAttr=!0,We.forceKeepAttr=void 0,Ge("uponSanitizeAttribute",fe,We),It=We.attrValue,me&&(Et==="id"||Et==="name")&&(Ke(Le,fe),It=xe+It),Z&&ia(/((--!?|])>)|<\/(style|title)/i,It)){Ke(Le,fe);continue}if(We.forceKeepAttr||(Ke(Le,fe),!We.keepAttr))continue;if(!Q&&ia(/\/>/i,It)){Ke(Le,fe);continue}J&&bb([M,j,O],at=>{It=Uh(It,at," ")});const St=Ae(fe.nodeName);if(pt(St,Et,It)){if(x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ot)switch(p.getAttributeType(St,Et)){case"TrustedHTML":{It=x.createHTML(It);break}case"TrustedScriptURL":{It=x.createScriptURL(It);break}}try{ot?fe.setAttributeNS(ot,Le,It):fe.setAttribute(Le,It),tt(fe)?Ie(fe):wj(t.removed)}catch{}}}Ge("afterSanitizeAttributes",fe,null)},$t=function ze(fe){let Me=null;const We=lt(fe);for(Ge("beforeSanitizeShadowDOM",fe,null);Me=We.nextNode();)Ge("uponSanitizeShadowNode",Me,null),!st(Me)&&(Me.content instanceof a&&ze(Me.content),zt(Me));Ge("afterSanitizeShadowDOM",fe,null)};return t.sanitize=function(ze){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=null,We=null,wt=null,Je=null;if(Re=!ze,Re&&(ze=""),typeof ze!="string"&&!Qe(ze))if(typeof ze.toString=="function"){if(ze=ze.toString(),typeof ze!="string")throw qh("dirty is not a string, aborting")}else throw qh("toString is not a function");if(!t.isSupported)return ze;if(te||it(fe),t.removed=[],typeof ze=="string"&&(ce=!1),ce){if(ze.nodeName){const vt=Ae(ze.nodeName);if(!H[vt]||X[vt])throw qh("root node is forbidden and cannot be sanitized in-place")}}else if(ze instanceof s)Me=Xe(""),We=Me.ownerDocument.importNode(ze,!0),We.nodeType===Kh.element&&We.nodeName==="BODY"||We.nodeName==="HTML"?Me=We:Me.appendChild(We);else{if(!oe&&!J&&!ee&&ze.indexOf("<")===-1)return x&&pe?x.createHTML(ze):ze;if(Me=Xe(ze),!Me)return oe?null:pe?C:""}Me&&le&&Ie(Me.firstChild);const Le=lt(ce?ze:Me);for(;wt=Le.nextNode();)st(wt)||(wt.content instanceof a&&$t(wt.content),zt(wt));if(ce)return ze;if(oe){if(de)for(Je=k.call(Me.ownerDocument);Me.firstChild;)Je.appendChild(Me.firstChild);else Je=Me;return(B.shadowroot||B.shadowrootmode)&&(Je=E.call(r,Je,!0)),Je}let ot=ee?Me.outerHTML:Me.innerHTML;return ee&&H["!doctype"]&&Me.ownerDocument&&Me.ownerDocument.doctype&&Me.ownerDocument.doctype.name&&ia(ZK,Me.ownerDocument.doctype.name)&&(ot=" -`+ot),J&&bb([M,j,O],vt=>{ot=Uh(ot,vt," ")}),x&&pe?x.createHTML(ot):ot},t.setConfig=function(){let ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};it(ze),te=!0},t.clearConfig=function(){et=null,te=!1},t.isValidAttribute=function(ze,fe,Me){et||it({});const We=Ae(ze),wt=Ae(fe);return pt(We,wt,Me)},t.addHook=function(ze,fe){typeof fe=="function"&&(P[ze]=P[ze]||[],Wh(P[ze],fe))},t.removeHook=function(ze){if(P[ze])return wj(P[ze])},t.removeHooks=function(ze){P[ze]&&(P[ze]=[])},t.removeAllHooks=function(){P={}},t}var kxe=JK();function $xe(e,t=document.body){const n=document.createElement("div");t.appendChild(n);const r=jw.createRoot(n),i=L.cloneElement(e,{onUnmount(){t&&n&&t.removeChild(n)}});return r.render(i),n}function Exe(e,t="click"){const n=u.useRef();return u.useEffect(()=>{const r=i=>{const a=n.current;!a||a.contains(i.target)||e&&e(i)};return document.addEventListener(t,r),()=>{document.removeEventListener(t,r)}},[t,e]),n}function sI(e){const t=u.useRef(null);return u.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function Pxe(e){const t=u.useRef(e);return t.current=e,t}function Txe(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)}function Oxe(e){return e.offsetHeight}const Rxe=5*60*1e3;let Ej=0;const O$=(e,t)=>{const n=e.createdAt||Date.now(),r=e.hasTime||n-Ej>Rxe;return r&&(Ej=n),{...e,_id:e._id||t||Txe(),createdAt:n,position:e.position||"left",hasTime:r}};function Ixe(e=[]){const t=u.useMemo(()=>e.map(c=>O$(c)),[e]),[n,r]=u.useState(t),i=u.useCallback(c=>{r(d=>[...c,...d])},[]),a=u.useCallback((c,d)=>{r(f=>f.map(m=>m._id===c?O$(d,c):m))},[]),o=u.useCallback(c=>{const d=O$(c);r(f=>[...f,d])},[]),s=u.useCallback(c=>{r(d=>d.filter(f=>f._id!==c))},[]),l=u.useCallback((c=[])=>{r(c)},[]);return{messages:n,prependMsgs:i,appendMsg:o,updateMsg:a,deleteMsg:s,resetList:l}}function eY({active:e=!1,ref:t,delay:n=300}){const[r,i]=u.useState(!1),[a,o]=u.useState(!1),s=u.useRef(),l=()=>{s.current&&clearTimeout(s.current)};return u.useEffect(()=>(e?(l(),o(e)):(i(e),s.current=setTimeout(()=>{o(e)},n)),l),[e,n]),u.useEffect(()=>{t.current&&Oxe(t.current),i(a)},[a,t]),{didMount:a,isShow:r}}class d4t extends L.Component{constructor(t){super(t),this.state={error:null,errorInfo:null}}componentDidCatch(t,n){const{onError:r}=this.props;r&&r(t,n),this.setState({error:t,errorInfo:n})}render(){const{FallbackComponent:t,children:n,...r}=this.props,{error:i,errorInfo:a}=this.state;return a?t?T.jsx(t,{error:i,errorInfo:a,...r}):null:n}}L.createContext({addComponent:()=>{},hasComponent:()=>!1,getComponent:()=>null});const Mxe=e=>{const{className:t,src:n,alt:r,url:i,size:a="md",shape:o="circle",children:s}=e,l=i?"a":"span";return T.jsx(l,{className:Qt("Avatar",`Avatar--${a}`,`Avatar--${o}`,t),href:i,children:n?T.jsx("img",{src:n,alt:r}):s})},Nxe=e=>{const{className:t,active:n,onClick:r,...i}=e;return T.jsx("div",{className:Qt("Backdrop",t,{active:n}),onClick:r,role:"button",tabIndex:-1,"aria-hidden":!0,...i})},Kp=({content:e})=>{const t=kxe.sanitize(e,{ALLOWED_TAGS:["p","div","span","h1","h2","h3","h4","h5","h6","ul","ol","li","a","strong","em","b","i","img","blockquote","code","pre"],ALLOWED_ATTR:["href","target","src","alt","style","class"]});return T.jsx("div",{className:"RichText",dangerouslySetInnerHTML:{__html:t}})},nd=L.forwardRef((e,t)=>{const{type:n="text",content:r,children:i,isRichText:a=!1,...o}=e,s=()=>r?a?T.jsx(Kp,{content:r}):T.jsx("p",{children:r}):null;return T.jsxs("div",{className:`Bubble ${n}`,"data-type":n,ref:t,...o,children:[s(),i]})}),ci=L.forwardRef((e,t)=>{const{type:n,className:r,spin:i,name:a,...o}=e,s=typeof a=="string"?{"aria-label":a}:{"aria-hidden":!0};return T.jsx("svg",{className:Qt("Icon",{"is-spin":i},r),ref:t,...s,...o,children:T.jsx("use",{xlinkHref:`#icon-${n}`})})});function R$(e){return e&&`Btn--${e}`}const bo=L.forwardRef((e,t)=>{const{className:n,label:r,color:i,variant:a,size:o,icon:s,loading:l,block:c,disabled:d,children:f,onClick:m,...p}=e,h=s||l&&"spinner",v=o||(c?"lg":"");function g(w){!d&&!l&&m&&m(w)}return T.jsxs("button",{className:Qt("Btn",R$(i),R$(a),R$(v),{"Btn--block":c},n),type:"button",disabled:d,onClick:g,ref:t,...p,children:[h&&T.jsx("span",{className:"Btn-icon",children:T.jsx(ci,{type:h,spin:l})}),r||f]})}),Dxe={BackBottom:{newMsgOne:"{n} رسالة جديدة",newMsgOther:"{n} رسالة جديدة",bottom:"الأسفل"},Time:{weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),formats:{LT:"HH:mm",lll:"YYYY/M/D HH:mm",WT:"HH:mm dddd",YT:"HH:mm أمس"}},Composer:{send:"إرسال"},SendConfirm:{title:"إرسال صورة",send:"أرسل",cancel:"إلغاء"},RateActions:{up:"التصويت",down:"تصويت سلبي"},Recorder:{hold2talk:"أستمر بالضغط لتتحدث",release2send:"حرر للإرسال",releaseOrSwipe:"حرر للإرسال ، اسحب لأعلى للإلغاء",release2cancel:"حرر للإلغاء"},Search:{search:"يبحث"}},jxe={BackBottom:{newMsgOne:"{n} new message",newMsgOther:"{n} new messages",bottom:"Bottom"},Time:{weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),formats:{LT:"HH:mm",lll:"M/D/YYYY HH:mm",WT:"dddd HH:mm",YT:"Yesterday HH:mm"}},Composer:{send:"Send"},SendConfirm:{title:"Send photo",send:"Send",cancel:"Cancel"},RateActions:{up:"Up vote",down:"Down vote"},Recorder:{hold2talk:"Hold to Talk",release2send:"Release to Send",releaseOrSwipe:"Release to send, swipe up to cancel",release2cancel:"Release to cancel"},Search:{search:"Search"}},Fxe={BackBottom:{newMsgOne:"{n} nouveau message",newMsgOther:"{n} nouveau messages",bottom:"Fond"},Time:{weekdays:"Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),formats:{LT:"HH:mm",lll:"D/M/YYYY HH:mm",WT:"dddd HH:mm",YT:"Hier HH:mm"}},Composer:{send:"Envoyer"},SendConfirm:{title:"Envoyer une photo",send:"Envoyer",cancel:"Annuler"},RateActions:{up:"Voter pour",down:"Vote négatif"},Recorder:{hold2talk:"Tenir pour parler",release2send:"Libérer pour envoyer",releaseOrSwipe:"Relâchez pour envoyer, balayez vers le haut pour annuler",release2cancel:"Relâcher pour annuler"},Search:{search:"Chercher"}},Axe={BackBottom:{newMsgOne:"{n}条新消息",newMsgOther:"{n}条新消息",bottom:"回到底部"},Time:{weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),formats:{LT:"HH:mm",lll:"YYYY年M月D日 HH:mm",WT:"dddd HH:mm",YT:"昨天 HH:mm"}},Composer:{send:"发送"},SendConfirm:{title:"发送图片",send:"发送",cancel:"取消"},RateActions:{up:"赞同",down:"反对"},Recorder:{hold2talk:"按住 说话",release2send:"松开 发送",releaseOrSwipe:"松开发送,上滑取消",release2cancel:"松开手指,取消发送"},Search:{search:"搜索"}},Pj={"ar-EG":Dxe,"fr-FR":Fxe,"en-US":jxe,"zh-CN":Axe},tY="en-US",lI=L.createContext({}),Lxe=({locale:e=tY,locales:t,elderMode:n,children:r})=>T.jsx(lI.Provider,{value:{locale:e,locales:t,elderMode:n},children:r}),cI=()=>u.useContext(lI),vf=(e,t)=>{const{locale:n,locales:r}=u.useContext(lI);let a={...n&&Pj[n]||Pj[tY],...r};return!n&&!r&&t?a=t:e&&(a=a[e]||{}),{locale:n,trans:o=>o?a[o]:a}},rs=L.forwardRef((e,t)=>{const{className:n,size:r,fluid:i,children:a,...o}=e,s=cI();return T.jsx("div",{className:Qt("Card",r&&`Card--${r}`,{"Card--fluid":i},n),"data-fluid":i,"data-elder-mode":s.elderMode,...o,ref:t,children:a})}),Bxe={row:"Flex--d-r","row-reverse":"Flex--d-rr",column:"Flex--d-c","column-reverse":"Flex--d-cr"},zxe={nowrap:"Flex--w-n",wrap:"Flex--w-w","wrap-reverse":"Flex--w-wr"},Hxe={"flex-start":"Flex--jc-fs","flex-end":"Flex--jc-fe",center:"Flex--jc-c","space-between":"Flex--jc-sb","space-around":"Flex--jc-sa"},Vxe={"flex-start":"Flex--ai-fs","flex-end":"Flex--ai-fe",center:"Flex--ai-c"},fo=L.forwardRef((e,t)=>{const{as:n="div",className:r,inline:i,center:a,direction:o,wrap:s,justifyContent:l,justify:c=l,alignItems:d,align:f=d,children:m,...p}=e;return T.jsx(n,{className:Qt("Flex",o&&Bxe[o],c&&Hxe[c],f&&Vxe[f],s&&zxe[s],{"Flex--inline":i,"Flex--center":a},r),ref:t,...p,children:m})}),Lg=L.forwardRef((e,t)=>{const{className:n,flex:r,alignSelf:i,order:a,style:o,children:s,...l}=e;return T.jsx("div",{className:Qt("FlexItem",n),style:{...o,flex:r,alignSelf:i,order:a},ref:t,...l,children:s})});L.forwardRef((e,t)=>{const{className:n,aspectRatio:r="square",color:i,image:a,children:o,...s}=e,l={backgroundColor:i||void 0,backgroundImage:typeof a=="string"?`url('${a}')`:void 0};return T.jsx("div",{className:Qt("CardMedia",{"CardMedia--wide":r==="wide","CardMedia--square":r==="square"},n),style:l,...s,ref:t,children:o&&T.jsx(fo,{className:"CardMedia-content",direction:"column",center:!0,children:o})})});const nY=L.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return T.jsx("div",{className:Qt("CardContent",n),...i,ref:t,children:r})}),uI=L.forwardRef((e,t)=>{const{className:n,title:r,subtitle:i,center:a,children:o,...s}=e;return T.jsxs("div",{className:Qt("CardTitle",{"CardTitle--center":a},n),...s,ref:t,children:[r&&T.jsx("h5",{className:"CardTitle-title",children:r}),o&&typeof o=="string"&&T.jsx("h5",{className:"CardTitle-title",children:o}),i&&T.jsx("p",{className:"CardTitle-subtitle",children:i}),o&&typeof o!="string"&&o]})}),X0=L.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return T.jsx("div",{className:Qt("CardText",n),...i,ref:t,children:typeof r=="string"?T.jsx("p",{children:r}):r})}),rY=L.forwardRef((e,t)=>{const{children:n,className:r,direction:i,...a}=e;return T.jsx("div",{className:Qt("CardActions",r,i&&`CardActions--${i}`),...a,ref:t,children:n})}),I$=e=>{const{width:t,children:n}=e;return T.jsx("div",{className:"Carousel-item",style:{width:t},children:n})},iY=(e,t)=>{e.style.transform=t,e.style.webkitTransform=t},Tj=(e,t)=>{e.style.transition=t,e.style.webkitTransition=t},Wxe={passiveListener:()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener("test",null,t)}catch{}return e},smoothScroll:()=>"scrollBehavior"in document.documentElement.style,touch:()=>"ontouchstart"in window};function gf(e){return Wxe[e]()}const Uxe=["TEXTAREA","OPTION","INPUT","SELECT"],qxe=gf("touch");L.forwardRef((e,t)=>{const{className:n,startIndex:r=0,draggable:i=!0,duration:a=300,easing:o="ease",threshold:s=20,clickDragThreshold:l=10,loop:c=!0,rtl:d=!1,autoPlay:f=e.autoplay||!1,interval:m=e.autoplaySpeed||4e3,dots:p=e.indicators||!0,onChange:h,children:v}=e,g=L.Children.count(v),w=`${100/g}%`,y=u.useRef(null),b=u.useRef(null),x=u.useRef(null),C=u.useRef({first:!0,wrapWidth:0,hover:!1,startX:0,endX:0,startY:0,canMove:null,pressDown:!1}),S=u.useCallback(G=>c?G%g:Math.max(0,Math.min(G,g-1)),[g,c]),[_,k]=u.useState(S(r)),[$,E]=u.useState(!1),P=u.useCallback(()=>{Tj(b.current,`transform ${a}ms ${o}`)},[a,o]),M=()=>{Tj(b.current,"transform 0s")},j=G=>{iY(b.current,`translate3d(${G}px, 0, 0)`)},O=u.useCallback((G,Q)=>{const J=c?G+1:G,Z=(d?1:-1)*J*C.current.wrapWidth;Q?requestAnimationFrame(()=>{requestAnimationFrame(()=>{P(),j(Z)})}):j(Z)},[P,c,d]),N=u.useCallback(G=>{if(g<=1)return;const Q=S(G);Q!==_&&k(Q)},[_,g,S]),R=u.useCallback(()=>{if(g<=1)return;let G=_-1;if(c){if(G<0){const Q=C.current,J=g+1,Z=(d?1:-1)*J*Q.wrapWidth,ee=i?Q.endX-Q.startX:0;M(),j(Z+ee),G=g-1}}else G=Math.max(G,0);G!==_&&k(G)},[_,g,i,c,d]),D=u.useCallback(()=>{if(g<=1)return;let G=_+1;if(c){if(G>g-1){G=0;const J=C.current,Z=i?J.endX-J.startX:0;M(),j(Z)}}else G=Math.min(G,g-1);G!==_&&k(G)},[_,g,i,c]),F=u.useCallback(()=>{!f||C.current.hover||(x.current=setTimeout(()=>{P(),D()},m))},[f,m,P,D]),z=()=>{clearTimeout(x.current)},I=()=>{O(_,!0),F()},H=()=>{const G=C.current,Q=(d?-1:1)*(G.endX-G.startX),J=Math.abs(Q),Z=Q>0&&_-1<0,ee=Q<0&&_+1>g-1;Z||ee?c?Z?R():D():I():Q>0&&J>s&&g>1?R():Q<0&&J>s&&g>1?D():I()},V=()=>{const G=C.current;G.startX=0,G.endX=0,G.startY=0,G.canMove=null,G.pressDown=!1},B=G=>{if(Uxe.includes(G.target.nodeName))return;G.preventDefault(),G.stopPropagation();const Q="touches"in G?G.touches[0]:G,J=C.current;J.pressDown=!0,J.startX=Q.pageX,J.startY=Q.pageY,z()},W=G=>{G.stopPropagation();const Q="touches"in G?G.touches[0]:G,J=C.current;if(J.pressDown){if("touches"in G&&(J.canMove===null&&(J.canMove=Math.abs(J.startY-Q.pageY)l&&E(!0);const le=d?ee+te:te-ee;j(le)}},U=G=>{G.stopPropagation();const Q=C.current;Q.pressDown=!1,E(!1),P(),Q.endX?H():F(),V()},X=()=>{C.current.hover=!0,z()},q=G=>{const Q=C.current;Q.hover=!1,Q.pressDown&&(Q.pressDown=!1,Q.endX=G.pageX,P(),H(),V()),F()},Y=G=>{const{slideTo:Q}=G.currentTarget.dataset;if(Q){const J=parseInt(Q,10);N(J)}G.preventDefault()};u.useImperativeHandle(t,()=>({goTo:N,prev:R,next:D,wrapperRef:y}),[N,R,D]),u.useEffect(()=>{function G(){C.current.wrapWidth=y.current.offsetWidth,O(_)}return C.current.first&&G(),window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}},[_,O]),u.useEffect(()=>{h&&!C.current.first&&h(_)},[_,h]),u.useEffect(()=>{C.current.first?(O(_),C.current.first=!1):O(_,!0)},[_,O]),u.useEffect(()=>(F(),()=>{z()}),[f,_,F]);let re;return i?re=qxe?{onTouchStart:B,onTouchMove:W,onTouchEnd:U}:{onMouseDown:B,onMouseMove:W,onMouseUp:U,onMouseEnter:X,onMouseLeave:q}:re={onMouseEnter:X,onMouseLeave:q},T.jsxs("div",{className:Qt("Carousel",{"Carousel--draggable":i,"Carousel--rtl":d,"Carousel--dragging":$},n),ref:y,...re,children:[T.jsxs("div",{className:"Carousel-inner",style:{width:`${c?g+2:g}00%`},ref:b,children:[c&&T.jsx(I$,{width:w,children:L.Children.toArray(v)[g-1]}),L.Children.map(v,(G,Q)=>T.jsx(I$,{width:w,children:G},Q)),c&&T.jsx(I$,{width:w,children:L.Children.toArray(v)[0]})]}),p&&T.jsx("ol",{className:"Carousel-dots",children:L.Children.map(v,(G,Q)=>T.jsx("li",{children:T.jsx("button",{className:Qt("Carousel-dot",{active:_===Q}),type:"button","aria-label":`Go to slide ${Q+1}`,"data-slide-to":Q,onClick:Y})},Q))})]})});const Gxe=L.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return T.jsxs("label",{className:Qt("Checkbox",n,{"Checkbox--checked":i,"Checkbox--disabled":a}),ref:t,children:[T.jsx("input",{type:"checkbox",className:"Checkbox-input",checked:i,disabled:a,onChange:o,...s}),T.jsx("span",{className:"Checkbox-text",children:r})]})});L.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;function c(d,f){const m=f.target.checked?i.concat(d):i.filter(p=>p!==d);l(m,f)}return T.jsx("div",{className:Qt("CheckboxGroup",{"CheckboxGroup--block":s},n),ref:t,children:r.map(d=>T.jsx(Gxe,{label:d.label||d.value,value:d.value,name:a,checked:i.includes(d.value),disabled:"disabled"in d?d.disabled:o,onChange:f=>{c(d.value,f)}},d.value))})});const kP=document,Kxe=kP.documentElement,Yxe=e=>{const{children:t,onClick:n,mouseEvent:r="mouseup",...i}=e,a=u.useRef(null);function o(s){a.current&&Kxe.contains(s.target)&&!a.current.contains(s.target)&&n(s)}return u.useEffect(()=>(r&&kP.addEventListener(r,o),()=>{kP.removeEventListener(r,o)})),T.jsx("div",{ref:a,...i,children:t})},Xxe="//gw.alicdn.com/tfs/TB1fnnLRkvoK1RjSZFDXXXY3pXa-300-250.svg",Qxe="//gw.alicdn.com/tfs/TB1lRjJRbvpK1RjSZPiXXbmwXXa-300-250.svg";L.forwardRef((e,t)=>{const{className:n,type:r,image:i,tip:a,children:o}=e,s=i||(r==="error"?Qxe:Xxe);return T.jsxs(fo,{className:Qt("Empty",n),direction:"column",center:!0,ref:t,children:[T.jsx("img",{className:"Empty-img",src:s,alt:a}),a&&T.jsx("p",{className:"Empty-tip",children:a}),o]})});const Zxe=L.createContext("");L.forwardRef((e,t)=>{const{children:n,...r}=e;return T.jsx("label",{className:"Label",...r,ref:t,children:n})});const Go=L.forwardRef((e,t)=>{const{className:n,icon:r,img:i,...a}=e;return T.jsxs(bo,{className:Qt("IconBtn",n),ref:t,...a,children:[r&&T.jsx(ci,{type:r}),!r&&i&&T.jsx("img",{src:i,alt:""})]})});L.forwardRef((e,t)=>{const{className:n,src:r,lazy:i,fluid:a,children:o,...s}=e,[l,c]=u.useState(i?void 0:r),d=sI(t),f=u.useRef(""),m=u.useRef(!1);return u.useEffect(()=>{if(!i)return;const p=new IntersectionObserver(([h])=>{h.isIntersecting&&(c(f.current),m.current=!0,p.unobserve(h.target))});return d.current&&p.observe(d.current),()=>{p.disconnect()}},[d,i]),u.useEffect(()=>{f.current=r,(!i||m.current)&&c(r)},[i,r]),T.jsx("img",{className:Qt("Image",{"Image--fluid":a},n),src:l,alt:"",ref:d,...s})});function aY(e){return e.scrollHeight-e.scrollTop-e.offsetHeight}L.forwardRef((e,t)=>{const{className:n,disabled:r,distance:i=0,children:a,onLoadMore:o,onScroll:s,...l}=e,c=sI(t);function d(f){s&&s(f);const m=c.current;if(!m)return;aY(m)<=i&&o()}return T.jsx("div",{className:Qt("InfiniteScroll",n),role:"feed",onScroll:r?void 0:d,ref:c,...l,children:a})});function Jxe(e,t){return`${`${e}`.length}${t?`/${t}`:""}`}const Bg=L.forwardRef((e,t)=>{const{className:n,type:r="text",variant:i,value:a,placeholder:o,rows:s=1,minRows:l=s,maxRows:c=5,maxLength:d,showCount:f=!!d,multiline:m,autoSize:p,onChange:h,...v}=e;let g=s;gc&&(g=c);const[w,y]=u.useState(g),[b,x]=u.useState(21),C=sI(t),S=u.useContext(Zxe),_=i||(S==="light"?"flushed":"outline"),$=m||p||s>1?"textarea":"input";u.useEffect(()=>{if(!C.current)return;const j=getComputedStyle(C.current,null).lineHeight,O=Number(j.replace("px",""));O!==b&&x(O)},[C,b]);const E=u.useCallback(()=>{if(!p||!C.current)return;const j=C.current,O=j.rows;j.rows=l,o&&(j.placeholder="");const N=~~(j.scrollHeight/b);N===O&&(j.rows=N),N>=c&&(j.rows=c,j.scrollTop=j.scrollHeight),y(N{a===""?y(g):E()},[g,E,a]);const P=u.useCallback(j=>{if(E(),h){const O=j.target.value,R=d&&O.length>d?O.substr(0,d):O;h(R,j)}},[d,h,E]),M=T.jsx($,{className:Qt("Input",`Input--${_}`,n),type:r,value:a,placeholder:o,maxLength:d,ref:C,rows:w,onChange:P,...v});return f?T.jsxs("div",{className:Qt("InputWrapper",{"has-counter":f}),children:[M,f&&T.jsx("div",{className:"Input-counter",children:Jxe(a,d)})]}):M}),oY=L.forwardRef((e,t)=>{const{bordered:n=!1,className:r,children:i}=e;return T.jsx("div",{className:Qt("List",{"List--bordered":n},r),role:"list",ref:t,children:i})}),sY=L.forwardRef((e,t)=>{const{className:n,as:r="div",content:i,rightIcon:a,children:o,onClick:s,...l}=e;return T.jsxs(r,{className:Qt("ListItem",n),onClick:s,role:"listitem",...l,ref:t,children:[T.jsx("div",{className:"ListItem-content",children:i||o}),a&&T.jsx(ci,{type:a})]})}),eSe=e=>{const{className:t,content:n,action:r}=e;return T.jsx("div",{className:Qt("Message SystemMessage",t),children:T.jsxs("div",{className:"SystemMessage-inner",children:[T.jsx("span",{children:T.jsx(Kp,{content:n})}),r&&T.jsx("a",{href:"javascript:;",onClick:r.onClick,children:r.text})]})})},tSe=/YYYY|M|D|dddd|HH|mm/g,lY=24*60*60*1e3,nSe=lY*7,rSe=e=>e instanceof Date?e:new Date(e),iSe=()=>new Date(new Date().setHours(0,0,0,0)),Oj=e=>(e<=9?"0":"")+e,aSe=e=>{const t=iSe().getTime()-e.getTime();return t<0?"LT":ti[a])}const sSe=({date:e})=>{const{trans:t}=vf("Time");return T.jsx("time",{className:"Time",dateTime:new Date(e).toJSON(),children:oSe(e,t())})};function lSe(){return T.jsx(nd,{type:"typing",children:T.jsxs("div",{className:"Typing","aria-busy":"true",children:[T.jsx("div",{className:"Typing-dot"}),T.jsx("div",{className:"Typing-dot"}),T.jsx("div",{className:"Typing-dot"})]})})}const cSe=e=>{const{renderMessageContent:t=()=>null,...n}=e,{type:r,content:i,user:a={},_id:o,position:s="left",hasTime:l=!0,createdAt:c}=n,{name:d,avatar:f}=a;if(r==="system"||r===CR||r===epe||r===rG||r===upe)return T.jsx(eSe,{content:i,action:i.action});const m=s==="right"||s==="left";return T.jsxs("div",{className:Qt("Message",s),"data-id":o,"data-type":r,children:[l&&c&&T.jsx("div",{className:"Message-meta",children:T.jsx(sSe,{date:c})}),T.jsxs("div",{className:"Message-main",children:[m&&f&&T.jsx(Mxe,{src:f,alt:d,url:a.url}),T.jsxs("div",{className:"Message-inner",children:[m&&d&&T.jsx("div",{className:"Message-author",children:d}),T.jsx("div",{className:"Message-content",role:"alert","aria-live":"assertive","aria-atomic":"false",children:r==="typing"?T.jsx(lSe,{}):t(n)})]})]})]})},Rj=L.memo(cSe),Dc=({status:e,delay:t=1500,maxDelay:n=1e4,onRetry:r,onChange:i})=>{const[a,o]=u.useState(""),s=u.useRef(),l=u.useRef(),c=u.useCallback(()=>{s.current=setTimeout(()=>{o("loading")},t),l.current=setTimeout(()=>{o("fail")},n)},[t,n]);function d(){s.current&&clearTimeout(s.current),l.current&&clearTimeout(l.current)}u.useEffect(()=>(d(),e==="SENDING"?c():e==="SUCCESS"?o(""):e==="READ"?o("READ"):e==="DELIVERED"?o("DELIVERED"):e==="TIMEOUT"&&o("fail"),d),[e,c]),u.useEffect(()=>{i&&i(a)},[i,a]);function f(){o("loading"),c(),r&&r()}return T.jsxs("div",{className:"MessageStatus","data-status":a,children:[a==="loading"&&T.jsx(ci,{type:"spinner",spin:!0,onClick:f}),a==="fail"&&T.jsx(Go,{icon:"warning-circle-fill",onClick:f}),a==="READ"&&T.jsx("div",{style:{fontSize:12,color:"gray"},children:"已读"}),a==="DELIVERED"&&T.jsx("div",{style:{fontSize:12,color:"gray"},children:"已送达"})]})};let uSe=0;const dSe=()=>uSe++;function cY(e="id-"){return u.useRef(`${e}${dSe()}`).current}const Gv=(e,t,n=document.body)=>{n.classList[t?"add":"remove"](e)};function Ij(){!document.querySelector(".Modal")&&!document.querySelector(".Popup")&&Gv("S--modalOpen",!1)}const dI=L.forwardRef((e,t)=>{const{baseClass:n,active:r,className:i,title:a,showClose:o=!0,autoFocus:s=!0,backdrop:l=!0,height:c,overflow:d,actions:f,vertical:m=!0,btnVariant:p,bgColor:h,children:v,onBackdropClick:g,onClose:w}=e,y=cY("modal-"),b=e.titleId||y,x=cI(),C=u.useRef(null),{didMount:S,isShow:_}=eY({active:r,ref:C});if(u.useEffect(()=>{setTimeout(()=>{s&&C.current&&C.current.focus()})},[s]),u.useEffect(()=>{_&&Gv("S--modalOpen",_)},[_]),u.useEffect(()=>{!r&&!S&&Ij()},[r,S]),u.useImperativeHandle(t,()=>({wrapperRef:C})),u.useEffect(()=>()=>{Ij()},[]),!S)return null;const k=n==="Popup";return yi.createPortal(T.jsxs("div",{className:Qt(n,i,{active:_}),tabIndex:-1,"data-elder-mode":x.elderMode,ref:C,children:[l&&T.jsx(Nxe,{active:_,onClick:l===!0?g||w:void 0}),T.jsx("div",{className:Qt(`${n}-dialog`,{"pb-safe":k&&!f}),"data-bg-color":h,"data-height":k&&c?c:void 0,role:"dialog","aria-labelledby":b,"aria-modal":!0,children:T.jsxs("div",{className:`${n}-content`,children:[T.jsxs("div",{className:`${n}-header`,children:[T.jsx("h5",{className:`${n}-title`,id:b,children:a}),o&&w&&T.jsx(Go,{className:`${n}-close`,icon:"close",size:"lg",onClick:w,"aria-label":"关闭"})]}),T.jsx("div",{className:Qt(`${n}-body`,{overflow:d}),children:v}),f&&T.jsx("div",{className:`${n}-footer ${n}-footer--${m?"v":"h"}`,"data-variant":p||"round",children:f.map($=>u.createElement(bo,{size:"lg",block:k,variant:p,...$,key:$.label}))})]})})]}),document.body)}),fSe=L.forwardRef((e,t)=>T.jsx(dI,{baseClass:"Modal",btnVariant:e.vertical===!1?void 0:"outline",ref:t,...e})),Mj=e=>e.color==="primary",mSe=L.forwardRef((e,t)=>{const{className:n,vertical:r,actions:i,...a}=e,{locale:o=""}=vf(),s=o.includes("zh"),l=r??!s;return Array.isArray(i)&&i.sort((c,d)=>Mj(c)?l?-1:1:Mj(d)?l?1:-1:0),T.jsx(dI,{baseClass:"Modal",className:Qt("Confirm",n),showClose:!1,btnVariant:"outline",vertical:l,actions:i,ref:t,...a})}),uY=L.forwardRef((e,t)=>T.jsx(dI,{baseClass:"Popup",overflow:!0,ref:t,...e})),pSe=L.forwardRef((e,t)=>{const{className:n,title:r,logo:i,desc:a,leftContent:o,rightContent:s=[],align:l}=e,c=l==="left",d=c?!0:!i;return T.jsxs("header",{className:Qt("Navbar",{"Navbar--left":c},n),ref:t,children:[T.jsx("div",{className:"Navbar-left",children:o&&T.jsx(Go,{size:"lg",...o})}),T.jsxs("div",{className:"Navbar-main",children:[i&&T.jsx("img",{className:"Navbar-logo",src:i,alt:r}),T.jsxs("div",{className:"Navbar-inner",children:[d&&T.jsx("h2",{className:"Navbar-title",children:r}),T.jsx("div",{className:"Navbar-desc",children:a})]})]}),T.jsx("div",{className:"Navbar-right",children:s.map(f=>T.jsx(Go,{size:"lg",...f},f.mykey))})]})}),_x=L.forwardRef((e,t)=>{const{as:n="div",className:r,align:i,breakWord:a,truncate:o,children:s,...l}=e,c=Number.isInteger(o),d=Qt(i&&`Text--${i}`,{"Text--break":a,"Text--truncate":o===!0,"Text--ellipsis":c},r),f=c?{WebkitLineClamp:o}:null;return T.jsx(n,{className:d,style:f,...l,ref:t,children:s})}),hSe=e=>{const{content:t,closable:n=!0,leftIcon:r="bullhorn",onClick:i,onClose:a}=e;return T.jsxs("div",{className:"Notice",role:"alert","aria-atomic":!0,"aria-live":"assertive",children:[r&&T.jsx(ci,{className:"Notice-icon",type:r}),T.jsx("div",{className:"Notice-content",onClick:i,children:T.jsx(_x,{className:"Notice-text",truncate:!0,children:T.jsx(Kp,{content:t})})}),n&&T.jsx(Go,{className:"Notice-close",icon:"close",onClick:a,"aria-label":"关闭通知"})]})},vSe="Intl"in window&&typeof Intl.NumberFormat.prototype.formatToParts=="function",Nj=L.forwardRef((e,t)=>{const{className:n,price:r,currency:i,locale:a,original:o,...s}=e;let l=[];if(a&&i&&vSe?l=new Intl.NumberFormat(a,{style:"currency",currency:i}).formatToParts(r):l=void 0,!l){const c=".",[d,f]=`${r}`.split(c);l=[{type:"currency",value:i},{type:"integer",value:d},{type:"decimal",value:f&&c},{type:"fraction",value:f}]}return T.jsx("div",{className:Qt("Price",{"Price--original":o},n),ref:t,...s,children:l.map((c,d)=>c.value?T.jsx("span",{className:`Price-${c.type}`,children:c.value},d):null)})});L.forwardRef((e,t)=>{const{className:n,value:r,status:i,...a}=e;return T.jsx("div",{className:Qt("Progress",i&&`Progress--${i}`,n),ref:t,...a,children:T.jsx("div",{className:"Progress-bar",role:"progressbar",style:{width:`${r}%`},"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100})})});const Dj=requestAnimationFrame;function dY({el:e,to:t,duration:n=300,x:r}){let i=0;const a=r?"scrollLeft":"scrollTop",o=e[a],s=Math.round(n/16),l=(t-o)/s;if(!Dj){e[a]=t;return}function c(){e[a]+=l,++i{const{distance:n=30,loadingDistance:r=30,maxDistance:i,distanceRatio:a=2,loadMoreText:o="点击加载更多",children:s,onScroll:l,onRefresh:c,renderIndicator:d=z=>z==="active"||z==="loading"?T.jsx(ci,{className:"PullToRefresh-spinner",type:"spinner",spin:!0}):null}=e,f=u.useRef(null),m=u.useRef(null),p=Pxe(c),[h,v]=u.useState(0),[g,w]=u.useState("pending"),[y,b]=u.useState(!1),[x,C]=u.useState(!e.onRefresh),S=u.useRef({}),_=u.useRef(g),k=u.useRef(),$=u.useRef(),E=!gf("touch");u.useEffect(()=>{_.current=g},[g]);const P=z=>{const I=m.current;I&&iY(I,`translate3d(0px,${z}px,0)`)},M=({y:z,animated:I=!0})=>{const H=f.current;if(!H)return;const V=z==="100%"?H.scrollHeight-H.offsetHeight:z;I?dY({el:H,to:V,x:!1}):H.scrollTop=V},j=u.useCallback(({animated:z=!0}={})=>{M({y:"100%",animated:z})},[]),O=u.useCallback(()=>{v(0),w("pending"),P(0)},[]),N=u.useCallback(()=>{const z=f.current;if(!(!z||!p.current)){w("loading");try{const I=z.scrollHeight;p.current().then(H=>{const V=()=>{M({y:z.scrollHeight-I-50,animated:!1})};clearTimeout(k.current),clearTimeout($.current),V(),k.current=setTimeout(V,150),$.current=setTimeout(V,250),O(),H&&H.noMore&&C(!0)})}catch(I){console.error(I),O()}}},[p,O]),R=()=>{S.current.startY=0},D=u.useCallback(z=>{const I=z.touches[0].clientY,H=f.current.scrollTop<=0;H?S.current.startY||(S.current.startY=I,w("pull"),b(!1)):S.current.startY=0;const{startY:V}=S.current;if(!H||Ii&&(B=i),B>0&&(z.cancelable&&z.preventDefault(),z.stopPropagation(),P(B),v(B),w(B>=n?"active":"pull"))},[a,i,n]),F=u.useCallback(()=>{b(!0),S.current.startY&&_.current==="active"?N():O()},[N,O]);return u.useEffect(()=>{const z=f.current;!z||E||(x?(z.removeEventListener("touchstart",R),z.removeEventListener("touchmove",D),z.removeEventListener("touchend",F),z.removeEventListener("touchcancel",F)):(z.addEventListener("touchstart",R,gSe),z.addEventListener("touchmove",D,bSe),z.addEventListener("touchend",F),z.addEventListener("touchcancel",F)))},[x,F,D,E]),u.useEffect(()=>{g==="loading"&&!E&&P(r)},[r,g,E]),u.useImperativeHandle(t,()=>({scrollTo:M,scrollToEnd:j,wrapperRef:f}),[j]),T.jsx("div",{className:"PullToRefresh",ref:f,onScroll:l,children:T.jsx("div",{className:"PullToRefresh-inner",children:T.jsxs("div",{className:Qt("PullToRefresh-content",{"PullToRefresh-transition":y}),ref:m,children:[T.jsx("div",{className:"PullToRefresh-indicator",children:d(g,h)}),!x&&E&&T.jsxs(fo,{className:"PullToRefresh-fallback",center:!0,children:[d(g,n),T.jsx(bo,{className:"PullToRefresh-loadMore",variant:"text",onClick:N,children:o})]}),L.Children.only(s)]})})})}),wSe={threshold:[0,.1]},jj=e=>{const{item:t,effect:n,children:r,onIntersect:i}=e,a=u.useRef(null);return u.useEffect(()=>{if(!i)return;const o=new IntersectionObserver(([s])=>{s.intersectionRatio>0&&(i(t,s)||o.unobserve(s.target))},wSe);return a.current&&o.observe(a.current),()=>{o.disconnect()}},[t,i]),T.jsx("div",{className:Qt("ScrollView-item",{"slide-in-right-item":n==="slide","A-fadeIn":n==="fade"}),ref:a,children:r})},M$=!gf("touch"),mY=L.forwardRef((e,t)=>{const{className:n,fullWidth:r,scrollX:i=!0,effect:a="slide",data:o,itemKey:s,renderItem:l,onIntersect:c,onScroll:d,children:f,...m}=e,p=u.useRef(null),h=u.useRef(null);function v(){const y=h.current;y.scrollLeft-=y.offsetWidth}function g(){const y=h.current;y.scrollLeft+=y.offsetWidth}const w=u.useCallback((y,b)=>{let x;return s&&(x=typeof s=="function"?s(y,b):y[s]),x||b},[s]);return u.useImperativeHandle(t,()=>({scrollTo:({x:y,y:b})=>{y!=null&&(h.current.scrollLeft=y),b!=null&&(h.current.scrollTop=b)},wrapperRef:p})),T.jsxs("div",{className:Qt("ScrollView",{"ScrollView--fullWidth":r,"ScrollView--x":i,"ScrollView--hasControls":M$},n),ref:p,...m,children:[M$&&T.jsx(Go,{className:"ScrollView-control",icon:"chevron-left","aria-label":"Previous",onClick:v}),T.jsx("div",{className:"ScrollView-scroller",ref:h,onScroll:d,children:T.jsxs("div",{className:"ScrollView-inner",children:[o.map((y,b)=>T.jsx(jj,{item:y,effect:y.effect||a,onIntersect:c,children:l(y,b)},w(y,b))),f?T.jsx(jj,{item:{},effect:a,onIntersect:c,children:f}):null]})}),M$&&T.jsx(Go,{className:"ScrollView-control",icon:"chevron-right","aria-label":"Next",onClick:g})]})}),xSe=e=>{const{item:t,index:n,onClick:r}=e;function i(){r(t,n)}return T.jsx("button",{className:Qt("QuickReply",{new:t.isNew,highlight:t.isHighlight}),type:"button","data-code":t.code,"aria-label":`快捷短语: ${t.name},双击发送`,onClick:i,children:T.jsxs("div",{className:"QuickReply-inner",children:[t.icon&&T.jsx(ci,{type:t.icon}),t.img&&T.jsx("img",{className:"QuickReply-img",src:t.img,alt:""}),T.jsx("span",{children:t.name})]})})},SSe=({items:e=[],visible:t=!0,onClick:n,onScroll:r})=>{const i=u.useRef(null),[a,o]=u.useState(!!r);return u.useLayoutEffect(()=>{let s;return i.current&&(o(!1),i.current.scrollTo({x:0,y:0}),s=setTimeout(()=>{o(!0)},500)),()=>{clearTimeout(s)}},[e]),e.length?T.jsx(mY,{className:"QuickReplies",data:e,itemKey:"name",ref:i,"data-visible":t,onScroll:a?r:void 0,renderItem:(s,l)=>T.jsx(xSe,{item:s,index:l,onClick:n},s.name)}):null},CSe=L.memo(SSe),_Se=L.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return T.jsxs("label",{className:Qt("Radio",n,{"Radio--checked":i,"Radio--disabled":a}),ref:t,children:[T.jsx("input",{type:"radio",className:"Radio-input",checked:i,disabled:a,onChange:o,...s}),T.jsx("span",{className:"Radio-text",children:r})]})});L.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;return T.jsx("div",{className:Qt("RadioGroup",{"RadioGroup--block":s},n),ref:t,children:r.map(c=>T.jsx(_Se,{label:c.label||c.value,value:c.value,name:a,checked:i===c.value,disabled:"disabled"in c?c.disabled:o,onChange:d=>{l(c.value,d)}},c.value))})});const wb="up",xb="down",fI=e=>{const{trans:t}=vf("RateActions",{up:"赞同",down:"反对"}),{upTitle:n=t("up"),downTitle:r=t("down"),onClick:i}=e,[a,o]=u.useState("");function s(d){a||(o(d),i(d))}function l(){s(wb)}function c(){s(xb)}return T.jsxs("div",{className:"RateActions",children:[a!==xb&&T.jsx(Go,{className:Qt("RateBtn",{active:a===wb}),title:n,"data-type":wb,icon:"thumbs-up",onClick:l}),a!==wb&&T.jsx(Go,{className:Qt("RateBtn",{active:a===xb}),title:r,"data-type":xb,icon:"thumbs-down",onClick:c})]})},kSe=L.forwardRef((e,t)=>{const{className:n,onSearch:r,onChange:i,onClear:a,value:o,clearable:s=!0,showSearch:l=!0,...c}=e,[d,f]=u.useState(o||""),{trans:m}=vf("Search"),p=w=>{f(w),i&&i(w)},h=()=>{f(""),a&&a()},v=w=>{w.keyCode===13&&(r&&r(d,w),w.preventDefault())},g=w=>{r&&r(d,w)};return T.jsxs("div",{className:Qt("Search",n),ref:t,children:[T.jsx(ci,{className:"Search-icon",type:"search"}),T.jsx(Bg,{className:"Search-input",type:"search",value:d,enterKeyHint:"search",onChange:p,onKeyDown:v,...c}),s&&d&&T.jsx(Go,{className:"Search-clear",icon:"x-circle-fill",onClick:h}),l&&T.jsx(bo,{className:"Search-btn",color:"primary",onClick:g,children:m("search")})]})});L.forwardRef(({className:e,placeholder:t,variant:n="outline",children:r,...i},a)=>T.jsxs("select",{className:Qt("Input Select",`Input--${n}`,e),...i,ref:a,children:[t&&T.jsx("option",{value:"",children:t}),r]}));L.forwardRef((e,t)=>{const{className:n,current:r=0,status:i,inverted:a,children:o,...s}=e,c=L.Children.toArray(o).map((d,f)=>{const m={index:f,active:!1,completed:!1,disabled:!1};return r===f?(m.active=!0,m.status=i):r>f?m.completed=!0:(m.disabled=!a,m.completed=a),L.isValidElement(d)?L.cloneElement(d,{...m,...d.props}):null});return T.jsx("ul",{className:Qt("Stepper",n),ref:t,...s,children:c})});function $Se(e){if(e){const t={success:"check-circle-fill",fail:"warning-circle-fill",abort:"dash-circle-fill"};return T.jsx(ci,{type:t[e]})}return T.jsx("div",{className:"Step-dot"})}L.forwardRef((e,t)=>{const{className:n,active:r=!1,completed:i=!1,disabled:a=!1,status:o,index:s,title:l,subTitle:c,desc:d,children:f,...m}=e;return T.jsxs("li",{className:Qt("Step",{"Step--active":r,"Step--completed":i,"Step--disabled":a},n),ref:t,"data-status":o,...m,children:[T.jsx("div",{className:"Step-icon",children:$Se(o)}),T.jsx("div",{className:"Step-line"}),T.jsxs("div",{className:"Step-content",children:[l&&T.jsxs("div",{className:"Step-title",children:[l&&T.jsx("span",{children:l}),c&&T.jsx("small",{children:c})]}),d&&T.jsx("div",{className:"Step-desc",children:d}),f]})]})});const ESe=e=>{const{active:t,index:n,children:r,onClick:i,...a}=e;function o(s){i(n,s)}return T.jsx("div",{className:"Tabs-navItem",children:T.jsx("button",{className:Qt("Tabs-navLink",{active:t}),type:"button",role:"tab","aria-selected":t,onClick:o,...a,children:T.jsx("span",{children:r})})})},PSe=e=>{const{active:t,children:n,...r}=e;return T.jsx("div",{className:Qt("Tabs-pane",{active:t}),...r,role:"tabpanel",children:n})},TSe=L.forwardRef((e,t)=>{const{className:n,index:r=0,scrollable:i,hideNavIfOnlyOne:a,children:o,onChange:s}=e,[l,c]=u.useState({}),[d,f]=u.useState(r||0),m=u.useRef(d),p=u.useRef(null),h=[],v=[],g=cY("tabs-");function w(x,C){f(x),s&&s(x,C)}L.Children.forEach(o,(x,C)=>{if(!x)return;const S=d===C,_=`${g}-${C}`;h.push(T.jsx(ESe,{active:S,index:C,onClick:w,"aria-controls":_,tabIndex:S?-1:0,children:x.props.label},_)),x.props.children&&v.push(T.jsx(PSe,{active:S,id:_,children:x.props.children},_))}),u.useEffect(()=>{f(r)},[r]);const y=u.useCallback(()=>{const x=p.current;if(!x)return;const C=x.children[m.current];if(!C)return;const S=C.querySelector("span");if(!S)return;const{offsetWidth:_,offsetLeft:k}=C,{width:$}=S.getBoundingClientRect(),E=Math.max($-16,26),P=k+_/2;c({transform:`translateX(${P-E/2}px)`,width:`${E}px`}),i&&dY({el:x,to:P-x.offsetWidth/2,x:!0})},[i]);u.useEffect(()=>{const x=p.current;let C;return x&&"ResizeObserver"in window&&(C=new ResizeObserver(y),C.observe(x)),()=>{C&&x&&C.unobserve(x)}},[y]),u.useEffect(()=>{m.current=d,y()},[d,y]);const b=h.length>(a?1:0);return T.jsxs("div",{className:Qt("Tabs",{"Tabs--scrollable":i},n),ref:t,children:[b&&T.jsxs("div",{className:"Tabs-nav",role:"tablist",ref:p,children:[h,T.jsx("span",{className:"Tabs-navPointer",style:l})]}),T.jsx("div",{className:"Tabs-content",children:v})]})}),Sb=L.forwardRef(({children:e},t)=>T.jsx("div",{ref:t,children:e})),OSe=L.forwardRef((e,t)=>{const{as:n="span",className:r,color:i,children:a,...o}=e;return T.jsx(n,{className:Qt("Tag",i&&`Tag--${i}`,r),ref:t,...o,children:a})});function RSe(e){switch(e){case"success":return T.jsx(ci,{type:"check-circle"});case"error":return T.jsx(ci,{type:"warning-circle"});case"loading":return T.jsx(ci,{type:"spinner",spin:!0});default:return null}}const ISe=e=>{const{content:t,type:n,duration:r=2e3,onUnmount:i}=e,[a,o]=u.useState(!1);return u.useEffect(()=>{o(!0),r!==-1&&(setTimeout(()=>{o(!1)},r),setTimeout(()=>{i&&i()},r+300))},[r,i]),T.jsx("div",{className:Qt("Toast",{show:a}),"data-type":n,role:"alert","aria-live":"assertive","aria-atomic":"true",children:T.jsxs("div",{className:"Toast-content",role:"presentation",children:[RSe(n),T.jsx("p",{className:"Toast-message",children:t})]})})};function Cb(e,t,n){$xe(T.jsx(ISe,{content:e,type:t,duration:n}))}const no={show:Cb,success(e,t){Cb(e,"success",t)},fail(e,t){Cb(e,"error",t)},loading(e,t){Cb(e,"loading",t)}},MSe=e=>{const{item:t,onClick:n}=e,{type:r,icon:i,img:a,title:o}=t;return T.jsx("div",{className:"Toolbar-item","data-type":r,children:T.jsxs(bo,{className:"Toolbar-btn",onClick:s=>n(t,s),children:[T.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&T.jsx(ci,{type:i}),a&&T.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),T.jsx("span",{className:"Toolbar-btnText",children:o})]})})},NSe=e=>{const{items:t,onClick:n}=e;return T.jsx("div",{className:"Toolbar",children:t.map(r=>T.jsx(MSe,{item:r,onClick:n},r.type))})};L.forwardRef((e,t)=>{const{className:n,children:r}=e;return T.jsx("div",{className:Qt("Tree",n),role:"tree",ref:t,children:r})});L.forwardRef((e,t)=>{const{title:n,content:r,link:i,children:a=[],onClick:o,onExpand:s}=e,[l,c]=u.useState(!1),d=a.length>0;function f(){d?(c(!l),s(n,!l)):o({title:n,content:r,link:i})}return T.jsxs("div",{className:"TreeNode",role:"treeitem","aria-expanded":l,ref:t,children:[T.jsxs("div",{className:"TreeNode-title",onClick:f,role:"treeitem","aria-expanded":l,tabIndex:0,children:[T.jsx("span",{className:"TreeNode-title-text",children:n}),d?T.jsx(ci,{className:"TreeNode-title-icon",type:l?"chevron-up":"chevron-down"}):null]}),d?a.map((m,p)=>T.jsx("div",{className:Qt("TreeNode-children",{"TreeNode-children-active":l}),children:T.jsx("div",{className:"TreeNode-title TreeNode-children-title",onClick:()=>o({...m,index:p}),role:"treeitem",children:T.jsx("span",{className:"TreeNode-title-text",children:m.title})})},p)):null]})});function DSe(e){if(!e)return"";const t=Math.floor(e/3600),n=Math.floor((e-t*3600)/60),r=Math.floor(e-t*3600-n*60);let i="";return t>0&&(i+=`${t}:`),i+=`${n}:`,r<10&&(i+="0"),i+=r,i}const jSe=L.forwardRef((e,t)=>{const{className:n,src:r,cover:i,duration:a,onClick:o,onCoverLoad:s,style:l,videoRef:c,children:d,...f}=e,m=u.useRef(null),p=u.useRef(null),h=c||p,[v,g]=u.useState(!1),[w,y]=u.useState(!0);function b(k){g(!0);const $=h.current;$&&($.ended||$.paused?$.play():$.pause()),o&&o(w,k)}function x(){y(!1)}function C(){y(!0)}const S=!v&&!!i,_=S&&!!a;return u.useImperativeHandle(t,()=>({wrapperRef:m})),T.jsxs("div",{className:Qt("Video",`Video--${w?"paused":"playing"}`,n),style:l,ref:m,children:[S&&T.jsx("img",{className:"Video-cover",src:i,onLoad:s,alt:""}),_&&T.jsx("span",{className:"Video-duration",children:DSe(+a)}),T.jsx("video",{className:"Video-video",src:r,ref:h,hidden:S,controls:!0,onPlay:x,onPause:C,onEnded:C,...f,children:d}),S&&T.jsx("button",{className:Qt("Video-playBtn",{paused:w}),type:"button",onClick:b,children:T.jsx("span",{className:"Video-playIcon"})})]})}),FSe=L.forwardRef((e,t)=>{const{fileUrl:n,children:r}=e,[i,a]=u.useState("");return u.useEffect(()=>{const o=n.split("/");a(o[o.length-1])},[n]),T.jsx(rs,{className:"FileCard",size:"xl",ref:t,children:T.jsxs(fo,{children:[T.jsx("div",{className:"FileCard-icon",children:T.jsx(ci,{type:"file"})}),T.jsxs(Lg,{children:[T.jsx(_x,{truncate:2,breakWord:!0,className:"FileCard-name",children:i}),T.jsx("div",{className:"FileCard-meta",children:r})]})]})})}),pY=L.forwardRef((e,t)=>{const n=cI(),{className:r,type:i,img:a,name:o,desc:s,tags:l=[],locale:c,currency:d,price:f,count:m,unit:p,action:h,elderMode:v,children:g,originalPrice:w,meta:y,status:b,...x}=e,C=v||n.elderMode,S=i==="order"&&!C,_=i!=="order"&&!C,k={currency:d,locale:c},$=f!=null&&T.jsx(Nj,{price:f,...k}),E=T.jsxs("div",{className:"Goods-countUnit",children:[m&&T.jsxs("span",{className:"Goods-count",children:["×",m]}),p&&T.jsx("span",{className:"Goods-unit",children:p})]});return T.jsxs(fo,{className:Qt("Goods",r),"data-type":i,"data-elder-mode":C,ref:t,...x,children:[a&&T.jsx("img",{className:"Goods-img",src:a,alt:o}),T.jsxs(Lg,{className:"Goods-main",children:[_&&h&&T.jsx(Go,{className:"Goods-buyBtn",icon:"cart",...h}),T.jsx(_x,{as:"h4",truncate:S?2:!0,className:"Goods-name",children:o}),T.jsx(_x,{className:"Goods-desc",truncate:C,children:s}),C?T.jsxs(fo,{alignItems:"center",justifyContent:"space-between",children:[$,h&&T.jsx(bo,{size:"sm",...h})]}):T.jsx("div",{className:"Goods-tags",children:l.map(P=>T.jsx(OSe,{color:"primary",children:P.name},P.name))}),_&&T.jsxs(fo,{alignItems:"flex-end",children:[T.jsxs(Lg,{children:[$,w&&T.jsx(Nj,{price:w,original:!0,...k}),y&&T.jsx("span",{className:"Goods-meta",children:y})]}),E]}),g]}),S&&T.jsxs("div",{className:"Goods-aside",children:[$,E,T.jsx("span",{className:"Goods-status",children:b}),h&&T.jsx(bo,{className:"Goods-detailBtn",...h})]})]})}),ASe=({count:e,onClick:t,onDidMount:n})=>{const{trans:r}=vf("BackBottom");let i=r("bottom");return e&&(i=r(e===1?"newMsgOne":"newMsgOther").replace("{n}",e)),u.useEffect(()=>{n&&n()},[n]),T.jsx("div",{className:"BackBottom",children:T.jsxs(bo,{className:"slide-in-right-item",onClick:t,children:[i,T.jsx(ci,{type:"chevron-double-down"})]})})};function LSe(e,t=300){let n=!0;return(...r)=>{n&&(n=!1,e(...r),setTimeout(()=>{n=!0},t))}}const Fj=gf("passiveListener")?{passive:!0}:!1;function N$(e,t){const n=Math.max(e.offsetHeight,600);return aY(e){const{messages:n,isTyping:r,loadMoreText:i,onRefresh:a,onScroll:o,renderBeforeMessageList:s,renderMessageContent:l,onBackBottomShow:c,onBackBottomClick:d}=e,[f,m]=u.useState(!1),[p,h]=u.useState(0),v=u.useRef(f),g=u.useRef(p),w=u.useRef(null),y=u.useRef(null),b=n[n.length-1],x=()=>{h(0),m(!1)},C=u.useCallback($=>{y.current&&(!v.current||$&&$.force)&&(y.current.scrollToEnd($),v.current&&x())},[]),S=()=>{C({animated:!1,force:!0}),d&&d()},_=u.useRef(LSe($=>{N$($,3)?g.current?N$($,.5)&&x():m(!1):m(!0)})),k=$=>{_.current($.target),o&&o($)};return u.useEffect(()=>{g.current=p},[p]),u.useEffect(()=>{v.current=f},[f]),u.useEffect(()=>{const $=y.current,E=$&&$.wrapperRef.current;if(!(!E||!b||b.position==="pop"))if(b.position==="right")C({force:!0});else if(N$(E,2)){const P=!!E.scrollTop;C({animated:P,force:!0})}else h(P=>P+1),m(!0)},[b,C]),u.useEffect(()=>{C()},[r,C]),u.useEffect(()=>{const $=w.current;let E=!1,P=0;function M(){E=!1,P=0}function j(N){const{activeElement:R}=document;R&&R.nodeName==="TEXTAREA"&&(E=!0,P=N.touches[0].clientY)}function O(N){E&&Math.abs(N.touches[0].clientY-P)>20&&(document.activeElement.blur(),M())}return $.addEventListener("touchstart",j,Fj),$.addEventListener("touchmove",O,Fj),$.addEventListener("touchend",M),$.addEventListener("touchcancel",M),()=>{$.removeEventListener("touchstart",j),$.removeEventListener("touchmove",O),$.removeEventListener("touchend",M),$.removeEventListener("touchcancel",M)}},[]),u.useImperativeHandle(t,()=>({ref:w,scrollToEnd:C}),[C]),T.jsxs("div",{className:"MessageContainer",ref:w,tabIndex:-1,children:[s&&s(),T.jsx(ySe,{onRefresh:a,onScroll:k,loadMoreText:i,ref:y,children:T.jsxs("div",{className:"MessageList",children:[n.map($=>u.createElement(Rj,{...$,renderMessageContent:l,key:$._id})),r&&T.jsx(Rj,{type:"typing",_id:"typing"})]})}),f&&T.jsx(ASe,{count:p,onClick:S,onDidMount:c})]})}),hY=gf("passiveListener"),zSe=hY?{passive:!0}:!1,HSe=hY?{passive:!1}:!1,Aj=80,VSe={inited:"hold2talk",recording:"release2send",willCancel:"release2send"};let Yh=0,D$=0;const WSe=L.forwardRef((e,t)=>{const{volume:n,onStart:r,onEnd:i,onCancel:a}=e,[o,s]=u.useState("inited"),l=u.useRef(null),{trans:c}=vf("Recorder"),d=u.useCallback(()=>{const p=Date.now()-Yh;i&&i({duration:p})},[i]);u.useImperativeHandle(t,()=>({stop(){s("inited"),d(),Yh=0}})),u.useEffect(()=>{const p=l.current;function h(w){w.cancelable&&w.preventDefault(),D$=w.touches[0].pageY,Yh=Date.now(),s("recording"),r&&r()}function v(w){if(!Yh)return;const y=w.touches[0].pageY,b=D$-y>Aj;s(b?"willCancel":"recording")}function g(w){if(!Yh)return;const y=w.changedTouches[0].pageY,b=D$-y{p.removeEventListener("touchstart",h),p.removeEventListener("touchmove",v),p.removeEventListener("touchend",g),p.removeEventListener("touchcancel",g)}},[d,a,r]);const f=o==="willCancel",m={transform:`scale(${(n||1)/100+1})`};return T.jsxs("div",{className:Qt("Recorder",{"Recorder--cancel":f}),ref:l,children:[o!=="inited"&&T.jsxs(fo,{className:"RecorderToast",direction:"column",center:!0,children:[T.jsxs("div",{className:"RecorderToast-waves",hidden:o!=="recording",style:m,children:[T.jsx(ci,{className:"RecorderToast-wave-1",type:"hexagon"}),T.jsx(ci,{className:"RecorderToast-wave-2",type:"hexagon"}),T.jsx(ci,{className:"RecorderToast-wave-3",type:"hexagon"})]}),T.jsx(ci,{className:"RecorderToast-icon",type:f?"cancel":"mic"}),T.jsx("span",{children:c(f?"release2cancel":"releaseOrSwipe")})]}),T.jsx("div",{className:"Recorder-btn",role:"button","aria-label":c("hold2talk"),children:T.jsx("span",{children:c(VSe[o])})})]})}),USe=({onClickOutside:e,children:t})=>T.jsx(Yxe,{onClick:e,children:t});function qSe(e){const t=u.useRef(!1);u.useEffect(()=>{function n(){e(),t.current=!1}function r(){t.current||(t.current=!0,window.requestAnimationFrame?window.requestAnimationFrame(n):setTimeout(n,66))}return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[e])}const GSe=e=>{const{className:t,active:n,target:r,children:i,onClose:a}=e,o=Exe(a,"mousedown"),{didMount:s,isShow:l}=eY({active:n,ref:o}),[c,d]=u.useState({}),f=u.useCallback(()=>{if(!o.current)return;const m=r.getBoundingClientRect(),p=o.current.getBoundingClientRect();d({top:`${m.top-p.height}px`,left:`${m.left}px`})},[r,o]);return u.useEffect(()=>{o.current&&(o.current.focus(),f())},[s,f,o]),qSe(f),s?yi.createPortal(T.jsxs("div",{className:Qt("Popover",t,{active:l}),ref:o,style:c,children:[T.jsx("div",{className:"Popover-body",children:i}),T.jsx("svg",{className:"Popover-arrow",viewBox:"0 0 9 5",children:T.jsx("polygon",{points:"0,0 5,5, 9,0"})})]}),document.body):null},Ky=e=>T.jsx("div",{className:"Composer-actions","data-action-icon":e.icon,children:T.jsx(Go,{size:"lg",...e})}),KSe=e=>{const{item:t,onClick:n}=e;return T.jsx(Ky,{icon:t.icon,img:t.img,"data-icon":t.icon,"data-tooltip":t.title||null,"aria-label":t.title,onClick:n})};function Q0(){const e=mf();return{translateString:r=>r==null?r:r&&r.startsWith(aD)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(aD)?XD(e.formatMessage({id:r}),10):XD(r,10)}}const vY=e=>{const{file:t,onCancel:n,onSend:r}=e,[i,a]=u.useState(""),[o,s]=u.useState(""),{translateString:l}=Q0();return u.useEffect(()=>{const c=new FileReader;c.onload=m=>{m.target&&a(m.target.result)},c.readAsDataURL(t);const d=t.name.toLowerCase().split(".").pop();console.log("SendConfirm file:",d,t.size);let f="unknown";d==="jpg"||d==="jpeg"||d==="png"||d==="bmp"||d==="gif"?f=bu:d==="mp4"||d==="avi"||d==="mov"?f=Tg:d==="mp3"||d==="wav"?f=Q4:f=rp,s(f)},[t]),T.jsx(fSe,{className:"SendConfirm",title:l("i18n.preview.title"),active:!!i,vertical:!1,actions:[{label:l("i18n.cancel"),onClick:n},{label:l("i18n.send"),color:"primary",onClick:r}],children:T.jsxs(fo,{className:"SendConfirm-inner",center:!0,children:[o===bu&&T.jsx(T.Fragment,{children:T.jsx("img",{src:i,alt:""})}),o===Tg&&T.jsx("div",{style:{width:"80%",height:"80%"},children:T.jsx("video",{controls:!0,style:{width:"100%",height:"100%"},children:T.jsx("source",{src:i,type:"video/mp4"})})}),o===Q4&&T.jsx(T.Fragment,{children:T.jsx("audio",{controls:!0,children:T.jsx("source",{src:i,type:"audio/mp3"})})}),o===rp&&T.jsx(T.Fragment,{children:T.jsxs("div",{className:"SendConfirm-file",children:[T.jsx("i",{className:"iconfont icon-fujian"}),T.jsx("span",{children:t.name})]})})]})})},zg=navigator.userAgent;function YSe(){return/iPad|iPhone|iPod/.test(zg)}function XSe(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(zg)}function QSe(){return zg.includes("Safari/")||/OS 11_[0-3]\D/.test(zg)}function gY(){const e=zg.match(/OS (\d+)_/);return e?+e[1]:0}const bY=YSe();function ZSe(){if(bY){if(QSe())return 0;if(gY()<13)return 1}return 2}function JSe(e,t){const n=ZSe();let r;const i=t||e,a=()=>{n!==0&&(n===1?document.body.scrollTop=document.body.scrollHeight:i.scrollIntoView(!1))};e.addEventListener("focus",()=>{setTimeout(a,300),r=setTimeout(a,1e3)}),e.addEventListener("blur",()=>{clearTimeout(r),n&&bY&&setTimeout(()=>{document.body.scrollIntoView()})})}function eCe(e,t){const{items:n}=e.clipboardData;if(n&&n.length)for(let r=0;r{const[i,a]=u.useState(null),o=u.useCallback(c=>{eCe(c,a)},[]),s=u.useCallback(()=>{a(null)},[]),l=u.useCallback(()=>{n&&i&&Promise.resolve(n(i)).then(()=>{a(null)})},[n,i]);return u.useEffect(()=>{if(tCe&&e.current){const c=document.querySelector(".Composer");JSe(e.current,c)}},[e]),T.jsxs("div",{className:Qt({"S--invisible":t}),children:[T.jsx(Bg,{className:"Composer-input",rows:1,autoSize:!0,enterKeyHint:"send",onPaste:n?o:void 0,ref:e,...r}),i&&T.jsx(vY,{file:i,onCancel:s,onSend:l})]})},Bj=({disabled:e,onClick:t})=>{const{trans:n}=vf("Composer");return T.jsx("div",{className:"Composer-actions",children:T.jsx(bo,{className:"Composer-sendBtn",disabled:e,onMouseDown:t,color:"primary",children:n("send")})})},zj="S--focusing",nCe=L.forwardRef((e,t)=>{const{text:n="",textOnce:r,inputType:i="text",wideBreakpoint:a,placeholder:o="请输入...",recorder:s={},onInputTypeChange:l,onFocus:c,onBlur:d,onChange:f,onSend:m,onImageSend:p,onAccessoryToggle:h,toolbar:v=[],onToolbarClick:g,rightAction:w,inputOptions:y}=e,[b,x]=u.useState(n),[C,S]=u.useState(""),[_,k]=u.useState(o),[$,E]=u.useState(i||"text"),[P,M]=u.useState(!1),[j,O]=u.useState(""),N=u.useRef(null),R=u.useRef(!1),D=u.useRef(),F=u.useRef(),z=u.useRef(!1),[I,H]=u.useState(!1);u.useEffect(()=>{const oe=a&&window.matchMedia?window.matchMedia(`(min-width: ${a})`):!1;function de(pe){H(pe.matches)}return H(oe&&oe.matches),oe&&oe.addListener(de),()=>{oe&&oe.removeListener(de)}},[a]),u.useEffect(()=>{Gv("S--wide",I),I||O("")},[I]),u.useEffect(()=>{z.current&&h&&h(P)},[P,h]),u.useEffect(()=>{r?(S(r),k(r)):(S(""),k(o))},[o,r]),u.useEffect(()=>{z.current=!0},[]),u.useImperativeHandle(t,()=>({setText:x}));const V=u.useCallback(()=>{const oe=$==="voice",de=oe?"text":"voice";if(E(de),oe){const pe=N.current;pe.focus(),pe.selectionStart=pe.selectionEnd=pe.value.length}l&&l(de)},[$,l]),B=u.useCallback(oe=>{clearTimeout(D.current),Gv(zj,!0),R.current=!0,c&&c(oe)},[c]),W=u.useCallback(oe=>{D.current=setTimeout(()=>{Gv(zj,!1),R.current=!1},0),d&&d(oe)},[d]),U=u.useCallback(()=>{b?(m("text",b),x("")):C&&m("text",C),C&&(S(""),k(o)),R.current&&N.current.focus()},[o,m,b,C]),X=u.useCallback(oe=>{!oe.shiftKey&&oe.keyCode===13&&(U(),oe.preventDefault())},[U]),q=u.useCallback((oe,de)=>{x(oe),f&&f(oe,de)},[f]),Y=u.useCallback(oe=>{U(),oe.preventDefault()},[U]),re=u.useCallback(()=>{M(!P)},[P]),G=u.useCallback(()=>{setTimeout(()=>{M(!1),O("")})},[]),Q=u.useCallback((oe,de)=>{g&&g(oe,de),oe.render&&(F.current=de.currentTarget,O(oe.render))},[g]),J=u.useCallback(()=>{O("")},[]),Z=$==="text",ee=Z?"volume-circle":"keyboard-circle",te=v.length>0,le={...y,value:b,inputRef:N,placeholder:_,onFocus:B,onBlur:W,onKeyDown:X,onChange:q,onImageSend:p};return I?T.jsxs("div",{className:"Composer Composer--lg",children:[te&&v.map(oe=>T.jsx(KSe,{item:oe,onClick:de=>Q(oe,de)},oe.type)),j&&T.jsx(GSe,{active:!!j,target:F.current,onClose:J,children:j}),T.jsx("div",{className:"Composer-inputWrap",children:T.jsx(Lj,{invisible:!1,...le})}),T.jsx(Bj,{onClick:Y,disabled:!b})]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"Composer",children:[s.canRecord&&T.jsx(Ky,{className:"Composer-inputTypeBtn","data-icon":ee,icon:ee,onClick:V,"aria-label":Z?"切换到语音输入":"切换到键盘输入"}),T.jsxs("div",{className:"Composer-inputWrap",children:[T.jsx(Lj,{invisible:!Z,...le}),!Z&&T.jsx(WSe,{...s})]}),!b&&w&&T.jsx(Ky,{...w}),te&&T.jsx(Ky,{className:Qt("Composer-toggleBtn",{active:P}),icon:"plus-circle",onClick:re,"aria-label":P?"关闭工具栏":"展开工具栏"}),(b||C)&&T.jsx(Bj,{onClick:Y,disabled:!1})]}),P&&T.jsx(USe,{onClickOutside:G,children:j||T.jsx(NSe,{items:v,onClick:Q})})]})}),rCe=L.forwardRef((e,t)=>{const{wideBreakpoint:n,locale:r="zh-CN",locales:i,elderMode:a,navbar:o,showTopTip:s,topTipContent:l,renderNavbar:c,loadMoreText:d,renderBeforeMessageList:f,messagesRef:m,onRefresh:p,onScroll:h,messages:v=[],isTyping:g,renderMessageContent:w,onBackBottomShow:y,onBackBottomClick:b,quickReplies:x=[],quickRepliesVisible:C,onQuickReplyClick:S=()=>{},onQuickReplyScroll:_,renderQuickReplies:k,text:$,textOnce:E,placeholder:P,onInputFocus:M,onInputChange:j,onInputBlur:O,onSend:N,onImageSend:R,inputOptions:D,composerRef:F,inputType:z,onInputTypeChange:I,recorder:H,toolbar:V,onToolbarClick:B,onAccessoryToggle:W,rightAction:U,Composer:X=nCe,hideComposer:q}=e;function Y(Q){m&&m.current&&m.current.scrollToEnd({animated:!1,force:!0}),M&&M(Q)}u.useEffect(()=>{const Q=document.documentElement;XSe()&&(Q.dataset.safari="");const J=gY();J&&J<11&&(Q.dataset.oldIos="")},[]);function re(Q){console.log("url",Q)}function G(){console.log("close")}return T.jsx(Lxe,{locale:r,locales:i,elderMode:a,children:T.jsxs("div",{className:"ChatApp","data-elder-mode":a,ref:t,children:[c?c():o&&T.jsx(pSe,{...o}),s&&T.jsx(hSe,{content:l,onClick:re,onClose:G}),T.jsx(BSe,{ref:m,loadMoreText:d,messages:v,isTyping:g,renderBeforeMessageList:f,renderMessageContent:w,onRefresh:p,onScroll:h,onBackBottomShow:y,onBackBottomClick:b}),T.jsxs("div",{className:"ChatFooter",children:[k?k():T.jsx(CSe,{items:x,visible:C,onClick:S,onScroll:_}),!q&&T.jsx(X,{wideBreakpoint:n,ref:F,inputType:z,text:$,textOnce:E,inputOptions:D,placeholder:P,onAccessoryToggle:W,recorder:H,toolbar:V,onToolbarClick:B,onInputTypeChange:I,onFocus:Y,onChange:j,onBlur:O,onSend:N,onImageSend:R,rightAction:U})]})]})})}),_v={LF:` -`,NULL:"\0"};class Qc{constructor(t){const{command:n,headers:r,body:i,binaryBody:a,escapeHeaderValues:o,skipContentLengthHeader:s}=t;this.command=n,this.headers=Object.assign({},r||{}),a?(this._binaryBody=a,this.isBinaryBody=!0):(this._body=i||"",this.isBinaryBody=!1),this.escapeHeaderValues=o||!1,this.skipContentLengthHeader=s||!1}get body(){return!this._body&&this.isBinaryBody&&(this._body=new TextDecoder().decode(this._binaryBody)),this._body||""}get binaryBody(){return!this._binaryBody&&!this.isBinaryBody&&(this._binaryBody=new TextEncoder().encode(this._body)),this._binaryBody}static fromRawFrame(t,n){const r={},i=a=>a.replace(/^\s+|\s+$/g,"");for(const a of t.headers.reverse()){a.indexOf(":");const o=i(a[0]);let s=i(a[1]);n&&t.command!=="CONNECT"&&t.command!=="CONNECTED"&&(s=Qc.hdrValueUnEscape(s)),r[o]=s}return new Qc({command:t.command,headers:r,binaryBody:t.binaryBody,escapeHeaderValues:n})}toString(){return this.serializeCmdAndHeaders()}serialize(){const t=this.serializeCmdAndHeaders();return this.isBinaryBody?Qc.toUnit8Array(t,this._binaryBody).buffer:t+this._body+_v.NULL}serializeCmdAndHeaders(){const t=[this.command];this.skipContentLengthHeader&&delete this.headers["content-length"];for(const n of Object.keys(this.headers||{})){const r=this.headers[n];this.escapeHeaderValues&&this.command!=="CONNECT"&&this.command!=="CONNECTED"?t.push(`${n}:${Qc.hdrValueEscape(`${r}`)}`):t.push(`${n}:${r}`)}return(this.isBinaryBody||!this.isBodyEmpty()&&!this.skipContentLengthHeader)&&t.push(`content-length:${this.bodyLength()}`),t.join(_v.LF)+_v.LF+_v.LF}isBodyEmpty(){return this.bodyLength()===0}bodyLength(){const t=this.binaryBody;return t?t.length:0}static sizeOfUTF8(t){return t?new TextEncoder().encode(t).length:0}static toUnit8Array(t,n){const r=new TextEncoder().encode(t),i=new Uint8Array([0]),a=new Uint8Array(r.length+n.length+i.length);return a.set(r),a.set(n,r.length),a.set(i,r.length+n.length),a}static marshall(t){return new Qc(t).serialize()}static hdrValueEscape(t){return t.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/:/g,"\\c")}static hdrValueUnEscape(t){return t.replace(/\\r/g,"\r").replace(/\\n/g,` -`).replace(/\\c/g,":").replace(/\\\\/g,"\\")}}const Hj=0,_b=10,kb=13,iCe=58;class aCe{constructor(t,n){this.onFrame=t,this.onIncomingPing=n,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()}parseChunk(t,n=!1){let r;if(typeof t=="string"?r=this._encoder.encode(t):r=new Uint8Array(t),n&&r[r.length-1]!==0){const i=new Uint8Array(r.length+1);i.set(r,0),i[r.length]=0,r=i}for(let i=0;in[0]==="content-length")[0];t?(this._bodyBytesRemaining=parseInt(t[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}_collectBodyNullTerminated(t){if(t===Hj){this._retrievedBody();return}this._consumeByte(t)}_collectBodyFixedSize(t){if(this._bodyBytesRemaining--===0){this._retrievedBody();return}this._consumeByte(t)}_retrievedBody(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(t){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",t)}this._initState()}_consumeByte(t){this._token.push(t)}_consumeTokenAsUTF8(){return this._decoder.decode(this._consumeTokenAsRaw())}_consumeTokenAsRaw(){const t=new Uint8Array(this._token);return this._token=[],t}_initState(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}}var Jl;(function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED"})(Jl=Jl||(Jl={}));var No;(function(e){e[e.ACTIVE=0]="ACTIVE",e[e.DEACTIVATING=1]="DEACTIVATING",e[e.INACTIVE=2]="INACTIVE"})(No=No||(No={}));class ma{constructor(t){this.versions=t}supportedVersions(){return this.versions.join(",")}protocolVersions(){return this.versions.map(t=>`v${t.replace(".","")}.stomp`)}}ma.V1_0="1.0";ma.V1_1="1.1";ma.V1_2="1.2";ma.default=new ma([ma.V1_2,ma.V1_1,ma.V1_0]);function oCe(e,t){e.terminate=function(){const n=()=>{};this.onerror=n,this.onmessage=n,this.onopen=n;const r=new Date,i=Math.random().toString().substring(2,8),a=this.onclose;this.onclose=o=>{const s=new Date().getTime()-r.getTime();t(`Discarded socket (#${i}) closed after ${s}ms, with code/reason: ${o.code}/${o.reason}`)},this.close(),a==null||a.call(e,{code:4001,reason:`Quick discarding socket (#${i}) without waiting for the shutdown sequence.`,wasClean:!1})}}class sCe{constructor(t,n,r){this._client=t,this._webSocket=n,this._connected=!1,this._serverFrameHandlers={CONNECTED:i=>{this.debug(`connected to server ${i.headers.server}`),this._connected=!0,this._connectedVersion=i.headers.version,this._connectedVersion===ma.V1_2&&(this._escapeHeaderValues=!0),this._setupHeartbeat(i.headers),this.onConnect(i)},MESSAGE:i=>{const a=i.headers.subscription,o=this._subscriptions[a]||this.onUnhandledMessage,s=i,l=this,c=this._connectedVersion===ma.V1_2?s.headers.ack:s.headers["message-id"];s.ack=(d={})=>l.ack(c,a,d),s.nack=(d={})=>l.nack(c,a,d),o(s)},RECEIPT:i=>{const a=this._receiptWatchers[i.headers["receipt-id"]];a?(a(i),delete this._receiptWatchers[i.headers["receipt-id"]]):this.onUnhandledReceipt(i)},ERROR:i=>{this.onStompError(i)}},this._counter=0,this._subscriptions={},this._receiptWatchers={},this._partialData="",this._escapeHeaderValues=!1,this._lastServerActivityTS=Date.now(),this.debug=r.debug,this.stompVersions=r.stompVersions,this.connectHeaders=r.connectHeaders,this.disconnectHeaders=r.disconnectHeaders,this.heartbeatIncoming=r.heartbeatIncoming,this.heartbeatOutgoing=r.heartbeatOutgoing,this.splitLargeFrames=r.splitLargeFrames,this.maxWebSocketChunkSize=r.maxWebSocketChunkSize,this.forceBinaryWSFrames=r.forceBinaryWSFrames,this.logRawCommunication=r.logRawCommunication,this.appendMissingNULLonIncoming=r.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=r.discardWebsocketOnCommFailure,this.onConnect=r.onConnect,this.onDisconnect=r.onDisconnect,this.onStompError=r.onStompError,this.onWebSocketClose=r.onWebSocketClose,this.onWebSocketError=r.onWebSocketError,this.onUnhandledMessage=r.onUnhandledMessage,this.onUnhandledReceipt=r.onUnhandledReceipt,this.onUnhandledFrame=r.onUnhandledFrame}get connectedVersion(){return this._connectedVersion}get connected(){return this._connected}start(){const t=new aCe(n=>{const r=Qc.fromRawFrame(n,this._escapeHeaderValues);this.logRawCommunication||this.debug(`<<< ${r}`),(this._serverFrameHandlers[r.command]||this.onUnhandledFrame)(r)},()=>{this.debug("<<< PONG")});this._webSocket.onmessage=n=>{if(this.debug("Received data"),this._lastServerActivityTS=Date.now(),this.logRawCommunication){const r=n.data instanceof ArrayBuffer?new TextDecoder().decode(n.data):n.data;this.debug(`<<< ${r}`)}t.parseChunk(n.data,this.appendMissingNULLonIncoming)},this._webSocket.onclose=n=>{this.debug(`Connection closed to ${this._webSocket.url}`),this._cleanUp(),this.onWebSocketClose(n)},this._webSocket.onerror=n=>{this.onWebSocketError(n)},this._webSocket.onopen=()=>{const n=Object.assign({},this.connectHeaders);this.debug("Web Socket Opened..."),n["accept-version"]=this.stompVersions.supportedVersions(),n["heart-beat"]=[this.heartbeatOutgoing,this.heartbeatIncoming].join(","),this._transmit({command:"CONNECT",headers:n})}}_setupHeartbeat(t){if(t.version!==ma.V1_1&&t.version!==ma.V1_2||!t["heart-beat"])return;const[n,r]=t["heart-beat"].split(",").map(i=>parseInt(i,10));if(this.heartbeatOutgoing!==0&&r!==0){const i=Math.max(this.heartbeatOutgoing,r);this.debug(`send PING every ${i}ms`),this._pinger=setInterval(()=>{this._webSocket.readyState===Jl.OPEN&&(this._webSocket.send(_v.LF),this.debug(">>> PING"))},i)}if(this.heartbeatIncoming!==0&&n!==0){const i=Math.max(this.heartbeatIncoming,n);this.debug(`check PONG every ${i}ms`),this._ponger=setInterval(()=>{const a=Date.now()-this._lastServerActivityTS;a>i*2&&(this.debug(`did not receive server activity for the last ${a}ms`),this._closeOrDiscardWebsocket())},i)}}_closeOrDiscardWebsocket(){this.discardWebsocketOnCommFailure?(this.debug("Discarding websocket, the underlying socket may linger for a while"),this.discardWebsocket()):(this.debug("Issuing close on the websocket"),this._closeWebsocket())}forceDisconnect(){this._webSocket&&(this._webSocket.readyState===Jl.CONNECTING||this._webSocket.readyState===Jl.OPEN)&&this._closeOrDiscardWebsocket()}_closeWebsocket(){this._webSocket.onmessage=()=>{},this._webSocket.close()}discardWebsocket(){typeof this._webSocket.terminate!="function"&&oCe(this._webSocket,t=>this.debug(t)),this._webSocket.terminate()}_transmit(t){const{command:n,headers:r,body:i,binaryBody:a,skipContentLengthHeader:o}=t,s=new Qc({command:n,headers:r,body:i,binaryBody:a,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:o});let l=s.serialize();if(this.logRawCommunication?this.debug(`>>> ${l}`):this.debug(`>>> ${s}`),this.forceBinaryWSFrames&&typeof l=="string"&&(l=new TextEncoder().encode(l)),typeof l!="string"||!this.splitLargeFrames)this._webSocket.send(l);else{let c=l;for(;c.length>0;){const d=c.substring(0,this.maxWebSocketChunkSize);c=c.substring(this.maxWebSocketChunkSize),this._webSocket.send(d),this.debug(`chunk sent = ${d.length}, remaining = ${c.length}`)}}}dispose(){if(this.connected)try{const t=Object.assign({},this.disconnectHeaders);t.receipt||(t.receipt=`close-${this._counter++}`),this.watchForReceipt(t.receipt,n=>{this._closeWebsocket(),this._cleanUp(),this.onDisconnect(n)}),this._transmit({command:"DISCONNECT",headers:t})}catch(t){this.debug(`Ignoring error during disconnect ${t}`)}else(this._webSocket.readyState===Jl.CONNECTING||this._webSocket.readyState===Jl.OPEN)&&this._closeWebsocket()}_cleanUp(){this._connected=!1,this._pinger&&(clearInterval(this._pinger),this._pinger=void 0),this._ponger&&(clearInterval(this._ponger),this._ponger=void 0)}publish(t){const{destination:n,headers:r,body:i,binaryBody:a,skipContentLengthHeader:o}=t,s=Object.assign({destination:n},r);this._transmit({command:"SEND",headers:s,body:i,binaryBody:a,skipContentLengthHeader:o})}watchForReceipt(t,n){this._receiptWatchers[t]=n}subscribe(t,n,r={}){r=Object.assign({},r),r.id||(r.id=`sub-${this._counter++}`),r.destination=t,this._subscriptions[r.id]=n,this._transmit({command:"SUBSCRIBE",headers:r});const i=this;return{id:r.id,unsubscribe(a){return i.unsubscribe(r.id,a)}}}unsubscribe(t,n={}){n=Object.assign({},n),delete this._subscriptions[t],n.id=t,this._transmit({command:"UNSUBSCRIBE",headers:n})}begin(t){const n=t||`tx-${this._counter++}`;this._transmit({command:"BEGIN",headers:{transaction:n}});const r=this;return{id:n,commit(){r.commit(n)},abort(){r.abort(n)}}}commit(t){this._transmit({command:"COMMIT",headers:{transaction:t}})}abort(t){this._transmit({command:"ABORT",headers:{transaction:t}})}ack(t,n,r={}){r=Object.assign({},r),this._connectedVersion===ma.V1_2?r.id=t:r["message-id"]=t,r.subscription=n,this._transmit({command:"ACK",headers:r})}nack(t,n,r={}){return r=Object.assign({},r),this._connectedVersion===ma.V1_2?r.id=t:r["message-id"]=t,r.subscription=n,this._transmit({command:"NACK",headers:r})}}class lCe{constructor(t={}){this.stompVersions=ma.default,this.connectionTimeout=0,this.reconnectDelay=5e3,this.heartbeatIncoming=1e4,this.heartbeatOutgoing=1e4,this.splitLargeFrames=!1,this.maxWebSocketChunkSize=8*1024,this.forceBinaryWSFrames=!1,this.appendMissingNULLonIncoming=!1,this.discardWebsocketOnCommFailure=!1,this.state=No.INACTIVE;const n=()=>{};this.debug=n,this.beforeConnect=n,this.onConnect=n,this.onDisconnect=n,this.onUnhandledMessage=n,this.onUnhandledReceipt=n,this.onUnhandledFrame=n,this.onStompError=n,this.onWebSocketClose=n,this.onWebSocketError=n,this.logRawCommunication=!1,this.onChangeState=n,this.connectHeaders={},this._disconnectHeaders={},this.configure(t)}get webSocket(){var t;return(t=this._stompHandler)==null?void 0:t._webSocket}get disconnectHeaders(){return this._disconnectHeaders}set disconnectHeaders(t){this._disconnectHeaders=t,this._stompHandler&&(this._stompHandler.disconnectHeaders=this._disconnectHeaders)}get connected(){return!!this._stompHandler&&this._stompHandler.connected}get connectedVersion(){return this._stompHandler?this._stompHandler.connectedVersion:void 0}get active(){return this.state===No.ACTIVE}_changeState(t){this.state=t,this.onChangeState(t)}configure(t){Object.assign(this,t)}activate(){const t=()=>{if(this.active){this.debug("Already ACTIVE, ignoring request to activate");return}this._changeState(No.ACTIVE),this._connect()};this.state===No.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(()=>{t()})):t()}async _connect(){if(await this.beforeConnect(),this._stompHandler){this.debug("There is already a stompHandler, skipping the call to connect");return}if(!this.active){this.debug("Client has been marked inactive, will not attempt to connect");return}this.connectionTimeout>0&&(this._connectionWatcher&&clearTimeout(this._connectionWatcher),this._connectionWatcher=setTimeout(()=>{this.connected||(this.debug(`Connection not established in ${this.connectionTimeout}ms, closing socket`),this.forceDisconnect())},this.connectionTimeout)),this.debug("Opening Web Socket...");const t=this._createWebSocket();this._stompHandler=new sCe(this,t,{debug:this.debug,stompVersions:this.stompVersions,connectHeaders:this.connectHeaders,disconnectHeaders:this._disconnectHeaders,heartbeatIncoming:this.heartbeatIncoming,heartbeatOutgoing:this.heartbeatOutgoing,splitLargeFrames:this.splitLargeFrames,maxWebSocketChunkSize:this.maxWebSocketChunkSize,forceBinaryWSFrames:this.forceBinaryWSFrames,logRawCommunication:this.logRawCommunication,appendMissingNULLonIncoming:this.appendMissingNULLonIncoming,discardWebsocketOnCommFailure:this.discardWebsocketOnCommFailure,onConnect:n=>{if(this._connectionWatcher&&(clearTimeout(this._connectionWatcher),this._connectionWatcher=void 0),!this.active){this.debug("STOMP got connected while deactivate was issued, will disconnect now"),this._disposeStompHandler();return}this.onConnect(n)},onDisconnect:n=>{this.onDisconnect(n)},onStompError:n=>{this.onStompError(n)},onWebSocketClose:n=>{this._stompHandler=void 0,this.state===No.DEACTIVATING&&this._changeState(No.INACTIVE),this.onWebSocketClose(n),this.active&&this._schedule_reconnect()},onWebSocketError:n=>{this.onWebSocketError(n)},onUnhandledMessage:n=>{this.onUnhandledMessage(n)},onUnhandledReceipt:n=>{this.onUnhandledReceipt(n)},onUnhandledFrame:n=>{this.onUnhandledFrame(n)}}),this._stompHandler.start()}_createWebSocket(){let t;if(this.webSocketFactory)t=this.webSocketFactory();else if(this.brokerURL)t=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions());else throw new Error("Either brokerURL or webSocketFactory must be provided");return t.binaryType="arraybuffer",t}_schedule_reconnect(){this.reconnectDelay>0&&(this.debug(`STOMP: scheduling reconnection in ${this.reconnectDelay}ms`),this._reconnector=setTimeout(()=>{this._connect()},this.reconnectDelay))}async deactivate(t={}){var a;const n=t.force||!1,r=this.active;let i;if(this.state===No.INACTIVE)return this.debug("Already INACTIVE, nothing more to do"),Promise.resolve();if(this._changeState(No.DEACTIVATING),this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==Jl.CLOSED){const o=this._stompHandler.onWebSocketClose;i=new Promise((s,l)=>{this._stompHandler.onWebSocketClose=c=>{o(c),s()}})}else return this._changeState(No.INACTIVE),Promise.resolve();return n?(a=this._stompHandler)==null||a.discardWebsocket():r&&this._disposeStompHandler(),i}forceDisconnect(){this._stompHandler&&this._stompHandler.forceDisconnect()}_disposeStompHandler(){this._stompHandler&&this._stompHandler.dispose()}publish(t){this._checkConnection(),this._stompHandler.publish(t)}_checkConnection(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}watchForReceipt(t,n){this._checkConnection(),this._stompHandler.watchForReceipt(t,n)}subscribe(t,n,r={}){return this._checkConnection(),this._stompHandler.subscribe(t,n,r)}unsubscribe(t,n={}){this._checkConnection(),this._stompHandler.unsubscribe(t,n)}begin(t){return this._checkConnection(),this._stompHandler.begin(t)}commit(t){this._checkConnection(),this._stompHandler.commit(t)}abort(t){this._checkConnection(),this._stompHandler.abort(t)}ack(t,n,r={}){this._checkConnection(),this._stompHandler.ack(t,n,r)}nack(t,n,r={}){this._checkConnection(),this._stompHandler.nack(t,n,r)}}async function cCe(e){return xi("/visitor/v1/message/query/topic",{method:"GET",params:{...e}})}async function uCe(e){return xi("/visitor/v1/message/query/thread/uid",{method:"GET",params:{...e}})}async function dCe(e){if(!(e==null||e===""))return xi("/visitor/api/v1/ping",{method:"GET",params:{uid:e,client:lr}})}async function fCe(e){return xi("/visitor/api/v1/message/unread",{method:"GET",params:{uid:e,client:lr}})}async function mCe(e){return xi("/visitor/api/v1/message/send",{method:"POST",data:{json:e,client:lr}})}async function pCe(e,t){console.log("sendMessageSSE: ",e);const n=`${s2()}/visitor/api/v1/message/sse?message=${e}`,r=new EventSource(n,{withCredentials:!1});r.onopen=i=>{console.log("sendMessageSSE onopen:",i.target)},r.onmessage=i=>{const a=JSON.parse(i.data);if(a.type==ipe){console.log("sendMessageSSE stream end"),ki.emit(Zq),r&&r.close();return}else t(a)},r.onerror=i=>{console.log("sendMessageSSE onerror:",i),r.readyState===EventSource.CLOSED?console.log("sendMessageSSE connection is closed"):console.log("sendMessageSSE Error occurred",i),r.close()},r.addEventListener("customEventName",i=>{console.log("sendMessageSSE Message id is "+i.lastEventId)})}let Ni,od,Zc;const Vj=({username:e,topic:t,orgUid:n})=>(console.log("stomp connect:",e,t,n),Zc=[],Ni=new lCe({brokerURL:fye(),connectHeaders:{login:e||""},heartbeatIncoming:10*1e3,heartbeatOutgoing:10*1e3,debug:function(r){sa&&console.log("stomp debug:",r)}}),Ni.onConnect=function(r){console.log("stomp onConnect: ",r),hCe({topic:t,orgUid:n})},Ni.onDisconnect=function(r){console.log("stomp onDisconnect:",r),Zc=[]},Ni.onWebSocketClose=r=>{console.log("stomp onWebSocketClose:",r),Zc=[]},Ni.onWebSocketError=r=>{console.error("stomp onWebSocketError",r),Zc=[]},Ni.onStompError=function(r){console.error("stomp onStompError: ",r.headers.message),console.error("stomp Additional details: ",r.body),Zc=[]},Ni.activate(),Ni),hCe=({topic:e,orgUid:t})=>{if(od=e.replace(/\//g,"."),console.log("stomp stompSubscribe: ",od),Ni==null){console.log("stomp stompClient is null");return}Zc.includes(od)||(Zc.push(od),Ni.subscribe("/topic/"+od,n=>{if(n.body){const r=JSON.parse(n.body);if(Sye(r)){if(console.log("receive self message:",r),Cye(r)||(r==null?void 0:r.type)===ER&&(no.success("评价成功"),Uy(r),r.content&&r.content.length>0))return;if(r.type===_R){no.success("留言成功"),Uy(r);return}if(r.type===lx||r.type===lpe)return;console.log("receive self message success:",r==null?void 0:r.content),r.status=SR}else{switch(console.log("receive other message:",r),r.type){case $R:case tG:console.log("receive receipt message:",r),Uy(r);return;case eG:ki.emit(Ume);return;case rpe:ki.emit(qme);return;case ape:_ye(r);return;case kR:case dpe:case fpe:case mpe:case ppe:case hpe:case vpe:return;case Og:ki.emit(Zq);break;case gpe:window.parent.postMessage({type:_pe},"*");break;case bpe:window.parent.postMessage({type:kpe},"*");break;case ype:window.parent.postMessage({type:$pe},"*");break}r.type!==rG&&vye(),CCe(t,r)}e2.getState().addMessage(r)}else console.log("empty message");n.ack()},{ack:"client"}))},lc=e=>{if(console.log("stomp stompSendTextMessage:",od,e),!vCe()){SCe(e),console.log("stomp stompClient is null, sendHttpMessage");return}Ni.publish({destination:"/app/"+od,body:e})},vCe=()=>Ni!=null&&(Ni==null?void 0:Ni.connected),gCe=()=>{console.log("stomp stompDisconnect"),Ni!=null&&(Ni.deactivate(),Zc=[])},bCe=({uid:e,faq:t,thread:n,visitor:r})=>{const i={orgUid:localStorage.getItem(zp)||""},a={uid:e,type:lx,content:JSON.stringify(t),status:ac,createdAt:dl(),client:lr,extra:JSON.stringify(i),thread:n,user:r},o=JSON.stringify(a);lc(o)},yCe=({uid:e,contact:t,content:n,images:r,thread:i,visitor:a})=>{const o={uid:e||"",contact:t,content:n,images:r,orgUid:localStorage.getItem(zp)||""},s={uid:e,type:_R,content:e,status:ac,createdAt:dl(),client:lr,extra:JSON.stringify(o),thread:i,user:a},l=JSON.stringify(s);lc(l)},wCe=({thread:e,visitor:t})=>{const n={orgUid:localStorage.getItem(zp)},r={uid:aa(),type:Fy,content:"",status:ac,createdAt:dl(),client:lr,extra:JSON.stringify(n),thread:e,user:t},i=JSON.stringify(r);lc(i)},xCe=({uid:e,score:t,content:n,thread:r,visitor:i})=>{const a={uid:e,score:t,content:n||"",orgUid:localStorage.getItem(zp)||""},o={uid:aa(),type:ER,content:e,status:ac,createdAt:dl(),client:lr,extra:JSON.stringify(a),thread:r,user:i},s=JSON.stringify(o);lc(s)},SCe=async e=>{const t=await mCe(e);if(console.log("sendHttpMessage:",e,t),t.data.code===200){const n=JSON.parse(e);n.content=n.uid,n.type=SR,Uy(n),(n==null?void 0:n.type)===ER&&no.success("评价成功"),(n==null?void 0:n.type)===_R&&no.success("留言成功")}else no.fail(t.data.message)},Wj=new Set,CCe=(e,t)=>{if(bye(t==null?void 0:t.type)){const n=(t==null?void 0:t.uid)||"";if(!Wj.has(n)){Wj.add(n);const r={orgUid:e},i={uid:aa(),type:$R,status:ac,content:t==null?void 0:t.uid,thread:t==null?void 0:t.thread,extra:JSON.stringify(r),client:lr,user:{uid:localStorage.getItem(Nm)}};lc(JSON.stringify(i))}}};var $P={exports:{}};(function(e,t){(function(n,r){var i="1.0.39",a="",o="?",s="function",l="undefined",c="object",d="string",f="major",m="model",p="name",h="type",v="vendor",g="version",w="architecture",y="console",b="mobile",x="tablet",C="smarttv",S="wearable",_="embedded",k=500,$="Amazon",E="Apple",P="ASUS",M="BlackBerry",j="Browser",O="Chrome",N="Edge",R="Firefox",D="Google",F="Huawei",z="LG",I="Microsoft",H="Motorola",V="Opera",B="Samsung",W="Sharp",U="Sony",X="Xiaomi",q="Zebra",Y="Facebook",re="Chromium OS",G="Mac OS",Q=" Browser",J=function(se,he){var ve={};for(var ke in se)he[ke]&&he[ke].length%2===0?ve[ke]=he[ke].concat(se[ke]):ve[ke]=se[ke];return ve},Z=function(se){for(var he={},ve=0;ve0?De.length===2?typeof De[1]==s?this[De[0]]=De[1].call(this,be):this[De[0]]=De[1]:De.length===3?typeof De[1]===s&&!(De[1].exec&&De[1].test)?this[De[0]]=be?De[1].call(this,be,De[2]):r:this[De[0]]=be?be.replace(De[1],De[2]):r:De.length===4&&(this[De[0]]=be?De[3].call(this,be.replace(De[1],De[2])):r):this[De]=be||r;ve+=2}},pe=function(se,he){for(var ve in he)if(typeof he[ve]===c&&he[ve].length>0){for(var ke=0;ke2&&(we[m]="iPad",we[h]=x),we},this.getEngine=function(){var we={};return we[p]=r,we[g]=r,de.call(we,ke,Ee.engine),we},this.getOS=function(){var we={};return we[p]=r,we[g]=r,de.call(we,ke,Ee.os),De&&!we[p]&&Se&&Se.platform&&Se.platform!="Unknown"&&(we[p]=Se.platform.replace(/chrome os/i,re).replace(/macos/i,G)),we},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ke},this.setUA=function(we){return ke=typeof we===d&&we.length>k?oe(we,k):we,this},this.setUA(ke),this};ue.VERSION=i,ue.BROWSER=Z([p,g,f]),ue.CPU=Z([w]),ue.DEVICE=Z([m,v,h,y,b,C,x,S,_]),ue.ENGINE=ue.OS=Z([p,g]),e.exports&&(t=e.exports=ue),t.UAParser=ue;var ce=typeof n!==l&&(n.jQuery||n.Zepto);if(ce&&!ce.ua){var $e=new ue;ce.ua=$e.getResult(),ce.ua.get=function(){return $e.getUA()},ce.ua.set=function(se){$e.setUA(se);var he=$e.getResult();for(var ve in he)ce.ua[ve]=he[ve]}}})(typeof window=="object"?window:pi)})($P,$P.exports);var _Ce=$P.exports;const kCe=Wn(_Ce);var yY={exports:{}},$Ce="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ECe=$Ce,PCe=ECe;function wY(){}function xY(){}xY.resetWarningCache=wY;var TCe=function(){function e(r,i,a,o,s,l){if(l!==PCe){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xY,resetWarningCache:wY};return n.PropTypes=n,n};yY.exports=TCe();var OCe=yY.exports;const sr=Wn(OCe),RCe=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function lp(e,t,n){const r=ICe(e),{webkitRelativePath:i}=e,a=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&Uj(r,"path",a),Uj(r,"relativePath",a),r}function ICe(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=RCe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function Uj(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const MCe=[".DS_Store","Thumbs.db"];function NCe(e){return df(this,void 0,void 0,function*(){return kx(e)&&DCe(e.dataTransfer)?LCe(e.dataTransfer,e.type):jCe(e)?FCe(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?ACe(e):[]})}function DCe(e){return kx(e)}function jCe(e){return kx(e)&&kx(e.target)}function kx(e){return typeof e=="object"&&e!==null}function FCe(e){return EP(e.target.files).map(t=>lp(t))}function ACe(e){return df(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>lp(n))})}function LCe(e,t){return df(this,void 0,void 0,function*(){if(e.items){const n=EP(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(BCe));return qj(SY(r))}return qj(EP(e.files).map(n=>lp(n)))})}function qj(e){return e.filter(t=>MCe.indexOf(t.name)===-1)}function EP(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?SY(n):[n]],[])}function Gj(e,t){return df(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const o=yield a.getFile();return o.handle=a,lp(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return lp(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function zCe(e){return df(this,void 0,void 0,function*(){return e.isDirectory?CY(e):HCe(e)})}function CY(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function a(){t.readEntries(o=>df(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(zCe));i.push(s),a()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),o=>{r(o)})}a()})}function HCe(e){return df(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=lp(r,e.fullPath);t(i)},r=>{n(r)})})})}var j$=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function Kj(e){return UCe(e)||WCe(e)||kY(e)||VCe()}function VCe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UCe(e){if(Array.isArray(e))return PP(e)}function Yj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xj(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:XCe,message:"File type must be ".concat(r)}},Qj=function(t){return{code:QCe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Zj=function(t){return{code:ZCe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},t2e={code:JCe,message:"Too many files"};function $Y(e,t){var n=e.type==="application/x-moz-file"||YCe(e,t);return[n,n?null:e2e(t)]}function EY(e,t,n){if(sd(e.size))if(sd(t)&&sd(n)){if(e.size>n)return[!1,Qj(n)];if(e.sizen)return[!1,Qj(n)]}return[!0,null]}function sd(e){return e!=null}function n2e(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(l){var c=$Y(l,n),d=Hg(c,1),f=d[0],m=EY(l,r,i),p=Hg(m,1),h=p[0],v=s?s(l):null;return f&&h&&!v})}function $x(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function $b(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Jj(e){e.preventDefault()}function r2e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function i2e(e){return e.indexOf("Edge/")!==-1}function a2e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return r2e(e)||i2e(e)}function al(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S2e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var mI=u.forwardRef(function(e,t){var n=e.children,r=Ex(e,d2e),i=IY(r),a=i.open,o=Ex(i,f2e);return u.useImperativeHandle(t,function(){return{open:a}},[a]),L.createElement(u.Fragment,null,n(Mr(Mr({},o),{},{open:a})))});mI.displayName="Dropzone";var RY={disabled:!1,getFilesFromEvent:NCe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};mI.defaultProps=RY;mI.propTypes={children:sr.func,accept:sr.objectOf(sr.arrayOf(sr.string)),multiple:sr.bool,preventDropOnDocument:sr.bool,noClick:sr.bool,noKeyboard:sr.bool,noDrag:sr.bool,noDragEventsBubbling:sr.bool,minSize:sr.number,maxSize:sr.number,maxFiles:sr.number,disabled:sr.bool,getFilesFromEvent:sr.func,onFileDialogCancel:sr.func,onFileDialogOpen:sr.func,useFsAccessApi:sr.bool,autoFocus:sr.bool,onDragEnter:sr.func,onDragLeave:sr.func,onDragOver:sr.func,onDrop:sr.func,onDropAccepted:sr.func,onDropRejected:sr.func,onError:sr.func,validator:sr.func};var RP={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function IY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Mr(Mr({},RY),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,m=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,w=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,x=t.noClick,C=t.noKeyboard,S=t.noDrag,_=t.noDragEventsBubbling,k=t.onError,$=t.validator,E=u.useMemo(function(){return l2e(n)},[n]),P=u.useMemo(function(){return s2e(n)},[n]),M=u.useMemo(function(){return typeof g=="function"?g:tF},[g]),j=u.useMemo(function(){return typeof v=="function"?v:tF},[v]),O=u.useRef(null),N=u.useRef(null),R=u.useReducer(C2e,RP),D=F$(R,2),F=D[0],z=D[1],I=F.isFocused,H=F.isFileDialogActive,V=u.useRef(typeof window<"u"&&window.isSecureContext&&w&&o2e()),B=function(){!V.current&&H&&setTimeout(function(){if(N.current){var $e=N.current.files;$e.length||(z({type:"closeDialog"}),j())}},300)};u.useEffect(function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}},[N,H,j,V]);var W=u.useRef([]),U=function($e){O.current&&O.current.contains($e.target)||($e.preventDefault(),W.current=[])};u.useEffect(function(){return b&&(document.addEventListener("dragover",Jj,!1),document.addEventListener("drop",U,!1)),function(){b&&(document.removeEventListener("dragover",Jj),document.removeEventListener("drop",U))}},[O,b]),u.useEffect(function(){return!r&&y&&O.current&&O.current.focus(),function(){}},[O,y,r]);var X=u.useCallback(function(ce){k?k(ce):console.error(ce)},[k]),q=u.useCallback(function(ce){ce.preventDefault(),ce.persist(),ye(ce),W.current=[].concat(h2e(W.current),[ce.target]),$b(ce)&&Promise.resolve(i(ce)).then(function($e){if(!($x(ce)&&!_)){var se=$e.length,he=se>0&&n2e({files:$e,accept:E,minSize:o,maxSize:a,multiple:s,maxFiles:l,validator:$}),ve=se>0&&!he;z({isDragAccept:he,isDragReject:ve,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ce)}}).catch(function($e){return X($e)})},[i,c,X,_,E,o,a,s,l,$]),Y=u.useCallback(function(ce){ce.preventDefault(),ce.persist(),ye(ce);var $e=$b(ce);if($e&&ce.dataTransfer)try{ce.dataTransfer.dropEffect="copy"}catch{}return $e&&f&&f(ce),!1},[f,_]),re=u.useCallback(function(ce){ce.preventDefault(),ce.persist(),ye(ce);var $e=W.current.filter(function(he){return O.current&&O.current.contains(he)}),se=$e.indexOf(ce.target);se!==-1&&$e.splice(se,1),W.current=$e,!($e.length>0)&&(z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),$b(ce)&&d&&d(ce))},[O,d,_]),G=u.useCallback(function(ce,$e){var se=[],he=[];ce.forEach(function(ve){var ke=$Y(ve,E),Se=F$(ke,2),Ee=Se[0],De=Se[1],we=EY(ve,o,a),be=F$(we,2),Pe=be[0],Re=be[1],_e=$?$(ve):null;if(Ee&&Pe&&!_e)se.push(ve);else{var je=[De,Re];_e&&(je=je.concat(_e)),he.push({file:ve,errors:je.filter(function(He){return He})})}}),(!s&&se.length>1||s&&l>=1&&se.length>l)&&(se.forEach(function(ve){he.push({file:ve,errors:[t2e]})}),se.splice(0)),z({acceptedFiles:se,fileRejections:he,isDragReject:he.length>0,type:"setFiles"}),m&&m(se,he,$e),he.length>0&&h&&h(he,$e),se.length>0&&p&&p(se,$e)},[z,s,E,o,a,l,m,p,h,$]),Q=u.useCallback(function(ce){ce.preventDefault(),ce.persist(),ye(ce),W.current=[],$b(ce)&&Promise.resolve(i(ce)).then(function($e){$x(ce)&&!_||G($e,ce)}).catch(function($e){return X($e)}),z({type:"reset"})},[i,G,X,_]),J=u.useCallback(function(){if(V.current){z({type:"openDialog"}),M();var ce={multiple:s,types:P};window.showOpenFilePicker(ce).then(function($e){return i($e)}).then(function($e){G($e,null),z({type:"closeDialog"})}).catch(function($e){c2e($e)?(j($e),z({type:"closeDialog"})):u2e($e)?(V.current=!1,N.current?(N.current.value=null,N.current.click()):X(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):X($e)});return}N.current&&(z({type:"openDialog"}),M(),N.current.value=null,N.current.click())},[z,M,j,w,G,X,P,s]),Z=u.useCallback(function(ce){!O.current||!O.current.isEqualNode(ce.target)||(ce.key===" "||ce.key==="Enter"||ce.keyCode===32||ce.keyCode===13)&&(ce.preventDefault(),J())},[O,J]),ee=u.useCallback(function(){z({type:"focus"})},[]),te=u.useCallback(function(){z({type:"blur"})},[]),le=u.useCallback(function(){x||(a2e()?setTimeout(J,0):J())},[x,J]),oe=function($e){return r?null:$e},de=function($e){return C?null:oe($e)},pe=function($e){return S?null:oe($e)},ye=function($e){_&&$e.stopPropagation()},me=u.useMemo(function(){return function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$e=ce.refKey,se=$e===void 0?"ref":$e,he=ce.role,ve=ce.onKeyDown,ke=ce.onFocus,Se=ce.onBlur,Ee=ce.onClick,De=ce.onDragEnter,we=ce.onDragOver,be=ce.onDragLeave,Pe=ce.onDrop,Re=Ex(ce,m2e);return Mr(Mr(OP({onKeyDown:de(al(ve,Z)),onFocus:de(al(ke,ee)),onBlur:de(al(Se,te)),onClick:oe(al(Ee,le)),onDragEnter:pe(al(De,q)),onDragOver:pe(al(we,Y)),onDragLeave:pe(al(be,re)),onDrop:pe(al(Pe,Q)),role:typeof he=="string"&&he!==""?he:"presentation"},se,O),!r&&!C?{tabIndex:0}:{}),Re)}},[O,Z,ee,te,le,q,Y,re,Q,C,S,r]),xe=u.useCallback(function(ce){ce.stopPropagation()},[]),ue=u.useMemo(function(){return function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$e=ce.refKey,se=$e===void 0?"ref":$e,he=ce.onChange,ve=ce.onClick,ke=Ex(ce,p2e),Se=OP({accept:E,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:oe(al(he,Q)),onClick:oe(al(ve,xe)),tabIndex:-1},se,N);return Mr(Mr({},Se),ke)}},[N,n,s,Q,r]);return Mr(Mr({},F),{},{isFocused:I&&!r,getRootProps:me,getInputProps:ue,rootRef:O,inputRef:N,open:oe(J)})}function C2e(e,t){switch(t.type){case"focus":return Mr(Mr({},e),{},{isFocused:!0});case"blur":return Mr(Mr({},e),{},{isFocused:!1});case"openDialog":return Mr(Mr({},RP),{},{isFileDialogActive:!0});case"closeDialog":return Mr(Mr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Mr(Mr({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Mr(Mr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Mr({},RP);default:return e}}function tF(){}const _2e=({onImageSend:e,children:t})=>{const[n,r]=u.useState(null),i=u.useCallback(()=>{console.log("handleImageCancel"),r(null)},[]),a=u.useCallback(()=>{console.log("handleImageSend"),qv(n,c=>{n!=null&&n.type.startsWith("image")?e(c.data.fileUrl,bu):n!=null&&n.type.startsWith("video/")?e(c.data.fileUrl,Tg):e(c.data.fileUrl,rp),r(null)})},[n]),o=u.useCallback(c=>{console.log("DropUpload acceptedFiles",c),c.map(d=>{console.log(d),r(d)})},[]),{getRootProps:s,getInputProps:l}=IY({maxFiles:1,onDrop:o,onDropAccepted(c,d){console.log("onDropAccepted",c,d)},onDropRejected(c,d){console.log("onDropRejected",c,d)},noClick:!0});return T.jsxs("div",{...s(),style:{height:"100%"},children:[T.jsx("input",{...l()}),T.jsx(T.Fragment,{children:t}),n&&T.jsx(vY,{file:n,onCancel:i,onSend:a})]})};async function k2e(e){return xi("/visitor/api/v1/init",{method:"POST",data:{...e,client:lr}})}async function $2e(e){return xi("/visitor/api/v1/thread",{method:"POST",data:{...e,client:lr}})}async function E2e(e){return xi("/visitor/api/v1/browse",{method:"POST",data:{...e,client:lr}})}async function P2e(e){return xi("/visitor/api/v1/faq/search",{method:"GET",params:{...e,client:lr}})}async function T2e(e){return xi("/visitor/api/v1/faq/change",{method:"GET",params:{...e,client:lr}})}async function O2e(e){return xi("/visitor/api/v1/faq/query/uid",{method:"GET",params:{uid:e,client:lr}})}async function R2e(e){return xi("/visitor/api/v1/faq/rate/up",{method:"POST",data:{uid:e,client:lr}})}async function I2e(e){return xi("/visitor/api/v1/faq/rate/down",{method:"POST",data:{uid:e,client:lr}})}async function M2e(e){return xi("/visitor/api/v1/faq/rate/message/helpful",{method:"POST",data:{uid:e,client:lr}})}async function N2e(e){return xi("/visitor/api/v1/faq/rate/message/unhelpful",{method:"POST",data:{uid:e,client:lr}})}function D2e(e,t,n){var r=this,i=u.useRef(null),a=u.useRef(0),o=u.useRef(null),s=u.useRef([]),l=u.useRef(),c=u.useRef(),d=u.useRef(e),f=u.useRef(!0);d.current=e;var m=typeof window<"u",p=!t&&t!==0&&m;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,g="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,y=g?Math.max(+n.maxWait||0,t):null;u.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var b=u.useMemo(function(){var x=function(E){var P=s.current,M=l.current;return s.current=l.current=null,a.current=E,c.current=d.current.apply(M,P)},C=function(E,P){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(E):setTimeout(E,P)},S=function(E){if(!f.current)return!1;var P=E-i.current;return!i.current||P>=t||P<0||g&&E-a.current>=y},_=function(E){return o.current=null,v&&s.current?x(E):(s.current=l.current=null,c.current)},k=function E(){var P=Date.now();if(S(P))return _(P);if(f.current){var M=t-(P-i.current),j=g?Math.min(M,y-(P-a.current)):M;C(E,j)}},$=function(){if(m||w){var E=Date.now(),P=S(E);if(s.current=[].slice.call(arguments),l.current=r,i.current=E,P){if(!o.current&&f.current)return a.current=i.current,C(k,t),h?x(i.current):c.current;if(g)return C(k,t),x(i.current)}return o.current||C(k,t),c.current}};return $.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=l.current=o.current=null},$.isPending=function(){return!!o.current},$.flush=function(){return o.current?_(Date.now()):c.current},$},[h,g,t,y,v,p,m,w]);return b}function j2e(e,t){return e===t}function F2e(e,t,n){var r=j2e,i=u.useRef(e),a=u.useState({})[1],o=D2e(u.useCallback(function(l){i.current=l,a({})},[a]),t,n),s=u.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}function A2e({defaultRate:e,disabled:t,onClick:n}){const[r,i]=u.useState(e||5),a=["很不满意","不满意","一般","满意","非常满意"],o=c=>{t||i(c)},s=c=>{t||i(c)},l=c=>{t||i(c)};return u.useEffect(()=>{n(r)},[r,n]),T.jsxs(T.Fragment,{children:[T.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"5px",marginBottom:"5px"},children:a.map((c,d)=>{const f=d+1<=r;return T.jsxs("div",{style:{padding:"10px",color:f?"orange":"inherit",cursor:"pointer"},onClick:()=>o(d+1),onMouseEnter:()=>s(d+1),onMouseLeave:()=>l(d+1),children:[f?"★":"☆"," "]},d)})}),T.jsx("div",{style:{marginBottom:"20px"},children:a[r-1]})]})}const L2e=({uid:e,content:t,status:n,type:r,thread:i,visitor:a})=>{const[o,s]=u.useState(5),[l,c]=u.useState(""),[d,f]=u.useState(!1);u.useEffect(()=>{if(n===Zme){f(!0);let v=null;try{v=JSON.parse(t)}catch{}v&&(s(v.score),c(v.content))}},[t,n]);const m=v=>{console.log("handleRateChange:",v),s(v)},p=(v,g)=>{console.log("handleCommentChange:",v),c(g.target.value)},h=()=>{console.log("handleSubmit:",e,o,l),xCe({uid:e,score:o,content:l,disabled:!1,type:r,thread:i,visitor:a})};return T.jsx("div",{className:"rate-bubble",children:T.jsx(fo,{children:T.jsxs(rs,{fluid:!0,children:[T.jsx(uI,{children:r===nG?"邀请评价":"主动评价"}),T.jsxs(nY,{children:[T.jsx(A2e,{defaultRate:o,disabled:d,onClick:m}),T.jsx(Bg,{placeholder:"请输入评价...",value:l,rows:3,onChange:p,style:{marginTop:"8px"}})]}),T.jsx(rY,{children:T.jsx(bo,{color:"primary",onClick:h,disabled:d,children:d?"已评价":"提交评价"})})]})})})},B2e=({uid:e,content:t,thread:n,visitor:r})=>{console.log("RobotQa",e,t,n,r);const i=a=>{console.log("handleRateClicked:",e,a)};return T.jsx(T.Fragment,{children:T.jsxs(fo,{children:[T.jsx(rs,{fluid:!0,children:T.jsx(X0,{children:t})}),T.jsx(fI,{onClick:i})]})})};function mi(){return mi=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Id(e){var t=u.useRef({fn:e,curr:void 0}).current;if(t.fn=e,!t.curr){var n=Object.create(null);Object.keys(e).forEach(function(r){n[r]=function(){var i;return(i=t.fn[r]).call.apply(i,[t.fn].concat([].slice.call(arguments)))}}),t.curr=n}return t.curr}function Px(e){return u.useReducer(function(t,n){return mi({},t,typeof n=="function"?n(t):n)},e)}var MY=u.createContext(void 0),Ul=typeof window<"u"&&"ontouchstart"in window,IP=function(e,t,n){return Math.max(Math.min(e,n),t)},Eb=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),IP(e,1*(1-n),Math.max(6,t)*(1+n))},MP=typeof window>"u"||/ServerSideRendering/.test(navigator&&navigator.userAgent)?u.useEffect:u.useLayoutEffect;function am(e,t,n){var r=u.useRef(t);r.current=t,u.useEffect(function(){function i(a){r.current(a)}return e&&window.addEventListener(e,i,n),function(){e&&window.removeEventListener(e,i)}},[e])}var z2e=["container"];function H2e(e){var t=e.container,n=t===void 0?document.body:t,r=f2(e,z2e);return yi.createPortal(L.createElement("div",mi({},r)),n)}function V2e(e){return L.createElement("svg",mi({width:"44",height:"44",viewBox:"0 0 768 768"},e),L.createElement("path",{d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))}function W2e(e){return L.createElement("svg",mi({width:"44",height:"44",viewBox:"0 0 768 768"},e),L.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))}function U2e(e){return L.createElement("svg",mi({width:"44",height:"44",viewBox:"0 0 768 768"},e),L.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"}))}function q2e(){return u.useEffect(function(){var e=document.body.style,t=e.overflow;return e.overflow="hidden",function(){e.overflow=t}},[]),null}function nF(e){var t=e.touches[0],n=t.clientX,r=t.clientY;if(e.touches.length>=2){var i=e.touches[1],a=i.clientX,o=i.clientY;return[(n+a)/2,(r+o)/2,Math.sqrt(Math.pow(a-n,2)+Math.pow(o-r,2))]}return[n,r,0]}var Kc=function(e,t,n,r){var i,a=n*t,o=(a-r)/2,s=e;return a<=r?(i=1,s=0):e>0&&o-e<=0?(i=2,s=o):e<0&&o+e<=0&&(i=3,s=-o),[i,s]};function A$(e,t,n,r,i,a,o,s,l,c){o===void 0&&(o=innerWidth/2),s===void 0&&(s=innerHeight/2),l===void 0&&(l=0),c===void 0&&(c=0);var d=Kc(e,a,n,innerWidth)[0],f=Kc(t,a,r,innerHeight),m=innerWidth/2,p=innerHeight/2;return{x:o-a/i*(o-(m+e))-m+(r/n>=3&&n*a===innerWidth?0:d?l/2:l),y:s-a/i*(s-(p+t))-p+(f[0]?c/2:c),lastCX:o,lastCY:s}}function NP(e,t,n){var r=e%180!=0;return r?[n,t,r]:[t,n,r]}function L$(e,t,n){var r=NP(n,innerWidth,innerHeight),i=r[0],a=r[1],o=0,s=i,l=a,c=e/t*a,d=t/e*i;return e=a?s=c:e>=i&&ti/a?l=d:t/e>=3&&!r[2]?o=((l=d)-a)/2:s=c,{width:s,height:l,x:0,y:o,pause:!0}}function Pb(e,t){var n=t.leading,r=n!==void 0&&n,i=t.maxWait,a=t.wait,o=a===void 0?i||0:a,s=u.useRef(e);s.current=e;var l=u.useRef(0),c=u.useRef(),d=function(){return c.current&&clearTimeout(c.current)},f=u.useCallback(function(){var m=[].slice.call(arguments),p=Date.now();function h(){l.current=p,d(),s.current.apply(null,m)}var v=l.current,g=p-v;if(v===0&&(r&&h(),l.current=p),i!==void 0){if(g>i)return void h()}else g=1&&a&&a())};d()}function d(){l=requestAnimationFrame(c)}}var K2e={T:0,L:0,W:0,H:0,FIT:void 0},NY=function(){var e=u.useRef(!1);return u.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},Y2e=["className"];function X2e(e){var t=e.className,n=t===void 0?"":t,r=f2(e,Y2e);return L.createElement("div",mi({className:"PhotoView__Spinner "+n},r),L.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},L.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),L.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))}var Q2e=["src","loaded","broken","className","onPhotoLoad","loadingElement","brokenElement"];function Z2e(e){var t=e.src,n=e.loaded,r=e.broken,i=e.className,a=e.onPhotoLoad,o=e.loadingElement,s=e.brokenElement,l=f2(e,Q2e),c=NY();return t&&!r?L.createElement(L.Fragment,null,L.createElement("img",mi({className:"PhotoView__Photo"+(i?" "+i:""),src:t,onLoad:function(d){var f=d.target;c.current&&a({loaded:!0,naturalWidth:f.naturalWidth,naturalHeight:f.naturalHeight})},onError:function(){c.current&&a({broken:!0})},alt:""},l)),!n&&(L.createElement("span",{className:"PhotoView__icon"},o)||L.createElement(X2e,{className:"PhotoView__icon"}))):s?L.createElement("span",{className:"PhotoView__icon"},typeof s=="function"?s({src:t}):s):null}var J2e={naturalWidth:void 0,naturalHeight:void 0,width:void 0,height:void 0,loaded:void 0,broken:!1,x:0,y:0,touched:!1,maskTouched:!1,rotate:0,scale:1,CX:0,CY:0,lastX:0,lastY:0,lastCX:0,lastCY:0,lastScale:1,touchTime:0,touchLength:0,pause:!0,stopRaf:!0,reach:void 0};function e_e(e){var t=e.item,n=t.src,r=t.render,i=t.width,a=i===void 0?0:i,o=t.height,s=o===void 0?0:o,l=t.originRef,c=e.visible,d=e.speed,f=e.easing,m=e.wrapClassName,p=e.className,h=e.style,v=e.loadingElement,g=e.brokenElement,w=e.onPhotoTap,y=e.onMaskTap,b=e.onReachMove,x=e.onReachUp,C=e.onPhotoResize,S=e.isActive,_=e.expose,k=Px(J2e),$=k[0],E=k[1],P=u.useRef(0),M=NY(),j=$.naturalWidth,O=j===void 0?a:j,N=$.naturalHeight,R=N===void 0?s:N,D=$.width,F=D===void 0?a:D,z=$.height,I=z===void 0?s:z,H=$.loaded,V=H===void 0?!n:H,B=$.broken,W=$.x,U=$.y,X=$.touched,q=$.stopRaf,Y=$.maskTouched,re=$.rotate,G=$.scale,Q=$.CX,J=$.CY,Z=$.lastX,ee=$.lastY,te=$.lastCX,le=$.lastCY,oe=$.lastScale,de=$.touchTime,pe=$.touchLength,ye=$.pause,me=$.reach,xe=Id({onScale:function(Ne){return ue(Eb(Ne))},onRotate:function(Ne){re!==Ne&&(_({rotate:Ne}),E(mi({rotate:Ne},L$(O,R,Ne))))}});function ue(Ne,Ae,et){G!==Ne&&(_({scale:Ne}),E(mi({scale:Ne},A$(W,U,F,I,G,Ne,Ae,et),Ne<=1&&{x:0,y:0})))}var ce=Pb(function(Ne,Ae,et){if(et===void 0&&(et=0),(X||Y)&&S){var nt=NP(re,F,I),rt=nt[0],it=nt[1];if(et===0&&P.current===0){var ge=Math.abs(Ne-Q)<=20,Te=Math.abs(Ae-J)<=20;if(ge&&Te)return void E({lastCX:Ne,lastCY:Ae});P.current=ge?Ae>J?3:2:1}var Ce,Ie=Ne-te,Ke=Ae-le;if(et===0){var Xe=Kc(Ie+Z,G,rt,innerWidth)[0],lt=Kc(Ke+ee,G,it,innerHeight);Ce=function(Qe,Ge,st,pt){return Ge&&Qe===1||pt==="x"?"x":st&&Qe>1||pt==="y"?"y":void 0}(P.current,Xe,lt[0],me),Ce!==void 0&&b(Ce,Ne,Ae,G)}if(Ce==="x"||Y)return void E({reach:"x"});var tt=Eb(G+(et-pe)/100/2*G,O/F,.2);_({scale:tt}),E(mi({touchLength:et,reach:Ce,scale:tt},A$(W,U,F,I,G,tt,Ne,Ae,Ie,Ke)))}},{maxWait:8});function $e(Ne){return!q&&!X&&(M.current&&E(mi({},Ne,{pause:c})),M.current)}var se,he,ve,ke,Se,Ee,De,we,be=(Se=function(Ne){return $e({x:Ne})},Ee=function(Ne){return $e({y:Ne})},De=function(Ne){return M.current&&(_({scale:Ne}),E({scale:Ne})),!X&&M.current},we=Id({X:function(Ne){return Se(Ne)},Y:function(Ne){return Ee(Ne)},S:function(Ne){return De(Ne)}}),function(Ne,Ae,et,nt,rt,it,ge,Te,Ce,Ie,Ke){var Xe=NP(Ie,rt,it),lt=Xe[0],tt=Xe[1],Qe=Kc(Ne,Te,lt,innerWidth),Ge=Qe[0],st=Qe[1],pt=Kc(Ae,Te,tt,innerHeight),yt=pt[0],zt=pt[1],$t=Date.now()-Ke;if($t>=200||Te!==ge||Math.abs(Ce-ge)>1){var ze=A$(Ne,Ae,rt,it,ge,Te),fe=ze.x,Me=ze.y,We=Ge?st:fe!==Ne?fe:null,wt=yt?zt:Me!==Ae?Me:null;return We!==null&&ld(Ne,We,we.X),wt!==null&&ld(Ae,wt,we.Y),void(Te!==ge&&ld(ge,Te,we.S))}var Je=(Ne-et)/$t,Le=(Ae-nt)/$t,ot=Math.sqrt(Math.pow(Je,2)+Math.pow(Le,2)),vt=!1,Et=!1;(function(It,St){var at,_t=It,At=0,Dt=0,Jt=function(wr){at||(at=wr);var dr=wr-at,Qn=Math.sign(It),Wr=-.001*Qn,vn=Math.sign(-_t)*Math.pow(_t,2)*2e-4,Bt=_t*dr+(Wr+vn)*Math.pow(dr,2)/2;At+=Bt,at=wr,Qn*(_t+=(Wr+vn)*dr)<=0?gn():St(At)?pn():gn()};function pn(){Dt=requestAnimationFrame(Jt)}function gn(){cancelAnimationFrame(Dt)}pn()})(ot,function(It){var St=Ne+It*(Je/ot),at=Ae+It*(Le/ot),_t=Kc(St,ge,lt,innerWidth),At=_t[0],Dt=_t[1],Jt=Kc(at,ge,tt,innerHeight),pn=Jt[0],gn=Jt[1];if(At&&!vt&&(vt=!0,Ge?ld(St,Dt,we.X):rF(Dt,St+(St-Dt),we.X)),pn&&!Et&&(Et=!0,yt?ld(at,gn,we.Y):rF(gn,at+(at-gn),we.Y)),vt&&Et)return!1;var wr=vt||we.X(Dt),dr=Et||we.Y(gn);return wr&&dr})}),Pe=(se=w,he=function(Ne,Ae){me||ue(G!==1?1:Math.max(2,O/F),Ne,Ae)},ve=u.useRef(0),ke=Pb(function(){ve.current=0,se.apply(void 0,[].slice.call(arguments))},{wait:300}),function(){var Ne=[].slice.call(arguments);ve.current+=1,ke.apply(void 0,Ne),ve.current>=2&&(ke.cancel(),ve.current=0,he.apply(void 0,Ne))});function Re(Ne,Ae){if(P.current=0,(X||Y)&&S){E({touched:!1,maskTouched:!1,pause:!1,stopRaf:!1,reach:void 0});var et=Eb(G,O/F);if(be(W,U,Z,ee,F,I,G,et,oe,re,de),x(Ne,Ae),Q===Ne&&J===Ae){if(X)return void Pe(Ne,Ae);Y&&y(Ne,Ae)}}}function _e(Ne,Ae,et){et===void 0&&(et=0),E({touched:!0,CX:Ne,CY:Ae,lastCX:Ne,lastCY:Ae,lastX:W,lastY:U,lastScale:G,touchLength:et,touchTime:Date.now()})}function je(Ne){E({maskTouched:!0,CX:Ne.clientX,CY:Ne.clientY,lastX:W,lastY:U})}am(Ul?void 0:"mousemove",function(Ne){Ne.preventDefault(),ce(Ne.clientX,Ne.clientY)}),am(Ul?void 0:"mouseup",function(Ne){Re(Ne.clientX,Ne.clientY)}),am(Ul?"touchmove":void 0,function(Ne){Ne.preventDefault();var Ae=nF(Ne);ce.apply(void 0,Ae)},{passive:!1}),am(Ul?"touchend":void 0,function(Ne){var Ae=Ne.changedTouches[0];Re(Ae.clientX,Ae.clientY)},{passive:!1}),am("resize",Pb(function(){V&&!X&&(E(L$(O,R,re)),C())},{maxWait:8})),MP(function(){S&&_(mi({scale:G,rotate:re},xe))},[S]);var He=function(Ne,Ae,et,nt,rt,it,ge,Te,Ce,Ie){var Ke=function(fe,Me,We,wt,Je){var Le=u.useRef(!1),ot=Px({lead:!0,scale:We}),vt=ot[0],Et=vt.lead,It=vt.scale,St=ot[1],at=Pb(function(_t){try{return Je(!0),St({lead:!1,scale:_t}),Promise.resolve()}catch(At){return Promise.reject(At)}},{wait:wt});return MP(function(){Le.current?(Je(!1),St({lead:!0}),at(We)):Le.current=!0},[We]),Et?[fe*It,Me*It,We/It]:[fe*We,Me*We,1]}(it,ge,Te,Ce,Ie),Xe=Ke[0],lt=Ke[1],tt=Ke[2],Qe=function(fe,Me,We,wt,Je){var Le=u.useState(K2e),ot=Le[0],vt=Le[1],Et=u.useState(0),It=Et[0],St=Et[1],at=u.useRef(),_t=Id({OK:function(){return fe&&St(4)}});function At(Dt){Je(!1),St(Dt)}return u.useEffect(function(){if(at.current||(at.current=Date.now()),We){if(function(Dt,Jt){var pn=Dt&&Dt.current;if(pn&&pn.nodeType===1){var gn=pn.getBoundingClientRect();Jt({T:gn.top,L:gn.left,W:gn.width,H:gn.height,FIT:pn.tagName==="IMG"?getComputedStyle(pn).objectFit:void 0})}}(Me,vt),fe)return Date.now()-at.current<250?(St(1),requestAnimationFrame(function(){St(2),requestAnimationFrame(function(){return At(3)})}),void setTimeout(_t.OK,wt)):void St(4);At(5)}},[fe,We]),[It,ot]}(Ne,Ae,et,Ce,Ie),Ge=Qe[0],st=Qe[1],pt=st.W,yt=st.FIT,zt=innerWidth/2,$t=innerHeight/2,ze=Ge<3||Ge>4;return[ze?pt?st.L:zt:nt+(zt-it*Te/2),ze?pt?st.T:$t:rt+($t-ge*Te/2),Xe,ze&&yt?Xe*(st.H/pt):lt,Ge===0?tt:ze?pt/(it*Te)||.01:tt,ze?yt?1:0:1,Ge,yt]}(c,l,V,W,U,F,I,G,d,function(Ne){return E({pause:Ne})}),Be=He[4],ct=He[6],Ve="transform "+d+"ms "+f,Ye={className:p,onMouseDown:Ul?void 0:function(Ne){Ne.stopPropagation(),Ne.button===0&&_e(Ne.clientX,Ne.clientY,0)},onTouchStart:Ul?function(Ne){Ne.stopPropagation(),_e.apply(void 0,nF(Ne))}:void 0,onWheel:function(Ne){if(!me){var Ae=Eb(G-Ne.deltaY/100/2,O/F);E({stopRaf:!0}),ue(Ae,Ne.clientX,Ne.clientY)}},style:{width:He[2]+"px",height:He[3]+"px",opacity:He[5],objectFit:ct===4?void 0:He[7],transform:re?"rotate("+re+"deg)":void 0,transition:ct>2?Ve+", opacity "+d+"ms ease, height "+(ct<4?d/2:ct>4?d:0)+"ms "+f:void 0}};return L.createElement("div",{className:"PhotoView__PhotoWrap"+(m?" "+m:""),style:h,onMouseDown:!Ul&&S?je:void 0,onTouchStart:Ul&&S?function(Ne){return je(Ne.touches[0])}:void 0},L.createElement("div",{className:"PhotoView__PhotoBox",style:{transform:"matrix("+Be+", 0, 0, "+Be+", "+He[0]+", "+He[1]+")",transition:X||ye?void 0:Ve,willChange:S?"transform":void 0}},n?L.createElement(Z2e,mi({src:n,loaded:V,broken:B},Ye,{onPhotoLoad:function(Ne){E(mi({},Ne,Ne.loaded&&L$(Ne.naturalWidth||0,Ne.naturalHeight||0,re)))},loadingElement:v,brokenElement:g})):r&&r({attrs:Ye,scale:Be,rotate:re})))}var iF={x:0,touched:!1,pause:!1,lastCX:void 0,lastCY:void 0,bg:void 0,lastBg:void 0,overlay:!0,minimal:!0,scale:1,rotate:0};function t_e(e){var t=e.loop,n=t===void 0?3:t,r=e.speed,i=e.easing,a=e.photoClosable,o=e.maskClosable,s=o===void 0||o,l=e.maskOpacity,c=l===void 0?1:l,d=e.pullClosable,f=d===void 0||d,m=e.bannerVisible,p=m===void 0||m,h=e.overlayRender,v=e.toolbarRender,g=e.className,w=e.maskClassName,y=e.photoClassName,b=e.photoWrapClassName,x=e.loadingElement,C=e.brokenElement,S=e.images,_=e.index,k=_===void 0?0:_,$=e.onIndexChange,E=e.visible,P=e.onClose,M=e.afterClose,j=e.portalContainer,O=Px(iF),N=O[0],R=O[1],D=u.useState(0),F=D[0],z=D[1],I=N.x,H=N.touched,V=N.pause,B=N.lastCX,W=N.lastCY,U=N.bg,X=U===void 0?c:U,q=N.lastBg,Y=N.overlay,re=N.minimal,G=N.scale,Q=N.rotate,J=N.onScale,Z=N.onRotate,ee=e.hasOwnProperty("index"),te=ee?k:F,le=ee?$:z,oe=u.useRef(te),de=S.length,pe=S[te],ye=typeof n=="boolean"?n:de>n,me=function(Be,ct){var Ve=u.useReducer(function(et){return!et},!1)[1],Ye=u.useRef(0),Ne=function(et,nt){var rt=u.useRef(et);function it(ge){rt.current=ge}return u.useMemo(function(){(function(ge){Be?(ge(Be),Ye.current=1):Ye.current=2})(it)},[et]),[rt.current,it]}(Be),Ae=Ne[1];return[Ne[0],Ye.current,function(){Ve(),Ye.current===2&&(Ae(!1),ct&&ct()),Ye.current=0}]}(E,M),xe=me[0],ue=me[1],ce=me[2];MP(function(){if(xe)return R({pause:!0,x:te*-(innerWidth+20)}),void(oe.current=te);R(iF)},[xe]);var $e=Id({close:function(Be){Z&&Z(0),R({overlay:!0,lastBg:X}),P(Be)},changeIndex:function(Be,ct){ct===void 0&&(ct=!1);var Ve=ye?oe.current+(Be-te):Be,Ye=de-1,Ne=IP(Ve,0,Ye),Ae=ye?Ve:Ne,et=innerWidth+20;R({touched:!1,lastCX:void 0,lastCY:void 0,x:-et*Ae,pause:ct}),oe.current=Ae,le&&le(ye?Be<0?Ye:Be>Ye?0:Be:Ne)}}),se=$e.close,he=$e.changeIndex;function ve(Be){return Be?se():R({overlay:!Y})}function ke(){R({x:-(innerWidth+20)*te,lastCX:void 0,lastCY:void 0,pause:!0}),oe.current=te}function Se(Be,ct,Ve,Ye){Be==="x"?function(Ne){if(B!==void 0){var Ae=Ne-B,et=Ae;!ye&&(te===0&&Ae>0||te===de-1&&Ae<0)&&(et=Ae/2),R({touched:!0,lastCX:B,x:-(innerWidth+20)*oe.current+et,pause:!1})}else R({touched:!0,lastCX:Ne,x:I,pause:!1})}(ct):Be==="y"&&function(Ne,Ae){if(W!==void 0){var et=c===null?null:IP(c,.01,c-Math.abs(Ne-W)/100/4);R({touched:!0,lastCY:W,bg:Ae===1?et:c,minimal:Ae===1})}else R({touched:!0,lastCY:Ne,bg:X,minimal:!0})}(Ve,Ye)}function Ee(Be,ct){var Ve=Be-(B??Be),Ye=ct-(W??ct),Ne=!1;if(Ve<-40)he(te+1);else if(Ve>40)he(te-1);else{var Ae=-(innerWidth+20)*oe.current;Math.abs(Ye)>100&&re&&f&&(Ne=!0,se()),R({touched:!1,x:Ae,lastCX:void 0,lastCY:void 0,bg:c,overlay:!!Ne||Y})}}am("keydown",function(Be){if(E)switch(Be.key){case"ArrowLeft":he(te-1,!0);break;case"ArrowRight":he(te+1,!0);break;case"Escape":se()}});var De=function(Be,ct,Ve){return u.useMemo(function(){var Ye=Be.length;return Ve?Be.concat(Be).concat(Be).slice(Ye+ct-1,Ye+ct+2):Be.slice(Math.max(ct-1,0),Math.min(ct+2,Ye+1))},[Be,ct,Ve])}(S,te,ye);if(!xe)return null;var we=Y&&!ue,be=E?X:q,Pe=J&&Z&&{images:S,index:te,visible:E,onClose:se,onIndexChange:he,overlayVisible:we,overlay:pe&&pe.overlay,scale:G,rotate:Q,onScale:J,onRotate:Z},Re=r?r(ue):400,_e=i?i(ue):"cubic-bezier(0.25, 0.8, 0.25, 1)",je=r?r(3):600,He=i?i(3):"cubic-bezier(0.25, 0.8, 0.25, 1)";return L.createElement(H2e,{className:"PhotoView-Portal"+(we?"":" PhotoView-Slider__clean")+(E?"":" PhotoView-Slider__willClose")+(g?" "+g:""),role:"dialog",onClick:function(Be){return Be.stopPropagation()},container:j},E&&L.createElement(q2e,null),L.createElement("div",{className:"PhotoView-Slider__Backdrop"+(w?" "+w:"")+(ue===1?" PhotoView-Slider__fadeIn":ue===2?" PhotoView-Slider__fadeOut":""),style:{background:be?"rgba(0, 0, 0, "+be+")":void 0,transitionTimingFunction:_e,transitionDuration:(H?0:Re)+"ms",animationDuration:Re+"ms"},onAnimationEnd:ce}),p&&L.createElement("div",{className:"PhotoView-Slider__BannerWrap"},L.createElement("div",{className:"PhotoView-Slider__Counter"},te+1," / ",de),L.createElement("div",{className:"PhotoView-Slider__BannerRight"},v&&Pe&&v(Pe),L.createElement(V2e,{className:"PhotoView-Slider__toolbarIcon",onClick:se}))),De.map(function(Be,ct){var Ve=ye||te!==0?oe.current-1+ct:te+ct;return L.createElement(e_e,{key:ye?Be.key+"/"+Be.src+"/"+Ve:Be.key,item:Be,speed:Re,easing:_e,visible:E,onReachMove:Se,onReachUp:Ee,onPhotoTap:function(){return ve(a)},onMaskTap:function(){return ve(s)},wrapClassName:b,className:y,style:{left:(innerWidth+20)*Ve+"px",transform:"translate3d("+I+"px, 0px, 0)",transition:H||V?void 0:"transform "+je+"ms "+He},loadingElement:x,brokenElement:C,onPhotoResize:ke,isActive:oe.current===Ve,expose:R})}),!Ul&&p&&L.createElement(L.Fragment,null,(ye||te!==0)&&L.createElement("div",{className:"PhotoView-Slider__ArrowLeft",onClick:function(){return he(te-1,!0)}},L.createElement(W2e,null)),(ye||te+1-1){var w=c.slice();return w.splice(g,1,v),void s({images:w})}s(function(y){return{images:y.images.concat(v)}})},remove:function(v){s(function(g){var w=g.images.filter(function(y){return y.key!==v});return{images:w,index:Math.min(w.length-1,f)}})},show:function(v){var g=c.findIndex(function(w){return w.key===v});s({visible:!0,index:g}),r&&r(!0,g,o)}}),p=Id({close:function(){s({visible:!1}),r&&r(!1,f,o)},changeIndex:function(v){s({index:v}),n&&n(v,o)}}),h=u.useMemo(function(){return mi({},o,m)},[o,m]);return L.createElement(MY.Provider,{value:h},t,L.createElement(t_e,mi({images:c,visible:d,index:f,onIndexChange:p.changeIndex,onClose:p.close},i)))}var DY=function(e){var t,n,r=e.src,i=e.render,a=e.overlay,o=e.width,s=e.height,l=e.triggers,c=l===void 0?["onClick"]:l,d=e.children,f=u.useContext(MY),m=(t=function(){return f.nextId()},(n=u.useRef({sign:!1,fn:void 0}).current).sign||(n.sign=!0,n.fn=t()),n.fn),p=u.useRef(null);u.useImperativeHandle(d==null?void 0:d.ref,function(){return p.current}),u.useEffect(function(){return function(){f.remove(m)}},[]);var h=Id({render:function(g){return i&&i(g)},show:function(g,w){f.show(m),function(y,b){if(d){var x=d.props[y];x&&x(b)}}(g,w)}}),v=u.useMemo(function(){var g={};return c.forEach(function(w){g[w]=h.show.bind(null,w)}),g},[]);return u.useEffect(function(){f.update({key:m,src:r,originRef:p,render:h.render,overlay:a,width:o,height:s})},[r]),d?u.Children.only(u.cloneElement(d,mi({},v,{ref:p}))):null};const a_e=({uid:e,vipLevel:t,content:n,onFaqClick:r,onTransferToAgent:i})=>{const[a,o]=u.useState(),[s,l]=u.useState(!1),[c,d]=u.useState("");console.log("FaqQa vipLevel",t),u.useEffect(()=>{let g=null;try{g=JSON.parse(n),console.log("解析后的FAQ内容:",g)}catch(w){console.error("FAQ内容解析错误:",w)}if(g)if(o(g),t==="0"||!g.answerList||g.answerList.length===0)console.log("使用默认answer:",g.answer),d(g.answer);else{const w=parseInt(t,10),y=g.answerList.find(b=>parseInt(b.vipLevel,10)===w);console.log("查找VIP答案:",{当前VIP等级:t,查找结果:y,可用答案列表:g.answerList}),d(y?y.answer:g.answer)}},[n,t]);const f=async g=>{var w,y;if(console.log("handleRateClicked:",e,g),g==="up"){const b=await R2e(a.uid);console.log("rateUp response:",b.data),b&&b.data&&((w=b==null?void 0:b.data)!=null&&w.data)&&l(!1)}else if(g==="down"){const b=await I2e(a.uid);console.log("rateDown response:",b.data),b&&b.data&&((y=b==null?void 0:b.data)!=null&&y.data)&&l(!0)}},m=()=>{i&&i()},p=()=>c?(a==null?void 0:a.type)===bu?T.jsx(DY,{src:c,children:T.jsx("img",{src:c,alt:""})}):RK(c)?T.jsx("p",{style:{margin:"10px"},children:T.jsx(Kp,{content:c})}):T.jsx(X0,{style:{textAlign:"left"},children:c}):null,h=g=>{r(g,0)},v=()=>!(a!=null&&a.relatedFaqs)||a.relatedFaqs.length===0?(console.log("无相关问题可显示"),null):(console.log("渲染相关问题:",a.relatedFaqs),T.jsxs("div",{style:{marginTop:"10px",borderTop:"1px solid #eee",paddingTop:"10px",textAlign:"left"},children:[T.jsx("div",{style:{fontWeight:"bold",marginBottom:"8px",paddingLeft:"5px"},children:"相关问题:"}),T.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:a.relatedFaqs.map((g,w)=>T.jsx("div",{onClick:()=>h(g),style:{padding:"5px 10px",cursor:"pointer",borderRadius:"4px",backgroundColor:"#f8f8f8",border:"1px solid #eaeaea"},onMouseOver:y=>{y.currentTarget.style.backgroundColor="#f0f0f0"},onMouseOut:y=>{y.currentTarget.style.backgroundColor="#f8f8f8"},children:T.jsx("a",{href:"#",onClick:y=>{y.preventDefault(),console.log("Related FAQ clicked:",g)},style:{color:"#1890ff",textDecoration:"none",display:"block",width:"100%"},children:g.question||"相关问题"})},w))})]}));return T.jsxs(T.Fragment,{children:[T.jsxs(rs,{children:[p(),v()]}),T.jsx(fI,{onClick:f}),s&&T.jsx("div",{style:{marginTop:"10px",textAlign:"center"},children:T.jsx("button",{onClick:m,style:{padding:"5px 15px",backgroundColor:"#1890ff",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"转接人工客服"})})]})};var pI=u.createContext({});function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nparseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const aF=(e,t,n)=>n===0?e:e/100;function Xh(e,t){const n=t||255;return e>n?n:e<0?0:e}class rn{constructor(t){K(this,"isValid",!0),K(this,"r",0),K(this,"g",0),K(this,"b",0),K(this,"a",1),K(this,"_h",void 0),K(this,"_s",void 0),K(this,"_l",void 0),K(this,"_v",void 0),K(this,"_max",void 0),K(this,"_min",void 0),K(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let a=function(o){return i.startsWith(o)};var r=a;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):a("rgb")?this.fromRgbString(i):a("hsl")?this.fromHslString(i):(a("hsv")||a("hsb"))&&this.fromHsvString(i)}else if(t instanceof rn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Xh(t.r),this.g=Xh(t.g),this.b=Xh(t.b),this.a=typeof t.a=="number"?Xh(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Si(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=s=>(r[s]-this[s])*i+this[s],o={r:Si(a("r")),g:Si(a("g")),b:Si(a("b")),a:Si(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>Si((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Si(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Si(this.getSaturation()*100),r=Si(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Xh(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const m=Si(r*255);this.r=m,this.g=m,this.b=m}let a=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,d=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,o=d):l>=1&&l<2?(a=d,o=c):l>=2&&l<3?(o=c,s=d):l>=3&&l<4?(o=d,s=c):l>=4&&l<5?(a=d,s=c):l>=5&&l<6&&(a=c,s=d);const f=r-c/2;this.r=Si((a+f)*255),this.g=Si((o+f)*255),this.b=Si((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=Si(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Si(r*(1-n)*255),d=Si(r*(1-n*l)*255),f=Si(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=d;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=d;break}}fromHsvString(t){const n=B$(t,aF);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=B$(t,aF);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=B$(t,(r,i)=>i.includes("%")?Si(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Tb=2,oF=.16,u_e=.05,d_e=.05,f_e=.15,BY=5,zY=4,m_e=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function sF(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Tb*t:Math.round(e.h)+Tb*t:r=n?Math.round(e.h)+Tb*t:Math.round(e.h)-Tb*t,r<0?r+=360:r>=360&&(r-=360),r}function lF(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-oF*t:t===zY?r=e.s+oF:r=e.s+u_e*t,r>1&&(r=1),n&&t===BY&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function cF(e,t,n){var r;return n?r=e.v+d_e*t:r=e.v-f_e*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Qd(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new rn(e),i=r.toHsv(),a=BY;a>0;a-=1){var o=new rn({h:sF(i,a,!0),s:lF(i,a,!0),v:cF(i,a,!0)});n.push(o)}n.push(r);for(var s=1;s<=zY;s+=1){var l=new rn({h:sF(i,s),s:lF(i,s),v:cF(i,s)});n.push(l)}return t.theme==="dark"?m_e.map(function(c){var d=c.index,f=c.amount;return new rn(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Am={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},jP=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];jP.primary=jP[5];var FP=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];FP.primary=FP[5];var AP=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];AP.primary=AP[5];var Tx=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Tx.primary=Tx[5];var LP=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];LP.primary=LP[5];var BP=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];BP.primary=BP[5];var zP=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];zP.primary=zP[5];var HP=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];HP.primary=HP[5];var cp=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];cp.primary=cp[5];var VP=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];VP.primary=VP[5];var WP=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];WP.primary=WP[5];var UP=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];UP.primary=UP[5];var qP=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];qP.primary=qP[5];var z$={red:jP,volcano:FP,orange:AP,gold:Tx,yellow:LP,lime:BP,green:zP,cyan:HP,blue:cp,geekblue:VP,purple:WP,magenta:UP,grey:qP};function uF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):p_e}function p2(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function h_e(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function hI(e){return Array.from((KP.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function VY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!va())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=h_e(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(dF,o),s&&a&&l.setAttribute(fF,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=p2(t),d=c.firstChild;if(r){if(s){var f=(t.styles||hI(c)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(dF)))return!1;var p=Number(m.getAttribute(fF)||0);return a>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,d)}else c.appendChild(l);return l}function WY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=p2(t);return(t.styles||hI(n)).find(function(r){return r.getAttribute(HY(t))===e})}function YP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=WY(e,t);if(n){var r=p2(t);r.removeChild(n)}}function v_e(e,t){var n=KP.get(e);if(!n||!GP(document,n)){var r=VY("",t),i=r.parentNode;KP.set(e,i),e.removeChild(r)}}function h2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=p2(n),i=hI(r),a=A(A({},n),{},{styles:i});v_e(r,a);var o=WY(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var d=VY(e,a);return d.setAttribute(HY(a),t),d}function UY(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function g_e(e){return UY(e)instanceof ShadowRoot}function Ox(e){return g_e(e)?UY(e):null}var XP={},b_e=function(t){};function y_e(e,t){}function w_e(e,t){}function x_e(){XP={}}function qY(e,t,n){!t&&!XP[n]&&(e(!1,n),XP[n]=!0)}function Fn(e,t){qY(y_e,e,t)}function S_e(e,t){qY(w_e,e,t)}Fn.preMessage=b_e;Fn.resetWarned=x_e;Fn.noteOnce=S_e;function C_e(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function __e(e,t){Fn(e,"[@ant-design/icons] ".concat(t))}function mF(e){return mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(mt(e.icon)==="object"||typeof e.icon=="function")}function pF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[C_e(n)]=r}return t},{})}function QP(e,t,n){return n?L.createElement(e.tag,A(A({key:t},pF(e.attrs)),n),(e.children||[]).map(function(r,i){return QP(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):L.createElement(e.tag,A({key:t},pF(e.attrs)),(e.children||[]).map(function(r,i){return QP(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function GY(e){return Qd(e)[0]}function KY(e){return e?Array.isArray(e)?e:[e]:[]}var k_e=` -.anticon { - display: inline-flex; - align-items: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,$_e=function(t){var n=u.useContext(pI),r=n.csp,i=n.prefixCls,a=n.layer,o=k_e;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { -`).concat(o,` -}`)),u.useEffect(function(){var s=t.current,l=Ox(s);h2(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])},E_e=["icon","className","onClick","style","primaryColor","secondaryColor"],Kv={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function P_e(e){var t=e.primaryColor,n=e.secondaryColor;Kv.primaryColor=t,Kv.secondaryColor=n||GY(t),Kv.calculated=!!n}function T_e(){return A({},Kv)}var Yp=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=ft(t,E_e),c=u.useRef(),d=Kv;if(o&&(d={primaryColor:o,secondaryColor:s||GY(o)}),$_e(c),__e(mF(n),"icon should be icon definiton, but got ".concat(n)),!mF(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),QP(f.icon,"svg-".concat(f.name),A(A({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Yp.displayName="IconReact";Yp.getTwoToneColors=T_e;Yp.setTwoToneColors=P_e;function YY(e){var t=KY(e),n=ie(t,2),r=n[0],i=n[1];return Yp.setTwoToneColors({primaryColor:r,secondaryColor:i})}function O_e(){var e=Yp.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var R_e=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];YY(cp.primary);var Wt=u.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=ft(e,R_e),d=u.useContext(pI),f=d.prefixCls,m=f===void 0?"anticon":f,p=d.rootClassName,h=ne(p,m,K(K({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!i||r.name==="loading"),n),v=o;v===void 0&&s&&(v=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=KY(l),y=ie(w,2),b=y[0],x=y[1];return u.createElement("span",Oe({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),u.createElement(Yp,{icon:r,primaryColor:b,secondaryColor:x,style:g}))});Wt.displayName="AntdIcon";Wt.getTwoToneColor=O_e;Wt.setTwoToneColor=YY;var I_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},M_e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:I_e}))},N_e=u.forwardRef(M_e),D_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},j_e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:D_e}))},F_e=u.forwardRef(j_e),A_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},L_e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:A_e}))},B_e=u.forwardRef(L_e),z_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},H_e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:z_e}))},V_e=u.forwardRef(H_e),W_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},U_e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:W_e}))},XY=u.forwardRef(U_e),q_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},G_e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:q_e}))},K_e=u.forwardRef(G_e),Y_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},X_e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Y_e}))},Q_e=u.forwardRef(X_e),Z_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},J_e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Z_e}))},eke=u.forwardRef(J_e),tke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},nke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:tke}))},Z0=u.forwardRef(nke),rke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},ike=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:rke}))},vI=u.forwardRef(ike),ake={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},oke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:ake}))},ske=u.forwardRef(oke),lke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},cke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:lke}))},QY=u.forwardRef(cke),uke={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},dke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:uke}))},$c=u.forwardRef(dke),fke={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},mke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:fke}))},Ys=u.forwardRef(mke),pke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},hke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:pke}))},vke=u.forwardRef(hke),gke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},bke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:gke}))},yke=u.forwardRef(bke),wke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},xke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:wke}))},ZY=u.forwardRef(xke),Ske={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Cke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Ske}))},hF=u.forwardRef(Cke),_ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},kke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:_ke}))},vF=u.forwardRef(kke),$ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Eke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:$ke}))},J0=u.forwardRef(Eke),Pke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Tke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Pke}))},Oke=u.forwardRef(Tke),Rke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Ike=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Rke}))},JY=u.forwardRef(Ike),Mke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Nke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Mke}))},e1=u.forwardRef(Nke),Dke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},jke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Dke}))},Fke=u.forwardRef(jke),Ake={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Lke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Ake}))},v2=u.forwardRef(Lke),Bke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},zke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Bke}))},eX=u.forwardRef(zke),Hke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Vke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Hke}))},g2=u.forwardRef(Vke),Wke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},Uke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Wke}))},qke=u.forwardRef(Uke),Gke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},Kke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Gke}))},Yke=u.forwardRef(Kke),Xke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},Qke=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Xke}))},Zke=u.forwardRef(Qke),Jke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},e$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:Jke}))},tX=u.forwardRef(e$e),t$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},n$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:t$e}))},r$e=u.forwardRef(n$e),i$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},a$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:i$e}))},o$e=u.forwardRef(a$e),s$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},l$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:s$e}))},c$e=u.forwardRef(l$e),u$e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},d$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:u$e}))},f$e=u.forwardRef(d$e),m$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},p$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:m$e}))},h$e=u.forwardRef(p$e),v$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},g$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:v$e}))},b$e=u.forwardRef(g$e),y$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},w$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:y$e}))},x$e=u.forwardRef(w$e),S$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},C$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:S$e}))},nX=u.forwardRef(C$e),_$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},k$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:_$e}))},$$e=u.forwardRef(k$e),E$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},P$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:E$e}))},T$e=u.forwardRef(P$e),O$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"},R$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:O$e}))},I$e=u.forwardRef(R$e),M$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},N$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:M$e}))},D$e=u.forwardRef(N$e),j$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},F$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:j$e}))},gI=u.forwardRef(F$e),A$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},L$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:A$e}))},B$e=u.forwardRef(L$e),z$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},H$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:z$e}))},Eu=u.forwardRef(H$e),V$e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},W$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:V$e}))},js=u.forwardRef(W$e),U$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},q$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:U$e}))},G$e=u.forwardRef(q$e),K$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Y$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:K$e}))},ZP=u.forwardRef(Y$e),X$e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},Q$e=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:X$e}))},Z$e=u.forwardRef(Q$e),J$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},eEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:J$e}))},bI=u.forwardRef(eEe),tEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},nEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:tEe}))},rEe=u.forwardRef(nEe),iEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},aEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:iEe}))},oEe=u.forwardRef(aEe),sEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"},lEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:sEe}))},rX=u.forwardRef(lEe),cEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},uEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:cEe}))},Fs=u.forwardRef(uEe),dEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},fEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:dEe}))},mEe=u.forwardRef(fEe),pEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},hEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:pEe}))},vEe=u.forwardRef(hEe),gEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},bEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:gEe}))},b2=u.forwardRef(bEe),yEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},wEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:yEe}))},xEe=u.forwardRef(wEe),SEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},CEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:SEe}))},_Ee=u.forwardRef(CEe),kEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},$Ee=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:kEe}))},iX=u.forwardRef($Ee),EEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},PEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:EEe}))},gF=u.forwardRef(PEe),TEe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},OEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:TEe}))},REe=u.forwardRef(OEe),IEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},MEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:IEe}))},aX=u.forwardRef(MEe),NEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},DEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:NEe}))},jEe=u.forwardRef(DEe),FEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},AEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:FEe}))},LEe=u.forwardRef(AEe),BEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},zEe=function(t,n){return u.createElement(Wt,Oe({},t,{ref:n,icon:BEe}))},HEe=u.forwardRef(zEe),oX={exports:{}},tr={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var yI=Symbol.for("react.element"),wI=Symbol.for("react.portal"),y2=Symbol.for("react.fragment"),w2=Symbol.for("react.strict_mode"),x2=Symbol.for("react.profiler"),S2=Symbol.for("react.provider"),C2=Symbol.for("react.context"),VEe=Symbol.for("react.server_context"),_2=Symbol.for("react.forward_ref"),k2=Symbol.for("react.suspense"),$2=Symbol.for("react.suspense_list"),E2=Symbol.for("react.memo"),P2=Symbol.for("react.lazy"),WEe=Symbol.for("react.offscreen"),sX;sX=Symbol.for("react.module.reference");function is(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yI:switch(e=e.type,e){case y2:case x2:case w2:case k2:case $2:return e;default:switch(e=e&&e.$$typeof,e){case VEe:case C2:case _2:case P2:case E2:case S2:return e;default:return t}}case wI:return t}}}tr.ContextConsumer=C2;tr.ContextProvider=S2;tr.Element=yI;tr.ForwardRef=_2;tr.Fragment=y2;tr.Lazy=P2;tr.Memo=E2;tr.Portal=wI;tr.Profiler=x2;tr.StrictMode=w2;tr.Suspense=k2;tr.SuspenseList=$2;tr.isAsyncMode=function(){return!1};tr.isConcurrentMode=function(){return!1};tr.isContextConsumer=function(e){return is(e)===C2};tr.isContextProvider=function(e){return is(e)===S2};tr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yI};tr.isForwardRef=function(e){return is(e)===_2};tr.isFragment=function(e){return is(e)===y2};tr.isLazy=function(e){return is(e)===P2};tr.isMemo=function(e){return is(e)===E2};tr.isPortal=function(e){return is(e)===wI};tr.isProfiler=function(e){return is(e)===x2};tr.isStrictMode=function(e){return is(e)===w2};tr.isSuspense=function(e){return is(e)===k2};tr.isSuspenseList=function(e){return is(e)===$2};tr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===y2||e===x2||e===w2||e===k2||e===$2||e===WEe||typeof e=="object"&&e!==null&&(e.$$typeof===P2||e.$$typeof===E2||e.$$typeof===S2||e.$$typeof===C2||e.$$typeof===_2||e.$$typeof===sX||e.getModuleId!==void 0)};tr.typeOf=is;oX.exports=tr;var Yy=oX.exports;function gc(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var UEe=Symbol.for("react.element"),qEe=Symbol.for("react.transitional.element"),GEe=Symbol.for("react.fragment");function lX(e){return e&&mt(e)==="object"&&(e.$$typeof===UEe||e.$$typeof===qEe)&&e.type===GEe}var Vg=function(t,n){typeof t=="function"?t(n):mt(t)==="object"&&t&&"current"in t&&(t.current=n)},di=function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=[];return L.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Lr(r)):lX(r)&&r.props?n=n.concat(Lr(r.props.children,t)):n.push(r))}),n}function Wg(e){return e instanceof HTMLElement||e instanceof SVGElement}function T2(e){return e&&mt(e)==="object"&&Wg(e.nativeElement)?e.nativeElement:Wg(e)?e:null}function Yv(e){var t=T2(e);if(t)return t;if(e instanceof L.Component){var n;return(n=Pg.findDOMNode)===null||n===void 0?void 0:n.call(Pg,e)}return null}var JP=u.createContext(null);function YEe(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),i=u.useRef([]),a=u.useContext(JP),o=u.useCallback(function(s,l,c){r.current+=1;var d=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(s,l,c)},[n,a]);return u.createElement(JP.Provider,{value:o},t)}var cX=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i0},e.prototype.connect_=function(){!eT||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),t3e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!eT||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=e3e.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),uX=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof up(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new u3e(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof up(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new d3e(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),fX=typeof WeakMap<"u"?new WeakMap:new cX,mX=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=n3e.getInstance(),r=new f3e(t,n,this);fX.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){mX.prototype[e]=function(){var t;return(t=fX.get(this))[e].apply(t,arguments)}});var m3e=function(){return typeof Rx.ResizeObserver<"u"?Rx.ResizeObserver:mX}(),iu=new Map;function p3e(e){e.forEach(function(t){var n,r=t.target;(n=iu.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var pX=new m3e(p3e);function h3e(e,t){iu.has(e)||(iu.set(e,new Set),pX.observe(e)),iu.get(e).add(t)}function v3e(e,t){iu.has(e)&&(iu.get(e).delete(t),iu.get(e).size||(pX.unobserve(e),iu.delete(e)))}function cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yF(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:1;wF+=1;var r=wF;function i(a){if(a===0)bX(r),t();else{var o=vX(function(){i(a-1)});CI.set(r,o)}}return i(n),r};tn.cancel=function(e){var t=CI.get(e);return bX(e),gX(t)};function Gg(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function t1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function k3e(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var xF="data-rc-order",SF="data-rc-priority",$3e="rc-util-key",tT=new Map;function yX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):$3e}function R2(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function E3e(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function _I(e){return Array.from((tT.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function wX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!t1())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=E3e(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(xF,o),s&&a&&l.setAttribute(SF,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=R2(t),d=c.firstChild;if(r){if(s){var f=(t.styles||_I(c)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(xF)))return!1;var p=Number(m.getAttribute(SF)||0);return a>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,d)}else c.appendChild(l);return l}function xX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=R2(t);return(t.styles||_I(n)).find(function(r){return r.getAttribute(yX(t))===e})}function SX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xX(e,t);if(n){var r=R2(t);r.removeChild(n)}}function P3e(e,t){var n=tT.get(e);if(!n||!k3e(document,n)){var r=wX("",t),i=r.parentNode;tT.set(e,i),e.removeChild(r)}}function Xv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=R2(n),i=_I(r),a=A(A({},n),{},{styles:i});P3e(r,a);var o=xX(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var d=wX(e,a);return d.setAttribute(yX(a),t),d}function T3e(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var nT={},O3e=function(t){};function R3e(e,t){}function I3e(e,t){}function M3e(){nT={}}function CX(e,t,n){!t&&!nT[n]&&(e(!1,n),nT[n]=!0)}function I2(e,t){CX(R3e,e,t)}function Mx(e,t){CX(I3e,e,t)}I2.preMessage=O3e;I2.resetWarned=M3e;I2.noteOnce=Mx;function CF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(I2(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,d){var f=ie(c,2),m=f[1];return i.internalGet(d)[1]0,void 0),_F+=1}return ur(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),H$=new kI;function Zd(e){var t=Array.isArray(e)?e:[e];return H$.has(t)||H$.set(t,new kX(t)),H$.get(t)}var L3e=new WeakMap,V$={};function B3e(e,t){for(var n=L3e,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=A(A({},i),{},(r={},K(r,dp,t),K(r,Ps,n),r)),s=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var Xy=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},z3e=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=ie(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},$X=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,c=ie(o,2),d=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[d])){var m,p=Xy(d,r==null?void 0:r.prefix);i[p]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(p,")")}}),[a,z3e(i,n,{scope:r==null?void 0:r.scope})]},EF=t1()?u.useLayoutEffect:u.useEffect,H3e=function(t,n){var r=u.useRef(!0);EF(function(){return t(r.current)},n),EF(function(){return r.current=!1,function(){r.current=!0}},[])},V3e=A({},zd),PF=V3e.useInsertionEffect,W3e=function(t,n,r){u.useMemo(t,r),H3e(function(){return n(!0)},r)},U3e=PF?function(e,t,n){return PF(function(){return e(),t()},n)}:W3e,q3e=A({},zd),G3e=q3e.useInsertionEffect,K3e=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},Y3e=function(){return function(t){t()}},X3e=typeof G3e<"u"?K3e:Y3e;function $I(e,t,n,r,i){var a=u.useContext(fp),o=a.cache,s=[e].concat(Fe(t)),l=rT(s),c=X3e([l]),d=function(h){o.opUpdate(l,function(v){var g=v||[void 0,void 0],w=ie(g,2),y=w[0],b=y===void 0?0:y,x=w[1],C=x,S=C||n(),_=[b,S];return h?h(_):_})};u.useMemo(function(){d()},[l]);var f=o.opGet(l),m=f[1];return U3e(function(){i==null||i(m)},function(p){return d(function(h){var v=ie(h,2),g=v[0],w=v[1];return p&&g===0&&(i==null||i(m)),[g+1,w]}),function(){o.opUpdate(l,function(h){var v=h||[],g=ie(v,2),w=g[0],y=w===void 0?0:w,b=g[1],x=y-1;return x===0?(c(function(){(p||!o.opGet(l))&&(r==null||r(b,!1))}),null):[y-1,b]})}},[l]),m}var Q3e={},Z3e="css",cd=new Map;function J3e(e){cd.set(e,(cd.get(e)||0)+1)}function e4e(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(dp,'="').concat(e,'"]'));n.forEach(function(r){if(r[au]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var t4e=0;function n4e(e,t){cd.set(e,(cd.get(e)||0)-1);var n=Array.from(cd.keys()),r=n.filter(function(i){var a=cd.get(i)||0;return a<=0});n.length-r.length>t4e&&r.forEach(function(i){e4e(i,t),cd.delete(i)})}var EX=function(t,n,r,i){var a=r.getDerivativeToken(t),o=A(A({},a),n);return i&&(o=i(o)),o},PX="token";function EI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(fp),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?Q3e:l,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,p=B3e(function(){return Object.assign.apply(Object,[{}].concat(Fe(t)))},t),h=Qv(p),v=Qv(c),g=m?Qv(m):"",w=$I(PX,[s,e.id,h,v,g],function(){var y,b=f?f(p,c,e):EX(p,c,e,d),x=A({},b),C="";if(m){var S=$X(b,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),_=ie(S,2);b=_[0],C=_[1]}var k=$F(b,s);b._tokenKey=k,x._tokenKey=$F(x,s);var $=(y=m==null?void 0:m.key)!==null&&y!==void 0?y:k;b._themeKey=$,J3e($);var E="".concat(Z3e,"-").concat(Gg(k));return b._hashId=E,[b,E,x,C,(m==null?void 0:m.key)||""]},function(y){n4e(y[0]._themeKey,i)},function(y){var b=ie(y,4),x=b[0],C=b[3];if(m&&C){var S=Xv(C,Gg("css-variables-".concat(x._themeKey)),{mark:Ps,prepend:"queue",attachTo:a,priority:-999});S[au]=i,S.setAttribute(dp,x._themeKey)}});return w}var r4e=function(t,n,r){var i=ie(t,5),a=i[2],o=i[3],s=i[4],l=r||{},c=l.plain;if(!o)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=Nx(o,s,d,m,c);return[f,d,p]},i4e={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TX="comm",OX="rule",RX="decl",a4e="@import",o4e="@keyframes",s4e="@layer",IX=Math.abs,PI=String.fromCharCode;function MX(e){return e.trim()}function Qy(e,t,n){return e.replace(t,n)}function l4e(e,t,n){return e.indexOf(t,n)}function Kg(e,t){return e.charCodeAt(t)|0}function mp(e,t,n){return e.slice(t,n)}function ul(e){return e.length}function c4e(e){return e.length}function Ob(e,t){return t.push(e),e}var M2=1,pp=1,NX=0,Ko=0,ai=0,Xp="";function TI(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:M2,column:pp,length:o,return:"",siblings:s}}function u4e(){return ai}function d4e(){return ai=Ko>0?Kg(Xp,--Ko):0,pp--,ai===10&&(pp=1,M2--),ai}function Ts(){return ai=Ko2||Yg(ai)>3?"":" "}function h4e(e,t){for(;--t&&Ts()&&!(ai<48||ai>102||ai>57&&ai<65||ai>70&&ai<97););return N2(e,Zy()+(t<6&&ou()==32&&Ts()==32))}function aT(e){for(;Ts();)switch(ai){case e:return Ko;case 34:case 39:e!==34&&e!==39&&aT(ai);break;case 40:e===41&&aT(e);break;case 92:Ts();break}return Ko}function v4e(e,t){for(;Ts()&&e+ai!==57;)if(e+ai===84&&ou()===47)break;return"/*"+N2(t,Ko-1)+"*"+PI(e===47?e:Ts())}function g4e(e){for(;!Yg(ou());)Ts();return N2(e,Ko)}function b4e(e){return m4e(Jy("",null,null,null,[""],e=f4e(e),0,[0],e))}function Jy(e,t,n,r,i,a,o,s,l){for(var c=0,d=0,f=o,m=0,p=0,h=0,v=1,g=1,w=1,y=0,b="",x=i,C=a,S=r,_=b;g;)switch(h=y,y=Ts()){case 40:if(h!=108&&Kg(_,f-1)==58){l4e(_+=Qy(W$(y),"&","&\f"),"&\f",IX(c?s[c-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:_+=W$(y);break;case 9:case 10:case 13:case 32:_+=p4e(h);break;case 92:_+=h4e(Zy()-1,7);continue;case 47:switch(ou()){case 42:case 47:Ob(y4e(v4e(Ts(),Zy()),t,n,l),l),(Yg(h||1)==5||Yg(ou()||1)==5)&&ul(_)&&mp(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*v:s[c++]=ul(_)*w;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+d:w==-1&&(_=Qy(_,/\f/g,"")),p>0&&(ul(_)-f||v===0&&h===47)&&Ob(p>32?OF(_+";",r,n,f-1,l):OF(Qy(_," ","")+";",r,n,f-2,l),l);break;case 59:_+=";";default:if(Ob(S=TF(_,t,n,c,d,i,s,b,x=[],C=[],f,a),a),y===123)if(d===0)Jy(_,t,S,S,x,a,f,s,C);else switch(m===99&&Kg(_,3)===110?100:m){case 100:case 108:case 109:case 115:Jy(e,S,S,r&&Ob(TF(e,S,S,0,0,i,s,b,i,x=[],f,C),C),i,C,f,s,r?x:C);break;default:Jy(_,S,S,S,[""],C,0,s,C)}}c=d=p=0,v=w=1,b=_="",f=o;break;case 58:f=1+ul(_),p=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&d4e()==125)continue}switch(_+=PI(y),y*v){case 38:w=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(ul(_)-1)*w,w=1;break;case 64:ou()===45&&(_+=W$(Ts())),m=ou(),d=f=ul(b=_+=g4e(Zy())),y++;break;case 45:h===45&&ul(_)==2&&(v=0)}}return a}function TF(e,t,n,r,i,a,o,s,l,c,d,f){for(var m=i-1,p=i===0?a:[""],h=c4e(p),v=0,g=0,w=0;v0?p[y]+" "+b:Qy(b,/&\f/g,p[y])))&&(l[w++]=x);return TI(e,t,n,i===0?OX:s,l,c,d,f)}function y4e(e,t,n,r){return TI(e,t,n,TX,PI(u4e()),mp(e,2,-2),0,r)}function OF(e,t,n,r,i){return TI(e,t,n,RX,mp(e,0,r),mp(e,r+1,-1),r,i)}function oT(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",p={};function h(w){var y=w.getName(s);if(!p[y]){var b=e(w.style,n,{root:!1,parentSelectors:o}),x=ie(b,1),C=x[0];p[y]="@keyframes ".concat(w.getName(s)).concat(C)}}function v(w){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(b){Array.isArray(b)?v(b,y):b&&y.push(b)}),y}var g=v(Array.isArray(t)?t:[t]);return g.forEach(function(w){var y=typeof w=="string"&&!i?{}:w;if(typeof y=="string")m+="".concat(y,` -`);else if(y._keyframe)h(y);else{var b=f.reduce(function(x,C){var S;return(C==null||(S=C.visit)===null||S===void 0?void 0:S.call(C,x))||x},y);Object.keys(b).forEach(function(x){var C=b[x];if(mt(C)==="object"&&C&&(x!=="animationName"||!C._keyframe)&&!k4e(C)){var S=!1,_=x.trim(),k=!1;(i||a)&&s?_.startsWith("@")?S=!0:_==="&"?_=IF("",s,c):_=IF(x,s,c):i&&!s&&(_==="&"||_==="")&&(_="",k=!0);var $=e(C,n,{root:k,injectHash:S,parentSelectors:[].concat(Fe(o),[_])}),E=ie($,2),P=E[0],M=E[1];p=A(A({},p),M),m+="".concat(_).concat(P)}else{let N=function(R,D){var F=R.replace(/[A-Z]/g,function(I){return"-".concat(I.toLowerCase())}),z=D;!i4e[R]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),R==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(h(D),z=D.getName(s)),m+="".concat(F,":").concat(z,";")};var j,O=(j=C==null?void 0:C.value)!==null&&j!==void 0?j:C;mt(C)==="object"&&C!==null&&C!==void 0&&C[FX]&&Array.isArray(O)?O.forEach(function(R){N(x,R)}):N(x,O)}})}}),i?l&&(m="@layer ".concat(l.name," {").concat(m,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(w){return"@layer ".concat(w,", ").concat(l.name,";")}).join(` -`))):m="{".concat(m,"}"),[m,p]};function AX(e,t){return Gg("".concat(e.join("%")).concat(t))}function E4e(){return null}var LX="style";function Dx(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,d=u.useContext(fp),f=d.autoClear;d.mock;var m=d.defaultCache,p=d.hashPriority,h=d.container,v=d.ssrInline,g=d.transformers,w=d.linters,y=d.cache,b=d.layer,x=n._tokenKey,C=[x];b&&C.push("layer"),C.push.apply(C,Fe(r));var S=iT,_=$I(LX,C,function(){var M=C.join("|");if(S4e(M)){var j=C4e(M),O=ie(j,2),N=O[0],R=O[1];if(N)return[N,x,R,{},s,c]}var D=t(),F=$4e(D,{hashId:i,hashPriority:p,layer:b?a:void 0,path:r.join("-"),transformers:g,linters:w}),z=ie(F,2),I=z[0],H=z[1],V=ew(I),B=AX(C,V);return[V,x,B,H,s,c]},function(M,j){var O=ie(M,3),N=O[2];(j||f)&&iT&&SX(N,{mark:Ps})},function(M){var j=ie(M,4),O=j[0];j[1];var N=j[2],R=j[3];if(S&&O!==DX){var D={mark:Ps,prepend:b?!1:"queue",attachTo:h,priority:c},F=typeof o=="function"?o():o;F&&(D.csp={nonce:F});var z=[],I=[];Object.keys(R).forEach(function(V){V.startsWith("@layer")?z.push(V):I.push(V)}),z.forEach(function(V){Xv(ew(R[V]),"_layer-".concat(V),A(A({},D),{},{prepend:!0}))});var H=Xv(O,N,D);H[au]=y.instanceId,H.setAttribute(dp,x),I.forEach(function(V){Xv(ew(R[V]),"_effect-".concat(V),D)})}}),k=ie(_,3),$=k[0],E=k[1],P=k[2];return function(M){var j;if(!v||S||!m)j=u.createElement(E4e,null);else{var O;j=u.createElement("style",Oe({},(O={},K(O,dp,E),K(O,Ps,P),O),{dangerouslySetInnerHTML:{__html:$}}))}return u.createElement(u.Fragment,null,j,M)}}var P4e=function(t,n,r){var i=ie(t,6),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],d=i[5],f=r||{},m=f.plain;if(c)return null;var p=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return p=Nx(a,o,s,h,m),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var g=ew(l[v]),w=Nx(g,o,"_effect-".concat(v),h,m);v.startsWith("@layer")?p=w+p:p+=w}}),[d,s,p]},BX="cssVar",T4e=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,d=u.useContext(fp),f=d.cache.instanceId,m=d.container,p=s._tokenKey,h=[].concat(Fe(t.path),[r,c,p]),v=$I(BX,h,function(){var g=n(),w=$X(g,r,{prefix:i,unitless:a,ignore:o,scope:c}),y=ie(w,2),b=y[0],x=y[1],C=AX(h,x);return[b,x,C,r]},function(g){var w=ie(g,3),y=w[2];iT&&SX(y,{mark:Ps})},function(g){var w=ie(g,3),y=w[1],b=w[2];if(y){var x=Xv(y,b,{mark:Ps,prepend:"queue",attachTo:m,priority:-999});x[au]=f,x.setAttribute(dp,r)}});return v},O4e=function(t,n,r){var i=ie(t,4),a=i[1],o=i[2],s=i[3],l=r||{},c=l.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Nx(a,s,o,f,c);return[d,o,m]},Qh;Qh={},K(Qh,LX,P4e),K(Qh,PX,r4e),K(Qh,BX,O4e);var on=function(){function e(t,n){cr(this,e),K(this,"name",void 0),K(this,"style",void 0),K(this,"_keyframe",!0),this.name=t,this.style=n}return ur(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Hf(e){return e.notSplit=!0,e}Hf(["borderTop","borderBottom"]),Hf(["borderTop"]),Hf(["borderBottom"]),Hf(["borderLeft","borderRight"]),Hf(["borderLeft"]),Hf(["borderRight"]);function OI(e){return jY(e)||hX(e)||m2(e)||FY()}function $i(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!$i(e,t.slice(0,-1))?e:zX(e,t,n,r)}function R4e(e){return mt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function MF(e){return Array.isArray(e)?[]:{}}var I4e=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wm(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=M4e,e},HX=u.createContext(void 0);var VX={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},WX={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},D4e=A(A({},WX),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const UX={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},jx={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},D4e),timePickerLocale:Object.assign({},UX)},Ua="${label} is not a valid ${type}",Yo={locale:"en",Pagination:VX,DatePicker:jx,TimePicker:UX,Calendar:jx,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ua,method:Ua,array:Ua,object:Ua,number:Ua,date:Ua,boolean:Ua,integer:Ua,float:Ua,regexp:Ua,email:Ua,url:Ua,hex:Ua},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let tw=Object.assign({},Yo.Modal),nw=[];const NF=()=>nw.reduce((e,t)=>Object.assign(Object.assign({},e),t),Yo.Modal);function j4e(e){if(e){const t=Object.assign({},e);return nw.push(t),tw=NF(),()=>{nw=nw.filter(n=>n!==t),tw=NF()}}tw=Object.assign({},Yo.Modal)}function qX(){return tw}const RI=u.createContext(void 0),ya=(e,t)=>{const n=u.useContext(RI),r=u.useMemo(()=>{var a;const o=t||Yo[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=u.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Yo.locale:a},[n]);return[r,i]},F4e="internalMark",A4e=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>j4e(t==null?void 0:t.Modal),[t]);const i=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(RI.Provider,{value:i},n)},II={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},hp=Object.assign(Object.assign({},II),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function GX(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,f=n(l),m=n(i),p=n(a),h=n(o),v=n(s),g=r(c,d),w=e.colorLink||e.colorInfo,y=n(w),b=new rn(h[1]).mix(new rn(h[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new rn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const L4e=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function B4e(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},L4e(r))}const KX=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function rw(e){return(e+8)/e}function z4e(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:rw(n)}))}const YX=e=>{const t=z4e(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function H4e(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Eo=(e,t)=>new rn(e).setA(t).toRgbString(),Zh=(e,t)=>new rn(e).darken(t).toHexString(),V4e=e=>{const t=Qd(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},W4e=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Eo(r,.88),colorTextSecondary:Eo(r,.65),colorTextTertiary:Eo(r,.45),colorTextQuaternary:Eo(r,.25),colorFill:Eo(r,.15),colorFillSecondary:Eo(r,.06),colorFillTertiary:Eo(r,.04),colorFillQuaternary:Eo(r,.02),colorBgSolid:Eo(r,1),colorBgSolidHover:Eo(r,.75),colorBgSolidActive:Eo(r,.95),colorBgLayout:Zh(n,4),colorBgContainer:Zh(n,0),colorBgElevated:Zh(n,0),colorBgSpotlight:Eo(r,.85),colorBgBlur:"transparent",colorBorder:Zh(n,15),colorBorderSecondary:Zh(n,6)}};function n1(e){Am.pink=Am.magenta,z$.pink=z$.magenta;const t=Object.keys(II).map(n=>{const r=e[n]===Am[n]?z$[n]:Qd(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),GX(e,{generateColorPalettes:V4e,generateNeutralColorPalettes:W4e})),YX(e.fontSize)),H4e(e)),KX(e)),B4e(e))}const XX=Zd(n1),Xg={token:hp,override:{override:hp},hashed:!0},MI=L.createContext(Xg),Qg="ant",D2="anticon",U4e=["outlined","borderless","filled"],q4e=(e,t)=>t||(e?`${Qg}-${e}`:Qg),Ct=u.createContext({getPrefixCls:q4e,iconPrefixCls:D2}),G4e=`-ant-${Date.now()}-${Math.random()}`;function K4e(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new rn(o),c=Qd(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new rn(t.primaryColor),s=Qd(o.toRgbString());s.forEach((c,d)=>{n[`primary-${d+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new rn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` - :root { - ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(` -`)} - } - `.trim()}function Y4e(e,t){const n=K4e(e,t);va()&&h2(n,`${G4e}-dynamic-theme`)}const Br=u.createContext(!1),NI=e=>{let{children:t,disabled:n}=e;const r=u.useContext(Br);return u.createElement(Br.Provider,{value:n??r},t)},Jd=u.createContext(void 0),X4e=e=>{let{children:t,size:n}=e;const r=u.useContext(Jd);return u.createElement(Jd.Provider,{value:n||r},t)};function Q4e(){const e=u.useContext(Br),t=u.useContext(Jd);return{componentDisabled:e,componentSize:t}}function Xo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Fn(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var d=0;d1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>aPe&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),BF=new oPe;function sPe(e,t){return L.useMemo(function(){var n=BF.get(t);if(n)return n;var r=e();return BF.set(t,r),r},t)}var lPe=function(){return{}};function eQ(e){var t=e.useCSP,n=t===void 0?lPe:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(m,p,h,v){var g=Array.isArray(m)?m[0]:m;function w(k){return"".concat(String(g)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var y=(v==null?void 0:v.unitless)||{},b=typeof s=="function"?s(m):{},x=A(A({},b),{},K({},w("zIndexPopup"),!0));Object.keys(y).forEach(function(k){x[w(k)]=y[k]});var C=A(A({},v),{},{unitless:x,prefixToken:w}),S=d(m,p,h,C),_=c(g,h,C);return function(k){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,E=S(k,$),P=ie(E,2),M=P[1],j=_($),O=ie(j,2),N=O[0],R=O[1];return[N,M,R]}}function c(m,p,h){var v=h.unitless,g=h.injectStyle,w=g===void 0?!0:g,y=h.prefixToken,b=h.ignore,x=function(_){var k=_.rootCls,$=_.cssVar,E=$===void 0?{}:$,P=r(),M=P.realToken;return T4e({path:[m],prefix:E.prefix,key:E.key,unitless:v,ignore:b,token:M,scope:k},function(){var j=LF(m,M,p),O=FF(m,M,j,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(j).forEach(function(N){O[y(N)]=O[N],delete O[N]}),O}),null},C=function(_){var k=r(),$=k.cssVar;return[function(E){return w&&$?L.createElement(L.Fragment,null,L.createElement(x,{rootCls:_,cssVar:$,component:m}),E):E},$==null?void 0:$.key]};return C}function d(m,p,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(m)?m:[m,m],w=ie(g,1),y=w[0],b=g.join("-"),x=e.layer||{name:"antd"};return function(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,_=r(),k=_.theme,$=_.realToken,E=_.hashId,P=_.token,M=_.cssVar,j=i(),O=j.rootPrefixCls,N=j.iconPrefixCls,R=n(),D=M?"css":"js",F=sPe(function(){var W=new Set;return M&&Object.keys(v.unitless||{}).forEach(function(U){W.add(Xy(U,M.prefix)),W.add(Xy(U,DF(y,M.prefix)))}),tPe(D,W)},[D,y,M==null?void 0:M.prefix]),z=iPe(D),I=z.max,H=z.min,V={theme:k,token:P,hashId:E,nonce:function(){return R.nonce},clientOnly:v.clientOnly,layer:x,order:v.order||-999};typeof a=="function"&&Dx(A(A({},V),{},{clientOnly:!1,path:["Shared",O]}),function(){return a(P,{prefix:{rootPrefixCls:O,iconPrefixCls:N},csp:R})});var B=Dx(A(A({},V),{},{path:[b,C,N]}),function(){if(v.injectStyle===!1)return[];var W=rPe(P),U=W.token,X=W.flush,q=LF(y,$,h),Y=".".concat(C),re=FF(y,$,q,{deprecatedTokens:v.deprecatedTokens});M&&q&&mt(q)==="object"&&Object.keys(q).forEach(function(Z){q[Z]="var(".concat(Xy(Z,DF(y,M.prefix)),")")});var G=Yt(U,{componentCls:Y,prefixCls:C,iconCls:".".concat(N),antCls:".".concat(O),calc:F,max:I,min:H},M?q:re),Q=p(G,{hashId:E,prefixCls:C,rootPrefixCls:O,iconPrefixCls:N});X(y,re);var J=typeof o=="function"?o(G,C,S,v.resetFont):null;return[v.resetStyle===!1?null:J,Q]});return[B,E]}}function f(m,p,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(m,p,h,A({resetStyle:!1,order:-998},v)),w=function(b){var x=b.prefixCls,C=b.rootCls,S=C===void 0?x:C;return g(x,S),null};return w}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const tf=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Zg="5.23.2";function G$(e){return e>=0&&e<=255}function Rb(e,t){const{r:n,g:r,b:i,a}=new rn(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new rn(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-o*(1-c))/c),f=Math.round((r-s*(1-c))/c),m=Math.round((i-l*(1-c))/c);if(G$(d)&&G$(f)&&G$(m))return new rn({r:d,g:f,b:m,a:Math.round(c*100)/100}).toRgbString()}return new rn({r:n,g:r,b:i,a:1}).toRgbString()}var cPe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[m]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,d=1600;if(i.motion===!1){const m="0s";i.motionDurationFast=m,i.motionDurationMid=m,i.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Rb(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Rb(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Rb(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Rb(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new rn("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new rn("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new rn("rgba(0, 0, 0, 0.09)").toRgbString()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerDown:` - 0 -6px 16px 0 rgba(0, 0, 0, 0.08), - 0 -3px 6px -4px rgba(0, 0, 0, 0.12), - 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var zF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=zF(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=j2(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:d}=c,f=zF(c,["theme"]);let m=f;d&&(m=nQ(Object.assign(Object.assign({},o),f),{override:f},d)),o[l]=m}),o};function Zr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=L.useContext(MI),a=`${Zg}-${t||""}`,o=n||XX,[s,l,c]=EI(o,[hp,e],{salt:a,override:r,getComputedToken:nQ,formatToken:j2,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:DI,ignore:tQ,preserve:uPe}});return[o,c,t?l:"",s,i]}const Fa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},mn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},bf=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Ls=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),dPe=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),fPe=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},Bs=(e,t)=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),yo=(e,t)=>({"&:focus-visible":Object.assign({},Bs(e,t))}),rQ=e=>({[`.${e}`]:Object.assign(Object.assign({},bf()),{[`.${e} .${e}-icon`]:{display:"block"}})}),jI=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},yo(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:un,genComponentStyleHook:iQ,genSubStyleComponent:yf}=eQ({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(Ct);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Zr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=u.useContext(Ct);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":dPe(e)},rQ((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:D2)]},getCommonStyle:fPe,getCompUnitless:()=>DI});function F2(e,t){return tf.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const mPe=(e,t)=>{const[n,r]=Zr();return Dx({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[rQ(e)])},pPe=Object.assign({},zd),{useId:HF}=pPe,hPe=()=>"",vPe=typeof HF>"u"?hPe:HF;function gPe(e,t,n){var r;Fl();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},Xg),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Xg.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=vPe();return gc(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{c[m]=Object.assign(Object.assign({},c[m]),e.components[m])});const d=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||d});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:c,cssVar:f})},[i,a],(s,l)=>s.some((c,d)=>{const f=l[d];return!Xo(c,f,!0)}))}var bPe=["children"],aQ=u.createContext({});function yPe(e){var t=e.children,n=ft(e,bPe);return u.createElement(aQ.Provider,{value:n},t)}var wPe=function(e){as(n,e);var t=os(n);function n(){return cr(this,n),t.apply(this,arguments)}return ur(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function xPe(e){var t=u.useReducer(function(s){return s+1},0),n=ie(t,2),r=n[1],i=u.useRef(e),a=Ht(function(){return i.current}),o=Ht(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var Hc="none",Ib="appear",Mb="enter",Nb="leave",VF="none",gs="prepare",xm="start",Sm="active",FI="end",oQ="prepared";function WF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function SPe(e,t){var n={animationend:WF("Animation","AnimationEnd"),transitionend:WF("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var CPe=SPe(va(),typeof window<"u"?window:{}),sQ={};if(va()){var _Pe=document.createElement("div");sQ=_Pe.style}var Db={};function lQ(e){if(Db[e])return Db[e];var t=CPe[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var a=tn(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var EPe=[gs,xm,Sm,FI],PPe=[gs,oQ],mQ=!1,TPe=!0;function pQ(e){return e===Sm||e===FI}const OPe=function(e,t,n){var r=ef(VF),i=ie(r,2),a=i[0],o=i[1],s=$Pe(),l=ie(s,2),c=l[0],d=l[1];function f(){o(gs,!0)}var m=t?PPe:EPe;return fQ(function(){if(a!==VF&&a!==FI){var p=m.indexOf(a),h=m[p+1],v=n(a);v===mQ?o(h,!0):h&&c(function(g){function w(){g.isCanceled()||o(h,!0)}v===!0?w():Promise.resolve(v).then(w)})}},[e,a]),u.useEffect(function(){return function(){d()}},[]),[f,a]};function RPe(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,v=r.onAppearStart,g=r.onEnterStart,w=r.onLeaveStart,y=r.onAppearActive,b=r.onEnterActive,x=r.onLeaveActive,C=r.onAppearEnd,S=r.onEnterEnd,_=r.onLeaveEnd,k=r.onVisibleChanged,$=ef(),E=ie($,2),P=E[0],M=E[1],j=xPe(Hc),O=ie(j,2),N=O[0],R=O[1],D=ef(null),F=ie(D,2),z=F[0],I=F[1],H=N(),V=u.useRef(!1),B=u.useRef(null);function W(){return n()}var U=u.useRef(!1);function X(){R(Hc),I(null,!0)}var q=Ht(function(me){var xe=N();if(xe!==Hc){var ue=W();if(!(me&&!me.deadline&&me.target!==ue)){var ce=U.current,$e;xe===Ib&&ce?$e=C==null?void 0:C(ue,me):xe===Mb&&ce?$e=S==null?void 0:S(ue,me):xe===Nb&&ce&&($e=_==null?void 0:_(ue,me)),ce&&$e!==!1&&X()}}}),Y=kPe(q),re=ie(Y,1),G=re[0],Q=function(xe){switch(xe){case Ib:return K(K(K({},gs,m),xm,v),Sm,y);case Mb:return K(K(K({},gs,p),xm,g),Sm,b);case Nb:return K(K(K({},gs,h),xm,w),Sm,x);default:return{}}},J=u.useMemo(function(){return Q(H)},[H]),Z=OPe(H,!e,function(me){if(me===gs){var xe=J[gs];return xe?xe(W()):mQ}if(le in J){var ue;I(((ue=J[le])===null||ue===void 0?void 0:ue.call(J,W(),null))||null)}return le===Sm&&H!==Hc&&(G(W()),d>0&&(clearTimeout(B.current),B.current=setTimeout(function(){q({deadline:!0})},d))),le===oQ&&X(),TPe}),ee=ie(Z,2),te=ee[0],le=ee[1],oe=pQ(le);U.current=oe;var de=u.useRef(null);fQ(function(){if(!(V.current&&de.current===t)){M(t);var me=V.current;V.current=!0;var xe;!me&&t&&s&&(xe=Ib),me&&t&&a&&(xe=Mb),(me&&!t&&c||!me&&f&&!t&&c)&&(xe=Nb);var ue=Q(xe);xe&&(e||ue[gs])?(R(xe),te()):R(Hc),de.current=t}},[t]),u.useEffect(function(){(H===Ib&&!s||H===Mb&&!a||H===Nb&&!c)&&R(Hc)},[s,a,c]),u.useEffect(function(){return function(){V.current=!1,clearTimeout(B.current)}},[]);var pe=u.useRef(!1);u.useEffect(function(){P&&(pe.current=!0),P!==void 0&&H===Hc&&((pe.current||P)&&(k==null||k(P)),pe.current=!0)},[P,H]);var ye=z;return J[gs]&&le===xm&&(ye=A({transition:"none"},ye)),[H,le,ye,P??t]}function IPe(e){var t=e;mt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=u.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,c=l===void 0?!0:l,d=i.forceRender,f=i.children,m=i.motionName,p=i.leavedClassName,h=i.eventProps,v=u.useContext(aQ),g=v.motion,w=n(i,g),y=u.useRef(),b=u.useRef();function x(){try{return y.current instanceof HTMLElement?y.current:Yv(b.current)}catch{return null}}var C=RPe(w,s,x,i),S=ie(C,4),_=S[0],k=S[1],$=S[2],E=S[3],P=u.useRef(E);E&&(P.current=!0);var M=u.useCallback(function(F){y.current=F,Vg(a,F)},[a]),j,O=A(A({},h),{},{visible:s});if(!f)j=null;else if(_===Hc)E?j=f(A({},O),M):!c&&P.current&&p?j=f(A(A({},O),{},{className:p}),M):d||!c&&!p?j=f(A(A({},O),{},{style:{display:"none"}}),M):j=null;else{var N;k===gs?N="prepare":pQ(k)?N="active":k===xm&&(N="start");var R=GF(m,"".concat(_,"-").concat(N));j=f(A(A({},O),{},{className:ne(GF(m,_),K(K({},R,R&&N),m,typeof m=="string")),style:$}),M)}if(u.isValidElement(j)&&As(j)){var D=Lu(j);D||(j=u.cloneElement(j,{ref:M}))}return u.createElement(wPe,{ref:b},j)});return r.displayName="CSSMotion",r}const Oi=IPe(dQ);var lT="add",cT="keep",uT="remove",K$="removed";function MPe(e){var t;return e&&mt(e)==="object"&&"key"in e?t=e:t={key:e},A(A({},t),{},{key:String(t.key)})}function dT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(MPe)}function NPe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=dT(e),o=dT(t);a.forEach(function(c){for(var d=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(d){var f=d.key,m=d.status;return f!==c||m!==uT}),n.forEach(function(d){d.key===c&&(d.status=cT)})}),n}var DPe=["component","children","onVisibleChanged","onAllRemoved"],jPe=["status"],FPe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function APe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oi,n=function(r){as(a,r);var i=os(a);function a(){var o;cr(this,a);for(var s=arguments.length,l=new Array(s),c=0;cnull;var zPe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const UPe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Fx=t),n!==void 0&&(hQ=n),"holderRender"in e&&(gQ=i),r&&(WPe(r)?Y4e(iw(),r):vQ=r)},AI=()=>({getPrefixCls:(e,t)=>t||(e?`${iw()}-${e}`:iw()),getIconPrefixCls:VPe,getRootPrefixCls:()=>Fx||iw(),getTheme:()=>vQ,holderRender:gQ}),qPe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:c,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:g,parentContext:w,iconPrefixCls:y,theme:b,componentDisabled:x,segmented:C,statistic:S,spin:_,calendar:k,carousel:$,cascader:E,collapse:P,typography:M,checkbox:j,descriptions:O,divider:N,drawer:R,skeleton:D,steps:F,image:z,layout:I,list:H,mentions:V,modal:B,progress:W,result:U,slider:X,breadcrumb:q,menu:Y,pagination:re,input:G,textArea:Q,empty:J,badge:Z,radio:ee,rate:te,switch:le,transfer:oe,avatar:de,message:pe,tag:ye,table:me,card:xe,tabs:ue,timeline:ce,timePicker:$e,upload:se,notification:he,tree:ve,colorPicker:ke,datePicker:Se,rangePicker:Ee,flex:De,wave:we,dropdown:be,warning:Pe,tour:Re,tooltip:_e,popover:je,popconfirm:He,floatButtonGroup:Be,variant:ct,inputNumber:Ve,treeSelect:Ye}=e,Ne=u.useCallback((Xe,lt)=>{const{prefixCls:tt}=e;if(lt)return lt;const Qe=tt||w.getPrefixCls("");return Xe?`${Qe}-${Xe}`:Qe},[w.getPrefixCls,e.prefixCls]),Ae=y||w.iconPrefixCls||D2,et=n||w.csp;mPe(Ae,et);const nt=gPe(b,w.theme,{prefixCls:Ne("")}),rt={csp:et,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||g,direction:c,space:d,splitter:f,virtual:m,popupMatchSelectWidth:h??p,popupOverflow:v,getPrefixCls:Ne,iconPrefixCls:Ae,theme:nt,segmented:C,statistic:S,spin:_,calendar:k,carousel:$,cascader:E,collapse:P,typography:M,checkbox:j,descriptions:O,divider:N,drawer:R,skeleton:D,steps:F,image:z,input:G,textArea:Q,layout:I,list:H,mentions:V,modal:B,progress:W,result:U,slider:X,breadcrumb:q,menu:Y,pagination:re,empty:J,badge:Z,radio:ee,rate:te,switch:le,transfer:oe,avatar:de,message:pe,tag:ye,table:me,card:xe,tabs:ue,timeline:ce,timePicker:$e,upload:se,notification:he,tree:ve,colorPicker:ke,datePicker:Se,rangePicker:Ee,flex:De,wave:we,dropdown:be,warning:Pe,tour:Re,tooltip:_e,popover:je,popconfirm:He,floatButtonGroup:Be,variant:ct,inputNumber:Ve,treeSelect:Ye},it=Object.assign({},w);Object.keys(rt).forEach(Xe=>{rt[Xe]!==void 0&&(it[Xe]=rt[Xe])}),HPe.forEach(Xe=>{const lt=e[Xe];lt&&(it[Xe]=lt)}),typeof r<"u"&&(it.button=Object.assign({autoInsertSpace:r},it.button));const ge=gc(()=>it,it,(Xe,lt)=>{const tt=Object.keys(Xe),Qe=Object.keys(lt);return tt.length!==Qe.length||tt.some(Ge=>Xe[Ge]!==lt[Ge])}),Te=u.useMemo(()=>({prefixCls:Ae,csp:et}),[Ae,et]);let Ce=u.createElement(u.Fragment,null,u.createElement(BPe,{dropdownMatchSelectWidth:p}),t);const Ie=u.useMemo(()=>{var Xe,lt,tt,Qe;return wm(((Xe=Yo.Form)===null||Xe===void 0?void 0:Xe.defaultValidateMessages)||{},((tt=(lt=ge.locale)===null||lt===void 0?void 0:lt.Form)===null||tt===void 0?void 0:tt.defaultValidateMessages)||{},((Qe=ge.form)===null||Qe===void 0?void 0:Qe.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[ge,o==null?void 0:o.validateMessages]);Object.keys(Ie).length>0&&(Ce=u.createElement(HX.Provider,{value:Ie},Ce)),s&&(Ce=u.createElement(A4e,{locale:s,_ANT_MARK__:F4e},Ce)),(Ae||et)&&(Ce=u.createElement(pI.Provider,{value:Te},Ce)),l&&(Ce=u.createElement(X4e,{size:l},Ce)),Ce=u.createElement(LPe,null,Ce);const Ke=u.useMemo(()=>{const Xe=nt||{},{algorithm:lt,token:tt,components:Qe,cssVar:Ge}=Xe,st=zPe(Xe,["algorithm","token","components","cssVar"]),pt=lt&&(!Array.isArray(lt)||lt.length>0)?Zd(lt):XX,yt={};Object.entries(Qe||{}).forEach($t=>{let[ze,fe]=$t;const Me=Object.assign({},fe);"algorithm"in Me&&(Me.algorithm===!0?Me.theme=pt:(Array.isArray(Me.algorithm)||typeof Me.algorithm=="function")&&(Me.theme=Zd(Me.algorithm)),delete Me.algorithm),yt[ze]=Me});const zt=Object.assign(Object.assign({},hp),tt);return Object.assign(Object.assign({},st),{theme:pt,token:zt,components:yt,override:Object.assign({override:zt},yt),cssVar:Ge})},[nt]);return b&&(Ce=u.createElement(MI.Provider,{value:Ke},Ce)),ge.warning&&(Ce=u.createElement(N4e.Provider,{value:ge.warning},Ce)),x!==void 0&&(Ce=u.createElement(NI,{disabled:x},Ce)),u.createElement(Ct.Provider,{value:ge},Ce)},en=e=>{const t=u.useContext(Ct),n=u.useContext(RI);return u.createElement(qPe,Object.assign({parentContext:t,legacyLocale:n},e))};en.ConfigContext=Ct;en.SizeContext=Jd;en.config=UPe;en.useConfig=Q4e;Object.defineProperty(en,"SizeContext",{get:()=>Jd});var GPe=`accept acceptCharset accessKey action allowFullScreen allowTransparency - alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge - charSet checked classID className colSpan cols content contentEditable contextMenu - controls coords crossOrigin data dateTime default defer dir disabled download draggable - encType form formAction formEncType formMethod formNoValidate formTarget frameBorder - headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity - is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media - mediaGroup method min minLength multiple muted name noValidate nonce open - optimum pattern placeholder poster preload radioGroup readOnly rel required - reversed role rowSpan rows sandbox scope scoped scrolling seamless selected - shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,KPe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown - onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick - onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown - onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel - onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough - onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,YPe="".concat(GPe," ").concat(KPe).split(/[\s\n]+/),XPe="aria-",QPe="data-";function KF(e,t){return e.indexOf(t)===0}function yr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=A({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||KF(i,XPe))||n.data&&KF(i,QPe)||n.attr&&YPe.includes(i))&&(r[i]=e[i])}),r}function bQ(e){return e&&L.isValidElement(e)&&e.type===L.Fragment}const yQ=(e,t,n)=>L.isValidElement(e)?L.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function zr(e,t){return yQ(e,e,t)}const YF=e=>typeof e=="object"&&e!=null&&e.nodeType===1,XF=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Y$=(e,t)=>{if(e.clientHeight{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,ZPe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},QF=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:d}=t,f=typeof c=="function"?c:R=>R!==c;if(!YF(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,p=[];let h=e;for(;YF(h)&&f(h);){if(h=ZPe(h),h===m){p.push(h);break}h!=null&&h===document.body&&Y$(h)&&!Y$(document.documentElement)||h!=null&&Y$(h,d)&&p.push(h)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:w,scrollY:y}=window,{height:b,width:x,top:C,right:S,bottom:_,left:k}=e.getBoundingClientRect(),{top:$,right:E,bottom:P,left:M}=(R=>{const D=window.getComputedStyle(R);return{top:parseFloat(D.scrollMarginTop)||0,right:parseFloat(D.scrollMarginRight)||0,bottom:parseFloat(D.scrollMarginBottom)||0,left:parseFloat(D.scrollMarginLeft)||0}})(e);let j=s==="start"||s==="nearest"?C-$:s==="end"?_+P:C+b/2-$+P,O=l==="center"?k+x/2-M+E:l==="end"?S+E:k-M;const N=[];for(let R=0;R=0&&k>=0&&_<=g&&S<=v&&C>=I&&_<=V&&k>=B&&S<=H)return N;const W=getComputedStyle(D),U=parseInt(W.borderLeftWidth,10),X=parseInt(W.borderTopWidth,10),q=parseInt(W.borderRightWidth,10),Y=parseInt(W.borderBottomWidth,10);let re=0,G=0;const Q="offsetWidth"in D?D.offsetWidth-D.clientWidth-U-q:0,J="offsetHeight"in D?D.offsetHeight-D.clientHeight-X-Y:0,Z="offsetWidth"in D?D.offsetWidth===0?0:z/D.offsetWidth:0,ee="offsetHeight"in D?D.offsetHeight===0?0:F/D.offsetHeight:0;if(m===D)re=s==="start"?j:s==="end"?j-g:s==="nearest"?jb(y,y+g,g,X,Y,y+j,y+j+b,b):j-g/2,G=l==="start"?O:l==="center"?O-v/2:l==="end"?O-v:jb(w,w+v,v,U,q,w+O,w+O+x,x),re=Math.max(0,re+y),G=Math.max(0,G+w);else{re=s==="start"?j-I-X:s==="end"?j-V+Y+J:s==="nearest"?jb(I,V,F,X,Y+J,j,j+b,b):j-(I+F/2)+J/2,G=l==="start"?O-B-U:l==="center"?O-(B+z/2)+Q/2:l==="end"?O-H+q+Q:jb(B,H,z,U,q+Q,O,O+x,x);const{scrollLeft:te,scrollTop:le}=D;re=ee===0?0:Math.max(0,Math.min(le+re/ee,D.scrollHeight-F/ee+J)),G=Z===0?0:Math.max(0,Math.min(te+G/Z,D.scrollWidth-z/Z+Q)),j+=le-re,O+=te-G}N.push({el:D,top:re,left:G})}return N},JPe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function eTe(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(QF(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:o}of QF(e,JPe(t))){const s=a-n.top+n.bottom,l=o-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}function fT(e){return e!=null&&e===e.window}const tTe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return fT(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!fT(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function nTe(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function rTe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=tTe(a),s=Date.now(),l=()=>{const d=Date.now()-s,f=nTe(d>i?i:d,o,e,i);fT(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,d{const[,,,,t]=Zr();return t?`${e}-css-var`:""};var qe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=qe.F1&&n<=qe.F12)return!1;switch(n){case qe.ALT:case qe.CAPS_LOCK:case qe.CONTEXT_MENU:case qe.CTRL:case qe.DOWN:case qe.END:case qe.ESC:case qe.HOME:case qe.INSERT:case qe.LEFT:case qe.MAC_FF_META:case qe.META:case qe.NUMLOCK:case qe.NUM_CENTER:case qe.PAGE_DOWN:case qe.PAGE_UP:case qe.PAUSE:case qe.PRINT_SCREEN:case qe.RIGHT:case qe.SHIFT:case qe.UP:case qe.WIN_KEY:case qe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=qe.ZERO&&t<=qe.NINE||t>=qe.NUM_ZERO&&t<=qe.NUM_MULTIPLY||t>=qe.A&&t<=qe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case qe.SPACE:case qe.QUESTION_MARK:case qe.NUM_PLUS:case qe.NUM_MINUS:case qe.NUM_PERIOD:case qe.NUM_DIVISION:case qe.SEMICOLON:case qe.DASH:case qe.EQUALS:case qe.COMMA:case qe.PERIOD:case qe.SLASH:case qe.APOSTROPHE:case qe.SINGLE_QUOTE:case qe.OPEN_SQUARE_BRACKET:case qe.BACKSLASH:case qe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},LI=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,d=e.eventKey,f=e.content,m=e.closable,p=e.closeIcon,h=p===void 0?"x":p,v=e.props,g=e.onClick,w=e.onNoticeClose,y=e.times,b=e.hovering,x=u.useState(!1),C=ie(x,2),S=C[0],_=C[1],k=u.useState(0),$=ie(k,2),E=$[0],P=$[1],M=u.useState(0),j=ie(M,2),O=j[0],N=j[1],R=b||S,D=o>0&&s,F=function(){w(d)},z=function(U){(U.key==="Enter"||U.code==="Enter"||U.keyCode===qe.ENTER)&&F()};u.useEffect(function(){if(!R&&o>0){var W=Date.now()-O,U=setTimeout(function(){F()},o*1e3-O);return function(){c&&clearTimeout(U),N(Date.now()-W)}}},[o,R,y]),u.useEffect(function(){if(!R&&D&&(c||O===0)){var W=performance.now(),U,X=function q(){cancelAnimationFrame(U),U=requestAnimationFrame(function(Y){var re=Y+O-W,G=Math.min(re/(o*1e3),1);P(G*100),G<1&&q()})};return X(),function(){c&&cancelAnimationFrame(U)}}},[o,O,R,D,y]);var I=u.useMemo(function(){return mt(m)==="object"&&m!==null?m:m?{closeIcon:h}:{}},[m,h]),H=yr(I,!0),V=100-(!E||E<0?0:E>100?100:E),B="".concat(n,"-notice");return u.createElement("div",Oe({},v,{ref:t,className:ne(B,i,K({},"".concat(B,"-closable"),m)),style:r,onMouseEnter:function(U){var X;_(!0),v==null||(X=v.onMouseEnter)===null||X===void 0||X.call(v,U)},onMouseLeave:function(U){var X;_(!1),v==null||(X=v.onMouseLeave)===null||X===void 0||X.call(v,U)},onClick:g}),u.createElement("div",{className:"".concat(B,"-content")},f),m&&u.createElement("a",Oe({tabIndex:0,className:"".concat(B,"-close"),onKeyDown:z,"aria-label":"Close"},H,{onClick:function(U){U.preventDefault(),U.stopPropagation(),F()}}),I.closeIcon),D&&u.createElement("progress",{className:"".concat(B,"-progress"),max:"100",value:V},V+"%"))}),wQ=L.createContext({}),xQ=function(t){var n=t.children,r=t.classNames;return L.createElement(wQ.Provider,{value:{classNames:r}},n)},ZF=8,JF=3,eA=16,iTe=function(t){var n={offset:ZF,threshold:JF,gap:eA};if(t&&mt(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:ZF,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:JF,n.gap=(a=t.gap)!==null&&a!==void 0?a:eA}return[!!t,n]},aTe=["className","style","classNames","styles"],oTe=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,d=t.stack,f=u.useContext(wQ),m=f.classNames,p=u.useRef({}),h=u.useState(null),v=ie(h,2),g=v[0],w=v[1],y=u.useState([]),b=ie(y,2),x=b[0],C=b[1],S=n.map(function(R){return{config:R,key:String(R.key)}}),_=iTe(d),k=ie(_,2),$=k[0],E=k[1],P=E.offset,M=E.threshold,j=E.gap,O=$&&(x.length>0||S.length<=M),N=typeof s=="function"?s(r):s;return u.useEffect(function(){$&&x.length>1&&C(function(R){return R.filter(function(D){return S.some(function(F){var z=F.key;return D===z})})})},[x,S,$]),u.useEffect(function(){var R;if($&&p.current[(R=S[S.length-1])===null||R===void 0?void 0:R.key]){var D;w(p.current[(D=S[S.length-1])===null||D===void 0?void 0:D.key])}},[S,$]),L.createElement(A2,Oe({key:r,className:ne(i,"".concat(i,"-").concat(r),m==null?void 0:m.list,a,K(K({},"".concat(i,"-stack"),!!$),"".concat(i,"-stack-expanded"),O)),style:o,keys:S,motionAppear:!0},N,{onAllRemoved:function(){l(r)}}),function(R,D){var F=R.config,z=R.className,I=R.style,H=R.index,V=F,B=V.key,W=V.times,U=String(B),X=F,q=X.className,Y=X.style,re=X.classNames,G=X.styles,Q=ft(X,aTe),J=S.findIndex(function(ce){return ce.key===U}),Z={};if($){var ee=S.length-1-(J>-1?J:H-1),te=r==="top"||r==="bottom"?"-50%":"0";if(ee>0){var le,oe,de;Z.height=O?(le=p.current[U])===null||le===void 0?void 0:le.offsetHeight:g==null?void 0:g.offsetHeight;for(var pe=0,ye=0;ye-1?p.current[U]=$e:delete p.current[U]},prefixCls:i,classNames:re,styles:G,className:ne(q,m==null?void 0:m.notice),style:Y,times:W,key:B,eventKey:B,onNoticeClose:c,hovering:$&&x.length>0})))})},sTe=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=u.useState([]),p=ie(m,2),h=p[0],v=p[1],g=function($){var E,P=h.find(function(M){return M.key===$});P==null||(E=P.onClose)===null||E===void 0||E.call(P),v(function(M){return M.filter(function(j){return j.key!==$})})};u.useImperativeHandle(t,function(){return{open:function($){v(function(E){var P=Fe(E),M=P.findIndex(function(N){return N.key===$.key}),j=A({},$);if(M>=0){var O;j.times=(((O=E[M])===null||O===void 0?void 0:O.times)||0)+1,P[M]=j}else j.times=0,P.push(j);return o>0&&P.length>o&&(P=P.slice(-o)),P})},close:function($){g($)},destroy:function(){v([])}}});var w=u.useState({}),y=ie(w,2),b=y[0],x=y[1];u.useEffect(function(){var k={};h.forEach(function($){var E=$.placement,P=E===void 0?"topRight":E;P&&(k[P]=k[P]||[],k[P].push($))}),Object.keys(b).forEach(function($){k[$]=k[$]||[]}),x(k)},[h]);var C=function($){x(function(E){var P=A({},E),M=P[$]||[];return M.length||delete P[$],P})},S=u.useRef(!1);if(u.useEffect(function(){Object.keys(b).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[b]),!i)return null;var _=Object.keys(b);return yi.createPortal(u.createElement(u.Fragment,null,_.map(function(k){var $=b[k],E=u.createElement(oTe,{key:k,configList:$,placement:k,prefixCls:r,className:s==null?void 0:s(k),style:l==null?void 0:l(k),motion:a,onNoticeClose:g,onAllNoticeRemoved:C,stack:d});return f?f(E,{prefixCls:r,key:k}):E})),i)}),lTe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],cTe=function(){return document.body},tA=0;function uTe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?cTe:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,d=e.renderNotifications,f=ft(e,lTe),m=u.useState(),p=ie(m,2),h=p[0],v=p[1],g=u.useRef(),w=u.createElement(sTe,{container:h,ref:g,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:d}),y=u.useState([]),b=ie(y,2),x=b[0],C=b[1],S=u.useMemo(function(){return{open:function(k){var $=uTe(f,k);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat(tA),tA+=1),C(function(E){return[].concat(Fe(E),[{type:"open",config:$}])})},close:function(k){C(function($){return[].concat(Fe($),[{type:"close",key:k}])})},destroy:function(){C(function(k){return[].concat(Fe(k),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){v(n())}),u.useEffect(function(){g.current&&x.length&&(x.forEach(function(_){switch(_.type){case"open":g.current.open(_.config);break;case"close":g.current.close(_.key);break;case"destroy":g.current.destroy();break}}),C(function(_){return _.filter(function(k){return!x.includes(k)})}))},[x]),[S,w]}const L2=L.createContext(void 0),Vc=100,dTe=10,BI=Vc*dTe,CQ={Modal:Vc,Drawer:Vc,Popover:Vc,Popconfirm:Vc,Tooltip:Vc,Tour:Vc,FloatButton:Vc},fTe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function mTe(e){return e in CQ}const Xs=(e,t)=>{const[,n]=Zr(),r=L.useContext(L2),i=mTe(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+CQ[e]:o+=fTe[e],a=[r===void 0?t:o,o]}return a},pTe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:p,borderRadiusLG:h,zIndexPopup:v,contentPadding:g,contentBg:w}=e,y=`${t}-notice`,b=new on("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new on("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:w,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, - ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},mn(e)),{color:i,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},hTe=e=>({zIndexPopup:e.zIndexPopupBase+BI+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),_Q=un("Message",e=>{const t=Yt(e,{height:150});return[pTe(t)]},hTe);var vTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,type:n,icon:r,children:i}=e;return u.createElement("div",{className:ne(`${t}-custom-content`,`${t}-${n}`)},r||gTe[n],u.createElement("span",null,i))},bTe=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=vTe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=u.useContext(Ct),l=t||s("message"),c=Dn(l),[d,f,m]=_Q(l,c);return d(u.createElement(LI,Object.assign({},o,{prefixCls:l,className:ne(n,f,`${l}-notice-pure-panel`,m,c),eventKey:"pure",duration:null,content:u.createElement(kQ,{prefixCls:l,type:r,icon:i},a)})))};function yTe(e,t){return{motionName:t??`${e}-move-up`}}function zI(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var wTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=Dn(n),[i,a,o]=_Q(n,r);return i(u.createElement(xQ,{classNames:{list:ne(a,o,r)}},t))},_Te=(e,t)=>{let{prefixCls:n,key:r}=t;return u.createElement(CTe,{prefixCls:n,key:r},e)},kTe=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=STe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:p}=u.useContext(Ct),h=r||d("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:n??xTe}),g=()=>ne({[`${h}-rtl`]:s??p==="rtl"}),w=()=>yTe(h,l),y=u.createElement("span",{className:`${h}-close-x`},u.createElement(Ys,{className:`${h}-close-icon`})),[b,x]=SQ({prefixCls:h,style:v,className:g,motion:w,closable:!1,closeIcon:y,duration:o,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:_Te});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:h,message:m})),x});let nA=0;function $Q(e){const t=u.useRef(null);return Fl(),[u.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:c,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:p,icon:h,type:v,key:g,className:w,style:y,onClose:b}=l,x=wTe(l,["content","icon","type","key","className","style","onClose"]);let C=g;return C==null&&(nA+=1,C=`antd-message-${nA}`),zI(S=>(c(Object.assign(Object.assign({},x),{key:C,content:u.createElement(kQ,{prefixCls:d,type:v,icon:h},p),placement:"top",className:ne(v&&`${m}-${v}`,w,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{b==null||b(),S()}})),()=>{r(C)}))},o={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(d,f,m)=>{let p;d&&typeof d=="object"&&"content"in d?p=d:p={content:d};let h,v;typeof f=="function"?v=f:(h=f,v=m);const g=Object.assign(Object.assign({onClose:v,duration:h},p),{type:l});return i(g)};o[l]=c}),o},[]),u.createElement(kTe,Object.assign({key:"message-holder"},e,{ref:t}))]}function EQ(e){return $Q(e)}function $Te(){const[e,t]=u.useState([]),n=u.useCallback(r=>(t(i=>[].concat(Fe(i),[r])),()=>{t(i=>i.filter(a=>a!==r))}),[]);return[e,n]}function Bn(){Bn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(R,D,F){R[D]=F.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(R,D,F){return Object.defineProperty(R,D,{value:F,enumerable:!0,configurable:!0,writable:!0}),R[D]}try{c({},"")}catch{c=function(F,z,I){return F[z]=I}}function d(R,D,F,z){var I=D&&D.prototype instanceof w?D:w,H=Object.create(I.prototype),V=new O(z||[]);return i(H,"_invoke",{value:E(R,F,V)}),H}function f(R,D,F){try{return{type:"normal",arg:R.call(D,F)}}catch(z){return{type:"throw",arg:z}}}t.wrap=d;var m="suspendedStart",p="suspendedYield",h="executing",v="completed",g={};function w(){}function y(){}function b(){}var x={};c(x,o,function(){return this});var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,o)&&(x=S);var _=b.prototype=w.prototype=Object.create(x);function k(R){["next","throw","return"].forEach(function(D){c(R,D,function(F){return this._invoke(D,F)})})}function $(R,D){function F(I,H,V,B){var W=f(R[I],R,H);if(W.type!=="throw"){var U=W.arg,X=U.value;return X&&mt(X)=="object"&&r.call(X,"__await")?D.resolve(X.__await).then(function(q){F("next",q,V,B)},function(q){F("throw",q,V,B)}):D.resolve(X).then(function(q){U.value=q,V(U)},function(q){return F("throw",q,V,B)})}B(W.arg)}var z;i(this,"_invoke",{value:function(H,V){function B(){return new D(function(W,U){F(H,V,W,U)})}return z=z?z.then(B,B):B()}})}function E(R,D,F){var z=m;return function(I,H){if(z===h)throw Error("Generator is already running");if(z===v){if(I==="throw")throw H;return{value:e,done:!0}}for(F.method=I,F.arg=H;;){var V=F.delegate;if(V){var B=P(V,F);if(B){if(B===g)continue;return B}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(z===m)throw z=v,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);z=h;var W=f(R,D,F);if(W.type==="normal"){if(z=F.done?v:p,W.arg===g)continue;return{value:W.arg,done:F.done}}W.type==="throw"&&(z=v,F.method="throw",F.arg=W.arg)}}}function P(R,D){var F=D.method,z=R.iterator[F];if(z===e)return D.delegate=null,F==="throw"&&R.iterator.return&&(D.method="return",D.arg=e,P(R,D),D.method==="throw")||F!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+F+"' method")),g;var I=f(z,R.iterator,D.arg);if(I.type==="throw")return D.method="throw",D.arg=I.arg,D.delegate=null,g;var H=I.arg;return H?H.done?(D[R.resultName]=H.value,D.next=R.nextLoc,D.method!=="return"&&(D.method="next",D.arg=e),D.delegate=null,g):H:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,g)}function M(R){var D={tryLoc:R[0]};1 in R&&(D.catchLoc=R[1]),2 in R&&(D.finallyLoc=R[2],D.afterLoc=R[3]),this.tryEntries.push(D)}function j(R){var D=R.completion||{};D.type="normal",delete D.arg,R.completion=D}function O(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(M,this),this.reset(!0)}function N(R){if(R||R===""){var D=R[o];if(D)return D.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var F=-1,z=function I(){for(;++F=0;--I){var H=this.tryEntries[I],V=H.completion;if(H.tryLoc==="root")return z("end");if(H.tryLoc<=this.prev){var B=r.call(H,"catchLoc"),W=r.call(H,"finallyLoc");if(B&&W){if(this.prev=0;--z){var I=this.tryEntries[z];if(I.tryLoc<=this.prev&&r.call(I,"finallyLoc")&&this.prev=0;--F){var z=this.tryEntries[F];if(z.finallyLoc===D)return this.complete(z.completion,z.afterLoc),j(z),g}},catch:function(D){for(var F=this.tryEntries.length-1;F>=0;--F){var z=this.tryEntries[F];if(z.tryLoc===D){var I=z.completion;if(I.type==="throw"){var H=I.arg;j(z)}return H}}throw Error("illegal catch attempt")},delegateYield:function(D,F,z){return this.delegate={iterator:N(D),resultName:F,nextLoc:z},this.method==="next"&&(this.arg=e),g}},t}function rA(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function Ki(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){rA(a,r,i,o,s,"next",l)}function s(l){rA(a,r,i,o,s,"throw",l)}o(void 0)})}}var r1=A({},XU),ETe=r1.version,X$=r1.render,PTe=r1.unmountComponentAtNode,B2;try{var TTe=Number((ETe||"").split(".")[0]);TTe>=18&&(B2=r1.createRoot)}catch{}function iA(e){var t=r1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&mt(t)==="object"&&(t.usingClientEntryPoint=e)}var Ax="__rc_react_root__";function OTe(e,t){iA(!0);var n=t[Ax]||B2(t);iA(!1),n.render(e),t[Ax]=n}function RTe(e,t){X$==null||X$(e,t)}function ITe(e,t){if(B2){OTe(e,t);return}RTe(e,t)}function MTe(e){return mT.apply(this,arguments)}function mT(){return mT=Ki(Bn().mark(function e(t){return Bn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[Ax])===null||i===void 0||i.unmount(),delete t[Ax]}));case 1:case"end":return r.stop()}},e)})),mT.apply(this,arguments)}function NTe(e){PTe(e)}function DTe(e){return pT.apply(this,arguments)}function pT(){return pT=Ki(Bn().mark(function e(t){return Bn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(B2===void 0){r.next=2;break}return r.abrupt("return",MTe(t));case 2:NTe(t);case 3:case"end":return r.stop()}},e)})),pT.apply(this,arguments)}const jTe=(e,t)=>(ITe(e,t),()=>DTe(t));let FTe=jTe;function z2(){return FTe}const Q$=()=>({height:0,opacity:0}),aA=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ATe=e=>({height:e?e.offsetHeight:0}),Z$=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",vp=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qg}-motion-collapse`,onAppearStart:Q$,onEnterStart:Q$,onAppearActive:aA,onEnterActive:aA,onLeaveStart:ATe,onLeaveActive:Q$,onAppearEnd:Z$,onEnterEnd:Z$,onLeaveEnd:Z$,motionDeadline:500}},ea=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Qp=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},LTe=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},BTe=iQ("Wave",e=>[LTe(e)]),H2=`${Qg}-wave-target`;function J$(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function zTe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return J$(t)?t:J$(n)?n:J$(r)?r:null}function eE(e){return Number.isNaN(e)?0:e}const HTe=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,a=u.useRef(null),o=u.useRef(null);u.useEffect(()=>{o.current=i()},[]);const[s,l]=u.useState(null),[c,d]=u.useState([]),[f,m]=u.useState(0),[p,h]=u.useState(0),[v,g]=u.useState(0),[w,y]=u.useState(0),[b,x]=u.useState(!1),C={left:f,top:p,width:v,height:w,borderRadius:c.map(k=>`${k}px`).join(" ")};s&&(C["--wave-color"]=s);function S(){const k=getComputedStyle(n);l(zTe(n));const $=k.position==="static",{borderLeftWidth:E,borderTopWidth:P}=k;m($?n.offsetLeft:eE(-parseFloat(E))),h($?n.offsetTop:eE(-parseFloat(P))),g(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:j,borderBottomLeftRadius:O,borderBottomRightRadius:N}=k;d([M,j,N,O].map(R=>eE(parseFloat(R))))}if(u.useEffect(()=>{if(n){const k=tn(()=>{S(),x(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(S),$.observe(n)),()=>{tn.cancel(k),$==null||$.disconnect()}}},[]),!b)return null;const _=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(H2));return u.createElement(Oi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(k,$)=>{var E,P;if($.deadline||$.propertyName==="opacity"){const M=(E=a.current)===null||E===void 0?void 0:E.parentElement;(P=o.current)===null||P===void 0||P.call(o).then(()=>{M==null||M.remove()})}return!1}},(k,$)=>{let{className:E}=k;return u.createElement("div",{ref:di(a,$),className:ne(t,E,{"wave-quick":_}),style:C})})},VTe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const a=z2();let o=null;function s(){return o}o=a(u.createElement(HTe,Object.assign({},t,{target:e,registerUnmount:s})),i)},WTe=(e,t,n)=>{const{wave:r}=u.useContext(Ct),[,i,a]=Zr(),o=Ht(c=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${H2}`)||d,{showEffect:m}=r||{};(m||VTe)(f,{className:t,token:i,component:n,event:c,hashId:a})}),s=u.useRef(null);return c=>{tn.cancel(s.current),s.current=tn(()=>{o(c)})}},i1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=u.useContext(Ct),a=u.useRef(null),o=i("wave"),[,s]=BTe(o),l=WTe(a,ne(o,s),r);if(L.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!Qp(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!L.isValidElement(t))return t??null;const c=As(t)?di(Lu(t),a):a;return zr(t,{ref:c})},Fr=e=>{const t=L.useContext(Jd);return L.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},UTe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},qTe=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},GTe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},PQ=un("Space",e=>{const t=Yt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[qTe(t),GTe(t),UTe(t)]},()=>({}),{resetStyle:!1});var TQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=u.useContext(V2),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return ne(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},KTe=e=>{let{children:t}=e;return u.createElement(V2.Provider,{value:null},t)},YTe=e=>{var{children:t}=e,n=TQ(e,["children"]);return u.createElement(V2.Provider,{value:n},t)},XTe=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Ct),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:c}=e,d=TQ(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Fr(b=>r??b),m=t("space-compact",o),[p,h]=PQ(m),v=ne(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:i==="vertical"},s,l),g=u.useContext(V2),w=Lr(c),y=u.useMemo(()=>w.map((b,x)=>{const C=(b==null?void 0:b.key)||`${m}-item-${x}`;return u.createElement(YTe,{key:C,compactSize:f,compactDirection:i,isFirstItem:x===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:x===w.length-1&&(!g||(g==null?void 0:g.isLastItem))},b)}),[r,w,g]);return w.length===0?null:p(u.createElement("div",Object.assign({className:v},d),y))};var QTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=u.useContext(Ct),{prefixCls:r,size:i,className:a}=e,o=QTe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Zr();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const d=ne(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return u.createElement(OQ.Provider,{value:i},u.createElement("div",Object.assign({},o,{className:d})))},oA=/^[\u4E00-\u9FA5]{2}$/,hT=oA.test.bind(oA);function RQ(e){return e==="danger"?{danger:!0}:{type:e}}function sA(e){return typeof e=="string"}function tE(e){return e==="text"||e==="link"}function JTe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&sA(e.type)&&hT(e.props.children)?zr(e,{children:e.props.children.split("").join(n)}):sA(e)?hT(e)?L.createElement("span",null,e.split("").join(n)):L.createElement("span",null,e):bQ(e)?L.createElement("span",null,e):e}function eOe(e,t){let n=!1;const r=[];return L.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),L.Children.map(r,i=>JTe(i,t))}["default","primary","danger"].concat(Fe(tf));const vT=u.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=ne(`${a}-icon`,n);return L.createElement("span",{ref:t,className:o,style:r},i)}),lA=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=ne(`${n}-loading-icon`,r);return L.createElement(vT,{prefixCls:n,className:o,style:i,ref:t},L.createElement(js,{className:a}))}),nE=()=>({width:0,opacity:0,transform:"scale(0)"}),rE=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),tOe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?L.createElement(lA,{prefixCls:t,className:i,style:a}):L.createElement(Oi,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:nE,onAppearActive:rE,onEnterStart:nE,onEnterActive:rE,onLeaveStart:rE,onLeaveActive:nE},(l,c)=>{let{className:d,style:f}=l;const m=Object.assign(Object.assign({},a),f);return L.createElement(lA,{prefixCls:t,className:ne(i,d),style:m,ref:c})})},cA=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),nOe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},cA(`${t}-primary`,i),cA(`${t}-danger`,a)]}};var rOe=["b"],iOe=["v"],iE=function(t){return Math.round(Number(t||0))},aOe=function(t){if(t instanceof rn)return t;if(t&&mt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=ft(n,rOe);return A(A({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},zs=function(e){as(n,e);var t=os(n);function n(r){return cr(this,n),t.call(this,aOe(r))}return ur(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=iE(i.s*100),o=iE(i.b*100),s=iE(i.h),l=i.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(o,"%)"),d="hsba(".concat(s,", ").concat(a,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:d}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,o=ft(i,iOe);return A(A({},o),{},{b:a,a:this.a})}}]),n}(rn),oOe="rc-color-picker",Lm=function(t){return t instanceof zs?t:new zs(t)},sOe=Lm("#1677ff"),IQ=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,a=t.color,o=t.type,s=i.current.getBoundingClientRect(),l=s.width,c=s.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,p=f/2,h=m/2,v=(n.x+p)/l,g=1-(n.y+h)/c,w=a.toHsb(),y=v,b=(n.x+p)/l*360;if(o)switch(o){case"hue":return Lm(A(A({},w),{},{h:b<=0?0:b}));case"alpha":return Lm(A(A({},w),{},{a:y<=0?0:y}))}return Lm({h:w.h,s:v<=0?0:v,b:g>=1?1:g,a:w.a})},MQ=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},HI=function(t){var n=t.color,r=t.prefixCls,i=t.className,a=t.style,o=t.onClick,s="".concat(r,"-color-block");return L.createElement("div",{className:ne(s,i),style:a,onClick:o},L.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function lOe(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function NQ(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,o=e.calculate,s=e.color,l=e.disabledDrag,c=u.useState({x:0,y:0}),d=ie(c,2),f=d[0],m=d[1],p=u.useRef(null),h=u.useRef(null);u.useEffect(function(){m(o())},[s]),u.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null}},[]);var v=function(x){var C=lOe(x),S=C.pageX,_=C.pageY,k=n.current.getBoundingClientRect(),$=k.x,E=k.y,P=k.width,M=k.height,j=t.current.getBoundingClientRect(),O=j.width,N=j.height,R=O/2,D=N/2,F=Math.max(0,Math.min(S-$,P))-R,z=Math.max(0,Math.min(_-E,M))-D,I={x:F,y:r==="x"?f.y:z};if(O===0&&N===0||O!==N)return!1;i==null||i(I)},g=function(x){x.preventDefault(),v(x)},w=function(x){x.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null,a==null||a()},y=function(x){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),!l&&(v(x),document.addEventListener("mousemove",g),document.addEventListener("mouseup",w),document.addEventListener("touchmove",g),document.addEventListener("touchend",w),p.current=g,h.current=w)};return[f,y]}var DQ=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,a=t.prefixCls;return L.createElement("div",{className:ne("".concat(a,"-handler"),K({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},jQ=function(t){var n=t.children,r=t.style,i=t.prefixCls;return L.createElement("div",{className:"".concat(i,"-palette"),style:A({position:"relative"},r)},n)},FQ=u.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return L.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),cOe=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,a=t.onChangeComplete,o=t.disabled,s=u.useRef(),l=u.useRef(),c=u.useRef(n),d=Ht(function(v){var g=IQ({offset:v,targetRef:l,containerRef:s,color:n});c.current=g,r(g)}),f=NQ({color:n,containerRef:s,targetRef:l,calculate:function(){return MQ(n)},onDragChange:d,onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:o}),m=ie(f,2),p=m[0],h=m[1];return L.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:h,onTouchStart:h},L.createElement(jQ,{prefixCls:i},L.createElement(FQ,{x:p.x,y:p.y,ref:l},L.createElement(DQ,{color:n.toRgbString(),prefixCls:i})),L.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},uOe=function(t,n){var r=Ut(t,{value:n}),i=ie(r,2),a=i[0],o=i[1],s=u.useMemo(function(){return Lm(a)},[a]);return[s,o]},dOe=function(t){var n=t.colors,r=t.children,i=t.direction,a=i===void 0?"to right":i,o=t.type,s=t.prefixCls,l=u.useMemo(function(){return n.map(function(c,d){var f=Lm(c);return o==="alpha"&&d===n.length-1&&(f=new zs(f.setA(1))),f.toRgbString()}).join(",")},[n,o]);return L.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},fOe=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,a=t.onChange,o=t.onChangeComplete,s=t.color,l=t.type,c=u.useRef(),d=u.useRef(),f=u.useRef(s),m=function(C){return l==="hue"?C.getHue():C.a*100},p=Ht(function(x){var C=IQ({offset:x,targetRef:d,containerRef:c,color:s,type:l});f.current=C,a(m(C))}),h=NQ({color:s,targetRef:d,containerRef:c,calculate:function(){return MQ(s,l)},onDragChange:p,onDragChangeComplete:function(){o(m(f.current))},direction:"x",disabledDrag:i}),v=ie(h,2),g=v[0],w=v[1],y=L.useMemo(function(){if(l==="hue"){var x=s.toHsb();x.s=1,x.b=1,x.a=1;var C=new zs(x);return C}return s},[s,l]),b=L.useMemo(function(){return r.map(function(x){return"".concat(x.color," ").concat(x.percent,"%")})},[r]);return L.createElement("div",{ref:c,className:ne("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:w,onTouchStart:w},L.createElement(jQ,{prefixCls:n},L.createElement(FQ,{x:g.x,y:g.y,ref:d},L.createElement(DQ,{size:"small",color:y.toHexString(),prefixCls:n})),L.createElement(dOe,{colors:b,type:l,prefixCls:n})))};function mOe(e){return u.useMemo(function(){var t=e||{},n=t.slider;return[n||fOe]},[e])}var pOe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],hOe=u.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,a=i===void 0?oOe:i,o=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,p=e.disabled,h=p===void 0?!1:p,v=e.components,g=mOe(v),w=ie(g,1),y=w[0],b=uOe(r||sOe,n),x=ie(b,2),C=x[0],S=x[1],_=u.useMemo(function(){return C.setA(1).toRgbString()},[C]),k=function(z,I){n||S(z),o==null||o(z,I)},$=function(z){return new zs(C.setHue(z))},E=function(z){return new zs(C.setA(z/100))},P=function(z){k($(z),{type:"hue",value:z})},M=function(z){k(E(z),{type:"alpha",value:z})},j=function(z){s&&s($(z))},O=function(z){s&&s(E(z))},N=ne("".concat(a,"-panel"),l,K({},"".concat(a,"-panel-disabled"),h)),R={prefixCls:a,disabled:h,color:C},D=L.createElement(L.Fragment,null,L.createElement(cOe,Oe({onChange:k},R,{onChangeComplete:s})),L.createElement("div",{className:"".concat(a,"-slider-container")},L.createElement("div",{className:ne("".concat(a,"-slider-group"),K({},"".concat(a,"-slider-group-disabled-alpha"),m))},L.createElement(y,Oe({},R,{type:"hue",colors:pOe,min:0,max:359,value:C.getHue(),onChange:P,onChangeComplete:j})),!m&&L.createElement(y,Oe({},R,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:_}],min:0,max:100,value:C.a*100,onChange:M,onChangeComplete:O}))),L.createElement(HI,{color:C.toRgbString(),prefixCls:a})));return L.createElement("div",{className:N,style:c,ref:t},typeof d=="function"?d(D):D)});const kv=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",vOe=(e,t)=>e?kv(e,t):"";let ao=function(){function e(t){cr(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:a,percent:o}=i;return{color:new e(a),percent:o}}),this.metaColor=new zs(this.colors[0].color.metaColor)):this.metaColor=new zs(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ur(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return vOe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var AQ=L.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,o=e.children,s=e.isActive,l=e.role,c=e.classNames,d=e.styles,f=L.useState(s||r),m=ie(f,2),p=m[0],h=m[1];return L.useEffect(function(){(r||s)&&h(!0)},[r,s]),p?L.createElement("div",{ref:t,className:ne("".concat(n,"-content"),K(K({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:a,role:l},L.createElement("div",{className:ne("".concat(n,"-content-box"),c==null?void 0:c.body),style:d==null?void 0:d.body},o)):null});AQ.displayName="PanelContent";var gOe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],LQ=L.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,a=e.isActive,o=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,d=c===void 0?{}:c,f=e.styles,m=f===void 0?{}:f,p=e.prefixCls,h=e.collapsible,v=e.accordion,g=e.panelKey,w=e.extra,y=e.header,b=e.expandIcon,x=e.openMotion,C=e.destroyInactivePanel,S=e.children,_=ft(e,gOe),k=h==="disabled",$=w!=null&&typeof w!="boolean",E=K(K(K({onClick:function(){o==null||o(g)},onKeyDown:function(D){(D.key==="Enter"||D.keyCode===qe.ENTER||D.which===qe.ENTER)&&(o==null||o(g))},role:v?"tab":"button"},"aria-expanded",a),"aria-disabled",k),"tabIndex",k?-1:0),P=typeof b=="function"?b(e):L.createElement("i",{className:"arrow"}),M=P&&L.createElement("div",Oe({className:"".concat(p,"-expand-icon")},["header","icon"].includes(h)?E:{}),P),j=ne("".concat(p,"-item"),K(K({},"".concat(p,"-item-active"),a),"".concat(p,"-item-disabled"),k),l),O=ne(i,"".concat(p,"-header"),K({},"".concat(p,"-collapsible-").concat(h),!!h),d.header),N=A({className:O,style:m.header},["header","icon"].includes(h)?{}:E);return L.createElement("div",Oe({},_,{ref:t,className:j}),L.createElement("div",N,r&&M,L.createElement("span",Oe({className:"".concat(p,"-header-text")},h==="header"?E:{}),y),$&&L.createElement("div",{className:"".concat(p,"-extra")},w)),L.createElement(Oi,Oe({visible:a,leavedClassName:"".concat(p,"-content-hidden")},x,{forceRender:s,removeOnLeave:C}),function(R,D){var F=R.className,z=R.style;return L.createElement(AQ,{ref:D,prefixCls:p,className:F,classNames:d,style:z,styles:m,isActive:a,forceRender:s,role:v?"tabpanel":void 0},S)}))}),bOe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],yOe=function(t,n){var r=n.prefixCls,i=n.accordion,a=n.collapsible,o=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var p=f.children,h=f.label,v=f.key,g=f.collapsible,w=f.onItemClick,y=f.destroyInactivePanel,b=ft(f,bOe),x=String(v??m),C=g??a,S=y??o,_=function(E){C!=="disabled"&&(s(E),w==null||w(E))},k=!1;return i?k=l[0]===x:k=l.indexOf(x)>-1,L.createElement(LQ,Oe({},b,{prefixCls:r,key:x,panelKey:x,isActive:k,accordion:i,openMotion:c,expandIcon:d,header:h,collapsible:C,onItemClick:_,destroyInactivePanel:S}),p)})},wOe=function(t,n,r){if(!t)return null;var i=r.prefixCls,a=r.accordion,o=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),p=t.props,h=p.header,v=p.headerClass,g=p.destroyInactivePanel,w=p.collapsible,y=p.onItemClick,b=!1;a?b=c[0]===m:b=c.indexOf(m)>-1;var x=w??o,C=function(k){x!=="disabled"&&(l(k),y==null||y(k))},S={key:m,panelKey:m,header:h,headerClass:v,isActive:b,prefixCls:i,destroyInactivePanel:g??s,openMotion:d,accordion:a,children:t.props.children,onItemClick:C,expandIcon:f,collapsible:x};return typeof t.type=="string"?t:(Object.keys(S).forEach(function(_){typeof S[_]>"u"&&delete S[_]}),L.cloneElement(t,S))};function xOe(e,t,n){return Array.isArray(e)?yOe(e,n):Lr(t).map(function(r,i){return wOe(r,i,n)})}function SOe(e){var t=e;if(!Array.isArray(t)){var n=mt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var COe=L.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,a=i===void 0?!1:i,o=e.style,s=e.accordion,l=e.className,c=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,p=e.activeKey,h=e.defaultActiveKey,v=e.onChange,g=e.items,w=ne(r,l),y=Ut([],{value:p,onChange:function($){return v==null?void 0:v($)},defaultValue:h,postState:SOe}),b=ie(y,2),x=b[0],C=b[1],S=function($){return C(function(){if(s)return x[0]===$?[]:[$];var E=x.indexOf($),P=E>-1;return P?x.filter(function(M){return M!==$}):[].concat(Fe(x),[$])})};Fn(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var _=xOe(g,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:a,onItemClick:S,activeKey:x});return L.createElement("div",Oe({ref:t,className:w,style:o,role:s?"tablist":void 0},yr(e,{aria:!0,data:!0})),_)});const VI=Object.assign(COe,{Panel:LQ});VI.Panel;const _Oe=u.forwardRef((e,t)=>{const{getPrefixCls:n}=u.useContext(Ct),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n("collapse",r),s=ne({[`${o}-no-arrow`]:!a},i);return u.createElement(VI.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))}),a1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),kOe=e=>({animationDuration:e,animationFillMode:"both"}),$Oe=e=>({animationDuration:e,animationFillMode:"both"}),W2=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${a}${e}-enter, - ${a}${e}-appear - `]:Object.assign(Object.assign({},kOe(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},$Oe(r)),{animationPlayState:"paused"}),[` - ${a}${e}-enter${e}-enter-active, - ${a}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},EOe=new on("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),POe=new on("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),WI=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[W2(r,EOe,POe,e.motionDurationMid,t),{[` - ${i}${r}-enter, - ${i}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},TOe=new on("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),OOe=new on("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ROe=new on("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),IOe=new on("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),MOe=new on("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NOe=new on("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),DOe=new on("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jOe=new on("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),FOe={"move-up":{inKeyframes:DOe,outKeyframes:jOe},"move-down":{inKeyframes:TOe,outKeyframes:OOe},"move-left":{inKeyframes:ROe,outKeyframes:IOe},"move-right":{inKeyframes:MOe,outKeyframes:NOe}},gp=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=FOe[t];return[W2(r,i,a,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},U2=new on("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),q2=new on("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),G2=new on("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),K2=new on("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),AOe=new on("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),LOe=new on("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),BOe=new on("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),zOe=new on("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),HOe={"slide-up":{inKeyframes:U2,outKeyframes:q2},"slide-down":{inKeyframes:G2,outKeyframes:K2},"slide-left":{inKeyframes:AOe,outKeyframes:LOe},"slide-right":{inKeyframes:BOe,outKeyframes:zOe}},Pl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=HOe[t];return[W2(r,i,a,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},UI=new on("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),VOe=new on("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),uA=new on("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),dA=new on("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),WOe=new on("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),UOe=new on("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),qOe=new on("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),GOe=new on("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),KOe=new on("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),YOe=new on("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),XOe=new on("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),QOe=new on("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),ZOe={zoom:{inKeyframes:UI,outKeyframes:VOe},"zoom-big":{inKeyframes:uA,outKeyframes:dA},"zoom-big-fast":{inKeyframes:uA,outKeyframes:dA},"zoom-left":{inKeyframes:qOe,outKeyframes:GOe},"zoom-right":{inKeyframes:KOe,outKeyframes:YOe},"zoom-up":{inKeyframes:WOe,outKeyframes:UOe},"zoom-down":{inKeyframes:XOe,outKeyframes:QOe}},Zp=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=ZOe[t];return[W2(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},JOe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:d,colorBorder:f,colorText:m,colorTextHeading:p,colorTextDisabled:h,fontSizeLG:v,lineHeight:g,lineHeightLG:w,marginSM:y,paddingSM:b,paddingLG:x,paddingXS:C,motionDurationSlow:S,fontSizeIcon:_,contentPadding:k,fontHeight:$,fontHeightLG:E}=e,P=`${ae(c)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},mn(e)),{backgroundColor:i,border:P,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:first-child":{[` - &, - & > ${t}-header`]:{borderRadius:`${ae(l)} ${ae(l)} 0 0`}},"&:last-child":{[` - &, - & > ${t}-header`]:{borderRadius:`0 0 ${ae(l)} ${ae(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:g,cursor:"pointer",transition:`all ${S}, visibility 0s`},yo(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},bf()),{fontSize:_,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:v,lineHeight:w,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:E,marginInlineStart:e.calc(x).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${ae(l)} ${ae(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},e6e=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},t6e=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[` - > ${t}-item:last-child, - > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},n6e=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},r6e=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),i6e=un("Collapse",e=>{const t=Yt(e,{collapseHeaderPaddingSM:`${ae(e.paddingXS)} ${ae(e.paddingSM)}`,collapseHeaderPaddingLG:`${ae(e.padding)} ${ae(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[JOe(t),t6e(t),n6e(t),e6e(t),a1(t)]},r6e),a6e=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=u.useContext(Ct),{prefixCls:a,className:o,rootClassName:s,style:l,bordered:c=!0,ghost:d,size:f,expandIconPosition:m="start",children:p,expandIcon:h}=e,v=Fr(P=>{var M;return(M=f??P)!==null&&M!==void 0?M:"middle"}),g=n("collapse",a),w=n(),[y,b,x]=i6e(g),C=u.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),S=h??(i==null?void 0:i.expandIcon),_=u.useCallback(function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=typeof S=="function"?S(P):u.createElement(Fs,{rotate:P.isActive?r==="rtl"?-90:90:void 0,"aria-label":P.isActive?"expanded":"collapsed"});return zr(M,()=>{var j;return{className:ne((j=M==null?void 0:M.props)===null||j===void 0?void 0:j.className,`${g}-arrow`)}})},[S,g]),k=ne(`${g}-icon-position-${C}`,{[`${g}-borderless`]:!c,[`${g}-rtl`]:r==="rtl",[`${g}-ghost`]:!!d,[`${g}-${v}`]:v!=="middle"},i==null?void 0:i.className,o,s,b,x),$=Object.assign(Object.assign({},vp(w)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),E=u.useMemo(()=>p?Lr(p).map((P,M)=>{var j,O;const N=P.props;if(N!=null&&N.disabled){const R=(j=P.key)!==null&&j!==void 0?j:String(M),D=Object.assign(Object.assign({},kn(P.props,["disabled"])),{key:R,collapsible:(O=N.collapsible)!==null&&O!==void 0?O:"disabled"});return zr(P,D)}return P}):null,[p]);return y(u.createElement(VI,Object.assign({ref:t,openMotion:$},kn(e,["rootClassName"]),{expandIcon:_,prefixCls:g,className:k,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),E))}),o6e=Object.assign(a6e,{Panel:_Oe}),ta=e=>e instanceof ao?e:new ao(e),aw=e=>Math.round(Number(e||0)),qI=e=>aw(e.toHsb().a*100),ow=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,ta(r)}return n.a=1,ta(n)},BQ=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Fe(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(ta),t)),zQ=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),o=new zs(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},fA=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},s6e=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[a]=ya("ColorPicker"),[,o]=Zr(),[s]=Ut(aE(n),{value:aE(n),postState:aE}),l=`${t}-presets`,c=u.useMemo(()=>s.reduce((m,p,h)=>{const{defaultOpen:v=!0}=p;return v&&m.push(fA(p,h)),m},[]),[s]),d=m=>{i==null||i(m)},f=s.map((m,p)=>{var h;return{key:fA(m,p),label:L.createElement("div",{className:`${l}-label`},m==null?void 0:m.label),children:L.createElement("div",{className:`${l}-items`},Array.isArray(m==null?void 0:m.colors)&&((h=m.colors)===null||h===void 0?void 0:h.length)>0?m.colors.map((v,g)=>L.createElement(HI,{key:`preset-${g}-${v.toHexString()}`,color:ta(v).toRgbString(),prefixCls:t,className:ne(`${l}-color`,{[`${l}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:zQ(v,o.colorBgElevated)}),onClick:()=>d(v)})):L.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return L.createElement("div",{className:l},L.createElement(o6e,{defaultActiveKey:c,ghost:!0,items:f}))},HQ=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Yt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},VQ=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(i=e.contentLineHeight)!==null&&i!==void 0?i:rw(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:rw(l),m=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:rw(c),p=zQ(new ao(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*m)/2-e.lineWidth,0)}},l6e=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:bf(),"> a":{color:"currentColor"},"&:not(:disabled)":yo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},WQ=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),c6e=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),u6e=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),d6e=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),GI=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},WQ(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),f6e=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},d6e(e))}),m6e=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Y2=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?m6e:f6e;return Object.assign(Object.assign({},a(e)),WQ(e.componentCls,t,n))},X2=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Y2(e,r,i))}),Q2=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Y2(e,r,i))}),Z2=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),J2=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Y2(e,n,r))}),Pu=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Y2(e,r,i,n))}),p6e=e=>{const{componentCls:t}=e;return tf.reduce((n,r)=>{const i=e[`${r}6`],a=e[`${r}1`],o=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],d=`0 ${ae(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:d},X2(e,e.colorTextLightSolid,i,{background:o},{background:c})),Q2(e,i,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Z2(e)),J2(e,a,{background:s},{background:l})),Pu(e,i,"link",{color:o},{color:c})),Pu(e,i,"text",{color:o,background:a},{color:c,background:l}))})},{})},h6e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},X2(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Z2(e)),J2(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Pu(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),GI(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),v6e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Q2(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Z2(e)),J2(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Pu(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),GI(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),g6e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},X2(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Q2(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Z2(e)),J2(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Pu(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Pu(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),GI(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),b6e=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:h6e(e),[`${t}-color-primary`]:v6e(e),[`${t}-color-dangerous`]:g6e(e)},p6e(e))},y6e=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Q2(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Pu(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),X2(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Pu(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),KI=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${ae(l)} ${ae(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:c6e(e)},{[`${n}${n}-round${t}`]:u6e(e)}]},w6e=e=>{const t=Yt(e,{fontSize:e.contentFontSize});return KI(t,e.componentCls)},x6e=e=>{const t=Yt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return KI(t,`${e.componentCls}-sm`)},S6e=e=>{const t=Yt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return KI(t,`${e.componentCls}-lg`)},C6e=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},_6e=un("Button",e=>{const t=HQ(e);return[l6e(t),w6e(t),x6e(t),S6e(t),C6e(t),b6e(t),y6e(t),nOe(t)]},VQ,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function k6e(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function $6e(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function wf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},k6e(e,r,t)),$6e(n,r,t))}}function E6e(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function P6e(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function T6e(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},E6e(e,t)),P6e(e.componentCls,t))}}const O6e=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},R6e=yf(["Button","compact"],e=>{const t=HQ(e);return[wf(t),T6e(t),O6e(t)]},VQ);var I6e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a;const{loading:o=!1,prefixCls:s,color:l,variant:c,type:d,danger:f=!1,shape:m="default",size:p,styles:h,disabled:v,className:g,rootClassName:w,children:y,icon:b,iconPosition:x="start",ghost:C=!1,block:S=!1,htmlType:_="button",classNames:k,style:$={},autoInsertSpace:E,autoFocus:P}=e,M=I6e(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),j=d||"default",[O,N]=u.useMemo(()=>{if(l&&c)return[l,c];const we=N6e[j]||[];return f?["danger",we[1]]:we},[d,l,c,f]),D=O==="danger"?"dangerous":O,{getPrefixCls:F,direction:z,button:I}=u.useContext(Ct),H=(n=E??(I==null?void 0:I.autoInsertSpace))!==null&&n!==void 0?n:!0,V=F("btn",s),[B,W,U]=_6e(V),X=u.useContext(Br),q=v??X,Y=u.useContext(OQ),re=u.useMemo(()=>M6e(o),[o]),[G,Q]=u.useState(re.loading),[J,Z]=u.useState(!1),ee=u.useRef(null),te=Ec(t,ee),le=u.Children.count(y)===1&&!b&&!tE(N),oe=u.useRef(!0);L.useEffect(()=>(oe.current=!1,()=>{oe.current=!0}),[]),u.useEffect(()=>{let we=null;re.delay>0?we=setTimeout(()=>{we=null,Q(!0)},re.delay):Q(re.loading);function be(){we&&(clearTimeout(we),we=null)}return be},[re]),u.useEffect(()=>{if(!ee.current||!H)return;const we=ee.current.textContent||"";le&&hT(we)?J||Z(!0):J&&Z(!1)}),u.useEffect(()=>{P&&ee.current&&ee.current.focus()},[]);const de=L.useCallback(we=>{var be;if(G||q){we.preventDefault();return}(be=e.onClick)===null||be===void 0||be.call(e,we)},[e.onClick,G,q]),{compactSize:pe,compactItemClassnames:ye}=Qs(V,z),me={large:"lg",small:"sm",middle:void 0},xe=Fr(we=>{var be,Pe;return(Pe=(be=p??pe)!==null&&be!==void 0?be:Y)!==null&&Pe!==void 0?Pe:we}),ue=xe&&(r=me[xe])!==null&&r!==void 0?r:"",ce=G?"loading":b,$e=kn(M,["navigate"]),se=ne(V,W,U,{[`${V}-${m}`]:m!=="default"&&m,[`${V}-${j}`]:j,[`${V}-dangerous`]:f,[`${V}-color-${D}`]:D,[`${V}-variant-${N}`]:N,[`${V}-${ue}`]:ue,[`${V}-icon-only`]:!y&&y!==0&&!!ce,[`${V}-background-ghost`]:C&&!tE(N),[`${V}-loading`]:G,[`${V}-two-chinese-chars`]:J&&H&&!G,[`${V}-block`]:S,[`${V}-rtl`]:z==="rtl",[`${V}-icon-end`]:x==="end"},ye,g,w,I==null?void 0:I.className),he=Object.assign(Object.assign({},I==null?void 0:I.style),$),ve=ne(k==null?void 0:k.icon,(i=I==null?void 0:I.classNames)===null||i===void 0?void 0:i.icon),ke=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),((a=I==null?void 0:I.styles)===null||a===void 0?void 0:a.icon)||{}),Se=b&&!G?L.createElement(vT,{prefixCls:V,className:ve,style:ke},b):typeof o=="object"&&o.icon?L.createElement(vT,{prefixCls:V,className:ve,style:ke},o.icon):L.createElement(tOe,{existIcon:!!b,prefixCls:V,loading:G,mount:oe.current}),Ee=y||y===0?eOe(y,le&&H):null;if($e.href!==void 0)return B(L.createElement("a",Object.assign({},$e,{className:ne(se,{[`${V}-disabled`]:q}),href:q?void 0:$e.href,style:he,onClick:de,ref:te,tabIndex:q?-1:0}),Se,Ee));let De=L.createElement("button",Object.assign({},M,{type:_,className:se,style:he,onClick:de,disabled:q,ref:te}),Se,Ee,ye&&L.createElement(R6e,{prefixCls:V}));return tE(N)||(De=L.createElement(i1,{component:"Button",disabled:G},De)),B(De)}),_n=D6e;_n.Group=ZTe;_n.__ANT_BUTTON=!0;function oE(e){return!!(e!=null&&e.then)}const UQ=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:d}=e,f=u.useRef(!1),m=u.useRef(null),[p,h]=ef(!1),v=function(){a==null||a.apply(void 0,arguments)};u.useEffect(()=>{let y=null;return o&&(y=setTimeout(()=>{var b;(b=m.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[]);const g=y=>{oE(y)&&(h(!0),y.then(function(){h(!1,!0),v.apply(void 0,arguments),f.current=!1},b=>{if(h(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(b)}))},w=y=>{if(f.current)return;if(f.current=!0,!d){v();return}let b;if(s){if(b=d(y),c&&!oE(b)){f.current=!1,v(y);return}}else if(d.length)b=d(a),f.current=!1;else if(b=d(),!oE(b)){v();return}g(b)};return u.createElement(_n,Object.assign({},RQ(t),{onClick:w,loading:p,prefixCls:r},i,{ref:m}),n)},o1=L.createContext({}),{Provider:qQ}=o1,mA=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:l}=u.useContext(o1);return i?L.createElement(UQ,{isSilent:r,actionFn:s,close:function(){o==null||o.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},pA=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:l}=u.useContext(o1);return L.createElement(UQ,{isSilent:n,type:o||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},a)};var GQ=u.createContext(null),hA=[];function j6e(e,t){var n=u.useState(function(){if(!va())return null;var h=document.createElement("div");return h}),r=ie(n,1),i=r[0],a=u.useRef(!1),o=u.useContext(GQ),s=u.useState(hA),l=ie(s,2),c=l[0],d=l[1],f=o||(a.current?void 0:function(h){d(function(v){var g=[h].concat(Fe(v));return g})});function m(){i.parentElement||document.body.appendChild(i),a.current=!0}function p(){var h;(h=i.parentElement)===null||h===void 0||h.removeChild(i),a.current=!1}return an(function(){return e?o?o(m):m():p(),p},[e]),an(function(){c.length&&(c.forEach(function(h){return h()}),d(hA))},[c]),[i,f]}var sE;function KQ(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";h2(` -#`.concat(t,`::-webkit-scrollbar { -`).concat(d,` -`).concat(f,` -}`),t)}catch(h){console.error(h),i=l,a=c}}document.body.appendChild(n);var m=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,p=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),YP(t),{width:m,height:p}}function vA(e){return typeof document>"u"?0:(sE===void 0&&(sE=KQ()),sE.width)}function gT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:KQ(e)}function F6e(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var A6e="rc-util-locker-".concat(Date.now()),gA=0;function L6e(e){var t=!!e,n=u.useState(function(){return gA+=1,"".concat(A6e,"_").concat(gA)}),r=ie(n,1),i=r[0];an(function(){if(t){var a=gT(document.body).width,o=F6e();h2(` -html body { - overflow-y: hidden; - `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",` -}`),i)}else YP(i);return function(){YP(i)}},[t,i])}var B6e=!1;function z6e(e){return B6e}var bA=function(t){return t===!1?!1:!va()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},e_=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,l=u.useState(n),c=ie(l,2),d=c[0],f=c[1],m=d||n;u.useEffect(function(){(o||n)&&f(n)},[n,o]);var p=u.useState(function(){return bA(i)}),h=ie(p,2),v=h[0],g=h[1];u.useEffect(function(){var P=bA(i);g(P??null)});var w=j6e(m&&!v),y=ie(w,2),b=y[0],x=y[1],C=v??b;L6e(r&&n&&va()&&(C===b||C===document.body));var S=null;if(s&&As(s)&&t){var _=s;S=_.ref}var k=Ec(S,t);if(!m||!va()||v===void 0)return null;var $=C===!1||z6e(),E=s;return t&&(E=u.cloneElement(s,{ref:k})),u.createElement(GQ.Provider,{value:x},$?E:yi.createPortal(E,C))}),YQ=u.createContext({});function H6e(){var e=A({},zd);return e.useId}var yA=0,wA=H6e();const t_=wA?function(t){var n=wA();return t||n}:function(t){var n=u.useState("ssr-id"),r=ie(n,2),i=r[0],a=r[1];return u.useEffect(function(){var o=yA;yA+=1,a("rc_unique_".concat(o))},[]),t||i};function xA(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function SA(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function V6e(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=SA(i),n.top+=SA(i,!0),n}const W6e=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var U6e={width:0,height:0,overflow:"hidden",outline:"none"},q6e={outline:"none"},XQ=L.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,p=e.bodyProps,h=e.modalRender,v=e.onMouseDown,g=e.onMouseUp,w=e.holderRef,y=e.visible,b=e.forceRender,x=e.width,C=e.height,S=e.classNames,_=e.styles,k=L.useContext(YQ),$=k.panel,E=Ec(w,$),P=u.useRef(),M=u.useRef();L.useImperativeHandle(t,function(){return{focus:function(){var V;(V=P.current)===null||V===void 0||V.focus({preventScroll:!0})},changeActive:function(V){var B=document,W=B.activeElement;V&&W===M.current?P.current.focus({preventScroll:!0}):!V&&W===P.current&&M.current.focus({preventScroll:!0})}}});var j={};x!==void 0&&(j.width=x),C!==void 0&&(j.height=C);var O=s?L.createElement("div",{className:ne("".concat(n,"-footer"),S==null?void 0:S.footer),style:A({},_==null?void 0:_.footer)},s):null,N=a?L.createElement("div",{className:ne("".concat(n,"-header"),S==null?void 0:S.header),style:A({},_==null?void 0:_.header)},L.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,R=u.useMemo(function(){return mt(l)==="object"&&l!==null?l:l?{closeIcon:c??L.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),D=yr(R,!0),F=mt(l)==="object"&&l.disabled,z=l?L.createElement("button",Oe({type:"button",onClick:d,"aria-label":"Close"},D,{className:"".concat(n,"-close"),disabled:F}),R.closeIcon):null,I=L.createElement("div",{className:ne("".concat(n,"-content"),S==null?void 0:S.content),style:_==null?void 0:_.content},z,N,L.createElement("div",Oe({className:ne("".concat(n,"-body"),S==null?void 0:S.body),style:A(A({},m),_==null?void 0:_.body)},p),f),O);return L.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:E,style:A(A({},i),j),className:ne(n,r),onMouseDown:v,onMouseUp:g},L.createElement("div",{ref:P,tabIndex:0,style:q6e},L.createElement(W6e,{shouldUpdate:y||b},h?h(I):I)),L.createElement("div",{tabIndex:0,ref:M,style:U6e}))}),QQ=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,p=u.useRef(),h=u.useState(),v=ie(h,2),g=v[0],w=v[1],y={};g&&(y.transformOrigin=g);function b(){var x=V6e(p.current);w(m&&(m.x||m.y)?"".concat(m.x-x.left,"px ").concat(m.y-x.top,"px"):"")}return u.createElement(Oi,{visible:o,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(x,C){var S=x.className,_=x.style;return u.createElement(XQ,Oe({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:C,style:A(A(A({},_),i),y),className:ne(a,S)}))})});QQ.displayName="Content";var G6e=function(t){var n=t.prefixCls,r=t.style,i=t.visible,a=t.maskProps,o=t.motionName,s=t.className;return u.createElement(Oi,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var d=l.className,f=l.style;return u.createElement("div",Oe({ref:c,style:A(A({},f),r),className:ne("".concat(n,"-mask"),d,s)},a))})},K6e=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,a=t.visible,o=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,d=c===void 0?!0:c,f=t.wrapStyle,m=t.wrapClassName,p=t.wrapProps,h=t.onClose,v=t.afterOpenChange,g=t.afterClose,w=t.transitionName,y=t.animation,b=t.closable,x=b===void 0?!0:b,C=t.mask,S=C===void 0?!0:C,_=t.maskTransitionName,k=t.maskAnimation,$=t.maskClosable,E=$===void 0?!0:$,P=t.maskStyle,M=t.maskProps,j=t.rootClassName,O=t.classNames,N=t.styles,R=u.useRef(),D=u.useRef(),F=u.useRef(),z=u.useState(o),I=ie(z,2),H=I[0],V=I[1],B=t_();function W(){GP(D.current,document.activeElement)||(R.current=document.activeElement)}function U(){if(!GP(D.current,document.activeElement)){var te;(te=F.current)===null||te===void 0||te.focus()}}function X(te){if(te)U();else{if(V(!1),S&&R.current&&d){try{R.current.focus({preventScroll:!0})}catch{}R.current=null}H&&(g==null||g())}v==null||v(te)}function q(te){h==null||h(te)}var Y=u.useRef(!1),re=u.useRef(),G=function(){clearTimeout(re.current),Y.current=!0},Q=function(){re.current=setTimeout(function(){Y.current=!1})},J=null;E&&(J=function(le){Y.current?Y.current=!1:D.current===le.target&&q(le)});function Z(te){if(l&&te.keyCode===qe.ESC){te.stopPropagation(),q(te);return}o&&te.keyCode===qe.TAB&&F.current.changeActive(!te.shiftKey)}u.useEffect(function(){o&&(V(!0),W())},[o]),u.useEffect(function(){return function(){clearTimeout(re.current)}},[]);var ee=A(A(A({zIndex:i},f),N==null?void 0:N.wrapper),{},{display:H?null:"none"});return u.createElement("div",Oe({className:ne("".concat(r,"-root"),j)},yr(t,{data:!0})),u.createElement(G6e,{prefixCls:r,visible:S&&o,motionName:xA(r,_,k),style:A(A({zIndex:i},P),N==null?void 0:N.mask),maskProps:M,className:O==null?void 0:O.mask}),u.createElement("div",Oe({tabIndex:-1,onKeyDown:Z,className:ne("".concat(r,"-wrap"),m,O==null?void 0:O.wrapper),ref:D,onClick:J,style:ee},p),u.createElement(QQ,Oe({},t,{onMouseDown:G,onMouseUp:Q,ref:F,closable:x,ariaId:B,prefixCls:r,visible:o&&H,onClose:q,onVisibleChanged:X,motionName:xA(r,w,y)}))))},YI=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,a=t.destroyOnClose,o=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,c=u.useState(n),d=ie(c,2),f=d[0],m=d[1],p=u.useMemo(function(){return{panel:l}},[l]);return u.useEffect(function(){n&&m(!0)},[n]),!i&&o&&!f?null:u.createElement(YQ.Provider,{value:p},u.createElement(e_,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},u.createElement(K6e,Oe({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),m(!1)}}))))};YI.displayName="Dialog";var yd="RC_FORM_INTERNAL_HOOKS",nr=function(){Fn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Tu=u.createContext({getFieldValue:nr,getFieldsValue:nr,getFieldError:nr,getFieldWarning:nr,getFieldsError:nr,isFieldsTouched:nr,isFieldTouched:nr,isFieldValidating:nr,isFieldsValidating:nr,resetFields:nr,setFields:nr,setFieldValue:nr,setFieldsValue:nr,validateFields:nr,submit:nr,getInternalHooks:function(){return nr(),{dispatch:nr,initEntityValue:nr,registerField:nr,useSubscribe:nr,setInitialValues:nr,destroyForm:nr,setCallbacks:nr,registerWatch:nr,getFields:nr,setValidateMessages:nr,setPreserve:nr,getInitialValue:nr}}}),Jg=u.createContext(null);function bT(e){return e==null?[]:Array.isArray(e)?e:[e]}function Y6e(e){return e&&!!e._init}function yT(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var wT=yT();function X6e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Q6e(e,t,n){if(SI())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Ug(i,n.prototype),i}function xT(e){var t=typeof Map=="function"?new Map:void 0;return xT=function(r){if(r===null||!X6e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Q6e(r,arguments,qg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ug(i,r)},xT(e)}var Z6e=/%[sdj%]/g,J6e=function(){};function ST(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function oo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function eRe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function wi(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eRe(t)&&typeof e=="string"&&!e)}function tRe(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,Fe(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function CA(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?i.push(oo(a.messages[f].max,t.fullField,t.max)):s&&l&&(dt.max)&&i.push(oo(a.messages[f].range,t.fullField,t.min,t.max))},ZQ=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||wi(n,o||t.type))&&i.push(oo(a.messages.required,t.fullField))},Fb;const cRe=function(){if(Fb)return Fb;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),d=function(S){return S&&S.exact?s:new RegExp("(?:".concat(t(S)).concat(n).concat(t(S),")|(?:").concat(t(S)).concat(o).concat(t(S),")"),"g")};d.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(o).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,h=d.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(p,"|").concat(h,"|").concat(v).concat(g).concat(w,")").concat(y).concat(b);return Fb=new RegExp("(?:^".concat(x,"$)"),"i"),Fb};var EA={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},$v={integer:function(t){return $v.number(t)&&parseInt(t,10)===t},float:function(t){return $v.number(t)&&!$v.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return mt(t)==="object"&&!$v.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(EA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cRe())},hex:function(t){return typeof t=="string"&&!!t.match(EA.hex)}},uRe=function(t,n,r,i,a){if(t.required&&n===void 0){ZQ(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?$v[s](n)||i.push(oo(a.messages.types[s],t.fullField,t.type)):s&&mt(n)!==t.type&&i.push(oo(a.messages.types[s],t.fullField,t.type))},dRe=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(oo(a.messages.whitespace,t.fullField))};const In={required:ZQ,whitespace:dRe,type:uRe,range:lRe,enum:oRe,pattern:sRe};var fRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n)&&!t.required)return r();In.required(t,n,i,o,a)}r(o)},mRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();In.required(t,n,i,o,a,"array"),n!=null&&(In.type(t,n,i,o,a),In.range(t,n,i,o,a))}r(o)},pRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n)&&!t.required)return r();In.required(t,n,i,o,a),n!==void 0&&In.type(t,n,i,o,a)}r(o)},hRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n,"date")&&!t.required)return r();if(In.required(t,n,i,o,a),!wi(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),In.type(t,l,i,o,a),l&&In.range(t,l.getTime(),i,o,a)}}r(o)},vRe="enum",gRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n)&&!t.required)return r();In.required(t,n,i,o,a),n!==void 0&&In[vRe](t,n,i,o,a)}r(o)},bRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n)&&!t.required)return r();In.required(t,n,i,o,a),n!==void 0&&(In.type(t,n,i,o,a),In.range(t,n,i,o,a))}r(o)},yRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n)&&!t.required)return r();In.required(t,n,i,o,a),n!==void 0&&(In.type(t,n,i,o,a),In.range(t,n,i,o,a))}r(o)},wRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n)&&!t.required)return r();In.required(t,n,i,o,a),n!==void 0&&In.type(t,n,i,o,a)}r(o)},xRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),wi(n)&&!t.required)return r();In.required(t,n,i,o,a),n!==void 0&&(In.type(t,n,i,o,a),In.range(t,n,i,o,a))}r(o)},SRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n)&&!t.required)return r();In.required(t,n,i,o,a),n!==void 0&&In.type(t,n,i,o,a)}r(o)},CRe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n,"string")&&!t.required)return r();In.required(t,n,i,o,a),wi(n,"string")||In.pattern(t,n,i,o,a)}r(o)},_Re=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n)&&!t.required)return r();In.required(t,n,i,o,a),wi(n)||In.type(t,n,i,o,a)}r(o)},kRe=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":mt(n);In.required(t,n,i,o,a,s),r(o)},$Re=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(wi(n,"string")&&!t.required)return r();In.required(t,n,i,o,a,"string"),wi(n,"string")||(In.type(t,n,i,o,a),In.range(t,n,i,o,a),In.pattern(t,n,i,o,a),t.whitespace===!0&&In.whitespace(t,n,i,o,a))}r(o)},lE=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(wi(n,o)&&!t.required)return r();In.required(t,n,i,s,a,o),wi(n,o)||In.type(t,n,i,s,a)}r(s)};const Zv={string:$Re,method:wRe,number:xRe,boolean:pRe,regexp:_Re,integer:yRe,float:bRe,array:mRe,object:SRe,enum:gRe,pattern:CRe,date:hRe,url:lE,hex:lE,email:lE,required:kRe,any:fRe};var s1=function(){function e(t){cr(this,e),K(this,"rules",null),K(this,"_messages",wT),this.define(t)}return ur(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(mt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=$A(yT(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(h){var v=[],g={};function w(b){if(Array.isArray(b)){var x;v=(x=v).concat.apply(x,Fe(b))}else v.push(b)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(_)?_:[_];!s.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&g.message!==void 0&&(k=[].concat(g.message));var $=k.map(kA(g,o));if(s.first&&$.length)return p[g.field]=1,v($);if(!w)v($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(kA(g,o)):s.error&&($=[s.error(g,oo(s.messages.required,g.field))]),v($);var E={};g.defaultField&&Object.keys(h.value).map(function(j){E[j]=g.defaultField}),E=A(A({},E),h.rule.fields);var P={};Object.keys(E).forEach(function(j){var O=E[j],N=Array.isArray(O)?O:[O];P[j]=N.map(y.bind(null,j))});var M=new e(P);M.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),M.validate(h.value,h.rule.options||s,function(j){var O=[];$&&$.length&&O.push.apply(O,Fe($)),j&&j.length&&O.push.apply(O,Fe(j)),v(O.length?O:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,h.value,b,h.source,s);else if(g.validator){try{x=g.validator(g,h.value,b,h.source,s)}catch(_){var C,S;(C=(S=console).error)===null||C===void 0||C.call(S,_),s.suppressValidatorError||setTimeout(function(){throw _},0),b(_.message)}x===!0?b():x===!1?b(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(_){return b(_)})},function(h){c(h)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Zv.hasOwnProperty(n.type))throw new Error(oo("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Zv.required:Zv[this.getType(n)]||void 0}}]),e}();K(s1,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Zv[t]=n});K(s1,"warning",J6e);K(s1,"messages",wT);K(s1,"validators",Zv);var qa="'${name}' is not a valid ${type}",JQ={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:qa,method:qa,array:qa,object:qa,number:qa,date:qa,boolean:qa,integer:qa,float:qa,regexp:qa,email:qa,url:qa,hex:qa},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},PA=s1;function ERe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var TA="CODE_LOGIC_ERROR";function CT(e,t,n,r,i){return _T.apply(this,arguments)}function _T(){return _T=Ki(Bn().mark(function e(t,n,r,i,a){var o,s,l,c,d,f,m,p,h;return Bn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=A({},r),delete o.ruleIndex,PA.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(TA)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new PA(K({},t,[o])),d=wm(JQ,i.validateMessages),c.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(c.validate(K({},t,n),A({},i)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(w,y){var b=w.message,x=b===TA?d.default:b;return u.isValidElement(x)?u.cloneElement(x,{key:"error_".concat(y)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(w,y){return CT("".concat(t,".").concat(y),w,l,i,a)}));case 21:return m=g.sent,g.abrupt("return",m.reduce(function(w,y){return[].concat(Fe(w),Fe(y))},[]));case 23:return p=A(A({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(w){return typeof w=="string"?ERe(w,p):w}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),_T.apply(this,arguments)}function PRe(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(d,f){var m=d.validator,p=A(A({},d),{},{ruleIndex:f});return m&&(p.validator=function(h,v,g){var w=!1,y=function(){for(var C=arguments.length,S=new Array(C),_=0;_2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return eZ(t,r,n)})}function eZ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function RRe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||mt(e)!=="object"||mt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Fe(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function IRe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&mt(t.target)==="object"&&e in t.target?t.target[e]:t}function RA(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(Fe(e.slice(0,n)),[i],Fe(e.slice(n,t)),Fe(e.slice(t+1,r))):a<0?[].concat(Fe(e.slice(0,t)),Fe(e.slice(t+1,n+1)),[i],Fe(e.slice(n+1,r))):e}var MRe=["name"],Po=[];function cE(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var XI=function(e){as(n,e);var t=os(n);function n(r){var i;if(cr(this,n),i=t.call(this,r),K(Rt(i),"state",{resetCount:0}),K(Rt(i),"cancelRegisterFunc",null),K(Rt(i),"mounted",!1),K(Rt(i),"touched",!1),K(Rt(i),"dirty",!1),K(Rt(i),"validatePromise",void 0),K(Rt(i),"prevValidating",void 0),K(Rt(i),"errors",Po),K(Rt(i),"warnings",Po),K(Rt(i),"cancelRegister",function(){var l=i.props,c=l.preserve,d=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,c,qr(f)),i.cancelRegisterFunc=null}),K(Rt(i),"getNamePath",function(){var l=i.props,c=l.name,d=l.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return c!==void 0?[].concat(Fe(m),Fe(c)):[]}),K(Rt(i),"getRules",function(){var l=i.props,c=l.rules,d=c===void 0?[]:c,f=l.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),K(Rt(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),K(Rt(i),"metaCache",null),K(Rt(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var d=A(A({},i.getMeta()),{},{destroy:l});Xo(i.metaCache,d)||c(d),i.metaCache=d}else i.metaCache=null}),K(Rt(i),"onStoreChange",function(l,c,d){var f=i.props,m=f.shouldUpdate,p=f.dependencies,h=p===void 0?[]:p,v=f.onReset,g=d.store,w=i.getNamePath(),y=i.getValue(l),b=i.getValue(g),x=c&&Bm(c,w);switch(d.type==="valueUpdate"&&d.source==="external"&&!Xo(y,b)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Po,i.warnings=Po,i.triggerMetaEvent()),d.type){case"reset":if(!c||x){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Po,i.warnings=Po,i.triggerMetaEvent(),v==null||v(),i.refresh();return}break;case"remove":{if(m&&cE(m,l,g,y,b,d)){i.reRender();return}break}case"setField":{var C=d.data;if(x){"touched"in C&&(i.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(i.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(i.errors=C.errors||Po),"warnings"in C&&(i.warnings=C.warnings||Po),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in C&&Bm(c,w,!0)){i.reRender();return}if(m&&!w.length&&cE(m,l,g,y,b,d)){i.reRender();return}break}case"dependenciesUpdate":{var S=h.map(qr);if(S.some(function(_){return Bm(d.relatedFields,_)})){i.reRender();return}break}default:if(x||(!h.length||w.length||m)&&cE(m,l,g,y,b,d)){i.reRender();return}break}m===!0&&i.reRender()}),K(Rt(i),"validateRules",function(l){var c=i.getNamePath(),d=i.getValue(),f=l||{},m=f.triggerName,p=f.validateOnly,h=p===void 0?!1:p,v=Promise.resolve().then(Ki(Bn().mark(function g(){var w,y,b,x,C,S,_;return Bn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(i.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(w=i.props,y=w.validateFirst,b=y===void 0?!1:y,x=w.messageVariables,C=w.validateDebounce,S=i.getRules(),m&&(S=S.filter(function(E){return E}).filter(function(E){var P=E.validateTrigger;if(!P)return!0;var M=bT(P);return M.includes(m)})),!(C&&m)){$.next=10;break}return $.next=8,new Promise(function(E){setTimeout(E,C)});case 8:if(i.validatePromise===v){$.next=10;break}return $.abrupt("return",[]);case 10:return _=PRe(c,d,S,l,b,x),_.catch(function(E){return E}).then(function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Po;if(i.validatePromise===v){var P;i.validatePromise=null;var M=[],j=[];(P=E.forEach)===null||P===void 0||P.call(E,function(O){var N=O.rule.warningOnly,R=O.errors,D=R===void 0?Po:R;N?j.push.apply(j,Fe(D)):M.push.apply(M,Fe(D))}),i.errors=M,i.warnings=j,i.triggerMetaEvent(),i.reRender()}}),$.abrupt("return",_);case 13:case"end":return $.stop()}},g)})));return h||(i.validatePromise=v,i.dirty=!0,i.errors=Po,i.warnings=Po,i.triggerMetaEvent(),i.reRender()),v}),K(Rt(i),"isFieldValidating",function(){return!!i.validatePromise}),K(Rt(i),"isFieldTouched",function(){return i.touched}),K(Rt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(yd),d=c.getInitialValue;return d(i.getNamePath())!==void 0}),K(Rt(i),"getErrors",function(){return i.errors}),K(Rt(i),"getWarnings",function(){return i.warnings}),K(Rt(i),"isListField",function(){return i.props.isListField}),K(Rt(i),"isList",function(){return i.props.isList}),K(Rt(i),"isPreserve",function(){return i.props.preserve}),K(Rt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),K(Rt(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return A(A({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var d=Lr(l);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),K(Rt(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return $i(l||c(!0),d)}),K(Rt(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,d=c.name,f=c.trigger,m=c.validateTrigger,p=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,g=c.getValueProps,w=c.fieldContext,y=m!==void 0?m:w.validateTrigger,b=i.getNamePath(),x=w.getInternalHooks,C=w.getFieldsValue,S=x(yd),_=S.dispatch,k=i.getValue(),$=g||function(O){return K({},v,O)},E=l[f],P=d!==void 0?$(k):{},M=A(A({},l),P);M[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var O,N=arguments.length,R=new Array(N),D=0;D=0&&E<=P.length?(d.keys=[].concat(Fe(d.keys.slice(0,E)),[d.id],Fe(d.keys.slice(E))),b([].concat(Fe(P.slice(0,E)),[$],Fe(P.slice(E))))):(d.keys=[].concat(Fe(d.keys),[d.id]),b([].concat(Fe(P),[$]))),d.id+=1},remove:function($){var E=C(),P=new Set(Array.isArray($)?$:[$]);P.size<=0||(d.keys=d.keys.filter(function(M,j){return!P.has(j)}),b(E.filter(function(M,j){return!P.has(j)})))},move:function($,E){if($!==E){var P=C();$<0||$>=P.length||E<0||E>=P.length||(d.keys=RA(d.keys,$,E),b(RA(P,$,E)))}}},_=y||[];return Array.isArray(_)||(_=[]),r(_.map(function(k,$){var E=d.keys[$];return E===void 0&&(d.keys[$]=d.id,E=d.keys[$],d.id+=1),{name:$,key:E,isListField:!0}}),S,g)})))}function NRe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var nZ="__@field_split__";function uE(e){return e.map(function(t){return"".concat(mt(t),":").concat(t)}).join(nZ)}var Wf=function(){function e(){cr(this,e),K(this,"kvs",new Map)}return ur(e,[{key:"set",value:function(n,r){this.kvs.set(uE(n),r)}},{key:"get",value:function(n){return this.kvs.get(uE(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(uE(n))}},{key:"map",value:function(n){return Fe(this.kvs.entries()).map(function(r){var i=ie(r,2),a=i[0],o=i[1],s=a.split(nZ);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),d=ie(c,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),DRe=["name"],jRe=ur(function e(t){var n=this;cr(this,e),K(this,"formHooked",!1),K(this,"forceRootUpdate",void 0),K(this,"subscribable",!0),K(this,"store",{}),K(this,"fieldEntities",[]),K(this,"initialValues",{}),K(this,"callbacks",{}),K(this,"validateMessages",null),K(this,"preserve",null),K(this,"lastValidatePromise",null),K(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),K(this,"getInternalHooks",function(r){return r===yd?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Fn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),K(this,"useSubscribe",function(r){n.subscribable=r}),K(this,"prevWithoutPreserves",null),K(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=wm(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=da(o,l,$i(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),K(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Wf;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),K(this,"getInitialValue",function(r){var i=$i(n.initialValues,r);return r.length?wm(i):i}),K(this,"setCallbacks",function(r){n.callbacks=r}),K(this,"setValidateMessages",function(r){n.validateMessages=r}),K(this,"setPreserve",function(r){n.preserve=r}),K(this,"watchList",[]),K(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),K(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),K(this,"timeoutId",null),K(this,"warningUnhooked",function(){}),K(this,"updateStore",function(r){n.store=r}),K(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),K(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Wf;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),K(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=qr(a);return i.get(o)||{INVALIDATE_NAME_PATH:qr(a)}})}),K(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&mt(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(d){var f,m,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,v;if((h=(v=d).isList)!==null&&h!==void 0&&h.call(v))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!o)c.push(p);else{var g="getMeta"in d?d.getMeta():null;o(g)&&c.push(p)}}),OA(n.store,c.map(qr))}),K(this,"getFieldValue",function(r){n.warningUnhooked();var i=qr(r);return $i(n.store,i)}),K(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:qr(r[o]),errors:[],warnings:[]}})}),K(this,"getFieldError",function(r){n.warningUnhooked();var i=qr(r),a=n.getFieldsError([i])[0];return a.errors}),K(this,"getFieldWarning",function(r){n.warningUnhooked();var i=qr(r),a=n.getFieldsError([i])[0];return a.warnings}),K(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new Wf,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,d=l.getNamePath();if(c!==void 0){var f=i.get(d)||new Set;f.add({entity:l,value:c}),i.set(d,f)}});var o=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),p=n.getInitialValue(m);if(p!==void 0)Fn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var h=i.get(m);if(h&&h.size>1)Fn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=n.getFieldValue(m),g=d.isListField();!g&&(!r.skipExist||v===void 0)&&n.updateStore(da(n.store,m,Fe(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var d;(d=s).push.apply(d,Fe(Fe(c).map(function(f){return f.entity})))}})):s=a,o(s)}),K(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(wm(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(qr);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(da(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),K(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=ft(o,DRe),c=qr(s);a.push(c),"value"in l&&n.updateStore(da(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:o})}),n.notifyWatch(a)}),K(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=A(A({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),K(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=$i(n.store,a);o===void 0&&n.updateStore(da(n.store,a,i))}}),K(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),K(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!eZ(f.getNamePath(),i)})){var d=n.store;n.updateStore(da(d,i,c,!0)),n.notifyObservers(d,[i],{type:"remove"}),n.triggerDependenciesUpdate(d,i)}}n.notifyWatch([i])}}),K(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),K(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=A(A({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),K(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(Fe(a))}),a}),K(this,"updateValue",function(r,i){var a=qr(r),o=n.store;n.updateStore(da(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var c=OA(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Fe(s)))}),K(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=wm(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),K(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),K(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new Wf;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(d){var f=qr(d);o.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m})})});var s=function l(c){var d=o.get(c)||new Set;d.forEach(function(f){if(!i.has(f)){i.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),l(m))}})};return s(r),a}),K(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new Wf;i.forEach(function(c){var d=c.name,f=c.errors;s.set(d,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var d=c.name;return Bm(r,d)});l.length&&a(l,o)}}),K(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(qr):[],c=[],d=String(Date.now()),f=new Set,m=o||{},p=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var b=y.getNamePath();if(f.add(b.join(d)),!s||Bm(l,b,p)){var x=y.validateRules(A({validateMessages:A(A({},JQ),n.validateMessages)},o));c.push(x.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(C){var S,_=[],k=[];return(S=C.forEach)===null||S===void 0||S.call(C,function($){var E=$.rule.warningOnly,P=$.errors;E?k.push.apply(k,Fe(P)):_.push.apply(_,Fe(P))}),_.length?Promise.reject({name:b,errors:_,warnings:k}):{name:b,errors:_,warnings:k}}))}}});var v=NRe(c);n.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var b=y.map(function(x){var C=x.name;return C});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,y)});var g=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var b=y.filter(function(x){return x&&x.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:b,outOfDate:n.lastValidatePromise!==v})});g.catch(function(y){return y});var w=l.filter(function(y){return f.has(y.join(d))});return n.triggerOnFieldsChange(w),g}),K(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function ZI(e){var t=u.useRef(),n=u.useState({}),r=ie(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new jRe(a);t.current=o.getForm()}return[t.current]}var ET=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),rZ=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=u.useContext(ET),s=u.useRef({});return u.createElement(ET.Provider,{value:A(A({},o),{},{validateMessages:A(A({},o.validateMessages),n),triggerFormChange:function(c,d){r&&r(c,{changedFields:d,forms:s.current}),o.triggerFormChange(c,d)},triggerFormFinish:function(c,d){i&&i(c,{values:d,forms:s.current}),o.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(s.current=A(A({},s.current),{},K({},c,d))),o.registerForm(c,d)},unregisterForm:function(c){var d=A({},s.current);delete d[c],s.current=d,o.unregisterForm(c)}})},a)},FRe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],ARe=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,m=t.validateTrigger,p=m===void 0?"onChange":m,h=t.onValuesChange,v=t.onFieldsChange,g=t.onFinish,w=t.onFinishFailed,y=t.clearOnDestroy,b=ft(t,FRe),x=u.useRef(null),C=u.useContext(ET),S=ZI(o),_=ie(S,1),k=_[0],$=k.getInternalHooks(yd),E=$.useSubscribe,P=$.setInitialValues,M=$.setCallbacks,j=$.setValidateMessages,O=$.setPreserve,N=$.destroyForm;u.useImperativeHandle(n,function(){return A(A({},k),{},{nativeElement:x.current})}),u.useEffect(function(){return C.registerForm(r,k),function(){C.unregisterForm(r)}},[C,k,r]),j(A(A({},C.validateMessages),f)),M({onValuesChange:h,onFieldsChange:function(W){if(C.triggerFormChange(r,W),v){for(var U=arguments.length,X=new Array(U>1?U-1:0),q=1;q{}}),aZ=u.createContext(null),oZ=e=>{const t=kn(e,["prefixCls"]);return u.createElement(rZ,Object.assign({},t))},JI=u.createContext({prefixCls:""}),Qr=u.createContext({}),BRe=e=>{let{children:t,status:n,override:r}=e;const i=u.useContext(Qr),a=u.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return u.createElement(Qr.Provider,{value:a},t)},sZ=u.createContext(void 0),Tl=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=L.createElement(BRe,{override:!0,status:!0},i)),t&&(i=L.createElement(KTe,null,i)),i};function Lx(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function MA(e){const{closable:t,closeIcon:n}=e||{};return L.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function NA(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{i&&Object.keys(i).forEach(a=>{i[a]!==void 0&&(e[a]=i[a])})}),e}const zRe={};function lZ(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zRe;const r=MA(e),i=MA(t),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,o=L.useMemo(()=>Object.assign({closeIcon:L.createElement(Ys,null)},n),[n]),s=L.useMemo(()=>r===!1?!1:r?NA(o,i,r):i===!1?!1:i?NA(o,i):o.closable?o:!1,[r,i,o]);return L.useMemo(()=>{if(s===!1)return[!1,null,a];const{closeIconRender:l}=o,{closeIcon:c}=s;let d=c;if(d!=null){l&&(d=l(c));const f=yr(s,!0);Object.keys(f).length&&(d=L.isValidElement(d)?L.cloneElement(d,f):L.createElement("span",Object.assign({},f),d))}return[!0,d,a]},[s,o])}var cZ=function(t){if(va()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},HRe=function(t,n){if(!cZ(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function PT(e,t){return!Array.isArray(e)&&t!==void 0?HRe(e,t):cZ(e)}const VRe=()=>va()&&window.document.documentElement,n_=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=ne({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=ne({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=u.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return u.createElement("span",{className:ne(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},WRe=new on("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),r_=e=>({height:e,lineHeight:ae(e)}),zm=e=>Object.assign({width:e},r_(e)),URe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:WRe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),dE=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},r_(e)),qRe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},zm(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},zm(i)),[`${t}${t}-sm`]:Object.assign({},zm(a))}},GRe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},dE(t,s)),[`${r}-lg`]:Object.assign({},dE(i,s)),[`${r}-sm`]:Object.assign({},dE(a,s))}},DA=e=>Object.assign({width:e},r_(e)),KRe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},DA(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},DA(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},fE=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},mE=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},r_(e)),YRe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},mE(r,s))},fE(e,r,n)),{[`${n}-lg`]:Object.assign({},mE(i,s))}),fE(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},mE(a,s))}),fE(e,a,`${n}-sm`))},XRe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:p,borderRadius:h,titleHeight:v,blockRadius:g,paragraphLiHeight:w,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},zm(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},zm(c)),[`${n}-sm`]:Object.assign({},zm(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:f,borderRadius:g,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},YRe(e)),qRe(e)),GRe(e)),KRe(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${r}, - ${i} > li, - ${n}, - ${a}, - ${o}, - ${s} - `]:Object.assign({},URe(e))}}},QRe=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},eh=un("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Yt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[XRe(r)]},QRe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ZRe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=u.useContext(Ct),l=s("skeleton",t),[c,d,f]=eh(l),m=kn(e,["prefixCls","className"]),p=ne(l,`${l}-element`,{[`${l}-active`]:i},n,r,d,f);return c(u.createElement("div",{className:p},u.createElement(n_,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},m))))},JRe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=u.useContext(Ct),l=s("skeleton",t),[c,d,f]=eh(l),m=kn(e,["prefixCls"]),p=ne(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,d,f);return c(u.createElement("div",{className:p},u.createElement(n_,Object.assign({prefixCls:`${l}-button`,size:o},m))))},eIe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",tIe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=u.useContext(Ct),s=o("skeleton",t),[l,c,d]=eh(s),f=ne(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,d);return l(u.createElement("div",{className:f},u.createElement("div",{className:ne(`${s}-image`,n),style:i},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:eIe,className:`${s}-image-path`})))))},nIe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=u.useContext(Ct),l=s("skeleton",t),[c,d,f]=eh(l),m=kn(e,["prefixCls"]),p=ne(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,d,f);return c(u.createElement("div",{className:p},u.createElement(n_,Object.assign({prefixCls:`${l}-input`,size:o},m))))},rIe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=u.useContext(Ct),l=s("skeleton",t),[c,d,f]=eh(l),m=ne(l,`${l}-element`,{[`${l}-active`]:a},d,n,r,f);return c(u.createElement("div",{className:m},u.createElement("div",{className:ne(`${l}-image`,n),style:i},o)))},iIe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},aIe=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=Fe(new Array(i)).map((o,s)=>u.createElement("li",{key:s,style:{width:iIe(s,e)}}));return u.createElement("ul",{className:ne(t,n),style:r},a)},oIe=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return u.createElement("h3",{className:ne(t,n),style:Object.assign({width:r},i)})};function pE(e){return e&&typeof e=="object"?e:{}}function sIe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lIe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function cIe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const xf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:d,round:f}=e,{getPrefixCls:m,direction:p,skeleton:h}=u.useContext(Ct),v=m("skeleton",t),[g,w,y]=eh(v);if(n||!("loading"in e)){const b=!!s,x=!!l,C=!!c;let S;if(b){const $=Object.assign(Object.assign({prefixCls:`${v}-avatar`},sIe(x,C)),pE(s));S=u.createElement("div",{className:`${v}-header`},u.createElement(n_,Object.assign({},$)))}let _;if(x||C){let $;if(x){const P=Object.assign(Object.assign({prefixCls:`${v}-title`},lIe(b,C)),pE(l));$=u.createElement(oIe,Object.assign({},P))}let E;if(C){const P=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},cIe(b,x)),pE(c));E=u.createElement(aIe,Object.assign({},P))}_=u.createElement("div",{className:`${v}-content`},$,E)}const k=ne(v,{[`${v}-with-avatar`]:b,[`${v}-active`]:d,[`${v}-rtl`]:p==="rtl",[`${v}-round`]:f},h==null?void 0:h.className,r,i,w,y);return g(u.createElement("div",{className:k,style:Object.assign(Object.assign({},h==null?void 0:h.style),a)},S,_))}return o??null};xf.Button=JRe;xf.Avatar=ZRe;xf.Input=nIe;xf.Image=tIe;xf.Node=rIe;function jA(){}const uIe=u.createContext({add:jA,remove:jA});function dIe(e){const t=u.useContext(uIe),n=u.useRef(null);return Ht(i=>{if(i){const a=e?i.querySelector(e):i;t.add(a),n.current=a}else t.remove(n.current)})}const FA=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=u.useContext(o1);return L.createElement(_n,Object.assign({onClick:n},e),t)},AA=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=u.useContext(o1);return L.createElement(_n,Object.assign({},RQ(n),{loading:e,onClick:i},t),r)};function uZ(e,t){return L.createElement("span",{className:`${e}-close-x`},t||L.createElement(Ys,{className:`${e}-close-icon`}))}const dZ=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[d]=ya("Modal",qX()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),p={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:o},h=L.useMemo(()=>p,Fe(Object.values(p)));let v;return typeof c=="function"||typeof c>"u"?(v=L.createElement(L.Fragment,null,L.createElement(FA,null),L.createElement(AA,null)),typeof c=="function"&&(v=c(v,{OkBtn:AA,CancelBtn:FA})),v=L.createElement(qQ,{value:h},v)):v=c,L.createElement(NI,{disabled:!1},v)},fIe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},mIe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},pIe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},TT=(e,t)=>pIe(e,t),hIe=(e,t,n)=>({[`@media (min-width: ${ae(t)})`]:Object.assign({},TT(e,n))}),vIe=()=>({}),gIe=()=>({}),bIe=un("Grid",fIe,vIe),fZ=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),yIe=un("Grid",e=>{const t=Yt(e,{gridColumns:24}),n=fZ(t);return delete n.xs,[mIe(t),TT(t,""),TT(t,"-xs"),Object.keys(n).map(r=>hIe(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},gIe);function LA(e){return{position:e,inset:0}}const mZ=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},LA("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},LA("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:WI(e)}]},wIe=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ae(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},mn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ae(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ae(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},yo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ae(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, - ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},xIe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},SIe=e=>{const{componentCls:t}=e,n=fZ(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${ae(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Fe(r))}}},pZ=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Yt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},hZ=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ae(e.padding)} ${ae(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ae(e.paddingXS)} ${ae(e.padding)}`:0,footerBorderTop:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ae(e.padding*2)} ${ae(e.padding*2)} ${ae(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),vZ=un("Modal",e=>{const t=pZ(e);return[wIe(t),xIe(t),mZ(t),Zp(t,"zoom"),SIe(t)]},hZ,{unitless:{titleLineHeight:!0}});var CIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{OT={x:e.pageX,y:e.pageY},setTimeout(()=>{OT=null},100)};VRe()&&document.documentElement.addEventListener("click",_Ie,!0);const gZ=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=u.useContext(Ct),o=X=>{const{onCancel:q}=e;q==null||q(X)},s=X=>{const{onOk:q}=e;q==null||q(X)},{prefixCls:l,className:c,rootClassName:d,open:f,wrapClassName:m,centered:p,getContainer:h,focusTriggerAfterClose:v=!0,style:g,visible:w,width:y=520,footer:b,classNames:x,styles:C,children:S,loading:_}=e,k=CIe(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),E=r(),P=Dn($),[M,j,O]=vZ($,P),N=ne(m,{[`${$}-centered`]:!!p,[`${$}-wrap-rtl`]:i==="rtl"}),R=b!==null&&!_?u.createElement(dZ,Object.assign({},e,{onOk:s,onCancel:o})):null,[D,F,z]=lZ(Lx(e),Lx(a),{closable:!0,closeIcon:u.createElement(Ys,{className:`${$}-close-icon`}),closeIconRender:X=>uZ($,X)}),I=dIe(`.${$}-content`),[H,V]=Xs("Modal",k.zIndex),[B,W]=u.useMemo(()=>y&&typeof y=="object"?[void 0,y]:[y,void 0],[y]),U=u.useMemo(()=>{const X={};return W&&Object.keys(W).forEach(q=>{const Y=W[q];Y!==void 0&&(X[`--${$}-${q}-width`]=typeof Y=="number"?`${Y}px`:Y)}),X},[W]);return M(u.createElement(Tl,{form:!0,space:!0},u.createElement(L2.Provider,{value:V},u.createElement(YI,Object.assign({width:B},k,{zIndex:H,getContainer:h===void 0?n:h,prefixCls:$,rootClassName:ne(j,d,O,P),footer:R,visible:f??w,mousePosition:(t=k.mousePosition)!==null&&t!==void 0?t:OT,onClose:o,closable:D&&{disabled:z,closeIcon:F},closeIcon:F,focusTriggerAfterClose:v,transitionName:ea(E,"zoom",e.transitionName),maskTransitionName:ea(E,"fade",e.maskTransitionName),className:ne(j,c,a==null?void 0:a.className),style:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.style),g),U),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),x),{wrapper:ne(N,x==null?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),C),panelRef:I}),_?u.createElement(xf,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):S))))},kIe=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Ls()),[`&${t} ${t}-body`]:{padding:c},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ae(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${ae(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, - ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},$Ie=yf(["Modal","confirm"],e=>{const t=pZ(e);return[kIe(t)]},hZ,{order:-1e3});var EIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iy,Fe(Object.values(y))),x=u.createElement(u.Fragment,null,u.createElement(mA,null),u.createElement(pA,null)),C=e.title!==void 0&&e.title!==null,S=`${a}-body`;return u.createElement("div",{className:`${a}-body-wrapper`},u.createElement("div",{className:ne(S,{[`${S}-has-title`]:C})},f,u.createElement("div",{className:`${a}-paragraph`},C&&u.createElement("span",{className:`${a}-title`},e.title),u.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?u.createElement(qQ,{value:b},u.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(x,{OkBtn:pA,CancelBtn:mA}):x)):l,u.createElement($Ie,{prefixCls:t}))}const PIe=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:d,styles:f}=e,m=`${a}-confirm`,p=e.width||416,h=e.style||{},v=e.mask===void 0?!0:e.mask,g=e.maskClosable===void 0?!1:e.maskClosable,w=ne(m,`${m}-${e.type}`,{[`${m}-rtl`]:i==="rtl"},e.className),[,y]=Zr(),b=u.useMemo(()=>n!==void 0?n:y.zIndexPopupBase+BI,[n,y]);return u.createElement(gZ,Object.assign({},e,{className:w,wrapClassName:ne({[`${m}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:"",footer:null,transitionName:ea(s||"","zoom",e.transitionName),maskTransitionName:ea(s||"","fade",e.maskTransitionName),mask:v,maskClosable:g,style:h,styles:Object.assign({body:l,mask:r},f),width:p,zIndex:b,closable:c}),u.createElement(bZ,Object.assign({},e,{confirmPrefixCls:m})))},yZ=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return u.createElement(en,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},u.createElement(PIe,Object.assign({},e)))},wd=[];let wZ="";function xZ(){return wZ}const TIe=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,o=qX(),s=u.useContext(Ct),l=xZ()||s.getPrefixCls(),c=r||`${l}-modal`;let d=i;return d===!1&&(d=void 0),L.createElement(yZ,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:d}))};function l1(e){const t=AI(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,a;function o(){for(var d,f=arguments.length,m=new Array(f),p=0;pg==null?void 0:g.triggerCancel)){var v;(d=e.onCancel)===null||d===void 0||(v=d).call.apply(v,[e,()=>{}].concat(Fe(m.slice(1))))}for(let g=0;g{const f=t.getPrefixCls(void 0,xZ()),m=t.getIconPrefixCls(),p=t.getTheme(),h=L.createElement(TIe,Object.assign({},d));a=z2()(L.createElement(en,{prefixCls:f,iconPrefixCls:m,theme:p},t.holderRender?t.holderRender(h):h),n)})}function l(){for(var d=arguments.length,f=new Array(d),m=0;m{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function c(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),s(r)}return s(r),wd.push(l),{destroy:l,update:c}}function SZ(e){return Object.assign(Object.assign({},e),{type:"warning"})}function CZ(e){return Object.assign(Object.assign({},e),{type:"info"})}function _Z(e){return Object.assign(Object.assign({},e),{type:"success"})}function kZ(e){return Object.assign(Object.assign({},e),{type:"error"})}function $Z(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function OIe(e){let{rootPrefixCls:t}=e;wZ=t}var RIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,{afterClose:r,config:i}=e,a=RIe(e,["afterClose","config"]);const[o,s]=u.useState(!0),[l,c]=u.useState(i),{direction:d,getPrefixCls:f}=u.useContext(Ct),m=f("modal"),p=f(),h=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},v=function(){var y;s(!1);for(var b=arguments.length,x=new Array(b),C=0;Ck==null?void 0:k.triggerCancel)){var _;(y=l.onCancel)===null||y===void 0||(_=y).call.apply(_,[l,()=>{}].concat(Fe(x.slice(1))))}};u.useImperativeHandle(t,()=>({destroy:v,update:y=>{c(b=>Object.assign(Object.assign({},b),y))}}));const g=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[w]=ya("Modal",Yo.Modal);return u.createElement(yZ,Object.assign({prefixCls:m,rootPrefixCls:p},l,{close:v,open:o,afterClose:h,okText:l.okText||(g?w==null?void 0:w.okText:w==null?void 0:w.justOkText),direction:l.direction||d,cancelText:l.cancelText||(w==null?void 0:w.cancelText)},a))},MIe=u.forwardRef(IIe);let BA=0;const NIe=u.memo(u.forwardRef((e,t)=>{const[n,r]=$Te();return u.useImperativeHandle(t,()=>({patchElement:r}),[]),u.createElement(u.Fragment,null,n)}));function EZ(){const e=u.useRef(null),[t,n]=u.useState([]);u.useEffect(()=>{t.length&&(Fe(t).forEach(o=>{o()}),n([]))},[t]);const r=u.useCallback(a=>function(s){var l;BA+=1;const c=u.createRef();let d;const f=new Promise(g=>{d=g});let m=!1,p;const h=u.createElement(MIe,{key:`modal-${BA}`,config:a(s),ref:c,afterClose:()=>{p==null||p()},isSilent:()=>m,onConfirm:g=>{d(g)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(h),p&&wd.push(p),{destroy:()=>{function g(){var w;(w=c.current)===null||w===void 0||w.destroy()}c.current?g():n(w=>[].concat(Fe(w),[g]))},update:g=>{function w(){var y;(y=c.current)===null||y===void 0||y.update(g)}c.current?w():n(y=>[].concat(Fe(y),[w]))},then:g=>(m=!0,f.then(g))}},[]);return[u.useMemo(()=>({info:r(CZ),success:r(_Z),error:r(kZ),warning:r(SZ),confirm:r($Z)}),[]),u.createElement(NIe,{key:"modal-holder",ref:e})]}const DIe=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new on("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new on("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new on("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new on("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},jIe=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],FIe={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},AIe=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[FIe[t]]:{value:0,_skip_check_:!0}}}}},LIe=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},BIe=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},LIe(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},BIe(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},jIe.map(n=>AIe(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},PZ=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:p,notificationMarginEdge:h,notificationProgressBg:v,notificationProgressHeight:g,fontSize:w,lineHeight:y,width:b,notificationIconSize:x,colorText:C}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:m,borderRadius:o,boxShadow:r,[S]:{padding:p,width:b,maxWidth:`calc(100vw - ${ae(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:i,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:w,color:C},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:w},[`${S}-icon`]:{position:"absolute",fontSize:x,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:d}},[`${S}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},yo(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${ae(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:v},"&::-webkit-progress-value":{borderRadius:o,background:v}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},HIe=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new on("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},mn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-btn`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:Object.assign({},PZ(e))}}]},TZ=e=>({zIndexPopup:e.zIndexPopupBase+BI+50,width:384}),OZ=e=>{const t=e.paddingMD,n=e.paddingLG;return Yt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},RZ=un("Notification",e=>{const t=OZ(e);return[HIe(t),DIe(t),zIe(t)]},TZ),VIe=yf(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=OZ(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},PZ(n)),{width:n.width,maxWidth:`calc(100vw - ${ae(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},TZ);var WIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,icon:n,type:r,message:i,description:a,btn:o,role:s="alert"}=e;let l=null;return n?l=u.createElement("span",{className:`${t}-icon`},n):r&&(l=u.createElement(UIe[r]||null,{className:ne(`${t}-icon`,`${t}-icon-${r}`)})),u.createElement("div",{className:ne({[`${t}-with-icon`]:l}),role:s},l,u.createElement("div",{className:`${t}-message`},i),u.createElement("div",{className:`${t}-description`},a),o&&u.createElement("div",{className:`${t}-btn`},o))},qIe=e=>{const{prefixCls:t,className:n,icon:r,type:i,message:a,description:o,btn:s,closable:l=!0,closeIcon:c,className:d}=e,f=WIe(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:m}=u.useContext(Ct),p=t||m("notification"),h=`${p}-notice`,v=Dn(p),[g,w,y]=RZ(p,v);return g(u.createElement("div",{className:ne(`${h}-pure-panel`,w,n,y,v)},u.createElement(VIe,{prefixCls:p}),u.createElement(LI,Object.assign({},f,{prefixCls:p,eventKey:"pure",duration:null,closable:l,className:ne({notificationClassName:d}),closeIcon:eM(p,c),content:u.createElement(IZ,{prefixCls:h,icon:r,type:i,message:a,description:o,btn:s})}))))};function GIe(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function KIe(e){return{motionName:`${e}-fade`}}var YIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=Dn(n),[i,a,o]=RZ(n,r);return i(L.createElement(xQ,{classNames:{list:ne(a,o,r)}},t))},JIe=(e,t)=>{let{prefixCls:n,key:r}=t;return L.createElement(ZIe,{prefixCls:n,key:r},e)},eMe=L.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:l,stack:c,duration:d,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:p,getPopupContainer:h,notification:v,direction:g}=u.useContext(Ct),[,w]=Zr(),y=i||p("notification"),b=k=>GIe(k,n??zA,r??zA),x=()=>ne({[`${y}-rtl`]:s??g==="rtl"}),C=()=>KIe(y),[S,_]=SQ({prefixCls:y,style:b,className:x,motion:C,closable:!0,closeIcon:eM(y),duration:d??XIe,getContainer:()=>(a==null?void 0:a())||(h==null?void 0:h())||document.body,maxCount:o,pauseOnHover:f,showProgress:m,onAllRemoved:l,renderNotifications:JIe,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:w.margin}});return L.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:y,notification:v})),_});function MZ(e){const t=L.useRef(null);return Fl(),[L.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:p,description:h,icon:v,type:g,btn:w,className:y,style:b,role:x="alert",closeIcon:C,closable:S}=s,_=YIe(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),k=eM(m,typeof C<"u"?C:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:QIe},_),{content:L.createElement(IZ,{prefixCls:m,icon:v,type:g,message:p,description:h,btn:w,role:x}),className:ne(g&&`${m}-${g}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:k,closable:S??!!k}))},a={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),a},[]),L.createElement(eMe,Object.assign({key:"notification-holder"},e,{ref:t}))]}function NZ(e){return MZ(e)}const Bx=L.createContext({}),DZ=L.createContext({message:{},notification:{},modal:{}}),tMe=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},nMe=()=>({}),rMe=un("App",tMe,nMe),iMe=()=>L.useContext(DZ),jZ=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:a,notification:o,style:s,component:l="div"}=e,{direction:c,getPrefixCls:d}=u.useContext(Ct),f=d("app",t),[m,p,h]=rMe(f),v=ne(p,f,r,i,h,{[`${f}-rtl`]:c==="rtl"}),g=u.useContext(Bx),w=L.useMemo(()=>({message:Object.assign(Object.assign({},g.message),a),notification:Object.assign(Object.assign({},g.notification),o)}),[a,o,g.message,g.notification]),[y,b]=EQ(w.message),[x,C]=NZ(w.notification),[S,_]=EZ(),k=L.useMemo(()=>({message:y,notification:x,modal:S}),[y,x,S]);Fl()(!(h&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const $=l===!1?L.Fragment:l,E={className:v,style:s};return m(L.createElement(DZ.Provider,{value:k},L.createElement(Bx.Provider,{value:w},L.createElement($,Object.assign({},l===!1?void 0:E),_,b,C,n))))};jZ.useApp=iMe;function FZ(e){return t=>u.createElement(en,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const Bu=(e,t,n,r,i)=>FZ(o=>{const{prefixCls:s,style:l}=o,c=u.useRef(null),[d,f]=u.useState(0),[m,p]=u.useState(0),[h,v]=Ut(!1,{value:o.open}),{getPrefixCls:g}=u.useContext(Ct),w=g(r||"select",s);u.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(S=>{const _=S[0].target;f(_.offsetHeight+8),p(_.offsetWidth)}),C=setInterval(()=>{var S;const _=i?`.${i(w)}`:`.${w}-dropdown`,k=(S=c.current)===null||S===void 0?void 0:S.querySelector(_);k&&(clearInterval(C),x.observe(k))},10);return()=>{clearInterval(C),x.disconnect()}}},[]);let y=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:d,position:"relative",minWidth:m};return u.createElement("div",{ref:c,style:b},u.createElement(e,Object.assign({},y)))}),i_=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var a_=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return u.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),o==null||o(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:u.createElement("span",{className:ne(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},aMe=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=L.useMemo(function(){if(mt(i)==="object")return i.clearIcon;if(a)return a},[i,a]),d=L.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:d,clearIcon:L.createElement(a_,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},AZ=u.createContext(null);function tM(){return u.useContext(AZ)}function oMe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=ie(t,2),r=n[0],i=n[1],a=u.useRef(null),o=function(){window.clearTimeout(a.current)};u.useEffect(function(){return o},[]);var s=function(c,d){o(),a.current=window.setTimeout(function(){i(c),d&&d()},e)};return[r,s,o]}function LZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function sMe(e,t,n,r){var i=u.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function lMe(e){return e&&![qe.ESC,qe.SHIFT,qe.BACKSPACE,qe.TAB,qe.WIN_KEY,qe.ALT,qe.META,qe.WIN_KEY_RIGHT,qe.CTRL,qe.SEMICOLON,qe.EQUALS,qe.CAPS_LOCK,qe.CONTEXT_MENU,qe.F1,qe.F2,qe.F3,qe.F4,qe.F5,qe.F6,qe.F7,qe.F8,qe.F9,qe.F10,qe.F11,qe.F12].includes(e)}var cMe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Uf=void 0;function uMe(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,d=e.className,f=e.style,m=e.children,p=e.display,h=e.order,v=e.component,g=v===void 0?"div":v,w=ft(e,cMe),y=o&&!p;function b(k){l(c,k)}u.useEffect(function(){return function(){b(null)}},[]);var x=a&&i!==Uf?a(i):m,C;r||(C={opacity:y?0:1,height:y?0:Uf,overflowY:y?"hidden":Uf,order:o?h:Uf,pointerEvents:y?"none":Uf,position:y?"absolute":Uf});var S={};y&&(S["aria-hidden"]=!0);var _=u.createElement(g,Oe({className:ne(!r&&n,d),style:A(A({},C),f)},S,w,{ref:t}),x);return o&&(_=u.createElement(bi,{onResize:function($){var E=$.offsetWidth;b(E)},disabled:s},_)),_}var Jv=u.forwardRef(uMe);Jv.displayName="Item";function dMe(e){if(typeof MessageChannel>"u")tn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function fMe(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],dMe(function(){yi.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Jh(e,t){var n=u.useState(t),r=ie(n,2),i=r[0],a=r[1],o=Ht(function(s){e(function(){a(s)})});return[i,o]}var zx=L.createContext(null),mMe=["component"],pMe=["className"],hMe=["className"],vMe=function(t,n){var r=u.useContext(zx);if(!r){var i=t.component,a=i===void 0?"div":i,o=ft(t,mMe);return u.createElement(a,Oe({},o,{ref:n}))}var s=r.className,l=ft(r,pMe),c=t.className,d=ft(t,hMe);return u.createElement(zx.Provider,{value:null},u.createElement(Jv,Oe({ref:n,className:ne(s,c)},l,d)))},BZ=u.forwardRef(vMe);BZ.displayName="RawItem";var gMe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],zZ="responsive",HZ="invalidate";function bMe(e){return"+ ".concat(e.length," ...")}function yMe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,m=e.style,p=e.className,h=e.maxCount,v=e.renderRest,g=e.renderRawRest,w=e.suffix,y=e.component,b=y===void 0?"div":y,x=e.itemComponent,C=e.onVisibleChange,S=ft(e,gMe),_=f==="full",k=fMe(),$=Jh(k,null),E=ie($,2),P=E[0],M=E[1],j=P||0,O=Jh(k,new Map),N=ie(O,2),R=N[0],D=N[1],F=Jh(k,0),z=ie(F,2),I=z[0],H=z[1],V=Jh(k,0),B=ie(V,2),W=B[0],U=B[1],X=Jh(k,0),q=ie(X,2),Y=q[0],re=q[1],G=u.useState(null),Q=ie(G,2),J=Q[0],Z=Q[1],ee=u.useState(null),te=ie(ee,2),le=te[0],oe=te[1],de=u.useMemo(function(){return le===null&&_?Number.MAX_SAFE_INTEGER:le||0},[le,P]),pe=u.useState(!1),ye=ie(pe,2),me=ye[0],xe=ye[1],ue="".concat(r,"-item"),ce=Math.max(I,W),$e=h===zZ,se=a.length&&$e,he=h===HZ,ve=se||typeof h=="number"&&a.length>h,ke=u.useMemo(function(){var nt=a;return se?P===null&&_?nt=a:nt=a.slice(0,Math.min(a.length,j/d)):typeof h=="number"&&(nt=a.slice(0,h)),nt},[a,d,P,h,se]),Se=u.useMemo(function(){return se?a.slice(de+1):a.slice(ke.length)},[a,ke,se,de]),Ee=u.useCallback(function(nt,rt){var it;return typeof l=="function"?l(nt):(it=l&&(nt==null?void 0:nt[l]))!==null&&it!==void 0?it:rt},[l]),De=u.useCallback(o||function(nt){return nt},[o]);function we(nt,rt,it){le===nt&&(rt===void 0||rt===J)||(oe(nt),it||(xe(ntj){we(ge-1,nt-Te-Y+W);break}}w&&je(0)+Y>j&&Z(null)}},[j,R,W,Y,Ee,ke]);var He=me&&!!Se.length,Be={};J!==null&&se&&(Be={position:"absolute",left:J,top:0});var ct={prefixCls:ue,responsive:se,component:x,invalidate:he},Ve=s?function(nt,rt){var it=Ee(nt,rt);return u.createElement(zx.Provider,{key:it,value:A(A({},ct),{},{order:rt,item:nt,itemKey:it,registerSize:Pe,display:rt<=de})},s(nt,rt))}:function(nt,rt){var it=Ee(nt,rt);return u.createElement(Jv,Oe({},ct,{order:rt,key:it,item:nt,renderItem:De,itemKey:it,registerSize:Pe,display:rt<=de}))},Ye,Ne={order:He?de:Number.MAX_SAFE_INTEGER,className:"".concat(ue,"-rest"),registerSize:Re,display:He};if(g)g&&(Ye=u.createElement(zx.Provider,{value:A(A({},ct),Ne)},g(Se)));else{var Ae=v||bMe;Ye=u.createElement(Jv,Oe({},ct,Ne),typeof Ae=="function"?Ae(Se):Ae)}var et=u.createElement(b,Oe({className:ne(!he&&r,p),style:m,ref:t},S),ke.map(Ve),ve?Ye:null,w&&u.createElement(Jv,Oe({},ct,{responsive:$e,responsiveDisabled:!se,order:de,className:"".concat(ue,"-suffix"),registerSize:_e,display:!0,style:Be}),w));return $e&&(et=u.createElement(bi,{onResize:be,disabled:!se},et)),et}var Os=u.forwardRef(yMe);Os.displayName="Overflow";Os.Item=BZ;Os.RESPONSIVE=zZ;Os.INVALIDATE=HZ;var wMe=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,p=t.value,h=t.maxLength,v=t.onKeyDown,g=t.onMouseDown,w=t.onChange,y=t.onPaste,b=t.onCompositionStart,x=t.onCompositionEnd,C=t.onBlur,S=t.open,_=t.attrs,k=o||u.createElement("input",null),$=k,E=$.ref,P=$.props,M=P.onKeyDown,j=P.onChange,O=P.onMouseDown,N=P.onCompositionStart,R=P.onCompositionEnd,D=P.onBlur,F=P.style;return"maxLength"in k.props,k=u.cloneElement(k,A(A(A({type:"search"},P),{},{id:a,ref:di(n,E),disabled:s,tabIndex:l,autoComplete:d||"off",autoFocus:c,className:ne("".concat(i,"-selection-search-input"),(r=k)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":S?m:void 0},_),{},{value:f?p:"",maxLength:h,readOnly:!f,unselectable:f?null:"on",style:A(A({},F),{},{opacity:f?null:0}),onKeyDown:function(I){v(I),M&&M(I)},onMouseDown:function(I){g(I),O&&O(I)},onChange:function(I){w(I),j&&j(I)},onCompositionStart:function(I){b(I),N&&N(I)},onCompositionEnd:function(I){x(I),R&&R(I)},onPaste:y,onBlur:function(I){C(I),D&&D(I)}})),k},VZ=u.forwardRef(wMe);function WZ(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var xMe=typeof window<"u"&&window.document&&window.document.documentElement,SMe=xMe;function CMe(e){return e!=null}function _Me(e){return!e&&e!==0}function HA(e){return["string","number"].includes(mt(e))}function UZ(e){var t=void 0;return e&&(HA(e.title)?t=e.title.toString():HA(e.label)&&(t=e.label.toString())),t}function kMe(e,t){SMe?u.useLayoutEffect(e,t):u.useEffect(e,t)}function $Me(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var VA=function(t){t.preventDefault(),t.stopPropagation()},EMe=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,p=t.autoFocus,h=t.autoComplete,v=t.activeDescendantId,g=t.tabIndex,w=t.removeIcon,y=t.maxTagCount,b=t.maxTagTextLength,x=t.maxTagPlaceholder,C=x===void 0?function(ee){return"+ ".concat(ee.length," ...")}:x,S=t.tagRender,_=t.onToggleOpen,k=t.onRemove,$=t.onInputChange,E=t.onInputPaste,P=t.onInputKeyDown,M=t.onInputMouseDown,j=t.onInputCompositionStart,O=t.onInputCompositionEnd,N=t.onInputBlur,R=u.useRef(null),D=u.useState(0),F=ie(D,2),z=F[0],I=F[1],H=u.useState(!1),V=ie(H,2),B=V[0],W=V[1],U="".concat(r,"-selection"),X=a||f==="multiple"&&s===!1||f==="tags"?o:"",q=f==="tags"||f==="multiple"&&s===!1||m&&(a||B);kMe(function(){I(R.current.scrollWidth)},[X]);var Y=function(te,le,oe,de,pe){return u.createElement("span",{title:UZ(te),className:ne("".concat(U,"-item"),K({},"".concat(U,"-item-disabled"),oe))},u.createElement("span",{className:"".concat(U,"-item-content")},le),de&&u.createElement(a_,{className:"".concat(U,"-item-remove"),onMouseDown:VA,onClick:pe,customizeIcon:w},"×"))},re=function(te,le,oe,de,pe,ye){var me=function(ue){VA(ue),_(!a)};return u.createElement("span",{onMouseDown:me},S({label:le,value:te,disabled:oe,closable:de,onClose:pe,isMaxTag:!!ye}))},G=function(te){var le=te.disabled,oe=te.label,de=te.value,pe=!d&&!le,ye=oe;if(typeof b=="number"&&(typeof oe=="string"||typeof oe=="number")){var me=String(ye);me.length>b&&(ye="".concat(me.slice(0,b),"..."))}var xe=function(ce){ce&&ce.stopPropagation(),k(te)};return typeof S=="function"?re(de,ye,le,pe,xe):Y(te,ye,le,pe,xe)},Q=function(te){if(!i.length)return null;var le=typeof C=="function"?C(te):C;return typeof S=="function"?re(void 0,le,!1,!1,void 0,!0):Y({title:le},le,!1)},J=u.createElement("div",{className:"".concat(U,"-search"),style:{width:z},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},u.createElement(VZ,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:p,autoComplete:h,editable:q,activeDescendantId:v,value:X,onKeyDown:P,onMouseDown:M,onChange:$,onPaste:E,onCompositionStart:j,onCompositionEnd:O,onBlur:N,tabIndex:g,attrs:yr(t,!0)}),u.createElement("span",{ref:R,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},X," ")),Z=u.createElement(Os,{prefixCls:"".concat(U,"-overflow"),data:i,renderItem:G,renderRest:Q,suffix:J,itemKey:$Me,maxCount:y});return u.createElement("span",{className:"".concat(U,"-wrap")},Z,!i.length&&!X&&u.createElement("span",{className:"".concat(U,"-placeholder")},c))},PMe=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,p=t.placeholder,h=t.tabIndex,v=t.showSearch,g=t.searchValue,w=t.activeValue,y=t.maxLength,b=t.onInputKeyDown,x=t.onInputMouseDown,C=t.onInputChange,S=t.onInputPaste,_=t.onInputCompositionStart,k=t.onInputCompositionEnd,$=t.onInputBlur,E=t.title,P=u.useState(!1),M=ie(P,2),j=M[0],O=M[1],N=d==="combobox",R=N||v,D=m[0],F=g||"";N&&w&&!j&&(F=w),u.useEffect(function(){N&&O(!1)},[N,w]);var z=d!=="combobox"&&!f&&!v?!1:!!F,I=E===void 0?UZ(D):E,H=u.useMemo(function(){return D?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},p)},[D,z,p,r]);return u.createElement("span",{className:"".concat(r,"-selection-wrap")},u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(VZ,{ref:a,prefixCls:r,id:i,open:f,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:R,activeDescendantId:c,value:F,onKeyDown:b,onMouseDown:x,onChange:function(B){O(!0),C(B)},onPaste:S,onCompositionStart:_,onCompositionEnd:k,onBlur:$,tabIndex:h,attrs:yr(t,!0),maxLength:N?y:void 0})),!N&&D?u.createElement("span",{className:"".concat(r,"-selection-item"),title:I,style:z?{visibility:"hidden"}:void 0},D.label):null,H)},TMe=function(t,n){var r=u.useRef(null),i=u.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,p=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,g=t.onInputKeyDown,w=t.onInputBlur,y=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(I){r.current.focus(I)},blur:function(){r.current.blur()}}});var b=LZ(0),x=ie(b,2),C=x[0],S=x[1],_=function(I){var H=I.which,V=r.current instanceof HTMLTextAreaElement;!V&&o&&(H===qe.UP||H===qe.DOWN)&&I.preventDefault(),g&&g(I),H===qe.ENTER&&s==="tags"&&!i.current&&!o&&(h==null||h(I.target.value)),!(V&&!o&&~[qe.UP,qe.DOWN,qe.LEFT,qe.RIGHT].indexOf(H))&&lMe(H)&&v(!0)},k=function(){S(!0)},$=u.useRef(null),E=function(I){p(I,!0,i.current)!==!1&&v(!0)},P=function(){i.current=!0},M=function(I){i.current=!1,s!=="combobox"&&E(I.target.value)},j=function(I){var H=I.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var V=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(V,$.current)}$.current=null,E(H)},O=function(I){var H=I.clipboardData,V=H==null?void 0:H.getData("text");$.current=V||""},N=function(I){var H=I.target;if(H!==r.current){var V=document.body.style.msTouchAction!==void 0;V?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(I){var H=C();I.target!==r.current&&!H&&!(s==="combobox"&&d)&&I.preventDefault(),(s!=="combobox"&&(!l||!H)||!o)&&(o&&m!==!1&&p("",!0,!1),v())},D={inputRef:r,onInputKeyDown:_,onInputMouseDown:k,onInputChange:j,onInputPaste:O,onInputCompositionStart:P,onInputCompositionEnd:M,onInputBlur:w},F=s==="multiple"||s==="tags"?u.createElement(EMe,Oe({},t,D)):u.createElement(PMe,Oe({},t,D));return u.createElement("div",{ref:y,className:"".concat(a,"-selector"),onClick:N,onMouseDown:R},f&&u.createElement("div",{className:"".concat(a,"-prefix")},f),F)},OMe=u.forwardRef(TMe);function RMe(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,c=l===void 0?0:l,d=i.y,f=d===void 0?0:d,m=u.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],v=n.points[1],g=h[0],w=h[1],y=v[0],b=v[1];g===y||!["t","b"].includes(g)?p.top=f:g==="t"?p.top=0:p.bottom=0,w===b||!["l","r"].includes(w)?p.left=c:w==="l"?p.left=0:p.right=0}return u.createElement("div",{ref:m,className:ne("".concat(t,"-arrow"),o),style:p},s)}function IMe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?u.createElement(Oi,Oe({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return u.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),s)})}):null}var MMe=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),NMe=u.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,p=e.arrow,h=e.arrowPos,v=e.align,g=e.motion,w=e.maskMotion,y=e.forceRender,b=e.getPopupContainer,x=e.autoDestroy,C=e.portal,S=e.zIndex,_=e.onMouseEnter,k=e.onMouseLeave,$=e.onPointerEnter,E=e.onPointerDownCapture,P=e.ready,M=e.offsetX,j=e.offsetY,O=e.offsetR,N=e.offsetB,R=e.onAlign,D=e.onPrepare,F=e.stretch,z=e.targetWidth,I=e.targetHeight,H=typeof n=="function"?n():n,V=l||c,B=(b==null?void 0:b.length)>0,W=u.useState(!b||!B),U=ie(W,2),X=U[0],q=U[1];if(an(function(){!X&&B&&o&&q(!0)},[X,B,o]),!X)return null;var Y="auto",re={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(P||!l){var G,Q=v.points,J=v.dynamicInset||((G=v._experimental)===null||G===void 0?void 0:G.dynamicInset),Z=J&&Q[0][1]==="r",ee=J&&Q[0][0]==="b";Z?(re.right=O,re.left=Y):(re.left=M,re.right=Y),ee?(re.bottom=N,re.top=Y):(re.top=j,re.bottom=Y)}var te={};return F&&(F.includes("height")&&I?te.height=I:F.includes("minHeight")&&I&&(te.minHeight=I),F.includes("width")&&z?te.width=z:F.includes("minWidth")&&z&&(te.minWidth=z)),l||(te.pointerEvents="none"),u.createElement(C,{open:y||V,getContainer:b&&function(){return b(o)},autoDestroy:x},u.createElement(IMe,{prefixCls:i,open:l,zIndex:S,mask:m,motion:w}),u.createElement(bi,{onResize:R,disabled:!l},function(le){return u.createElement(Oi,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:D,onEnterPrepare:D,visible:l,onVisibleChanged:function(de){var pe;g==null||(pe=g.onVisibleChanged)===null||pe===void 0||pe.call(g,de),s(de)}}),function(oe,de){var pe=oe.className,ye=oe.style,me=ne(i,pe,r);return u.createElement("div",{ref:di(le,t,de),className:me,style:A(A(A(A({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},re),te),ye),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:_,onMouseLeave:k,onPointerEnter:$,onClick:f,onPointerDownCapture:E},p&&u.createElement(RMe,{prefixCls:i,arrow:p,arrowPos:h,align:v}),u.createElement(MMe,{cache:!l&&!d},H))})}))}),DMe=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=As(n),a=u.useCallback(function(s){Vg(t,r?r(s):s)},[r]),o=Ec(a,Lu(n));return i?u.cloneElement(n,{ref:o}):n}),WA=u.createContext(null);function UA(e){return e?Array.isArray(e)?e:[e]:[]}function jMe(e,t,n,r){return u.useMemo(function(){var i=UA(n??t),a=UA(r??t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function FMe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function AMe(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ev(e){return e0(parseFloat(e),0)}function GA(e,t){var n=A({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=c1(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,d=i.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,p=r.clientHeight,h=r.offsetWidth,v=r.clientWidth,g=ev(s),w=ev(l),y=ev(c),b=ev(d),x=e0(Math.round(f.width/h*1e3)/1e3),C=e0(Math.round(f.height/m*1e3)/1e3),S=(h-v-y-b)*x,_=(m-p-g-w)*C,k=g*C,$=w*C,E=y*x,P=b*x,M=0,j=0;if(a==="clip"){var O=ev(o);M=O*x,j=O*C}var N=f.x+E-M,R=f.y+k-j,D=N+f.width+2*M-E-P-S,F=R+f.height+2*j-k-$-_;n.left=Math.max(n.left,N),n.top=Math.max(n.top,R),n.right=Math.min(n.right,D),n.bottom=Math.min(n.bottom,F)}}),n}function KA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function YA(e,t){var n=t||[],r=ie(n,2),i=r[0],a=r[1];return[KA(e.width,i),KA(e.height,a)]}function XA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function qf(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function jc(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function LMe(e,t,n,r,i,a,o){var s=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=ie(s,2),c=l[0],d=l[1],f=u.useRef(0),m=u.useMemo(function(){return t?RT(t):[]},[t]),p=u.useRef({}),h=function(){p.current={}};e||h();var v=Ht(function(){if(t&&n&&e){let cn=function(Jr,ei){var Bi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce,tl=W.x+Jr,nl=W.y+ei,Ln=tl+Z,Vt=nl+J,Mt=Math.max(tl,Bi.left),Zn=Math.max(nl,Bi.top),sn=Math.min(Ln,Bi.right),mr=Math.min(Vt,Bi.bottom);return Math.max(0,(sn-Mt)*(mr-Zn))},fr=function(){yt=W.y+it,zt=yt+J,$t=W.x+rt,ze=$t+Z};var bt=cn,Kt=fr,y,b,x,C,S=t,_=S.ownerDocument,k=c1(S),$=k.getComputedStyle(S),E=$.width,P=$.height,M=$.position,j=S.style.left,O=S.style.top,N=S.style.right,R=S.style.bottom,D=S.style.overflow,F=A(A({},i[r]),a),z=_.createElement("div");(y=S.parentElement)===null||y===void 0||y.appendChild(z),z.style.left="".concat(S.offsetLeft,"px"),z.style.top="".concat(S.offsetTop,"px"),z.style.position=M,z.style.height="".concat(S.offsetHeight,"px"),z.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var I;if(Array.isArray(n))I={x:n[0],y:n[1],width:0,height:0};else{var H,V,B=n.getBoundingClientRect();B.x=(H=B.x)!==null&&H!==void 0?H:B.left,B.y=(V=B.y)!==null&&V!==void 0?V:B.top,I={x:B.x,y:B.y,width:B.width,height:B.height}}var W=S.getBoundingClientRect();W.x=(b=W.x)!==null&&b!==void 0?b:W.left,W.y=(x=W.y)!==null&&x!==void 0?x:W.top;var U=_.documentElement,X=U.clientWidth,q=U.clientHeight,Y=U.scrollWidth,re=U.scrollHeight,G=U.scrollTop,Q=U.scrollLeft,J=W.height,Z=W.width,ee=I.height,te=I.width,le={left:0,top:0,right:X,bottom:q},oe={left:-Q,top:-G,right:Y-Q,bottom:re-G},de=F.htmlRegion,pe="visible",ye="visibleFirst";de!=="scroll"&&de!==ye&&(de=pe);var me=de===ye,xe=GA(oe,m),ue=GA(le,m),ce=de===pe?ue:xe,$e=me?ue:ce;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var se=S.getBoundingClientRect();S.style.left=j,S.style.top=O,S.style.right=N,S.style.bottom=R,S.style.overflow=D,(C=S.parentElement)===null||C===void 0||C.removeChild(z);var he=e0(Math.round(Z/parseFloat(E)*1e3)/1e3),ve=e0(Math.round(J/parseFloat(P)*1e3)/1e3);if(he===0||ve===0||Wg(n)&&!Qp(n))return;var ke=F.offset,Se=F.targetOffset,Ee=YA(W,ke),De=ie(Ee,2),we=De[0],be=De[1],Pe=YA(I,Se),Re=ie(Pe,2),_e=Re[0],je=Re[1];I.x-=_e,I.y-=je;var He=F.points||[],Be=ie(He,2),ct=Be[0],Ve=Be[1],Ye=XA(Ve),Ne=XA(ct),Ae=qf(I,Ye),et=qf(W,Ne),nt=A({},F),rt=Ae.x-et.x+we,it=Ae.y-et.y+be,ge=cn(rt,it),Te=cn(rt,it,ue),Ce=qf(I,["t","l"]),Ie=qf(W,["t","l"]),Ke=qf(I,["b","r"]),Xe=qf(W,["b","r"]),lt=F.overflow||{},tt=lt.adjustX,Qe=lt.adjustY,Ge=lt.shiftX,st=lt.shiftY,pt=function(ei){return typeof ei=="boolean"?ei:ei>=0},yt,zt,$t,ze;fr();var fe=pt(Qe),Me=Ne[0]===Ye[0];if(fe&&Ne[0]==="t"&&(zt>$e.bottom||p.current.bt)){var We=it;Me?We-=J-ee:We=Ce.y-Xe.y-be;var wt=cn(rt,We),Je=cn(rt,We,ue);wt>ge||wt===ge&&(!me||Je>=Te)?(p.current.bt=!0,it=We,be=-be,nt.points=[jc(Ne,0),jc(Ye,0)]):p.current.bt=!1}if(fe&&Ne[0]==="b"&&(yt<$e.top||p.current.tb)){var Le=it;Me?Le+=J-ee:Le=Ke.y-Ie.y-be;var ot=cn(rt,Le),vt=cn(rt,Le,ue);ot>ge||ot===ge&&(!me||vt>=Te)?(p.current.tb=!0,it=Le,be=-be,nt.points=[jc(Ne,0),jc(Ye,0)]):p.current.tb=!1}var Et=pt(tt),It=Ne[1]===Ye[1];if(Et&&Ne[1]==="l"&&(ze>$e.right||p.current.rl)){var St=rt;It?St-=Z-te:St=Ce.x-Xe.x-we;var at=cn(St,it),_t=cn(St,it,ue);at>ge||at===ge&&(!me||_t>=Te)?(p.current.rl=!0,rt=St,we=-we,nt.points=[jc(Ne,1),jc(Ye,1)]):p.current.rl=!1}if(Et&&Ne[1]==="r"&&($t<$e.left||p.current.lr)){var At=rt;It?At+=Z-te:At=Ke.x-Ie.x-we;var Dt=cn(At,it),Jt=cn(At,it,ue);Dt>ge||Dt===ge&&(!me||Jt>=Te)?(p.current.lr=!0,rt=At,we=-we,nt.points=[jc(Ne,1),jc(Ye,1)]):p.current.lr=!1}fr();var pn=Ge===!0?0:Ge;typeof pn=="number"&&($tue.right&&(rt-=ze-ue.right-we,I.x>ue.right-pn&&(rt+=I.x-ue.right+pn)));var gn=st===!0?0:st;typeof gn=="number"&&(ytue.bottom&&(it-=zt-ue.bottom-be,I.y>ue.bottom-gn&&(it+=I.y-ue.bottom+gn)));var wr=W.x+rt,dr=wr+Z,Qn=W.y+it,Wr=Qn+J,vn=I.x,Bt=vn+te,jt=I.y,wn=jt+ee,Ft=Math.max(wr,vn),Nt=Math.min(dr,Bt),hn=(Ft+Nt)/2,On=hn-wr,ar=Math.max(Qn,jt),Ue=Math.min(Wr,wn),ht=(ar+Ue)/2,kt=ht-Qn;o==null||o(t,nt);var ut=se.right-W.x-(rt+W.width),Ze=se.bottom-W.y-(it+W.height);he===1&&(rt=Math.round(rt),ut=Math.round(ut)),ve===1&&(it=Math.round(it),Ze=Math.round(Ze));var gt={ready:!0,offsetX:rt/he,offsetY:it/ve,offsetR:ut/he,offsetB:Ze/ve,arrowX:On/he,arrowY:kt/ve,scaleX:he,scaleY:ve,align:nt};d(gt)}}),g=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&v()})},w=function(){d(function(b){return A(A({},b),{},{ready:!1})})};return an(w,[r]),an(function(){e||w()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function BMe(e,t,n,r,i){an(function(){if(e&&t&&n){let m=function(){r(),i()};var f=m,a=t,o=n,s=RT(a),l=RT(o),c=c1(o),d=new Set([c].concat(Fe(s),Fe(l)));return d.forEach(function(p){p.addEventListener("scroll",m,{passive:!0})}),c.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",m),c.removeEventListener("resize",m)})}}},[e,t,n])}function zMe(e,t,n,r,i,a,o,s){var l=u.useRef(e);l.current=e;var c=u.useRef(!1);u.useEffect(function(){if(t&&r&&(!i||a)){var f=function(){c.current=!1},m=function(g){var w;l.current&&!o(((w=g.composedPath)===null||w===void 0||(w=w.call(g))===null||w===void 0?void 0:w[0])||g.target)&&!c.current&&s(!1)},p=c1(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0);var h=Ox(n);return h&&(h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0)),function(){p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0),h&&(h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0))}}},[t,n,r,i,a]);function d(){c.current=!0}return d}var HMe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function VMe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e_,t=u.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,v=n.mouseEnterDelay,g=n.mouseLeaveDelay,w=g===void 0?.1:g,y=n.focusDelay,b=n.blurDelay,x=n.mask,C=n.maskClosable,S=C===void 0?!0:C,_=n.getPopupContainer,k=n.forceRender,$=n.autoDestroy,E=n.destroyPopupOnHide,P=n.popup,M=n.popupClassName,j=n.popupStyle,O=n.popupPlacement,N=n.builtinPlacements,R=N===void 0?{}:N,D=n.popupAlign,F=n.zIndex,z=n.stretch,I=n.getPopupClassNameFromAlign,H=n.fresh,V=n.alignPoint,B=n.onPopupClick,W=n.onPopupAlign,U=n.arrow,X=n.popupMotion,q=n.maskMotion,Y=n.popupTransitionName,re=n.popupAnimation,G=n.maskTransitionName,Q=n.maskAnimation,J=n.className,Z=n.getTriggerDOMNode,ee=ft(n,HMe),te=$||E||!1,le=u.useState(!1),oe=ie(le,2),de=oe[0],pe=oe[1];an(function(){pe(i_())},[]);var ye=u.useRef({}),me=u.useContext(WA),xe=u.useMemo(function(){return{registerSubPopup:function(Mt,Zn){ye.current[Mt]=Zn,me==null||me.registerSubPopup(Mt,Zn)}}},[me]),ue=t_(),ce=u.useState(null),$e=ie(ce,2),se=$e[0],he=$e[1],ve=u.useRef(null),ke=Ht(function(Vt){ve.current=Vt,Wg(Vt)&&se!==Vt&&he(Vt),me==null||me.registerSubPopup(ue,Vt)}),Se=u.useState(null),Ee=ie(Se,2),De=Ee[0],we=Ee[1],be=u.useRef(null),Pe=Ht(function(Vt){Wg(Vt)&&De!==Vt&&(we(Vt),be.current=Vt)}),Re=u.Children.only(o),_e=(Re==null?void 0:Re.props)||{},je={},He=Ht(function(Vt){var Mt,Zn,sn=De;return(sn==null?void 0:sn.contains(Vt))||((Mt=Ox(sn))===null||Mt===void 0?void 0:Mt.host)===Vt||Vt===sn||(se==null?void 0:se.contains(Vt))||((Zn=Ox(se))===null||Zn===void 0?void 0:Zn.host)===Vt||Vt===se||Object.values(ye.current).some(function(mr){return(mr==null?void 0:mr.contains(Vt))||Vt===mr})}),Be=qA(a,X,re,Y),ct=qA(a,q,Q,G),Ve=u.useState(m||!1),Ye=ie(Ve,2),Ne=Ye[0],Ae=Ye[1],et=f??Ne,nt=Ht(function(Vt){f===void 0&&Ae(Vt)});an(function(){Ae(f||!1)},[f]);var rt=u.useRef(et);rt.current=et;var it=u.useRef([]);it.current=[];var ge=Ht(function(Vt){var Mt;nt(Vt),((Mt=it.current[it.current.length-1])!==null&&Mt!==void 0?Mt:et)!==Vt&&(it.current.push(Vt),p==null||p(Vt))}),Te=u.useRef(),Ce=function(){clearTimeout(Te.current)},Ie=function(Mt){var Zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ce(),Zn===0?ge(Mt):Te.current=setTimeout(function(){ge(Mt)},Zn*1e3)};u.useEffect(function(){return Ce},[]);var Ke=u.useState(!1),Xe=ie(Ke,2),lt=Xe[0],tt=Xe[1];an(function(Vt){(!Vt||et)&&tt(!0)},[et]);var Qe=u.useState(null),Ge=ie(Qe,2),st=Ge[0],pt=Ge[1],yt=u.useState(null),zt=ie(yt,2),$t=zt[0],ze=zt[1],fe=function(Mt){ze([Mt.clientX,Mt.clientY])},Me=LMe(et,se,V&&$t!==null?$t:De,O,R,D,W),We=ie(Me,11),wt=We[0],Je=We[1],Le=We[2],ot=We[3],vt=We[4],Et=We[5],It=We[6],St=We[7],at=We[8],_t=We[9],At=We[10],Dt=jMe(de,l,c,d),Jt=ie(Dt,2),pn=Jt[0],gn=Jt[1],wr=pn.has("click"),dr=gn.has("click")||gn.has("contextMenu"),Qn=Ht(function(){lt||At()}),Wr=function(){rt.current&&V&&dr&&Ie(!1)};BMe(et,De,se,Qn,Wr),an(function(){Qn()},[$t,O]),an(function(){et&&!(R!=null&&R[O])&&Qn()},[JSON.stringify(D)]);var vn=u.useMemo(function(){var Vt=AMe(R,a,_t,V);return ne(Vt,I==null?void 0:I(_t))},[_t,I,R,a,V]);u.useImperativeHandle(r,function(){return{nativeElement:be.current,popupElement:ve.current,forceAlign:Qn}});var Bt=u.useState(0),jt=ie(Bt,2),wn=jt[0],Ft=jt[1],Nt=u.useState(0),hn=ie(Nt,2),On=hn[0],ar=hn[1],Ue=function(){if(z&&De){var Mt=De.getBoundingClientRect();Ft(Mt.width),ar(Mt.height)}},ht=function(){Ue(),Qn()},kt=function(Mt){tt(!1),At(),h==null||h(Mt)},ut=function(){return new Promise(function(Mt){Ue(),pt(function(){return Mt})})};an(function(){st&&(At(),st(),pt(null))},[st]);function Ze(Vt,Mt,Zn,sn){je[Vt]=function(mr){var $n;sn==null||sn(mr),Ie(Mt,Zn);for(var or=arguments.length,xa=new Array(or>1?or-1:0),H1=1;H11?Zn-1:0),mr=1;mr1?Zn-1:0),mr=1;mr1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=qZ(n,!1),o=a.label,s=a.value,l=a.options,c=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(p){if(m||!(l in p)){var h=p[s];i.push({key:QA(p,i.length),groupOption:m,data:p,label:p[o],value:h})}else{var v=p[c];v===void 0&&r&&(v=p.label),i.push({key:QA(p,i.length),group:!0,data:p,label:v}),d(p[l],!0)}})}return d(e,!1),i}function MT(e){var t=A({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Fn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var YMe=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,c){var d=OI(c),f=d[0],m=d.slice(1);if(!f)return[l];var p=l.split(f);return i=i||p.length>1,p.reduce(function(h,v){return[].concat(Fe(h),Fe(s(v,m)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r<"u"?o.slice(0,r):o:null},nM=u.createContext(null);function XMe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(mt(a))?a:o}).join(", ")),n.length>r?", ...":null)}var QMe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ZMe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],NT=function(t){return t==="tags"||t==="multiple"},rM=u.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,p=e.notFoundContent,h=p===void 0?"Not Found":p,v=e.onClear,g=e.mode,w=e.disabled,y=e.loading,b=e.getInputElement,x=e.getRawInputElement,C=e.open,S=e.defaultOpen,_=e.onDropdownVisibleChange,k=e.activeValue,$=e.onActiveValueChange,E=e.activeDescendantId,P=e.searchValue,M=e.autoClearSearchValue,j=e.onSearch,O=e.onSearchSplit,N=e.tokenSeparators,R=e.allowClear,D=e.prefix,F=e.suffixIcon,z=e.clearIcon,I=e.OptionList,H=e.animation,V=e.transitionName,B=e.dropdownStyle,W=e.dropdownClassName,U=e.dropdownMatchSelectWidth,X=e.dropdownRender,q=e.dropdownAlign,Y=e.placement,re=e.builtinPlacements,G=e.getPopupContainer,Q=e.showAction,J=Q===void 0?[]:Q,Z=e.onFocus,ee=e.onBlur,te=e.onKeyUp,le=e.onKeyDown,oe=e.onMouseDown,de=ft(e,QMe),pe=NT(g),ye=(o!==void 0?o:pe)||g==="combobox",me=A({},de);ZMe.forEach(function(Bt){delete me[Bt]}),c==null||c.forEach(function(Bt){delete me[Bt]});var xe=u.useState(!1),ue=ie(xe,2),ce=ue[0],$e=ue[1];u.useEffect(function(){$e(i_())},[]);var se=u.useRef(null),he=u.useRef(null),ve=u.useRef(null),ke=u.useRef(null),Se=u.useRef(null),Ee=u.useRef(!1),De=oMe(),we=ie(De,3),be=we[0],Pe=we[1],Re=we[2];u.useImperativeHandle(t,function(){var Bt,jt;return{focus:(Bt=ke.current)===null||Bt===void 0?void 0:Bt.focus,blur:(jt=ke.current)===null||jt===void 0?void 0:jt.blur,scrollTo:function(Ft){var Nt;return(Nt=Se.current)===null||Nt===void 0?void 0:Nt.scrollTo(Ft)},nativeElement:se.current||he.current}});var _e=u.useMemo(function(){var Bt;if(g!=="combobox")return P;var jt=(Bt=d[0])===null||Bt===void 0?void 0:Bt.value;return typeof jt=="string"||typeof jt=="number"?String(jt):""},[P,g,d]),je=g==="combobox"&&typeof b=="function"&&b()||null,He=typeof x=="function"&&x(),Be=Ec(he,He==null||(n=He.props)===null||n===void 0?void 0:n.ref),ct=u.useState(!1),Ve=ie(ct,2),Ye=Ve[0],Ne=Ve[1];an(function(){Ne(!0)},[]);var Ae=Ut(!1,{defaultValue:S,value:C}),et=ie(Ae,2),nt=et[0],rt=et[1],it=Ye?nt:!1,ge=!h&&m;(w||ge&&it&&g==="combobox")&&(it=!1);var Te=ge?!1:it,Ce=u.useCallback(function(Bt){var jt=Bt!==void 0?Bt:!it;w||(rt(jt),it!==jt&&(_==null||_(jt)))},[w,it,rt,_]),Ie=u.useMemo(function(){return(N||[]).some(function(Bt){return[` -`,`\r -`].includes(Bt)})},[N]),Ke=u.useContext(nM)||{},Xe=Ke.maxCount,lt=Ke.rawValues,tt=function(jt,wn,Ft){if(!(pe&&IT(Xe)&&(lt==null?void 0:lt.size)>=Xe)){var Nt=!0,hn=jt;$==null||$(null);var On=YMe(jt,N,IT(Xe)?Xe-lt.size:void 0),ar=Ft?null:On;return g!=="combobox"&&ar&&(hn="",O==null||O(ar),Ce(!1),Nt=!1),j&&_e!==hn&&j(hn,{source:wn?"typing":"effect"}),Nt}},Qe=function(jt){!jt||!jt.trim()||j(jt,{source:"submit"})};u.useEffect(function(){!it&&!pe&&g!=="combobox"&&tt("",!1,!1)},[it]),u.useEffect(function(){nt&&w&&rt(!1),w&&!Ee.current&&Pe(!1)},[w]);var Ge=LZ(),st=ie(Ge,2),pt=st[0],yt=st[1],zt=u.useRef(!1),$t=function(jt){var wn=pt(),Ft=jt.key,Nt=Ft==="Enter";if(Nt&&(g!=="combobox"&&jt.preventDefault(),it||Ce(!0)),yt(!!_e),Ft==="Backspace"&&!wn&&pe&&!_e&&d.length){for(var hn=Fe(d),On=null,ar=hn.length-1;ar>=0;ar-=1){var Ue=hn[ar];if(!Ue.disabled){hn.splice(ar,1),On=Ue;break}}On&&f(hn,{type:"remove",values:[On]})}for(var ht=arguments.length,kt=new Array(ht>1?ht-1:0),ut=1;ut1?wn-1:0),Nt=1;Nt1?On-1:0),Ue=1;Ue"u"?"undefined":mt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const KZ=function(e,t,n,r){var i=u.useRef(!1),a=u.useRef(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var s=u.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return d&&f?(clearTimeout(a.current),i.current=!1):(!f||i.current)&&o(),!i.current&&f}};function rNe(e,t,n,r,i,a,o){var s=u.useRef(0),l=u.useRef(null),c=u.useRef(null),d=u.useRef(!1),f=KZ(t,n,r,i);function m(y,b){if(tn.cancel(l.current),!f(!1,b)){var x=y;if(!x._virtualHandled)x._virtualHandled=!0;else return;s.current+=b,c.current=b,ZA||x.preventDefault(),l.current=tn(function(){var C=d.current?10:1;o(s.current*C,!1),s.current=0})}}function p(y,b){o(b,!0),ZA||y.preventDefault()}var h=u.useRef(null),v=u.useRef(null);function g(y){if(e){tn.cancel(v.current),v.current=tn(function(){h.current=null},2);var b=y.deltaX,x=y.deltaY,C=y.shiftKey,S=b,_=x;(h.current==="sx"||!h.current&&C&&x&&!b)&&(S=x,_=0,h.current="sx");var k=Math.abs(S),$=Math.abs(_);h.current===null&&(h.current=a&&k>$?"x":"y"),h.current==="y"?m(y,_):p(y,S)}}function w(y){e&&(d.current=y.detail===c.current)}return[g,w]}function iNe(e,t,n,r){var i=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=ie(i,2),o=a[0],s=a[1],l=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=o.get(d),p=o.get(f);if(m===void 0||p===void 0)for(var h=e.length,v=s.length;v0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){s.current.forEach(function(g,w){if(g&&g.offsetParent){var y=Yv(g),b=y.offsetHeight,x=getComputedStyle(y),C=x.marginTop,S=x.marginBottom,_=JA(C),k=JA(S),$=b+_+k;l.current.get(w)!==$&&l.current.set(w,$)}}),o(function(g){return g+1})};p?h():c.current=tn(h)}function m(p,h){var v=e(p);s.current.get(v),h?(s.current.set(v,h),f()):s.current.delete(v)}return u.useEffect(function(){return d},[]),[m,f,l.current,a]}var e9=14/15;function sNe(e,t,n){var r=u.useRef(!1),i=u.useRef(0),a=u.useRef(0),o=u.useRef(null),s=u.useRef(null),l,c=function(p){if(r.current){var h=Math.ceil(p.touches[0].pageX),v=Math.ceil(p.touches[0].pageY),g=i.current-h,w=a.current-v,y=Math.abs(g)>Math.abs(w);y?i.current=h:a.current=v;var b=n(y,y?g:w,!1,p);b&&p.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(function(){y?g*=e9:w*=e9;var x=Math.floor(y?g:w);(!n(y,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,l()},f=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(p.touches[0].pageX),a.current=Math.ceil(p.touches[0].pageY),o.current=p.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",d,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",d))},an(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var lNe=10;function cNe(e,t,n,r,i,a,o,s){var l=u.useRef(),c=u.useState(null),d=ie(c,2),f=d[0],m=d[1];return an(function(){if(f&&f.times=0;O-=1){var N=i(t[O]),R=n.get(N);if(R===void 0){y=!0;break}if(j-=R,j<=0)break}switch(C){case"top":x=_-g;break;case"bottom":x=k-w+g;break;default:{var D=e.current.scrollTop,F=D+w;_F&&(b="bottom")}}x!==null&&o(x),x!==f.lastTop&&(y=!0)}y&&m(A(A({},f),{},{times:f.times+1,targetAlign:b,lastTop:x}))}},[f,e.current]),function(p){if(p==null){s();return}if(tn.cancel(l.current),typeof p=="number")o(p);else if(p&&mt(p)==="object"){var h,v=p.align;"index"in p?h=p.index:h=t.findIndex(function(y){return i(y)===p.key});var g=p.offset,w=g===void 0?0:g;m({times:0,index:h,offset:w,originAlign:v})}}}function t9(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var n9=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,p=e.thumbStyle,h=u.useState(!1),v=ie(h,2),g=v[0],w=v[1],y=u.useState(null),b=ie(y,2),x=b[0],C=b[1],S=u.useState(null),_=ie(S,2),k=_[0],$=_[1],E=!r,P=u.useRef(),M=u.useRef(),j=u.useState(!1),O=ie(j,2),N=O[0],R=O[1],D=u.useRef(),F=function(){clearTimeout(D.current),R(!0),D.current=setTimeout(function(){R(!1)},3e3)},z=a-f||0,I=f-d||0,H=u.useMemo(function(){if(i===0||z===0)return 0;var G=i/z;return G*I},[i,z,I]),V=function(Q){Q.stopPropagation(),Q.preventDefault()},B=u.useRef({top:H,dragging:g,pageY:x,startTop:k});B.current={top:H,dragging:g,pageY:x,startTop:k};var W=function(Q){w(!0),C(t9(Q,c)),$(B.current.top),o(),Q.stopPropagation(),Q.preventDefault()};u.useEffect(function(){var G=function(ee){ee.preventDefault()},Q=P.current,J=M.current;return Q.addEventListener("touchstart",G,{passive:!1}),J.addEventListener("touchstart",W,{passive:!1}),function(){Q.removeEventListener("touchstart",G),J.removeEventListener("touchstart",W)}},[]);var U=u.useRef();U.current=z;var X=u.useRef();X.current=I,u.useEffect(function(){if(g){var G,Q=function(ee){var te=B.current,le=te.dragging,oe=te.pageY,de=te.startTop;tn.cancel(G);var pe=P.current.getBoundingClientRect(),ye=f/(c?pe.width:pe.height);if(le){var me=(t9(ee,c)-oe)*ye,xe=de;!E&&c?xe-=me:xe+=me;var ue=U.current,ce=X.current,$e=ce?xe/ce:0,se=Math.ceil($e*ue);se=Math.max(se,0),se=Math.min(se,ue),G=tn(function(){l(se,c)})}},J=function(){w(!1),s()};return window.addEventListener("mousemove",Q,{passive:!0}),window.addEventListener("touchmove",Q,{passive:!0}),window.addEventListener("mouseup",J,{passive:!0}),window.addEventListener("touchend",J,{passive:!0}),function(){window.removeEventListener("mousemove",Q),window.removeEventListener("touchmove",Q),window.removeEventListener("mouseup",J),window.removeEventListener("touchend",J),tn.cancel(G)}}},[g]),u.useEffect(function(){return F(),function(){clearTimeout(D.current)}},[i]),u.useImperativeHandle(t,function(){return{delayHidden:F}});var q="".concat(n,"-scrollbar"),Y={position:"absolute",visibility:N?null:"hidden"},re={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,re.height="100%",re.width=d,E?re.left=H:re.right=H):(Y.width=8,Y.top=0,Y.bottom=0,E?Y.right=0:Y.left=0,re.width="100%",re.height=d,re.top=H),u.createElement("div",{ref:P,className:ne(q,K(K(K({},"".concat(q,"-horizontal"),c),"".concat(q,"-vertical"),!c),"".concat(q,"-visible"),N)),style:A(A({},Y),m),onMouseDown:V,onMouseMove:F},u.createElement("div",{ref:M,className:ne("".concat(q,"-thumb"),K({},"".concat(q,"-thumb-moving"),g)),style:A(A({},re),p),onMouseDown:W}))}),uNe=20;function r9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,uNe),Math.floor(n)}var dNe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],fNe=[],mNe={overflowY:"auto",overflowAnchor:"none"};function pNe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,d=e.data,f=e.children,m=e.itemKey,p=e.virtual,h=e.direction,v=e.scrollWidth,g=e.component,w=g===void 0?"div":g,y=e.onScroll,b=e.onVirtualScroll,x=e.onVisibleChange,C=e.innerProps,S=e.extraRender,_=e.styles,k=ft(e,dNe),$=u.useCallback(function(fe){return typeof m=="function"?m(fe):fe==null?void 0:fe[m]},[m]),E=oNe($),P=ie(E,4),M=P[0],j=P[1],O=P[2],N=P[3],R=!!(p!==!1&&a&&o),D=u.useMemo(function(){return Object.values(O.maps).reduce(function(fe,Me){return fe+Me},0)},[O.id,O.maps]),F=R&&d&&(Math.max(o*d.length,D)>a||!!v),z=h==="rtl",I=ne(r,K({},"".concat(r,"-rtl"),z),i),H=d||fNe,V=u.useRef(),B=u.useRef(),W=u.useRef(),U=u.useState(0),X=ie(U,2),q=X[0],Y=X[1],re=u.useState(0),G=ie(re,2),Q=G[0],J=G[1],Z=u.useState(!1),ee=ie(Z,2),te=ee[0],le=ee[1],oe=function(){le(!0)},de=function(){le(!1)},pe={getKey:$};function ye(fe){Y(function(Me){var We;typeof fe=="function"?We=fe(Me):We=fe;var wt=Ve(We);return V.current.scrollTop=wt,wt})}var me=u.useRef({start:0,end:H.length}),xe=u.useRef(),ue=nNe(H,$),ce=ie(ue,1),$e=ce[0];xe.current=$e;var se=u.useMemo(function(){if(!R)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};if(!F){var fe;return{scrollHeight:((fe=B.current)===null||fe===void 0?void 0:fe.offsetHeight)||0,start:0,end:H.length-1,offset:void 0}}for(var Me=0,We,wt,Je,Le=H.length,ot=0;ot=q&&We===void 0&&(We=ot,wt=Me),St>q+a&&Je===void 0&&(Je=ot),Me=St}return We===void 0&&(We=0,wt=0,Je=Math.ceil(a/o)),Je===void 0&&(Je=H.length-1),Je=Math.min(Je+1,H.length-1),{scrollHeight:Me,start:We,end:Je,offset:wt}},[F,R,q,H,N,a]),he=se.scrollHeight,ve=se.start,ke=se.end,Se=se.offset;me.current.start=ve,me.current.end=ke;var Ee=u.useState({width:0,height:a}),De=ie(Ee,2),we=De[0],be=De[1],Pe=function(Me){be({width:Me.offsetWidth,height:Me.offsetHeight})},Re=u.useRef(),_e=u.useRef(),je=u.useMemo(function(){return r9(we.width,v)},[we.width,v]),He=u.useMemo(function(){return r9(we.height,he)},[we.height,he]),Be=he-a,ct=u.useRef(Be);ct.current=Be;function Ve(fe){var Me=fe;return Number.isNaN(ct.current)||(Me=Math.min(Me,ct.current)),Me=Math.max(Me,0),Me}var Ye=q<=0,Ne=q>=Be,Ae=Q<=0,et=Q>=v,nt=KZ(Ye,Ne,Ae,et),rt=function(){return{x:z?-Q:Q,y:q}},it=u.useRef(rt()),ge=Ht(function(fe){if(b){var Me=A(A({},rt()),fe);(it.current.x!==Me.x||it.current.y!==Me.y)&&(b(Me),it.current=Me)}});function Te(fe,Me){var We=fe;Me?(yi.flushSync(function(){J(We)}),ge()):ye(We)}function Ce(fe){var Me=fe.currentTarget.scrollTop;Me!==q&&ye(Me),y==null||y(fe),ge()}var Ie=function(Me){var We=Me,wt=v?v-we.width:0;return We=Math.max(We,0),We=Math.min(We,wt),We},Ke=Ht(function(fe,Me){Me?(yi.flushSync(function(){J(function(We){var wt=We+(z?-fe:fe);return Ie(wt)})}),ge()):ye(function(We){var wt=We+fe;return wt})}),Xe=rNe(R,Ye,Ne,Ae,et,!!v,Ke),lt=ie(Xe,2),tt=lt[0],Qe=lt[1];sNe(R,V,function(fe,Me,We,wt){var Je=wt;return nt(fe,Me,We)?!1:!Je||!Je._virtualHandled?(Je&&(Je._virtualHandled=!0),tt({preventDefault:function(){},deltaX:fe?Me:0,deltaY:fe?0:Me}),!0):!1}),an(function(){function fe(We){var wt=Ye&&We.detail<0,Je=Ne&&We.detail>0;R&&!wt&&!Je&&We.preventDefault()}var Me=V.current;return Me.addEventListener("wheel",tt,{passive:!1}),Me.addEventListener("DOMMouseScroll",Qe,{passive:!0}),Me.addEventListener("MozMousePixelScroll",fe,{passive:!1}),function(){Me.removeEventListener("wheel",tt),Me.removeEventListener("DOMMouseScroll",Qe),Me.removeEventListener("MozMousePixelScroll",fe)}},[R,Ye,Ne]),an(function(){if(v){var fe=Ie(Q);J(fe),ge({x:fe})}},[we.width,v]);var Ge=function(){var Me,We;(Me=Re.current)===null||Me===void 0||Me.delayHidden(),(We=_e.current)===null||We===void 0||We.delayHidden()},st=cNe(V,H,O,o,$,function(){return j(!0)},ye,Ge);u.useImperativeHandle(t,function(){return{nativeElement:W.current,getScrollInfo:rt,scrollTo:function(Me){function We(wt){return wt&&mt(wt)==="object"&&("left"in wt||"top"in wt)}We(Me)?(Me.left!==void 0&&J(Ie(Me.left)),st(Me.top)):st(Me)}}}),an(function(){if(x){var fe=H.slice(ve,ke+1);x(fe,H)}},[ve,ke,H]);var pt=iNe(H,$,O,o),yt=S==null?void 0:S({start:ve,end:ke,virtual:F,offsetX:Q,offsetY:Se,rtl:z,getSize:pt}),zt=eNe(H,ve,ke,v,Q,M,f,pe),$t=null;a&&($t=A(K({},l?"height":"maxHeight",a),mNe),R&&($t.overflowY="hidden",v&&($t.overflowX="hidden"),te&&($t.pointerEvents="none")));var ze={};return z&&(ze.dir="rtl"),u.createElement("div",Oe({ref:W,style:A(A({},c),{},{position:"relative"}),className:I},ze,k),u.createElement(bi,{onResize:Pe},u.createElement(w,{className:"".concat(r,"-holder"),style:$t,ref:V,onScroll:Ce,onMouseEnter:Ge},u.createElement(GZ,{prefixCls:r,height:he,offsetX:Q,offsetY:Se,scrollWidth:v,onInnerResize:j,ref:B,innerProps:C,rtl:z,extra:yt},zt))),F&&he>a&&u.createElement(n9,{ref:Re,prefixCls:r,scrollOffset:q,scrollRange:he,rtl:z,onScroll:Te,onStartMove:oe,onStopMove:de,spinSize:He,containerSize:we.height,style:_==null?void 0:_.verticalScrollBar,thumbStyle:_==null?void 0:_.verticalScrollBarThumb}),F&&v>we.width&&u.createElement(n9,{ref:_e,prefixCls:r,scrollOffset:Q,scrollRange:v,rtl:z,onScroll:Te,onStartMove:oe,onStopMove:de,spinSize:je,containerSize:we.width,horizontal:!0,style:_==null?void 0:_.horizontalScrollBar,thumbStyle:_==null?void 0:_.horizontalScrollBarThumb}))}var o_=u.forwardRef(pNe);o_.displayName="List";function hNe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var vNe=["disabled","title","children","style","className"];function i9(e){return typeof e=="string"||typeof e=="number"}var gNe=function(t,n){var r=tM(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,p=u.useContext(nM),h=p.maxCount,v=p.flattenOptions,g=p.onActiveValue,w=p.defaultActiveFirstOption,y=p.onSelect,b=p.menuItemSelectedIcon,x=p.rawValues,C=p.fieldNames,S=p.virtual,_=p.direction,k=p.listHeight,$=p.listItemHeight,E=p.optionRender,P="".concat(i,"-item"),M=gc(function(){return v},[o,v],function(Q,J){return J[0]&&Q[1]!==J[1]}),j=u.useRef(null),O=u.useMemo(function(){return s&&IT(h)&&(x==null?void 0:x.size)>=h},[s,h,x==null?void 0:x.size]),N=function(J){J.preventDefault()},R=function(J){var Z;(Z=j.current)===null||Z===void 0||Z.scrollTo(typeof J=="number"?{index:J}:J)},D=u.useCallback(function(Q){return l==="combobox"?!1:x.has(Q)},[l,Fe(x).toString(),x.size]),F=function(J){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=M.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;V(J);var ee={source:Z?"keyboard":"mouse"},te=M[J];if(!te){g(null,-1,ee);return}g(te.value,J,ee)};u.useEffect(function(){B(w!==!1?F(0):-1)},[M.length,c]);var W=u.useCallback(function(Q){return l==="combobox"?String(Q).toLowerCase()===c.toLowerCase():x.has(Q)},[l,c,Fe(x).toString(),x.size]);u.useEffect(function(){var Q=setTimeout(function(){if(!s&&o&&x.size===1){var Z=Array.from(x)[0],ee=M.findIndex(function(te){var le=te.data;return le.value===Z});ee!==-1&&(B(ee),R(ee))}});if(o){var J;(J=j.current)===null||J===void 0||J.scrollTo(void 0)}return function(){return clearTimeout(Q)}},[o,c]);var U=function(J){J!==void 0&&y(J,{selected:!x.has(J)}),s||d(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(J){var Z=J.which,ee=J.ctrlKey;switch(Z){case qe.N:case qe.P:case qe.UP:case qe.DOWN:{var te=0;if(Z===qe.UP?te=-1:Z===qe.DOWN?te=1:hNe()&&ee&&(Z===qe.N?te=1:Z===qe.P&&(te=-1)),te!==0){var le=F(H+te,te);R(le),B(le,!0)}break}case qe.TAB:case qe.ENTER:{var oe,de=M[H];de&&!(de!=null&&(oe=de.data)!==null&&oe!==void 0&&oe.disabled)&&!O?U(de.value):U(void 0),o&&J.preventDefault();break}case qe.ESC:d(!1),o&&J.stopPropagation()}},onKeyUp:function(){},scrollTo:function(J){R(J)}}}),M.length===0)return u.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:N},f);var X=Object.keys(C).map(function(Q){return C[Q]}),q=function(J){return J.label};function Y(Q,J){var Z=Q.group;return{role:Z?"presentation":"option",id:"".concat(a,"_list_").concat(J)}}var re=function(J){var Z=M[J];if(!Z)return null;var ee=Z.data||{},te=ee.value,le=Z.group,oe=yr(ee,!0),de=q(Z);return Z?u.createElement("div",Oe({"aria-label":typeof de=="string"&&!le?de:null},oe,{key:J},Y(Z,J),{"aria-selected":W(te)}),te):null},G={role:"listbox",id:"".concat(a,"_list")};return u.createElement(u.Fragment,null,S&&u.createElement("div",Oe({},G,{style:{height:0,width:0,overflow:"hidden"}}),re(H-1),re(H),re(H+1)),u.createElement(o_,{itemKey:"key",ref:j,data:M,height:k,itemHeight:$,fullHeight:!1,onMouseDown:N,onScroll:m,virtual:S,direction:_,innerProps:S?null:G},function(Q,J){var Z=Q.group,ee=Q.groupOption,te=Q.data,le=Q.label,oe=Q.value,de=te.key;if(Z){var pe,ye=(pe=te.title)!==null&&pe!==void 0?pe:i9(le)?le.toString():void 0;return u.createElement("div",{className:ne(P,"".concat(P,"-group"),te.className),title:ye},le!==void 0?le:de)}var me=te.disabled,xe=te.title;te.children;var ue=te.style,ce=te.className,$e=ft(te,vNe),se=kn($e,X),he=D(oe),ve=me||!he&&O,ke="".concat(P,"-option"),Se=ne(P,ke,ce,K(K(K(K({},"".concat(ke,"-grouped"),ee),"".concat(ke,"-active"),H===J&&!ve),"".concat(ke,"-disabled"),ve),"".concat(ke,"-selected"),he)),Ee=q(Q),De=!b||typeof b=="function"||he,we=typeof Ee=="number"?Ee:Ee||oe,be=i9(we)?we.toString():void 0;return xe!==void 0&&(be=xe),u.createElement("div",Oe({},yr(se),S?{}:Y(Q,J),{"aria-selected":W(oe),className:Se,title:be,onMouseMove:function(){H===J||ve||B(J)},onClick:function(){ve||U(oe)},style:ue}),u.createElement("div",{className:"".concat(ke,"-content")},typeof E=="function"?E(Q,{index:J}):we),u.isValidElement(b)||he,De&&u.createElement(a_,{className:"".concat(P,"-option-state"),customizeIcon:b,customizeIconProps:{value:oe,disabled:ve,isSelected:he}},he?"✓":null))}))},bNe=u.forwardRef(gNe);const yNe=function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var m;return A(A({},f),{},{label:(m=o.get(f.value))===null||m===void 0?void 0:m.label})}return f}),c=new Map,d=new Map;return l.forEach(function(f){c.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=d,l},[e,t]),i=u.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function hE(e,t){return WZ(e).join("").toUpperCase().includes(t)}const wNe=function(e,t,n,r,i){return u.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",d=n.toUpperCase(),f=c?r:function(p,h){return i?hE(h[i],d):h[a]?hE(h[o!=="children"?o:"label"],d):hE(h[s],d)},m=c?function(p){return MT(p)}:function(p){return p};return e.forEach(function(p){if(p[a]){var h=f(n,m(p));if(h)l.push(p);else{var v=p[a].filter(function(g){return f(n,m(g))});v.length&&l.push(A(A({},p),{},K({},a,v)))}return}f(n,m(p))&&l.push(p)}),l},[e,r,i,n,t])};var a9=0,xNe=va();function SNe(){var e;return xNe?(e=a9,a9+=1):e="TEST_OR_SSR",e}function oM(e){var t=u.useState(),n=ie(t,2),r=n[0],i=n[1];return u.useEffect(function(){i("rc_select_".concat(SNe()))},[]),e||r}var CNe=["children","value"],_Ne=["children"];function kNe(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=ft(r,CNe);return A({key:n,value:a!==void 0?a:n,children:i},o)}function YZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Lr(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,c=ft(s,_Ne);return t||!a?kNe(n):A(A({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:YZ(l)})}).filter(function(n){return n})}var $Ne=function(t,n,r,i,a){return u.useMemo(function(){var o=t,s=!t;s&&(o=YZ(n));var l=new Map,c=new Map,d=function(p,h,v){v&&typeof v=="string"&&p.set(h[v],h)},f=function m(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v0?Ce(Xe.options):Xe.options}):Xe})},we=u.useMemo(function(){return y?De(Ee):Ee},[Ee,y,G]),be=u.useMemo(function(){return KMe(we,{fieldNames:q,childrenAsData:U})},[we,q,U]),Pe=function(Ie){var Ke=le(Ie);if(ye(Ke),I&&(Ke.length!==ce.length||Ke.some(function(tt,Qe){var Ge;return((Ge=ce[Qe])===null||Ge===void 0?void 0:Ge.value)!==(tt==null?void 0:tt.value)}))){var Xe=z?Ke:Ke.map(function(tt){return tt.value}),lt=Ke.map(function(tt){return MT($e(tt.value))});I(W?Xe:Xe[0],W?lt:lt[0])}},Re=u.useState(null),_e=ie(Re,2),je=_e[0],He=_e[1],Be=u.useState(0),ct=ie(Be,2),Ve=ct[0],Ye=ct[1],Ne=k!==void 0?k:r!=="combobox",Ae=u.useCallback(function(Ce,Ie){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xe=Ke.source,lt=Xe===void 0?"keyboard":Xe;Ye(Ie),o&&r==="combobox"&&Ce!==null&<==="keyboard"&&He(String(Ce))},[o,r]),et=function(Ie,Ke,Xe){var lt=function(){var fe,Me=$e(Ie);return[z?{label:Me==null?void 0:Me[q.label],value:Ie,key:(fe=Me==null?void 0:Me.key)!==null&&fe!==void 0?fe:Ie}:Ie,MT(Me)]};if(Ke&&p){var tt=lt(),Qe=ie(tt,2),Ge=Qe[0],st=Qe[1];p(Ge,st)}else if(!Ke&&h&&Xe!=="clear"){var pt=lt(),yt=ie(pt,2),zt=yt[0],$t=yt[1];h(zt,$t)}},nt=o9(function(Ce,Ie){var Ke,Xe=W?Ie.selected:!0;Xe?Ke=W?[].concat(Fe(ce),[Ce]):[Ce]:Ke=ce.filter(function(lt){return lt.value!==Ce}),Pe(Ke),et(Ce,Xe),r==="combobox"?He(""):(!NT||m)&&(Q(""),He(""))}),rt=function(Ie,Ke){Pe(Ie);var Xe=Ke.type,lt=Ke.values;(Xe==="remove"||Xe==="clear")&<.forEach(function(tt){et(tt.value,!1,Xe)})},it=function(Ie,Ke){if(Q(Ie),He(null),Ke.source==="submit"){var Xe=(Ie||"").trim();if(Xe){var lt=Array.from(new Set([].concat(Fe(he),[Xe])));Pe(lt),et(Xe,!0),Q("")}return}Ke.source!=="blur"&&(r==="combobox"&&Pe(Ie),d==null||d(Ie))},ge=function(Ie){var Ke=Ie;r!=="tags"&&(Ke=Ie.map(function(lt){var tt=ee.get(lt);return tt==null?void 0:tt.value}).filter(function(lt){return lt!==void 0}));var Xe=Array.from(new Set([].concat(Fe(he),Fe(Ke))));Pe(Xe),Xe.forEach(function(lt){et(lt,!0)})},Te=u.useMemo(function(){var Ce=E!==!1&&g!==!1;return A(A({},J),{},{flattenOptions:be,onActiveValue:Ae,defaultActiveFirstOption:Ne,onSelect:nt,menuItemSelectedIcon:$,rawValues:he,fieldNames:q,virtual:Ce,direction:P,listHeight:j,listItemHeight:N,childrenAsData:U,maxCount:H,optionRender:S})},[H,J,be,Ae,Ne,nt,$,he,q,E,g,P,j,N,U,S]);return u.createElement(nM.Provider,{value:Te},u.createElement(rM,Oe({},V,{id:B,prefixCls:a,ref:t,omitDomProps:PNe,mode:r,displayValues:se,onDisplayValuesChange:rt,direction:P,searchValue:G,onSearch:it,autoClearSearchValue:m,onSearchSplit:ge,dropdownMatchSelectWidth:g,OptionList:bNe,emptyOptions:!be.length,activeValue:je,activeDescendantId:"".concat(B,"_list_").concat(Ve)})))}),sM=ONe;sM.Option=aM;sM.OptGroup=iM;function Hs(e,t,n){return ne({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Pc=(e,t)=>t||e,RNe=()=>{const[,e]=Zr(),[t]=ya("Empty"),r=new rn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},INe=()=>{const[,e]=Zr(),[t]=ya("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:l}=u.useMemo(()=>({borderColor:new rn(n).onBackground(a).toHexString(),shadowColor:new rn(r).onBackground(a).toHexString(),contentColor:new rn(i).onBackground(a).toHexString()}),[n,r,i,a]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:o},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},MNe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},NNe=un("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Yt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[MNe(i)]});var DNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{className:c,rootClassName:d,prefixCls:f,image:m=XZ,description:p,children:h,imageStyle:v,style:g,classNames:w,styles:y}=e,b=DNe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:x,direction:C,empty:S}=u.useContext(Ct),_=x("empty",f),[k,$,E]=NNe(_),[P]=ya("Empty"),M=typeof p<"u"?p:P==null?void 0:P.description,j=typeof M=="string"?M:"empty";let O=null;return typeof m=="string"?O=u.createElement("img",{alt:j,src:m}):O=m,k(u.createElement("div",Object.assign({className:ne($,E,_,S==null?void 0:S.className,{[`${_}-normal`]:m===QZ,[`${_}-rtl`]:C==="rtl"},c,d,(t=S==null?void 0:S.classNames)===null||t===void 0?void 0:t.root,w==null?void 0:w.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=S==null?void 0:S.styles)===null||n===void 0?void 0:n.root),S==null?void 0:S.style),y==null?void 0:y.root),g)},b),u.createElement("div",{className:ne(`${_}-image`,(r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.image,w==null?void 0:w.image),style:Object.assign(Object.assign(Object.assign({},v),(i=S==null?void 0:S.styles)===null||i===void 0?void 0:i.image),y==null?void 0:y.image)},O),M&&u.createElement("div",{className:ne(`${_}-description`,(a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.description,w==null?void 0:w.description),style:Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.description),y==null?void 0:y.description)},M),h&&u.createElement("div",{className:ne(`${_}-footer`,(s=S==null?void 0:S.classNames)===null||s===void 0?void 0:s.footer,w==null?void 0:w.footer),style:Object.assign(Object.assign({},(l=S==null?void 0:S.styles)===null||l===void 0?void 0:l.footer),y==null?void 0:y.footer)},h)))};ec.PRESENTED_IMAGE_DEFAULT=XZ;ec.PRESENTED_IMAGE_SIMPLE=QZ;const d1=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(Ct),r=n("empty");switch(t){case"Table":case"List":return L.createElement(ec,{image:ec.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return L.createElement(ec,{image:ec.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return L.createElement(ec,null)}},Tc=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=u.useContext(Ct),s=u.useContext(sZ),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const d=U4e.includes(c);return[c,d]},jNe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function lM(e,t){return e||jNe(t)}const s9=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},FNe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},mn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - ${i}${s}bottomLeft, - ${a}${s}bottomLeft - `]:{animationName:U2},[` - ${i}${s}topLeft, - ${a}${s}topLeft, - ${i}${s}topRight, - ${a}${s}topRight - `]:{animationName:G2},[`${o}${s}bottomLeft`]:{animationName:q2},[` - ${o}${s}topLeft, - ${o}${s}topRight - `]:{animationName:K2},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},s9(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Fa),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},s9(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Pl(e,"slide-up"),Pl(e,"slide-down"),gp(e,"move-up"),gp(e,"move-down")]},ZZ=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:ae(t),itemLineHeight:ae(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},ANe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},JZ=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},bf()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},LNe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=ANe(e),s=t?`${n}-${t}`:"",l=ZZ(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},JZ(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ae(r)} 0`,lineHeight:ae(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ae(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ae(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item, - ${n}-prefix + ${n}-selection-wrap - `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:ae(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function vE(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[LNe(e,t),i]}const BNe=e=>{const{componentCls:t}=e,n=Yt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Yt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[vE(e),vE(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},vE(r,"lg")]};function gE(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},mn(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{display:"block",padding:0,lineHeight:ae(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-search, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ae(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:ae(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ae(r)}`,"&:after":{display:"none"}}}}}}}function zNe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[gE(e),gE(Yt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ae(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},gE(Yt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const HNe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:g,colorTextDisabled:w,colorPrimaryHover:y,colorPrimary:b,controlOutline:x}=e,C=s*2,S=r*2,_=Math.min(i-C,i-S),k=Math.min(a-C,a-S),$=Math.min(o-C,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:h,clearBg:h,singleItemHeightLG:o,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightSM:k,multipleItemHeightLG:$,multipleSelectorBgDisabled:g,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:x,selectAffixPadding:s}},eJ=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ae(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},l9=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},eJ(e,t))}),VNe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},eJ(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),l9(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),l9(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),tJ=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ae(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},c9=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tJ(e,t))}),WNe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tJ(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),c9(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),c9(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),UNe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),qNe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},VNe(e)),WNe(e)),UNe(e))}),GNe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},KNe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},YNe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},GNe(e)),KNe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Fa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Fa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},bf()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},XNe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},YNe(e),zNe(e),BNe(e),FNe(e),{[`${t}-rtl`]:{direction:"rtl"}},wf(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},cM=un("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Yt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[XNe(r),qNe(r)]},HNe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function s_(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:d,showArrow:f,componentName:m}=e;const p=n??u.createElement($c,null),h=y=>t===null&&!s&&!f?null:u.createElement(u.Fragment,null,c!==!1&&y,s&&d);let v=null;if(t!==void 0)v=h(t);else if(a)v=h(u.createElement(js,{spin:!0}));else{const y=`${l}-suffix`;v=b=>{let{open:x,showSearch:C}=b;return h(x&&C?u.createElement(b2,{className:y}):u.createElement(J0,{className:y}))}}let g=null;r!==void 0?g=r:o?g=u.createElement(vI,null):g=null;let w=null;return i!==void 0?w=i:w=u.createElement(Ys,null),{clearIcon:p,suffixIcon:v,itemIcon:g,removeIcon:w}}function uM(e,t){return t!==void 0?t:e!==null}var QNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:d=256,placement:f,listItemHeight:m,size:p,disabled:h,notFoundContent:v,status:g,builtinPlacements:w,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:x,style:C,allowClear:S,variant:_,dropdownStyle:k,transitionName:$,tagRender:E,maxCount:P,prefix:M}=e,j=QNe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:O,getPrefixCls:N,renderEmpty:R,direction:D,virtual:F,popupMatchSelectWidth:z,popupOverflow:I,select:H}=u.useContext(Ct),[,V]=Zr(),B=m??(V==null?void 0:V.controlHeight),W=N("select",r),U=N(),X=x??D,{compactSize:q,compactItemClassnames:Y}=Qs(W,X),[re,G]=Tc("select",_,i),Q=Dn(W),[J,Z,ee]=cM(W,Q),te=u.useMemo(()=>{const{mode:je}=e;if(je!=="combobox")return je===nJ?"combobox":je},[e.mode]),le=te==="multiple"||te==="tags",oe=uM(e.suffixIcon,e.showArrow),de=(n=b??y)!==null&&n!==void 0?n:z,{status:pe,hasFeedback:ye,isFormItemInput:me,feedbackIcon:xe}=u.useContext(Qr),ue=Pc(pe,g);let ce;v!==void 0?ce=v:te==="combobox"?ce=null:ce=(R==null?void 0:R("Select"))||u.createElement(d1,{componentName:"Select"});const{suffixIcon:$e,itemIcon:se,removeIcon:he,clearIcon:ve}=s_(Object.assign(Object.assign({},j),{multiple:le,hasFeedback:ye,feedbackIcon:xe,showSuffixIcon:oe,prefixCls:W,componentName:"Select"})),ke=S===!0?{clearIcon:ve}:S,Se=kn(j,["suffixIcon","itemIcon"]),Ee=ne(l||c,{[`${W}-dropdown-${X}`]:X==="rtl"},o,ee,Q,Z),De=Fr(je=>{var He;return(He=p??q)!==null&&He!==void 0?He:je}),we=u.useContext(Br),be=h??we,Pe=ne({[`${W}-lg`]:De==="large",[`${W}-sm`]:De==="small",[`${W}-rtl`]:X==="rtl",[`${W}-${re}`]:G,[`${W}-in-form-item`]:me},Hs(W,ue,ye),Y,H==null?void 0:H.className,a,o,ee,Q,Z),Re=u.useMemo(()=>f!==void 0?f:X==="rtl"?"bottomRight":"bottomLeft",[f,X]),[_e]=Xs("SelectLike",k==null?void 0:k.zIndex);return J(u.createElement(sM,Object.assign({ref:t,virtual:F,showSearch:H==null?void 0:H.showSearch},Se,{style:Object.assign(Object.assign({},H==null?void 0:H.style),C),dropdownMatchSelectWidth:de,transitionName:ea(U,"slide-up",$),builtinPlacements:lM(w,I),listHeight:d,listItemHeight:B,mode:te,prefixCls:W,placement:Re,direction:X,prefix:M,suffixIcon:$e,menuItemSelectedIcon:se,removeIcon:he,allowClear:ke,notFoundContent:ce,className:Pe,getPopupContainer:s||O,dropdownClassName:Ee,disabled:be,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:_e}),maxCount:le?P:void 0,tagRender:le?E:void 0})))},Oc=u.forwardRef(ZNe),JNe=Bu(Oc,"dropdownAlign");Oc.SECRET_COMBOBOX_MODE_DO_NOT_USE=nJ;Oc.Option=aM;Oc.OptGroup=iM;Oc._InternalPanelDoNotUseOrYouWillBeFired=JNe;const bp=["xxl","xl","lg","md","sm","xs"],e5e=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),t5e=e=>{const t=e,n=[].concat(bp).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=c=>{let{matches:d}=c;this.dispatch(Object.assign(Object.assign({},i),{[a]:d}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function dM(){const[,e]=u.useReducer(t=>t+1,0);return e}function fM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=u.useRef({}),n=dM(),r=rJ();return an(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const DT=u.createContext({}),n5e=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:d,textFontSizeSM:f,borderRadius:m,borderRadiusLG:p,borderRadiusSM:h,lineWidth:v,lineType:g}=e,w=(y,b,x)=>({width:y,height:y,borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`&${n}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${ae(v)} ${g} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),w(o,c,m)),{"&-lg":Object.assign({},w(s,d,p)),"&-sm":Object.assign({},w(l,f,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},r5e=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},i5e=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+o)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:d}},iJ=un("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Yt(e,{avatarBg:n,avatarColor:t});return[n5e(r),r5e(r)]},i5e);var a5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const[n,r]=u.useState(1),[i,a]=u.useState(!1),[o,s]=u.useState(!0),l=u.useRef(null),c=u.useRef(null),d=di(t,l),{getPrefixCls:f,avatar:m}=u.useContext(Ct),p=u.useContext(DT),h=()=>{if(!c.current||!l.current)return;const Y=c.current.offsetWidth,re=l.current.offsetWidth;if(Y!==0&&re!==0){const{gap:G=4}=e;G*2{a(!0)},[]),u.useEffect(()=>{s(!0),r(1)},[e.src]),u.useEffect(h,[e.gap]);const v=()=>{const{onError:Y}=e;(Y==null?void 0:Y())!==!1&&s(!1)},{prefixCls:g,shape:w,size:y,src:b,srcSet:x,icon:C,className:S,rootClassName:_,alt:k,draggable:$,children:E,crossOrigin:P}=e,M=a5e(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),j=Fr(Y=>{var re,G;return(G=(re=y??(p==null?void 0:p.size))!==null&&re!==void 0?re:Y)!==null&&G!==void 0?G:"default"}),O=Object.keys(typeof j=="object"?j||{}:{}).some(Y=>["xs","sm","md","lg","xl","xxl"].includes(Y)),N=fM(O),R=u.useMemo(()=>{if(typeof j!="object")return{};const Y=bp.find(G=>N[G]),re=j[Y];return re?{width:re,height:re,fontSize:re&&(C||E)?re/2:18}:{}},[N,j]),D=f("avatar",g),F=Dn(D),[z,I,H]=iJ(D,F),V=ne({[`${D}-lg`]:j==="large",[`${D}-sm`]:j==="small"}),B=u.isValidElement(b),W=w||(p==null?void 0:p.shape)||"circle",U=ne(D,V,m==null?void 0:m.className,`${D}-${W}`,{[`${D}-image`]:B||b&&o,[`${D}-icon`]:!!C},H,F,S,_,I),X=typeof j=="number"?{width:j,height:j,fontSize:C?j/2:18}:{};let q;if(typeof b=="string"&&o)q=u.createElement("img",{src:b,draggable:$,srcSet:x,onError:v,alt:k,crossOrigin:P});else if(B)q=b;else if(C)q=C;else if(i||n!==1){const Y=`scale(${n})`,re={msTransform:Y,WebkitTransform:Y,transform:Y};q=u.createElement(bi,{onResize:h},u.createElement("span",{className:`${D}-string`,ref:c,style:Object.assign({},re)},E))}else q=u.createElement("span",{className:`${D}-string`,style:{opacity:0},ref:c},E);return delete M.onError,delete M.gap,z(u.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},X),R),m==null?void 0:m.style),M.style),className:U,ref:d}),q))},aJ=u.forwardRef(o5e),Hx=e=>e?typeof e=="function"?e():e:null;function mM(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,o=e.className,s=e.style;return u.createElement("div",{className:ne("".concat(n,"-content"),o),style:s},u.createElement("div",{className:ne("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Gf={shiftX:64,adjustY:1},Kf={adjustX:1,shiftY:!0},To=[0,0],s5e={left:{points:["cr","cl"],overflow:Kf,offset:[-4,0],targetOffset:To},right:{points:["cl","cr"],overflow:Kf,offset:[4,0],targetOffset:To},top:{points:["bc","tc"],overflow:Gf,offset:[0,-4],targetOffset:To},bottom:{points:["tc","bc"],overflow:Gf,offset:[0,4],targetOffset:To},topLeft:{points:["bl","tl"],overflow:Gf,offset:[0,-4],targetOffset:To},leftTop:{points:["tr","tl"],overflow:Kf,offset:[-4,0],targetOffset:To},topRight:{points:["br","tr"],overflow:Gf,offset:[0,-4],targetOffset:To},rightTop:{points:["tl","tr"],overflow:Kf,offset:[4,0],targetOffset:To},bottomRight:{points:["tr","br"],overflow:Gf,offset:[0,4],targetOffset:To},rightBottom:{points:["bl","br"],overflow:Kf,offset:[4,0],targetOffset:To},bottomLeft:{points:["tl","bl"],overflow:Gf,offset:[0,4],targetOffset:To},leftBottom:{points:["br","bl"],overflow:Kf,offset:[-4,0],targetOffset:To}},l5e=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],c5e=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,p=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,g=t.transitionName,w=t.animation,y=t.motion,b=t.placement,x=b===void 0?"right":b,C=t.align,S=C===void 0?{}:C,_=t.destroyTooltipOnHide,k=_===void 0?!1:_,$=t.defaultVisible,E=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,j=t.id,O=t.showArrow,N=O===void 0?!0:O,R=t.classNames,D=t.styles,F=ft(t,l5e),z=u.useRef(null);u.useImperativeHandle(n,function(){return z.current});var I=A({},F);"visible"in t&&(I.popupVisible=t.visible);var H=function(){return u.createElement(mM,{key:"content",prefixCls:m,id:j,bodyClassName:R==null?void 0:R.body,overlayInnerStyle:A(A({},P),D==null?void 0:D.body)},M)};return u.createElement(u1,Oe({popupClassName:ne(r,R==null?void 0:R.root),prefixCls:m,popup:H,action:a,builtinPlacements:s5e,popupPlacement:x,ref:z,popupAlign:S,getPopupContainer:E,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:g,popupAnimation:w,popupMotion:y,defaultPopupVisible:$,autoDestroy:k,mouseLeaveDelay:c,popupStyle:A(A({},d),D==null?void 0:D.root),mouseEnterDelay:s,arrow:N},I),p)};const u5e=u.forwardRef(c5e);function l_(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,m=d,p=2*i-s,h=l,v=2*i-a,g=o,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),b=`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,x=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${p} ${h} A ${r} ${r} 0 0 0 ${v} ${g} Z')`;return{arrowShadowWidth:w,arrowPath:x,arrowPolygon:b}}const oJ=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},sJ=8;function c_(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?sJ:r}}function Ab(e,t){return e?t:{}}function pM(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},oJ(e,t,i)),{"&:before":{background:t}})]},Ab(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Ab(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Ab(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Ab(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function d5e(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const u9={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},f5e={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},m5e=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function lJ(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(u9).forEach(c=>{const d=r&&f5e[c]||u9[c],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,m5e.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const m=c_({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal*2-s;break}f.overflow=d5e(c,m,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const p5e=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:p}=e,h=t(o).add(p).add(m).equal(),v=t(o).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:v,minHeight:l,padding:`${ae(e.calc(d).div(2).equal())} ${ae(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,sJ)}},[`${n}-content`]:{position:"relative"}}),F2(e,(g,w)=>{let{darkColor:y}=w;return{[`&${n}-${g}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},pM(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},h5e=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},c_({contentRadius:e.borderRadius,limitVerticalRadius:!0})),l_(Yt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),cJ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return un("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=Yt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[p5e(s),Zp(r,"zoom-big-fast")]},h5e,{resetStyle:!1,injectStyle:t})(e)},v5e=tf.map(e=>`${e}-inverse`),g5e=["success","processing","error","default","warning"];function u_(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Fe(v5e),Fe(tf)).includes(e):tf.includes(e)}function b5e(e){return g5e.includes(e)}function uJ(e,t){const n=u_(t),r=ne({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const y5e=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=u.useContext(Ct),l=s("tooltip",t),[c,d,f]=cJ(l),m=uJ(l,a),p=m.arrowStyle,h=Object.assign(Object.assign({},o),m.overlayStyle),v=ne(d,f,l,`${l}-pure`,`${l}-placement-${r}`,n,m.className);return c(u.createElement("div",{className:v,style:p},u.createElement("div",{className:`${l}-arrow`}),u.createElement(mM,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),i)))};var w5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,openClassName:c,getTooltipContainer:d,color:f,overlayInnerStyle:m,children:p,afterOpenChange:h,afterVisibleChange:v,destroyTooltipOnHide:g,arrow:w=!0,title:y,overlay:b,builtinPlacements:x,arrowPointAtCenter:C=!1,autoAdjustOverflow:S=!0}=e,_=!!w,[,k]=Zr(),{getPopupContainer:$,getPrefixCls:E,direction:P,tooltip:M}=u.useContext(Ct),j=Fl(),O=u.useRef(null),N=()=>{var Se;(Se=O.current)===null||Se===void 0||Se.forceAlign()};u.useImperativeHandle(t,()=>{var Se;return{forceAlign:N,forcePopupAlign:()=>{j.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:(Se=O.current)===null||Se===void 0?void 0:Se.nativeElement}});const[R,D]=Ut(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=!y&&!b&&y!==0,z=Se=>{var Ee,De;D(F?!1:Se),F||((Ee=e.onOpenChange)===null||Ee===void 0||Ee.call(e,Se),(De=e.onVisibleChange)===null||De===void 0||De.call(e,Se))},I=u.useMemo(()=>{var Se,Ee;let De=C;return typeof w=="object"&&(De=(Ee=(Se=w.pointAtCenter)!==null&&Se!==void 0?Se:w.arrowPointAtCenter)!==null&&Ee!==void 0?Ee:C),x||lJ({arrowPointAtCenter:De,autoAdjustOverflow:S,arrowWidth:_?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0})},[C,w,x,k]),H=u.useMemo(()=>y===0?y:b||y||"",[b,y]),V=u.createElement(Tl,{space:!0},typeof H=="function"?H():H),{getPopupContainer:B,placement:W="top",mouseEnterDelay:U=.1,mouseLeaveDelay:X=.1,overlayStyle:q,rootClassName:Y,overlayClassName:re,styles:G,classNames:Q}=e,J=w5e(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),Z=E("tooltip",l),ee=E(),te=e["data-popover-inject"];let le=R;!("open"in e)&&!("visible"in e)&&F&&(le=!1);const oe=u.isValidElement(p)&&!bQ(p)?p:u.createElement("span",null,p),de=oe.props,pe=!de.className||typeof de.className=="string"?ne(de.className,c||`${Z}-open`):de.className,[ye,me,xe]=cJ(Z,!te),ue=uJ(Z,f),ce=ue.arrowStyle,$e=ne(re,{[`${Z}-rtl`]:P==="rtl"},ue.className,Y,me,xe,M==null?void 0:M.className,(i=M==null?void 0:M.classNames)===null||i===void 0?void 0:i.root,Q==null?void 0:Q.root),se=ne((a=M==null?void 0:M.classNames)===null||a===void 0?void 0:a.body,Q==null?void 0:Q.body),[he,ve]=Xs("Tooltip",J.zIndex),ke=u.createElement(u5e,Object.assign({},J,{zIndex:he,showArrow:_,placement:W,mouseEnterDelay:U,mouseLeaveDelay:X,prefixCls:Z,classNames:{root:$e,body:se},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ce),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),M==null?void 0:M.style),q),G==null?void 0:G.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=M==null?void 0:M.styles)===null||s===void 0?void 0:s.body),m),G==null?void 0:G.body),ue.overlayStyle)},getTooltipContainer:B||d||$,ref:O,builtinPlacements:I,overlay:V,visible:le,onVisibleChange:z,afterVisibleChange:h??v,arrowContent:u.createElement("span",{className:`${Z}-arrow-content`}),motion:{motionName:ea(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),le?zr(oe,{className:pe}):oe);return ye(u.createElement(L2.Provider,{value:ve},ke))}),na=x5e;na._InternalPanelDoNotUseOrYouWillBeFired=y5e;const S5e=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:p,innerContentPadding:h,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},mn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:i,borderBottom:p,padding:v},[`${t}-inner-content`]:{color:n,padding:h}})},pM(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},C5e=e=>{const{componentCls:t}=e;return{[t]:tf.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},_5e=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:d,paddingSM:f}=e,m=n-r,p=m/2,h=m/2-t,v=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},l_(e)),c_({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?`${p}px ${v}px ${h}px`:0,titleBorderBottom:a?`${t}px ${c} ${d}`:"none",innerContentPadding:a?`${f}px ${v}px`:0})},dJ=un("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Yt(e,{popoverBg:t,popoverColor:n});return[S5e(r),C5e(r),Zp(r,"zoom-big")]},_5e,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var k5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:u.createElement(u.Fragment,null,t&&u.createElement("div",{className:`${r}-title`},t),n&&u.createElement("div",{className:`${r}-inner-content`},n))},$5e=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:o,content:s,children:l}=e,c=Hx(o),d=Hx(s),f=ne(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return u.createElement("div",{className:f,style:i},u.createElement("div",{className:`${n}-arrow`}),u.createElement(mM,Object.assign({},e,{className:t,prefixCls:n}),l||u.createElement(fJ,{prefixCls:n,title:c,content:d})))},E5e=e=>{const{prefixCls:t,className:n}=e,r=k5e(e,["prefixCls","className"]),{getPrefixCls:i}=u.useContext(Ct),a=i("popover",t),[o,s,l]=dJ(a);return o(u.createElement($5e,Object.assign({},r,{prefixCls:a,hashId:s,className:ne(n,l)})))};var P5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,title:c,content:d,overlayClassName:f,placement:m="top",trigger:p="hover",children:h,mouseEnterDelay:v=.1,mouseLeaveDelay:g=.1,onOpenChange:w,overlayStyle:y={},styles:b,classNames:x}=e,C=P5e(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:S,getPrefixCls:_}=u.useContext(Ct),k=_("popover",l),[$,E,P]=dJ(k),M=_(),j=ne(f,E,P,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.root,x==null?void 0:x.root),O=ne((r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.body,x==null?void 0:x.body),[N,R]=Ut(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),D=(V,B)=>{R(V,!0),w==null||w(V,B)},F=V=>{V.keyCode===qe.ESC&&D(!1,V)},z=V=>{D(V)},I=Hx(c),H=Hx(d);return $(u.createElement(na,Object.assign({placement:m,trigger:p,mouseEnterDelay:v,mouseLeaveDelay:g},C,{prefixCls:k,classNames:{root:j,body:O},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),y),b==null?void 0:b.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),b==null?void 0:b.body)},ref:t,open:N,onOpenChange:z,overlay:I||H?u.createElement(fJ,{prefixCls:k,title:I,content:H}):null,transitionName:ea(M,"zoom-big",C.transitionName),"data-popover-inject":!0}),zr(h,{onKeyDown:V=>{var B,W;u.isValidElement(h)&&((W=h==null?void 0:(B=h.props).onKeyDown)===null||W===void 0||W.call(B,V)),F(V)}})))}),Sf=T5e;Sf._InternalPanelDoNotUseOrYouWillBeFired=E5e;const d9=e=>{const{size:t,shape:n}=u.useContext(DT),r=u.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return u.createElement(DT.Provider,{value:r},e.children)},O5e=e=>{var t,n,r,i;const{getPrefixCls:a,direction:o}=u.useContext(Ct),{prefixCls:s,className:l,rootClassName:c,style:d,maxCount:f,maxStyle:m,size:p,shape:h,maxPopoverPlacement:v,maxPopoverTrigger:g,children:w,max:y}=e,b=a("avatar",s),x=`${b}-group`,C=Dn(b),[S,_,k]=iJ(b,C),$=ne(x,{[`${x}-rtl`]:o==="rtl"},k,C,l,c,_),E=Lr(w).map((j,O)=>zr(j,{key:`avatar-key-${O}`})),P=(y==null?void 0:y.count)||f,M=E.length;if(P&&P{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:a,textFontSizeSM:o,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:d,indicatorHeightSM:f,marginXS:m,calc:p}=e,h=`${r}-scroll-number`,v=F2(e,(g,w)=>{let{darkColor:y}=w;return{[`&${t} ${t}-color-${g}`]:{background:y,[`&:not(${t}-count)`]:{color:y},"a:hover &":{background:y}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:ae(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(d).div(2).equal(),boxShadow:`0 0 0 ${ae(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:o,lineHeight:ae(f),borderRadius:p(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ae(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ae(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:j5e,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:R5e,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:I5e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:M5e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:N5e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:D5e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},mJ=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,a=t,o=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return Yt(e,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},pJ=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},A5e=un("Badge",e=>{const t=mJ(e);return F5e(t)},pJ),L5e=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=e,o=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=F2(e,(c,d)=>{let{darkColor:f}=d;return{[`&${o}-color-${c}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[o]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"absolute",top:r,padding:`0 ${ae(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ae(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${o}-text`]:{color:e.badgeTextColor},[`${o}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${ae(a(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},B5e=un(["Badge","Ribbon"],e=>{const t=mJ(e);return L5e(t)},pJ),z5e=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:o,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:d}=u.useContext(Ct),f=c("ribbon",n),m=`${f}-wrapper`,[p,h,v]=B5e(f,m),g=u_(i,!1),w=ne(f,`${f}-placement-${s}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${i}`]:g},t),y={},b={};return i&&!g&&(y.background=i,b.color=i),p(u.createElement("div",{className:ne(m,l,h,v)},a,u.createElement("div",{className:ne(w,h),style:Object.assign(Object.assign({},y),r)},u.createElement("span",{className:`${f}-text`},o),u.createElement("div",{className:`${f}-corner`,style:b}))))},f9=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),u.createElement("span",{style:a,className:ne(`${t}-only-unit`,{current:r})},n)};function H5e(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const V5e=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[o,s]=u.useState(i),[l,c]=u.useState(a),d=()=>{s(i),c(a)};u.useEffect(()=>{const p=setTimeout(d,1e3);return()=>clearTimeout(p)},[i]);let f,m;if(o===i||Number.isNaN(i)||Number.isNaN(o))f=[u.createElement(f9,Object.assign({},e,{key:i,current:!0}))],m={transition:"none"};else{f=[];const p=i+10,h=[];for(let y=i;y<=p;y+=1)h.push(y);const v=ly%10===o);f=(v<0?h.slice(0,g+1):h.slice(g)).map((y,b)=>{const x=y%10;return u.createElement(f9,Object.assign({},e,{key:y,value:x,offset:v<0?b-g:b,current:b===g}))}),m={transform:`translateY(${-H5e(o,i,v)}00%)`}}return u.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:d},f)};var W5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:l,component:c="sup",children:d}=e,f=W5e(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=u.useContext(Ct),p=m("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":l,style:o,className:ne(p,i,a),title:s});let v=r;if(r&&Number(r)%1===0){const g=String(r).split("");v=u.createElement("bdi",null,g.map((w,y)=>u.createElement(V5e,{prefixCls:p,count:Number(r),value:w,key:g.length-y})))}return o!=null&&o.borderColor&&(h.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),d?zr(d,g=>({className:ne(`${p}-custom-component`,g==null?void 0:g.className,a)})):u.createElement(c,Object.assign({},h,{ref:t}),v)});var q5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:d,text:f,color:m,count:p=null,overflowCount:h=99,dot:v=!1,size:g="default",title:w,offset:y,style:b,className:x,rootClassName:C,classNames:S,styles:_,showZero:k=!1}=e,$=q5e(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:E,direction:P,badge:M}=u.useContext(Ct),j=E("badge",s),[O,N,R]=A5e(j),D=p>h?`${h}+`:p,F=D==="0"||D===0,z=p===null||F&&!k,I=(d!=null||m!=null)&&z,H=v&&!F,V=H?"":D,B=u.useMemo(()=>(V==null||V===""||F&&!k)&&!H,[V,F,k,H]),W=u.useRef(p);B||(W.current=p);const U=W.current,X=u.useRef(V);B||(X.current=V);const q=X.current,Y=u.useRef(H);B||(Y.current=H);const re=u.useMemo(()=>{if(!y)return Object.assign(Object.assign({},M==null?void 0:M.style),b);const oe={marginTop:y[1]};return P==="rtl"?oe.left=parseInt(y[0],10):oe.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},oe),M==null?void 0:M.style),b)},[P,y,b,M==null?void 0:M.style]),G=w??(typeof U=="string"||typeof U=="number"?U:void 0),Q=B||!f?null:u.createElement("span",{className:`${j}-status-text`},f),J=!U||typeof U!="object"?void 0:zr(U,oe=>({style:Object.assign(Object.assign({},re),oe.style)})),Z=u_(m,!1),ee=ne(S==null?void 0:S.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${j}-status-dot`]:I,[`${j}-status-${d}`]:!!d,[`${j}-color-${m}`]:Z}),te={};m&&!Z&&(te.color=m,te.background=m);const le=ne(j,{[`${j}-status`]:I,[`${j}-not-a-wrapper`]:!c,[`${j}-rtl`]:P==="rtl"},x,C,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,N,R);if(!c&&I){const oe=re.color;return O(u.createElement("span",Object.assign({},$,{className:le,style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.root),(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),re)}),u.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.indicator),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.indicator),te)}),f&&u.createElement("span",{style:{color:oe},className:`${j}-status-text`},f)))}return O(u.createElement("span",Object.assign({ref:t},$,{className:le,style:Object.assign(Object.assign({},(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),_==null?void 0:_.root)}),c,u.createElement(Oi,{visible:!B,motionName:`${j}-zoom`,motionAppear:!1,motionDeadline:1e3},oe=>{let{className:de}=oe;var pe,ye;const me=E("scroll-number",l),xe=Y.current,ue=ne(S==null?void 0:S.indicator,(pe=M==null?void 0:M.classNames)===null||pe===void 0?void 0:pe.indicator,{[`${j}-dot`]:xe,[`${j}-count`]:!xe,[`${j}-count-sm`]:g==="small",[`${j}-multiple-words`]:!xe&&q&&q.toString().length>1,[`${j}-status-${d}`]:!!d,[`${j}-color-${m}`]:Z});let ce=Object.assign(Object.assign(Object.assign({},_==null?void 0:_.indicator),(ye=M==null?void 0:M.styles)===null||ye===void 0?void 0:ye.indicator),re);return m&&!Z&&(ce=ce||{},ce.background=m),u.createElement(U5e,{prefixCls:me,show:!B,motionClassName:de,className:ue,count:q,title:G,style:ce,key:"scrollNumber"},J)}),Q))}),Za=G5e;Za.Ribbon=z5e;var K5e=qe.ESC,Y5e=qe.TAB;function X5e(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=u.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},l=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),o.current=!0,!0):!1},c=function(f){switch(f.keyCode){case K5e:s();break;case Y5e:{var m=!1;o.current||(m=l()),m?f.preventDefault():s();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&tn(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var Q5e=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=u.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=di(t,Lu(a));return L.createElement(L.Fragment,null,r&&L.createElement("div",{className:"".concat(i,"-arrow")}),L.cloneElement(a,{ref:As(a)?o:void 0}))}),Yf={adjustX:1,adjustY:1},Xf=[0,0],Z5e={topLeft:{points:["bl","tl"],overflow:Yf,offset:[0,-4],targetOffset:Xf},top:{points:["bc","tc"],overflow:Yf,offset:[0,-4],targetOffset:Xf},topRight:{points:["br","tr"],overflow:Yf,offset:[0,-4],targetOffset:Xf},bottomLeft:{points:["tl","bl"],overflow:Yf,offset:[0,4],targetOffset:Xf},bottom:{points:["tc","bc"],overflow:Yf,offset:[0,4],targetOffset:Xf},bottomRight:{points:["tr","br"],overflow:Yf,offset:[0,4],targetOffset:Xf}},J5e=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function e8e(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,p=m===void 0?Z5e:m,h=e.getPopupContainer,v=e.showAction,g=e.hideAction,w=e.overlayClassName,y=e.overlayStyle,b=e.visible,x=e.trigger,C=x===void 0?["hover"]:x,S=e.autoFocus,_=e.overlay,k=e.children,$=e.onVisibleChange,E=ft(e,J5e),P=L.useState(),M=ie(P,2),j=M[0],O=M[1],N="visible"in e?b:j,R=L.useRef(null),D=L.useRef(null),F=L.useRef(null);L.useImperativeHandle(t,function(){return R.current});var z=function(Y){O(Y),$==null||$(Y)};X5e({visible:N,triggerRef:F,onVisibleChange:z,autoFocus:S,overlayRef:D});var I=function(Y){var re=e.onOverlayClick;O(!1),re&&re(Y)},H=function(){return L.createElement(Q5e,{ref:D,overlay:_,prefixCls:o,arrow:i})},V=function(){return typeof _=="function"?H:H()},B=function(){var Y=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!re},W=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(o,"-open")},U=L.cloneElement(k,{className:ne((n=k.props)===null||n===void 0?void 0:n.className,N&&W()),ref:As(k)?di(F,Lu(k)):void 0}),X=g;return!X&&C.indexOf("contextMenu")!==-1&&(X=["click"]),L.createElement(u1,Oe({builtinPlacements:p},E,{prefixCls:o,ref:R,popupClassName:ne(w,K({},"".concat(o,"-show-arrow"),i)),popupStyle:y,action:C,showAction:v,hideAction:X,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:N,stretch:B()?"minWidth":"",popup:V(),onPopupVisibleChange:z,onPopupClick:I,getPopupContainer:h}),U)}const hJ=L.forwardRef(e8e),t8e=e=>typeof e!="object"&&typeof e!="function"||e===null;var vJ=u.createContext(null);function gJ(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function bJ(e){var t=u.useContext(vJ);return gJ(t,e)}var n8e=["children","locked"],Vs=u.createContext(null);function r8e(e,t){var n=A({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function t0(e){var t=e.children,n=e.locked,r=ft(e,n8e),i=u.useContext(Vs),a=gc(function(){return r8e(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!Xo(o[1],s[1],!0))});return u.createElement(Vs.Provider,{value:a},t)}var i8e=[],yJ=u.createContext(null);function f_(){return u.useContext(yJ)}var wJ=u.createContext(i8e);function th(e){var t=u.useContext(wJ);return u.useMemo(function(){return e!==void 0?[].concat(Fe(t),[e]):t},[t,e])}var xJ=u.createContext(null),hM=u.createContext({});function m9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Qp(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function a8e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Fe(e.querySelectorAll("*")).filter(function(r){return m9(r,t)});return m9(e,t)&&n.unshift(e),n}var jT=qe.LEFT,FT=qe.RIGHT,AT=qe.UP,sw=qe.DOWN,lw=qe.ENTER,SJ=qe.ESC,tv=qe.HOME,nv=qe.END,p9=[AT,sw,jT,FT];function o8e(e,t,n,r){var i,a="prev",o="next",s="children",l="parent";if(e==="inline"&&r===lw)return{inlineTrigger:!0};var c=K(K({},AT,a),sw,o),d=K(K(K(K({},jT,n?o:a),FT,n?a:o),sw,s),lw,s),f=K(K(K(K(K(K({},AT,a),sw,o),lw,s),SJ,l),jT,n?s:l),FT,n?l:s),m={inline:c,horizontal:d,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},p=(i=m["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(p){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function s8e(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function l8e(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function vM(e,t){var n=a8e(e,!0);return n.filter(function(r){return t.has(r)})}function h9(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=vM(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var LT=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(gJ(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function c8e(e,t,n,r,i,a,o,s,l,c){var d=u.useRef(),f=u.useRef();f.current=t;var m=function(){tn.cancel(d.current)};return u.useEffect(function(){return function(){m()}},[]),function(p){var h=p.which;if([].concat(p9,[lw,SJ,tv,nv]).includes(h)){var v=a(),g=LT(v,r),w=g,y=w.elements,b=w.key2element,x=w.element2key,C=b.get(t),S=l8e(C,y),_=x.get(S),k=o8e(e,o(_,!0).length===1,n,h);if(!k&&h!==tv&&h!==nv)return;(p9.includes(h)||[tv,nv].includes(h))&&p.preventDefault();var $=function(D){if(D){var F=D,z=D.querySelector("a");z!=null&&z.getAttribute("href")&&(F=z);var I=x.get(D);s(I),m(),d.current=tn(function(){f.current===I&&F.focus()})}};if([tv,nv].includes(h)||k.sibling||!S){var E;!S||e==="inline"?E=i.current:E=s8e(S);var P,M=vM(E,y);h===tv?P=M[0]:h===nv?P=M[M.length-1]:P=h9(E,y,S,k.offset),$(P)}else if(k.inlineTrigger)l(_);else if(k.offset>0)l(_,!0),m(),d.current=tn(function(){g=LT(v,r);var R=S.getAttribute("aria-controls"),D=document.getElementById(R),F=h9(D,g.elements);$(F)},5);else if(k.offset<0){var j=o(_,!0),O=j[j.length-2],N=b.get(O);l(O,!1),$(N)}}c==null||c(p)}}function u8e(e){Promise.resolve().then(e)}var gM="__RC_UTIL_PATH_SPLIT__",v9=function(t){return t.join(gM)},d8e=function(t){return t.split(gM)},BT="rc-menu-more";function f8e(){var e=u.useState({}),t=ie(e,2),n=t[1],r=u.useRef(new Map),i=u.useRef(new Map),a=u.useState([]),o=ie(a,2),s=o[0],l=o[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({})},m=u.useCallback(function(b,x){var C=v9(x);i.current.set(C,b),r.current.set(b,C),c.current+=1;var S=c.current;u8e(function(){S===c.current&&f()})},[]),p=u.useCallback(function(b,x){var C=v9(x);i.current.delete(C),r.current.delete(b)},[]),h=u.useCallback(function(b){l(b)},[]),v=u.useCallback(function(b,x){var C=r.current.get(b)||"",S=d8e(C);return x&&s.includes(S[0])&&S.unshift(BT),S},[s]),g=u.useCallback(function(b,x){return b.filter(function(C){return C!==void 0}).some(function(C){var S=v(C,!0);return S.includes(x)})},[v]),w=function(){var x=Fe(r.current.keys());return s.length&&x.push(BT),x},y=u.useCallback(function(b){var x="".concat(r.current.get(b)).concat(gM),C=new Set;return Fe(i.current.keys()).forEach(function(S){S.startsWith(x)&&C.add(i.current.get(S))}),C},[]);return u.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:p,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:v,getKeys:w,getSubPathKeys:y}}function Ev(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1&&(y.motionAppear=!1);var b=y.onVisibleChanged;return y.onVisibleChanged=function(x){return!m.current&&!x&&g(!0),b==null?void 0:b(x)},v?null:u.createElement(t0,{mode:a,locked:!m.current},u.createElement(Oi,Oe({visible:w},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var C=x.className,S=x.style;return u.createElement(bM,{id:t,className:C,style:S},i)}))}var T8e=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],O8e=["active"],R8e=u.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,p=e.popupStyle,h=e.onClick,v=e.onMouseEnter,g=e.onMouseLeave,w=e.onTitleClick,y=e.onTitleMouseEnter,b=e.onTitleMouseLeave,x=ft(e,T8e),C=bJ(a),S=u.useContext(Vs),_=S.prefixCls,k=S.mode,$=S.openKeys,E=S.disabled,P=S.overflowDisabled,M=S.activeKey,j=S.selectedKeys,O=S.itemIcon,N=S.expandIcon,R=S.onItemClick,D=S.onOpenChange,F=S.onActive,z=u.useContext(hM),I=z._internalRenderSubMenuItem,H=u.useContext(xJ),V=H.isSubPathKey,B=th(),W="".concat(_,"-submenu"),U=E||o,X=u.useRef(),q=u.useRef(),Y=c??O,re=d??N,G=$.includes(a),Q=!P&&G,J=V(j,a),Z=CJ(a,U,y,b),ee=Z.active,te=ft(Z,O8e),le=u.useState(!1),oe=ie(le,2),de=oe[0],pe=oe[1],ye=function(Pe){U||pe(Pe)},me=function(Pe){ye(!0),v==null||v({key:a,domEvent:Pe})},xe=function(Pe){ye(!1),g==null||g({key:a,domEvent:Pe})},ue=u.useMemo(function(){return ee||(k!=="inline"?de||V([M],a):!1)},[k,ee,M,de,a,V]),ce=_J(B.length),$e=function(Pe){U||(w==null||w({key:a,domEvent:Pe}),k==="inline"&&D(a,!G))},se=Ev(function(be){h==null||h(Vx(be)),R(be)}),he=function(Pe){k!=="inline"&&D(a,Pe)},ve=function(){F(a)},ke=C&&"".concat(C,"-popup"),Se=u.createElement("div",Oe({role:"menuitem",style:ce,className:"".concat(W,"-title"),tabIndex:U?null:-1,ref:X,title:typeof i=="string"?i:null,"data-menu-id":P&&C?null:C,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":ke,"aria-disabled":U,onClick:$e,onFocus:ve},te),i,u.createElement(kJ,{icon:k!=="horizontal"?re:void 0,props:A(A({},e),{},{isOpen:Q,isSubMenu:!0})},u.createElement("i",{className:"".concat(W,"-arrow")}))),Ee=u.useRef(k);if(k!=="inline"&&B.length>1?Ee.current="vertical":Ee.current=k,!P){var De=Ee.current;Se=u.createElement(E8e,{mode:De,prefixCls:W,visible:!s&&Q&&k!=="inline",popupClassName:f,popupOffset:m,popupStyle:p,popup:u.createElement(t0,{mode:De==="horizontal"?"vertical":De},u.createElement(bM,{id:ke,ref:q},l)),disabled:U,onVisibleChange:he},Se)}var we=u.createElement(Os.Item,Oe({ref:t,role:"none"},x,{component:"li",style:n,className:ne(W,"".concat(W,"-").concat(k),r,K(K(K(K({},"".concat(W,"-open"),Q),"".concat(W,"-active"),ue),"".concat(W,"-selected"),J),"".concat(W,"-disabled"),U)),onMouseEnter:me,onMouseLeave:xe}),Se,!P&&u.createElement(P8e,{id:ke,open:Q,keyPath:B},l));return I&&(we=I(we,e,{selected:J,active:ue,open:Q,disabled:U})),u.createElement(t0,{onItemClick:se,mode:k==="horizontal"?"vertical":k,itemIcon:Y,expandIcon:re},we)}),m_=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=th(n),a=yM(r,i),o=f_();u.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=u.createElement(R8e,Oe({ref:t},e),a),u.createElement(wJ.Provider,{value:i},s)});function wM(e){var t=e.className,n=e.style,r=u.useContext(Vs),i=r.prefixCls,a=f_();return a?null:u.createElement("li",{role:"separator",className:ne("".concat(i,"-item-divider"),t),style:n})}var I8e=["className","title","eventKey","children"],M8e=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=ft(e,I8e),o=u.useContext(Vs),s=o.prefixCls,l="".concat(s,"-item-group");return u.createElement("li",Oe({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:ne(l,n)}),u.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),xM=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=th(n),a=yM(r,i),o=f_();return o?a:u.createElement(M8e,Oe({ref:t},kn(e,["warnKey"])),a)}),N8e=["label","children","key","type","extra"];function zT(e,t,n){var r=t.item,i=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&mt(s)==="object"){var c=s,d=c.label,f=c.children,m=c.key,p=c.type,h=c.extra,v=ft(c,N8e),g=m??"tmp-".concat(l);return f||p==="group"?p==="group"?u.createElement(i,Oe({key:g},v,{title:d}),zT(f,t,n)):u.createElement(a,Oe({key:g},v,{title:d}),zT(f,t,n)):p==="divider"?u.createElement(o,Oe({key:g},v)):u.createElement(r,Oe({key:g},v,{extra:h}),d,(!!h||h===0)&&u.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function b9(e,t,n,r,i){var a=e,o=A({divider:wM,item:f1,group:xM,submenu:m_},r);return t&&(a=zT(t,o,i)),yM(a,n)}var D8e=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Yu=[],j8e=u.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,a=i===void 0?"rc-menu":i,o=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,d=c===void 0?0:c,f=r.items,m=r.children,p=r.direction,h=r.id,v=r.mode,g=v===void 0?"vertical":v,w=r.inlineCollapsed,y=r.disabled,b=r.disabledOverflow,x=r.subMenuOpenDelay,C=x===void 0?.1:x,S=r.subMenuCloseDelay,_=S===void 0?.1:S,k=r.forceSubMenuRender,$=r.defaultOpenKeys,E=r.openKeys,P=r.activeKey,M=r.defaultActiveFirst,j=r.selectable,O=j===void 0?!0:j,N=r.multiple,R=N===void 0?!1:N,D=r.defaultSelectedKeys,F=r.selectedKeys,z=r.onSelect,I=r.onDeselect,H=r.inlineIndent,V=H===void 0?24:H,B=r.motion,W=r.defaultMotions,U=r.triggerSubMenuAction,X=U===void 0?"hover":U,q=r.builtinPlacements,Y=r.itemIcon,re=r.expandIcon,G=r.overflowedIndicator,Q=G===void 0?"...":G,J=r.overflowedIndicatorPopupClassName,Z=r.getPopupContainer,ee=r.onClick,te=r.onOpenChange,le=r.onKeyDown;r.openAnimation,r.openTransitionName;var oe=r._internalRenderMenuItem,de=r._internalRenderSubMenuItem,pe=r._internalComponents,ye=ft(r,D8e),me=u.useMemo(function(){return[b9(m,f,Yu,pe,a),b9(m,f,Yu,{},a)]},[m,f,pe]),xe=ie(me,2),ue=xe[0],ce=xe[1],$e=u.useState(!1),se=ie($e,2),he=se[0],ve=se[1],ke=u.useRef(),Se=p8e(h),Ee=p==="rtl",De=Ut($,{value:E,postState:function(Bt){return Bt||Yu}}),we=ie(De,2),be=we[0],Pe=we[1],Re=function(Bt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function wn(){Pe(Bt),te==null||te(Bt)}jt?yi.flushSync(wn):wn()},_e=u.useState(be),je=ie(_e,2),He=je[0],Be=je[1],ct=u.useRef(!1),Ve=u.useMemo(function(){return(g==="inline"||g==="vertical")&&w?["vertical",w]:[g,!1]},[g,w]),Ye=ie(Ve,2),Ne=Ye[0],Ae=Ye[1],et=Ne==="inline",nt=u.useState(Ne),rt=ie(nt,2),it=rt[0],ge=rt[1],Te=u.useState(Ae),Ce=ie(Te,2),Ie=Ce[0],Ke=Ce[1];u.useEffect(function(){ge(Ne),Ke(Ae),ct.current&&(et?Pe(He):Re(Yu))},[Ne,Ae]);var Xe=u.useState(0),lt=ie(Xe,2),tt=lt[0],Qe=lt[1],Ge=tt>=ue.length-1||it!=="horizontal"||b;u.useEffect(function(){et&&Be(be)},[be]),u.useEffect(function(){return ct.current=!0,function(){ct.current=!1}},[]);var st=f8e(),pt=st.registerPath,yt=st.unregisterPath,zt=st.refreshOverflowKeys,$t=st.isSubPathKey,ze=st.getKeyPath,fe=st.getKeys,Me=st.getSubPathKeys,We=u.useMemo(function(){return{registerPath:pt,unregisterPath:yt}},[pt,yt]),wt=u.useMemo(function(){return{isSubPathKey:$t}},[$t]);u.useEffect(function(){zt(Ge?Yu:ue.slice(tt+1).map(function(vn){return vn.key}))},[tt,Ge]);var Je=Ut(P||M&&((n=ue[0])===null||n===void 0?void 0:n.key),{value:P}),Le=ie(Je,2),ot=Le[0],vt=Le[1],Et=Ev(function(vn){vt(vn)}),It=Ev(function(){vt(void 0)});u.useImperativeHandle(t,function(){return{list:ke.current,focus:function(Bt){var jt,wn=fe(),Ft=LT(wn,Se),Nt=Ft.elements,hn=Ft.key2element,On=Ft.element2key,ar=vM(ke.current,Nt),Ue=ot??(ar[0]?On.get(ar[0]):(jt=ue.find(function(ut){return!ut.props.disabled}))===null||jt===void 0?void 0:jt.key),ht=hn.get(Ue);if(Ue&&ht){var kt;ht==null||(kt=ht.focus)===null||kt===void 0||kt.call(ht,Bt)}}}});var St=Ut(D||[],{value:F,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?Yu:[Bt]}}),at=ie(St,2),_t=at[0],At=at[1],Dt=function(Bt){if(O){var jt=Bt.key,wn=_t.includes(jt),Ft;R?wn?Ft=_t.filter(function(hn){return hn!==jt}):Ft=[].concat(Fe(_t),[jt]):Ft=[jt],At(Ft);var Nt=A(A({},Bt),{},{selectedKeys:Ft});wn?I==null||I(Nt):z==null||z(Nt)}!R&&be.length&&it!=="inline"&&Re(Yu)},Jt=Ev(function(vn){ee==null||ee(Vx(vn)),Dt(vn)}),pn=Ev(function(vn,Bt){var jt=be.filter(function(Ft){return Ft!==vn});if(Bt)jt.push(vn);else if(it!=="inline"){var wn=Me(vn);jt=jt.filter(function(Ft){return!wn.has(Ft)})}Xo(be,jt,!0)||Re(jt,!0)}),gn=function(Bt,jt){var wn=jt??!be.includes(Bt);pn(Bt,wn)},wr=c8e(it,ot,Ee,Se,ke,fe,ze,vt,gn,le);u.useEffect(function(){ve(!0)},[]);var dr=u.useMemo(function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:de}},[oe,de]),Qn=it!=="horizontal"||b?ue:ue.map(function(vn,Bt){return u.createElement(t0,{key:vn.key,overflowDisabled:Bt>tt},vn)}),Wr=u.createElement(Os,Oe({id:h,ref:ke,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:f1,className:ne(a,"".concat(a,"-root"),"".concat(a,"-").concat(it),l,K(K({},"".concat(a,"-inline-collapsed"),Ie),"".concat(a,"-rtl"),Ee),o),dir:p,style:s,role:"menu",tabIndex:d,data:Qn,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var jt=Bt.length,wn=jt?ue.slice(-jt):null;return u.createElement(m_,{eventKey:BT,title:Q,disabled:Ge,internalPopupClose:jt===0,popupClassName:J},wn)},maxCount:it!=="horizontal"||b?Os.INVALIDATE:Os.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){Qe(Bt)},onKeyDown:wr},ye));return u.createElement(hM.Provider,{value:dr},u.createElement(vJ.Provider,{value:Se},u.createElement(t0,{prefixCls:a,rootClassName:o,mode:it,openKeys:be,rtl:Ee,disabled:y,motion:he?B:null,defaultMotions:he?W:null,activeKey:ot,onActive:Et,onInactive:It,selectedKeys:_t,inlineIndent:V,subMenuOpenDelay:C,subMenuCloseDelay:_,forceSubMenuRender:k,builtinPlacements:q,triggerSubMenuAction:X,getPopupContainer:Z,itemIcon:Y,expandIcon:re,onItemClick:Jt,onOpenChange:pn},u.createElement(xJ.Provider,{value:wt},Wr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(yJ.Provider,{value:We},ce)))))}),nh=j8e;nh.Item=f1;nh.SubMenu=m_;nh.ItemGroup=xM;nh.Divider=wM;const EJ=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),F8e=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:ae(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},PJ=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},TJ=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],OJ=un("Layout",e=>[F8e(e)],PJ,{deprecatedTokens:TJ}),A8e=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:p,lightTriggerColor:h,lightTriggerBg:v,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:ae(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ae(m)} ${ae(m)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${ae(m)} 0 0 ${ae(m)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:h,background:v},[`${t}-zero-width-trigger`]:{color:h,background:v,border:`1px solid ${g}`,borderInlineStart:0}}}}},L8e=un(["Layout","Sider"],e=>[A8e(e)],PJ,{deprecatedTokens:TJ});var B8e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),p_=u.createContext({}),H8e=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),RJ=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:p,breakpoint:h,onCollapse:v,onBreakpoint:g}=e,w=B8e(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=u.useContext(EJ),[b,x]=u.useState("collapsed"in e?e.collapsed:o),[C,S]=u.useState(!1);u.useEffect(()=>{"collapsed"in e&&x(e.collapsed)},[e.collapsed]);const _=(Y,re)=>{"collapsed"in e||x(Y),v==null||v(Y,re)},{getPrefixCls:k,direction:$}=u.useContext(Ct),E=k("layout-sider",n),[P,M,j]=L8e(E),O=u.useRef(null);O.current=Y=>{S(Y.matches),g==null||g(Y.matches),b!==Y.matches&&_(Y.matches,"responsive")},u.useEffect(()=>{function Y(G){return O.current(G)}let re;if(typeof window<"u"){const{matchMedia:G}=window;if(G&&h&&h in y9){re=G(`screen and (max-width: ${y9[h]})`);try{re.addEventListener("change",Y)}catch{re.addListener(Y)}Y(re)}}return()=>{try{re==null||re.removeEventListener("change",Y)}catch{re==null||re.removeListener(Y)}}},[h]),u.useEffect(()=>{const Y=H8e("ant-sider-");return y.addSider(Y),()=>y.removeSider(Y)},[]);const N=()=>{_(!b,"clickTrigger")},R=kn(w,["collapsed"]),D=b?m:f,F=z8e(D)?`${D}px`:String(D),z=parseFloat(String(m||0))===0?u.createElement("span",{onClick:N,className:ne(`${E}-zero-width-trigger`,`${E}-zero-width-trigger-${d?"right":"left"}`),style:p},i||u.createElement(V_e,null)):null,I=$==="rtl"==!d,B={expanded:I?u.createElement(Fs,null):u.createElement(Eu,null),collapsed:I?u.createElement(Eu,null):u.createElement(Fs,null)}[b?"collapsed":"expanded"],W=i!==null?z||u.createElement("div",{className:`${E}-trigger`,onClick:N,style:{width:F}},i||B):null,U=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),X=ne(E,`${E}-${s}`,{[`${E}-collapsed`]:!!b,[`${E}-has-trigger`]:c&&i!==null&&!z,[`${E}-below`]:!!C,[`${E}-zero-width`]:parseFloat(F)===0},r,M,j),q=u.useMemo(()=>({siderCollapsed:b}),[b]);return P(u.createElement(p_.Provider,{value:q},u.createElement("aside",Object.assign({className:X},R,{style:U,ref:t}),u.createElement("div",{className:`${E}-children`},a),c||C&&z?W:null)))}),Wx=u.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var V8e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=V8e(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=u.useContext(Ct),o=a("menu",t),s=ne({[`${o}-item-divider-dashed`]:!!r},n);return u.createElement(wM,Object.assign({className:s},i))},MJ=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=u.useContext(Wx),p=b=>{const x=r==null?void 0:r[0],C=u.createElement("span",{className:ne(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||u.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof x=="string"?u.createElement("div",{className:`${l}-inline-collapsed-noicon`},x.charAt(0)):C},{siderCollapsed:h}=u.useContext(p_);let v=a;typeof a>"u"?v=c?r:"":a===!1&&(v="");const g={title:v};!h&&!m&&(g.title=null,g.open=!1);const w=Lr(r).length;let y=u.createElement(f1,Object.assign({},kn(e,["title","icon","danger"]),{className:ne({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(i?w+1:w)===1},n),title:typeof a=="string"?a:void 0}),zr(i,{className:ne(u.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(m));return f||(y=u.createElement(na,Object.assign({},g,{placement:d==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};var W8e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=W8e(e,["children"]),i=u.useContext(Ux),a=u.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=KEe(n),s=Ec(t,o?Lu(n):null);return u.createElement(Ux.Provider,{value:a},u.createElement(Tl,{space:!0},o?u.cloneElement(n,{ref:s}):n))}),U8e=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ae(a)} ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, - > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},q8e=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ae(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ae(n)})`}}}}},w9=e=>Object.assign({},Bs(e)),x9=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:p,motionEaseInOut:h,motionEaseOut:v,itemPaddingInline:g,motionDurationMid:w,itemHoverColor:y,lineType:b,colorSplit:x,itemDisabledColor:C,dangerItemColor:S,dangerItemHoverColor:_,dangerItemSelectedColor:k,dangerItemActiveBg:$,dangerItemSelectedBg:E,popupBg:P,itemHoverBg:M,itemActiveBg:j,menuSubMenuBg:O,horizontalItemSelectedColor:N,horizontalItemSelectedBg:R,horizontalItemBorderRadius:D,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},w9(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},w9(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:j}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:j}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${ae(d)} solid transparent`,transition:`border-color ${p} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:d,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:d,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ae(m)} ${b} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ae(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${v}`,`opacity ${w} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${h}`,`opacity ${w} ${h}`].join(",")}}}}}},S9=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,d=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ae(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ae(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:d}}},G8e=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:h,collapsedWidth:v,collapsedIconSize:g}=e,w={height:r,lineHeight:ae(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},S9(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},S9(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${ae(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ae(e.calc(g).div(2).equal())} - ${ae(c)})`,textOverflow:"clip",[` - ${t}-submenu-arrow, - ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:ae(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Fa),{paddingInline:p})}}]},C9=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},bf()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_9=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ae(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ae(o)})`}}}}},K8e=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:v,lineType:g,groupTitleLineHeight:w,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},Ls()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),Ls()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ae(s)} ${ae(l)}`,fontSize:y,lineHeight:w,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),C9(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ae(e.calc(r).mul(2).equal())} ${ae(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},C9(e)),_9(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),_9(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ae(v)})`},"&::after":{transform:`rotate(45deg) translateX(${ae(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ae(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ae(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ae(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Y8e=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:p,lineWidthBold:h,controlItemBgActive:v,colorBgTextHover:g,controlHeightLG:w,lineHeight:y,colorBgElevated:b,marginXXS:x,padding:C,fontSize:S,controlHeightSM:_,fontSizeLG:k,colorTextLightSolid:$,colorErrorHover:E}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,j=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,O=new rn($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:d,itemBg:d,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:M,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:w,groupTitleLineHeight:y,collapsedWidth:w*2,popupBg:b,itemMarginBlock:x,itemPaddingInline:C,horizontalLineHeight:`${w*1.15}px`,iconSize:S,iconMarginInlineEnd:_-S,collapsedIconSize:k,groupTitleFontSize:S,darkItemDisabledColor:new rn($).setA(.25).toRgbString(),darkItemColor:O,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:O,darkItemHoverColor:$,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:a,itemWidth:P?`calc(100% + ${M}px)`:`calc(100% - ${j*2}px)`}},X8e=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return un("Menu",i=>{const{colorBgElevated:a,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:p,darkDangerItemSelectedBg:h,darkItemHoverBg:v,darkGroupTitleColor:g,darkItemHoverColor:w,darkItemDisabledColor:y,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:C,popupBg:S,darkPopupBg:_}=i,k=i.calc(s).div(7).mul(5).equal(),$=Yt(i,{menuArrowSize:k,menuHorizontalHeight:i.calc(o).mul(1.15).equal(),menuArrowOffset:i.calc(k).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:S}),E=Yt($,{itemColor:l,itemHoverColor:w,groupTitleColor:g,itemSelectedColor:m,itemBg:d,popupBg:_,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:x,dangerItemActiveBg:C,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:p});return[K8e($),U8e($),G8e($),x9($,"light"),x9(E,"dark"),q8e($),a1($),Pl($,"slide-up"),Pl($,"slide-down"),Zp($,"zoom-big")]},Y8e,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},DJ=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,o=u.useContext(Wx),{prefixCls:s,inlineCollapsed:l,theme:c}=o,d=th();let f;if(!r)f=l&&!d.length&&i&&typeof i=="string"?u.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):u.createElement("span",{className:`${s}-title-content`},i);else{const h=u.isValidElement(i)&&i.type==="span";f=u.createElement(u.Fragment,null,zr(r,{className:ne(u.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?i:u.createElement("span",{className:`${s}-title-content`},i))}const m=u.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[p]=Xs("Menu");return u.createElement(Wx.Provider,{value:m},u.createElement(m_,Object.assign({},kn(e,["icon"]),{title:f,popupClassName:ne(s,n,`${s}-${a||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var Q8e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const r=u.useContext(Ux),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:l}=u.useContext(Ct),c=a(),{prefixCls:d,className:f,style:m,theme:p="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:g,siderCollapsed:w,rootClassName:y,mode:b,selectable:x,onClick:C,overflowedIndicatorPopupClassName:S}=e,_=Q8e(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=kn(_,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:b});const $=Ht(function(){var V;C==null||C.apply(void 0,arguments),(V=i.onClick)===null||V===void 0||V.call(i)}),E=i.mode||b,P=x??i.selectable,M=g??w,j={horizontal:{motionName:`${c}-slide-up`},inline:vp(c),other:{motionName:`${c}-zoom-big`}},O=a("menu",d||i.prefixCls),N=Dn(O),[R,D,F]=X8e(O,N,!r),z=ne(`${O}-${p}`,l==null?void 0:l.className,f),I=u.useMemo(()=>{var V,B;if(typeof h=="function"||bE(h))return h||null;if(typeof i.expandIcon=="function"||bE(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||bE(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const W=(V=h??(i==null?void 0:i.expandIcon))!==null&&V!==void 0?V:l==null?void 0:l.expandIcon;return zr(W,{className:ne(`${O}-submenu-expand-icon`,u.isValidElement(W)?(B=W.props)===null||B===void 0?void 0:B.className:void 0)})},[h,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,O]),H=u.useMemo(()=>({prefixCls:O,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:p,mode:E,disableMenuItemTitleTooltip:v}),[O,M,s,v,p]);return R(u.createElement(Ux.Provider,{value:null},u.createElement(Wx.Provider,{value:H},u.createElement(nh,Object.assign({getPopupContainer:o,overflowedIndicator:u.createElement(e1,null),overflowedIndicatorPopupClassName:ne(O,`${O}-${p}`,S),mode:E,selectable:P,onClick:$},k,{inlineCollapsed:M,style:Object.assign(Object.assign({},l==null?void 0:l.style),m),className:z,prefixCls:O,direction:s,defaultMotions:j,expandIcon:I,ref:t,rootClassName:ne(y,D,i.rootClassName,F,N),_internalComponents:Z8e})))))}),Cf=u.forwardRef((e,t)=>{const n=u.useRef(null),r=u.useContext(p_);return u.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),u.createElement(J8e,Object.assign({ref:n},e,r))});Cf.Item=MJ;Cf.SubMenu=DJ;Cf.Divider=IJ;Cf.ItemGroup=xM;const eDe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},tDe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:v}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, - &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, - &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:U2},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, - &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, - &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:G2},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, - &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, - &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:q2},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:K2}}},pM(e,v,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},mn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},yo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ae(c)} ${ae(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ae(c)} ${ae(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},yo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ae(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ae(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Pl(e,"slide-up"),Pl(e,"slide-down"),gp(e,"move-up"),gp(e,"move-down"),Zp(e,"zoom-big")]]},nDe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},c_({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),l_(e)),rDe=un("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Yt(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[tDe(a),eDe(a)]},nDe,{resetStyle:!1}),h_=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:d,rootClassName:f,overlayStyle:m,open:p,onOpenChange:h,visible:v,onVisibleChange:g,mouseEnterDelay:w=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:x="",overlay:C,transitionName:S}=e,{getPopupContainer:_,getPrefixCls:k,direction:$,dropdown:E}=u.useContext(Ct);Fl();const P=u.useMemo(()=>{const Z=k();return S!==void 0?S:x.includes("top")?`${Z}-slide-down`:`${Z}-slide-up`},[k,x,S]),M=u.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:$==="rtl"?"bottomRight":"bottomLeft",[x,$]),j=k("dropdown",i),O=Dn(j),[N,R,D]=rDe(j,O),[,F]=Zr(),z=u.Children.only(t8e(a)?u.createElement("span",null,a):a),I=zr(z,{className:ne(`${j}-trigger`,{[`${j}-rtl`]:$==="rtl"},z.props.className),disabled:(t=z.props.disabled)!==null&&t!==void 0?t:s}),H=s?[]:o,V=!!(H!=null&&H.includes("contextMenu")),[B,W]=Ut(!1,{value:p??v}),U=Ht(Z=>{h==null||h(Z,{source:"trigger"}),g==null||g(Z),W(Z)}),X=ne(d,f,R,D,O,E==null?void 0:E.className,{[`${j}-rtl`]:$==="rtl"}),q=lJ({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:b,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),Y=u.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(h==null||h(!1,{source:"menu"}),W(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),re=()=>{let Z;return n!=null&&n.items?Z=u.createElement(Cf,Object.assign({},n)):typeof C=="function"?Z=C():Z=C,l&&(Z=l(Z)),Z=u.Children.only(typeof Z=="string"?u.createElement("span",null,Z):Z),u.createElement(NJ,{prefixCls:`${j}-menu`,rootClassName:ne(D,O),expandIcon:u.createElement("span",{className:`${j}-menu-submenu-arrow`},u.createElement(Fs,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Y,validator:ee=>{}},Z)},[G,Q]=Xs("Dropdown",m==null?void 0:m.zIndex);let J=u.createElement(hJ,Object.assign({alignPoint:V},kn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:y,visible:B,builtinPlacements:q,arrow:!!r,overlayClassName:X,prefixCls:j,getPopupContainer:c||_,transitionName:P,trigger:H,overlay:re,placement:M,onVisibleChange:U,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),m),{zIndex:G})}),I);return G&&(J=u.createElement(L2.Provider,{value:Q},J)),N(J)},iDe=Bu(h_,"align",void 0,"dropdown",e=>e),aDe=e=>u.createElement(iDe,Object.assign({},e),u.createElement("span",null));h_._InternalPanelDoNotUseOrYouWillBeFired=aDe;var jJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(pi,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",d="week",f="month",m="quarter",p="year",h="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var N=["th","st","nd","rd"],R=O%100;return"["+O+(N[(R-20)%10]||N[R]||N[0])+"]"}},b=function(O,N,R){var D=String(O);return!D||D.length>=N?O:""+Array(N+1-D.length).join(R)+O},x={s:b,z:function(O){var N=-O.utcOffset(),R=Math.abs(N),D=Math.floor(R/60),F=R%60;return(N<=0?"+":"-")+b(D,2,"0")+":"+b(F,2,"0")},m:function O(N,R){if(N.date()1)return O(I[0])}else{var H=N.name;S[H]=N,F=H}return!D&&F&&(C=F),F||!D&&C},E=function(O,N){if(k(O))return O.clone();var R=typeof N=="object"?N:{};return R.date=O,R.args=arguments,new M(R)},P=x;P.l=$,P.i=k,P.w=function(O,N){return E(O,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var M=function(){function O(R){this.$L=$(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[_]=!0}var N=O.prototype;return N.parse=function(R){this.$d=function(D){var F=D.date,z=D.utc;if(F===null)return new Date(NaN);if(P.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var I=F.match(g);if(I){var H=I[2]-1||0,V=(I[7]||"0").substring(0,3);return z?new Date(Date.UTC(I[1],H,I[3]||1,I[4]||0,I[5]||0,I[6]||0,V)):new Date(I[1],H,I[3]||1,I[4]||0,I[5]||0,I[6]||0,V)}}return new Date(F)}(R),this.init()},N.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},N.$utils=function(){return P},N.isValid=function(){return this.$d.toString()!==v},N.isSame=function(R,D){var F=E(R);return this.startOf(D)<=F&&F<=this.endOf(D)},N.isAfter=function(R,D){return E(R)25){var d=o(this).startOf(r).add(1,r).date(c),f=o(this).endOf(n);if(d.isBefore(f))return 1}var m=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),p=this.diff(m,n,!0);return p<0?o(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(HJ);var lDe=HJ.exports;const SM=Wn(lDe);var VJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(pi,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(VJ);var cDe=VJ.exports;const uDe=Wn(cDe);var WJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(pi,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var c=this.$utils(),d=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(d)}}})})(WJ);var dDe=WJ.exports;const UJ=Wn(dDe);var qJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(pi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(w){this[g]=+w}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var y=w.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b}(g)}],m=function(g){var w=l[g];return w&&(w.indexOf?w:w.s.concat(w.f))},p=function(g,w){var y,b=l.meridiem;if(b){for(var x=1;x<=24;x+=1)if(g.indexOf(b(x,0,w))>-1){y=x>12;break}}else y=g===(w?"pm":"PM");return y},h={A:[s,function(g){this.afternoon=p(g,!1)}],a:[s,function(g){this.afternoon=p(g,!0)}],Q:[i,function(g){this.month=3*(g-1)+1}],S:[i,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[a,d("day")],Do:[s,function(g){var w=l.ordinal,y=g.match(/\d+/);if(this.day=y[0],w)for(var b=1;b<=31;b+=1)w(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],w:[o,d("week")],ww:[a,d("week")],M:[o,d("month")],MM:[a,d("month")],MMM:[s,function(g){var w=m("months"),y=(m("monthsShort")||w.map(function(b){return b.slice(0,3)})).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(g){var w=m("months").indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=c(g)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(g){var w,y;w=g,y=l&&l.formats;for(var b=(g=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,P,M){var j=M&&M.toUpperCase();return P||y[M]||n[M]||y[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,N,R){return N||R.slice(1)})})).match(r),x=b.length,C=0;C-1)return new Date((F==="X"?1e3:1)*D);var H=v(F)(D),V=H.year,B=H.month,W=H.day,U=H.hours,X=H.minutes,q=H.seconds,Y=H.milliseconds,re=H.zone,G=H.week,Q=new Date,J=W||(V||B?1:Q.getDate()),Z=V||Q.getFullYear(),ee=0;V&&!B||(ee=B>0?B-1:Q.getMonth());var te,le=U||0,oe=X||0,de=q||0,pe=Y||0;return re?new Date(Date.UTC(Z,ee,J,le,oe,de,pe+60*re.offset*1e3)):z?new Date(Date.UTC(Z,ee,J,le,oe,de,pe)):(te=new Date(Z,ee,J,le,oe,de,pe),G&&(te=I(te).week(G).toDate()),te)}catch{return new Date("")}}(S,$,_,y),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),M&&S!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var O=$.length,N=1;N<=O;N+=1){k[1]=$[N-1];var R=y.apply(this,k);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}N===O&&(this.$d=new Date(""))}else x.call(this,C)}}})})(qJ);var fDe=qJ.exports;const GJ=Wn(fDe);dn.extend(GJ);dn.extend(UJ);dn.extend(LJ);dn.extend(zJ);dn.extend(SM);dn.extend(uDe);dn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var o=(a||"").replace("Wo","wo");return r.bind(this)(o)}});var mDe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Xu=function(t){var n=mDe[t];return n||t.split("_")[0]},pDe={getNow:function(){var t=dn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return dn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return dn().locale(Xu(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Xu(t)).weekday(0)},getWeek:function(t,n){return n.locale(Xu(t)).week()},getShortWeekDays:function(t){return dn().locale(Xu(t)).localeData().weekdaysMin()},getShortMonths:function(t){return dn().locale(Xu(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Xu(t)).format(r)},parse:function(t,n,r){for(var i=Xu(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=u.useState([!1,!1]),i=ie(r,2),a=i[0],o=i[1],s=function(d,f){o(function(m){return eg(m,f,d)})},l=u.useMemo(function(){return a.map(function(c,d){if(c)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,a,t,n]);return[l,s]}function eee(e,t,n,r,i){var a="",o=[];return e&&o.push(i?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}function vDe(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,p=e.yearFormat,h=e.cellYearFormat,v=e.cellQuarterFormat,g=e.dayFormat,w=e.cellDateFormat,y=eee(t,n,r,i,a);return A(A({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:w||g||"D"})}function tee(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return L.useMemo(function(){return vDe(e,n,r,i,a,o)},[e,n,r,i,a,o])}function rv(e,t,n){return n??t.some(function(r){return e.includes(r)})}var gDe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function bDe(e){var t=g_(e,gDe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=mt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function yDe(e){return e&&typeof e=="string"}function nee(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function ree(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var l,c,d,f=[a,o,s].some(function(h){return h===!1}),m=[a,o,s].some(function(h){return h===!0}),p=f?!0:!m;a=(l=a)!==null&&l!==void 0?l:p,o=(c=o)!==null&&c!==void 0?c:p,s=(d=s)!==null&&d!==void 0?d:p}return[a,o,s,i]}function iee(e){var t=e.showTime,n=bDe(e),r=ie(n,2),i=r[0],a=r[1],o=t&&mt(t)==="object"?t:{},s=A(A({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,c=s.showHour,d=s.showMinute,f=s.showSecond,m=nee(c,d,f,l),p=ree(m,c,d,f,l),h=ie(p,3);return c=h[0],d=h[1],f=h[2],[s,A(A({},s),{},{showHour:c,showMinute:d,showSecond:f,showMillisecond:l}),s.format,a]}function aee(e,t,n,r,i){var a=e==="time";if(e==="datetime"||a){for(var o=r,s=XJ(e,i,null),l=s,c=[t,n],d=0;d1&&(o=t.addDate(o,-7)),o}function gi(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function qx(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=e[o](r,e[i[s]](n)):r=e[o](r,0)}),r}function CDe(e,t,n,r,i){var a=Ht(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!Yi(e,t,r,o,s.type)||i&&e.isAfter(o,i)&&!Yi(e,t,i,o,s.type))});return a}function _De(e,t,n){return u.useMemo(function(){var r=XJ(e,t,n),i=_f(r),a=i[0],o=mt(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function kDe(e,t,n){return typeof e[0]=="function"||n?!0:t}function $De(e,t,n,r){var i=Ht(function(a,o){var s=A({type:t},o);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",d=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=d.disabledHours,m=d.disabledMinutes,p=d.disabledSeconds,h=d.disabledMilliseconds,v=r.disabledHours,g=r.disabledMinutes,w=r.disabledSeconds,y=f||v,b=m||g,x=p||w,C=e.getHour(a),S=e.getMinute(a),_=e.getSecond(a),k=e.getMillisecond(a);if(y&&y().includes(C)||b&&b(C).includes(S)||x&&x(C,S).includes(_)||h&&h(C,S,_).includes(k))return!0}return!1});return i}function Bb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=u.useMemo(function(){var r=e&&_f(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function lee(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?"date":i,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,d=e.classNames,f=d===void 0?{}:d,m=e.order,p=m===void 0?!0:m,h=e.components,v=h===void 0?{}:h,g=e.inputRender,w=e.allowClear,y=e.clearIcon,b=e.needConfirm,x=e.multiple,C=e.format,S=e.inputReadOnly,_=e.disabledDate,k=e.minDate,$=e.maxDate,E=e.showTime,P=e.value,M=e.defaultValue,j=e.pickerValue,O=e.defaultPickerValue,N=Bb(P),R=Bb(M),D=Bb(j),F=Bb(O),z=a==="date"&&E?"datetime":a,I=z==="time"||z==="datetime",H=I||x,V=b??I,B=iee(e),W=ie(B,4),U=W[0],X=W[1],q=W[2],Y=W[3],re=tee(r,X),G=u.useMemo(function(){return aee(z,q,Y,U,re)},[z,q,Y,U,re]),Q=u.useMemo(function(){return A(A({},e),{},{prefixCls:s,locale:re,picker:a,styles:c,classNames:f,order:p,components:A({input:g},v),clearIcon:wDe(s,w,y),showTime:G,value:N,defaultValue:R,pickerValue:D,defaultPickerValue:F},t==null?void 0:t())},[e]),J=_De(z,re,C),Z=ie(J,2),ee=Z[0],te=Z[1],le=kDe(ee,S,x),oe=CDe(n,r,_,k,$),de=$De(n,a,oe,G),pe=u.useMemo(function(){return A(A({},Q),{},{needConfirm:V,inputReadOnly:le,disabledDate:oe})},[Q,V,le,oe]);return[pe,z,H,ee,te,de]}function EDe(e,t,n){var r=Ut(t,{value:e}),i=ie(r,2),a=i[0],o=i[1],s=L.useRef(e),l=L.useRef(),c=function(){tn.cancel(l.current)},d=Ht(function(){o(s.current),n&&a!==s.current&&n(s.current)}),f=Ht(function(m,p){c(),s.current=m,m||p?d():l.current=tn(d)});return L.useEffect(function(){return c},[]),[a,f]}function cee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(d){return d})?!1:e,a=EDe(i,t||!1,r),o=ie(a,2),s=o[0],l=o[1];function c(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(d,f.force)}return[s,c]}function uee(e){var t=u.useRef();return u.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var a;(a=t.current)===null||a===void 0||a.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function dee(e,t){return u.useMemo(function(){return e||(t?(Fn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ie(n,2),i=r[0],a=r[1];return{label:i,value:a}})):[])},[e,t])}function EM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=u.useRef(t);r.current=t,Nd(function(){if(e)r.current(e);else{var i=tn(function(){r.current(e)},n);return function(){tn.cancel(i)}}},[e])}function fee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=u.useState(0),i=ie(r,2),a=i[0],o=i[1],s=u.useState(!1),l=ie(s,2),c=l[0],d=l[1],f=u.useRef([]),m=u.useRef(null),p=u.useRef(null),h=function(x){m.current=x},v=function(x){return m.current===x},g=function(x){d(x)},w=function(x){return x&&(p.current=x),p.current},y=function(x){var C=f.current,S=new Set(C.filter(function(k){return x[k]||t[k]})),_=C[C.length-1]===0?1:0;return S.size>=2||e[_]?null:_};return EM(c||n,function(){c||(f.current=[],h(null))}),u.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,g,w,a,o,y,f.current,h,v]}function PDe(e,t,n,r,i,a){var o=n[n.length-1],s=function(c,d){var f=ie(e,2),m=f[0],p=f[1],h=A(A({},d),{},{from:QJ(e,n)});return o===1&&t[0]&&m&&!Yi(r,i,m,c,h.type)&&r.isAfter(m,c)||o===0&&t[1]&&p&&!Yi(r,i,p,c,h.type)&&r.isAfter(c,p)?!0:a==null?void 0:a(c,h)};return s}function Tv(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var wE=[];function mee(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:wE,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:wE,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:wE,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,h=o==="time",v=a||0,g=function(D){var F=e.getNow();return h&&(F=qx(e,F)),l[D]||n[D]||F},w=ie(c,2),y=w[0],b=w[1],x=Ut(function(){return g(0)},{value:y}),C=ie(x,2),S=C[0],_=C[1],k=Ut(function(){return g(1)},{value:b}),$=ie(k,2),E=$[0],P=$[1],M=u.useMemo(function(){var R=[S,E][v];return h?R:qx(e,R,d[v])},[h,S,E,v,e,d]),j=function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[_,P][v];z(D);var I=[S,E];I[v]=D,f&&(!Yi(e,t,S,I[0],o)||!Yi(e,t,E,I[1],o))&&f(I,{source:F,range:v===1?"end":"start",mode:r})},O=function(D,F){if(s){var z={date:"month",week:"month",month:"year",quarter:"year"},I=z[o];if(I&&!Yi(e,t,D,F,I))return Tv(e,o,F,-1);if(o==="year"&&D){var H=Math.floor(e.getYear(D)/10),V=Math.floor(e.getYear(F)/10);if(H!==V)return Tv(e,o,F,-1)}}return F},N=u.useRef(null);return an(function(){if(i&&!l[v]){var R=h?null:e.getNow();if(N.current!==null&&N.current!==v?R=[S,E][v^1]:n[v]?R=v===0?n[0]:O(n[0],n[1]):n[v^1]&&(R=n[v^1]),R){m&&e.isAfter(m,R)&&(R=m);var D=s?Tv(e,o,R,1):R;p&&e.isAfter(D,p)&&(R=s?Tv(e,o,p,-1):p),j(R,"reset")}}},[i,v,n[v]]),u.useEffect(function(){i?N.current=v:N.current=null},[i,v]),an(function(){i&&l&&l[v]&&j(l[v],"reset")},[i,v]),[M,j]}function pee(e,t){var n=u.useRef(e),r=u.useState({}),i=ie(r,2),a=i[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,a({})};return[o,s,o(!0)]}var TDe=[];function hee(e,t,n){var r=function(o){return o.map(function(s){return gi(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&o.push({label:CM(l,a),value:l,disabled:c})}return o}function PM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,d=c===void 0?1:c,f=r.millisecondStep,m=f===void 0?100:f,p=r.hideDisabledOptions,h=r.disabledTime,v=r.disabledHours,g=r.disabledMinutes,w=r.disabledSeconds,y=u.useMemo(function(){return n||e.getNow()},[n,e]),b=u.useCallback(function(F){var z=(h==null?void 0:h(F))||{};return[z.disabledHours||v||zb,z.disabledMinutes||g||zb,z.disabledSeconds||w||zb,z.disabledMilliseconds||zb]},[h,v,g,w]),x=u.useMemo(function(){return b(y)},[y,b]),C=ie(x,4),S=C[0],_=C[1],k=C[2],$=C[3],E=u.useCallback(function(F,z,I,H){var V=Hb(0,23,o,p,F()),B=i?V.map(function(q){return A(A({},q),{},{label:CM(q.value%12||12,2)})}):V,W=function(Y){return Hb(0,59,l,p,z(Y))},U=function(Y,re){return Hb(0,59,d,p,I(Y,re))},X=function(Y,re,G){return Hb(0,999,m,p,H(Y,re,G),3)};return[B,W,U,X]},[p,o,i,m,l,d]),P=u.useMemo(function(){return E(S,_,k,$)},[E,S,_,k,$]),M=ie(P,4),j=M[0],O=M[1],N=M[2],R=M[3],D=function(z,I){var H=function(){return j},V=O,B=N,W=R;if(I){var U=b(I),X=ie(U,4),q=X[0],Y=X[1],re=X[2],G=X[3],Q=E(q,Y,re,G),J=ie(Q,4),Z=J[0],ee=J[1],te=J[2],le=J[3];H=function(){return Z},V=ee,B=te,W=le}var oe=RDe(z,H,V,B,W,e);return oe};return[D,j,O,N,R]}function IDe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=u.useContext(Zs),p=m.prefixCls,h=m.locale,v=m.button,g=v===void 0?"button":v,w=d.getNow(),y=PM(d,a,w),b=ie(y,1),x=b[0],C=r==null?void 0:r(t),S=f(w,{type:t}),_=function(){if(!S){var O=x(w);s(O)}},k="".concat(p,"-now"),$="".concat(k,"-btn"),E=i&&u.createElement("li",{className:k},u.createElement("a",{className:ne($,S&&"".concat($,"-disabled")),"aria-disabled":S,onClick:_},n==="date"?h.today:h.now)),P=c&&u.createElement("li",{className:"".concat(p,"-ok")},u.createElement(g,{disabled:l,onClick:o},h.ok)),M=(E||P)&&u.createElement("ul",{className:"".concat(p,"-ranges")},E,P);return!C&&!M?null:u.createElement("div",{className:"".concat(p,"-footer")},C&&u.createElement("div",{className:"".concat(p,"-footer-extra")},C),M)}function wee(e,t,n){function r(i,a){var o=i.findIndex(function(l){return Yi(e,t,l,a,n)});if(o===-1)return[].concat(Fe(i),[a]);var s=Fe(i);return s.splice(o,1),s}return r}var kf=u.createContext(null);function y_(){return u.useContext(kf)}function rh(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,p=e.pickerValue,h=e.onSelect,v=e.prevIcon,g=e.nextIcon,w=e.superPrevIcon,y=e.superNextIcon,b=r.getNow(),x={now:b,values:m,pickerValue:p,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:d,onHover:f,locale:i,generateConfig:r,onSelect:h,panelType:t,prevIcon:v,nextIcon:g,superPrevIcon:w,superNextIcon:y};return[x,b]}var xu=u.createContext({});function m1(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,p=e.disabledDate,h=y_(),v=h.prefixCls,g=h.panelType,w=h.now,y=h.disabledDate,b=h.cellRender,x=h.onHover,C=h.hoverValue,S=h.hoverRangeValue,_=h.generateConfig,k=h.values,$=h.locale,E=h.onSelect,P=p||y,M="".concat(v,"-cell"),j=u.useContext(xu),O=j.onCellDblClick,N=function(B){return k.some(function(W){return W&&Yi(_,$,B,W,g)})},R=[],D=0;D1&&arguments[1]!==void 0?arguments[1]:!1;xe(Pe),g==null||g(Pe),Re&&ue(Pe)},$e=function(Pe,Re){re(Pe),Re&&ce(Re),ue(Re,Pe)},se=function(Pe){if(de(Pe),ce(Pe),Y!==x){var Re=["decade","year"],_e=[].concat(Re,["month"]),je={quarter:[].concat(Re,["quarter"]),week:[].concat(Fe(_e),["week"]),date:[].concat(Fe(_e),["date"])},He=je[x]||_e,Be=He.indexOf(Y),ct=He[Be+1];ct&&$e(ct,Pe)}},he=u.useMemo(function(){var be,Pe;if(Array.isArray(_)){var Re=ie(_,2);be=Re[0],Pe=Re[1]}else be=_;return!be&&!Pe?null:(be=be||Pe,Pe=Pe||be,i.isAfter(be,Pe)?[Pe,be]:[be,Pe])},[_,i]),ve=_M(k,$,E),ke=M[G]||WDe[G]||w_,Se=u.useContext(xu),Ee=u.useMemo(function(){return A(A({},Se),{},{hideHeader:j})},[Se,j]),De="".concat(O,"-panel"),we=g_(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return u.createElement(xu.Provider,{value:Ee},u.createElement("div",{ref:N,tabIndex:l,className:ne(De,K({},"".concat(De,"-rtl"),a==="rtl"))},u.createElement(ke,Oe({},we,{showTime:W,prefixCls:O,locale:V,generateConfig:i,onModeChange:$e,pickerValue:me,onPickerValueChange:function(Pe){ce(Pe,!0)},value:le[0],onSelect:se,values:le,cellRender:ve,hoverRangeValue:he,hoverValue:S}))))}var xE=u.memo(u.forwardRef(UDe));function qDe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=u.useContext(Zs),d=c.prefixCls,f=c.generateConfig,m=u.useCallback(function(y,b){return Tv(f,t,y,b)},[f,t]),p=u.useMemo(function(){return m(r,1)},[r,m]),h=function(b){i(m(b,-1))},v={onCellDblClick:function(){a&&o()}},g=t==="time",w=A(A({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?w.hoverRangeValue=l:w.hoverValue=l,n?u.createElement("div",{className:"".concat(d,"-panels")},u.createElement(xu.Provider,{value:A(A({},v),{},{hideNext:!0})},u.createElement(xE,w)),u.createElement(xu.Provider,{value:A(A({},v),{},{hidePrev:!0})},u.createElement(xE,Oe({},w,{pickerValue:p,onPickerValueChange:h})))):u.createElement(xu.Provider,{value:A({},v)},u.createElement(xE,w))}function $9(e){return typeof e=="function"?e():e}function GDe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?u.createElement("div",{className:"".concat(t,"-presets")},u.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return u.createElement("li",{key:o,onClick:function(){r($9(l))},onMouseEnter:function(){i($9(l))},onMouseLeave:function(){i(null)}},s)}))):null}function See(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,a=e.range,o=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,d=e.presets,f=e.onPresetHover,m=e.onPresetSubmit,p=e.onFocus,h=e.onBlur,v=e.onPanelMouseDown,g=e.direction,w=e.value,y=e.onSelect,b=e.isInvalid,x=e.defaultOpenValue,C=e.onOk,S=e.onSubmit,_=u.useContext(Zs),k=_.prefixCls,$="".concat(k,"-panel"),E=g==="rtl",P=u.useRef(null),M=u.useRef(null),j=u.useState(0),O=ie(j,2),N=O[0],R=O[1],D=u.useState(0),F=ie(D,2),z=F[0],I=F[1],H=function(oe){oe.offsetWidth&&R(oe.offsetWidth)};u.useEffect(function(){if(a){var le,oe=((le=P.current)===null||le===void 0?void 0:le.offsetWidth)||0,de=N-oe;l<=de?I(0):I(l+oe-N)}},[N,l,a]);function V(le){return le.filter(function(oe){return oe})}var B=u.useMemo(function(){return V(_f(w))},[w]),W=r==="time"&&!B.length,U=u.useMemo(function(){return W?V([x]):B},[W,B,x]),X=W?x:B,q=u.useMemo(function(){return U.length?U.some(function(le){return b(le)}):!0},[U,b]),Y=function(){W&&y(x),C(),S()},re=u.createElement("div",{className:"".concat(k,"-panel-layout")},u.createElement(GDe,{prefixCls:k,presets:d,onClick:m,onHover:f}),u.createElement("div",null,u.createElement(qDe,Oe({},e,{value:X})),u.createElement(IDe,Oe({},e,{showNow:o?!1:i,invalid:q,onSubmit:Y}))));t&&(re=t(re));var G="".concat($,"-container"),Q="marginLeft",J="marginRight",Z=u.createElement("div",{onMouseDown:v,tabIndex:-1,className:ne(G,"".concat(k,"-").concat(n,"-panel-container")),style:K(K({},E?J:Q,z),E?Q:J,"auto"),onFocus:p,onBlur:h},re);if(a){var ee=v_(c,E),te=KJ(ee,E);Z=u.createElement("div",{onMouseDown:v,ref:M,className:ne("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(r,"-range-wrapper"))},u.createElement("div",{ref:P,className:"".concat(k,"-range-arrow"),style:K({},te,l)}),u.createElement(bi,{onResize:H},Z))}return Z}function Cee(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],d=e.onSubmit,f=e.onFocus,m=e.onBlur,p=e.onInputChange,h=e.onInvalid,v=e.open,g=e.onOpenChange,w=e.onKeyDown,y=e.onChange,b=e.activeHelp,x=e.name,C=e.autoComplete,S=e.id,_=e.value,k=e.invalid,$=e.placeholder,E=e.disabled,P=e.activeIndex,M=e.allHelp,j=e.picker,O=function(V,B){var W=i.locale.parse(a.locale,V,[B]);return W&&i.isValidate(W)?W:null},N=n[0],R=u.useCallback(function(H){return gi(H,{locale:a,format:N,generateConfig:i})},[a,i,N]),D=u.useMemo(function(){return _.map(R)},[_,R]),F=u.useMemo(function(){var H=j==="time"?8:10,V=typeof N=="function"?N(i.getNow()).length:N.length;return Math.max(H,V)+2},[N,j,i]),z=function(V){for(var B=0;B=s&&n<=l)return a;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?nt:rt));var Ce=Te+Ne,Ie=rt-nt+1;return String(nt+(Ie+Ce-nt)%Ie)};switch(Pe){case"Backspace":case"Delete":Re="",_e=He;break;case"ArrowLeft":Re="",Be(-1);break;case"ArrowRight":Re="",Be(1);break;case"ArrowUp":Re="",_e=ct(1);break;case"ArrowDown":Re="",_e=ct(-1);break;default:isNaN(Number(Pe))||(Re=H+Pe,_e=Re);break}if(Re!==null&&(V(Re),Re.length>=je&&(Be(1),V(""))),_e!==null){var Ve=Q.slice(0,oe)+CM(_e,je)+Q.slice(de);ye(Ve.slice(0,o.length))}G({})},Ee=u.useRef();an(function(){if(!(!j||!o||ue.current)){if(!ee.match(Q)){ye(o);return}return Z.current.setSelectionRange(oe,de),Ee.current=tn(function(){Z.current.setSelectionRange(oe,de)}),function(){tn.cancel(Ee.current)}}},[ee,o,j,Q,U,oe,de,re,ye]);var De=o?{onFocus:se,onBlur:ve,onKeyDown:Se,onMouseDown:ce,onMouseUp:$e,onPaste:xe}:{};return u.createElement("div",{ref:J,className:ne(E,K(K({},"".concat(E,"-active"),n&&i),"".concat(E,"-placeholder"),c))},u.createElement($,Oe({ref:Z,"aria-invalid":v,autoComplete:"off"},w,{onKeyDown:ke,onBlur:he},De,{value:Q,onChange:me})),u.createElement(x_,{type:"suffix",icon:a}),g)}),eje=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],tje=["index"],nje=["insetInlineStart","insetInlineEnd"];function rje(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,m=e.style,p=e.onClick,h=e.onClear,v=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var g=e.disabled,w=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var b=e.onActiveOffset,x=e.placement,C=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,_=e.tabIndex,k=ft(e,eje),$=y==="rtl",E=u.useContext(Zs),P=E.prefixCls,M=u.useMemo(function(){if(typeof n=="string")return[n];var Z=n||{};return[Z.start,Z.end]},[n]),j=u.useRef(),O=u.useRef(),N=u.useRef(),R=function(ee){var te;return(te=[O,N][ee])===null||te===void 0?void 0:te.current};u.useImperativeHandle(t,function(){return{nativeElement:j.current,focus:function(ee){if(mt(ee)==="object"){var te,le=ee||{},oe=le.index,de=oe===void 0?0:oe,pe=ft(le,tje);(te=R(de))===null||te===void 0||te.focus(pe)}else{var ye;(ye=R(ee??0))===null||ye===void 0||ye.focus()}},blur:function(){var ee,te;(ee=R(0))===null||ee===void 0||ee.blur(),(te=R(1))===null||te===void 0||te.blur()}}});var D=_ee(k),F=u.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),z=Cee(A(A({},e),{},{id:M,placeholder:F})),I=ie(z,1),H=I[0],V=v_(x,$),B=KJ(V,$),W=V==null?void 0:V.toLowerCase().endsWith("right"),U=u.useState({position:"absolute",width:0}),X=ie(U,2),q=X[0],Y=X[1],re=Ht(function(){var Z=R(l);if(Z){var ee=Z.nativeElement,te=ee.offsetWidth,le=ee.offsetLeft,oe=ee.offsetParent,de=(oe==null?void 0:oe.offsetWidth)||0,pe=W?de-te-le:le;Y(function(ye){ye.insetInlineStart,ye.insetInlineEnd;var me=ft(ye,nje);return A(A({},me),{},K({width:te},B,pe))}),b(pe)}});u.useEffect(function(){re()},[l]);var G=i&&(v[0]&&!g[0]||v[1]&&!g[1]),Q=S&&!g[0],J=S&&!Q&&!g[1];return u.createElement(bi,{onResize:re},u.createElement("div",Oe({},D,{className:ne(P,"".concat(P,"-range"),K(K(K(K({},"".concat(P,"-focused"),c),"".concat(P,"-disabled"),g.every(function(Z){return Z})),"".concat(P,"-invalid"),w.some(function(Z){return Z})),"".concat(P,"-rtl"),$),f),style:m,ref:j,onClick:p,onMouseDown:function(ee){var te=ee.target;te!==O.current.inputElement&&te!==N.current.inputElement&&ee.preventDefault(),C==null||C(ee)}}),r&&u.createElement("div",{className:"".concat(P,"-prefix")},r),u.createElement(WT,Oe({ref:O},H(0),{autoFocus:Q,tabIndex:_,"date-range":"start"})),u.createElement("div",{className:"".concat(P,"-range-separator")},s),u.createElement(WT,Oe({ref:N},H(1),{autoFocus:J,tabIndex:_,"date-range":"end"})),u.createElement("div",{className:"".concat(P,"-active-bar"),style:q}),u.createElement(x_,{type:"suffix",icon:a}),G&&u.createElement(VT,{icon:i,onClear:h})))}var ije=u.forwardRef(rje);function P9(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Wb(e){return e===1?"end":"start"}function aje(e,t){var n=lee(e,function(){var Ze=e.disabled,gt=e.allowEmpty,bt=P9(Ze,!1),Kt=P9(gt,!1);return{disabled:bt,allowEmpty:Kt}}),r=ie(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],d=i.prefixCls,f=i.styles,m=i.classNames,p=i.placement,h=i.defaultValue,v=i.value,g=i.needConfirm,w=i.onKeyDown,y=i.disabled,b=i.allowEmpty,x=i.disabledDate,C=i.minDate,S=i.maxDate,_=i.defaultOpen,k=i.open,$=i.onOpenChange,E=i.locale,P=i.generateConfig,M=i.picker,j=i.showNow,O=i.showToday,N=i.showTime,R=i.mode,D=i.onPanelChange,F=i.onCalendarChange,z=i.onOk,I=i.defaultPickerValue,H=i.pickerValue,V=i.onPickerValueChange,B=i.inputReadOnly,W=i.suffixIcon,U=i.onFocus,X=i.onBlur,q=i.presets,Y=i.ranges,re=i.components,G=i.cellRender,Q=i.dateRender,J=i.monthCellRender,Z=i.onClick,ee=uee(t),te=cee(k,_,y,$),le=ie(te,2),oe=le[0],de=le[1],pe=function(gt,bt){(y.some(function(Kt){return!Kt})||!gt)&&de(gt,bt)},ye=gee(P,E,s,!0,!1,h,v,F,z),me=ie(ye,5),xe=me[0],ue=me[1],ce=me[2],$e=me[3],se=me[4],he=ce(),ve=fee(y,b,oe),ke=ie(ve,9),Se=ke[0],Ee=ke[1],De=ke[2],we=ke[3],be=ke[4],Pe=ke[5],Re=ke[6],_e=ke[7],je=ke[8],He=function(gt,bt){Ee(!0),U==null||U(gt,{range:Wb(bt??we)})},Be=function(gt,bt){Ee(!1),X==null||X(gt,{range:Wb(bt??we)})},ct=u.useMemo(function(){if(!N)return null;var Ze=N.disabledTime,gt=Ze?function(bt){var Kt=Wb(we),cn=QJ(he,Re,we);return Ze(bt,Kt,{from:cn})}:void 0;return A(A({},N),{},{disabledTime:gt})},[N,we,he,Re]),Ve=Ut([M,M],{value:R}),Ye=ie(Ve,2),Ne=Ye[0],Ae=Ye[1],et=Ne[we]||M,nt=et==="date"&&ct?"datetime":et,rt=nt===M&&nt!=="time",it=yee(M,et,j,O,!0),ge=bee(i,xe,ue,ce,$e,y,s,Se,oe,c),Te=ie(ge,2),Ce=Te[0],Ie=Te[1],Ke=PDe(he,y,Re,P,E,x),Xe=JJ(he,c,b),lt=ie(Xe,2),tt=lt[0],Qe=lt[1],Ge=mee(P,E,he,Ne,oe,we,a,rt,I,H,ct==null?void 0:ct.defaultOpenValue,V,C,S),st=ie(Ge,2),pt=st[0],yt=st[1],zt=Ht(function(Ze,gt,bt){var Kt=eg(Ne,we,gt);if((Kt[0]!==Ne[0]||Kt[1]!==Ne[1])&&Ae(Kt),D&&bt!==!1){var cn=Fe(he);Ze&&(cn[we]=Ze),D(cn,Kt)}}),$t=function(gt,bt){return eg(he,bt,gt)},ze=function(gt,bt){var Kt=he;gt&&(Kt=$t(gt,we)),_e(we);var cn=Pe(Kt);$e(Kt),Ce(we,cn===null),cn===null?pe(!1,{force:!0}):bt||ee.current.focus({index:cn})},fe=function(gt){var bt,Kt=gt.target.getRootNode();if(!ee.current.nativeElement.contains((bt=Kt.activeElement)!==null&&bt!==void 0?bt:document.activeElement)){var cn=y.findIndex(function(fr){return!fr});cn>=0&&ee.current.focus({index:cn})}pe(!0),Z==null||Z(gt)},Me=function(){Ie(null),pe(!1,{force:!0})},We=u.useState(null),wt=ie(We,2),Je=wt[0],Le=wt[1],ot=u.useState(null),vt=ie(ot,2),Et=vt[0],It=vt[1],St=u.useMemo(function(){return Et||he},[he,Et]);u.useEffect(function(){oe||It(null)},[oe]);var at=u.useState(0),_t=ie(at,2),At=_t[0],Dt=_t[1],Jt=dee(q,Y),pn=function(gt){It(gt),Le("preset")},gn=function(gt){var bt=Ie(gt);bt&&pe(!1,{force:!0})},wr=function(gt){ze(gt)},dr=function(gt){It(gt?$t(gt,we):null),Le("cell")},Qn=function(gt){pe(!0),He(gt)},Wr=function(){De("panel")},vn=function(gt){var bt=eg(he,we,gt);$e(bt),!g&&!o&&a===nt&&ze(gt)},Bt=function(){pe(!1)},jt=_M(G,Q,J,Wb(we)),wn=he[we]||null,Ft=Ht(function(Ze){return c(Ze,{activeIndex:we})}),Nt=u.useMemo(function(){var Ze=yr(i,!1),gt=kn(i,[].concat(Fe(Object.keys(Ze)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return gt},[i]),hn=u.createElement(See,Oe({},Nt,{showNow:it,showTime:ct,range:!0,multiplePanel:rt,activeOffset:At,placement:p,disabledDate:Ke,onFocus:Qn,onBlur:Be,onPanelMouseDown:Wr,picker:M,mode:et,internalMode:nt,onPanelChange:zt,format:l,value:wn,isInvalid:Ft,onChange:null,onSelect:vn,pickerValue:pt,defaultOpenValue:_f(N==null?void 0:N.defaultOpenValue)[we],onPickerValueChange:yt,hoverValue:St,onHover:dr,needConfirm:g,onSubmit:ze,onOk:se,presets:Jt,onPresetHover:pn,onPresetSubmit:gn,onNow:wr,cellRender:jt})),On=function(gt,bt){var Kt=$t(gt,bt);$e(Kt)},ar=function(){De("input")},Ue=function(gt,bt){var Kt=Re.length,cn=Re[Kt-1];if(Kt&&cn!==bt&&g&&!b[cn]&&!je(cn)&&he[cn]){ee.current.focus({index:cn});return}De("input"),pe(!0,{inherit:!0}),we!==bt&&oe&&!g&&o&&ze(null,!0),be(bt),He(gt,bt)},ht=function(gt,bt){if(pe(!1),!g&&De()==="input"){var Kt=Pe(he);Ce(we,Kt===null)}Be(gt,bt)},kt=function(gt,bt){gt.key==="Tab"&&ze(null,!0),w==null||w(gt,bt)},ut=u.useMemo(function(){return{prefixCls:d,locale:E,generateConfig:P,button:re.button,input:re.input}},[d,E,P,re.button,re.input]);return an(function(){oe&&we!==void 0&&zt(null,M,!1)},[oe,we,M]),an(function(){var Ze=De();!oe&&Ze==="input"&&(pe(!1),ze(null,!0)),!oe&&o&&!g&&Ze==="panel"&&(pe(!0),ze())},[oe]),u.createElement(Zs.Provider,{value:ut},u.createElement(YJ,Oe({},ZJ(i),{popupElement:hn,popupStyle:f.popup,popupClassName:m.popup,visible:oe,onClose:Bt,range:!0}),u.createElement(ije,Oe({},i,{ref:ee,suffixIcon:W,activeIndex:Se||oe?we:null,activeHelp:!!Et,allHelp:!!Et&&Je==="preset",focused:Se,onFocus:Ue,onBlur:ht,onKeyDown:kt,onSubmit:ze,value:St,maskFormat:l,onChange:On,onInputChange:ar,format:s,inputReadOnly:B,disabled:y,open:oe,onOpenChange:pe,onClick:fe,onClear:Me,invalid:tt,onInvalid:Qe,onActiveOffset:Dt}))))}var oje=u.forwardRef(aje);function sje(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?"×":i,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function p(g,w){return u.createElement("span",{className:ne("".concat(f,"-item")),title:typeof g=="string"?g:null},u.createElement("span",{className:"".concat(f,"-item-content")},g),!s&&w&&u.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:w,className:"".concat(f,"-item-remove")},a))}function h(g){var w=o(g),y=function(x){x&&x.stopPropagation(),r(g)};return p(w,y)}function v(g){var w="+ ".concat(g.length," ...");return p(w)}return u.createElement("div",{className:d},u.createElement(Os,{prefixCls:m,data:n,renderItem:h,renderRest:v,itemKey:function(w){return o(w)},maxCount:l}),!n.length&&u.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var lje=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function cje(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,d=e.className,f=e.style,m=e.onClick,p=e.onClear,h=e.internalPicker,v=e.value,g=e.onChange,w=e.onSubmit;e.onInputChange;var y=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var x=e.disabled,C=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var _=e.onMouseDown;e.required,e["aria-required"];var k=e.autoFocus,$=e.tabIndex,E=e.removeIcon,P=ft(e,lje),M=S==="rtl",j=u.useContext(Zs),O=j.prefixCls,N=u.useRef(),R=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(q){var Y;(Y=R.current)===null||Y===void 0||Y.focus(q)},blur:function(){var q;(q=R.current)===null||q===void 0||q.blur()}}});var D=_ee(P),F=function(q){g([q])},z=function(q){var Y=v.filter(function(re){return re&&!Yi(l,s,re,q,h)});g(Y),n||w()},I=Cee(A(A({},e),{},{onChange:F}),function(X){var q=X.valueTexts;return{value:q[0]||"",active:o}}),H=ie(I,2),V=H[0],B=H[1],W=!!(i&&v.length&&!x),U=y?u.createElement(u.Fragment,null,u.createElement(sje,{prefixCls:O,value:v,onRemove:z,formatDate:B,maxTagCount:b,disabled:x,removeIcon:E,placeholder:c}),u.createElement("input",{className:"".concat(O,"-multiple-input"),value:v.map(B).join(","),ref:R,readOnly:!0,autoFocus:k,tabIndex:$}),u.createElement(x_,{type:"suffix",icon:a}),W&&u.createElement(VT,{icon:i,onClear:p})):u.createElement(WT,Oe({ref:R},V(),{autoFocus:k,tabIndex:$,suffixIcon:a,clearIcon:W&&u.createElement(VT,{icon:i,onClear:p}),showActiveCls:!1}));return u.createElement("div",Oe({},D,{className:ne(O,K(K(K(K(K({},"".concat(O,"-multiple"),y),"".concat(O,"-focused"),o),"".concat(O,"-disabled"),x),"".concat(O,"-invalid"),C),"".concat(O,"-rtl"),M),d),style:f,ref:N,onClick:m,onMouseDown:function(q){var Y,re=q.target;re!==((Y=R.current)===null||Y===void 0?void 0:Y.inputElement)&&q.preventDefault(),_==null||_(q)}}),r&&u.createElement("div",{className:"".concat(O,"-prefix")},r),U)}var uje=u.forwardRef(cje);function dje(e,t){var n=lee(e),r=ie(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],d=i,f=d.prefixCls,m=d.styles,p=d.classNames,h=d.order,v=d.defaultValue,g=d.value,w=d.needConfirm,y=d.onChange,b=d.onKeyDown,x=d.disabled,C=d.disabledDate,S=d.minDate,_=d.maxDate,k=d.defaultOpen,$=d.open,E=d.onOpenChange,P=d.locale,M=d.generateConfig,j=d.picker,O=d.showNow,N=d.showToday,R=d.showTime,D=d.mode,F=d.onPanelChange,z=d.onCalendarChange,I=d.onOk,H=d.multiple,V=d.defaultPickerValue,B=d.pickerValue,W=d.onPickerValueChange,U=d.inputReadOnly,X=d.suffixIcon,q=d.removeIcon,Y=d.onFocus,re=d.onBlur,G=d.presets,Q=d.components,J=d.cellRender,Z=d.dateRender,ee=d.monthCellRender,te=d.onClick,le=uee(t);function oe(Ft){return Ft===null?null:H?Ft:Ft[0]}var de=wee(M,P,a),pe=cee($,k,[x],E),ye=ie(pe,2),me=ye[0],xe=ye[1],ue=function(Nt,hn,On){if(z){var ar=A({},On);delete ar.range,z(oe(Nt),oe(hn),ar)}},ce=function(Nt){I==null||I(oe(Nt))},$e=gee(M,P,s,!1,h,v,g,ue,ce),se=ie($e,5),he=se[0],ve=se[1],ke=se[2],Se=se[3],Ee=se[4],De=ke(),we=fee([x]),be=ie(we,4),Pe=be[0],Re=be[1],_e=be[2],je=be[3],He=function(Nt){Re(!0),Y==null||Y(Nt,{})},Be=function(Nt){Re(!1),re==null||re(Nt,{})},ct=Ut(j,{value:D}),Ve=ie(ct,2),Ye=Ve[0],Ne=Ve[1],Ae=Ye==="date"&&R?"datetime":Ye,et=yee(j,Ye,O,N),nt=y&&function(Ft,Nt){y(oe(Ft),oe(Nt))},rt=bee(A(A({},i),{},{onChange:nt}),he,ve,ke,Se,[],s,Pe,me,c),it=ie(rt,2),ge=it[1],Te=JJ(De,c),Ce=ie(Te,2),Ie=Ce[0],Ke=Ce[1],Xe=u.useMemo(function(){return Ie.some(function(Ft){return Ft})},[Ie]),lt=function(Nt,hn){if(W){var On=A(A({},hn),{},{mode:hn.mode[0]});delete On.range,W(Nt[0],On)}},tt=mee(M,P,De,[Ye],me,je,a,!1,V,B,_f(R==null?void 0:R.defaultOpenValue),lt,S,_),Qe=ie(tt,2),Ge=Qe[0],st=Qe[1],pt=Ht(function(Ft,Nt,hn){if(Ne(Nt),F&&hn!==!1){var On=Ft||De[De.length-1];F(On,Nt)}}),yt=function(){ge(ke()),xe(!1,{force:!0})},zt=function(Nt){!x&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),xe(!0),te==null||te(Nt)},$t=function(){ge(null),xe(!1,{force:!0})},ze=u.useState(null),fe=ie(ze,2),Me=fe[0],We=fe[1],wt=u.useState(null),Je=ie(wt,2),Le=Je[0],ot=Je[1],vt=u.useMemo(function(){var Ft=[Le].concat(Fe(De)).filter(function(Nt){return Nt});return H?Ft:Ft.slice(0,1)},[De,Le,H]),Et=u.useMemo(function(){return!H&&Le?[Le]:De.filter(function(Ft){return Ft})},[De,Le,H]);u.useEffect(function(){me||ot(null)},[me]);var It=dee(G),St=function(Nt){ot(Nt),We("preset")},at=function(Nt){var hn=H?de(ke(),Nt):[Nt],On=ge(hn);On&&!H&&xe(!1,{force:!0})},_t=function(Nt){at(Nt)},At=function(Nt){ot(Nt),We("cell")},Dt=function(Nt){xe(!0),He(Nt)},Jt=function(Nt){if(_e("panel"),!(H&&Ae!==j)){var hn=H?de(ke(),Nt):[Nt];Se(hn),!w&&!o&&a===Ae&&yt()}},pn=function(){xe(!1)},gn=_M(J,Z,ee),wr=u.useMemo(function(){var Ft=yr(i,!1),Nt=kn(i,[].concat(Fe(Object.keys(Ft)),["onChange","onCalendarChange","style","className","onPanelChange"]));return A(A({},Nt),{},{multiple:i.multiple})},[i]),dr=u.createElement(See,Oe({},wr,{showNow:et,showTime:R,disabledDate:C,onFocus:Dt,onBlur:Be,picker:j,mode:Ye,internalMode:Ae,onPanelChange:pt,format:l,value:De,isInvalid:c,onChange:null,onSelect:Jt,pickerValue:Ge,defaultOpenValue:R==null?void 0:R.defaultOpenValue,onPickerValueChange:st,hoverValue:vt,onHover:At,needConfirm:w,onSubmit:yt,onOk:Ee,presets:It,onPresetHover:St,onPresetSubmit:at,onNow:_t,cellRender:gn})),Qn=function(Nt){Se(Nt)},Wr=function(){_e("input")},vn=function(Nt){_e("input"),xe(!0,{inherit:!0}),He(Nt)},Bt=function(Nt){xe(!1),Be(Nt)},jt=function(Nt,hn){Nt.key==="Tab"&&yt(),b==null||b(Nt,hn)},wn=u.useMemo(function(){return{prefixCls:f,locale:P,generateConfig:M,button:Q.button,input:Q.input}},[f,P,M,Q.button,Q.input]);return an(function(){me&&je!==void 0&&pt(null,j,!1)},[me,je,j]),an(function(){var Ft=_e();!me&&Ft==="input"&&(xe(!1),yt()),!me&&o&&!w&&Ft==="panel"&&(xe(!0),yt())},[me]),u.createElement(Zs.Provider,{value:wn},u.createElement(YJ,Oe({},ZJ(i),{popupElement:dr,popupStyle:m.popup,popupClassName:p.popup,visible:me,onClose:pn}),u.createElement(uje,Oe({},i,{ref:le,suffixIcon:X,removeIcon:q,activeHelp:!!Le,allHelp:!!Le&&Me==="preset",focused:Pe,onFocus:vn,onBlur:Bt,onKeyDown:jt,onSubmit:yt,value:Et,maskFormat:l,onChange:Qn,onInputChange:Wr,internalPicker:a,format:s,inputReadOnly:U,disabled:x,open:me,onOpenChange:xe,onClick:zt,onClear:$t,invalid:Xe,onInvalid:function(Nt){Ke(Nt,0)}}))))}var fje=u.forwardRef(dje);const kee=u.createContext(null),mje=kee.Provider,$ee=u.createContext(null),pje=$ee.Provider;var hje=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Eee=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,m=e.title,p=e.onChange,h=ft(e,hje),v=u.useRef(null),g=u.useRef(null),w=Ut(c,{value:o}),y=ie(w,2),b=y[0],x=y[1];u.useImperativeHandle(t,function(){return{focus:function(k){var $;($=v.current)===null||$===void 0||$.focus(k)},blur:function(){var k;(k=v.current)===null||k===void 0||k.blur()},input:v.current,nativeElement:g.current}});var C=ne(r,i,K(K({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),s)),S=function(k){s||("checked"in e||x(k.target.checked),p==null||p({target:A(A({},e),{},{type:f,checked:k.target.checked}),stopPropagation:function(){k.stopPropagation()},preventDefault:function(){k.preventDefault()},nativeEvent:k.nativeEvent}))};return u.createElement("span",{className:C,title:m,style:a,ref:g},u.createElement("input",Oe({},h,{className:"".concat(r,"-input"),ref:v,onChange:S,disabled:s,checked:!!b,type:f})),u.createElement("span",{className:"".concat(r,"-inner")}))});function Pee(e){const t=L.useRef(null),n=()=>{tn.cancel(t.current),t.current=null};return[()=>{n(),t.current=tn(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const vje=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},mn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},gje=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:p,dotColorDisabled:h,lineType:v,radioColor:g,radioBgColor:w,calc:y}=e,b=`${t}-inner`,C=y(i).sub(y(4).mul(2)),S=y(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},mn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ae(d)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},Bs(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:y(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:w,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${y(C).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},bje=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:p,controlHeightSM:h,paddingXS:v,borderRadius:g,borderRadiusSM:w,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:_,buttonCheckedColorDisabled:k,colorPrimary:$,colorPrimaryHover:E,colorPrimaryActive:P,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:j,buttonSolidCheckedActiveBg:O,calc:N}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:d,lineHeight:ae(N(n).sub(N(i).mul(2)).equal()),background:f,border:`${ae(i)} ${a} ${o}`,borderBlockStartWidth:N(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:N(i).mul(-1).equal(),insetInlineStart:N(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${ae(i)} ${a} ${o}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:m,lineHeight:ae(N(p).sub(N(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:N(v).sub(i).equal(),paddingBlock:0,lineHeight:ae(N(h).sub(N(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},Bs(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:b,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:M,borderColor:M,"&:hover":{color:x,background:j,borderColor:j},"&:active":{color:x,background:O,borderColor:O}},"&-disabled":{color:C,backgroundColor:S,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:_,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},yje=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:p,colorWhite:h}=e,v=4,g=a,w=t?g-v*2:g-(v+i)*2;return{radioSize:g,dotSize:w,dotColorDisabled:l,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},Tee=un("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ae(n)} ${t}`,a=Yt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[vje(a),gje(a),bje(a)]},yje,{unitless:{radioSize:!0,dotSize:!0}});var wje=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const i=u.useContext(kee),a=u.useContext($ee),{getPrefixCls:o,direction:s,radio:l}=u.useContext(Ct),c=u.useRef(null),d=di(t,c),{isFormItemInput:f}=u.useContext(Qr),m=R=>{var D,F;(D=e.onChange)===null||D===void 0||D.call(e,R),(F=i==null?void 0:i.onChange)===null||F===void 0||F.call(i,R)},{prefixCls:p,className:h,rootClassName:v,children:g,style:w,title:y}=e,b=wje(e,["prefixCls","className","rootClassName","children","style","title"]),x=o("radio",p),C=((i==null?void 0:i.optionType)||a)==="button",S=C?`${x}-button`:x,_=Dn(x),[k,$,E]=Tee(x,_),P=Object.assign({},b),M=u.useContext(Br);i&&(P.name=i.name,P.onChange=m,P.checked=e.value===i.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:i.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:M;const j=ne(`${S}-wrapper`,{[`${S}-wrapper-checked`]:P.checked,[`${S}-wrapper-disabled`]:P.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:f,[`${S}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,h,v,$,E,_),[O,N]=Pee(P.onClick);return k(u.createElement(i1,{component:"Radio",disabled:P.disabled},u.createElement("label",{className:j,style:Object.assign(Object.assign({},l==null?void 0:l.style),w),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:O},u.createElement(Eee,Object.assign({},P,{className:ne(P.className,{[H2]:!C}),type:"radio",prefixCls:S,ref:d,onClick:N})),g!==void 0?u.createElement("span",null,g):null)))},Gx=u.forwardRef(xje),Sje=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Ct),i=t_(),{prefixCls:a,className:o,rootClassName:s,options:l,buttonStyle:c="outline",disabled:d,children:f,size:m,style:p,id:h,optionType:v,name:g=i,defaultValue:w,value:y,block:b=!1,onChange:x,onMouseEnter:C,onMouseLeave:S,onFocus:_,onBlur:k}=e,[$,E]=Ut(w,{value:y}),P=u.useCallback(V=>{const B=$,W=V.target.value;"value"in e||E(W),W!==B&&(x==null||x(V))},[$,E,x]),M=n("radio",a),j=`${M}-group`,O=Dn(M),[N,R,D]=Tee(M,O);let F=f;l&&l.length>0&&(F=l.map(V=>typeof V=="string"||typeof V=="number"?u.createElement(Gx,{key:V.toString(),prefixCls:M,disabled:d,value:V,checked:$===V},V):u.createElement(Gx,{key:`radio-group-value-options-${V.value}`,prefixCls:M,disabled:V.disabled||d,value:V.value,checked:$===V.value,title:V.title,style:V.style,id:V.id,required:V.required},V.label)));const z=Fr(m),I=ne(j,`${j}-${c}`,{[`${j}-${z}`]:z,[`${j}-rtl`]:r==="rtl",[`${j}-block`]:b},o,s,R,D,O),H=u.useMemo(()=>({onChange:P,value:$,disabled:d,name:g,optionType:v,block:b}),[P,$,d,g,v,b]);return N(u.createElement("div",Object.assign({},yr(e,{aria:!0,data:!0}),{className:I,style:p,onMouseEnter:C,onMouseLeave:S,onFocus:_,onBlur:k,id:h,ref:t}),u.createElement(mje,{value:H},F)))}),Cje=u.memo(Sje);var _je=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n}=u.useContext(Ct),{prefixCls:r}=e,i=_je(e,["prefixCls"]),a=n("radio",r);return u.createElement(pje,{value:"button"},u.createElement(Gx,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},$je=u.forwardRef(kje),ah=Gx;ah.Button=$je;ah.Group=Cje;ah.__ANT_RADIO=!0;function p1(e){return Yt(e,{inputAffixPadding:e.paddingXXS})}const h1=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:v,controlOutline:g,colorErrorOutline:w,colorWarningOutline:y,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:d-i,paddingInlineLG:f-i,addonBg:m,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${g}`,errorActiveShadow:`0 0 0 ${v}px ${w}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},Eje=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),S_=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Eje(Yt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),TM=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),T9=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},TM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),OM=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},TM(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},S_(e))}),T9(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),T9(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),O9=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Oee=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},O9(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),O9(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},S_(e))}})}),RM=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Ree=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),R9=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ree(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),IM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ree(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},S_(e))}),R9(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),R9(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),I9=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Iee=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},I9(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),I9(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),MM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Mee=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${ae(t)} ${ae(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},NM=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),v1=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ae(e.paddingBlock)} ${ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},MM(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Mee(e)),"&-sm":Object.assign({},NM(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Nee=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Mee(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},NM(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ls()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${t}-affix-wrapper, - & > ${t}-number-affix-wrapper, - & > ${n}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Pje=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),v1(e)),OM(e)),IM(e)),RM(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Tje=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ae(e.inputAffixPadding)}`}}}},Oje=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},v1(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Tje(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},Rje=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},mn(e)),Nee(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Oee(e)),Iee(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Ije=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Mje=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` - &-allow-clear > ${t}, - &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Nje=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},DM=un("Input",e=>{const t=Yt(e,p1(e));return[Pje(t),Mje(t),Oje(t),Rje(t),Ije(t),Nje(t),wf(t)]},h1,{resetFont:!1}),CE=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",a=ZZ(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:ae(a.itemLineHeight)}}}]},Dje=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Yt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Yt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[CE(i,"small"),CE(e),CE(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},JZ(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},jje=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:p,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ae(r),borderRadius:i,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), - &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ae(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range, - &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected, - &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:m,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},Fje=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:p,colorPrimary:h,colorTextHeading:v,colorSplit:g,pickerControlIconBorderWidth:w,colorIcon:y,textHeight:b,motionDurationMid:x,colorIconHover:C,fontWeightStrong:S,cellHeight:_,pickerCellPaddingVertical:k,colorTextDisabled:$,colorText:E,fontSize:P,motionDurationSlow:M,withoutTimeCellHeight:j,pickerQuarterPanelContentHeight:O,borderRadiusSM:N,colorTextLightSolid:R,cellHoverBg:D,timeColumnHeight:F,timeColumnWidth:z,timeCellHeight:I,controlItemBgActive:H,marginXXS:V,pickerDatePanelPaddingHorizontal:B,pickerControlIconMargin:W}=e,U=e.calc(o).mul(7).add(e.calc(B).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon, - ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:U},"&-header":{display:"flex",padding:`0 ${ae(l)}`,color:v,borderBottom:`${ae(f)} ${m} ${g}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:ae(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:P,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:ae(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${ae(w)} 0`,borderInlineWidth:`${ae(w)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:W,insetInlineStart:W,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${ae(w)} 0`,borderInlineWidth:`${ae(w)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:_,fontWeight:"normal"},th:{height:e.calc(_).add(e.calc(k).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ae(k)} 0`,color:$,cursor:"pointer","&-in-view":{color:E}},jje(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(j).mul(4).equal()},[r]:{padding:`0 ${ae(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:O}},"&-decade-panel":{[r]:{padding:`0 ${ae(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ae(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${ae(l)} ${ae(B)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, - &-selected ${r}, - ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:D},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new rn(R).setA(.5).toHexString()},[r]:{color:R}}},"&-range-hover td:before":{background:H}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ae(l)} ${ae(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ae(f)} ${m} ${g}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:z,margin:`${ae(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ae(I)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ae(f)} ${m} ${g}`},"&-active":{background:new rn(H).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:V,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(V).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(I).div(2).equal(),color:E,lineHeight:ae(I),borderRadius:N,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:D}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:H}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},Aje=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ae(r)} ${c} ${d}`,"&-extra":{padding:`0 ${ae(i)}`,lineHeight:ae(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ae(r)} ${c} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ae(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ae(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Lje=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},Bje=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,l=o*2,c=Math.min(n-s,n-l),d=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new rn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new rn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},zje=e=>Object.assign(Object.assign(Object.assign(Object.assign({},h1(e)),Bje(e)),l_(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Hje=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},OM(e)),IM(e)),RM(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},_E=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(i).div(2).equal(),0),o=e.max(e.calc(t).sub(i).sub(a).equal(),0);return{padding:`${ae(a)} ${ae(r)} ${ae(o)}`}},Vje=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Wje=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:m,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:v,paddingXS:g,marginXS:w,colorTextDescription:y,lineWidthBold:b,colorPrimary:x,motionDurationSlow:C,zIndexPopup:S,paddingXXS:_,sizePopupArrow:k,colorBgElevated:$,borderRadiusLG:E,boxShadowSecondary:P,borderRadiusSM:M,colorSplit:j,cellHoverBg:O,presetsWidth:N,presetsMaxWidth:R,boxShadowPopoverArrow:D,fontHeight:F,fontHeightLG:z,lineHeightLG:I}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},mn(e)),_E(e,r,F,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},MM(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},_E(e,m,z,i)),{[`${t}-input > input`]:{fontSize:p,lineHeight:I}}),"&-small":Object.assign({},_E(e,h,F,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:d,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:b,background:x,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ae(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},mn(e)),Fje(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, - &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, - &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:G2},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:U2},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:K2},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:q2},[`${t}-panel > ${t}-time-panel`]:{paddingTop:_},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},oJ(e,$,D)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:E,boxShadow:P,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:N,maxWidth:R,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${ae(a)} ${o} ${j}`,li:Object.assign(Object.assign({},Fa),{borderRadius:M,paddingInline:g,paddingBlock:e.calc(h).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:w},"&:hover":{background:O}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${ae(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Pl(e,"slide-up"),Pl(e,"slide-down"),gp(e,"move-up"),gp(e,"move-down")]},Dee=un("DatePicker",e=>{const t=Yt(p1(e),Lje(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Aje(t),Wje(t),Hje(t),Vje(t),Dje(t),wf(e,{focusElCls:`${e.componentCls}-focused`})]},zje),C_=u.createContext(null);var Uje=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,c=l===void 0?"center":l,d=u.useState(),f=ie(d,2),m=f[0],p=f[1],h=u.useRef(),v=L.useCallback(function(w){return typeof s=="function"?s(w):typeof s=="number"?s:w},[s]);function g(){tn.cancel(h.current)}return u.useEffect(function(){var w={};if(n)if(r){w.width=v(n.width);var y=i?"right":"left";c==="start"&&(w[y]=n[y]),c==="center"&&(w[y]=n[y]+n.width/2,w.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(w[y]=n[y]+n.width,w.transform="translateX(-100%)")}else w.height=v(n.height),c==="start"&&(w.top=n.top),c==="center"&&(w.top=n.top+n.height/2,w.transform="translateY(-50%)"),c==="end"&&(w.top=n.top+n.height,w.transform="translateY(-100%)");return g(),h.current=tn(function(){p(w)}),g},[n,r,i,c,v]),{style:m}},M9={width:0,height:0,left:0,top:0};function qje(e,t,n){return u.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||M9,o=a.left+a.width,s=0;sO?(M=E,S.current="x"):(M=P,S.current="y"),t(-M,-M)&&$.preventDefault()}var k=u.useRef(null);k.current={onTouchStart:b,onTouchMove:x,onTouchEnd:C,onWheel:_},u.useEffect(function(){function $(j){k.current.onTouchStart(j)}function E(j){k.current.onTouchMove(j)}function P(j){k.current.onTouchEnd(j)}function M(j){k.current.onWheel(j)}return document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",E),document.removeEventListener("touchend",P)}},[])}function jee(e){var t=u.useState(0),n=ie(t,2),r=n[0],i=n[1],a=u.useRef(0),o=u.useRef();return o.current=e,Nd(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function Yje(e){var t=u.useRef([]),n=u.useState({}),r=ie(n,2),i=r[1],a=u.useRef(typeof e=="function"?e():e),o=jee(function(){var l=a.current;t.current.forEach(function(c){l=c(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var F9={width:0,height:0,left:0,top:0,right:0};function Xje(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,d,f,m;return["top","bottom"].includes(l)?(d="width",f=c?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),u.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,h=p,v=0;vMath.floor(m+t)){h=v-1;break}}for(var w=0,y=p-1;y>=0;y-=1){var b=e.get(s[y].key)||F9;if(b[f]=h?[0,0]:[w,h]},[e,t,r,i,a,m,l,s.map(function(p){return p.key}).join("_"),c])}function A9(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Qje="TABS_DQ";function Fee(e){return String(e).replace(/"/g,Qje)}function jM(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Aee=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),L9=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return mt(i)==="object"&&!u.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),Zje=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,p=e.rtl,h=e.removeAriaLabel,v=e.onTabClick,g=e.getPopupContainer,w=e.popupClassName,y=u.useState(!1),b=ie(y,2),x=b[0],C=b[1],S=u.useState(null),_=ie(S,2),k=_[0],$=_[1],E=l.icon,P=E===void 0?"More":E,M="".concat(r,"-more-popup"),j="".concat(n,"-dropdown"),O=k!==null?"".concat(M,"-").concat(k):null,N=a==null?void 0:a.dropdownAriaLabel;function R(B,W){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:W,event:B})}var D=u.createElement(nh,{onClick:function(W){var U=W.key,X=W.domEvent;v(U,X),C(!1)},prefixCls:"".concat(j,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[k],"aria-label":N!==void 0?N:"expanded dropdown"},i.map(function(B){var W=B.closable,U=B.disabled,X=B.closeIcon,q=B.key,Y=B.label,re=jM(W,X,f,U);return u.createElement(f1,{key:q,id:"".concat(M,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:U},u.createElement("span",null,Y),re&&u.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(Q){Q.stopPropagation(),R(Q,q)}},X||f.removeIcon||"×"))}));function F(B){for(var W=i.filter(function(re){return!re.disabled}),U=W.findIndex(function(re){return re.key===k})||0,X=W.length,q=0;qLe?"left":"right"})}),j=ie(M,2),O=j[0],N=j[1],R=N9(0,function(Je,Le){!P&&v&&v({direction:Je>Le?"top":"bottom"})}),D=ie(R,2),F=D[0],z=D[1],I=u.useState([0,0]),H=ie(I,2),V=H[0],B=H[1],W=u.useState([0,0]),U=ie(W,2),X=U[0],q=U[1],Y=u.useState([0,0]),re=ie(Y,2),G=re[0],Q=re[1],J=u.useState([0,0]),Z=ie(J,2),ee=Z[0],te=Z[1],le=Yje(new Map),oe=ie(le,2),de=oe[0],pe=oe[1],ye=qje(b,de,X[0]),me=Ub(V,P),xe=Ub(X,P),ue=Ub(G,P),ce=Ub(ee,P),$e=Math.floor(me)ke?ke:Je}var Ee=u.useRef(null),De=u.useState(),we=ie(De,2),be=we[0],Pe=we[1];function Re(){Pe(Date.now())}function _e(){Ee.current&&clearTimeout(Ee.current)}Kje(_,function(Je,Le){function ot(vt,Et){vt(function(It){var St=Se(It+Et);return St})}return $e?(P?ot(N,Je):ot(z,Le),_e(),Re(),!0):!1}),u.useEffect(function(){return _e(),be&&(Ee.current=setTimeout(function(){Pe(0)},100)),_e},[be]);var je=Xje(ye,se,P?O:F,xe,ue,ce,A(A({},e),{},{tabs:b})),He=ie(je,2),Be=He[0],ct=He[1],Ve=Ht(function(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,Le=ye.get(Je)||{width:0,height:0,left:0,right:0,top:0};if(P){var ot=O;s?Le.rightO+se&&(ot=Le.right+Le.width-se):Le.left<-O?ot=-Le.left:Le.left+Le.width>-O+se&&(ot=-(Le.left+Le.width-se)),z(0),N(Se(ot))}else{var vt=F;Le.top<-F?vt=-Le.top:Le.top+Le.height>-F+se&&(vt=-(Le.top+Le.height-se)),N(0),z(Se(vt))}}),Ye=u.useState(),Ne=ie(Ye,2),Ae=Ne[0],et=Ne[1],nt=u.useState(!1),rt=ie(nt,2),it=rt[0],ge=rt[1],Te=b.filter(function(Je){return!Je.disabled}).map(function(Je){return Je.key}),Ce=function(Le){var ot=Te.indexOf(Ae||o),vt=Te.length,Et=(ot+Le+vt)%vt,It=Te[Et];et(It)},Ie=function(Le){var ot=Le.code,vt=s&&P,Et=Te[0],It=Te[Te.length-1];switch(ot){case"ArrowLeft":{P&&Ce(vt?1:-1);break}case"ArrowRight":{P&&Ce(vt?-1:1);break}case"ArrowUp":{Le.preventDefault(),P||Ce(-1);break}case"ArrowDown":{Le.preventDefault(),P||Ce(1);break}case"Home":{Le.preventDefault(),et(Et);break}case"End":{Le.preventDefault(),et(It);break}case"Enter":case"Space":{Le.preventDefault(),h(Ae,Le);break}case"Backspace":case"Delete":{var St=Te.indexOf(Ae),at=b.find(function(At){return At.key===Ae}),_t=jM(at==null?void 0:at.closable,at==null?void 0:at.closeIcon,c,at==null?void 0:at.disabled);_t&&(Le.preventDefault(),Le.stopPropagation(),c.onEdit("remove",{key:Ae,event:Le}),St===Te.length-1?Ce(-1):Ce(1));break}}},Ke={};P?Ke[s?"marginRight":"marginLeft"]=m:Ke.marginTop=m;var Xe=b.map(function(Je,Le){var ot=Je.key;return u.createElement(eFe,{id:i,prefixCls:y,key:ot,tab:Je,style:Le===0?void 0:Ke,closable:Je.closable,editable:c,active:ot===o,focus:ot===Ae,renderWrapper:p,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:Te.length,currentPosition:Le+1,onClick:function(Et){h(ot,Et)},onKeyDown:Ie,onFocus:function(){it||et(ot),Ve(ot),Re(),_.current&&(s||(_.current.scrollLeft=0),_.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(){ge(!0)},onMouseUp:function(){ge(!1)}})}),lt=function(){return pe(function(){var Le,ot=new Map,vt=(Le=k.current)===null||Le===void 0?void 0:Le.getBoundingClientRect();return b.forEach(function(Et){var It,St=Et.key,at=(It=k.current)===null||It===void 0?void 0:It.querySelector('[data-node-key="'.concat(Fee(St),'"]'));if(at){var _t=tFe(at,vt),At=ie(_t,4),Dt=At[0],Jt=At[1],pn=At[2],gn=At[3];ot.set(St,{width:Dt,height:Jt,left:pn,top:gn})}}),ot})};u.useEffect(function(){lt()},[b.map(function(Je){return Je.key}).join("_")]);var tt=jee(function(){var Je=Qf(x),Le=Qf(C),ot=Qf(S);B([Je[0]-Le[0]-ot[0],Je[1]-Le[1]-ot[1]]);var vt=Qf(E);Q(vt);var Et=Qf($);te(Et);var It=Qf(k);q([It[0]-vt[0],It[1]-vt[1]]),lt()}),Qe=b.slice(0,Be),Ge=b.slice(ct+1),st=[].concat(Fe(Qe),Fe(Ge)),pt=ye.get(o),yt=Uje({activeTabOffset:pt,horizontal:P,indicator:g,rtl:s}),zt=yt.style;u.useEffect(function(){Ve()},[o,ve,ke,A9(pt),A9(ye),P]),u.useEffect(function(){tt()},[s]);var $t=!!st.length,ze="".concat(y,"-nav-wrap"),fe,Me,We,wt;return P?s?(Me=O>0,fe=O!==ke):(fe=O<0,Me=O!==ve):(We=F<0,wt=F!==ve),u.createElement(bi,{onResize:tt},u.createElement("div",{ref:Ec(t,x),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:ne("".concat(y,"-nav"),n),style:r,onKeyDown:function(){Re()}},u.createElement(L9,{ref:C,position:"left",extra:l,prefixCls:y}),u.createElement(bi,{onResize:tt},u.createElement("div",{className:ne(ze,K(K(K(K({},"".concat(ze,"-ping-left"),fe),"".concat(ze,"-ping-right"),Me),"".concat(ze,"-ping-top"),We),"".concat(ze,"-ping-bottom"),wt)),ref:_},u.createElement(bi,{onResize:tt},u.createElement("div",{ref:k,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(O,"px, ").concat(F,"px)"),transition:be?"none":void 0}},Xe,u.createElement(Aee,{ref:E,prefixCls:y,locale:d,editable:c,style:A(A({},Xe.length===0?void 0:Ke),{},{visibility:$t?"hidden":null})}),u.createElement("div",{className:ne("".concat(y,"-ink-bar"),K({},"".concat(y,"-ink-bar-animated"),a.inkBar)),style:zt}))))),u.createElement(Jje,Oe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:y,tabs:st,className:!$t&&he,tabMoving:!!be})),u.createElement(L9,{ref:S,position:"right",extra:l,prefixCls:y})))}),Lee=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return u.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:ne(n,o&&"".concat(n,"-active"),r),ref:t},l)}),nFe=["renderTabBar"],rFe=["label","key"],iFe=function(t){var n=t.renderTabBar,r=ft(t,nFe),i=u.useContext(C_),a=i.tabs;if(n){var o=A(A({},r),{},{panes:a.map(function(s){var l=s.label,c=s.key,d=ft(s,rFe);return u.createElement(Lee,Oe({tab:l,key:c,tabKey:c},d))})});return n(o,B9)}return u.createElement(B9,r)},aFe=["key","forceRender","style","className","destroyInactiveTabPane"],oFe=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=u.useContext(C_),l=s.prefixCls,c=s.tabs,d=i.tabPane,f="".concat(l,"-tabpane");return u.createElement("div",{className:ne("".concat(l,"-content-holder"))},u.createElement("div",{className:ne("".concat(l,"-content"),"".concat(l,"-content-").concat(a),K({},"".concat(l,"-content-animated"),d))},c.map(function(m){var p=m.key,h=m.forceRender,v=m.style,g=m.className,w=m.destroyInactiveTabPane,y=ft(m,aFe),b=p===r;return u.createElement(Oi,Oe({key:p,visible:b,forceRender:h,removeOnLeave:!!(o||w),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(x,C){var S=x.style,_=x.className;return u.createElement(Lee,Oe({},y,{prefixCls:f,id:n,tabKey:p,animated:d,active:b,style:A(A({},v),S),className:ne(g,_),ref:C}))})})))};function sFe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=A({inkBar:!0},mt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var lFe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],z9=0,cFe=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,p=m===void 0?"top":m,h=e.tabBarGutter,v=e.tabBarStyle,g=e.tabBarExtraContent,w=e.locale,y=e.more,b=e.destroyInactiveTabPane,x=e.renderTabBar,C=e.onChange,S=e.onTabClick,_=e.onTabScroll,k=e.getPopupContainer,$=e.popupClassName,E=e.indicator,P=ft(e,lFe),M=u.useMemo(function(){return(o||[]).filter(function(ee){return ee&&mt(ee)==="object"&&"key"in ee})},[o]),j=s==="rtl",O=sFe(f),N=u.useState(!1),R=ie(N,2),D=R[0],F=R[1];u.useEffect(function(){F(i_())},[]);var z=Ut(function(){var ee;return(ee=M[0])===null||ee===void 0?void 0:ee.key},{value:l,defaultValue:c}),I=ie(z,2),H=I[0],V=I[1],B=u.useState(function(){return M.findIndex(function(ee){return ee.key===H})}),W=ie(B,2),U=W[0],X=W[1];u.useEffect(function(){var ee=M.findIndex(function(le){return le.key===H});if(ee===-1){var te;ee=Math.max(0,Math.min(U,M.length-1)),V((te=M[ee])===null||te===void 0?void 0:te.key)}X(ee)},[M.map(function(ee){return ee.key}).join("_"),H,U]);var q=Ut(null,{value:n}),Y=ie(q,2),re=Y[0],G=Y[1];u.useEffect(function(){n||(G("rc-tabs-".concat(z9)),z9+=1)},[]);function Q(ee,te){S==null||S(ee,te);var le=ee!==H;V(ee),le&&(C==null||C(ee))}var J={id:re,activeKey:H,animated:O,tabPosition:p,rtl:j,mobile:D},Z=A(A({},J),{},{editable:d,locale:w,more:y,tabBarGutter:h,onTabClick:Q,onTabScroll:_,extra:g,style:v,panes:null,getPopupContainer:k,popupClassName:$,indicator:E});return u.createElement(C_.Provider,{value:{tabs:M,prefixCls:i}},u.createElement("div",Oe({ref:t,id:n,className:ne(i,"".concat(i,"-").concat(p),K(K(K({},"".concat(i,"-mobile"),D),"".concat(i,"-editable"),d),"".concat(i,"-rtl"),j),a)},P),u.createElement(iFe,Oe({},Z,{renderTabBar:x})),u.createElement(oFe,Oe({destroyInactiveTabPane:b},J,{animated:O}))))});const uFe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function dFe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},uFe),{motionName:ea(e,"switch")})),n}var fFe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function pFe(e,t){if(e)return e;const n=Lr(t).map(r=>{if(u.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=fFe(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return mFe(n)}const hFe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Pl(e,"slide-up"),Pl(e,"slide-down")]]},vFe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ae(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},Bs(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ae(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ae(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadiusLG)} 0 0 ${ae(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},gFe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},mn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ae(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Fa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ae(e.paddingXXS)} ${ae(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},bFe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ae(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},yFe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadius)} ${ae(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ae(e.borderRadius)} ${ae(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadius)} ${ae(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadius)} 0 0 ${ae(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},wFe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},yo(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},Bs(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},xFe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ae(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ae(e.marginXS)},marginLeft:{_skip_check_:!0,value:ae(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},SFe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:ae(e.paddingXS),background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},yo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),wFe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},yo(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},CFe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},_Fe=un("Tabs",e=>{const t=Yt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ae(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ae(e.horizontalItemGutter)}`});return[yFe(t),xFe(t),bFe(t),gFe(t),vFe(t),SFe(t),hFe(t)]},CFe),kFe=()=>null;var $Fe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l,c,d,f;const{type:m,className:p,rootClassName:h,size:v,onEdit:g,hideAdd:w,centered:y,addIcon:b,removeIcon:x,moreIcon:C,more:S,popupClassName:_,children:k,items:$,animated:E,style:P,indicatorSize:M,indicator:j}=e,O=$Fe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:N}=O,{direction:R,tabs:D,getPrefixCls:F,getPopupContainer:z}=u.useContext(Ct),I=F("tabs",N),H=Dn(I),[V,B,W]=_Fe(I,H);let U;m==="editable-card"&&(U={onEdit:(J,Z)=>{let{key:ee,event:te}=Z;g==null||g(J==="add"?te:ee,J)},removeIcon:(t=x??(D==null?void 0:D.removeIcon))!==null&&t!==void 0?t:u.createElement(Ys,null),addIcon:(b??(D==null?void 0:D.addIcon))||u.createElement(bI,null),showAdd:w!==!0});const X=F(),q=Fr(v),Y=pFe($,k),re=dFe(I,E),G=Object.assign(Object.assign({},D==null?void 0:D.style),P),Q={align:(n=j==null?void 0:j.align)!==null&&n!==void 0?n:(r=D==null?void 0:D.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=j==null?void 0:j.size)!==null&&i!==void 0?i:M)!==null&&a!==void 0?a:(o=D==null?void 0:D.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:D==null?void 0:D.indicatorSize};return V(u.createElement(cFe,Object.assign({direction:R,getPopupContainer:z},O,{items:Y,className:ne({[`${I}-${q}`]:q,[`${I}-card`]:["card","editable-card"].includes(m),[`${I}-editable-card`]:m==="editable-card",[`${I}-centered`]:y},D==null?void 0:D.className,p,h,B,W,H),popupClassName:ne(_,B,W,H),style:G,editable:U,more:Object.assign({icon:(f=(d=(c=(l=D==null?void 0:D.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:D==null?void 0:D.moreIcon)!==null&&d!==void 0?d:C)!==null&&f!==void 0?f:u.createElement(e1,null),transitionName:`${X}-slide-up`},S),prefixCls:I,animated:re,indicator:Q})))};Bee.TabPane=kFe;var EFe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=EFe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=u.useContext(Ct),o=a("card",t),s=ne(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},i,{className:s}))},PFe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ae(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},Ls()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Fa),{[` - > ${n}-typography, - > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},TFe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${ae(i)} 0 0 0 ${n}, - 0 ${ae(i)} 0 0 ${n}, - ${ae(i)} ${ae(i)} 0 0 ${n}, - ${ae(i)} 0 0 0 ${n} inset, - 0 ${ae(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},OFe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},Ls()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ae(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:ae(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${a}`}}})},RFe=e=>Object.assign(Object.assign({margin:`${ae(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ls()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Fa),"&-description":{color:e.colorTextDescription}}),IFe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${ae(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ae(e.padding)} ${ae(i)}`}}},MFe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},NFe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:PFe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},Ls()),[`${t}-grid`]:TFe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:OFe(e),[`${t}-meta`]:RFe(e)}),[`${t}-bordered`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:IFe(e),[`${t}-loading`]:MFe(e),[`${t}-rtl`]:{direction:"rtl"}}},DFe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${ae(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},jFe=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},FFe=un("Card",e=>{const t=Yt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[NFe(t),DFe(t)]},jFe);var H9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return u.createElement("ul",{className:t,style:r},n.map((i,a)=>{const o=`action-${a}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:o},u.createElement("span",null,i))}))},LFe=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:d,bordered:f=!0,size:m,type:p,cover:h,actions:v,tabList:g,children:w,activeTabKey:y,defaultActiveTabKey:b,tabBarExtraContent:x,hoverable:C,tabProps:S={},classNames:_,styles:k}=e,$=H9(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:E,direction:P,card:M}=u.useContext(Ct),j=de=>{var pe;(pe=e.onTabChange)===null||pe===void 0||pe.call(e,de)},O=de=>{var pe;return ne((pe=M==null?void 0:M.classNames)===null||pe===void 0?void 0:pe[de],_==null?void 0:_[de])},N=de=>{var pe;return Object.assign(Object.assign({},(pe=M==null?void 0:M.styles)===null||pe===void 0?void 0:pe[de]),k==null?void 0:k[de])},R=u.useMemo(()=>{let de=!1;return u.Children.forEach(w,pe=>{(pe==null?void 0:pe.type)===zee&&(de=!0)}),de},[w]),D=E("card",n),[F,z,I]=FFe(D),H=u.createElement(xf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},w),V=y!==void 0,B=Object.assign(Object.assign({},S),{[V?"activeKey":"defaultActiveKey"]:V?y:b,tabBarExtraContent:x});let W;const U=Fr(m),X=!U||U==="default"?"large":U,q=g?u.createElement(Bee,Object.assign({size:X},B,{className:`${D}-head-tabs`,onChange:j,items:g.map(de=>{var{tab:pe}=de,ye=H9(de,["tab"]);return Object.assign({label:pe},ye)})})):null;if(c||o||q){const de=ne(`${D}-head`,O("header")),pe=ne(`${D}-head-title`,O("title")),ye=ne(`${D}-extra`,O("extra")),me=Object.assign(Object.assign({},s),N("header"));W=u.createElement("div",{className:de,style:me},u.createElement("div",{className:`${D}-head-wrapper`},c&&u.createElement("div",{className:pe,style:N("title")},c),o&&u.createElement("div",{className:ye,style:N("extra")},o)),q)}const Y=ne(`${D}-cover`,O("cover")),re=h?u.createElement("div",{className:Y,style:N("cover")},h):null,G=ne(`${D}-body`,O("body")),Q=Object.assign(Object.assign({},l),N("body")),J=u.createElement("div",{className:G,style:Q},d?H:w),Z=ne(`${D}-actions`,O("actions")),ee=v!=null&&v.length?u.createElement(AFe,{actionClasses:Z,actionStyle:N("actions"),actions:v}):null,te=kn($,["onTabChange"]),le=ne(D,M==null?void 0:M.className,{[`${D}-loading`]:d,[`${D}-bordered`]:f,[`${D}-hoverable`]:C,[`${D}-contain-grid`]:R,[`${D}-contain-tabs`]:g==null?void 0:g.length,[`${D}-${U}`]:U,[`${D}-type-${p}`]:!!p,[`${D}-rtl`]:P==="rtl"},r,i,z,I),oe=Object.assign(Object.assign({},M==null?void 0:M.style),a);return F(u.createElement("div",Object.assign({ref:t},te,{className:le,style:oe}),W,re,J,ee))});var BFe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=BFe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=u.useContext(Ct),l=s("card",t),c=ne(`${l}-meta`,n),d=r?u.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?u.createElement("div",{className:`${l}-meta-title`},i):null,m=a?u.createElement("div",{className:`${l}-meta-description`},a):null,p=f||m?u.createElement("div",{className:`${l}-meta-detail`},f,m):null;return u.createElement("div",Object.assign({},o,{className:c}),d,p)},FM=LFe;FM.Grid=zee;FM.Meta=zFe;function HFe(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,d,f=!1,m=0;function p(){d&&clearTimeout(d)}function h(g){var w=g||{},y=w.upcomingOnly,b=y===void 0?!1:y;p(),f=!b}function v(){for(var g=arguments.length,w=new Array(g),y=0;ye?s?(m=Date.now(),a||(d=setTimeout(c?S:C,e))):C():a!==!0&&(d=setTimeout(c?S:C,c===void 0?e-x:e))}return v.cancel=h,v}function VFe(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return HFe(e,t,{debounceMode:a!==!1})}var oh=u.createContext({}),Hm="__rc_cascader_search_mark__",WFe=function(t,n,r){var i=r.label,a=i===void 0?"":i;return n.some(function(o){return String(o[a]).toLowerCase().includes(t.toLowerCase())})},UFe=function(t,n,r,i){return n.map(function(a){return a[i.label]}).join(" / ")},qFe=function(t,n,r,i,a,o){var s=a.filter,l=s===void 0?WFe:s,c=a.render,d=c===void 0?UFe:c,f=a.limit,m=f===void 0?50:f,p=a.sort;return u.useMemo(function(){var h=[];if(!t)return[];function v(g,w){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;g.forEach(function(b){if(!(!p&&m!==!1&&m>0&&h.length>=m)){var x=[].concat(Fe(w),[b]),C=b[r.children],S=y||b.disabled;if((!C||C.length===0||o)&&l(t,x,{label:r.label})){var _;h.push(A(A({},b),{},(_={disabled:S},K(_,r.label,d(t,x,i,r)),K(_,Hm,x),K(_,r.children,void 0),_)))}C&&v(b[r.children],x,S)}})}return v(n,[]),p&&h.sort(function(g,w){return p(g[Hm],w[Hm],t,r)}),m!==!1&&m>0?h.slice(0,m):h},[t,n,r,i,d,o,l,p,m])},AM="__RC_CASCADER_SPLIT__",Hee="SHOW_PARENT",Vee="SHOW_CHILD";function Rs(e){return e.join(AM)}function yp(e){return e.map(Rs)}function GFe(e){return e.split(AM)}function Wee(e){var t=e||{},n=t.label,r=t.value,i=t.children,a=r||"value";return{label:n||"label",value:a,key:a,children:i||"children"}}function Ov(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function KFe(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Uee(e,t){return e.map(function(n){var r;return(r=n[Hm])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function YFe(e){return Array.isArray(e)&&Array.isArray(e[0])}function Kx(e){return e?YFe(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function qee(e,t,n){var r=new Set(e),i=t();return e.filter(function(a){var o=i[a],s=o?o.parent:null,l=o?o.children:null;return o&&o.node.disabled?!0:n===Vee?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function wp(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,a=[],o=function(){var c,d,f,m=e[s],p=(c=i)===null||c===void 0?void 0:c.findIndex(function(v){var g=v[n.value];return r?String(g)===String(m):g===m}),h=p!==-1?(d=i)===null||d===void 0?void 0:d[p]:null;a.push({value:(f=h==null?void 0:h[n.value])!==null&&f!==void 0?f:m,index:p,option:h}),i=h==null?void 0:h[n.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,p){for(var h=Kee(f?f.pos:"0",p),v=g1(m[a],h),g,w=0;w1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=a||l,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),JFe(e,function(p){var h=p.node,v=p.index,g=p.pos,w=p.key,y=p.parentPos,b=p.level,x=p.nodes,C={node:h,nodes:x,index:v,key:w,pos:g,level:b},S=g1(w,g);d[g]=C,f[S]=C,C.parent=d[y],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,m)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),i&&i(m),m}function tg(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,d=t.keyEntities,f=Pa(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return m}function ri(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,p=e.eventKey,h=A(A({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:d,pos:f,active:m,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Fn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}const eAe=function(e,t){var n=u.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=u.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=b1(e,{fieldNames:t,initWrapper:function(a){return A(A({},a),{},{pathKeyEntities:{}})},processEntity:function(a,o){var s=a.nodes.map(function(l){return l[t.value]}).join(AM);o.pathKeyEntities[s]=a,a.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function Xee(e,t){var n=u.useMemo(function(){return t||[]},[t]),r=eAe(n,e),i=u.useCallback(function(a){var o=r();return a.map(function(s){var l=o[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,i]}function tAe(e){return u.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&mt(e)==="object"&&(t=A(A({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function Qee(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function nAe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function rAe(e,t,n,r){for(var i=new Set(e),a=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var m=f.key,p=f.node,h=f.children,v=h===void 0?[]:h;i.has(m)&&!r(p)&&v.filter(function(g){return!r(g.node)}).forEach(function(g){i.add(g.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var d=t.get(c)||new Set;d.forEach(function(f){var m=f.parent,p=f.node;if(!(r(p)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(m.key);return}var h=!0,v=!1;(m.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var w=g.key,y=i.has(w);h&&!y&&(h=!1),!v&&(y||a.has(w))&&(v=!0)}),h&&i.add(m.key),v&&a.add(m.key),l.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Qee(a,i))}}function iAe(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(m){var p=m.key,h=m.node,v=m.children,g=v===void 0?[]:v;!a.has(p)&&!o.has(p)&&!i(h)&&g.filter(function(w){return!i(w.node)}).forEach(function(w){a.delete(w.key)})})}o=new Set;for(var c=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var p=m.parent,h=m.node;if(!(i(h)||!m.parent||c.has(m.parent.key))){if(i(m.parent.node)){c.add(p.key);return}var v=!0,g=!1;(p.children||[]).filter(function(w){return!i(w.node)}).forEach(function(w){var y=w.key,b=a.has(y);v&&!b&&(v=!1),!g&&(b||o.has(y))&&(g=!0)}),v||a.delete(p.key),g&&o.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Qee(o,a))}}function Vo(e,t,n,r){var i=[],a;r?a=r:a=nAe;var o=new Set(e.filter(function(d){var f=!!Pa(n,d);return f||i.push(d),f})),s=new Map,l=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,p=s.get(m);p||(p=new Set,s.set(m,p)),p.add(f),l=Math.max(l,m)}),Fn(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var c;return t===!0?c=rAe(o,s,l,a):c=iAe(o,t.halfCheckedKeys,s,l,a),c}function Zee(e,t,n,r,i,a,o,s){return function(l){if(!e)t(l);else{var c=Rs(l),d=yp(n),f=yp(r),m=d.includes(c),p=i.some(function(S){return Rs(S)===c}),h=n,v=i;if(p&&!m)v=i.filter(function(S){return Rs(S)!==c});else{var g=m?d.filter(function(S){return S!==c}):[].concat(Fe(d),[c]),w=a(),y;if(m){var b=Vo(g,{checked:!1,halfCheckedKeys:f},w);y=b.checkedKeys}else{var x=Vo(g,!0,w);y=x.checkedKeys}var C=qee(y,a,s);h=o(C)}t([].concat(Fe(v),Fe(h)))}}}function Jee(e,t,n,r,i){return u.useMemo(function(){var a=i(t),o=ie(a,2),s=o[0],l=o[1];if(!e||!t.length)return[s,[],l];var c=yp(s),d=n(),f=Vo(c,!0,d),m=f.checkedKeys,p=f.halfCheckedKeys;return[r(m),r(p),l]},[e,t,n,r,i])}var aAe=u.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function oAe(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,a=e.disabled,o=e.onClick,s=e.disableCheckbox,l=u.useContext(oh),c=l.checkable,d=typeof c!="boolean"?c:null;return u.createElement("span",{className:ne("".concat(n),(t={},K(t,"".concat(n,"-checked"),r),K(t,"".concat(n,"-indeterminate"),!r&&i),K(t,"".concat(n,"-disabled"),a||s),t)),onClick:o},d)}var ete="__cascader_fix_label__";function sAe(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,a=e.prevValuePath,o=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,m=e.isSelectable,p=e.disabled,h="".concat(t,"-menu"),v="".concat(t,"-menu-item"),g=u.useContext(oh),w=g.fieldNames,y=g.changeOnSelect,b=g.expandTrigger,x=g.expandIcon,C=g.loadingIcon,S=g.dropdownMenuColumnStyle,_=g.optionRender,k=b==="hover",$=function(M){return p||M},E=u.useMemo(function(){return r.map(function(P){var M,j=P.disabled,O=P.disableCheckbox,N=P[Hm],R=(M=P[ete])!==null&&M!==void 0?M:P[w.label],D=P[w.value],F=Ov(P,w),z=N?N.map(function(W){return W[w.value]}):[].concat(Fe(a),[D]),I=Rs(z),H=f.includes(I),V=c.has(I),B=d.has(I);return{disabled:j,label:R,value:D,isLeaf:F,isLoading:H,checked:V,halfChecked:B,option:P,disableCheckbox:O,fullPath:z,fullPathKey:I}})},[r,c,w,d,f,a]);return u.createElement("ul",{className:h,role:"menu"},E.map(function(P){var M,j=P.disabled,O=P.label,N=P.value,R=P.isLeaf,D=P.isLoading,F=P.checked,z=P.halfChecked,I=P.option,H=P.fullPath,V=P.fullPathKey,B=P.disableCheckbox,W=function(){if(!$(j)){var Y=Fe(H);k&&R&&Y.pop(),l(Y)}},U=function(){m(I)&&!$(j)&&s(H,R)},X;return typeof I.title=="string"?X=I.title:typeof O=="string"&&(X=O),u.createElement("li",{key:V,className:ne(v,(M={},K(M,"".concat(v,"-expand"),!R),K(M,"".concat(v,"-active"),i===N||i===V),K(M,"".concat(v,"-disabled"),$(j)),K(M,"".concat(v,"-loading"),D),M)),style:S,role:"menuitemcheckbox",title:X,"aria-checked":F,"data-path-key":V,onClick:function(){W(),!B&&(!n||R)&&U()},onDoubleClick:function(){y&&o(!1)},onMouseEnter:function(){k&&W()},onMouseDown:function(Y){Y.preventDefault()}},n&&u.createElement(oAe,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:z,disabled:$(j)||B,disableCheckbox:B,onClick:function(Y){B||(Y.stopPropagation(),U())}}),u.createElement("div",{className:"".concat(v,"-content")},_?_(I):O),!D&&x&&!R&&u.createElement("div",{className:"".concat(v,"-expand-icon")},x),D&&C&&u.createElement("div",{className:"".concat(v,"-loading-icon")},C))}))}var lAe=function(t,n){var r=u.useContext(oh),i=r.values,a=i[0],o=u.useState([]),s=ie(o,2),l=s[0],c=s[1];return u.useEffect(function(){t||c(a||[])},[n,a]),[l,c]};const cAe=function(e,t,n,r,i,a,o){var s=o.direction,l=o.searchValue,c=o.toggleOpen,d=o.open,f=s==="rtl",m=u.useMemo(function(){for(var S=-1,_=t,k=[],$=[],E=r.length,P=Uee(t,n),M=function(D){var F=_.findIndex(function(z,I){return(P[I]?Rs(P[I]):z[n.value])===r[D]});if(F===-1)return 1;S=F,k.push(S),$.push(r[D]),_=_[S][n.children]},j=0;j1){var _=h.slice(0,-1);y(_)}else c(!1)},C=function(){var _,k=((_=g[v])===null||_===void 0?void 0:_[n.children])||[],$=k.find(function(P){return!P.disabled});if($){var E=[].concat(Fe(h),[$[n.value]]);y(E)}};u.useImperativeHandle(e,function(){return{onKeyDown:function(_){var k=_.which;switch(k){case qe.UP:case qe.DOWN:{var $=0;k===qe.UP?$=-1:k===qe.DOWN&&($=1),$!==0&&b($);break}case qe.LEFT:{if(l)break;f?C():x();break}case qe.RIGHT:{if(l)break;f?x():C();break}case qe.BACKSPACE:{l||x();break}case qe.ENTER:{if(h.length){var E=g[v],P=(E==null?void 0:E[Hm])||[];P.length?a(P.map(function(M){return M[n.value]}),P[P.length-1]):a(h,g[v])}break}case qe.ESC:c(!1),d&&_.stopPropagation()}},onKeyUp:function(){}}})};var tte=u.forwardRef(function(e,t){var n,r,i,a=e.prefixCls,o=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,d=e.direction,f=e.open,m=e.disabled,p=u.useRef(null),h=d==="rtl",v=u.useContext(oh),g=v.options,w=v.values,y=v.halfValues,b=v.fieldNames,x=v.changeOnSelect,C=v.onSelect,S=v.searchOptions,_=v.dropdownPrefixCls,k=v.loadData,$=v.expandTrigger,E=_||a,P=u.useState([]),M=ie(P,2),j=M[0],O=M[1],N=function(ee){if(!(!k||s)){var te=wp(ee,g,b),le=te.map(function(pe){var ye=pe.option;return ye}),oe=le[le.length-1];if(oe&&!Ov(oe,b)){var de=Rs(ee);O(function(pe){return[].concat(Fe(pe),[de])}),k(le)}}};u.useEffect(function(){j.length&&j.forEach(function(Z){var ee=GFe(Z),te=wp(ee,g,b,!0).map(function(oe){var de=oe.option;return de}),le=te[te.length-1];(!le||le[b.children]||Ov(le,b))&&O(function(oe){return oe.filter(function(de){return de!==Z})})})},[g,j,b]);var R=u.useMemo(function(){return new Set(yp(w))},[w]),D=u.useMemo(function(){return new Set(yp(y))},[y]),F=lAe(o,f),z=ie(F,2),I=z[0],H=z[1],V=function(ee){H(ee),N(ee)},B=function(ee){if(m)return!1;var te=ee.disabled,le=Ov(ee,b);return!te&&(le||x||o)},W=function(ee,te){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;C(ee),!o&&(te||x&&($==="hover"||le))&&l(!1)},U=u.useMemo(function(){return s?S:g},[s,S,g]),X=u.useMemo(function(){for(var Z=[{options:U}],ee=U,te=Uee(ee,b),le=function(){var pe=I[oe],ye=ee.find(function(xe,ue){return(te[ue]?Rs(te[ue]):xe[b.value])===pe}),me=ye==null?void 0:ye[b.children];if(!(me!=null&&me.length))return 1;ee=me,Z.push({options:me})},oe=0;oe":w,b=n.loadingIcon,x=n.direction,C=n.notFoundContent,S=C===void 0?"Not Found":C,_=n.disabled,k=!!l,$=Ut(c,{value:d,postState:Kx}),E=ie($,2),P=E[0],M=E[1],j=u.useMemo(function(){return Wee(f)},[JSON.stringify(f)]),O=Xee(j,s),N=ie(O,3),R=N[0],D=N[1],F=N[2],z=Gee(R,j),I=Jee(k,P,D,F,z),H=ie(I,3),V=H[0],B=H[1],W=H[2],U=Ht(function(Q){if(M(Q),p){var J=Kx(Q),Z=J.map(function(le){return wp(le,R,j).map(function(oe){return oe.option})}),ee=k?J:J[0],te=k?Z:Z[0];p(ee,te)}}),X=Zee(k,U,V,B,W,D,F,h),q=Ht(function(Q){X(Q)}),Y=u.useMemo(function(){return{options:R,fieldNames:j,values:V,halfValues:B,changeOnSelect:m,onSelect:q,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:v,expandTrigger:g,expandIcon:y,loadingIcon:b,dropdownMenuColumnStyle:void 0}},[R,j,V,B,m,q,l,v,g,y,b]),re="".concat(i,"-panel"),G=!R.length;return u.createElement(oh.Provider,{value:Y},u.createElement("div",{className:ne(re,(t={},K(t,"".concat(re,"-rtl"),x==="rtl"),K(t,"".concat(re,"-empty"),G),t),o),style:a},G?S:u.createElement(tte,{prefixCls:i,searchValue:"",multiple:k,toggleOpen:dAe,open:!0,direction:x,disabled:_})))}var fAe=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],y1=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,a=e.fieldNames,o=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,d=e.displayRender,f=e.checkable,m=e.autoClearSearchValue,p=m===void 0?!0:m,h=e.searchValue,v=e.onSearch,g=e.showSearch,w=e.expandTrigger,y=e.options,b=e.dropdownPrefixCls,x=e.loadData,C=e.popupVisible,S=e.open,_=e.popupClassName,k=e.dropdownClassName,$=e.dropdownMenuColumnStyle,E=e.dropdownStyle,P=e.popupPlacement,M=e.placement,j=e.onDropdownVisibleChange,O=e.onPopupVisibleChange,N=e.expandIcon,R=N===void 0?">":N,D=e.loadingIcon,F=e.children,z=e.dropdownMatchSelectWidth,I=z===void 0?!1:z,H=e.showCheckedStrategy,V=H===void 0?Hee:H,B=e.optionRender,W=ft(e,fAe),U=oM(n),X=!!f,q=Ut(o,{value:s,postState:Kx}),Y=ie(q,2),re=Y[0],G=Y[1],Q=u.useMemo(function(){return Wee(a)},[JSON.stringify(a)]),J=Xee(Q,y),Z=ie(J,3),ee=Z[0],te=Z[1],le=Z[2],oe=Ut("",{value:h,postState:function(nt){return nt||""}}),de=ie(oe,2),pe=de[0],ye=de[1],me=function(nt,rt){ye(nt),rt.source!=="blur"&&v&&v(nt)},xe=tAe(g),ue=ie(xe,2),ce=ue[0],$e=ue[1],se=qFe(pe,ee,Q,b||i,$e,l||X),he=Gee(ee,Q),ve=Jee(X,re,te,le,he),ke=ie(ve,3),Se=ke[0],Ee=ke[1],De=ke[2],we=u.useMemo(function(){var et=yp(Se),nt=qee(et,te,V);return[].concat(Fe(De),Fe(le(nt)))},[Se,te,le,De,V]),be=XFe(we,ee,Q,X,d),Pe=Ht(function(et){if(G(et),c){var nt=Kx(et),rt=nt.map(function(Te){return wp(Te,ee,Q).map(function(Ce){return Ce.option})}),it=X?nt:nt[0],ge=X?rt:rt[0];c(it,ge)}}),Re=Zee(X,Pe,Se,Ee,De,te,le,V),_e=Ht(function(et){(!X||p)&&ye(""),Re(et)}),je=function(nt,rt){if(rt.type==="clear"){Pe([]);return}var it=rt.values[0],ge=it.valueCells;_e(ge)},He=S!==void 0?S:C,Be=k||_,ct=M||P,Ve=function(nt){j==null||j(nt),O==null||O(nt)},Ye=u.useMemo(function(){return{options:ee,fieldNames:Q,values:Se,halfValues:Ee,changeOnSelect:l,onSelect:_e,checkable:f,searchOptions:se,dropdownPrefixCls:b,loadData:x,expandTrigger:w,expandIcon:R,loadingIcon:D,dropdownMenuColumnStyle:$,optionRender:B}},[ee,Q,Se,Ee,l,_e,f,se,b,x,w,R,D,$,B]),Ne=!(pe?se:ee).length,Ae=pe&&$e.matchInputWidth||Ne?{}:{minWidth:"auto"};return u.createElement(oh.Provider,{value:Ye},u.createElement(rM,Oe({},W,{ref:t,id:U,prefixCls:i,autoClearSearchValue:p,dropdownMatchSelectWidth:I,dropdownStyle:A(A({},Ae),E),displayValues:be,onDisplayValuesChange:je,mode:X?"multiple":void 0,searchValue:pe,onSearch:me,showSearch:ce,OptionList:uAe,emptyOptions:Ne,open:He,dropdownClassName:Be,placement:ct,onDropdownVisibleChange:Ve,getRawInputElement:function(){return F}})))});y1.SHOW_PARENT=Hee;y1.SHOW_CHILD=Vee;y1.Panel=nte;function rte(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=u.useContext(Ct),a=t||r,o=n("select",e),s=n("cascader",e);return[o,s,a,i]}function ite(e,t){return u.useMemo(()=>t?u.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const ate=(e,t,n)=>{let r=n;n||(r=t?u.createElement(Eu,null):u.createElement(Fs,null));const i=u.createElement("span",{className:`${e}-menu-item-loading-icon`},u.createElement(js,{spin:!0}));return u.useMemo(()=>[r,i],[r])},mAe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},mn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},mn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Bs(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` - ${n}:not(${n}-disabled), - ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` - ${n}-checked:not(${n}-disabled), - ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function __(e,t){const n=Yt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[mAe(n)]}const ote=un("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[__(n,e)]}),ste=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=` - &${r}-expand ${r}-expand-icon, - ${r}-loading-icon -`;return[__(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Fa),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},pAe=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},ste(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},wf(e)]},lte=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},cte=un("Cascader",e=>[pAe(e)],lte),hAe=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[ste(e),{display:"inline-flex",border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},vAe=iQ(["Cascader","Panel"],e=>hAe(e),lte);function gAe(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,disabled:l}=e,c=u.useContext(Br),d=l??c,[f,m,p,h]=rte(t,o),v=Dn(m),[g,w,y]=cte(m,v);vAe(m);const b=p==="rtl",[x,C]=ate(f,b,s),S=a||(h==null?void 0:h("Cascader"))||u.createElement(d1,{componentName:"Cascader"}),_=ite(m,r);return g(u.createElement(nte,Object.assign({},e,{checkable:_,prefixCls:m,className:ne(n,w,i,y,v),notFoundContent:S,direction:p,expandIcon:x,loadingIcon:C,disabled:d})))}var bAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);il===0?[s]:[].concat(Fe(o),[t,s]),[]),i=[];let a=0;return r.forEach((o,s)=>{const l=a+o.length;let c=e.slice(a,l);a=l,s%2===1&&(c=u.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const SAe=(e,t,n,r)=>{const i=[],a=e.toLowerCase();return t.forEach((o,s)=>{s!==0&&i.push(" / ");let l=o[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=xAe(String(l),a,n)),i.push(l)}),i},sh=u.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:a,className:o,rootClassName:s,multiple:l,bordered:c=!0,transitionName:d,choiceTransitionName:f="",popupClassName:m,dropdownClassName:p,expandIcon:h,placement:v,showSearch:g,allowClear:w=!0,notFoundContent:y,direction:b,getPopupContainer:x,status:C,showArrow:S,builtinPlacements:_,style:k,variant:$}=e,E=bAe(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),P=kn(E,["suffixIcon"]),{getPopupContainer:M,getPrefixCls:j,popupOverflow:O,cascader:N}=u.useContext(Ct),{status:R,hasFeedback:D,isFormItemInput:F,feedbackIcon:z}=u.useContext(Qr),I=Pc(R,C),[H,V,B,W]=rte(r,b),U=B==="rtl",X=j(),q=Dn(H),[Y,re,G]=cM(H,q),Q=Dn(V),[J]=cte(V,Q),{compactSize:Z,compactItemClassnames:ee}=Qs(H,b),[te,le]=Tc("cascader",$,c),oe=y||(W==null?void 0:W("Cascader"))||u.createElement(d1,{componentName:"Cascader"}),de=ne(m||p,`${V}-dropdown`,{[`${V}-dropdown-rtl`]:B==="rtl"},s,q,Q,re,G),pe=u.useMemo(()=>{if(!g)return g;let be={render:SAe};return typeof g=="object"&&(be=Object.assign(Object.assign({},be),g)),be},[g]),ye=Fr(be=>{var Pe;return(Pe=i??Z)!==null&&Pe!==void 0?Pe:be}),me=u.useContext(Br),xe=a??me,[ue,ce]=ate(H,U,h),$e=ite(V,l),se=uM(e.suffixIcon,S),{suffixIcon:he,removeIcon:ve,clearIcon:ke}=s_(Object.assign(Object.assign({},e),{hasFeedback:D,feedbackIcon:z,showSuffixIcon:se,multiple:l,prefixCls:H,componentName:"Cascader"})),Se=u.useMemo(()=>v!==void 0?v:U?"bottomRight":"bottomLeft",[v,U]),Ee=w===!0?{clearIcon:ke}:w,[De]=Xs("SelectLike",(n=P.dropdownStyle)===null||n===void 0?void 0:n.zIndex),we=u.createElement(y1,Object.assign({prefixCls:H,className:ne(!r&&V,{[`${H}-lg`]:ye==="large",[`${H}-sm`]:ye==="small",[`${H}-rtl`]:U,[`${H}-${te}`]:le,[`${H}-in-form-item`]:F},Hs(H,I,D),ee,N==null?void 0:N.className,o,s,q,Q,re,G),disabled:xe,style:Object.assign(Object.assign({},N==null?void 0:N.style),k)},P,{builtinPlacements:lM(_,O),direction:B,placement:Se,notFoundContent:oe,allowClear:Ee,showSearch:pe,expandIcon:ue,suffixIcon:he,removeIcon:ve,loadingIcon:ce,checkable:$e,dropdownClassName:de,dropdownPrefixCls:r||V,dropdownStyle:Object.assign(Object.assign({},P.dropdownStyle),{zIndex:De}),choiceTransitionName:ea(X,"",f),transitionName:ea(X,"slide-up",d),getPopupContainer:x||M,ref:t}));return J(Y(we))}),CAe=Bu(sh,"dropdownAlign",e=>kn(e,["visible"]));sh.SHOW_PARENT=wAe;sh.SHOW_CHILD=yAe;sh.Panel=gAe;sh._InternalPanelDoNotUseOrYouWillBeFired=CAe;const ute=L.createContext(null);var _Ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,rootClassName:a,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,p=_Ae(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:g}=u.useContext(Ct),w=u.useContext(ute),{isFormItemInput:y}=u.useContext(Qr),b=u.useContext(Br),x=(n=(w==null?void 0:w.disabled)||m)!==null&&n!==void 0?n:b,C=u.useRef(p.value),S=u.useRef(null),_=di(t,S);u.useEffect(()=>{w==null||w.registerValue(p.value)},[]),u.useEffect(()=>{if(!f)return p.value!==C.current&&(w==null||w.cancelValue(C.current),w==null||w.registerValue(p.value),C.current=p.value),()=>w==null?void 0:w.cancelValue(p.value)},[p.value]),u.useEffect(()=>{var F;!((F=S.current)===null||F===void 0)&&F.input&&(S.current.input.indeterminate=s)},[s]);const k=h("checkbox",r),$=Dn(k),[E,P,M]=ote(k,$),j=Object.assign({},p);w&&!f&&(j.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),w.toggleOption&&w.toggleOption({label:o,value:p.value})},j.name=w.name,j.checked=w.value.includes(p.value));const O=ne(`${k}-wrapper`,{[`${k}-rtl`]:v==="rtl",[`${k}-wrapper-checked`]:j.checked,[`${k}-wrapper-disabled`]:x,[`${k}-wrapper-in-form-item`]:y},g==null?void 0:g.className,i,a,M,$,P),N=ne({[`${k}-indeterminate`]:s},H2,P),[R,D]=Pee(j.onClick);return E(u.createElement(i1,{component:"Checkbox",disabled:x},u.createElement("label",{className:O,style:Object.assign(Object.assign({},g==null?void 0:g.style),l),onMouseEnter:c,onMouseLeave:d,onClick:R},u.createElement(Eee,Object.assign({},j,{onClick:D,prefixCls:k,className:N,disabled:x,ref:_})),o!==void 0&&u.createElement("span",null,o))))},dte=u.forwardRef(kAe);var $Ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:l,onChange:c}=e,d=$Ae(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=u.useContext(Ct),[p,h]=u.useState(d.value||n||[]),[v,g]=u.useState([]);u.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const w=u.useMemo(()=>i.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),[i]),y=N=>{g(R=>R.filter(D=>D!==N))},b=N=>{g(R=>[].concat(Fe(R),[N]))},x=N=>{const R=p.indexOf(N.value),D=Fe(p);R===-1?D.push(N.value):D.splice(R,1),"value"in d||h(D),c==null||c(D.filter(F=>v.includes(F)).sort((F,z)=>{const I=w.findIndex(V=>V.value===F),H=w.findIndex(V=>V.value===z);return I-H}))},C=f("checkbox",a),S=`${C}-group`,_=Dn(C),[k,$,E]=ote(C,_),P=kn(d,["value","disabled"]),M=i.length?w.map(N=>u.createElement(dte,{prefixCls:C,key:N.value.toString(),disabled:"disabled"in N?N.disabled:d.disabled,value:N.value,checked:p.includes(N.value),onChange:N.onChange,className:`${S}-item`,style:N.style,title:N.title,id:N.id,required:N.required},N.label)):r,j={toggleOption:x,value:p,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:y},O=ne(S,{[`${S}-rtl`]:m==="rtl"},o,s,E,_,$);return k(u.createElement("div",Object.assign({className:O,style:l},P,{ref:t}),u.createElement(ute.Provider,{value:j},M)))}),yc=dte;yc.Group=EAe;yc.__ANT_CHECKBOX=!0;const fte=u.createContext({});var PAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=u.useContext(Ct),{gutter:i,wrap:a}=u.useContext(fte),{prefixCls:o,span:s,order:l,offset:c,push:d,pull:f,className:m,children:p,flex:h,style:v}=e,g=PAe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",o),[y,b,x]=yIe(w),C={};let S={};TAe.forEach($=>{let E={};const P=e[$];typeof P=="number"?E.span=P:typeof P=="object"&&(E=P||{}),delete g[$],S=Object.assign(Object.assign({},S),{[`${w}-${$}-${E.span}`]:E.span!==void 0,[`${w}-${$}-order-${E.order}`]:E.order||E.order===0,[`${w}-${$}-offset-${E.offset}`]:E.offset||E.offset===0,[`${w}-${$}-push-${E.push}`]:E.push||E.push===0,[`${w}-${$}-pull-${E.pull}`]:E.pull||E.pull===0,[`${w}-rtl`]:r==="rtl"}),E.flex&&(S[`${w}-${$}-flex`]=!0,C[`--${w}-${$}-flex`]=V9(E.flex))});const _=ne(w,{[`${w}-${s}`]:s!==void 0,[`${w}-order-${l}`]:l,[`${w}-offset-${c}`]:c,[`${w}-push-${d}`]:d,[`${w}-pull-${f}`]:f},m,S,b,x),k={};if(i&&i[0]>0){const $=i[0]/2;k.paddingLeft=$,k.paddingRight=$}return h&&(k.flex=V9(h),a===!1&&!k.minWidth&&(k.minWidth=0)),y(u.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},k),v),C),className:_,ref:t}),p))});var OAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{i()},[JSON.stringify(e),t]),n}const $f=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:c}=e,d=OAe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=u.useContext(Ct),[p,h]=u.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,g]=u.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),w=W9(i,v),y=W9(r,v),b=u.useRef(l),x=rJ();u.useEffect(()=>{const D=x.subscribe(F=>{g(F);const z=b.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&h(F)});return()=>x.unsubscribe(D)},[]);const C=()=>{const D=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((z,I)=>{if(typeof z=="object")for(let H=0;H0?E[0]/-2:void 0;j&&(M.marginLeft=j,M.marginRight=j);const[O,N]=E;M.rowGap=N;const R=u.useMemo(()=>({gutter:[O,N],wrap:c}),[O,N,c]);return _(u.createElement(fte.Provider,{value:R},u.createElement("div",Object.assign({},d,{className:P,style:Object.assign(Object.assign({},M),o),ref:t}),s)))}),RAe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{borderBlockStart:`${ae(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ae(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ae(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ae(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ae(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ae(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${ae(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},IAe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),MAe=un("Divider",e=>{const t=Yt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[RAe(t)]},IAe,{unitless:{orientationMargin:!0}});var NAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=u.useContext(Ct),{prefixCls:i,type:a="horizontal",orientation:o="center",orientationMargin:s,className:l,rootClassName:c,children:d,dashed:f,variant:m="solid",plain:p,style:h}=e,v=NAe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),g=t("divider",i),[w,y,b]=MAe(g),x=!!d,C=o==="left"&&s!=null,S=o==="right"&&s!=null,_=ne(g,r==null?void 0:r.className,y,b,`${g}-${a}`,{[`${g}-with-text`]:x,[`${g}-with-text-${o}`]:x,[`${g}-dashed`]:!!f,[`${g}-${m}`]:m!=="solid",[`${g}-plain`]:!!p,[`${g}-rtl`]:n==="rtl",[`${g}-no-default-orientation-margin-left`]:C,[`${g}-no-default-orientation-margin-right`]:S},l,c),k=u.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},C&&{marginLeft:k}),S&&{marginRight:k});return w(u.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},v,{role:"separator"}),d&&a!=="vertical"&&u.createElement("span",{className:`${g}-inner-text`,style:$},d)))};var U9=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},ol=function(t){return t!==void 0?"".concat(t,"px"):void 0};function jAe(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,a=e.motionName,o=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,d=c===void 0?!1:c,f=u.useRef(null),m=u.useState(r),p=ie(m,2),h=p[0],v=p[1],g=function(N){var R,D=i(N),F=(R=n.current)===null||R===void 0?void 0:R.querySelectorAll(".".concat(t,"-item"))[D];return(F==null?void 0:F.offsetParent)&&F},w=u.useState(null),y=ie(w,2),b=y[0],x=y[1],C=u.useState(null),S=ie(C,2),_=S[0],k=S[1];an(function(){if(h!==r){var O=g(h),N=g(r),R=U9(O,d),D=U9(N,d);v(r),x(R),k(D),O&&N?o():s()}},[r]);var $=u.useMemo(function(){if(d){var O;return ol((O=b==null?void 0:b.top)!==null&&O!==void 0?O:0)}return ol(l==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[d,l,b]),E=u.useMemo(function(){if(d){var O;return ol((O=_==null?void 0:_.top)!==null&&O!==void 0?O:0)}return ol(l==="rtl"?-(_==null?void 0:_.right):_==null?void 0:_.left)},[d,l,_]),P=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},M=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},j=function(){x(null),k(null),s()};return!b||!_?null:u.createElement(Oi,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:P,onAppearActive:M,onVisibleChanged:j},function(O,N){var R=O.className,D=O.style,F=A(A({},D),{},{"--thumb-start-left":$,"--thumb-start-width":ol(b==null?void 0:b.width),"--thumb-active-left":E,"--thumb-active-width":ol(_==null?void 0:_.width),"--thumb-start-top":$,"--thumb-start-height":ol(b==null?void 0:b.height),"--thumb-active-top":E,"--thumb-active-height":ol(_==null?void 0:_.height)}),z={ref:di(f,N),style:F,className:ne("".concat(t,"-thumb"),R)};return u.createElement("div",z)})}var FAe=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function AAe(e){if(typeof e.title<"u")return e.title;if(mt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function LAe(e){return e.map(function(t){if(mt(t)==="object"&&t!==null){var n=AAe(t);return A(A({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var BAe=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,a=t.checked,o=t.label,s=t.title,l=t.value,c=t.name,d=t.onChange,f=t.onFocus,m=t.onBlur,p=t.onKeyDown,h=t.onKeyUp,v=t.onMouseDown,g=function(y){i||d(y,l)};return u.createElement("label",{className:ne(r,K({},"".concat(n,"-item-disabled"),i)),onMouseDown:v},u.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:a,onChange:g,onFocus:f,onBlur:m,onKeyDown:p,onKeyUp:h}),u.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":a},o))},zAe=u.forwardRef(function(e,t){var n,r,i=e.prefixCls,a=i===void 0?"rc-segmented":i,o=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,d=e.disabled,f=e.defaultValue,m=e.value,p=e.name,h=e.onChange,v=e.className,g=v===void 0?"":v,w=e.motionName,y=w===void 0?"thumb-motion":w,b=ft(e,FAe),x=u.useRef(null),C=u.useMemo(function(){return di(x,t)},[x,t]),S=u.useMemo(function(){return LAe(c)},[c]),_=Ut((n=S[0])===null||n===void 0?void 0:n.value,{value:m,defaultValue:f}),k=ie(_,2),$=k[0],E=k[1],P=u.useState(!1),M=ie(P,2),j=M[0],O=M[1],N=function(J,Z){E(Z),h==null||h(Z)},R=kn(b,["children"]),D=u.useState(!1),F=ie(D,2),z=F[0],I=F[1],H=u.useState(!1),V=ie(H,2),B=V[0],W=V[1],U=function(){W(!0)},X=function(){W(!1)},q=function(){I(!1)},Y=function(J){J.key==="Tab"&&I(!0)},re=function(J){var Z=S.findIndex(function(oe){return oe.value===$}),ee=S.length,te=(Z+J+ee)%ee,le=S[te];le&&(E(le.value),h==null||h(le.value))},G=function(J){switch(J.key){case"ArrowLeft":case"ArrowUp":re(-1);break;case"ArrowRight":case"ArrowDown":re(1);break}};return u.createElement("div",Oe({role:"radiogroup","aria-label":"segmented control",tabIndex:d?void 0:0},R,{className:ne(a,(r={},K(r,"".concat(a,"-rtl"),o==="rtl"),K(r,"".concat(a,"-disabled"),d),K(r,"".concat(a,"-vertical"),s),r),g),ref:C}),u.createElement("div",{className:"".concat(a,"-group")},u.createElement(jAe,{vertical:s,prefixCls:a,value:$,containerRef:x,motionName:"".concat(a,"-").concat(y),direction:o,getValueIndex:function(J){return S.findIndex(function(Z){return Z.value===J})},onMotionStart:function(){O(!0)},onMotionEnd:function(){O(!1)}}),S.map(function(Q){var J;return u.createElement(BAe,Oe({},Q,{name:p,key:Q.value,prefixCls:a,className:ne(Q.className,"".concat(a,"-item"),(J={},K(J,"".concat(a,"-item-selected"),Q.value===$&&!j),K(J,"".concat(a,"-item-focused"),B&&z&&Q.value===$),J)),checked:Q.value===$,onChange:N,onFocus:U,onBlur:X,onKeyDown:G,onKeyUp:Y,onMouseDown:q,disabled:!!d||!!Q.disabled}))})))}),HAe=zAe;function q9(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function G9(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const VAe=Object.assign({overflow:"hidden"},Fa),WAe=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),yo(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${ae(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},G9(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},Bs(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:ae(n),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`},VAe),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},G9(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${ae(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:ae(r),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:ae(i),padding:`0 ${ae(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),q9(`&-disabled ${t}-item`,e)),q9(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},UAe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}},qAe=un("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Yt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[WAe(r)]},UAe);var K9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=t_(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:l="middle",style:c,vertical:d,name:f=n}=e,m=K9(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:p,direction:h,segmented:v}=u.useContext(Ct),g=p("segmented",r),[w,y,b]=qAe(g),x=Fr(l),C=u.useMemo(()=>s.map(k=>{if(GAe(k)){const{icon:$,label:E}=k,P=K9(k,["icon","label"]);return Object.assign(Object.assign({},P),{label:u.createElement(u.Fragment,null,u.createElement("span",{className:`${g}-item-icon`},$),E&&u.createElement("span",null,E))})}return k}),[s,g]),S=ne(i,a,v==null?void 0:v.className,{[`${g}-block`]:o,[`${g}-sm`]:x==="small",[`${g}-lg`]:x==="large",[`${g}-vertical`]:d},y,b),_=Object.assign(Object.assign({},v==null?void 0:v.style),c);return w(u.createElement(HAe,Object.assign({},m,{name:f,className:S,style:_,options:C,ref:t,prefixCls:g,direction:h,vertical:d})))}),mte=KAe,pte=L.createContext({}),hte=L.createContext({}),vte=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const a=n.toHsb();a.a=0;const o=ta(a);o.cleared=!0,r(o)}};return L.createElement("div",{className:`${t}-clear`,onClick:i})};var Su;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(Su||(Su={}));function UT(){return typeof BigInt=="function"}function gte(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Dd(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}function LM(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function xd(e){var t=String(e);if(LM(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&BM(t)?t.length-t.indexOf(".")-1:0}function k_(e){var t=String(e);if(LM(e)){if(e>Number.MAX_SAFE_INTEGER)return String(UT()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Dd("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),XAe=function(){function e(t){if(cr(this,e),K(this,"origin",""),K(this,"number",void 0),K(this,"empty",void 0),gte(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return ur(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":k_(this.number):this.origin}}]),e}();function ms(e){return UT()?new YAe(e):new XAe(e)}function uw(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=Dd(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(o);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=ms(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return uw(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function QAe(e){return!!(e.addonBefore||e.addonAfter)}function ZAe(e){return!!(e.prefix||e.suffix||e.allowClear)}function Y9(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function Yx(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=Y9(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=Y9(t,e,r),n(i);return}n(i)}}function zM(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var HM=L.forwardRef(function(e,t){var n,r,i,a=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,p=e.style,h=e.disabled,v=e.readOnly,g=e.focused,w=e.triggerFocus,y=e.allowClear,b=e.value,x=e.handleReset,C=e.hidden,S=e.classes,_=e.classNames,k=e.dataAttrs,$=e.styles,E=e.components,P=e.onClear,M=o??a,j=(E==null?void 0:E.affixWrapper)||"span",O=(E==null?void 0:E.groupWrapper)||"span",N=(E==null?void 0:E.wrapper)||"span",R=(E==null?void 0:E.groupAddon)||"span",D=u.useRef(null),F=function(te){var le;(le=D.current)!==null&&le!==void 0&&le.contains(te.target)&&(w==null||w())},z=ZAe(e),I=u.cloneElement(M,{value:b,className:ne((n=M.props)===null||n===void 0?void 0:n.className,!z&&(_==null?void 0:_.variant))||null}),H=u.useRef(null);if(L.useImperativeHandle(t,function(){return{nativeElement:H.current||D.current}}),z){var V=null;if(y){var B=!h&&!v&&b,W="".concat(s,"-clear-icon"),U=mt(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";V=L.createElement("button",{type:"button",onClick:function(te){x==null||x(te),P==null||P()},onMouseDown:function(te){return te.preventDefault()},className:ne(W,K(K({},"".concat(W,"-hidden"),!B),"".concat(W,"-has-suffix"),!!c))},U)}var X="".concat(s,"-affix-wrapper"),q=ne(X,K(K(K(K(K({},"".concat(s,"-disabled"),h),"".concat(X,"-disabled"),h),"".concat(X,"-focused"),g),"".concat(X,"-readonly"),v),"".concat(X,"-input-with-clear-btn"),c&&y&&b),S==null?void 0:S.affixWrapper,_==null?void 0:_.affixWrapper,_==null?void 0:_.variant),Y=(c||y)&&L.createElement("span",{className:ne("".concat(s,"-suffix"),_==null?void 0:_.suffix),style:$==null?void 0:$.suffix},V,c);I=L.createElement(j,Oe({className:q,style:$==null?void 0:$.affixWrapper,onClick:F},k==null?void 0:k.affixWrapper,{ref:D}),l&&L.createElement("span",{className:ne("".concat(s,"-prefix"),_==null?void 0:_.prefix),style:$==null?void 0:$.prefix},l),I,Y)}if(QAe(e)){var re="".concat(s,"-group"),G="".concat(re,"-addon"),Q="".concat(re,"-wrapper"),J=ne("".concat(s,"-wrapper"),re,S==null?void 0:S.wrapper,_==null?void 0:_.wrapper),Z=ne(Q,K({},"".concat(Q,"-disabled"),h),S==null?void 0:S.group,_==null?void 0:_.groupWrapper);I=L.createElement(O,{className:Z,ref:H},L.createElement(N,{className:J},d&&L.createElement(R,{className:G},d),I,f&&L.createElement(R,{className:G},f)))}return L.cloneElement(I,{className:ne((r=I.props)===null||r===void 0?void 0:r.className,m)||null,style:A(A({},(i=I.props)===null||i===void 0?void 0:i.style),p),hidden:C})}),JAe=["show"];function bte(e,t){return u.useMemo(function(){var n={};t&&(n.show=mt(t)==="object"&&t.formatter?t.formatter:!!t),n=A(A({},n),e);var r=n,i=r.show,a=ft(r,JAe);return A(A({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var e9e=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],t9e=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,d=c===void 0?"rc-input":c,f=e.disabled,m=e.htmlSize,p=e.className,h=e.maxLength,v=e.suffix,g=e.showCount,w=e.count,y=e.type,b=y===void 0?"text":y,x=e.classes,C=e.classNames,S=e.styles,_=e.onCompositionStart,k=e.onCompositionEnd,$=ft(e,e9e),E=u.useState(!1),P=ie(E,2),M=P[0],j=P[1],O=u.useRef(!1),N=u.useRef(!1),R=u.useRef(null),D=u.useRef(null),F=function(ce){R.current&&zM(R.current,ce)},z=Ut(e.defaultValue,{value:e.value}),I=ie(z,2),H=I[0],V=I[1],B=H==null?"":String(H),W=u.useState(null),U=ie(W,2),X=U[0],q=U[1],Y=bte(w,g),re=Y.max||h,G=Y.strategy(B),Q=!!re&&G>re;u.useImperativeHandle(t,function(){var ue;return{focus:F,blur:function(){var $e;($e=R.current)===null||$e===void 0||$e.blur()},setSelectionRange:function($e,se,he){var ve;(ve=R.current)===null||ve===void 0||ve.setSelectionRange($e,se,he)},select:function(){var $e;($e=R.current)===null||$e===void 0||$e.select()},input:R.current,nativeElement:((ue=D.current)===null||ue===void 0?void 0:ue.nativeElement)||R.current}}),u.useEffect(function(){N.current&&(N.current=!1),j(function(ue){return ue&&f?!1:ue})},[f]);var J=function(ce,$e,se){var he=$e;if(!O.current&&Y.exceedFormatter&&Y.max&&Y.strategy($e)>Y.max){if(he=Y.exceedFormatter($e,{max:Y.max}),$e!==he){var ve,ke;q([((ve=R.current)===null||ve===void 0?void 0:ve.selectionStart)||0,((ke=R.current)===null||ke===void 0?void 0:ke.selectionEnd)||0])}}else if(se.source==="compositionEnd")return;V(he),R.current&&Yx(R.current,ce,r,he)};u.useEffect(function(){if(X){var ue;(ue=R.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,Fe(X))}},[X]);var Z=function(ce){J(ce,ce.target.value,{source:"change"})},ee=function(ce){O.current=!1,J(ce,ce.currentTarget.value,{source:"compositionEnd"}),k==null||k(ce)},te=function(ce){o&&ce.key==="Enter"&&!N.current&&(N.current=!0,o(ce)),s==null||s(ce)},le=function(ce){ce.key==="Enter"&&(N.current=!1),l==null||l(ce)},oe=function(ce){j(!0),i==null||i(ce)},de=function(ce){N.current&&(N.current=!1),j(!1),a==null||a(ce)},pe=function(ce){V(""),F(),R.current&&Yx(R.current,ce,r)},ye=Q&&"".concat(d,"-out-of-range"),me=function(){var ce=kn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return L.createElement("input",Oe({autoComplete:n},ce,{onChange:Z,onFocus:oe,onBlur:de,onKeyDown:te,onKeyUp:le,className:ne(d,K({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:S==null?void 0:S.input,ref:R,size:m,type:b,onCompositionStart:function(se){O.current=!0,_==null||_(se)},onCompositionEnd:ee}))},xe=function(){var ce=Number(re)>0;if(v||Y.show){var $e=Y.showFormatter?Y.showFormatter({value:B,count:G,maxLength:re}):"".concat(G).concat(ce?" / ".concat(re):"");return L.createElement(L.Fragment,null,Y.show&&L.createElement("span",{className:ne("".concat(d,"-show-count-suffix"),K({},"".concat(d,"-show-count-has-suffix"),!!v),C==null?void 0:C.count),style:A({},S==null?void 0:S.count)},$e),v)}return null};return L.createElement(HM,Oe({},$,{prefixCls:d,className:ne(p,ye),handleReset:pe,value:B,focused:M,triggerFocus:F,suffix:xe(),disabled:f,classes:x,classNames:C,styles:S}),me())});function n9e(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var a=r[i];return typeof a=="function"?a.bind(r):a}}):e}function r9e(e,t){var n=u.useRef(null);function r(){try{var a=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var a=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,d=a.length;if(a.startsWith(s))d=s.length;else if(a.endsWith(l))d=a.length-n.current.afterTxt.length;else{var f=s[c-1],m=a.indexOf(f,c-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(p){Fn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,i]}var i9e=function(){var t=u.useState(!1),n=ie(t,2),r=n[0],i=n[1];return an(function(){i(i_())},[]),r},a9e=200,o9e=600;function s9e(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,a=e.downDisabled,o=e.onStep,s=u.useRef(),l=u.useRef([]),c=u.useRef();c.current=o;var d=function(){clearTimeout(s.current)},f=function(b,x){b.preventDefault(),d(),c.current(x);function C(){c.current(x),s.current=setTimeout(C,a9e)}s.current=setTimeout(C,o9e)};u.useEffect(function(){return function(){d(),l.current.forEach(function(y){return tn.cancel(y)})}},[]);var m=i9e();if(m)return null;var p="".concat(t,"-handler"),h=ne(p,"".concat(p,"-up"),K({},"".concat(p,"-up-disabled"),i)),v=ne(p,"".concat(p,"-down"),K({},"".concat(p,"-down-disabled"),a)),g=function(){return l.current.push(tn(d))},w={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return u.createElement("div",{className:"".concat(p,"-wrap")},u.createElement("span",Oe({},w,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":i,className:h}),n||u.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),u.createElement("span",Oe({},w,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),r||u.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function X9(e){var t=typeof e=="number"?k_(e):Dd(e).fullStr,n=t.includes(".");return n?Dd(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const l9e=function(){var e=u.useRef(0),t=function(){tn.cancel(e.current)};return u.useEffect(function(){return t},[]),function(n){t(),e.current=tn(function(){n()})}};var c9e=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],u9e=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Q9=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Z9=function(t){var n=ms(t);return n.isInvalidate()?null:n},d9e=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,p=e.upHandler,h=e.downHandler,v=e.keyboard,g=e.changeOnWheel,w=g===void 0?!1:g,y=e.controls,b=y===void 0?!0:y;e.classNames;var x=e.stringMode,C=e.parser,S=e.formatter,_=e.precision,k=e.decimalSeparator,$=e.onChange,E=e.onInput,P=e.onPressEnter,M=e.onStep,j=e.changeOnBlur,O=j===void 0?!0:j,N=e.domRef,R=ft(e,c9e),D="".concat(n,"-input"),F=u.useRef(null),z=u.useState(!1),I=ie(z,2),H=I[0],V=I[1],B=u.useRef(!1),W=u.useRef(!1),U=u.useRef(!1),X=u.useState(function(){return ms(d??c)}),q=ie(X,2),Y=q[0],re=q[1];function G(Ve){d===void 0&&re(Ve)}var Q=u.useCallback(function(Ve,Ye){if(!Ye)return _>=0?_:Math.max(xd(Ve),xd(l))},[_,l]),J=u.useCallback(function(Ve){var Ye=String(Ve);if(C)return C(Ye);var Ne=Ye;return k&&(Ne=Ne.replace(k,".")),Ne.replace(/[^\w.-]+/g,"")},[C,k]),Z=u.useRef(""),ee=u.useCallback(function(Ve,Ye){if(S)return S(Ve,{userTyping:Ye,input:String(Z.current)});var Ne=typeof Ve=="number"?k_(Ve):Ve;if(!Ye){var Ae=Q(Ne,Ye);if(BM(Ne)&&(k||Ae>=0)){var et=k||".";Ne=uw(Ne,et,Ae)}}return Ne},[S,Q,k]),te=u.useState(function(){var Ve=c??d;return Y.isInvalidate()&&["string","number"].includes(mt(Ve))?Number.isNaN(Ve)?"":Ve:ee(Y.toString(),!1)}),le=ie(te,2),oe=le[0],de=le[1];Z.current=oe;function pe(Ve,Ye){de(ee(Ve.isInvalidate()?Ve.toString(!1):Ve.toString(!Ye),Ye))}var ye=u.useMemo(function(){return Z9(o)},[o,_]),me=u.useMemo(function(){return Z9(a)},[a,_]),xe=u.useMemo(function(){return!ye||!Y||Y.isInvalidate()?!1:ye.lessEquals(Y)},[ye,Y]),ue=u.useMemo(function(){return!me||!Y||Y.isInvalidate()?!1:Y.lessEquals(me)},[me,Y]),ce=r9e(F.current,H),$e=ie(ce,2),se=$e[0],he=$e[1],ve=function(Ye){return ye&&!Ye.lessEquals(ye)?ye:me&&!me.lessEquals(Ye)?me:null},ke=function(Ye){return!ve(Ye)},Se=function(Ye,Ne){var Ae=Ye,et=ke(Ae)||Ae.isEmpty();if(!Ae.isEmpty()&&!Ne&&(Ae=ve(Ae)||Ae,et=!0),!m&&!f&&et){var nt=Ae.toString(),rt=Q(nt,Ne);return rt>=0&&(Ae=ms(uw(nt,".",rt)),ke(Ae)||(Ae=ms(uw(nt,".",rt,!0)))),Ae.equals(Y)||(G(Ae),$==null||$(Ae.isEmpty()?null:Q9(x,Ae)),d===void 0&&pe(Ae,Ne)),Ae}return Y},Ee=l9e(),De=function Ve(Ye){if(se(),Z.current=Ye,de(Ye),!W.current){var Ne=J(Ye),Ae=ms(Ne);Ae.isNaN()||Se(Ae,!0)}E==null||E(Ye),Ee(function(){var et=Ye;C||(et=Ye.replace(/。/g,".")),et!==Ye&&Ve(et)})},we=function(){W.current=!0},be=function(){W.current=!1,De(F.current.value)},Pe=function(Ye){De(Ye.target.value)},Re=function(Ye){var Ne;if(!(Ye&&xe||!Ye&&ue)){B.current=!1;var Ae=ms(U.current?X9(l):l);Ye||(Ae=Ae.negate());var et=(Y||ms(0)).add(Ae.toString()),nt=Se(et,!1);M==null||M(Q9(x,nt),{offset:U.current?X9(l):l,type:Ye?"up":"down"}),(Ne=F.current)===null||Ne===void 0||Ne.focus()}},_e=function(Ye){var Ne=ms(J(oe)),Ae;Ne.isNaN()?Ae=Se(Y,Ye):Ae=Se(Ne,Ye),d!==void 0?pe(Y,!1):Ae.isNaN()||pe(Ae,!1)},je=function(){B.current=!0},He=function(Ye){var Ne=Ye.key,Ae=Ye.shiftKey;B.current=!0,U.current=Ae,Ne==="Enter"&&(W.current||(B.current=!1),_e(!1),P==null||P(Ye)),v!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ne)&&(Re(Ne==="Up"||Ne==="ArrowUp"),Ye.preventDefault())},Be=function(){B.current=!1,U.current=!1};u.useEffect(function(){if(w&&H){var Ve=function(Ae){Re(Ae.deltaY<0),Ae.preventDefault()},Ye=F.current;if(Ye)return Ye.addEventListener("wheel",Ve,{passive:!1}),function(){return Ye.removeEventListener("wheel",Ve)}}});var ct=function(){O&&_e(!1),V(!1),B.current=!1};return Nd(function(){Y.isInvalidate()||pe(Y,!1)},[_,S]),Nd(function(){var Ve=ms(d);re(Ve);var Ye=ms(J(oe));(!Ve.equals(Ye)||!B.current||S)&&pe(Ve,B.current)},[d]),Nd(function(){S&&he()},[oe]),u.createElement("div",{ref:N,className:ne(n,r,K(K(K(K(K({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!ke(Y))),style:i,onFocus:function(){V(!0)},onBlur:ct,onKeyDown:He,onKeyUp:Be,onCompositionStart:we,onCompositionEnd:be,onBeforeInput:je},b&&u.createElement(s9e,{prefixCls:n,upNode:p,downNode:h,upDisabled:xe,downDisabled:ue,onStep:Re}),u.createElement("div",{className:"".concat(D,"-wrap")},u.createElement("input",Oe({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:l},R,{ref:di(F,t),className:D,value:oe,onChange:Pe,disabled:f,readOnly:m}))))}),f9e=u.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=i===void 0?"rc-input-number":i,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,p=ft(e,u9e),h=u.useRef(null),v=u.useRef(null),g=u.useRef(null),w=function(b){g.current&&zM(g.current,b)};return u.useImperativeHandle(t,function(){return n9e(g.current,{focus:w,nativeElement:h.current.nativeElement||v.current})}),u.createElement(HM,{className:f,triggerFocus:w,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:d,addonBefore:c,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},u.createElement(d9e,Oe({prefixCls:a,disabled:n,ref:g,domRef:v,className:m==null?void 0:m.input},p)))});const m9e=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},h1(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new rn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},J9=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const a=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},p9e=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:p,colorTextDescription:h,motionDurationMid:v,handleHoverColor:g,handleOpacity:w,paddingInline:y,paddingBlock:b,handleBg:x,handleActiveBg:C,colorTextDisabled:S,borderRadiusSM:_,borderRadiusLG:k,controlWidth:$,handleBorderColor:E,filledHandleBg:P,lineHeightLG:M,calc:j}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),v1(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:i}),OM(e,{[`${t}-handler-wrap`]:{background:x,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${E}`}}})),IM(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:x}}})),RM(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:M,borderRadius:k,[`input${t}-input`]:{height:j(s).sub(j(n).mul(2)).equal(),padding:`${ae(m)} ${ae(p)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:_,[`input${t}-input`]:{height:j(l).sub(j(n).mul(2)).equal(),padding:`${ae(f)} ${ae(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},mn(e)),Nee(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:_}}},Oee(e)),Iee(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{width:"100%",padding:`${ae(b)} ${ae(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),MM(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:w,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ae(n)} ${r} ${E}`,transition:`all ${v} linear`,"&:active":{background:C},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},bf()),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},J9(e,"lg")),J9(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:S}})}]},h9e=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:a,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ae(n)} 0`}},v1(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ae(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ae(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},v9e=un("InputNumber",e=>{const t=Yt(e,p1(e));return[p9e(t),h9e(t),wf(t)]},m9e,{unitless:{handleOpacity:!0}});var g9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=u.useContext(Ct),i=u.useRef(null);u.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:d,addonAfter:f,prefix:m,suffix:p,bordered:h,readOnly:v,status:g,controls:w,variant:y}=e,b=g9e(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),x=n("input-number",c),C=Dn(x),[S,_,k]=v9e(x,C),{compactSize:$,compactItemClassnames:E}=Qs(x,r);let P=u.createElement(aX,{className:`${x}-handler-up-inner`}),M=u.createElement(J0,{className:`${x}-handler-down-inner`});const j=typeof w=="boolean"?w:void 0;typeof w=="object"&&(P=typeof w.upIcon>"u"?P:u.createElement("span",{className:`${x}-handler-up-inner`},w.upIcon),M=typeof w.downIcon>"u"?M:u.createElement("span",{className:`${x}-handler-down-inner`},w.downIcon));const{hasFeedback:O,status:N,isFormItemInput:R,feedbackIcon:D}=u.useContext(Qr),F=Pc(N,g),z=Fr(Y=>{var re;return(re=s??$)!==null&&re!==void 0?re:Y}),I=u.useContext(Br),H=l??I,[V,B]=Tc("inputNumber",y,h),W=O&&u.createElement(u.Fragment,null,D),U=ne({[`${x}-lg`]:z==="large",[`${x}-sm`]:z==="small",[`${x}-rtl`]:r==="rtl",[`${x}-in-form-item`]:R},_),X=`${x}-group`,q=u.createElement(f9e,Object.assign({ref:i,disabled:H,className:ne(k,C,a,o,E),upHandler:P,downHandler:M,prefixCls:x,readOnly:v,controls:j,prefix:m,suffix:W||p,addonBefore:d&&u.createElement(Tl,{form:!0,space:!0},d),addonAfter:f&&u.createElement(Tl,{form:!0,space:!0},f),classNames:{input:U,variant:ne({[`${x}-${V}`]:B},Hs(x,F,O)),affixWrapper:ne({[`${x}-affix-wrapper-sm`]:z==="small",[`${x}-affix-wrapper-lg`]:z==="large",[`${x}-affix-wrapper-rtl`]:r==="rtl",[`${x}-affix-wrapper-without-controls`]:w===!1},_),wrapper:ne({[`${X}-rtl`]:r==="rtl"},_),groupWrapper:ne({[`${x}-group-wrapper-sm`]:z==="small",[`${x}-group-wrapper-lg`]:z==="large",[`${x}-group-wrapper-rtl`]:r==="rtl",[`${x}-group-wrapper-${V}`]:B},Hs(`${x}-group-wrapper`,F,O),_)}},b));return S(q)}),wc=yte,b9e=e=>u.createElement(en,{theme:{components:{InputNumber:{handleVisible:!0}}}},u.createElement(yte,Object.assign({},e)));wc._InternalPanelDoNotUseOrYouWillBeFired=b9e;const jd=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:a,className:o,formatter:s}=e;const l=`${t}-steppers`,[c,d]=u.useState(i);return u.useEffect(()=>{Number.isNaN(i)||d(i)},[i]),L.createElement(wc,{className:ne(l,o),min:n,max:r,value:c,formatter:s,size:"small",onChange:f=>{i||d(f||0),a==null||a(f)}})},y9e=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[a,o]=u.useState(ta(n||"#000"));u.useEffect(()=>{n&&o(n)},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const d=ta(c);n||o(d),r==null||r(d)};return L.createElement(jd,{value:qI(a),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},w9e=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Ct),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[s,l]=DM(o),c=ne(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,i),d=u.useContext(Qr),f=u.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(u.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(Qr.Provider,{value:f},e.children)))},wte=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:L.createElement($c,null)}),t};function xte(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function x9e(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var S9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:c,suffix:d,allowClear:f,addonAfter:m,addonBefore:p,className:h,style:v,styles:g,rootClassName:w,onChange:y,classNames:b,variant:x}=e,C=S9e(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:_,input:k}=L.useContext(Ct),$=S("input",r),E=u.useRef(null),P=Dn($),[M,j,O]=DM($,P),{compactSize:N,compactItemClassnames:R}=Qs($,_),D=Fr(Z=>{var ee;return(ee=o??N)!==null&&ee!==void 0?ee:Z}),F=L.useContext(Br),z=s??F,{status:I,hasFeedback:H,feedbackIcon:V}=u.useContext(Qr),B=Pc(I,a),W=x9e(e)||!!H;u.useRef(W);const U=xte(E,!0),X=Z=>{U(),l==null||l(Z)},q=Z=>{U(),c==null||c(Z)},Y=Z=>{U(),y==null||y(Z)},re=(H||d)&&L.createElement(L.Fragment,null,d,H&&V),G=wte(f??(k==null?void 0:k.allowClear)),[Q,J]=Tc("input",x,i);return M(L.createElement(t9e,Object.assign({ref:di(t,E),prefixCls:$,autoComplete:k==null?void 0:k.autoComplete},C,{disabled:z,onBlur:X,onFocus:q,style:Object.assign(Object.assign({},k==null?void 0:k.style),v),styles:Object.assign(Object.assign({},k==null?void 0:k.styles),g),suffix:re,allowClear:G,className:ne(h,w,O,P,R,k==null?void 0:k.className),onChange:Y,addonBefore:p&&L.createElement(Tl,{form:!0,space:!0},p),addonAfter:m&&L.createElement(Tl,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},b),k==null?void 0:k.classNames),{input:ne({[`${$}-sm`]:D==="small",[`${$}-lg`]:D==="large",[`${$}-rtl`]:_==="rtl"},b==null?void 0:b.input,(n=k==null?void 0:k.classNames)===null||n===void 0?void 0:n.input,j),variant:ne({[`${$}-${Q}`]:J},Hs($,B)),affixWrapper:ne({[`${$}-affix-wrapper-sm`]:D==="small",[`${$}-affix-wrapper-lg`]:D==="large",[`${$}-affix-wrapper-rtl`]:_==="rtl"},j),wrapper:ne({[`${$}-group-rtl`]:_==="rtl"},j),groupWrapper:ne({[`${$}-group-wrapper-sm`]:D==="small",[`${$}-group-wrapper-lg`]:D==="large",[`${$}-group-wrapper-rtl`]:_==="rtl",[`${$}-group-wrapper-${Q}`]:J},Hs(`${$}-group-wrapper`,B,H),j)})})))}),C9e=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},_9e=un(["Input","OTP"],e=>{const t=Yt(e,p1(e));return[C9e(t)]},h1);var k9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,s=k9e(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof o=="string"?o:n,c=h=>{r(a,h.target.value)},d=u.useRef(null);u.useImperativeHandle(t,()=>d.current);const f=()=>{tn(()=>{var h;const v=(h=d.current)===null||h===void 0?void 0:h.input;document.activeElement===v&&v&&v.select()})},m=h=>{const{key:v,ctrlKey:g,metaKey:w}=h;v==="ArrowLeft"?i(a-1):v==="ArrowRight"?i(a+1):v==="z"&&(g||w)&&h.preventDefault(),f()},p=h=>{h.key==="Backspace"&&!n&&i(a-1),f()};return u.createElement($_,Object.assign({type:o===!0?"password":"text"},s,{ref:d,value:l,onInput:c,onFocus:f,onKeyDown:m,onKeyUp:p,onMouseDown:f,onMouseUp:f}))});var E9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:l,variant:c,disabled:d,status:f,autoFocus:m,mask:p,type:h,onInput:v,inputMode:g}=e,w=E9e(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:b}=u.useContext(Ct),x=y("otp",n),C=yr(w,{aria:!0,data:!0,attr:!0}),S=Dn(x),[_,k,$]=_9e(x,S),E=Fr(W=>i??W),P=u.useContext(Qr),M=Pc(P.status,f),j=u.useMemo(()=>Object.assign(Object.assign({},P),{status:M,hasFeedback:!1,feedbackIcon:null}),[P,M]),O=u.useRef(null),N=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var W;(W=N.current[0])===null||W===void 0||W.focus()},blur:()=>{var W;for(let U=0;Ul?l(W):W,[D,F]=u.useState(qb(R(a||"")));u.useEffect(()=>{o!==void 0&&F(qb(o))},[o]);const z=Ht(W=>{F(W),v&&v(W),s&&W.length===r&&W.every(U=>U)&&W.some((U,X)=>D[X]!==U)&&s(W.join(""))}),I=Ht((W,U)=>{let X=Fe(D);for(let Y=0;Y=0&&!X[Y];Y-=1)X.pop();const q=R(X.map(Y=>Y||" ").join(""));return X=qb(q).map((Y,re)=>Y===" "&&!X[re]?X[re]:Y),X}),H=(W,U)=>{var X;const q=I(W,U),Y=Math.min(W+U.length,r-1);Y!==W&&q[W]!==void 0&&((X=N.current[Y])===null||X===void 0||X.focus()),z(q)},V=W=>{var U;(U=N.current[W])===null||U===void 0||U.focus()},B={variant:c,disabled:d,status:M,mask:p,type:h,inputMode:g};return _(u.createElement("div",Object.assign({},C,{ref:O,className:ne(x,{[`${x}-sm`]:E==="small",[`${x}-lg`]:E==="large",[`${x}-rtl`]:b==="rtl"},$,k)}),u.createElement(Qr.Provider,{value:j},Array.from({length:r}).map((W,U)=>{const X=`otp-${U}`,q=D[U]||"";return u.createElement($9e,Object.assign({ref:Y=>{N.current[U]=Y},key:X,index:U,size:E,htmlSize:1,className:`${x}-input`,onChange:H,value:q,onActiveChange:V,autoFocus:U===0&&m},B))}))))});var T9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ie?u.createElement(g2,null):u.createElement(eX,null),R9e={click:"onClick",hover:"onMouseOver"},I9e=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=O9e}=e,o=u.useContext(Br),s=n??o,l=typeof i=="object"&&i.visible!==void 0,[c,d]=u.useState(()=>l?i.visible:!1),f=u.useRef(null);u.useEffect(()=>{l&&d(i.visible)},[l,i]);const m=xte(f),p=()=>{var E;if(s)return;c&&m();const P=!c;d(P),typeof i=="object"&&((E=i.onVisibleChange)===null||E===void 0||E.call(i,P))},h=E=>{const P=R9e[r]||"",M=a(c),j={[P]:p,className:`${E}-icon`,key:"passwordIcon",onMouseDown:O=>{O.preventDefault()},onMouseUp:O=>{O.preventDefault()}};return u.cloneElement(u.isValidElement(M)?M:u.createElement("span",null,M),j)},{className:v,prefixCls:g,inputPrefixCls:w,size:y}=e,b=T9e(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=u.useContext(Ct),C=x("input",w),S=x("input-password",g),_=i&&h(S),k=ne(S,v,{[`${S}-${y}`]:!!y}),$=Object.assign(Object.assign({},kn(b,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:k,prefixCls:C,suffix:_});return y&&($.size=y),u.createElement($_,Object.assign({ref:di(t,f)},$))});var M9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:d,onSearch:f,onChange:m,onCompositionStart:p,onCompositionEnd:h}=e,v=M9e(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:w}=u.useContext(Ct),y=u.useRef(!1),b=g("input-search",n),x=g("input",r),{compactSize:C}=Qs(b,w),S=Fr(H=>{var V;return(V=a??C)!==null&&V!==void 0?V:H}),_=u.useRef(null),k=H=>{H!=null&&H.target&&H.type==="click"&&f&&f(H.target.value,H,{source:"clear"}),m==null||m(H)},$=H=>{var V;document.activeElement===((V=_.current)===null||V===void 0?void 0:V.input)&&H.preventDefault()},E=H=>{var V,B;f&&f((B=(V=_.current)===null||V===void 0?void 0:V.input)===null||B===void 0?void 0:B.value,H,{source:"input"})},P=H=>{y.current||c||E(H)},M=typeof s=="boolean"?u.createElement(b2,null):null,j=`${b}-button`;let O;const N=s||{},R=N.type&&N.type.__ANT_BUTTON===!0;R||N.type==="button"?O=zr(N,Object.assign({onMouseDown:$,onClick:H=>{var V,B;(B=(V=N==null?void 0:N.props)===null||V===void 0?void 0:V.onClick)===null||B===void 0||B.call(V,H),E(H)},key:"enterButton"},R?{className:j,size:S}:{})):O=u.createElement(_n,{className:j,type:s?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:$,onClick:E,loading:c,icon:M},s),l&&(O=[O,zr(l,{key:"addonAfter"})]);const D=ne(b,{[`${b}-rtl`]:w==="rtl",[`${b}-${S}`]:!!S,[`${b}-with-button`]:!!s},i),F=Object.assign(Object.assign({},v),{className:D,prefixCls:x,type:"search"}),z=H=>{y.current=!0,p==null||p(H)},I=H=>{y.current=!1,h==null||h(H)};return u.createElement($_,Object.assign({ref:di(_,t),onPressEnter:P},F,{size:S,onCompositionStart:z,onCompositionEnd:I,addonAfter:O,suffix:o,onChange:k,disabled:d}))});var D9e=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,j9e=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],$E={},Ga;function F9e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&$E[n])return $E[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=j9e.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&($E[n]=l),l}function A9e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ga||(Ga=document.createElement("textarea"),Ga.setAttribute("tab-index","-1"),Ga.setAttribute("aria-hidden","true"),Ga.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ga)),e.getAttribute("wrap")?Ga.setAttribute("wrap",e.getAttribute("wrap")):Ga.removeAttribute("wrap");var i=F9e(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Ga.setAttribute("style","".concat(l,";").concat(D9e)),Ga.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,m=Ga.scrollHeight;if(s==="border-box"?m+=o:s==="content-box"&&(m-=a),n!==null||r!==null){Ga.value=" ";var p=Ga.scrollHeight-a;n!==null&&(c=p*n,s==="border-box"&&(c=c+a+o),m=Math.max(c,m)),r!==null&&(d=p*r,s==="border-box"&&(d=d+a+o),f=m>d?"":"hidden",m=Math.min(d,m))}var h={height:m,overflowY:f,resize:"none"};return c&&(h.minHeight=c),d&&(h.maxHeight=d),h}var L9e=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],EE=0,PE=1,TE=2,B9e=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=ft(n,L9e),p=Ut(i,{value:a,postState:function(W){return W??""}}),h=ie(p,2),v=h[0],g=h[1],w=function(W){g(W.target.value),f==null||f(W)},y=u.useRef();u.useImperativeHandle(t,function(){return{textArea:y.current}});var b=u.useMemo(function(){return o&&mt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),x=ie(b,2),C=x[0],S=x[1],_=!!o,k=function(){try{if(document.activeElement===y.current){var W=y.current,U=W.selectionStart,X=W.selectionEnd,q=W.scrollTop;y.current.setSelectionRange(U,X),y.current.scrollTop=q}}catch{}},$=u.useState(TE),E=ie($,2),P=E[0],M=E[1],j=u.useState(),O=ie(j,2),N=O[0],R=O[1],D=function(){M(EE)};an(function(){_&&D()},[a,C,S,_]),an(function(){if(P===EE)M(PE);else if(P===PE){var B=A9e(y.current,!1,C,S);M(TE),R(B)}else k()},[P]);var F=u.useRef(),z=function(){tn.cancel(F.current)},I=function(W){P===TE&&(s==null||s(W),o&&(z(),F.current=tn(function(){D()})))};u.useEffect(function(){return z},[]);var H=_?N:null,V=A(A({},c),H);return(P===EE||P===PE)&&(V.overflowY="hidden",V.overflowX="hidden"),u.createElement(bi,{onResize:I,disabled:!(o||s)},u.createElement("textarea",Oe({},m,{ref:y,style:V,className:ne(r,l,K({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:w})))}),z9e=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],H9e=L.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,p=e.prefixCls,h=p===void 0?"rc-textarea":p,v=e.showCount,g=e.count,w=e.className,y=e.style,b=e.disabled,x=e.hidden,C=e.classNames,S=e.styles,_=e.onResize,k=e.onClear,$=e.onPressEnter,E=e.readOnly,P=e.autoSize,M=e.onKeyDown,j=ft(e,z9e),O=Ut(r,{value:i,defaultValue:r}),N=ie(O,2),R=N[0],D=N[1],F=R==null?"":String(R),z=L.useState(!1),I=ie(z,2),H=I[0],V=I[1],B=L.useRef(!1),W=L.useState(null),U=ie(W,2),X=U[0],q=U[1],Y=u.useRef(null),re=u.useRef(null),G=function(){var be;return(be=re.current)===null||be===void 0?void 0:be.textArea},Q=function(){G().focus()};u.useImperativeHandle(t,function(){var we;return{resizableTextArea:re.current,focus:Q,blur:function(){G().blur()},nativeElement:((we=Y.current)===null||we===void 0?void 0:we.nativeElement)||G()}}),u.useEffect(function(){V(function(we){return!b&&we})},[b]);var J=L.useState(null),Z=ie(J,2),ee=Z[0],te=Z[1];L.useEffect(function(){if(ee){var we;(we=G()).setSelectionRange.apply(we,Fe(ee))}},[ee]);var le=bte(g,v),oe=(n=le.max)!==null&&n!==void 0?n:c,de=Number(oe)>0,pe=le.strategy(F),ye=!!oe&&pe>oe,me=function(be,Pe){var Re=Pe;!B.current&&le.exceedFormatter&&le.max&&le.strategy(Pe)>le.max&&(Re=le.exceedFormatter(Pe,{max:le.max}),Pe!==Re&&te([G().selectionStart||0,G().selectionEnd||0])),D(Re),Yx(be.currentTarget,be,s,Re)},xe=function(be){B.current=!0,d==null||d(be)},ue=function(be){B.current=!1,me(be,be.currentTarget.value),f==null||f(be)},ce=function(be){me(be,be.target.value)},$e=function(be){be.key==="Enter"&&$&&$(be),M==null||M(be)},se=function(be){V(!0),a==null||a(be)},he=function(be){V(!1),o==null||o(be)},ve=function(be){D(""),Q(),Yx(G(),be,s)},ke=m,Se;le.show&&(le.showFormatter?Se=le.showFormatter({value:F,count:pe,maxLength:oe}):Se="".concat(pe).concat(de?" / ".concat(oe):""),ke=L.createElement(L.Fragment,null,ke,L.createElement("span",{className:ne("".concat(h,"-data-count"),C==null?void 0:C.count),style:S==null?void 0:S.count},Se)));var Ee=function(be){var Pe;_==null||_(be),(Pe=G())!==null&&Pe!==void 0&&Pe.style.height&&q(!0)},De=!P&&!v&&!l;return L.createElement(HM,{ref:Y,value:F,allowClear:l,handleReset:ve,suffix:ke,prefixCls:h,classNames:A(A({},C),{},{affixWrapper:ne(C==null?void 0:C.affixWrapper,K(K({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:b,focused:H,className:ne(w,ye&&"".concat(h,"-out-of-range")),style:A(A({},y),X&&!De?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:x,readOnly:E,onClear:k},L.createElement(B9e,Oe({},j,{autoSize:P,maxLength:c,onKeyDown:$e,onChange:ce,onFocus:se,onBlur:he,onCompositionStart:xe,onCompositionEnd:ue,className:ne(C==null?void 0:C.textarea),style:A(A({},S==null?void 0:S.textarea),{},{resize:y==null?void 0:y.resize}),disabled:b,prefixCls:h,onResize:Ee,ref:re,readOnly:E})))}),V9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:c,classNames:d,rootClassName:f,className:m,style:p,styles:h,variant:v}=e,g=V9e(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:w,direction:y,textArea:b}=u.useContext(Ct),x=Fr(o),C=u.useContext(Br),S=s??C,{status:_,hasFeedback:k,feedbackIcon:$}=u.useContext(Qr),E=Pc(_,l),P=u.useRef(null);u.useImperativeHandle(t,()=>{var I;return{resizableTextArea:(I=P.current)===null||I===void 0?void 0:I.resizableTextArea,focus:H=>{var V,B;zM((B=(V=P.current)===null||V===void 0?void 0:V.resizableTextArea)===null||B===void 0?void 0:B.textArea,H)},blur:()=>{var H;return(H=P.current)===null||H===void 0?void 0:H.blur()}}});const M=w("input",i),j=Dn(M),[O,N,R]=DM(M,j),[D,F]=Tc("textArea",v,a),z=wte(c??(b==null?void 0:b.allowClear));return O(u.createElement(H9e,Object.assign({autoComplete:b==null?void 0:b.autoComplete},g,{style:Object.assign(Object.assign({},b==null?void 0:b.style),p),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),h),disabled:S,allowClear:z,className:ne(R,j,m,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},d),b==null?void 0:b.classNames),{textarea:ne({[`${M}-sm`]:x==="small",[`${M}-lg`]:x==="large"},N,d==null?void 0:d.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:ne({[`${M}-${D}`]:F},Hs(M,E)),affixWrapper:ne(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:y==="rtl",[`${M}-affix-wrapper-sm`]:x==="small",[`${M}-affix-wrapper-lg`]:x==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},N)}),prefixCls:M,suffix:k&&u.createElement("span",{className:`${M}-textarea-suffix`},$),ref:P})))}),Pi=$_;Pi.Group=w9e;Pi.Search=N9e;Pi.TextArea=Ste;Pi.Password=I9e;Pi.OTP=P9e;const W9e=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,U9e=e=>W9e.test(`#${e}`),q9e=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[a,o]=u.useState(()=>n?kv(n.toHexString()):void 0);u.useEffect(()=>{n&&o(kv(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;o(kv(c)),U9e(kv(c,!0))&&(r==null||r(ta(c)))};return L.createElement(Pi,{className:i,value:a,prefix:"#",onChange:s,size:"small"})},G9e=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[a,o]=u.useState(ta(n||"#000"));u.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const d=a.toHsb();d[c]=c==="h"?l:(l||0)/100;const f=ta(d);n||o(f),r==null||r(f)};return L.createElement("div",{className:i},L.createElement(jd,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:i,formatter:l=>aw(l||0).toString(),onChange:l=>s(Number(l),"h")}),L.createElement(jd,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${aw(l||0)}%`,onChange:l=>s(Number(l),"s")}),L.createElement(jd,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${aw(l||0)}%`,onChange:l=>s(Number(l),"b")}))},K9e=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[a,o]=u.useState(ta(n||"#000"));u.useEffect(()=>{n&&o(n)},[n]);const s=(l,c)=>{const d=a.toRgb();d[c]=l||0;const f=ta(d);n||o(f),r==null||r(f)};return L.createElement("div",{className:i},L.createElement(jd,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),L.createElement(jd,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),L.createElement(jd,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},Y9e=[Su.hex,Su.hsb,Su.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),X9e=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:a,onChange:o,disabledFormat:s}=e,[l,c]=Ut(Su.hex,{value:n,onChange:a}),d=`${t}-input`,f=p=>{c(p)},m=u.useMemo(()=>{const p={value:r,prefixCls:t,onChange:o};switch(l){case Su.hsb:return L.createElement(G9e,Object.assign({},p));case Su.rgb:return L.createElement(K9e,Object.assign({},p));default:return L.createElement(q9e,Object.assign({},p))}},[l,t,r,o]);return L.createElement("div",{className:`${d}-container`},!s&&L.createElement(Oc,{value:l,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:Y9e}),L.createElement("div",{className:d},m),!i&&L.createElement(y9e,{prefixCls:t,value:r,onChange:o}))};function qT(e,t,n){return(e-t)/(n-t)}function VM(e,t,n,r){var i=qT(t,n,r),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function ud(e,t){return Array.isArray(e)?e[t]:e}var Ef=u.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Cte=u.createContext({}),Q9e=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],eL=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,a=e.onStartMove,o=e.onDelete,s=e.style,l=e.render,c=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,m=e.onChangeComplete,p=e.onFocus,h=e.onMouseEnter,v=ft(e,Q9e),g=u.useContext(Ef),w=g.min,y=g.max,b=g.direction,x=g.disabled,C=g.keyboard,S=g.range,_=g.tabIndex,k=g.ariaLabelForHandle,$=g.ariaLabelledByForHandle,E=g.ariaRequired,P=g.ariaValueTextFormatterForHandle,M=g.styles,j=g.classNames,O="".concat(n,"-handle"),N=function(U){x||a(U,i)},R=function(U){p==null||p(U,i)},D=function(U){h(U,i)},F=function(U){if(!x&&C){var X=null;switch(U.which||U.keyCode){case qe.LEFT:X=b==="ltr"||b==="btt"?-1:1;break;case qe.RIGHT:X=b==="ltr"||b==="btt"?1:-1;break;case qe.UP:X=b!=="ttb"?1:-1;break;case qe.DOWN:X=b!=="ttb"?-1:1;break;case qe.HOME:X="min";break;case qe.END:X="max";break;case qe.PAGE_UP:X=2;break;case qe.PAGE_DOWN:X=-2;break;case qe.BACKSPACE:case qe.DELETE:o(i);break}X!==null&&(U.preventDefault(),f(X,i))}},z=function(U){switch(U.which||U.keyCode){case qe.LEFT:case qe.RIGHT:case qe.UP:case qe.DOWN:case qe.HOME:case qe.END:case qe.PAGE_UP:case qe.PAGE_DOWN:m==null||m();break}},I=VM(b,r,w,y),H={};if(i!==null){var V;H={tabIndex:x?null:ud(_,i),role:"slider","aria-valuemin":w,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":x,"aria-label":ud(k,i),"aria-labelledby":ud($,i),"aria-required":ud(E,i),"aria-valuetext":(V=ud(P,i))===null||V===void 0?void 0:V(r),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:N,onTouchStart:N,onFocus:R,onMouseEnter:D,onKeyDown:F,onKeyUp:z}}var B=u.createElement("div",Oe({ref:t,className:ne(O,K(K(K({},"".concat(O,"-").concat(i+1),i!==null&&S),"".concat(O,"-dragging"),c),"".concat(O,"-dragging-delete"),d),j.handle),style:A(A(A({},I),s),M.handle)},H,v));return l&&(B=l(B,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:d})),B}),Z9e=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],J9e=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,m=ft(e,Z9e),p=u.useRef({}),h=u.useState(!1),v=ie(h,2),g=v[0],w=v[1],y=u.useState(-1),b=ie(y,2),x=b[0],C=b[1],S=function(P){C(P),w(!0)},_=function(P,M){S(M),f==null||f(P)},k=function(P,M){S(M)};u.useImperativeHandle(t,function(){return{focus:function(P){var M;(M=p.current[P])===null||M===void 0||M.focus()},hideHelp:function(){yi.flushSync(function(){w(!1)})}}});var $=A({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:_,onMouseEnter:k},m);return u.createElement(u.Fragment,null,o.map(function(E,P){var M=c===P;return u.createElement(eL,Oe({ref:function(O){O?p.current[P]=O:delete p.current[P]},dragging:M,draggingDelete:M&&d,style:ud(r,P),key:P,value:E,valueIndex:P},$))}),l&&g&&u.createElement(eL,Oe({key:"a11y"},$,{value:o[x],valueIndex:null,dragging:c!==-1,draggingDelete:d,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),eLe=function(t){var n=t.prefixCls,r=t.style,i=t.children,a=t.value,o=t.onClick,s=u.useContext(Ef),l=s.min,c=s.max,d=s.direction,f=s.includedStart,m=s.includedEnd,p=s.included,h="".concat(n,"-text"),v=VM(d,a,l,c);return u.createElement("span",{className:ne(h,K({},"".concat(h,"-active"),p&&f<=a&&a<=m)),style:A(A({},v),r),onMouseDown:function(w){w.stopPropagation()},onClick:function(){o(a)}},i)},tLe=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,a="".concat(n,"-mark");return r.length?u.createElement("div",{className:a},r.map(function(o){var s=o.value,l=o.style,c=o.label;return u.createElement(eLe,{key:s,prefixCls:a,style:l,value:s,onClick:i},c)})):null},nLe=function(t){var n=t.prefixCls,r=t.value,i=t.style,a=t.activeStyle,o=u.useContext(Ef),s=o.min,l=o.max,c=o.direction,d=o.included,f=o.includedStart,m=o.includedEnd,p="".concat(n,"-dot"),h=d&&f<=r&&r<=m,v=A(A({},VM(c,r,s,l)),typeof i=="function"?i(r):i);return h&&(v=A(A({},v),typeof a=="function"?a(r):a)),u.createElement("span",{className:ne(p,K({},"".concat(p,"-active"),h)),style:v})},rLe=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,a=t.style,o=t.activeStyle,s=u.useContext(Ef),l=s.min,c=s.max,d=s.step,f=u.useMemo(function(){var m=new Set;if(r.forEach(function(h){m.add(h.value)}),i&&d!==null)for(var p=l;p<=c;)m.add(p),p+=d;return Array.from(m)},[l,c,d,i,r]);return u.createElement("div",{className:"".concat(n,"-step")},f.map(function(m){return u.createElement(nLe,{prefixCls:n,key:m,value:m,style:a,activeStyle:o})}))},tL=function(t){var n=t.prefixCls,r=t.style,i=t.start,a=t.end,o=t.index,s=t.onStartMove,l=t.replaceCls,c=u.useContext(Ef),d=c.direction,f=c.min,m=c.max,p=c.disabled,h=c.range,v=c.classNames,g="".concat(n,"-track"),w=qT(i,f,m),y=qT(a,f,m),b=function(_){!p&&s&&s(_,-1)},x={};switch(d){case"rtl":x.right="".concat(w*100,"%"),x.width="".concat(y*100-w*100,"%");break;case"btt":x.bottom="".concat(w*100,"%"),x.height="".concat(y*100-w*100,"%");break;case"ttb":x.top="".concat(w*100,"%"),x.height="".concat(y*100-w*100,"%");break;default:x.left="".concat(w*100,"%"),x.width="".concat(y*100-w*100,"%")}var C=l||ne(g,K(K({},"".concat(g,"-").concat(o+1),o!==null&&h),"".concat(n,"-track-draggable"),s),v.track);return u.createElement("div",{className:C,style:A(A({},x),r),onMouseDown:b,onTouchStart:b})},iLe=function(t){var n=t.prefixCls,r=t.style,i=t.values,a=t.startPoint,o=t.onStartMove,s=u.useContext(Ef),l=s.included,c=s.range,d=s.min,f=s.styles,m=s.classNames,p=u.useMemo(function(){if(!c){if(i.length===0)return[];var v=a??d,g=i[0];return[{start:Math.min(v,g),end:Math.max(v,g)}]}for(var w=[],y=0;yaLe&&d<$.length:!1,S(ee),V(q,he,ee)},le=function oe(de){de.preventDefault(),document.removeEventListener("mouseup",oe),document.removeEventListener("mousemove",te),D.current&&(D.current.removeEventListener("touchmove",N.current),D.current.removeEventListener("touchend",R.current)),N.current=null,R.current=null,D.current=null,s(ee),y(-1),S(!1)};document.addEventListener("mouseup",le),document.addEventListener("mousemove",te),X.currentTarget.addEventListener("touchend",le),X.currentTarget.addEventListener("touchmove",te),N.current=te,R.current=le,D.current=X.currentTarget},W=u.useMemo(function(){var U=Fe(n).sort(function(G,Q){return G-Q}),X=Fe($).sort(function(G,Q){return G-Q}),q={};X.forEach(function(G){q[G]=(q[G]||0)+1}),U.forEach(function(G){q[G]=(q[G]||0)-1});var Y=c?1:0,re=Object.values(q).reduce(function(G,Q){return G+Math.abs(Q)},0);return re<=Y?$:n},[n,$,c]);return[w,p,C,W,B]}function sLe(e,t,n,r,i,a){var o=u.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),s=u.useCallback(function(p){if(n!==null){var h=e+Math.round((o(p)-e)/n)*n,v=function(b){return(String(b).split(".")[1]||"").length},g=Math.max(v(n),v(t),v(e)),w=Number(h.toFixed(g));return e<=w&&w<=t?w:null}return null},[n,e,t,o]),l=u.useCallback(function(p){var h=o(p),v=r.map(function(y){return y.value});n!==null&&v.push(s(p)),v.push(e,t);var g=v[0],w=t-e;return v.forEach(function(y){var b=Math.abs(h-y);b<=w&&(g=y,w=b)}),g},[e,t,r,n,o,s]),c=function p(h,v,g){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,b=h[g],x=b+v,C=[];r.forEach(function(E){C.push(E.value)}),C.push(e,t),C.push(s(b));var S=v>0?1:-1;w==="unit"?C.push(s(b+S*n)):C.push(s(x)),C=C.filter(function(E){return E!==null}).filter(function(E){return v<0?E<=b:E>=b}),w==="unit"&&(C=C.filter(function(E){return E!==b}));var _=w==="unit"?b:x;y=C[0];var k=Math.abs(y-_);if(C.forEach(function(E){var P=Math.abs(E-_);P1){var $=Fe(h);return $[g]=y,p($,v-S,g,w)}return y}else{if(v==="min")return e;if(v==="max")return t}},d=function(h,v,g){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=h[g],b=c(h,v,g,w);return{value:b,changed:b!==y}},f=function(h){return a===null&&h===0||typeof a=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",y=h.map(l),b=y[g],x=c(y,v,g,w);if(y[g]=x,i===!1){var C=a||0;g>0&&y[g-1]!==b&&(y[g]=Math.max(y[g],y[g-1]+C)),g0;$-=1)for(var E=!0;f(y[$]-y[$-1])&&E;){var P=d(y,-1,$-1);y[$-1]=P.value,E=P.changed}for(var M=y.length-1;M>0;M-=1)for(var j=!0;f(y[M]-y[M-1])&&j;){var O=d(y,-1,M-1);y[M-1]=O.value,j=O.changed}for(var N=0;N=0?D:!1},[D,Ee]),we=u.useMemo(function(){return Object.keys(Y||{}).map(function(Je){var Le=Y[Je],ot={value:Number(Je)};return Le&&mt(Le)==="object"&&!u.isValidElement(Le)&&("label"in Le||"style"in Le)?(ot.style=Le.style,ot.label=Le.label):ot.label=Le,ot}).filter(function(Je){var Le=Je.label;return Le||typeof Le=="number"}).sort(function(Je,Le){return Je.value-Le.value})},[Y]),be=sLe(ke,Se,Ee,we,N,De),Pe=ie(be,2),Re=Pe[0],_e=Pe[1],je=Ut(_,{value:S}),He=ie(je,2),Be=He[0],ct=He[1],Ve=u.useMemo(function(){var Je=Be==null?[]:Array.isArray(Be)?Be:[Be],Le=ie(Je,1),ot=Le[0],vt=ot===void 0?ke:ot,Et=Be===null?[]:[vt];if(ce){if(Et=Fe(Je),$||Be===void 0){var It=$>=0?$+1:2;for(Et=Et.slice(0,It);Et.length=0&&pe.current.focus(Je)}Ge(null)},[Qe]);var pt=u.useMemo(function(){return se&&Ee===null?!1:se},[se,Ee]),yt=Ht(function(Je,Le){Ie(Je,Le),P==null||P(Ye(Ve))}),zt=it!==-1;u.useEffect(function(){if(!zt){var Je=Ve.lastIndexOf(ge);pe.current.focus(Je)}},[zt]);var $t=u.useMemo(function(){return Fe(Ce).sort(function(Je,Le){return Je-Le})},[Ce]),ze=u.useMemo(function(){return ce?[$t[0],$t[$t.length-1]]:[ke,$t[0]]},[$t,ce,ke]),fe=ie(ze,2),Me=fe[0],We=fe[1];u.useImperativeHandle(t,function(){return{focus:function(){pe.current.focus(0)},blur:function(){var Le,ot=document,vt=ot.activeElement;(Le=ye.current)!==null&&Le!==void 0&&Le.contains(vt)&&(vt==null||vt.blur())}}}),u.useEffect(function(){p&&pe.current.focus(0)},[]);var wt=u.useMemo(function(){return{min:ke,max:Se,direction:me,disabled:d,keyboard:m,step:Ee,included:H,includedStart:Me,includedEnd:We,range:ce,tabIndex:ee,ariaLabelForHandle:te,ariaLabelledByForHandle:le,ariaRequired:oe,ariaValueTextFormatterForHandle:de,styles:s||{},classNames:o||{}}},[ke,Se,me,d,m,Ee,H,Me,We,ce,ee,te,le,oe,de,s,o]);return u.createElement(Ef.Provider,{value:wt},u.createElement("div",{ref:ye,className:ne(r,i,K(K(K(K({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),z),"".concat(r,"-horizontal"),!z),"".concat(r,"-with-marks"),we.length)),style:a,onMouseDown:Xe,id:l},u.createElement("div",{className:ne("".concat(r,"-rail"),o==null?void 0:o.rail),style:A(A({},U),s==null?void 0:s.rail)}),J!==!1&&u.createElement(iLe,{prefixCls:r,style:B,values:Ve,startPoint:V,onStartMove:pt?yt:void 0}),u.createElement(rLe,{prefixCls:r,marks:we,dots:re,style:X,activeStyle:q}),u.createElement(J9e,{ref:pe,prefixCls:r,style:W,values:Ce,draggingIndex:it,draggingDelete:Te,onStartMove:yt,onOffsetChange:st,onFocus:h,onBlur:v,handleRender:G,activeHandleRender:Q,onChangeComplete:Ae,onDelete:$e?et:void 0}),u.createElement(tLe,{prefixCls:r,marks:we,onClick:Ke})))});const _te=u.createContext({}),rL=u.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=u.useRef(null),a=n&&!r,o=u.useRef(null);function s(){tn.cancel(o.current),o.current=null}function l(){o.current=tn(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),o.current=null})}return u.useEffect(()=>(a?l():s(),s),[a,e.title]),u.createElement(na,Object.assign({ref:di(i,t)},e,{open:a}))}),uLe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:d,handleSizeHover:f,handleActiveColor:m,handleActiveOutlineColor:p,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:g}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",height:r,margin:`${ae(o)} ${ae(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ae(a)} ${ae(o)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ae(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(d).add(c(h).mul(2)).equal(),height:c(d).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ae(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${g}, - inset-block-start ${g}, - width ${g}, - height ${g}, - box-shadow ${g}, - outline ${g} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(d).div(2).add(v).mul(-1).equal(),insetBlockStart:c(f).sub(d).div(2).add(v).mul(-1).equal(),width:c(f).add(c(v).mul(2)).equal(),height:c(f).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ae(v)} ${m}`,outline:`6px solid ${p}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${ae(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` - ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${ae(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` - ${t}-mark-text, - ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},kte=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",p=s(r).mul(3).sub(i).div(2).equal(),h=s(i).sub(r).div(2).equal(),v=t?{borderWidth:`${ae(h)} 0`,transform:`translateY(${ae(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${ae(h)}`,transform:`translateX(${ae(e.calc(h).mul(-1).equal())})`};return{[l]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[f]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:s(r).mul(3).add(t?0:o).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[c]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},dLe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},kte(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},fLe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},kte(e,!1)),{height:"100%"})}},mLe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,a=e.lineWidth+1*1.5,o=e.colorPrimary,s=new rn(o).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:o,handleActiveOutlineColor:s,handleColorDisabled:new rn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},pLe=un("Slider",e=>{const t=Yt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[uLe(t),dLe(t),fLe(t)]},mLe);function OE(){const[e,t]=u.useState(!1),n=u.useRef(null),r=()=>{tn.cancel(n.current)},i=a=>{r(),a?t(a):n.current=tn(()=>{t(a)})};return u.useEffect(()=>r,[]),[e,i]}var hLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const $te=L.forwardRef((e,t)=>{var n,r,i,a,o,s,l,c,d,f;const{prefixCls:m,range:p,className:h,rootClassName:v,style:g,disabled:w,tooltipPrefixCls:y,tipFormatter:b,tooltipVisible:x,getTooltipPopupContainer:C,tooltipPlacement:S,tooltip:_={},onChangeComplete:k,classNames:$,styles:E}=e,P=hLe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:M}=e,{direction:j,slider:O,getPrefixCls:N,getPopupContainer:R}=L.useContext(Ct),D=L.useContext(Br),F=w??D,{handleRender:z,direction:I}=L.useContext(_te),V=(I||j)==="rtl",[B,W]=OE(),[U,X]=OE(),q=Object.assign({},_),{open:Y,placement:re,getPopupContainer:G,prefixCls:Q,formatter:J}=q,Z=Y??x,ee=(B||U)&&Z!==!1,te=vLe(J,b),[le,oe]=OE(),de=Ee=>{k==null||k(Ee),oe(!1)},pe=(Ee,De)=>Ee||(De?V?"left":"right":"top"),ye=N("slider",m),[me,xe,ue]=pLe(ye),ce=ne(h,O==null?void 0:O.className,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.root,$==null?void 0:$.root,v,{[`${ye}-rtl`]:V,[`${ye}-lock`]:le},xe,ue);V&&!P.vertical&&(P.reverse=!P.reverse),L.useEffect(()=>{const Ee=()=>{tn(()=>{X(!1)},1)};return document.addEventListener("mouseup",Ee),()=>{document.removeEventListener("mouseup",Ee)}},[]);const $e=p&&!Z,se=z||((Ee,De)=>{const{index:we}=De,be=Ee.props;function Pe(He,Be,ct){var Ve,Ye,Ne,Ae;ct&&((Ye=(Ve=P)[He])===null||Ye===void 0||Ye.call(Ve,Be)),(Ae=(Ne=be)[He])===null||Ae===void 0||Ae.call(Ne,Be)}const Re=Object.assign(Object.assign({},be),{onMouseEnter:He=>{W(!0),Pe("onMouseEnter",He)},onMouseLeave:He=>{W(!1),Pe("onMouseLeave",He)},onMouseDown:He=>{X(!0),oe(!0),Pe("onMouseDown",He)},onFocus:He=>{var Be;X(!0),(Be=P.onFocus)===null||Be===void 0||Be.call(P,He),Pe("onFocus",He,!0)},onBlur:He=>{var Be;X(!1),(Be=P.onBlur)===null||Be===void 0||Be.call(P,He),Pe("onBlur",He,!0)}}),_e=L.cloneElement(Ee,Re),je=(!!Z||ee)&&te!==null;return $e?_e:L.createElement(rL,Object.assign({},q,{prefixCls:N("tooltip",Q??y),title:te?te(De.value):"",open:je,placement:pe(re??S,M),key:we,classNames:{root:`${ye}-tooltip`},getPopupContainer:G||C||R}),_e)}),he=$e?(Ee,De)=>{const we=L.cloneElement(Ee,{style:Object.assign(Object.assign({},Ee.props.style),{visibility:"hidden"})});return L.createElement(rL,Object.assign({},q,{prefixCls:N("tooltip",Q??y),title:te?te(De.value):"",open:te!==null&&ee,placement:pe(re??S,M),key:"tooltip",classNames:{root:`${ye}-tooltip`},getPopupContainer:G||C||R,draggingDelete:De.draggingDelete}),we)}:void 0,ve=Object.assign(Object.assign(Object.assign(Object.assign({},(r=O==null?void 0:O.styles)===null||r===void 0?void 0:r.root),O==null?void 0:O.style),E==null?void 0:E.root),g),ke=Object.assign(Object.assign({},(i=O==null?void 0:O.styles)===null||i===void 0?void 0:i.tracks),E==null?void 0:E.tracks),Se=ne((a=O==null?void 0:O.classNames)===null||a===void 0?void 0:a.tracks,$==null?void 0:$.tracks);return me(L.createElement(cLe,Object.assign({},P,{classNames:Object.assign({handle:ne((o=O==null?void 0:O.classNames)===null||o===void 0?void 0:o.handle,$==null?void 0:$.handle),rail:ne((s=O==null?void 0:O.classNames)===null||s===void 0?void 0:s.rail,$==null?void 0:$.rail),track:ne((l=O==null?void 0:O.classNames)===null||l===void 0?void 0:l.track,$==null?void 0:$.track)},Se?{tracks:Se}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=O==null?void 0:O.styles)===null||c===void 0?void 0:c.handle),E==null?void 0:E.handle),rail:Object.assign(Object.assign({},(d=O==null?void 0:O.styles)===null||d===void 0?void 0:d.rail),E==null?void 0:E.rail),track:Object.assign(Object.assign({},(f=O==null?void 0:O.styles)===null||f===void 0?void 0:f.track),E==null?void 0:E.track)},Object.keys(ke).length?{tracks:ke}:{}),step:P.step,range:p,className:ce,style:ve,disabled:F,ref:t,prefixCls:ye,handleRender:se,activeHandleRender:he,onChangeComplete:de})))});var gLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,colors:n,type:r,color:i,range:a=!1,className:o,activeIndex:s,onActive:l,onDragStart:c,onDragChange:d,onKeyDelete:f}=e,m=gLe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},m),{track:!1}),h=u.useMemo(()=>`linear-gradient(90deg, ${n.map(S=>`${S.color} ${S.percent}%`).join(", ")})`,[n]),v=u.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),g=Ht(c),w=Ht(d),y=u.useMemo(()=>({onDragStart:g,onDragChange:w}),[]),b=Ht((C,S)=>{const{onFocus:_,style:k,className:$,onKeyDown:E}=C.props,P=Object.assign({},k);return r==="gradient"&&(P.background=BQ(n,S.value)),u.cloneElement(C,{onFocus:M=>{l==null||l(S.index),_==null||_(M)},style:P,className:ne($,{[`${t}-slider-handle-active`]:s===S.index}),onKeyDown:M=>{(M.key==="Delete"||M.key==="Backspace")&&f&&f(S.index),E==null||E(M)}})}),x=u.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return u.createElement(_te.Provider,{value:x},u.createElement(Cte.Provider,{value:y},u.createElement($te,Object.assign({},p,{className:ne(o,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:h},handle:v?{background:v}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},bLe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=o=>n(o[0]),a=o=>r(o[0]);return u.createElement(Ete,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:a}))};function iL(e){return Fe(e).sort((t,n)=>t.percent-n.percent)}const yLe=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:o,onGradientDragging:s,colors:l}=e,c=n==="gradient",d=u.useMemo(()=>l.map(w=>({percent:w.percent,color:w.color.toRgbString()})),[l]),f=u.useMemo(()=>d.map(w=>w.percent),[d]),m=u.useRef(d),p=w=>{let{rawValues:y,draggingIndex:b,draggingValue:x}=w;if(y.length>d.length){const C=BQ(d,x),S=Fe(d);S.splice(b,0,{percent:x,color:C}),m.current=S}else m.current=d;s(!0),r(new ao(iL(m.current)),!0)},h=w=>{let{deleteIndex:y,draggingIndex:b,draggingValue:x}=w,C=Fe(m.current);y!==-1?C.splice(y,1):(C[b]=Object.assign(Object.assign({},C[b]),{percent:x}),C=iL(C)),r(new ao(C),!0)},v=w=>{const y=Fe(d);y.splice(w,1);const b=new ao(y);r(b),i(b)},g=w=>{i(new ao(d)),o>=w.length&&a(w.length-1),s(!1)};return c?u.createElement(Ete,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:g,disabled:!1,type:"gradient",activeIndex:o,onActive:a,onDragStart:p,onDragChange:h,onKeyDelete:v}):null},wLe=u.memo(yLe);var xLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const e=u.useContext(pte),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:a,value:o,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:d,activeIndex:f,gradientDragging:m}=e,p=xLe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),h=L.useMemo(()=>o.cleared?[{percent:0,color:new ao("")},{percent:100,color:new ao("")}]:o.getColors(),[o]),v=!o.isGradient(),[g,w]=L.useState(o);an(()=>{var O;v||w((O=h[f])===null||O===void 0?void 0:O.color)},[m,f]);const y=L.useMemo(()=>{var O;return v?o:m?g:(O=h[f])===null||O===void 0?void 0:O.color},[o,f,v,g,m]),[b,x]=L.useState(y),[C,S]=L.useState(0),_=b!=null&&b.equals(y)?y:b;an(()=>{x(y)},[C,y==null?void 0:y.toHexString()]);const k=(O,N)=>{let R=ta(O);if(o.cleared){const F=R.toRgb();if(!F.r&&!F.g&&!F.b&&N){const{type:z,value:I=0}=N;R=new ao({h:z==="hue"?I:0,s:1,b:1,a:z==="alpha"?I/100:1})}else R=ow(R)}if(t==="single")return R;const D=Fe(h);return D[f]=Object.assign(Object.assign({},D[f]),{color:R}),new ao(D)},$=(O,N,R)=>{const D=k(O,R);x(D.isGradient()?D.getColors()[f].color:D),l(D,N)},E=(O,N)=>{d(k(O,N)),S(R=>R+1)},P=O=>{l(k(O))};let M=null;const j=r.length>1;return(a||j)&&(M=L.createElement("div",{className:`${i}-operation`},j&&L.createElement(mte,{size:"small",options:r,value:t,onChange:n}),L.createElement(vte,Object.assign({prefixCls:i,value:o,onChange:O=>{l(O),c==null||c()}},p)))),L.createElement(L.Fragment,null,M,L.createElement(wLe,Object.assign({},e,{colors:h})),L.createElement(hOe,{prefixCls:i,value:_==null?void 0:_.toHsb(),disabledAlpha:s,onChange:(O,N)=>{$(O,!0,N)},onChangeComplete:(O,N)=>{E(O,N)},components:SLe}),L.createElement(X9e,Object.assign({value:y,onChange:P,prefixCls:i,disabledAlpha:s},p)))},oL=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=u.useContext(hte);return Array.isArray(n)?L.createElement(s6e,{value:t,presets:n,prefixCls:e,onChange:r}):null},CLe=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:p,onActive:h,format:v,onFormatChange:g,gradientDragging:w,onGradientDragging:y,disabledFormat:b}=e,x=`${t}-inner`,C=L.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:c,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:p,onActive:h,format:v,onFormatChange:g,gradientDragging:w,onGradientDragging:y,disabledFormat:b}),[t,i,a,o,s,l,c,d,f,m,p,h,v,g,w,y,b]),S=L.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),_=L.createElement("div",{className:`${x}-content`},L.createElement(aL,null),Array.isArray(n)&&L.createElement(DAe,null),L.createElement(oL,null));return L.createElement(pte.Provider,{value:C},L.createElement(hte.Provider,{value:S},L.createElement("div",{className:x},typeof r=="function"?r(_,{components:{Picker:aL,Presets:oL}}):_)))};var _Le=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{color:n,prefixCls:r,open:i,disabled:a,format:o,className:s,showText:l,activeIndex:c}=e,d=_Le(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,m=`${f}-text`,p=`${m}-cell`,[h]=ya("ColorPicker"),v=L.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return h.transparent;if(n.isGradient())return n.getColors().map((b,x)=>{const C=c!==-1&&c!==x;return L.createElement("span",{key:x,className:ne(p,C&&`${p}-inactive`)},b.color.toRgbString()," ",b.percent,"%")});const w=n.toHexString().toUpperCase(),y=qI(n);switch(o){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return y<100?`${w.slice(0,7)},${y}%`:w}},[n,o,l,c]),g=u.useMemo(()=>n.cleared?L.createElement(vte,{prefixCls:r}):L.createElement(HI,{prefixCls:r,color:n.toCssString()}),[n,r]);return L.createElement("div",Object.assign({ref:t,className:ne(f,s,{[`${f}-active`]:i,[`${f}-disabled`]:a})},yr(d)),g,l&&L.createElement("div",{className:m},v))});function $Le(e,t,n){const[r]=ya("ColorPicker"),[i,a]=Ut(e,{value:t}),[o,s]=u.useState("single"),[l,c]=u.useMemo(()=>{const v=(Array.isArray(n)?n:[n]).filter(b=>b);v.length||v.push("single");const g=new Set(v),w=[],y=(b,x)=>{g.has(b)&&w.push({label:x,value:b})};return y("single",r.singleColor),y("gradient",r.gradientColor),[w,g]},[n]),[d,f]=u.useState(null),m=Ht(v=>{f(v),a(v)}),p=u.useMemo(()=>{const v=ta(i||"");return v.equals(d)?d:v},[i,d]),h=u.useMemo(()=>{var v;return c.has(o)?o:(v=l[0])===null||v===void 0?void 0:v.value},[c,o,l]);return u.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,m,h,s,l]}const Pte=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),sL=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:a,colorFillSecondary:o}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},Pte("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${ae(a)} ${o}`,borderRadius:"inherit"}})}},ELe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:a,marginXXS:o,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:p,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${ae(a)}`,marginInlineStart:o},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(o).equal(),fontSize:r,lineHeight:ae(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:o,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:o,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${ae(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:ae(e.calc(l).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:m}}}}}},PLe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:a,colorBgElevated:o,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${ae(l)} solid ${o}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},TLe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:a,fontSizeSM:o,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:p,paddingXS:h,fontHeightSM:v}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:v,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${ae(h)} 0`},"&-label":{fontSize:o,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(c).mul(4)).equal(),height:e.calc(a).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:d,border:`${ae(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:o,color:r}}}},OLe=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:a,colorPickerHandlerSizeSM:o,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,d=e.calc(o).sub(e.calc(a).mul(2).equal()).equal(),f=e.calc(o).add(e.calc(a).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[Pte(ae(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:o,height:o,border:`${ae(a)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},GT=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${n}`,outline:0}),RLe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},lL=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:a,colorSplit:o,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${ae(a)} solid ${o}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},ILe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:a,colorErrorOutline:o,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},GT(e,n,o))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},GT(e,r,s))}}},MLe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:a,borderRadius:o,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:o},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:ae(a)}}}},NLe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:a,colorBgElevated:o,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:d,marginXS:f,marginSM:m,controlHeight:p,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:g,colorPickerPreviewSize:w,lineWidth:y,colorBorder:b,paddingXXS:x,fontSize:C,colorPrimaryHover:S,controlOutline:_}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${ae(m)} 0 ${ae(f)}`}},[`${n}-panel`]:Object.assign({},PLe(e))},OLe(e)),sL(e,w)),ELe(e)),TLe(e)),lL(e,g,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:d,border:`${ae(y)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:o,padding:e.calc(x).sub(y).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(x).sub(y)).equal(),fontSize:C,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},GT(e,i,_)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:v},[`${n}-trigger-text`]:{color:s}}},lL(e,h)),sL(e,h)),ILe(e)),MLe(e))},RLe(e))},wf(e,{focusElCls:`${n}-trigger-active`})]},DLe=un("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=Yt(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[NLe(i)]});var jLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:a,allowClear:o=!1,presets:s,children:l,trigger:c="click",open:d,disabled:f,placement:m="bottomLeft",arrow:p=!0,panelRender:h,showText:v,style:g,className:w,size:y,rootClassName:b,prefixCls:x,styles:C,disabledAlpha:S=!1,onFormatChange:_,onChange:k,onClear:$,onOpenChange:E,onChangeComplete:P,getPopupContainer:M,autoAdjustOverflow:j=!0,destroyTooltipOnHide:O,disabledFormat:N}=e,R=jLe(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:D,direction:F,colorPicker:z}=u.useContext(Ct),I=u.useContext(Br),H=f??I,[V,B]=Ut(!1,{value:d,postState:Re=>!H&&Re,onChange:E}),[W,U]=Ut(i,{value:i,defaultValue:a,onChange:_}),X=D("color-picker",x),[q,Y,re,G,Q]=$Le(r,n,t),J=u.useMemo(()=>qI(q)<100,[q]),[Z,ee]=L.useState(null),te=Re=>{if(P){let _e=ta(Re);S&&J&&(_e=ow(Re)),P(_e)}},le=(Re,_e)=>{let je=ta(Re);S&&J&&(je=ow(je)),Y(je),ee(null),k&&k(je,je.toCssString()),_e||te(je)},[oe,de]=L.useState(0),[pe,ye]=L.useState(!1),me=Re=>{if(G(Re),Re==="single"&&q.isGradient())de(0),le(new ao(q.getColors()[0].color)),ee(q);else if(Re==="gradient"&&!q.isGradient()){const _e=J?ow(q):q;le(new ao(Z||[{percent:0,color:_e},{percent:100,color:_e}]))}},{status:xe}=L.useContext(Qr),{compactSize:ue,compactItemClassnames:ce}=Qs(X,F),$e=Fr(Re=>{var _e;return(_e=y??ue)!==null&&_e!==void 0?_e:Re}),se=Dn(X),[he,ve,ke]=DLe(X,se),Se={[`${X}-rtl`]:F},Ee=ne(b,ke,se,Se),De=ne(Hs(X,xe),{[`${X}-sm`]:$e==="small",[`${X}-lg`]:$e==="large"},ce,z==null?void 0:z.className,Ee,w,ve),we=ne(X,Ee),be={open:V,trigger:c,placement:m,arrow:p,rootClassName:b,getPopupContainer:M,autoAdjustOverflow:j,destroyTooltipOnHide:O},Pe=Object.assign(Object.assign({},z==null?void 0:z.style),g);return he(L.createElement(Sf,Object.assign({style:C==null?void 0:C.popup,styles:{body:C==null?void 0:C.popupOverlayInner},onOpenChange:Re=>{(!Re||!H)&&B(Re)},content:L.createElement(Tl,{form:!0},L.createElement(CLe,{mode:re,onModeChange:me,modeOptions:Q,prefixCls:X,value:q,allowClear:o,disabled:H,disabledAlpha:S,presets:s,panelRender:h,format:W,onFormatChange:U,onChange:le,onChangeComplete:te,onClear:$,activeIndex:oe,onActive:de,gradientDragging:pe,onGradientDragging:ye,disabledFormat:N})),classNames:{root:we}},be),l||L.createElement(kLe,Object.assign({activeIndex:V?oe:-1,open:V,className:De,style:Pe,prefixCls:X,disabled:H,showText:v,format:W},R,{color:q}))))},FLe=Bu(WM,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);WM._InternalPanelDoNotUseOrYouWillBeFired=FLe;function ALe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function LLe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Tte(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=s_(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[u.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[BLe,zLe]=["week","WeekPicker"],[HLe,VLe]=["month","MonthPicker"],[WLe,ULe]=["year","YearPicker"],[qLe,GLe]=["quarter","QuarterPicker"],[Ote,cL]=["time","TimePicker"],KLe=e=>u.createElement(_n,Object.assign({size:"small",type:"primary"},e));function Rte(e){return u.useMemo(()=>Object.assign({button:KLe},e),[e])}var YLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iu.forwardRef((n,r)=>{var i;const{prefixCls:a,getPopupContainer:o,components:s,className:l,style:c,placement:d,size:f,disabled:m,bordered:p=!0,placeholder:h,popupClassName:v,dropdownClassName:g,status:w,rootClassName:y,variant:b,picker:x}=n,C=YLe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=u.useRef(null),{getPrefixCls:_,direction:k,getPopupContainer:$,rangePicker:E}=u.useContext(Ct),P=_("picker",a),{compactSize:M,compactItemClassnames:j}=Qs(P,k),O=_(),[N,R]=Tc("rangePicker",b,p),D=Dn(P),[F,z,I]=Dee(P,D),[H]=Tte(n,P),V=Rte(s),B=Fr(ee=>{var te;return(te=f??M)!==null&&te!==void 0?te:ee}),W=u.useContext(Br),U=m??W,X=u.useContext(Qr),{hasFeedback:q,status:Y,feedbackIcon:re}=X,G=u.createElement(u.Fragment,null,x===Ote?u.createElement(QY,null):u.createElement(XY,null),q&&re);u.useImperativeHandle(r,()=>S.current);const[Q]=ya("Calendar",jx),J=Object.assign(Object.assign({},Q),n.locale),[Z]=Xs("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return F(u.createElement(Tl,{space:!0},u.createElement(oje,Object.assign({separator:u.createElement("span",{"aria-label":"to",className:`${P}-separator`},u.createElement(REe,null)),disabled:U,ref:S,placement:d,placeholder:LLe(J,x,h),suffixIcon:G,prevIcon:u.createElement("span",{className:`${P}-prev-icon`}),nextIcon:u.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:u.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:u.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${O}-slide-up`,picker:x},C,{className:ne({[`${P}-${B}`]:B,[`${P}-${N}`]:R},Hs(P,Pc(Y,w),q),z,j,l,E==null?void 0:E.className,I,D,y),style:Object.assign(Object.assign({},E==null?void 0:E.style),c),locale:J.lang,prefixCls:P,getPopupContainer:o||$,generateConfig:e,components:V,direction:k,classNames:{popup:ne(z,v||g,I,D,y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:Z})},allowClear:H}))))});var QLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const t=(l,c)=>{const d=c===cL?"timePicker":"datePicker";return u.forwardRef((m,p)=>{var h;const{prefixCls:v,getPopupContainer:g,components:w,style:y,className:b,rootClassName:x,size:C,bordered:S,placement:_,placeholder:k,popupClassName:$,dropdownClassName:E,disabled:P,status:M,variant:j,onCalendarChange:O}=m,N=QLe(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:R,direction:D,getPopupContainer:F,[d]:z}=u.useContext(Ct),I=R("picker",v),{compactSize:H,compactItemClassnames:V}=Qs(I,D),B=u.useRef(null),[W,U]=Tc("datePicker",j,S),X=Dn(I),[q,Y,re]=Dee(I,X);u.useImperativeHandle(p,()=>B.current);const G={showToday:!0},Q=l||m.picker,J=R(),{onSelect:Z,multiple:ee}=N,te=Z&&l==="time"&&!ee,le=(Ee,De,we)=>{O==null||O(Ee,De,we),te&&Z(Ee)},[oe,de]=Tte(m,I),pe=Rte(w),ye=Fr(Ee=>{var De;return(De=C??H)!==null&&De!==void 0?De:Ee}),me=u.useContext(Br),xe=P??me,ue=u.useContext(Qr),{hasFeedback:ce,status:$e,feedbackIcon:se}=ue,he=u.createElement(u.Fragment,null,Q==="time"?u.createElement(QY,null):u.createElement(XY,null),ce&&se),[ve]=ya("DatePicker",jx),ke=Object.assign(Object.assign({},ve),m.locale),[Se]=Xs("DatePicker",(h=m.popupStyle)===null||h===void 0?void 0:h.zIndex);return q(u.createElement(Tl,{space:!0},u.createElement(fje,Object.assign({ref:B,placeholder:ALe(ke,Q,k),suffixIcon:he,placement:_,prevIcon:u.createElement("span",{className:`${I}-prev-icon`}),nextIcon:u.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:u.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:u.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${J}-slide-up`,picker:l,onCalendarChange:le},G,N,{locale:ke.lang,className:ne({[`${I}-${ye}`]:ye,[`${I}-${W}`]:U},Hs(I,Pc($e,M),ce),Y,V,z==null?void 0:z.className,b,re,X,x),style:Object.assign(Object.assign({},z==null?void 0:z.style),y),prefixCls:I,getPopupContainer:g||F,generateConfig:e,components:pe,direction:D,disabled:xe,classNames:{popup:ne(Y,re,X,x,$||E)},styles:{popup:Object.assign(Object.assign({},m.popupStyle),{zIndex:Se})},allowClear:oe,removeIcon:de}))))})},n=t(),r=t(BLe,zLe),i=t(HLe,VLe),a=t(WLe,ULe),o=t(qLe,GLe),s=t(Ote,cL);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:o}},Ite=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=ZLe(e),s=XLe(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=o,l},Qo=Ite(pDe),JLe=Bu(Qo,"popupAlign",void 0,"picker");Qo._InternalPanelDoNotUseOrYouWillBeFired=JLe;const e7e=Bu(Qo.RangePicker,"popupAlign",void 0,"picker");Qo._InternalRangePanelDoNotUseOrYouWillBeFired=e7e;Qo.generatePicker=Ite;function Xx(e){return["small","middle","large"].includes(e)}function uL(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Mte=L.createContext({latestIndex:0}),t7e=Mte.Provider,n7e=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=u.useContext(Mte);return r==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:t,style:a},r),n{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=u.useContext(Ct),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:c,className:d,rootClassName:f,children:m,direction:p="horizontal",prefixCls:h,split:v,style:g,wrap:w=!1,classNames:y,styles:b}=e,x=r7e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,S]=Array.isArray(l)?l:[l,l],_=Xx(S),k=Xx(C),$=uL(S),E=uL(C),P=Lr(m,{keepEmpty:!0}),M=c===void 0&&p==="horizontal"?"center":c,j=a("space",h),[O,N,R]=PQ(j),D=ne(j,o==null?void 0:o.className,N,`${j}-${p}`,{[`${j}-rtl`]:s==="rtl",[`${j}-align-${M}`]:M,[`${j}-gap-row-${S}`]:_,[`${j}-gap-col-${C}`]:k},d,f,R),F=ne(`${j}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(i=o==null?void 0:o.classNames)===null||i===void 0?void 0:i.item);let z=0;const I=P.map((B,W)=>{var U,X;B!=null&&(z=W);const q=(B==null?void 0:B.key)||`${F}-${W}`;return u.createElement(n7e,{className:F,key:q,index:W,split:v,style:(U=b==null?void 0:b.item)!==null&&U!==void 0?U:(X=o==null?void 0:o.styles)===null||X===void 0?void 0:X.item},B)}),H=u.useMemo(()=>({latestIndex:z}),[z]);if(P.length===0)return null;const V={};return w&&(V.flexWrap="wrap"),!k&&E&&(V.columnGap=C),!_&&$&&(V.rowGap=S),O(u.createElement("div",Object.assign({ref:t,className:D,style:Object.assign(Object.assign(Object.assign({},V),o==null?void 0:o.style),g)},x),u.createElement(t7e,{value:H},I)))}),Ws=i7e;Ws.Compact=XTe;var a7e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPopupContainer:t,getPrefixCls:n,direction:r}=u.useContext(Ct),{prefixCls:i,type:a="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:d,children:f,className:m,menu:p,arrow:h,autoFocus:v,overlay:g,trigger:w,align:y,open:b,onOpenChange:x,placement:C,getPopupContainer:S,href:_,icon:k=u.createElement(e1,null),title:$,buttonsRender:E=Y=>Y,mouseEnterDelay:P,mouseLeaveDelay:M,overlayClassName:j,overlayStyle:O,destroyPopupOnHide:N,dropdownRender:R}=e,D=a7e(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",i),z=`${F}-button`,I={menu:p,arrow:h,autoFocus:v,align:y,disabled:s,trigger:s?[]:w,onOpenChange:x,getPopupContainer:S||t,mouseEnterDelay:P,mouseLeaveDelay:M,overlayClassName:j,overlayStyle:O,destroyPopupOnHide:N,dropdownRender:R},{compactSize:H,compactItemClassnames:V}=Qs(F,r),B=ne(z,V,m);"overlay"in e&&(I.overlay=g),"open"in e&&(I.open=b),"placement"in e?I.placement=C:I.placement=r==="rtl"?"bottomLeft":"bottomRight";const W=u.createElement(_n,{type:a,danger:o,disabled:s,loading:l,onClick:c,htmlType:d,href:_,title:$},f),U=u.createElement(_n,{type:a,danger:o,icon:k}),[X,q]=E([W,U]);return u.createElement(Ws.Compact,Object.assign({className:B,size:H,block:!0},D),X,u.createElement(h_,Object.assign({},I),q))};Nte.__ANT_BUTTON=!0;const E_=h_;E_.Button=Nte;const Dte=["wrap","nowrap","wrap-reverse"],jte=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Fte=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],o7e=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&Dte.includes(n)}},s7e=(e,t)=>{const n={};return Fte.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},l7e=(e,t)=>{const n={};return jte.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function c7e(e,t){return ne(Object.assign(Object.assign(Object.assign({},o7e(e,t)),s7e(e,t)),l7e(e,t)))}const u7e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},d7e=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},f7e=e=>{const{componentCls:t}=e,n={};return Dte.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},m7e=e=>{const{componentCls:t}=e,n={};return Fte.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},p7e=e=>{const{componentCls:t}=e,n={};return jte.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},h7e=()=>({}),v7e=un("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Yt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[u7e(i),d7e(i),f7e(i),m7e(i),p7e(i)]},h7e,{resetStyle:!1});var g7e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,children:l,vertical:c=!1,component:d="div"}=e,f=g7e(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:p,getPrefixCls:h}=L.useContext(Ct),v=h("flex",n),[g,w,y]=v7e(v),b=c??(m==null?void 0:m.vertical),x=ne(i,r,m==null?void 0:m.className,v,w,y,c7e(v,e),{[`${v}-rtl`]:p==="rtl",[`${v}-gap-${s}`]:Xx(s),[`${v}-vertical`]:b}),C=Object.assign(Object.assign({},m==null?void 0:m.style),a);return o&&(C.flex=o),s&&!Xx(s)&&(C.gap=s),g(L.createElement(d,Object.assign({ref:t,className:x,style:C},kn(f,["justify","wrap","align"])),l))});function Qx(e){const[t,n]=u.useState(e);return u.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const b7e=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, - opacity ${e.motionDurationFast} ${e.motionEaseInOut}, - transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},y7e=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),dL=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},w7e=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},mn(e)),y7e(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},dL(e,e.controlHeightSM)),"&-large":Object.assign({},dL(e,e.controlHeightLG))})}},x7e=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:m}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:UI,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},fL=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},S7e=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},xs=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ate=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:xs(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},C7e=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, - ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:xs(e)}},[`@media (max-width: ${ae(e.screenXSMax)})`]:[Ate(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:xs(e)}}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:xs(e)}}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:xs(e)}}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:xs(e)}}}}},_7e=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, - ${n}-col-24${t}-label, - ${n}-col-xl-24${t}-label`]:xs(e),[`@media (max-width: ${ae(e.screenXSMax)})`]:[Ate(e),{[t]:{[`${n}-col-xs-24${t}-label`]:xs(e)}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:xs(e)}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:xs(e)}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:xs(e)}}}},k7e=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Lte=(e,t)=>Yt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),UM=un("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Lte(e,n);return[w7e(r),x7e(r),b7e(r),fL(r,r.componentCls),fL(r,r.formItemCls),S7e(r),C7e(r),_7e(r),a1(r),UI]},k7e,{order:-1e3}),mL=[];function RE(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Bte=e=>{let{help:t,helpStatus:n,errors:r=mL,warnings:i=mL,className:a,fieldId:o,onVisibleChanged:s}=e;const{prefixCls:l}=u.useContext(JI),c=`${l}-item-explain`,d=Dn(l),[f,m,p]=UM(l,d),h=u.useMemo(()=>vp(l),[l]),v=Qx(r),g=Qx(i),w=u.useMemo(()=>t!=null?[RE(t,"help",n)]:[].concat(Fe(v.map((x,C)=>RE(x,"error","error",C))),Fe(g.map((x,C)=>RE(x,"warning","warning",C)))),[t,n,v,g]),y=u.useMemo(()=>{const x={};return w.forEach(C=>{let{key:S}=C;x[S]=(x[S]||0)+1}),w.map((C,S)=>Object.assign(Object.assign({},C),{key:x[C.key]>1?`${C.key}-fallback-${S}`:C.key}))},[w]),b={};return o&&(b.id=`${o}_help`),f(u.createElement(Oi,{motionDeadline:h.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},x=>{const{className:C,style:S}=x;return u.createElement("div",Object.assign({},b,{className:ne(c,C,p,d,a,m),style:S,role:"alert"}),u.createElement(A2,Object.assign({keys:y},vp(l),{motionName:`${l}-show-help-item`,component:!1}),_=>{const{key:k,error:$,errorStatus:E,className:P,style:M}=_;return u.createElement("div",{key:k,className:ne(P,{[`${c}-${E}`]:E}),style:M},$)}))}))},$7e=["parentNode"],E7e="form_item";function rg(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function zte(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:$7e.includes(n)?`${E7e}_${n}`:n}function Hte(e,t,n,r,i,a){let o=r;return a!==void 0?o=a:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function pL(e){return rg(e).join("_")}function hL(e,t){const n=t.getFieldInstance(e),r=T2(n);if(r)return r;const i=zte(rg(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function Vte(e){const[t]=ZI(),n=u.useRef({}),r=u.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const o=pL(i);a?n.current[o]=a:delete n.current[o]}},scrollToField:function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=hL(i,r);o&&eTe(o,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:i=>{var a;const o=hL(i,r);o&&((a=o.focus)===null||a===void 0||a.call(o))},getFieldInstance:i=>{const a=pL(i);return n.current[a]}}),[e,t]);return[r]}var P7e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=u.useContext(Br),{getPrefixCls:r,direction:i,form:a}=u.useContext(Ct),{prefixCls:o,className:s,rootClassName:l,size:c,disabled:d=n,form:f,colon:m,labelAlign:p,labelWrap:h,labelCol:v,wrapperCol:g,hideRequiredMark:w,layout:y="horizontal",scrollToFirstError:b,requiredMark:x,onFinishFailed:C,name:S,style:_,feedbackIcons:k,variant:$}=e,E=P7e(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=Fr(c),M=u.useContext(HX),j=u.useMemo(()=>x!==void 0?x:w?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[w,x,a]),O=m??(a==null?void 0:a.colon),N=r("form",o),R=Dn(N),[D,F,z]=UM(N,R),I=ne(N,`${N}-${y}`,{[`${N}-hide-required-mark`]:j===!1,[`${N}-rtl`]:i==="rtl",[`${N}-${P}`]:P},z,R,F,a==null?void 0:a.className,s,l),[H]=Vte(f),{__INTERNAL__:V}=H;V.name=S;const B=u.useMemo(()=>({name:S,labelAlign:p,labelCol:v,labelWrap:h,wrapperCol:g,vertical:y==="vertical",colon:O,requiredMark:j,itemRef:V.itemRef,form:H,feedbackIcons:k}),[S,p,v,g,y,O,j,H,k]),W=u.useRef(null);u.useImperativeHandle(t,()=>{var q;return Object.assign(Object.assign({},H),{nativeElement:(q=W.current)===null||q===void 0?void 0:q.nativeElement})});const U=(q,Y)=>{if(q){let re={block:"nearest"};typeof q=="object"&&(re=Object.assign(Object.assign({},re),q)),H.scrollToField(Y,re),re.focus&&H.focusField(Y)}},X=q=>{if(C==null||C(q),q.errorFields.length){const Y=q.errorFields[0].name;if(b!==void 0){U(b,Y);return}a&&a.scrollToFirstError!==void 0&&U(a.scrollToFirstError,Y)}};return D(u.createElement(sZ.Provider,{value:$},u.createElement(NI,{disabled:d},u.createElement(Jd.Provider,{value:P},u.createElement(oZ,{validateMessages:M},u.createElement(bc.Provider,{value:B},u.createElement(Jp,Object.assign({id:S},E,{name:S,onFinishFailed:X,form:H,ref:W,style:Object.assign(Object.assign({},a==null?void 0:a.style),_),className:I}))))))))},O7e=u.forwardRef(T7e);function R7e(e){if(typeof e=="function")return e;const t=Lr(e);return t.length<=1?t[0]:t}const Wte=()=>{const{status:e,errors:t=[],warnings:n=[]}=u.useContext(Qr);return{status:e,errors:t,warnings:n}};Wte.Context=Qr;function I7e(e){const[t,n]=u.useState(e),r=u.useRef(null),i=u.useRef([]),a=u.useRef(!1);u.useEffect(()=>(a.current=!1,()=>{a.current=!0,tn.cancel(r.current),r.current=null}),[]);function o(s){a.current||(r.current===null&&(i.current=[],r.current=tn(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(d=>{c=d(c)}),c})})),i.current.push(s))}return[t,o]}function M7e(){const{itemRef:e}=u.useContext(bc),t=u.useRef({});function n(r,i){const a=i&&typeof i=="object"&&Lu(i),o=r.join("_");return(t.current.name!==o||t.current.originRef!==a)&&(t.current.name=o,t.current.originRef=a,t.current.ref=di(e(r),a)),t.current.ref}return n}const N7e=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},D7e=yf(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Lte(e,n);return[N7e(r)]});var j7e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:l,extra:c,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:p,label:h}=e,v=`${t}-item`,g=u.useContext(bc),w=u.useMemo(()=>{let O=Object.assign({},i||g.wrapperCol||{});return h===null&&!r&&!i&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(R=>{const D=R?[R]:[],F=$i(g.labelCol,D),z=typeof F=="object"?F:{},I=$i(O,D),H=typeof I=="object"?I:{};"span"in z&&!("offset"in H)&&z.spanj7e(g,["labelCol","wrapperCol"]),[g]),x=u.useRef(null),[C,S]=u.useState(0);an(()=>{c&&x.current?S(x.current.clientHeight):S(0)},[c]);const _=u.createElement("div",{className:`${v}-control-input`},u.createElement("div",{className:`${v}-control-input-content`},a)),k=u.useMemo(()=>({prefixCls:t,status:n}),[t,n]),$=m!==null||o.length||s.length?u.createElement(JI.Provider,{value:k},u.createElement(Bte,{fieldId:f,errors:o,warnings:s,help:d,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:p})):null,E={};f&&(E.id=`${f}_extra`);const P=c?u.createElement("div",Object.assign({},E,{className:`${v}-extra`,ref:x}),c):null,M=$||P?u.createElement("div",{className:`${v}-additional`,style:m?{minHeight:m+C}:{}},$,P):null,j=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:_,errorList:$,extra:P}):u.createElement(u.Fragment,null,_,M);return u.createElement(bc.Provider,{value:b},u.createElement(Zi,Object.assign({},w,{className:y}),j),u.createElement(D7e,{prefixCls:t}))};var L7e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:o,required:s,requiredMark:l,tooltip:c,vertical:d}=e;var f;const[m]=ya("Form"),{labelAlign:p,labelCol:h,labelWrap:v,colon:g}=u.useContext(bc);if(!n)return null;const w=i||h||{},y=a||p,b=`${t}-item-label`,x=ne(b,y==="left"&&`${b}-left`,w.className,{[`${b}-wrap`]:!!v});let C=n;const S=o===!0||g!==!1&&o!==!1;S&&!d&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const k=B7e(c);if(k){const{icon:M=u.createElement(oEe,null)}=k,j=L7e(k,["icon"]),O=u.createElement(na,Object.assign({},j),u.cloneElement(M,{className:`${t}-item-tooltip`,title:"",onClick:N=>{N.preventDefault()},tabIndex:null}));C=u.createElement(u.Fragment,null,C,O)}const $=l==="optional",E=typeof l=="function";E?C=l(C,{required:!!s}):$&&!s&&(C=u.createElement(u.Fragment,null,C,u.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((f=Yo.Form)===null||f===void 0?void 0:f.optional))));const P=ne({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:$||E,[`${t}-item-no-colon`]:!S});return u.createElement(Zi,Object.assign({},w,{className:x}),u.createElement("label",{htmlFor:r,className:P,title:typeof n=="string"?n:""},C))},H7e={success:Z0,warning:v2,error:$c,validating:js};function Ute(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:o,meta:s,noStyle:l}=e;const c=`${o}-item`,{feedbackIcons:d}=u.useContext(bc),f=Hte(n,r,s,null,!!i,a),{isFormItemInput:m,status:p,hasFeedback:h,feedbackIcon:v}=u.useContext(Qr),g=u.useMemo(()=>{var w;let y;if(i){const x=i!==!0&&i.icons||d,C=f&&((w=x==null?void 0:x({status:f,errors:n,warnings:r}))===null||w===void 0?void 0:w[f]),S=f&&H7e[f];y=C!==!1&&S?u.createElement("span",{className:ne(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},C||u.createElement(S,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:y,isFormItemInput:!0};return l&&(b.status=(f??p)||"",b.isFormItemInput=m,b.hasFeedback=!!(i??h),b.feedbackIcon=i!==void 0?b.feedbackIcon:v),b},[f,i,l,m,p]);return u.createElement(Qr.Provider,{value:g},t)}var V7e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(P&&_.current){const z=getComputedStyle(_.current);O(parseInt(z.marginBottom,10))}},[P,M]);const N=z=>{z||O(null)},D=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const I=z?k:c.errors,H=z?$:c.warnings;return Hte(I,H,c,"",!!d,l)}(),F=ne(b,n,r,{[`${b}-with-help`]:E||k.length||$.length,[`${b}-has-feedback`]:D&&d,[`${b}-has-success`]:D==="success",[`${b}-has-warning`]:D==="warning",[`${b}-has-error`]:D==="error",[`${b}-is-validating`]:D==="validating",[`${b}-hidden`]:f,[`${b}-${w}`]:w});return u.createElement("div",{className:F,style:i,ref:_},u.createElement($f,Object.assign({className:`${b}-row`},kn(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),u.createElement(z7e,Object.assign({htmlFor:p},e,{requiredMark:x,required:h??v,prefixCls:t,vertical:S})),u.createElement(A7e,Object.assign({},e,c,{errors:k,warnings:$,prefixCls:t,status:D,help:a,marginBottom:j,onErrorVisibleChanged:N}),u.createElement(aZ.Provider,{value:g},u.createElement(Ute,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:d,validateStatus:D},m)))),!!j&&u.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-j}}))}const U7e="__SPLIT__";function q7e(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],o=t[i];return a===o||typeof a=="function"||typeof o=="function"})}const G7e=u.memo(e=>{let{children:t}=e;return t},(e,t)=>q7e(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function vL(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function K7e(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:c,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:p,hidden:h,help:v,layout:g}=e,{getPrefixCls:w}=u.useContext(Ct),{name:y}=u.useContext(bc),b=R7e(l),x=typeof b=="function",C=u.useContext(aZ),{validateTrigger:S}=u.useContext(Tu),_=p!==void 0?p:S,k=t!=null,$=w("form",a),E=Dn($),[P,M,j]=UM($,E);Fl();const O=u.useContext(Jg),N=u.useRef(null),[R,D]=I7e({}),[F,z]=ef(()=>vL()),I=q=>{const Y=O==null?void 0:O.getKey(q.name);if(z(q.destroy?vL():q,!0),n&&v!==!1&&C){let re=q.name;if(q.destroy)re=N.current||re;else if(Y!==void 0){const[G,Q]=Y;re=[G].concat(Fe(Q)),N.current=re}C(q,re)}},H=(q,Y)=>{D(re=>{const G=Object.assign({},re),J=[].concat(Fe(q.name.slice(0,-1)),Fe(Y)).join(U7e);return q.destroy?delete G[J]:G[J]=q,G})},[V,B]=u.useMemo(()=>{const q=Fe(F.errors),Y=Fe(F.warnings);return Object.values(R).forEach(re=>{q.push.apply(q,Fe(re.errors||[])),Y.push.apply(Y,Fe(re.warnings||[]))}),[q,Y]},[R,F.errors,F.warnings]),W=M7e();function U(q,Y,re){return n&&!h?u.createElement(Ute,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:V,warnings:B,noStyle:!0},q):u.createElement(W7e,Object.assign({key:"row"},e,{className:ne(r,j,E,M),prefixCls:$,fieldId:Y,isRequired:re,errors:V,warnings:B,meta:F,onSubItemMetaChange:H,layout:g}),q)}if(!k&&!x&&!i)return P(U(b));let X={};return typeof d=="string"?X.label=d:t&&(X.label=String(t)),f&&(X=Object.assign(Object.assign({},X),f)),P(u.createElement(QI,Object.assign({},e,{messageVariables:X,trigger:m,validateTrigger:_,onMetaChange:I}),(q,Y,re)=>{const G=rg(t).length&&Y?Y.name:[],Q=zte(G,y),J=c!==void 0?c:!!(s!=null&&s.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const le=te(re);return(le==null?void 0:le.required)&&!(le!=null&&le.warningOnly)}return!1})),Z=Object.assign({},q);let ee=null;if(Array.isArray(b)&&k)ee=b;else if(!(x&&(!(o||i)||k))){if(!(i&&!x&&!k))if(u.isValidElement(b)){const te=Object.assign(Object.assign({},b.props),Z);if(te.id||(te.id=Q),v||V.length>0||B.length>0||e.extra){const de=[];(v||V.length>0)&&de.push(`${Q}_help`),e.extra&&de.push(`${Q}_extra`),te["aria-describedby"]=de.join(" ")}V.length>0&&(te["aria-invalid"]="true"),J&&(te["aria-required"]="true"),As(b)&&(te.ref=W(G,b)),new Set([].concat(Fe(rg(m)),Fe(rg(_)))).forEach(de=>{te[de]=function(){for(var pe,ye,me,xe,ue,ce=arguments.length,$e=new Array(ce),se=0;se{var{prefixCls:t,children:n}=e,r=Y7e(e,["prefixCls","children"]);const{getPrefixCls:i}=u.useContext(Ct),a=i("form",t),o=u.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return u.createElement(tZ,Object.assign({},r),(s,l,c)=>u.createElement(JI.Provider,{value:o},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),l,{errors:c.errors,warnings:c.warnings})))};function Q7e(){const{form:e}=u.useContext(bc);return e}const Hr=O7e;Hr.Item=qte;Hr.List=X7e;Hr.ErrorList=Bte;Hr.useForm=Vte;Hr.useFormInstance=Q7e;Hr.useWatch=iZ;Hr.Provider=oZ;Hr.create=()=>{};function Gte(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Z7e(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function yl(e,t,n,r){var i=Pg.unstable_batchedUpdates?function(o){Pg.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var w1=u.createContext(null),J7e=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,d=t.showProgress,f=t.current,m=t.transform,p=t.count,h=t.scale,v=t.minScale,g=t.maxScale,w=t.closeIcon,y=t.onActive,b=t.onClose,x=t.onZoomIn,C=t.onZoomOut,S=t.onRotateRight,_=t.onRotateLeft,k=t.onFlipX,$=t.onFlipY,E=t.onReset,P=t.toolbarRender,M=t.zIndex,j=t.image,O=u.useContext(w1),N=s.rotateLeft,R=s.rotateRight,D=s.zoomIn,F=s.zoomOut,z=s.close,I=s.left,H=s.right,V=s.flipX,B=s.flipY,W="".concat(a,"-operations-operation");u.useEffect(function(){var le=function(de){de.keyCode===qe.ESC&&b()};return n&&window.addEventListener("keydown",le),function(){window.removeEventListener("keydown",le)}},[n]);var U=function(oe,de){oe.preventDefault(),oe.stopPropagation(),y(de)},X=u.useCallback(function(le){var oe=le.type,de=le.disabled,pe=le.onClick,ye=le.icon;return u.createElement("div",{key:oe,className:ne(W,"".concat(a,"-operations-operation-").concat(oe),K({},"".concat(a,"-operations-operation-disabled"),!!de)),onClick:pe},ye)},[W,a]),q=c?X({icon:I,onClick:function(oe){return U(oe,-1)},type:"prev",disabled:f===0}):void 0,Y=c?X({icon:H,onClick:function(oe){return U(oe,1)},type:"next",disabled:f===p-1}):void 0,re=X({icon:B,onClick:$,type:"flipY"}),G=X({icon:V,onClick:k,type:"flipX"}),Q=X({icon:N,onClick:_,type:"rotateLeft"}),J=X({icon:R,onClick:S,type:"rotateRight"}),Z=X({icon:F,onClick:C,type:"zoomOut",disabled:h<=v}),ee=X({icon:D,onClick:x,type:"zoomIn",disabled:h===g}),te=u.createElement("div",{className:"".concat(a,"-operations")},re,G,Q,J,Z,ee);return u.createElement(Oi,{visible:n,motionName:r},function(le){var oe=le.className,de=le.style;return u.createElement(e_,{open:!0,getContainer:i??document.body},u.createElement("div",{className:ne("".concat(a,"-operations-wrapper"),oe,o),style:A(A({},de),{},{zIndex:M})},w===null?null:u.createElement("button",{className:"".concat(a,"-close"),onClick:b},w||z),c&&u.createElement(u.Fragment,null,u.createElement("div",{className:ne("".concat(a,"-switch-left"),K({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(ye){return U(ye,-1)}},I),u.createElement("div",{className:ne("".concat(a,"-switch-right"),K({},"".concat(a,"-switch-right-disabled"),f===p-1)),onClick:function(ye){return U(ye,1)}},H)),u.createElement("div",{className:"".concat(a,"-footer")},d&&u.createElement("div",{className:"".concat(a,"-progress")},l?l(f+1,p):"".concat(f+1," / ").concat(p)),P?P(te,A(A({icons:{prevIcon:q,nextIcon:Y,flipYIcon:re,flipXIcon:G,rotateLeftIcon:Q,rotateRightIcon:J,zoomOutIcon:Z,zoomInIcon:ee},actions:{onActive:y,onFlipY:$,onFlipX:k,onRotateLeft:_,onRotateRight:S,onZoomOut:C,onZoomIn:x,onReset:E,onClose:b},transform:m},O?{current:f,total:p}:{}),{},{image:j})):te)))})},Gb={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function eBe(e,t,n,r){var i=u.useRef(null),a=u.useRef([]),o=u.useState(Gb),s=ie(o,2),l=s[0],c=s[1],d=function(h){c(Gb),Xo(Gb,l)||r==null||r({transform:Gb,action:h})},f=function(h,v){i.current===null&&(a.current=[],i.current=tn(function(){c(function(g){var w=g;return a.current.forEach(function(y){w=A(A({},w),y)}),i.current=null,r==null||r({transform:w,action:v}),w})})),a.current.push(A(A({},l),h))},m=function(h,v,g,w,y){var b=e.current,x=b.width,C=b.height,S=b.offsetWidth,_=b.offsetHeight,k=b.offsetLeft,$=b.offsetTop,E=h,P=l.scale*h;P>n?(P=n,E=n/l.scale):Pr){if(t>0)return K({},e,a);if(t<0&&ir)return K({},e,t<0?a:-a);return{}}function Kte(e,t,n,r){var i=Gte(),a=i.width,o=i.height,s=null;return e<=a&&t<=o?s={x:0,y:0}:(e>a||t>o)&&(s=A(A({},gL("x",n,e,a)),gL("y",r,t,o))),s}var Cm=1,tBe=1;function nBe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,d=i.y,f=u.useState(!1),m=ie(f,2),p=m[0],h=m[1],v=u.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),g=function(C){!t||C.button!==0||(C.preventDefault(),C.stopPropagation(),v.current={diffX:C.pageX-c,diffY:C.pageY-d,transformX:c,transformY:d},h(!0))},w=function(C){n&&p&&a({x:C.pageX-v.current.diffX,y:C.pageY-v.current.diffY},"move")},y=function(){if(n&&p){h(!1);var C=v.current,S=C.transformX,_=C.transformY,k=c!==S&&d!==_;if(!k)return;var $=e.current.offsetWidth*l,E=e.current.offsetHeight*l,P=e.current.getBoundingClientRect(),M=P.left,j=P.top,O=s%180!==0,N=Kte(O?E:$,O?$:E,M,j);N&&a(A({},N),"dragRebound")}},b=function(C){if(!(!n||C.deltaY==0)){var S=Math.abs(C.deltaY/100),_=Math.min(S,tBe),k=Cm+_*r;C.deltaY>0&&(k=Cm/k),o(k,"wheel",C.clientX,C.clientY)}};return u.useEffect(function(){var x,C,S,_;if(t){S=yl(window,"mouseup",y,!1),_=yl(window,"mousemove",w,!1);try{window.top!==window.self&&(x=yl(window.top,"mouseup",y,!1),C=yl(window.top,"mousemove",w,!1))}catch{}}return function(){var k,$,E,P;(k=S)===null||k===void 0||k.remove(),($=_)===null||$===void 0||$.remove(),(E=x)===null||E===void 0||E.remove(),(P=C)===null||P===void 0||P.remove()}},[n,p,c,d,s,t]),{isMoving:p,onMouseDown:g,onMouseMove:w,onMouseUp:y,onWheel:b}}function rBe(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function Yte(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=u.useState(n?"loading":"normal"),a=ie(i,2),o=a[0],s=a[1],l=u.useRef(!1),c=o==="error";u.useEffect(function(){var p=!0;return rBe(t).then(function(h){!h&&p&&s("error")}),function(){p=!1}},[t]),u.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var d=function(){s("normal")},f=function(h){l.current=!1,o==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(l.current=!0,d())},m=c&&r?{src:r}:{onLoad:d,src:t};return[f,m,o]}function Zx(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function iBe(e,t,n,r){var i=Zx(e,n),a=Zx(t,r);if(i===0&&a===0)return[e.x,e.y];var o=i/(i+a),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function aBe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,c=i.x,d=i.y,f=u.useState(!1),m=ie(f,2),p=m[0],h=m[1],v=u.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),g=function(C){v.current=A(A({},v.current),C)},w=function(C){if(t){C.stopPropagation(),h(!0);var S=C.touches,_=S===void 0?[]:S;_.length>1?g({point1:{x:_[0].clientX,y:_[0].clientY},point2:{x:_[1].clientX,y:_[1].clientY},eventType:"touchZoom"}):g({point1:{x:_[0].clientX-c,y:_[0].clientY-d},eventType:"move"})}},y=function(C){var S=C.touches,_=S===void 0?[]:S,k=v.current,$=k.point1,E=k.point2,P=k.eventType;if(_.length>1&&P==="touchZoom"){var M={x:_[0].clientX,y:_[0].clientY},j={x:_[1].clientX,y:_[1].clientY},O=iBe($,E,M,j),N=ie(O,2),R=N[0],D=N[1],F=Zx(M,j)/Zx($,E);o(F,"touchZoom",R,D,!0),g({point1:M,point2:j,eventType:"touchZoom"})}else P==="move"&&(a({x:_[0].clientX-$.x,y:_[0].clientY-$.y},"move"),g({eventType:"move"}))},b=function(){if(n){if(p&&h(!1),g({eventType:"none"}),r>l)return a({x:0,y:0,scale:r},"touchZoom");var C=e.current.offsetWidth*l,S=e.current.offsetHeight*l,_=e.current.getBoundingClientRect(),k=_.left,$=_.top,E=s%180!==0,P=Kte(E?S:C,E?C:S,k,$);P&&a(A({},P),"dragRebound")}};return u.useEffect(function(){var x;return n&&t&&(x=yl(window,"touchmove",function(C){return C.preventDefault()},{passive:!1})),function(){var C;(C=x)===null||C===void 0||C.remove()}},[n,t]),{isTouching:p,onTouchStart:w,onTouchMove:y,onTouchEnd:b}}var oBe=["fallback","src","imgRef"],sBe=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],lBe=function(t){var n=t.fallback,r=t.src,i=t.imgRef,a=ft(t,oBe),o=Yte({src:r,fallback:n}),s=ie(o,2),l=s[0],c=s[1];return L.createElement("img",Oe({ref:function(f){i.current=f,l(f)}},a,c))},Xte=function(t){var n=t.prefixCls,r=t.src,i=t.alt,a=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,d=t.visible,f=t.icons,m=f===void 0?{}:f,p=t.rootClassName,h=t.closeIcon,v=t.getContainer,g=t.current,w=g===void 0?0:g,y=t.count,b=y===void 0?1:y,x=t.countRender,C=t.scaleStep,S=C===void 0?.5:C,_=t.minScale,k=_===void 0?1:_,$=t.maxScale,E=$===void 0?50:$,P=t.transitionName,M=P===void 0?"zoom":P,j=t.maskTransitionName,O=j===void 0?"fade":j,N=t.imageRender,R=t.imgCommonProps,D=t.toolbarRender,F=t.onTransform,z=t.onChange,I=ft(t,sBe),H=u.useRef(),V=u.useContext(w1),B=V&&b>1,W=V&&b>=1,U=u.useState(!0),X=ie(U,2),q=X[0],Y=X[1],re=eBe(H,k,E,F),G=re.transform,Q=re.resetTransform,J=re.updateTransform,Z=re.dispatchZoomChange,ee=nBe(H,l,d,S,G,J,Z),te=ee.isMoving,le=ee.onMouseDown,oe=ee.onWheel,de=aBe(H,l,d,k,G,J,Z),pe=de.isTouching,ye=de.onTouchStart,me=de.onTouchMove,xe=de.onTouchEnd,ue=G.rotate,ce=G.scale,$e=ne(K({},"".concat(n,"-moving"),te));u.useEffect(function(){q||Y(!0)},[q]);var se=function(){Q("close")},he=function(){Z(Cm+S,"zoomIn")},ve=function(){Z(Cm/(Cm+S),"zoomOut")},ke=function(){J({rotate:ue+90},"rotateRight")},Se=function(){J({rotate:ue-90},"rotateLeft")},Ee=function(){J({flipX:!G.flipX},"flipX")},De=function(){J({flipY:!G.flipY},"flipY")},we=function(){Q("reset")},be=function(Be){var ct=w+Be;!Number.isInteger(ct)||ct<0||ct>b-1||(Y(!1),Q(Be<0?"prev":"next"),z==null||z(ct,w))},Pe=function(Be){!d||!B||(Be.keyCode===qe.LEFT?be(-1):Be.keyCode===qe.RIGHT&&be(1))},Re=function(Be){d&&(ce!==1?J({x:0,y:0,scale:1},"doubleClick"):Z(Cm+S,"doubleClick",Be.clientX,Be.clientY))};u.useEffect(function(){var He=yl(window,"keydown",Pe,!1);return function(){He.remove()}},[d,B,w]);var _e=L.createElement(lBe,Oe({},R,{width:t.width,height:t.height,imgRef:H,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(G.x,"px, ").concat(G.y,"px, 0) scale3d(").concat(G.flipX?"-":"").concat(ce,", ").concat(G.flipY?"-":"").concat(ce,", 1) rotate(").concat(ue,"deg)"),transitionDuration:(!q||pe)&&"0s"},fallback:o,src:r,onWheel:oe,onMouseDown:le,onDoubleClick:Re,onTouchStart:ye,onTouchMove:me,onTouchEnd:xe,onTouchCancel:xe})),je=A({url:r,alt:i},a);return L.createElement(L.Fragment,null,L.createElement(YI,Oe({transitionName:M,maskTransitionName:O,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:d,classNames:{wrapper:$e},rootClassName:p,getContainer:v},I,{afterClose:se}),L.createElement("div",{className:"".concat(n,"-img-wrapper")},N?N(_e,A({transform:G,image:je},V?{current:w}:{})):_e)),L.createElement(J7e,{visible:d,transform:G,maskTransitionName:O,closeIcon:h,getContainer:v,prefixCls:n,rootClassName:p,icons:m,countRender:x,showSwitch:B,showProgress:W,current:w,count:b,scale:ce,minScale:k,maxScale:E,toolbarRender:D,onActive:be,onZoomIn:he,onZoomOut:ve,onRotateRight:ke,onRotateLeft:Se,onFlipX:Ee,onFlipY:De,onClose:c,onReset:we,zIndex:I.zIndex!==void 0?I.zIndex+1:void 0,image:je}))},KT=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function cBe(e){var t=u.useState({}),n=ie(t,2),r=n[0],i=n[1],a=u.useCallback(function(s,l){return i(function(c){return A(A({},c),{},K({},s,l))}),function(){i(function(c){var d=A({},c);return delete d[s],d})}},[]),o=u.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(Fe(KT)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],d=c.canPreview,f=c.data;return d&&s.push({data:f,id:l}),s},[])},[e,r]);return[o,a,!!e]}var uBe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],dBe=["src"],fBe=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,a=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,d=t.fallback,f=mt(c)==="object"?c:{},m=f.visible,p=f.onVisibleChange,h=f.getContainer,v=f.current,g=f.movable,w=f.minScale,y=f.maxScale,b=f.countRender,x=f.closeIcon,C=f.onChange,S=f.onTransform,_=f.toolbarRender,k=f.imageRender,$=ft(f,uBe),E=cBe(l),P=ie(E,3),M=P[0],j=P[1],O=P[2],N=Ut(0,{value:v}),R=ie(N,2),D=R[0],F=R[1],z=u.useState(!1),I=ie(z,2),H=I[0],V=I[1],B=((n=M[D])===null||n===void 0?void 0:n.data)||{},W=B.src,U=ft(B,dBe),X=Ut(!!m,{value:m,onChange:function(pe,ye){p==null||p(pe,ye,D)}}),q=ie(X,2),Y=q[0],re=q[1],G=u.useState(null),Q=ie(G,2),J=Q[0],Z=Q[1],ee=u.useCallback(function(de,pe,ye,me){var xe=O?M.findIndex(function(ue){return ue.data.src===pe}):M.findIndex(function(ue){return ue.id===de});F(xe<0?0:xe),re(!0),Z({x:ye,y:me}),V(!0)},[M,O]);u.useEffect(function(){Y?H||F(0):V(!1)},[Y]);var te=function(pe,ye){F(pe),C==null||C(pe,ye)},le=function(){re(!1),Z(null)},oe=u.useMemo(function(){return{register:j,onPreview:ee}},[j,ee]);return u.createElement(w1.Provider,{value:oe},a,u.createElement(Xte,Oe({"aria-hidden":!Y,movable:g,visible:Y,prefixCls:i,closeIcon:x,onClose:le,mousePosition:J,imgCommonProps:U,src:W,fallback:d,icons:s,minScale:w,maxScale:y,getContainer:h,current:D,count:M.length,countRender:b,onTransform:S,toolbarRender:_,imageRender:k,onChange:te},$)))},bL=0;function mBe(e,t){var n=u.useState(function(){return bL+=1,String(bL)}),r=ie(n,1),i=r[0],a=u.useContext(w1),o={data:t,canPreview:e};return u.useEffect(function(){if(a)return a.register(i,o)},[]),u.useEffect(function(){a&&a.register(i,o)},[e,t]),i}var pBe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],hBe=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],qM=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,o=a===void 0?"rc-image":a,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,d=t.fallback,f=t.width,m=t.height,p=t.style,h=t.preview,v=h===void 0?!0:h,g=t.className,w=t.onClick,y=t.onError,b=t.wrapperClassName,x=t.wrapperStyle,C=t.rootClassName,S=ft(t,pBe),_=c&&c!==!0,k=mt(v)==="object"?v:{},$=k.src,E=k.visible,P=E===void 0?void 0:E,M=k.onVisibleChange,j=M===void 0?i:M,O=k.getContainer,N=O===void 0?void 0:O,R=k.mask,D=k.maskClassName,F=k.movable,z=k.icons,I=k.scaleStep,H=k.minScale,V=k.maxScale,B=k.imageRender,W=k.toolbarRender,U=ft(k,hBe),X=$??n,q=Ut(!!P,{value:P,onChange:j}),Y=ie(q,2),re=Y[0],G=Y[1],Q=Yte({src:n,isCustomPlaceholder:_,fallback:d}),J=ie(Q,3),Z=J[0],ee=J[1],te=J[2],le=u.useState(null),oe=ie(le,2),de=oe[0],pe=oe[1],ye=u.useContext(w1),me=!!v,xe=function(){G(!1),pe(null)},ue=ne(o,b,C,K({},"".concat(o,"-error"),te==="error")),ce=u.useMemo(function(){var ve={};return KT.forEach(function(ke){t[ke]!==void 0&&(ve[ke]=t[ke])}),ve},KT.map(function(ve){return t[ve]})),$e=u.useMemo(function(){return A(A({},ce),{},{src:X})},[X,ce]),se=mBe(me,$e),he=function(ke){var Se=Z7e(ke.target),Ee=Se.left,De=Se.top;ye?ye.onPreview(se,X,Ee,De):(pe({x:Ee,y:De}),G(!0)),w==null||w(ke)};return u.createElement(u.Fragment,null,u.createElement("div",Oe({},S,{className:ue,onClick:me?he:w,style:A({width:f,height:m},x)}),u.createElement("img",Oe({},ce,{className:ne("".concat(o,"-img"),K({},"".concat(o,"-img-placeholder"),c===!0),g),style:A({height:m},p),ref:Z},ee,{width:f,height:m,onError:y})),te==="loading"&&u.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),R&&me&&u.createElement("div",{className:ne("".concat(o,"-mask"),D),style:{display:(p==null?void 0:p.display)==="none"?"none":void 0}},R)),!ye&&me&&u.createElement(Xte,Oe({"aria-hidden":!re,visible:re,prefixCls:l,onClose:xe,mousePosition:de,src:X,alt:r,imageInfo:{width:f,height:m},fallback:d,getContainer:N,icons:z,movable:F,scaleStep:I,minScale:H,maxScale:V,rootClassName:C,imageRender:B,imgCommonProps:ce,toolbarRender:W},U)))};qM.PreviewGroup=fBe;const YT=e=>({position:e||"absolute",inset:0}),vBe=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new rn("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},Fa),{padding:`0 ${ae(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},gBe=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:a,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:d,colorTextLightSolid:f}=e,m=new rn(n).setA(.1),p=m.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ae(o)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},bBe=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new rn(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},yBe=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},YT()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},YT()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[gBe(e),bBe(e)]}]},wBe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},vBe(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},YT())}}},xBe=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Zp(e,"zoom"),"&":WI(e,!0)}},SBe=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new rn(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new rn(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new rn(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),Qte=un("Image",e=>{const t=`${e.componentCls}-preview`,n=Yt(e,{previewCls:t,modalMaskBg:new rn("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[wBe(n),yBe(n),mZ(Yt(n,{componentCls:t})),xBe(n)]},SBe);var CBe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=CBe(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=u.useContext(Ct),a=i("image",t),o=`${a}-preview`,s=i(),l=Dn(a),[c,d,f]=Qte(a,l),[m]=Xs("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=u.useMemo(()=>{var h;if(n===!1)return n;const v=typeof n=="object"?n:{},g=ne(d,f,l,(h=v.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},v),{transitionName:ea(s,"zoom",v.transitionName),maskTransitionName:ea(s,"fade",v.maskTransitionName),rootClassName:g,zIndex:m})},[n]);return c(u.createElement(qM.PreviewGroup,Object.assign({preview:p,previewPrefixCls:o,icons:Zte},r)))};var yL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:o}=e,s=yL(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Yo,getPopupContainer:d,image:f}=u.useContext(Ct),m=l("image",n),p=l(),h=c.Image||Yo.Image,v=Dn(m),[g,w,y]=Qte(m,v),b=ne(a,w,y,v),x=ne(i,w,f==null?void 0:f.className),[C]=Xs("ImagePreview",typeof r=="object"?r.zIndex:void 0),S=u.useMemo(()=>{var k;if(r===!1)return r;const $=typeof r=="object"?r:{},{getContainer:E,closeIcon:P,rootClassName:M}=$,j=yL($,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:u.createElement("div",{className:`${m}-mask-info`},u.createElement(g2,null),h==null?void 0:h.preview),icons:Zte},j),{rootClassName:ne(b,M),getContainer:E??d,transitionName:ea(p,"zoom",$.transitionName),maskTransitionName:ea(p,"fade",$.maskTransitionName),zIndex:C,closeIcon:P??((k=f==null?void 0:f.preview)===null||k===void 0?void 0:k.closeIcon)})},[r,h,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),_=Object.assign(Object.assign({},f==null?void 0:f.style),o);return g(u.createElement(qM,Object.assign({prefixCls:m,preview:S,rootClassName:b,className:x,style:_},s)))};Jte.PreviewGroup=_Be;function kBe(e,t,n){return typeof n=="boolean"?n:e.length?!0:Lr(t).some(i=>i.type===RJ)}var ene=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iu.forwardRef((o,s)=>u.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const GM=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=ene(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=u.useContext(Ct),l=s("layout",n),[c,d,f]=OJ(l),m=r?`${l}-${r}`:l;return c(u.createElement(a,Object.assign({className:ne(n||m,i,d,f),ref:t},o)))}),$Be=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(Ct),[r,i]=u.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:c,tagName:d,style:f}=e,m=ene(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=kn(m,["suffixCls"]),{getPrefixCls:h,layout:v}=u.useContext(Ct),g=h("layout",a),w=kBe(r,l,c),[y,b,x]=OJ(g),C=ne(g,{[`${g}-has-sider`]:w,[`${g}-rtl`]:n==="rtl"},v==null?void 0:v.className,o,s,b,x),S=u.useMemo(()=>({siderHook:{addSider:_=>{i(k=>[].concat(Fe(k),[_]))},removeSider:_=>{i(k=>k.filter($=>$!==_))}}}),[]);return y(u.createElement(EJ.Provider,{value:S},u.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},p),l)))}),EBe=P_({tagName:"div",displayName:"Layout"})($Be),PBe=P_({suffixCls:"header",tagName:"header",displayName:"Header"})(GM),TBe=P_({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(GM),OBe=P_({suffixCls:"content",tagName:"main",displayName:"Content"})(GM),Ou=EBe;Ou.Header=PBe;Ou.Footer=TBe;Ou.Content=OBe;Ou.Sider=RJ;Ou._InternalSiderContext=p_;const tne=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var nne={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},RBe=[10,20,50,100],IBe=function(t){var n=t.pageSizeOptions,r=n===void 0?RBe:n,i=t.locale,a=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,p=t.sizeChangerRender,h=L.useState(""),v=ie(h,2),g=v[0],w=v[1],y=function(){return!g||Number.isNaN(g)?void 0:Number(g)},b=typeof f=="function"?f:function(M){return"".concat(M," ").concat(i.items_per_page)},x=function(j){w(j.target.value)},C=function(j){s||g===""||(w(""),!(j.relatedTarget&&(j.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||j.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(y())))},S=function(j){g!==""&&(j.keyCode===qe.ENTER||j.type==="click")&&(w(""),l==null||l(y()))},_=function(){return r.some(function(j){return j.toString()===o.toString()})?r:r.concat([o]).sort(function(j,O){var N=Number.isNaN(Number(j))?0:Number(j),R=Number.isNaN(Number(O))?0:Number(O);return N-R})},k="".concat(c,"-options");if(!m&&!l)return null;var $=null,E=null,P=null;return m&&p&&($=p({disabled:d,size:o,onSizeChange:function(j){a==null||a(Number(j))},"aria-label":i.page_size,className:"".concat(k,"-size-changer"),options:_().map(function(M){return{label:b(M),value:M}})})),l&&(s&&(P=typeof s=="boolean"?L.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:d,className:"".concat(k,"-quick-jumper-button")},i.jump_to_confirm):L.createElement("span",{onClick:S,onKeyUp:S},s)),E=L.createElement("div",{className:"".concat(k,"-quick-jumper")},i.jump_to,L.createElement("input",{disabled:d,type:"text",value:g,onChange:x,onKeyUp:S,onBlur:C,"aria-label":i.page}),i.page,P)),L.createElement("li",{className:k},$,E)},av=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,o=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=ne(f,"".concat(f,"-").concat(i),(n={},K(n,"".concat(f,"-active"),a),K(n,"".concat(f,"-disabled"),!i),n),o),p=function(){l(i)},h=function(w){c(w,l,i)},v=d(i,"page",L.createElement("a",{rel:"nofollow"},i));return v?L.createElement("li",{title:s?String(i):null,className:m,onClick:p,onKeyDown:h,tabIndex:0},v):null},MBe=function(t,n,r){return r};function wL(){}function xL(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Qu(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var NBe=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,l=t.current,c=t.defaultCurrent,d=c===void 0?1:c,f=t.total,m=f===void 0?0:f,p=t.pageSize,h=t.defaultPageSize,v=h===void 0?10:h,g=t.onChange,w=g===void 0?wL:g,y=t.hideOnSinglePage,b=t.align,x=t.showPrevNextJumpers,C=x===void 0?!0:x,S=t.showQuickJumper,_=t.showLessItems,k=t.showTitle,$=k===void 0?!0:k,E=t.onShowSizeChange,P=E===void 0?wL:E,M=t.locale,j=M===void 0?nne:M,O=t.style,N=t.totalBoundaryShowSizeChanger,R=N===void 0?50:N,D=t.disabled,F=t.simple,z=t.showTotal,I=t.showSizeChanger,H=I===void 0?m>R:I,V=t.sizeChangerRender,B=t.pageSizeOptions,W=t.itemRender,U=W===void 0?MBe:W,X=t.jumpPrevIcon,q=t.jumpNextIcon,Y=t.prevIcon,re=t.nextIcon,G=L.useRef(null),Q=Ut(10,{value:p,defaultValue:v}),J=ie(Q,2),Z=J[0],ee=J[1],te=Ut(1,{value:l,defaultValue:d,postState:function(_t){return Math.max(1,Math.min(_t,Qu(void 0,Z,m)))}}),le=ie(te,2),oe=le[0],de=le[1],pe=L.useState(oe),ye=ie(pe,2),me=ye[0],xe=ye[1];u.useEffect(function(){xe(oe)},[oe]);var ue=Math.max(1,oe-(_?3:5)),ce=Math.min(Qu(void 0,Z,m),oe+(_?3:5));function $e(at,_t){var At=at||L.createElement("button",{type:"button","aria-label":_t,className:"".concat(i,"-item-link")});return typeof at=="function"&&(At=L.createElement(at,A({},t))),At}function se(at){var _t=at.target.value,At=Qu(void 0,Z,m),Dt;return _t===""?Dt=_t:Number.isNaN(Number(_t))?Dt=me:_t>=At?Dt=At:Dt=Number(_t),Dt}function he(at){return xL(at)&&at!==oe&&xL(m)&&m>0}var ve=m>Z?S:!1;function ke(at){(at.keyCode===qe.UP||at.keyCode===qe.DOWN)&&at.preventDefault()}function Se(at){var _t=se(at);switch(_t!==me&&xe(_t),at.keyCode){case qe.ENTER:we(_t);break;case qe.UP:we(_t-1);break;case qe.DOWN:we(_t+1);break}}function Ee(at){we(se(at))}function De(at){var _t=Qu(at,Z,m),At=oe>_t&&_t!==0?_t:oe;ee(at),xe(At),P==null||P(oe,at),de(At),w==null||w(At,at)}function we(at){if(he(at)&&!D){var _t=Qu(void 0,Z,m),At=at;return at>_t?At=_t:at<1&&(At=1),At!==me&&xe(At),de(At),w==null||w(At,Z),At}return oe}var be=oe>1,Pe=oe2?At-2:0),Jt=2;Jtm?m:oe*Z])),Te=null,Ce=Qu(void 0,Z,m);if(y&&m<=Z)return null;var Ie=[],Ke={rootPrefixCls:i,onClick:we,onKeyPress:Be,showTitle:$,itemRender:U,page:-1},Xe=oe-1>0?oe-1:0,lt=oe+1=pt*2&&oe!==3&&(Ie[0]=L.cloneElement(Ie[0],{className:ne("".concat(i,"-item-after-jump-prev"),Ie[0].props.className)}),Ie.unshift(rt)),Ce-oe>=pt*2&&oe!==Ce-2){var Je=Ie[Ie.length-1];Ie[Ie.length-1]=L.cloneElement(Je,{className:ne("".concat(i,"-item-before-jump-next"),Je.props.className)}),Ie.push(Te)}Me!==1&&Ie.unshift(L.createElement(av,Oe({},Ke,{key:1,page:1}))),We!==Ce&&Ie.push(L.createElement(av,Oe({},Ke,{key:Ce,page:Ce})))}var Le=Ae(Xe);if(Le){var ot=!be||!Ce;Le=L.createElement("li",{title:$?j.prev_page:null,onClick:Re,tabIndex:ot?null:0,onKeyDown:ct,className:ne("".concat(i,"-prev"),K({},"".concat(i,"-disabled"),ot)),"aria-disabled":ot},Le)}var vt=et(lt);if(vt){var Et,It;F?(Et=!Pe,It=be?0:null):(Et=!Pe||!Ce,It=Et?null:0),vt=L.createElement("li",{title:$?j.next_page:null,onClick:_e,tabIndex:It,onKeyDown:Ve,className:ne("".concat(i,"-next"),K({},"".concat(i,"-disabled"),Et)),"aria-disabled":Et},vt)}var St=ne(i,s,(n={},K(n,"".concat(i,"-start"),b==="start"),K(n,"".concat(i,"-center"),b==="center"),K(n,"".concat(i,"-end"),b==="end"),K(n,"".concat(i,"-simple"),F),K(n,"".concat(i,"-disabled"),D),n));return L.createElement("ul",Oe({className:St,style:O,ref:G},it),ge,Le,F?st:Ie,vt,L.createElement(IBe,{locale:j,rootPrefixCls:i,disabled:D,selectPrefixCls:o,changeSize:De,pageSize:Z,pageSizeOptions:B,quickGo:ve?we:null,goButton:Ge,showSizeChanger:H,sizeChangerRender:V}))};const DBe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},jBe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),input:Object.assign(Object.assign({},NM(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},FBe=e=>{const{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${ae(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ae(e.inputOutlineOffset)} 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},ABe=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ae(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ae(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},v1(e)),TM(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},S_(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},LBe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ae(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},BBe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),LBe(e)),ABe(e)),FBe(e)),jBe(e)),DBe(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},zBe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},yo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Bs(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Bs(e))}}}},rne=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},h1(e)),ine=e=>Yt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},p1(e)),HBe=un("Pagination",e=>{const t=ine(e);return[BBe(t),zBe(t)]},rne),VBe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},WBe=yf(["Pagination","bordered"],e=>{const t=ine(e);return[VBe(t)]},rne);function SL(e){return u.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var UBe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:l,responsive:c,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,p=UBe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=fM(c),[,v]=Zr(),{getPrefixCls:g,direction:w,pagination:y={}}=u.useContext(Ct),b=g("pagination",n),[x,C,S]=HBe(b),_=Fr(s),k=_==="small"||!!(h&&!_&&c),[$]=ya("Pagination",VX),E=Object.assign(Object.assign({},$),l),[P,M]=SL(d),[j,O]=SL(y.showSizeChanger),N=P??j,R=M??O,D=f||Oc,F=u.useMemo(()=>m?m.map(W=>Number(W)):void 0,[m]),z=W=>{var U;const{disabled:X,size:q,onSizeChange:Y,"aria-label":re,className:G,options:Q}=W,{className:J,onChange:Z}=R||{},ee=(U=Q.find(te=>String(te.value)===String(q)))===null||U===void 0?void 0:U.value;return u.createElement(D,Object.assign({disabled:X,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:te=>te.parentNode,"aria-label":re,options:Q},R,{value:ee,onChange:(te,le)=>{Y==null||Y(te),Z==null||Z(te,le)},size:k?"small":"middle",className:ne(G,J)}))},I=u.useMemo(()=>{const W=u.createElement("span",{className:`${b}-item-ellipsis`},"•••"),U=u.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},w==="rtl"?u.createElement(Fs,null):u.createElement(Eu,null)),X=u.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},w==="rtl"?u.createElement(Eu,null):u.createElement(Fs,null)),q=u.createElement("a",{className:`${b}-item-link`},u.createElement("div",{className:`${b}-item-container`},w==="rtl"?u.createElement(vF,{className:`${b}-item-link-icon`}):u.createElement(hF,{className:`${b}-item-link-icon`}),W)),Y=u.createElement("a",{className:`${b}-item-link`},u.createElement("div",{className:`${b}-item-container`},w==="rtl"?u.createElement(hF,{className:`${b}-item-link-icon`}):u.createElement(vF,{className:`${b}-item-link-icon`}),W));return{prevIcon:U,nextIcon:X,jumpPrevIcon:q,jumpNextIcon:Y}},[w,b]),H=g("select",r),V=ne({[`${b}-${t}`]:!!t,[`${b}-mini`]:k,[`${b}-rtl`]:w==="rtl",[`${b}-bordered`]:v.wireframe},y==null?void 0:y.className,i,a,C,S),B=Object.assign(Object.assign({},y==null?void 0:y.style),o);return x(u.createElement(u.Fragment,null,v.wireframe&&u.createElement(WBe,{prefixCls:b}),u.createElement(NBe,Object.assign({},I,p,{style:B,prefixCls:b,selectPrefixCls:H,className:V,locale:E,pageSizeOptions:F,showSizeChanger:N,sizeChangerRender:z}))))},Jx=100,ane=Jx/5,one=Jx/2-ane/2,IE=one*2*Math.PI,CL=50,_L=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return u.createElement("circle",{className:ne(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:one,cx:CL,cy:CL,strokeWidth:ane,style:n})},GBe=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[o,s]=u.useState(!1);an(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!o)return null;const c={strokeDashoffset:`${IE/4}`,strokeDasharray:`${IE*l/100} ${IE*(100-l)/100}`};return u.createElement("span",{className:ne(i,`${r}-progress`,l<=0&&a)},u.createElement("svg",{viewBox:`0 0 ${Jx} ${Jx}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},u.createElement(_L,{dotClassName:r,hasCircleCls:!0}),u.createElement(_L,{dotClassName:r,style:c})))};function KBe(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return u.createElement(u.Fragment,null,u.createElement("span",{className:ne(i,n>0&&a)},u.createElement("span",{className:ne(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>u.createElement("i",{className:`${t}-dot-item`,key:o})))),u.createElement(GBe,{prefixCls:t,percent:n}))}function YBe(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&u.isValidElement(n)?zr(n,{className:ne(n.props.className,i),percent:r}):u.createElement(KBe,{prefixCls:t,percent:r})}const XBe=new on("antSpinMove",{to:{opacity:1}}),QBe=new on("antRotate",{to:{transform:"rotate(405deg)"}}),ZBe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:XBe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:QBe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},JBe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},eze=un("Spin",e=>{const t=Yt(e,{spinDotDefault:e.colorTextDescription});return[ZBe(t)]},JBe),tze=200,kL=[[30,.05],[70,.03],[96,.01]];function nze(e,t){const[n,r]=u.useState(0),i=u.useRef(null),a=t==="auto";return u.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{clearInterval(i.current)}),[a,e]),a?n:t}var rze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:d,children:f,fullscreen:m=!1,indicator:p,percent:h}=e,v=rze(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:w,spin:y}=u.useContext(Ct),b=g("spin",n),[x,C,S]=eze(b),[_,k]=u.useState(()=>r&&!ize(r,i)),$=nze(_,h);u.useEffect(()=>{if(r){const R=VFe(i,()=>{k(!0)});return R(),()=>{var D;(D=R==null?void 0:R.cancel)===null||D===void 0||D.call(R)}}k(!1)},[i,r]);const E=u.useMemo(()=>typeof f<"u"&&!m,[f,m]),P=ne(b,y==null?void 0:y.className,{[`${b}-sm`]:s==="small",[`${b}-lg`]:s==="large",[`${b}-spinning`]:_,[`${b}-show-text`]:!!l,[`${b}-rtl`]:w==="rtl"},a,!m&&o,C,S),M=ne(`${b}-container`,{[`${b}-blur`]:_}),j=(t=p??(y==null?void 0:y.indicator))!==null&&t!==void 0?t:sne,O=Object.assign(Object.assign({},y==null?void 0:y.style),d),N=u.createElement("div",Object.assign({},v,{style:O,className:P,"aria-live":"polite","aria-busy":_}),u.createElement(YBe,{prefixCls:b,indicator:j,percent:$}),l&&(E||m)?u.createElement("div",{className:`${b}-text`},l):null);return x(E?u.createElement("div",Object.assign({},v,{className:ne(`${b}-nested-loading`,c,C,S)}),_&&u.createElement("div",{key:"loading"},N),u.createElement("div",{className:M,key:"container"},f)):m?u.createElement("div",{className:ne(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:_},o,C,S)},N):N)};Hu.setDefaultIndicator=e=>{sne=e};function aze(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let Do=null,Sd=e=>e(),n0=[],r0={};function $L(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=r0,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const oze=L.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=u.useContext(Ct),a=r0.prefixCls||i("message"),o=u.useContext(Bx),[s,l]=$Q(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return L.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(d=>{c[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:c,sync:r}}),l}),sze=L.forwardRef((e,t)=>{const[n,r]=L.useState($L),i=()=>{r($L)};L.useEffect(i,[]);const a=AI(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=L.createElement(oze,{ref:t,sync:i,messageConfig:n});return L.createElement(en,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function T_(){if(!Do){const e=document.createDocumentFragment(),t={fragment:e};Do=t,Sd(()=>{z2()(L.createElement(sze,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,T_())})}}),e)});return}Do.instance&&(n0.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Sd(()=>{const r=Do.instance.open(Object.assign(Object.assign({},r0),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Sd(()=>{Do==null||Do.instance.destroy(e.key)});break;default:Sd(()=>{var r;const i=(r=Do.instance)[t].apply(r,Fe(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),n0=[])}function lze(e){r0=Object.assign(Object.assign({},r0),e),Sd(()=>{var t;(t=Do==null?void 0:Do.sync)===null||t===void 0||t.call(Do)})}function cze(e){const t=zI(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return n0.push(i),()=>{r?Sd(()=>{r()}):i.skipped=!0}});return T_(),t}function uze(e,t){const n=zI(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return n0.push(a),()=>{i?Sd(()=>{i()}):a.skipped=!0}});return T_(),n}const dze=e=>{n0.push({type:"destroy",key:e}),T_()},fze=["success","info","warning","error","loading"],mze={open:cze,destroy:dze,config:lze,useMessage:EQ,_InternalPanelDoNotUseOrYouWillBeFired:bTe},Kr=mze;fze.forEach(e=>{Kr[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:l}=e,c=pze(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=u.useContext(Ct),f=d(),m=t||d("modal"),p=Dn(f),[h,v,g]=vZ(m,p),w=`${m}-confirm`;let y={};return a?y={closable:i??!1,title:"",footer:"",children:u.createElement(bZ,Object.assign({},e,{prefixCls:m,confirmPrefixCls:w,rootPrefixCls:f,content:s}))}:y={closable:i??!0,title:o,footer:l!==null&&u.createElement(dZ,Object.assign({},e)),children:s},h(u.createElement(XQ,Object.assign({prefixCls:m,className:ne(v,`${m}-pure-panel`,a&&w,a&&`${w}-${a}`,n,g,p)},c,{closeIcon:uZ(m,r),closable:i},y)))},vze=FZ(hze);function lne(e){return l1(SZ(e))}const Js=gZ;Js.useModal=EZ;Js.info=function(t){return l1(CZ(t))};Js.success=function(t){return l1(_Z(t))};Js.error=function(t){return l1(kZ(t))};Js.warning=lne;Js.warn=lne;Js.confirm=function(t){return l1($Z(t))};Js.destroyAll=function(){for(;wd.length;){const t=wd.pop();t&&t()}};Js.config=OIe;Js._InternalPanelDoNotUseOrYouWillBeFired=vze;let bs=null,dw=e=>e(),eS=[],i0={};function EL(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}=i0,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}}const gze=L.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=u.useContext(Ct),a=i0.prefixCls||i("notification"),o=u.useContext(Bx),[s,l]=MZ(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.notification));return L.useEffect(r,[]),L.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(d=>{c[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:c,sync:r}}),l}),bze=L.forwardRef((e,t)=>{const[n,r]=L.useState(EL),i=()=>{r(EL)};L.useEffect(i,[]);const a=AI(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=L.createElement(gze,{ref:t,sync:i,notificationConfig:n});return L.createElement(en,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)});function KM(){if(!bs){const e=document.createDocumentFragment(),t={fragment:e};bs=t,dw(()=>{z2()(L.createElement(bze,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,KM())})}}),e)});return}bs.instance&&(eS.forEach(e=>{switch(e.type){case"open":{dw(()=>{bs.instance.open(Object.assign(Object.assign({},i0),e.config))});break}case"destroy":dw(()=>{bs==null||bs.instance.destroy(e.key)});break}}),eS=[])}function yze(e){i0=Object.assign(Object.assign({},i0),e),dw(()=>{var t;(t=bs==null?void 0:bs.sync)===null||t===void 0||t.call(bs)})}function cne(e){eS.push({type:"open",config:e}),KM()}const wze=e=>{eS.push({type:"destroy",key:e}),KM()},xze=["success","info","warning","error"],Sze={open:cne,destroy:wze,config:yze,useNotification:NZ,_InternalPanelDoNotUseOrYouWillBeFired:qIe},une=Sze;xze.forEach(e=>{une[e]=t=>cne(Object.assign(Object.assign({},t),{type:e}))});var Cze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},_ze=function(){var t=u.useRef([]),n=u.useRef(null);return u.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},PL=0,kze=va();function $ze(){var e;return kze?(e=PL,PL+=1):e="TEST_OR_SSR",e}const Eze=function(e){var t=u.useState(),n=ie(t,2),r=n[0],i=n[1];return u.useEffect(function(){i("rc_progress_".concat($ze()))},[]),e||r};var TL=function(t){var n=t.bg,r=t.children;return u.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function OL(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var Pze=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&mt(r)==="object",p=m?"#FFF":void 0,h=d/2,v=u.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:h,cy:h,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!m)return v;var g="".concat(i,"-conic"),w=f?"".concat(180+f/2,"deg"):"0deg",y=OL(r,(360-f)/360),b=OL(r,1),x="conic-gradient(from ".concat(w,", ").concat(y.join(", "),")"),C="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return u.createElement(u.Fragment,null,u.createElement("mask",{id:g},v),u.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(g,")")},u.createElement(TL,{bg:C},u.createElement(TL,{bg:x}))))}),Rv=100,ME=function(t,n,r,i,a,o,s,l,c,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-o)/360),p=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-i)/100*n;c==="round"&&i!==100&&(h+=d/2,h>=n&&(h=n-.01));var v=Rv/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(a+m+p,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Tze=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function RL(e){var t=e??[];return Array.isArray(t)?t:[t]}var Oze=function(t){var n=A(A({},Cze),t),r=n.id,i=n.prefixCls,a=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,p=n.style,h=n.className,v=n.strokeColor,g=n.percent,w=ft(n,Tze),y=Rv/2,b=Eze(r),x="".concat(b,"-gradient"),C=y-o/2,S=Math.PI*2*C,_=c>0?90+c/2:-90,k=S*((360-c)/360),$=mt(a)==="object"?a:{count:a,gap:2},E=$.count,P=$.gap,M=RL(g),j=RL(v),O=j.find(function(H){return H&&mt(H)==="object"}),N=O&&mt(O)==="object",R=N?"butt":m,D=ME(S,k,0,100,_,c,d,f,R,o),F=_ze(),z=function(){var V=0;return M.map(function(B,W){var U=j[W]||j[j.length-1],X=ME(S,k,V,B,_,c,d,U,R,o);return V+=B,u.createElement(Pze,{key:W,color:U,ptg:B,radius:C,prefixCls:i,gradientId:x,style:X,strokeLinecap:R,strokeWidth:o,gapDegree:c,ref:function(Y){F[W]=Y},size:Rv})}).reverse()},I=function(){var V=Math.round(E*(M[0]/100)),B=100/E,W=0;return new Array(E).fill(null).map(function(U,X){var q=X<=V-1?j[0]:f,Y=q&&mt(q)==="object"?"url(#".concat(x,")"):void 0,re=ME(S,k,W,B,_,c,d,q,"butt",o,P);return W+=(k-re.strokeDashoffset+P)*100/k,u.createElement("circle",{key:X,className:"".concat(i,"-circle-path"),r:C,cx:y,cy:y,stroke:Y,strokeWidth:o,opacity:1,style:re,ref:function(Q){F[X]=Q}})})};return u.createElement("svg",Oe({className:ne("".concat(i,"-circle"),h),viewBox:"0 0 ".concat(Rv," ").concat(Rv),style:p,id:r,role:"presentation"},w),!E&&u.createElement("circle",{className:"".concat(i,"-circle-trail"),r:C,cx:y,cy:y,stroke:f,strokeLinecap:R,strokeWidth:s||o,style:D}),E?I():z())};function Cu(e){return!e||e<0?0:e>100?100:e}function tS(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const Rze=e=>{let{percent:t,success:n,successPercent:r}=e;const i=Cu(tS({success:n,successPercent:r}));return[i,Cu(Cu(t)-i)]},Ize=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Am.green,n||null]},O_=(e,t,n)=>{var r,i,a,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=d??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return[s,l]},Mze=3,Nze=e=>Mze/e*100,Dze=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:o=120,type:s,children:l,success:c,size:d=o,steps:f}=e,[m,p]=O_(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(Nze(m),6));const v={width:m,height:p,fontSize:m*.15+6},g=u.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),w=Rze(e),y=i||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",x=Ize({success:c,strokeColor:e.strokeColor}),C=ne(`${t}-inner`,{[`${t}-circle-gradient`]:b}),S=u.createElement(Oze,{steps:f,percent:f?w[1]:w,strokeWidth:h,trailWidth:h,strokeColor:f?x[1]:x,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:g,gapPosition:y}),_=m<=20,k=u.createElement("div",{className:C,style:v},S,!_&&l);return _?u.createElement(na,{title:l},k):k},nS="--progress-line-stroke-color",dne="--progress-percent",IL=e=>{const t=e?"100%":"-100%";return new on(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},jze=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${nS})`]},height:"100%",width:`calc(1 / var(${dne}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ae(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:IL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:IL(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Fze=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Aze=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Lze=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Bze=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),zze=un("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Yt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[jze(n),Fze(n),Aze(n),Lze(n)]},Bze);var Hze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},Wze=(e,t)=>{const{from:n=Am.blue,to:r=Am.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=Hze(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=Vze(a),l=`linear-gradient(${i}, ${s})`;return{background:l,[nS]:l}}const o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[nS]:o}},Uze=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:d,success:f}=e,{align:m,type:p}=d,h=o&&typeof o!="string"?Wze(o,n):{[nS]:o,background:o},v=s==="square"||s==="butt"?0:void 0,g=i??[-1,a||(i==="small"?6:8)],[w,y]=O_(g,"line",{strokeWidth:a}),b={backgroundColor:c||void 0,borderRadius:v},x=Object.assign(Object.assign({width:`${Cu(r)}%`,height:y,borderRadius:v},h),{[dne]:Cu(r)/100}),C=tS(e),S={width:`${Cu(C)}%`,height:y,borderRadius:v,backgroundColor:f==null?void 0:f.strokeColor},_={width:w<0?"100%":w},k=u.createElement("div",{className:`${t}-inner`,style:b},u.createElement("div",{className:ne(`${t}-bg`,`${t}-bg-${p}`),style:x},p==="inner"&&l),C!==void 0&&u.createElement("div",{className:`${t}-success-bg`,style:S})),$=p==="outer"&&m==="start",E=p==="outer"&&m==="end";return p==="outer"&&m==="center"?u.createElement("div",{className:`${t}-layout-bottom`},k,l):u.createElement("div",{className:`${t}-outer`,style:_},$&&l,k,E&&l)},qze=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:o=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[m,p]=O_(f,"step",{steps:n,strokeWidth:i}),h=m/n,v=new Array(n);for(let g=0;g{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:d="line",status:f,format:m,style:p,percentPosition:h={}}=e,v=Gze(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:w="outer"}=h,y=Array.isArray(o)?o[0]:o,b=typeof o=="string"||Array.isArray(o)?o:void 0,x=u.useMemo(()=>{if(y){const z=typeof y=="string"?y:Object.values(y)[0];return new rn(z).isLight()}return!1},[o]),C=u.useMemo(()=>{var z,I;const H=tS(e);return parseInt(H!==void 0?(z=H??0)===null||z===void 0?void 0:z.toString():(I=s??0)===null||I===void 0?void 0:I.toString(),10)},[s,e.success,e.successPercent]),S=u.useMemo(()=>!Kze.includes(f)&&C>=100?"success":f||"normal",[f,C]),{getPrefixCls:_,direction:k,progress:$}=u.useContext(Ct),E=_("progress",n),[P,M,j]=zze(E),O=d==="line",N=O&&!a,R=u.useMemo(()=>{if(!c)return null;const z=tS(e);let I;const H=m||(B=>`${B}%`),V=O&&x&&w==="inner";return w==="inner"||m||S!=="exception"&&S!=="success"?I=H(Cu(s),Cu(z)):S==="exception"?I=O?u.createElement($c,null):u.createElement(Ys,null):S==="success"&&(I=O?u.createElement(Z0,null):u.createElement(vI,null)),u.createElement("span",{className:ne(`${E}-text`,{[`${E}-text-bright`]:V,[`${E}-text-${g}`]:N,[`${E}-text-${w}`]:N}),title:typeof I=="string"?I:void 0},I)},[c,s,C,S,d,E,m]);let D;d==="line"?D=a?u.createElement(qze,Object.assign({},e,{strokeColor:b,prefixCls:E,steps:typeof a=="object"?a.count:a}),R):u.createElement(Uze,Object.assign({},e,{strokeColor:y,prefixCls:E,direction:k,percentPosition:{align:g,type:w}}),R):(d==="circle"||d==="dashboard")&&(D=u.createElement(Dze,Object.assign({},e,{strokeColor:y,prefixCls:E,progressStatus:S}),R));const F=ne(E,`${E}-status-${S}`,{[`${E}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${E}-inline-circle`]:d==="circle"&&O_(l,"circle")[0]<=20,[`${E}-line`]:N,[`${E}-line-align-${g}`]:N,[`${E}-line-position-${w}`]:N,[`${E}-steps`]:a,[`${E}-show-info`]:c,[`${E}-${l}`]:typeof l=="string",[`${E}-rtl`]:k==="rtl"},$==null?void 0:$.className,r,i,M,j);return P(u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},$==null?void 0:$.style),p),className:F,role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},kn(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))});function fw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m2(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Yze(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,a=e.characterRender,o=e.index,s=e.count,l=e.value,c=e.allowHalf,d=e.focused,f=e.onHover,m=e.onClick,p=function(C){f(C,o)},h=function(C){m(C,o)},v=function(C){C.keyCode===qe.ENTER&&m(C,o)},g=o+1,w=new Set([r]);l===0&&o===0&&d?w.add("".concat(r,"-focused")):c&&l+.5>=g&&lo?"true":"false","aria-posinset":o+1,"aria-setsize":s,tabIndex:n?-1:0},L.createElement("div",{className:"".concat(r,"-first")},y),L.createElement("div",{className:"".concat(r,"-second")},y)));return a&&(b=a(b,e)),b}const Xze=L.forwardRef(Yze);function Qze(){var e=u.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function Zze(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function Jze(e){var t,n,r=e.ownerDocument,i=r.body,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function eHe(e){var t=Jze(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Zze(r),t.left}var tHe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function nHe(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,a=e.defaultValue,o=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,d=c===void 0?!1:c,f=e.allowClear,m=f===void 0?!0:f,p=e.keyboard,h=p===void 0?!0:p,v=e.character,g=v===void 0?"★":v,w=e.characterRender,y=e.disabled,b=e.direction,x=b===void 0?"ltr":b,C=e.tabIndex,S=C===void 0?0:C,_=e.autoFocus,k=e.onHoverChange,$=e.onChange,E=e.onFocus,P=e.onBlur,M=e.onKeyDown,j=e.onMouseLeave,O=ft(e,tHe),N=Qze(),R=ie(N,2),D=R[0],F=R[1],z=L.useRef(null),I=function(){if(!y){var ve;(ve=z.current)===null||ve===void 0||ve.focus()}};L.useImperativeHandle(t,function(){return{focus:I,blur:function(){if(!y){var ve;(ve=z.current)===null||ve===void 0||ve.blur()}}}});var H=Ut(a||0,{value:o}),V=ie(H,2),B=V[0],W=V[1],U=Ut(null),X=ie(U,2),q=X[0],Y=X[1],re=function(ve,ke){var Se=x==="rtl",Ee=ve+1;if(d){var De=D(ve),we=eHe(De),be=De.clientWidth;(Se&&ke-we>be/2||!Se&&ke-we0&&!Se||ke===qe.RIGHT&&B>0&&Se?(G(B-Ee),ve.preventDefault()):ke===qe.LEFT&&B{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ae(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},aHe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),oHe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),iHe(e)),aHe(e))}},sHe=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),lHe=un("Rate",e=>{const t=Yt(e,{});return[oHe(t)]},sHe);var cHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=u.createElement(iX,null),disabled:l}=e,c=cHe(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),d=(C,S)=>{let{index:_}=S;return o?u.createElement(na,{title:o[_]},C):C},{getPrefixCls:f,direction:m,rate:p}=u.useContext(Ct),h=f("rate",n),[v,g,w]=lHe(h),y=Object.assign(Object.assign({},p==null?void 0:p.style),a),b=u.useContext(Br),x=l??b;return v(u.createElement(rHe,Object.assign({ref:t,character:s,characterRender:d,disabled:x},c,{className:ne(r,i,g,w,p==null?void 0:p.className),style:y,prefixCls:h,direction:m})))});var uHe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],fne=u.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,a=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,p=e.onChange,h=e.onKeyDown,v=ft(e,uHe),g=Ut(!1,{value:o,defaultValue:s}),w=ie(g,2),y=w[0],b=w[1];function x(k,$){var E=y;return l||(E=k,b(E),p==null||p(E,$)),E}function C(k){k.which===qe.LEFT?x(!1,k):k.which===qe.RIGHT&&x(!0,k),h==null||h(k)}function S(k){var $=x(!y,k);m==null||m($,k)}var _=ne(i,a,(n={},K(n,"".concat(i,"-checked"),y),K(n,"".concat(i,"-disabled"),l),n));return u.createElement("button",Oe({},v,{type:"button",role:"switch","aria-checked":y,disabled:l,className:_,ref:t,onKeyDown:C,onClick:S}),c,u.createElement("span",{className:"".concat(i,"-inner")},u.createElement("span",{className:"".concat(i,"-inner-checked")},d),u.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});fne.displayName="Switch";const dHe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,d=ae(l(s).add(l(r).mul(2)).equal()),f=ae(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:ae(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ae(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},fHe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},mHe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ae(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},pHe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,calc:s}=e,l=`${t}-inner`,c=ae(s(o).add(s(r).mul(2)).equal()),d=ae(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},hHe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ae(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),yo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},vHe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=2,l=a-s*2,c=o-s*2;return{trackHeight:a,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new rn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},gHe=un("Switch",e=>{const t=Yt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[hHe(t),pHe(t),mHe(t),fHe(t),dHe(t)]},vHe);var bHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:l,checked:c,value:d,defaultChecked:f,defaultValue:m,onChange:p}=e,h=bHe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,g]=Ut(!1,{value:c??d,defaultValue:f??m}),{getPrefixCls:w,direction:y,switch:b}=u.useContext(Ct),x=u.useContext(Br),C=(i??x)||a,S=w("switch",n),_=u.createElement("div",{className:`${S}-handle`},a&&u.createElement(js,{className:`${S}-loading-icon`})),[k,$,E]=gHe(S),P=Fr(r),M=ne(b==null?void 0:b.className,{[`${S}-small`]:P==="small",[`${S}-loading`]:a,[`${S}-rtl`]:y==="rtl"},o,s,$,E),j=Object.assign(Object.assign({},b==null?void 0:b.style),l),O=function(){g(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return k(u.createElement(i1,{component:"Switch"},u.createElement(fne,Object.assign({},h,{checked:v,onChange:O,prefixCls:S,className:M,style:j,disabled:C,ref:t,loadingIcon:_}))))}),mne=yHe;mne.__ANT_SWITCH=!0;var Yl={},x1="rc-table-internal-hook";function XM(e){var t=u.createContext(void 0),n=function(i){var a=i.value,o=i.children,s=u.useRef(a);s.current=a;var l=u.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=ie(l,1),d=c[0];return an(function(){yi.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(a)})})},[a]),u.createElement(t.Provider,{value:d},o)};return{Context:t,Provider:n,defaultValue:e}}function Li(e,t){var n=Ht(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(p){m[p]=f[p]}),m}),r=u.useContext(e==null?void 0:e.Context),i=r||{},a=i.listeners,o=i.getValue,s=u.useRef();s.current=n(r?o():e==null?void 0:e.defaultValue);var l=u.useState({}),c=ie(l,2),d=c[1];return an(function(){if(!r)return;function f(m){var p=n(m);Xo(s.current,p,!0)||d({})}return a.add(f),function(){a.delete(f)}},[r]),s.current}function wHe(){var e=u.createContext(null);function t(){return u.useContext(e)}function n(i,a){var o=As(i),s=function(c,d){var f=o?{ref:d}:{},m=u.useRef(0),p=u.useRef(c),h=t();return h!==null?u.createElement(i,Oe({},c,f)):((!a||a(p.current,c))&&(m.current+=1),p.current=c,u.createElement(e.Provider,{value:m.current},u.createElement(i,Oe({},c,f))))};return o?u.forwardRef(s):s}function r(i,a){var o=As(i),s=function(c,d){var f=o?{ref:d}:{};return t(),u.createElement(i,Oe({},c,f))};return o?u.memo(u.forwardRef(s),a):u.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var QM=wHe(),pne=QM.makeImmutable,lh=QM.responseImmutable,xHe=QM.useImmutableMark,wa=XM(),hne=u.createContext({renderWithProps:!1}),SHe="RC_TABLE_KEY";function CHe(e){return e==null?[]:Array.isArray(e)?e:[e]}function R_(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},a=i.key,o=i.dataIndex,s=a||CHe(o).join("-")||SHe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function QT(e){return e!=null}function _He(e){return typeof e=="number"&&!Number.isNaN(e)}function kHe(e){return e&&mt(e)==="object"&&!Array.isArray(e)&&!u.isValidElement(e)}function $He(e,t,n,r,i,a){var o=u.useContext(hne),s=xHe(),l=gc(function(){if(QT(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],d=$i(e,c),f=d,m=void 0;if(i){var p=i(d,e,n);kHe(p)?(f=p.children,m=p.props,o.renderWithProps=!0):f=p}return[f,m]},[s,e,r,t,i,n],function(c,d){if(a){var f=ie(c,2),m=f[1],p=ie(d,2),h=p[1];return a(h,m)}return o.renderWithProps?!0:!Xo(c,d,!0)});return l}function EHe(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function PHe(e,t){return Li(wa,function(n){var r=EHe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var THe=function(t){var n=t.ellipsis,r=t.rowType,i=t.children,a,o=n===!0?{showTitle:!0}:n;return o&&(o.showTitle||r==="header")&&(typeof i=="string"||typeof i=="number"?a=i.toString():u.isValidElement(i)&&typeof i.props.children=="string"&&(a=i.props.children)),a};function OHe(e){var t,n,r,i,a,o,s,l,c=e.component,d=e.children,f=e.ellipsis,m=e.scope,p=e.prefixCls,h=e.className,v=e.align,g=e.record,w=e.render,y=e.dataIndex,b=e.renderIndex,x=e.shouldCellUpdate,C=e.index,S=e.rowType,_=e.colSpan,k=e.rowSpan,$=e.fixLeft,E=e.fixRight,P=e.firstFixLeft,M=e.lastFixLeft,j=e.firstFixRight,O=e.lastFixRight,N=e.appendNode,R=e.additionalProps,D=R===void 0?{}:R,F=e.isSticky,z="".concat(p,"-cell"),I=Li(wa,["supportSticky","allColumnsFixedLeft","rowHoverable"]),H=I.supportSticky,V=I.allColumnsFixedLeft,B=I.rowHoverable,W=$He(g,y,b,d,w,x),U=ie(W,2),X=U[0],q=U[1],Y={},re=typeof $=="number"&&H,G=typeof E=="number"&&H;re&&(Y.position="sticky",Y.left=$),G&&(Y.position="sticky",Y.right=E);var Q=(t=(n=(r=q==null?void 0:q.colSpan)!==null&&r!==void 0?r:D.colSpan)!==null&&n!==void 0?n:_)!==null&&t!==void 0?t:1,J=(i=(a=(o=q==null?void 0:q.rowSpan)!==null&&o!==void 0?o:D.rowSpan)!==null&&a!==void 0?a:k)!==null&&i!==void 0?i:1,Z=PHe(C,J),ee=ie(Z,2),te=ee[0],le=ee[1],oe=Ht(function(ce){var $e;g&&le(C,C+J-1),D==null||($e=D.onMouseEnter)===null||$e===void 0||$e.call(D,ce)}),de=Ht(function(ce){var $e;g&&le(-1,-1),D==null||($e=D.onMouseLeave)===null||$e===void 0||$e.call(D,ce)});if(Q===0||J===0)return null;var pe=(s=D.title)!==null&&s!==void 0?s:THe({rowType:S,ellipsis:f,children:X}),ye=ne(z,h,(l={},K(K(K(K(K(K(K(K(K(K(l,"".concat(z,"-fix-left"),re&&H),"".concat(z,"-fix-left-first"),P&&H),"".concat(z,"-fix-left-last"),M&&H),"".concat(z,"-fix-left-all"),M&&V&&H),"".concat(z,"-fix-right"),G&&H),"".concat(z,"-fix-right-first"),j&&H),"".concat(z,"-fix-right-last"),O&&H),"".concat(z,"-ellipsis"),f),"".concat(z,"-with-append"),N),"".concat(z,"-fix-sticky"),(re||G)&&F&&H),K(l,"".concat(z,"-row-hover"),!q&&te)),D.className,q==null?void 0:q.className),me={};v&&(me.textAlign=v);var xe=A(A(A(A({},q==null?void 0:q.style),Y),me),D.style),ue=X;return mt(ue)==="object"&&!Array.isArray(ue)&&!u.isValidElement(ue)&&(ue=null),f&&(M||j)&&(ue=u.createElement("span",{className:"".concat(z,"-content")},ue)),u.createElement(c,Oe({},q,D,{className:ye,style:xe,title:pe,scope:m,onMouseEnter:B?oe:void 0,onMouseLeave:B?de:void 0,colSpan:Q!==1?Q:null,rowSpan:J!==1?J:null}),N,ue)}const ch=u.memo(OHe);function ZM(e,t,n,r,i){var a=n[e]||{},o=n[t]||{},s,l;a.fixed==="left"?s=r.left[i==="rtl"?t:e]:o.fixed==="right"&&(l=r.right[i==="rtl"?e:t]);var c=!1,d=!1,f=!1,m=!1,p=n[t+1],h=n[e-1],v=p&&!p.fixed||h&&!h.fixed||n.every(function(x){return x.fixed==="left"});if(i==="rtl"){if(s!==void 0){var g=h&&h.fixed==="left";m=!g&&v}else if(l!==void 0){var w=p&&p.fixed==="right";f=!w&&v}}else if(s!==void 0){var y=p&&p.fixed==="left";c=!y&&v}else if(l!==void 0){var b=h&&h.fixed==="right";d=!b&&v}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var vne=u.createContext({});function RHe(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=i===void 0?1:i,o=e.rowSpan,s=e.align,l=Li(wa,["prefixCls","direction"]),c=l.prefixCls,d=l.direction,f=u.useContext(vne),m=f.scrollColumnIndex,p=f.stickyOffsets,h=f.flattenColumns,v=n+a-1,g=v+1===m?a+1:a,w=ZM(n,n+g-1,h,p,d);return u.createElement(ch,Oe({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:o,render:function(){return r}},w))}var IHe=["children"];function MHe(e){var t=e.children,n=ft(e,IHe);return u.createElement("tr",n,t)}function I_(e){var t=e.children;return t}I_.Row=MHe;I_.Cell=RHe;function NHe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=Li(wa,"prefixCls"),a=r.length-1,o=r[a],s=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o!=null&&o.scrollbar?a:null}},[o,r,a,n]);return u.createElement(vne.Provider,{value:s},u.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const Kb=lh(NHe);var gne=I_;function DHe(e){return null}function jHe(e){return null}function bne(e,t,n,r,i,a,o){e.push({record:t,indent:n,index:o});var s=a(t),l=i==null?void 0:i.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c1?P-1:0),j=1;j=1)),style:A(A({},n),w==null?void 0:w.style)}),h.map(function($,E){var P=$.render,M=$.dataIndex,j=$.className,O=Cne(m,$,E,l,i),N=O.key,R=O.fixedInfo,D=O.appendCellNode,F=O.additionalCellProps;return u.createElement(ch,Oe({className:j,ellipsis:$.ellipsis,align:$.align,scope:$.rowScope,component:$.rowScope?f:d,prefixCls:p,key:N,record:r,index:i,renderIndex:a,dataIndex:M,render:P,shouldCellUpdate:$.shouldCellUpdate},R,{appendNode:D,additionalProps:F}))})),_;if(b&&(x.current||y)){var k=g(r,i,l+1,y);_=u.createElement(xne,{expanded:y,className:ne("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(l+1),C),prefixCls:p,component:c,cellComponent:d,colSpan:h.length,isEmpty:!1},k)}return u.createElement(u.Fragment,null,S,_)}const BHe=lh(LHe);function zHe(e){var t=e.columnKey,n=e.onColumnResize,r=u.useRef();return u.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),u.createElement(bi,{data:t},u.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},u.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function HHe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return u.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},u.createElement(bi.Collection,{onBatchResize:function(a){a.forEach(function(o){var s=o.data,l=o.size;r(s,l.offsetWidth)})}},n.map(function(i){return u.createElement(zHe,{key:i,columnKey:i,onColumnResize:r})})))}function VHe(e){var t=e.data,n=e.measureColumnWidth,r=Li(wa,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,a=r.getComponent,o=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=yne(t,d,c,l),p=u.useRef({renderWithProps:!1}),h=a(["body","wrapper"],"tbody"),v=a(["body","row"],"tr"),g=a(["body","cell"],"td"),w=a(["body","cell"],"th"),y;t.length?y=m.map(function(x,C){var S=x.record,_=x.indent,k=x.index,$=l(S,C);return u.createElement(BHe,{key:$,rowKey:$,record:S,index:C,renderIndex:k,rowComponent:v,cellComponent:g,scopeCellComponent:w,indent:_})}):y=u.createElement(xne,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:v,cellComponent:g,colSpan:s.length,isEmpty:!0},f);var b=R_(s);return u.createElement(hne.Provider,{value:p.current},u.createElement(h,{className:"".concat(i,"-tbody")},n&&u.createElement(HHe,{prefixCls:i,columnsKey:b,onColumnResize:o}),y))}const WHe=lh(VHe);var UHe=["expandable"],ig="RC_TABLE_INTERNAL_COL_DEFINE";function qHe(e){var t=e.expandable,n=ft(e,UHe),r;return"expandable"in e?r=A(A({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var GHe=["columnType"];function _ne(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=Li(wa,["tableLayout"]),a=i.tableLayout,o=[],s=r||n.length,l=!1,c=s-1;c>=0;c-=1){var d=t[c],f=n&&n[c],m=void 0,p=void 0;if(f&&(m=f[ig],a==="auto"&&(p=f.minWidth)),d||p||m||l){var h=m||{};h.columnType;var v=ft(h,GHe);o.unshift(u.createElement("col",Oe({key:c,style:{width:d,minWidth:p}},v))),l=!0}}return u.createElement("colgroup",null,o)}var KHe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function YHe(e,t){return u.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:o,prefixCls:d,key:p[v]},w,{additionalProps:y,rowType:"header"}))}))};function ZHe(e){var t=[];function n(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,d=o.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:c},p=1,h=f.children;return h&&h.length>0&&(p=n(h,c,l+1).reduce(function(v,g){return v+g},0),m.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=p,m.colEnd=m.colStart+p-1,t[l].push(m),c+=p,p});return d}n(e,0);for(var r=t.length,i=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function eVe(e,t,n){return u.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(m){var p=DL(t,m.width);p?r+=p:i+=1});var a=Math.max(t,n),o=Math.max(a-r,i),s=i,l=o/i,c=0,d=e.map(function(m){var p=A({},m),h=DL(t,p.width);if(h)p.width=h;else{var v=Math.floor(l);p.width=s===1?o:v,o-=v,s-=1}return c+=p.width,p});if(c0?A(A({},t),{},{children:kne(n)}):t})}function ZT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&mt(n)==="object"}).reduce(function(n,r,i){var a=r.fixed,o=a===!0?"left":a,s="".concat(t,"-").concat(i),l=r.children;return l&&l.length>0?[].concat(Fe(n),Fe(ZT(l,s).map(function(c){return A({fixed:o},c)}))):[].concat(Fe(n),[A(A({key:s},r),{},{fixed:o})])},[])}function rVe(e){return e.map(function(t){var n=t.fixed,r=ft(t,nVe),i=n;return n==="left"?i="right":n==="right"&&(i="left"),A({fixed:i},r)})}function iVe(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,p=e.direction,h=e.expandRowByClick,v=e.columnWidth,g=e.fixed,w=e.scrollWidth,y=e.clientWidth,b=u.useMemo(function(){var M=r||JM(i)||[];return kne(M.slice())},[r,i]),x=u.useMemo(function(){if(a){var M=b.slice();if(!M.includes(Yl)){var j=m||0;j>=0&&(j||g==="left"||!g)&&M.splice(j,0,Yl),g==="right"&&M.splice(b.length,0,Yl)}var O=M.indexOf(Yl);M=M.filter(function(F,z){return F!==Yl||z===O});var N=b[O],R;g?R=g:R=N?N.fixed:null;var D=K(K(K(K(K(K({},ig,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",R),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",function(z,I,H){var V=l(I,H),B=o.has(V),W=f?f(I):!0,U=d({prefixCls:n,expanded:B,expandable:W,record:I,onExpand:c});return h?u.createElement("span",{onClick:function(q){return q.stopPropagation()}},U):U});return M.map(function(F){return F===Yl?D:F})}return b.filter(function(F){return F!==Yl})},[a,b,l,o,d,p]),C=u.useMemo(function(){var M=x;return t&&(M=t(M)),M.length||(M=[{render:function(){return null}}]),M},[t,x,p]),S=u.useMemo(function(){return p==="rtl"?rVe(ZT(C)):ZT(C)},[C,p,w]),_=u.useMemo(function(){for(var M=-1,j=S.length-1;j>=0;j-=1){var O=S[j].fixed;if(O==="left"||O===!0){M=j;break}}if(M>=0)for(var N=0;N<=M;N+=1){var R=S[N].fixed;if(R!=="left"&&R!==!0)return!0}var D=S.findIndex(function(I){var H=I.fixed;return H==="right"});if(D>=0)for(var F=D;F=D-s?y(function(F){return A(A({},F),{},{isHiddenScrollBar:!0})}):y(function(F){return A(A({},F),{},{isHiddenScrollBar:!1})})}})},j=function(N){y(function(R){return A(A({},R),{},{scrollLeft:N/f*m||0})})};return u.useImperativeHandle(n,function(){return{setScrollLeft:j,checkScrollBarVisible:M}}),u.useEffect(function(){var O=yl(document.body,"mouseup",$,!1),N=yl(document.body,"mousemove",P,!1);return M(),function(){O.remove(),N.remove()}},[p,S]),u.useEffect(function(){var O=yl(l,"scroll",M,!1),N=yl(window,"resize",M,!1);return function(){O.remove(),N.remove()}},[l]),u.useEffect(function(){w.isHiddenScrollBar||y(function(O){var N=a.current;return N?A(A({},O),{},{scrollLeft:N.scrollLeft/N.scrollWidth*N.clientWidth}):O})},[w.isHiddenScrollBar]),f<=m||!p||w.isHiddenScrollBar?null:u.createElement("div",{style:{height:vA(),width:m,bottom:s},className:"".concat(d,"-sticky-scroll")},u.createElement("div",{onMouseDown:E,ref:h,className:ne("".concat(d,"-sticky-scroll-bar"),K({},"".concat(d,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(w.scrollLeft,"px, 0, 0)")}}))};const fVe=u.forwardRef(dVe);var Ene="rc-table",mVe=[],pVe={};function hVe(){return"No Data"}function vVe(e,t){var n=A({rowKey:"key",prefixCls:Ene,emptyText:hVe},e),r=n.prefixCls,i=n.className,a=n.rowClassName,o=n.style,s=n.data,l=n.rowKey,c=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,p=n.footer,h=n.summary,v=n.caption,g=n.id,w=n.showHeader,y=n.components,b=n.emptyText,x=n.onRow,C=n.onHeaderRow,S=n.onScroll,_=n.internalHooks,k=n.transformColumns,$=n.internalRefs,E=n.tailor,P=n.getContainerWidth,M=n.sticky,j=n.rowHoverable,O=j===void 0?!0:j,N=s||mVe,R=!!N.length,D=_===x1,F=u.useCallback(function(ut,Ze){return $i(y,ut)||Ze},[y]),z=u.useMemo(function(){return typeof l=="function"?l:function(ut){var Ze=ut&&ut[l];return Ze}},[l]),I=F(["body"]),H=lVe(),V=ie(H,3),B=V[0],W=V[1],U=V[2],X=aVe(n,N,z),q=ie(X,6),Y=q[0],re=q[1],G=q[2],Q=q[3],J=q[4],Z=q[5],ee=c==null?void 0:c.x,te=u.useState(0),le=ie(te,2),oe=le[0],de=le[1],pe=iVe(A(A(A({},n),Y),{},{expandable:!!Y.expandedRowRender,columnTitle:Y.columnTitle,expandedKeys:G,getRowKey:z,onTriggerExpand:Z,expandIcon:Q,expandIconColumnIndex:Y.expandIconColumnIndex,direction:f,scrollWidth:D&&E&&typeof ee=="number"?ee:null,clientWidth:oe}),D?k:null),ye=ie(pe,4),me=ye[0],xe=ye[1],ue=ye[2],ce=ye[3],$e=ue??ee,se=u.useMemo(function(){return{columns:me,flattenColumns:xe}},[me,xe]),he=u.useRef(),ve=u.useRef(),ke=u.useRef(),Se=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:he.current,scrollTo:function(Ze){var gt;if(ke.current instanceof HTMLElement){var bt=Ze.index,Kt=Ze.top,cn=Ze.key;if(_He(Kt)){var fr;(fr=ke.current)===null||fr===void 0||fr.scrollTo({top:Kt})}else{var Jr,ei=cn??z(N[bt]);(Jr=ke.current.querySelector('[data-row-key="'.concat(ei,'"]')))===null||Jr===void 0||Jr.scrollIntoView()}}else(gt=ke.current)!==null&>!==void 0&>.scrollTo&&ke.current.scrollTo(Ze)}}});var Ee=u.useRef(),De=u.useState(!1),we=ie(De,2),be=we[0],Pe=we[1],Re=u.useState(!1),_e=ie(Re,2),je=_e[0],He=_e[1],Be=$ne(new Map),ct=ie(Be,2),Ve=ct[0],Ye=ct[1],Ne=R_(xe),Ae=Ne.map(function(ut){return Ve.get(ut)}),et=u.useMemo(function(){return Ae},[Ae.join("_")]),nt=uVe(et,xe,f),rt=c&&QT(c.y),it=c&&QT($e)||!!Y.fixed,ge=it&&xe.some(function(ut){var Ze=ut.fixed;return Ze}),Te=u.useRef(),Ce=cVe(M,r),Ie=Ce.isSticky,Ke=Ce.offsetHeader,Xe=Ce.offsetSummary,lt=Ce.offsetScroll,tt=Ce.stickyClassName,Qe=Ce.container,Ge=u.useMemo(function(){return h==null?void 0:h(N)},[h,N]),st=(rt||Ie)&&u.isValidElement(Ge)&&Ge.type===I_&&Ge.props.fixed,pt,yt,zt;rt&&(yt={overflowY:R?"scroll":"auto",maxHeight:c.y}),it&&(pt={overflowX:"auto"},rt||(yt={overflowY:"hidden"}),zt={width:$e===!0?"auto":$e,minWidth:"100%"});var $t=u.useCallback(function(ut,Ze){Qp(he.current)&&Ye(function(gt){if(gt.get(ut)!==Ze){var bt=new Map(gt);return bt.set(ut,Ze),bt}return gt})},[]),ze=sVe(),fe=ie(ze,2),Me=fe[0],We=fe[1];function wt(ut,Ze){Ze&&(typeof Ze=="function"?Ze(ut):Ze.scrollLeft!==ut&&(Ze.scrollLeft=ut,Ze.scrollLeft!==ut&&setTimeout(function(){Ze.scrollLeft=ut},0)))}var Je=Ht(function(ut){var Ze=ut.currentTarget,gt=ut.scrollLeft,bt=f==="rtl",Kt=typeof gt=="number"?gt:Ze.scrollLeft,cn=Ze||pVe;if(!We()||We()===cn){var fr;Me(cn),wt(Kt,ve.current),wt(Kt,ke.current),wt(Kt,Ee.current),wt(Kt,(fr=Te.current)===null||fr===void 0?void 0:fr.setScrollLeft)}var Jr=Ze||ve.current;if(Jr){var ei=D&&E&&typeof $e=="number"?$e:Jr.scrollWidth,Bi=Jr.clientWidth;if(ei===Bi){Pe(!1),He(!1);return}bt?(Pe(-Kt0)):(Pe(Kt>0),He(Kt1?g-O:0,R=A(A(A({},k),c),{},{flex:"0 0 ".concat(O,"px"),width:"".concat(O,"px"),marginRight:N,pointerEvents:"auto"}),D=u.useMemo(function(){return f?M<=1:E===0||M===0||M>1},[M,E,f]);D?R.visibility="hidden":f&&(R.height=m==null?void 0:m(M));var F=D?function(){return null}:p,z={};return(M===0||E===0)&&(z.rowSpan=1,z.colSpan=1),u.createElement(ch,Oe({className:ne(v,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:x,record:l,index:a,renderIndex:s,dataIndex:h,render:F,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:S,additionalProps:A(A({},_),{},{style:R},z)}))}var wVe=["data","index","className","rowKey","style","extra","getHeight"],xVe=u.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,a=e.rowKey,o=e.style,s=e.extra,l=e.getHeight,c=ft(e,wVe),d=n.record,f=n.indent,m=n.index,p=Li(wa,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=p.scrollX,v=p.flattenColumns,g=p.prefixCls,w=p.fixColumn,y=p.componentWidth,b=Li(eN,["getComponent"]),x=b.getComponent,C=wne(d,a,r,f),S=x(["body","row"],"div"),_=x(["body","cell"],"div"),k=C.rowSupportExpand,$=C.expanded,E=C.rowProps,P=C.expandedRowRender,M=C.expandedRowClassName,j;if(k&&$){var O=P(d,r,f+1,$),N=Sne(M,d,r,f),R={};w&&(R={style:K({},"--virtual-width","".concat(y,"px"))});var D="".concat(g,"-expanded-row-cell");j=u.createElement(S,{className:ne("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(f+1),N)},u.createElement(ch,{component:_,prefixCls:g,className:ne(D,K({},"".concat(D,"-fixed"),w)),additionalProps:R},O))}var F=A(A({},o),{},{width:h});s&&(F.position="absolute",F.pointerEvents="none");var z=u.createElement(S,Oe({},E,c,{"data-row-key":a,ref:k?null:t,className:ne(i,"".concat(g,"-row"),E==null?void 0:E.className,K({},"".concat(g,"-row-extra"),s)),style:A(A({},F),E==null?void 0:E.style)}),v.map(function(I,H){return u.createElement(yVe,{key:H,component:_,rowInfo:C,column:I,colIndex:H,indent:f,index:r,renderIndex:m,record:d,inverse:s,getHeight:l})}));return k?u.createElement("div",{ref:t},z,j):z}),LL=lh(xVe),SVe=u.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=Li(wa,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=i.flattenColumns,o=i.onColumnResize,s=i.getRowKey,l=i.expandedKeys,c=i.prefixCls,d=i.childrenColumnName,f=i.scrollX,m=i.direction,p=Li(eN),h=p.sticky,v=p.scrollY,g=p.listItemHeight,w=p.getComponent,y=p.onScroll,b=u.useRef(),x=yne(n,d,l,s),C=u.useMemo(function(){var j=0;return a.map(function(O){var N=O.width,R=O.key;return j+=N,[R,N,j]})},[a]),S=u.useMemo(function(){return C.map(function(j){return j[2]})},[C]);u.useEffect(function(){C.forEach(function(j){var O=ie(j,2),N=O[0],R=O[1];o(N,R)})},[C]),u.useImperativeHandle(t,function(){var j,O={scrollTo:function(R){var D;(D=b.current)===null||D===void 0||D.scrollTo(R)},nativeElement:(j=b.current)===null||j===void 0?void 0:j.nativeElement};return Object.defineProperty(O,"scrollLeft",{get:function(){var R;return((R=b.current)===null||R===void 0?void 0:R.getScrollInfo().x)||0},set:function(R){var D;(D=b.current)===null||D===void 0||D.scrollTo({left:R})}}),O});var _=function(O,N){var R,D=(R=x[N])===null||R===void 0?void 0:R.record,F=O.onCell;if(F){var z,I=F(D,N);return(z=I==null?void 0:I.rowSpan)!==null&&z!==void 0?z:1}return 1},k=function(O){var N=O.start,R=O.end,D=O.getSize,F=O.offsetY;if(R<0)return null;for(var z=a.filter(function(Q){return _(Q,N)===0}),I=N,H=function(J){if(z=z.filter(function(Z){return _(Z,J)===0}),!z.length)return I=J,1},V=N;V>=0&&!H(V);V-=1);for(var B=a.filter(function(Q){return _(Q,R)!==1}),W=R,U=function(J){if(B=B.filter(function(Z){return _(Z,J)!==1}),!B.length)return W=Math.max(J-1,R),1},X=R;X1})&&q.push(J)},re=I;re<=W;re+=1)Y(re);var G=q.map(function(Q){var J=x[Q],Z=s(J.record,Q),ee=function(oe){var de=Q+oe-1,pe=s(x[de].record,de),ye=D(Z,pe);return ye.bottom-ye.top},te=D(Z);return u.createElement(LL,{key:Q,data:J,rowKey:Z,index:Q,style:{top:-F+te.top},extra:!0,getHeight:ee})});return G},$=u.useMemo(function(){return{columnsOffset:S}},[S]),E="".concat(c,"-tbody"),P=w(["body","wrapper"]),M={};return h&&(M.position="sticky",M.bottom=0,mt(h)==="object"&&h.offsetScroll&&(M.bottom=h.offsetScroll)),u.createElement(Tne.Provider,{value:$},u.createElement(o_,{fullHeight:!1,ref:b,prefixCls:"".concat(E,"-virtual"),styles:{horizontalScrollBar:M},className:E,height:v,itemHeight:g||24,data:x,itemKey:function(O){return s(O.record)},component:P,scrollWidth:f,direction:m,onVirtualScroll:function(O){var N,R=O.x;r({currentTarget:(N=b.current)===null||N===void 0?void 0:N.nativeElement,scrollLeft:R})},onScroll:y,extraRender:k},function(j,O,N){var R=s(j.record,O);return u.createElement(LL,{data:j,rowKey:R,index:O,style:N.style})}))}),CVe=lh(SVe),_Ve=function(t,n){var r=n.ref,i=n.onScroll;return u.createElement(CVe,{ref:r,data:t,onScroll:i})};function kVe(e,t){var n=e.data,r=e.columns,i=e.scroll,a=e.sticky,o=e.prefixCls,s=o===void 0?Ene:o,l=e.className,c=e.listItemHeight,d=e.components,f=e.onScroll,m=i||{},p=m.x,h=m.y;typeof p!="number"&&(p=1),typeof h!="number"&&(h=500);var v=Ht(function(y,b){return $i(d,y)||b}),g=Ht(f),w=u.useMemo(function(){return{sticky:a,scrollY:h,listItemHeight:c,getComponent:v,onScroll:g}},[a,h,c,v,g]);return u.createElement(eN.Provider,{value:w},u.createElement(uh,Oe({},e,{className:ne(l,"".concat(s,"-virtual")),scroll:A(A({},i),{},{x:p}),components:A(A({},d),{},{body:n!=null&&n.length?_Ve:void 0}),columns:r,internalHooks:x1,tailor:!0,ref:t})))}var $Ve=u.forwardRef(kVe);function One(e){return pne($Ve,e)}One();const EVe=e=>null,PVe=e=>null;var tN=u.createContext(null),Rne=u.createContext({}),TVe=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function ql(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function nN(e){return e.split("-")}function MVe(e,t){var n=[],r=Pa(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(o){var s=o.key,l=o.children;n.push(s),i(l)})}return i(r.children),n}function NVe(e){if(e.parent){var t=nN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function DVe(e){var t=nN(e.pos);return Number(t[t.length-1])===0}function HL(e,t,n,r,i,a,o,s,l,c){var d,f=e.clientX,m=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,v=p.height,g=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-f),w=(g-12)/r,y=l.filter(function(R){var D;return(D=s[R])===null||D===void 0||(D=D.children)===null||D===void 0?void 0:D.length}),b=Pa(s,n.eventKey);if(m-1.5?a({dragNode:j,dropNode:O,dropPosition:1})?E=1:N=!1:a({dragNode:j,dropNode:O,dropPosition:0})?E=0:a({dragNode:j,dropNode:O,dropPosition:1})?E=1:N=!1:a({dragNode:j,dropNode:O,dropPosition:1})?E=1:N=!1,{dropPosition:E,dropLevelOffset:P,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:$,dropContainerKey:E===0?null:((d=b.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:N}}function VL(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function NE(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(mt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Fn(!1,"`checkedKeys` is not an array or an object"),null;return t}function JT(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=Pa(t,i);if(a){n.add(i);var o=a.parent,s=a.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(i){r(i)}),Fe(n)}function jVe(e){const[t,n]=u.useState(null);return[u.useCallback((a,o,s)=>{const l=t??a,c=Math.min(l||0,a),d=Math.max(l||0,a),f=o.slice(c,d+1).map(h=>e(h)),m=f.some(h=>!s.has(h)),p=[];return f.forEach(h=>{m?(s.has(h)||p.push(h),s.add(h)):(s.delete(h),p.push(h))}),n(m?d:null),p},[t]),a=>{n(a)}]}const Wc={},eO="SELECT_ALL",tO="SELECT_INVERT",nO="SELECT_NONE",WL=[],Ine=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Fe(n),Fe(Ine(e,r[e]))))}),n},FVe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:o,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:p,selections:h,fixed:v,renderCell:g,hideSelectAll:w,checkStrictly:y=!0}=t||{},{prefixCls:b,data:x,pageData:C,getRecordByKey:S,getRowKey:_,expandType:k,childrenColumnName:$,locale:E,getPopupContainer:P}=e,M=Fl(),[j,O]=jVe(Q=>Q),[N,R]=Ut(r||i||WL,{value:r}),D=u.useRef(new Map),F=u.useCallback(Q=>{if(n){const J=new Map;Q.forEach(Z=>{let ee=S(Z);!ee&&D.current.has(Z)&&(ee=D.current.get(Z)),J.set(Z,ee)}),D.current=J}},[S,n]);u.useEffect(()=>{F(N)},[N]);const z=u.useMemo(()=>Ine($,C),[$,C]),{keyEntities:I}=u.useMemo(()=>{if(y)return{keyEntities:null};let Q=x;if(n){const J=new Set(z.map((ee,te)=>_(ee,te))),Z=Array.from(D.current).reduce((ee,te)=>{let[le,oe]=te;return J.has(le)?ee:ee.concat(oe)},[]);Q=[].concat(Fe(Q),Fe(Z))}return b1(Q,{externalGetKey:_,childrenPropName:$})},[x,_,y,$,n,z]),H=u.useMemo(()=>{const Q=new Map;return z.forEach((J,Z)=>{const ee=_(J,Z),te=(a?a(J):null)||{};Q.set(ee,te)}),Q},[z,_,a]),V=u.useCallback(Q=>{const J=_(Q);let Z;return H.has(J)?Z=H.get(_(Q)):Z=a?a(Q):void 0,!!(Z!=null&&Z.disabled)},[H,_]),[B,W]=u.useMemo(()=>{if(y)return[N||[],[]];const{checkedKeys:Q,halfCheckedKeys:J}=Vo(N,!0,I,V);return[Q||[],J]},[N,y,I,V]),U=u.useMemo(()=>{const Q=p==="radio"?B.slice(0,1):B;return new Set(Q)},[B,p]),X=u.useMemo(()=>p==="radio"?new Set:new Set(W),[W,p]);u.useEffect(()=>{t||R(WL)},[!!t]);const q=u.useCallback((Q,J)=>{let Z,ee;F(Q),n?(Z=Q,ee=Q.map(te=>D.current.get(te))):(Z=[],ee=[],Q.forEach(te=>{const le=S(te);le!==void 0&&(Z.push(te),ee.push(le))})),R(Z),o==null||o(Z,ee,{type:J})},[R,S,o,n]),Y=u.useCallback((Q,J,Z,ee)=>{if(s){const te=Z.map(le=>S(le));s(S(Q),J,te,ee)}q(Z,"single")},[s,S,q]),re=u.useMemo(()=>!h||w?null:(h===!0?[eO,tO,nO]:h).map(J=>J===eO?{key:"all",text:E.selectionAll,onSelect(){q(x.map((Z,ee)=>_(Z,ee)).filter(Z=>{const ee=H.get(Z);return!(ee!=null&&ee.disabled)||U.has(Z)}),"all")}}:J===tO?{key:"invert",text:E.selectInvert,onSelect(){const Z=new Set(U);C.forEach((te,le)=>{const oe=_(te,le),de=H.get(oe);de!=null&&de.disabled||(Z.has(oe)?Z.delete(oe):Z.add(oe))});const ee=Array.from(Z);c&&(M.deprecated(!1,"onSelectInvert","onChange"),c(ee)),q(ee,"invert")}}:J===nO?{key:"none",text:E.selectNone,onSelect(){d==null||d(),q(Array.from(U).filter(Z=>{const ee=H.get(Z);return ee==null?void 0:ee.disabled}),"none")}}:J).map(J=>Object.assign(Object.assign({},J),{onSelect:function(){for(var Z,ee,te=arguments.length,le=new Array(te),oe=0;oe{var J;if(!t)return Q.filter(Se=>Se!==Wc);let Z=Fe(Q);const ee=new Set(U),te=z.map(_).filter(Se=>!H.get(Se).disabled),le=te.every(Se=>ee.has(Se)),oe=te.some(Se=>ee.has(Se)),de=()=>{const Se=[];le?te.forEach(De=>{ee.delete(De),Se.push(De)}):te.forEach(De=>{ee.has(De)||(ee.add(De),Se.push(De))});const Ee=Array.from(ee);l==null||l(!le,Ee.map(De=>S(De)),Se.map(De=>S(De))),q(Ee,"all"),O(null)};let pe,ye;if(p!=="radio"){let Se;if(re){const Pe={getPopupContainer:P,items:re.map((Re,_e)=>{const{key:je,text:He,onSelect:Be}=Re;return{key:je??_e,onClick:()=>{Be==null||Be(te)},label:He}})};Se=u.createElement("div",{className:`${b}-selection-extra`},u.createElement(E_,{menu:Pe,getPopupContainer:P},u.createElement("span",null,u.createElement(J0,null))))}const Ee=z.map((Pe,Re)=>{const _e=_(Pe,Re),je=H.get(_e)||{};return Object.assign({checked:ee.has(_e)},je)}).filter(Pe=>{let{disabled:Re}=Pe;return Re}),De=!!Ee.length&&Ee.length===z.length,we=De&&Ee.every(Pe=>{let{checked:Re}=Pe;return Re}),be=De&&Ee.some(Pe=>{let{checked:Re}=Pe;return Re});ye=u.createElement(yc,{checked:De?we:!!z.length&&le,indeterminate:De?!we&&be:!le&&oe,onChange:de,disabled:z.length===0||De,"aria-label":Se?"Custom selection":"Select all",skipGroup:!0}),pe=!w&&u.createElement("div",{className:`${b}-selection`},ye,Se)}let me;p==="radio"?me=(Se,Ee,De)=>{const we=_(Ee,De),be=ee.has(we),Pe=H.get(we);return{node:u.createElement(ah,Object.assign({},Pe,{checked:be,onClick:Re=>{var _e;Re.stopPropagation(),(_e=Pe==null?void 0:Pe.onClick)===null||_e===void 0||_e.call(Pe,Re)},onChange:Re=>{var _e;ee.has(we)||Y(we,!0,[we],Re.nativeEvent),(_e=Pe==null?void 0:Pe.onChange)===null||_e===void 0||_e.call(Pe,Re)}})),checked:be}}:me=(Se,Ee,De)=>{var we;const be=_(Ee,De),Pe=ee.has(be),Re=X.has(be),_e=H.get(be);let je;return k==="nest"?je=Re:je=(we=_e==null?void 0:_e.indeterminate)!==null&&we!==void 0?we:Re,{node:u.createElement(yc,Object.assign({},_e,{indeterminate:je,checked:Pe,skipGroup:!0,onClick:He=>{var Be;He.stopPropagation(),(Be=_e==null?void 0:_e.onClick)===null||Be===void 0||Be.call(_e,He)},onChange:He=>{var Be;const{nativeEvent:ct}=He,{shiftKey:Ve}=ct,Ye=te.findIndex(Ae=>Ae===be),Ne=B.some(Ae=>te.includes(Ae));if(Ve&&y&&Ne){const Ae=j(Ye,te,ee),et=Array.from(ee);f==null||f(!Pe,et.map(nt=>S(nt)),Ae.map(nt=>S(nt))),q(et,"multiple")}else{const Ae=B;if(y){const et=Pe?sl(Ae,be):ql(Ae,be);Y(be,!Pe,et,ct)}else{const et=Vo([].concat(Fe(Ae),[be]),!0,I,V),{checkedKeys:nt,halfCheckedKeys:rt}=et;let it=nt;if(Pe){const ge=new Set(nt);ge.delete(be),it=Vo(Array.from(ge),{checked:!1,halfCheckedKeys:rt},I,V).checkedKeys}Y(be,!Pe,it,ct)}}O(Pe?null:Ye),(Be=_e==null?void 0:_e.onChange)===null||Be===void 0||Be.call(_e,He)}})),checked:Pe}};const xe=(Se,Ee,De)=>{const{node:we,checked:be}=me(Se,Ee,De);return g?g(be,Ee,De,we):we};if(!Z.includes(Wc))if(Z.findIndex(Se=>{var Ee;return((Ee=Se[ig])===null||Ee===void 0?void 0:Ee.columnType)==="EXPAND_COLUMN"})===0){const[Se,...Ee]=Z;Z=[Se,Wc].concat(Fe(Ee))}else Z=[Wc].concat(Fe(Z));const ue=Z.indexOf(Wc);Z=Z.filter((Se,Ee)=>Se!==Wc||Ee===ue);const ce=Z[ue-1],$e=Z[ue+1];let se=v;se===void 0&&(($e==null?void 0:$e.fixed)!==void 0?se=$e.fixed:(ce==null?void 0:ce.fixed)!==void 0&&(se=ce.fixed)),se&&ce&&((J=ce[ig])===null||J===void 0?void 0:J.columnType)==="EXPAND_COLUMN"&&ce.fixed===void 0&&(ce.fixed=se);const he=ne(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:h&&p==="checkbox"}),ve=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ye):t.columnTitle:pe,ke={fixed:se,width:m,className:`${b}-selection-column`,title:ve(),render:xe,onCell:t.onCell,[ig]:{className:he}};return Z.map(Se=>Se===Wc?ke:Se)},[_,z,t,B,U,X,m,re,k,H,f,Y,V]),U]};function AVe(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function LVe(e,t){return u.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(i,a){return n[a]?n[a]:Reflect.get(i,a)}}):AVe(r,n)})}function BVe(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return u.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:ne(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function zVe(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let a=r;if(i){const o=getComputedStyle(i),s=parseInt(o.borderLeftWidth,10),l=parseInt(o.borderRightWidth,10);a=r-s-l}return a}}const Ru=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function dh(e,t){return t?`${t}-${e}`:`${e}`}const M_=(e,t)=>typeof e=="function"?e(t):e,HVe=(e,t)=>{const n=M_(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function VVe(e){const t=u.useRef(e),n=dM();return[()=>t.current,r=>{t.current=r,n()}]}var WVe=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*i;break;case 1:a.bottom=0,a.left=-r*i;break;case 0:a.bottom=0,a.left=i;break}return L.createElement("div",{style:a})};function Mne(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function UVe(e,t){var n=u.useState(!1),r=ie(n,2),i=r[0],a=r[1];an(function(){if(i)return e(),function(){t()}},[i]),an(function(){return a(!0),function(){a(!1)}},[])}var qVe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],GVe=u.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,d=e.treeNodeRequiredProps,f=ft(e,qVe),m=u.useState(!0),p=ie(m,2),h=p[0],v=p[1],g=u.useContext(tN),w=g.prefixCls,y=a&&o!=="hide";an(function(){a&&y!==h&&v(y)},[a]);var b=function(){a&&s()},x=u.useRef(!1),C=function(){a&&!x.current&&(x.current=!0,l())};UVe(b,C);var S=function(k){y===k&&C()};return a?u.createElement(Oi,Oe({ref:t,visible:h},i,{motionAppear:o==="show",onVisibleChanged:S}),function(_,k){var $=_.className,E=_.style;return u.createElement("div",{ref:k,className:ne("".concat(w,"-treenode-motion"),$),style:E},a.map(function(P){var M=Object.assign({},(Mne(P.data),P.data)),j=P.title,O=P.key,N=P.isStart,R=P.isEnd;delete M.children;var D=tg(O,d);return u.createElement(a0,Oe({},M,D,{title:j,active:c,data:P.data,key:O,isStart:N,isEnd:R}))}))}):u.createElement(a0,Oe({domRef:t,className:n,style:r},f,{active:c}))});function KVe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,o){var s=new Map;a.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var ZVe=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,p=e.dragOverNodeKey,h=e.dropPosition,v=e.motion,g=e.height,w=e.itemHeight,y=e.virtual,b=e.scrollWidth,x=e.focusable,C=e.activeItem,S=e.focused,_=e.tabIndex,k=e.onKeyDown,$=e.onFocus,E=e.onBlur,P=e.onActiveChange,M=e.onListChangeStart,j=e.onListChangeEnd,O=ft(e,YVe),N=u.useRef(null),R=u.useRef(null);u.useImperativeHandle(t,function(){return{scrollTo:function(xe){N.current.scrollTo(xe)},getIndentWidth:function(){return R.current.offsetWidth}}});var D=u.useState(i),F=ie(D,2),z=F[0],I=F[1],H=u.useState(r),V=ie(H,2),B=V[0],W=V[1],U=u.useState(r),X=ie(U,2),q=X[0],Y=X[1],re=u.useState([]),G=ie(re,2),Q=G[0],J=G[1],Z=u.useState(null),ee=ie(Z,2),te=ee[0],le=ee[1],oe=u.useRef(r);oe.current=r;function de(){var me=oe.current;W(me),Y(me),J([]),le(null),j()}an(function(){I(i);var me=KVe(z,i);if(me.key!==null)if(me.add){var xe=B.findIndex(function(ve){var ke=ve.key;return ke===me.key}),ue=KL(UL(B,r,me.key),y,g,w),ce=B.slice();ce.splice(xe+1,0,GL),Y(ce),J(ue),le("show")}else{var $e=r.findIndex(function(ve){var ke=ve.key;return ke===me.key}),se=KL(UL(r,B,me.key),y,g,w),he=r.slice();he.splice($e+1,0,GL),Y(he),J(se),le("hide")}else B!==r&&(W(r),Y(r))},[i,r]),u.useEffect(function(){m||de()},[m]);var pe=v?q:r,ye={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:h,keyEntities:d};return u.createElement(u.Fragment,null,S&&C&&u.createElement("span",{style:qL,"aria-live":"assertive"},QVe(C)),u.createElement("div",null,u.createElement("input",{style:qL,disabled:x===!1||f,tabIndex:x!==!1?_:null,onKeyDown:k,onFocus:$,onBlur:E,value:"",onChange:XVe,"aria-label":"for screen reader"})),u.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},u.createElement("div",{className:"".concat(n,"-indent")},u.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),u.createElement(o_,Oe({},O,{data:pe,itemKey:YL,height:g,fullHeight:!1,virtual:y,itemHeight:w,scrollWidth:b,prefixCls:"".concat(n,"-list"),ref:N,role:"tree",onVisibleChange:function(xe){xe.every(function(ue){return YL(ue)!==rf})&&de()}}),function(me){var xe=me.pos,ue=Object.assign({},(Mne(me.data),me.data)),ce=me.title,$e=me.key,se=me.isStart,he=me.isEnd,ve=g1($e,xe);delete ue.key,delete ue.children;var ke=tg(ve,ye);return u.createElement(GVe,Oe({},ue,ke,{title:ce,active:!!C&&$e===C.key,pos:xe,data:me.data,isStart:se,isEnd:he,motion:v,motionNodes:$e===rf?Q:null,motionType:te,onMotionStart:M,onMotionEnd:de,treeNodeRequiredProps:ye,onMouseMove:function(){P(null)}}))}))}),JVe=10,N_=function(e){as(n,e);var t=os(n);function n(){var r;cr(this,n);for(var i=arguments.length,a=new Array(i),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,p=f.dropPosition,h=f.dropTargetKey,v=f.dropTargetPos,g=f.dropAllowed;if(g){var w=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var y=A(A({},tg(h,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===h,data:Pa(r.state.keyEntities,h).node}),b=m.includes(h);Fn(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var x=nN(v),C={event:s,node:ri(y),dragNode:r.dragNodeProps?ri(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:p!==0,dropPosition:p+Number(x[x.length-1])};d||w==null||w(C),r.dragNodeProps=null}}}),K(Rt(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),K(Rt(r),"triggerExpandActionExpand",function(s,l){var c=r.state,d=c.expandedKeys,f=c.flattenNodes,m=l.expanded,p=l.key,h=l.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var v=f.filter(function(w){return w.key===p})[0],g=ri(A(A({},tg(p,r.getTreeNodeRequiredProps())),{},{data:v.data}));r.setExpandedKeys(m?sl(d,p):ql(d,p)),r.onNodeExpand(s,g)}}),K(Rt(r),"onNodeClick",function(s,l){var c=r.props,d=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),d==null||d(s,l)}),K(Rt(r),"onNodeDoubleClick",function(s,l){var c=r.props,d=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),d==null||d(s,l)}),K(Rt(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,p=r.props,h=p.onSelect,v=p.multiple,g=l.selected,w=l[m.key],y=!g;y?v?c=ql(c,w):c=[w]:c=sl(c,w);var b=c.map(function(x){var C=Pa(f,x);return C?C.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),h==null||h(c,{event:"select",selected:y,node:l,selectedNodes:b,nativeEvent:s.nativeEvent})}),K(Rt(r),"onNodeCheck",function(s,l,c){var d=r.state,f=d.keyEntities,m=d.checkedKeys,p=d.halfCheckedKeys,h=r.props,v=h.checkStrictly,g=h.onCheck,w=l.key,y,b={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(v){var x=c?ql(m,w):sl(m,w),C=sl(p,w);y={checked:x,halfChecked:C},b.checkedNodes=x.map(function(P){return Pa(f,P)}).filter(Boolean).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:x})}else{var S=Vo([].concat(Fe(m),[w]),!0,f),_=S.checkedKeys,k=S.halfCheckedKeys;if(!c){var $=new Set(_);$.delete(w);var E=Vo(Array.from($),{checked:!1,halfCheckedKeys:k},f);_=E.checkedKeys,k=E.halfCheckedKeys}y=_,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=k,_.forEach(function(P){var M=Pa(f,P);if(M){var j=M.node,O=M.pos;b.checkedNodes.push(j),b.checkedNodesPositions.push({node:j,pos:O})}}),r.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:k})}g==null||g(y,b)}),K(Rt(r),"onNodeLoad",function(s){var l,c=s.key,d=r.state.keyEntities,f=Pa(d,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var m=new Promise(function(p,h){r.setState(function(v){var g=v.loadedKeys,w=g===void 0?[]:g,y=v.loadingKeys,b=y===void 0?[]:y,x=r.props,C=x.loadData,S=x.onLoad;if(!C||w.includes(c)||b.includes(c))return null;var _=C(s);return _.then(function(){var k=r.state.loadedKeys,$=ql(k,c);S==null||S($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(E){return{loadingKeys:sl(E.loadingKeys,c)}}),p()}).catch(function(k){if(r.setState(function(E){return{loadingKeys:sl(E.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=JVe){var $=r.state.loadedKeys;Fn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ql($,c)}),p()}h(k)}),{loadingKeys:ql(b,c)}})});return m.catch(function(){}),m}}),K(Rt(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),K(Rt(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),K(Rt(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),K(Rt(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(p){if(r.props.hasOwnProperty(p)){f=!1;return}d=!0,m[p]=s[p]}),d&&(!l||f)&&r.setState(A(A({},m),c))}}),K(Rt(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return ur(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,o=i.itemScrollOffset,s=o===void 0?0:o;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,o=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,d=i.dropLevelOffset,f=i.dropContainerKey,m=i.dropTargetKey,p=i.dropPosition,h=i.dragOverNodeKey,v=i.indent,g=this.props,w=g.prefixCls,y=g.className,b=g.style,x=g.showLine,C=g.focusable,S=g.tabIndex,_=S===void 0?0:S,k=g.selectable,$=g.showIcon,E=g.icon,P=g.switcherIcon,M=g.draggable,j=g.checkable,O=g.checkStrictly,N=g.disabled,R=g.motion,D=g.loadData,F=g.filterTreeNode,z=g.height,I=g.itemHeight,H=g.scrollWidth,V=g.virtual,B=g.titleRender,W=g.dropIndicatorRender,U=g.onContextMenu,X=g.onScroll,q=g.direction,Y=g.rootClassName,re=g.rootStyle,G=yr(this.props,{aria:!0,data:!0}),Q;M&&(mt(M)==="object"?Q=M:typeof M=="function"?Q={nodeDraggable:M}:Q={});var J={prefixCls:w,selectable:k,showIcon:$,icon:E,switcherIcon:P,draggable:Q,draggingNodeKey:l,checkable:j,checkStrictly:O,disabled:N,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:p,dragOverNodeKey:h,indent:v,direction:q,dropIndicatorRender:W,loadData:D,filterTreeNode:F,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return u.createElement(tN.Provider,{value:J},u.createElement("div",{className:ne(w,y,Y,K(K(K({},"".concat(w,"-show-line"),x),"".concat(w,"-focused"),a),"".concat(w,"-active-focused"),c!==null)),style:re},u.createElement(ZVe,Oe({ref:this.listRef,prefixCls:w,style:b,data:o,disabled:N,selectable:k,checkable:!!j,motion:R,dragging:l!==null,height:z,itemHeight:I,virtual:V,focusable:C,focused:a,tabIndex:_,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:X,scrollWidth:H},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s={prevProps:i};function l(_){return!o&&i.hasOwnProperty(_)||o&&o[_]!==i[_]}var c,d=a.fieldNames;if(l("fieldNames")&&(d=xp(i.fieldNames),s.fieldNames=d),l("treeData")?c=i.treeData:l("children")&&(Fn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Yee(i.children)),c){s.treeData=c;var f=b1(c,{fieldNames:d});s.keyEntities=A(K({},rf,Nne),f.keyEntities)}var m=s.keyEntities||a.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!o&&i.defaultExpandParent?JT(i.expandedKeys,m):i.expandedKeys;else if(!o&&i.defaultExpandAll){var p=A({},m);delete p[rf];var h=[];Object.keys(p).forEach(function(_){var k=p[_];k.children&&k.children.length&&h.push(k.key)}),s.expandedKeys=h}else!o&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?JT(i.defaultExpandedKeys,m):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var v=kE(c||a.treeData,s.expandedKeys||a.expandedKeys,d);s.flattenNodes=v}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=VL(i.selectedKeys,i):!o&&i.defaultSelectedKeys&&(s.selectedKeys=VL(i.defaultSelectedKeys,i))),i.checkable){var g;if(l("checkedKeys")?g=NE(i.checkedKeys)||{}:!o&&i.defaultCheckedKeys?g=NE(i.defaultCheckedKeys)||{}:c&&(g=NE(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),g){var w=g,y=w.checkedKeys,b=y===void 0?[]:y,x=w.halfCheckedKeys,C=x===void 0?[]:x;if(!i.checkStrictly){var S=Vo(b,!0,m);b=S.checkedKeys,C=S.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=C}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(u.Component);K(N_,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:WVe,allowDrop:function(){return!0},expandAction:!1});K(N_,"TreeNode",a0);const eWe=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:a,borderRadius:o,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},tWe=new on("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),nWe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),rWe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ae(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),iWe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},mn(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Bs(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:tWe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:ae(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},nWe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},rWe(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ae(t.calc(a).div(2).equal())} !important`}})}},Dne=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Yt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[iWe(e,a),eWe(a)]},jne=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},aWe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},jne(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},oWe=un("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:__(`${n}-checkbox`,e)},Dne(n,e),a1(e)]},aWe),XL=4;function sWe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:-n*i+XL,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=i+XL;break}return L.createElement("div",{style:l,className:`${r}-drop-indicator`})}const Fne=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:l}=r;if(l)return u.isValidElement(a)?a:u.createElement(js,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),o){if(!i)return null;if(typeof c!="boolean"&&c){const m=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return u.isValidElement(m)?zr(m,{className:ne(m.props.className||"",p)}):m}return c?u.createElement(tX,{className:`${t}-switcher-line-icon`}):u.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return u.isValidElement(f)?zr(f,{className:ne(f.props.className||"",d)}):f!==void 0?f:i?s?u.createElement(G$e,{className:`${t}-switcher-line-icon`}):u.createElement(rEe,{className:`${t}-switcher-line-icon`}):u.createElement(K_e,{className:d})},Ane=L.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:o}=L.useContext(Ct),{prefixCls:s,className:l,showIcon:c=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:p=!1,children:h,checkable:v=!1,selectable:g=!0,draggable:w,motion:y,style:b}=e,x=r("tree",s),C=r(),S=y??Object.assign(Object.assign({},vp(C)),{motionAppear:!1}),_=Object.assign(Object.assign({},e),{checkable:v,selectable:g,showIcon:c,motion:S,blockNode:p,showLine:!!d,dropIndicatorRender:sWe}),[k,$,E]=oWe(x),[,P]=Zr(),M=P.paddingXS/2+(((n=P.Tree)===null||n===void 0?void 0:n.titleHeight)||P.controlHeightSM),j=L.useMemo(()=>{if(!w)return!1;let N={};switch(typeof w){case"function":N.nodeDraggable=w;break;case"object":N=Object.assign({},w);break}return N.icon!==!1&&(N.icon=N.icon||L.createElement(D$e,null)),N},[w]),O=N=>L.createElement(Fne,{prefixCls:x,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:N,showLine:d});return k(L.createElement(N_,Object.assign({itemHeight:M,ref:t,virtual:a},_,{style:Object.assign(Object.assign({},o==null?void 0:o.style),b),prefixCls:x,className:ne({[`${x}-icon-hide`]:!c,[`${x}-block-node`]:p,[`${x}-unselectable`]:!g,[`${x}-rtl`]:i==="rtl"},o==null?void 0:o.className,l,$,E),direction:i,checkable:v&&L.createElement("span",{className:`${x}-checkbox-inner`}),selectable:g,switcherIcon:O,draggable:j}),h))}),QL=0,DE=1,ZL=2;function rN(e,t,n){const{key:r,children:i}=n;function a(o){const s=o[r],l=o[i];t(s,o)!==!1&&rN(l||[],t,n)}e.forEach(a)}function lWe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:a}=e;const o=[];let s=QL;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return rN(t,c=>{if(s===ZL)return!1;if(l(c)){if(o.push(c),s===QL)s=DE;else if(s===DE)return s=ZL,!1}else s===DE&&o.push(c);return n.includes(c)},xp(a)),o}function jE(e,t,n){const r=Fe(t),i=[];return rN(e,(a,o)=>{const s=r.indexOf(a);return s!==-1&&(i.push(o),r.splice(s,1)),!!r.length},xp(n)),i}var JL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=JL(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=u.useRef(null),s=u.useRef(null),l=()=>{const{keyEntities:k}=b1(e7(a));let $;return n?$=Object.keys(k):r?$=JT(a.expandedKeys||i||[],k):$=a.expandedKeys||i||[],$},[c,d]=u.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=u.useState(()=>l());u.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),u.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const p=(k,$)=>{var E;return"expandedKeys"in a||m(k),(E=a.onExpand)===null||E===void 0?void 0:E.call(a,k,$)},h=(k,$)=>{var E;const{multiple:P,fieldNames:M}=a,{node:j,nativeEvent:O}=$,{key:N=""}=j,R=e7(a),D=Object.assign(Object.assign({},$),{selected:!0}),F=(O==null?void 0:O.ctrlKey)||(O==null?void 0:O.metaKey),z=O==null?void 0:O.shiftKey;let I;P&&F?(I=k,o.current=N,s.current=I,D.selectedNodes=jE(R,I,M)):P&&z?(I=Array.from(new Set([].concat(Fe(s.current||[]),Fe(lWe({treeData:R,expandedKeys:f,startKey:N,endKey:o.current,fieldNames:M}))))),D.selectedNodes=jE(R,I,M)):(I=[N],o.current=N,s.current=I,D.selectedNodes=jE(R,I,M)),(E=a.onSelect)===null||E===void 0||E.call(a,I,D),"selectedKeys"in a||d(I)},{getPrefixCls:v,direction:g}=u.useContext(Ct),{prefixCls:w,className:y,showIcon:b=!0,expandAction:x="click"}=a,C=JL(a,["prefixCls","className","showIcon","expandAction"]),S=v("tree",w),_=ne(`${S}-directory`,{[`${S}-directory-rtl`]:g==="rtl"},y);return u.createElement(Ane,Object.assign({icon:cWe,ref:t,blockNode:!0},C,{showIcon:b,expandAction:x,prefixCls:S,className:_,expandedKeys:f,selectedKeys:c,onSelect:h,onExpand:p}))},dWe=u.forwardRef(uWe),iN=Ane;iN.DirectoryTree=dWe;iN.TreeNode=a0;const t7=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?u.createElement("div",{className:`${r}-filter-dropdown-search`},u.createElement(Pi,{prefix:u.createElement(b2,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},fWe=e=>{const{keyCode:t}=e;t===qe.ENTER&&e.stopPropagation()},mWe=u.forwardRef((e,t)=>u.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:fWe,ref:t},e.children));function Vm(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(Fe(t),Fe(Vm(i))))}),t}function pWe(e){return e.some(t=>{let{children:n}=t;return n})}function Lne(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Bne(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o}=e;return t.map((s,l)=>{const c=String(s.value);if(s.children)return{key:c||l,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:Bne({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o})};const d=i?yc:ah,f={key:s.value!==void 0?c:l,label:u.createElement(u.Fragment,null,u.createElement(d,{checked:r.includes(c)}),u.createElement("span",null,s.text))};return a.trim()?typeof o=="function"?o(a,s)?f:null:Lne(a,s.text)?f:null:f})}function FE(e){return e||[]}const hWe=e=>{var t,n,r,i;const{tablePrefixCls:a,prefixCls:o,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:p=!1,filterState:h,triggerFilter:v,locale:g,children:w,getPopupContainer:y,rootClassName:b}=e,{filterResetToDefaultFilteredValue:x,defaultFilteredValue:C,filterDropdownProps:S={},filterDropdownOpen:_,filterDropdownVisible:k,onFilterDropdownVisibleChange:$,onFilterDropdownOpenChange:E}=s,[P,M]=u.useState(!1),j=!!(h&&(!((t=h.filteredKeys)===null||t===void 0)&&t.length||h.forceFiltered)),O=me=>{var xe;M(me),(xe=S.onOpenChange)===null||xe===void 0||xe.call(S,me),E==null||E(me),$==null||$(me)},N=(i=(r=(n=S.open)!==null&&n!==void 0?n:_)!==null&&r!==void 0?r:k)!==null&&i!==void 0?i:P,R=h==null?void 0:h.filteredKeys,[D,F]=VVe(FE(R)),z=me=>{let{selectedKeys:xe}=me;F(xe)},I=(me,xe)=>{let{node:ue,checked:ce}=xe;z(f?{selectedKeys:me}:{selectedKeys:ce&&ue.key?[ue.key]:[]})};u.useEffect(()=>{P&&z({selectedKeys:FE(R)})},[R]);const[H,V]=u.useState([]),B=me=>{V(me)},[W,U]=u.useState(""),X=me=>{const{value:xe}=me.target;U(xe)};u.useEffect(()=>{P||U("")},[P]);const q=me=>{const xe=me!=null&&me.length?me:null;if(xe===null&&(!h||!h.filteredKeys)||Xo(xe,h==null?void 0:h.filteredKeys,!0))return null;v({column:s,key:c,filteredKeys:xe})},Y=()=>{O(!1),q(D())},re=function(){let{confirm:me,closeDropdown:xe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};me&&q([]),xe&&O(!1),U(""),F(x?(C||[]).map(ue=>String(ue)):[])},G=function(){let{closeDropdown:me}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};me&&O(!1),q(D())},Q=(me,xe)=>{xe.source==="trigger"&&(me&&R!==void 0&&F(FE(R)),O(me),!me&&!s.filterDropdown&&d&&Y())},J=ne({[`${l}-menu-without-submenu`]:!pWe(s.filters||[])}),Z=me=>{if(me.target.checked){const xe=Vm(s==null?void 0:s.filters).map(ue=>String(ue));F(xe)}else F([])},ee=me=>{let{filters:xe}=me;return(xe||[]).map((ue,ce)=>{const $e=String(ue.value),se={title:ue.text,key:ue.value!==void 0?$e:String(ce)};return ue.children&&(se.children=ee({filters:ue.children})),se})},te=me=>{var xe;return Object.assign(Object.assign({},me),{text:me.title,value:me.key,children:((xe=me.children)===null||xe===void 0?void 0:xe.map(ue=>te(ue)))||[]})};let le;const{direction:oe,renderEmpty:de}=u.useContext(Ct);if(typeof s.filterDropdown=="function")le=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:me=>z({selectedKeys:me}),selectedKeys:D(),confirm:G,clearFilters:re,filters:s.filters,visible:N,close:()=>{O(!1)}});else if(s.filterDropdown)le=s.filterDropdown;else{const me=D()||[],xe=()=>{var ce;const $e=(ce=de==null?void 0:de("Table.filter"))!==null&&ce!==void 0?ce:u.createElement(ec,{image:ec.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return $e;if(m==="tree")return u.createElement(u.Fragment,null,u.createElement(t7,{filterSearch:p,value:W,onChange:X,tablePrefixCls:a,locale:g}),u.createElement("div",{className:`${a}-filter-dropdown-tree`},f?u.createElement(yc,{checked:me.length===Vm(s.filters).length,indeterminate:me.length>0&&me.lengthtypeof p=="function"?p(W,te(ve)):Lne(W,ve.title):void 0})));const se=Bne({filters:s.filters||[],filterSearch:p,prefixCls:o,filteredKeys:D(),filterMultiple:f,searchValue:W}),he=se.every(ve=>ve===null);return u.createElement(u.Fragment,null,u.createElement(t7,{filterSearch:p,value:W,onChange:X,tablePrefixCls:a,locale:g}),he?$e:u.createElement(Cf,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:J,onSelect:z,onDeselect:z,selectedKeys:me,getPopupContainer:y,openKeys:H,onOpenChange:B,items:se}))},ue=()=>x?Xo((C||[]).map(ce=>String(ce)),me,!0):me.length===0;le=u.createElement(u.Fragment,null,xe(),u.createElement("div",{className:`${o}-dropdown-btns`},u.createElement(_n,{type:"link",size:"small",disabled:ue(),onClick:()=>re()},g.filterReset),u.createElement(_n,{type:"primary",size:"small",onClick:Y},g.filterConfirm)))}s.filterDropdown&&(le=u.createElement(NJ,{selectable:void 0},le)),le=u.createElement(mWe,{className:`${o}-dropdown`},le);const ye=tne({trigger:["click"],placement:oe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let me;return typeof s.filterIcon=="function"?me=s.filterIcon(j):s.filterIcon?me=s.filterIcon:me=u.createElement(x$e,null),u.createElement("span",{role:"button",tabIndex:-1,className:ne(`${o}-trigger`,{active:j}),onClick:xe=>{xe.stopPropagation()}},me)})(),getPopupContainer:y},Object.assign(Object.assign({},S),{rootClassName:ne(b,S.rootClassName),open:N,onOpenChange:Q,dropdownRender:()=>typeof(S==null?void 0:S.dropdownRender)=="function"?S.dropdownRender(le):le}));return u.createElement("div",{className:`${o}-column`},u.createElement("span",{className:`${a}-column-title`},w),u.createElement(E_,Object.assign({},ye)))},iO=(e,t,n)=>{let r=[];return(e||[]).forEach((i,a)=>{var o;const s=dh(a,n);if(i.filters||"filterDropdown"in i||"onFilter"in i)if("filteredValue"in i){let l=i.filteredValue;"filterDropdown"in i||(l=(o=l==null?void 0:l.map(String))!==null&&o!==void 0?o:l),r.push({column:i,key:Ru(i,s),filteredKeys:l,forceFiltered:i.filtered})}else r.push({column:i,key:Ru(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(Fe(r),Fe(iO(i.children,t,s))))}),r};function zne(e,t,n,r,i,a,o,s,l){return n.map((c,d)=>{const f=dh(d,s),{filterOnClose:m=!0,filterMultiple:p=!0,filterMode:h,filterSearch:v}=c;let g=c;if(g.filters||g.filterDropdown){const w=Ru(g,f),y=r.find(b=>{let{key:x}=b;return w===x});g=Object.assign(Object.assign({},g),{title:b=>u.createElement(hWe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:w,filterState:y,filterOnClose:m,filterMultiple:p,filterMode:h,filterSearch:v,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:l},M_(c.title,b))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:zne(e,t,g.children,r,i,a,o,f,l)})),g})}const n7=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:i,column:a}=n;const o=r,{filters:s,filterDropdown:l}=a;if(l)t[o]=i||null;else if(Array.isArray(i)){const c=Vm(s);t[o]=c.filter(d=>i.includes(String(d)))}else t[o]=null}),t},aO=(e,t,n)=>t.reduce((i,a)=>{const{column:{onFilter:o,filters:s},filteredKeys:l}=a;return o&&l&&l.length?i.map(c=>Object.assign({},c)).filter(c=>l.some(d=>{const f=Vm(s),m=f.findIndex(h=>String(h)===String(d)),p=m!==-1?f[m]:d;return c[n]&&(c[n]=aO(c[n],t,n)),o(p,c)})):i},e),Hne=e=>e.flatMap(t=>"children"in t?[t].concat(Fe(Hne(t.children||[]))):[t]),vWe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Fl();const l=u.useMemo(()=>Hne(r||[]),[r]),[c,d]=u.useState(()=>iO(l,!0)),f=u.useMemo(()=>{const v=iO(l,!1);if(v.length===0)return v;let g=!0;if(v.forEach(w=>{let{filteredKeys:y}=w;y!==void 0&&(g=!1)}),g){const w=(l||[]).map((y,b)=>Ru(y,dh(b)));return c.filter(y=>{let{key:b}=y;return w.includes(b)}).map(y=>{const b=l[w.findIndex(x=>x===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),b),forceFiltered:b.filtered})})}return v},[l,c]),m=u.useMemo(()=>n7(f),[f]),p=v=>{const g=f.filter(w=>{let{key:y}=w;return y!==v.key});g.push(v),d(g),i(n7(g),g)};return[v=>zne(t,n,v,f,o,p,a,void 0,s),f,m]},gWe=(e,t,n)=>{const r=u.useRef({});function i(a){var o;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let c=function(d){d.forEach((f,m)=>{const p=n(f,m);l.set(p,f),f&&typeof f=="object"&&t in f&&c(f[t]||[])})};var s=c;const l=new Map;c(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return(o=r.current.kvMap)===null||o===void 0?void 0:o.get(a)}return[i]};var bWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const a=e[i];typeof a!="function"&&(n[i]=a)}),n}function wWe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,a=bWe(r,["total"]),[o,s]=u.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Vne})),l=tne(o,a,{total:i>0?i:e}),c=Math.ceil((i||e)/l.pageSize);l.current>c&&(l.current=c||1);const d=(m,p)=>{s({current:m??1,pageSize:p||l.pageSize})},f=(m,p)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,m,p)),d(m,p),t(m,p||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:f}),d]}const mw="ascend",AE="descend",rS=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,r7=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,xWe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],oO=(e,t,n)=>{let r=[];const i=(a,o)=>{r.push({column:a,key:Ru(a,o),multiplePriority:rS(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,o)=>{const s=dh(o,n);a.children?("sortOrder"in a&&i(a,s),r=[].concat(Fe(r),Fe(oO(a.children,t,s)))):a.sorter&&("sortOrder"in a?i(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:Ru(a,s),multiplePriority:rS(a),sortOrder:a.defaultSortOrder}))}),r},Wne=(e,t,n,r,i,a,o,s)=>(t||[]).map((c,d)=>{const f=dh(d,s);let m=c;if(m.sorter){const p=m.sortDirections||i,h=m.showSorterTooltip===void 0?o:m.showSorterTooltip,v=Ru(m,f),g=n.find($=>{let{key:E}=$;return E===v}),w=g?g.sortOrder:null,y=xWe(p,w);let b;if(c.sortIcon)b=c.sortIcon({sortOrder:w});else{const $=p.includes(mw)&&u.createElement(eke,{className:ne(`${e}-column-sorter-up`,{active:w===mw})}),E=p.includes(AE)&&u.createElement(Q_e,{className:ne(`${e}-column-sorter-down`,{active:w===AE})});b=u.createElement("span",{className:ne(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!($&&E)})},u.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},$,E))}const{cancelSort:x,triggerAsc:C,triggerDesc:S}=a||{};let _=x;y===AE?_=S:y===mw&&(_=C);const k=typeof h=="object"?Object.assign({title:_},h):{title:_};m=Object.assign(Object.assign({},m),{className:ne(m.className,{[`${e}-column-sort`]:w}),title:$=>{const E=`${e}-column-sorters`,P=u.createElement("span",{className:`${e}-column-title`},M_(c.title,$)),M=u.createElement("div",{className:E},P,b);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?u.createElement("div",{className:`${E} ${e}-column-sorters-tooltip-target-sorter`},P,u.createElement(na,Object.assign({},k),b)):u.createElement(na,Object.assign({},k),M):M},onHeaderCell:$=>{var E;const P=((E=c.onHeaderCell)===null||E===void 0?void 0:E.call(c,$))||{},M=P.onClick,j=P.onKeyDown;P.onClick=R=>{r({column:c,key:v,sortOrder:y,multiplePriority:rS(c)}),M==null||M(R)},P.onKeyDown=R=>{R.keyCode===qe.ENTER&&(r({column:c,key:v,sortOrder:y,multiplePriority:rS(c)}),j==null||j(R))};const O=HVe(c.title,{}),N=O==null?void 0:O.toString();return w?P["aria-sort"]=w==="ascend"?"ascending":"descending":P["aria-label"]=N||"",P.className=ne(P.className,`${e}-column-has-sorters`),P.tabIndex=0,c.ellipsis&&(P.title=(O??"").toString()),P}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Wne(e,m.children,n,r,i,a,o,f)})),m}),i7=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},a7=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(i7);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},i7(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},sO=(e,t,n)=>{const r=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),i=e.slice(),a=r.filter(o=>{let{column:{sorter:s},sortOrder:l}=o;return r7(s)&&l});return a.length?i.sort((o,s)=>{for(let l=0;l{const s=o[n];return s?Object.assign(Object.assign({},o),{[n]:sO(s,t,n)}):o}):i},SWe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o}=e,[s,l]=u.useState(oO(n,!0)),c=(v,g)=>{const w=[];return v.forEach((y,b)=>{const x=dh(b,g);if(w.push(Ru(y,x)),Array.isArray(y.children)){const C=c(y.children,x);w.push.apply(w,Fe(C))}}),w},d=u.useMemo(()=>{let v=!0;const g=oO(n,!1);if(!g.length){const x=c(n);return s.filter(C=>{let{key:S}=C;return x.includes(S)})}const w=[];function y(x){v?w.push(x):w.push(Object.assign(Object.assign({},x),{sortOrder:null}))}let b=null;return g.forEach(x=>{b===null?(y(x),x.sortOrder&&(x.multiplePriority===!1?v=!1:b=!0)):(b&&x.multiplePriority!==!1||(v=!1),y(x))}),w},[n,s]),f=u.useMemo(()=>{var v,g;const w=d.map(y=>{let{column:b,sortOrder:x}=y;return{column:b,order:x}});return{sortColumns:w,sortColumn:(v=w[0])===null||v===void 0?void 0:v.column,sortOrder:(g=w[0])===null||g===void 0?void 0:g.order}},[d]),m=v=>{let g;v.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?g=[v]:g=[].concat(Fe(d.filter(w=>{let{key:y}=w;return y!==v.key})),[v]),l(g),o(a7(g),g)};return[v=>Wne(t,v,d,m,r,i,a),d,f,()=>a7(d)]},Une=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=M_(r.title,t),"children"in i&&(i.children=Une(i.children,t)),i}),CWe=e=>[u.useCallback(n=>Une(n,e),[e])],_We=Pne((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),kWe=One((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),$We=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:l}=e,c=`${ae(n)} ${r} ${i}`,d=(f,m,p)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ae(l(m).mul(-1).equal())} - ${ae(l(l(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ae(l(o).mul(-1).equal())} ${ae(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ae(n)} 0 ${ae(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},EWe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Fa),{wordBreak:"keep-all",[` - &${t}-cell-fix-left-last, - &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},PWe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},TWe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:p,paddingXXS:h,expandIconMarginTop:v,expandIconSize:g,expandIconHalfInner:w,expandIconScale:y,calc:b}=e,x=`${ae(i)} ${o} ${s}`,C=b(h).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},jI(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:ae(g),background:l,border:x,borderRadius:d,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:w,insetInlineEnd:C,insetInlineStart:C,height:i},"&::after":{top:C,bottom:C,insetInlineStart:w,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:v,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ae(b(f).mul(-1).equal())} ${ae(b(m).mul(-1).equal())}`,padding:`${ae(f)} ${ae(m)}`}}}},OWe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:c,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:p,tablePaddingHorizontal:h,borderRadius:v,motionDurationSlow:g,colorTextDescription:w,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:S,controlItemBgHover:_,controlItemBgActive:k,boxShadowSecondary:$,filterDropdownMenuBg:E,calc:P}=e,M=`${n}-dropdown`,j=`${t}-filter-dropdown`,O=`${n}-tree`,N=`${ae(c)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:P(o).mul(-1).equal(),marginInline:`${ae(o)} ${ae(P(h).div(2).mul(-1).equal())}`,padding:`0 ${ae(o)}`,color:m,fontSize:p,borderRadius:v,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:w,background:b},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[j]:Object.assign(Object.assign({},mn(e)),{minWidth:i,backgroundColor:C,borderRadius:v,boxShadow:$,overflow:"hidden",[`${M}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${ae(s)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${j}-tree`]:{paddingBlock:`${ae(s)} 0`,paddingInline:s,[O]:{padding:0},[`${O}-treenode ${O}-node-content-wrapper:hover`]:{backgroundColor:_},[`${O}-treenode-checkbox-checked ${O}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${j}-search`]:{padding:s,borderBottom:N,"&-input":{input:{minWidth:a},[r]:{color:x}}},[`${j}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${j}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ae(P(s).sub(c).equal())} ${ae(s)}`,overflow:"hidden",borderTop:N}})}},{[`${n}-dropdown ${j}, ${j}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},RWe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:a,tableBg:o,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:a,background:o},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after, - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},IWe=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${ae(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},MWe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ae(n)} ${ae(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ae(n)} ${ae(n)}`}}}}},NWe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},DWe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:p,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(i).add(h(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(c).add(h(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(i).add(h(a).div(4)).add(h(o).mul(2)).equal()}},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column, - ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ae(h(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},jWe=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(a,o,s,l)=>({[`${t}${t}-${a}`]:{fontSize:l,[` - ${t}-title, - ${t}-footer, - ${t}-cell, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${ae(o)} ${ae(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ae(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ae(r(o).mul(-1).equal())} ${ae(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ae(r(o).mul(-1).equal()),marginInline:`${ae(r(n).sub(s).equal())} ${ae(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ae(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},FWe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},AWe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:d,tableBorderColor:f}=e,m=`${ae(c)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ae(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},o7=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${ae(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${ae(i(n).mul(-1).equal())} 0 ${r}`}}}},LWe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${ae(r)} ${i} ${a}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` - & > ${t}-row, - & > div:not(${t}-row) > ${t}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ae(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},BWe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:v,tableFooterTextColor:g,tableFooterBg:w,calc:y}=e,b=`${ae(o)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Ls()),{[t]:Object.assign(Object.assign({},mn(e)),{fontSize:c,background:d,borderRadius:`${ae(f)} ${ae(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ae(f)} ${ae(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-cell, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${ae(r)} ${ae(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ae(r)} ${ae(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:b,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:ae(y(r).mul(-1).equal()),marginInline:`${ae(y(a).sub(i).equal())} - ${ae(y(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${ae(r)} ${ae(i)}`,color:g,background:w}})}},zWe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:p,colorTextPlaceholder:h,fontSize:v,fontSizeSM:g,lineHeight:w,lineWidth:y,colorIcon:b,colorIconHover:x,opacityLoading:C,controlInteractiveSize:S}=e,_=new rn(i).onBackground(n).toHexString(),k=new rn(a).onBackground(n).toHexString(),$=new rn(t).onBackground(n).toHexString(),E=new rn(b),P=new rn(x),M=S/2-y,j=M*2+y*3;return{headerBg:$,headerColor:r,headerSortActiveBg:_,headerSortHoverBg:k,bodySortBg:$,rowHoverBg:$,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:$,footerColor:r,cellFontSize:v,cellFontSizeMD:v,cellFontSizeSM:v,headerSplitColor:f,fixedHeaderSortActiveBg:_,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(v*w-y*3)/2-Math.ceil((g*1.4-y*3)/2),headerIconColor:E.clone().setA(E.a*C).toRgbString(),headerIconHoverColor:P.clone().setA(P.a*C).toRgbString(),expandIconHalfInner:M,expandIconSize:j,expandIconScale:S/j}},s7=2,HWe=un("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:p,cellPaddingBlock:h,cellPaddingInline:v,cellPaddingBlockMD:g,cellPaddingInlineMD:w,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:x,footerBg:C,footerColor:S,headerBorderRadius:_,cellFontSize:k,cellFontSizeMD:$,cellFontSizeSM:E,headerSplitColor:P,fixedHeaderSortActiveBg:M,headerFilterHoverBg:j,filterDropdownBg:O,expandIconBg:N,selectionColumnWidth:R,stickyScrollBarBg:D,calc:F}=e,z=Yt(e,{tableFontSize:k,tableBg:r,tableRadius:_,tablePaddingVertical:h,tablePaddingHorizontal:v,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:w,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:x,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:C,tableHeaderCellSplitColor:P,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:j,tableFilterDropdownBg:O,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:s7,zIndexTableSticky:F(s7).add(1).equal({unit:!1}),tableFontSizeMiddle:$,tableFontSizeSmall:E,tableSelectionColumnWidth:R,tableExpandIconBg:N,tableExpandColumnWidth:F(i).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:t,tableScrollBg:n});return[BWe(z),IWe(z),o7(z),FWe(z),OWe(z),$We(z),MWe(z),TWe(z),o7(z),PWe(z),DWe(z),RWe(z),AWe(z),EWe(z),jWe(z),NWe(z),LWe(z)]},zWe,{unitless:{expandIconScale:!0}}),VWe=[],WWe=(e,t)=>{var n,r;const{prefixCls:i,className:a,rootClassName:o,style:s,size:l,bordered:c,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:p,rowKey:h="key",rowClassName:v,columns:g,children:w,childrenColumnName:y,onChange:b,getPopupContainer:x,loading:C,expandIcon:S,expandable:_,expandedRowRender:k,expandIconColumnIndex:$,indentSize:E,scroll:P,sortDirections:M,locale:j,showSorterTooltip:O={target:"full-header"},virtual:N}=e;Fl();const R=u.useMemo(()=>g||JM(w),[g,w]),D=u.useMemo(()=>R.some(Qe=>Qe.responsive),[R]),F=fM(D),z=u.useMemo(()=>{const Qe=new Set(Object.keys(F).filter(Ge=>F[Ge]));return R.filter(Ge=>!Ge.responsive||Ge.responsive.some(st=>Qe.has(st)))},[R,F]),I=kn(e,["className","style","columns"]),{locale:H=Yo,direction:V,table:B,renderEmpty:W,getPrefixCls:U,getPopupContainer:X}=u.useContext(Ct),q=Fr(l),Y=Object.assign(Object.assign({},H.Table),j),re=f||VWe,G=U("table",i),Q=U("dropdown",d),[,J]=Zr(),Z=Dn(G),[ee,te,le]=HWe(G,Z),oe=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:$},_),{expandIcon:(n=_==null?void 0:_.expandIcon)!==null&&n!==void 0?n:(r=B==null?void 0:B.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:de="children"}=oe,pe=u.useMemo(()=>re.some(Qe=>Qe==null?void 0:Qe[de])?"nest":k||_!=null&&_.expandedRowRender?"row":null,[re]),ye={body:u.useRef(null)},me=zVe(G),xe=u.useRef(null),ue=u.useRef(null);LVe(t,()=>Object.assign(Object.assign({},ue.current),{nativeElement:xe.current}));const ce=u.useMemo(()=>typeof h=="function"?h:Qe=>Qe==null?void 0:Qe[h],[h]),[$e]=gWe(re,de,ce),se={},he=function(Qe,Ge){let st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var pt,yt,zt,$t;const ze=Object.assign(Object.assign({},se),Qe);st&&((pt=se.resetPagination)===null||pt===void 0||pt.call(se),!((yt=ze.pagination)===null||yt===void 0)&&yt.current&&(ze.pagination.current=1),m&&((zt=m.onChange)===null||zt===void 0||zt.call(m,1,($t=ze.pagination)===null||$t===void 0?void 0:$t.pageSize))),P&&P.scrollToFirstRowOnChange!==!1&&ye.body.current&&rTe(0,{getContainer:()=>ye.body.current}),b==null||b(ze.pagination,ze.filters,ze.sorter,{currentDataSource:aO(sO(re,ze.sorterStates,de),ze.filterStates,de),action:Ge})},ve=(Qe,Ge)=>{he({sorter:Qe,sorterStates:Ge},"sort",!1)},[ke,Se,Ee,De]=SWe({prefixCls:G,mergedColumns:z,onSorterChange:ve,sortDirections:M||["ascend","descend"],tableLocale:Y,showSorterTooltip:O}),we=u.useMemo(()=>sO(re,Se,de),[re,Se]);se.sorter=De(),se.sorterStates=Se;const be=(Qe,Ge)=>{he({filters:Qe,filterStates:Ge},"filter",!0)},[Pe,Re,_e]=vWe({prefixCls:G,locale:Y,dropdownPrefixCls:Q,mergedColumns:z,onFilterChange:be,getPopupContainer:x||X,rootClassName:ne(o,Z)}),je=aO(we,Re,de);se.filters=_e,se.filterStates=Re;const He=u.useMemo(()=>{const Qe={};return Object.keys(_e).forEach(Ge=>{_e[Ge]!==null&&(Qe[Ge]=_e[Ge])}),Object.assign(Object.assign({},Ee),{filters:Qe})},[Ee,_e]),[Be]=CWe(He),ct=(Qe,Ge)=>{he({pagination:Object.assign(Object.assign({},se.pagination),{current:Qe,pageSize:Ge})},"paginate")},[Ve,Ye]=wWe(je.length,ct,m);se.pagination=m===!1?{}:yWe(Ve,m),se.resetPagination=Ye;const Ne=u.useMemo(()=>{if(m===!1||!Ve.pageSize)return je;const{current:Qe=1,total:Ge,pageSize:st=Vne}=Ve;return je.lengthst?je.slice((Qe-1)*st,Qe*st):je:je.slice((Qe-1)*st,Qe*st)},[!!m,je,Ve==null?void 0:Ve.current,Ve==null?void 0:Ve.pageSize,Ve==null?void 0:Ve.total]),[Ae,et]=FVe({prefixCls:G,data:je,pageData:Ne,getRowKey:ce,getRecordByKey:$e,expandType:pe,childrenColumnName:de,locale:Y,getPopupContainer:x||X},p),nt=(Qe,Ge,st)=>{let pt;return typeof v=="function"?pt=ne(v(Qe,Ge,st)):pt=ne(v),ne({[`${G}-row-selected`]:et.has(ce(Qe,Ge))},pt)};oe.__PARENT_RENDER_ICON__=oe.expandIcon,oe.expandIcon=oe.expandIcon||S||BVe(Y),pe==="nest"&&oe.expandIconColumnIndex===void 0?oe.expandIconColumnIndex=p?1:0:oe.expandIconColumnIndex>0&&p&&(oe.expandIconColumnIndex-=1),typeof oe.indentSize!="number"&&(oe.indentSize=typeof E=="number"?E:15);const rt=u.useCallback(Qe=>Be(Ae(Pe(ke(Qe)))),[ke,Pe,Ae]);let it,ge;if(m!==!1&&(Ve!=null&&Ve.total)){let Qe;Ve.size?Qe=Ve.size:Qe=q==="small"||q==="middle"?"small":void 0;const Ge=yt=>u.createElement(qBe,Object.assign({},Ve,{className:ne(`${G}-pagination ${G}-pagination-${yt}`,Ve.className),size:Qe})),st=V==="rtl"?"left":"right",{position:pt}=Ve;if(pt!==null&&Array.isArray(pt)){const yt=pt.find(ze=>ze.includes("top")),zt=pt.find(ze=>ze.includes("bottom")),$t=pt.every(ze=>`${ze}`=="none");!yt&&!zt&&!$t&&(ge=Ge(st)),yt&&(it=Ge(yt.toLowerCase().replace("top",""))),zt&&(ge=Ge(zt.toLowerCase().replace("bottom","")))}else ge=Ge(st)}let Te;typeof C=="boolean"?Te={spinning:C}:typeof C=="object"&&(Te=Object.assign({spinning:!0},C));const Ce=ne(le,Z,`${G}-wrapper`,B==null?void 0:B.className,{[`${G}-wrapper-rtl`]:V==="rtl"},a,o,te),Ie=Object.assign(Object.assign({},B==null?void 0:B.style),s),Ke=typeof(j==null?void 0:j.emptyText)<"u"?j.emptyText:(W==null?void 0:W("Table"))||u.createElement(d1,{componentName:"Table"}),Xe=N?kWe:_We,lt={},tt=u.useMemo(()=>{const{fontSize:Qe,lineHeight:Ge,lineWidth:st,padding:pt,paddingXS:yt,paddingSM:zt}=J,$t=Math.floor(Qe*Ge);switch(q){case"middle":return zt*2+$t+st;case"small":return yt*2+$t+st;default:return pt*2+$t+st}},[J,q]);return N&&(lt.listItemHeight=tt),ee(u.createElement("div",{ref:xe,className:Ce,style:Ie},u.createElement(Hu,Object.assign({spinning:!1},Te),it,u.createElement(Xe,Object.assign({},lt,I,{ref:ue,columns:z,direction:V,expandable:oe,prefixCls:G,className:ne({[`${G}-middle`]:q==="middle",[`${G}-small`]:q==="small",[`${G}-bordered`]:c,[`${G}-empty`]:re.length===0},le,Z,te),data:Ne,rowKey:ce,rowClassName:nt,emptyText:Ke,internalHooks:x1,internalRefs:ye,transformColumns:rt,getContainerWidth:me})),ge)))},UWe=u.forwardRef(WWe),qWe=(e,t)=>{const n=u.useRef(0);return n.current+=1,u.createElement(UWe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},ko=u.forwardRef(qWe);ko.SELECTION_COLUMN=Wc;ko.EXPAND_COLUMN=Yl;ko.SELECTION_ALL=eO;ko.SELECTION_INVERT=tO;ko.SELECTION_NONE=nO;ko.Column=EVe;ko.ColumnGroup=PVe;ko.Summary=gne;const GWe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},mn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},aN=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Yt(e,{tagFontSize:i,tagLineHeight:ae(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},oN=e=>({defaultBg:new rn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),qne=un("Tag",e=>{const t=aN(e);return GWe(t)},oN);var KWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,style:r,className:i,checked:a,onChange:o,onClick:s}=e,l=KWe(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:d}=u.useContext(Ct),f=w=>{o==null||o(!a),s==null||s(w)},m=c("tag",n),[p,h,v]=qne(m),g=ne(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},d==null?void 0:d.className,i,h,v);return p(u.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:g,onClick:f})))}),XWe=e=>F2(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),QWe=yf(["Tag","preset"],e=>{const t=aN(e);return XWe(t)},oN);function ZWe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Yb=(e,t,n)=>{const r=ZWe(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},JWe=yf(["Tag","status"],e=>{const t=aN(e);return[Yb(t,"success","Success"),Yb(t,"processing","Info"),Yb(t,"error","Error"),Yb(t,"warning","Warning")]},oN);var eUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:l,onClose:c,bordered:d=!0,visible:f}=e,m=eUe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:h,tag:v}=u.useContext(Ct),[g,w]=u.useState(!0),y=kn(m,["closeIcon","closable"]);u.useEffect(()=>{f!==void 0&&w(f)},[f]);const b=u_(l),x=b5e(l),C=b||x,S=Object.assign(Object.assign({backgroundColor:l&&!C?l:void 0},v==null?void 0:v.style),a),_=p("tag",n),[k,$,E]=qne(_),P=ne(_,v==null?void 0:v.className,{[`${_}-${l}`]:C,[`${_}-has-color`]:l&&!C,[`${_}-hidden`]:!g,[`${_}-rtl`]:h==="rtl",[`${_}-borderless`]:!d},r,i,$,E),M=F=>{F.stopPropagation(),c==null||c(F),!F.defaultPrevented&&w(!1)},[,j]=lZ(Lx(e),Lx(v),{closable:!1,closeIconRender:F=>{const z=u.createElement("span",{className:`${_}-close-icon`,onClick:M},F);return yQ(F,z,I=>({onClick:H=>{var V;(V=I==null?void 0:I.onClick)===null||V===void 0||V.call(I,H),M(H)},className:ne(I==null?void 0:I.className,`${_}-close-icon`)}))}}),O=typeof m.onClick=="function"||o&&o.type==="a",N=s||null,R=N?u.createElement(u.Fragment,null,N,o&&u.createElement("span",null,o)):o,D=u.createElement("span",Object.assign({},y,{ref:t,className:P,style:S}),R,j,b&&u.createElement(QWe,{key:"preset",prefixCls:_}),x&&u.createElement(JWe,{key:"status",prefixCls:_}));return k(O?u.createElement(i1,{component:"Tag"},D):D)}),Gne=tUe;Gne.CheckableTag=YWe;const nUe=e=>{const t=e!=null&&e.algorithm?Zd(e.algorithm):Zd(n1),n=Object.assign(Object.assign({},hp),e==null?void 0:e.token);return EX(n,{override:e==null?void 0:e.token},t,j2)};function rUe(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const iUe=(e,t)=>{const n=t??n1(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),rUe(t??e)),YX(r)),{controlHeight:i}),KX(Object.assign(Object.assign({},n),{controlHeight:i})))},Oo=(e,t)=>new rn(e).setA(t).toRgbString(),Zf=(e,t)=>new rn(e).lighten(t).toHexString(),aUe=e=>{const t=Qd(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},oUe=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Oo(r,.85),colorTextSecondary:Oo(r,.65),colorTextTertiary:Oo(r,.45),colorTextQuaternary:Oo(r,.25),colorFill:Oo(r,.18),colorFillSecondary:Oo(r,.12),colorFillTertiary:Oo(r,.08),colorFillQuaternary:Oo(r,.04),colorBgSolid:Oo(r,.95),colorBgSolidHover:Oo(r,1),colorBgSolidActive:Oo(r,.9),colorBgElevated:Zf(n,12),colorBgContainer:Zf(n,8),colorBgLayout:Zf(n,0),colorBgSpotlight:Zf(n,26),colorBgBlur:Oo(r,.04),colorBorder:Zf(n,26),colorBorderSecondary:Zf(n,19)}},sUe=(e,t)=>{const n=Object.keys(II).map(i=>{const a=Qd(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((o,s,l)=>(o[`${i}-${l+1}`]=a[l],o[`${i}${l+1}`]=a[l],o),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t??n1(e);return Object.assign(Object.assign(Object.assign({},r),n),GX(e,{generateColorPalettes:aUe,generateNeutralColorPalettes:oUe}))};function lUe(){const[e,t,n]=Zr();return{theme:e,token:t,hashId:n}}const ii={defaultSeed:Xg.token,useToken:lUe,defaultAlgorithm:n1,darkAlgorithm:sUe,compactAlgorithm:iUe,getDesignToken:nUe,defaultConfig:Xg,_internalContext:MI};var cUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iu.createElement(dUe,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),af=u.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,o=cUe(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Tc("timePicker",i,a),l=u.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return u.createElement(uUe,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),Kne=Bu(af,"popupAlign",void 0,"picker");af._InternalPanelDoNotUseOrYouWillBeFired=Kne;af.RangePicker=fUe;af._InternalPanelDoNotUseOrYouWillBeFired=Kne;const mUe=function(e){var t=u.useRef({valueLabels:new Map});return u.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(a){var o=a.value,s=a.label,l=s??n.get(o);return r.set(o,l),A(A({},a),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var pUe=function(t,n,r,i){return u.useMemo(function(){var a=function(p){return p.map(function(h){var v=h.value;return v})},o=a(t),s=a(n),l=o.filter(function(m){return!i[m]}),c=o,d=s;if(r){var f=Vo(o,!0,i);c=f.checkedKeys,d=f.halfCheckedKeys}return[Array.from(new Set([].concat(Fe(l),Fe(c)))),d]},[t,n,r,i])},hUe=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},vUe=function(t){var n=t||{},r=n.label,i=n.value,a=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:a||"children"}},lO=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},gUe=function(t,n){var r=[],i=function a(o){o.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),a(l))})};return i(t),r},l7=function(t){return t==null};const bUe=function(e,t){return u.useMemo(function(){var n=b1(e,{fieldNames:t,initWrapper:function(i){return A(A({},i),{},{valueEntities:new Map})},processEntity:function(i,a){var o=i.node[t.value];a.valueEntities.set(o,i)}});return n},[e,t])};var sN=function(){return null},yUe=["children","value"];function Yne(e){return Lr(e).map(function(t){if(!u.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,a=i.children,o=i.value,s=ft(i,yUe),l=A({key:r,value:o},s),c=Yne(a);return c.length&&(l.children=c),l}).filter(function(t){return t})}function cO(e){if(!e)return e;var t=A({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Fn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function wUe(e,t,n,r,i,a){var o=null,s=null;function l(){function c(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(p,h){var v="".concat(f,"-").concat(h),g=p[a.value],w=n.includes(g),y=c(p[a.children]||[],v,w),b=u.createElement(sN,p,y.map(function(C){return C.node}));if(t===g&&(o=b),w){var x={pos:v,node:b,children:y};return m||s.push(x),x}return null}).filter(function(p){return p})}s||(s=[],c(r),s.sort(function(d,f){var m=d.node.props.value,p=f.node.props.value,h=n.indexOf(m),v=n.indexOf(p);return h-v}))}Object.defineProperty(e,"triggerNode",{get:function(){return Fn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Fn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(d){var f=d.node;return f})}})}var xUe=function(t,n,r){var i=r.fieldNames,a=r.treeNodeFilterProp,o=r.filterTreeNode,s=i.children;return u.useMemo(function(){if(!n||o===!1)return t;var l=typeof o=="function"?o:function(d,f){return String(f[a]).toUpperCase().includes(n.toUpperCase())},c=function d(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(p,h){var v=h[s],g=m||l(n,cO(h)),w=d(v||[],g);return(g||w.length)&&p.push(A(A({},h),{},K({isLeaf:void 0},s,w))),p},[])};return c(t)},[t,n,s,a,o])};function c7(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function SUe(e,t){var n=t.id,r=t.pId,i=t.rootPId,a=new Map,o=[];return e.forEach(function(s){var l=s[n],c=A(A({},s),{},{key:s.key||l});a.set(l,c)}),a.forEach(function(s){var l=s[r],c=a.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===i||i===null)&&o.push(s)}),o}function CUe(e,t,n){return u.useMemo(function(){if(e){if(n){var r=A({id:"id",pId:"pId",rootPId:null},mt(n)==="object"?n:{});return SUe(e,r)}return e}return Yne(t)},[t,n,e])}var Xne=u.createContext(null),Qne=u.createContext(null),_Ue={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},kUe=function(t,n){var r=tM(),i=r.prefixCls,a=r.multiple,o=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,d=u.useContext(Qne),f=d.virtual,m=d.listHeight,p=d.listItemHeight,h=d.listItemScrollOffset,v=d.treeData,g=d.fieldNames,w=d.onSelect,y=d.dropdownMatchSelectWidth,b=d.treeExpandAction,x=d.treeTitleRender,C=d.onPopupScroll,S=d.leftMaxCount,_=d.leafCountOnly,k=d.valueEntities,$=u.useContext(Xne),E=$.checkable,P=$.checkedKeys,M=$.halfCheckedKeys,j=$.treeExpandedKeys,O=$.treeDefaultExpandAll,N=$.treeDefaultExpandedKeys,R=$.onTreeExpand,D=$.treeIcon,F=$.showTreeIcon,z=$.switcherIcon,I=$.treeLine,H=$.treeNodeFilterProp,V=$.loadData,B=$.treeLoadedKeys,W=$.treeMotion,U=$.onTreeLoad,X=$.keyEntities,q=u.useRef(),Y=gc(function(){return v},[l,v],function(He,Be){return Be[0]&&He[1]!==Be[1]}),re=u.useMemo(function(){return E?{checked:P,halfChecked:M}:null},[E,P,M]);u.useEffect(function(){if(l&&!a&&P.length){var He;(He=q.current)===null||He===void 0||He.scrollTo({key:P[0]})}},[l]);var G=function(Be){Be.preventDefault()},Q=function(Be,ct){var Ve=ct.node;E&&lO(Ve)||(w(Ve.key,{selected:!P.includes(Ve.key)}),a||s(!1))},J=u.useState(N),Z=ie(J,2),ee=Z[0],te=Z[1],le=u.useState(null),oe=ie(le,2),de=oe[0],pe=oe[1],ye=u.useMemo(function(){return j?Fe(j):o?de:ee},[ee,de,j,o]),me=function(Be){te(Be),pe(Be),R&&R(Be)},xe=String(o).toLowerCase(),ue=function(Be){return xe?String(Be[H]).toLowerCase().includes(xe):!1};u.useEffect(function(){o&&pe(gUe(v,g))},[o]);var ce=u.useState(function(){return new Map}),$e=ie(ce,2),se=$e[0],he=$e[1];u.useEffect(function(){S&&he(new Map)},[S]);function ve(He){var Be=He[g.value];if(!se.has(Be)){var ct=k.get(Be),Ve=(ct.children||[]).length===0;if(Ve)se.set(Be,!1);else{var Ye=ct.children.filter(function(Ae){return!Ae.node.disabled&&!Ae.node.disableCheckbox&&!P.includes(Ae.node[g.value])}),Ne=Ye.length;se.set(Be,Ne>S)}}return se.get(Be)}var ke=Ht(function(He){var Be=He[g.value];return P.includes(Be)||S===null?!1:S<=0?!0:_&&S?ve(He):!1}),Se=function He(Be){var ct=fw(Be),Ve;try{for(ct.s();!(Ve=ct.n()).done;){var Ye=Ve.value;if(!(Ye.disabled||Ye.selectable===!1)){if(o){if(ue(Ye))return Ye}else return Ye;if(Ye[g.children]){var Ne=He(Ye[g.children]);if(Ne)return Ne}}}}catch(Ae){ct.e(Ae)}finally{ct.f()}return null},Ee=u.useState(null),De=ie(Ee,2),we=De[0],be=De[1],Pe=X[we];u.useEffect(function(){if(l){var He=null,Be=function(){var Ve=Se(Y);return Ve?Ve[g.value]:null};!a&&P.length&&!o?He=P[0]:He=Be(),be(He)}},[l,o]),u.useImperativeHandle(n,function(){var He;return{scrollTo:(He=q.current)===null||He===void 0?void 0:He.scrollTo,onKeyDown:function(ct){var Ve,Ye=ct.which;switch(Ye){case qe.UP:case qe.DOWN:case qe.LEFT:case qe.RIGHT:(Ve=q.current)===null||Ve===void 0||Ve.onKeyDown(ct);break;case qe.ENTER:{if(Pe){var Ne=ke(Pe.node),Ae=(Pe==null?void 0:Pe.node)||{},et=Ae.selectable,nt=Ae.value,rt=Ae.disabled;et!==!1&&!rt&&!Ne&&Q(null,{node:{key:we},selected:!P.includes(nt)})}break}case qe.ESC:s(!1)}},onKeyUp:function(){}}});var Re=gc(function(){return!o},[o,j||ee],function(He,Be){var ct=ie(He,1),Ve=ct[0],Ye=ie(Be,2),Ne=Ye[0],Ae=Ye[1];return Ve!==Ne&&!!(Ne||Ae)}),_e=Re?V:null;if(Y.length===0)return u.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:G},c);var je={fieldNames:g};return B&&(je.loadedKeys=B),ye&&(je.expandedKeys=ye),u.createElement("div",{onMouseDown:G},Pe&&l&&u.createElement("span",{style:_Ue,"aria-live":"assertive"},Pe.node.value),u.createElement(Rne.Provider,{value:{nodeDisabled:ke}},u.createElement(N_,Oe({ref:q,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:Y,height:m,itemHeight:p,itemScrollOffset:h,virtual:f!==!1&&y!==!1,multiple:a,icon:D,showIcon:F,switcherIcon:z,showLine:I,loadData:_e,motion:W,activeKey:we,checkable:E,checkStrictly:!0,checkedKeys:re,selectedKeys:E?[]:P,defaultExpandAll:O,titleRender:x},je,{onActiveChange:be,onSelect:Q,onCheck:Q,onExpand:me,onLoad:U,filterTreeNode:ue,expandAction:b,onScroll:C}))))},$Ue=u.forwardRef(kUe),lN="SHOW_ALL",cN="SHOW_PARENT",D_="SHOW_CHILD";function u7(e,t,n,r){var i=new Set(e);return t===D_?e.filter(function(a){var o=n[a];return!o||!o.children||!o.children.some(function(s){var l=s.node;return i.has(l[r.value])})||!o.children.every(function(s){var l=s.node;return lO(l)||i.has(l[r.value])})}):t===cN?e.filter(function(a){var o=n[a],s=o?o.parent:null;return!s||lO(s.node)||!i.has(s.key)}):e}var EUe=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function PUe(e){return!e||mt(e)!=="object"}var TUe=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,a=e.value,o=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,d=e.searchValue,f=e.inputValue,m=e.onSearch,p=e.autoClearSearchValue,h=p===void 0?!0:p,v=e.filterTreeNode,g=e.treeNodeFilterProp,w=g===void 0?"value":g,y=e.showCheckedStrategy,b=e.treeNodeLabelProp,x=e.multiple,C=e.treeCheckable,S=e.treeCheckStrictly,_=e.labelInValue,k=e.maxCount,$=e.fieldNames,E=e.treeDataSimpleMode,P=e.treeData,M=e.children,j=e.loadData,O=e.treeLoadedKeys,N=e.onTreeLoad,R=e.treeDefaultExpandAll,D=e.treeExpandedKeys,F=e.treeDefaultExpandedKeys,z=e.onTreeExpand,I=e.treeExpandAction,H=e.virtual,V=e.listHeight,B=V===void 0?200:V,W=e.listItemHeight,U=W===void 0?20:W,X=e.listItemScrollOffset,q=X===void 0?0:X,Y=e.onDropdownVisibleChange,re=e.dropdownMatchSelectWidth,G=re===void 0?!0:re,Q=e.treeLine,J=e.treeIcon,Z=e.showTreeIcon,ee=e.switcherIcon,te=e.treeMotion,le=e.treeTitleRender,oe=e.onPopupScroll,de=ft(e,EUe),pe=oM(n),ye=C&&!S,me=C||S,xe=S||_,ue=me||x,ce=Ut(o,{value:a}),$e=ie(ce,2),se=$e[0],he=$e[1],ve=u.useMemo(function(){return C?y||D_:lN},[y,C]),ke=u.useMemo(function(){return vUe($)},[JSON.stringify($)]),Se=Ut("",{value:d!==void 0?d:f,postState:function(fe){return fe||""}}),Ee=ie(Se,2),De=Ee[0],we=Ee[1],be=function(fe){we(fe),m==null||m(fe)},Pe=CUe(P,M,E),Re=bUe(Pe,ke),_e=Re.keyEntities,je=Re.valueEntities,He=u.useCallback(function(ze){var fe=[],Me=[];return ze.forEach(function(We){je.has(We)?Me.push(We):fe.push(We)}),{missingRawValues:fe,existRawValues:Me}},[je]),Be=xUe(Pe,De,{fieldNames:ke,treeNodeFilterProp:w,filterTreeNode:v}),ct=u.useCallback(function(ze){if(ze){if(b)return ze[b];for(var fe=ke._title,Me=0;MeQe)){var wt=Ye(ze);if(he(wt),h&&we(""),s){var Je=ze;ye&&(Je=We.map(function(Dt){var Jt=je.get(Dt);return Jt?Jt.node[ke.value]:Dt}));var Le=fe||{triggerValue:void 0,selected:void 0},ot=Le.triggerValue,vt=Le.selected,Et=Je;if(S){var It=rt.filter(function(Dt){return!Je.includes(Dt.value)});Et=[].concat(Fe(Et),Fe(It))}var St=Ye(Et),at={preValue:nt,triggerValue:ot},_t=!0;(S||Me==="selection"&&!vt)&&(_t=!1),wUe(at,ot,ze,Pe,_t,ke),me?at.checked=vt:at.selected=vt;var At=xe?St:St.map(function(Dt){return Dt.value});s(ue?At:At[0],xe?null:St.map(function(Dt){return Dt.label}),at)}}}),st=u.useCallback(function(ze,fe){var Me,We=fe.selected,wt=fe.source,Je=_e[ze],Le=Je==null?void 0:Je.node,ot=(Me=Le==null?void 0:Le[ke.value])!==null&&Me!==void 0?Me:ze;if(!ue)Ge([ot],{selected:!0,triggerValue:ot},"option");else{var vt=We?[].concat(Fe(it),[ot]):Ce.filter(function(Jt){return Jt!==ot});if(ye){var Et=He(vt),It=Et.missingRawValues,St=Et.existRawValues,at=St.map(function(Jt){return je.get(Jt).key}),_t;if(We){var At=Vo(at,!0,_e);_t=At.checkedKeys}else{var Dt=Vo(at,{checked:!1,halfCheckedKeys:Ie},_e);_t=Dt.checkedKeys}vt=[].concat(Fe(It),Fe(_t.map(function(Jt){return _e[Jt].node[ke.value]})))}Ge(vt,{selected:We,triggerValue:ot},wt||"option")}We||!ue?l==null||l(ot,cO(Le)):c==null||c(ot,cO(Le))},[He,je,_e,ke,ue,it,Ge,ye,l,c,Ce,Ie,k]),pt=u.useCallback(function(ze){if(Y){var fe={};Object.defineProperty(fe,"documentClickClose",{get:function(){return Fn(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Y(ze,fe)}},[Y]),yt=c7(function(ze,fe){var Me=ze.map(function(We){return We.value});if(fe.type==="clear"){Ge(Me,{},"selection");return}fe.values.length&&st(fe.values[0].value,{selected:!1,source:"selection"})}),zt=u.useMemo(function(){return{virtual:H,dropdownMatchSelectWidth:G,listHeight:B,listItemHeight:U,listItemScrollOffset:q,treeData:Be,fieldNames:ke,onSelect:st,treeExpandAction:I,treeTitleRender:le,onPopupScroll:oe,leftMaxCount:k===void 0?null:k-tt.length,leafCountOnly:ve==="SHOW_CHILD"&&!S&&!!C,valueEntities:je}},[H,G,B,U,q,Be,ke,st,I,le,oe,k,tt.length,ve,S,C,je]),$t=u.useMemo(function(){return{checkable:me,loadData:j,treeLoadedKeys:O,onTreeLoad:N,checkedKeys:Ce,halfCheckedKeys:Ie,treeDefaultExpandAll:R,treeExpandedKeys:D,treeDefaultExpandedKeys:F,onTreeExpand:z,treeIcon:J,treeMotion:te,showTreeIcon:Z,switcherIcon:ee,treeLine:Q,treeNodeFilterProp:w,keyEntities:_e}},[me,j,O,N,Ce,Ie,R,D,F,z,J,te,Z,ee,Q,w,_e]);return u.createElement(Qne.Provider,{value:zt},u.createElement(Xne.Provider,{value:$t},u.createElement(rM,Oe({ref:t},de,{id:pe,prefixCls:i,mode:ue?"multiple":void 0,displayValues:tt,onDisplayValuesChange:yt,searchValue:De,onSearch:be,OptionList:$Ue,emptyOptions:!Pe.length,onDropdownVisibleChange:pt,dropdownMatchSelectWidth:G}))))}),S1=TUe;S1.TreeNode=sN;S1.SHOW_ALL=lN;S1.SHOW_PARENT=cN;S1.SHOW_CHILD=D_;const OUe=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${ae(e.paddingXS)} ${ae(e.calc(e.paddingXS).div(2).equal())}`},Dne(n,Yt(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},__(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function RUe(e,t,n){return un("TreeSelect",r=>{const i=Yt(r,{treePrefixCls:t});return[OUe(i)]},jne)(e,n)}var IUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,size:i,disabled:a,bordered:o=!0,className:s,rootClassName:l,treeCheckable:c,multiple:d,listHeight:f=256,listItemHeight:m,placement:p,notFoundContent:h,switcherIcon:v,treeLine:g,getPopupContainer:w,popupClassName:y,dropdownClassName:b,treeIcon:x=!1,transitionName:C,choiceTransitionName:S="",status:_,treeExpandAction:k,builtinPlacements:$,dropdownMatchSelectWidth:E,popupMatchSelectWidth:P,allowClear:M,variant:j,dropdownStyle:O,tagRender:N,maxCount:R,showCheckedStrategy:D,treeCheckStrictly:F}=e,z=IUe(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:I,getPrefixCls:H,renderEmpty:V,direction:B,virtual:W,popupMatchSelectWidth:U,popupOverflow:X}=u.useContext(Ct),[,q]=Zr(),Y=m??(q==null?void 0:q.controlHeightSM)+(q==null?void 0:q.paddingXXS),re=H(),G=H("select",r),Q=H("select-tree",r),J=H("tree-select",r),{compactSize:Z,compactItemClassnames:ee}=Qs(G,B),te=Dn(G),le=Dn(J),[oe,de,pe]=cM(G,te),[ye]=RUe(J,Q,le),[me,xe]=Tc("treeSelect",j,o),ue=ne(y||b,`${J}-dropdown`,{[`${J}-dropdown-rtl`]:B==="rtl"},l,pe,te,le,de),ce=!!(c||d),$e=u.useMemo(()=>{if(!(R&&(D==="SHOW_ALL"&&!F||D==="SHOW_PARENT")))return R},[R,D,F]),se=uM(e.suffixIcon,e.showArrow),he=(n=P??E)!==null&&n!==void 0?n:U,{status:ve,hasFeedback:ke,isFormItemInput:Se,feedbackIcon:Ee}=u.useContext(Qr),De=Pc(ve,_),{suffixIcon:we,removeIcon:be,clearIcon:Pe}=s_(Object.assign(Object.assign({},z),{multiple:ce,showSuffixIcon:se,hasFeedback:ke,feedbackIcon:Ee,prefixCls:G,componentName:"TreeSelect"})),Re=M===!0?{clearIcon:Pe}:M;let _e;h!==void 0?_e=h:_e=(V==null?void 0:V("Select"))||u.createElement(d1,{componentName:"Select"});const je=kn(z,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),He=u.useMemo(()=>p!==void 0?p:B==="rtl"?"bottomRight":"bottomLeft",[p,B]),Be=Fr(nt=>{var rt;return(rt=i??Z)!==null&&rt!==void 0?rt:nt}),ct=u.useContext(Br),Ve=a??ct,Ye=ne(!r&&J,{[`${G}-lg`]:Be==="large",[`${G}-sm`]:Be==="small",[`${G}-rtl`]:B==="rtl",[`${G}-${me}`]:xe,[`${G}-in-form-item`]:Se},Hs(G,De,ke),ee,s,l,pe,te,le,de),Ne=nt=>u.createElement(Fne,{prefixCls:Q,switcherIcon:v,treeNodeProps:nt,showLine:g}),[Ae]=Xs("SelectLike",O==null?void 0:O.zIndex),et=u.createElement(S1,Object.assign({virtual:W,disabled:Ve},je,{dropdownMatchSelectWidth:he,builtinPlacements:lM($,X),ref:t,prefixCls:G,className:Ye,listHeight:f,listItemHeight:Y,treeCheckable:c&&u.createElement("span",{className:`${G}-tree-checkbox-inner`}),treeLine:!!g,suffixIcon:we,multiple:ce,placement:He,removeIcon:be,allowClear:Re,switcherIcon:Ne,showTreeIcon:x,notFoundContent:_e,getPopupContainer:w||I,treeMotion:null,dropdownClassName:ue,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:Ae}),choiceTransitionName:ea(re,"",S),transitionName:ea(re,"slide-up",C),treeExpandAction:k,tagRender:ce?N:void 0,maxCount:$e,showCheckedStrategy:D,treeCheckStrictly:F}));return oe(ye(et))},NUe=u.forwardRef(MUe),Pf=NUe,DUe=Bu(Pf,"dropdownAlign",e=>kn(e,["visible"]));Pf.TreeNode=sN;Pf.SHOW_ALL=lN;Pf.SHOW_PARENT=cN;Pf.SHOW_CHILD=D_;Pf._InternalPanelDoNotUseOrYouWillBeFired=DUe;const jUe=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},FUe=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` - h${r}&, - div&-h${r}, - div&-h${r} > textarea, - h${r} - `]=jUe(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},AUe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},jI(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},LUe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Tx[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),BUe=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ae(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},zUe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),HUe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),VUe=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},FUe(e)),{[` - & + h1${t}, - & + h2${t}, - & + h3${t}, - & + h4${t}, - & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),LUe(e)),AUe(e)),{[` - ${t}-expand, - ${t}-collapse, - ${t}-edit, - ${t}-copy - `]:Object.assign(Object.assign({},jI(e)),{marginInlineStart:e.marginXXS})}),BUe(e)),zUe(e)),HUe()),{"&-rtl":{direction:"rtl"}})}},WUe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Zne=un("Typography",e=>[VUe(e)],WUe),UUe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:d,onEnd:f,component:m,enterIcon:p=u.createElement(Fke,null)}=e,h=u.useRef(null),v=u.useRef(!1),g=u.useRef(null),[w,y]=u.useState(l);u.useEffect(()=>{y(l)},[l]),u.useEffect(()=>{var O;if(!((O=h.current)===null||O===void 0)&&O.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:R}=N.value;N.setSelectionRange(R,R)}},[]);const b=O=>{let{target:N}=O;y(N.value.replace(/[\n\r]/g,""))},x=()=>{v.current=!0},C=()=>{v.current=!1},S=O=>{let{keyCode:N}=O;v.current||(g.current=N)},_=()=>{c(w.trim())},k=O=>{let{keyCode:N,ctrlKey:R,altKey:D,metaKey:F,shiftKey:z}=O;g.current!==N||v.current||R||D||F||z||(N===qe.ENTER?(_(),f==null||f()):N===qe.ESC&&d())},$=()=>{_()},[E,P,M]=Zne(t),j=ne(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${m}`]:!!m},r,P,M);return E(u.createElement("div",{className:j,style:i},u.createElement(Ste,{ref:h,maxLength:o,value:w,onChange:b,onKeyDown:S,onKeyUp:k,onCompositionStart:x,onCompositionEnd:C,onBlur:$,"aria-label":n,rows:1,autoSize:s}),p!==null?zr(p,{className:`${t}-edit-content-confirm`}):null))};var qUe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=d7[t.format]||d7.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),o.addRange(a);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=YUe("message"in t?t.message:KUe),window.prompt(r,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(a):o.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var QUe=XUe;const ZUe=Wn(QUe);var JUe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(d){try{c(r.next(d))}catch(f){o(f)}}function l(d){try{c(r.throw(d))}catch(f){o(f)}}function c(d){d.done?a(d.value):i(d.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const eqe=e=>{let{copyConfig:t,children:n}=e;const[r,i]=u.useState(!1),[a,o]=u.useState(!1),s=u.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),u.useEffect(()=>l,[]);const d=Ht(f=>JUe(void 0,void 0,void 0,function*(){var m;f==null||f.preventDefault(),f==null||f.stopPropagation(),o(!0);try{const p=typeof t.text=="function"?yield t.text():t.text;ZUe(p||aze(n,!0).join("")||"",c),o(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(m=t.onCopy)===null||m===void 0||m.call(t,f)}catch(p){throw o(!1),p}}));return{copied:r,copyLoading:a,onClick:d}};function LE(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const tqe=e=>{const t=u.useRef(void 0);return u.useEffect(()=>{t.current=e}),t.current},nqe=(e,t,n)=>u.useMemo(()=>e===!0?{title:t??n}:u.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var rqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:o,children:s,direction:l,style:c}=e,d=rqe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,typography:p}=u.useContext(Ct),h=l??m,v=o?di(t,o):t,g=f("typography",n),[w,y,b]=Zne(g),x=ne(g,p==null?void 0:p.className,{[`${g}-rtl`]:h==="rtl"},i,a,y,b),C=Object.assign(Object.assign({},p==null?void 0:p.style),c);return w(u.createElement(r,Object.assign({className:x,style:C,ref:v},d),s))});function f7(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function BE(e,t,n){return e===!0||e===void 0?t:e||n&&t}function iqe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const uN=e=>["string","number"].includes(typeof e),aqe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:l,loading:c}=e;const d=f7(a),f=f7(o),{copied:m,copy:p}=r??{},h=n?m:p,v=BE(d[n?1:0],h),g=typeof v=="string"?v:h;return u.createElement(na,{title:v},u.createElement("button",{type:"button",className:ne(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":g,tabIndex:s},n?BE(f[1],u.createElement(vI,null),!0):BE(f[0],c?u.createElement(js,null):u.createElement(yke,null),!0)))},Xb=u.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=u.useRef(null);return u.useImperativeHandle(t,()=>({isExceed:()=>{const a=i.current;return a.scrollHeight>a.clientHeight},getHeight:()=>i.current.clientHeight})),u.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),oqe=e=>e.reduce((t,n)=>t+(uN(n)?String(n).length:1),0);function m7(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(a).slice(0,c)),r}r.push(a),n=l}return e}const zE=0,HE=1,VE=2,WE=3,p7=4,Qb={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function sqe(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:l}=e,c=u.useMemo(()=>Lr(r),[r]),d=u.useMemo(()=>oqe(c),[r]),f=u.useMemo(()=>i(c,!1),[r]),[m,p]=u.useState(null),h=u.useRef(null),v=u.useRef(null),g=u.useRef(null),w=u.useRef(null),y=u.useRef(null),[b,x]=u.useState(!1),[C,S]=u.useState(zE),[_,k]=u.useState(0),[$,E]=u.useState(null);an(()=>{S(t&&n&&d?HE:zE)},[n,r,a,t,c]),an(()=>{var O,N,R,D;if(C===HE){S(VE);const F=v.current&&getComputedStyle(v.current).whiteSpace;E(F)}else if(C===VE){const F=!!(!((O=g.current)===null||O===void 0)&&O.isExceed());S(F?WE:p7),p(F?[0,d]:null),x(F);const z=((N=g.current)===null||N===void 0?void 0:N.getHeight())||0,I=a===1?0:((R=w.current)===null||R===void 0?void 0:R.getHeight())||0,H=((D=y.current)===null||D===void 0?void 0:D.getHeight())||0,V=Math.max(z,I+H);k(V+1),l(F)}},[C]);const P=m?Math.ceil((m[0]+m[1])/2):0;an(()=>{var O;const[N,R]=m||[0,0];if(N!==R){const F=(((O=h.current)===null||O===void 0?void 0:O.getHeight())||0)>_;let z=P;R-N===1&&(z=F?N:R),p(F?[N,z]:[z,R])}},[m,P]);const M=u.useMemo(()=>{if(!t)return i(c,!1);if(C!==WE||!m||m[0]!==m[1]){const O=i(c,!1);return[p7,zE].includes(C)?O:u.createElement("span",{style:Object.assign(Object.assign({},Qb),{WebkitLineClamp:a})},O)}return i(o?c:m7(c,m[0]),b)},[o,C,m,c].concat(Fe(s))),j={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return u.createElement(u.Fragment,null,M,C===VE&&u.createElement(u.Fragment,null,u.createElement(Xb,{style:Object.assign(Object.assign(Object.assign({},j),Qb),{WebkitLineClamp:a}),ref:g},f),u.createElement(Xb,{style:Object.assign(Object.assign(Object.assign({},j),Qb),{WebkitLineClamp:a-1}),ref:w},f),u.createElement(Xb,{style:Object.assign(Object.assign(Object.assign({},j),Qb),{WebkitLineClamp:1}),ref:y},i([],!0))),C===WE&&m&&m[0]!==m[1]&&u.createElement(Xb,{style:Object.assign(Object.assign({},j),{top:400}),ref:h},i(m7(c,P),!0)),C===HE&&u.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const lqe=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:u.createElement(na,Object.assign({open:n?void 0:!1},i),r)};var cqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,style:a,type:o,disabled:s,children:l,ellipsis:c,editable:d,copyable:f,component:m,title:p}=e,h=cqe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:v,direction:g}=u.useContext(Ct),[w]=ya("Text"),y=u.useRef(null),b=u.useRef(null),x=v("typography",r),C=kn(h,["mark","code","delete","underline","strong","keyboard","italic"]),[S,_]=LE(d),[k,$]=Ut(!1,{value:_.editing}),{triggerType:E=["icon"]}=_,P=Re=>{var _e;Re&&((_e=_.onStart)===null||_e===void 0||_e.call(_)),$(Re)},M=tqe(k);an(()=>{var Re;!k&&M&&((Re=b.current)===null||Re===void 0||Re.focus())},[k]);const j=Re=>{Re==null||Re.preventDefault(),P(!0)},O=Re=>{var _e;(_e=_.onChange)===null||_e===void 0||_e.call(_,Re),P(!1)},N=()=>{var Re;(Re=_.onCancel)===null||Re===void 0||Re.call(_),P(!1)},[R,D]=LE(f),{copied:F,copyLoading:z,onClick:I}=eqe({copyConfig:D,children:l}),[H,V]=u.useState(!1),[B,W]=u.useState(!1),[U,X]=u.useState(!1),[q,Y]=u.useState(!1),[re,G]=u.useState(!0),[Q,J]=LE(c,{expandable:!1,symbol:Re=>Re?w==null?void 0:w.collapse:w==null?void 0:w.expand}),[Z,ee]=Ut(J.defaultExpanded||!1,{value:J.expanded}),te=Q&&(!Z||J.expandable==="collapsible"),{rows:le=1}=J,oe=u.useMemo(()=>te&&(J.suffix!==void 0||J.onEllipsis||J.expandable||S||R),[te,J,S,R]);an(()=>{Q&&!oe&&(V(PT("webkitLineClamp")),W(PT("textOverflow")))},[oe,Q]);const[de,pe]=u.useState(te),ye=u.useMemo(()=>oe?!1:le===1?B:H,[oe,B,H]);an(()=>{pe(ye&&te)},[ye,te]);const me=te&&(de?q:U),xe=te&&le===1&&de,ue=te&&le>1&&de,ce=(Re,_e)=>{var je;ee(_e.expanded),(je=J.onExpand)===null||je===void 0||je.call(J,Re,_e)},[$e,se]=u.useState(0),he=Re=>{let{offsetWidth:_e}=Re;se(_e)},ve=Re=>{var _e;X(Re),U!==Re&&((_e=J.onEllipsis)===null||_e===void 0||_e.call(J,Re))};u.useEffect(()=>{const Re=y.current;if(Q&&de&&Re){const _e=iqe(Re);q!==_e&&Y(_e)}},[Q,de,l,ue,re,$e]),u.useEffect(()=>{const Re=y.current;if(typeof IntersectionObserver>"u"||!Re||!de||!te)return;const _e=new IntersectionObserver(()=>{G(!!Re.offsetParent)});return _e.observe(Re),()=>{_e.disconnect()}},[de,te]);const ke=nqe(J.tooltip,_.text,l),Se=u.useMemo(()=>{if(!(!Q||de))return[_.text,l,p,ke.title].find(uN)},[Q,de,p,ke.title,me]);if(k)return u.createElement(UUe,{value:(n=_.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:O,onCancel:N,onEnd:_.onEnd,prefixCls:x,className:i,style:a,direction:g,component:m,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const Ee=()=>{const{expandable:Re,symbol:_e}=J;return Re?u.createElement("button",{type:"button",key:"expand",className:`${x}-${Z?"collapse":"expand"}`,onClick:je=>ce(je,{expanded:!Z}),"aria-label":Z?w.collapse:w==null?void 0:w.expand},typeof _e=="function"?_e(Z):_e):null},De=()=>{if(!S)return;const{icon:Re,tooltip:_e,tabIndex:je}=_,He=Lr(_e)[0]||(w==null?void 0:w.edit),Be=typeof He=="string"?He:"";return E.includes("icon")?u.createElement(na,{key:"edit",title:_e===!1?"":He},u.createElement("button",{type:"button",ref:b,className:`${x}-edit`,onClick:j,"aria-label":Be,tabIndex:je},Re||u.createElement(JY,{role:"button"}))):null},we=()=>R?u.createElement(aqe,Object.assign({key:"copy"},D,{prefixCls:x,copied:F,locale:w,onCopy:I,loading:z,iconOnly:l==null})):null,be=Re=>[Re&&Ee(),De(),we()],Pe=Re=>[Re&&!Z&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},dqe),J.suffix,be(Re)];return u.createElement(bi,{onResize:he,disabled:!te},Re=>u.createElement(lqe,{tooltipProps:ke,enableEllipsis:te,isEllipsis:me},u.createElement(Jne,Object.assign({className:ne({[`${x}-${o}`]:o,[`${x}-disabled`]:s,[`${x}-ellipsis`]:Q,[`${x}-ellipsis-single-line`]:xe,[`${x}-ellipsis-multiple-line`]:ue},i),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ue?le:void 0}),component:m,ref:di(Re,y,t),direction:g,onClick:E.includes("text")?j:void 0,"aria-label":Se==null?void 0:Se.toString(),title:p},C),u.createElement(sqe,{enableMeasure:te&&!de,text:l,rows:le,width:$e,onEllipsis:ve,expanded:Z,miscDeps:[F,Z,z,S,R,w]},(_e,je)=>uqe(e,u.createElement(u.Fragment,null,_e.length>0&&je&&!Z&&Se?u.createElement("span",{key:"show-content","aria-hidden":!0},_e):_e,Pe(je)))))))});var fqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n,rel:r}=e,i=fqe(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,u.createElement(j_,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),pqe=u.forwardRef((e,t)=>u.createElement(j_,Object.assign({ref:t},e,{component:"div"})));var hqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n}=e,r=hqe(e,["ellipsis"]);const i=u.useMemo(()=>n&&typeof n=="object"?kn(n,["expandable","rows"]):n,[n]);return u.createElement(j_,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},gqe=u.forwardRef(vqe);var bqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{level:n=1}=e,r=bqe(e,["level"]),i=yqe.includes(n)?`h${n}`:"h1";return u.createElement(j_,Object.assign({ref:t},r,{component:i}))}),Da=Jne;Da.Text=gqe;Da.Link=mqe;Da.Title=wqe;Da.Paragraph=pqe;const UE=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),d=[c];return(c===".jpg"||c===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(Fn(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function xqe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function h7(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Sqe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var a=e.data[i];if(Array.isArray(a)){a.forEach(function(o){n.append("".concat(i,"[]"),o)});return}n.append(i,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(xqe(e,t),h7(t)):e.onSuccess(h7(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var Cqe=function(){var e=Ki(Bn().mark(function t(n,r){var i,a,o,s,l,c,d,f;return Bn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=Ki(Bn().mark(function v(g){return Bn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(b){g.file(function(x){r(x)?(g.fullPath&&!x.webkitRelativePath&&(Object.defineProperties(x,{webkitRelativePath:{writable:!0}}),x.webkitRelativePath=g.fullPath.replace(/^\//,""),Object.defineProperties(x,{webkitRelativePath:{writable:!1}})),b(x)):b(null)})}));case 1:case"end":return y.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Ki(Bn().mark(function v(g){var w,y,b,x,C;return Bn().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:w=g.createReader(),y=[];case 2:return _.next=5,new Promise(function(k){w.readEntries(k,function(){return k([])})});case 5:if(b=_.sent,x=b.length,x){_.next=9;break}return _.abrupt("break",12);case 9:for(C=0;C{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ae(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` - &:not(${t}-disabled):hover, - &-hover:not(${t}-disabled) - `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ae(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, - p${t}-text, - p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},Tqe=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Ls()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},Fa),{padding:`0 ${ae(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` - ${l}:focus-visible, - &.picture ${l} - `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Oqe=e=>{const{componentCls:t}=e,n=new on("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new on("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:WI(e)},n,r]},Rqe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` - ${o}${o}-picture, - ${o}${o}-picture-card, - ${o}${o}-picture-circle - `]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Fa),{width:r,height:r,lineHeight:ae(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${ae(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${cp[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${cp.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},Iqe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` - ${t}-wrapper${t}-picture-card-wrapper, - ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},Ls()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ae(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ae(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ae(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` - ${n}-eye, - ${n}-download, - ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${ae(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ae(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ae(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Mqe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Nqe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},mn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Dqe=e=>({actionsColor:e.colorTextDescription}),jqe=un("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:a}=e,o=Yt(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[Nqe(o),Pqe(o),Rqe(o),Iqe(o),Tqe(o),Oqe(o),Mqe(o),a1(o)]},Dqe);function Zb(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Jb(e,t){const n=Fe(t),r=n.findIndex(i=>{let{uid:a}=i;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function KE(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Fqe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const Aqe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},ere=e=>e.indexOf("image/")===0,Lqe=e=>{if(e.type&&!e.thumbUrl)return ere(e.type);const t=e.thumbUrl||e.url||"",n=Aqe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Ac=200;function Bqe(e){return new Promise(t=>{if(!e.type||!ere(e.type)){t("");return}const n=document.createElement("canvas");n.width=Ac,n.height=Ac,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ac}px; height: ${Ac}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=Ac,l=Ac,c=0,d=0;a>o?(l=o*(Ac/a),d=-(l-s)/2):(s=a*(Ac/o),c=-(s-l)/2),r.drawImage(i,c,d,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const zqe=u.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:d,actionIconRender:f,itemRender:m,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:v,showDownloadIcon:g,previewIcon:w,removeIcon:y,downloadIcon:b,extra:x,onPreview:C,onDownload:S,onClose:_}=e;var k,$;const{status:E}=s,[P,M]=u.useState(E);u.useEffect(()=>{E!=="removed"&&M(E)},[E]);const[j,O]=u.useState(!1);u.useEffect(()=>{const Z=setTimeout(()=>{O(!0)},300);return()=>{clearTimeout(Z)}},[]);const N=d(s);let R=u.createElement("div",{className:`${n}-icon`},N);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(P==="uploading"||!s.thumbUrl&&!s.url){const Z=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:P!=="uploading"});R=u.createElement("div",{className:Z},N)}else{const Z=p!=null&&p(s)?u.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):N,ee=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(s)});R=u.createElement("a",{className:ee,onClick:te=>C(s,te),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Z)}const D=ne(`${n}-list-item`,`${n}-list-item-${P}`),F=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,z=(typeof v=="function"?v(s):v)?f((typeof y=="function"?y(s):y)||u.createElement(ZY,null),()=>_(s),n,a.removeFile,!0):null,I=(typeof g=="function"?g(s):g)&&P==="done"?f((typeof b=="function"?b(s):b)||u.createElement(Oke,null),()=>S(s),n,a.downloadFile):null,H=o!=="picture-card"&&o!=="picture-circle"&&u.createElement("span",{key:"download-delete",className:ne(`${n}-list-item-actions`,{picture:o==="picture"})},I,z),V=typeof x=="function"?x(s):x,B=V&&u.createElement("span",{className:`${n}-list-item-extra`},V),W=ne(`${n}-list-item-name`),U=s.url?u.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:s.name},F,{href:s.url,onClick:Z=>C(s,Z)}),s.name,B):u.createElement("span",{key:"view",className:W,onClick:Z=>C(s,Z),title:s.name},s.name,B),X=(typeof h=="function"?h(s):h)&&(s.url||s.thumbUrl)?u.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Z=>C(s,Z),title:a.previewFile},typeof w=="function"?w(s):w||u.createElement(g2,null)):null,q=(o==="picture-card"||o==="picture-circle")&&P!=="uploading"&&u.createElement("span",{className:`${n}-list-item-actions`},X,P==="done"&&I,z),{getPrefixCls:Y}=u.useContext(Ct),re=Y(),G=u.createElement("div",{className:D},R,U,H,q,j&&u.createElement(Oi,{motionName:`${re}-fade`,visible:P==="uploading",motionDeadline:2e3},Z=>{let{className:ee}=Z;const te="percent"in s?u.createElement(YM,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return u.createElement("div",{className:ne(`${n}-list-item-progress`,ee)},te)})),Q=s.response&&typeof s.response=="string"?s.response:((k=s.error)===null||k===void 0?void 0:k.statusText)||(($=s.error)===null||$===void 0?void 0:$.message)||a.uploadError,J=P==="error"?u.createElement(na,{title:Q,getPopupContainer:Z=>Z.parentNode},G):G;return u.createElement("div",{className:ne(`${n}-list-item-container`,r),style:i,ref:t},m?m(J,s,l,{download:S.bind(null,s),preview:C.bind(null,s),remove:_.bind(null,s)}):J)}),Hqe=(e,t)=>{const{listType:n="text",previewFile:r=Bqe,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=Lqe,prefixCls:d,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:p=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:g,downloadIcon:w,extra:y,progress:b={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:C=!0,itemRender:S,disabled:_}=e,k=dM(),[$,E]=u.useState(!1),P=["picture-card","picture-circle"].includes(n);u.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(B=>{!(B.originFileObj instanceof File||B.originFileObj instanceof Blob)||B.thumbUrl!==void 0||(B.thumbUrl="",r==null||r(B.originFileObj).then(W=>{B.thumbUrl=W||"",k()}))})},[n,f,r]),u.useEffect(()=>{E(!0)},[]);const M=(B,W)=>{if(i)return W==null||W.preventDefault(),i(B)},j=B=>{typeof a=="function"?a(B):B.url&&window.open(B.url)},O=B=>{o==null||o(B)},N=B=>{if(l)return l(B,n);const W=B.status==="uploading";if(n.startsWith("picture")){const U=n==="picture"?u.createElement(js,null):s.uploading,X=c!=null&&c(B)?u.createElement(Z$e,null):u.createElement(f$e,null);return W?U:X}return W?u.createElement(js,null):u.createElement(ZP,null)},R=(B,W,U,X,q)=>{const Y={type:"text",size:"small",title:X,onClick:re=>{var G,Q;W(),u.isValidElement(B)&&((Q=(G=B.props).onClick)===null||Q===void 0||Q.call(G,re))},className:`${U}-list-item-action`};return q&&(Y.disabled=_),u.isValidElement(B)?u.createElement(_n,Object.assign({},Y,{icon:zr(B,Object.assign(Object.assign({},B.props),{onClick:()=>{}}))})):u.createElement(_n,Object.assign({},Y),u.createElement("span",null,B))};u.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:j}));const{getPrefixCls:D}=u.useContext(Ct),F=D("upload",d),z=D(),I=ne(`${F}-list`,`${F}-list-${n}`),H=u.useMemo(()=>kn(vp(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),V=Object.assign(Object.assign({},P?{}:H),{motionDeadline:2e3,motionName:`${F}-${P?"animate-inline":"animate"}`,keys:Fe(f.map(B=>({key:B.uid,file:B}))),motionAppear:$});return u.createElement("div",{className:I},u.createElement(A2,Object.assign({},V,{component:!1}),B=>{let{key:W,file:U,className:X,style:q}=B;return u.createElement(zqe,{key:W,locale:s,prefixCls:F,className:X,style:q,file:U,items:f,progress:b,listType:n,isImgUrl:c,showPreviewIcon:m,showRemoveIcon:p,showDownloadIcon:h,removeIcon:v,previewIcon:g,downloadIcon:w,extra:y,iconRender:N,actionIconRender:R,itemRender:S,onPreview:M,onDownload:j,onClose:O})}),x&&u.createElement(Oi,Object.assign({},V,{visible:C,forceRender:!0}),B=>{let{className:W,style:U}=B;return zr(x,X=>({className:ne(X.className,W),style:Object.assign(Object.assign(Object.assign({},U),{pointerEvents:W?"none":void 0}),X.style)}))}))},Vqe=u.forwardRef(Hqe);var Wqe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(d){try{c(r.next(d))}catch(f){o(f)}}function l(d){try{c(r.throw(d))}catch(f){o(f)}}function c(d){d.done?a(d.value):i(d.value).then(s,l)}c((r=r.apply(e,[])).next())})};const Iv=`__LIST_IGNORE_${Date.now()}__`,Uqe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:d,previewFile:f,disabled:m,locale:p,iconRender:h,isImageUrl:v,progress:g,prefixCls:w,className:y,type:b="select",children:x,style:C,itemRender:S,maxCount:_,data:k={},multiple:$=!1,hasControlInside:E=!0,action:P="",accept:M="",supportServerRender:j=!0,rootClassName:O}=e,N=u.useContext(Br),R=m??N,[D,F]=Ut(r||[],{value:n,postState:be=>be??[]}),[z,I]=u.useState("drop"),H=u.useRef(null),V=u.useRef(null);u.useMemo(()=>{const be=Date.now();(n||[]).forEach((Pe,Re)=>{!Pe.uid&&!Object.isFrozen(Pe)&&(Pe.uid=`__AUTO__${be}_${Re}__`)})},[n]);const B=(be,Pe,Re)=>{let _e=Fe(Pe),je=!1;_===1?_e=_e.slice(-1):_&&(je=_e.length>_,_e=_e.slice(0,_)),yi.flushSync(()=>{F(_e)});const He={file:be,fileList:_e};Re&&(He.event=Re),(!je||be.status==="removed"||_e.some(Be=>Be.uid===be.uid))&&yi.flushSync(()=>{c==null||c(He)})},W=(be,Pe)=>Wqe(void 0,void 0,void 0,function*(){const{beforeUpload:Re,transformFile:_e}=e;let je=be;if(Re){const He=yield Re(be,Pe);if(He===!1)return!1;if(delete be[Iv],He===Iv)return Object.defineProperty(be,Iv,{value:!0,configurable:!0}),!1;typeof He=="object"&&He&&(je=He)}return _e&&(je=yield _e(je)),je}),U=be=>{const Pe=be.filter(je=>!je.file[Iv]);if(!Pe.length)return;const Re=Pe.map(je=>Zb(je.file));let _e=Fe(D);Re.forEach(je=>{_e=Jb(je,_e)}),Re.forEach((je,He)=>{let Be=je;if(Pe[He].parsedFile)je.status="uploading";else{const{originFileObj:ct}=je;let Ve;try{Ve=new File([ct],ct.name,{type:ct.type})}catch{Ve=new Blob([ct],{type:ct.type}),Ve.name=ct.name,Ve.lastModifiedDate=new Date,Ve.lastModified=new Date().getTime()}Ve.uid=je.uid,Be=Ve}B(Be,_e)})},X=(be,Pe,Re)=>{try{typeof be=="string"&&(be=JSON.parse(be))}catch{}if(!KE(Pe,D))return;const _e=Zb(Pe);_e.status="done",_e.percent=100,_e.response=be,_e.xhr=Re;const je=Jb(_e,D);B(_e,je)},q=(be,Pe)=>{if(!KE(Pe,D))return;const Re=Zb(Pe);Re.status="uploading",Re.percent=be.percent;const _e=Jb(Re,D);B(Re,_e,be)},Y=(be,Pe,Re)=>{if(!KE(Re,D))return;const _e=Zb(Re);_e.error=be,_e.response=Pe,_e.status="error";const je=Jb(_e,D);B(_e,je)},re=be=>{let Pe;Promise.resolve(typeof i=="function"?i(be):i).then(Re=>{var _e;if(Re===!1)return;const je=Fqe(be,D);je&&(Pe=Object.assign(Object.assign({},be),{status:"removed"}),D==null||D.forEach(He=>{const Be=Pe.uid!==void 0?"uid":"name";He[Be]===Pe[Be]&&!Object.isFrozen(He)&&(He.status="removed")}),(_e=H.current)===null||_e===void 0||_e.abort(Pe),B(Pe,je))})},G=be=>{I(be.type),be.type==="drop"&&(d==null||d(be))};u.useImperativeHandle(t,()=>({onBatchStart:U,onSuccess:X,onProgress:q,onError:Y,fileList:D,upload:H.current,nativeElement:V.current}));const{getPrefixCls:Q,direction:J,upload:Z}=u.useContext(Ct),ee=Q("upload",w),te=Object.assign(Object.assign({onBatchStart:U,onError:Y,onProgress:q,onSuccess:X},e),{data:k,multiple:$,action:P,accept:M,supportServerRender:j,prefixCls:ee,disabled:R,beforeUpload:W,onChange:void 0,hasControlInside:E});delete te.className,delete te.style,(!x||R)&&delete te.id;const le=`${ee}-wrapper`,[oe,de,pe]=jqe(ee,le),[ye]=ya("Upload",Yo.Upload),{showRemoveIcon:me,showPreviewIcon:xe,showDownloadIcon:ue,removeIcon:ce,previewIcon:$e,downloadIcon:se,extra:he}=typeof a=="boolean"?{}:a,ve=typeof me>"u"?!R:me,ke=(be,Pe)=>a?u.createElement(Vqe,{prefixCls:ee,listType:o,items:D,previewFile:f,onPreview:s,onDownload:l,onRemove:re,showRemoveIcon:ve,showPreviewIcon:xe,showDownloadIcon:ue,removeIcon:ce,previewIcon:$e,downloadIcon:se,iconRender:h,extra:he,locale:Object.assign(Object.assign({},ye),p),isImageUrl:v,progress:g,appendAction:be,appendActionVisible:Pe,itemRender:S,disabled:R}):be,Se=ne(le,y,O,de,pe,Z==null?void 0:Z.className,{[`${ee}-rtl`]:J==="rtl",[`${ee}-picture-card-wrapper`]:o==="picture-card",[`${ee}-picture-circle-wrapper`]:o==="picture-circle"}),Ee=Object.assign(Object.assign({},Z==null?void 0:Z.style),C);if(b==="drag"){const be=ne(de,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:D.some(Pe=>Pe.status==="uploading"),[`${ee}-drag-hover`]:z==="dragover",[`${ee}-disabled`]:R,[`${ee}-rtl`]:J==="rtl"});return oe(u.createElement("span",{className:Se,ref:V},u.createElement("div",{className:be,style:Ee,onDrop:G,onDragOver:G,onDragLeave:G},u.createElement(uO,Object.assign({},te,{ref:H,className:`${ee}-btn`}),u.createElement("div",{className:`${ee}-drag-container`},x))),ke()))}const De=ne(ee,`${ee}-select`,{[`${ee}-disabled`]:R,[`${ee}-hidden`]:!x}),we=u.createElement("div",{className:De},u.createElement(uO,Object.assign({},te,{ref:H})));return oe(o==="picture-card"||o==="picture-circle"?u.createElement("span",{className:Se,ref:V},ke(we,!!x)):u.createElement("span",{className:Se,ref:V},we,ke()))},tre=u.forwardRef(Uqe);var qqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{style:n,height:r,hasControlInside:i=!1}=e,a=qqe(e,["style","height","hasControlInside"]);return u.createElement(tre,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),F_=tre;F_.Dragger=Gqe;F_.LIST_IGNORE=Iv;const Kqe=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,children:i,size:a,style:o={}}=e,s=ne(`${n}-panel`,{[`${n}-panel-hidden`]:a===0},r),l=a!==void 0;return L.createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},o),{flexBasis:l?a:"auto",flexGrow:l?0:1})},i)}),Yqe=()=>null;var Xqe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iLr(e).filter(u.isValidElement).map(n=>{const{props:r}=n,{collapsible:i}=r,a=Xqe(r,["collapsible"]);return Object.assign(Object.assign({},a),{collapsible:Qqe(i)})}),[e])}function Jqe(e,t){return u.useMemo(()=>{const n=[];for(let r=0;r0||p.start&&s===0&&o>0,g=p.start&&s>0||d.end&&o===0&&s>0;n[r]={resizable:h,startCollapsible:!!v,endCollapsible:!!g}}return n},[t,e])}function pw(e){return Number(e.slice(0,-1))/100}function YE(e){return typeof e=="string"&&e.endsWith("%")}function eGe(e,t){const n=e.map(h=>h.size),r=e.length,i=t||0,a=h=>h*i,[o,s]=L.useState(()=>e.map(h=>h.defaultSize)),l=L.useMemo(()=>{var h;const v=[];for(let g=0;g{let h=[],v=0;for(let w=0;ww+(y||0),0);if(g>1||!v){const w=1/g;h=h.map(y=>y===void 0?0:y*w)}else{const w=(1-g)/v;h=h.map(y=>y===void 0?w:y)}return h},[l,i]),d=L.useMemo(()=>c.map(a),[c,i]),f=L.useMemo(()=>e.map(h=>YE(h.min)?pw(h.min):(h.min||0)/i),[e,i]),m=L.useMemo(()=>e.map(h=>YE(h.max)?pw(h.max):(h.max||i)/i),[e,i]);return[L.useMemo(()=>t?d:l,[d,t]),d,c,f,m,s]}function tGe(e,t,n,r,i){const a=e.map(b=>[b.min,b.max]),o=r||0,s=b=>b*o;function l(b,x){return typeof b=="string"?s(pw(b)):b??x}const[c,d]=u.useState([]),f=u.useRef([]),[m,p]=u.useState(null),h=()=>n.map(s);return[b=>{d(h()),p({index:b,confirmed:!1})},(b,x)=>{var C;let S=null;if((!m||!m.confirmed)&&x!==0){if(x>0)S=b,p({index:b,confirmed:!0});else for(let N=b;N>=0;N-=1)if(c[N]>0&&t[N].resizable){S=N,p({index:N,confirmed:!0});break}}const _=(C=S??(m==null?void 0:m.index))!==null&&C!==void 0?C:b,k=Fe(c),$=_+1,E=l(a[_][0],0),P=l(a[$][0],0),M=l(a[_][1],o),j=l(a[$][1],o);let O=x;return k[_]+OM&&(O=M-k[_]),k[$]-O>j&&(O=k[$]-j),k[_]+=O,k[$]-=O,i(k),k},()=>{p(null)},(b,x)=>{const C=h(),S=x==="start"?b:b+1,_=x==="start"?b+1:b,k=C[S],$=C[_];if(k!==0&&$!==0)C[S]=0,C[_]+=k,f.current[b]=k;else{const E=k+$,P=l(a[S][0],0),M=l(a[S][1],o),j=l(a[_][0],0),O=l(a[_][1],o),N=Math.max(P,E-O),D=(Math.min(M,E-j)-N)/2,F=f.current[b],z=E-F;F&&F<=O&&F>=j&&z<=M&&z>=P?(C[_]=F,C[S]=z):(C[S]-=D,C[_]+=D)}return i(C),C},m==null?void 0:m.index]}function XE(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const nGe=e=>{const{prefixCls:t,vertical:n,index:r,active:i,ariaNow:a,ariaMin:o,ariaMax:s,resizable:l,startCollapsible:c,endCollapsible:d,onOffsetStart:f,onOffsetUpdate:m,onOffsetEnd:p,onCollapse:h,lazy:v,containerSize:g}=e,w=`${t}-bar`,[y,b]=u.useState(null),[x,C]=u.useState(0),S=n?0:x,_=n?x:0,k=R=>{l&&R.currentTarget&&(b([R.pageX,R.pageY]),f(r))},$=R=>{if(l&&R.touches.length===1){const D=R.touches[0];b([D.pageX,D.pageY]),f(r)}},E=R=>{const D=g*a/100,F=D+R,z=Math.max(0,g*o/100),I=Math.min(g,g*s/100);return Math.max(z,Math.min(I,F))-D},P=Ht((R,D)=>{const F=E(n?D:R);C(F)}),M=Ht(()=>{m(r,S,_),C(0)});L.useEffect(()=>{if(y){const R=I=>{const{pageX:H,pageY:V}=I,B=H-y[0],W=V-y[1];v?P(B,W):m(r,B,W)},D=()=>{v&&M(),b(null),p()},F=I=>{if(I.touches.length===1){const H=I.touches[0],V=H.pageX-y[0],B=H.pageY-y[1];v?P(V,B):m(r,V,B)}},z=()=>{v&&M(),b(null),p()};return window.addEventListener("touchmove",F),window.addEventListener("touchend",z),window.addEventListener("mousemove",R),window.addEventListener("mouseup",D),()=>{window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",D),window.removeEventListener("touchmove",F),window.removeEventListener("touchend",z)}}},[y,v,n,r,g,a,o,s]);const j={[`--${w}-preview-offset`]:`${x}px`},O=n?aX:Eu,N=n?J0:Fs;return L.createElement("div",{className:w,role:"separator","aria-valuenow":XE(a),"aria-valuemin":XE(o),"aria-valuemax":XE(s)},v&&L.createElement("div",{className:ne(`${w}-preview`,{[`${w}-preview-active`]:!!x}),style:j}),L.createElement("div",{className:ne(`${w}-dragger`,{[`${w}-dragger-disabled`]:!l,[`${w}-dragger-active`]:i}),onMouseDown:k,onTouchStart:$}),c&&L.createElement("div",{className:ne(`${w}-collapse-bar`,`${w}-collapse-bar-start`),onClick:()=>h(r,"start")},L.createElement(O,{className:ne(`${w}-collapse-icon`,`${w}-collapse-start`)})),d&&L.createElement("div",{className:ne(`${w}-collapse-bar`,`${w}-collapse-bar-end`),onClick:()=>h(r,"end")},L.createElement(N,{className:ne(`${w}-collapse-icon`,`${w}-collapse-end`)})))},rGe=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},ey={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},iGe=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:i,splitTriggerSize:a,controlItemBgHover:o,controlItemBgActive:s,controlItemBgActiveHover:l,prefixCls:c}=e,d=`${t}-bar`,f=`${t}-mask`,m=`${t}-panel`,p=e.calc(a).div(2).equal(),h=`${c}-bar-preview-offset`,v={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:Object.assign(Object.assign(Object.assign({},mn(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${d}`]:{flex:"none",position:"relative",userSelect:"none",[`${d}-dragger`]:Object.assign(Object.assign({},ey),{zIndex:1,"&::before":Object.assign({content:'""',background:o},ey),"&::after":Object.assign({content:'""',background:n},ey),[`&:hover:not(${d}-dragger-active)`]:{"&::before":{background:s}},"&-active":{zIndex:2,"&::before":{background:l}},[`&-disabled${d}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:o}},"&::after":{display:"none"}}}),[`${d}-collapse-bar`]:Object.assign(Object.assign({},ey),{zIndex:e.zIndexPopupBase,background:o,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:s},"&:active":{background:l}}),"&:hover, &:active":{[`${d}-collapse-bar`]:{opacity:1}}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${d}`]:{width:0,[`${d}-preview`]:Object.assign(Object.assign({height:"100%",width:i},v),{[`&${d}-preview-active`]:{display:"block",transform:`translateX(var(--${h}))`}}),[`${d}-dragger`]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:i},"&::after":{height:r,width:i}},[`${d}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:p},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:p},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${d}`]:{height:0,[`${d}-preview`]:Object.assign(Object.assign({height:i,width:"100%"},v),{[`&${d}-preview-active`]:{display:"block",transform:`translateY(var(--${h}))`}}),[`${d}-dragger`]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:i},"&::after":{width:r,height:i}},[`${d}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:p,transform:"translateX(-50%)"},"&-end":{top:p,bottom:"auto",transform:"translateX(-50%)"}}}},[m]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),rGe(e))}},aGe=e=>{var t;const n=e.splitBarSize||2,r=e.splitTriggerSize||6,i=e.resizeSpinnerSize||20,a=(t=e.splitBarDraggableSize)!==null&&t!==void 0?t:i;return{splitBarSize:n,splitTriggerSize:r,splitBarDraggableSize:a,resizeSpinnerSize:i}},oGe=un("Splitter",e=>[iGe(e)],aGe),sGe=e=>{const{prefixCls:t,className:n,style:r,layout:i="horizontal",children:a,rootClassName:o,onResizeStart:s,onResize:l,onResizeEnd:c,lazy:d}=e,{getPrefixCls:f,direction:m,splitter:p}=L.useContext(Ct),h=f("splitter",t),v=Dn(h),[g,w,y]=oGe(h,v),b=i==="vertical",x=m==="rtl",C=!b&&x,S=Zqe(a),[_,k]=u.useState(),$=G=>{const{offsetWidth:Q,offsetHeight:J}=G,Z=b?J:Q;Z!==0&&k(Z)},[E,P,M,j,O,N]=eGe(S,_),R=Jqe(S,P),[D,F,z,I,H]=tGe(S,R,M,_,N),V=Ht(G=>{D(G),s==null||s(P)}),B=Ht((G,Q)=>{const J=F(G,Q);l==null||l(J)}),W=Ht(()=>{z(),c==null||c(P)}),U=Ht((G,Q)=>{const J=I(G,Q);l==null||l(J),c==null||c(J)}),X=ne(h,n,`${h}-${i}`,{[`${h}-rtl`]:x},o,p==null?void 0:p.className,y,v,w),q=`${h}-mask`,Y=L.useMemo(()=>{const G=[];let Q=0;for(let J=0;J{const J=L.createElement(Kqe,Object.assign({},G,{prefixCls:h,size:E[Q]}));let Z=null;const ee=R[Q];if(ee){const te=(Y[Q-1]||0)+j[Q],le=(Y[Q+1]||100)-O[Q+1],oe=(Y[Q-1]||0)+O[Q],de=(Y[Q+1]||100)-j[Q+1];Z=L.createElement(nGe,{lazy:d,index:Q,active:H===Q,prefixCls:h,vertical:b,resizable:ee.resizable,ariaNow:Y[Q]*100,ariaMin:Math.max(te,le)*100,ariaMax:Math.min(oe,de)*100,startCollapsible:ee.startCollapsible,endCollapsible:ee.endCollapsible,onOffsetStart:V,onOffsetUpdate:(pe,ye,me)=>{let xe=b?me:ye;C&&(xe=-xe),B(pe,xe)},onOffsetEnd:W,onCollapse:U,containerSize:_||0})}return L.createElement(L.Fragment,{key:`split-panel-${Q}`},J,Z)}),typeof H=="number"&&L.createElement("div",{"aria-hidden":!0,className:ne(q,`${q}-${i}`)}))))},hw=sGe;hw.Panel=Yqe;const lGe=({uid:e,content:t,status:n,thread:r,visitor:i})=>{const[a,o]=u.useState(""),[s,l]=u.useState(""),[c,d]=u.useState(!1),[f,m]=u.useState([]),p=u.useRef(null);u.useEffect(()=>{if(n===Qme){d(!0);let b=null;try{b=JSON.parse(t)}catch{}b&&(o(b.contact),l(b.content))}},[t,n]);const h=b=>{console.log("handleContactChange:",b),o(b)},v=b=>{console.log("handleContentChange:",b),l(b)},g=()=>{var b;(b=p.current)==null||b.click()},w=async b=>{const x=b.target.files;if(x!=null&&x.length)try{const C=x[0];qv(C,S=>{console.log("handleImageChange result:",S),m(_=>[..._,S.data.fileUrl])})}catch(C){console.error("Upload failed:",C)}},y=async()=>{yCe({uid:e,contact:a,content:s,images:f,thread:r,visitor:i})};return T.jsx(T.Fragment,{children:T.jsxs(rs,{children:[T.jsx(uI,{children:T.jsx(Kp,{content:t})}),T.jsxs(nY,{children:[T.jsx(Bg,{placeholder:"请输入联系方式...",rows:1,onChange:h,style:{marginTop:"8px"},disabled:c}),T.jsx(Bg,{placeholder:"请输入留言...",rows:3,onChange:v,style:{marginTop:"8px"},disabled:c}),f.length>0&&T.jsx("div",{style:{marginTop:"8px",display:"flex",gap:"8px"},children:f.map((b,x)=>T.jsx("img",{src:b,alt:`uploaded-${x}`,style:{width:"60px",height:"60px",objectFit:"cover"}},x))})]}),T.jsxs(rY,{children:[T.jsx("input",{type:"file",ref:p,style:{display:"none"},accept:"image/*",onChange:w,disabled:c}),T.jsxs(Ws,{children:[T.jsx(_n,{icon:T.jsx(jEe,{}),onClick:g,disabled:c,children:"上传图片"}),T.jsx(_n,{color:"primary",onClick:y,disabled:c,children:c?"留言成功!":"提交留言"})]})]})]})})};function nre(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tu.useContext(rre),uGe=e=>L.createElement(rre.Provider,{...e});function dGe(){let e=new Map;return{on(t,n){return e.has(t)?e.get(t).add(n):e.set(t,new Set([n])),this},off(t,n){return e.has(t)&&e.get(t).delete(n),this},emit(t,n){return e.has(t)&&e.get(t).forEach(r=>{r(n)}),this}}}var iS=dGe(),fGe=()=>u.useRef(new Map).current,mGe=()=>{},v7=["resize","contextmenu","click","scroll","blur"],dO={show({event:e,id:t,props:n,position:r}){e.preventDefault&&e.preventDefault(),iS.emit(0).emit(t,{event:e.nativeEvent||e,props:n,position:r})},hideAll(){iS.emit(0)}};function pGe(e){return{show(t){dO.show({...e,...t})},hideAll(){dO.hideAll()}}}function hGe(){let e=new Map,t,n,r,i,a=!1;function o(g){i=Array.from(g.values()),t=-1,r=!0}function s(){i[t].node.focus()}let l=()=>t>=0&&i[t].isSubmenu,c=()=>Array.from(i[t].submenuRefTracker.values());function d(){return t===-1?(f(),!1):!0}function f(){t+10?(t=0,i=g):a=!0,r=!1,s(),!0}return!1}function h(){if(d()&&!r){let g=e.get(n);n.classList.remove("contexify_submenu-isOpen"),i=g.items,n=g.parentNode,g.isRoot&&(r=!0,e.clear()),a||(t=g.focusedIndex,s())}}function v(g){function w(y){for(let b of y)b.isSubmenu&&b.submenuRefTracker&&w(Array.from(b.submenuRefTracker.values())),b.keyMatcher&&b.keyMatcher(g)}w(i)}return{init:o,moveDown:f,moveUp:m,openSubmenu:p,closeSubmenu:h,matchKeys:v}}function o0(e){return typeof e=="function"}function g7(e){return typeof e=="string"}function vGe(e,t){return u.Children.map(u.Children.toArray(e).filter(Boolean),n=>u.cloneElement(n,t))}function gGe(e){let t={x:e.clientX,y:e.clientY},n=e.changedTouches;return n&&(t.x=n[0].clientX,t.y=n[0].clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function b7(e,t){return o0(e)?e(t):e}function bGe(e,t){return{...e,...o0(t)?t(e):t}}var yGe=({id:e,theme:t,style:n,className:r,children:i,animation:a="fade",preventDefaultOnKeydown:o=!0,disableBoundariesCheck:s=!1,onVisibilityChange:l,...c})=>{let[d,f]=u.useReducer(bGe,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),m=u.useRef(null),p=fGe(),[h]=u.useState(()=>hGe()),v=u.useRef(),g=u.useRef();u.useEffect(()=>(iS.on(e,y).on(0,b),()=>{iS.off(e,y).off(0,b)}),[e,a,s]),u.useEffect(()=>{d.visible?h.init(p):p.clear()},[d.visible,h,p]);function w(j,O){if(m.current&&!s){let{innerWidth:N,innerHeight:R}=window,{offsetWidth:D,offsetHeight:F}=m.current;j+D>N&&(j-=j+D-N),O+F>R&&(O-=O+F-R)}return{x:j,y:O}}u.useEffect(()=>{d.visible&&f(w(d.x,d.y))},[d.visible]),u.useEffect(()=>{function j(N){o&&N.preventDefault()}function O(N){switch(N.key){case"Enter":case" ":h.openSubmenu()||b();break;case"Escape":b();break;case"ArrowUp":j(N),h.moveUp();break;case"ArrowDown":j(N),h.moveDown();break;case"ArrowRight":j(N),h.openSubmenu();break;case"ArrowLeft":j(N),h.closeSubmenu();break;default:h.matchKeys(N);break}}if(d.visible){window.addEventListener("keydown",O);for(let N of v7)window.addEventListener(N,b)}return()=>{window.removeEventListener("keydown",O);for(let N of v7)window.removeEventListener(N,b)}},[d.visible,h,o]);function y({event:j,props:O,position:N}){j.stopPropagation();let R=N||gGe(j),{x:D,y:F}=w(R.x,R.y);yi.flushSync(()=>{f({visible:!0,willLeave:!1,x:D,y:F,triggerEvent:j,propsFromTrigger:O})}),clearTimeout(g.current),!v.current&&o0(l)&&(l(!0),v.current=!0)}function b(j){j!=null&&(j.button===2||j.ctrlKey)&&j.type!=="contextmenu"||(a&&(g7(a)||"exit"in a&&a.exit)?f(O=>({willLeave:O.visible})):f(O=>({visible:O.visible?!1:O.visible})),g.current=setTimeout(()=>{o0(l)&&l(!1),v.current=!1}))}function x(){d.willLeave&&d.visible&&yi.flushSync(()=>f({visible:!1,willLeave:!1}))}function C(){return g7(a)?vw({[`contexify_willEnter-${a}`]:S&&!P,[`contexify_willLeave-${a} contexify_willLeave-'disabled'`]:S&&P}):a&&"enter"in a&&"exit"in a?vw({[`contexify_willEnter-${a.enter}`]:a.enter&&S&&!P,[`contexify_willLeave-${a.exit} contexify_willLeave-'disabled'`]:a.exit&&S&&P}):null}let{visible:S,triggerEvent:_,propsFromTrigger:k,x:$,y:E,willLeave:P}=d,M=vw("contexify",r,{[`contexify_theme-${t}`]:t},C());return L.createElement(uGe,{value:p},S&&L.createElement("div",{...c,className:M,onAnimationEnd:x,style:{...n,left:$,top:E,opacity:1},ref:m,role:"menu"},vGe(i,{propsFromTrigger:k,triggerEvent:_})))},wGe=({id:e,children:t,className:n,style:r,triggerEvent:i,data:a,propsFromTrigger:o,keyMatcher:s,onClick:l=mGe,disabled:c=!1,hidden:d=!1,closeOnClick:f=!0,handlerEvent:m="onClick",...p})=>{let h=u.useRef(),v=cGe(),g={id:e,data:a,triggerEvent:i,props:o},w=b7(c,g),y=b7(d,g);function b(_){g.event=_,_.stopPropagation(),w||(f?x():l(g))}function x(){let _=h.current;_.focus(),_.addEventListener("animationend",()=>setTimeout(dO.hideAll),{once:!0}),_.classList.add("contexify_item-feedback"),l(g)}function C(_){_&&!w&&(h.current=_,v.set(_,{node:_,isSubmenu:!1,keyMatcher:!w&&o0(s)&&(k=>{s(k)&&(k.stopPropagation(),k.preventDefault(),g.event=k,x())})}))}function S(_){(_.key==="Enter"||_.key===" ")&&(_.stopPropagation(),g.event=_,x())}return y?null:L.createElement("div",{...p,[m]:b,className:vw("contexify_item",n,{"contexify_item-disabled":w}),style:r,onKeyDown:S,ref:C,tabIndex:-1,role:"menuitem","aria-disabled":w},L.createElement("div",{className:"contexify_itemContent"},t))};const xGe=({content:e,onFaqClick:t})=>{const{translateString:n}=Q0(),[r,i]=u.useState([]);u.useEffect(()=>{let o=null;try{o=JSON.parse(e)}catch{}o&&i(o)},[e]);const a=(o,s)=>{console.log("item",o),t(o,s)};return T.jsx("div",{children:T.jsx(rs,{fluid:!0,children:T.jsxs(fo,{children:[T.jsx("div",{className:"guess-you-aside",children:T.jsx("h1",{children:n("i18n.guess.faq")})}),T.jsx(Lg,{children:T.jsx(oY,{children:r.map((o,s)=>T.jsx(sY,{content:o.question,as:"a",rightIcon:"chevron-right",onClick:()=>a(o,s)},s))})})]})})})},SGe=({content:e,onFaqClick:t})=>{const{translateString:n}=Q0(),[r,i]=u.useState([]);u.useEffect(()=>{let s=null;try{s=JSON.parse(e)}catch{}s&&i(s)},[e]);const a=()=>{console.log("TODO: change faq hot"),no.success("TODO:"+n("i18n.change.faq"))},o=(s,l)=>{console.log("item",s),t(s,l)};return T.jsx("div",{children:T.jsx(rs,{fluid:!0,children:T.jsxs(fo,{children:[T.jsxs("div",{className:"guess-you-aside",children:[T.jsx("h1",{children:n("i18n.hot.faq")}),sa&&T.jsx("span",{onClick:a,children:n("i18n.change.faq")})]}),T.jsx(Lg,{children:T.jsx(oY,{children:r.map((s,l)=>T.jsx(sY,{content:s.question,as:"a",rightIcon:"chevron-right",onClick:()=>o(s,l)},l))})})]})})})},CGe=({content:e,onFaqClick:t})=>{const[n,r]=u.useState([]);u.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&r(a)},[e]);const i=(a,o)=>{console.log("item",a),t(a,o)};return T.jsx("div",{children:T.jsx(mY,{className:"skill-cards",data:n,fullWidth:!0,renderItem:(a,o)=>T.jsxs(rs,{onClick:()=>i(a,o),children:[T.jsx(uI,{children:a.question}),T.jsx(X0,{children:a.answer})]},a.uid)})})},_Ge=()=>{const[e,t]=u.useState(!0),[n,r]=u.useState(!1),[i,a]=u.useState(0);return T.jsx(uY,{className:"OrderSelector",active:e,onClose:()=>{t(!1)},title:"请选择您要咨询的订单",actions:[{label:"没有对应订单"}],children:T.jsxs("div",{children:[T.jsxs(TSe,{index:i,onChange:a,children:[T.jsx(Sb,{label:"已购买",children:T.jsxs("div",{children:[T.jsx(kSe,{placeholder:"输入宝贝关键词等",onSearch:o=>{console.log(o)},onClear:()=>{console.log("cancel")}}),T.jsxs(rs,{className:"OrderGroup",children:[T.jsxs("div",{className:"OrderGroup-header",children:[T.jsx("h3",{children:"耐克官方旗舰店最多字数…"}),T.jsx("span",{className:"OrderGroup-status",children:"交易状态"})]}),T.jsx("div",{className:"OrderGroup-list",children:T.jsx(pY,{type:"order",img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"Air Joden2019限定倒勾棕色高帮篮球鞋最多字…",desc:"颜色分类:棕色;42码",currency:"¥",price:30000.04,count:1,onClick:()=>{r(!0)}})}),T.jsxs("div",{className:"OrderGroup-actions",children:[T.jsx(bo,{size:"sm",children:"订单详情"}),T.jsx(bo,{color:"primary",size:"sm",children:"发送"})]})]})]})}),T.jsx(Sb,{label:"购物车",children:T.jsx("p",{children:"内容2"})}),T.jsx(Sb,{label:"收藏夹",children:T.jsx("p",{children:"内容3"})}),T.jsx(Sb,{label:"足迹",children:T.jsx("p",{children:"内容3"})})]}),T.jsx(mSe,{active:n,title:"确认要发送吗?",onClose:()=>{r(!1)},actions:[{label:"确认",color:"primary"},{label:"取消"}],children:T.jsx("div",{children:"Content 1"})})]})})};function kGe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $Ge=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,EGe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PGe={};function y7(e,t){return(PGe.jsx?EGe:$Ge).test(e)}const TGe=/[ \t\n\f\r]/g;function OGe(e){return typeof e=="object"?e.type==="text"?w7(e.value):!1:w7(e)}function w7(e){return e.replace(TGe,"")===""}class C1{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}C1.prototype.property={};C1.prototype.normal={};C1.prototype.space=null;function ire(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&DGe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(S7,LGe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!S7.test(a)){let o=a.replace(jGe,AGe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=dN}return new i(r,t)}function AGe(e){return"-"+e.toLowerCase()}function LGe(e){return e.charAt(1).toUpperCase()}const BGe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},zGe=ire([sre,ore,ure,dre,MGe],"html"),fN=ire([sre,ore,ure,dre,NGe],"svg");function HGe(e){return e.join(" ").trim()}var fre={},C7=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,VGe=/\n/g,WGe=/^\s*/,UGe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qGe=/^:\s*/,GGe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,KGe=/^[;\s]*/,YGe=/^\s+|\s+$/g,XGe=` -`,_7="/",k7="*",dd="",QGe="comment",ZGe="declaration",JGe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var v=h.match(VGe);v&&(n+=v.length);var g=h.lastIndexOf(XGe);r=~g?h.length-g:r+h.length}function a(){var h={line:n,column:r};return function(v){return v.position=new o(h),c(),v}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(h){var v=new Error(t.source+":"+n+":"+r+": "+h);if(v.reason=h,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(h){var v=h.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function c(){l(WGe)}function d(h){var v;for(h=h||[];v=f();)v!==!1&&h.push(v);return h}function f(){var h=a();if(!(_7!=e.charAt(0)||k7!=e.charAt(1))){for(var v=2;dd!=e.charAt(v)&&(k7!=e.charAt(v)||_7!=e.charAt(v+1));)++v;if(v+=2,dd===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return r+=2,i(g),e=e.slice(v),r+=2,h({type:QGe,comment:g})}}function m(){var h=a(),v=l(UGe);if(v){if(f(),!l(qGe))return s("property missing ':'");var g=l(GGe),w=h({type:ZGe,property:$7(v[0].replace(C7,dd)),value:g?$7(g[0].replace(C7,dd)):dd});return l(KGe),w}}function p(){var h=[];d(h);for(var v;v=m();)v!==!1&&(h.push(v),d(h));return h}return c(),p()};function $7(e){return e?e.replace(YGe,dd):dd}var eKe=pi&&pi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fre,"__esModule",{value:!0});var E7=fre.default=nKe,tKe=eKe(JGe);function nKe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,tKe.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}const rKe=E7.default||E7,mre=pre("end"),mN=pre("start");function pre(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function iKe(e){const t=mN(e),n=mre(e);if(t&&n)return{start:t,end:n}}function ag(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?P7(e.position):"start"in e||"end"in e?P7(e):"line"in e||"column"in e?pO(e):""}function pO(e){return T7(e&&e.line)+":"+T7(e&&e.column)}function P7(e){return pO(e&&e.start)+"-"+pO(e&&e.end)}function T7(e){return e&&typeof e=="number"?e:1}class ra extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=ag(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}ra.prototype.file="";ra.prototype.name="";ra.prototype.reason="";ra.prototype.message="";ra.prototype.stack="";ra.prototype.column=void 0;ra.prototype.line=void 0;ra.prototype.ancestors=void 0;ra.prototype.cause=void 0;ra.prototype.fatal=void 0;ra.prototype.place=void 0;ra.prototype.ruleId=void 0;ra.prototype.source=void 0;const pN={}.hasOwnProperty,aKe=new Map,oKe=/[A-Z]/g,sKe=/-([a-z])/g,lKe=new Set(["table","tbody","thead","tfoot","tr"]),cKe=new Set(["td","th"]),hre="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uKe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=bKe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=gKe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fN:zGe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=vre(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function vre(e,t,n){if(t.type==="element")return dKe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return fKe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return pKe(e,t,n);if(t.type==="mdxjsEsm")return mKe(e,t);if(t.type==="root")return hKe(e,t,n);if(t.type==="text")return vKe(e,t)}function dKe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=fN,e.schema=i),e.ancestors.push(t);const a=bre(e,t.tagName,!1),o=yKe(e,t);let s=vN(e,t);return lKe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!OGe(l):!0})),gre(e,o,a,t),hN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function fKe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}s0(e,t.position)}function mKe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);s0(e,t.position)}function pKe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=fN,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:bre(e,t.name,!0),o=wKe(e,t),s=vN(e,t);return gre(e,o,a,t),hN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function hKe(e,t,n){const r={};return hN(r,vN(e,t)),e.create(t,e.Fragment,r,n)}function vKe(e,t){return t.value}function gre(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function hN(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function gKe(e,t,n){return r;function r(i,a,o,s){const c=Array.isArray(o.children)?n:t;return s?c(a,o,s):c(a,o)}}function bKe(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=mN(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function yKe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&pN.call(t.properties,i)){const a=xKe(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&cKe.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function wKe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else s0(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else s0(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function vN(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:aKe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Ol(e,e.length,0,t),e):t}const I7={}.hasOwnProperty;function OKe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Um(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gl=Vu(/[A-Za-z]/),so=Vu(/[\dA-Za-z]/),MKe=Vu(/[#-'*+\--9=?A-Z^-~]/);function hO(e){return e!==null&&(e<32||e===127)}const vO=Vu(/\d/),NKe=Vu(/[\dA-Fa-f]/),DKe=Vu(/[!-/:-@[-`{-~]/);function fn(e){return e!==null&&e<-2}function ja(e){return e!==null&&(e<0||e===32)}function Yn(e){return e===-2||e===-1||e===32}const jKe=Vu(new RegExp("\\p{P}|\\p{S}","u")),FKe=Vu(/\s/);function Vu(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function mh(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function br(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return Yn(l)?(e.enter(n),s(l)):t(l)}function s(l){return Yn(l)&&a++o))return;const _=t.events.length;let k=_,$,E;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if($){E=t.events[k][1].end;break}$=!0}for(w(r),S=_;Sb;){const C=n[x];t.containerState=C[1],C[0].exit.call(t,e)}n.length=b}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function HKe(e,t,n){return br(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function N7(e){if(e===null||ja(e)||FKe(e))return 1;if(jKe(e))return 2}function bN(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[n][1].start};D7(f,-l),D7(m,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Lo(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Lo(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Lo(c,bN(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Lo(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=Lo(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ol(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n0&&Yn(S)?br(e,y,"linePrefix",a+1)(S):y(S)}function y(S){return S===null||fn(S)?e.check(j7,v,x)(S):(e.enter("codeFlowValue"),b(S))}function b(S){return S===null||fn(S)?(e.exit("codeFlowValue"),y(S)):(e.consume(S),b)}function x(S){return e.exit("codeFenced"),t(S)}function C(S,_,k){let $=0;return E;function E(N){return S.enter("lineEnding"),S.consume(N),S.exit("lineEnding"),P}function P(N){return S.enter("codeFencedFence"),Yn(N)?br(S,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):M(N)}function M(N){return N===s?(S.enter("codeFencedFenceSequence"),j(N)):k(N)}function j(N){return N===s?($++,S.consume(N),j):$>=o?(S.exit("codeFencedFenceSequence"),Yn(N)?br(S,O,"whitespace")(N):O(N)):k(N)}function O(N){return N===null||fn(N)?(S.exit("codeFencedFence"),_(N)):k(N)}}}function eYe(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const JE={name:"codeIndented",tokenize:nYe},tYe={partial:!0,tokenize:rYe};function nYe(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),br(e,a,"linePrefix",5)(c)}function a(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):fn(c)?e.attempt(tYe,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||fn(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function rYe(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):fn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):br(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):fn(o)?i(o):n(o)}}const iYe={name:"codeText",previous:oYe,resolve:aYe,tokenize:sYe};function aYe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ov(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ov(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ov(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function kre(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),m):w===null||w===32||w===41||hO(w)?n(w):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(w))}function m(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(e.exit("chunkString"),e.exit(s),m(w)):w===null||w===60||fn(w)?n(w):(e.consume(w),w===92?h:p)}function h(w){return w===60||w===62||w===92?(e.consume(w),p):p(w)}function v(w){return!d&&(w===null||w===41||ja(w))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(w)):d999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):fn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||fn(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!Yn(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function Ere(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,l):n(m)}function l(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),l(o)):m===null?n(m):fn(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),br(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===o||m===null||fn(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:d)}function f(m){return m===o||m===92?(e.consume(m),d):d(m)}}function og(e,t){let n;return r;function r(i){return fn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Yn(i)?br(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const hYe={name:"definition",tokenize:gYe},vYe={partial:!0,tokenize:bYe};function gYe(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return $re.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=Um(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return ja(p)?og(e,c)(p):c(p)}function c(p){return kre(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(vYe,f,f)(p)}function f(p){return Yn(p)?br(e,m,"whitespace")(p):m(p)}function m(p){return p===null||fn(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function bYe(e,t,n){return r;function r(s){return ja(s)?og(e,i)(s):n(s)}function i(s){return Ere(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Yn(s)?br(e,o,"whitespace")(s):o(s)}function o(s){return s===null||fn(s)?t(s):n(s)}}const yYe={name:"hardBreakEscape",tokenize:wYe};function wYe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return fn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const xYe={name:"headingAtx",resolve:SYe,tokenize:CYe};function SYe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ol(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function CYe(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||ja(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||fn(d)?(e.exit("atxHeading"),t(d)):Yn(d)?br(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||ja(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const _Ye=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],A7=["pre","script","style","textarea"],kYe={concrete:!0,name:"htmlFlow",resolveTo:PYe,tokenize:TYe},$Ye={partial:!0,tokenize:RYe},EYe={partial:!0,tokenize:OYe};function PYe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function TYe(e,t,n){const r=this;let i,a,o,s,l;return c;function c(B){return d(B)}function d(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),m):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,r.interrupt?t:I):gl(B)?(e.consume(B),o=String.fromCharCode(B),g):n(B)}function m(B){return B===45?(e.consume(B),i=2,p):B===91?(e.consume(B),i=5,s=0,h):gl(B)?(e.consume(B),i=4,r.interrupt?t:I):n(B)}function p(B){return B===45?(e.consume(B),r.interrupt?t:I):n(B)}function h(B){const W="CDATA[";return B===W.charCodeAt(s++)?(e.consume(B),s===W.length?r.interrupt?t:M:h):n(B)}function v(B){return gl(B)?(e.consume(B),o=String.fromCharCode(B),g):n(B)}function g(B){if(B===null||B===47||B===62||ja(B)){const W=B===47,U=o.toLowerCase();return!W&&!a&&A7.includes(U)?(i=1,r.interrupt?t(B):M(B)):_Ye.includes(o.toLowerCase())?(i=6,W?(e.consume(B),w):r.interrupt?t(B):M(B)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):a?y(B):b(B))}return B===45||so(B)?(e.consume(B),o+=String.fromCharCode(B),g):n(B)}function w(B){return B===62?(e.consume(B),r.interrupt?t:M):n(B)}function y(B){return Yn(B)?(e.consume(B),y):E(B)}function b(B){return B===47?(e.consume(B),E):B===58||B===95||gl(B)?(e.consume(B),x):Yn(B)?(e.consume(B),b):E(B)}function x(B){return B===45||B===46||B===58||B===95||so(B)?(e.consume(B),x):C(B)}function C(B){return B===61?(e.consume(B),S):Yn(B)?(e.consume(B),C):b(B)}function S(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),l=B,_):Yn(B)?(e.consume(B),S):k(B)}function _(B){return B===l?(e.consume(B),l=null,$):B===null||fn(B)?n(B):(e.consume(B),_)}function k(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||ja(B)?C(B):(e.consume(B),k)}function $(B){return B===47||B===62||Yn(B)?b(B):n(B)}function E(B){return B===62?(e.consume(B),P):n(B)}function P(B){return B===null||fn(B)?M(B):Yn(B)?(e.consume(B),P):n(B)}function M(B){return B===45&&i===2?(e.consume(B),R):B===60&&i===1?(e.consume(B),D):B===62&&i===4?(e.consume(B),H):B===63&&i===3?(e.consume(B),I):B===93&&i===5?(e.consume(B),z):fn(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check($Ye,V,j)(B)):B===null||fn(B)?(e.exit("htmlFlowData"),j(B)):(e.consume(B),M)}function j(B){return e.check(EYe,O,V)(B)}function O(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),N}function N(B){return B===null||fn(B)?j(B):(e.enter("htmlFlowData"),M(B))}function R(B){return B===45?(e.consume(B),I):M(B)}function D(B){return B===47?(e.consume(B),o="",F):M(B)}function F(B){if(B===62){const W=o.toLowerCase();return A7.includes(W)?(e.consume(B),H):M(B)}return gl(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),F):M(B)}function z(B){return B===93?(e.consume(B),I):M(B)}function I(B){return B===62?(e.consume(B),H):B===45&&i===2?(e.consume(B),I):M(B)}function H(B){return B===null||fn(B)?(e.exit("htmlFlowData"),V(B)):(e.consume(B),H)}function V(B){return e.exit("htmlFlow"),t(B)}}function OYe(e,t,n){const r=this;return i;function i(o){return fn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function RYe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(A_,t,n)}}const IYe={name:"htmlText",tokenize:MYe};function MYe(e,t,n){const r=this;let i,a,o;return s;function s(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),l}function l(I){return I===33?(e.consume(I),c):I===47?(e.consume(I),C):I===63?(e.consume(I),b):gl(I)?(e.consume(I),k):n(I)}function c(I){return I===45?(e.consume(I),d):I===91?(e.consume(I),a=0,h):gl(I)?(e.consume(I),y):n(I)}function d(I){return I===45?(e.consume(I),p):n(I)}function f(I){return I===null?n(I):I===45?(e.consume(I),m):fn(I)?(o=f,D(I)):(e.consume(I),f)}function m(I){return I===45?(e.consume(I),p):f(I)}function p(I){return I===62?R(I):I===45?m(I):f(I)}function h(I){const H="CDATA[";return I===H.charCodeAt(a++)?(e.consume(I),a===H.length?v:h):n(I)}function v(I){return I===null?n(I):I===93?(e.consume(I),g):fn(I)?(o=v,D(I)):(e.consume(I),v)}function g(I){return I===93?(e.consume(I),w):v(I)}function w(I){return I===62?R(I):I===93?(e.consume(I),w):v(I)}function y(I){return I===null||I===62?R(I):fn(I)?(o=y,D(I)):(e.consume(I),y)}function b(I){return I===null?n(I):I===63?(e.consume(I),x):fn(I)?(o=b,D(I)):(e.consume(I),b)}function x(I){return I===62?R(I):b(I)}function C(I){return gl(I)?(e.consume(I),S):n(I)}function S(I){return I===45||so(I)?(e.consume(I),S):_(I)}function _(I){return fn(I)?(o=_,D(I)):Yn(I)?(e.consume(I),_):R(I)}function k(I){return I===45||so(I)?(e.consume(I),k):I===47||I===62||ja(I)?$(I):n(I)}function $(I){return I===47?(e.consume(I),R):I===58||I===95||gl(I)?(e.consume(I),E):fn(I)?(o=$,D(I)):Yn(I)?(e.consume(I),$):R(I)}function E(I){return I===45||I===46||I===58||I===95||so(I)?(e.consume(I),E):P(I)}function P(I){return I===61?(e.consume(I),M):fn(I)?(o=P,D(I)):Yn(I)?(e.consume(I),P):$(I)}function M(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),i=I,j):fn(I)?(o=M,D(I)):Yn(I)?(e.consume(I),M):(e.consume(I),O)}function j(I){return I===i?(e.consume(I),i=void 0,N):I===null?n(I):fn(I)?(o=j,D(I)):(e.consume(I),j)}function O(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||ja(I)?$(I):(e.consume(I),O)}function N(I){return I===47||I===62||ja(I)?$(I):n(I)}function R(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function D(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),F}function F(I){return Yn(I)?br(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):z(I)}function z(I){return e.enter("htmlTextData"),o(I)}}const yN={name:"labelEnd",resolveAll:FYe,resolveTo:AYe,tokenize:LYe},NYe={tokenize:BYe},DYe={tokenize:zYe},jYe={tokenize:HYe};function FYe(e){let t=-1;const n=[];for(;++t=3&&(c===null||fn(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Yn(c)?br(e,s,"whitespace")(c):s(c))}}const Ca={continuation:{tokenize:ZYe},exit:eXe,name:"list",tokenize:QYe},YYe={partial:!0,tokenize:tXe},XYe={partial:!0,tokenize:JYe};function QYe(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:vO(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(gw,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return vO(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(A_,r.interrupt?n:d,e.attempt(YYe,m,f))}function d(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function f(p){return Yn(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function ZYe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(A_,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,br(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Yn(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(XYe,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,br(e,e.attempt(Ca,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function JYe(e,t,n){const r=this;return br(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function eXe(e){e.exit(this.containerState.type)}function tXe(e,t,n){const r=this;return br(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!Yn(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const L7={name:"setextUnderline",resolveTo:nXe,tokenize:rXe};function nXe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function rXe(e,t,n){const r=this;let i;return a;function a(c){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Yn(c)?br(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||fn(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const iXe={tokenize:aXe};function aXe(e){const t=this,n=e.attempt(A_,r,e.attempt(this.parser.constructs.flowInitial,i,br(e,e.attempt(this.parser.constructs.flow,i,e.attempt(uYe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const oXe={resolveAll:Tre()},sXe=Pre("string"),lXe=Pre("text");function Pre(e){return{resolveAll:Tre(e==="text"?cXe:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(d){return c(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const f=i[d];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function SXe(e,t){let n=-1;const r=[];let i;for(;++n0){const Ee=ve.tokenStack[ve.tokenStack.length-1];(Ee[1]||z7).call(ve,void 0,Ee[0])}for(he.position={start:Lc(se.length>0?se[0][1].start:{line:1,column:1,offset:0}),end:Lc(se.length>0?se[se.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function LXe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function BXe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ire(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function zXe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ire(e,t);const i={src:mh(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function HXe(e,t){const n={src:mh(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function VXe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function WXe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ire(e,t);const i={href:mh(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function UXe(e,t){const n={href:mh(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qXe(e,t,n){const r=e.all(t),i=n?GXe(n):Mre(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function KXe(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=mN(t.children[1]),l=mre(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function JXe(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(W7(t.slice(i),i>0,!1)),a.join("")}function W7(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===H7||a===V7;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===H7||a===V7;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function nQe(e,t){const n={type:"text",value:tQe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function rQe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const iQe={blockquote:MXe,break:NXe,code:DXe,delete:jXe,emphasis:FXe,footnoteReference:AXe,heading:LXe,html:BXe,imageReference:zXe,image:HXe,inlineCode:VXe,linkReference:WXe,link:UXe,listItem:qXe,list:KXe,paragraph:YXe,root:XXe,strong:QXe,table:ZXe,tableCell:eQe,tableRow:JXe,text:nQe,thematicBreak:rQe,toml:ty,yaml:ty,definition:ty,footnoteDefinition:ty};function ty(){}const Nre=-1,L_=0,aS=1,oS=2,wN=3,xN=4,SN=5,CN=6,Dre=7,jre=8,U7=typeof self=="object"?self:globalThis,aQe=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case L_:case Nre:return n(o,i);case aS:{const s=n([],i);for(const l of o)s.push(r(l));return s}case oS:{const s=n({},i);for(const[l,c]of o)s[r(l)]=r(c);return s}case wN:return n(new Date(o),i);case xN:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case SN:{const s=n(new Map,i);for(const[l,c]of o)s.set(r(l),r(c));return s}case CN:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case Dre:{const{name:s,message:l}=o;return n(new U7[s](l),i)}case jre:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new U7[a](o),i)};return r},q7=e=>aQe(new Map,e)(0),Jf="",{toString:oQe}={},{keys:sQe}=Object,sv=e=>{const t=typeof e;if(t!=="object"||!e)return[L_,t];const n=oQe.call(e).slice(8,-1);switch(n){case"Array":return[aS,Jf];case"Object":return[oS,Jf];case"Date":return[wN,Jf];case"RegExp":return[xN,Jf];case"Map":return[SN,Jf];case"Set":return[CN,Jf]}return n.includes("Array")?[aS,n]:n.includes("Error")?[Dre,n]:[oS,n]},ny=([e,t])=>e===L_&&(t==="function"||t==="symbol"),lQe=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=sv(o);switch(s){case L_:{let d=o;switch(l){case"bigint":s=jre,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([Nre],o)}return i([s,d],o)}case aS:{if(l)return i([l,[...o]],o);const d=[],f=i([s,d],o);for(const m of o)d.push(a(m));return f}case oS:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],f=i([s,d],o);for(const m of sQe(o))(e||!ny(sv(o[m])))&&d.push([a(m),a(o[m])]);return f}case wN:return i([s,o.toISOString()],o);case xN:{const{source:d,flags:f}=o;return i([s,{source:d,flags:f}],o)}case SN:{const d=[],f=i([s,d],o);for(const[m,p]of o)(e||!(ny(sv(m))||ny(sv(p))))&&d.push([a(m),a(p)]);return f}case CN:{const d=[],f=i([s,d],o);for(const m of o)(e||!ny(sv(m)))&&d.push(a(m));return f}}const{message:c}=o;return i([s,{name:l,message:c}],o)};return a},G7=(e,{json:t,lossy:n}={})=>{const r=[];return lQe(!(t||n),!!t,new Map,r)(e),r},sS=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?q7(G7(e,t)):structuredClone(e):(e,t)=>q7(G7(e,t));function cQe(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function uQe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function dQe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||cQe,r=e.options.footnoteBackLabel||uQe,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&h.push({type:"text",value:" "});let y=typeof n=="string"?n:n(l,p);typeof y=="string"&&(y={type:"text",value:y}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const g=d[d.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const y=g.children[g.children.length-1];y&&y.type==="text"?y.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...h)}else d.push(...h);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(c,w),s.push(w)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...sS(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const Fre=function(e){if(e==null)return hQe;if(typeof e=="function")return B_(e);if(typeof e=="object")return Array.isArray(e)?fQe(e):mQe(e);if(typeof e=="string")return pQe(e);throw new Error("Expected function, string, or object as test")};function fQe(e){const t=[];let n=-1;for(;++n":""))+")"})}return m;function m(){let p=Are,h,v,g;if((!t||a(l,c,d[d.length-1]||void 0))&&(p=wQe(n(l,d)),p[0]===K7))return p;if("children"in l&&l.children){const w=l;if(w.children&&p[0]!==bQe)for(v=(r?w.children.length:-1)+o,g=d.concat(w);v>-1&&v0&&n.push({type:"text",value:` -`}),n}function Y7(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function X7(e,t){const n=SQe(e,t),r=n.one(e,void 0),i=dQe(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function EQe(e,t){return e&&"run"in e?async function(n,r){const i=X7(n,{file:r,...t});await e.run(i,r)}:function(n,r){return X7(n,{file:r,...e||t})}}function Q7(e){if(e)throw e}var bw=Object.prototype.hasOwnProperty,Bre=Object.prototype.toString,Z7=Object.defineProperty,J7=Object.getOwnPropertyDescriptor,eB=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Bre.call(t)==="[object Array]"},tB=function(t){if(!t||Bre.call(t)!=="[object Object]")return!1;var n=bw.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&bw.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||bw.call(t,i)},nB=function(t,n){Z7&&n.name==="__proto__"?Z7(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},rB=function(t,n){if(n==="__proto__")if(bw.call(t,n)){if(J7)return J7(t,n).value}else return;return t[n]},PQe=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const d=c;if(s&&n)throw d;return i(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const cl={basename:RQe,dirname:IQe,extname:MQe,join:NQe,sep:"/"};function RQe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_1(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function IQe(e){if(_1(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function MQe(e){_1(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function NQe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function jQe(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function _1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const FQe={cwd:AQe};function AQe(){return"/"}function wO(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function LQe(e){if(typeof e=="string")e=new URL(e);else if(!wO(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return BQe(e)}function BQe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...h]=d;const v=r[m][1];yO(v)&&yO(p)&&(p=t3(!0,v,p)),r[m]=[c,p,...h]}}}}const WQe=new _N().freeze();function a3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function o3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function s3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function aB(e){if(!yO(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function oB(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ry(e){return UQe(e)?e:new zre(e)}function UQe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qQe(e){return typeof e=="string"||GQe(e)}function GQe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const KQe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",sB=[],lB={allowDangerousHtml:!0},YQe=/^(https?|ircs?|mailto|xmpp)$/i,XQe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function cB(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||sB,l=e.remarkPlugins||sB,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...lB}:lB,d=e.skipHtml,f=e.unwrapDisallowed,m=e.urlTransform||QQe,p=WQe().use(IXe).use(l).use(EQe,c).use(s),h=new zre;typeof r=="string"&&(h.value=r);for(const y of XQe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+KQe+y.id,void 0);const v=p.parse(h);let g=p.runSync(v,h);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),Lre(g,w),uKe(g,{Fragment:T.Fragment,components:a,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function w(y,b,x){if(y.type==="raw"&&x&&typeof b=="number")return d?x.children.splice(b,1):x.children[b]={type:"text",value:y.value},b;if(y.type==="element"){let C;for(C in ZE)if(Object.hasOwn(ZE,C)&&Object.hasOwn(y.properties,C)){const S=y.properties[C],_=ZE[C];(_===null||_.includes(y.tagName))&&(y.properties[C]=m(String(S||""),C,y))}}if(y.type==="element"){let C=t?!t.includes(y.tagName):o?o.includes(y.tagName):!1;if(!C&&n&&typeof b=="number"&&(C=!n(y,b,x)),C&&x&&typeof b=="number")return f&&y.children?x.children.splice(b,1,...y.children):x.children.splice(b,1),b}}}function QQe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||YQe.test(e.slice(0,t))?e:""}const ZQe=({uid:e,content:t,thread:n,visitor:r,onQuestionClick:i})=>{const[a,o]=u.useState(""),[s,l]=u.useState(""),[c,d]=u.useState(!1),[f,m]=u.useState([]);u.useEffect(()=>{o(t)},[t]);const p=async v=>{var g,w;if(console.log("handleRateClicked:",e,v,n,r),v==="up"){const y=await M2e(e);console.log("rateMessageHelpful response:",y.data),y&&y.data&&((g=y==null?void 0:y.data)!=null&&g.data)}else if(v==="down"){const y=await N2e(e);console.log("rateMessageUnhelpful response:",y.data),y&&y.data&&((w=y==null?void 0:y.data)!=null&&w.data)}},h=v=>{console.log("Question clicked:",v),i(v.question,v.answer)};return T.jsxs(T.Fragment,{children:[T.jsx(rs,{children:T.jsxs(X0,{style:{textAlign:"left"},children:[T.jsx(cB,{children:a}),s&&T.jsxs("div",{style:{marginTop:"12px"},children:[T.jsx("button",{onClick:()=>d(!c),style:{background:"#e8e8e8",border:"none",borderRadius:"4px",padding:"4px 8px",fontSize:"12px",color:"#666",cursor:"pointer",marginBottom:"8px"},children:c?"收起思考过程":"查看思考过程"}),c&&T.jsx("div",{style:{background:"#f9f9f9",padding:"12px",borderRadius:"8px",fontSize:"14px",color:"#666",whiteSpace:"pre-wrap"},children:T.jsx(cB,{children:s})})]}),f.length>0&&T.jsx("div",{className:"qa-buttons",style:{marginTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:f.map((v,g)=>T.jsx("button",{onClick:()=>h(v),style:{background:"#f5f5f5",border:"none",borderRadius:"18px",padding:"8px 16px",fontSize:"14px",color:"#333",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s"},children:v.question},g))})]})}),T.jsx(fI,{onClick:p})]})},JQe=({content:e,welcomeFaqs:t,orgUid:n,onFaqClick:r})=>{const[i,a]=u.useState(""),[o,s]=u.useState([]),[l,c]=u.useState([]),[d]=u.useState(5),[f,m]=u.useState(0),[p,h]=u.useState(!1),{translateString:v}=Q0();u.useEffect(()=>{e&&a(e),t&&(s(t),c(t.slice(0,d)))},[e,t,d]);const g=async()=>{var y,b,x,C,S,_;if(!p)try{h(!0),m(E=>E+1);const k={pageNumber:f,pageSize:d,orgUid:n},$=await T2e(k);console.log("changes FAQs:",k,$.data),$&&$.data&&((b=(y=$==null?void 0:$.data)==null?void 0:y.data)!=null&&b.content)&&((C=(x=$.data)==null?void 0:x.data)!=null&&C.last&&(m(0),Kr.info("没有更多数据了,从第一页开始")),c((_=(S=$.data)==null?void 0:S.data)==null?void 0:_.content))}catch(k){console.error("Failed to fetch new FAQs:",k)}finally{h(!1)}},w=y=>{r(y,0)};return T.jsxs(T.Fragment,{children:[T.jsx(rs,{children:T.jsxs(X0,{style:{textAlign:"left"},children:[T.jsx(Kp,{content:i}),o.length>0&&T.jsxs("div",{className:"qa-section",style:{marginTop:"12px"},children:[T.jsxs("div",{className:"qa-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[T.jsx("span",{style:{fontWeight:"500"},children:"常见问题"}),o.length>0&&T.jsxs("button",{onClick:g,disabled:p,style:{background:"transparent",border:"none",color:"#1890ff",cursor:p?"not-allowed":"pointer",fontSize:"14px",display:"flex",alignItems:"center",opacity:p?.7:1},children:["换一批",T.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",style:{marginLeft:"4px",animation:p?"spin 1s linear infinite":"none"},children:T.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4 7.58 4 12C4 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z",fill:"currentColor"})})]})]}),T.jsx("div",{className:"qa-buttons",style:{display:"flex",flexDirection:"column",gap:"8px"},children:l.map((y,b)=>T.jsx("button",{onClick:()=>w(y),style:{background:"#f5f5f5",border:"none",borderRadius:"18px",padding:"8px 16px",fontSize:"14px",color:"#333",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s"},children:v(y.question)},b))})]})]})}),T.jsx("style",{children:` - @keyframes spin { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(360deg); } - } - `})]})},eZe=({title:e,description:t,typing:n,typingTip:r,isPlayAudio:i,setIsPlayAudio:a,handleMinimize:o,handleMaximize:s,handleClose:l,navbarStyle:c,navbarTheme:d,agent:f})=>T.jsx(T.Fragment,{children:T.jsxs("div",{className:`chat-navbar ${d?`theme-${d}`:""}`,style:c,children:[T.jsxs("div",{className:"chat-navbar-left",children:[T.jsx("img",{src:(f==null?void 0:f.avatar)||"https://cdn.weiyuai.cn/avatars/agent.png",alt:"logo",className:"chat-navbar-logo",onClick:()=>console.log("logo clicked")}),T.jsxs("div",{className:"chat-navbar-info",children:[T.jsx("div",{className:"chat-navbar-title",style:{color:c.color},children:e}),T.jsx("div",{className:"chat-navbar-desc",style:{color:c.color},children:n?r:t})]})]}),T.jsxs("div",{className:"chat-navbar-right",children:[T.jsx("svg",{className:"chat-navbar-icon",viewBox:"0 0 1024 1024",onClick:()=>{localStorage.setItem(sx,i?"false":"true"),a(!i)},style:{color:c.color},children:i?T.jsx("path",{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l251.733333 192c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l18-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344z",fill:"currentColor"}):T.jsx("path",{d:"M469.333333 106.666667L217.6 298.666667H64c-35.2 0-64 28.8-64 64v298.666666c0 35.2 28.8 64 64 64h153.6l251.733333 192c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM384 761.6L171.733333 597.333333H85.333333V426.666667h86.4l212.266667-164.266667V761.6z m482.133333-326.4l120.533334-120.533333c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0L821.333333 390.4l-120.533333-120.533333c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8l120.533333 120.533333-120.533333 120.533333c-12.8 12.8-12.8 32 0 44.8 6.4 6.4 14.933333 9.6 23.466667 9.6s17.066667-3.2 23.466666-9.6l120.533334-120.533333 120.533333 120.533333c6.4 6.4 14.933333 9.6 23.466667 9.6s17.066667-3.2 23.466666-9.6c12.8-12.8 12.8-32 0-44.8L866.133333 435.2z",fill:"currentColor"})}),T.jsx("svg",{className:"chat-navbar-icon",viewBox:"0 0 1024 1024",onClick:o,style:{color:c.color},children:T.jsx("path",{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z",fill:"currentColor"})}),T.jsx("svg",{className:"chat-navbar-icon",viewBox:"0 0 1024 1024",onClick:s,style:{color:c.color},children:T.jsx("path",{d:"M794.432 983.552H229.568c-104.384 0-189.12-84.736-189.12-189.12V229.568c0-104.384 84.736-189.12 189.12-189.12h564.864c104.384 0 189.12 84.736 189.12 189.12v564.864c0 104.384-84.736 189.12-189.12 189.12zM229.568 131.648c-53.952 0-97.92 43.968-97.92 97.92v564.864c0 53.952 43.968 97.92 97.92 97.92h564.864c53.952 0 97.92-43.968 97.92-97.92V229.568c0-53.952-43.968-97.92-97.92-97.92H229.568z",fill:"currentColor"})}),T.jsx("svg",{className:"chat-navbar-icon",viewBox:"0 0 1024 1024",onClick:l,style:{color:c.color},children:T.jsx("path",{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z",fill:"currentColor"})})]})]})}),tZe=({isDarkMode:e,searchResults:t,isMobile:n,handleFaqClick:r,setShowSearchResults:i,setInputText:a,setPreviewText:o,debouncedPreviewText:s})=>{const l=(c,d)=>d.trim()?c.split(new RegExp(`(${d})`,"gi")).map((m,p)=>m.toLowerCase()===d.toLowerCase()?T.jsx("span",{style:{color:"#ff4d4f"},children:m},p):m):c;return T.jsx(T.Fragment,{children:T.jsx("div",{style:{position:"absolute",bottom:n?"120px":"200px",left:"20px",right:"20px",maxHeight:"200px",overflowY:"auto",backgroundColor:e?"#1f1f1f":"#fff",border:`1px solid ${e?"#333":"#e8e8e8"}`,borderRadius:"4px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",zIndex:1e3},children:t.map((c,d)=>T.jsx("div",{onClick:()=>{r(c,d),i(!1),a(""),o("")},style:{padding:"8px 12px",cursor:"pointer",borderBottom:`1px solid ${e?"#333":"#e8e8e8"}`,color:e?"#fff":"#000"},children:l(c.question,s)},d))})})},nZe=({faqs:e,isDarkMode:t,handleFaqClick:n})=>{const r=mf();return T.jsx(T.Fragment,{children:T.jsxs("div",{className:"right-column",style:{color:t?"#fff":"#000",backgroundColor:t?"#141414":"#f5f5f5"},children:[T.jsx("h3",{style:{color:t?"#fff":"#000",padding:"10px",margin:"0"},children:r.formatMessage({id:"chat.faq.title"})}),e.map((i,a)=>T.jsx("div",{className:"faq-item",style:{textAlign:"center",padding:"8px",cursor:"pointer",transition:"background-color 0.3s"},children:T.jsx("p",{onClick:()=>n(i,a),title:i.question,className:"faq-question hover-effect",style:{margin:"0 auto",maxWidth:"80%",color:t?"#fff":"#000"},children:i.question})},a))]})})},rZe=({isDarkMode:e,rightIframeUrl:t})=>T.jsx("div",{children:T.jsx("div",{className:"right-column",style:{color:e?"#fff":"#000",backgroundColor:e?"#141414":"#f5f5f5"},children:T.jsx("iframe",{src:t,style:{width:"100%",height:"100%",border:"none",borderRadius:"4px",backgroundColor:"transparent"}})})}),iZe=({menuId:e,handleRightClick:t})=>{const n=mf();return T.jsx(T.Fragment,{children:T.jsx(yGe,{id:e,children:T.jsx(wGe,{id:"copy",onClick:t,children:n.formatMessage({id:"chat.menu.copy"})})})})},aZe=[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],oZe={100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square","1","2","3","4"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing","shy"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},shaking_face:{id:"shaking_face",name:"Shaking Face",keywords:["dizzy","shock","blurry","earthquake"],skins:[{unified:"1fae8",native:"🫨"}],version:15},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease","covid"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever","covid"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy","cry","tears","sad","grievance"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude","cry"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["2&&(o.children=arguments.length>3?z_.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return yw(e,o,r,i,null)}function yw(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Vre};return i==null&&ln.vnode!=null&&ln.vnode(a),a}function Hl(){return{current:null}}function Sp(e){return e.children}function Cl(e,t){this.props=e,this.context=t}function Cp(e,t){if(t==null)return e.__?Cp(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?yw(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=w[d])===null||m&&p.key==m.key&&p.type===m.type)w[d]=void 0;else for(f=0;f{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,r=Math.floor(t/2);return e.font=r+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,i=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(i,0,22),e.fillStyle="#0000FF",e.fillText(i,n,22);const a=e.getImageData(0,0,n,t).data,o=a.length;let s=0;for(;s=o)return!1;const l=n+s/4%n,c=Math.floor(s/4/n),d=e.getImageData(l,c,1,1).data;return!(a[s]!==d[0]||a[s+2]!==d[2]||e.measureText(i).width>=n)}})();var hB={latestVersion:bZe,noCountryFlags:yZe};const SO=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let Mi=null;function xZe(e){Mi||(Mi=_u.get("frequently")||{});const t=e.id||e;t&&(Mi[t]||(Mi[t]=0),Mi[t]+=1,_u.set("last",t),_u.set("frequently",Mi))}function SZe({maxFrequentRows:e,perLine:t}){if(!e)return[];Mi||(Mi=_u.get("frequently"));let n=[];if(!Mi){Mi={};for(let a in SO.slice(0,t)){const o=SO[a];Mi[o]=t-a,n.push(o)}return n}const r=e*t,i=_u.get("last");for(let a in Mi)n.push(a);if(n.sort((a,o)=>{const s=Mi[o],l=Mi[a];return s==l?a.localeCompare(o):s-l}),n.length>r){const a=n.slice(r);n=n.slice(0,r);for(let o of a)o!=i&&delete Mi[o];i&&n.indexOf(i)==-1&&(delete Mi[n[n.length-1]],n.splice(-1,1,i)),_u.set("frequently",Mi)}return n}var nie={add:xZe,get:SZe,DEFAULTS:SO},rie={};rie=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var tc={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Wi=null,Pn=null;const c3={};async function vB(e){if(c3[e])return c3[e];const n=await(await fetch(e)).json();return c3[e]=n,n}let u3=null,iie=null,aie=!1;function H_(e,{caller:t}={}){return u3||(u3=new Promise(n=>{iie=n})),e?CZe(e):t&&!aie&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),u3}async function CZe(e){aie=!0;let{emojiVersion:t,set:n,locale:r}=e;if(t||(t=tc.emojiVersion.value),n||(n=tc.set.value),r||(r=tc.locale.value),Pn)Pn.categories=Pn.categories.filter(l=>!l.name);else{Pn=(typeof e.data=="function"?await e.data():e.data)||await vB(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Pn.emoticons={},Pn.natives={},Pn.categories.unshift({id:"frequent",emojis:[]});for(const l in Pn.aliases){const c=Pn.aliases[l],d=Pn.emojis[c];d&&(d.aliases||(d.aliases=[]),d.aliases.push(l))}Pn.originalCategories=Pn.categories}if(Wi=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(r=="en"?Hre(rie):await vB(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),e.custom)for(let l in e.custom){l=parseInt(l);const c=e.custom[l],d=e.custom[l-1];if(!(!c.emojis||!c.emojis.length)){c.id||(c.id=`custom_${l+1}`),c.name||(c.name=Wi.categories.custom),d&&!c.icon&&(c.target=d.target||d),Pn.categories.push(c);for(const f of c.emojis)Pn.emojis[f.id]=f}}e.categories&&(Pn.categories=Pn.originalCategories.filter(l=>e.categories.indexOf(l.id)!=-1).sort((l,c)=>{const d=e.categories.indexOf(l.id),f=e.categories.indexOf(c.id);return d-f}));let i=null,a=null;n=="native"&&(i=hB.latestVersion(),a=e.noCountryFlags||hB.noCountryFlags());let o=Pn.categories.length,s=!1;for(;o--;){const l=Pn.categories[o];if(l.id=="frequent"){let{maxFrequentRows:f,perLine:m}=e;f=f>=0?f:tc.maxFrequentRows.value,m||(m=tc.perLine.value),l.emojis=nie.get({maxFrequentRows:f,perLine:m})}if(!l.emojis||!l.emojis.length){Pn.categories.splice(o,1);continue}const{categoryIcons:c}=e;if(c){const f=c[l.id];f&&!l.icon&&(l.icon=f)}let d=l.emojis.length;for(;d--;){const f=l.emojis[d],m=f.id?f:Pn.emojis[f],p=()=>{l.emojis.splice(d,1)};if(!m||e.exceptEmojis&&e.exceptEmojis.includes(m.id)){p();continue}if(i&&m.version>i){p();continue}if(a&&l.id=="flags"&&!PZe.includes(m.id)){p();continue}if(!m.search){if(s=!0,m.search=","+[[m.id,!1],[m.name,!0],[m.keywords,!1],[m.emoticons,!1]].map(([v,g])=>{if(v)return(Array.isArray(v)?v:[v]).map(w=>(g?w.split(/[-|_|\s]+/):[w]).map(y=>y.toLowerCase())).flat()}).flat().filter(v=>v&&v.trim()).join(","),m.emoticons)for(const v of m.emoticons)Pn.emoticons[v]||(Pn.emoticons[v]=m.id);let h=0;for(const v of m.skins){if(!v)continue;h++;const{native:g}=v;g&&(Pn.natives[g]=m.id,m.search+=`,${g}`);const w=h==1?"":`:skin-tone-${h}:`;v.shortcodes=`:${m.id}:${w}`}}}}s&&qm.reset(),iie()}function oie(e,t,n){e||(e={});const r={};for(let i in t)r[i]=sie(i,e,t,n);return r}function sie(e,t,n,r){const i=n[e];let a=r&&r.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return i&&(a!=null&&i.value&&typeof i.value!=typeof a&&(typeof i.value=="boolean"?a=a!="false":a=i.value.constructor(a)),i.transform&&a&&(a=i.transform(a)),(a==null||i.choices&&i.choices.indexOf(a)==-1)&&(a=i.value)),a}const _Ze=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let CO=null;function kZe(e){return e.id?e:Pn.emojis[e]||Pn.emojis[Pn.aliases[e]]||Pn.emojis[Pn.natives[e]]}function $Ze(){CO=null}async function EZe(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await H_(null,{caller:n||"SearchIndex.search"});const r=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,l,c)=>s.trim()&&c.indexOf(s)==l);if(!r.length)return;let i=CO||(CO=Object.values(Pn.emojis)),a,o;for(const s of r){if(!i.length)break;a=[],o={};for(const l of i){if(!l.search)continue;const c=l.search.indexOf(`,${s}`);c!=-1&&(a.push(l),o[l.id]||(o[l.id]=0),o[l.id]+=l.id==s?0:c+1)}i=a}return a.length<2||(a.sort((s,l)=>{const c=o[s.id],d=o[l.id];return c==d?s.id.localeCompare(l.id):c-d}),a.length>t&&(a=a.slice(0,t))),a}var qm={search:EZe,get:kZe,reset:$Ze,SHORTCODES_REGEX:_Ze};const PZe=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function TZe(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,r)=>n==t[r])}async function OZe(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function RZe(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),r={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(r.skin=t+1),n.src&&(r.src=n.src),e.aliases&&e.aliases.length&&(r.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(r.emoticons=e.emoticons),r}const IZe={activity:{outline:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:xt("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:xt("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:xt("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:xt("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:xt("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:xt("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:xt("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[xt("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),xt("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:xt("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[xt("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),xt("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:xt("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[xt("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),xt("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:xt("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[xt("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),xt("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:xt("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[xt("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),xt("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:xt("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:xt("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:xt("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},MZe={loupe:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:xt("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:xt("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var fS={categories:IZe,search:MZe};function _O(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){const s=e.shortcodes.match(qm.SHORTCODES_REGEX);s&&(t=s[1],s[2]&&(n=s[2]))}if(r||(r=qm.get(t||e.native)),!r)return e.fallback;const i=r.skins[n-1]||r.skins[0],a=i.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,i.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${i.unified}.png`:void 0),o=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return xt("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?xt("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:i.native||i.shortcodes,src:a}):e.set=="native"?xt("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:i.native}):xt("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${o})`,backgroundSize:`${100*Pn.sheet.cols}% ${100*Pn.sheet.rows}%`,backgroundPosition:`${100/(Pn.sheet.cols-1)*i.x}% ${100/(Pn.sheet.rows-1)*i.y}%`}})})}const NZe=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class lie extends NZe{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,r){if(!this.component)return;const i=sie(t,{[t]:r},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:i}):(this.component.props[t]=i,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const r=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),r&&r.appendChild(this)}}}class DZe extends lie{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var cie={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:tc.set,skin:tc.skin};class uie extends lie{async connectedCallback(){const t=oie(this.props,cie,this);t.element=this,t.ref=n=>{this.component=n},await H_(),!this.disconnected&&eie(xt(_O,{...t}),this)}constructor(t){super(t)}}Io(uie,"Props",cie);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",uie);var gB,kO=[],bB=ln.__b,yB=ln.__r,wB=ln.diffed,xB=ln.__c,SB=ln.unmount;function jZe(){var e;for(kO.sort(function(t,n){return t.__v.__b-n.__v.__b});e=kO.pop();)if(e.__P)try{e.__H.__h.forEach(ww),e.__H.__h.forEach($O),e.__H.__h=[]}catch(t){e.__H.__h=[],ln.__e(t,e.__v)}}ln.__b=function(e){bB&&bB(e)},ln.__r=function(e){yB&&yB(e);var t=e.__c.__H;t&&(t.__h.forEach(ww),t.__h.forEach($O),t.__h=[])},ln.diffed=function(e){wB&&wB(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(kO.push(t)!==1&&gB===ln.requestAnimationFrame||((gB=ln.requestAnimationFrame)||function(n){var r,i=function(){clearTimeout(a),CB&&cancelAnimationFrame(r),setTimeout(n)},a=setTimeout(i,100);CB&&(r=requestAnimationFrame(i))})(jZe))},ln.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ww),n.__h=n.__h.filter(function(r){return!r.__||$O(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ln.__e(r,n.__v)}}),xB&&xB(e,t)},ln.unmount=function(e){SB&&SB(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ww(r)}catch(i){t=i}}),t&&ln.__e(t,n.__v))};var CB=typeof requestAnimationFrame=="function";function ww(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function $O(e){e.__c=e.__()}function FZe(e,t){for(var n in t)e[n]=t[n];return e}function _B(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function mS(e){this.props=e}(mS.prototype=new Cl).isPureReactComponent=!0,mS.prototype.shouldComponentUpdate=function(e,t){return _B(this.props,e)||_B(this.state,t)};var kB=ln.__b;ln.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),kB&&kB(e)};var AZe=ln.__e;ln.__e=function(e,t,n){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}AZe(e,t,n)};var $B=ln.unmount;function d3(){this.__u=0,this.t=null,this.__b=null}function die(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function iy(){this.u=null,this.o=null}ln.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),$B&&$B(e)},(d3.prototype=new Cl).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=die(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__e){var c=r.state.__e;r.__v.__k[0]=function f(m,p,h){return m&&(m.__v=null,m.__k=m.__k&&m.__k.map(function(v){return f(v,p,h)}),m.__c&&m.__c.__P===p&&(m.__e&&h.insertBefore(m.__e,m.__d),m.__c.__e=!0,m.__c.__P=h)),m}(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__e:r.__b=null});d=r.t.pop();)d.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(o,o)},d3.prototype.componentWillUnmount=function(){this.t=[]},d3.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),o.__c.__H=null),(o=FZe({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(c){return a(c,s,l)})),o}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&xO(Sp,null,e.fallback);return i&&(i.__h=null),[xO(Sp,null,t.__e?null:e.children),i]};var EB=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const i=n.name||Wi.categories[n.id],a=!this.props.unfocused&&n.id==this.state.categoryId;return a&&(t=r),xt("button",{"aria-label":i,"aria-selected":a||void 0,title:i,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:n,i:r})},children:this.renderIcon(n)})}),xt("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Pn.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class KZe extends mS{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const ay={rowsPerRender:10};class YZe extends Cl{getInitialState(t=this.props){return{skin:_u.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=Wi.rtl?"rtl":"ltr",this.refs={menu:Hl(),navigation:Hl(),scroll:Hl(),search:Hl(),searchInput:Hl(),skinToneButton:Hl(),skinToneRadio:Hl()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const i in this.nextState)this.props[i]=this.nextState[i],(i==="custom"||i==="categories")&&(n=!0);delete this.nextState;const r=this.getInitialState();if(n)return this.reset(r);this.setState(r)})}componentWillUnmount(){this.unregister()}async reset(t={}){await H_(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Pn;this.refs.categories=new Map;const n=Pn.categories.map(i=>i.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const r=(i,a)=>{const o=[];o.__categoryId=a.id,o.__index=i.length,this.grid.push(o);const s=this.grid.length-1,l=s%ay.rowsPerRender?{}:Hl();return l.index=s,l.posinset=this.grid.setsize+1,i.push(l),o};for(let i of t){const a=[];let o=r(a,i);for(let s of i.emojis)o.length==this.getPerLine()&&(o=r(a,i)),this.grid.setsize+=1,o.push(s);this.refs.categories.set(i.id,{root:Hl(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:r}=t,i=()=>{const{width:o}=n.getBoundingClientRect();return Math.floor(o/r)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:i()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(n),this.observers.push(a),i()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const r=this.state.searchResults||this.grid,i=r[t]&&r[t][n];if(i)return qm.get(i)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,r=o=>{o!=t.state.categoryId&&t.setState({categoryId:o})},i={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const l of o){const c=l.target.dataset.id;n.set(c,l.intersectionRatio)}const s=[...n];for(const[l,c]of s)if(c){r(l);break}},i);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(r=>{for(const i of r){const a=parseInt(i.target.dataset.index);i.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(ay.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*ay.rowsPerRender}px`});for(const{rows:r}of this.refs.categories.values())for(const i of r)i.current&&n.observe(i.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:r,right:i,up:a,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[l,c]=this.state.pos;const d=(()=>{if(l==0&&c==0&&!t.repeat&&(r||a))return null;if(l==-1)return!t.repeat&&(i||o)&&n.selectionStart==n.value.length?[0,0]:null;if(r||i){let f=s[l];const m=r?-1:1;if(c+=m,!f[c]){if(l+=m,f=s[l],!f)return l=r?0:s.length-1,c=r?0:s[l].length-1,[l,c];c=r?f.length-1:0}return[l,c]}if(a||o){l+=a?-1:1;const f=s[l];return f?(f[c]||(c=f.length-1),[l,c]):(l=a?0:s.length-1,c=a?0:s[l].length-1,[l,c])}})();if(d)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:d,keyboard:!0},()=>{this.scrollTo({row:d[0]})})}scrollTo({categoryId:t,row:n}){const r=this.state.searchResults||this.grid;if(!r.length)return;const i=this.refs.scroll.current,a=i.getBoundingClientRect();let o=0;if(n>=0&&(t=r[n].__categoryId),t&&(o=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-i.scrollTop)+1),n>=0)if(!n)o=0;else{const s=r[n].__index,l=o+s*this.props.emojiButtonSize,c=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(li.scrollTop+a.height)o=c-a.height;else return}this.ignoreMouse(),i.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:r}){if(this.props.onEmojiSelect&&(!n&&r&&(n=this.getEmojiByPos(r)),n)){const i=RZe(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&nie.add(i,this.props),this.props.onEmojiSelect(i,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),_u.set("skin",t)}renderNav(){return xt(GZe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return xt("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[xt("div",{class:"flex flex-middle flex-grow",children:[xt("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:xt(_O,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),xt("div",{class:`margin-${this.dir[0]}`,children:t||n?xt("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[xt("div",{class:"preview-title ellipsis",children:t?t.name:Wi.search_no_results_1}),xt("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:Wi.search_no_results_2})]}):xt("div",{class:"preview-placeholder color-c",children:Wi.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:r,grid:i}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,l=(t.skins[o-1]||t.skins[0]).native,c=TZe(this.state.pos,n),d=n.concat(t.id).join("");return xt(KZe,{selected:c,skin:o,size:a,children:xt("button",{"aria-label":l,"aria-selected":c||void 0,"aria-posinset":r,"aria-setsize":i.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:f=>this.handleEmojiClick({e:f,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[xt("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(r-1)%this.props.emojiButtonColors.length]:void 0}}),xt(_O,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},d)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return xt("div",{children:[xt("div",{class:"spacer"}),xt("div",{class:"flex flex-middle",children:[xt("div",{class:"search relative flex-grow",children:[xt("input",{type:"search",ref:this.refs.searchInput,placeholder:Wi.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),xt("span",{class:"icon loupe flex",children:fS.search.loupe}),this.state.searchResults&&xt("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:fS.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?xt("div",{class:"category",ref:this.refs.search,children:[xt("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Wi.categories.search}),xt("div",{children:t.length?t.map((n,r)=>xt("div",{class:"flex",children:n.map((i,a)=>this.renderEmojiButton(i,{pos:[r,a],posinset:r*this.props.perLine+a+1,grid:t}))})):xt("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&xt("a",{onClick:this.props.onAddCustomEmoji,children:Wi.add_custom})})})]}):null}renderCategories(){const{categories:t}=Pn,n=!!this.state.searchResults,r=this.getPerLine();return xt("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(i=>{const{root:a,rows:o}=this.refs.categories.get(i.id);return xt("div",{"data-id":i.target?i.target.id:i.id,class:"category",ref:a,children:[xt("div",{class:`sticky padding-small align-${this.dir[0]}`,children:i.name||Wi.categories[i.id]}),xt("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((s,l)=>{const c=s.index-s.index%ay.rowsPerRender,d=this.state.visibleRows[c],f="current"in s?s:void 0;if(!d&&!f)return null;const m=l*r,p=m+r,h=i.emojis.slice(m,p);return h.length{if(!v)return xt("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const w=qm.get(v);return this.renderEmojiButton(w,{pos:[s.index,g],posinset:s.posinset+g,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:xt("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:xt("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Wi.skins.choose,title:Wi.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:xt("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return xt("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),r=this.base.getBoundingClientRect(),i={};return this.dir=="ltr"?i.right=r.right-n.right-3:i.left=n.left-r.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?i.bottom=r.bottom-n.top+6:(i.top=n.bottom-r.top+3,i.bottom="auto"),xt("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Wi.skins.choose,class:"menu hidden","data-position":i.top?"top":"bottom",style:i,children:[...Array(6).keys()].map(a=>{const o=a+1,s=this.state.skin==o;return xt("div",{children:[xt("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Wi.skins[o],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(o))}}),xt("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[xt("span",{class:`skin-tone skin-tone-${o}`}),xt("span",{class:"margin-small-lr",children:Wi.skins[o]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return xt("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&xt("div",{class:"padding-lr",children:this.renderSearch()}),xt("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:xt("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),Io(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Io(this,"handleClickOutside",n=>{const{element:r}=this.props;n.target!=r&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),Io(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),Io(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),Io(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Io(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:r}=n,i=await qm.search(r),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!i)return this.setState({searchResults:i,pos:[-1,-1]},a);const o=n.selectionStart==n.value.length?[0,0]:[-1,-1],s=[];s.setsize=i.length;let l=null;for(let c of i)(!s.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=s.length,s.push(l)),l.push(c);this.ignoreMouse(),this.setState({searchResults:s,pos:o},a)}),Io(this,"handleSearchKeyDown",n=>{const r=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:r,left:!0});break;case"ArrowRight":this.navigate({e:n,input:r,right:!0});break;case"ArrowUp":this.navigate({e:n,input:r,up:!0});break;case"ArrowDown":this.navigate({e:n,input:r,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Io(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),Io(this,"handleCategoryClick",({category:n,i:r})=>{this.scrollTo(r==0?{row:-1}:{categoryId:n.id})}),Io(this,"openSkins",n=>{const{currentTarget:r}=n,i=r.getBoundingClientRect();this.setState({showSkins:i},async()=>{await OZe(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class $N extends DZe{async connectedCallback(){const t=oie(this.props,tc,this);t.element=this,t.ref=n=>{this.component=n},await H_(t),!this.disconnected&&eie(xt(YZe,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:Hre(fie)})}}Io($N,"Props",tc);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",$N);var fie={};fie=`:host { - width: min-content; - height: 435px; - min-height: 230px; - border-radius: var(--border-radius); - box-shadow: var(--shadow); - --border-radius: 10px; - --category-icon-size: 18px; - --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; - --font-size: 15px; - --preview-placeholder-size: 21px; - --preview-title-size: 1.1em; - --preview-subtitle-size: .9em; - --shadow-color: 0deg 0% 0%; - --shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14); - display: flex; -} - -[data-theme="light"] { - --em-rgb-color: var(--rgb-color, 34, 36, 39); - --em-rgb-accent: var(--rgb-accent, 34, 102, 237); - --em-rgb-background: var(--rgb-background, 255, 255, 255); - --em-rgb-input: var(--rgb-input, 255, 255, 255); - --em-color-border: var(--color-border, rgba(0, 0, 0, .05)); - --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1)); -} - -[data-theme="dark"] { - --em-rgb-color: var(--rgb-color, 222, 222, 221); - --em-rgb-accent: var(--rgb-accent, 58, 130, 247); - --em-rgb-background: var(--rgb-background, 21, 22, 23); - --em-rgb-input: var(--rgb-input, 0, 0, 0); - --em-color-border: var(--color-border, rgba(255, 255, 255, .1)); - --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2)); -} - -#root { - --color-a: rgb(var(--em-rgb-color)); - --color-b: rgba(var(--em-rgb-color), .65); - --color-c: rgba(var(--em-rgb-color), .45); - --padding: 12px; - --padding-small: calc(var(--padding) / 2); - --sidebar-width: 16px; - --duration: 225ms; - --duration-fast: 125ms; - --duration-instant: 50ms; - --easing: cubic-bezier(.4, 0, .2, 1); - width: 100%; - text-align: left; - border-radius: var(--border-radius); - background-color: rgb(var(--em-rgb-background)); - position: relative; -} - -@media (prefers-reduced-motion) { - #root { - --duration: 0; - --duration-fast: 0; - --duration-instant: 0; - } -} - -#root[data-menu] button { - cursor: auto; -} - -#root[data-menu] .menu button { - cursor: pointer; -} - -:host, #root, input, button { - color: rgb(var(--em-rgb-color)); - font-family: var(--font-family); - font-size: var(--font-size); - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - line-height: normal; -} - -*, :before, :after { - box-sizing: border-box; - min-width: 0; - margin: 0; - padding: 0; -} - -.relative { - position: relative; -} - -.flex { - display: flex; -} - -.flex-auto { - flex: none; -} - -.flex-center { - justify-content: center; -} - -.flex-column { - flex-direction: column; -} - -.flex-grow { - flex: auto; -} - -.flex-middle { - align-items: center; -} - -.flex-wrap { - flex-wrap: wrap; -} - -.padding { - padding: var(--padding); -} - -.padding-t { - padding-top: var(--padding); -} - -.padding-lr { - padding-left: var(--padding); - padding-right: var(--padding); -} - -.padding-r { - padding-right: var(--padding); -} - -.padding-small { - padding: var(--padding-small); -} - -.padding-small-b { - padding-bottom: var(--padding-small); -} - -.padding-small-lr { - padding-left: var(--padding-small); - padding-right: var(--padding-small); -} - -.margin { - margin: var(--padding); -} - -.margin-r { - margin-right: var(--padding); -} - -.margin-l { - margin-left: var(--padding); -} - -.margin-small-l { - margin-left: var(--padding-small); -} - -.margin-small-lr { - margin-left: var(--padding-small); - margin-right: var(--padding-small); -} - -.align-l { - text-align: left; -} - -.align-r { - text-align: right; -} - -.color-a { - color: var(--color-a); -} - -.color-b { - color: var(--color-b); -} - -.color-c { - color: var(--color-c); -} - -.ellipsis { - white-space: nowrap; - max-width: 100%; - width: auto; - text-overflow: ellipsis; - overflow: hidden; -} - -.sr-only { - width: 1px; - height: 1px; - position: absolute; - top: auto; - left: -10000px; - overflow: hidden; -} - -a { - cursor: pointer; - color: rgb(var(--em-rgb-accent)); -} - -a:hover { - text-decoration: underline; -} - -.spacer { - height: 10px; -} - -[dir="rtl"] .scroll { - padding-left: 0; - padding-right: var(--padding); -} - -.scroll { - padding-right: 0; - overflow-x: hidden; - overflow-y: auto; -} - -.scroll::-webkit-scrollbar { - width: var(--sidebar-width); - height: var(--sidebar-width); -} - -.scroll::-webkit-scrollbar-track { - border: 0; -} - -.scroll::-webkit-scrollbar-button { - width: 0; - height: 0; - display: none; -} - -.scroll::-webkit-scrollbar-corner { - background-color: rgba(0, 0, 0, 0); -} - -.scroll::-webkit-scrollbar-thumb { - min-height: 20%; - min-height: 65px; - border: 4px solid rgb(var(--em-rgb-background)); - border-radius: 8px; -} - -.scroll::-webkit-scrollbar-thumb:hover { - background-color: var(--em-color-border-over) !important; -} - -.scroll:hover::-webkit-scrollbar-thumb { - background-color: var(--em-color-border); -} - -.sticky { - z-index: 1; - background-color: rgba(var(--em-rgb-background), .9); - -webkit-backdrop-filter: blur(4px); - backdrop-filter: blur(4px); - font-weight: 500; - position: sticky; - top: -1px; -} - -[dir="rtl"] .search input[type="search"] { - padding: 10px 2.2em 10px 2em; -} - -[dir="rtl"] .search .loupe { - left: auto; - right: .7em; -} - -[dir="rtl"] .search .delete { - left: .7em; - right: auto; -} - -.search { - z-index: 2; - position: relative; -} - -.search input, .search button { - font-size: calc(var(--font-size) - 1px); -} - -.search input[type="search"] { - width: 100%; - background-color: var(--em-color-border); - transition-duration: var(--duration); - transition-property: background-color, box-shadow; - transition-timing-function: var(--easing); - border: 0; - border-radius: 10px; - outline: 0; - padding: 10px 2em 10px 2.2em; - display: block; -} - -.search input[type="search"]::-ms-input-placeholder { - color: inherit; - opacity: .6; -} - -.search input[type="search"]::placeholder { - color: inherit; - opacity: .6; -} - -.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration { - -webkit-appearance: none; - -ms-appearance: none; - appearance: none; -} - -.search input[type="search"]:focus { - background-color: rgb(var(--em-rgb-input)); - box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2); -} - -.search .icon { - z-index: 1; - color: rgba(var(--em-rgb-color), .7); - position: absolute; - top: 50%; - transform: translateY(-50%); -} - -.search .loupe { - pointer-events: none; - left: .7em; -} - -.search .delete { - right: .7em; -} - -svg { - fill: currentColor; - width: 1em; - height: 1em; -} - -button { - -webkit-appearance: none; - -ms-appearance: none; - appearance: none; - cursor: pointer; - color: currentColor; - background-color: rgba(0, 0, 0, 0); - border: 0; -} - -#nav { - z-index: 2; - padding-top: 12px; - padding-bottom: 12px; - padding-right: var(--sidebar-width); - position: relative; -} - -#nav button { - color: var(--color-b); - transition: color var(--duration) var(--easing); -} - -#nav button:hover { - color: var(--color-a); -} - -#nav svg, #nav img { - width: var(--category-icon-size); - height: var(--category-icon-size); -} - -#nav[dir="rtl"] .bar { - left: auto; - right: 0; -} - -#nav .bar { - width: 100%; - height: 3px; - background-color: rgb(var(--em-rgb-accent)); - transition: transform var(--duration) var(--easing); - border-radius: 3px 3px 0 0; - position: absolute; - bottom: -12px; - left: 0; -} - -#nav button[aria-selected] { - color: rgb(var(--em-rgb-accent)); -} - -#preview { - z-index: 2; - padding: calc(var(--padding) + 4px) var(--padding); - padding-right: var(--sidebar-width); - position: relative; -} - -#preview .preview-placeholder { - font-size: var(--preview-placeholder-size); -} - -#preview .preview-title { - font-size: var(--preview-title-size); -} - -#preview .preview-subtitle { - font-size: var(--preview-subtitle-size); -} - -#nav:before, #preview:before { - content: ""; - height: 2px; - position: absolute; - left: 0; - right: 0; -} - -#nav[data-position="top"]:before, #preview[data-position="top"]:before { - background: linear-gradient(to bottom, var(--em-color-border), transparent); - top: 100%; -} - -#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before { - background: linear-gradient(to top, var(--em-color-border), transparent); - bottom: 100%; -} - -.category:last-child { - min-height: calc(100% + 1px); -} - -.category button { - font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif; - position: relative; -} - -.category button > * { - position: relative; -} - -.category button .background { - opacity: 0; - background-color: var(--em-color-border); - transition: opacity var(--duration-fast) var(--easing) var(--duration-instant); - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; -} - -.category button:hover .background { - transition-duration: var(--duration-instant); - transition-delay: 0s; -} - -.category button[aria-selected] .background { - opacity: 1; -} - -.category button[data-keyboard] .background { - transition: none; -} - -.row { - width: 100%; - position: absolute; - top: 0; - left: 0; -} - -.skin-tone-button { - border: 1px solid rgba(0, 0, 0, 0); - border-radius: 100%; -} - -.skin-tone-button:hover { - border-color: var(--em-color-border); -} - -.skin-tone-button:active .skin-tone { - transform: scale(.85) !important; -} - -.skin-tone-button .skin-tone { - transition: transform var(--duration) var(--easing); -} - -.skin-tone-button[aria-selected] { - background-color: var(--em-color-border); - border-top-color: rgba(0, 0, 0, .05); - border-bottom-color: rgba(0, 0, 0, 0); - border-left-width: 0; - border-right-width: 0; -} - -.skin-tone-button[aria-selected] .skin-tone { - transform: scale(.9); -} - -.menu { - z-index: 2; - white-space: nowrap; - border: 1px solid var(--em-color-border); - background-color: rgba(var(--em-rgb-background), .9); - -webkit-backdrop-filter: blur(4px); - backdrop-filter: blur(4px); - transition-property: opacity, transform; - transition-duration: var(--duration); - transition-timing-function: var(--easing); - border-radius: 10px; - padding: 4px; - position: absolute; - box-shadow: 1px 1px 5px rgba(0, 0, 0, .05); -} - -.menu.hidden { - opacity: 0; -} - -.menu[data-position="bottom"] { - transform-origin: 100% 100%; -} - -.menu[data-position="bottom"].hidden { - transform: scale(.9)rotate(-3deg)translateY(5%); -} - -.menu[data-position="top"] { - transform-origin: 100% 0; -} - -.menu[data-position="top"].hidden { - transform: scale(.9)rotate(3deg)translateY(-5%); -} - -.menu input[type="radio"] { - clip: rect(0 0 0 0); - width: 1px; - height: 1px; - border: 0; - margin: 0; - padding: 0; - position: absolute; - overflow: hidden; -} - -.menu input[type="radio"]:checked + .option { - box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent)); -} - -.option { - width: 100%; - border-radius: 6px; - padding: 4px 6px; -} - -.option:hover { - color: #fff; - background-color: rgb(var(--em-rgb-accent)); -} - -.skin-tone { - width: 16px; - height: 16px; - border-radius: 100%; - display: inline-block; - position: relative; - overflow: hidden; -} - -.skin-tone:after { - content: ""; - mix-blend-mode: overlay; - background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0)); - border: 1px solid rgba(0, 0, 0, .8); - border-radius: 100%; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff; -} - -.skin-tone-1 { - background-color: #ffc93a; -} - -.skin-tone-2 { - background-color: #ffdab7; -} - -.skin-tone-3 { - background-color: #e7b98f; -} - -.skin-tone-4 { - background-color: #c88c61; -} - -.skin-tone-5 { - background-color: #a46134; -} - -.skin-tone-6 { - background-color: #5d4437; -} - -[data-index] { - justify-content: space-between; -} - -[data-emoji-set="twitter"] .skin-tone:after { - box-shadow: none; - border-color: rgba(0, 0, 0, .5); -} - -[data-emoji-set="twitter"] .skin-tone-1 { - background-color: #fade72; -} - -[data-emoji-set="twitter"] .skin-tone-2 { - background-color: #f3dfd0; -} - -[data-emoji-set="twitter"] .skin-tone-3 { - background-color: #eed3a8; -} - -[data-emoji-set="twitter"] .skin-tone-4 { - background-color: #cfad8d; -} - -[data-emoji-set="twitter"] .skin-tone-5 { - background-color: #a8805d; -} - -[data-emoji-set="twitter"] .skin-tone-6 { - background-color: #765542; -} - -[data-emoji-set="google"] .skin-tone:after { - box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4); -} - -[data-emoji-set="google"] .skin-tone-1 { - background-color: #f5c748; -} - -[data-emoji-set="google"] .skin-tone-2 { - background-color: #f1d5aa; -} - -[data-emoji-set="google"] .skin-tone-3 { - background-color: #d4b48d; -} - -[data-emoji-set="google"] .skin-tone-4 { - background-color: #aa876b; -} - -[data-emoji-set="google"] .skin-tone-5 { - background-color: #916544; -} - -[data-emoji-set="google"] .skin-tone-6 { - background-color: #61493f; -} - -[data-emoji-set="facebook"] .skin-tone:after { - border-color: rgba(0, 0, 0, .4); - box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff; -} - -[data-emoji-set="facebook"] .skin-tone-1 { - background-color: #f5c748; -} - -[data-emoji-set="facebook"] .skin-tone-2 { - background-color: #f1d5aa; -} - -[data-emoji-set="facebook"] .skin-tone-3 { - background-color: #d4b48d; -} - -[data-emoji-set="facebook"] .skin-tone-4 { - background-color: #aa876b; -} - -[data-emoji-set="facebook"] .skin-tone-5 { - background-color: #916544; -} - -[data-emoji-set="facebook"] .skin-tone-6 { - background-color: #61493f; -} - -`;function XZe(e){const t=u.useRef(null),n=u.useRef(null);return n.current&&n.current.update(e),u.useEffect(()=>(n.current=new $N({...e,ref:t}),()=>{n.current=null}),[]),L.createElement("div",{ref:t})}const QZe=({onSelect:e,onClose:t})=>{const[n,r]=u.useState(!0),i=a=>{r(!1),e(a.native)};return T.jsx(uY,{className:"EmojiPicker",active:n,onClose:()=>{r(!1),t()},title:"请选择表情",children:T.jsx("div",{children:T.jsx(XZe,{data:cZe,onEmojiSelect:i})})})},ZZe=({showEmoji:e,setShowEmoji:t,handleEmojiSelect:n})=>T.jsx(T.Fragment,{children:e&&T.jsx(QZe,{onSelect:n,onClose:()=>t(!1)})}),JZe=({isDarkMode:e,imageInputRef:t,fileInputRef:n,handleImageChange:r,handleFileChange:i})=>T.jsxs(T.Fragment,{children:[e&&T.jsx(Iue,{children:T.jsx("link",{rel:"stylesheet",type:"text/css",href:sa?"./assets/css/chatui/chatui-theme-dark.css":"/chat/assets/css/chatui/chatui-theme-dark.css"})}),T.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:t,onChange:r}),T.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:i})]}),mie=()=>{const e=mf(),t=[{type:"smile",icon:"smile",title:e.formatMessage({id:"chat.toolbar.emoji"})},{type:"image",title:e.formatMessage({id:"chat.toolbar.image"}),icon:"image"},{type:"file",title:e.formatMessage({id:"chat.toolbar.file"}),icon:"file"}],[n,r]=u.useState(t),{isDarkMode:i,themeMode:a,setThemeMode:o,locale:s,changeLocale:l}=u.useContext(Gp),[c,d]=u.useState("zh-cn");console.log("themeMode:",a,"locale: ",s==null?void 0:s.locale,"lang:",c);const[f]=Y0(),{translateString:m}=Q0(),[p,h]=u.useState(""),[v]=F2e(p,1e3),[g,w]=u.useState("Chat"),[y,b]=u.useState({}),[x,C]=u.useState({}),[S,_]=u.useState({}),[k,$]=u.useState([]),[E,P]=u.useState(!1),[M,j]=u.useState([]),[O,N]=u.useState([]),[R,D]=u.useState(!1),[F,z]=u.useState(""),[I,H]=u.useState(!1),[V,B]=u.useState("i18n.input.placeholder"),[W,U]=u.useState(!1),[X,q]=u.useState(""),Y=u.useRef(null),re=u.useRef(null),G=u.useRef({orgUid:"df_org_uid",type:"1",sid:""}),[Q,J]=u.useState(0),{messages:Z,appendMsg:ee,updateMsg:te,resetList:le}=Ixe([]),[oe,de]=u.useState(!1),[pe,ye]=u.useState(""),[me,xe]=u.useState(m("i18n.load.more")),ue=u.useRef(null),ce=u.useRef(null),$e=u.useRef(!1),se=u.useRef(!1),[he,ve]=u.useState(""),[ke,Se]=u.useState(!1),[Ee,De]=u.useState(!1),[we,be]=u.useState(!0),[Pe,Re]=u.useState(!1),_e=u.useRef(!1),je=f.get(bD)==="1",He=f.get(hD)||"",Be=f.get(vD)||"",ct=f.get(gD)||"",[Ve,Ye]=u.useState(null),{messageList:Ne,addMessage:Ae,addMessageList:et,updateMessageStatus:nt}=e2(Ue=>({messageList:Ue.messageList,addMessage:Ue.addMessage,addMessageList:Ue.addMessageList,updateMessageStatus:Ue.updateMessageStatus})),{show:rt}=pGe({id:xD}),it=(Ue,ht)=>{console.log("handleContextMenu:",Ue," item:",ht),Ye(ht),rt({event:Ue,props:{key:ht==null?void 0:ht._id.toString()}})},ge=({id:Ue,event:ht,props:kt})=>{switch(console.log("handleRightClick:",Ue,ht,kt),Ue){case"copy":no.success("复制成功"),navigator.clipboard.writeText(m(Ve==null?void 0:Ve.content));break}},Te=async()=>{var kt;console.log("shouldPreload: ",je);const Ue=await E2e({orgUid:G.current.orgUid||"",type:G.current.type||"",sid:G.current.sid||"",uid:G.current.uid,nickname:G.current.nickname,avatar:G.current.avatar,referrer:He,url:ct,title:Be,extra:G.current.extra||""});console.log("browse response: ",Ue.data);const ht={username:(kt=G.current)==null?void 0:kt.uid,topic:G.current.uid||"",orgUid:G.current.orgUid||""};Vj(ht)},Ce=()=>{const Ue={};for(const Ze of f.entries())Ue[Ze[0]]=Ze[1];if(Ue[ub]){const Ze=Ue[ub].toLowerCase();Dpe.includes(Ze)?(d(Ze),l(Ze)):console.warn(`Invalid language value: ${Ue[ub]}`)}else d(Ay),l(Ay);if(Ue[yD]===Npe&&be(!1),Ue[db]){const Ze=Ue[db].toLowerCase();jpe.includes(Ze)?o(Ze):console.warn(`Invalid theme value: ${Ue[db]}`)}Ue[r$]&&pn(Ue[r$]);const kt=new kCe().getResult();G.current={orgUid:Ue[fD],type:Ue[mD],sid:Ue[pD],uid:localStorage.getItem(Nm)||"",nickname:localStorage.getItem(K4)||"",avatar:localStorage.getItem(wv)||"",lang:(s==null?void 0:s.locale)||Ay,browser:JSON.stringify(kt.browser),os:JSON.stringify(kt.os),device:JSON.stringify(kt.device),referrer:document.referrer,vipLevel:Ue[wD]||"0",extra:""},localStorage.setItem(zp,G.current.orgUid||""),Ue[i$]&&(G.current.uid=Ue[i$]),Ue[a$]&&(G.current.nickname=Ue[a$]),Ue[o$]&&(G.current.avatar=Ue[o$]);const ut={};for(const Ze in Ue)[fD,mD,pD,ub,db,Epe,Ppe,hD,vD,gD,bD,yD,r$,i$,a$,o$,wD].includes(Ze)||(ut[Ze]=Ue[Ze]);G.current.extra=JSON.stringify(ut),console.log("initInfoParams: ",G.current)},Ie=async()=>{var ht,kt,ut,Ze,gt,bt,Kt,cn,fr,Jr,ei,Bi,tl,nl;const Ue=await k2e(G.current);console.log("initVisitor: ",Ue==null?void 0:Ue.data),Ue&&((ht=Ue==null?void 0:Ue.data)==null?void 0:ht.code)===200?(localStorage.setItem(Nm,((ut=(kt=Ue==null?void 0:Ue.data)==null?void 0:kt.data)==null?void 0:ut.uid)||""),localStorage.setItem(K4,((gt=(Ze=Ue==null?void 0:Ue.data)==null?void 0:Ze.data)==null?void 0:gt.nickname)||""),localStorage.setItem(wv,((Kt=(bt=Ue==null?void 0:Ue.data)==null?void 0:bt.data)==null?void 0:Kt.avatar)||""),_({uid:(fr=(cn=Ue==null?void 0:Ue.data)==null?void 0:cn.data)==null?void 0:fr.uid,nickname:(ei=(Jr=Ue==null?void 0:Ue.data)==null?void 0:Jr.data)==null?void 0:ei.nickname,avatar:(tl=(Bi=Ue==null?void 0:Ue.data)==null?void 0:Bi.data)==null?void 0:tl.avatar,type:Gme}),Ce(),Ke(!1)):Ue!=null&&Ue.data?(no.fail(((nl=Ue==null?void 0:Ue.data)==null?void 0:nl.message)||"初始化失败"),localStorage.removeItem(Nm)):no.fail("初始化失败")},Ke=async Ue=>{var ut,Ze,gt,bt,Kt,cn,fr,Jr,ei,Bi,tl,nl;if(je){Te();return}if(G.current.type===Yme){Qe(G.current.sid),Re(!0);return}const ht={orgUid:G.current.orgUid||"",type:G.current.type||"",sid:G.current.sid||"",uid:G.current.uid,nickname:G.current.nickname,avatar:G.current.avatar,referrer:G.current.referrer,forceAgent:Ue},kt=await $2e(ht);if(console.log("initThread response: ",kt.data),kt.data.code===200){Ue&&(Kr.destroy(),Kr.success("转人工成功"));const Ln=(ut=kt==null?void 0:kt.data)==null?void 0:ut.data;wye(Ln)?_e.current=!0:_e.current=!1;const Vt={uid:(Ze=Ln==null?void 0:Ln.thread)==null?void 0:Ze.uid,topic:(gt=Ln==null?void 0:Ln.thread)==null?void 0:gt.topic,type:(bt=Ln==null?void 0:Ln.thread)==null?void 0:bt.type,state:(Kt=Ln==null?void 0:Ln.thread)==null?void 0:Kt.state,user:(cn=Ln==null?void 0:Ln.thread)==null?void 0:cn.user};b(Vt),(Vt==null?void 0:Vt.state)===Xme&&(H(!0),B("i18n.leavemsg.tip"));const Mt=Ln==null?void 0:Ln.user,Zn=[];if(w$(Vt)){const $n=JSON.parse((fr=Ln==null?void 0:Ln.user)==null?void 0:fr.extra);$e.current=($n==null?void 0:$n.llm)||!1}else if((Mt==null?void 0:Mt.type)===Jq){const $n={name:m("i18n.transferToAgent"),code:"transferToAgent",type:"transferToAgent"};Zn.push($n)}C(Mt),w(m((Mt==null?void 0:Mt.nickname)||""));const sn=JSON.parse(((Jr=Ln==null?void 0:Ln.thread)==null?void 0:Jr.extra)||"{}");if(console.log("extra welcomeFaqs:",sn.welcomeFaqs),sn.welcomeFaqs&&N(sn.welcomeFaqs),sn.showQuickFaqs&&((ei=sn==null?void 0:sn.quickFaqs)==null||ei.forEach($n=>{const or={name:m(($n==null?void 0:$n.question)||""),code:$n.uid,type:$n.type,content:m(($n==null?void 0:$n.answer)||"")};Zn.push(or)})),sn.showRateBtn){const $n={name:m("i18n.rate"),code:"rate",type:Fy};Zn.push($n)}if($(Zn),sn.showFaqs){const $n=[];sn.faqs.forEach(or=>{const xa={question:m(or.question),answer:m(or.answer),uid:or.uid,type:or.type};$n.push(xa)}),j($n)}if(P((sn==null?void 0:sn.showFaqs)||!1),sn.showRightIframe&&(D(!0),z(sn.rightIframeUrl)),sn.showGuessFaqs){const $n=[];sn.guessFaqs.forEach(or=>{const xa={question:m(or.question),answer:m(or.answer),uid:or.uid,type:or.type};$n.push(xa)}),$n.length>0&&ee({_id:aa(),type:cD,content:JSON.stringify($n),createdAt:Lt().toDate().getTime(),user:{uid:Mt==null?void 0:Mt.uid,nickname:Mt==null?void 0:Mt.nickname,avatar:Mt==null?void 0:Mt.avatar},position:"left"})}if(sn.showHotFaqs){const $n=[];if(sn.hotFaqs.forEach(or=>{const xa={question:m(or.question),answer:m(or.answer),uid:or.uid,type:or.type};$n.push(xa)}),console.log("show hot faqs:",$n),$n.length>0){console.log("show hot faqs appendMsg");const xa={uid:aa(),type:uD,content:JSON.stringify($n),status:lD,createdAt:dl(),client:lr,thread:Vt,user:{uid:Mt==null?void 0:Mt.uid,nickname:Mt==null?void 0:Mt.nickname,avatar:Mt==null?void 0:Mt.avatar}};Ae(xa)}}if(sn.showShortcutFaqs){const $n=[];if(sn.shortcutFaqs.forEach(or=>{const xa={question:m(or.question),answer:m(or.answer),code:or.uid,type:or.type};$n.push(xa)}),$n.length>0){const xa={uid:aa(),type:dD,content:JSON.stringify($n),status:lD,createdAt:dl(),client:lr,thread:Vt,user:{uid:Mt==null?void 0:Mt.uid,nickname:Mt==null?void 0:Mt.nickname,avatar:Mt==null?void 0:Mt.avatar}};Ae(xa)}}sn.showHistory&&console.log("showHistory: 允许拉取历史消息"),sn.showTopTip&&q((sn==null?void 0:sn.topTip)||""),U((sn==null?void 0:sn.showTopTip)||!1),Ae(Ln);const mr={username:(Bi=G.current)==null?void 0:Bi.uid,topic:((tl=Ln==null?void 0:Ln.thread)==null?void 0:tl.topic)||"",orgUid:G.current.orgUid||""};Vj(mr)}else no.fail(((nl=kt==null?void 0:kt.data)==null?void 0:nl.message)||"获取信息败")},Xe=()=>{if(sa){const Ue=[...t];[].forEach(kt=>{Ue.some(ut=>ut.type===kt.type)||Ue.push(kt)}),r(Ue)}},lt=()=>{const Ue=localStorage.getItem(sx);Ue===null?(localStorage.setItem(sx,"true"),De(!0)):De(Ue==="true")},tt=async()=>{var kt,ut,Ze,gt;if(se.current){console.log("isLoadingMessage.current: ",se.current);return}se.current=!0,Kr.loading(m("i18n.loading"));const Ue={pageNumber:Q,pageSize:20,topic:y==null?void 0:y.topic,componentType:Fpe},ht=await cCe(Ue);console.log("queryMessagesByThreadTopic: ",ht.data,Ue),ht.data.code===200?(et((ut=(kt=ht==null?void 0:ht.data)==null?void 0:kt.data)==null?void 0:ut.content),(gt=(Ze=ht==null?void 0:ht.data)==null?void 0:Ze.data)!=null&>.last?xe(""):J(Q+1),Kr.destroy()):(ht.data.code,Kr.destroy()),se.current=!1},Qe=async Ue=>{var ut,Ze,gt,bt;if(se.current){console.log("isLoadingMessage.current: ",se.current);return}se.current=!0,Kr.loading(m("i18n.loading"));const ht={pageNumber:Q,pageSize:20,threadUid:Ue},kt=await uCe(ht);console.log("queryMessagesByThreadUid: ",kt.data,ht),kt.data.code===200?(et((Ze=(ut=kt==null?void 0:kt.data)==null?void 0:ut.data)==null?void 0:Ze.content),(bt=(gt=kt==null?void 0:kt.data)==null?void 0:gt.data)!=null&&bt.last?xe(""):J(Q+1),Kr.destroy()):(kt.data.code,Kr.destroy()),se.current=!1};u.useEffect(()=>(Ce(),Ie(),Xe(),lt(),()=>{gCe()}),[]);const Ge=(Ue,ht)=>{if(console.log("handleSend",Ue,ht),I){no.fail("客服已离线,请通过上方留言框联系我们");return}ve(""),On(!1),Ue===rm.toLowerCase()&&ht.trim()?st(ht):no.fail("暂不支持此类型")},st=Ue=>{var Ze;const ht=aa(),kt={orgUid:G.current.orgUid},ut={uid:ht,type:rm,content:Ue,status:ac,createdAt:dl(),client:lr,extra:JSON.stringify(kt),thread:y,user:S};_e.current===!0?(console.log("handleSendText: isRobot"),ze(),Ae(ut),pCe(JSON.stringify(ut),function(gt){console.log("sendSseMessage: ",gt),fe(),nt(ut==null?void 0:ut.uid,SR),Ae(gt)})):(console.log("handleSendText: isAgent"),Ae(ut),lc(JSON.stringify(ut))),(Ze=ue==null?void 0:ue.current)==null||Ze.scrollToEnd()},pt=async Ue=>{ve(Ue),h(Ue)},yt=Ue=>(console.log("handleImageSend",Ue),qv(Ue,ht=>{Me(ht.data.fileUrl,bu)}),Promise.resolve()),zt=Ue=>{var kt;console.log("handleImageChange event: ",Ue);const ht=(kt=Ue.target.files)==null?void 0:kt.item(0);ht&&(console.log("handleImageChange file: ",ht),qv(ht,ut=>{Me(ut.data.fileUrl,bu)}))},$t=Ue=>{var kt;console.log("handleFileChange event: ",Ue);const ht=(kt=Ue.target.files)==null?void 0:kt.item(0);ht&&(console.log("handleFileChange file: ",ht),qv(ht,ut=>{Me(ut.data.fileUrl,rp)}))},ze=()=>{de(!0),ye(m("i18n.typing")),setTimeout(()=>{de(!1),ye("")},5e3)},fe=()=>{de(!1),ye("")},Me=(Ue,ht)=>{var gt;console.log("handleDropSend",Ue);const kt=aa(),ut={orgUid:G.current.orgUid},Ze={uid:kt,type:ht,content:Ue,status:ac,createdAt:dl(),client:lr,extra:JSON.stringify(ut),thread:y,user:S};lc(JSON.stringify(Ze)),(gt=ue==null?void 0:ue.current)==null||gt.scrollToEnd()},We=(Ue,ht)=>{if(console.log("handleQuickReplyClick",Ue,ht),Ue.type===Fy)wCe({thread:y,visitor:S});else if(Ue.type==="transferToAgent")Kr.loading("转接中..."),Ke(!0);else{const kt={uid:Ue.code,type:Ue.type,question:Ue.name,answer:Ue.name};Le(kt,ht)}},wt=(Ue,ht)=>{var kt,ut;console.log("handleToolbarClick",Ue,ht),Ue.type==="smile"?Se(!0):Ue.type==="orderSelector"?ee({_id:aa(),type:"order-selector",content:{},position:"pop"}):Ue.type==="image"?(kt=Y==null?void 0:Y.current)==null||kt.click():Ue.type==="file"?(ut=re==null?void 0:re.current)==null||ut.click():re.current&&re.current.click()},Je=Ue=>{var ht;console.log("handleEmojiSelect",he,Ue),Se(!1),ve(he+Ue),(ht=ce==null?void 0:ce.current)==null||ht.setText(he+Ue)},Le=async(Ue,ht)=>{var bt,Kt;console.log("handleFaqClick",ht);const kt=await O2e(Ue.uid);console.log("queryByUid response:",kt.data);const ut=(bt=kt==null?void 0:kt.data)==null?void 0:bt.data;kt.data.code===200?(ee({_id:aa(),type:rm,hasTime:!0,createdAt:Lt().toDate().getTime(),content:ut.question,position:"right",user:{avatar:localStorage.getItem(wv)||""}}),ee({_id:aa(),type:lx,hasTime:!0,createdAt:Lt().toDate().getTime(),content:JSON.stringify(ut),position:"left",user:{avatar:x.avatar}})):Kr.error(kt.data.message);const gt={uid:aa(),faq:Ue,thread:y,visitor:S};bCe(gt),(Kt=ue==null?void 0:ue.current)==null||Kt.scrollToEnd()},ot=()=>{console.log("handleTransferToAgent"),Ke(!0)},vt=(Ue,ht)=>{console.log("handleStreamQaClick",Ue,ht),ee({_id:aa(),type:rm,hasTime:!0,createdAt:Lt().toDate().getTime(),content:Ue,position:"right",user:{avatar:localStorage.getItem(wv)||""}}),ee({_id:aa(),type:Og,hasTime:!0,createdAt:Lt().toDate().getTime(),content:ht,position:"left",user:{avatar:x.avatar}})},Et=Ue=>{const{_id:ht,type:kt,content:ut}=Ue,Ze={orgUid:G.current.orgUid},gt={uid:ht.toString(),type:kt,content:ut,status:ac,createdAt:dl(),client:lr,extra:JSON.stringify(Ze),thread:y,user:S},bt=JSON.stringify(gt);lc(bt)};u.useEffect(()=>{const Ue=[];Ne.forEach(ht=>{var kt,ut;Ue.push({_id:ht==null?void 0:ht.uid,type:ht==null?void 0:ht.type,status:ht==null?void 0:ht.status,hasTime:!0,createdAt:Lt(ht==null?void 0:ht.createdAt).toDate().getTime(),content:m((ht==null?void 0:ht.content)||""),position:yye(ht),user:{avatar:(kt=ht==null?void 0:ht.user)==null?void 0:kt.avatar,name:m((ut=ht==null?void 0:ht.user)==null?void 0:ut.nickname)}})}),le(Ue)},[Ne]);const It=Ue=>{var bt;const{_id:ht,type:kt,content:ut,position:Ze,status:gt}=Ue;switch(kt){case Jme:return T.jsx(JQe,{uid:ht.toString(),content:ut,welcomeFaqs:O,thread:y,visitor:S,orgUid:G.current.orgUid,onFaqClick:Le});case rm:return T.jsxs(T.Fragment,{children:[T.jsx(nd,{content:ut,isRichText:RK(ut),onContextMenu:()=>it(event,Ue)}),Ze==="right"&&T.jsx(Dc,{status:gt,onRetry:()=>Et(Ue)})]});case Og:return T.jsxs(T.Fragment,{children:[T.jsx(ZQe,{uid:ht.toString(),content:ut,thread:y,visitor:S,onQuestionClick:vt}),Ze==="right"&&T.jsx(Dc,{status:gt,onRetry:()=>Et(Ue)})]});case bu:return T.jsxs(T.Fragment,{children:[T.jsx(nd,{type:"image",onContextMenu:()=>it(event,Ue),children:T.jsx(DY,{src:ut,children:T.jsx("img",{src:ut,alt:""})})}),Ze==="right"&&T.jsx(Dc,{status:gt,onRetry:()=>Et(Ue)})]});case rp:return T.jsxs(T.Fragment,{children:[T.jsx(nd,{type:"file",onContextMenu:()=>it(event,Ue),children:T.jsx(FSe,{fileUrl:ut,children:T.jsx(bo,{onClick:()=>gye(ut),children:"下载文件"})})}),Ze==="right"&&T.jsx(Dc,{status:gt,onRetry:()=>Et(Ue)})]});case Tg:return T.jsxs(T.Fragment,{children:[T.jsx(nd,{style:{maxWidth:200},onContextMenu:()=>it(event,Ue),children:T.jsx(jSe,{src:Ue.content})}),Ze==="right"&&T.jsx(Dc,{status:gt,onRetry:()=>Et(Ue)})]});case tpe:return T.jsxs(T.Fragment,{children:[T.jsx(rs,{size:"xl",children:T.jsx(pY,{img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"这个商品名称非常非常长长到会换行",desc:"商品描述",tags:[{name:"3个月免息"},{name:"4.1折"},{name:"黑卡再省33.96"}],currency:"¥",meta:"7人付款",count:6,unit:"kg",onClick:Kt=>console.log(Kt),action:{onClick(Kt){console.log(Kt),Kt.stopPropagation()}}})}),Ze==="right"&&T.jsx(Dc,{status:gt,onRetry:()=>Et(Ue)})]});case npe:return T.jsxs(T.Fragment,{children:[I&&T.jsx(T.Fragment,{children:T.jsx(lGe,{uid:ht.toString(),content:ut,status:gt,thread:y,visitor:S})}),!I&&T.jsxs(T.Fragment,{children:[T.jsx(nd,{content:m(ut)}),Ze==="right"&&T.jsx(Dc,{status:gt})]})]});case lx:return T.jsx(a_e,{uid:ht.toString(),vipLevel:((bt=G==null?void 0:G.current)==null?void 0:bt.vipLevel)||"0",content:ut,thread:y,visitor:S,onFaqClick:Le,onTransferToAgent:ot});case cpe:return T.jsx(B2e,{uid:ht.toString(),content:xye(ut),thread:y,visitor:S});case Fy:case nG:return T.jsx(L2e,{uid:ht.toString(),content:ut,status:gt,type:kt,thread:y,visitor:S});case cD:return T.jsx(xGe,{content:ut,onFaqClick:Le});case uD:return T.jsx(SGe,{content:ut,onFaqClick:Le});case dD:return T.jsx(CGe,{content:ut,onFaqClick:Le});case"order-selector":return T.jsx(_Ge,{});default:return console.log("renderMessageContent: default",Ue),T.jsxs(T.Fragment,{children:[T.jsx(nd,{content:m(ut)}),Ze==="right"&&T.jsx(Dc,{status:gt})]})}};u.useEffect(()=>{if((v==null?void 0:v.length)>0&&!I&&!w$(y)){console.log("debouncedPreviewText",v);const Ue={orgUid:G.current.orgUid},ht={uid:aa(),type:kR,content:v,status:ac,createdAt:dl(),client:lr,extra:JSON.stringify(Ue),thread:y,user:S},kt=JSON.stringify(ht);lc(kt)}St(v)},[v,S,y]);const St=async Ue=>{var ht,kt,ut;if((v==null?void 0:v.length)>0){const Ze={question:Ue,orgUid:G.current.orgUid},gt=await P2e(Ze);console.log("handleSearchAutoComplete response:",gt.data),((ht=gt.data)==null?void 0:ht.code)===200&&((ut=(kt=gt.data)==null?void 0:kt.data)==null?void 0:ut.length)>0?(Nt(gt.data.data),On(!0)):(Nt([]),On(!1))}else Nt([]),On(!1)},at=u.useCallback(()=>setInterval(async()=>{var Ue;if(!I&&!w$(y)){const ht=await dCe(S==null?void 0:S.uid);if(((Ue=ht==null?void 0:ht.data)==null?void 0:Ue.data)>0){const ut=await fCe(S==null?void 0:S.uid);if(console.log("autoPingMessage 拉取未读消息",S==null?void 0:S.uid,ut),ut!=null&&ut.data){const Ze=ut==null?void 0:ut.data.data;console.log("autoPingMessage 拉取未读消息",S==null?void 0:S.uid,Ze),Ze==null||Ze.forEach(gt=>{Ae(gt)})}}}},1e4),[I,y,S==null?void 0:S.uid,Ae]);u.useEffect(()=>{const Ue=at();return()=>{clearInterval(Ue)}},[at]),u.useEffect(()=>{const Ue=ut=>{var Kt;const Ze=JSON.parse(ut),gt=(Kt=Ze==null?void 0:Ze.uid)==null?void 0:Kt.toString(),bt=Z.find(cn=>cn._id.toString()===gt);bt?te(Ze==null?void 0:Ze.uid,{type:bt==null?void 0:bt.type,hasTime:bt==null?void 0:bt.hasTime,createdAt:bt==null?void 0:bt.createdAt,content:bt==null?void 0:bt.content,position:bt==null?void 0:bt.position,user:bt==null?void 0:bt.user,status:Ze==null?void 0:Ze.type}):console.log("handleMessageTypeStatus msg is undefined")},ht=ut=>{var Kt;console.log("handleMessageTypeContent",ut);const Ze=JSON.parse(ut),gt=(Kt=Ze==null?void 0:Ze.uid)==null?void 0:Kt.toString(),bt=Z.find(cn=>{const fr=cn._id.toString();return console.log(`Comparing ${fr} with ${gt}`),fr===gt});bt?(console.log("handleMessageTypeContent msg",Ze),te(Ze==null?void 0:Ze.uid,{_id:bt==null?void 0:bt._id,type:CR,hasTime:bt==null?void 0:bt.hasTime,createdAt:bt==null?void 0:bt.createdAt,content:Ze==null?void 0:Ze.content,position:bt==null?void 0:bt.position,user:bt==null?void 0:bt.user,status:bt==null?void 0:bt.status})):console.log("handleMessageTypeStatus msg is undefined")},kt=ut=>{console.log("handleHttpError",ut),no.fail("http error with code: "+ut)};return ki.on(Y4,Ue),ki.on(X4,ht),ki.on(Td,kt),()=>{ki.off(Y4,Ue),ki.off(X4,ht),ki.off(Td,kt)}},[Z,te]);const _t=()=>{console.log("handleRecordStart")},At=Ue=>{console.log("handleRecordEnd",Ue)},Dt=()=>{console.log("handleRecordCancel")},[Jt,pn]=u.useState(""),[gn]=u.useState(""),wr=f.get("backgroundColor"),dr=f.get("textColor"),Qn=()=>i?{backgroundColor:"#333333",textColor:"#ffffff"}:{backgroundColor:"#ffffff",textColor:"#333333"},Wr=()=>{if(Jt)switch(Jt.toLowerCase()){case"light":return{backgroundColor:"#ffffff",textColor:"#333333"};case"dark":return{backgroundColor:"#333333",textColor:"#ffffff"};case"blue":return{backgroundColor:"#0066FF",textColor:"#ffffff"};default:return Qn()}return Qn()},vn=u.useMemo(()=>{const Ue=Wr();return{backgroundColor:wr||Ue.backgroundColor,color:dr||Ue.textColor}},[wr,dr]),Bt=()=>{window.parent!==window?window.parent.postMessage({type:xpe},"*"):window.close()},jt=()=>{window.parent!==window&&window.parent.postMessage({type:Spe},"*")},wn=()=>{window.parent!==window&&window.parent.postMessage({type:Cpe},"*")},[Ft,Nt]=u.useState([]),[hn,On]=u.useState(!1),ar=()=>window.innerWidth<=580;return T.jsxs(T.Fragment,{children:[T.jsx(JZe,{isDarkMode:i,imageInputRef:Y,fileInputRef:re,handleImageChange:zt,handleFileChange:$t}),T.jsxs(_2e,{onImageSend:Me,children:[we&&T.jsx(eZe,{title:g,description:gn,typing:oe,typingTip:pe,agent:x,isPlayAudio:Ee,setIsPlayAudio:De,handleMinimize:wn,handleMaximize:jt,handleClose:Bt,navbarStyle:vn,navbarTheme:Jt}),T.jsxs("div",{className:"chat-container",style:{position:"relative"},children:[hn&&Ft.length>0&&he.trim().length>0&&T.jsx(tZe,{isDarkMode:i,searchResults:Ft,isMobile:ar(),handleFaqClick:Le,setShowSearchResults:On,setInputText:ve,setPreviewText:h,debouncedPreviewText:v}),T.jsx(i_e,{children:T.jsx(rCe,{elderMode:!1,showTopTip:W,topTipContent:X,loadMoreText:me,onRefresh:tt,messages:Z,isTyping:oe,messagesRef:ue,renderMessageContent:It,text:he,composerRef:ce,inputOptions:{showCount:!1},quickReplies:k,onQuickReplyClick:We,placeholder:m(V),onSend:Ge,onImageSend:yt,onInputChange:pt,toolbar:n,onToolbarClick:wt,wideBreakpoint:"600px",recorder:{canRecord:sa,volume:.5,onStart:_t,onEnd:At,onCancel:Dt},hideComposer:Pe})}),E&&(M==null?void 0:M.length)>0&&T.jsx(nZe,{faqs:M,isDarkMode:i,handleFaqClick:Le}),R&&T.jsx(rZe,{isDarkMode:i,rightIframeUrl:F}),T.jsx(iZe,{menuId:xD,handleRightClick:ge})]}),T.jsx(ZZe,{showEmoji:ke,setShowEmoji:Se,handleEmojiSelect:Je})]})]})},eJe=()=>T.jsx("h1",{children:"404"}),tJe=()=>T.jsx("div",{children:"TicketBox"}),nJe=[{key:"after",label:"售后支持",children:[{key:"chat",label:"在线服务"},{key:"tickets",label:"我的工单"},{key:"tickets-create",label:"提交工单"}]},{key:"before",label:"售前服务",children:[{key:"chat-pre",label:"在线服务"}]}],rJe=()=>{const e=t=>{console.log("click ",t)};return T.jsx(Cf,{onClick:e,defaultSelectedKeys:["chat"],defaultOpenKeys:["after","before"],mode:"inline",items:nJe})},iJe=()=>T.jsxs(T.Fragment,{children:[T.jsx("div",{style:{float:"left"},children:T.jsx(_n,{type:"text",style:{color:"white"},children:"微语客服中心"})}),T.jsx(Ws,{}),T.jsx("div",{style:{float:"right"},children:T.jsx(d_,{size:44})})]}),aJe=()=>{const e=t=>{window.open(t,"_blank")};return T.jsx(T.Fragment,{children:T.jsx("div",{style:{cursor:"pointer",fontSize:15,color:"white"},onClick:()=>e("https:/www.weiyuai.cn"),children:"微语AI"})})},oJe=()=>T.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:T.jsx("iframe",{src:"/chat/?org=df_org_uid&t=1&sid=df_wg_uid&",width:"100%",height:"100%",frameBorder:"0",style:{boxShadow:"0 0 7px rgba(0, 0, 0, 0.4)",borderRadius:"inherit"}})}),{Header:sJe,Footer:lJe,Sider:cJe,Content:uJe}=Ou,dJe={color:"#fff",height:64,paddingInline:48,lineHeight:"64px",backgroundColor:"#4096ff"},fJe={textAlign:"center",color:"#fff",backgroundColor:"#0958d9"},mJe={textAlign:"center",lineHeight:"120px",color:"#fff",backgroundColor:"#1677ff"},pJe={height:20,textAlign:"center",color:"#fff",backgroundColor:"#4096ff"},hJe={overflow:"hidden",with:"100%",height:"100%"},vJe=()=>T.jsx(T.Fragment,{children:T.jsxs(Ou,{style:hJe,children:[T.jsx(sJe,{style:dJe,children:T.jsx(iJe,{})}),T.jsxs(Ou,{children:[T.jsx(cJe,{width:"15%",style:mJe,children:T.jsx(rJe,{})}),T.jsx(uJe,{style:fJe,children:T.jsx(oJe,{})})]}),T.jsx(lJe,{style:pJe,children:T.jsx(aJe,{})})]})}),gJe=[{title:"技能组",dataIndex:"workgroup"},{title:"提示",dataIndex:"waiting"},{title:"操作",dataIndex:"action"}],bJe=[{key:"1",workgroup:"技能组1",waiting:"前面有0人,无需等待",action:T.jsx(_n,{type:"primary",children:"取号"})},{key:"2",workgroup:"技能组2",waiting:"前面有3人,大概等待时长20分钟",action:T.jsx(_n,{type:"primary",children:"取号"})}],yJe=(e,t,n,r)=>{console.log("params",e,t,n,r)},wJe=()=>T.jsxs(T.Fragment,{children:[T.jsx("h2",{children:"技能组取号"}),T.jsxs($f,{children:[T.jsx(Zi,{span:4}),T.jsx(Zi,{span:16,children:T.jsx(ko,{columns:gJe,dataSource:bJe,onChange:yJe,showSorterTooltip:{target:"sorter-icon"}})}),T.jsx(Zi,{span:4})]})]}),xJe=[{title:"客服",dataIndex:"agent"},{title:"提示",dataIndex:"waiting"},{title:"操作",dataIndex:"action"}],SJe=[{key:"1",agent:"客服1",waiting:"前面有0人,无需等待",action:T.jsx(_n,{type:"primary",children:"取号"})},{key:"2",agent:"客服2",waiting:"前面有3人,大概等待时长20分钟",action:T.jsx(_n,{type:"primary",children:"取号"})}],CJe=(e,t,n,r)=>{console.log("params",e,t,n,r)},_Je=()=>T.jsxs(T.Fragment,{children:[T.jsx("h2",{children:"一对一取号"}),T.jsxs($f,{children:[T.jsx(Zi,{span:4}),T.jsx(Zi,{span:16,children:T.jsx(ko,{columns:xJe,dataSource:SJe,onChange:CJe,showSorterTooltip:{target:"sorter-icon"}})}),T.jsx(Zi,{span:4})]})]}),kJe=()=>T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:"取号"}),T.jsx(wJe,{}),T.jsx(_Je,{})]}),$Je=[{title:"技能组",dataIndex:"workgroup"},{title:"下一个",dataIndex:"next"},{title:"队列",dataIndex:"queue"}],EJe=[{key:"1",workgroup:"技能组1",next:"访客1",queue:"访客2,访客3,访客4"},{key:"2",workgroup:"技能组2",next:"访客5",queue:"访客6,访客7,访客8"}],PJe=(e,t,n,r)=>{console.log("params",e,t,n,r)},TJe=()=>T.jsxs(T.Fragment,{children:[T.jsx("h2",{children:"技能组排队队列"}),T.jsxs($f,{children:[T.jsx(Zi,{span:4}),T.jsx(Zi,{span:16,children:T.jsx(ko,{columns:$Je,dataSource:EJe,onChange:PJe,showSorterTooltip:{target:"sorter-icon"}})}),T.jsx(Zi,{span:4})]})]}),OJe=[{title:"客服",dataIndex:"agent"},{title:"下一个",dataIndex:"next"},{title:"队列",dataIndex:"queue"}],RJe=[{key:"1",agent:"客服1",next:"访客1",queue:"访客2,访客3,访客4"},{key:"2",agent:"客服2",next:"访客5",queue:"访客6,访客7,访客8"}],IJe=(e,t,n,r)=>{console.log("params",e,t,n,r)},MJe=()=>T.jsxs(T.Fragment,{children:[T.jsx("h2",{children:"一对一排队队列"}),T.jsxs($f,{children:[T.jsx(Zi,{span:4}),T.jsx(Zi,{span:16,children:T.jsx(ko,{columns:OJe,dataSource:RJe,onChange:IJe,showSorterTooltip:{target:"sorter-icon"}})}),T.jsx(Zi,{span:4})]})]}),NJe=()=>T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:"排队队列"}),T.jsx(TJe,{}),T.jsx(MJe,{})]}),{TextArea:DJe}=Pi,{Title:jJe,Text:IB}=Da,FJe=async e=>new Promise(t=>{setTimeout(()=>{console.log("提交反馈数据:",e),t(!0)},1e3)}),AJe=({onClose:e})=>{const[t]=Y0(),n=K0(),{isDarkMode:r}=u.useContext(Gp),[i,a]=u.useState(0),[o,s]=u.useState(""),[l,c]=u.useState([]),[d,f]=u.useState(""),[m,p]=u.useState(!1),[h,v]=u.useState(!1),g=t.get("org")||"",w=t.get("t")||"",y=t.get("sid")||"",b=[{id:"variety",text:"市种丰富度"},{id:"usability",text:"使用难易"},{id:"features",text:"功能多样性"},{id:"customization",text:"定制化功能"},{id:"design",text:"界面设计"}],x=k=>{switch(a(k),k){case 1:s("非常不满意");break;case 2:s("不满意");break;case 3:s("一般");break;case 4:s("满意");break;case 5:s("非常满意");break;default:s("")}},C=k=>{c($=>$.includes(k)?$.filter(E=>E!==k):[...$,k])},S=async()=>{if(i===0){Kr.warning("请先进行评分");return}v(!0);try{await FJe({orgUid:g,type:w,sid:y,rating:i,tags:l,feedback:d,joinSurvey:m}),Kr.success("感谢您的反馈!"),e?e():n(-1)}catch(k){console.error("提交反馈失败:",k),Kr.error("提交失败,请稍后重试")}finally{v(!1)}},_=()=>{e?e():n(-1)};return T.jsx("div",{style:{maxWidth:"600px",margin:"0 auto",padding:"20px",height:"100vh",display:"flex",flexDirection:"column",justifyContent:"center"},children:T.jsxs(FM,{style:{width:"100%",borderRadius:"12px",background:r?"#1f1f1f":"rgba(255, 255, 255, 0.8)",backdropFilter:"blur(10px)"},styles:{body:{padding:"24px"}},children:[T.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[T.jsx(jJe,{level:4,style:{margin:0},children:"您是否满意近期的用户体验?"}),T.jsx(_n,{type:"text",icon:T.jsx(Ys,{}),onClick:_,style:{border:"none"}})]}),T.jsxs("div",{style:{textAlign:"center",marginBottom:"20px"},children:[T.jsx(XT,{character:T.jsx(iX,{}),value:i,onChange:x,style:{fontSize:"32px",color:"#FFD700"}}),T.jsx("div",{style:{marginTop:"8px",color:r?"#ccc":"#666"},children:o})]}),i>0&&T.jsxs(T.Fragment,{children:[T.jsxs("div",{style:{marginBottom:"20px"},children:[T.jsx(IB,{style:{display:"block",marginBottom:"12px",fontWeight:500},children:"您觉得我们哪些地方做得比较好?"}),T.jsx($f,{gutter:[12,12],children:b.map(k=>T.jsx(Zi,{span:8,children:T.jsx(Gne,{style:{padding:"8px 12px",borderRadius:"4px",cursor:"pointer",width:"100%",textAlign:"center",background:l.includes(k.id)?r?"#177ddc":"#e6f7ff":r?"#303030":"#f5f5f5",color:l.includes(k.id)?r?"#fff":"#1890ff":r?"#d9d9d9":"#333",borderColor:l.includes(k.id)?r?"#177ddc":"#91d5ff":r?"#434343":"#d9d9d9"},onClick:()=>C(k.id),children:k.text})},k.id))})]}),T.jsxs("div",{style:{marginBottom:"20px"},children:[T.jsx(IB,{style:{display:"block",marginBottom:"12px",fontWeight:500},children:"更多反馈"}),T.jsx(DJe,{placeholder:"您的意见对我们至关重要,请留下您的反馈和建议 (选填)",autoSize:{minRows:3,maxRows:6},value:d,onChange:k=>f(k.target.value),style:{borderRadius:"8px",background:r?"#141414":"#fff"}})]}),T.jsx(yc,{checked:m,onChange:k=>p(k.target.checked),style:{marginBottom:"20px"},children:"我愿意参加后续的有偿调研"}),T.jsx(_n,{type:"primary",block:!0,size:"large",onClick:S,loading:h,style:{height:"48px",borderRadius:"24px",fontWeight:500},children:"提交"})]})]})})};var Oa=function(){return Oa=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?_i(ph,--Zo):0,kp--,oi===10&&(kp=1,W_--),oi}function Is(){return oi=Zo2||PO(oi)>3?"":" "}function KJe(e,t){for(;--t&&Is()&&!(oi<48||oi>102||oi>57&&oi<65||oi>70&&oi<97););return q_(e,Sw()+(t<6&&Fd()==32&&Is()==32))}function TO(e){for(;Is();)switch(oi){case e:return Zo;case 34:case 39:e!==34&&e!==39&&TO(oi);break;case 40:e===41&&TO(e);break;case 92:Is();break}return Zo}function YJe(e,t){for(;Is()&&e+oi!==57;)if(e+oi===84&&Fd()===47)break;return"/*"+q_(t,Zo-1)+"*"+PN(e===47?e:Is())}function XJe(e){for(;!PO(Fd());)Is();return q_(e,Zo)}function QJe(e){return qJe(Cw("",null,null,null,[""],e=UJe(e),0,[0],e))}function Cw(e,t,n,r,i,a,o,s,l){for(var c=0,d=0,f=o,m=0,p=0,h=0,v=1,g=1,w=1,y=0,b="",x=i,C=a,S=r,_=b;g;)switch(h=y,y=Is()){case 40:if(h!=108&&_i(_,f-1)==58){xw(_+=Sn(f3(y),"&","&\f"),"&\f",vie(c?s[c-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:_+=f3(y);break;case 9:case 10:case 13:case 32:_+=GJe(h);break;case 92:_+=KJe(Sw()-1,7);continue;case 47:switch(Fd()){case 42:case 47:Mv(ZJe(YJe(Is(),Sw()),t,n,l),l);break;default:_+="/"}break;case 123*v:s[c++]=fl(_)*w;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+d:w==-1&&(_=Sn(_,/\f/g,"")),p>0&&fl(_)-f&&Mv(p>32?DB(_+";",r,n,f-1,l):DB(Sn(_," ","")+";",r,n,f-2,l),l);break;case 59:_+=";";default:if(Mv(S=NB(_,t,n,c,d,i,s,b,x=[],C=[],f,a),a),y===123)if(d===0)Cw(_,t,S,S,x,a,f,s,C);else switch(m===99&&_i(_,3)===110?100:m){case 100:case 108:case 109:case 115:Cw(e,S,S,r&&Mv(NB(e,S,S,0,0,i,s,b,i,x=[],f,C),C),i,C,f,s,r?x:C);break;default:Cw(_,S,S,S,[""],C,0,s,C)}}c=d=p=0,v=w=1,b=_="",f=o;break;case 58:f=1+fl(_),p=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&WJe()==125)continue}switch(_+=PN(y),y*v){case 38:w=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(fl(_)-1)*w,w=1;break;case 64:Fd()===45&&(_+=f3(Is())),m=Fd(),d=f=fl(b=_+=XJe(Sw())),y++;break;case 45:h===45&&fl(_)==2&&(v=0)}}return a}function NB(e,t,n,r,i,a,o,s,l,c,d,f){for(var m=i-1,p=i===0?a:[""],h=bie(p),v=0,g=0,w=0;v0?p[y]+" "+b:Sn(b,/&\f/g,p[y])))&&(l[w++]=x);return U_(e,t,n,i===0?V_:s,l,c,d,f)}function ZJe(e,t,n,r){return U_(e,t,n,pie,PN(VJe()),_p(e,2,-2),0,r)}function DB(e,t,n,r,i){return U_(e,t,n,EN,_p(e,0,r),_p(e,r+1,-1),r,i)}function wie(e,t,n){switch(zJe(e,t)){case 5103:return Xn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Xn+e+e;case 4789:return lg+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xn+e+lg+e+Sr+e+e;case 5936:switch(_i(e,t+11)){case 114:return Xn+e+Sr+Sn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xn+e+Sr+Sn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xn+e+Sr+Sn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Xn+e+Sr+e+e;case 6165:return Xn+e+Sr+"flex-"+e+e;case 5187:return Xn+e+Sn(e,/(\w+).+(:[^]+)/,Xn+"box-$1$2"+Sr+"flex-$1$2")+e;case 5443:return Xn+e+Sr+"flex-item-"+Sn(e,/flex-|-self/g,"")+(Xl(e,/flex-|baseline/)?"":Sr+"grid-row-"+Sn(e,/flex-|-self/g,""))+e;case 4675:return Xn+e+Sr+"flex-line-pack"+Sn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Xn+e+Sr+Sn(e,"shrink","negative")+e;case 5292:return Xn+e+Sr+Sn(e,"basis","preferred-size")+e;case 6060:return Xn+"box-"+Sn(e,"-grow","")+Xn+e+Sr+Sn(e,"grow","positive")+e;case 4554:return Xn+Sn(e,/([^-])(transform)/g,"$1"+Xn+"$2")+e;case 6187:return Sn(Sn(Sn(e,/(zoom-|grab)/,Xn+"$1"),/(image-set)/,Xn+"$1"),e,"")+e;case 5495:case 3959:return Sn(e,/(image-set\([^]*)/,Xn+"$1$`$1");case 4968:return Sn(Sn(e,/(.+:)(flex-)?(.*)/,Xn+"box-pack:$3"+Sr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xn+e+e;case 4200:if(!Xl(e,/flex-|baseline/))return Sr+"grid-column-align"+_p(e,t)+e;break;case 2592:case 3360:return Sr+Sn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Xl(r.props,/grid-\w+-end/)})?~xw(e+(n=n[t].value),"span",0)?e:Sr+Sn(e,"-start","")+e+Sr+"grid-row-span:"+(~xw(n,"span",0)?Xl(n,/\d+/):+Xl(n,/\d+/)-+Xl(e,/\d+/))+";":Sr+Sn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Xl(r.props,/grid-\w+-start/)})?e:Sr+Sn(Sn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Sn(e,/(.+)-inline(.+)/,Xn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(fl(e)-1-t>6)switch(_i(e,t+1)){case 109:if(_i(e,t+4)!==45)break;case 102:return Sn(e,/(.+:)(.+)-([^]+)/,"$1"+Xn+"$2-$3$1"+lg+(_i(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xw(e,"stretch",0)?wie(Sn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Sn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,o,s,l,c){return Sr+i+":"+a+c+(o?Sr+i+"-span:"+(s?l:+l-+a)+c:"")+e});case 4949:if(_i(e,t+6)===121)return Sn(e,":",":"+Xn)+e;break;case 6444:switch(_i(e,_i(e,14)===45?18:11)){case 120:return Sn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Xn+(_i(e,14)===45?"inline-":"")+"box$3$1"+Xn+"$2$3$1"+Sr+"$2box$3")+e;case 100:return Sn(e,":",":"+Sr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Sn(e,"scroll-","scroll-snap-")+e}return e}function hS(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case EN:e.return=wie(e.value,e.length,n);return;case hie:return hS([Uc(e,{value:Sn(e.value,"@","@"+Xn)})],r);case V_:if(e.length)return HJe(n=e.props,function(i){switch(Xl(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":em(Uc(e,{props:[Sn(i,/:(read-\w+)/,":"+lg+"$1")]})),em(Uc(e,{props:[i]})),EO(e,{props:MB(n,r)});break;case"::placeholder":em(Uc(e,{props:[Sn(i,/:(plac\w+)/,":"+Xn+"input-$1")]})),em(Uc(e,{props:[Sn(i,/:(plac\w+)/,":"+lg+"$1")]})),em(Uc(e,{props:[Sn(i,/:(plac\w+)/,Sr+"input-$1")]})),em(Uc(e,{props:[i]})),EO(e,{props:MB(n,r)});break}return""})}}var ret={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ja={ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",npm_package_devDependencies__types_sockjs_client:"^1.5.4",TERM_PROGRAM:"vscode",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",npm_package_dependencies_axios:"^1.7.2",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.2.2",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_package_devDependencies_vite:"^5.2.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_config_shamefully_hoist:"true",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",npm_package_scripts_release:"sh cicd/scripts/build-upload.sh",npm_package_scripts_lint:"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",npm_package_dependencies__ant_design_x:"^1.0.5",TERM_PROGRAM_VERSION:"1.98.2",npm_package_dependencies_dompurify:"^3.1.4",npm_package_devDependencies__vitejs_plugin_react:"^4.2.1",npm_package_scripts_dev:"vite --host --mode dev",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",npm_package_dependencies_uuid:"^9.0.1",npm_package_private:"true",npm_config_registry:"https://registry.npmmirror.com/",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies_react_dom:"^18.2.0",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.6",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_dependencies_react_dropzone:"^14.2.3",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",npm_package_devDependencies__testing_library_react:"^15.0.7",npm_package_devDependencies__types_react:"^18.2.66",COMMAND_MODE:"unix2003",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.5",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",PNPM_SCRIPT_SRC_DIR:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.iic5FeYGT4/Listeners",npm_package_dependencies_zustand:"^4.5.2",VSCODE_PROFILE_INITIALIZED:"1",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",npm_package_dependencies_styled_components:"^6.1.13",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_eslint:"^8.57.0",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies__typescript_eslint_eslint_plugin:"^7.2.0",npm_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/bin/pnpm.cjs",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_devDependencies__types_react_dom:"^18.2.22",npm_config_frozen_lockfile:"",rvm_prefix:"/Users/ningjinpeng",npm_package_devDependencies__typescript_eslint_parser:"^7.2.0",PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor/node_modules/.bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_package_dependencies__repo_chatui:"workspace:*",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.microsoft.VSCode",npm_package_dependencies_react_contexify:"^6.0.0",npm_config_auto_install_peers:"true",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",npm_package_dependencies__repo_api:"workspace:*",npm_command:"run-script",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",npm_package_scripts_preview:"vite preview",npm_package_devDependencies_eslint_plugin_react_hooks:"^4.6.0",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",LANG:"zh_CN.UTF-8",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",npm_package_name:"visitor",npm_package_dependencies_react_intl:"^6.6.8",npm_package_scripts_release_quanjing:"sh cicd/scripts/build-quanjing.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_scripts_build:"tsc && vite build --mode prod",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_package_dependencies_react_router_dom:"^6.23.1",npm_package_devDependencies__types_ua_parser_js:"^0.7.39",npm_package_devDependencies__rollup_plugin_alias:"^5.1.0",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_config_node_gyp:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"0",npm_package_version:"0.0.0",npm_package_dependencies_ws:"^8.17.1",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",SHLVL:"3",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_type:"module",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",npm_package_dependencies_react_markdown:"^9.0.1",npm_package_dependencies_mitt:"^3.0.1",npm_config_strict_ssl:"",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",npm_package_dependencies_react_photo_view:"^1.2.6",LOGNAME:"ningjinpeng",npm_lifecycle_script:"tsc && vite build --mode open",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_sockjs_client:"^1.6.1",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",npm_config_user_agent:"pnpm/9.12.3 npm/? node/v20.0.0 darwin arm64",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_dependencies_clsx:"^2.1.1",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies__stomp_stompjs:"^7.0.0",npm_package_dependencies_antd:"^5.23.2",npm_package_devDependencies__types_dompurify:"^3.2.0",COLORTERM:"truecolor",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",NODE_ENV:"production"},$p=typeof process<"u"&&Ja!==void 0&&(Ja.REACT_APP_SC_ATTR||Ja.SC_ATTR)||"data-styled",xie="active",Sie="data-styled-version",G_="6.1.13",TN=`/*!sc*/ -`,vS=typeof window<"u"&&"HTMLElement"in window,iet=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ja!==void 0&&Ja.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ja.REACT_APP_SC_DISABLE_SPEEDY!==""?Ja.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ja.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ja!==void 0&&Ja.SC_DISABLE_SPEEDY!==void 0&&Ja.SC_DISABLE_SPEEDY!==""&&Ja.SC_DISABLE_SPEEDY!=="false"&&Ja.SC_DISABLE_SPEEDY),K_=Object.freeze([]),Ep=Object.freeze({});function aet(e,t,n){return n===void 0&&(n=Ep),e.theme!==n.theme&&e.theme||t||n.theme}var Cie=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),oet=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,set=/(^-|-$)/g;function jB(e){return e.replace(oet,"-").replace(set,"")}var cet=/(a)(d)/gi,oy=52,FB=function(e){return String.fromCharCode(e+(e>25?39:97))};function OO(e){var t,n="";for(t=Math.abs(e);t>oy;t=t/oy|0)n=FB(t%oy)+n;return(FB(t%oy)+n).replace(cet,"$1-$2")}var m3,_ie=5381,_m=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},kie=function(e){return _m(_ie,e)};function uet(e){return OO(kie(e)>>>0)}function det(e){return e.displayName||e.name||"Component"}function p3(e){return typeof e=="string"&&!0}var $ie=typeof Symbol=="function"&&Symbol.for,Eie=$ie?Symbol.for("react.memo"):60115,fet=$ie?Symbol.for("react.forward_ref"):60112,met={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pet={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Pie={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},het=((m3={})[fet]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},m3[Eie]=Pie,m3);function AB(e){return("type"in(t=e)&&t.type.$$typeof)===Eie?Pie:"$$typeof"in e?het[e.$$typeof]:met;var t}var vet=Object.defineProperty,get=Object.getOwnPropertyNames,LB=Object.getOwnPropertySymbols,bet=Object.getOwnPropertyDescriptor,yet=Object.getPrototypeOf,BB=Object.prototype;function Tie(e,t,n){if(typeof t!="string"){if(BB){var r=yet(t);r&&r!==BB&&Tie(e,r,n)}var i=get(t);LB&&(i=i.concat(LB(t)));for(var a=AB(e),o=AB(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var wet=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,a=i;t>=a;)if((a<<=1)<0)throw k1(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var o=i;o=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),a=i+r,o=i;o=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(g+="".concat(w,","))}),l+="".concat(h).concat(v,'{content:"').concat(g,'"}').concat(TN)},d=0;d0?".".concat(t):m},d=l.slice();d.push(function(m){m.type===V_&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(Iet,n).replace(r,c))}),o.prefix&&d.push(net),d.push(JJe);var f=function(m,p,h,v){p===void 0&&(p=""),h===void 0&&(h=""),v===void 0&&(v="&"),t=v,n=p,r=new RegExp("\\".concat(n,"\\b"),"g");var g=m.replace(Met,""),w=QJe(h||p?"".concat(h," ").concat(p," { ").concat(g," }"):g);o.namespace&&(w=Iie(w,o.namespace));var y=[];return hS(w,eet(d.concat(tet(function(b){return y.push(b)})))),y};return f.hash=l.length?l.reduce(function(m,p){return p.name||k1(15),_m(m,p.name)},_ie).toString():"",f}var Det=new Rie,IO=Net(),Mie=L.createContext({shouldForwardProp:void 0,styleSheet:Det,stylis:IO});Mie.Consumer;L.createContext(void 0);function WB(){return u.useContext(Mie)}var jet=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=IO);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,RN(this,function(){throw k1(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=IO),this.name+t.hash},e}(),Fet=function(e){return e>="A"&&e<="Z"};function UB(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,o)){var s=r(a,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,s)}i=Cd(i,o),this.staticRulesId=o}else{for(var l=_m(this.baseHash,r.hash),c="",d=0;d>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),i=Cd(i,p)}}return i},e}(),jie=L.createContext(void 0);jie.Consumer;var h3={};function zet(e,t,n){var r=ON(e),i=e,a=!p3(e),o=t.attrs,s=o===void 0?K_:o,l=t.componentId,c=l===void 0?function(x,C){var S=typeof x!="string"?"sc":jB(x);h3[S]=(h3[S]||0)+1;var _="".concat(S,"-").concat(uet(G_+S+h3[S]));return C?"".concat(C,"-").concat(_):_}(t.displayName,t.parentComponentId):l,d=t.displayName,f=d===void 0?function(x){return p3(x)?"styled.".concat(x):"Styled(".concat(det(x),")")}(e):d,m=t.displayName&&t.componentId?"".concat(jB(t.displayName),"-").concat(t.componentId):t.componentId||c,p=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&i.shouldForwardProp){var v=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(x,C){return v(x,C)&&g(x,C)}}else h=v}var w=new Bet(n,m,r?i.componentStyle:void 0);function y(x,C){return function(S,_,k){var $=S.attrs,E=S.componentStyle,P=S.defaultProps,M=S.foldedComponentIds,j=S.styledComponentId,O=S.target,N=L.useContext(jie),R=WB(),D=S.shouldForwardProp||R.shouldForwardProp,F=aet(_,N,P)||Ep,z=function(U,X,q){for(var Y,re=Oa(Oa({},X),{className:void 0,theme:q}),G=0;Ge.$backgroundColor||"#fff"}; - color: ${e=>e.$textColor||"#333"}; - border-bottom: 1px solid #eee; - position: sticky; - top: 0; - z-index: 100; -`,Uet=Cn.h1` - margin: 0; - margin-left: 8px; - font-size: 16px; - font-weight: 500; - color: ${e=>e.$textColor||"#333"}; -`,qet=Cn.div` - flex: 1; - overflow-y: auto; - display: flex; - flex-direction: column; - align-items: center; - max-width: 800px; - margin: 0 auto; - width: 100%; -`,Get=Cn.div` - background: #f0f8ff; - padding: 16px 20px; - border-radius: 8px; - margin-bottom: 24px; - width: 100%; - box-sizing: border-box; -`,Ket=Cn.input` - width: 100%; - padding: 12px; - border: none; - border-radius: 6px; - background: #fff; - font-size: 14px; - color: #333; - outline: none; - box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); - box-sizing: border-box; - - &::placeholder { - color: #999; - } -`,Yet=Cn.div` - display: flex; - gap: 20px; - margin-bottom: 20px; - border-bottom: 1px solid #eee; -`,Xet=Cn.div` - padding: 8px 4px; - font-size: 14px; - color: ${e=>e.$active?"#333":"#999"}; - border-bottom: 2px solid ${e=>e.$active?"#0066FF":"transparent"}; - cursor: pointer; -`,Qet=Cn.div` - display: flex; - flex-direction: column; - gap: 16px; - margin-bottom: 60px; -`,Zet=Cn.div` - display: flex; - align-items: center; - gap: 12px; - padding: 12px 0; - border-bottom: 1px solid #f5f5f5; - cursor: pointer; - - &:hover { - opacity: 0.8; - } -`,Jet=Cn.span` - color: ${e=>{switch(e.$index){case 1:return"#ff6b6b";case 2:return"#ff922b";case 3:return"#ffd43b";default:return"#868e96"}}}; - font-weight: 500; -`,ett=Cn.span` - color: #333; - flex: 1; -`,ttt=Cn.span` - color: #ccc; -`,ntt=Cn.div` - display: grid; - grid-template-columns: repeat(3, 1fr); - gap: 12px; - margin-bottom: 24px; - width: 100%; -`,rtt=Cn.div` - background: #f8f9fa; - border-radius: 8px; - padding: 16px; - display: flex; - flex-direction: column; - align-items: center; - gap: 8px; - cursor: pointer; - transition: all 0.2s; - - &:hover { - transform: translateY(-2px); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); - } -`,itt=Cn.div` - font-size: 14px; - color: #333; - text-align: center; -`,att=Cn.div` - font-size: 12px; - color: #666; - text-align: center; -`,ott=Cn.button` - border: none; - background: none; - padding: 8px; - cursor: pointer; - display: flex; - align-items: center; - color: ${e=>e.$textColor||"#333"}; -`,stt=()=>T.jsx("svg",{viewBox:"0 0 1024 1024",width:"20",height:"20",children:T.jsx("path",{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z",fill:"currentColor"})}),ltt=Cn.div` - margin-left: auto; -`,ctt=()=>{const e=K0(),[t]=Y0(),n=t.get("navbarBg"),r=t.get("navbarText"),[i,a]=u.useState("member"),o={member:["如何查看/导出考勤数据","如何创建企业","如何设置子管理员","法人认证具体如何操作","如何进行年检认证"],admin:["如何添加/删除管理员","如何设置管理员权限","如何查看管理日志","如何批量导入成员","如何设置部门架构"],developer:["如何获取开发者密钥","如何对接第三方系统","如何使用API接口","如何配置开发环境","如何处理常见错误"],school:["如何添加班级","如何管理学生信息","如何发布通知公告","如何查看考勤记录","如何与家长互动"]},s=()=>o[i]||[],l=[{id:"member",label:"成员"},{id:"admin",label:"管理员"},{id:"developer",label:"开发者"},{id:"school",label:"家校"}],c=[{icon:"微语创业版",title:"微语创业版",desc:"小微企业首选"},{icon:"专业版咨询",title:"专业版咨询",desc:"高效协作、灵活开放"},{icon:"微语会议",title:"微语会议",desc:"AI时代的开会方式"}],d=p=>{e(`/helpcategory/${p+1}?category=${encodeURIComponent(c[p].title)}`)},f=p=>{const h=s()[p];e(`/helpdetail/${p+1}?question=${encodeURIComponent(h)}`)},m=()=>{window.parent!==window?window.parent.postMessage({type:"CLOSE_CHAT_WINDOW"},"*"):window.close()};return T.jsxs(Vet,{children:[T.jsxs(Wet,{$backgroundColor:n,$textColor:r,children:[T.jsx(Uet,{$textColor:r,children:"帮助中心"}),T.jsx(ltt,{children:T.jsx(ott,{onClick:m,$textColor:r,children:T.jsx(stt,{})})})]}),T.jsxs(qet,{children:[T.jsx(Get,{children:T.jsx(Ket,{placeholder:"输入关键词,搜索触手可及的服务","aria-label":"搜索帮助"})}),T.jsx(ntt,{children:c.map((p,h)=>T.jsxs(rtt,{onClick:()=>d(h),children:[T.jsx(itt,{children:p.title}),T.jsx(att,{children:p.desc})]},h))}),T.jsx(Yet,{children:l.map(p=>T.jsx(Xet,{$active:i===p.id,onClick:()=>a(p.id),children:p.label},p.id))}),T.jsx(Qet,{children:s().map((p,h)=>T.jsxs(Zet,{onClick:()=>f(h),children:[T.jsx(Jet,{$index:h+1,children:h+1}),T.jsx(ett,{children:p}),T.jsx(ttt,{children:"›"})]},h))})]})]})},utt=Cn.div` - padding: 20px; - max-width: 800px; - margin: 0 auto; - height: 100vh; - display: flex; - flex-direction: column; - overflow-y: auto; - box-sizing: border-box; - padding-bottom: 80px; -`,dtt=Cn.div` - display: flex; - align-items: center; - gap: 16px; - margin-bottom: 24px; -`,ftt=Cn.button` - background: none; - border: none; - padding: 8px; - cursor: pointer; - color: #666; - display: flex; - align-items: center; - gap: 4px; - font-size: 14px; - transition: color 0.2s; - - &:hover { - color: #0066FF; - } - - svg { - width: 20px; - height: 20px; - } -`,mtt=Cn.h1` - font-size: 24px; - color: #333; - margin: 0; - flex: 1; -`,ptt=Cn.div` - font-size: 16px; - color: #666; - line-height: 1.6; - flex: 1; -`,htt=Cn.div` - margin-top: 40px; - padding: 20px; - border-top: 1px solid #eee; - display: flex; - flex-direction: column; - align-items: center; - gap: 16px; -`,vtt=Cn.div` - display: flex; - gap: 16px; -`,KB=Cn.button` - padding: 8px 24px; - border-radius: 20px; - border: 1px solid ${e=>e.$primary?"#0066FF":"#ddd"}; - background: ${e=>e.$primary?"#0066FF":"#fff"}; - color: ${e=>e.$primary?"#fff":"#666"}; - cursor: pointer; - transition: all 0.2s; - - &:hover { - opacity: 0.8; - } -`,gtt=Cn.textarea` - width: 100%; - height: 100px; - padding: 12px; - border: 1px solid #ddd; - border-radius: 8px; - resize: none; - margin-top: 16px; - font-size: 14px; - - &:focus { - outline: none; - border-color: #0066FF; - } -`,btt=Cn.button` - padding: 8px 24px; - border-radius: 20px; - background: #0066FF; - color: #fff; - border: none; - cursor: pointer; - transition: all 0.2s; - - &:hover { - opacity: 0.8; - } -`,ytt=()=>T.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:T.jsx("path",{d:"M19 12H5M12 19l-7-7 7-7",strokeLinecap:"round",strokeLinejoin:"round"})}),wtt=()=>{const e=K0(),[t]=Y0(),n=t.get("question"),[r,i]=u.useState(!1),[a,o]=u.useState(""),s=()=>{const f=t.get("from");e(f==="category"?-1:"/helpcenter")},l=`这是问题 "${n}" 的详细解答... - - 1. 第一步 - 首先,您需要了解这个功能的基本使用方法... - - 2. 重要说明 - 在操作过程中,请注意以下几点重要事项... - - 3. 具体步骤 - - 打开设置页面 - - 找到相关选项 - - 按照提示进行配置 - - 4. 常见问题 - 在使用过程中可能遇到以下问题... - - 5. 注意事项 - 请确保在操作时遵循以下建议... - - 6. 更多帮助 - 如果您需要更多帮助,可以... - `,c=f=>{f?console.log("Helpful feedback submitted"):i(!0)},d=()=>{console.log("Feedback submitted:",a),i(!1),o("")};return T.jsxs(utt,{children:[T.jsxs(dtt,{children:[T.jsxs(ftt,{onClick:s,children:[T.jsx(ytt,{}),"返回"]}),T.jsx(mtt,{children:n})]}),T.jsx(ptt,{children:l}),T.jsxs(htt,{children:[T.jsx("div",{children:"这个答案对您有帮助吗?"}),T.jsxs(vtt,{children:[T.jsx(KB,{$primary:!0,onClick:()=>c(!0),children:"有帮助"}),T.jsx(KB,{onClick:()=>c(!1),children:"没帮助"})]}),r&&T.jsxs(T.Fragment,{children:[T.jsx(gtt,{value:a,onChange:f=>o(f.target.value),placeholder:"请告诉我们您遇到了什么问题..."}),T.jsx(btt,{onClick:d,children:"提交反馈"})]})]})]})},xtt=Cn.div` - padding: 20px; - height: 100vh; - background: #fff; - display: flex; - flex-direction: column; - overflow-y: auto; - box-sizing: border-box; - width: 100%; - align-items: center; -`,Stt=Cn.div` - width: 100%; - max-width: 800px; - display: flex; - flex-direction: column; - align-items: flex-start; -`,Ctt=Cn.div` - display: flex; - align-items: center; - gap: 16px; - margin-bottom: 24px; - width: 100%; -`,_tt=Cn.button` - background: none; - border: none; - padding: 8px; - cursor: pointer; - color: #666; - display: flex; - align-items: center; - gap: 4px; - font-size: 14px; - transition: color 0.2s; - - &:hover { - color: #0066FF; - } - - svg { - width: 20px; - height: 20px; - } -`,ktt=Cn.h1` - font-size: 24px; - color: #333; - margin: 0; - flex: 1; -`,$tt=Cn.div` - display: flex; - flex-direction: column; - gap: 16px; - margin-bottom: 60px; - width: 100%; -`,Ett=Cn.div` - display: flex; - align-items: center; - gap: 12px; - padding: 12px 0; - border-bottom: 1px solid #f5f5f5; - cursor: pointer; - - &:hover { - opacity: 0.8; - } -`,Ptt=Cn.span` - color: ${e=>{switch(e.$index){case 1:return"#ff6b6b";case 2:return"#ff922b";case 3:return"#ffd43b";default:return"#868e96"}}}; - font-weight: 500; -`,Ttt=Cn.span` - color: #333; - flex: 1; -`,Ott=Cn.span` - color: #ccc; -`,Rtt=()=>T.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:T.jsx("path",{d:"M19 12H5M12 19l-7-7 7-7",strokeLinecap:"round",strokeLinejoin:"round"})}),Itt=()=>{const e=K0(),{id:t}=Twe();console.log("HelpCategory id: ",t);const[n]=Y0(),r=n.get("category"),i=["如何使用基础功能","如何配置高级设置","常见问题解答","功能使用技巧","系统使用指南","新手入门教程","进阶使用说明","问题排查指南"],a=()=>{e("/helpcenter")},o=s=>{e(`/helpdetail/${s+1}?question=${encodeURIComponent(i[s])}&from=category`)};return T.jsx(xtt,{children:T.jsxs(Stt,{children:[T.jsxs(Ctt,{children:[T.jsxs(_tt,{onClick:a,children:[T.jsx(Rtt,{}),"返回"]}),T.jsx(ktt,{children:r})]}),T.jsx($tt,{children:i.map((s,l)=>T.jsxs(Ett,{onClick:()=>o(l),children:[T.jsx(Ptt,{$index:l+1,children:l+1}),T.jsx(Ttt,{children:s}),T.jsx(Ott,{children:"›"})]},l))})]})})};var Mtt=A(A({},WX),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const Aie={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},NO={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Mtt),timePickerLocale:Object.assign({},Aie)};NO.lang.ok="确定";const Ka="${label}不是一个有效的${type}",Ntt={locale:"zh-cn",Pagination:nne,DatePicker:NO,TimePicker:Aie,Calendar:NO,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Ka,method:Ka,array:Ka,object:Ka,number:Ka,date:Ka,boolean:Ka,integer:Ka,float:Ka,regexp:Ka,email:Ka,url:Ka,hex:Ka},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}},lu=()=>{},ro=lu(),$w=Object,Hn=e=>e===ro,wl=e=>typeof e=="function",xc=(e,t)=>({...e,...t}),Dtt=e=>wl(e.then),ly=new WeakMap;let jtt=0;const c0=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,a;if($w(e)===e&&!r&&n!=RegExp){if(i=ly.get(e),i)return i;if(i=++jtt+"~",ly.set(e,i),n==Array){for(i="@",a=0;aY_&&typeof window.requestAnimationFrame!=IN,Lie=(e,t)=>{const n=nc.get(e);return[()=>!Hn(t)&&e.get(t)||v3,r=>{if(!Hn(t)){const i=e.get(t);t in cy||(cy[t]=i),n[5](t,xc(i,r),i||v3)}},n[6],()=>!Hn(t)&&t in cy?cy[t]:!Hn(t)&&e.get(t)||v3]};let jO=!0;const Att=()=>jO,[FO,AO]=Y_&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[lu,lu],Ltt=()=>{const e=DO&&document.visibilityState;return Hn(e)||e!=="hidden"},Btt=e=>(DO&&document.addEventListener("visibilitychange",e),FO("focus",e),()=>{DO&&document.removeEventListener("visibilitychange",e),AO("focus",e)}),ztt=e=>{const t=()=>{jO=!0,e()},n=()=>{jO=!1};return FO("online",t),FO("offline",n),()=>{AO("online",t),AO("offline",n)}},Htt={isOnline:Att,isVisible:Ltt},Vtt={initFocus:Btt,initReconnect:ztt},YB=!L.useId,u0=!Y_||"Deno"in window,Wtt=e=>Ftt()?window.requestAnimationFrame(e):setTimeout(e,1),Ew=u0?u.useEffect:u.useLayoutEffect,g3=typeof navigator<"u"&&navigator.connection,XB=!u0&&g3&&(["slow-2g","2g"].includes(g3.effectiveType)||g3.saveData),MN=e=>{if(wl(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?c0(e):"",[e,t]};let Utt=0;const LO=()=>++Utt,Bie=0,zie=1,Hie=2,qtt=3;var lv={__proto__:null,ERROR_REVALIDATE_EVENT:qtt,FOCUS_EVENT:Bie,MUTATE_EVENT:Hie,RECONNECT_EVENT:zie};async function Vie(...e){const[t,n,r,i]=e,a=xc({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.revalidate!==!1,d=p=>typeof s=="function"?s(p):s!==!1,f=a.throwOnError;if(wl(n)){const p=n,h=[],v=t.keys();for(const g of v)!/^\$(inf|sub)\$/.test(g)&&p(t.get(g)._k)&&h.push(g);return Promise.all(h.map(m))}return m(n);async function m(p){const[h]=MN(p);if(!h)return;const[v,g]=Lie(t,h),[w,y,b,x]=nc.get(t),C=w[h],S=()=>c&&(delete b[h],delete x[h],C&&C[0])?C[0](Hie).then(()=>v().data):v().data;if(e.length<3)return S();let _=r,k;const $=LO();y[h]=[$,0];const E=!Hn(l),P=v(),M=P.data,j=P._c,O=Hn(j)?M:j;if(E&&(l=wl(l)?l(O,M):l,g({data:l,_c:O})),wl(_))try{_=_(O)}catch(R){k=R}if(_&&Dtt(_))if(_=await _.catch(R=>{k=R}),$!==y[h][0]){if(k)throw k;return _}else k&&E&&d(k)&&(o=!0,_=O,g({data:_,_c:ro}));o&&(k||(wl(o)&&(_=o(_,O)),g({data:_,error:ro,_c:ro}))),y[h][1]=LO();const N=await S();if(g({_c:ro}),k){if(f)throw k;return}return o?N:_}}const QB=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Wie=(e,t)=>{if(!nc.has(e)){const n=xc(Vtt,t),r={},i=Vie.bind(ro,e);let a=lu;const o={},s=(d,f)=>{const m=o[d]||[];return o[d]=m,m.push(f),()=>m.splice(m.indexOf(f),1)},l=(d,f,m)=>{e.set(d,f);const p=o[d];if(p)for(const h of p)h(f,m)},c=()=>{if(!nc.has(e)&&(nc.set(e,[r,{},{},{},i,l,s]),!u0)){const d=n.initFocus(setTimeout.bind(ro,QB.bind(ro,r,Bie))),f=n.initReconnect(setTimeout.bind(ro,QB.bind(ro,r,zie)));a=()=>{d&&d(),f&&f(),nc.delete(e)}}};return c(),[e,i,c,a]}return[e,nc.get(e)[4]]},Gtt=(e,t,n,r,i)=>{const a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Hn(a)&&o>a||setTimeout(r,s,i)},Ktt=(e,t)=>c0(e)==c0(t),[NN,Ytt]=Wie(new Map),Uie=xc({onLoadingSlow:lu,onSuccess:lu,onError:lu,onErrorRetry:Gtt,onDiscarded:lu,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:XB?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:XB?5e3:3e3,compare:Ktt,isPaused:()=>!1,cache:NN,mutate:Ytt,fallback:{}},Htt),qie=(e,t)=>{const n=xc(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=xc(i,o))}return n},BO=u.createContext({}),Xtt=e=>{const{value:t}=e,n=u.useContext(BO),r=wl(t),i=u.useMemo(()=>r?t(n):t,[r,n,t]),a=u.useMemo(()=>r?i:qie(n,i),[r,n,i]),o=i&&i.provider,s=u.useRef(ro);o&&!s.current&&(s.current=Wie(o(a.cache||NN),i));const l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),Ew(()=>{if(l)return l[2]&&l[2](),l[3]},[]),u.createElement(BO.Provider,xc(e,{value:a}))},Gie=Y_&&window.__SWR_DEVTOOLS_USE__,Qtt=Gie?window.__SWR_DEVTOOLS_USE__:[],Ztt=()=>{Gie&&(window.__SWR_DEVTOOLS_REACT__=L)},Jtt=e=>wl(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Kie=()=>xc(Uie,u.useContext(BO)),ent=e=>(t,n,r)=>e(t,n&&((...a)=>{const[o]=MN(t),[,,,s]=nc.get(NN),l=s[o];return Hn(l)?n(...a):(delete s[o],l)}),r),tnt=Qtt.concat(ent),nnt=e=>function(...n){const r=Kie(),[i,a,o]=Jtt(n),s=qie(r,o);let l=e;const{use:c}=s,d=(c||[]).concat(tnt);for(let f=d.length;f--;)l=d[f](l);return l(i,a||s.fetcher||null,s)},rnt=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};Ztt();const ZB=L.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),b3={dedupe:!0},int=(e,t,n)=>{const{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:m}=n,[p,h,v,g]=nc.get(r),[w,y]=MN(e),b=u.useRef(!1),x=u.useRef(!1),C=u.useRef(w),S=u.useRef(t),_=u.useRef(n),k=()=>_.current,$=()=>k().isVisible()&&k().isOnline(),[E,P,M,j]=Lie(r,w),O=u.useRef({}).current,N=Hn(o)?n.fallback[w]:o,R=(J,Z)=>{for(const ee in O){const te=ee;if(te==="data"){if(!i(J[te],Z[te])&&(!Hn(J[te])||!i(U,Z[te])))return!1}else if(Z[te]!==J[te])return!1}return!0},D=u.useMemo(()=>{const J=!w||!t?!1:Hn(s)?k().isPaused()||a?!1:Hn(l)?!0:l:s,Z=pe=>{const ye=xc(pe);return delete ye._k,J?{isValidating:!0,isLoading:!0,...ye}:ye},ee=E(),te=j(),le=Z(ee),oe=ee===te?le:Z(te);let de=le;return[()=>{const pe=Z(E());return R(pe,de)?(de.data=pe.data,de.isLoading=pe.isLoading,de.isValidating=pe.isValidating,de.error=pe.error,de):(de=pe,pe)},()=>oe]},[r,w]),F=JG.useSyncExternalStore(u.useCallback(J=>M(w,(Z,ee)=>{R(ee,Z)||J()}),[r,w]),D[0],D[1]),z=!b.current,I=p[w]&&p[w].length>0,H=F.data,V=Hn(H)?N:H,B=F.error,W=u.useRef(V),U=m?Hn(H)?W.current:H:V,X=I&&!Hn(B)?!1:z&&!Hn(s)?s:k().isPaused()?!1:a?Hn(V)?!1:l:Hn(V)||l,q=!!(w&&t&&z&&X),Y=Hn(F.isValidating)?q:F.isValidating,re=Hn(F.isLoading)?q:F.isLoading,G=u.useCallback(async J=>{const Z=S.current;if(!w||!Z||x.current||k().isPaused())return!1;let ee,te,le=!0;const oe=J||{},de=!v[w]||!oe.dedupe,pe=()=>YB?!x.current&&w===C.current&&b.current:w===C.current,ye={isValidating:!1,isLoading:!1},me=()=>{P(ye)},xe=()=>{const ce=v[w];ce&&ce[1]===te&&delete v[w]},ue={isValidating:!0};Hn(E().data)&&(ue.isLoading=!0);try{if(de&&(P(ue),n.loadingTimeout&&Hn(E().data)&&setTimeout(()=>{le&&pe()&&k().onLoadingSlow(w,n)},n.loadingTimeout),v[w]=[Z(y),LO()]),[ee,te]=v[w],ee=await ee,de&&setTimeout(xe,n.dedupingInterval),!v[w]||v[w][1]!==te)return de&&pe()&&k().onDiscarded(w),!1;ye.error=ro;const ce=h[w];if(!Hn(ce)&&(te<=ce[0]||te<=ce[1]||ce[1]===0))return me(),de&&pe()&&k().onDiscarded(w),!1;const $e=E().data;ye.data=i($e,ee)?$e:ee,de&&pe()&&k().onSuccess(ee,w,n)}catch(ce){xe();const $e=k(),{shouldRetryOnError:se}=$e;$e.isPaused()||(ye.error=ce,de&&pe()&&($e.onError(ce,w,$e),(se===!0||wl(se)&&se(ce))&&$()&&$e.onErrorRetry(ce,w,$e,he=>{const ve=p[w];ve&&ve[0]&&ve[0](lv.ERROR_REVALIDATE_EVENT,he)},{retryCount:(oe.retryCount||0)+1,dedupe:!0})))}return le=!1,me(),!0},[w,r]),Q=u.useCallback((...J)=>Vie(r,C.current,...J),[]);if(Ew(()=>{S.current=t,_.current=n,Hn(H)||(W.current=H)}),Ew(()=>{if(!w)return;const J=G.bind(ro,b3);let Z=0;const te=rnt(w,p,(le,oe={})=>{if(le==lv.FOCUS_EVENT){const de=Date.now();k().revalidateOnFocus&&de>Z&&$()&&(Z=de+k().focusThrottleInterval,J())}else if(le==lv.RECONNECT_EVENT)k().revalidateOnReconnect&&$()&&J();else{if(le==lv.MUTATE_EVENT)return G();if(le==lv.ERROR_REVALIDATE_EVENT)return G(oe)}});return x.current=!1,C.current=w,b.current=!0,P({_k:y}),X&&(Hn(V)||u0?J():Wtt(J)),()=>{x.current=!0,te()}},[w]),Ew(()=>{let J;function Z(){const te=wl(c)?c(E().data):c;te&&J!==-1&&(J=setTimeout(ee,te))}function ee(){!E().error&&(d||k().isVisible())&&(f||k().isOnline())?G(b3).then(Z):Z()}return Z(),()=>{J&&(clearTimeout(J),J=-1)}},[c,d,f,w]),u.useDebugValue(U),a&&Hn(V)&&w){if(!YB&&u0)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,_.current=n,x.current=!1;const J=g[w];if(!Hn(J)){const Z=Q(J);ZB(Z)}if(Hn(B)){const Z=G(b3);Hn(U)||(Z.status="fulfilled",Z.value=!0),ZB(Z)}else throw B}return{mutate:Q,get data(){return O.data=!0,U},get error(){return O.error=!0,B},get isValidating(){return O.isValidating=!0,Y},get isLoading(){return O.isLoading=!0,re}}},ant=$w.defineProperty(Xtt,"defaultValue",{value:Uie}),Yie=nnt(int);function JB(e){return u.isValidElement(e)&&!Yy.isFragment(e)}Number(u.version.split(".")[0])>=19;function _d(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!_d(e,t.slice(0,-1))?e:Xie(e,t,n,r)}const ont={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},snt={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},lnt={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},cnt={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},unt={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},dnt={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},fnt={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},mnt={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},pnt={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},hnt={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},vnt={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},gnt={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},bnt={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},ynt={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},wnt={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},xnt={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},Snt={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},Cnt={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},_nt={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},knt={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},$nt={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},Ent={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},Pnt={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},Tnt={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},Ont={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},Rnt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},Int={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},Mnt={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},Nnt={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}},Dnt={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},jnt={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},Fnt={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}};var qn=function(t,n){return{getMessage:function(i,a){var o=_d(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(o)return o;var s=t.replace("_","-");if(s==="zh-CN")return a;var l=of["zh-CN"];return l?l.getMessage(i,a):a},locale:t}},Ant=qn("mn_MN",xnt),Lnt=qn("ar_EG",ont),Gm=qn("zh_CN",Mnt),Bnt=qn("en_US",dnt),znt=qn("en_GB",unt),Hnt=qn("vi_VN",Int),Vnt=qn("it_IT",bnt),Wnt=qn("ja_JP",ynt),Unt=qn("es_ES",fnt),qnt=qn("ca_ES",snt),Gnt=qn("ru_RU",knt),Knt=qn("sr_RS",Ent),Ynt=qn("ms_MY",Snt),Xnt=qn("zh_TW",Nnt),Qnt=qn("fr_FR",pnt),Znt=qn("pt_BR",_nt),Jnt=qn("ko_KR",wnt),ert=qn("id_ID",gnt),trt=qn("de_DE",cnt),nrt=qn("fa_IR",mnt),rrt=qn("tr_TR",Tnt),irt=qn("pl_PL",Cnt),art=qn("hr_",vnt),ort=qn("th_TH",Pnt),srt=qn("cs_cz",lnt),lrt=qn("sk_SK",$nt),crt=qn("he_IL",hnt),urt=qn("uk_UA",Ont),drt=qn("uz_UZ",Rnt),frt=qn("nl_NL",Dnt),mrt=qn("ro_RO",jnt),prt=qn("sv_SE",Fnt),of={"mn-MN":Ant,"ar-EG":Lnt,"zh-CN":Gm,"en-US":Bnt,"en-GB":znt,"vi-VN":Hnt,"it-IT":Vnt,"ja-JP":Wnt,"es-ES":Unt,"ca-ES":qnt,"ru-RU":Gnt,"sr-RS":Knt,"ms-MY":Ynt,"zh-TW":Xnt,"fr-FR":Qnt,"pt-BR":Znt,"ko-KR":Jnt,"id-ID":ert,"de-DE":trt,"fa-IR":nrt,"tr-TR":rrt,"pl-PL":irt,"hr-HR":art,"th-TH":ort,"cs-CZ":srt,"sk-SK":lrt,"he-IL":crt,"uk-UA":urt,"uz-UZ":drt,"nl-NL":frt,"ro-RO":mrt,"sv-SE":prt},hrt=Object.keys(of),Qie=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return hrt.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function Fi(e,t){vrt(e)&&(e="100%");var n=grt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function uy(e){return Math.min(1,Math.max(0,e))}function vrt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function grt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Zie(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function dy(e){return e<=1?"".concat(Number(e)*100,"%"):e}function kd(e){return e.length===1?"0"+e:String(e)}function brt(e,t,n){return{r:Fi(e,255)*255,g:Fi(t,255)*255,b:Fi(n,255)*255}}function ez(e,t,n){e=Fi(e,255),t=Fi(t,255),n=Fi(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yrt(e,t,n){var r,i,a;if(e=Fi(e,360),t=Fi(t,100),n=Fi(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=y3(s,o,e+1/3),i=y3(s,o,e),a=y3(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function tz(e,t,n){e=Fi(e,255),t=Fi(t,255),n=Fi(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var zO={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function _rt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=Ert(e)),typeof e=="object"&&(Vl(e.r)&&Vl(e.g)&&Vl(e.b)?(t=brt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Vl(e.h)&&Vl(e.s)&&Vl(e.v)?(r=dy(e.s),i=dy(e.v),t=wrt(e.h,r,i),o=!0,s="hsv"):Vl(e.h)&&Vl(e.s)&&Vl(e.l)&&(r=dy(e.s),a=dy(e.l),t=yrt(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Zie(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var krt="[-\\+]?\\d+%?",$rt="[-\\+]?\\d*\\.\\d+%?",cu="(?:".concat($rt,")|(?:").concat(krt,")"),w3="[\\s|\\(]+(".concat(cu,")[,|\\s]+(").concat(cu,")[,|\\s]+(").concat(cu,")\\s*\\)?"),x3="[\\s|\\(]+(".concat(cu,")[,|\\s]+(").concat(cu,")[,|\\s]+(").concat(cu,")[,|\\s]+(").concat(cu,")\\s*\\)?"),us={CSS_UNIT:new RegExp(cu),rgb:new RegExp("rgb"+w3),rgba:new RegExp("rgba"+x3),hsl:new RegExp("hsl"+w3),hsla:new RegExp("hsla"+x3),hsv:new RegExp("hsv"+w3),hsva:new RegExp("hsva"+x3),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ert(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(zO[e])e=zO[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=us.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=us.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=us.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=us.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=us.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=us.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=us.hex8.exec(e),n?{r:Xa(n[1]),g:Xa(n[2]),b:Xa(n[3]),a:rz(n[4]),format:t?"name":"hex8"}:(n=us.hex6.exec(e),n?{r:Xa(n[1]),g:Xa(n[2]),b:Xa(n[3]),format:t?"name":"hex"}:(n=us.hex4.exec(e),n?{r:Xa(n[1]+n[1]),g:Xa(n[2]+n[2]),b:Xa(n[3]+n[3]),a:rz(n[4]+n[4]),format:t?"name":"hex8"}:(n=us.hex3.exec(e),n?{r:Xa(n[1]+n[1]),g:Xa(n[2]+n[2]),b:Xa(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Vl(e){return!!us.CSS_UNIT.exec(String(e))}var Prt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Crt(t)),this.originalInput=t;var i=_rt(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Zie(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=tz(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=tz(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ez(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ez(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),nz(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),xrt(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Fi(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Fi(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+nz(this.r,this.g,this.b,!1),n=0,r=Object.entries(zO);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=uy(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=uy(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=uy(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=uy(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,i=1103547991^n,a=0,o;a>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)},DN=Zd(function(e){return e}),eae={theme:DN,token:A(A({},d0),ii==null||(S3=ii.defaultAlgorithm)===null||S3===void 0?void 0:S3.call(ii,ii==null?void 0:ii.defaultSeed)),hashId:"pro-".concat(Jie(JSON.stringify(d0)))},Trt=function(){return eae};const Ort=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:d0,emptyTheme:DN,hashCode:Jie,token:eae,useToken:Trt},Symbol.toStringTag,{value:"Module"}));var Ro=function(t,n){return new Prt(t).setAlpha(n).toRgbString()},Rrt=function(){return typeof ii>"u"||!ii?Ort:ii},Rl=Rrt(),Pw=Rl.useToken;function La(e,t){var n,r=u.useContext(_3),i=r.token,a=i===void 0?{}:i,o=u.useContext(_3),s=o.hashed,l=Pw(),c=l.token,d=l.hashId,f=u.useContext(_3),m=f.theme,p=u.useContext(en.ConfigContext),h=p.getPrefixCls,v=p.csp;return a.layout||(a=A({},c)),a.proComponentsCls=(n=a.proComponentsCls)!==null&&n!==void 0?n:".".concat(h("pro")),a.antCls=".".concat(h()),{wrapSSR:Dx({theme:m,token:a,path:[e],nonce:v==null?void 0:v.nonce},function(){return t(a)}),hashId:s?d:""}}var Irt=function(t,n){var r,i,a,o,s,l=A({},t);return A(A({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:Ro(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:A({colorBgHeader:Ro(n.colorBgElevated,.6),colorBgScrollHeader:Ro(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:Ro(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(i=l.header)===null||i===void 0?void 0:i.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=l.header)===null||a===void 0?void 0:a.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:Ro(n.colorTextBase,.95),colorBgRightActionsItemHover:Ro(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:A({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:Ro(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:Ro(n.colorTextBase,.06),colorBgMenuItemHover:Ro(n.colorTextBase,.03),colorBgMenuItemSelected:Ro(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:Ro(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:Ro(n.colorTextBase,.95)},l.sider),pageContainer:A({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((o=l.pageContainer)===null||o===void 0?void 0:o.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},Mrt=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i1,J=N.getMessage("form.lightFilter.itemUnit","项");return typeof q=="string"&&q.length>C&&Q?"...".concat(B.length).concat(J):""},re=Y();return T.jsxs("span",{title:typeof q=="string"?q:void 0,style:{display:"inline-flex",alignItems:"center"},children:[X,T.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof q=="string"?q==null||(W=q.toString())===null||W===void 0||(U=W.substr)===null||U===void 0?void 0:U.call(W,0,C):q}),re]})}return V||m};return j(T.jsxs("span",{className:ne(P,O,"".concat(P,"-").concat((i=(a=t.size)!==null&&a!==void 0?a:k)!==null&&i!==void 0?i:"middle"),K(K(K(K({},"".concat(P,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(P,"-disabled"),c),"".concat(P,"-bordered"),v),"".concat(P,"-allow-clear"),b),p),style:g,ref:D,onClick:function(){var V;t==null||(V=t.onClick)===null||V===void 0||V.call(t)},children:[I(o,l),(l||l===0)&&b&&T.jsx($c,{role:"button",title:N.getMessage("form.lightFilter.clear","清除"),className:ne("".concat(P,"-icon"),O,"".concat(P,"-close")),onClick:function(V){c||s==null||s(),V.stopPropagation()},ref:R}),w!==!1?w??T.jsx(J0,{className:ne("".concat(P,"-icon"),O,"".concat(P,"-arrow"))}):null]}))},Rc=L.forwardRef(qrt),Ss=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},Grt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,iz=function(t){return t==="*"||t==="x"||t==="X"},az=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},Krt=function(t,n){return mt(t)!==mt(n)?[String(t),String(n)]:[t,n]},Yrt=function(t,n){if(iz(t)||iz(n))return 0;var r=Krt(az(t),az(n)),i=ie(r,2),a=i[0],o=i[1];return a>o?1:a"u"?Zg:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||Zg},tae=function(t,n){var r=jN(Qrt(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return Ss(r)},Zrt=function(t){return K(K(K({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function Jrt(e){return La("FilterDropdown",function(t){var n=A(A({},t),{},{componentCls:".".concat(e)});return[Zrt(n)]})}var eit=function(t){var n=t.children,r=t.label,i=t.footer,a=t.open,o=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,d=t.footerRender,f=t.placement,m=u.useContext(en.ConfigContext),p=m.getPrefixCls,h=p("pro-core-field-dropdown"),v=Jrt(h),g=v.wrapSSR,w=v.hashId,y=tae(a||c||!1,o||l),b=u.useRef(null);return g(T.jsx(Sf,A(A({placement:f,trigger:["click"]},y),{},{overlayInnerStyle:{padding:0},content:T.jsxs("div",{ref:b,className:ne("".concat(h,"-overlay"),K(K({},"".concat(h,"-overlay-").concat(f),f),"hashId",w)),children:[T.jsx(en,{getPopupContainer:function(){return b.current||document.body},children:T.jsx("div",{className:"".concat(h,"-content ").concat(w).trim(),children:n})}),i&&T.jsx(Vrt,A({disabled:s,footerRender:d},i))]}),children:T.jsx("span",{className:"".concat(h,"-label ").concat(w).trim(),children:r})})))},tit=function(t){return K({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function nit(e){return La("LabelIconTip",function(t){var n=A(A({},t),{},{componentCls:".".concat(e)});return[tit(n)]})}var rit=L.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,a=u.useContext(en.ConfigContext),o=a.getPrefixCls,s=o("pro-core-label-tip"),l=nit(s),c=l.wrapSSR,d=l.hashId;if(!n&&!i)return T.jsx(T.Fragment,{children:t});var f=typeof n=="string"||L.isValidElement(n)?{title:n}:n,m=(f==null?void 0:f.icon)||T.jsx(B$e,{});return c(T.jsxs("div",{className:ne(s,d),onMouseDown:function(h){return h.stopPropagation()},onMouseLeave:function(h){return h.stopPropagation()},onMouseMove:function(h){return h.stopPropagation()},children:[T.jsx("div",{className:ne("".concat(s,"-title"),d,K({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&T.jsx("div",{className:"".concat(s,"-subtitle ").concat(d).trim(),children:i}),n&&T.jsx(na,A(A({},f),{},{children:T.jsx("span",{className:"".concat(s,"-icon ").concat(d).trim(),children:m})}))]}))}),nae=L.createContext({}),rae={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(pi,function(){var n="month",r="quarter";return function(i,a){var o=a.prototype;o.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=o.add;o.add=function(c,d){return c=Number(c),this.$utils().p(d)===r?this.add(3*c,n):s.bind(this)(c,d)};var l=o.startOf;o.startOf=function(c,d){var f=this.$utils(),m=!!f.u(d)||d;if(f.p(c)===r){var p=this.quarter()-1;return m?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return l.bind(this)(c,d)}}})})(rae);var iit=rae.exports;const ait=Wn(iit);var sf=function(t){return t==null};dn.extend(ait);var iae={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function sz(e){return Object.prototype.toString.call(e)==="[object Object]"}function oit(e){if(sz(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(sz(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var HO=function(t){return!!(t!=null&&t._isAMomentObject)},lz=function(t,n,r){if(!n)return t;if(dn.isDayjs(t)||HO(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(iae[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},sit=function e(t,n,r,i,a){var o={};return typeof window>"u"||mt(t)!=="object"||sf(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=a?[a,s].flat(1):[s],c=$i(r,l)||"text",d="text",f;typeof c=="string"?d=c:c&&(d=c.valueType,f=c.dateFormat);var m=t[s];if(!(sf(m)&&i)){if(oit(m)&&!Array.isArray(m)&&!dn.isDayjs(m)&&!HO(m)){o[s]=e(m,n,r,i,l);return}if(Array.isArray(m)){o[s]=m.map(function(p,h){return dn.isDayjs(p)||HO(p)?lz(p,f||n,d):e(p,n,r,i,[s,"".concat(h)].flat(1))});return}o[s]=lz(m,f||n,d)}}),o)},cz=function(t,n){return typeof n=="function"?n(dn(t)):dn(t).format(n)},lit=function(t,n){var r=Array.isArray(t)?t:[],i=ie(r,2),a=i[0],o=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):mt(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=a?cz(a,s):"",d=o?cz(o,l):"",f=c&&d?"".concat(c," ~ ").concat(d):"";return f};function bS(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=u.useState(e),i=ie(r,2),a=i[0],o=i[1],s=cit(e);return u.useEffect(function(){var l=setTimeout(function(){o(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(Fe(n)):void 0),a}function Ld(e,t,n,r){if(e===t)return!0;if(e&&t&&mt(e)==="object"&&mt(t)==="object"){if(e.constructor!==t.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!Ld(e[a],t[a],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=fw(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(a=l.value,!t.has(a[0]))return!1}catch(h){s.e(h)}finally{s.f()}var c=fw(e.entries()),d;try{for(c.s();!(d=c.n()).done;)if(a=d.value,!Ld(a[1],t.get(a[0]),n,r))return!1}catch(h){c.e(h)}finally{c.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=fw(e.entries()),m;try{for(f.s();!(m=f.n()).done;)if(a=m.value,!t.has(a[0]))return!1}catch(h){f.e(h)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(t).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[a]))return!1;for(a=i;a--!==0;){var p=o[a];if(!(n!=null&&n.includes(p))&&!(p==="_owner"&&e.$$typeof)&&!Ld(e[p],t[p],n,r))return!1}return!0}return e!==e&&t!==t}var dit=function(t,n,r){return Ld(t,n,r)};function aae(e,t){var n=u.useRef();return dit(e,n.current,t)||(n.current=e),n.current}function fit(e,t,n){u.useEffect(e,aae(t||[],n))}function ka(e,t){return L.useMemo(e,aae(t))}var k3=0;function mit(e){var t=u.useRef(null),n=u.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(k3+=1,k3.toString())}),r=ie(n,1),i=r[0],a=u.useRef(i),o=function(){var d=Ki(Bn().mark(function f(){var m,p,h,v;return Bn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return(m=t.current)===null||m===void 0||m.abort(),h=new AbortController,t.current=h,w.next=5,Promise.race([(p=e.request)===null||p===void 0?void 0:p.call(e,e.params,e),new Promise(function(y,b){var x;(x=t.current)===null||x===void 0||(x=x.signal)===null||x===void 0||x.addEventListener("abort",function(){b(new Error("aborted"))})})]);case 5:return v=w.sent,w.abrupt("return",v);case 7:case"end":return w.stop()}},f)}));return function(){return d.apply(this,arguments)}}();u.useEffect(function(){return function(){k3+=1}},[]);var s=Yie([a.current,e.params],o,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var pit=function(t){var n=u.useRef();return u.useEffect(function(){n.current=t}),n.current},hit=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n},oae=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(uz+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var i=63&r[t];n+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return n},yS=function(){return typeof window>"u"?dz():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():dz()};dn.extend(GJ);var fz=function(t){return!!(t!=null&&t._isAMomentObject)},$1=function e(t,n){return sf(t)||dn.isDayjs(t)||fz(t)?fz(t)?dn(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?dn(t):dn(t,n)},vit=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function git(e){var t={};return vit.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var bit="valueType request plain renderFormItem render text formItemProps valueEnum",yit="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function sae(e){var t="".concat(bit," ").concat(yit).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function wit(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&mt(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var xit=function(t){var n=t.color,r=t.children;return T.jsx(Za,{color:n,text:r})},Ic=function(t){return wit(t)==="map"?t:new Map(Object.entries(t||{}))},Sit={Success:function(t){var n=t.children;return T.jsx(Za,{status:"success",text:n})},Error:function(t){var n=t.children;return T.jsx(Za,{status:"error",text:n})},Default:function(t){var n=t.children;return T.jsx(Za,{status:"default",text:n})},Processing:function(t){var n=t.children;return T.jsx(Za,{status:"processing",text:n})},Warning:function(t){var n=t.children;return T.jsx(Za,{status:"warning",text:n})},success:function(t){var n=t.children;return T.jsx(Za,{status:"success",text:n})},error:function(t){var n=t.children;return T.jsx(Za,{status:"error",text:n})},default:function(t){var n=t.children;return T.jsx(Za,{status:"default",text:n})},processing:function(t){var n=t.children;return T.jsx(Za,{status:"processing",text:n})},warning:function(t){var n=t.children;return T.jsx(Za,{status:"warning",text:n})}},hh=function e(t,n,r){if(Array.isArray(t))return T.jsx(Ws,{split:",",size:2,wrap:!0,children:t.map(function(c,d){return e(c,n,d)})},r);var i=Ic(n);if(!i.has(t)&&!i.has("".concat(t)))return(t==null?void 0:t.label)||t;var a=i.get(t)||i.get("".concat(t));if(!a)return T.jsx(L.Fragment,{children:(t==null?void 0:t.label)||t},r);var o=a.status,s=a.color,l=Sit[o||"Init"];return l?T.jsx(l,{children:a.text},r):s?T.jsx(xit,{color:s,children:a.text},r):T.jsx(L.Fragment,{children:a.text||a},r)},VO={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=w();r.configure=w,r.stringify=r,r.default=r,t.stringify=r,t.configure=w,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function a(y){return y.length<5e3&&!i.test(y)?`"${y}"`:JSON.stringify(y)}function o(y,b){if(y.length>200||b)return y.sort(b);for(let x=1;xC;)y[S]=y[S-1],S--;y[S]=C}return y}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(y){return s.call(y)!==void 0&&y.length!==0}function c(y,b,x){y.length= 1`)}return x===void 0?1/0:x}function h(y){return y===1?"1 item":`${y} items`}function v(y){const b=new Set;for(const x of y)(typeof x=="string"||typeof x=="number")&&b.add(String(x));return b}function g(y){if(n.call(y,"strict")){const b=y.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)return x=>{let C=`Object can not safely be stringified. Received type ${typeof x}`;throw typeof x!="function"&&(C+=` (${x.toString()})`),new Error(C)}}}function w(y){y={...y};const b=g(y);b&&(y.bigint===void 0&&(y.bigint=!1),"circularValue"in y||(y.circularValue=Error));const x=d(y),C=m(y,"bigint"),S=f(y),_=typeof S=="function"?S:void 0,k=p(y,"maximumDepth"),$=p(y,"maximumBreadth");function E(N,R,D,F,z,I){let H=R[N];switch(typeof H=="object"&&H!==null&&typeof H.toJSON=="function"&&(H=H.toJSON(N)),H=F.call(R,N,H),typeof H){case"string":return a(H);case"object":{if(H===null)return"null";if(D.indexOf(H)!==-1)return x;let V="",B=",";const W=I;if(Array.isArray(H)){if(H.length===0)return"[]";if(k$){const Z=H.length-$-1;V+=`${B}"... ${h(Z)} not stringified"`}return z!==""&&(V+=` -${W}`),D.pop(),`[${V}]`}let U=Object.keys(H);const X=U.length;if(X===0)return"{}";if(k$){const G=X-$;V+=`${Y}"...":${q}"${h(G)} not stringified"`,Y=B}return z!==""&&Y.length>1&&(V=` -${I}${V} -${W}`),D.pop(),`{${V}}`}case"number":return isFinite(H)?String(H):b?b(H):"null";case"boolean":return H===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(H);default:return b?b(H):void 0}}function P(N,R,D,F,z,I){switch(typeof R=="object"&&R!==null&&typeof R.toJSON=="function"&&(R=R.toJSON(N)),typeof R){case"string":return a(R);case"object":{if(R===null)return"null";if(D.indexOf(R)!==-1)return x;const H=I;let V="",B=",";if(Array.isArray(R)){if(R.length===0)return"[]";if(k$){const re=R.length-$-1;V+=`${B}"... ${h(re)} not stringified"`}return z!==""&&(V+=` -${H}`),D.pop(),`[${V}]`}D.push(R);let W="";z!==""&&(I+=z,B=`, -${I}`,W=" ");let U="";for(const X of F){const q=P(X,R[X],D,F,z,I);q!==void 0&&(V+=`${U}${a(X)}:${W}${q}`,U=B)}return z!==""&&U.length>1&&(V=` -${I}${V} -${H}`),D.pop(),`{${V}}`}case"number":return isFinite(R)?String(R):b?b(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(R);default:return b?b(R):void 0}}function M(N,R,D,F,z){switch(typeof R){case"string":return a(R);case"object":{if(R===null)return"null";if(typeof R.toJSON=="function"){if(R=R.toJSON(N),typeof R!="object")return M(N,R,D,F,z);if(R===null)return"null"}if(D.indexOf(R)!==-1)return x;const I=z;if(Array.isArray(R)){if(R.length===0)return"[]";if(k$){const J=R.length-$-1;q+=`${Y}"... ${h(J)} not stringified"`}return q+=` -${I}`,D.pop(),`[${q}]`}let H=Object.keys(R);const V=H.length;if(V===0)return"{}";if(k$){const q=V-$;W+=`${U}"...": "${h(q)} not stringified"`,U=B}return U!==""&&(W=` -${z}${W} -${I}`),D.pop(),`{${W}}`}case"number":return isFinite(R)?String(R):b?b(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(R);default:return b?b(R):void 0}}function j(N,R,D){switch(typeof R){case"string":return a(R);case"object":{if(R===null)return"null";if(typeof R.toJSON=="function"){if(R=R.toJSON(N),typeof R!="object")return j(N,R,D);if(R===null)return"null"}if(D.indexOf(R)!==-1)return x;let F="";const z=R.length!==void 0;if(z&&Array.isArray(R)){if(R.length===0)return"[]";if(k$){const q=R.length-$-1;F+=`,"... ${h(q)} not stringified"`}return D.pop(),`[${F}]`}let I=Object.keys(R);const H=I.length;if(H===0)return"{}";if(k$){const W=H-$;F+=`${V}"...":"${h(W)} not stringified"`}return D.pop(),`{${F}}`}case"number":return isFinite(R)?String(R):b?b(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(R);default:return b?b(R):void 0}}function O(N,R,D){if(arguments.length>1){let F="";if(typeof D=="number"?F=" ".repeat(Math.min(D,10)):typeof D=="string"&&(F=D.slice(0,10)),R!=null){if(typeof R=="function")return E("",{"":N},[],R,F,"");if(Array.isArray(R))return P("",N,[],v(R),F,"")}if(F.length!==0)return M("",N,[],F,"")}return j("",N,[])}return O}})(VO,VO.exports);var Cit=VO.exports;const _it=Wn(Cit),kit=_it.configure;var mz=kit({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function $it(){this.__data__=[],this.size=0}function X_(e,t){return e===t||e!==e&&t!==t}function Q_(e,t){for(var n=e.length;n--;)if(X_(e[n][0],t))return n;return-1}var Eit=Array.prototype,Pit=Eit.splice;function Tit(e){var t=this.__data__,n=Q_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Pit.call(t,n,1),--this.size,!0}function Oit(e){var t=this.__data__,n=Q_(t,e);return n<0?void 0:t[n][1]}function Rit(e){return Q_(this.__data__,e)>-1}function Iit(e,t){var n=this.__data__,r=Q_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Mc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=Dat}function J_(e){return e!=null&&gae(e.length)&&!FN(e)}function jat(e){return Uu(e)&&J_(e)}function Fat(){return!1}var bae=typeof lo=="object"&&lo&&!lo.nodeType&&lo,Sz=bae&&typeof Xi=="object"&&Xi&&!Xi.nodeType&&Xi,Aat=Sz&&Sz.exports===bae,Cz=Aat?Al.Buffer:void 0,Lat=Cz?Cz.isBuffer:void 0,HN=Lat||Fat,Bat="[object Object]",zat=Function.prototype,Hat=Object.prototype,yae=zat.toString,Vat=Hat.hasOwnProperty,Wat=yae.call(Object);function wae(e){if(!Uu(e)||Of(e)!=Bat)return!1;var t=BN(e);if(t===null)return!0;var n=Vat.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&yae.call(n)==Wat}var Uat="[object Arguments]",qat="[object Array]",Gat="[object Boolean]",Kat="[object Date]",Yat="[object Error]",Xat="[object Function]",Qat="[object Map]",Zat="[object Number]",Jat="[object Object]",eot="[object RegExp]",tot="[object Set]",not="[object String]",rot="[object WeakMap]",iot="[object ArrayBuffer]",aot="[object DataView]",oot="[object Float32Array]",sot="[object Float64Array]",lot="[object Int8Array]",cot="[object Int16Array]",uot="[object Int32Array]",dot="[object Uint8Array]",fot="[object Uint8ClampedArray]",mot="[object Uint16Array]",pot="[object Uint32Array]",Cr={};Cr[oot]=Cr[sot]=Cr[lot]=Cr[cot]=Cr[uot]=Cr[dot]=Cr[fot]=Cr[mot]=Cr[pot]=!0;Cr[Uat]=Cr[qat]=Cr[iot]=Cr[Gat]=Cr[aot]=Cr[Kat]=Cr[Yat]=Cr[Xat]=Cr[Qat]=Cr[Zat]=Cr[Jat]=Cr[eot]=Cr[tot]=Cr[not]=Cr[rot]=!1;function hot(e){return Uu(e)&&gae(e.length)&&!!Cr[Of(e)]}function VN(e){return function(t){return e(t)}}var xae=typeof lo=="object"&&lo&&!lo.nodeType&&lo,cg=xae&&typeof Xi=="object"&&Xi&&!Xi.nodeType&&Xi,vot=cg&&cg.exports===xae,E3=vot&&lae.process,Op=function(){try{var e=cg&&cg.require&&cg.require("util").types;return e||E3&&E3.binding&&E3.binding("util")}catch{}}(),_z=Op&&Op.isTypedArray,Sae=_z?VN(_z):hot;function UO(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var got=Object.prototype,bot=got.hasOwnProperty;function Cae(e,t,n){var r=e[t];(!(bot.call(e,t)&&X_(r,n))||n===void 0&&!(t in e))&&AN(e,t,n)}function vh(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a-1&&e%1==0&&e0){if(++t>=Mot)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Tae=jot(Iot);function Fot(e,t){return Tae(Pae(e,t,Eae),e+"")}function Aot(e,t,n){if(!Ml(n))return!1;var r=typeof t;return(r=="number"?J_(n)&&_ae(t,n.length):r=="string"&&t in n)?X_(n[t],e):!1}function Lot(e){return Fot(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&Aot(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,i=Object.keys(n).reduce(function(s,l){var c=n[l];return sf(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||mt(t)!=="object"||sf(t)||t instanceof Blob)return t;var a=Array.isArray(t)?[]:{},o=function s(l,c){var d=Array.isArray(l),f=d?[]:{};return l==null||l===void 0?f:(Object.keys(l).forEach(function(m){var p=function b(x,C){return Array.isArray(x)&&x.forEach(function(S,_){if(S){var k=C==null?void 0:C[_];typeof S=="function"&&(C[_]=S(C,m,l)),mt(S)==="object"&&!Array.isArray(S)&&Object.keys(S).forEach(function($){var E=k==null?void 0:k[$];if(typeof S[$]=="function"&&E){var P=S[$](k[$],m,l);k[$]=mt(P)==="object"?P[$]:P}else mt(S[$])==="object"&&Array.isArray(S[$])&&E&&b(S[$],E)}),mt(S)==="object"&&Array.isArray(S)&&k&&b(S,k)}}),m},h=c?[c,m].flat(1):[m].flat(1),v=l[m],g=$i(i,h),w=function(){var x,C,S=!1;if(typeof g=="function"){C=g==null?void 0:g(v,m,l);var _=mt(C);_!=="object"&&_!=="undefined"?(x=m,S=!0):x=C}else x=p(g,v);if(Array.isArray(x)){f=da(f,x,v);return}mt(x)==="object"&&!Array.isArray(a)?a=Bot(a,x):mt(x)==="object"&&Array.isArray(a)?f=A(A({},f),x):(x!==null||x!==void 0)&&(f=da(f,[x],S?C:v))};if(g&&typeof g=="function"&&w(),!(typeof window>"u")){if(zot(v)){var y=s(v,h);if(Object.keys(y).length<1)return;f=da(f,[m],y);return}w()}}),r?f:l)};return a=Array.isArray(t)&&Array.isArray(a)?Fe(o(t)):oae({},o(t),a),a},wo=function(t){return t===void 0?{}:jN(Zg,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function Us(e,t){for(var n=Object.assign({},e),r=0;r"u"||!window.URL)return{};var d=[];o.forEach(function(m,p){d.push({key:p,value:m})}),d=d.reduce(function(m,p){return(m[p.key]=m[p.key]||[]).push(p),m},{}),d=Object.keys(d).map(function(m){var p=d[m];return p.length===1?[m,p[0].value]:[m,p.map(function(h){var v=h.value;return v})]});var f=ug({},e);return d.forEach(function(m){var p=m[0],h=m[1];f[p]=qot(p,h,{},e)}),f},[t.disabled,e,o]);function l(d){if(!(typeof window>"u"||!window.URL)){var f=Vot(d);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),o.toString()!==f.searchParams.toString()&&i({})}}u.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(ug(ug({},e),s))},[t.disabled,s]);var c=function(d){l(d)};return u.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var d=function(){i({})};return window.addEventListener("popstate",d),function(){window.removeEventListener("popstate",d)}},[t.disabled]),[s,c]}var Uot={true:!0,false:!1};function qot(e,t,n,r){if(!n)return t;var i=n[e],a=t===void 0?r[e]:t;return i===Number?Number(a):i===Boolean||t==="true"||t==="false"?Uot[a]:Array.isArray(i)?i.find(function(o){return o==a})||r[e]:a}var ek=L.createContext({}),Got=["children","Wrapper"],Kot=["children","Wrapper"],Oae=u.createContext({grid:!1,colProps:void 0,rowProps:void 0}),Yot=function(t){var n=t.grid,r=t.rowProps,i=t.colProps;return{grid:!!n,RowWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=ft(o,Got);return n?T.jsx($f,A(A(A({gutter:8},r),c),{},{children:s})):l?T.jsx(l,{children:s}):s},ColWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,c=ft(o,Kot),d=u.useMemo(function(){var f=A(A({},i),c);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[c]);return n?T.jsx(Zi,A(A({},d),{},{children:s})):l?T.jsx(l,{children:s}):s}}},WN=function(t){var n=u.useMemo(function(){return mt(t)==="object"?t:{grid:t}},[t]),r=u.useContext(Oae),i=r.grid,a=r.colProps;return u.useMemo(function(){return Yot({grid:!!(i||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||a,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,i,JSON.stringify([a,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},Xot=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],Qot=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],$z={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},Zot=["switch","radioButton","radio","rate"];function Rae(e,t){e.displayName="ProFormComponent";var n=function(a){var o=A(A({},a==null?void 0:a.filedConfig),t),s=o.valueType,l=o.customLightMode,c=o.lightFilterLabelFormatter,d=o.valuePropName,f=d===void 0?"value":d,m=o.ignoreWidth,p=o.defaultProps,h=ft(o,Xot),v=A(A({},p),a),g=v.label,w=v.tooltip,y=v.placeholder,b=v.width,x=v.bordered,C=v.messageVariables,S=v.ignoreFormItem,_=v.transform,k=v.convertValue,$=v.readonly,E=v.allowClear;v.colSize;var P=v.getFormItemProps,M=v.getFieldProps;v.filedConfig;var j=v.cacheForSwr,O=v.proFieldProps,N=ft(v,Qot),R=s||N.valueType,D=u.useMemo(function(){return m||Zot.includes(R)},[m,R]),F=u.useState(),z=ie(F,2),I=z[1],H=u.useState(),V=ie(H,2),B=V[0],W=V[1],U=L.useContext(ek),X=ka(function(){return{formItemProps:P==null?void 0:P(),fieldProps:M==null?void 0:M()}},[M,P,N.dependenciesValues,B]),q=ka(function(){var ue=A(A(A(A({},S?Ss({value:N.value}):{}),{},{placeholder:y,disabled:a.disabled},U.fieldProps),X.fieldProps),N.fieldProps);return ue.style=Ss(ue==null?void 0:ue.style),ue},[S,N.value,N.fieldProps,y,a.disabled,U.fieldProps,X.fieldProps]),Y=git(N),re=ka(function(){return A(A(A(A({},U.formItemProps),Y),X.formItemProps),N.formItemProps)},[X.formItemProps,U.formItemProps,N.formItemProps,Y]),G=ka(function(){return A(A({messageVariables:C},h),re)},[h,re,C]);Mx(!N.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var Q=u.useContext(Tu),J=Q.prefixName,Z=ka(function(){var ue,ce=G==null?void 0:G.name;Array.isArray(ce)&&(ce=ce.join("_")),Array.isArray(J)&&ce&&(ce="".concat(J.join("."),".").concat(ce));var $e=ce&&"form-".concat((ue=U.formKey)!==null&&ue!==void 0?ue:"","-field-").concat(ce);return $e},[mz(G==null?void 0:G.name),J,U.formKey]),ee=_l(function(){var ue;P||M?W([]):N.renderFormItem&&I([]);for(var ce=arguments.length,$e=new Array(ce),se=0;se0?te.map(function(oe,de){var pe=le==null?void 0:le[de],ye=(pe==null?void 0:pe["data-item"])||{};return A(A({},ye),oe)}):[]},Z=function ee(te){return te.map(function(le,oe){var de,pe=le,ye=pe.className,me=pe.optionType,xe=ft(pe,rst),ue=le[F],ce=le[I],$e=(de=le[V])!==null&&de!==void 0?de:[];return me==="optGroup"||le.options?A(A({label:ue},xe),{},{data_title:ue,title:ue,key:ce??"".concat(ue==null?void 0:ue.toString(),"-").concat(oe,"-").concat(yS()),children:ee($e)}):A(A({title:ue},xe),{},{data_title:ue,value:ce??oe,key:ce??"".concat(ue==null?void 0:ue.toString(),"-").concat(oe,"-").concat(yS()),"data-item":le,className:"".concat(G,"-option ").concat(ye||"").trim(),label:(r==null?void 0:r(le))||ue})})};return T.jsx(Oc,A(A({ref:q,className:Q,allowClear:!0,autoClearSearchValue:c,disabled:C,mode:i,showSearch:M,searchValue:U,optionFilterProp:w,optionLabelProp:b,onClear:function(){E==null||E(),_(void 0),M&&X(void 0)}},N),{},{filterOption:N.filterOption==!1?!1:function(ee,te){var le,oe,de;return N.filterOption&&typeof N.filterOption=="function"?N.filterOption(ee,A(A({},te),{},{label:te==null?void 0:te.data_title})):!!(te!=null&&(le=te.data_title)!==null&&le!==void 0&&le.toString().toLowerCase().includes(ee.toLowerCase())||te!=null&&(oe=te.label)!==null&&oe!==void 0&&oe.toString().toLowerCase().includes(ee.toLowerCase())||te!=null&&(de=te.value)!==null&&de!==void 0&&de.toString().toLowerCase().includes(ee.toLowerCase()))},onSearch:M?function(ee){v&&_(ee),a==null||a(ee),X(ee)}:void 0,onChange:function(te,le){M&&c&&(_(void 0),a==null||a(""),X(void 0));for(var oe=arguments.length,de=new Array(oe>2?oe-2:0),pe=2;pe-1&&e%1==0&&e-1&&e%1==0&&e<=plt}var GN=hlt,vlt=Nf,glt=GN,blt=Ll,ylt="[object Arguments]",wlt="[object Array]",xlt="[object Boolean]",Slt="[object Date]",Clt="[object Error]",_lt="[object Function]",klt="[object Map]",$lt="[object Number]",Elt="[object Object]",Plt="[object RegExp]",Tlt="[object Set]",Olt="[object String]",Rlt="[object WeakMap]",Ilt="[object ArrayBuffer]",Mlt="[object DataView]",Nlt="[object Float32Array]",Dlt="[object Float64Array]",jlt="[object Int8Array]",Flt="[object Int16Array]",Alt="[object Int32Array]",Llt="[object Uint8Array]",Blt="[object Uint8ClampedArray]",zlt="[object Uint16Array]",Hlt="[object Uint32Array]",_r={};_r[Nlt]=_r[Dlt]=_r[jlt]=_r[Flt]=_r[Alt]=_r[Llt]=_r[Blt]=_r[zlt]=_r[Hlt]=!0;_r[ylt]=_r[wlt]=_r[Ilt]=_r[xlt]=_r[Mlt]=_r[Slt]=_r[Clt]=_r[_lt]=_r[klt]=_r[$lt]=_r[Elt]=_r[Plt]=_r[Tlt]=_r[Olt]=_r[Rlt]=!1;function Vlt(e){return blt(e)&&glt(e.length)&&!!_r[vlt(e)]}var Wlt=Vlt;function Ult(e){return function(t){return e(t)}}var KN=Ult,CS={exports:{}};CS.exports;(function(e,t){var n=Iae,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(CS,CS.exports);var YN=CS.exports,qlt=Wlt,Glt=KN,Mz=YN,Nz=Mz&&Mz.isTypedArray,Klt=Nz?Glt(Nz):qlt,XN=Klt,Ylt=Jst,Xlt=UN,Qlt=$o,Zlt=tk,Jlt=qN,ect=XN,tct=Object.prototype,nct=tct.hasOwnProperty;function rct(e,t){var n=Qlt(e),r=!n&&Xlt(e),i=!n&&!r&&Zlt(e),a=!n&&!r&&!i&&ect(e),o=n||r||i||a,s=o?Ylt(e.length,String):[],l=s.length;for(var c in e)(t||nct.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Jlt(c,l)))&&s.push(c);return s}var jae=rct,ict=Object.prototype;function act(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ict;return e===n}var QN=act;function oct(e,t){return function(n){return e(t(n))}}var Fae=oct,sct=Fae,lct=sct(Object.keys,Object),cct=lct,uct=QN,dct=cct,fct=Object.prototype,mct=fct.hasOwnProperty;function pct(e){if(!uct(e))return dct(e);var t=[];for(var n in Object(e))mct.call(e,n)&&n!="constructor"&&t.push(n);return t}var hct=pct;function vct(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ls=vct,gct=Nf,bct=ls,yct="[object AsyncFunction]",wct="[object Function]",xct="[object GeneratorFunction]",Sct="[object Proxy]";function Cct(e){if(!bct(e))return!1;var t=gct(e);return t==wct||t==xct||t==yct||t==Sct}var ZN=Cct,_ct=ZN,kct=GN;function $ct(e){return e!=null&&kct(e.length)&&!_ct(e)}var bh=$ct,Ect=jae,Pct=hct,Tct=bh;function Oct(e){return Tct(e)?Ect(e):Pct(e)}var O1=Oct,Rct=Nae,Ict=O1;function Mct(e,t){return e&&Rct(e,t,Ict)}var Aae=Mct;function Nct(e){return e}var nk=Nct,Dct=nk;function jct(e){return typeof e=="function"?e:Dct}var Lae=jct,Fct=Aae,Act=Lae;function Lct(e,t){return e&&Fct(e,Act(t))}var JN=Lct,Bct=Fae,zct=Bct(Object.getPrototypeOf,Object),e5=zct,Hct=Nf,Vct=e5,Wct=Ll,Uct="[object Object]",qct=Function.prototype,Gct=Object.prototype,Bae=qct.toString,Kct=Gct.hasOwnProperty,Yct=Bae.call(Object);function Xct(e){if(!Wct(e)||Hct(e)!=Uct)return!1;var t=Vct(e);if(t===null)return!0;var n=Kct.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Bae.call(n)==Yct}var zae=Xct;function Qct(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}var mut=fut,put=rk;function hut(e,t){var n=this.__data__,r=put(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var vut=hut,gut=Jct,but=sut,yut=uut,wut=mut,xut=vut;function yh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,m=!0,p=n&Mft?new Tft:void 0;for(a.set(e,t),a.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,Svt.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,wvt.default)(r)?(0,bvt.default)(r,function(i,a){i===!0&&n.push(a),n.push(a+"-"+i)}):(0,vvt.default)(r)&&n.push(r)}),n};P1.default=Cvt;var I1={};function _vt(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,A1t.default)(t.default)||{};return n.map(function(i){var a=t[i];return a&&(0,j1t.default)(a,function(o,s){r[s]||(r[s]={}),r[s]=L1t({},r[s],a[s])}),i}),r};I1.default=B1t;var D1={};Object.defineProperty(D1,"__esModule",{value:!0});D1.autoprefix=void 0;var z1t=JN,pH=V1t(z1t),H1t=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){X1t(i,r);function i(){var a,o,s,l;Y1t(this,i);for(var c=arguments.length,d=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){nbt(i,r);function i(){var a,o,s,l;tbt(this,i);for(var c=arguments.length,d=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[o]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};l5.default=ibt;Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ReactCSS=Bo.loop=Bo.handleActive=Bo.handleHover=Bo.hover=void 0;var abt=P1,obt=_h(abt),sbt=I1,lbt=_h(sbt),cbt=D1,ubt=_h(cbt),dbt=j1,boe=_h(dbt),fbt=F1,mbt=_h(fbt),pbt=l5,hbt=_h(pbt);function _h(e){return e&&e.__esModule?e:{default:e}}Bo.hover=boe.default;Bo.handleHover=boe.default;Bo.handleActive=mbt.default;Bo.loop=hbt.default;var vbt=Bo.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i0){if(++t>=syt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dyt=uyt,fyt=oyt,myt=dyt,pyt=myt(fyt),hyt=pyt,vyt=nk,gyt=eyt,byt=hyt;function yyt(e,t){return byt(gyt(e,t,vyt),e+"")}var wyt=yyt,xyt=R1,Syt=bh,Cyt=qN,_yt=ls;function kyt(e,t,n){if(!_yt(n))return!1;var r=typeof t;return(r=="number"?Syt(n)&&Cyt(t,n.length):r=="string"&&t in n)?xyt(n[t],e):!1}var $yt=kyt,Eyt=wyt,Pyt=$yt;function Tyt(e){return Eyt(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&Pyt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++rs?m=1:m=Math.round(f*100/s)/100,n.a!==m)return{h:n.h,s:n.s,l:n.l,a:m,source:"rgb"}}else{var p;if(d<0?p=0:d>o?p=1:p=Math.round(d*100/o)/100,i!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},M3={},Fyt=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=r*2,a.height=r*2;var o=a.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,a.width,a.height),o.fillStyle=n,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),a.toDataURL()):null},Ayt=function(t,n,r,i){var a="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(M3[a])return M3[a];var o=Fyt(t,n,r,i);return M3[a]=o,o};function p0(e){"@babel/helpers - typeof";return p0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p0(e)}function CH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function my(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $S(e){return $S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$S(e)}var Jyt=function(e){Kyt(n,e);var t=Yyt(n);function n(){var r;Wyt(this,n);for(var i=arguments.length,a=new Array(i),o=0;oo)f=0;else{var m=-(d*100/o)+100;f=360*m/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var p;if(c<0)p=0;else if(c>a)p=359;else{var h=c*100/a;p=360*h/100}if(r.h!==p)return{h:p,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function Ip(e){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ip(e)}function twt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nwt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ES(e){return ES=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ES(e)}var dwt=function(e){owt(n,e);var t=swt(n);function n(){var r;twt(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=t||_<0||f&&k>=a}function w(){var S=N3();if(g(S))return y(S);s=setTimeout(w,v(S))}function y(S){return s=void 0,m&&r?p(S):(r=i=void 0,o)}function b(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function x(){return s===void 0?o:y(N3())}function C(){var S=N3(),_=g(S);if(r=arguments,i=this,l=S,_){if(s===void 0)return h(l);if(f)return clearTimeout(s),s=setTimeout(w,t),p(l)}return s===void 0&&(s=setTimeout(w,t)),o}return C.cancel=b,C.flush=x,C}var Coe=Nwt;const Dwt=Wn(Coe);var jwt=Coe,Fwt=ls,Awt="Expected a function";function Lwt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Awt);return Fwt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),jwt(e,t,{leading:r,maxWait:t,trailing:i})}var Bwt=Lwt;const zwt=Wn(Bwt);var Hwt=function(t,n,r){var i=r.getBoundingClientRect(),a=i.width,o=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(r.getBoundingClientRect().left+window.pageXOffset),d=l-(r.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>a&&(c=a),d<0?d=0:d>o&&(d=o);var f=c/a,m=1-d/o;return{h:n.h,s:f,v:m,a:n.a,source:"hsv"}};function Mp(e){"@babel/helpers - typeof";return Mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mp(e)}function Vwt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wwt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function PS(e){return PS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},PS(e)}var Jwt=function(e){Kwt(n,e);var t=Ywt(n);function n(r){var i;return Vwt(this,n),i=t.call(this,r),i.handleChange=function(a){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,Hwt(a,i.props.hsl,i.container),a)},i.handleMouseDown=function(a){i.handleChange(a);var o=i.getContainerRenderWindow();o.addEventListener("mousemove",i.handleChange),o.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=zwt(function(a,o,s){a(o,s)},50),i}return Uwt(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var i=this.container,a=window;!a.document.contains(i)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var i=this.getContainerRenderWindow();i.removeEventListener("mousemove",this.handleChange),i.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,a=this.props.style||{},o=a.color,s=a.white,l=a.black,c=a.pointer,d=a.circle,f=qu({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), - 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:s,black:l,pointer:c,circle:d}},{custom:!!this.props.style});return L.createElement("div",{style:f.color,ref:function(p){return i.container=p},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},L.createElement("style",null,` - .saturation-white { - background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); - background: linear-gradient(to right, #fff, rgba(255,255,255,0)); - } - .saturation-black { - background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); - background: linear-gradient(to top, #000, rgba(0,0,0,0)); - } - `),L.createElement("div",{style:f.white,className:"saturation-white"},L.createElement("div",{style:f.black,className:"saturation-black"}),L.createElement("div",{style:f.pointer},this.props.pointer?L.createElement(this.props.pointer,this.props):L.createElement("div",{style:f.circle}))))}}]),n}(u.PureComponent||u.Component),ext=ooe,txt=aoe,nxt=Lae,rxt=$o;function ixt(e,t){var n=rxt(e)?ext:txt;return n(e,nxt(t))}var axt=ixt,oxt=axt;const sxt=Wn(oxt);function TS(e){"@babel/helpers - typeof";return TS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TS(e)}var lxt=/^\s+/,cxt=/\s+$/;function Zt(e,t){if(e=e||"",t=t||{},e instanceof Zt)return e;if(!(this instanceof Zt))return new Zt(e,t);var n=uxt(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Zt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=_oe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=TH(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=TH(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=PH(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=PH(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return OH(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return pxt(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Rr(this._r,255)*100)+"%",g:Math.round(Rr(this._g,255)*100)+"%",b:Math.round(Rr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Rr(this._r,255)*100)+"%, "+Math.round(Rr(this._g,255)*100)+"%, "+Math.round(Rr(this._b,255)*100)+"%)":"rgba("+Math.round(Rr(this._r,255)*100)+"%, "+Math.round(Rr(this._g,255)*100)+"%, "+Math.round(Rr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:$xt[OH(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+RH(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=Zt(t);r="#"+RH(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Zt(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(bxt,arguments)},brighten:function(){return this._applyModification(yxt,arguments)},darken:function(){return this._applyModification(wxt,arguments)},desaturate:function(){return this._applyModification(hxt,arguments)},saturate:function(){return this._applyModification(vxt,arguments)},greyscale:function(){return this._applyModification(gxt,arguments)},spin:function(){return this._applyModification(xxt,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(_xt,arguments)},complement:function(){return this._applyCombination(Sxt,arguments)},monochromatic:function(){return this._applyCombination(kxt,arguments)},splitcomplement:function(){return this._applyCombination(Cxt,arguments)},triad:function(){return this._applyCombination(IH,[3])},tetrad:function(){return this._applyCombination(IH,[4])}};Zt.fromRatio=function(e,t){if(TS(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Nv(e[r]));e=n}return Zt(e,t)};function uxt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=Oxt(e)),TS(e)=="object"&&(Wl(e.r)&&Wl(e.g)&&Wl(e.b)?(t=dxt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Wl(e.h)&&Wl(e.s)&&Wl(e.v)?(r=Nv(e.s),i=Nv(e.v),t=mxt(e.h,r,i),o=!0,s="hsv"):Wl(e.h)&&Wl(e.s)&&Wl(e.l)&&(r=Nv(e.s),a=Nv(e.l),t=fxt(e.h,r,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=_oe(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function dxt(e,t,n){return{r:Rr(e,255)*255,g:Rr(t,255)*255,b:Rr(n,255)*255}}function PH(e,t,n){e=Rr(e,255),t=Rr(t,255),n=Rr(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(f-=1),f<1/6?c+(d-c)*6*f:f<1/2?d:f<2/3?c+(d-c)*(2/3-f)*6:c}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function TH(e,t,n){e=Rr(e,255),t=Rr(t,255),n=Rr(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,l=r-i;if(o=r===0?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(Zt(r));return a}function kxt(e,t){t=t||6;for(var n=Zt(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(Zt({h:r,s:i,v:a})),a=(a+s)%1;return o}Zt.mix=function(e,t,n){n=n===0?0:n||50;var r=Zt(e).toRgb(),i=Zt(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return Zt(o)};Zt.readability=function(e,t){var n=Zt(e),r=Zt(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Zt.isReadable=function(e,t,n){var r=Zt.readability(e,t),i,a;switch(a=!1,i=Rxt(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};Zt.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,l;n=n||{},o=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;ci&&(i=a,r=Zt(t[c]));return Zt.isReadable(e,r,{level:s,size:l})||!o?r:(n.includeFallbackColors=!1,Zt.mostReadable(e,["#fff","#000"],n))};var t6=Zt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$xt=Zt.hexNames=Ext(t6);function Ext(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function _oe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Rr(e,t){Pxt(e)&&(e="100%");var n=Txt(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function mk(e){return Math.min(1,Math.max(0,e))}function Qa(e){return parseInt(e,16)}function Pxt(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Txt(e){return typeof e=="string"&&e.indexOf("%")!=-1}function ks(e){return e.length==1?"0"+e:""+e}function Nv(e){return e<=1&&(e=e*100+"%"),e}function koe(e){return Math.round(parseFloat(e)*255).toString(16)}function MH(e){return Qa(e)/255}var ds=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Wl(e){return!!ds.CSS_UNIT.exec(e)}function Oxt(e){e=e.replace(lxt,"").replace(cxt,"").toLowerCase();var t=!1;if(t6[e])e=t6[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=ds.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=ds.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ds.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=ds.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ds.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=ds.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ds.hex8.exec(e))?{r:Qa(n[1]),g:Qa(n[2]),b:Qa(n[3]),a:MH(n[4]),format:t?"name":"hex8"}:(n=ds.hex6.exec(e))?{r:Qa(n[1]),g:Qa(n[2]),b:Qa(n[3]),format:t?"name":"hex"}:(n=ds.hex4.exec(e))?{r:Qa(n[1]+""+n[1]),g:Qa(n[2]+""+n[2]),b:Qa(n[3]+""+n[3]),a:MH(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=ds.hex3.exec(e))?{r:Qa(n[1]+""+n[1]),g:Qa(n[2]+""+n[2]),b:Qa(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function Rxt(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var NH=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return sxt(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var o=/^\d+%$/;o.test(t[a])&&(i+=1)}}),r===i?t:!1},py=function(t,n){var r=t.hex?Zt(t.hex):Zt(t),i=r.toHsl(),a=r.toHsv(),o=r.toRgb(),s=r.toHex();i.s===0&&(i.h=n||0,a.h=n||0);var l=s==="000000"&&o.a===0;return{hsl:i,hex:l?"transparent":"#".concat(s),rgb:o,hsv:a,oldHue:t.h||n||i.h,source:t.source}},Ixt=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Zt(t).isValid()};function Np(e){"@babel/helpers - typeof";return Np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Np(e)}function n6(){return n6=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function OS(e){return OS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},OS(e)}var Hxt=function(t){var n=function(r){Fxt(a,r);var i=Axt(a);function a(o){var s;return Nxt(this,a),s=i.call(this),s.handleChange=function(l,c){var d=NH(l);if(d){var f=py(l,l.h||s.state.oldHue);s.setState(f),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,f,c),s.props.onChange&&s.props.onChange(f,c)}},s.handleSwatchHover=function(l,c){var d=NH(l);if(d){var f=py(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(f,c)}},s.state=dv({},py(o.color,0)),s.debounce=Dwt(function(l,c,d){l(c,d)},100),s}return Dxt(a,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),L.createElement(t,n6({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return dv({},py(s.color,l.oldHue))}}]),a}(u.PureComponent||u.Component);return n.propTypes=dv({},t.propTypes),n.defaultProps=dv(dv({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}function Vxt(e,t,n){return t=Eoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wxt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uxt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function RS(e){return RS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},RS(e)}var Jxt=1,Poe=38,eSt=40,tSt=[Poe,eSt],nSt=function(t){return tSt.indexOf(t)>-1},rSt=function(t){return Number(String(t).replace(/%/g,""))},iSt=1,fv=function(e){Kxt(n,e);var t=Yxt(n);function n(r){var i;return Wxt(this,n),i=t.call(this),i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(a){i.setUpdatedValue(a.target.value,a)},i.handleKeyDown=function(a){var o=rSt(a.target.value);if(!isNaN(o)&&nSt(a.keyCode)){var s=i.getArrowOffset(),l=a.keyCode===Poe?o+s:o-s;i.setUpdatedValue(l,a)}},i.handleDrag=function(a){if(i.props.dragLabel){var o=Math.round(i.props.value+a.movementX);o>=0&&o<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(o),a)}},i.handleMouseDown=function(a){i.props.dragLabel&&(a.preventDefault(),i.handleDrag(a),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},i.inputId="rc-editable-input-".concat(iSt++),i}return qxt(n,[{key:"componentDidUpdate",value:function(i,a){this.props.value!==this.state.value&&(i.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(i){return Vxt({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Jxt}},{key:"setUpdatedValue",value:function(i,a){var o=this.props.label?this.getValueObjectWithLabel(i):i;this.props.onChange&&this.props.onChange(o,a),this.setState({value:i})}},{key:"render",value:function(){var i=this,a=qu({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return L.createElement("div",{style:a.wrap},L.createElement("input",{id:this.inputId,style:a.input,ref:function(s){return i.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?L.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(u.PureComponent||u.Component);function jp(e){"@babel/helpers - typeof";return jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jp(e)}function a6(){return a6=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function IS(e){return IS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},IS(e)}var hSt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){uSt(a,r);var i=dSt(a);function a(){var o;aSt(this,a);for(var s=arguments.length,l=new Array(s),c=0;c100&&(d.a=100),d.a/=100,n==null||n({h:i==null?void 0:i.h,s:i==null?void 0:i.s,l:i==null?void 0:i.l,a:d.a,source:"rgb"},f))};return L.createElement("div",{style:s.fields,className:"flexbox-fix"},L.createElement("div",{style:s.double},L.createElement(fv,{style:{input:s.input,label:s.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:l})),L.createElement("div",{style:s.single},L.createElement(fv,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),L.createElement("div",{style:s.single},L.createElement(fv,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),L.createElement("div",{style:s.single},L.createElement(fv,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),L.createElement("div",{style:s.alpha},L.createElement(fv,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function v0(e){"@babel/helpers - typeof";return v0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v0(e)}function LH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function BH(e){for(var t=1;t-1}function jSt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&Ooe()?WM:NSt}var FSt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.old,c=u.useContext(en.ConfigContext),d=c.getPrefixCls,f=L.useMemo(function(){return jSt(l)},[l]),m=d("pro-field-color-picker"),p=u.useMemo(function(){return l?"":ne(K({},m,Ooe()))},[m,l]);if(i==="read"){var h=T.jsx(f,{value:r,mode:"read",ref:n,className:p,open:!1});return a?a(r,A({mode:i},s),h):h}if(i==="edit"||i==="update"){var v=A({display:"table-cell"},s.style),g=T.jsx(f,A(A({ref:n,presets:[DSt]},s),{},{style:v,className:p}));return o?o(r,A(A({mode:i},s),{},{style:v}),g):g}return null};const ASt=L.forwardRef(FSt);dn.extend(SM);var LSt=function(t,n){return t?typeof n=="function"?n(dn(t)):dn(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},BSt=function(t,n){var r=t.text,i=t.mode,a=t.format,o=t.label,s=t.light,l=t.render,c=t.renderFormItem,d=t.plain,f=t.showTime,m=t.fieldProps,p=t.picker,h=t.bordered,v=t.lightLabel,g=Vr(),w=u.useState(!1),y=ie(w,2),b=y[0],x=y[1];if(i==="read"){var C=LSt(r,m.format||a);return l?l(r,A({mode:i},m),T.jsx(T.Fragment,{children:C})):T.jsx(T.Fragment,{children:C})}if(i==="edit"||i==="update"){var S,_=m.disabled,k=m.value,$=m.placeholder,E=$===void 0?g.getMessage("tableForm.selectPlaceholder","请选择"):$,P=$1(k);return s?S=T.jsx(Rc,{label:o,onClick:function(){var j;m==null||(j=m.onOpenChange)===null||j===void 0||j.call(m,!0),x(!0)},style:P?{paddingInlineEnd:0}:void 0,disabled:_,value:P||b?T.jsx(Qo,A(A(A({picker:p,showTime:f,format:a,ref:n},m),{},{value:P,onOpenChange:function(j){var O;x(j),m==null||(O=m.onOpenChange)===null||O===void 0||O.call(m,j)}},wo(!1)),{},{open:b})):void 0,allowClear:!1,downIcon:P||b?!1:void 0,bordered:h,ref:v}):S=T.jsx(Qo,A(A(A({picker:p,showTime:f,format:a,placeholder:E},wo(d===void 0?!0:!d)),{},{ref:n},m),{},{value:P})),c?c(r,A({mode:i},m),S):S}return null};const tm=L.forwardRef(BSt);var zSt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=Vr(),d=o||c.getMessage("tableForm.inputPlaceholder","请输入"),f=u.useCallback(function(w){var y=w??void 0;return!l.stringMode&&typeof y=="string"&&(y=Number(y)),typeof y=="number"&&!sf(y)&&!sf(l.precision)&&(y=Number(y.toFixed(l.precision))),y},[l]);if(i==="read"){var m,p={};l!=null&&l.precision&&(p={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var h=new Intl.NumberFormat(void 0,A(A({},p),(l==null?void 0:l.intlProps)||{})).format(Number(r)),v=l!=null&&l.stringMode?T.jsx("span",{children:r}):T.jsx("span",{ref:n,children:(l==null||(m=l.formatter)===null||m===void 0?void 0:m.call(l,h))||h});return a?a(r,A({mode:i},l),v):v}if(i==="edit"||i==="update"){var g=T.jsx(wc,A(A({ref:n,min:0,placeholder:d},Us(l,["onChange","onBlur"])),{},{onChange:function(y){var b;return l==null||(b=l.onChange)===null||b===void 0?void 0:b.call(l,f(y))},onBlur:function(y){var b;return l==null||(b=l.onBlur)===null||b===void 0?void 0:b.call(l,f(y.target.value))}}));return s?s(r,A({mode:i},l),g):g}return null};const HSt=L.forwardRef(zSt);var VSt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,d=c===void 0?"~":c,f=t.separatorWidth,m=f===void 0?30:f,p=l.value,h=l.defaultValue,v=l.onChange,g=l.id,w=Vr(),y=Rl.useToken(),b=y.token,x=Ut(function(){return h},{value:p,onChange:v}),C=ie(x,2),S=C[0],_=C[1];if(i==="read"){var k=function(F){var z,I=new Intl.NumberFormat(void 0,A({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(F));return(l==null||(z=l.formatter)===null||z===void 0?void 0:z.call(l,I))||I},$=T.jsxs("span",{ref:n,children:[k(r[0])," ",d," ",k(r[1])]});return a?a(r,A({mode:i},l),$):$}if(i==="edit"||i==="update"){var E=function(){if(Array.isArray(S)){var F=ie(S,2),z=F[0],I=F[1];typeof z=="number"&&typeof I=="number"&&z>I?_([I,z]):z===void 0&&I===void 0&&_(void 0)}},P=function(F,z){var I=Fe(S||[]);I[F]=z===null?void 0:z,_(I)},M=(l==null?void 0:l.placeholder)||o||[w.getMessage("tableForm.inputPlaceholder","请输入"),w.getMessage("tableForm.inputPlaceholder","请输入")],j=function(F){return Array.isArray(M)?M[F]:M},O=Ws.Compact||Pi.Group,N=Ws.Compact?{}:{compact:!0},R=T.jsxs(O,A(A({},N),{},{onBlur:E,children:[T.jsx(wc,A(A({},l),{},{placeholder:j(0),id:g??"".concat(g,"-0"),style:{width:"calc((100% - ".concat(m,"px) / 2)")},value:S==null?void 0:S[0],defaultValue:h==null?void 0:h[0],onChange:function(F){return P(0,F)}})),T.jsx(Pi,{style:{width:m,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:b==null?void 0:b.colorBgContainer},placeholder:d,disabled:!0}),T.jsx(wc,A(A({},l),{},{placeholder:j(1),id:g??"".concat(g,"-1"),style:{width:"calc((100% - ".concat(m,"px) / 2)"),borderInlineStart:0},value:S==null?void 0:S[1],defaultValue:h==null?void 0:h[1],onChange:function(F){return P(1,F)}}))]}));return s?s(r,A({mode:i},l),R):R}return null};const WSt=L.forwardRef(VSt);var Roe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(pi,function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,d,f,m){return a.fromToBase(c,d,f,m)}i.en.relativeTime=o,a.fromToBase=function(c,d,f,m,p){for(var h,v,g,w=f.$locale().relativeTime||o,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],b=y.length,x=0;x0,S<=C.r||!C.r){S<=1&&x>0&&(C=y[x-1]);var _=w[C.l];p&&(S=p(""+S)),v=typeof _=="string"?_.replace("%d",S):_(S,d,C.l,g);break}}if(d)return v;var k=g?w.future:w.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,d){return s(c,d,this,!0)},a.from=function(c,d){return s(c,d,this)};var l=function(c){return c.$u?i.utc():i()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(Roe);var USt=Roe.exports;const qSt=Wn(USt);dn.extend(qSt);var GSt=function(t,n){var r=t.text,i=t.mode,a=t.plain,o=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,d=Vr();if(i==="read"){var f=T.jsx(na,{title:dn(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:dn(r).fromNow()});return o?o(r,A({mode:i},c),T.jsx(T.Fragment,{children:f})):T.jsx(T.Fragment,{children:f})}if(i==="edit"||i==="update"){var m=d.getMessage("tableForm.selectPlaceholder","请选择"),p=$1(c.value),h=T.jsx(Qo,A(A(A({ref:n,placeholder:m,showTime:!0},wo(a===void 0?!0:!a)),c),{},{value:p}));return s?s(r,A({mode:i},c),h):h}return null};const KSt=L.forwardRef(GSt);var Ioe=L.forwardRef(function(e,t){var n=e.text,r=e.mode,i=e.render,a=e.renderFormItem,o=e.fieldProps,s=e.placeholder,l=e.width,c=Vr(),d=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=T.jsx(Jte,A({ref:t,width:l||32,src:n},o));return i?i(n,A({mode:r},o),f):f}if(r==="edit"||r==="update"){var m=T.jsx(Pi,A({ref:t,placeholder:d},o));return a?a(n,A({mode:r},o),m):m}return null}),YSt=function(t,n){var r=t.border,i=r===void 0?!1:r,a=t.children,o=u.useContext(en.ConfigContext),s=o.getPrefixCls,l=s("pro-field-index-column"),c=La("IndexColumn",function(){return K({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),d=c.wrapSSR,f=c.hashId;return d(T.jsx("div",{ref:n,className:ne(l,f,K(K({},"".concat(l,"-border"),i),"top-three",a>3)),children:a}))};const HH=L.forwardRef(YSt);var XSt=["contentRender","numberFormatOptions","numberPopoverRender","open"],QSt=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],Moe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),ZSt={style:"currency",currency:"USD"},JSt={style:"currency",currency:"RUB"},eCt={style:"currency",currency:"RSD"},tCt={style:"currency",currency:"MYR"},nCt={style:"currency",currency:"BRL"},rCt={default:Moe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":ZSt,"ru-RU":JSt,"ms-MY":tCt,"sr-RS":eCt,"pt-BR":nCt},VH=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",o=n==null?void 0:n.toString().replaceAll(",","");if(typeof o=="string"){var s=Number(o);if(Number.isNaN(s))return o;o=s}if(!o&&o!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var c=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",A(A({},rCt[t||"zh-Hans-CN"]||Moe),{},{maximumFractionDigits:r},i)),d=c.format(o),f=function(w){var y=w.match(/\d+/);if(y){var b=y[0];return w.slice(w.indexOf(b))}else return w},m=f(d),p=d||"",h=ie(p,1),v=h[0];return["+","-"].includes(v)?"".concat(a||"").concat(v).concat(m):"".concat(a||"").concat(m)}catch{return o}},D3=2,iCt=L.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=ft(e,XSt),a=Ut(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),o=ie(a,2),s=o[0],l=o[1],c=n==null?void 0:n(A(A({},i),{},{value:s})),d=tae(c?r:!1);return T.jsx(Sf,A(A({placement:"topLeft"},d),{},{trigger:["focus","click"],content:c,getPopupContainer:function(m){return(m==null?void 0:m.parentElement)||document.body},children:T.jsx(wc,A(A({ref:t},i),{},{value:s,onChange:l}))}))}),aCt=function(t,n){var r,i=t.text,a=t.mode,o=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,d=t.locale,f=t.customSymbol,m=f===void 0?l.customSymbol:f,p=t.numberFormatOptions,h=p===void 0?l==null?void 0:l.numberFormatOptions:p,v=t.numberPopoverRender,g=v===void 0?(l==null?void 0:l.numberPopoverRender)||!1:v,w=ft(t,QSt),y=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:D3,b=Vr();d&&of[d]&&(b=of[d]);var x=c||b.getMessage("tableForm.inputPlaceholder","请输入"),C=u.useMemo(function(){if(m)return m;if(!(w.moneySymbol===!1||l.moneySymbol===!1))return b.getMessage("moneySymbol","¥")},[m,l.moneySymbol,b,w.moneySymbol]),S=u.useCallback(function($){var E=new RegExp("\\B(?=(\\d{".concat(3+Math.max(y-D3,0),"})+(?!\\d))"),"g"),P=String($).split("."),M=ie(P,2),j=M[0],O=M[1],N=j.replace(E,","),R="";return O&&y>0&&(R=".".concat(O.slice(0,y===void 0?D3:y))),"".concat(N).concat(R)},[y]);if(a==="read"){var _=T.jsx("span",{ref:n,children:VH(d||!1,i,y,h??l.numberFormatOptions,C)});return o?o(i,A({mode:a},l),_):_}if(a==="edit"||a==="update"){var k=T.jsx(iCt,A(A({contentRender:function(E){if(g===!1||!E.value)return null;var P=VH(C||d||!1,"".concat(S(E.value)),y,A(A({},h),{},{notation:"compact"}),C);return typeof g=="function"?g==null?void 0:g(E,P):P},ref:n,precision:y,formatter:function(E){return E&&C?"".concat(C," ").concat(S(E)):E==null?void 0:E.toString()},parser:function(E){return C&&E?E.replace(new RegExp("\\".concat(C,"\\s?|(,*)"),"g"),""):E},placeholder:x},Us(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function($){var E,P=$.target.value;C&&P&&(P=P.replace(new RegExp("\\".concat(C,"\\s?|(,*)"),"g"),"")),(E=l.onBlur)===null||E===void 0||E.call(l,P)}:void 0}));return s?s(i,A({mode:a},l),k):k}return null};const Noe=L.forwardRef(aCt);var WH=function(t){return t.map(function(n,r){var i;return L.isValidElement(n)?L.cloneElement(n,A(A({key:r},n==null?void 0:n.props),{},{style:A({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):T.jsx(L.Fragment,{children:n},r)})},oCt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.fieldProps,s=u.useContext(en.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),d=Rl.useToken(),f=d.token;if(u.useImperativeHandle(n,function(){return{}}),a){var m=a(r,A({mode:i},o),T.jsx(T.Fragment,{}));return!m||(m==null?void 0:m.length)<1||!Array.isArray(m)?null:T.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:WH(m)})}return!r||!Array.isArray(r)?L.isValidElement(r)?r:null:T.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:WH(r)})};const sCt=L.forwardRef(oCt);var lCt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],cCt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=ft(t,lCt),c=Vr(),d=Ut(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),f=ie(d,2),m=f[0],p=f[1];if(i==="read"){var h=T.jsx(T.Fragment,{children:"-"});return r&&(h=T.jsxs(Ws,{children:[T.jsx("span",{ref:n,children:m?r:"********"}),T.jsx("a",{onClick:function(){return p(!m)},children:m?T.jsx(g2,{}):T.jsx(eX,{})})]})),a?a(r,A({mode:i},s),h):h}if(i==="edit"||i==="update"){var v=T.jsx(Pi.Password,A({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return o?o(r,A({mode:i},s),v):v}return null};const uCt=L.forwardRef(cCt);var dCt=/\s/;function fCt(e){for(var t=e.length;t--&&dCt.test(e.charAt(t)););return t}var mCt=/^\s+/;function pCt(e){return e&&e.slice(0,fCt(e)+1).replace(mCt,"")}var hCt="[object Symbol]";function pk(e){return typeof e=="symbol"||Uu(e)&&Of(e)==hCt}var UH=NaN,vCt=/^[-+]0x[0-9a-f]+$/i,gCt=/^0b[01]+$/i,bCt=/^0o[0-7]+$/i,yCt=parseInt;function MS(e){if(typeof e=="number")return e;if(pk(e))return UH;if(Ml(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ml(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pCt(e);var n=gCt.test(e);return n||bCt.test(e)?yCt(e.slice(2),n?2:8):vCt.test(e)?UH:+e}function wCt(e){return e===0?null:e>0?"+":"-"}function xCt(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function SCt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var CCt=function(t,n){var r=t.text,i=t.prefix,a=t.precision,o=t.suffix,s=o===void 0?"%":o,l=t.mode,c=t.showColor,d=c===void 0?!1:c,f=t.render,m=t.renderFormItem,p=t.fieldProps,h=t.placeholder,v=t.showSymbol,g=Vr(),w=h||g.getMessage("tableForm.inputPlaceholder","请输入"),y=u.useMemo(function(){return typeof r=="string"&&r.includes("%")?MS(r.replace("%","")):MS(r)},[r]),b=u.useMemo(function(){return typeof v=="function"?v==null?void 0:v(r):v},[v,r]);if(l==="read"){var x=d?{color:xCt(y)}:{},C=T.jsxs("span",{style:x,ref:n,children:[i&&T.jsx("span",{children:i}),b&&T.jsxs(u.Fragment,{children:[wCt(y)," "]}),SCt(Math.abs(y),a),s&&s]});return f?f(r,A(A({mode:l},p),{},{prefix:i,precision:a,showSymbol:b,suffix:s}),C):C}if(l==="edit"||l==="update"){var S=T.jsx(wc,A({ref:n,formatter:function(k){return k&&i?"".concat(i," ").concat(k).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):k},parser:function(k){return k?k.replace(/.*\s|,/g,""):""},placeholder:w},p));return m?m(r,A({mode:l},p),S):S}return null};const Doe=L.forwardRef(CCt);function _Ct(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var kCt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,d=Vr(),f=c||d.getMessage("tableForm.inputPlaceholder","请输入"),m=u.useMemo(function(){return typeof r=="string"&&r.includes("%")?MS(r.replace("%","")):MS(r)},[r]);if(i==="read"){var p=T.jsx(YM,A({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:m,steps:o?10:void 0,status:_Ct(m)},l));return a?a(m,A({mode:i},l),p):p}if(i==="edit"||i==="update"){var h=T.jsx(wc,A({ref:n,placeholder:f},l));return s?s(r,A({mode:i},l),h):h}return null};const joe=L.forwardRef(kCt);var $Ct=["radioType","renderFormItem","mode","render"],ECt=function(t,n){var r,i,a=t.radioType,o=t.renderFormItem,s=t.mode,l=t.render,c=ft(t,$Ct),d=u.useContext(en.ConfigContext),f=d.getPrefixCls,m=f("pro-field-radio"),p=gh(c),h=ie(p,3),v=h[0],g=h[1],w=h[2],y=u.useRef(),b=(r=Hr.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);u.useImperativeHandle(n,function(){return A(A({},y.current||{}),{},{fetchData:function(O){return w(O)}})},[w]);var x=La("FieldRadioRadio",function(j){return K(K(K({},".".concat(m,"-error"),{span:{color:j.colorError}}),".".concat(m,"-warning"),{span:{color:j.colorWarning}}),".".concat(m,"-vertical"),K({},"".concat(j.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),C=x.wrapSSR,S=x.hashId;if(v)return T.jsx(Hu,{size:"small"});if(s==="read"){var _=g!=null&&g.length?g==null?void 0:g.reduce(function(j,O){var N;return A(A({},j),{},K({},(N=O.value)!==null&&N!==void 0?N:"",O.label))},{}):void 0,k=T.jsx(T.Fragment,{children:hh(c.text,Ic(c.valueEnum||_))});if(l){var $;return($=l(c.text,A({mode:s},c.fieldProps),k))!==null&&$!==void 0?$:null}return k}if(s==="edit"){var E,P=C(T.jsx(ah.Group,A(A({ref:y,optionType:a},c.fieldProps),{},{className:ne((E=c.fieldProps)===null||E===void 0?void 0:E.className,K(K({},"".concat(m,"-error"),(b==null?void 0:b.status)==="error"),"".concat(m,"-warning"),(b==null?void 0:b.status)==="warning"),S,"".concat(m,"-").concat(c.fieldProps.layout||"horizontal")),options:g})));if(o){var M;return(M=o(c.text,A(A({mode:s},c.fieldProps),{},{options:g,loading:v}),P))!==null&&M!==void 0?M:null}return P}return null};const qH=L.forwardRef(ECt);var PCt=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.picker,d=t.renderFormItem,f=t.plain,m=t.showTime,p=t.lightLabel,h=t.bordered,v=t.fieldProps,g=Vr(),w=Array.isArray(r)?r:[],y=ie(w,2),b=y[0],x=y[1],C=L.useState(!1),S=ie(C,2),_=S[0],k=S[1],$=u.useCallback(function(R){if(typeof(v==null?void 0:v.format)=="function"){var D;return v==null||(D=v.format)===null||D===void 0?void 0:D.call(v,R)}return(v==null?void 0:v.format)||s||"YYYY-MM-DD"},[v,s]),E=b?dn(b).format($(dn(b))):"",P=x?dn(x).format($(dn(x))):"";if(i==="read"){var M=T.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[T.jsx("div",{children:E||"-"}),T.jsx("div",{children:P||"-"})]});return l?l(r,A({mode:i},v),T.jsx("span",{children:M})):M}if(i==="edit"||i==="update"){var j=$1(v.value),O;if(a){var N;O=T.jsx(Rc,{label:o,onClick:function(){var D;v==null||(D=v.onOpenChange)===null||D===void 0||D.call(v,!0),k(!0)},style:j?{paddingInlineEnd:0}:void 0,disabled:v.disabled,value:j||_?T.jsx(Qo.RangePicker,A(A(A({picker:c,showTime:m,format:s},wo(!1)),v),{},{placeholder:(N=v.placeholder)!==null&&N!==void 0?N:[g.getMessage("tableForm.selectPlaceholder","请选择"),g.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var D;k(!1),v==null||(D=v.onClear)===null||D===void 0||D.call(v)},value:j,onOpenChange:function(D){var F;j&&k(D),v==null||(F=v.onOpenChange)===null||F===void 0||F.call(v,D)}})):null,allowClear:!1,bordered:h,ref:p,downIcon:j||_?!1:void 0})}else O=T.jsx(Qo.RangePicker,A(A(A({ref:n,format:s,showTime:m,placeholder:[g.getMessage("tableForm.selectPlaceholder","请选择"),g.getMessage("tableForm.selectPlaceholder","请选择")]},wo(f===void 0?!0:!f)),v),{},{value:j}));return d?d(r,A({mode:i},v),O):O}return null};const nm=L.forwardRef(PCt);var TCt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=T.jsx(XT,A(A({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return a?a(r,A({mode:i},s),T.jsx(T.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=T.jsx(XT,A({allowHalf:!0,ref:n},s));return o?o(r,A({mode:i},s),c):c}return null};const OCt=L.forwardRef(TCt);function RCt(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var i=Math.floor(t/(3600*24)),a=Math.floor(t/3600%24),o=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),o>0&&(n="".concat(o,"分钟").concat(n)),a>0&&(n="".concat(a,"小时").concat(n)),i>0&&(n="".concat(i,"天").concat(n)),r&&(n+="前"),n}var ICt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=Vr(),d=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var f=RCt(Number(r)),m=T.jsx("span",{ref:n,children:f});return a?a(r,A({mode:i},s),m):m}if(i==="edit"||i==="update"){var p=T.jsx(wc,A({ref:n,min:0,style:{width:"100%"},placeholder:d},s));return o?o(r,A({mode:i},s),p):p}return null};const MCt=L.forwardRef(ICt);var NCt=["mode","render","renderFormItem","fieldProps","emptyText"],DCt=function(t,n){var r=t.mode,i=t.render,a=t.renderFormItem,o=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=ft(t,NCt),d=u.useRef(),f=gh(t),m=ie(f,3),p=m[0],h=m[1],v=m[2];if(u.useImperativeHandle(n,function(){return A(A({},d.current||{}),{},{fetchData:function(C){return v(C)}})},[v]),p)return T.jsx(Hu,{size:"small"});if(r==="read"){var g=h!=null&&h.length?h==null?void 0:h.reduce(function(x,C){var S;return A(A({},x),{},K({},(S=C.value)!==null&&S!==void 0?S:"",C.label))},{}):void 0,w=T.jsx(T.Fragment,{children:hh(c.text,Ic(c.valueEnum||g))});if(i){var y;return(y=i(c.text,A({mode:r},o),T.jsx(T.Fragment,{children:w})))!==null&&y!==void 0?y:l}return w}if(r==="edit"||r==="update"){var b=T.jsx(mte,A(A({ref:d},Us(o||{},["allowClear"])),{},{options:h}));return a?a(c.text,A(A({mode:r},o),{},{options:h,loading:p}),b):b}return null};const jCt=L.forwardRef(DCt);var FCt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=r;return a?a(r,A({mode:i},s),T.jsx(T.Fragment,{children:l})):T.jsx(T.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=T.jsx($te,A(A({ref:n},s),{},{style:A({minWidth:120},s==null?void 0:s.style)}));return o?o(r,A({mode:i},s),c):c}return null};const ACt=L.forwardRef(FCt);var LCt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,d=Vr(),f=u.useMemo(function(){var g,w;return r==null||"".concat(r).length<1?"-":r?(g=c==null?void 0:c.checkedChildren)!==null&&g!==void 0?g:d.getMessage("switch.open","打开"):(w=c==null?void 0:c.unCheckedChildren)!==null&&w!==void 0?w:d.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(i==="read")return a?a(r,A({mode:i},c),T.jsx(T.Fragment,{children:f})):f??"-";if(i==="edit"||i==="update"){var m,p=T.jsx(mne,A(A({ref:n,size:o?"small":void 0},Us(c,["value"])),{},{checked:(m=c==null?void 0:c.checked)!==null&&m!==void 0?m:c==null?void 0:c.value}));if(o){var h=c.disabled,v=c.bordered;return T.jsx(Rc,{label:s,disabled:h,bordered:v,downIcon:!1,value:T.jsx("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return l?l(r,A({mode:i},c),p):p}return null};const BCt=L.forwardRef(LCt);var zCt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,d=s||{},f=d.autoFocus,m=d.prefix,p=m===void 0?"":m,h=d.suffix,v=h===void 0?"":h,g=Vr(),w=u.useRef();if(u.useImperativeHandle(n,function(){return w.current},[]),u.useEffect(function(){if(f){var S;(S=w.current)===null||S===void 0||S.focus()}},[f]),i==="read"){var y=T.jsxs(T.Fragment,{children:[p,r??c,v]});if(a){var b;return(b=a(r,A({mode:i},s),y))!==null&&b!==void 0?b:c}return y}if(i==="edit"||i==="update"){var x=g.getMessage("tableForm.inputPlaceholder","请输入"),C=T.jsx(Pi,A({ref:w,placeholder:x,allowClear:!0},s));return o?o(r,A({mode:i},s),C):C}return null};const HCt=L.forwardRef(zCt);function Foe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r1),a}),vh(e,zoe(e),n),r&&(n=Ow(n,j_t|F_t|A_t,R_t));for(var i=t.length;i--;)O_t(n,t[i]);return n}),B_t=function(t,n){var r=t.text,i=t.fieldProps,a=u.useContext(en.ConfigContext),o=a.getPrefixCls,s=o("pro-field-readonly"),l="".concat(s,"-textarea"),c=La("TextArea",function(){return K({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),d=c.wrapSSR,f=c.hashId;return d(T.jsx("span",A(A({ref:n,className:ne(f,s,l)},L_t(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const z_t=L.forwardRef(B_t);var H_t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=Vr();if(i==="read"){var c=T.jsx(z_t,A(A({},t),{},{ref:n}));return a?a(r,A({mode:i},Us(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var d=T.jsx(Pi.TextArea,A({ref:n,rows:3,onKeyPress:function(m){m.key==="Enter"&&m.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return o?o(r,A({mode:i},s),d):d}return null};const V_t=L.forwardRef(H_t);var W_t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,c=t.renderFormItem,d=t.plain,f=t.fieldProps,m=t.lightLabel,p=u.useState(!1),h=ie(p,2),v=h[0],g=h[1],w=Vr(),y=(f==null?void 0:f.format)||s||"HH:mm:ss",b=dn.isDayjs(r)||typeof r=="number";if(i==="read"){var x=T.jsx("span",{ref:n,children:r?dn(r,b?void 0:y).format(y):"-"});return l?l(r,A({mode:i},f),T.jsx("span",{children:x})):x}if(i==="edit"||i==="update"){var C,S=f.disabled,_=f.value,k=$1(_,y);if(a){var $;C=T.jsx(Rc,{onClick:function(){var P;f==null||(P=f.onOpenChange)===null||P===void 0||P.call(f,!0),g(!0)},style:k?{paddingInlineEnd:0}:void 0,label:o,disabled:S,value:k||v?T.jsx(af,A(A(A({},wo(!1)),{},{format:s,ref:n},f),{},{placeholder:($=f.placeholder)!==null&&$!==void 0?$:w.getMessage("tableForm.selectPlaceholder","请选择"),value:k,onOpenChange:function(P){var M;g(P),f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,P)},open:v})):null,downIcon:k||v?!1:void 0,allowClear:!1,ref:m})}else C=T.jsx(Qo.TimePicker,A(A(A({ref:n,format:s},wo(d===void 0?!0:!d)),f),{},{value:k}));return c?c(r,A({mode:i},f),C):C}return null},U_t=function(t,n){var r=t.text,i=t.light,a=t.label,o=t.mode,s=t.lightLabel,l=t.format,c=t.render,d=t.renderFormItem,f=t.plain,m=t.fieldProps,p=Vr(),h=u.useState(!1),v=ie(h,2),g=v[0],w=v[1],y=(m==null?void 0:m.format)||l||"HH:mm:ss",b=Array.isArray(r)?r:[],x=ie(b,2),C=x[0],S=x[1],_=dn.isDayjs(C)||typeof C=="number",k=dn.isDayjs(S)||typeof S=="number",$=C?dn(C,_?void 0:y).format(y):"",E=S?dn(S,k?void 0:y).format(y):"";if(o==="read"){var P=T.jsxs("div",{ref:n,children:[T.jsx("div",{children:$||"-"}),T.jsx("div",{children:E||"-"})]});return c?c(r,A({mode:o},m),T.jsx("span",{children:P})):P}if(o==="edit"||o==="update"){var M=$1(m.value,y),j;if(i){var O=m.disabled,N=m.placeholder,R=N===void 0?[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]:N;j=T.jsx(Rc,{onClick:function(){var F;m==null||(F=m.onOpenChange)===null||F===void 0||F.call(m,!0),w(!0)},style:M?{paddingInlineEnd:0}:void 0,label:a,disabled:O,placeholder:R,value:M||g?T.jsx(af.RangePicker,A(A(A({},wo(!1)),{},{format:l,ref:n},m),{},{placeholder:R,value:M,onOpenChange:function(F){var z;w(F),m==null||(z=m.onOpenChange)===null||z===void 0||z.call(m,F)},open:g})):null,downIcon:M||g?!1:void 0,allowClear:!1,ref:s})}else j=T.jsx(af.RangePicker,A(A(A({ref:n,format:l},wo(f===void 0?!0:!f)),m),{},{value:M}));return d?d(r,A({mode:o},m),j):j}return null},q_t=L.forwardRef(U_t);const G_t=L.forwardRef(W_t);var K_t=["radioType","renderFormItem","mode","light","label","render"],Y_t=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],X_t=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,a=t.light,o=t.label,s=t.render,l=ft(t,K_t),c=u.useContext(en.ConfigContext),d=c.getPrefixCls,f=d("pro-field-tree-select"),m=u.useRef(null),p=u.useState(!1),h=ie(p,2),v=h[0],g=h[1],w=l.fieldProps,y=w.onSearch,b=w.onClear,x=w.onChange,C=w.onBlur,S=w.showSearch,_=w.autoClearSearchValue;w.treeData;var k=w.fetchDataOnSearch,$=w.searchValue,E=ft(w,Y_t),P=Vr(),M=gh(A(A({},l),{},{defaultKeyWords:$})),j=ie(M,3),O=j[0],N=j[1],R=j[2],D=Ut(void 0,{onChange:y,value:$}),F=ie(D,2),z=F[0],I=F[1];u.useImperativeHandle(n,function(){return A(A({},m.current||{}),{},{fetchData:function(ee){return R(ee)}})});var H=u.useMemo(function(){if(i==="read"){var Z=(E==null?void 0:E.fieldNames)||{},ee=Z.value,te=ee===void 0?"value":ee,le=Z.label,oe=le===void 0?"label":le,de=Z.children,pe=de===void 0?"children":de,ye=new Map,me=function xe(ue){if(!(ue!=null&&ue.length))return ye;for(var ce=ue.length,$e=0;$e4&&(p+=7),m.add(p,n));return h.diff(v,"week")+1},s.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=s.startOf;s.startOf=function(c,d){var f=this.$utils(),m=!!f.u(d)||d;return f.p(c)==="isoweek"?m?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,d)}}})})(Goe);var Z_t=Goe.exports;const J_t=Wn(Z_t);var Koe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(pi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,d=function(f,m){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,h,v){var g=v&&v.toUpperCase();return h||m[v]||n[v]||m[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,y,b){return y||b.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,d)}}})})(Koe);var ekt=Koe.exports;const tkt=Wn(ekt);var nkt=["fieldProps"],rkt=["fieldProps"],ikt=["fieldProps"],akt=["fieldProps"],okt=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],skt=["placeholder"];dn.extend(zJ);dn.extend(UJ);dn.extend(J_t);dn.extend(SM);dn.extend(LJ);dn.extend(tkt);var lkt=function(t,n,r){var i=sae(r.fieldProps);return n.type==="progress"?T.jsx(joe,A(A({},r),{},{text:t,fieldProps:A({status:n.status?n.status:void 0},i)})):n.type==="money"?T.jsx(Noe,A(A({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?T.jsx(Doe,A(A({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?T.jsx(Ioe,A(A({},r),{},{text:t,width:n.width})):t},ckt=function(t,n,r,i){var a=r.mode,o=a===void 0?"read":a,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&o==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var c=r.fieldProps,d=r.render;return d?d(t,A({mode:o},c),T.jsx(T.Fragment,{children:l})):T.jsx(T.Fragment,{children:l})}if(delete r.emptyText,mt(n)==="object")return lkt(t,n,r);var f=i&&i[n];if(f){if(delete r.ref,o==="read"){var m;return(m=f.render)===null||m===void 0?void 0:m.call(f,t,A(A({text:t},r),{},{mode:o||"read"}),T.jsx(T.Fragment,{children:t}))}if(o==="update"||o==="edit"){var p;return(p=f.renderFormItem)===null||p===void 0?void 0:p.call(f,t,A({text:t},r),T.jsx(T.Fragment,{children:t}))}}if(n==="money")return T.jsx(Noe,A(A({},r),{},{text:t}));if(n==="date")return T.jsx(Sa,{isLight:r.light,children:T.jsx(tm,A({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return T.jsx(Sa,{isLight:r.light,children:T.jsx(tm,A({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var h=r.fieldProps,v=ft(r,nkt);return T.jsx(Sa,{isLight:r.light,children:T.jsx(nm,A({text:t,format:"YYYY-W",showTime:!0,fieldProps:A({picker:"week"},h)},v))})}if(n==="dateMonthRange"){var g=r.fieldProps,w=ft(r,rkt);return T.jsx(Sa,{isLight:r.light,children:T.jsx(nm,A({text:t,format:"YYYY-MM",showTime:!0,fieldProps:A({picker:"month"},g)},w))})}if(n==="dateQuarterRange"){var y=r.fieldProps,b=ft(r,ikt);return T.jsx(Sa,{isLight:r.light,children:T.jsx(nm,A({text:t,format:"YYYY-Q",showTime:!0,fieldProps:A({picker:"quarter"},y)},b))})}if(n==="dateYearRange"){var x=r.fieldProps,C=ft(r,akt);return T.jsx(Sa,{isLight:r.light,children:T.jsx(nm,A({text:t,format:"YYYY",showTime:!0,fieldProps:A({picker:"year"},x)},C))})}return n==="dateMonth"?T.jsx(Sa,{isLight:r.light,children:T.jsx(tm,A({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?T.jsx(Sa,{isLight:r.light,children:T.jsx(tm,A({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?T.jsx(Sa,{isLight:r.light,children:T.jsx(tm,A({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?T.jsx(nm,A({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?T.jsx(Sa,{isLight:r.light,children:T.jsx(tm,A({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?T.jsx(Sa,{isLight:r.light,children:T.jsx(nm,A({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?T.jsx(Sa,{isLight:r.light,children:T.jsx(G_t,A({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?T.jsx(Sa,{isLight:r.light,children:T.jsx(q_t,A({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?T.jsx(KSt,A({text:t},r)):n==="index"?T.jsx(HH,{children:t+1}):n==="indexBorder"?T.jsx(HH,{border:!0,children:t+1}):n==="progress"?T.jsx(joe,A(A({},r),{},{text:t})):n==="percent"?T.jsx(Doe,A({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?T.jsx(d_,{src:t,size:22,shape:"circle"}):n==="code"?T.jsx(Pz,A({text:t},r)):n==="jsonCode"?T.jsx(Pz,A({text:t,language:"json"},r)):n==="textarea"?T.jsx(V_t,A({text:t},r)):n==="digit"?T.jsx(HSt,A({text:t},r)):n==="digitRange"?T.jsx(WSt,A({text:t},r)):n==="second"?T.jsx(MCt,A({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?T.jsx(Sa,{isLight:r.light,children:T.jsx(dst,A({text:t},r))}):n==="checkbox"?T.jsx(bst,A({text:t},r)):n==="radio"?T.jsx(qH,A({text:t},r)):n==="radioButton"?T.jsx(qH,A({radioType:"button",text:t},r)):n==="rate"?T.jsx(OCt,A({text:t},r)):n==="slider"?T.jsx(ACt,A({text:t},r)):n==="switch"?T.jsx(BCt,A({text:t},r)):n==="option"?T.jsx(sCt,A({text:t},r)):n==="password"?T.jsx(uCt,A({text:t},r)):n==="image"?T.jsx(Ioe,A({text:t},r)):n==="cascader"?T.jsx(pst,A({text:t},r)):n==="treeSelect"?T.jsx(Q_t,A({text:t},r)):n==="color"?T.jsx(ASt,A({text:t},r)):n==="segmented"?T.jsx(jCt,A({text:t},r)):T.jsx(HCt,A({text:t},r))},ukt=function(t,n){var r,i,a,o,s,l=t.text,c=t.valueType,d=c===void 0?"text":c,f=t.mode,m=f===void 0?"read":f,p=t.onChange,h=t.renderFormItem,v=t.value,g=t.readonly,w=t.fieldProps,y=ft(t,okt),b=u.useContext(Iu),x=_l(function(){for(var _,k=arguments.length,$=new Array(k),E=0;E div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":K(K(K(K({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function kkt(e){return La("ProFormGroup",function(t){var n=A(A({},t),{},{componentCls:".".concat(e)});return[_kt(n)]})}var Zoe=L.forwardRef(function(e,t){var n=L.useContext(ek),r=n.groupProps,i=A(A({},r),e),a=i.children,o=i.collapsible,s=i.defaultCollapsed,l=i.style,c=i.labelLayout,d=i.title,f=d===void 0?e.label:d,m=i.tooltip,p=i.align,h=p===void 0?"start":p,v=i.direction,g=i.size,w=g===void 0?32:g,y=i.titleStyle,b=i.titleRender,x=i.spaceProps,C=i.extra,S=i.autoFocus,_=Ut(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),k=ie(_,2),$=k[0],E=k[1],P=u.useContext(en.ConfigContext),M=P.getPrefixCls,j=WN(e),O=j.ColWrapper,N=j.RowWrapper,R=M("pro-form-group"),D=kkt(R),F=D.wrapSSR,z=D.hashId,I=o&&T.jsx(Fs,{style:{marginInlineEnd:8},rotate:$?void 0:90}),H=T.jsx(rit,{label:I?T.jsxs("div",{children:[I,f]}):f,tooltip:m}),V=u.useCallback(function(Y){var re=Y.children;return T.jsx(Ws,A(A({},x),{},{className:ne("".concat(R,"-container ").concat(z),x==null?void 0:x.className),size:w,align:h,direction:v,style:A({rowGap:0},x==null?void 0:x.style),children:re}))},[h,R,v,z,w,x]),B=b?b(H,e):H,W=u.useMemo(function(){var Y=[],re=L.Children.toArray(a).map(function(G,Q){var J;return L.isValidElement(G)&&G!==null&&G!==void 0&&(J=G.props)!==null&&J!==void 0&&J.hidden?(Y.push(G),null):Q===0&&L.isValidElement(G)&&S?L.cloneElement(G,A(A({},G.props),{},{autoFocus:S})):G});return[T.jsx(N,{Wrapper:V,children:re},"children"),Y.length>0?T.jsx("div",{style:{display:"none"},children:Y}):null]},[a,N,V,S]),U=ie(W,2),X=U[0],q=U[1];return F(T.jsx(O,{children:T.jsxs("div",{className:ne(R,z,K({},"".concat(R,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[q,(f||m||C)&&T.jsx("div",{className:"".concat(R,"-title ").concat(z).trim(),style:y,onClick:function(){E(!$)},children:C?T.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[B,T.jsx("span",{onClick:function(re){return re.stopPropagation()},children:C})]}):B}),T.jsx("div",{style:{display:o&&$?"none":void 0},children:X})]})}))});Zoe.displayName="ProForm-Group";var $kt=function(t){var n=Vr(),r=Hr.useFormInstance();if(t.render===!1)return null;var i=t.onSubmit,a=t.render,o=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,d=t.resetButtonProps,f=Rl.useToken(),m=f.token,p=function(){r.submit(),i==null||i()},h=function(){r.resetFields(),o==null||o()},v=l.submitText,g=v===void 0?n.getMessage("tableForm.submit","提交"):v,w=l.resetText,y=w===void 0?n.getMessage("tableForm.reset","重置"):w,b=[];d!==!1&&b.push(u.createElement(_n,A(A({},Us(d,["preventDefault"])),{},{key:"rest",onClick:function(S){var _;d!=null&&d.preventDefault||h(),d==null||(_=d.onClick)===null||_===void 0||_.call(d,S)}}),y)),c!==!1&&b.push(u.createElement(_n,A(A({type:"primary"},Us(c||{},["preventDefault"])),{},{key:"submit",onClick:function(S){var _;c!=null&&c.preventDefault||p(),c==null||(_=c.onClick)===null||_===void 0||_.call(c,S)}}),g));var x=a?a(A(A({},t),{},{form:r,submit:p,reset:h}),b):b;return x?Array.isArray(x)?(x==null?void 0:x.length)<1?null:(x==null?void 0:x.length)===1?x[0]:T.jsx("div",{style:{display:"flex",gap:m.marginXS,alignItems:"center"},children:x}):x:null},Ekt=["fieldProps","proFieldProps"],Pkt=["fieldProps","proFieldProps"],NS="text",Tkt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=ft(t,Ekt);return T.jsx(b0,A({valueType:NS,fieldProps:n,filedConfig:{valueType:NS},proFieldProps:r},i))},Okt=function(t){var n=Ut(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=ie(n,2),i=r[0],a=r[1];return T.jsx(Hr.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return T.jsx(Sf,A(A({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return a(f)},content:T.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?T.jsx("div",{style:{marginTop:10},children:T.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},Rkt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=ft(t,Pkt),a=u.useState(!1),o=ie(a,2),s=o[0],l=o[1];return n!=null&&n.statusRender&&i.name?T.jsx(Okt,{name:i.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:T.jsx("div",{children:T.jsx(b0,A({valueType:"password",fieldProps:A(A({},Us(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(d){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,d),l(!1)},onClick:function(d){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,d),l(!0)}}),proFieldProps:r,filedConfig:{valueType:NS}},i))})}):T.jsx(b0,A({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:NS}},i))},DS=Tkt;DS.Password=Rkt;DS.displayName="ProFormComponent";var Ikt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Mkt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],Rw=function(t,n,r){return t===!0?n:bS(t,n,r)},sV=function(t){return!t||Array.isArray(t)?t:[t]};function Nkt(e){var t,n=e.children,r=e.contentRender,i=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,o=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var d=e.extraUrlParams,f=d===void 0?{}:d,m=e.syncToUrl,p=e.onUrlSearchChange,h=e.onReset,v=e.omitNil,g=v===void 0?!0:v;e.isKeyPressSubmit;var w=e.autoFocusFirstInput,y=w===void 0?!0:w,b=e.grid,x=e.rowProps,C=e.colProps,S=ft(e,Ikt),_=Hr.useFormInstance(),k=(en==null||(t=en.useConfig)===null||t===void 0?void 0:t.call(en))||{componentSize:"middle"},$=k.componentSize,E=u.useRef(l||_),P=WN({grid:b,rowProps:x}),M=P.RowWrapper,j=_l(function(){return _}),O=u.useMemo(function(){return{getFieldsFormatValue:function(H){var V;return a((V=j())===null||V===void 0?void 0:V.getFieldsValue(H),g)},getFieldFormatValue:function(){var H,V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],B=sV(V);if(!B)throw new Error("nameList is require");var W=(H=j())===null||H===void 0?void 0:H.getFieldValue(B),U=B?Tp({},B,W):W;return _d(a(U,g,B),B)},getFieldFormatValueObject:function(H){var V,B=sV(H),W=(V=j())===null||V===void 0?void 0:V.getFieldValue(B),U=B?Tp({},B,W):W;return a(U,g,B)},validateFieldsReturnFormatValue:function(){var I=Ki(Bn().mark(function V(B){var W,U,X;return Bn().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!(!Array.isArray(B)&&B)){Y.next=2;break}throw new Error("nameList must be array");case 2:return Y.next=4,(W=j())===null||W===void 0?void 0:W.validateFields(B);case 4:return U=Y.sent,X=a(U,g),Y.abrupt("return",X||{});case 7:case"end":return Y.stop()}},V)}));function H(V){return I.apply(this,arguments)}return H}()}},[g,a]),N=u.useMemo(function(){return L.Children.toArray(n).map(function(I,H){return H===0&&L.isValidElement(I)&&y?L.cloneElement(I,A(A({},I.props),{},{autoFocus:y})):I})},[y,n]),R=u.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),D=u.useMemo(function(){if(i!==!1)return T.jsx($kt,A(A({},R),{},{onReset:function(){var H,V,B=a((H=E.current)===null||H===void 0?void 0:H.getFieldsValue(),g);if(R==null||(V=R.onReset)===null||V===void 0||V.call(R,B),h==null||h(B),m){var W,U=Object.keys(a((W=E.current)===null||W===void 0?void 0:W.getFieldsValue(),!1)).reduce(function(X,q){return A(A({},X),{},K({},q,B[q]||void 0))},f);p(Rw(m,U||{},"set"))}},submitButtonProps:A({loading:c},R.submitButtonProps)}),"submitter")},[i,R,c,a,g,h,m,f,p]),F=u.useMemo(function(){var I=b?T.jsx(M,{children:N}):N;return r?r(I,D,E.current):I},[b,M,N,r,D]),z=pit(e.initialValues);return u.useEffect(function(){if(!(m||!e.initialValues||!z||S.request)){var I=Ld(e.initialValues,z);Mx(I,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? : null "),Mx(I,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),u.useImperativeHandle(o,function(){return A(A({},E.current),O)},[O,E.current]),u.useEffect(function(){var I,H,V=a((I=E.current)===null||I===void 0||(H=I.getFieldsValue)===null||H===void 0?void 0:H.call(I,!0),g);s==null||s(V,A(A({},E.current),O))},[]),T.jsx(nae.Provider,{value:A(A({},O),{},{formRef:E}),children:T.jsx(en,{componentSize:S.size||$,children:T.jsxs(Oae.Provider,{value:{grid:b,colProps:C},children:[S.component!==!1&&T.jsx("input",{type:"text",style:{display:"none"}}),F]})})})}var lV=0;function Dkt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,i=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,o=a===void 0?!1:a,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,m=e.groupProps,p=e.dateFormatter,h=p===void 0?"string":p,v=e.formRef;e.onInit;var g=e.form,w=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var y=e.omitNil,b=y===void 0?!0:y,x=e.request,C=e.params,S=e.initialValues,_=e.formKey,k=_===void 0?lV:_;e.readonly;var $=e.onLoadingChange,E=e.loading,P=ft(e,Mkt),M=u.useRef({}),j=Ut(!1,{onChange:$,value:E}),O=ie(j,2),N=O[0],R=O[1],D=Wot({},{disabled:!r}),F=ie(D,2),z=F[0],I=F[1],H=u.useRef(yS());u.useEffect(function(){lV+=0},[]);var V=mit({request:x,params:C,proFieldKey:k}),B=ie(V,1),W=B[0],U=u.useContext(en.ConfigContext),X=U.getPrefixCls,q=X("pro-form"),Y=La("ProForm",function(me){return K({},".".concat(q),K({},"> div:not(".concat(me.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),re=Y.wrapSSR,G=Y.hashId,Q=u.useState(function(){return r?Rw(r,z,"get"):{}}),J=ie(Q,2),Z=J[0],ee=J[1],te=u.useRef({}),le=u.useRef({}),oe=_l(function(me,xe,ue){return Hot(sit(me,h,le.current,xe,ue),te.current,xe)});u.useEffect(function(){l||ee({})},[l]);var de=_l(function(){return A(A({},z),n)});u.useEffect(function(){r&&I(Rw(r,de(),"set"))},[n,de,r]);var pe=u.useMemo(function(){if(!(typeof window>"u")&&w&&["DrawerForm"].includes(w))return function(me){return me.parentNode||document.body}},[w]),ye=_l(Ki(Bn().mark(function me(){var xe,ue,ce,$e,se,he,ve;return Bn().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(P.onFinish){Se.next=2;break}return Se.abrupt("return");case 2:if(!N){Se.next=4;break}return Se.abrupt("return");case 4:return Se.prev=4,ce=M==null||(xe=M.current)===null||xe===void 0||(ue=xe.getFieldsFormatValue)===null||ue===void 0?void 0:ue.call(xe),$e=P.onFinish(ce),$e instanceof Promise&&R(!0),Se.next=10,$e;case 10:r&&(ve=Object.keys(M==null||(se=M.current)===null||se===void 0||(he=se.getFieldsFormatValue)===null||he===void 0?void 0:he.call(se,void 0,!1)).reduce(function(Ee,De){var we;return A(A({},Ee),{},K({},De,(we=ce[De])!==null&&we!==void 0?we:void 0))},n),Object.keys(z).forEach(function(Ee){ve[Ee]!==!1&&ve[Ee]!==0&&!ve[Ee]&&(ve[Ee]=void 0)}),I(Rw(r,ve,"set"))),R(!1),Se.next=18;break;case 14:Se.prev=14,Se.t0=Se.catch(4),console.log(Se.t0),R(!1);case 18:case"end":return Se.stop()}},me,null,[[4,14]])})));return u.useImperativeHandle(v,function(){return M.current},[!W]),!W&&e.request?T.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:T.jsx(Hu,{})}):re(T.jsx(p5.Provider,{value:{mode:e.readonly?"read":"edit"},children:T.jsx(Brt,{needDeps:!0,children:T.jsx(ek.Provider,{value:{formRef:M,fieldProps:c,proFieldProps:d,formItemProps:f,groupProps:m,formComponentType:w,getPopupContainer:pe,formKey:H.current,setFieldValueType:function(xe,ue){var ce=ue.valueType,$e=ce===void 0?"text":ce,se=ue.dateFormat,he=ue.transform;Array.isArray(xe)&&(te.current=Tp(te.current,xe,he),le.current=Tp(le.current,xe,{valueType:$e,dateFormat:se}))}},children:T.jsx(h5.Provider,{value:{},children:T.jsx(Hr,A(A({onKeyPress:function(xe){if(i&&xe.key==="Enter"){var ue;(ue=M.current)===null||ue===void 0||ue.submit()}},autoComplete:"off",form:g},Us(P,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(xe){M.current&&(M.current.nativeElement=xe==null?void 0:xe.nativeElement)},initialValues:o?A(A(A({},S),W),Z):A(A(A({},Z),S),W),onValuesChange:function(xe,ue){var ce;P==null||(ce=P.onValuesChange)===null||ce===void 0||ce.call(P,oe(xe,!!b),oe(ue,!!b))},className:ne(e.className,q,G),onFinish:ye,children:T.jsx(Nkt,A(A({transformKey:oe,autoComplete:"off",loading:N,onUrlSearchChange:I},e),{},{formRef:M,initialValues:A(A({},S),W)}))}))})})})}))}var jkt=function(t){return K(K({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),K({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function Fkt(e){return La("LightWrapper",function(t){var n=A(A({},t),{},{componentCls:".".concat(e)});return[jkt(n)]})}var Akt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],Lkt=function(t){var n=t.label,r=t.size,i=t.disabled,a=t.onChange,o=t.className,s=t.style,l=t.children,c=t.valuePropName,d=t.placeholder,f=t.labelFormatter,m=t.bordered,p=t.footerRender,h=t.allowClear,v=t.otherFieldProps,g=t.valueType,w=t.placement,y=ft(t,Akt),b=u.useContext(en.ConfigContext),x=b.getPrefixCls,C=x("pro-field-light-wrapper"),S=Fkt(C),_=S.wrapSSR,k=S.hashId,$=u.useState(t[c]),E=ie($,2),P=E[0],M=E[1],j=Ut(!1),O=ie(j,2),N=O[0],R=O[1],D=function(){for(var H,V=arguments.length,B=new Array(V),W=0;W{const{token:e}=ii.useToken(),{isCustomServer:t,setIsCustomServer:n}=u.useContext(Gp),[r]=qs.useForm(),[i,a]=u.useState(!1),[o,s]=u.useState(""),[l,c]=u.useState("");u.useEffect(()=>{o&&o.length>0&&(r.setFieldsValue({apiUrl:o}),console.log("apiUrl:",o))},[o]),u.useEffect(()=>{if(t){const m=localStorage.getItem(bm);m==="true"&&(a(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const p=localStorage.getItem(xv);p&&r.setFieldsValue({apiUrl:Lf(p)});const h=localStorage.getItem(Sv);h&&r.setFieldsValue({websocketUrl:Lf(h)})}},[t]);const d=m=>{if(console.log("handleCustomServerChange e:",m),a(m.target.checked),m.target.checked){const p=localStorage.getItem(xv);p&&r.setFieldsValue({apiUrl:Lf(p)});const h=localStorage.getItem(Sv);h&&r.setFieldsValue({websocketUrl:Lf(h)}),console.log("initData apiUrl:",p,"websocketUrl:",h)}else localStorage.setItem(bm,"false")},f=(m,p)=>(console.log("props:",m,p),T.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[T.jsx(_n,{type:"primary",onClick:()=>{let h=m.form.getFieldValue("apiUrl");h=Lf(h.trim());let v=m.form.getFieldValue("websocketUrl");v=Lf(v.trim()),h&&h.trim().length>0&&v&&v.trim().length>0?(localStorage.setItem(xv,h),localStorage.setItem(Sv,v),localStorage.setItem(bm,"true"),Kr.success("保存成功")):Kr.error("请输入正确的服务器地址")},children:"保存"},"submit"),T.jsx(_n,{onClick:()=>{var h;(h=m.form)==null||h.resetFields(),s(""),localStorage.setItem(bm,"false"),localStorage.setItem(xv,""),localStorage.setItem(Sv,""),Kr.success("重置成功,已恢复默认云服务器")},children:"重置"},"reset"),T.jsx(_n,{onClick:()=>{window.open("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:"帮助"},"help")]}));return T.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:T.jsxs(qs,{className:"ant-pro-form-server-main",form:r,submitter:{render:f},children:[T.jsx(Yoe,{name:"isCustomServerEnabled",fieldProps:{onChange:m=>{console.log("e:",m),d(m)}},children:"是否启用自定义服务器"}),i&&T.jsxs(T.Fragment,{children:[T.jsx(DS,{name:"apiUrl",label:"API 服务器地址(例如:http://127.0.0.1:9003 或 https://api.bytedesk.com)",fieldProps:{disabled:!i,placeholder:"http://127.0.0.1:9003",onChange:m=>s(m.target.value)}}),T.jsx(DS,{name:"websocketUrl",label:"WebSocket 服务器地址(例如:ws://127.0.0.1:9003/stomp 或 wss://api.bytedesk.com/stomp)",fieldProps:{disabled:!i,placeholder:"ws://127.0.0.1:9003/stomp",onChange:m=>c(m.target.value)}})]})]})})};async function zkt(e){return xi.get("/spring/ai/demo/airline/bookings",{params:{...e,client:lr}})}const{Title:Hkt}=Da,Vkt=[{title:"预订编号",dataIndex:"bookingNumber",key:"bookingNumber",render:e=>T.jsx("a",{children:e})},{title:"乘客姓名",dataIndex:"name",key:"name"},{title:"航班日期",dataIndex:"date",key:"date"},{title:"预订状态",dataIndex:"bookingStatus",key:"bookingStatus"},{title:"出发地",dataIndex:"from",key:"from"},{title:"目的地",dataIndex:"to",key:"to"},{title:"舱位等级",dataIndex:"bookingClass",key:"bookingClass"}],Wkt=()=>{const[e,t]=L.useState([]),n=async()=>{console.log("fetchBookings");const i=await zkt({pageNumber:0,pageSize:10});if(console.log("getBookings:",i),i.status===200){const a=i.data.data.map(o=>({...o,key:o.bookingNumber}));t(a)}else console.error("Failed to fetch bookings")};return u.useEffect(()=>{n()},[]),T.jsxs(T.Fragment,{children:[T.jsx(Hkt,{children:"机票预定信息"}),T.jsx(ko,{columns:Vkt,dataSource:e,rowKey:"bookingNumber"})]})},Ukt=()=>T.jsx(T.Fragment,{children:T.jsxs(hw,{style:{width:"100%",boxShadow:"0 0 10px rgba(0, 0, 0, 0.1)"},children:[T.jsx(hw.Panel,{defaultSize:"30%",min:"20%",max:"70%",children:T.jsx(mie,{})}),T.jsx(hw.Panel,{children:T.jsx(Wkt,{})})]})}),qkt="1.0.5",Gkt=L.createContext({}),Kkt={classNames:{},styles:{},className:"",style:{}},kh=e=>{const t=L.useContext(Gkt);return L.useMemo(()=>({...Kkt,...t[e]}),[t[e]])};function Nl(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r,theme:i}=L.useContext(en.ConfigContext);return{theme:i,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r}}const A1=L.createContext(null);function cV(e){const{getDropContainer:t,className:n,prefixCls:r,children:i}=e,{disabled:a}=L.useContext(A1),[o,s]=L.useState(),[l,c]=L.useState(null);if(L.useEffect(()=>{const m=t==null?void 0:t();o!==m&&s(m)},[t]),L.useEffect(()=>{if(o){const m=()=>{c(!0)},p=g=>{g.preventDefault()},h=g=>{g.relatedTarget||c(!1)},v=g=>{c(!1),g.preventDefault()};return document.addEventListener("dragenter",m),document.addEventListener("dragover",p),document.addEventListener("dragleave",h),document.addEventListener("drop",v),()=>{document.removeEventListener("dragenter",m),document.removeEventListener("dragover",p),document.removeEventListener("dragleave",h),document.removeEventListener("drop",v)}}},[!!o]),!(t&&o&&!a))return null;const f=`${r}-drop-area`;return yi.createPortal(L.createElement("div",{className:ne(f,n,{[`${f}-on-body`]:o.tagName==="BODY"}),style:{display:l?"block":"none"}},i),o)}function Ykt(e,t){const{children:n,upload:r,rootClassName:i}=e,a=L.useRef(null);return L.useImperativeHandle(t,()=>a.current),L.createElement(F_,Oe({},r,{showUploadList:!1,rootClassName:i,ref:a}),n)}const Joe=L.forwardRef(Ykt),Xkt=Zd(ii.defaultAlgorithm),Qkt={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ese=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i,...a}=t;let o={...r,override:i};return o=j2(o),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c,...d}=l;let f=d;c&&(f=ese({...o,...d},{override:d},c)),o[s]=f}),o};function Zkt(){const{token:e,hashed:t,theme:n=Xkt,override:r,cssVar:i}=L.useContext(ii._internalContext),[a,o,s]=EI(n,[ii.defaultSeed,e],{salt:`${qkt}-${t||""}`,override:r,getComputedToken:ese,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:DI,ignore:tQ,preserve:Qkt}});return[n,s,t?o:"",a,i]}const{genStyleHooks:$h,genComponentStyleHook:f4t,genSubStyleComponent:m4t}=eQ({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=Nl();return{iconPrefixCls:t,rootPrefixCls:e()}},useToken:()=>{const[e,t,n,r,i]=Zkt();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=Nl();return e??{}},layer:{name:"antdx",dependencies:["antd"]}}),Jkt=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list-card`,i=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:n(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:n(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:n(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:n(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:i,height:i,lineHeight:1,[`&:not(${r}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:n(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{transition:["opacity","width","margin","padding"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:n(e.paddingSM).mul(-1).equal()}}}}},f6={"&, *":{boxSizing:"border-box"}},e$t=e=>{const{componentCls:t,calc:n,antCls:r}=e,i=`${t}-drop-area`,a=`${t}-placeholder`;return{[i]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...f6,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${a}-inner`]:{display:"none"}},[a]:{padding:0}},"&":{[a]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",background:e.colorBgPlaceholderHover,...f6,[`${r}-upload-wrapper ${r}-upload${r}-upload-btn`]:{padding:0},[`&${a}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${a}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${a}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${a}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${a}-title${a}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${a}-description`]:{}}}}},t$t=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list`,i=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...f6,[r]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(i).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:i,height:i,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${r}-overflow-ping-start ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-end ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${r}-overflow-ping-end ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-start ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},n$t=e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new rn(t).setA(.85).toRgbString()}},tse=$h("Attachments",e=>{const t=Yt(e,{});return[e$t(t),t$t(t),Jkt(t)]},n$t),r$t=e=>e.indexOf("image/")===0,hy=200;function i$t(e){return new Promise(t=>{if(!e||!e.type||!r$t(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:r,height:i}=n,a=r/i,o=a>1?hy:hy*a,s=a>1?hy/a:hy,l=document.createElement("canvas");l.width=o,l.height=s,l.style.cssText=`position: fixed; left: 0; top: 0; width: ${o}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(l),l.getContext("2d").drawImage(n,0,0,o,s);const d=l.toDataURL();document.body.removeChild(l),window.URL.revokeObjectURL(n.src),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const r=new FileReader;r.onload=()=>{r.result&&typeof r.result=="string"&&(n.src=r.result)},r.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}function a$t(){return L.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},L.createElement("title",null,"audio"),L.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},L.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})))}function o$t(e){const{percent:t}=e,{token:n}=ii.useToken();return L.createElement(YM,{type:"circle",percent:t,size:n.fontSizeHeading2*2,strokeColor:"#FFF",trailColor:"rgba(255, 255, 255, 0.3)",format:r=>L.createElement("span",{style:{color:"#FFF"}},(r||0).toFixed(0),"%")})}function s$t(){return L.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},L.createElement("title",null,"video"),L.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},L.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})))}const j3=" ",m6="#8c8c8c",nse=["png","jpg","jpeg","gif","bmp","webp","svg"],l$t=[{icon:L.createElement(qke,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:L.createElement(Yke,null),color:m6,ext:nse},{icon:L.createElement(Zke,null),color:m6,ext:["md","mdx"]},{icon:L.createElement(r$e,null),color:"#ff4d4f",ext:["pdf"]},{icon:L.createElement(o$e,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:L.createElement(h$e,null),color:"#1677ff",ext:["doc","docx"]},{icon:L.createElement(b$e,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:L.createElement(s$t,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:L.createElement(a$t,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function uV(e,t){return t.some(n=>e.toLowerCase()===`.${n}`)}function c$t(e){let t=e;const n=["B","KB","MB","GB","TB","PB","EB"];let r=0;for(;t>=1024&&r{const N=c||"",R=N.match(/^(.*)\.[^.]+$/);return R?[R[1],N.slice(R[1].length)]:[N,""]},[c]),S=L.useMemo(()=>uV(C,nse),[C]),_=L.useMemo(()=>p||(m==="uploading"?`${f||0}%`:m==="error"?r.response||j3:d?c$t(d):j3),[m,f]),[k,$]=L.useMemo(()=>{for(const{ext:N,icon:R,color:D}of l$t)if(uV(C,N))return[R,D];return[L.createElement(c$e,{key:"defaultIcon"}),m6]},[C]),[E,P]=L.useState();L.useEffect(()=>{if(r.originFileObj){let N=!0;return i$t(r.originFileObj).then(R=>{N&&P(R)}),()=>{N=!1}}P(void 0)},[r.originFileObj]);let M=null;const j=r.thumbUrl||r.url||E,O=S&&(r.originFileObj||j);return O?M=L.createElement(L.Fragment,null,L.createElement("img",{alt:"preview",src:j}),m!=="done"&&L.createElement("div",{className:`${g}-img-mask`},m==="uploading"&&f!==void 0&&L.createElement(o$t,{percent:f,prefixCls:g}),m==="error"&&L.createElement("div",{className:`${g}-desc`},L.createElement("div",{className:`${g}-ellipsis-prefix`},_)))):M=L.createElement(L.Fragment,null,L.createElement("div",{className:`${g}-icon`,style:{color:$}},k),L.createElement("div",{className:`${g}-content`},L.createElement("div",{className:`${g}-name`},L.createElement("div",{className:`${g}-ellipsis-prefix`},x??j3),L.createElement("div",{className:`${g}-ellipsis-suffix`},C)),L.createElement("div",{className:`${g}-desc`},L.createElement("div",{className:`${g}-ellipsis-prefix`},_)))),w(L.createElement("div",{className:ne(g,{[`${g}-status-${m}`]:m,[`${g}-type-preview`]:O,[`${g}-type-overview`]:!O},a,y,b),style:o,ref:t},M,!l&&i&&L.createElement("button",{type:"button",className:`${g}-remove`,onClick:()=>{i(r)}},L.createElement($c,null))))}const rse=L.forwardRef(u$t),dV=1;function d$t(e){const{prefixCls:t,items:n,onRemove:r,overflow:i,upload:a,listClassName:o,listStyle:s,itemClassName:l,itemStyle:c}=e,d=`${t}-list`,f=L.useRef(null),[m,p]=L.useState(!1),{disabled:h}=L.useContext(A1);L.useEffect(()=>(p(!0),()=>{p(!1)}),[]);const[v,g]=L.useState(!1),[w,y]=L.useState(!1),b=()=>{const _=f.current;_&&(i==="scrollX"?(g(Math.abs(_.scrollLeft)>=dV),y(_.scrollWidth-_.clientWidth-Math.abs(_.scrollLeft)>=dV)):i==="scrollY"&&(g(_.scrollTop!==0),y(_.scrollHeight-_.clientHeight!==_.scrollTop)))};L.useEffect(()=>{b()},[i]);const x=_=>{const k=f.current;k&&k.scrollTo({left:k.scrollLeft+_*k.clientWidth,behavior:"smooth"})},C=()=>{x(-1)},S=()=>{x(1)};return L.createElement("div",{className:ne(d,{[`${d}-overflow-${e.overflow}`]:i,[`${d}-overflow-ping-start`]:v,[`${d}-overflow-ping-end`]:w},o),ref:f,onScroll:b,style:s},L.createElement(A2,{keys:n.map(_=>({key:_.uid,item:_})),motionName:`${d}-card-motion`,component:!1,motionAppear:m,motionLeave:!0,motionEnter:!0},({key:_,item:k,className:$,style:E})=>L.createElement(rse,{key:_,prefixCls:t,item:k,onRemove:r,className:ne($,l),style:{...E,...c}})),!h&&L.createElement(Joe,{upload:a},L.createElement(_n,{className:`${d}-upload-btn`,type:"dashed"},L.createElement(bI,{className:`${d}-upload-btn-icon`}))),i==="scrollX"&&L.createElement(L.Fragment,null,L.createElement(_n,{size:"small",shape:"circle",className:`${d}-prev-btn`,icon:L.createElement(Eu,null),onClick:C}),L.createElement(_n,{size:"small",shape:"circle",className:`${d}-next-btn`,icon:L.createElement(Fs,null),onClick:S})))}function f$t(e,t){const{prefixCls:n,placeholder:r={},upload:i,className:a,style:o}=e,s=`${n}-placeholder`,l=r||{},{disabled:c}=L.useContext(A1),[d,f]=L.useState(!1),m=()=>{f(!0)},p=g=>{g.currentTarget.contains(g.relatedTarget)||f(!1)},h=()=>{f(!1)},v=L.isValidElement(r)?r:L.createElement(ng,{align:"center",justify:"center",vertical:!0,className:`${s}-inner`},L.createElement(Da.Text,{className:`${s}-icon`},l.icon),L.createElement(Da.Title,{className:`${s}-title`,level:5},l.title),L.createElement(Da.Text,{className:`${s}-description`,type:"secondary"},l.description));return L.createElement("div",{className:ne(s,{[`${s}-drag-in`]:d,[`${s}-disabled`]:c},a),onDragEnter:m,onDragLeave:p,onDrop:h,"aria-hidden":c,style:o},L.createElement(F_.Dragger,Oe({showUploadList:!1},i,{ref:t,style:{padding:0,border:0,background:"transparent"}}),v))}const m$t=L.forwardRef(f$t);function p$t(e,t){const{prefixCls:n,rootClassName:r,rootStyle:i,className:a,style:o,items:s,children:l,getDropContainer:c,placeholder:d,onChange:f,overflow:m,disabled:p,classNames:h={},styles:v={},...g}=e,{getPrefixCls:w,direction:y}=Nl(),b=w("attachment",n),x=kh("attachments"),{classNames:C,styles:S}=x,_=L.useRef(null),k=L.useRef(null);L.useImperativeHandle(t,()=>({nativeElement:_.current,upload:I=>{var V,B;const H=(B=(V=k.current)==null?void 0:V.nativeElement)==null?void 0:B.querySelector('input[type="file"]');if(H){const W=new DataTransfer;W.items.add(I),H.files=W.files,H.dispatchEvent(new Event("change",{bubbles:!0}))}}}));const[$,E,P]=tse(b),M=ne(E,P),[j,O]=Ut([],{value:s}),N=Ht(I=>{O(I.fileList),f==null||f(I)}),R={...g,fileList:j,onChange:N},D=I=>{const H=j.filter(V=>V.uid!==I.uid);N({file:I,fileList:H})};let F;const z=(I,H,V)=>{const B=typeof d=="function"?d(I):d;return L.createElement(m$t,{placeholder:B,upload:R,prefixCls:b,className:ne(C.placeholder,h.placeholder),style:{...S.placeholder,...v.placeholder,...H==null?void 0:H.style},ref:V})};if(l)F=L.createElement(L.Fragment,null,L.createElement(Joe,{upload:R,rootClassName:r,ref:k},l),L.createElement(cV,{getDropContainer:c,prefixCls:b,className:ne(M,r)},z("drop")));else{const I=j.length>0;F=L.createElement("div",{className:ne(b,M,{[`${b}-rtl`]:y==="rtl"},a,r),style:{...i,...o},dir:y||"ltr",ref:_},L.createElement(d$t,{prefixCls:b,items:j,onRemove:D,overflow:m,upload:R,listClassName:ne(C.list,h.list),listStyle:{...S.list,...v.list,...!I&&{display:"none"}},itemClassName:ne(C.item,h.item),itemStyle:{...S.item,...v.item}}),z("inline",I?{style:{display:"none"}}:{},k),L.createElement(cV,{getDropContainer:c||(()=>_.current),prefixCls:b,className:M},z("drop")))}return $(L.createElement(A1.Provider,{value:{disabled:p}},F))}const ise=L.forwardRef(p$t);ise.FileCard=rse;function h$t(e,t){return u.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return new Proxy(r,{get(i,a){return n[a]?n[a]:Reflect.get(i,a)}})})}const ase=u.createContext({}),fV=()=>({height:0}),mV=e=>({height:e.scrollHeight});function v$t(e){const{title:t,onOpenChange:n,open:r,children:i,className:a,style:o,classNames:s={},styles:l={},closable:c,forceRender:d}=e,{prefixCls:f}=u.useContext(ase),m=`${f}-header`;return u.createElement(Oi,{motionEnter:!0,motionLeave:!0,motionName:`${m}-motion`,leavedClassName:`${m}-motion-hidden`,onEnterStart:fV,onEnterActive:mV,onLeaveStart:mV,onLeaveActive:fV,visible:r,forceRender:d},({className:p,style:h})=>u.createElement("div",{className:ne(m,p,a),style:{...h,...o}},(c!==!1||t)&&u.createElement("div",{className:ne(`${m}-header`,s.header),style:{...l.header}},u.createElement("div",{className:`${m}-title`},t),c!==!1&&u.createElement("div",{className:`${m}-close`},u.createElement(_n,{type:"text",icon:u.createElement(Ys,null),size:"small",onClick:()=>{n==null||n(!r)}}))),i&&u.createElement("div",{className:ne(`${m}-content`,s.content),style:{...l.content}},i)))}const hk=u.createContext(null);function g$t(e,t){const{className:n,action:r,onClick:i,...a}=e,o=u.useContext(hk),{prefixCls:s,disabled:l}=o,c=o[r],d=l??a.disabled??o[`${r}Disabled`];return u.createElement(_n,Oe({type:"text"},a,{ref:t,onClick:f=>{d||(c&&c(),i&&i(f))},className:ne(s,n,{[`${s}-disabled`]:d})}))}const vk=u.forwardRef(g$t);function b$t(e,t){return u.createElement(vk,Oe({icon:u.createElement(ske,null)},e,{action:"onClear",ref:t}))}const y$t=u.forwardRef(b$t),w$t=u.memo(e=>{const{className:t}=e;return L.createElement("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:t},L.createElement("title",null,"Stop Loading"),L.createElement("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"}),L.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",opacity:"0.45"}),L.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",strokeDasharray:"600 9999999"},L.createElement("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"})))});function x$t(e,t){const{prefixCls:n}=u.useContext(hk),{className:r}=e;return u.createElement(vk,Oe({icon:null,color:"primary",variant:"text",shape:"circle"},e,{className:ne(r,`${n}-loading-button`),action:"onCancel",ref:t}),u.createElement(w$t,{className:`${n}-loading-icon`}))}const pV=u.forwardRef(x$t);function S$t(e,t){return u.createElement(vk,Oe({icon:u.createElement(N_e,null),type:"primary",shape:"circle"},e,{action:"onSend",ref:t}))}const hV=u.forwardRef(S$t),mv=1e3,pv=4,Iw=140,vV=Iw/2,vy=250,gV=500,gy=.8;function C$t({className:e}){return L.createElement("svg",{color:"currentColor",viewBox:`0 0 ${mv} ${mv}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:e},L.createElement("title",null,"Speech Recording"),Array.from({length:pv}).map((t,n)=>{const r=(mv-Iw*pv)/(pv-1),i=n*(r+Iw),a=mv/2-vy/2,o=mv/2-gV/2;return L.createElement("rect",{fill:"currentColor",rx:vV,ry:vV,height:vy,width:Iw,x:i,y:a,key:n},L.createElement("animate",{attributeName:"height",values:`${vy}; ${gV}; ${vy}`,keyTimes:"0; 0.5; 1",dur:`${gy}s`,begin:`${gy/pv*n}s`,repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"y",values:`${a}; ${o}; ${a}`,keyTimes:"0; 0.5; 1",dur:`${gy}s`,begin:`${gy/pv*n}s`,repeatCount:"indefinite"}))}))}function _$t(e,t){const{speechRecording:n,onSpeechDisabled:r,prefixCls:i}=u.useContext(hk);let a=null;return n?a=u.createElement(C$t,{className:`${i}-recording-icon`}):r?a=u.createElement(F_e,null):a=u.createElement(B_e,null),u.createElement(vk,Oe({icon:a,color:"primary",variant:"text"},e,{action:"onSpeech",ref:t}))}const k$t=u.forwardRef(_$t),$$t=e=>{const{componentCls:t,calc:n}=e,r=`${t}-header`;return{[t]:{[r]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",[`${r}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},E$t=e=>{const{componentCls:t,padding:n,paddingSM:r,paddingXS:i,lineWidth:a,lineWidthBold:o,calc:s}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:s(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:a},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:o}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:i,width:"100%",paddingBlock:r,paddingInlineStart:n,paddingInlineEnd:r,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},P$t=()=>({}),T$t=$h("Sender",e=>{const{paddingXS:t,calc:n}=e,r=Yt(e,{SenderContentMaxWidth:`calc(100% - ${ae(n(t).add(32).equal())})`});return[E$t(r),$$t(r)]},P$t);let jS;!jS&&typeof window<"u"&&(jS=window.SpeechRecognition||window.webkitSpeechRecognition);function O$t(e,t){const n=Ht(e),[r,i,a]=L.useMemo(()=>typeof t=="object"?[t.recording,t.onRecordingChange,typeof t.recording=="boolean"]:[void 0,void 0,!1],[t]),[o,s]=L.useState(null);L.useEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let v=null;return navigator.permissions.query({name:"microphone"}).then(g=>{s(g.state),g.onchange=function(){s(this.state)},v=g}),()=>{v&&(v.onchange=null)}}},[]);const l=jS&&o!=="denied",c=L.useRef(null),[d,f]=Ut(!1,{value:r}),m=L.useRef(!1),p=()=>{if(l&&!c.current){const v=new jS;v.onstart=()=>{f(!0)},v.onend=()=>{f(!1)},v.onresult=g=>{var w,y,b;if(!m.current){const x=(b=(y=(w=g.results)==null?void 0:w[0])==null?void 0:y[0])==null?void 0:b.transcript;n(x)}m.current=!1},c.current=v}},h=Ht(v=>{v&&!d||(m.current=v,a?i==null||i(!d):(p(),c.current&&(d?(c.current.stop(),i==null||i(!1)):(c.current.start(),i==null||i(!0)))))});return[l,h,d]}function R$t(e,t,n){return $i(e,t)||n}const I$t=L.forwardRef((e,t)=>{const{prefixCls:n,styles:r={},classNames:i={},className:a,rootClassName:o,style:s,defaultValue:l,value:c,readOnly:d,submitType:f="enter",onSubmit:m,loading:p,components:h,onCancel:v,onChange:g,actions:w,onKeyPress:y,onKeyDown:b,disabled:x,allowSpeech:C,prefix:S,header:_,onPaste:k,onPasteFile:$,...E}=e,{direction:P,getPrefixCls:M}=Nl(),j=M("sender",n),O=L.useRef(null),N=L.useRef(null);h$t(t,()=>{var xe,ue;return{nativeElement:O.current,focus:(xe=N.current)==null?void 0:xe.focus,blur:(ue=N.current)==null?void 0:ue.blur}});const R=kh("sender"),D=`${j}-input`,[F,z,I]=T$t(j),H=ne(j,R.className,a,o,z,I,{[`${j}-rtl`]:P==="rtl",[`${j}-disabled`]:x}),V=`${j}-actions-btn`,B=`${j}-actions-list`,[W,U]=Ut(l||"",{value:c}),X=(xe,ue)=>{U(xe),g&&g(xe,ue)},[q,Y,re]=O$t(xe=>{X(`${W} ${xe}`)},C),G=R$t(h,["input"],Pi.TextArea),J={...yr(E,{attr:!0,aria:!0,data:!0}),ref:N},Z=()=>{W&&m&&!p&&m(W)},ee=()=>{X("")},te=L.useRef(!1),le=()=>{te.current=!0},oe=()=>{te.current=!1},de=xe=>{const ue=xe.key==="Enter"&&!te.current;switch(f){case"enter":ue&&!xe.shiftKey&&(xe.preventDefault(),Z());break;case"shiftEnter":ue&&xe.shiftKey&&(xe.preventDefault(),Z());break}y&&y(xe)},pe=xe=>{var ce;const ue=(ce=xe.clipboardData)==null?void 0:ce.files[0];ue&&$&&($(ue),xe.preventDefault()),k==null||k(xe)},ye=xe=>{var ue,ce;xe.target!==((ue=O.current)==null?void 0:ue.querySelector(`.${D}`))&&xe.preventDefault(),(ce=N.current)==null||ce.focus()};let me=L.createElement(ng,{className:`${B}-presets`},C&&L.createElement(k$t,null),p?L.createElement(pV,null):L.createElement(hV,null));return typeof w=="function"?me=w(me,{components:{SendButton:hV,ClearButton:y$t,LoadingButton:pV}}):w&&(me=w),F(L.createElement("div",{ref:O,className:H,style:{...R.style,...s}},_&&L.createElement(ase.Provider,{value:{prefixCls:j}},_),L.createElement("div",{className:`${j}-content`,onMouseDown:ye},S&&L.createElement("div",{className:ne(`${j}-prefix`,R.classNames.prefix,i.prefix),style:{...R.styles.prefix,...r.prefix}},S),L.createElement(G,Oe({},J,{disabled:x,style:{...R.styles.input,...r.input},className:ne(D,R.classNames.input,i.input),autoSize:{maxRows:8},value:W,onChange:xe=>{X(xe.target.value,xe),Y(!0)},onPressEnter:de,onCompositionStart:le,onCompositionEnd:oe,onKeyDown:b,onPaste:pe,variant:"borderless",readOnly:d})),L.createElement("div",{className:ne(B,R.classNames.actions,i.actions),style:{...R.styles.actions,...r.actions}},L.createElement(hk.Provider,{value:{prefixCls:V,onSend:Z,onSendDisabled:!W,onClear:ee,onClearDisabled:!W,onCancel:v,onCancelDisabled:!p,onSpeech:()=>Y(!1),onSpeechDisabled:!q,speechRecording:re,disabled:x}},me)))))}),p6=I$t;p6.Header=v$t;function by(e){return typeof e=="string"}const M$t=(e,t,n,r)=>{const[i,a]=u.useState(""),[o,s]=u.useState(1),l=t&&by(e);return an(()=>{a(e),!l&&by(e)?s(e.length):by(e)&&by(i)&&e.indexOf(i)!==0&&s(1)},[e]),u.useEffect(()=>{if(l&&o{s(f=>f+n)},r);return()=>{clearTimeout(d)}}},[o,t,e]),[l?e.slice(0,o):e,l&&o{if(!e)return[!1,0,0,null];let t={step:1,interval:50,suffix:null};return typeof e=="object"&&(t={...t,...e}),[!0,t.step,t.interval,t.suffix]},[e])}const D$t=({prefixCls:e})=>L.createElement("span",{className:`${e}-dot`},L.createElement("i",{className:`${e}-dot-item`,key:"item-1"}),L.createElement("i",{className:`${e}-dot-item`,key:"item-2"}),L.createElement("i",{className:`${e}-dot-item`,key:"item-3"})),j$t=e=>{const{componentCls:t,paddingSM:n,padding:r}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${ae(n)} ${ae(r)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},F$t=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:i,padding:a,calc:o}=e,s=o(n).mul(r).div(2).add(i).equal(),l=`${t}-content`;return{[t]:{[l]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:o(a).mul(1.25).equal()}},[`&-start ${l}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${l}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},A$t=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto"}}},L$t=new on("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),B$t=new on("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),z$t=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:i,colorText:a,calc:o}=e;return{[t]:{display:"flex",columnGap:i,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:B$t,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:r,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:i},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:a,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:o(i).mul(2).add(o(r).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${ae(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:L$t,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},H$t=()=>({}),ose=$h("Bubble",e=>{const t=Yt(e,{});return[z$t(t),A$t(t),j$t(t),F$t(t)]},H$t),sse=L.createContext({}),V$t=(e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o={},styles:s={},avatar:l,placement:c="start",loading:d=!1,loadingRender:f,typing:m,content:p="",messageRender:h,variant:v="filled",shape:g,onTypingComplete:w,header:y,footer:b,...x}=e,{onUpdate:C}=L.useContext(sse),S=L.useRef(null);L.useImperativeHandle(t,()=>({nativeElement:S.current}));const{direction:_,getPrefixCls:k}=Nl(),$=k("bubble",n),E=kh("bubble"),[P,M,j,O]=N$t(m),[N,R]=M$t(p,P,M,j);L.useEffect(()=>{C==null||C()},[N]);const D=L.useRef(!1);L.useEffect(()=>{!R&&!d?D.current||(D.current=!0,w==null||w()):D.current=!1},[R,d]);const[F,z,I]=ose($),H=ne($,i,E.className,r,z,I,`${$}-${c}`,{[`${$}-rtl`]:_==="rtl",[`${$}-typing`]:R&&!d&&!h&&!O}),V=L.isValidElement(l)?l:L.createElement(d_,l),B=h?h(N):N;let W;d?W=f?f():L.createElement(D$t,{prefixCls:$}):W=L.createElement(L.Fragment,null,B,R&&O);let U=L.createElement("div",{style:{...E.styles.content,...s.content},className:ne(`${$}-content`,`${$}-content-${v}`,g&&`${$}-content-${g}`,E.classNames.content,o.content)},W);return(y||b)&&(U=L.createElement("div",{className:`${$}-content-wrapper`},y&&L.createElement("div",{className:ne(`${$}-header`,E.classNames.header,o.header),style:{...E.styles.header,...s.header}},y),U,b&&L.createElement("div",{className:ne(`${$}-footer`,E.classNames.footer,o.footer),style:{...E.styles.footer,...s.footer}},b))),F(L.createElement("div",Oe({style:{...E.style,...a},className:H},x,{ref:S}),l&&L.createElement("div",{style:{...E.styles.avatar,...s.avatar},className:ne(`${$}-avatar`,E.classNames.avatar,o.avatar)},V),U))},v5=L.forwardRef(V$t);function W$t(e){const[t,n]=L.useState(e.length),r=L.useMemo(()=>e.slice(0,t),[e,t]),i=L.useMemo(()=>{const o=r[r.length-1];return o?o.key:null},[r]);L.useEffect(()=>{var o;if(!(r.length&&r.every((s,l)=>{var c;return s.key===((c=e[l])==null?void 0:c.key)}))){if(r.length===0)n(1);else for(let s=0;s{o===i&&n(t+1)});return[r,a]}function U$t(e,t){const n=u.useCallback(r=>typeof t=="function"?t(r):t?t[r.role]||{}:{},[t]);return u.useMemo(()=>(e||[]).map((r,i)=>{const a=r.key??`preset_${i}`;return{...n(r),...r,key:a}}),[e,n])}const q$t=1,G$t=(e,t)=>{const{prefixCls:n,rootClassName:r,className:i,items:a,autoScroll:o=!0,roles:s,...l}=e,c=yr(l,{attr:!0,aria:!0}),d=u.useRef(null),f=u.useRef({}),{getPrefixCls:m}=Nl(),p=m("bubble",n),h=`${p}-list`,[v,g,w]=ose(p),[y,b]=u.useState(!1);u.useEffect(()=>(b(!0),()=>{b(!1)}),[]);const x=U$t(a,s),[C,S]=W$t(x),[_,k]=u.useState(!0),[$,E]=u.useState(0),P=O=>{const N=O.target;k(N.scrollHeight-Math.abs(N.scrollTop)-N.clientHeight<=q$t)};u.useEffect(()=>{o&&d.current&&_&&d.current.scrollTo({top:d.current.scrollHeight})},[$]),u.useEffect(()=>{var O;if(o){const N=(O=C[C.length-2])==null?void 0:O.key,R=f.current[N];if(R){const{nativeElement:D}=R,{top:F,bottom:z}=D.getBoundingClientRect(),{top:I,bottom:H}=d.current.getBoundingClientRect();FI&&(E(B=>B+1),k(!0))}}},[C.length]),u.useImperativeHandle(t,()=>({nativeElement:d.current,scrollTo:({key:O,offset:N,behavior:R="smooth",block:D})=>{if(typeof N=="number")d.current.scrollTo({top:N,behavior:R});else if(O!==void 0){const F=f.current[O];if(F){const z=C.findIndex(I=>I.key===O);k(z===C.length-1),F.nativeElement.scrollIntoView({behavior:R,block:D})}}}}));const M=Ht(()=>{o&&E(O=>O+1)}),j=u.useMemo(()=>({onUpdate:M}),[]);return v(u.createElement(sse.Provider,{value:j},u.createElement("div",Oe({},c,{className:ne(h,r,i,g,w,{[`${h}-reach-end`]:_}),ref:d,onScroll:P}),C.map(({key:O,...N})=>u.createElement(v5,Oe({},N,{key:O,ref:R=>{R?f.current[O]=R:delete f.current[O]},typing:y?N.typing:!1,onTypingComplete:()=>{var R;(R=N.onTypingComplete)==null||R.call(N),S(O)}}))))))},K$t=u.forwardRef(G$t);v5.List=K$t;const lse=L.createContext(null),bV=({children:e})=>{const{prefixCls:t}=L.useContext(lse);return L.createElement("div",{className:ne(`${t}-group-title`)},e&&L.createElement(Da.Text,null,e))},Y$t=e=>{e.stopPropagation()},X$t=e=>{const{prefixCls:t,info:n,className:r,direction:i,onClick:a,active:o,menu:s,...l}=e,c=yr(l,{aria:!0,data:!0,attr:!0}),{disabled:d}=n,[f,m]=L.useState(!1),[p,h]=L.useState(!1),v=ne(r,`${t}-item`,{[`${t}-item-active`]:o&&!d},{[`${t}-item-disabled`]:d}),g=()=>{!d&&a&&a(n)},w=y=>{y&&h(!y)};return L.createElement(na,{title:n.label,open:f&&p,onOpenChange:h,placement:i==="rtl"?"left":"right"},L.createElement("li",Oe({},c,{className:v,onClick:g}),n.icon&&L.createElement("div",{className:`${t}-icon`},n.icon),L.createElement(Da.Text,{className:`${t}-label`,ellipsis:{onEllipsis:m}},n.label),s&&!d&&L.createElement(E_,{menu:s,placement:i==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:d,onOpenChange:w},L.createElement(e1,{onClick:Y$t,disabled:d,className:`${t}-menu-icon`}))))},F3="__ungrouped",Q$t=(e,t=[])=>{const[n,r,i]=L.useMemo(()=>{if(!e)return[!1,void 0,void 0];let a={sort:void 0,title:void 0};return typeof e=="object"&&(a={...a,...e}),[!0,a.sort,a.title]},[e]);return L.useMemo(()=>{if(!n)return[[{name:F3,data:t,title:void 0}],n];const a=t.reduce((l,c)=>{const d=c.group||F3;return l[d]||(l[d]=[]),l[d].push(c),l},{});return[(r?Object.keys(a).sort(r):Object.keys(a)).map(l=>({name:l===F3?void 0:l,title:i,data:a[l]})),n]},[t,e])},Z$t=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${ae(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${ae(e.paddingXS)}`}}}},J$t=()=>({}),eEt=$h("Conversations",e=>{const t=Yt(e,{});return Z$t(t)},J$t),tEt=e=>{const{prefixCls:t,rootClassName:n,items:r,activeKey:i,defaultActiveKey:a,onActiveChange:o,menu:s,styles:l={},classNames:c={},groupable:d,className:f,style:m,...p}=e,h=yr(p,{attr:!0,aria:!0,data:!0}),[v,g]=Ut(a,{value:i}),[w,y]=Q$t(d,r),{getPrefixCls:b,direction:x}=Nl(),C=b("conversations",t),S=kh("conversations"),[_,k,$]=eEt(C),E=ne(C,S.className,f,n,k,$,{[`${C}-rtl`]:x==="rtl"}),P=M=>{g(M.key),o&&o(M.key)};return _(L.createElement("ul",Oe({},h,{style:{...S.style,...m},className:E}),w.map((M,j)=>{var N;const O=M.data.map((R,D)=>L.createElement(X$t,{key:R.key||`key-${D}`,info:R,prefixCls:C,direction:x,className:ne(c.item,S.classNames.item),style:{...S.styles.item,...l.item},menu:typeof s=="function"?s(R):s,active:v===R.key,onClick:P}));return y?L.createElement("li",{key:M.name||`key-${j}`},L.createElement(lse.Provider,{value:{prefixCls:C}},((N=M.title)==null?void 0:N.call(M,M.name,{components:{GroupTitle:bV}}))||L.createElement(bV,{key:M.name},M.name)),L.createElement("ul",{className:`${C}-list`},O)):O})))},nEt=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(n=>`${n} ${e.motionDurationSlow}`).join(","),border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},rEt=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},iEt=()=>({}),aEt=$h("Prompts",e=>{const t=Yt(e,{});return[nEt(t),rEt(t)]},iEt),g5=e=>{const{prefixCls:t,title:n,className:r,items:i,onItemClick:a,vertical:o,wrap:s,rootClassName:l,styles:c={},classNames:d={},style:f,...m}=e,{getPrefixCls:p,direction:h}=Nl(),v=p("prompts",t),g=kh("prompts"),[w,y,b]=aEt(v),x=ne(v,g.className,r,l,y,b,{[`${v}-rtl`]:h==="rtl"}),C=ne(`${v}-list`,g.classNames.list,d.list,{[`${v}-list-wrap`]:s},{[`${v}-list-vertical`]:o});return w(L.createElement("div",Oe({},m,{className:x,style:{...f,...g.style}}),n&&L.createElement(Da.Title,{level:5,className:ne(`${v}-title`,g.classNames.title,d.title),style:{...g.styles.title,...c.title}},n),L.createElement("div",{className:C,style:{...g.styles.list,...c.list}},i==null?void 0:i.map((S,_)=>{const k=S.children&&S.children.length>0;return L.createElement("div",{key:S.key||`key_${_}`,style:{...g.styles.item,...c.item},className:ne(`${v}-item`,g.classNames.item,d.item,{[`${v}-item-disabled`]:S.disabled,[`${v}-item-has-nest`]:k}),onClick:()=>{!k&&a&&a({data:S})}},S.icon&&L.createElement("div",{className:`${v}-icon`},S.icon),L.createElement("div",{className:ne(`${v}-content`,g.classNames.itemContent,d.itemContent),style:{...g.styles.itemContent,...c.itemContent}},S.label&&L.createElement("h6",{className:`${v}-label`},S.label),S.description&&L.createElement("p",{className:`${v}-desc`},S.description),k&&L.createElement(g5,{className:`${v}-nested`,items:S.children,vertical:!0,onItemClick:a,classNames:{list:d.subList,item:d.subItem},styles:{list:c.subList,item:c.subItem}})))}))))},oEt=e=>{const{componentCls:t,calc:n}=e,r=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),i=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(r).add(i).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},sEt=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},lEt=()=>({}),cEt=$h("Welcome",e=>{const t=Yt(e,{});return[oEt(t),sEt(t)]},lEt);function uEt(e,t){const{prefixCls:n,rootClassName:r,className:i,style:a,variant:o="filled",classNames:s={},styles:l={},icon:c,title:d,description:f,extra:m}=e,{direction:p,getPrefixCls:h}=Nl(),v=h("welcome",n),g=kh("welcome"),[w,y,b]=cEt(v),x=L.useMemo(()=>{if(!c)return null;let _=c;return typeof c=="string"&&c.startsWith("http")&&(_=L.createElement("img",{src:c,alt:"icon"})),L.createElement("div",{className:ne(`${v}-icon`,g.classNames.icon,s.icon),style:l.icon},_)},[c]),C=L.useMemo(()=>d?L.createElement(Da.Title,{level:4,className:ne(`${v}-title`,g.classNames.title,s.title),style:l.title},d):null,[d]),S=L.useMemo(()=>m?L.createElement("div",{className:ne(`${v}-extra`,g.classNames.extra,s.extra),style:l.extra},m):null,[m]);return w(L.createElement(ng,{ref:t,className:ne(v,g.className,i,r,y,b,`${v}-${o}`,{[`${v}-rtl`]:p==="rtl"}),style:a},x,L.createElement(ng,{vertical:!0,className:`${v}-content-wrapper`},m?L.createElement(ng,{align:"flex-start",className:`${v}-title-wrapper`},C,S):C,f&&L.createElement(Da.Text,{className:ne(`${v}-description`,g.classNames.description,s.description),style:l.description},f))))}const dEt=L.forwardRef(uEt);function fEt(e){const[,t]=L.useState(0),n=L.useRef(typeof e=="function"?e():e),r=L.useCallback(a=>{n.current=typeof a=="function"?a(n.current):a,t(o=>o+1)},[]),i=L.useCallback(()=>n.current,[]);return[n.current,r,i]}function mEt(e){return Array.isArray(e)?e:[e]}function pEt(e){const{defaultMessages:t,agent:n,requestFallback:r,requestPlaceholder:i,parser:a}=e,o=L.useRef(0),[s,l,c]=fEt(()=>(t||[]).map((v,g)=>({id:`default_${g}`,status:"local",...v}))),d=(v,g)=>{const w={id:`msg_${o.current}`,message:v,status:g};return o.current+=1,w},f=L.useMemo(()=>{const v=[];return s.forEach(g=>{const w=a?a(g.message):g.message,y=mEt(w);y.forEach((b,x)=>{let C=g.id;y.length>1&&(C=`${C}_${x}`),v.push({id:C,message:b,status:g.status})})}),v},[s]),m=v=>v.filter(g=>g.status!=="loading"&&g.status!=="error").map(g=>g.message),p=()=>m(c());return{onRequest:Ht(v=>{if(!n)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let g=null;l(b=>{let x=[...b,d(v,"local")];if(i){let C;typeof i=="function"?C=i(v,{messages:m(x)}):C=i;const S=d(C,"loading");g=S.id,x=[...x,S]}return x});let w=null;const y=(b,x)=>{let C=c().find(S=>S.id===w);return C?l(S=>S.map(_=>_.id===w?{..._,message:b,status:x}:_)):(C=d(b,x),l(S=>[...S.filter(k=>k.id!==g),C]),w=C.id),C};n.request({message:v,messages:p()},{onUpdate:b=>{y(b,"loading")},onSuccess:b=>{y(b,"success")},onError:async b=>{if(r){let x;typeof r=="function"?x=await r(v,{error:b,messages:p()}):x=r,l(C=>[...C.filter(S=>S.id!==g&&S.id!==w),d(x,"error")])}else l(x=>x.filter(C=>C.id!==g&&C.id!==w))}})}),messages:s,parsedMessages:f,setMessages:l}}const hEt=` - -`,vEt=` -`,yV=":",h6=e=>(e??"").trim()!=="";function gEt(){let e="";return new TransformStream({transform(t,n){e+=t;const r=e.split(hEt);r.slice(0,-1).forEach(i=>{h6(i)&&n.enqueue(i)}),e=r[r.length-1]},flush(t){h6(e)&&t.enqueue(e)}})}function bEt(){return new TransformStream({transform(e,t){const r=e.split(vEt).reduce((i,a)=>{const o=a.indexOf(yV);if(o===-1)throw new Error(`The key-value separator "${yV}" is not found in the sse line chunk!`);const s=a.slice(0,o);if(!h6(s))return i;const l=a.slice(o+1);return{...i,[s]:l}},{});Object.keys(r).length!==0&&t.enqueue(r)}})}function wV(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const r=new TextDecoderStream,i=n?t.pipeThrough(r).pipeThrough(n):t.pipeThrough(r).pipeThrough(gEt()).pipeThrough(bEt());return i[Symbol.asyncIterator]=async function*(){const a=this.getReader();for(;;){const{done:o,value:s}=await a.read();if(o)break;s&&(yield s)}},i}const yEt=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:r={},...i}=t;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let a=[e,i];typeof r.onRequest=="function"&&(a=await r.onRequest(...a));let o=await n(...a);if(typeof r.onResponse=="function"){const s=await r.onResponse(o);if(!(s instanceof Response))throw new Error("The options.onResponse must return a Response instance!");o=s}if(!o.ok)throw new Error(`Fetch failed with status ${o.status}`);if(!o.body)throw new Error("The response body is empty.");return o},fd=class fd{constructor(t){Ur(this,"baseURL");Ur(this,"model");Ur(this,"defaultHeaders");Ur(this,"customOptions");Ur(this,"create",async(t,n,r)=>{var a;const i={method:"POST",body:JSON.stringify({model:this.model,...t}),headers:this.defaultHeaders};try{const o=await yEt(this.baseURL,{fetch:this.customOptions.fetch,...i});if(r){await this.customResponseHandler(o,n,r);return}const s=o.headers.get("content-type")||"";switch(s.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(o,n);break;case"application/json":await this.jsonResponseHandler(o,n);break;default:throw new Error(`The response content-type: ${s} is not support!`)}}catch(o){const s=o instanceof Error?o:new Error("Unknown error!");throw(a=n==null?void 0:n.onError)==null||a.call(n,s),s}});Ur(this,"customResponseHandler",async(t,n,r)=>{var a,o;const i=[];for await(const s of wV({readableStream:t.body,transformStream:r}))i.push(s),(a=n==null?void 0:n.onUpdate)==null||a.call(n,s);(o=n==null?void 0:n.onSuccess)==null||o.call(n,i)});Ur(this,"sseResponseHandler",async(t,n)=>{var i,a;const r=[];for await(const o of wV({readableStream:t.body}))r.push(o),(i=n==null?void 0:n.onUpdate)==null||i.call(n,o);(a=n==null?void 0:n.onSuccess)==null||a.call(n,r)});Ur(this,"jsonResponseHandler",async(t,n)=>{var i,a;const r=await t.json();(i=n==null?void 0:n.onUpdate)==null||i.call(n,r),(a=n==null?void 0:n.onSuccess)==null||a.call(n,[r])});const{baseURL:n,model:r,dangerouslyApiKey:i,...a}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=a}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");const n=t.fetch||t.baseURL;return fd.instanceBuffer.has(n)||fd.instanceBuffer.set(n,new fd(t)),fd.instanceBuffer.get(n)}};Ur(fd,"instanceBuffer",new Map);let v6=fd;const wEt=v6.init;let xV=0;class xEt{constructor(t){Ur(this,"config");Ur(this,"requestingMap",{});Ur(this,"request",(t,n)=>{const{request:r}=this.config,{onUpdate:i,onSuccess:a,onError:o}=n,s=xV;xV+=1,this.requestingMap[s]=!0,r==null||r(t,{onUpdate:l=>{this.requestingMap[s]&&i(l)},onSuccess:l=>{this.requestingMap[s]&&(a(l),this.finishRequest(s))},onError:l=>{this.requestingMap[s]&&(o(l),this.finishRequest(s))}})});this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function SEt(e){const{request:t,...n}=e;return L.useMemo(()=>[new xEt({request:t||wEt({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).create,...n})],[])}var CEt=!1;function _Et(e){if(e.sheet)return e.sheet;for(var t=0;t0?Di(Eh,--Aa):0,Fp--,si===10&&(Fp=1,bk--),si}function mo(){return si=Aa2||w0(si)>3?"":" "}function FEt(e,t){for(;--t&&mo()&&!(si<48||si>102||si>57&&si<65||si>70&&si<97););return L1(e,Mw()+(t<6&&kl()==32&&mo()==32))}function b6(e){for(;mo();)switch(si){case e:return Aa;case 34:case 39:e!==34&&e!==39&&b6(si);break;case 40:e===41&&b6(e);break;case 92:mo();break}return Aa}function AEt(e,t){for(;mo()&&e+si!==57;)if(e+si===84&&kl()===47)break;return"/*"+L1(t,Aa-1)+"*"+gk(e===47?e:mo())}function LEt(e){for(;!w0(kl());)mo();return L1(e,Aa)}function BEt(e){return pse(Dw("",null,null,null,[""],e=mse(e),0,[0],e))}function Dw(e,t,n,r,i,a,o,s,l){for(var c=0,d=0,f=o,m=0,p=0,h=0,v=1,g=1,w=1,y=0,b="",x=i,C=a,S=r,_=b;g;)switch(h=y,y=mo()){case 40:if(h!=108&&Di(_,f-1)==58){g6(_+=Kn(Nw(y),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:_+=Nw(y);break;case 9:case 10:case 13:case 32:_+=jEt(h);break;case 92:_+=FEt(Mw()-1,7);continue;case 47:switch(kl()){case 42:case 47:yy(zEt(AEt(mo(),Mw()),t,n),l);break;default:_+="/"}break;case 123*v:s[c++]=ml(_)*w;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+d:w==-1&&(_=Kn(_,/\f/g,"")),p>0&&ml(_)-f&&yy(p>32?CV(_+";",r,n,f-1):CV(Kn(_," ","")+";",r,n,f-2),l);break;case 59:_+=";";default:if(yy(S=SV(_,t,n,c,d,i,s,b,x=[],C=[],f),a),y===123)if(d===0)Dw(_,t,S,S,x,a,f,s,C);else switch(m===99&&Di(_,3)===110?100:m){case 100:case 108:case 109:case 115:Dw(e,S,S,r&&yy(SV(e,S,S,0,0,i,s,b,i,x=[],f),C),i,C,f,s,r?x:C);break;default:Dw(_,S,S,S,[""],C,0,s,C)}}c=d=p=0,v=w=1,b=_="",f=o;break;case 58:f=1+ml(_),p=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&DEt()==125)continue}switch(_+=gk(y),y*v){case 38:w=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(ml(_)-1)*w,w=1;break;case 64:kl()===45&&(_+=Nw(mo())),m=kl(),d=f=ml(b=_+=LEt(Mw())),y++;break;case 45:h===45&&ml(_)==2&&(v=0)}}return a}function SV(e,t,n,r,i,a,o,s,l,c,d){for(var f=i-1,m=i===0?a:[""],p=w5(m),h=0,v=0,g=0;h0?m[w]+" "+y:Kn(y,/&\f/g,m[w])))&&(l[g++]=b);return yk(e,t,n,i===0?b5:s,l,c,d)}function zEt(e,t,n){return yk(e,t,n,cse,gk(NEt()),y0(e,2,-2),0)}function CV(e,t,n,r){return yk(e,t,n,y5,y0(e,0,r),y0(e,r+1,-1),r)}function Km(e,t){for(var n="",r=w5(e),i=0;i6)switch(Di(e,t+1)){case 109:if(Di(e,t+4)!==45)break;case 102:return Kn(e,/(.+:)(.+)-([^]+)/,"$1"+Gn+"$2-$3$1"+FS+(Di(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~g6(e,"stretch")?hse(Kn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Di(e,t+1)!==115)break;case 6444:switch(Di(e,ml(e)-3-(~g6(e,"!important")&&10))){case 107:return Kn(e,":",":"+Gn)+e;case 101:return Kn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gn+(Di(e,14)===45?"inline-":"")+"box$3$1"+Gn+"$2$3$1"+Vi+"$2box$3")+e}break;case 5936:switch(Di(e,t+11)){case 114:return Gn+e+Vi+Kn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gn+e+Vi+Kn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gn+e+Vi+Kn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gn+e+Vi+e+e}return e}var QEt=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case y5:t.return=hse(t.value,t.length);break;case use:return Km([hv(t,{value:Kn(t.value,"@","@"+Gn)})],i);case b5:if(t.length)return MEt(t.props,function(a){switch(IEt(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Km([hv(t,{props:[Kn(a,/:(read-\w+)/,":"+FS+"$1")]})],i);case"::placeholder":return Km([hv(t,{props:[Kn(a,/:(plac\w+)/,":"+Gn+"input-$1")]}),hv(t,{props:[Kn(a,/:(plac\w+)/,":"+FS+"$1")]}),hv(t,{props:[Kn(a,/:(plac\w+)/,Vi+"input-$1")]})],i)}return""})}},ZEt=[QEt],vse=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||ZEt,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),w=1;w=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var e3t={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},t3t=!1,n3t=/[A-Z]|^ms/g,r3t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gse=function(t){return t.charCodeAt(1)===45},kV=function(t){return t!=null&&typeof t!="boolean"},A3=UEt(function(e){return gse(e)?e:e.replace(n3t,"-$&").toLowerCase()}),$V=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(r3t,function(r,i,a){return pl={name:i,styles:a,next:pl},i})}return e3t[t]!==1&&!gse(t)&&typeof n=="number"&&n!==0?n+"px":n},i3t="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function x0(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return pl={name:i.name,styles:i.styles,next:pl},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)pl={name:o.name,styles:o.styles,next:pl},o=o.next;var s=a.styles+";";return s}return a3t(e,t,n)}case"function":{if(e!==void 0){var l=pl,c=n(e);return pl=l,x0(e,t,c)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function a3t(e,t,n){var r="";if(Array.isArray(n))for(var i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n({app:t` - background: ${e.colorBgLayout}; - min-height: 100vh; - width: 100vw; - display: flex; - align-items: stretch; - justify-content: stretch; - padding: 0; - margin: 0; - overflow: hidden; - `,layout:t` - width: 100%; - min-width: 1000px; - height: 100vh; - border-radius: 0; - display: flex; - background: ${e.colorBgContainer}; - font-family: AlibabaPuHuiTi, ${e.fontFamily}, sans-serif; - box-shadow: none; - - .ant-prompts { - color: ${e.colorText}; - } - `,menu:t` - background: ${e.colorBgLayout}80; - width: 280px; - height: 100%; - display: flex; - flex-direction: column; - border-right: 1px solid ${e.colorBorderSecondary}; - `,conversations:t` - padding: 0 12px; - flex: 1; - overflow-y: auto; - `,chat:t` - height: 100%; - width: 100%; - max-width: 700px; - margin: 0 auto; - box-sizing: border-box; - display: flex; - flex-direction: column; - padding: ${e.paddingLG}px; - gap: 16px; - `,messages:t` - flex: 1; - `,placeholder:t` - padding-top: 32px; - `,sender:t` - box-shadow: ${e.boxShadow}; - `,logo:t` - display: flex; - height: 72px; - align-items: center; - justify-content: start; - padding: 0 24px; - box-sizing: border-box; - - img { - width: 24px; - height: 24px; - display: inline-block; - } - - span { - display: inline-block; - margin: 0 8px; - font-weight: bold; - color: ${e.colorText}; - font-size: 16px; - } - `,addBtn:t` - background: ${e.colorPrimary}0f; - border: 1px solid ${e.colorPrimary}34; - width: calc(100% - 24px); - margin: 0 12px 24px 12px; - color: ${e.colorText}; - `})),X3t=({title:e="微语",logoUrl:t="https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*eco6RrQhxbMAAAAAAAAAAAAADgCCAQ/original"})=>{const{styles:n}=z1();return T.jsxs("div",{className:n.logo,children:[T.jsx("img",{src:t,draggable:!1,alt:"logo"}),T.jsx("span",{children:e})]})},Q3t=({conversationsItems:e,activeKey:t,onAddConversation:n,onActiveChange:r,menu:i})=>{const{styles:a}=z1();return T.jsxs("div",{className:a.menu,children:[T.jsx(X3t,{}),T.jsx(_n,{onClick:n,type:"link",className:a.addBtn,icon:T.jsx(bI,{}),children:"New Conversation"}),T.jsx(tEt,{items:e,className:a.conversations,activeKey:t,menu:i,onActiveChange:r})]})},jV=[{key:"0",label:"What is 微语?"}],Z3t=[{key:"1",label:"Hot Topics",icon:T.jsx(nX,{style:{color:"#FF4D4F"}}),description:"What are you interested in?",children:[{key:"1-1",description:"What are the latest features of 微语?"},{key:"1-2",description:"How does 微语 handle data privacy?"},{key:"1-3",description:"Where can I find the documentation for 微语?"}]},{key:"2",label:"Design Guide",icon:T.jsx(rX,{style:{color:"#1890FF"}}),description:"How to design a good product?",children:[{key:"2-1",icon:T.jsx(I$e,{}),description:"What are best practices for using 微语?"},{key:"2-2",icon:T.jsx(_Ee,{}),description:"How to set up AI roles in 微语?"},{key:"2-3",icon:T.jsx(vke,{}),description:"How to express user feedback effectively?"}]}],J3t=[{key:"1",description:"Hot Topics",icon:T.jsx(nX,{style:{color:"#FF4D4F"}})},{key:"2",description:"Design Guide",icon:T.jsx(rX,{style:{color:"#1890FF"}})}],e4t={ai:{placement:"start",typing:{step:5,interval:20},styles:{content:{borderRadius:16}}},local:{placement:"end",variant:"shadow"}},t4t=({onPromptsItemClick:e})=>{const{styles:t}=z1();return T.jsxs(Ws,{direction:"vertical",size:16,className:t.placeholder,children:[T.jsx(dEt,{variant:"borderless",icon:"https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*s5sNRo5LjfQAAAAAAAAAAAAADgCCAQ/fmt.webp",title:"Hello, I'm 微语",description:"Based on Ant Design and Spring AI Alibaba, independent example demonstrates how to integrate capabilities such as chat, audio, and image, designed to provide developers with a portable solution.",extra:T.jsxs(Ws,{children:[T.jsx(_n,{icon:T.jsx(xEe,{})}),T.jsx(_n,{icon:T.jsx(e1,{})})]})}),T.jsx(g5,{title:"Do you want?",items:Z3t,styles:{list:{width:"100%"},item:{flex:1}},onItemClick:e})]})},n4t=({messages:e,content:t,attachedFiles:n,headerOpen:r,recording:i,isRequesting:a,onSubmit:o,onChange:s,onPromptsItemClick:l,onOpenChange:c,onFileChange:d,onRecordingChange:f})=>{const{styles:m}=z1(),p=T.jsx(Za,{dot:n.length>0&&!r,children:T.jsx(_n,{type:"text",icon:T.jsx(ZP,{}),onClick:()=>c(!r)})}),h=T.jsx(p6.Header,{title:"Attachments",open:r,onOpenChange:c,styles:{content:{padding:0}},children:T.jsx(ise,{beforeUpload:()=>!1,items:n,onChange:d,placeholder:g=>g==="drop"?{title:"Drop file here"}:{icon:T.jsx(ZP,{}),title:"Upload files",description:"Click or drag files to this area to upload"}})}),v=e.map(({id:g,message:w,status:y})=>({key:g,loading:y==="loading",role:y==="local"?"local":"ai",content:w}));return T.jsxs("div",{className:m.chat,children:[T.jsx(v5.List,{items:v.length>0?v:[{content:T.jsx(t4t,{onPromptsItemClick:l}),variant:"borderless"}],roles:e4t,className:m.messages}),T.jsx(g5,{items:J3t,onItemClick:l}),T.jsx(p6,{value:t,header:h,onSubmit:o,allowSpeech:{recording:i,onRecordingChange:f},onChange:s,prefix:p,loading:a,className:m.sender})]})},r4t=()=>{const{isDarkMode:e}=u.useContext(Gp),{styles:t}=z1(),{message:n}=jZ.useApp(),[r,i]=L.useState(!1),[a,o]=L.useState(""),[s,l]=L.useState(jV),[c,d]=L.useState(jV[0].key),[f,m]=L.useState([]),[p,h]=L.useState(!1),[v]=SEt({request:async({message:$},{onSuccess:E})=>{E(`Mock success return. You said: ${$}`)}}),{onRequest:g,messages:w,setMessages:y}=pEt({agent:v});u.useEffect(()=>{c!==void 0&&y([])},[c,y]);const b=$=>{$&&(g($),o(""))},x=$=>{g($.data.description)},C=()=>{l([...s,{key:`${s.length}`,label:`New Conversation ${s.length}`}]),d(`${s.length}`)},S=$=>{d($)},_=$=>m($.fileList),k=$=>({items:[{label:"Edit",key:"edit",icon:T.jsx(JY,{})},{label:"Delete",key:"delete",icon:T.jsx(ZY,{}),danger:!0}],onClick:E=>{n.info(`Click ${$.key} - ${E.key}`)}});return T.jsx(en,{theme:{algorithm:e?ii.darkAlgorithm:ii.defaultAlgorithm},children:T.jsx("div",{className:t.app,children:T.jsxs("div",{className:t.layout,children:[T.jsx(Q3t,{conversationsItems:s,activeKey:c,onAddConversation:C,onActiveChange:S,menu:k}),T.jsx(n4t,{messages:w,content:a,attachedFiles:f,headerOpen:r,recording:p,isRequesting:v.isRequesting(),onSubmit:b,onChange:o,onPromptsItemClick:x,onOpenChange:i,onFileChange:_,onRecordingChange:$=>{n.info(`Mock Customize Recording: ${$}`),h($)}})]})})})},i4t=()=>T.jsx("div",{children:T.jsx("h1",{children:"购物商品推荐/退换货演示"})}),Tse=[{path:"/",element:T.jsx(mie,{})},{path:"/home",element:T.jsx(r4t,{})},{path:"/center",element:T.jsx(vJe,{})},{path:"/ticket",element:T.jsx(tJe,{})},{path:"/demo",element:T.jsx(axe,{})},{path:"/number",element:T.jsx(kJe,{})},{path:"/queue",element:T.jsx(NJe,{})},{path:"/feedback",element:T.jsx(AJe,{})},{path:"/helpcenter",element:T.jsx(ctt,{})},{path:"/helpcategory/:id",element:T.jsx(Itt,{})},{path:"/helpdetail/:id",element:T.jsx(wtt,{})},{path:"/server",element:T.jsx(Bkt,{})},{path:"/demo/airline",element:T.jsx(Ukt,{})},{path:"/demo/shopping",element:T.jsx(i4t,{})},{path:"*",element:T.jsx(eJe,{})}],a4t={routes:Tse,basename:"/chat/",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}},o4t=Gwe(Tse,a4t),s4t=()=>{const{locale:e}=u.useContext(Gp),t=(e==null?void 0:e.locale)||bP(),n=i=>{document.title=i||x$[t]["i18n.app.title"]},r=async()=>{var i,a;console.log("getConfig");try{const o=await mye();console.log("getConfig config: ",o);const s=(i=o==null?void 0:o.custom)==null?void 0:i.enabled,l=(a=o==null?void 0:o.custom)==null?void 0:a.name;n(s&&l?l:x$[t]["i18n.app.title"]),await uye();const c=s2();console.log("Base URL:",c)}catch(o){console.error("Failed to load config:",o)}};return u.useEffect(()=>{kye(),r()},[]),T.jsx(rq,{children:T.jsx(sfe,{messages:x$[t],locale:t,defaultLocale:"zh-cn",children:T.jsx(nxe,{router:o4t})})})};function l4t(){return T.jsx("div",{className:"App",children:T.jsx($ye,{children:T.jsx(s4t,{})})})}jw.createRoot(document.getElementById("root")).render(T.jsx(l4t,{}))});export default c4t(); diff --git a/starter/src/main/resources/templates/chat/assets/index-COpaTw7c.js b/starter/src/main/resources/templates/chat/assets/index-COpaTw7c.js new file mode 100644 index 0000000000..b8ce2855fb --- /dev/null +++ b/starter/src/main/resources/templates/chat/assets/index-COpaTw7c.js @@ -0,0 +1,1794 @@ +var Lle=Object.defineProperty;var Ble=(e,t,n)=>t in e?Lle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zle=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Yr=(e,t,n)=>Ble(e,typeof t!="symbol"?t+"":t,n);var v6t=zle((vo,ra)=>{function wW(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xW={exports:{}},uC={},SW={exports:{}},In={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var W0=Symbol.for("react.element"),Hle=Symbol.for("react.portal"),Vle=Symbol.for("react.fragment"),Wle=Symbol.for("react.strict_mode"),Ule=Symbol.for("react.profiler"),qle=Symbol.for("react.provider"),Gle=Symbol.for("react.context"),Kle=Symbol.for("react.forward_ref"),Yle=Symbol.for("react.suspense"),Xle=Symbol.for("react.memo"),Qle=Symbol.for("react.lazy"),t8=Symbol.iterator;function Jle(e){return e===null||typeof e!="object"?null:(e=t8&&e[t8]||e["@@iterator"],typeof e=="function"?e:null)}var CW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kW=Object.assign,_W={};function ov(e,t,n){this.props=e,this.context=t,this.refs=_W,this.updater=n||CW}ov.prototype.isReactComponent={};ov.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ov.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $W(){}$W.prototype=ov.prototype;function WO(e,t,n){this.props=e,this.context=t,this.refs=_W,this.updater=n||CW}var UO=WO.prototype=new $W;UO.constructor=WO;kW(UO,ov.prototype);UO.isPureReactComponent=!0;var n8=Array.isArray,EW=Object.prototype.hasOwnProperty,qO={current:null},PW={key:!0,ref:!0,__self:!0,__source:!0};function TW(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)EW.call(t,r)&&!PW.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,V=F[H];if(0>>1;Hi(q,R))Qi(G,q)?(F[H]=G,F[Q]=R,H=Q):(F[H]=q,F[W]=R,H=W);else if(Qi(G,R))F[H]=G,F[Q]=R,H=Q;else break e}}return z}function i(F,z){var R=F.sortIndex-z.sortIndex;return R!==0?R:F.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],d=1,f=null,m=3,p=!1,v=!1,h=!1,g=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(F){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=F)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function x(F){if(h=!1,y(F),!v)if(n(l)!==null)v=!0,O(C);else{var z=n(u);z!==null&&D(x,z.startTime-F)}}function C(F,z){v=!1,h&&(h=!1,w(_),_=-1),p=!0;var R=m;try{for(y(z),f=n(l);f!==null&&(!(f.expirationTime>z)||F&&!T());){var H=f.callback;if(typeof H=="function"){f.callback=null,m=f.priorityLevel;var V=H(f.expirationTime<=z);z=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(l)&&r(l),y(z)}else r(l);f=n(l)}if(f!==null)var B=!0;else{var W=n(u);W!==null&&D(x,W.startTime-z),B=!1}return B}finally{f=null,m=R,p=!1}}var S=!1,k=null,_=-1,$=5,E=-1;function T(){return!(e.unstable_now()-E<$)}function M(){if(k!==null){var F=e.unstable_now();E=F;var z=!0;try{z=k(!0,F)}finally{z?j():(S=!1,k=null)}}else S=!1}var j;if(typeof b=="function")j=function(){b(M)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,N=I.port2;I.port1.onmessage=M,j=function(){N.postMessage(null)}}else j=function(){g(M,0)};function O(F){k=F,S||(S=!0,j())}function D(F,z){_=g(function(){F(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,O(C))},e.unstable_forceFrameRate=function(F){0>F||125H?(F.sortIndex=R,t(u,F),n(l)===null&&F===n(u)&&(h?(w(_),_=-1):h=!0,D(x,R-H))):(F.sortIndex=V,t(l,F),v||p||(v=!0,O(C))),F},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(F){var z=m;return function(){var R=m;m=z;try{return F.apply(this,arguments)}finally{m=R}}}})(NW);MW.exports=NW;var cce=MW.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var uce=c,wo=cce;function Pt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f4=Object.prototype.hasOwnProperty,dce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i8={},a8={};function fce(e){return f4.call(a8,e)?!0:f4.call(i8,e)?!1:dce.test(e)?a8[e]=!0:(i8[e]=!0,!1)}function mce(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pce(e,t,n,r){if(t===null||typeof t>"u"||mce(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Sa(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Vi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vi[e]=new Sa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vi[t]=new Sa(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vi[e]=new Sa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vi[e]=new Sa(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Vi[e]=new Sa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vi[e]=new Sa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vi[e]=new Sa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vi[e]=new Sa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vi[e]=new Sa(e,5,!1,e.toLowerCase(),null,!1,!1)});var KO=/[\-:]([a-z])/g;function YO(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(KO,YO);Vi[t]=new Sa(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(KO,YO);Vi[t]=new Sa(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(KO,YO);Vi[t]=new Sa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vi[e]=new Sa(e,1,!1,e.toLowerCase(),null,!1,!1)});Vi.xlinkHref=new Sa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vi[e]=new Sa(e,1,!1,e.toLowerCase(),null,!0,!0)});function XO(e,t,n,r){var i=Vi.hasOwnProperty(t)?Vi[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{G_=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bh(e):""}function vce(e){switch(e.tag){case 5:return Bh(e.type);case 16:return Bh("Lazy");case 13:return Bh("Suspense");case 19:return Bh("SuspenseList");case 0:case 2:case 15:return e=K_(e.type,!1),e;case 11:return e=K_(e.type.render,!1),e;case 1:return e=K_(e.type,!0),e;default:return""}}function h4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $m:return"Fragment";case _m:return"Portal";case m4:return"Profiler";case QO:return"StrictMode";case p4:return"Suspense";case v4:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case FW:return(e.displayName||"Context")+".Consumer";case jW:return(e._context.displayName||"Context")+".Provider";case JO:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ZO:return t=e.displayName||null,t!==null?t:h4(e.type)||"Memo";case uu:t=e._payload,e=e._init;try{return h4(e(t))}catch{}}return null}function hce(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return h4(t);case 8:return t===QO?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Wu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function LW(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gce(e){var t=LW(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gb(e){e._valueTracker||(e._valueTracker=gce(e))}function BW(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LW(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ux(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function g4(e,t){var n=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function s8(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wu(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zW(e,t){t=t.checked,t!=null&&XO(e,"checked",t,!1)}function b4(e,t){zW(e,t);var n=Wu(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?y4(e,t.type,n):t.hasOwnProperty("defaultValue")&&y4(e,t.type,Wu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function l8(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function y4(e,t,n){(t!=="number"||ux(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zh=Array.isArray;function Wm(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=bb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ng(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bce=["Webkit","ms","Moz","O"];Object.keys(rg).forEach(function(e){bce.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rg[t]=rg[e]})});function UW(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||rg.hasOwnProperty(e)&&rg[e]?(""+t).trim():t+"px"}function qW(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=UW(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var yce=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function S4(e,t){if(t){if(yce[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pt(62))}}function C4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var k4=null;function eI(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _4=null,Um=null,qm=null;function d8(e){if(e=G0(e)){if(typeof _4!="function")throw Error(Pt(280));var t=e.stateNode;t&&(t=vC(t),_4(e.stateNode,e.type,t))}}function GW(e){Um?qm?qm.push(e):qm=[e]:Um=e}function KW(){if(Um){var e=Um,t=qm;if(qm=Um=null,d8(e),t)for(e=0;e>>=0,e===0?32:31-(Oce(e)/Ice|0)|0}var yb=64,wb=4194304;function Hh(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function px(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Hh(s):(a&=o,a!==0&&(r=Hh(a)))}else o=n&~i,o!==0?r=Hh(o):a!==0&&(r=Hh(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function U0(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fs(t),e[t]=n}function Dce(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ag),w8=" ",x8=!1;function pU(e,t){switch(e){case"keyup":return cue.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vU(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Em=!1;function due(e,t){switch(e){case"compositionend":return vU(t);case"keypress":return t.which!==32?null:(x8=!0,w8);case"textInput":return e=t.data,e===w8&&x8?null:e;default:return null}}function fue(e,t){if(Em)return e==="compositionend"||!lI&&pU(e,t)?(e=fU(),Xy=aI=gu=null,Em=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_8(n)}}function yU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wU(){for(var e=window,t=ux();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ux(e.document)}return t}function cI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xue(e){var t=wU(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yU(n.ownerDocument.documentElement,n)){if(r!==null&&cI(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=$8(n,a);var o=$8(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pm=null,I4=null,sg=null,R4=!1;function E8(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;R4||Pm==null||Pm!==ux(r)||(r=Pm,"selectionStart"in r&&cI(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),sg&&Bg(sg,r)||(sg=r,r=gx(I4,"onSelect"),0Im||(e.current=A4[Im],A4[Im]=null,Im--)}function wr(e,t){Im++,A4[Im]=e.current,e.current=t}var Uu={},aa=Ju(Uu),ja=Ju(!1),cf=Uu;function pp(e,t){var n=e.type.contextTypes;if(!n)return Uu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Fa(e){return e=e.childContextTypes,e!=null}function yx(){Pr(ja),Pr(aa)}function N8(e,t,n){if(aa.current!==Uu)throw Error(Pt(168));wr(aa,t),wr(ja,n)}function TU(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pt(108,hce(e)||"Unknown",i));return Ar({},n,r)}function wx(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Uu,cf=aa.current,wr(aa,e),wr(ja,ja.current),!0}function D8(e,t,n){var r=e.stateNode;if(!r)throw Error(Pt(169));n?(e=TU(e,t,cf),r.__reactInternalMemoizedMergedChildContext=e,Pr(ja),Pr(aa),wr(aa,e)):Pr(ja),wr(ja,n)}var fc=null,hC=!1,l$=!1;function OU(e){fc===null?fc=[e]:fc.push(e)}function Mue(e){hC=!0,OU(e)}function Zu(){if(!l$&&fc!==null){l$=!0;var e=0,t=ir;try{var n=fc;for(ir=1;e>=o,i-=o,bc=1<<32-Fs(t)+i|n<_?($=k,k=null):$=k.sibling;var E=m(w,k,y[_],x);if(E===null){k===null&&(k=$);break}e&&k&&E.alternate===null&&t(w,k),b=a(E,b,_),S===null?C=E:S.sibling=E,S=E,k=$}if(_===y.length)return n(w,k),Nr&&gd(w,_),C;if(k===null){for(;__?($=k,k=null):$=k.sibling;var T=m(w,k,E.value,x);if(T===null){k===null&&(k=$);break}e&&k&&T.alternate===null&&t(w,k),b=a(T,b,_),S===null?C=T:S.sibling=T,S=T,k=$}if(E.done)return n(w,k),Nr&&gd(w,_),C;if(k===null){for(;!E.done;_++,E=y.next())E=f(w,E.value,x),E!==null&&(b=a(E,b,_),S===null?C=E:S.sibling=E,S=E);return Nr&&gd(w,_),C}for(k=r(w,k);!E.done;_++,E=y.next())E=p(k,w,_,E.value,x),E!==null&&(e&&E.alternate!==null&&k.delete(E.key===null?_:E.key),b=a(E,b,_),S===null?C=E:S.sibling=E,S=E);return e&&k.forEach(function(M){return t(w,M)}),Nr&&gd(w,_),C}function g(w,b,y,x){if(typeof y=="object"&&y!==null&&y.type===$m&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case hb:e:{for(var C=y.key,S=b;S!==null;){if(S.key===C){if(C=y.type,C===$m){if(S.tag===7){n(w,S.sibling),b=i(S,y.props.children),b.return=w,w=b;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===uu&&A8(C)===S.type){n(w,S.sibling),b=i(S,y.props),b.ref=rh(w,S,y),b.return=w,w=b;break e}n(w,S);break}else t(w,S);S=S.sibling}y.type===$m?(b=Gd(y.props.children,w.mode,x,y.key),b.return=w,w=b):(x=iw(y.type,y.key,y.props,null,w.mode,x),x.ref=rh(w,b,y),x.return=w,w=x)}return o(w);case _m:e:{for(S=y.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===y.containerInfo&&b.stateNode.implementation===y.implementation){n(w,b.sibling),b=i(b,y.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=h$(y,w.mode,x),b.return=w,w=b}return o(w);case uu:return S=y._init,g(w,b,S(y._payload),x)}if(zh(y))return v(w,b,y,x);if(Jv(y))return h(w,b,y,x);Eb(w,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,b!==null&&b.tag===6?(n(w,b.sibling),b=i(b,y),b.return=w,w=b):(n(w,b),b=v$(y,w.mode,x),b.return=w,w=b),o(w)):n(w,b)}return g}var hp=NU(!0),DU=NU(!1),Cx=Ju(null),kx=null,Nm=null,mI=null;function pI(){mI=Nm=kx=null}function vI(e){var t=Cx.current;Pr(Cx),e._currentValue=t}function z4(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Km(e,t){kx=e,mI=Nm=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Na=!0),e.firstContext=null)}function es(e){var t=e._currentValue;if(mI!==e)if(e={context:e,memoizedValue:t,next:null},Nm===null){if(kx===null)throw Error(Pt(308));Nm=e,kx.dependencies={lanes:0,firstContext:e}}else Nm=Nm.next=e;return t}var Md=null;function hI(e){Md===null?Md=[e]:Md.push(e)}function jU(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,hI(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ic(e,r)}function Ic(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var du=!1;function gI(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FU(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $c(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mu(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Vn&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ic(e,n)}return i=r.interleaved,i===null?(t.next=t,hI(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ic(e,n)}function Jy(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nI(e,n)}}function L8(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _x(e,t,n,r){var i=e.updateQueue;du=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==o&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,d=u=l=null,s=a;do{var m=s.lane,p=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,h=s;switch(m=t,p=n,h.tag){case 1:if(v=h.payload,typeof v=="function"){f=v.call(p,f,m);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=h.payload,m=typeof v=="function"?v.call(p,f,m):v,m==null)break e;f=Ar({},f,m);break e;case 2:du=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[s]:m.push(s))}else p={eventTime:p,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,o|=m;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ff|=o,e.lanes=o,e.memoizedState=f}}function B8(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=u$.transition;u$.transition={};try{e(!1),t()}finally{ir=n,u$.transition=r}}function eq(){return ts().memoizedState}function Fue(e,t,n){var r=Du(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tq(e))nq(t,n);else if(n=jU(e,t,n,r),n!==null){var i=ba();As(n,e,r,i),rq(n,t,r)}}function Aue(e,t,n){var r=Du(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tq(e))nq(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ws(s,o)){var l=t.interleaved;l===null?(i.next=i,hI(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=jU(e,t,i,r),n!==null&&(i=ba(),As(n,e,r,i),rq(n,t,r))}}function tq(e){var t=e.alternate;return e===Fr||t!==null&&t===Fr}function nq(e,t){lg=Ex=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rq(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nI(e,n)}}var Px={readContext:es,useCallback:Gi,useContext:Gi,useEffect:Gi,useImperativeHandle:Gi,useInsertionEffect:Gi,useLayoutEffect:Gi,useMemo:Gi,useReducer:Gi,useRef:Gi,useState:Gi,useDebugValue:Gi,useDeferredValue:Gi,useTransition:Gi,useMutableSource:Gi,useSyncExternalStore:Gi,useId:Gi,unstable_isNewReconciler:!1},Lue={readContext:es,useCallback:function(e,t){return hl().memoizedState=[e,t===void 0?null:t],e},useContext:es,useEffect:H8,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ew(4194308,4,YU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ew(4194308,4,e,t)},useInsertionEffect:function(e,t){return ew(4,2,e,t)},useMemo:function(e,t){var n=hl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fue.bind(null,Fr,e),[r.memoizedState,e]},useRef:function(e){var t=hl();return e={current:e},t.memoizedState=e},useState:z8,useDebugValue:_I,useDeferredValue:function(e){return hl().memoizedState=e},useTransition:function(){var e=z8(!1),t=e[0];return e=jue.bind(null,e[1]),hl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fr,i=hl();if(Nr){if(n===void 0)throw Error(Pt(407));n=n()}else{if(n=t(),Ii===null)throw Error(Pt(349));df&30||zU(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,H8(VU.bind(null,r,a,e),[e]),r.flags|=2048,Kg(9,HU.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=hl(),t=Ii.identifierPrefix;if(Nr){var n=yc,r=bc;n=(r&~(1<<32-Fs(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Cl]=t,e[Vg]=r,mq(e,t,!1,!1),t.stateNode=e;e:{switch(o=C4(n,r),n){case"dialog":Cr("cancel",e),Cr("close",e),i=r;break;case"iframe":case"object":case"embed":Cr("load",e),i=r;break;case"video":case"audio":for(i=0;iyp&&(t.flags|=128,r=!0,ih(a,!1),t.lanes=4194304)}else{if(!r)if(e=$x(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ih(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Nr)return Ki(t),null}else 2*Jr()-a.renderingStartTime>yp&&n!==1073741824&&(t.flags|=128,r=!0,ih(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Jr(),t.sibling=null,n=jr.current,wr(jr,r?n&1|2:n&1),t):(Ki(t),null);case 22:case 23:return II(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ao&1073741824&&(Ki(t),t.subtreeFlags&6&&(t.flags|=8192)):Ki(t),null;case 24:return null;case 25:return null}throw Error(Pt(156,t.tag))}function Gue(e,t){switch(dI(t),t.tag){case 1:return Fa(t.type)&&yx(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gp(),Pr(ja),Pr(aa),wI(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yI(t),null;case 13:if(Pr(jr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pt(340));vp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pr(jr),null;case 4:return gp(),null;case 10:return vI(t.type._context),null;case 22:case 23:return II(),null;case 24:return null;default:return null}}var Tb=!1,ea=!1,Kue=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function Dm(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Hr(e,t,r)}else n.current=null}function X4(e,t,n){try{n()}catch(r){Hr(e,t,r)}}var Z8=!1;function Yue(e,t){if(M4=vx,e=wU(),cI(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===n&&++u===i&&(s=o),m===a&&++d===r&&(l=o),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(N4={focusedElem:e,selectionRange:n},vx=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){t=Gt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var h=v.memoizedProps,g=v.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?h:_s(t.type,h),g);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pt(163))}}catch(x){Hr(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}return v=Z8,Z8=!1,v}function cg(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&X4(t,n,a)}i=i.next}while(i!==r)}}function yC(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Q4(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hq(e){var t=e.alternate;t!==null&&(e.alternate=null,hq(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Cl],delete t[Vg],delete t[F4],delete t[Iue],delete t[Rue])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gq(e){return e.tag===5||e.tag===3||e.tag===4}function eD(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gq(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function J4(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bx));else if(r!==4&&(e=e.child,e!==null))for(J4(e,t,n),e=e.sibling;e!==null;)J4(e,t,n),e=e.sibling}function Z4(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Z4(e,t,n),e=e.sibling;e!==null;)Z4(e,t,n),e=e.sibling}var Fi=null,$s=!1;function Jc(e,t,n){for(n=n.child;n!==null;)bq(e,t,n),n=n.sibling}function bq(e,t,n){if(Rl&&typeof Rl.onCommitFiberUnmount=="function")try{Rl.onCommitFiberUnmount(dC,n)}catch{}switch(n.tag){case 5:ea||Dm(n,t);case 6:var r=Fi,i=$s;Fi=null,Jc(e,t,n),Fi=r,$s=i,Fi!==null&&($s?(e=Fi,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fi.removeChild(n.stateNode));break;case 18:Fi!==null&&($s?(e=Fi,n=n.stateNode,e.nodeType===8?s$(e.parentNode,n):e.nodeType===1&&s$(e,n),Ag(e)):s$(Fi,n.stateNode));break;case 4:r=Fi,i=$s,Fi=n.stateNode.containerInfo,$s=!0,Jc(e,t,n),Fi=r,$s=i;break;case 0:case 11:case 14:case 15:if(!ea&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&X4(n,t,o),i=i.next}while(i!==r)}Jc(e,t,n);break;case 1:if(!ea&&(Dm(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Hr(n,t,s)}Jc(e,t,n);break;case 21:Jc(e,t,n);break;case 22:n.mode&1?(ea=(r=ea)||n.memoizedState!==null,Jc(e,t,n),ea=r):Jc(e,t,n);break;default:Jc(e,t,n)}}function tD(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kue),t.forEach(function(r){var i=ide.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ws(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Jr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Que(r/1960))-r,10e?16:e,bu===null)var r=!1;else{if(e=bu,bu=null,Ix=0,Vn&6)throw Error(Pt(331));var i=Vn;for(Vn|=4,Gt=e.current;Gt!==null;){var a=Gt,o=a.child;if(Gt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lJr()-TI?qd(e,0):PI|=n),Aa(e,t)}function $q(e,t){t===0&&(e.mode&1?(t=wb,wb<<=1,!(wb&130023424)&&(wb=4194304)):t=1);var n=ba();e=Ic(e,t),e!==null&&(U0(e,t,n),Aa(e,n))}function rde(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$q(e,n)}function ide(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pt(314))}r!==null&&r.delete(t),$q(e,n)}var Eq;Eq=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ja.current)Na=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Na=!1,Uue(e,t,n);Na=!!(e.flags&131072)}else Na=!1,Nr&&t.flags&1048576&&IU(t,Sx,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;tw(e,t),e=t.pendingProps;var i=pp(t,aa.current);Km(t,n),i=SI(null,t,r,e,i,n);var a=CI();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fa(r)?(a=!0,wx(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gI(t),i.updater=bC,t.stateNode=i,i._reactInternals=t,V4(t,r,e,n),t=q4(null,t,r,!0,a,n)):(t.tag=0,Nr&&a&&uI(t),fa(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(tw(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ode(r),e=_s(r,e),i){case 0:t=U4(null,t,r,e,n);break e;case 1:t=X8(null,t,r,e,n);break e;case 11:t=K8(null,t,r,e,n);break e;case 14:t=Y8(null,t,r,_s(r.type,e),n);break e}throw Error(Pt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_s(r,i),U4(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_s(r,i),X8(e,t,r,i,n);case 3:e:{if(uq(t),e===null)throw Error(Pt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,FU(e,t),_x(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=bp(Error(Pt(423)),t),t=Q8(e,t,r,n,i);break e}else if(r!==i){i=bp(Error(Pt(424)),t),t=Q8(e,t,r,n,i);break e}else for(uo=Ru(t.stateNode.containerInfo.firstChild),ho=t,Nr=!0,Os=null,n=DU(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vp(),r===i){t=Rc(e,t,n);break e}fa(e,t,r,n)}t=t.child}return t;case 5:return AU(t),e===null&&B4(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,D4(r,i)?o=null:a!==null&&D4(r,a)&&(t.flags|=32),cq(e,t),fa(e,t,o,n),t.child;case 6:return e===null&&B4(t),null;case 13:return dq(e,t,n);case 4:return bI(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hp(t,null,r,n):fa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_s(r,i),K8(e,t,r,i,n);case 7:return fa(e,t,t.pendingProps,n),t.child;case 8:return fa(e,t,t.pendingProps.children,n),t.child;case 12:return fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,wr(Cx,r._currentValue),r._currentValue=o,a!==null)if(Ws(a.value,o)){if(a.children===i.children&&!ja.current){t=Rc(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=$c(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),z4(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pt(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),z4(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}fa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Km(t,n),i=es(i),r=r(i),t.flags|=1,fa(e,t,r,n),t.child;case 14:return r=t.type,i=_s(r,t.pendingProps),i=_s(r.type,i),Y8(e,t,r,i,n);case 15:return sq(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_s(r,i),tw(e,t),t.tag=1,Fa(r)?(e=!0,wx(t)):e=!1,Km(t,n),iq(t,r,i),V4(t,r,i,n),q4(null,t,r,!0,e,n);case 19:return fq(e,t,n);case 22:return lq(e,t,n)}throw Error(Pt(156,t.tag))};function Pq(e,t){return tU(e,t)}function ade(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xo(e,t,n,r){return new ade(e,t,n,r)}function MI(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ode(e){if(typeof e=="function")return MI(e)?1:0;if(e!=null){if(e=e.$$typeof,e===JO)return 11;if(e===ZO)return 14}return 2}function ju(e,t){var n=e.alternate;return n===null?(n=Xo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function iw(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")MI(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $m:return Gd(n.children,i,a,t);case QO:o=8,i|=8;break;case m4:return e=Xo(12,n,t,i|2),e.elementType=m4,e.lanes=a,e;case p4:return e=Xo(13,n,t,i),e.elementType=p4,e.lanes=a,e;case v4:return e=Xo(19,n,t,i),e.elementType=v4,e.lanes=a,e;case AW:return xC(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jW:o=10;break e;case FW:o=9;break e;case JO:o=11;break e;case ZO:o=14;break e;case uu:o=16,r=null;break e}throw Error(Pt(130,e==null?e:typeof e,""))}return t=Xo(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Gd(e,t,n,r){return e=Xo(7,e,r,t),e.lanes=n,e}function xC(e,t,n,r){return e=Xo(22,e,r,t),e.elementType=AW,e.lanes=n,e.stateNode={isHidden:!1},e}function v$(e,t,n){return e=Xo(6,e,null,t),e.lanes=n,e}function h$(e,t,n){return t=Xo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sde(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=X_(0),this.expirationTimes=X_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=X_(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function NI(e,t,n,r,i,a,o,s,l){return e=new sde(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Xo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gI(a),e}function lde(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rq)}catch(e){console.error(e)}}Rq(),RW.exports=Eo;var ki=RW.exports;const Xg=qn(ki),Mq=wW({__proto__:null,default:Xg},[ki]);var cD=ki;cx.createRoot=cD.createRoot,cx.hydrateRoot=cD.hydrateRoot;var mde=typeof Element<"u",pde=typeof Map=="function",vde=typeof Set=="function",hde=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function aw(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!aw(e[r],t[r]))return!1;return!0}var a;if(pde&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!aw(r.value[1],t.get(r.value[0])))return!1;return!0}if(vde&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(hde&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(mde&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!aw(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var gde=function(t,n){try{return aw(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const bde=qn(gde);var yde=function(e,t,n,r,i,a,o,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,a,o,s],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},wde=yde;const uD=qn(wde);var xde=function(t,n,r,i){var a=r?r.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Nq||{}),g$={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},dD=Object.values(Nq),AI={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Cde=Object.entries(AI).reduce((e,[t,n])=>(e[n]=t,e),{}),Ns="data-rh",Xm={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Qm=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},kde=e=>{let t=Qm(e,"title");const n=Qm(e,Xm.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Qm(e,Xm.DEFAULT_TITLE);return t||r||void 0},_de=e=>Qm(e,Xm.ON_CHANGE_CLIENT_STATE)||(()=>{}),b$=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),$de=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let a=0;aconsole&&typeof console.warn=="function"&&console.warn(e),oh=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&Ede(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const o={};a.filter(l=>{let u;const d=Object.keys(l);for(let m=0;mi.push(l));const s=Object.keys(o);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:$de(["href"],e),bodyAttributes:b$("bodyAttributes",e),defer:Qm(e,Xm.DEFER),encode:Qm(e,Xm.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:b$("htmlAttributes",e),linkTags:oh("link",["rel","href"],e),metaTags:oh("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:oh("noscript",["innerHTML"],e),onChangeClientState:_de(e),scriptTags:oh("script",["src","innerHTML"],e),styleTags:oh("style",["cssText"],e),title:kde(e),titleAttributes:b$("titleAttributes",e),prioritizeSeoTags:Pde(e,Xm.PRIORITIZE_SEO_TAGS)}),Dq=e=>Array.isArray(e)?e.join(""):e,Ode=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(Ode(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},fD=(e,t)=>({...e,[t]:void 0}),Ide=["noscript","script","style"],iP=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),jq=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),Rde=(e,t,n,r)=>{const i=jq(n),a=Dq(t);return i?`<${e} ${Ns}="true" ${i}>${iP(a,r)}`:`<${e} ${Ns}="true">${iP(a,r)}`},Mde=(e,t,n=!0)=>t.reduce((r,i)=>{const a=i,o=Object.keys(a).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof a[d]>"u"?d:`${d}="${iP(a[d],n)}"`;return u?`${u} ${f}`:f},""),s=a.innerHTML||a.cssText||"",l=Ide.indexOf(e)===-1;return`${r}<${e} ${Ns}="true" ${o}${l?"/>":`>${s}`}`},""),Fq=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=AI[r];return n[i||r]=e[r],n},t),Nde=(e,t,n)=>{const r={key:t,[Ns]:!0},i=Fq(n,r);return[L.createElement("title",i,t)]},ow=(e,t)=>t.map((n,r)=>{const i={key:r,[Ns]:!0};return Object.keys(n).forEach(a=>{const s=AI[a]||a;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[a]}),L.createElement(e,i)}),zo=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>Nde(e,t.title,t.titleAttributes),toString:()=>Rde(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Fq(t),toString:()=>jq(t)};default:return{toComponent:()=>ow(e,t),toString:()=>Mde(e,t,n)}}},Dde=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=y$(e,g$.meta),a=y$(t,g$.link),o=y$(n,g$.script);return{priorityMethods:{toComponent:()=>[...ow("meta",i.priority),...ow("link",a.priority),...ow("script",o.priority)],toString:()=>`${zo("meta",i.priority,r)} ${zo("link",a.priority,r)} ${zo("script",o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},jde=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:f,scriptTags:m}=e,p={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:p,linkTags:d,metaTags:f,scriptTags:m}=Dde(e)),{priority:p,base:zo("base",t,r),bodyAttributes:zo("bodyAttributes",n,r),htmlAttributes:zo("htmlAttributes",i,r),link:zo("link",d,r),meta:zo("meta",f,r),noscript:zo("noscript",a,r),script:zo("script",m,r),style:zo("style",o,r),title:zo("title",{title:s,titleAttributes:l},r)}},aP=jde,Rb=[],Aq=!!(typeof window<"u"&&window.document&&window.document.createElement),oP=class{constructor(e,t){Yr(this,"instances",[]);Yr(this,"canUseDOM",Aq);Yr(this,"context");Yr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Rb:this.instances,add:e=>{(this.canUseDOM?Rb:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Rb:this.instances).indexOf(e);(this.canUseDOM?Rb:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=aP({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Fde={},Lq=L.createContext(Fde),Ud,Bq=(Ud=class extends c.Component{constructor(n){super(n);Yr(this,"helmetData");this.helmetData=new oP(this.props.context||{},Ud.canUseDOM)}render(){return L.createElement(Lq.Provider,{value:this.helmetData.value},this.props.children)}},Yr(Ud,"canUseDOM",Aq),Ud),rm=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Ns}]`),i=[].slice.call(r),a=[];let o;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u))if(u==="innerHTML")l.innerHTML=s.innerHTML;else if(u==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const d=u,f=typeof s[d]>"u"?"":s[d];l.setAttribute(u,f)}l.setAttribute(Ns,"true"),i.some((u,d)=>(o=d,l.isEqualNode(u)))?i.splice(o,1):a.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),a.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:a}},sP=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Ns),i=r?r.split(","):[],a=[...i],o=Object.keys(t);for(const s of o){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const u=a.indexOf(s);u!==-1&&a.splice(u,1)}for(let s=a.length-1;s>=0;s-=1)n.removeAttribute(a[s]);i.length===a.length?n.removeAttribute(Ns):n.getAttribute(Ns)!==o.join(",")&&n.setAttribute(Ns,o.join(","))},Ade=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Dq(e)),sP("title",t)},mD=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:l,scriptTags:u,styleTags:d,title:f,titleAttributes:m}=e;sP("body",r),sP("html",i),Ade(f,m);const p={baseTag:rm("base",n),linkTags:rm("link",a),metaTags:rm("meta",o),noscriptTags:rm("noscript",s),scriptTags:rm("script",u),styleTags:rm("style",d)},v={},h={};Object.keys(p).forEach(g=>{const{newTags:w,oldTags:b}=p[g];w.length&&(v[g]=w),b.length&&(h[g]=p[g].oldTags)}),t&&t(),l(e,v,h)},sh=null,Lde=e=>{sh&&cancelAnimationFrame(sh),e.defer?sh=requestAnimationFrame(()=>{mD(e,()=>{sh=null})}):(mD(e),sh=null)},Bde=Lde,pD=class extends c.Component{constructor(){super(...arguments);Yr(this,"rendered",!1)}shouldComponentUpdate(t){return!Sde(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=Tde(t.get().map(a=>{const o={...a.props};return delete o.context,o}));Bq.canUseDOM?Bde(i):aP&&(r=aP(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},d4,zde=(d4=class extends c.Component{shouldComponentUpdate(e){return!bde(fD(this.props,"helmetData"),fD(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return uD(dD.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${dD.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),uD(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return L.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...a}=r.props,o=Object.keys(a).reduce((l,u)=>(l[Cde[u]||u]=a[u],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof oP)){const i=r;r=new oP(i.context,!0),delete n.helmetData}return r?L.createElement(pD,{...n,context:r.value}):L.createElement(Lq.Consumer,null,i=>L.createElement(pD,{...n,context:i}))}},Yr(d4,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),d4),lP=function(e,t){return lP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},lP(e,t)};function cs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lP(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Xt=function(){return Xt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u"&&(a=e.call(this,r),t.set(i,a)),a}function Hq(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function LI(e,t,n,r,i){return n.bind(t,e,r,i)}function Vde(e,t){var n=e.length===1?zq:Hq;return LI(e,this,n,t.cache.create(),t.serializer)}function Wde(e,t){return LI(e,this,Hq,t.cache.create(),t.serializer)}function Ude(e,t){return LI(e,this,zq,t.cache.create(),t.serializer)}var qde=function(){return JSON.stringify(arguments)};function BI(){this.cache=Object.create(null)}BI.prototype.get=function(e){return this.cache[e]};BI.prototype.set=function(e,t){this.cache[e]=t};var Gde={create:function(){return new BI}},pa={variadic:Wde,monadic:Ude};function Vq(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}ma(function(){for(var e,t=[],n=0;n0}),n=[],r=0,i=t;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(tfe,function(l,u,d,f,m,p){if(u)t.minimumIntegerDigits=d.length;else{if(f&&m)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Zq.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(hD.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(hD,function(l,u,d,f,m,p){return d==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:m&&p?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=Xt(Xt({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Xt(Xt({},t),gD(a)));continue}if(Jq.test(i.stem)){t=Xt(Xt({},t),gD(i.stem));continue}var o=eG(i.stem);o&&(t=Xt(Xt({},t),o));var s=nfe(i.stem);s&&(t=Xt(Xt({},t),s))}return t}var Mb={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ife(e,t){for(var n="",r=0;r>1),l="a",u=afe(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function afe(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Mb[r||""]||Mb[n||""]||Mb["".concat(n,"-001")]||Mb["001"];return i[0]}var w$,ofe=new RegExp("^".concat(Qq.source,"*")),sfe=new RegExp("".concat(Qq.source,"*$"));function Bn(e,t){return{start:e,end:t}}var lfe=!!String.prototype.startsWith&&"_a".startsWith("a",1),cfe=!!String.fromCodePoint,ufe=!!Object.fromEntries,dfe=!!String.prototype.codePointAt,ffe=!!String.prototype.trimStart,mfe=!!String.prototype.trimEnd,pfe=!!Number.isSafeInteger,vfe=pfe?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},uP=!0;try{var hfe=nG("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");uP=((w$=hfe.exec("a"))===null||w$===void 0?void 0:w$[0])==="a"}catch{uP=!1}var yD=lfe?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},dP=cfe?String.fromCodePoint:function(){for(var t=[],n=0;na;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},wD=ufe?Object.fromEntries:function(t){for(var n={},r=0,i=t;r=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},gfe=ffe?function(t){return t.trimStart()}:function(t){return t.replace(ofe,"")},bfe=mfe?function(t){return t.trimEnd()}:function(t){return t.replace(sfe,"")};function nG(e,t){return new RegExp(e,t)}var fP;if(uP){var xD=nG("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fP=function(t,n){var r;xD.lastIndex=n;var i=xD.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else fP=function(t,n){for(var r=[];;){var i=tG(t,n);if(i===void 0||rG(i)||Sfe(i))break;r.push(i),n+=i>=65536?2:1}return dP.apply(void 0,r)};var yfe=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:Er.pound,location:Bn(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Dn.UNMATCHED_CLOSING_TAG,Bn(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&mP(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Er.literal,value:"<".concat(i,"/>"),location:Bn(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:Er.tag,value:i,children:o,location:Bn(r,this.clonePosition())},err:null}:this.error(Dn.INVALID_TAG,Bn(s,this.clonePosition())))}else return this.error(Dn.UNCLOSED_TAG,Bn(r,this.clonePosition()))}else return this.error(Dn.INVALID_TAG,Bn(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&xfe(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=Bn(r,this.clonePosition());return{val:{type:Er.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wfe(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return dP.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),dP(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,Bn(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Dn.EMPTY_ARGUMENT,Bn(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Dn.MALFORMED_ARGUMENT,Bn(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,Bn(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Er.argument,value:i,location:Bn(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,Bn(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(Dn.MALFORMED_ARGUMENT,Bn(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fP(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=Bn(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Dn.EXPECT_ARGUMENT_TYPE,Bn(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=bfe(f.val);if(m.length===0)return this.error(Dn.EXPECT_ARGUMENT_STYLE,Bn(this.clonePosition(),this.clonePosition()));var p=Bn(d,this.clonePosition());u={style:m,styleLocation:p}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var h=Bn(i,this.clonePosition());if(u&&yD(u==null?void 0:u.style,"::",0)){var g=gfe(u.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(g,u.styleLocation);return f.err?f:{val:{type:Er.number,value:r,location:h,style:f.val},err:null}}else{if(g.length===0)return this.error(Dn.EXPECT_DATE_TIME_SKELETON,h);var w=g;this.locale&&(w=ife(g,this.locale));var m={type:xp.dateTime,pattern:w,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Qde(w):{}},b=s==="date"?Er.date:Er.time;return{val:{type:b,value:r,location:h,style:m},err:null}}}return{val:{type:s==="number"?Er.number:s==="date"?Er.date:Er.time,value:r,location:h,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Dn.EXPECT_SELECT_ARGUMENT_OPTIONS,Bn(y,Xt({},y)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),C=0;if(s!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(Dn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Bn(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Dn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Dn.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),x=this.parseIdentifierIfPossible(),C=f.val}var S=this.tryParsePluralOrSelectOptions(t,s,n,x);if(S.err)return S;var v=this.tryParseArgumentClose(i);if(v.err)return v;var k=Bn(i,this.clonePosition());return s==="select"?{val:{type:Er.select,value:r,options:wD(S.val),location:k},err:null}:{val:{type:Er.plural,value:r,options:wD(S.val),offset:C,pluralType:s==="plural"?"cardinal":"ordinal",location:k},err:null}}default:return this.error(Dn.INVALID_ARGUMENT_TYPE,Bn(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,Bn(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Dn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Bn(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Zde(t)}catch{return this.error(Dn.INVALID_NUMBER_SKELETON,n)}return{val:{type:xp.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?rfe(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(Dn.EXPECT_PLURAL_ARGUMENT_SELECTOR,Dn.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;d=Bn(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?Dn.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Dn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Dn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Dn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Bn(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var h=this.tryParseArgumentClose(p);if(h.err)return h;s.push([u,{value:v.val,location:Bn(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,d=a.location}return s.length===0?this.error(n==="select"?Dn.EXPECT_SELECT_ARGUMENT_SELECTOR:Dn.EXPECT_PLURAL_ARGUMENT_SELECTOR,Bn(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Dn.MISSING_OTHER_CLAUSE,Bn(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var l=Bn(i,this.clonePosition());return a?(o*=r,vfe(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=tG(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(yD(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&rG(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function mP(e){return e>=97&&e<=122||e>=65&&e<=90}function wfe(e){return mP(e)||e===47}function xfe(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function rG(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Sfe(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function pP(e){e.forEach(function(t){if(delete t.location,Gq(t)||Kq(t))for(var n in t.options)delete t.options[n].location,pP(t.options[n].value);else Wq(t)&&Xq(t.style)||(Uq(t)||qq(t))&&cP(t.style)?delete t.style.location:Yq(t)&&pP(t.children)})}function Cfe(e,t){t===void 0&&(t={}),t=Xt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new yfe(e,t).parse();if(n.err){var r=SyntaxError(Dn[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||pP(n.val),n.val}var Fl;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Fl||(Fl={}));var ed=function(e){cs(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),SD=function(e){cs(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Fl.INVALID_VALUE,a)||this}return t}(ed),kfe=function(e){cs(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Fl.INVALID_VALUE,i)||this}return t}(ed),_fe=function(e){cs(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Fl.MISSING_VALUE,r)||this}return t}(ed),da;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(da||(da={}));function $fe(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==da.literal||n.type!==da.literal?t.push(n):r.value+=n.value,t},[])}function iG(e){return typeof e=="function"}function sw(e,t,n,r,i,a,o){if(e.length===1&&vD(e[0]))return[{type:da.literal,value:e[0].value}];for(var s=[],l=0,u=e;l"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Cfe,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),pf;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(pf||(pf={}));var Y0=function(e){cs(t,e);function t(n,r,i){var a=this,o=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` +`).concat(o?` +`.concat(o.message,` +`).concat(o.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),Ofe=function(e){cs(t,e);function t(n,r){return e.call(this,pf.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Y0),Ife=function(e){cs(t,e);function t(n,r){return e.call(this,pf.INVALID_CONFIG,n,r)||this}return t}(Y0),CD=function(e){cs(t,e);function t(n,r){return e.call(this,pf.MISSING_DATA,n,r)||this}return t}(Y0),us=function(e){cs(t,e);function t(n,r,i){var a=e.call(this,pf.FORMAT_ERROR,"".concat(n,` +Locale: `).concat(r,` +`),i)||this;return a.locale=r,a}return t}(Y0),S$=function(e){cs(t,e);function t(n,r,i,a){var o=e.call(this,"".concat(n,` +MessageID: `).concat(i==null?void 0:i.id,` +Default Message: `).concat(i==null?void 0:i.defaultMessage,` +Description: `).concat(i==null?void 0:i.description,` +`),r,a)||this;return o.descriptor=i,o.locale=r,o}return t}(us),Rfe=function(e){cs(t,e);function t(n,r){var i=e.call(this,pf.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(a){var o;return(o=a.value)!==null&&o!==void 0?o:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(Y0);function Nf(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var Mfe=function(e){},Nfe=function(e){},oG={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Mfe,onWarn:Nfe};function sG(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function fd(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Dfe(e){e===void 0&&(e=sG());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=ma(function(){for(var s,l=[],u=0;u needs to exist in the component ancestry.")}var fG=Xt(Xt({},oG),{textComponent:c.Fragment});function rme(e){return function(t){return e(c.Children.toArray(t))}}function hP(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var a=0;a{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{o.matches?n("dark"):n("light")}))},[]),c.useEffect(()=>{localStorage.setItem(FD,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),c.useEffect(()=>{localStorage.setItem(AD,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:a,isDarkMode:t==="dark",isLightMode:t==="light"}}//! moment.js +//! version : 2.30.1 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var HG;function Lt(){return HG.apply(null,arguments)}function she(e){HG=e}function Us(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Yd(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Un(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ZI(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Un(e,t))return!1;return!0}function Pa(e){return e===void 0}function Mc(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function l1(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function VG(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var rR=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ab=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M$={},Zm={};function an(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Zm[e]=i),t&&(Zm[t[0]]=function(){return Al(i.apply(this,arguments),t[1],t[2])}),n&&(Zm[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function fhe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function mhe(e){var t=e.match(rR),n,r;for(n=0,r=t.length;n=0&&Ab.test(e);)e=e.replace(Ab,r),Ab.lastIndex=0,n-=1;return e}var phe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function vhe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(rR).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var hhe="Invalid date";function ghe(){return this._invalidDate}var bhe="%d",yhe=/\d{1,2}/;function whe(e){return this._ordinal.replace("%d",e)}var xhe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function She(e,t,n,r){var i=this._relativeTime[n];return Kl(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Che(e,t){var n=this._relativeTime[e>0?"future":"past"];return Kl(n)?n(t):n.replace(/%s/i,t)}var nj={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function fs(e){return typeof e=="string"?nj[e]||nj[e.toLowerCase()]:void 0}function iR(e){var t={},n,r;for(r in e)Un(e,r)&&(n=fs(r),n&&(t[n]=e[r]));return t}var khe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function _he(e){var t=[],n;for(n in e)Un(e,n)&&t.push({unit:n,priority:khe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var GG=/\d/,Oo=/\d\d/,KG=/\d{3}/,aR=/\d{4}/,c2=/[+-]?\d{6}/,Or=/\d\d?/,YG=/\d\d\d\d?/,XG=/\d\d\d\d\d\d?/,u2=/\d{1,3}/,oR=/\d{1,4}/,d2=/[+-]?\d{1,6}/,uv=/\d+/,f2=/[+-]?\d+/,$he=/Z|[+-]\d\d:?\d\d/gi,m2=/Z|[+-]\d\d(?::?\d\d)?/gi,Ehe=/[+-]?\d+(\.\d{1,3})?/,u1=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,dv=/^[1-9]\d?/,sR=/^([1-9]\d|\d)/,Fx;Fx={};function qt(e,t,n){Fx[e]=Kl(t)?t:function(r,i){return r&&n?n:t}}function Phe(e,t){return Un(Fx,e)?Fx[e](t._strict,t._locale):new RegExp(The(e))}function The(e){return Ec(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function Ec(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function qo(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Mn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=qo(t)),n}var $P={};function ur(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Mc(t)&&(r=function(a,o){o[t]=Mn(a)}),i=e.length,n=0;n68?1900:2e3)};var QG=fv("FullYear",!0);function Mhe(){return p2(this.year())}function fv(e,t){return function(n){return n!=null?(JG(this,e,n),Lt.updateOffset(this,t),this):Zg(this,e)}}function Zg(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function JG(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!p2(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function Nhe(e){return e=fs(e),Kl(this[e])?this[e]():this}function Dhe(e,t){if(typeof e=="object"){e=iR(e);var n=_he(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function e0(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ax(e,t,n){var r=7+t-n,i=(7+e0(e,0,r).getUTCDay()-t)%7;return-i+r-1}function iK(e,t,n,r,i){var a=(7+n-r)%7,o=Ax(e,r,i),s=1+7*(t-1)+a+o,l,u;return s<=0?(l=e-1,u=mg(l)+s):s>mg(e)?(l=e+1,u=s-mg(e)):(l=e,u=s),{year:l,dayOfYear:u}}function t0(e,t,n){var r=Ax(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+Pc(o,t,n)):i>Pc(e.year(),t,n)?(a=i-Pc(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function Pc(e,t,n){var r=Ax(e,t,n),i=Ax(e+1,t,n);return(mg(e)-r+i)/7}an("w",["ww",2],"wo","week");an("W",["WW",2],"Wo","isoWeek");qt("w",Or,dv);qt("ww",Or,Oo);qt("W",Or,dv);qt("WW",Or,Oo);d1(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Mn(e)});function Khe(e){return t0(e,this._week.dow,this._week.doy).week}var Yhe={dow:0,doy:6};function Xhe(){return this._week.dow}function Qhe(){return this._week.doy}function Jhe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Zhe(e){var t=t0(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}an("d",0,"do","day");an("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});an("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});an("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});an("e",0,0,"weekday");an("E",0,0,"isoWeekday");qt("d",Or);qt("e",Or);qt("E",Or);qt("dd",function(e,t){return t.weekdaysMinRegex(e)});qt("ddd",function(e,t){return t.weekdaysShortRegex(e)});qt("dddd",function(e,t){return t.weekdaysRegex(e)});d1(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Sn(n).invalidWeekday=e});d1(["d","e","E"],function(e,t,n,r){t[r]=Mn(e)});function ege(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function tge(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function cR(e,t){return e.slice(t,7).concat(e.slice(0,t))}var nge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),aK="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),rge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ige=u1,age=u1,oge=u1;function sge(e,t){var n=Us(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?cR(n,this._week.dow):e?n[e.day()]:n}function lge(e){return e===!0?cR(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function cge(e){return e===!0?cR(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function uge(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Gl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Qr.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=Qr.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=Qr.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=Qr.call(this._weekdaysParse,o),i!==-1||(i=Qr.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=Qr.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=Qr.call(this._shortWeekdaysParse,o),i!==-1||(i=Qr.call(this._weekdaysParse,o),i!==-1)?i:(i=Qr.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=Qr.call(this._minWeekdaysParse,o),i!==-1||(i=Qr.call(this._weekdaysParse,o),i!==-1)?i:(i=Qr.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function dge(e,t,n){var r,i,a;if(this._weekdaysParseExact)return uge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Gl([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function fge(e){if(!this.isValid())return e!=null?this:NaN;var t=Zg(this,"Day");return e!=null?(e=ege(e,this.localeData()),this.add(e-t,"d")):t}function mge(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function pge(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=tge(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function vge(e){return this._weekdaysParseExact?(Un(this,"_weekdaysRegex")||uR.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Un(this,"_weekdaysRegex")||(this._weekdaysRegex=ige),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function hge(e){return this._weekdaysParseExact?(Un(this,"_weekdaysRegex")||uR.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Un(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=age),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function gge(e){return this._weekdaysParseExact?(Un(this,"_weekdaysRegex")||uR.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Un(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function uR(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],i=[],a,o,s,l,u;for(a=0;a<7;a++)o=Gl([2e3,1]).day(a),s=Ec(this.weekdaysMin(o,"")),l=Ec(this.weekdaysShort(o,"")),u=Ec(this.weekdays(o,"")),t.push(s),n.push(l),r.push(u),i.push(s),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function dR(){return this.hours()%12||12}function bge(){return this.hours()||24}an("H",["HH",2],0,"hour");an("h",["hh",2],0,dR);an("k",["kk",2],0,bge);an("hmm",0,0,function(){return""+dR.apply(this)+Al(this.minutes(),2)});an("hmmss",0,0,function(){return""+dR.apply(this)+Al(this.minutes(),2)+Al(this.seconds(),2)});an("Hmm",0,0,function(){return""+this.hours()+Al(this.minutes(),2)});an("Hmmss",0,0,function(){return""+this.hours()+Al(this.minutes(),2)+Al(this.seconds(),2)});function oK(e,t){an(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}oK("a",!0);oK("A",!1);function sK(e,t){return t._meridiemParse}qt("a",sK);qt("A",sK);qt("H",Or,sR);qt("h",Or,dv);qt("k",Or,dv);qt("HH",Or,Oo);qt("hh",Or,Oo);qt("kk",Or,Oo);qt("hmm",YG);qt("hmmss",XG);qt("Hmm",YG);qt("Hmmss",XG);ur(["H","HH"],xi);ur(["k","kk"],function(e,t,n){var r=Mn(e);t[xi]=r===24?0:r});ur(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ur(["h","hh"],function(e,t,n){t[xi]=Mn(e),Sn(n).bigHour=!0});ur("hmm",function(e,t,n){var r=e.length-2;t[xi]=Mn(e.substr(0,r)),t[Ds]=Mn(e.substr(r)),Sn(n).bigHour=!0});ur("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[xi]=Mn(e.substr(0,r)),t[Ds]=Mn(e.substr(r,2)),t[kc]=Mn(e.substr(i)),Sn(n).bigHour=!0});ur("Hmm",function(e,t,n){var r=e.length-2;t[xi]=Mn(e.substr(0,r)),t[Ds]=Mn(e.substr(r))});ur("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[xi]=Mn(e.substr(0,r)),t[Ds]=Mn(e.substr(r,2)),t[kc]=Mn(e.substr(i))});function yge(e){return(e+"").toLowerCase().charAt(0)==="p"}var wge=/[ap]\.?m?\.?/i,xge=fv("Hours",!0);function Sge(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var lK={calendar:uhe,longDateFormat:phe,invalidDate:hhe,ordinal:bhe,dayOfMonthOrdinalParse:yhe,relativeTime:xhe,months:Fhe,monthsShort:ZG,week:Yhe,weekdays:nge,weekdaysMin:rge,weekdaysShort:aK,meridiemParse:wge},Ir={},lh={},n0;function Cge(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=v2(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Cge(a,r)>=n-1)break;n--}t++}return n0}function _ge(e){return!!(e&&e.match("^[^/\\\\]*$"))}function v2(e){var t=null,n;if(Ir[e]===void 0&&typeof ra<"u"&&ra&&ra.exports&&_ge(e))try{t=n0._abbr,n=require,n("./locale/"+e),Au(t)}catch{Ir[e]=null}return Ir[e]}function Au(e,t){var n;return e&&(Pa(t)?n=zc(e):n=fR(e,t),n?n0=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),n0._abbr}function fR(e,t){if(t!==null){var n,r=lK;if(t.abbr=e,Ir[e]!=null)UG("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ir[e]._config;else if(t.parentLocale!=null)if(Ir[t.parentLocale]!=null)r=Ir[t.parentLocale]._config;else if(n=v2(t.parentLocale),n!=null)r=n._config;else return lh[t.parentLocale]||(lh[t.parentLocale]=[]),lh[t.parentLocale].push({name:e,config:t}),null;return Ir[e]=new nR(kP(r,t)),lh[e]&&lh[e].forEach(function(i){fR(i.name,i.config)}),Au(e),Ir[e]}else return delete Ir[e],null}function $ge(e,t){if(t!=null){var n,r,i=lK;Ir[e]!=null&&Ir[e].parentLocale!=null?Ir[e].set(kP(Ir[e]._config,t)):(r=v2(e),r!=null&&(i=r._config),t=kP(i,t),r==null&&(t.abbr=e),n=new nR(t),n.parentLocale=Ir[e],Ir[e]=n),Au(e)}else Ir[e]!=null&&(Ir[e].parentLocale!=null?(Ir[e]=Ir[e].parentLocale,e===Au()&&Au(e)):Ir[e]!=null&&delete Ir[e]);return Ir[e]}function zc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return n0;if(!Us(e)){if(t=v2(e),t)return t;e=[e]}return kge(e)}function Ege(){return _P(Ir)}function mR(e){var t,n=e._a;return n&&Sn(e).overflow===-2&&(t=n[Cc]<0||n[Cc]>11?Cc:n[kl]<1||n[kl]>lR(n[ia],n[Cc])?kl:n[xi]<0||n[xi]>24||n[xi]===24&&(n[Ds]!==0||n[kc]!==0||n[Dd]!==0)?xi:n[Ds]<0||n[Ds]>59?Ds:n[kc]<0||n[kc]>59?kc:n[Dd]<0||n[Dd]>999?Dd:-1,Sn(e)._overflowDayOfYear&&(tkl)&&(t=kl),Sn(e)._overflowWeeks&&t===-1&&(t=Ihe),Sn(e)._overflowWeekday&&t===-1&&(t=Rhe),Sn(e).overflow=t),e}var Pge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tge=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Oge=/Z|[+-]\d\d(?::?\d\d)?/,Lb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],N$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ige=/^\/?Date\((-?\d+)/i,Rge=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mge={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function cK(e){var t,n,r=e._i,i=Pge.exec(r)||Tge.exec(r),a,o,s,l,u=Lb.length,d=N$.length;if(i){for(Sn(e).iso=!0,t=0,n=u;tmg(o)||e._dayOfYear===0)&&(Sn(e)._overflowDayOfYear=!0),n=e0(o,0,e._dayOfYear),e._a[Cc]=n.getUTCMonth(),e._a[kl]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[xi]===24&&e._a[Ds]===0&&e._a[kc]===0&&e._a[Dd]===0&&(e._nextDay=!0,e._a[xi]=0),e._d=(e._useUTC?e0:Ghe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Sn(e).weekdayMismatch=!0)}}function zge(e){var t,n,r,i,a,o,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Cm(t.GG,e._a[ia],t0(Tr(),1,4).year),r=Cm(t.W,1),i=Cm(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,u=t0(Tr(),a,o),n=Cm(t.gg,e._a[ia],u.year),r=Cm(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>Pc(n,a,o)?Sn(e)._overflowWeeks=!0:l!=null?Sn(e)._overflowWeekday=!0:(s=iK(n,r,i,a,o),e._a[ia]=s.year,e._dayOfYear=s.dayOfYear)}Lt.ISO_8601=function(){};Lt.RFC_2822=function(){};function vR(e){if(e._f===Lt.ISO_8601){cK(e);return}if(e._f===Lt.RFC_2822){uK(e);return}e._a=[],Sn(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,l=0,u,d;for(i=qG(e._f,e._locale).match(rR)||[],d=i.length,n=0;n0&&Sn(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Zm[a]?(r?Sn(e).empty=!1:Sn(e).unusedTokens.push(a),Ohe(a,r,e)):e._strict&&!r&&Sn(e).unusedTokens.push(a);Sn(e).charsLeftOver=s-l,t.length>0&&Sn(e).unusedInput.push(t),e._a[xi]<=12&&Sn(e).bigHour===!0&&e._a[xi]>0&&(Sn(e).bigHour=void 0),Sn(e).parsedDateParts=e._a.slice(0),Sn(e).meridiem=e._meridiem,e._a[xi]=Hge(e._locale,e._a[xi],e._meridiem),u=Sn(e).era,u!==null&&(e._a[ia]=e._locale.erasConvertYear(u,e._a[ia])),pR(e),mR(e)}function Hge(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Vge(e){var t,n,r,i,a,o,s=!1,l=e._f.length;if(l===0){Sn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:l2()});function mK(e,t){var n,r;if(t.length===1&&Us(t[0])&&(t=t[0]),!t.length)return Tr();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function u0e(){if(!Pa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return tR(e,this),e=dK(e),e._a?(t=e._isUTC?Gl(e._a):Tr(e._a),this._isDSTShifted=this.isValid()&&t0e(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function d0e(){return this.isValid()?!this._isUTC:!1}function f0e(){return this.isValid()?this._isUTC:!1}function vK(){return this.isValid()?this._isUTC&&this._offset===0:!1}var m0e=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,p0e=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function il(e,t){var n=e,r=null,i,a,o;return mw(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Mc(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=m0e.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Mn(r[kl])*i,h:Mn(r[xi])*i,m:Mn(r[Ds])*i,s:Mn(r[kc])*i,ms:Mn(EP(r[Dd]*1e3))*i}):(r=p0e.exec(e))?(i=r[1]==="-"?-1:1,n={y:md(r[2],i),M:md(r[3],i),w:md(r[4],i),d:md(r[5],i),h:md(r[6],i),m:md(r[7],i),s:md(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=v0e(Tr(n.from),Tr(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new h2(n),mw(e)&&Un(e,"_locale")&&(a._locale=e._locale),mw(e)&&Un(e,"_isValid")&&(a._isValid=e._isValid),a}il.fn=h2.prototype;il.invalid=e0e;function md(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function ij(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function v0e(e,t){var n;return e.isValid()&&t.isValid()?(t=gR(t,e),e.isBefore(t)?n=ij(e,t):(n=ij(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function hK(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(UG(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=il(n,r),gK(this,i,e),this}}function gK(e,t,n,r){var i=t._milliseconds,a=EP(t._days),o=EP(t._months);e.isValid()&&(r=r??!0,o&&tK(e,Zg(e,"Month")+o*n),a&&JG(e,"Date",Zg(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Lt.updateOffset(e,a||o))}var h0e=hK(1,"add"),g0e=hK(-1,"subtract");function bK(e){return typeof e=="string"||e instanceof String}function b0e(e){return qs(e)||l1(e)||bK(e)||Mc(e)||w0e(e)||y0e(e)||e===null||e===void 0}function y0e(e){var t=Yd(e)&&!ZI(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,o=r.length;for(i=0;in.valueOf():n.valueOf()9999?fw(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Kl(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fw(n,"Z")):fw(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function N0e(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function D0e(e){e||(e=this.isUtc()?Lt.defaultFormatUtc:Lt.defaultFormat);var t=fw(this,e);return this.localeData().postformat(t)}function j0e(e,t){return this.isValid()&&(qs(e)&&e.isValid()||Tr(e).isValid())?il({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function F0e(e){return this.from(Tr(),e)}function A0e(e,t){return this.isValid()&&(qs(e)&&e.isValid()||Tr(e).isValid())?il({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function L0e(e){return this.to(Tr(),e)}function yK(e){var t;return e===void 0?this._locale._abbr:(t=zc(e),t!=null&&(this._locale=t),this)}var wK=ds("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function xK(){return this._locale}var Lx=1e3,ep=60*Lx,Bx=60*ep,SK=(365*400+97)*24*Bx;function tp(e,t){return(e%t+t)%t}function CK(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-SK:new Date(e,t,n).valueOf()}function kK(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-SK:Date.UTC(e,t,n)}function B0e(e){var t,n;if(e=fs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?kK:CK,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tp(t+(this._isUTC?0:this.utcOffset()*ep),Bx);break;case"minute":t=this._d.valueOf(),t-=tp(t,ep);break;case"second":t=this._d.valueOf(),t-=tp(t,Lx);break}return this._d.setTime(t),Lt.updateOffset(this,!0),this}function z0e(e){var t,n;if(e=fs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?kK:CK,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Bx-tp(t+(this._isUTC?0:this.utcOffset()*ep),Bx)-1;break;case"minute":t=this._d.valueOf(),t+=ep-tp(t,ep)-1;break;case"second":t=this._d.valueOf(),t+=Lx-tp(t,Lx)-1;break}return this._d.setTime(t),Lt.updateOffset(this,!0),this}function H0e(){return this._d.valueOf()-(this._offset||0)*6e4}function V0e(){return Math.floor(this.valueOf()/1e3)}function W0e(){return new Date(this.valueOf())}function U0e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function q0e(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function G0e(){return this.isValid()?this.toISOString():null}function K0e(){return eR(this)}function Y0e(){return wu({},Sn(this))}function X0e(){return Sn(this).overflow}function Q0e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}an("N",0,0,"eraAbbr");an("NN",0,0,"eraAbbr");an("NNN",0,0,"eraAbbr");an("NNNN",0,0,"eraName");an("NNNNN",0,0,"eraNarrow");an("y",["y",1],"yo","eraYear");an("y",["yy",2],0,"eraYear");an("y",["yyy",3],0,"eraYear");an("y",["yyyy",4],0,"eraYear");qt("N",bR);qt("NN",bR);qt("NNN",bR);qt("NNNN",l1e);qt("NNNNN",c1e);ur(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Sn(n).era=i:Sn(n).invalidEra=e});qt("y",uv);qt("yy",uv);qt("yyy",uv);qt("yyyy",uv);qt("yo",u1e);ur(["y","yy","yyy","yyyy"],ia);ur(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ia]=n._locale.eraYearOrdinalParse(e,i):t[ia]=parseInt(e,10)});function J0e(e,t){var n,r,i,a=this._eras||zc("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function e1e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Lt(e.since).year():Lt(e.since).year()+(t-e.offset)*n}function t1e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),g1e.call(this,e,t,n,r,i))}function g1e(e,t,n,r,i){var a=iK(e,t,n,r,i),o=e0(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}an("Q",0,"Qo","quarter");qt("Q",GG);ur("Q",function(e,t){t[Cc]=(Mn(e)-1)*3});function b1e(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}an("D",["DD",2],"Do","date");qt("D",Or,dv);qt("DD",Or,Oo);qt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ur(["D","DD"],kl);ur("Do",function(e,t){t[kl]=Mn(e.match(Or)[0])});var $K=fv("Date",!0);an("DDD",["DDDD",3],"DDDo","dayOfYear");qt("DDD",u2);qt("DDDD",KG);ur(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Mn(e)});function y1e(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}an("m",["mm",2],0,"minute");qt("m",Or,sR);qt("mm",Or,Oo);ur(["m","mm"],Ds);var w1e=fv("Minutes",!1);an("s",["ss",2],0,"second");qt("s",Or,sR);qt("ss",Or,Oo);ur(["s","ss"],kc);var x1e=fv("Seconds",!1);an("S",0,0,function(){return~~(this.millisecond()/100)});an(0,["SS",2],0,function(){return~~(this.millisecond()/10)});an(0,["SSS",3],0,"millisecond");an(0,["SSSS",4],0,function(){return this.millisecond()*10});an(0,["SSSSS",5],0,function(){return this.millisecond()*100});an(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});an(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});an(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});an(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});qt("S",u2,GG);qt("SS",u2,Oo);qt("SSS",u2,KG);var xu,EK;for(xu="SSSS";xu.length<=9;xu+="S")qt(xu,uv);function S1e(e,t){t[Dd]=Mn(("0."+e)*1e3)}for(xu="S";xu.length<=9;xu+="S")ur(xu,S1e);EK=fv("Milliseconds",!1);an("z",0,0,"zoneAbbr");an("zz",0,0,"zoneName");function C1e(){return this._isUTC?"UTC":""}function k1e(){return this._isUTC?"Coordinated Universal Time":""}var Tt=c1.prototype;Tt.add=h0e;Tt.calendar=C0e;Tt.clone=k0e;Tt.diff=I0e;Tt.endOf=z0e;Tt.format=D0e;Tt.from=j0e;Tt.fromNow=F0e;Tt.to=A0e;Tt.toNow=L0e;Tt.get=Nhe;Tt.invalidAt=X0e;Tt.isAfter=_0e;Tt.isBefore=$0e;Tt.isBetween=E0e;Tt.isSame=P0e;Tt.isSameOrAfter=T0e;Tt.isSameOrBefore=O0e;Tt.isValid=K0e;Tt.lang=wK;Tt.locale=yK;Tt.localeData=xK;Tt.max=Kge;Tt.min=Gge;Tt.parsingFlags=Y0e;Tt.set=Dhe;Tt.startOf=B0e;Tt.subtract=g0e;Tt.toArray=U0e;Tt.toObject=q0e;Tt.toDate=W0e;Tt.toISOString=M0e;Tt.inspect=N0e;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=G0e;Tt.toString=R0e;Tt.unix=V0e;Tt.valueOf=H0e;Tt.creationData=Q0e;Tt.eraName=t1e;Tt.eraNarrow=n1e;Tt.eraAbbr=r1e;Tt.eraYear=i1e;Tt.year=QG;Tt.isLeapYear=Mhe;Tt.weekYear=d1e;Tt.isoWeekYear=f1e;Tt.quarter=Tt.quarters=b1e;Tt.month=nK;Tt.daysInMonth=Whe;Tt.week=Tt.weeks=Jhe;Tt.isoWeek=Tt.isoWeeks=Zhe;Tt.weeksInYear=v1e;Tt.weeksInWeekYear=h1e;Tt.isoWeeksInYear=m1e;Tt.isoWeeksInISOWeekYear=p1e;Tt.date=$K;Tt.day=Tt.days=fge;Tt.weekday=mge;Tt.isoWeekday=pge;Tt.dayOfYear=y1e;Tt.hour=Tt.hours=xge;Tt.minute=Tt.minutes=w1e;Tt.second=Tt.seconds=x1e;Tt.millisecond=Tt.milliseconds=EK;Tt.utcOffset=r0e;Tt.utc=a0e;Tt.local=o0e;Tt.parseZone=s0e;Tt.hasAlignedHourOffset=l0e;Tt.isDST=c0e;Tt.isLocal=d0e;Tt.isUtcOffset=f0e;Tt.isUtc=vK;Tt.isUTC=vK;Tt.zoneAbbr=C1e;Tt.zoneName=k1e;Tt.dates=ds("dates accessor is deprecated. Use date instead.",$K);Tt.months=ds("months accessor is deprecated. Use month instead",nK);Tt.years=ds("years accessor is deprecated. Use year instead",QG);Tt.zone=ds("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",i0e);Tt.isDSTShifted=ds("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",u0e);function _1e(e){return Tr(e*1e3)}function $1e(){return Tr.apply(null,arguments).parseZone()}function PK(e){return e}var Gn=nR.prototype;Gn.calendar=dhe;Gn.longDateFormat=vhe;Gn.invalidDate=ghe;Gn.ordinal=whe;Gn.preparse=PK;Gn.postformat=PK;Gn.relativeTime=She;Gn.pastFuture=Che;Gn.set=che;Gn.eras=J0e;Gn.erasParse=Z0e;Gn.erasConvertYear=e1e;Gn.erasAbbrRegex=o1e;Gn.erasNameRegex=a1e;Gn.erasNarrowRegex=s1e;Gn.months=Bhe;Gn.monthsShort=zhe;Gn.monthsParse=Vhe;Gn.monthsRegex=qhe;Gn.monthsShortRegex=Uhe;Gn.week=Khe;Gn.firstDayOfYear=Qhe;Gn.firstDayOfWeek=Xhe;Gn.weekdays=sge;Gn.weekdaysMin=cge;Gn.weekdaysShort=lge;Gn.weekdaysParse=dge;Gn.weekdaysRegex=vge;Gn.weekdaysShortRegex=hge;Gn.weekdaysMinRegex=gge;Gn.isPM=yge;Gn.meridiem=Sge;function zx(e,t,n,r){var i=zc(),a=Gl().set(r,t);return i[n](a,e)}function TK(e,t,n){if(Mc(e)&&(t=e,e=void 0),e=e||"",t!=null)return zx(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=zx(e,r,n,"month");return i}function wR(e,t,n,r){typeof e=="boolean"?(Mc(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Mc(t)&&(n=t,t=void 0),t=t||"");var i=zc(),a=e?i._week.dow:0,o,s=[];if(n!=null)return zx(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=zx(t,(o+a)%7,r,"day");return s}function E1e(e,t){return TK(e,t,"months")}function P1e(e,t){return TK(e,t,"monthsShort")}function T1e(e,t,n){return wR(e,t,n,"weekdays")}function O1e(e,t,n){return wR(e,t,n,"weekdaysShort")}function I1e(e,t,n){return wR(e,t,n,"weekdaysMin")}Au("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Mn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Lt.lang=ds("moment.lang is deprecated. Use moment.locale instead.",Au);Lt.langData=ds("moment.langData is deprecated. Use moment.localeData instead.",zc);var tc=Math.abs;function R1e(){var e=this._data;return this._milliseconds=tc(this._milliseconds),this._days=tc(this._days),this._months=tc(this._months),e.milliseconds=tc(e.milliseconds),e.seconds=tc(e.seconds),e.minutes=tc(e.minutes),e.hours=tc(e.hours),e.months=tc(e.months),e.years=tc(e.years),this}function OK(e,t,n,r){var i=il(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function M1e(e,t){return OK(this,e,t,1)}function N1e(e,t){return OK(this,e,t,-1)}function aj(e){return e<0?Math.floor(e):Math.ceil(e)}function D1e(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=aj(TP(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=qo(e/1e3),r.seconds=i%60,a=qo(i/60),r.minutes=a%60,o=qo(a/60),r.hours=o%24,t+=qo(o/24),l=qo(IK(t)),n+=l,t-=aj(TP(l)),s=qo(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function IK(e){return e*4800/146097}function TP(e){return e*146097/4800}function j1e(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=fs(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+IK(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(TP(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Hc(e){return function(){return this.as(e)}}var RK=Hc("ms"),F1e=Hc("s"),A1e=Hc("m"),L1e=Hc("h"),B1e=Hc("d"),z1e=Hc("w"),H1e=Hc("M"),V1e=Hc("Q"),W1e=Hc("y"),U1e=RK;function q1e(){return il(this)}function G1e(e){return e=fs(e),this.isValid()?this[e+"s"]():NaN}function Df(e){return function(){return this.isValid()?this._data[e]:NaN}}var K1e=Df("milliseconds"),Y1e=Df("seconds"),X1e=Df("minutes"),Q1e=Df("hours"),J1e=Df("days"),Z1e=Df("months"),ebe=Df("years");function tbe(){return qo(this.days()/7)}var cc=Math.round,Fm={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nbe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function rbe(e,t,n,r){var i=il(e).abs(),a=cc(i.as("s")),o=cc(i.as("m")),s=cc(i.as("h")),l=cc(i.as("d")),u=cc(i.as("M")),d=cc(i.as("w")),f=cc(i.as("y")),m=a<=n.ss&&["s",a]||a0,m[4]=r,nbe.apply(null,m)}function ibe(e){return e===void 0?cc:typeof e=="function"?(cc=e,!0):!1}function abe(e,t){return Fm[e]===void 0?!1:t===void 0?Fm[e]:(Fm[e]=t,e==="s"&&(Fm.ss=t-1),!0)}function obe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Fm,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Fm,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=rbe(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var D$=Math.abs;function im(e){return(e>0)-(e<0)||+e}function b2(){if(!this.isValid())return this.localeData().invalidDate();var e=D$(this._milliseconds)/1e3,t=D$(this._days),n=D$(this._months),r,i,a,o,s=this.asSeconds(),l,u,d,f;return s?(r=qo(e/60),i=qo(r/60),e%=60,r%=60,a=qo(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=im(this._months)!==im(s)?"-":"",d=im(this._days)!==im(s)?"-":"",f=im(this._milliseconds)!==im(s)?"-":"",l+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var zn=h2.prototype;zn.isValid=Zge;zn.abs=R1e;zn.add=M1e;zn.subtract=N1e;zn.as=j1e;zn.asMilliseconds=RK;zn.asSeconds=F1e;zn.asMinutes=A1e;zn.asHours=L1e;zn.asDays=B1e;zn.asWeeks=z1e;zn.asMonths=H1e;zn.asQuarters=V1e;zn.asYears=W1e;zn.valueOf=U1e;zn._bubble=D1e;zn.clone=q1e;zn.get=G1e;zn.milliseconds=K1e;zn.seconds=Y1e;zn.minutes=X1e;zn.hours=Q1e;zn.days=J1e;zn.weeks=tbe;zn.months=Z1e;zn.years=ebe;zn.humanize=obe;zn.toISOString=b2;zn.toString=b2;zn.toJSON=b2;zn.locale=yK;zn.localeData=xK;zn.toIsoString=ds("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",b2);zn.lang=wK;an("X",0,0,"unix");an("x",0,0,"valueOf");qt("x",f2);qt("X",Ehe);ur("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ur("x",function(e,t,n){n._d=new Date(Mn(e))});//! moment.js +Lt.version="2.30.1";she(Tr);Lt.fn=Tt;Lt.min=Yge;Lt.max=Xge;Lt.now=Qge;Lt.utc=Gl;Lt.unix=_1e;Lt.months=E1e;Lt.isDate=l1;Lt.locale=Au;Lt.invalid=l2;Lt.duration=il;Lt.isMoment=qs;Lt.weekdays=T1e;Lt.parseZone=$1e;Lt.localeData=zc;Lt.isDuration=mw;Lt.monthsShort=P1e;Lt.weekdaysMin=I1e;Lt.defineLocale=fR;Lt.updateLocale=$ge;Lt.locales=Ege;Lt.weekdaysShort=O1e;Lt.normalizeUnits=fs;Lt.relativeTimeRounding=ibe;Lt.relativeTimeThreshold=abe;Lt.calendarFormat=S0e;Lt.prototype=Tt;Lt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let Bb;const sbe=new Uint8Array(16);function lbe(){if(!Bb&&(Bb=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Bb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bb(sbe)}const ji=[];for(let e=0;e<256;++e)ji.push((e+256).toString(16).slice(1));function cbe(e,t=0){return ji[e[t+0]]+ji[e[t+1]]+ji[e[t+2]]+ji[e[t+3]]+"-"+ji[e[t+4]]+ji[e[t+5]]+"-"+ji[e[t+6]]+ji[e[t+7]]+"-"+ji[e[t+8]]+ji[e[t+9]]+"-"+ji[e[t+10]]+ji[e[t+11]]+ji[e[t+12]]+ji[e[t+13]]+ji[e[t+14]]+ji[e[t+15]]}const ube=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),oj={randomUUID:ube};function dbe(e,t,n){if(oj.randomUUID&&!t&&!e)return oj.randomUUID();e=e||{};const r=e.random||(e.rng||lbe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,cbe(r)}const fbe={BASE_URL:"/chat/",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},sj=e=>{let t;const n=new Set,r=(d,f)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const p=t;t=f??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(v=>v(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(fbe?"open":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,l);return l},mbe=e=>e?sj(e):sj;var MK={exports:{}},NK={},DK={exports:{}},jK={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Cp=c;function pbe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vbe=typeof Object.is=="function"?Object.is:pbe,hbe=Cp.useState,gbe=Cp.useEffect,bbe=Cp.useLayoutEffect,ybe=Cp.useDebugValue;function wbe(e,t){var n=t(),r=hbe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return bbe(function(){i.value=n,i.getSnapshot=t,j$(i)&&a({inst:i})},[e,n,t]),gbe(function(){return j$(i)&&a({inst:i}),e(function(){j$(i)&&a({inst:i})})},[e]),ybe(n),n}function j$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vbe(e,n)}catch{return!0}}function xbe(e,t){return t()}var Sbe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?xbe:wbe;jK.useSyncExternalStore=Cp.useSyncExternalStore!==void 0?Cp.useSyncExternalStore:Sbe;DK.exports=jK;var FK=DK.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var y2=c,Cbe=FK;function kbe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _be=typeof Object.is=="function"?Object.is:kbe,$be=Cbe.useSyncExternalStore,Ebe=y2.useRef,Pbe=y2.useEffect,Tbe=y2.useMemo,Obe=y2.useDebugValue;NK.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Ebe(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Tbe(function(){function l(p){if(!u){if(u=!0,d=p,p=r(p),i!==void 0&&o.hasValue){var v=o.value;if(i(v,p))return f=v}return f=p}if(v=f,_be(d,p))return v;var h=r(p);return i!==void 0&&i(v,h)?v:(d=p,f=h)}var u=!1,d,f,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=$be(e,a[0],a[1]);return Pbe(function(){o.hasValue=!0,o.value=s},[s]),Obe(s),s};MK.exports=NK;var Ibe=MK.exports;const Rbe=qn(Ibe),AK={BASE_URL:"/chat/",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:Mbe}=L,{useSyncExternalStoreWithSelector:Nbe}=Rbe;let lj=!1;const Dbe=e=>e;function jbe(e,t=Dbe,n){(AK?"open":void 0)!=="production"&&n&&!lj&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),lj=!0);const r=Nbe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Mbe(r),r}const Fbe=e=>{(AK?"open":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?mbe(e):e,n=(r,i)=>jbe(t,r,i);return Object.assign(n,t),n},f1=e=>Fbe,vw={BASE_URL:"/chat/",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},OP=new Map,zb=e=>{const t=OP.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Abe=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=OP.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return OP.set(n.name,i),{type:"tracked",store:e,...i}},Lbe=(e,t={})=>(n,r,i)=>{const{enabled:a,anonymousActionType:o,store:s,...l}=t;let u;try{u=(a??(vw?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return(vw?"open":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:d,...f}=Abe(s,u,l);let m=!0;i.setState=(h,g,w)=>{const b=n(h,g);if(!m)return b;const y=w===void 0?{type:o||"anonymous"}:typeof w=="string"?{type:w}:w;return s===void 0?(d==null||d.send(y,r()),b):(d==null||d.send({...y,type:`${s}/${y.type}`},{...zb(l.name),[s]:i.getState()}),b)};const p=(...h)=>{const g=m;m=!1,n(...h),m=g},v=e(i.setState,r,i);if(f.type==="untracked"?d==null||d.init(v):(f.stores[f.store]=i,d==null||d.init(Object.fromEntries(Object.entries(f.stores).map(([h,g])=>[h,h===f.store?v:g.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let h=!1;const g=i.dispatch;i.dispatch=(...w)=>{(vw?"open":void 0)!=="production"&&w[0].type==="__setState"&&!h&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),h=!0),g(...w)}}return d.subscribe(h=>{var g;switch(h.type){case"ACTION":if(typeof h.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return F$(h.payload,w=>{if(w.type==="__setState"){if(s===void 0){p(w.state);return}Object.keys(w.state).length!==1&&console.error(` + [zustand devtools middleware] Unsupported __setState action format. + When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), + and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } + `);const b=w.state[s];if(b==null)return;JSON.stringify(i.getState())!==JSON.stringify(b)&&p(b);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(w)});case"DISPATCH":switch(h.payload.type){case"RESET":return p(v),s===void 0?d==null?void 0:d.init(i.getState()):d==null?void 0:d.init(zb(l.name));case"COMMIT":if(s===void 0){d==null||d.init(i.getState());return}return d==null?void 0:d.init(zb(l.name));case"ROLLBACK":return F$(h.state,w=>{if(s===void 0){p(w),d==null||d.init(i.getState());return}p(w[s]),d==null||d.init(zb(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return F$(h.state,w=>{if(s===void 0){p(w);return}JSON.stringify(i.getState())!==JSON.stringify(w[s])&&p(w[s])});case"IMPORT_STATE":{const{nextLiftedState:w}=h.payload,b=(g=w.computedStates.slice(-1)[0])==null?void 0:g.state;if(!b)return;p(s===void 0?b:b[s]),d==null||d.send(null,w);return}case"PAUSE_RECORDING":return m=!m}return}}),v},m1=Lbe,F$=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function Bbe(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,void 0),s=(a=n.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>n.removeItem(i)}}const r0=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return r0(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return r0(r)(n)}}}},zbe=(e,t)=>(n,r,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:g=>g,version:0,merge:(g,w)=>({...w,...g}),...t},o=!1;const s=new Set,l=new Set;let u;try{u=a.getStorage()}catch{}if(!u)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...g)},r,i);const d=r0(a.serialize),f=()=>{const g=a.partialize({...r()});let w;const b=d({state:g,version:a.version}).then(y=>u.setItem(a.name,y)).catch(y=>{w=y});if(w)throw w;return b},m=i.setState;i.setState=(g,w)=>{m(g,w),f()};const p=e((...g)=>{n(...g),f()},r,i);let v;const h=()=>{var g;if(!u)return;o=!1,s.forEach(b=>b(r()));const w=((g=a.onRehydrateStorage)==null?void 0:g.call(a,r()))||void 0;return r0(u.getItem.bind(u))(a.name).then(b=>{if(b)return a.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return a.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var y;return v=a.merge(b,(y=r())!=null?y:p),n(v,!0),f()}).then(()=>{w==null||w(v,void 0),o=!0,l.forEach(b=>b(v))}).catch(b=>{w==null||w(void 0,b)})};return i.persist={setOptions:g=>{a={...a,...g},g.getStorage&&(u=g.getStorage())},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},h(),v||p},Hbe=(e,t)=>(n,r,i)=>{let a={storage:Bbe(()=>localStorage),partialize:h=>h,version:0,merge:(h,g)=>({...g,...h}),...t},o=!1;const s=new Set,l=new Set;let u=a.storage;if(!u)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...h)},r,i);const d=()=>{const h=a.partialize({...r()});return u.setItem(a.name,{state:h,version:a.version})},f=i.setState;i.setState=(h,g)=>{f(h,g),d()};const m=e((...h)=>{n(...h),d()},r,i);i.getInitialState=()=>m;let p;const v=()=>{var h,g;if(!u)return;o=!1,s.forEach(b=>{var y;return b((y=r())!=null?y:m)});const w=((g=a.onRehydrateStorage)==null?void 0:g.call(a,(h=r())!=null?h:m))||void 0;return r0(u.getItem.bind(u))(a.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return[!0,a.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var y;const[x,C]=b;if(p=a.merge(C,(y=r())!=null?y:m),n(p,!0),x)return d()}).then(()=>{w==null||w(p,void 0),p=r(),o=!0,l.forEach(b=>b(p))}).catch(b=>{w==null||w(void 0,b)})};return i.persist={setOptions:h=>{a={...a,...h},h.storage&&(u=h.storage)},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>v(),hasHydrated:()=>o,onHydrate:h=>(s.add(h),()=>{s.delete(h)}),onFinishHydration:h=>(l.add(h),()=>{l.delete(h)})},a.skipHydration||v(),p||m},Vbe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((vw?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),zbe(e,t)):Hbe(e,t),w2=Vbe;var LK=Symbol.for("immer-nothing"),cj=Symbol.for("immer-draftable"),xo=Symbol.for("immer-state");function Is(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var kp=Object.getPrototypeOf;function _p(e){return!!e&&!!e[xo]}function vf(e){var t;return e?BK(e)||Array.isArray(e)||!!e[cj]||!!((t=e.constructor)!=null&&t[cj])||S2(e)||C2(e):!1}var Wbe=Object.prototype.constructor.toString();function BK(e){if(!e||typeof e!="object")return!1;const t=kp(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Wbe}function Hx(e,t){x2(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function x2(e){const t=e[xo];return t?t.type_:Array.isArray(e)?1:S2(e)?2:C2(e)?3:0}function IP(e,t){return x2(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zK(e,t,n){const r=x2(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Ube(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function S2(e){return e instanceof Map}function C2(e){return e instanceof Set}function yd(e){return e.copy_||e.base_}function RP(e,t){if(S2(e))return new Map(e);if(C2(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=BK(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[xo];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=qbe),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>xR(r,!0))),e}function qbe(){Is(2)}function k2(e){return Object.isFrozen(e)}var Gbe={};function hf(e){const t=Gbe[e];return t||Is(0,e),t}var i0;function HK(){return i0}function Kbe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function uj(e,t){t&&(hf("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function MP(e){NP(e),e.drafts_.forEach(Ybe),e.drafts_=null}function NP(e){e===i0&&(i0=e.parent_)}function dj(e){return i0=Kbe(i0,e)}function Ybe(e){const t=e[xo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[xo].modified_&&(MP(t),Is(4)),vf(e)&&(e=Vx(t,e),t.parent_||Wx(t,e)),t.patches_&&hf("Patches").generateReplacementPatches_(n[xo].base_,e,t.patches_,t.inversePatches_)):e=Vx(t,n,[]),MP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==LK?e:void 0}function Vx(e,t,n){if(k2(t))return t;const r=t[xo];if(!r)return Hx(t,(i,a)=>mj(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Wx(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),Hx(a,(s,l)=>mj(e,r,i,s,l,n,o)),Wx(e,i,!1),n&&e.patches_&&hf("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function mj(e,t,n,r,i,a,o){if(_p(i)){const s=a&&t&&t.type_!==3&&!IP(t.assigned_,r)?a.concat(r):void 0,l=Vx(e,i,s);if(zK(n,r,l),_p(l))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(vf(i)&&!k2(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Vx(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Wx(e,i)}}function Wx(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xR(t,n)}function Xbe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:HK(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=SR;n&&(i=[r],a=a0);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var SR={get(e,t){if(t===xo)return e;const n=yd(e);if(!IP(n,t))return Qbe(e,n,t);const r=n[t];return e.finalized_||!vf(r)?r:r===A$(e.base_,t)?(L$(e),e.copy_[t]=jP(r,e)):r},has(e,t){return t in yd(e)},ownKeys(e){return Reflect.ownKeys(yd(e))},set(e,t,n){const r=VK(yd(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=A$(yd(e),t),a=i==null?void 0:i[xo];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Ube(n,i)&&(n!==void 0||IP(e.base_,t)))return!0;L$(e),DP(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return A$(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,L$(e),DP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=yd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Is(11)},getPrototypeOf(e){return kp(e.base_)},setPrototypeOf(){Is(12)}},a0={};Hx(SR,(e,t)=>{a0[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});a0.deleteProperty=function(e,t){return a0.set.call(this,e,t,void 0)};a0.set=function(e,t,n){return SR.set.call(this,e[0],t,n,e[0])};function A$(e,t){const n=e[xo];return(n?yd(n):e)[t]}function Qbe(e,t,n){var i;const r=VK(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function VK(e,t){if(!(t in e))return;let n=kp(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=kp(n)}}function DP(e){e.modified_||(e.modified_=!0,e.parent_&&DP(e.parent_))}function L$(e){e.copy_||(e.copy_=RP(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Jbe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(l=a,...u){return o.produce(l,d=>n.call(this,d,...u))}}typeof n!="function"&&Is(6),r!==void 0&&typeof r!="function"&&Is(7);let i;if(vf(t)){const a=dj(this),o=jP(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?MP(a):NP(a)}return uj(a,r),fj(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===LK&&(i=void 0),this.autoFreeze_&&xR(i,!0),r){const a=[],o=[];hf("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else Is(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){vf(e)||Is(8),_p(e)&&(e=Zbe(e));const t=dj(this),n=jP(e,void 0);return n[xo].isManual_=!0,NP(t),n}finishDraft(e,t){const n=e&&e[xo];(!n||!n.isManual_)&&Is(9);const{scope_:r}=n;return uj(r,t),fj(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=hf("Patches").applyPatches_;return _p(e)?r(e,t):this.produce(e,i=>r(i,t))}};function jP(e,t){const n=S2(e)?hf("MapSet").proxyMap_(e,t):C2(e)?hf("MapSet").proxySet_(e,t):Xbe(e,t);return(t?t.scope_:HK()).drafts_.push(n),n}function Zbe(e){return _p(e)||Is(10,e),WK(e)}function WK(e){if(!vf(e)||k2(e))return e;const t=e[xo];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=RP(e,t.scope_.immer_.useStrictShallowCopy_)}else n=RP(e,!0);return Hx(n,(r,i)=>{zK(n,r,WK(i))}),t&&(t.finalized_=!1),n}var So=new Jbe,eye=So.produce;So.produceWithPatches.bind(So);So.setAutoFreeze.bind(So);So.setUseStrictShallowCopy.bind(So);So.applyPatches.bind(So);So.createDraft.bind(So);So.finishDraft.bind(So);const tye=e=>(t,n,r)=>(r.setState=(i,a,...o)=>{const s=typeof i=="function"?eye(i):i;return t(s,a,...o)},e(r.setState,n,r)),p1=tye,_2=f1()(m1(p1((e,t)=>({messageList:[],addMessage(n){if(!t().messageList.some(i=>i.uid===n.uid))console.log("messageList add message"),e({messageList:[...t().messageList,n].sort((i,a)=>new Date(i.createdAt).getTime()-new Date(a.createdAt).getTime())});else{if(console.log("messageList update message"),n.type===Jg){const a=t().messageList.findIndex(o=>o.type===Jg&&o.uid===n.uid);if(a!==-1){const o=[...t().messageList];o[a].content+=n==null?void 0:n.content,e({messageList:o});return}}const i=t().messageList.findIndex(a=>a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i]=n,e({messageList:a})}}},addMessageList(n){const r=n.filter(i=>!t().messageList.some(a=>a.uid===i.uid));e({messageList:[...r,...t().messageList].sort((i,a)=>new Date(i.createdAt).getTime()-new Date(a.createdAt).getTime())})},updateMessageStatus(n,r){const i=t().messageList.findIndex(a=>a.uid===n);i!==-1&&(t().messageList[i].status=r)},updateMessageContent(n,r){const i=t().messageList.findIndex(a=>a.uid===n);i!==-1&&(t().messageList[i].content=r)},getHistoryMessage(){},deleteEverything:()=>e({},!0)})),{name:"MESSAGE_STORE_VISITOR"}));function nye(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const Zr=nye();function UK(e,t){return function(){return e.apply(t,arguments)}}const{toString:rye}=Object.prototype,{getPrototypeOf:CR}=Object,$2=(e=>t=>{const n=rye.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),al=e=>(e=e.toLowerCase(),t=>$2(t)===e),E2=e=>t=>typeof t===e,{isArray:mv}=Array,o0=E2("undefined");function iye(e){return e!==null&&!o0(e)&&e.constructor!==null&&!o0(e.constructor)&&go(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qK=al("ArrayBuffer");function aye(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qK(e.buffer),t}const oye=E2("string"),go=E2("function"),GK=E2("number"),P2=e=>e!==null&&typeof e=="object",sye=e=>e===!0||e===!1,hw=e=>{if($2(e)!=="object")return!1;const t=CR(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lye=al("Date"),cye=al("File"),uye=al("Blob"),dye=al("FileList"),fye=e=>P2(e)&&go(e.pipe),mye=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||go(e.append)&&((t=$2(e))==="formdata"||t==="object"&&go(e.toString)&&e.toString()==="[object FormData]"))},pye=al("URLSearchParams"),[vye,hye,gye,bye]=["ReadableStream","Request","Response","Headers"].map(al),yye=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function v1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),mv(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const jd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,YK=e=>!o0(e)&&e!==jd;function FP(){const{caseless:e}=YK(this)&&this||{},t={},n=(r,i)=>{const a=e&&KK(t,i)||i;hw(t[a])&&hw(r)?t[a]=FP(t[a],r):hw(r)?t[a]=FP({},r):mv(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(v1(t,(i,a)=>{n&&go(i)?e[a]=UK(i,n):e[a]=i},{allOwnKeys:r}),e),xye=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Sye=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Cye=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&CR(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kye=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},_ye=e=>{if(!e)return null;if(mv(e))return e;let t=e.length;if(!GK(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$ye=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&CR(Uint8Array)),Eye=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},Pye=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tye=al("HTMLFormElement"),Oye=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),pj=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Iye=al("RegExp"),XK=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};v1(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},Rye=e=>{XK(e,(t,n)=>{if(go(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(go(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Mye=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return mv(e)?r(e):r(String(e).split(t)),n},Nye=()=>{},Dye=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,B$="abcdefghijklmnopqrstuvwxyz",vj="0123456789",QK={DIGIT:vj,ALPHA:B$,ALPHA_DIGIT:B$+B$.toUpperCase()+vj},jye=(e=16,t=QK.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Fye(e){return!!(e&&go(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Aye=e=>{const t=new Array(10),n=(r,i)=>{if(P2(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=mv(r)?[]:{};return v1(r,(o,s)=>{const l=n(o,i+1);!o0(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},Lye=al("AsyncFunction"),Bye=e=>e&&(P2(e)||go(e))&&go(e.then)&&go(e.catch),JK=((e,t)=>e?setImmediate:t?((n,r)=>(jd.addEventListener("message",({source:i,data:a})=>{i===jd&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),jd.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",go(jd.postMessage)),zye=typeof queueMicrotask<"u"?queueMicrotask.bind(jd):typeof process<"u"&&process.nextTick||JK,ft={isArray:mv,isArrayBuffer:qK,isBuffer:iye,isFormData:mye,isArrayBufferView:aye,isString:oye,isNumber:GK,isBoolean:sye,isObject:P2,isPlainObject:hw,isReadableStream:vye,isRequest:hye,isResponse:gye,isHeaders:bye,isUndefined:o0,isDate:lye,isFile:cye,isBlob:uye,isRegExp:Iye,isFunction:go,isStream:fye,isURLSearchParams:pye,isTypedArray:$ye,isFileList:dye,forEach:v1,merge:FP,extend:wye,trim:yye,stripBOM:xye,inherits:Sye,toFlatObject:Cye,kindOf:$2,kindOfTest:al,endsWith:kye,toArray:_ye,forEachEntry:Eye,matchAll:Pye,isHTMLForm:Tye,hasOwnProperty:pj,hasOwnProp:pj,reduceDescriptors:XK,freezeMethods:Rye,toObjectSet:Mye,toCamelCase:Oye,noop:Nye,toFiniteNumber:Dye,findKey:KK,global:jd,isContextDefined:YK,ALPHABET:QK,generateString:jye,isSpecCompliantForm:Fye,toJSONObject:Aye,isAsyncFn:Lye,isThenable:Bye,setImmediate:JK,asap:zye};function wn(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ft.inherits(wn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ft.toJSONObject(this.config),code:this.code,status:this.status}}});const ZK=wn.prototype,eY={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{eY[e]={value:e}});Object.defineProperties(wn,eY);Object.defineProperty(ZK,"isAxiosError",{value:!0});wn.from=(e,t,n,r,i,a)=>{const o=Object.create(ZK);return ft.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),wn.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Hye=null;function AP(e){return ft.isPlainObject(e)||ft.isArray(e)}function tY(e){return ft.endsWith(e,"[]")?e.slice(0,-2):e}function hj(e,t,n){return e?e.concat(t).map(function(i,a){return i=tY(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Vye(e){return ft.isArray(e)&&!e.some(AP)}const Wye=ft.toFlatObject(ft,{},null,function(t){return/^is[A-Z]/.test(t)});function T2(e,t,n){if(!ft.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ft.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!ft.isUndefined(g[h])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ft.isSpecCompliantForm(t);if(!ft.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(ft.isDate(v))return v.toISOString();if(!l&&ft.isBlob(v))throw new wn("Blob is not supported. Use a Buffer instead.");return ft.isArrayBuffer(v)||ft.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,h,g){let w=v;if(v&&!g&&typeof v=="object"){if(ft.endsWith(h,"{}"))h=r?h:h.slice(0,-2),v=JSON.stringify(v);else if(ft.isArray(v)&&Vye(v)||(ft.isFileList(v)||ft.endsWith(h,"[]"))&&(w=ft.toArray(v)))return h=tY(h),w.forEach(function(y,x){!(ft.isUndefined(y)||y===null)&&t.append(o===!0?hj([h],x,a):o===null?h:h+"[]",u(y))}),!1}return AP(v)?!0:(t.append(hj(g,h,a),u(v)),!1)}const f=[],m=Object.assign(Wye,{defaultVisitor:d,convertValue:u,isVisitable:AP});function p(v,h){if(!ft.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+h.join("."));f.push(v),ft.forEach(v,function(w,b){(!(ft.isUndefined(w)||w===null)&&i.call(t,w,ft.isString(b)?b.trim():b,h,m))===!0&&p(w,h?h.concat(b):[b])}),f.pop()}}if(!ft.isObject(e))throw new TypeError("data must be an object");return p(e),t}function gj(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function kR(e,t){this._pairs=[],e&&T2(e,this,t)}const nY=kR.prototype;nY.append=function(t,n){this._pairs.push([t,n])};nY.toString=function(t){const n=t?function(r){return t.call(this,r,gj)}:gj;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Uye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rY(e,t,n){if(!t)return e;const r=n&&n.encode||Uye;ft.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=ft.isURLSearchParams(t)?t.toString():new kR(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class bj{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ft.forEach(this.handlers,function(r){r!==null&&t(r)})}}const iY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qye=typeof URLSearchParams<"u"?URLSearchParams:kR,Gye=typeof FormData<"u"?FormData:null,Kye=typeof Blob<"u"?Blob:null,Yye={isBrowser:!0,classes:{URLSearchParams:qye,FormData:Gye,Blob:Kye},protocols:["http","https","file","blob","url","data"]},_R=typeof window<"u"&&typeof document<"u",LP=typeof navigator=="object"&&navigator||void 0,Xye=_R&&(!LP||["ReactNative","NativeScript","NS"].indexOf(LP.product)<0),Qye=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jye=_R&&window.location.href||"http://localhost",Zye=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_R,hasStandardBrowserEnv:Xye,hasStandardBrowserWebWorkerEnv:Qye,navigator:LP,origin:Jye},Symbol.toStringTag,{value:"Module"})),ta={...Zye,...Yye};function ewe(e,t){return T2(e,new ta.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return ta.isNode&&ft.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function twe(e){return ft.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nwe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&ft.isArray(i)?i.length:o,l?(ft.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!ft.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&ft.isArray(i[o])&&(i[o]=nwe(i[o])),!s)}if(ft.isFormData(e)&&ft.isFunction(e.entries)){const n={};return ft.forEachEntry(e,(r,i)=>{t(twe(r),i,n,0)}),n}return null}function rwe(e,t,n){if(ft.isString(e))try{return(t||JSON.parse)(e),ft.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const h1={transitional:iY,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ft.isObject(t);if(a&&ft.isHTMLForm(t)&&(t=new FormData(t)),ft.isFormData(t))return i?JSON.stringify(aY(t)):t;if(ft.isArrayBuffer(t)||ft.isBuffer(t)||ft.isStream(t)||ft.isFile(t)||ft.isBlob(t)||ft.isReadableStream(t))return t;if(ft.isArrayBufferView(t))return t.buffer;if(ft.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ewe(t,this.formSerializer).toString();if((s=ft.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return T2(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),rwe(t)):t}],transformResponse:[function(t){const n=this.transitional||h1.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ft.isResponse(t)||ft.isReadableStream(t))return t;if(t&&ft.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?wn.from(s,wn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ta.classes.FormData,Blob:ta.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ft.forEach(["delete","get","head","post","put","patch"],e=>{h1.headers[e]={}});const iwe=ft.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),awe=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&iwe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yj=Symbol("internals");function uh(e){return e&&String(e).trim().toLowerCase()}function gw(e){return e===!1||e==null?e:ft.isArray(e)?e.map(gw):String(e)}function owe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const swe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function z$(e,t,n,r,i){if(ft.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ft.isString(t)){if(ft.isString(r))return t.indexOf(r)!==-1;if(ft.isRegExp(r))return r.test(t)}}function lwe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cwe(e,t){const n=ft.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class La{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,u){const d=uh(l);if(!d)throw new Error("header name must be a non-empty string");const f=ft.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=gw(s))}const o=(s,l)=>ft.forEach(s,(u,d)=>a(u,d,l));if(ft.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ft.isString(t)&&(t=t.trim())&&!swe(t))o(awe(t),n);else if(ft.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=uh(t),t){const r=ft.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return owe(i);if(ft.isFunction(n))return n.call(this,i,r);if(ft.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=uh(t),t){const r=ft.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||z$(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=uh(o),o){const s=ft.findKey(r,o);s&&(!n||z$(r,r[s],s,n))&&(delete r[s],i=!0)}}return ft.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||z$(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ft.forEach(this,(i,a)=>{const o=ft.findKey(r,a);if(o){n[o]=gw(i),delete n[a];return}const s=t?lwe(a):String(a).trim();s!==a&&delete n[a],n[s]=gw(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ft.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ft.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[yj]=this[yj]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=uh(o);r[s]||(cwe(i,o),r[s]=!0)}return ft.isArray(t)?t.forEach(a):a(t),this}}La.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ft.reduceDescriptors(La.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ft.freezeMethods(La);function H$(e,t){const n=this||h1,r=t||n,i=La.from(r.headers);let a=r.data;return ft.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function oY(e){return!!(e&&e.__CANCEL__)}function pv(e,t,n){wn.call(this,e??"canceled",wn.ERR_CANCELED,t,n),this.name="CanceledError"}ft.inherits(pv,wn,{__CANCEL__:!0});function sY(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new wn("Request failed with status code "+n.status,[wn.ERR_BAD_REQUEST,wn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function uwe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dwe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[a];o||(o=u),n[i]=l,r[i]=u;let f=a,m=0;for(;f!==i;)m+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o{n=d,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?o(u,d):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},r-f)))},()=>i&&o(i)]}const Ux=(e,t,n=3)=>{let r=0;const i=dwe(50,250);return fwe(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,u=i(l),d=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&d?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},wj=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xj=e=>(...t)=>ft.asap(()=>e(...t)),mwe=ta.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ta.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ta.origin),ta.navigator&&/(msie|trident)/i.test(ta.navigator.userAgent)):()=>!0,pwe=ta.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];ft.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ft.isString(r)&&o.push("path="+r),ft.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vwe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hwe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function lY(e,t){return e&&!vwe(t)?hwe(e,t):t}const Sj=e=>e instanceof La?{...e}:e;function gf(e,t){t=t||{};const n={};function r(u,d,f,m){return ft.isPlainObject(u)&&ft.isPlainObject(d)?ft.merge.call({caseless:m},u,d):ft.isPlainObject(d)?ft.merge({},d):ft.isArray(d)?d.slice():d}function i(u,d,f,m){if(ft.isUndefined(d)){if(!ft.isUndefined(u))return r(void 0,u,f,m)}else return r(u,d,f,m)}function a(u,d){if(!ft.isUndefined(d))return r(void 0,d)}function o(u,d){if(ft.isUndefined(d)){if(!ft.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,d,f)=>i(Sj(u),Sj(d),f,!0)};return ft.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||i,m=f(e[d],t[d],d);ft.isUndefined(m)&&f!==s||(n[d]=m)}),n}const cY=e=>{const t=gf({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=La.from(o),t.url=rY(lY(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(ft.isFormData(n)){if(ta.hasStandardBrowserEnv||ta.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...d].join("; "))}}if(ta.hasStandardBrowserEnv&&(r&&ft.isFunction(r)&&(r=r(t)),r||r!==!1&&mwe(t.url))){const u=i&&a&&pwe.read(a);u&&o.set(i,u)}return t},gwe=typeof XMLHttpRequest<"u",bwe=gwe&&function(e){return new Promise(function(n,r){const i=cY(e);let a=i.data;const o=La.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,d,f,m,p,v;function h(){p&&p(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function w(){if(!g)return;const y=La.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:e,request:g};sY(function(k){n(k),h()},function(k){r(k),h()},C),g=null}"onloadend"in g?g.onloadend=w:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(w)},g.onabort=function(){g&&(r(new wn("Request aborted",wn.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new wn("Network Error",wn.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||iY;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new wn(x,C.clarifyTimeoutError?wn.ETIMEDOUT:wn.ECONNABORTED,e,g)),g=null},a===void 0&&o.setContentType(null),"setRequestHeader"in g&&ft.forEach(o.toJSON(),function(x,C){g.setRequestHeader(C,x)}),ft.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),u&&([m,v]=Ux(u,!0),g.addEventListener("progress",m)),l&&g.upload&&([f,p]=Ux(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(d=y=>{g&&(r(!y||y.type?new pv(null,e,g):y),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const b=uwe(i.url);if(b&&ta.protocols.indexOf(b)===-1){r(new wn("Unsupported protocol "+b+":",wn.ERR_BAD_REQUEST,e));return}g.send(a||null)})},ywe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof wn?d:new pv(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,a(new wn(`timeout ${t} of ms exceeded`,wn.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>ft.asap(s),l}},wwe=function*(e,t){let n=e.byteLength;if(n{const i=xwe(e,t);let a=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await i.next();if(u){s(),l.close();return}let f=d.byteLength;if(n){let m=a+=f;n(m)}l.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},O2=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",uY=O2&&typeof ReadableStream=="function",Cwe=O2&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),dY=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kwe=uY&&dY(()=>{let e=!1;const t=new Request(ta.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),kj=64*1024,BP=uY&&dY(()=>ft.isReadableStream(new Response("").body)),qx={stream:BP&&(e=>e.body)};O2&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!qx[t]&&(qx[t]=ft.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new wn(`Response type '${t}' is not supported`,wn.ERR_NOT_SUPPORT,r)})})})(new Response);const _we=async e=>{if(e==null)return 0;if(ft.isBlob(e))return e.size;if(ft.isSpecCompliantForm(e))return(await new Request(ta.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ft.isArrayBufferView(e)||ft.isArrayBuffer(e))return e.byteLength;if(ft.isURLSearchParams(e)&&(e=e+""),ft.isString(e))return(await Cwe(e)).byteLength},$we=async(e,t)=>{const n=ft.toFiniteNumber(e.getContentLength());return n??_we(t)},Ewe=O2&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:m}=cY(e);u=u?(u+"").toLowerCase():"text";let p=ywe([i,a&&a.toAbortSignal()],o),v;const h=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&kwe&&n!=="get"&&n!=="head"&&(g=await $we(d,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(ft.isFormData(r)&&(S=C.headers.get("content-type"))&&d.setContentType(S),C.body){const[k,_]=wj(g,Ux(xj(l)));r=Cj(C.body,kj,k,_)}}ft.isString(f)||(f=f?"include":"omit");const w="credentials"in Request.prototype;v=new Request(t,{...m,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?f:void 0});let b=await fetch(v);const y=BP&&(u==="stream"||u==="response");if(BP&&(s||y&&h)){const C={};["status","statusText","headers"].forEach($=>{C[$]=b[$]});const S=ft.toFiniteNumber(b.headers.get("content-length")),[k,_]=s&&wj(S,Ux(xj(s),!0))||[];b=new Response(Cj(b.body,kj,k,()=>{_&&_(),h&&h()}),C)}u=u||"text";let x=await qx[ft.findKey(qx,u)||"text"](b,e);return!y&&h&&h(),await new Promise((C,S)=>{sY(C,S,{data:x,headers:La.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(w){throw h&&h(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new wn("Network Error",wn.ERR_NETWORK,e,v),{cause:w.cause||w}):wn.from(w,w&&w.code,e,v)}}),zP={http:Hye,xhr:bwe,fetch:Ewe};ft.forEach(zP,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _j=e=>`- ${e}`,Pwe=e=>ft.isFunction(e)||e===null||e===!1,fY={getAdapter:e=>{e=ft.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : +`+a.map(_j).join(` +`):" "+_j(a[0]):"as no adapter specified";throw new wn("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:zP};function V$(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pv(null,e)}function $j(e){return V$(e),e.headers=La.from(e.headers),e.data=H$.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fY.getAdapter(e.adapter||h1.adapter)(e).then(function(r){return V$(e),r.data=H$.call(e,e.transformResponse,r),r.headers=La.from(r.headers),r},function(r){return oY(r)||(V$(e),r&&r.response&&(r.response.data=H$.call(e,e.transformResponse,r.response),r.response.headers=La.from(r.response.headers))),Promise.reject(r)})}const mY="1.7.8",I2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{I2[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ej={};I2.transitional=function(t,n,r){function i(a,o){return"[Axios v"+mY+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new wn(i(o," has been removed"+(n?" in "+n:"")),wn.ERR_DEPRECATED);return n&&!Ej[o]&&(Ej[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};I2.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Twe(e,t,n){if(typeof e!="object")throw new wn("options must be an object",wn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new wn("option "+a+" must be "+l,wn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new wn("Unknown option "+a,wn.ERR_BAD_OPTION)}}const bw={assertOptions:Twe,validators:I2},fl=bw.validators;class Xd{constructor(t){this.defaults=t,this.interceptors={request:new bj,response:new bj}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=gf(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&bw.assertOptions(r,{silentJSONParsing:fl.transitional(fl.boolean),forcedJSONParsing:fl.transitional(fl.boolean),clarifyTimeoutError:fl.transitional(fl.boolean)},!1),i!=null&&(ft.isFunction(i)?n.paramsSerializer={serialize:i}:bw.assertOptions(i,{encode:fl.function,serialize:fl.function},!0)),bw.assertOptions(n,{baseUrl:fl.spelling("baseURL"),withXsrfToken:fl.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&ft.merge(a.common,a[n.method]);a&&ft.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),n.headers=La.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let d,f=0,m;if(!l){const v=[$j.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),m=v.length,d=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new pv(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new $R(function(i){t=i}),cancel:t}}}function Owe(e){return function(n){return e.apply(null,n)}}function Iwe(e){return ft.isObject(e)&&e.isAxiosError===!0}const HP={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HP).forEach(([e,t])=>{HP[t]=e});function pY(e){const t=new Xd(e),n=UK(Xd.prototype.request,t);return ft.extend(n,Xd.prototype,t,{allOwnKeys:!0}),ft.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return pY(gf(e,i))},n}const ei=pY(h1);ei.Axios=Xd;ei.CanceledError=pv;ei.CancelToken=$R;ei.isCancel=oY;ei.VERSION=mY;ei.toFormData=T2;ei.AxiosError=wn;ei.Cancel=ei.CanceledError;ei.all=function(t){return Promise.all(t)};ei.spread=Owe;ei.isAxiosError=Iwe;ei.mergeConfig=gf;ei.AxiosHeaders=La;ei.formToJSON=e=>aY(ft.isHTMLForm(e)?new FormData(e):e);ei.getAdapter=fY.getAdapter;ei.HttpStatusCode=HP;ei.default=ei;const or=ei.create({timeout:2e4,baseURL:R2()});or.interceptors.request.use(e=>e,e=>(console.log("request error",e),e.response.status===403&&Zr.emit(Kd,"403"),e.response.status===401&&Zr.emit(Kd,"401"),Promise.reject(e)));or.interceptors.response.use(e=>e,e=>{if(console.log("response error",e),e.response)switch(e.response.status){case 400:console.log("axios interception error 400"),Zr.emit(Kd,"400");break;case 401:console.log("axios interception error 401"),Zr.emit(Kd,"401");break;case 403:console.log("axios interception error 403"),Zr.emit(Kd,"403");break;case 500:console.log("axios interception error 500"),Zr.emit(Zpe,"500");break}return"return axios interception error"});async function Rwe(){return or("/config/bytedesk/properties",{method:"GET",params:{client:On}})}async function vY(){try{const t=(await ei.get("/chat/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(fg,"true"),localStorage.setItem(lw,t.apiUrl),localStorage.setItem(cw,t.websocketUrl),localStorage.setItem(E$,t.htmlUrl);else if(Qpe===NG){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,i="ws://"+window.location.hostname+":"+n+"/stomp";console.log("apiUrl: ",r," port:",n," websocketUrl:",i),localStorage.setItem(fg,"true"),localStorage.setItem(lw,r),localStorage.setItem(cw,i),localStorage.setItem(E$,r)}else console.log("config disabled"),localStorage.setItem(fg,"false"),localStorage.removeItem(lw),localStorage.removeItem(cw),localStorage.removeItem(E$)}catch(e){console.log("error: ",e)}}function R2(){if(localStorage.getItem(El)==="true"){const n=localStorage.getItem(wc);return n===null?k$:n}if(localStorage.getItem(fg)==="true"){const n=localStorage.getItem(lw);return n===null?k$:n}return k$}function Mwe(){return R2()+"/visitor/api/v1/upload/file"}function Nwe(){if(localStorage.getItem(El)==="true"){const n=localStorage.getItem(xc);return n===null?_$:n}if(localStorage.getItem(fg)==="true"){const n=localStorage.getItem(cw);return n===null?_$:n}return _$}async function hY(){const e=await Rwe();return console.log("getConfigProperties response: ",e.data),e.data.code===200?(localStorage.setItem(qI,JSON.stringify(e.data.data)),e.data.data):null}function Dwe(){var t;const e=localStorage.getItem(qI);return e?(t=JSON.parse(e).custom)==null?void 0:t.enabled:null}function jwe(){var t,n,r,i,a;const e=localStorage.getItem(qI);if(e){const o=JSON.parse(e);if((t=o==null?void 0:o.custom)!=null&&t.enabled&&((n=o==null?void 0:o.custom)!=null&&n.name)&&((i=(r=o==null?void 0:o.custom)==null?void 0:r.name)==null?void 0:i.length)>0)return(a=o==null?void 0:o.custom)==null?void 0:a.name}return null}function Fwe(){const e=localStorage.getItem(Dx);(e===null||e==="true")&&new Audio(Jpe).play()}function yl(){return Lt().format("YYYY-MM-DD HH:mm:ss")}function Qi(){return dbe().replaceAll(/-/g,"")}function Awe(e){window.open(e,"_blank")}function pg(e,t){const n=Lt(new Date).format("YYYYMMDDHHmmss")+"_"+e.name,r=new FormData;r.append("file",e),r.append("file_name",n),r.append("file_type",e.type),r.append("is_avatar","false"),r.append("kb_type",Hve),r.append("visitor_uid",localStorage.getItem(Jm)||""),r.append("nickname",localStorage.getItem(yP)||""),r.append("avatar",localStorage.getItem(Wh)||""),r.append("org_uid",localStorage.getItem(cv)||""),r.append("client",On),console.log("handleUpload formData",r),fetch(Mwe(),{method:"POST",headers:{},body:r}).then(i=>i.json()).then(i=>{console.log("upload data:",i),t(i)})}function Pj(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function Lwe(e){if(Sm===e||Fu===e||Sp===e||SP===e||Qg===e)return!0}function Bwe(e){var t;return(e==null?void 0:e.type)===Pve?"right":(e==null?void 0:e.type)===Tve?"left":(e==null?void 0:e.type)===KI?"center":((t=e==null?void 0:e.user)==null?void 0:t.uid)===localStorage.getItem(Jm)?"right":"left"}function zwe(e){var t;return((t=e==null?void 0:e.user)==null?void 0:t.type)===FG}const W$=e=>(e==null?void 0:e.type)===hve,Hwe=e=>JSON.parse(e).answer,Vwe=e=>{var t,n,r;return((t=e==null?void 0:e.user)==null?void 0:t.uid)===((r=(n=e==null?void 0:e.thread)==null?void 0:n.user)==null?void 0:r.uid)},Wwe=e=>e.type===QI||e.type===LG||e.type===AG||e.type===XI,yw=e=>{console.log("update message status:",e==null?void 0:e.content,e==null?void 0:e.type),_2.getState().updateMessageStatus(e==null?void 0:e.content,e==null?void 0:e.type);const t={uid:e==null?void 0:e.content,type:e==null?void 0:e.type};Zr.emit(wP,JSON.stringify(t))},Uwe=e=>{console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content);const t="消息被撤回";_2.getState().updateMessageContent(e==null?void 0:e.content,t);const n={uid:e==null?void 0:e.content,content:t};Zr.emit(xP,JSON.stringify(n))};function gY(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const VP=()=>{const e=navigator.language.toLowerCase();console.log("AppWrapper getBrowserLanguage browserLang: ",e);const t=["en","zh-cn","zh-tw","ja","ko"];if(e.startsWith("zh"))return e.includes("tw")?"zh-tw":"zh-cn";const n=e.split("-")[0];return t.includes(n)?n:"en"},bY=e=>e&&(e.includes("

        ")||e.includes("

        ")||e.includes("")||e.includes("
          "));function Go(e){return e.endsWith("/")?e.slice(0,-1):e}const M2=f1()(m1(w2(p1((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(LD,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(LD),e({accessToken:""})}})),{name:sve}))),s0=f1()(m1(w2(p1((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:uve})));var yY={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return L.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Wr(r)):wY(r)&&r.props?n=n.concat(Wr(r.props.children,t)):n.push(r))}),n}var WP={},Xwe=function(t){};function Qwe(e,t){}function Jwe(e,t){}function Zwe(){WP={}}function xY(e,t,n){!t&&!WP[n]&&(e(!1,n),WP[n]=!0)}function An(e,t){xY(Qwe,e,t)}function exe(e,t){xY(Jwe,e,t)}An.preMessage=Xwe;An.resetWarned=Zwe;An.noteOnce=exe;function txe(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SY(e){var t=txe(e,"string");return mt(t)=="symbol"?t:t+""}function U(e,t,n){return(t=SY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0},e.prototype.connect_=function(){!qP||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),dxe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!qP||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=uxe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),$Y=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof $p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new wxe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof $p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new xxe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),PY=typeof WeakMap<"u"?new WeakMap:new _Y,TY=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=fxe.getInstance(),r=new Sxe(t,n,this);PY.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){TY.prototype[e]=function(){var t;return(t=PY.get(this))[e].apply(t,arguments)}});var Cxe=function(){return typeof Gx.ResizeObserver<"u"?Gx.ResizeObserver:TY}(),Su=new Map;function kxe(e){e.forEach(function(t){var n,r=t.target;(n=Su.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var OY=new Cxe(kxe);function _xe(e,t){Su.has(e)||(Su.set(e,new Set),OY.observe(e)),Su.get(e).add(t)}function $xe(e,t){Su.has(e)&&(Su.get(e).delete(t),Su.get(e).size||(OY.unobserve(e),Su.delete(e)))}function Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ij(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Rj+=1;var r=Rj;function i(a){if(a===0)DY(r),t();else{var o=MY(function(){i(a-1)});OR.set(r,o)}}return i(n),r};tn.cancel=function(e){var t=OR.get(e);return DY(e),NY(t)};function jY(e){if(Array.isArray(e))return e}function Nxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function FY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(e,t){return jY(e)||Nxe(e,t)||G2(e,t)||FY()}function d0(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function g1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Dxe(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Mj="data-rc-order",Nj="data-rc-priority",jxe="rc-util-key",KP=new Map;function AY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):jxe}function K2(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Fxe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function IR(e){return Array.from((KP.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function LY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!g1())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=Fxe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(Mj,o),s&&a&&l.setAttribute(Nj,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var u=K2(t),d=u.firstChild;if(r){if(s){var f=(t.styles||IR(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Mj)))return!1;var p=Number(m.getAttribute(Nj)||0);return a>=p});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function BY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=K2(t);return(t.styles||IR(n)).find(function(r){return r.getAttribute(AY(t))===e})}function zY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=BY(e,t);if(n){var r=K2(t);r.removeChild(n)}}function Axe(e,t){var n=KP.get(e);if(!n||!Dxe(document,n)){var r=LY("",t),i=r.parentNode;KP.set(e,i),e.removeChild(r)}}function hg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=K2(n),i=IR(r),a=A(A({},n),{},{styles:i});Axe(r,a);var o=BY(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var u;o.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var d=LY(e,a);return d.setAttribute(AY(a),t),d}function Lxe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ut(e,t){if(e==null)return{};var n,r,i=Lxe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Y2(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=ie(u,2),m=f[1];return i.internalGet(d)[1]0,void 0),jj+=1}return Yn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),U$=new RR;function yf(e){var t=Array.isArray(e)?e:[e];return U$.has(t)||U$.set(t,new WY(t)),U$.get(t)}var Xxe=new WeakMap,q$={};function Qxe(e,t){for(var n=Xxe,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=A(A({},i),{},(r={},U(r,Ep,t),U(r,Ls,n),r)),s=Object.keys(o).map(function(l){var u=o[l];return u?"".concat(l,'="').concat(u,'"'):null}).filter(function(l){return l}).join(" ");return"")}var xw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Jxe=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=ie(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},UY=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,u=ie(o,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[d])){var m,p=xw(d,r==null?void 0:r.prefix);i[p]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(p,")")}}),[a,Jxe(i,n,{scope:r==null?void 0:r.scope})]},Lj=g1()?c.useLayoutEffect:c.useEffect,Zxe=function(t,n){var r=c.useRef(!0);Lj(function(){return t(r.current)},n),Lj(function(){return r.current=!1,function(){r.current=!0}},[])},eSe=A({},lf),Bj=eSe.useInsertionEffect,tSe=function(t,n,r){c.useMemo(t,r),Zxe(function(){return n(!0)},r)},nSe=Bj?function(e,t,n){return Bj(function(){return e(),t()},n)}:tSe,rSe=A({},lf),iSe=rSe.useInsertionEffect,aSe=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},oSe=function(){return function(t){t()}},sSe=typeof iSe<"u"?aSe:oSe;function MR(e,t,n,r,i){var a=c.useContext(Pp),o=a.cache,s=[e].concat(Fe(t)),l=XP(s),u=sSe([l]),d=function(v){o.opUpdate(l,function(h){var g=h||[void 0,void 0],w=ie(g,2),b=w[0],y=b===void 0?0:b,x=w[1],C=x,S=C||n(),k=[y,S];return v?v(k):k})};c.useMemo(function(){d()},[l]);var f=o.opGet(l),m=f[1];return nSe(function(){i==null||i(m)},function(p){return d(function(v){var h=ie(v,2),g=h[0],w=h[1];return p&&g===0&&(i==null||i(m)),[g+1,w]}),function(){o.opUpdate(l,function(v){var h=v||[],g=ie(h,2),w=g[0],b=w===void 0?0:w,y=g[1],x=b-1;return x===0?(u(function(){(p||!o.opGet(l))&&(r==null||r(y,!1))}),null):[b-1,y]})}},[l]),m}var lSe={},cSe="css",Cd=new Map;function uSe(e){Cd.set(e,(Cd.get(e)||0)+1)}function dSe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ep,'="').concat(e,'"]'));n.forEach(function(r){if(r[Cu]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var fSe=0;function mSe(e,t){Cd.set(e,(Cd.get(e)||0)-1);var n=Array.from(Cd.keys()),r=n.filter(function(i){var a=Cd.get(i)||0;return a<=0});n.length-r.length>fSe&&r.forEach(function(i){dSe(i,t),Cd.delete(i)})}var qY=function(t,n,r,i){var a=r.getDerivativeToken(t),o=A(A({},a),n);return i&&(o=i(o)),o},GY="token";function NR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(Pp),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,u=l===void 0?lSe:l,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,p=Qxe(function(){return Object.assign.apply(Object,[{}].concat(Fe(t)))},t),v=gg(p),h=gg(u),g=m?gg(m):"",w=MR(GY,[s,e.id,v,h,g],function(){var b,y=f?f(p,u,e):qY(p,u,e,d),x=A({},y),C="";if(m){var S=UY(y,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),k=ie(S,2);y=k[0],C=k[1]}var _=Aj(y,s);y._tokenKey=_,x._tokenKey=Aj(x,s);var $=(b=m==null?void 0:m.key)!==null&&b!==void 0?b:_;y._themeKey=$,uSe($);var E="".concat(cSe,"-").concat(d0(_));return y._hashId=E,[y,E,x,C,(m==null?void 0:m.key)||""]},function(b){mSe(b[0]._themeKey,i)},function(b){var y=ie(b,4),x=y[0],C=y[3];if(m&&C){var S=hg(C,d0("css-variables-".concat(x._themeKey)),{mark:Ls,prepend:"queue",attachTo:a,priority:-999});S[Cu]=i,S.setAttribute(Ep,x._themeKey)}});return w}var pSe=function(t,n,r){var i=ie(t,5),a=i[2],o=i[3],s=i[4],l=r||{},u=l.plain;if(!o)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=Xx(o,s,d,m,u);return[f,d,p]},vSe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},KY="comm",YY="rule",XY="decl",hSe="@import",gSe="@keyframes",bSe="@layer",QY=Math.abs,DR=String.fromCharCode;function JY(e){return e.trim()}function Sw(e,t,n){return e.replace(t,n)}function ySe(e,t,n){return e.indexOf(t,n)}function f0(e,t){return e.charCodeAt(t)|0}function Tp(e,t,n){return e.slice(t,n)}function bl(e){return e.length}function wSe(e){return e.length}function Hb(e,t){return t.push(e),e}var X2=1,Op=1,ZY=0,ns=0,ui=0,vv="";function jR(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:X2,column:Op,length:o,return:"",siblings:s}}function xSe(){return ui}function SSe(){return ui=ns>0?f0(vv,--ns):0,Op--,ui===10&&(Op=1,X2--),ui}function Bs(){return ui=ns2||m0(ui)>3?"":" "}function $Se(e,t){for(;--t&&Bs()&&!(ui<48||ui>102||ui>57&&ui<65||ui>70&&ui<97););return Q2(e,Cw()+(t<6&&ku()==32&&Bs()==32))}function JP(e){for(;Bs();)switch(ui){case e:return ns;case 34:case 39:e!==34&&e!==39&&JP(ui);break;case 40:e===41&&JP(e);break;case 92:Bs();break}return ns}function ESe(e,t){for(;Bs()&&e+ui!==57;)if(e+ui===84&&ku()===47)break;return"/*"+Q2(t,ns-1)+"*"+DR(e===47?e:Bs())}function PSe(e){for(;!m0(ku());)Bs();return Q2(e,ns)}function TSe(e){return kSe(kw("",null,null,null,[""],e=CSe(e),0,[0],e))}function kw(e,t,n,r,i,a,o,s,l){for(var u=0,d=0,f=o,m=0,p=0,v=0,h=1,g=1,w=1,b=0,y="",x=i,C=a,S=r,k=y;g;)switch(v=b,b=Bs()){case 40:if(v!=108&&f0(k,f-1)==58){ySe(k+=Sw(G$(b),"&","&\f"),"&\f",QY(u?s[u-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:k+=G$(b);break;case 9:case 10:case 13:case 32:k+=_Se(v);break;case 92:k+=$Se(Cw()-1,7);continue;case 47:switch(ku()){case 42:case 47:Hb(OSe(ESe(Bs(),Cw()),t,n,l),l),(m0(v||1)==5||m0(ku()||1)==5)&&bl(k)&&Tp(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*h:s[u++]=bl(k)*w;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:w==-1&&(k=Sw(k,/\f/g,"")),p>0&&(bl(k)-f||h===0&&v===47)&&Hb(p>32?Hj(k+";",r,n,f-1,l):Hj(Sw(k," ","")+";",r,n,f-2,l),l);break;case 59:k+=";";default:if(Hb(S=zj(k,t,n,u,d,i,s,y,x=[],C=[],f,a),a),b===123)if(d===0)kw(k,t,S,S,x,a,f,s,C);else switch(m===99&&f0(k,3)===110?100:m){case 100:case 108:case 109:case 115:kw(e,S,S,r&&Hb(zj(e,S,S,0,0,i,s,y,i,x=[],f,C),C),i,C,f,s,r?x:C);break;default:kw(k,S,S,S,[""],C,0,s,C)}}u=d=p=0,h=w=1,y=k="",f=o;break;case 58:f=1+bl(k),p=v;default:if(h<1){if(b==123)--h;else if(b==125&&h++==0&&SSe()==125)continue}switch(k+=DR(b),b*h){case 38:w=d>0?1:(k+="\f",-1);break;case 44:s[u++]=(bl(k)-1)*w,w=1;break;case 64:ku()===45&&(k+=G$(Bs())),m=ku(),d=f=bl(y=k+=PSe(Cw())),b++;break;case 45:v===45&&bl(k)==2&&(h=0)}}return a}function zj(e,t,n,r,i,a,o,s,l,u,d,f){for(var m=i-1,p=i===0?a:[""],v=wSe(p),h=0,g=0,w=0;h0?p[b]+" "+y:Sw(y,/&\f/g,p[b])))&&(l[w++]=x);return jR(e,t,n,i===0?YY:s,l,u,d,f)}function OSe(e,t,n,r){return jR(e,t,n,KY,DR(xSe()),Tp(e,2,-2),0,r)}function Hj(e,t,n,r,i){return jR(e,t,n,XY,Tp(e,0,r),Tp(e,r+1,-1),r,i)}function ZP(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",p={};function v(w){var b=w.getName(s);if(!p[b]){var y=e(w.style,n,{root:!1,parentSelectors:o}),x=ie(y,1),C=x[0];p[b]="@keyframes ".concat(w.getName(s)).concat(C)}}function h(w){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(y){Array.isArray(y)?h(y,b):y&&b.push(y)}),b}var g=h(Array.isArray(t)?t:[t]);return g.forEach(function(w){var b=typeof w=="string"&&!i?{}:w;if(typeof b=="string")m+="".concat(b,` +`);else if(b._keyframe)v(b);else{var y=f.reduce(function(x,C){var S;return(C==null||(S=C.visit)===null||S===void 0?void 0:S.call(C,x))||x},b);Object.keys(y).forEach(function(x){var C=y[x];if(mt(C)==="object"&&C&&(x!=="animationName"||!C._keyframe)&&!jSe(C)){var S=!1,k=x.trim(),_=!1;(i||a)&&s?k.startsWith("@")?S=!0:k==="&"?k=Wj("",s,u):k=Wj(x,s,u):i&&!s&&(k==="&"||k==="")&&(k="",_=!0);var $=e(C,n,{root:_,injectHash:S,parentSelectors:[].concat(Fe(o),[k])}),E=ie($,2),T=E[0],M=E[1];p=A(A({},p),M),m+="".concat(k).concat(T)}else{let N=function(O,D){var F=O.replace(/[A-Z]/g,function(R){return"-".concat(R.toLowerCase())}),z=D;!vSe[O]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),O==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(v(D),z=D.getName(s)),m+="".concat(F,":").concat(z,";")};var j,I=(j=C==null?void 0:C.value)!==null&&j!==void 0?j:C;mt(C)==="object"&&C!==null&&C!==void 0&&C[nX]&&Array.isArray(I)?I.forEach(function(O){N(x,O)}):N(x,I)}})}}),i?l&&(m="@layer ".concat(l.name," {").concat(m,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(w){return"@layer ".concat(w,", ").concat(l.name,";")}).join(` +`))):m="{".concat(m,"}"),[m,p]};function rX(e,t){return d0("".concat(e.join("%")).concat(t))}function ASe(){return null}var iX="style";function Qx(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,d=c.useContext(Pp),f=d.autoClear;d.mock;var m=d.defaultCache,p=d.hashPriority,v=d.container,h=d.ssrInline,g=d.transformers,w=d.linters,b=d.cache,y=d.layer,x=n._tokenKey,C=[x];y&&C.push("layer"),C.push.apply(C,Fe(r));var S=QP,k=MR(iX,C,function(){var M=C.join("|");if(MSe(M)){var j=NSe(M),I=ie(j,2),N=I[0],O=I[1];if(N)return[N,x,O,{},s,u]}var D=t(),F=FSe(D,{hashId:i,hashPriority:p,layer:y?a:void 0,path:r.join("-"),transformers:g,linters:w}),z=ie(F,2),R=z[0],H=z[1],V=_w(R),B=rX(C,V);return[V,x,B,H,s,u]},function(M,j){var I=ie(M,3),N=I[2];(j||f)&&QP&&zY(N,{mark:Ls})},function(M){var j=ie(M,4),I=j[0];j[1];var N=j[2],O=j[3];if(S&&I!==eX){var D={mark:Ls,prepend:y?!1:"queue",attachTo:v,priority:u},F=typeof o=="function"?o():o;F&&(D.csp={nonce:F});var z=[],R=[];Object.keys(O).forEach(function(V){V.startsWith("@layer")?z.push(V):R.push(V)}),z.forEach(function(V){hg(_w(O[V]),"_layer-".concat(V),A(A({},D),{},{prepend:!0}))});var H=hg(I,N,D);H[Cu]=b.instanceId,H.setAttribute(Ep,x),R.forEach(function(V){hg(_w(O[V]),"_effect-".concat(V),D)})}}),_=ie(k,3),$=_[0],E=_[1],T=_[2];return function(M){var j;if(!h||S||!m)j=c.createElement(ASe,null);else{var I;j=c.createElement("style",Ee({},(I={},U(I,Ep,E),U(I,Ls,T),I),{dangerouslySetInnerHTML:{__html:$}}))}return c.createElement(c.Fragment,null,j,M)}}var LSe=function(t,n,r){var i=ie(t,6),a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],d=i[5],f=r||{},m=f.plain;if(u)return null;var p=a,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return p=Xx(a,o,s,v,m),l&&Object.keys(l).forEach(function(h){if(!n[h]){n[h]=!0;var g=_w(l[h]),w=Xx(g,o,"_effect-".concat(h),v,m);h.startsWith("@layer")?p=w+p:p+=w}}),[d,s,p]},aX="cssVar",BSe=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=c.useContext(Pp),f=d.cache.instanceId,m=d.container,p=s._tokenKey,v=[].concat(Fe(t.path),[r,u,p]),h=MR(aX,v,function(){var g=n(),w=UY(g,r,{prefix:i,unitless:a,ignore:o,scope:u}),b=ie(w,2),y=b[0],x=b[1],C=rX(v,x);return[y,x,C,r]},function(g){var w=ie(g,3),b=w[2];QP&&zY(b,{mark:Ls})},function(g){var w=ie(g,3),b=w[1],y=w[2];if(b){var x=hg(b,y,{mark:Ls,prepend:"queue",attachTo:m,priority:-999});x[Cu]=f,x.setAttribute(Ep,r)}});return h},zSe=function(t,n,r){var i=ie(t,4),a=i[1],o=i[2],s=i[3],l=r||{},u=l.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Xx(a,s,o,f,u);return[d,o,m]},dh;dh={},U(dh,iX,LSe),U(dh,GY,pSe),U(dh,aX,zSe);var on=function(){function e(t,n){Kn(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n}return Yn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function am(e){return e.notSplit=!0,e}am(["borderTop","borderBottom"]),am(["borderTop"]),am(["borderBottom"]),am(["borderLeft","borderRight"]),am(["borderLeft"]),am(["borderRight"]);var FR=c.createContext({});function AR(e){return jY(e)||RY(e)||G2(e)||FY()}function Ti(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ti(e,t.slice(0,-1))?e:oX(e,t,n,r)}function HSe(e){return mt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Uj(e){return Array.isArray(e)?[]:{}}var VSe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Am(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=WSe,e},sX=c.createContext(void 0);var lX={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},cX={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},qSe=A(A({},cX),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const uX={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Jx={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},qSe),timePickerLocale:Object.assign({},uX)},Xa="${label} is not a valid ${type}",rs={locale:"en",Pagination:lX,DatePicker:Jx,TimePicker:uX,Calendar:Jx,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Xa,method:Xa,array:Xa,object:Xa,number:Xa,date:Xa,boolean:Xa,integer:Xa,float:Xa,regexp:Xa,email:Xa,url:Xa,hex:Xa},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let $w=Object.assign({},rs.Modal),Ew=[];const qj=()=>Ew.reduce((e,t)=>Object.assign(Object.assign({},e),t),rs.Modal);function GSe(e){if(e){const t=Object.assign({},e);return Ew.push(t),$w=qj(),()=>{Ew=Ew.filter(n=>n!==t),$w=qj()}}$w=Object.assign({},rs.Modal)}function dX(){return $w}const LR=c.createContext(void 0),la=(e,t)=>{const n=c.useContext(LR),r=c.useMemo(()=>{var a;const o=t||rs[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=c.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?rs.locale:a},[n]);return[r,i]},KSe="internalMark",YSe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>GSe(t==null?void 0:t.Modal),[t]);const i=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(LR.Provider,{value:i},n)},$i=Math.round;function K$(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Gj=(e,t,n)=>n===0?e:e/100;function fh(e,t){const n=t||255;return e>n?n:e<0?0:e}class rn{constructor(t){U(this,"isValid",!0),U(this,"r",0),U(this,"g",0),U(this,"b",0),U(this,"a",1),U(this,"_h",void 0),U(this,"_s",void 0),U(this,"_l",void 0),U(this,"_v",void 0),U(this,"_max",void 0),U(this,"_min",void 0),U(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let a=function(o){return i.startsWith(o)};var r=a;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):a("rgb")?this.fromRgbString(i):a("hsl")?this.fromHslString(i):(a("hsv")||a("hsb"))&&this.fromHsvString(i)}else if(t instanceof rn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=fh(t.r),this.g=fh(t.g),this.b=fh(t.b),this.a=typeof t.a=="number"?fh(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=$i(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=s=>(r[s]-this[s])*i+this[s],o={r:$i(a("r")),g:$i(a("g")),b:$i(a("b")),a:$i(a("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>$i((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=$i(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=$i(this.getSaturation()*100),r=$i(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=fh(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const m=$i(r*255);this.r=m,this.g=m,this.b=m}let a=0,o=0,s=0;const l=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(l%2-1));l>=0&&l<1?(a=u,o=d):l>=1&&l<2?(a=d,o=u):l>=2&&l<3?(o=u,s=d):l>=3&&l<4?(o=d,s=u):l>=4&&l<5?(a=d,s=u):l>=5&&l<6&&(a=u,s=d);const f=r-u/2;this.r=$i((a+f)*255),this.g=$i((o+f)*255),this.b=$i((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=$i(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,u=$i(r*(1-n)*255),d=$i(r*(1-n*l)*255),f=$i(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=K$(t,Gj);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=K$(t,Gj);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=K$(t,(r,i)=>i.includes("%")?$i(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Vb=2,Kj=.16,XSe=.05,QSe=.05,JSe=.15,fX=5,mX=4,ZSe=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Yj(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Vb*t:Math.round(e.h)+Vb*t:r=n?Math.round(e.h)+Vb*t:Math.round(e.h)-Vb*t,r<0?r+=360:r>=360&&(r-=360),r}function Xj(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Kj*t:t===mX?r=e.s+Kj:r=e.s+XSe*t,r>1&&(r=1),n&&t===fX&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Qj(e,t,n){var r;return n?r=e.v+QSe*t:r=e.v-JSe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function wf(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new rn(e),i=r.toHsv(),a=fX;a>0;a-=1){var o=new rn({h:Yj(i,a,!0),s:Xj(i,a,!0),v:Qj(i,a,!0)});n.push(o)}n.push(r);for(var s=1;s<=mX;s+=1){var l=new rn({h:Yj(i,s),s:Xj(i,s),v:Qj(i,s)});n.push(l)}return t.theme==="dark"?ZSe.map(function(u){var d=u.index,f=u.amount;return new rn(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var np={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},eT=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];eT.primary=eT[5];var tT=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];tT.primary=tT[5];var nT=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];nT.primary=nT[5];var Zx=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Zx.primary=Zx[5];var rT=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];rT.primary=rT[5];var iT=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];iT.primary=iT[5];var aT=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];aT.primary=aT[5];var oT=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];oT.primary=oT[5];var Ip=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ip.primary=Ip[5];var sT=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];sT.primary=sT[5];var lT=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];lT.primary=lT[5];var cT=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];cT.primary=cT[5];var uT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];uT.primary=uT[5];var Y$={red:eT,volcano:tT,orange:nT,gold:Zx,yellow:rT,lime:iT,green:aT,cyan:oT,blue:Ip,geekblue:sT,purple:lT,magenta:cT,grey:uT};const BR={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Rp=Object.assign(Object.assign({},BR),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function pX(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:d}=e,f=n(l),m=n(i),p=n(a),v=n(o),h=n(s),g=r(u,d),w=e.colorLink||e.colorInfo,b=n(w),y=new rn(v[1]).mix(new rn(v[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:y,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new rn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const eCe=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function tCe(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},eCe(r))}const vX=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Pw(e){return(e+8)/e}function nCe(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Pw(n)}))}const hX=e=>{const t=nCe(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],u=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(u*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function rCe(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const No=(e,t)=>new rn(e).setA(t).toRgbString(),mh=(e,t)=>new rn(e).darken(t).toHexString(),iCe=e=>{const t=wf(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},aCe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:No(r,.88),colorTextSecondary:No(r,.65),colorTextTertiary:No(r,.45),colorTextQuaternary:No(r,.25),colorFill:No(r,.15),colorFillSecondary:No(r,.06),colorFillTertiary:No(r,.04),colorFillQuaternary:No(r,.02),colorBgSolid:No(r,1),colorBgSolidHover:No(r,.75),colorBgSolidActive:No(r,.95),colorBgLayout:mh(n,4),colorBgContainer:mh(n,0),colorBgElevated:mh(n,0),colorBgSpotlight:No(r,.85),colorBgBlur:"transparent",colorBorder:mh(n,15),colorBorderSecondary:mh(n,6)}};function b1(e){np.pink=np.magenta,Y$.pink=Y$.magenta;const t=Object.keys(BR).map(n=>{const r=e[n]===np[n]?Y$[n]:wf(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),pX(e,{generateColorPalettes:iCe,generateNeutralColorPalettes:aCe})),hX(e.fontSize)),rCe(e)),vX(e)),tCe(e))}const gX=yf(b1),p0={token:Rp,override:{override:Rp},hashed:!0},zR=L.createContext(p0),v0="ant",J2="anticon",oCe=["outlined","borderless","filled"],sCe=(e,t)=>t||(e?`${v0}-${e}`:v0),xt=c.createContext({getPrefixCls:sCe,iconPrefixCls:J2});function ya(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function dT(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Jj="data-rc-order",Zj="data-rc-priority",lCe="rc-util-key",fT=new Map;function bX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):lCe}function Z2(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function cCe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function HR(e){return Array.from((fT.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function yX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ya())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=cCe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(Jj,o),s&&a&&l.setAttribute(Zj,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var u=Z2(t),d=u.firstChild;if(r){if(s){var f=(t.styles||HR(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Jj)))return!1;var p=Number(m.getAttribute(Zj)||0);return a>=p});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function wX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Z2(t);return(t.styles||HR(n)).find(function(r){return r.getAttribute(bX(t))===e})}function mT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wX(e,t);if(n){var r=Z2(t);r.removeChild(n)}}function uCe(e,t){var n=fT.get(e);if(!n||!dT(document,n)){var r=yX("",t),i=r.parentNode;fT.set(e,i),e.removeChild(r)}}function ek(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Z2(n),i=HR(r),a=A(A({},n),{},{styles:i});uCe(r,a);var o=wX(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var u;o.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var d=yX(e,a);return d.setAttribute(bX(a),t),d}const dCe=`-ant-${Date.now()}-${Math.random()}`;function fCe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new rn(o),u=wf(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new rn(t.primaryColor),s=wf(o.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(o,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(o,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(o,u=>u.setA(u.a*.12));const l=new rn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,u=>u.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(` +`)} + } + `.trim()}function mCe(e,t){const n=fCe(e,t);ya()&&ek(n,`${dCe}-dynamic-theme`)}const Ur=c.createContext(!1),VR=e=>{let{children:t,disabled:n}=e;const r=c.useContext(Ur);return c.createElement(Ur.Provider,{value:n??r},t)},xf=c.createContext(void 0),pCe=e=>{let{children:t,size:n}=e;const r=c.useContext(xf);return c.createElement(xf.Provider,{value:n||r},t)};function vCe(){const e=c.useContext(Ur),t=c.useContext(xf);return{componentDisabled:e,componentSize:t}}function is(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(An(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var d=0;d1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>CCe&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),aF=new kCe;function _Ce(e,t){return L.useMemo(function(){var n=aF.get(t);if(n)return n;var r=e();return aF.set(t,r),r},t)}var $Ce=function(){return{}};function kX(e){var t=e.useCSP,n=t===void 0?$Ce:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(m,p,v,h){var g=Array.isArray(m)?m[0]:m;function w(_){return"".concat(String(g)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var b=(h==null?void 0:h.unitless)||{},y=typeof s=="function"?s(m):{},x=A(A({},y),{},U({},w("zIndexPopup"),!0));Object.keys(b).forEach(function(_){x[w(_)]=b[_]});var C=A(A({},h),{},{unitless:x,prefixToken:w}),S=d(m,p,v,C),k=u(g,v,C);return function(_){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,E=S(_,$),T=ie(E,2),M=T[1],j=k($),I=ie(j,2),N=I[0],O=I[1];return[N,M,O]}}function u(m,p,v){var h=v.unitless,g=v.injectStyle,w=g===void 0?!0:g,b=v.prefixToken,y=v.ignore,x=function(k){var _=k.rootCls,$=k.cssVar,E=$===void 0?{}:$,T=r(),M=T.realToken;return BSe({path:[m],prefix:E.prefix,key:E.key,unitless:h,ignore:y,token:M,scope:_},function(){var j=iF(m,M,p),I=nF(m,M,j,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(j).forEach(function(N){I[b(N)]=I[N],delete I[N]}),I}),null},C=function(k){var _=r(),$=_.cssVar;return[function(E){return w&&$?L.createElement(L.Fragment,null,L.createElement(x,{rootCls:k,cssVar:$,component:m}),E):E},$==null?void 0:$.key]};return C}function d(m,p,v){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(m)?m:[m,m],w=ie(g,1),b=w[0],y=g.join("-"),x=e.layer||{name:"antd"};return function(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,k=r(),_=k.theme,$=k.realToken,E=k.hashId,T=k.token,M=k.cssVar,j=i(),I=j.rootPrefixCls,N=j.iconPrefixCls,O=n(),D=M?"css":"js",F=_Ce(function(){var W=new Set;return M&&Object.keys(h.unitless||{}).forEach(function(q){W.add(xw(q,M.prefix)),W.add(xw(q,eF(b,M.prefix)))}),yCe(D,W)},[D,b,M==null?void 0:M.prefix]),z=SCe(D),R=z.max,H=z.min,V={theme:_,token:T,hashId:E,nonce:function(){return O.nonce},clientOnly:h.clientOnly,layer:x,order:h.order||-999};typeof a=="function"&&Qx(A(A({},V),{},{clientOnly:!1,path:["Shared",I]}),function(){return a(T,{prefix:{rootPrefixCls:I,iconPrefixCls:N},csp:O})});var B=Qx(A(A({},V),{},{path:[y,C,N]}),function(){if(h.injectStyle===!1)return[];var W=xCe(T),q=W.token,Q=W.flush,G=iF(b,$,v),X=".".concat(C),re=nF(b,$,G,{deprecatedTokens:h.deprecatedTokens});M&&G&&mt(G)==="object"&&Object.keys(G).forEach(function(J){G[J]="var(".concat(xw(J,eF(b,M.prefix)),")")});var K=Kt(q,{componentCls:X,prefixCls:C,iconCls:".".concat(N),antCls:".".concat(I),calc:F,max:R,min:H},M?G:re),Y=p(K,{hashId:E,prefixCls:C,rootPrefixCls:I,iconPrefixCls:N});Q(b,re);var Z=typeof o=="function"?o(K,C,S,h.resetFont):null;return[h.resetStyle===!1?null:Z,Y]});return[B,E]}}function f(m,p,v){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(m,p,v,A({resetStyle:!1,order:-998},h)),w=function(y){var x=y.prefixCls,C=y.rootCls,S=C===void 0?x:C;return g(x,S),null};return w}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const Cf=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],h0="5.23.2";function J$(e){return e>=0&&e<=255}function Wb(e,t){const{r:n,g:r,b:i,a}=new rn(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new rn(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-o*(1-u))/u),f=Math.round((r-s*(1-u))/u),m=Math.round((i-l*(1-u))/u);if(J$(d)&&J$(f)&&J$(m))return new rn({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new rn({r:n,g:r,b:i,a:1}).toRgbString()}var ECe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[m]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,u=1200,d=1600;if(i.motion===!1){const m="0s";i.motionDurationFast=m,i.motionDurationMid=m,i.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Wb(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Wb(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Wb(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Wb(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new rn("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new rn("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new rn("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var oF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=oF(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=tk(o),a&&Object.entries(a).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=oF(u,["theme"]);let m=f;d&&(m=$X(Object.assign(Object.assign({},o),f),{override:f},d)),o[l]=m}),o};function Gr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=L.useContext(zR),a=`${h0}-${t||""}`,o=n||gX,[s,l,u]=NR(o,[Rp,e],{salt:a,override:r,getComputedToken:$X,formatToken:tk,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:WR,ignore:_X,preserve:PCe}});return[o,u,t?l:"",s,i]}const Ha={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},mn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},jf=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Ks=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),TCe=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),OCe=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},Ys=(e,t)=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Va=(e,t)=>({"&:focus-visible":Object.assign({},Ys(e,t))}),EX=e=>({[`.${e}`]:Object.assign(Object.assign({},jf()),{[`.${e} .${e}-icon`]:{display:"block"}})}),UR=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Va(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:sn,genComponentStyleHook:PX,genSubStyleComponent:Ff}=kX({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(xt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Gr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=c.useContext(xt);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":TCe(e)},EX((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:J2)]},getCommonStyle:OCe,getCompUnitless:()=>WR});function nk(e,t){return Cf.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const ICe=(e,t)=>{const[n,r]=Gr();return Qx({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[EX(e)])},RCe=Object.assign({},lf),{useId:sF}=RCe,MCe=()=>"",NCe=typeof sF>"u"?MCe:sF;function DCe(e,t,n){var r;Xl();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},p0),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:p0.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=NCe();return Nc(()=>{var s,l;if(!e)return t;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${o.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||d});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:u,cssVar:f})},[i,a],(s,l)=>s.some((u,d)=>{const f=l[d];return!is(u,f,!0)}))}var jCe=["children"],TX=c.createContext({});function FCe(e){var t=e.children,n=ut(e,jCe);return c.createElement(TX.Provider,{value:n},t)}var ACe=function(e){Io(n,e);var t=ps(n);function n(){return Kn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function LCe(e){var t=c.useReducer(function(s){return s+1},0),n=ie(t,2),r=n[1],i=c.useRef(e),a=Vt(function(){return i.current}),o=Vt(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var au="none",Ub="appear",qb="enter",Gb="leave",lF="none",Es="prepare",Lm="start",Bm="active",qR="end",OX="prepared";function cF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function BCe(e,t){var n={animationend:cF("Animation","AnimationEnd"),transitionend:cF("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var zCe=BCe(ya(),typeof window<"u"?window:{}),IX={};if(ya()){var HCe=document.createElement("div");IX=HCe.style}var Kb={};function RX(e){if(Kb[e])return Kb[e];var t=zCe[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var a=tn(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var UCe=[Es,Lm,Bm,qR],qCe=[Es,OX],FX=!1,GCe=!0;function AX(e){return e===Bm||e===qR}const KCe=function(e,t,n){var r=Sf(lF),i=ie(r,2),a=i[0],o=i[1],s=WCe(),l=ie(s,2),u=l[0],d=l[1];function f(){o(Es,!0)}var m=t?qCe:UCe;return jX(function(){if(a!==lF&&a!==qR){var p=m.indexOf(a),v=m[p+1],h=n(a);h===FX?o(v,!0):v&&u(function(g){function w(){g.isCanceled()||o(v,!0)}h===!0?w():Promise.resolve(h).then(w)})}},[e,a]),c.useEffect(function(){return function(){d()}},[]),[f,a]};function YCe(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,u=l===void 0?!0:l,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,p=r.onEnterPrepare,v=r.onLeavePrepare,h=r.onAppearStart,g=r.onEnterStart,w=r.onLeaveStart,b=r.onAppearActive,y=r.onEnterActive,x=r.onLeaveActive,C=r.onAppearEnd,S=r.onEnterEnd,k=r.onLeaveEnd,_=r.onVisibleChanged,$=Sf(),E=ie($,2),T=E[0],M=E[1],j=LCe(au),I=ie(j,2),N=I[0],O=I[1],D=Sf(null),F=ie(D,2),z=F[0],R=F[1],H=N(),V=c.useRef(!1),B=c.useRef(null);function W(){return n()}var q=c.useRef(!1);function Q(){O(au),R(null,!0)}var G=Vt(function(fe){var ge=N();if(ge!==au){var ue=W();if(!(fe&&!fe.deadline&&fe.target!==ue)){var ce=q.current,$e;ge===Ub&&ce?$e=C==null?void 0:C(ue,fe):ge===qb&&ce?$e=S==null?void 0:S(ue,fe):ge===Gb&&ce&&($e=k==null?void 0:k(ue,fe)),ce&&$e!==!1&&Q()}}}),X=VCe(G),re=ie(X,1),K=re[0],Y=function(ge){switch(ge){case Ub:return U(U(U({},Es,m),Lm,h),Bm,b);case qb:return U(U(U({},Es,p),Lm,g),Bm,y);case Gb:return U(U(U({},Es,v),Lm,w),Bm,x);default:return{}}},Z=c.useMemo(function(){return Y(H)},[H]),J=KCe(H,!e,function(fe){if(fe===Es){var ge=Z[Es];return ge?ge(W()):FX}if(le in Z){var ue;R(((ue=Z[le])===null||ue===void 0?void 0:ue.call(Z,W(),null))||null)}return le===Bm&&H!==au&&(K(W()),d>0&&(clearTimeout(B.current),B.current=setTimeout(function(){G({deadline:!0})},d))),le===OX&&Q(),GCe}),ee=ie(J,2),te=ee[0],le=ee[1],oe=AX(le);q.current=oe;var de=c.useRef(null);jX(function(){if(!(V.current&&de.current===t)){M(t);var fe=V.current;V.current=!0;var ge;!fe&&t&&s&&(ge=Ub),fe&&t&&a&&(ge=qb),(fe&&!t&&u||!fe&&f&&!t&&u)&&(ge=Gb);var ue=Y(ge);ge&&(e||ue[Es])?(O(ge),te()):O(au),de.current=t}},[t]),c.useEffect(function(){(H===Ub&&!s||H===qb&&!a||H===Gb&&!u)&&O(au)},[s,a,u]),c.useEffect(function(){return function(){V.current=!1,clearTimeout(B.current)}},[]);var pe=c.useRef(!1);c.useEffect(function(){T&&(pe.current=!0),T!==void 0&&H===au&&((pe.current||T)&&(_==null||_(T)),pe.current=!0)},[T,H]);var we=z;return Z[Es]&&le===Lm&&(we=A({transition:"none"},we)),[H,le,we,T??t]}function XCe(e){var t=e;mt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=c.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,u=l===void 0?!0:l,d=i.forceRender,f=i.children,m=i.motionName,p=i.leavedClassName,v=i.eventProps,h=c.useContext(TX),g=h.motion,w=n(i,g),b=c.useRef(),y=c.useRef();function x(){try{return b.current instanceof HTMLElement?b.current:vg(y.current)}catch{return null}}var C=YCe(w,s,x,i),S=ie(C,4),k=S[0],_=S[1],$=S[2],E=S[3],T=c.useRef(E);E&&(T.current=!0);var M=c.useCallback(function(F){b.current=F,c0(a,F)},[a]),j,I=A(A({},v),{},{visible:s});if(!f)j=null;else if(k===au)E?j=f(A({},I),M):!u&&T.current&&p?j=f(A(A({},I),{},{className:p}),M):d||!u&&!p?j=f(A(A({},I),{},{style:{display:"none"}}),M):j=null;else{var N;_===Es?N="prepare":AX(_)?N="active":_===Lm&&(N="start");var O=fF(m,"".concat(k,"-").concat(N));j=f(A(A({},I),{},{className:ne(fF(m,k),U(U({},O,O&&N),m,typeof m=="string")),style:$}),M)}if(c.isValidElement(j)&&Gs(j)){var D=nd(j);D||(j=c.cloneElement(j,{ref:M}))}return c.createElement(ACe,{ref:y},j)});return r.displayName="CSSMotion",r}const ti=XCe(DX);var vT="add",hT="keep",gT="remove",Z$="removed";function QCe(e){var t;return e&&mt(e)==="object"&&"key"in e?t=e:t={key:e},A(A({},t),{},{key:String(t.key)})}function bT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(QCe)}function JCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=bT(e),o=bT(t);a.forEach(function(u){for(var d=!1,f=r;f1});return l.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==gT}),n.forEach(function(d){d.key===u&&(d.status=hT)})}),n}var ZCe=["component","children","onVisibleChanged","onAllRemoved"],e2e=["status"],t2e=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function n2e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ti,n=function(r){Io(a,r);var i=ps(a);function a(){var o;Kn(this,a);for(var s=arguments.length,l=new Array(s),u=0;unull;var a2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const c2e=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(eS=t),n!==void 0&&(LX=n),"holderRender"in e&&(zX=i),r&&(l2e(r)?mCe(Tw(),r):BX=r)},GR=()=>({getPrefixCls:(e,t)=>t||(e?`${Tw()}-${e}`:Tw()),getIconPrefixCls:s2e,getRootPrefixCls:()=>eS||Tw(),getTheme:()=>BX,holderRender:zX}),u2e=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:p,popupMatchSelectWidth:v,popupOverflow:h,legacyLocale:g,parentContext:w,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:C,statistic:S,spin:k,calendar:_,carousel:$,cascader:E,collapse:T,typography:M,checkbox:j,descriptions:I,divider:N,drawer:O,skeleton:D,steps:F,image:z,layout:R,list:H,mentions:V,modal:B,progress:W,result:q,slider:Q,breadcrumb:G,menu:X,pagination:re,input:K,textArea:Y,empty:Z,badge:J,radio:ee,rate:te,switch:le,transfer:oe,avatar:de,message:pe,tag:we,table:fe,card:ge,tabs:ue,timeline:ce,timePicker:$e,upload:se,notification:ve,tree:he,colorPicker:_e,datePicker:Se,rangePicker:Pe,flex:De,wave:xe,dropdown:ye,warning:Te,tour:Ie,tooltip:ke,popover:je,popconfirm:He,floatButtonGroup:Be,variant:ct,inputNumber:Ve,treeSelect:Ye}=e,Ne=c.useCallback((Xe,lt)=>{const{prefixCls:tt}=e;if(lt)return lt;const Qe=tt||w.getPrefixCls("");return Xe?`${Qe}-${Xe}`:Qe},[w.getPrefixCls,e.prefixCls]),Ae=b||w.iconPrefixCls||J2,et=n||w.csp;ICe(Ae,et);const nt=DCe(y,w.theme,{prefixCls:Ne("")}),rt={csp:et,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||g,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:v??p,popupOverflow:h,getPrefixCls:Ne,iconPrefixCls:Ae,theme:nt,segmented:C,statistic:S,spin:k,calendar:_,carousel:$,cascader:E,collapse:T,typography:M,checkbox:j,descriptions:I,divider:N,drawer:O,skeleton:D,steps:F,image:z,input:K,textArea:Y,layout:R,list:H,mentions:V,modal:B,progress:W,result:q,slider:Q,breadcrumb:G,menu:X,pagination:re,empty:Z,badge:J,radio:ee,rate:te,switch:le,transfer:oe,avatar:de,message:pe,tag:we,table:fe,card:ge,tabs:ue,timeline:ce,timePicker:$e,upload:se,notification:ve,tree:he,colorPicker:_e,datePicker:Se,rangePicker:Pe,flex:De,wave:xe,dropdown:ye,warning:Te,tour:Ie,tooltip:ke,popover:je,popconfirm:He,floatButtonGroup:Be,variant:ct,inputNumber:Ve,treeSelect:Ye},it=Object.assign({},w);Object.keys(rt).forEach(Xe=>{rt[Xe]!==void 0&&(it[Xe]=rt[Xe])}),o2e.forEach(Xe=>{const lt=e[Xe];lt&&(it[Xe]=lt)}),typeof r<"u"&&(it.button=Object.assign({autoInsertSpace:r},it.button));const be=Nc(()=>it,it,(Xe,lt)=>{const tt=Object.keys(Xe),Qe=Object.keys(lt);return tt.length!==Qe.length||tt.some(Ge=>Xe[Ge]!==lt[Ge])}),Oe=c.useMemo(()=>({prefixCls:Ae,csp:et}),[Ae,et]);let Ce=c.createElement(c.Fragment,null,c.createElement(i2e,{dropdownMatchSelectWidth:p}),t);const Re=c.useMemo(()=>{var Xe,lt,tt,Qe;return Am(((Xe=rs.Form)===null||Xe===void 0?void 0:Xe.defaultValidateMessages)||{},((tt=(lt=be.locale)===null||lt===void 0?void 0:lt.Form)===null||tt===void 0?void 0:tt.defaultValidateMessages)||{},((Qe=be.form)===null||Qe===void 0?void 0:Qe.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[be,o==null?void 0:o.validateMessages]);Object.keys(Re).length>0&&(Ce=c.createElement(sX.Provider,{value:Re},Ce)),s&&(Ce=c.createElement(YSe,{locale:s,_ANT_MARK__:KSe},Ce)),(Ae||et)&&(Ce=c.createElement(FR.Provider,{value:Oe},Ce)),l&&(Ce=c.createElement(pCe,{size:l},Ce)),Ce=c.createElement(r2e,null,Ce);const Ke=c.useMemo(()=>{const Xe=nt||{},{algorithm:lt,token:tt,components:Qe,cssVar:Ge}=Xe,st=a2e(Xe,["algorithm","token","components","cssVar"]),pt=lt&&(!Array.isArray(lt)||lt.length>0)?yf(lt):gX,yt={};Object.entries(Qe||{}).forEach($t=>{let[ze,me]=$t;const Me=Object.assign({},me);"algorithm"in Me&&(Me.algorithm===!0?Me.theme=pt:(Array.isArray(Me.algorithm)||typeof Me.algorithm=="function")&&(Me.theme=yf(Me.algorithm)),delete Me.algorithm),yt[ze]=Me});const zt=Object.assign(Object.assign({},Rp),tt);return Object.assign(Object.assign({},st),{theme:pt,token:zt,components:yt,override:Object.assign({override:zt},yt),cssVar:Ge})},[nt]);return y&&(Ce=c.createElement(zR.Provider,{value:Ke},Ce)),be.warning&&(Ce=c.createElement(USe.Provider,{value:be.warning},Ce)),x!==void 0&&(Ce=c.createElement(VR,{disabled:x},Ce)),c.createElement(xt.Provider,{value:be},Ce)},Jt=e=>{const t=c.useContext(xt),n=c.useContext(LR);return c.createElement(u2e,Object.assign({parentContext:t,legacyLocale:n},e))};Jt.ConfigContext=xt;Jt.SizeContext=xf;Jt.config=c2e;Jt.useConfig=vCe;Object.defineProperty(Jt,"SizeContext",{get:()=>xf});var d2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function HX(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function f2e(e){return HX(e)instanceof ShadowRoot}function tS(e){return f2e(e)?HX(e):null}function m2e(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function p2e(e,t){An(e,"[@ant-design/icons] ".concat(t))}function mF(e){return mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(mt(e.icon)==="object"||typeof e.icon=="function")}function pF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[m2e(n)]=r}return t},{})}function yT(e,t,n){return n?L.createElement(e.tag,A(A({key:t},pF(e.attrs)),n),(e.children||[]).map(function(r,i){return yT(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):L.createElement(e.tag,A({key:t},pF(e.attrs)),(e.children||[]).map(function(r,i){return yT(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function VX(e){return wf(e)[0]}function WX(e){return e?Array.isArray(e)?e:[e]:[]}var v2e=` +.anticon { + display: inline-flex; + align-items: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,h2e=function(t){var n=c.useContext(FR),r=n.csp,i=n.prefixCls,a=n.layer,o=v2e;i&&(o=o.replace(/anticon/g,i)),a&&(o="@layer ".concat(a,` { +`).concat(o,` +}`)),c.useEffect(function(){var s=t.current,l=tS(s);ek(o,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])},g2e=["icon","className","onClick","style","primaryColor","secondaryColor"],bg={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function b2e(e){var t=e.primaryColor,n=e.secondaryColor;bg.primaryColor=t,bg.secondaryColor=n||VX(t),bg.calculated=!!n}function y2e(){return A({},bg)}var hv=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=ut(t,g2e),u=c.useRef(),d=bg;if(o&&(d={primaryColor:o,secondaryColor:s||VX(o)}),h2e(u),p2e(mF(n),"icon should be icon definiton, but got ".concat(n)),!mF(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),yT(f.icon,"svg-".concat(f.name),A(A({className:r,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};hv.displayName="IconReact";hv.getTwoToneColors=y2e;hv.setTwoToneColors=b2e;function UX(e){var t=WX(e),n=ie(t,2),r=n[0],i=n[1];return hv.setTwoToneColors({primaryColor:r,secondaryColor:i})}function w2e(){var e=hv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var x2e=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];UX(Ip.primary);var Ht=c.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=ut(e,x2e),d=c.useContext(FR),f=d.prefixCls,m=f===void 0?"anticon":f,p=d.rootClassName,v=ne(p,m,U(U({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!i||r.name==="loading"),n),h=o;h===void 0&&s&&(h=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=WX(l),b=ie(w,2),y=b[0],x=b[1];return c.createElement("span",Ee({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:s,className:v}),c.createElement(hv,{icon:r,primaryColor:y,secondaryColor:x,style:g}))});Ht.displayName="AntdIcon";Ht.getTwoToneColor=w2e;Ht.setTwoToneColor=UX;var S2e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:d2e}))},gv=c.forwardRef(S2e),C2e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},k2e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:C2e}))},Ql=c.forwardRef(k2e),_2e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},$2e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:_2e}))},vs=c.forwardRef($2e),E2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},P2e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:E2e}))},y1=c.forwardRef(P2e),T2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},O2e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:T2e}))},ik=c.forwardRef(O2e),I2e=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,R2e=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough + onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,M2e="".concat(I2e," ").concat(R2e).split(/[\s\n]+/),N2e="aria-",D2e="data-";function vF(e,t){return e.indexOf(t)===0}function er(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=A({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||vF(i,N2e))||n.data&&vF(i,D2e)||n.attr&&M2e.includes(i))&&(r[i]=e[i])}),r}function qX(e){return e&&L.isValidElement(e)&&e.type===L.Fragment}const KR=(e,t,n)=>L.isValidElement(e)?L.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function qr(e,t){return KR(e,e,t)}const Yb=(e,t,n,r,i)=>({background:e,border:`${ae(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),j2e=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:p,defaultPadding:v}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",display:"flex",alignItems:"center",padding:v,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, + padding-top ${n} ${u}, padding-bottom ${n} ${u}, + margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:o},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},F2e=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:p}=e;return{[t]:{"&-success":Yb(i,r,n,e,t),"&-info":Yb(p,m,f,e,t),"&-warning":Yb(s,o,a,e,t),"&-error":Object.assign(Object.assign({},Yb(d,u,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},A2e=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:ae(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},L2e=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),B2e=sn("Alert",e=>[j2e(e),F2e(e),A2e(e)],L2e);var hF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{icon:t,prefixCls:n,type:r}=e,i=z2e[r]||null;return t?KR(t,c.createElement("span",{className:`${n}-icon`},t),()=>({className:ne(`${n}-icon`,t.props.className)})):c.createElement(i,{className:`${n}-icon`})},V2e=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a}=e,o=r===!0||r===void 0?c.createElement(vs,null):r;return t?c.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),o):null},GX=c.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:a,className:o,rootClassName:s,style:l,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:m,showIcon:p,closable:v,closeText:h,closeIcon:g,action:w,id:b}=e,y=hF(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[x,C]=c.useState(!1),S=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:S.current}));const{getPrefixCls:k,direction:_,alert:$}=c.useContext(xt),E=k("alert",r),[T,M,j]=B2e(E),I=V=>{var B;C(!0),(B=e.onClose)===null||B===void 0||B.call(e,V)},N=c.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),O=c.useMemo(()=>typeof v=="object"&&v.closeIcon||h?!0:typeof v=="boolean"?v:g!==!1&&g!==null&&g!==void 0?!0:!!($!=null&&$.closable),[h,g,v,$==null?void 0:$.closable]),D=a&&p===void 0?!0:p,F=ne(E,`${E}-${N}`,{[`${E}-with-description`]:!!n,[`${E}-no-icon`]:!D,[`${E}-banner`]:!!a,[`${E}-rtl`]:_==="rtl"},$==null?void 0:$.className,o,s,j,M),z=er(y,{aria:!0,data:!0}),R=c.useMemo(()=>{var V,B;return typeof v=="object"&&v.closeIcon?v.closeIcon:h||(g!==void 0?g:typeof($==null?void 0:$.closable)=="object"&&(!((V=$==null?void 0:$.closable)===null||V===void 0)&&V.closeIcon)?(B=$==null?void 0:$.closable)===null||B===void 0?void 0:B.closeIcon:$==null?void 0:$.closeIcon)},[g,v,h,$==null?void 0:$.closeIcon]),H=c.useMemo(()=>{const V=v??($==null?void 0:$.closable);return typeof V=="object"?hF(V,["closeIcon"]):{}},[v,$==null?void 0:$.closable]);return T(c.createElement(ti,{visible:!x,motionName:`${E}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:V=>({maxHeight:V.offsetHeight}),onLeaveEnd:m},(V,B)=>{let{className:W,style:q}=V;return c.createElement("div",Object.assign({id:b,ref:ri(S,B),"data-show":!x,className:ne(F,W),style:Object.assign(Object.assign(Object.assign({},$==null?void 0:$.style),l),q),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},z),D?c.createElement(H2e,{description:n,icon:e.icon,prefixCls:E,type:N}):null,c.createElement("div",{className:`${E}-content`},i?c.createElement("div",{className:`${E}-message`},i):null,n?c.createElement("div",{className:`${E}-description`},n):null),w?c.createElement("div",{className:`${E}-action`},w):null,c.createElement(V2e,{isClosable:O,prefixCls:E,closeIcon:R,handleClose:I,ariaProps:H}))}))});function W2e(e,t,n){return t=bf(t),IY(e,q2()?Reflect.construct(t,n||[],bf(e).constructor):t.apply(e,n))}let U2e=function(e){function t(){var n;return Kn(this,t),n=W2e(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Io(t,e),Yn(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:a,children:o}=this.props,{error:s,info:l}=this.state,u=(l==null?void 0:l.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,f=typeof i>"u"?u:i;return s?c.createElement(GX,{id:a,type:"error",message:d,description:c.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):o}}])}(c.Component);const KX=GX;KX.ErrorBoundary=U2e;const gF=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bF=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",eE=(e,t)=>{if(e.clientHeight{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,q2e=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},yF=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:O=>O!==u;if(!gF(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,p=[];let v=e;for(;gF(v)&&f(v);){if(v=q2e(v),v===m){p.push(v);break}v!=null&&v===document.body&&eE(v)&&!eE(document.documentElement)||v!=null&&eE(v,d)&&p.push(v)}const h=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:w,scrollY:b}=window,{height:y,width:x,top:C,right:S,bottom:k,left:_}=e.getBoundingClientRect(),{top:$,right:E,bottom:T,left:M}=(O=>{const D=window.getComputedStyle(O);return{top:parseFloat(D.scrollMarginTop)||0,right:parseFloat(D.scrollMarginRight)||0,bottom:parseFloat(D.scrollMarginBottom)||0,left:parseFloat(D.scrollMarginLeft)||0}})(e);let j=s==="start"||s==="nearest"?C-$:s==="end"?k+T:C+y/2-$+T,I=l==="center"?_+x/2-M+E:l==="end"?S+E:_-M;const N=[];for(let O=0;O=0&&_>=0&&k<=g&&S<=h&&C>=R&&k<=V&&_>=B&&S<=H)return N;const W=getComputedStyle(D),q=parseInt(W.borderLeftWidth,10),Q=parseInt(W.borderTopWidth,10),G=parseInt(W.borderRightWidth,10),X=parseInt(W.borderBottomWidth,10);let re=0,K=0;const Y="offsetWidth"in D?D.offsetWidth-D.clientWidth-q-G:0,Z="offsetHeight"in D?D.offsetHeight-D.clientHeight-Q-X:0,J="offsetWidth"in D?D.offsetWidth===0?0:z/D.offsetWidth:0,ee="offsetHeight"in D?D.offsetHeight===0?0:F/D.offsetHeight:0;if(m===D)re=s==="start"?j:s==="end"?j-g:s==="nearest"?Xb(b,b+g,g,Q,X,b+j,b+j+y,y):j-g/2,K=l==="start"?I:l==="center"?I-h/2:l==="end"?I-h:Xb(w,w+h,h,q,G,w+I,w+I+x,x),re=Math.max(0,re+b),K=Math.max(0,K+w);else{re=s==="start"?j-R-Q:s==="end"?j-V+X+Z:s==="nearest"?Xb(R,V,F,Q,X+Z,j,j+y,y):j-(R+F/2)+Z/2,K=l==="start"?I-B-q:l==="center"?I-(B+z/2)+Y/2:l==="end"?I-H+G+Y:Xb(B,H,z,q,G+Y,I,I+x,x);const{scrollLeft:te,scrollTop:le}=D;re=ee===0?0:Math.max(0,Math.min(le+re/ee,D.scrollHeight-F/ee+Z)),K=J===0?0:Math.max(0,Math.min(te+K/J,D.scrollWidth-z/J+Y)),j+=le-re,I+=te-K}N.push({el:D,top:re,left:K})}return N},G2e=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function K2e(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(yF(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:o}of yF(e,G2e(t))){const s=a-n.top+n.bottom,l=o-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}function wT(e){return e!=null&&e===e.window}const Y2e=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return wT(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!wT(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function X2e(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function Q2e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=Y2e(a),s=Date.now(),l=()=>{const d=Date.now()-s,f=X2e(d>i?i:d,o,e,i);wT(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,d{const[,,,,t]=Gr();return t?`${e}-css-var`:""};var qe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=qe.F1&&n<=qe.F12)return!1;switch(n){case qe.ALT:case qe.CAPS_LOCK:case qe.CONTEXT_MENU:case qe.CTRL:case qe.DOWN:case qe.END:case qe.ESC:case qe.HOME:case qe.INSERT:case qe.LEFT:case qe.MAC_FF_META:case qe.META:case qe.NUMLOCK:case qe.NUM_CENTER:case qe.PAGE_DOWN:case qe.PAGE_UP:case qe.PAUSE:case qe.PRINT_SCREEN:case qe.RIGHT:case qe.SHIFT:case qe.UP:case qe.WIN_KEY:case qe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=qe.ZERO&&t<=qe.NINE||t>=qe.NUM_ZERO&&t<=qe.NUM_MULTIPLY||t>=qe.A&&t<=qe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case qe.SPACE:case qe.QUESTION_MARK:case qe.NUM_PLUS:case qe.NUM_MINUS:case qe.NUM_PERIOD:case qe.NUM_DIVISION:case qe.SEMICOLON:case qe.DASH:case qe.EQUALS:case qe.COMMA:case qe.PERIOD:case qe.SLASH:case qe.APOSTROPHE:case qe.SINGLE_QUOTE:case qe.OPEN_SQUARE_BRACKET:case qe.BACKSLASH:case qe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},YR=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,u=l===void 0?!0:l,d=e.eventKey,f=e.content,m=e.closable,p=e.closeIcon,v=p===void 0?"x":p,h=e.props,g=e.onClick,w=e.onNoticeClose,b=e.times,y=e.hovering,x=c.useState(!1),C=ie(x,2),S=C[0],k=C[1],_=c.useState(0),$=ie(_,2),E=$[0],T=$[1],M=c.useState(0),j=ie(M,2),I=j[0],N=j[1],O=y||S,D=o>0&&s,F=function(){w(d)},z=function(q){(q.key==="Enter"||q.code==="Enter"||q.keyCode===qe.ENTER)&&F()};c.useEffect(function(){if(!O&&o>0){var W=Date.now()-I,q=setTimeout(function(){F()},o*1e3-I);return function(){u&&clearTimeout(q),N(Date.now()-W)}}},[o,O,b]),c.useEffect(function(){if(!O&&D&&(u||I===0)){var W=performance.now(),q,Q=function G(){cancelAnimationFrame(q),q=requestAnimationFrame(function(X){var re=X+I-W,K=Math.min(re/(o*1e3),1);T(K*100),K<1&&G()})};return Q(),function(){u&&cancelAnimationFrame(q)}}},[o,I,O,D,b]);var R=c.useMemo(function(){return mt(m)==="object"&&m!==null?m:m?{closeIcon:v}:{}},[m,v]),H=er(R,!0),V=100-(!E||E<0?0:E>100?100:E),B="".concat(n,"-notice");return c.createElement("div",Ee({},h,{ref:t,className:ne(B,i,U({},"".concat(B,"-closable"),m)),style:r,onMouseEnter:function(q){var Q;k(!0),h==null||(Q=h.onMouseEnter)===null||Q===void 0||Q.call(h,q)},onMouseLeave:function(q){var Q;k(!1),h==null||(Q=h.onMouseLeave)===null||Q===void 0||Q.call(h,q)},onClick:g}),c.createElement("div",{className:"".concat(B,"-content")},f),m&&c.createElement("a",Ee({tabIndex:0,className:"".concat(B,"-close"),onKeyDown:z,"aria-label":"Close"},H,{onClick:function(q){q.preventDefault(),q.stopPropagation(),F()}}),R.closeIcon),D&&c.createElement("progress",{className:"".concat(B,"-progress"),max:"100",value:V},V+"%"))}),YX=L.createContext({}),XX=function(t){var n=t.children,r=t.classNames;return L.createElement(YX.Provider,{value:{classNames:r}},n)},wF=8,xF=3,SF=16,J2e=function(t){var n={offset:wF,threshold:xF,gap:SF};if(t&&mt(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:wF,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:xF,n.gap=(a=t.gap)!==null&&a!==void 0?a:SF}return[!!t,n]},Z2e=["className","style","classNames","styles"],eke=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=c.useContext(YX),m=f.classNames,p=c.useRef({}),v=c.useState(null),h=ie(v,2),g=h[0],w=h[1],b=c.useState([]),y=ie(b,2),x=y[0],C=y[1],S=n.map(function(O){return{config:O,key:String(O.key)}}),k=J2e(d),_=ie(k,2),$=_[0],E=_[1],T=E.offset,M=E.threshold,j=E.gap,I=$&&(x.length>0||S.length<=M),N=typeof s=="function"?s(r):s;return c.useEffect(function(){$&&x.length>1&&C(function(O){return O.filter(function(D){return S.some(function(F){var z=F.key;return D===z})})})},[x,S,$]),c.useEffect(function(){var O;if($&&p.current[(O=S[S.length-1])===null||O===void 0?void 0:O.key]){var D;w(p.current[(D=S[S.length-1])===null||D===void 0?void 0:D.key])}},[S,$]),L.createElement(rk,Ee({key:r,className:ne(i,"".concat(i,"-").concat(r),m==null?void 0:m.list,a,U(U({},"".concat(i,"-stack"),!!$),"".concat(i,"-stack-expanded"),I)),style:o,keys:S,motionAppear:!0},N,{onAllRemoved:function(){l(r)}}),function(O,D){var F=O.config,z=O.className,R=O.style,H=O.index,V=F,B=V.key,W=V.times,q=String(B),Q=F,G=Q.className,X=Q.style,re=Q.classNames,K=Q.styles,Y=ut(Q,Z2e),Z=S.findIndex(function(ce){return ce.key===q}),J={};if($){var ee=S.length-1-(Z>-1?Z:H-1),te=r==="top"||r==="bottom"?"-50%":"0";if(ee>0){var le,oe,de;J.height=I?(le=p.current[q])===null||le===void 0?void 0:le.offsetHeight:g==null?void 0:g.offsetHeight;for(var pe=0,we=0;we-1?p.current[q]=$e:delete p.current[q]},prefixCls:i,classNames:re,styles:K,className:ne(G,m==null?void 0:m.notice),style:X,times:W,key:B,eventKey:B,onNoticeClose:u,hovering:$&&x.length>0})))})},tke=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,s=e.className,l=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=c.useState([]),p=ie(m,2),v=p[0],h=p[1],g=function($){var E,T=v.find(function(M){return M.key===$});T==null||(E=T.onClose)===null||E===void 0||E.call(T),h(function(M){return M.filter(function(j){return j.key!==$})})};c.useImperativeHandle(t,function(){return{open:function($){h(function(E){var T=Fe(E),M=T.findIndex(function(N){return N.key===$.key}),j=A({},$);if(M>=0){var I;j.times=(((I=E[M])===null||I===void 0?void 0:I.times)||0)+1,T[M]=j}else j.times=0,T.push(j);return o>0&&T.length>o&&(T=T.slice(-o)),T})},close:function($){g($)},destroy:function(){h([])}}});var w=c.useState({}),b=ie(w,2),y=b[0],x=b[1];c.useEffect(function(){var _={};v.forEach(function($){var E=$.placement,T=E===void 0?"topRight":E;T&&(_[T]=_[T]||[],_[T].push($))}),Object.keys(y).forEach(function($){_[$]=_[$]||[]}),x(_)},[v]);var C=function($){x(function(E){var T=A({},E),M=T[$]||[];return M.length||delete T[$],T})},S=c.useRef(!1);if(c.useEffect(function(){Object.keys(y).length>0?S.current=!0:S.current&&(u==null||u(),S.current=!1)},[y]),!i)return null;var k=Object.keys(y);return ki.createPortal(c.createElement(c.Fragment,null,k.map(function(_){var $=y[_],E=c.createElement(eke,{key:_,configList:$,placement:_,prefixCls:r,className:s==null?void 0:s(_),style:l==null?void 0:l(_),motion:a,onNoticeClose:g,onAllNoticeRemoved:C,stack:d});return f?f(E,{prefixCls:r,key:_}):E})),i)}),nke=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],rke=function(){return document.body},CF=0;function ike(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?rke:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=ut(e,nke),m=c.useState(),p=ie(m,2),v=p[0],h=p[1],g=c.useRef(),w=c.createElement(tke,{container:v,ref:g,prefixCls:i,motion:r,maxCount:a,className:o,style:s,onAllRemoved:l,stack:u,renderNotifications:d}),b=c.useState([]),y=ie(b,2),x=y[0],C=y[1],S=c.useMemo(function(){return{open:function(_){var $=ike(f,_);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat(CF),CF+=1),C(function(E){return[].concat(Fe(E),[{type:"open",config:$}])})},close:function(_){C(function($){return[].concat(Fe($),[{type:"close",key:_}])})},destroy:function(){C(function(_){return[].concat(Fe(_),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){h(n())}),c.useEffect(function(){g.current&&x.length&&(x.forEach(function(k){switch(k.type){case"open":g.current.open(k.config);break;case"close":g.current.close(k.key);break;case"destroy":g.current.destroy();break}}),C(function(k){return k.filter(function(_){return!x.includes(_)})}))},[x]),[S,w]}var ake={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},oke=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:ake}))},Xs=c.forwardRef(oke);const w1=L.createContext(void 0),ou=100,ske=10,XR=ou*ske,JX={Modal:ou,Drawer:ou,Popover:ou,Popconfirm:ou,Tooltip:ou,Tour:ou,FloatButton:ou},lke={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function cke(e){return e in JX}const hs=(e,t)=>{const[,n]=Gr(),r=L.useContext(w1),i=cke(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+JX[e]:o+=lke[e],a=[r===void 0?t:o,o]}return a},uke=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:p,borderRadiusLG:v,zIndexPopup:h,contentPadding:g,contentBg:w}=e,b=`${t}-notice`,y=new on("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new on("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${b}-content`]:{display:"inline-block",padding:g,background:w,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, + ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},mn(e)),{color:i,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + ${t}-move-up-appear, + ${t}-move-up-enter + `]:{animationName:y,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[` + ${t}-move-up-appear${t}-move-up-appear-active, + ${t}-move-up-enter${t}-move-up-enter-active + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},dke=e=>({zIndexPopup:e.zIndexPopupBase+XR+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),ZX=sn("Message",e=>{const t=Kt(e,{height:150});return[uke(t)]},dke);var fke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,type:n,icon:r,children:i}=e;return c.createElement("div",{className:ne(`${t}-custom-content`,`${t}-${n}`)},r||mke[n],c.createElement("span",null,i))},pke=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=fke(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=c.useContext(xt),l=t||s("message"),u=Ln(l),[d,f,m]=ZX(l,u);return d(c.createElement(YR,Object.assign({},o,{prefixCls:l,className:ne(n,f,`${l}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:c.createElement(eQ,{prefixCls:l,type:r,icon:i},a)})))};function vke(e,t){return{motionName:t??`${e}-move-up`}}function QR(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var hke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=Ln(n),[i,a,o]=ZX(n,r);return i(c.createElement(XX,{classNames:{list:ne(a,o,r)}},t))},wke=(e,t)=>{let{prefixCls:n,key:r}=t;return c.createElement(yke,{prefixCls:n,key:r},e)},xke=c.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=bke,rtl:s,transitionName:l,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:p}=c.useContext(xt),v=r||d("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:n??gke}),g=()=>ne({[`${v}-rtl`]:s??p==="rtl"}),w=()=>vke(v,l),b=c.createElement("span",{className:`${v}-close-x`},c.createElement(vs,{className:`${v}-close-icon`})),[y,x]=QX({prefixCls:v,style:h,className:g,motion:w,closable:!1,closeIcon:b,duration:o,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:wke});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},y),{prefixCls:v,message:m})),x});let kF=0;function tQ(e){const t=c.useRef(null);return Xl(),[c.useMemo(()=>{const r=l=>{var u;(u=t.current)===null||u===void 0||u.close(l)},i=l=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:p,icon:v,type:h,key:g,className:w,style:b,onClose:y}=l,x=hke(l,["content","icon","type","key","className","style","onClose"]);let C=g;return C==null&&(kF+=1,C=`antd-message-${kF}`),QR(S=>(u(Object.assign(Object.assign({},x),{key:C,content:c.createElement(eQ,{prefixCls:d,type:h,icon:v},p),placement:"top",className:ne(h&&`${m}-${h}`,w,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),onClose:()=>{y==null||y(),S()}})),()=>{r(C)}))},o={open:i,destroy:l=>{var u;l!==void 0?r(l):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const u=(d,f,m)=>{let p;d&&typeof d=="object"&&"content"in d?p=d:p={content:d};let v,h;typeof f=="function"?h=f:(v=f,h=m);const g=Object.assign(Object.assign({onClose:h,duration:v},p),{type:l});return i(g)};o[l]=u}),o},[]),c.createElement(xke,Object.assign({key:"message-holder"},e,{ref:t}))]}function nQ(e){return tQ(e)}function Ske(){const[e,t]=c.useState([]),n=c.useCallback(r=>(t(i=>[].concat(Fe(i),[r])),()=>{t(i=>i.filter(a=>a!==r))}),[]);return[e,n]}function Tn(){Tn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(O,D,F){O[D]=F.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(O,D,F){return Object.defineProperty(O,D,{value:F,enumerable:!0,configurable:!0,writable:!0}),O[D]}try{u({},"")}catch{u=function(F,z,R){return F[z]=R}}function d(O,D,F,z){var R=D&&D.prototype instanceof w?D:w,H=Object.create(R.prototype),V=new I(z||[]);return i(H,"_invoke",{value:E(O,F,V)}),H}function f(O,D,F){try{return{type:"normal",arg:O.call(D,F)}}catch(z){return{type:"throw",arg:z}}}t.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",h="completed",g={};function w(){}function b(){}function y(){}var x={};u(x,o,function(){return this});var C=Object.getPrototypeOf,S=C&&C(C(N([])));S&&S!==n&&r.call(S,o)&&(x=S);var k=y.prototype=w.prototype=Object.create(x);function _(O){["next","throw","return"].forEach(function(D){u(O,D,function(F){return this._invoke(D,F)})})}function $(O,D){function F(R,H,V,B){var W=f(O[R],O,H);if(W.type!=="throw"){var q=W.arg,Q=q.value;return Q&&mt(Q)=="object"&&r.call(Q,"__await")?D.resolve(Q.__await).then(function(G){F("next",G,V,B)},function(G){F("throw",G,V,B)}):D.resolve(Q).then(function(G){q.value=G,V(q)},function(G){return F("throw",G,V,B)})}B(W.arg)}var z;i(this,"_invoke",{value:function(H,V){function B(){return new D(function(W,q){F(H,V,W,q)})}return z=z?z.then(B,B):B()}})}function E(O,D,F){var z=m;return function(R,H){if(z===v)throw Error("Generator is already running");if(z===h){if(R==="throw")throw H;return{value:e,done:!0}}for(F.method=R,F.arg=H;;){var V=F.delegate;if(V){var B=T(V,F);if(B){if(B===g)continue;return B}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(z===m)throw z=h,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);z=v;var W=f(O,D,F);if(W.type==="normal"){if(z=F.done?h:p,W.arg===g)continue;return{value:W.arg,done:F.done}}W.type==="throw"&&(z=h,F.method="throw",F.arg=W.arg)}}}function T(O,D){var F=D.method,z=O.iterator[F];if(z===e)return D.delegate=null,F==="throw"&&O.iterator.return&&(D.method="return",D.arg=e,T(O,D),D.method==="throw")||F!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+F+"' method")),g;var R=f(z,O.iterator,D.arg);if(R.type==="throw")return D.method="throw",D.arg=R.arg,D.delegate=null,g;var H=R.arg;return H?H.done?(D[O.resultName]=H.value,D.next=O.nextLoc,D.method!=="return"&&(D.method="next",D.arg=e),D.delegate=null,g):H:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,g)}function M(O){var D={tryLoc:O[0]};1 in O&&(D.catchLoc=O[1]),2 in O&&(D.finallyLoc=O[2],D.afterLoc=O[3]),this.tryEntries.push(D)}function j(O){var D=O.completion||{};D.type="normal",delete D.arg,O.completion=D}function I(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(M,this),this.reset(!0)}function N(O){if(O||O===""){var D=O[o];if(D)return D.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var F=-1,z=function R(){for(;++F=0;--R){var H=this.tryEntries[R],V=H.completion;if(H.tryLoc==="root")return z("end");if(H.tryLoc<=this.prev){var B=r.call(H,"catchLoc"),W=r.call(H,"finallyLoc");if(B&&W){if(this.prev=0;--z){var R=this.tryEntries[z];if(R.tryLoc<=this.prev&&r.call(R,"finallyLoc")&&this.prev=0;--F){var z=this.tryEntries[F];if(z.finallyLoc===D)return this.complete(z.completion,z.afterLoc),j(z),g}},catch:function(D){for(var F=this.tryEntries.length-1;F>=0;--F){var z=this.tryEntries[F];if(z.tryLoc===D){var R=z.completion;if(R.type==="throw"){var H=R.arg;j(z)}return H}}throw Error("illegal catch attempt")},delegateYield:function(D,F,z){return this.delegate={iterator:N(D),resultName:F,nextLoc:z},this.method==="next"&&(this.arg=e),g}},t}function _F(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Oi(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){_F(a,r,i,o,s,"next",l)}function s(l){_F(a,r,i,o,s,"throw",l)}o(void 0)})}}var x1=A({},Mq),Cke=x1.version,tE=x1.render,kke=x1.unmountComponentAtNode,ak;try{var _ke=Number((Cke||"").split(".")[0]);_ke>=18&&(ak=x1.createRoot)}catch{}function $F(e){var t=x1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&mt(t)==="object"&&(t.usingClientEntryPoint=e)}var nS="__rc_react_root__";function $ke(e,t){$F(!0);var n=t[nS]||ak(t);$F(!1),n.render(e),t[nS]=n}function Eke(e,t){tE==null||tE(e,t)}function Pke(e,t){if(ak){$ke(e,t);return}Eke(e,t)}function Tke(e){return xT.apply(this,arguments)}function xT(){return xT=Oi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[nS])===null||i===void 0||i.unmount(),delete t[nS]}));case 1:case"end":return r.stop()}},e)})),xT.apply(this,arguments)}function Oke(e){kke(e)}function Ike(e){return ST.apply(this,arguments)}function ST(){return ST=Oi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(ak===void 0){r.next=2;break}return r.abrupt("return",Tke(t));case 2:Oke(t);case 3:case"end":return r.stop()}},e)})),ST.apply(this,arguments)}const Rke=(e,t)=>(Pke(e,t),()=>Ike(t));let Mke=Rke;function ok(){return Mke}const nE=()=>({height:0,opacity:0}),EF=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Nke=e=>({height:e?e.offsetHeight:0}),rE=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Mp=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:v0}-motion-collapse`,onAppearStart:nE,onEnterStart:nE,onAppearActive:EF,onEnterActive:EF,onLeaveStart:Nke,onLeaveActive:nE,onAppearEnd:rE,onEnterEnd:rE,onLeaveEnd:rE,motionDeadline:500}},Mi=(e,t,n)=>n!==void 0?n:`${e}-${t}`,bv=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},Dke=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},jke=PX("Wave",e=>[Dke(e)]),sk=`${v0}-wave-target`;function iE(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Fke(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return iE(t)?t:iE(n)?n:iE(r)?r:null}function aE(e){return Number.isNaN(e)?0:e}const Ake=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,a=c.useRef(null),o=c.useRef(null);c.useEffect(()=>{o.current=i()},[]);const[s,l]=c.useState(null),[u,d]=c.useState([]),[f,m]=c.useState(0),[p,v]=c.useState(0),[h,g]=c.useState(0),[w,b]=c.useState(0),[y,x]=c.useState(!1),C={left:f,top:p,width:h,height:w,borderRadius:u.map(_=>`${_}px`).join(" ")};s&&(C["--wave-color"]=s);function S(){const _=getComputedStyle(n);l(Fke(n));const $=_.position==="static",{borderLeftWidth:E,borderTopWidth:T}=_;m($?n.offsetLeft:aE(-parseFloat(E))),v($?n.offsetTop:aE(-parseFloat(T))),g(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:j,borderBottomLeftRadius:I,borderBottomRightRadius:N}=_;d([M,j,N,I].map(O=>aE(parseFloat(O))))}if(c.useEffect(()=>{if(n){const _=tn(()=>{S(),x(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(S),$.observe(n)),()=>{tn.cancel(_),$==null||$.disconnect()}}},[]),!y)return null;const k=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(sk));return c.createElement(ti,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,$)=>{var E,T;if($.deadline||$.propertyName==="opacity"){const M=(E=a.current)===null||E===void 0?void 0:E.parentElement;(T=o.current)===null||T===void 0||T.call(o).then(()=>{M==null||M.remove()})}return!1}},(_,$)=>{let{className:E}=_;return c.createElement("div",{ref:ri(a,$),className:ne(t,E,{"wave-quick":k}),style:C})})},Lke=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const a=ok();let o=null;function s(){return o}o=a(c.createElement(Ake,Object.assign({},t,{target:e,registerUnmount:s})),i)},Bke=(e,t,n)=>{const{wave:r}=c.useContext(xt),[,i,a]=Gr(),o=Vt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${sk}`)||d,{showEffect:m}=r||{};(m||Lke)(f,{className:t,token:i,component:n,event:u,hashId:a})}),s=c.useRef(null);return u=>{tn.cancel(s.current),s.current=tn(()=>{o(u)})}},S1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=c.useContext(xt),a=c.useRef(null),o=i("wave"),[,s]=jke(o),l=Bke(a,ne(o,s),r);if(L.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!bv(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!L.isValidElement(t))return t??null;const u=Gs(t)?ri(nd(t),a):a;return qr(t,{ref:u})},Br=e=>{const t=L.useContext(xf);return L.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},zke=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Hke=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Vke=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},rQ=sn("Space",e=>{const t=Kt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Hke(t),Vke(t),zke(t)]},()=>({}),{resetStyle:!1});var iQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=c.useContext(lk),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return ne(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Wke=e=>{let{children:t}=e;return c.createElement(lk.Provider,{value:null},t)},Uke=e=>{var{children:t}=e,n=iQ(e,["children"]);return c.createElement(lk.Provider,{value:n},t)},qke=e=>{const{getPrefixCls:t,direction:n}=c.useContext(xt),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:u}=e,d=iQ(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Br(y=>r??y),m=t("space-compact",o),[p,v]=rQ(m),h=ne(m,v,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:i==="vertical"},s,l),g=c.useContext(lk),w=Wr(u),b=c.useMemo(()=>w.map((y,x)=>{const C=(y==null?void 0:y.key)||`${m}-item-${x}`;return c.createElement(Uke,{key:C,compactSize:f,compactDirection:i,isFirstItem:x===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:x===w.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)}),[r,w,g]);return w.length===0?null:p(c.createElement("div",Object.assign({className:h},d),b))};var Gke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=c.useContext(xt),{prefixCls:r,size:i,className:a}=e,o=Gke(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Gr();let u="";switch(i){case"large":u="lg";break;case"small":u="sm";break}const d=ne(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},a,l);return c.createElement(aQ.Provider,{value:i},c.createElement("div",Object.assign({},o,{className:d})))},PF=/^[\u4E00-\u9FA5]{2}$/,CT=PF.test.bind(PF);function oQ(e){return e==="danger"?{danger:!0}:{type:e}}function TF(e){return typeof e=="string"}function oE(e){return e==="text"||e==="link"}function Yke(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&TF(e.type)&&CT(e.props.children)?qr(e,{children:e.props.children.split("").join(n)}):TF(e)?CT(e)?L.createElement("span",null,e.split("").join(n)):L.createElement("span",null,e):qX(e)?L.createElement("span",null,e):e}function Xke(e,t){let n=!1;const r=[];return L.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),L.Children.map(r,i=>Yke(i,t))}["default","primary","danger"].concat(Fe(Cf));const kT=c.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=ne(`${a}-icon`,n);return L.createElement("span",{ref:t,className:o,style:r},i)}),OF=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=ne(`${n}-loading-icon`,r);return L.createElement(kT,{prefixCls:n,className:o,style:i,ref:t},L.createElement(Xs,{className:a}))}),sE=()=>({width:0,opacity:0,transform:"scale(0)"}),lE=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Qke=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?L.createElement(OF,{prefixCls:t,className:i,style:a}):L.createElement(ti,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:sE,onAppearActive:lE,onEnterStart:sE,onEnterActive:lE,onLeaveStart:lE,onLeaveActive:sE},(l,u)=>{let{className:d,style:f}=l;const m=Object.assign(Object.assign({},a),f);return L.createElement(OF,{prefixCls:t,className:ne(i,d),style:m,ref:u})})},IF=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Jke=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},IF(`${t}-primary`,i),IF(`${t}-danger`,a)]}};var Zke=["b"],e_e=["v"],cE=function(t){return Math.round(Number(t||0))},t_e=function(t){if(t instanceof rn)return t;if(t&&mt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=ut(n,Zke);return A(A({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Qs=function(e){Io(n,e);var t=ps(n);function n(r){return Kn(this,n),t.call(this,t_e(r))}return Yn(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=cE(i.s*100),o=cE(i.b*100),s=cE(i.h),l=i.a,u="hsb(".concat(s,", ").concat(a,"%, ").concat(o,"%)"),d="hsba(".concat(s,", ").concat(a,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?u:d}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,o=ut(i,e_e);return A(A({},o),{},{b:a,a:this.a})}}]),n}(rn),n_e="rc-color-picker",rp=function(t){return t instanceof Qs?t:new Qs(t)},r_e=rp("#1677ff"),sQ=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,a=t.color,o=t.type,s=i.current.getBoundingClientRect(),l=s.width,u=s.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,p=f/2,v=m/2,h=(n.x+p)/l,g=1-(n.y+v)/u,w=a.toHsb(),b=h,y=(n.x+p)/l*360;if(o)switch(o){case"hue":return rp(A(A({},w),{},{h:y<=0?0:y}));case"alpha":return rp(A(A({},w),{},{a:b<=0?0:b}))}return rp({h:w.h,s:h<=0?0:h,b:g>=1?1:g,a:w.a})},lQ=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},JR=function(t){var n=t.color,r=t.prefixCls,i=t.className,a=t.style,o=t.onClick,s="".concat(r,"-color-block");return L.createElement("div",{className:ne(s,i),style:a,onClick:o},L.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function i_e(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function cQ(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,o=e.calculate,s=e.color,l=e.disabledDrag,u=c.useState({x:0,y:0}),d=ie(u,2),f=d[0],m=d[1],p=c.useRef(null),v=c.useRef(null);c.useEffect(function(){m(o())},[s]),c.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",v.current),p.current=null,v.current=null}},[]);var h=function(x){var C=i_e(x),S=C.pageX,k=C.pageY,_=n.current.getBoundingClientRect(),$=_.x,E=_.y,T=_.width,M=_.height,j=t.current.getBoundingClientRect(),I=j.width,N=j.height,O=I/2,D=N/2,F=Math.max(0,Math.min(S-$,T))-O,z=Math.max(0,Math.min(k-E,M))-D,R={x:F,y:r==="x"?f.y:z};if(I===0&&N===0||I!==N)return!1;i==null||i(R)},g=function(x){x.preventDefault(),h(x)},w=function(x){x.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",v.current),p.current=null,v.current=null,a==null||a()},b=function(x){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",v.current),!l&&(h(x),document.addEventListener("mousemove",g),document.addEventListener("mouseup",w),document.addEventListener("touchmove",g),document.addEventListener("touchend",w),p.current=g,v.current=w)};return[f,b]}var uQ=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,a=t.prefixCls;return L.createElement("div",{className:ne("".concat(a,"-handler"),U({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},dQ=function(t){var n=t.children,r=t.style,i=t.prefixCls;return L.createElement("div",{className:"".concat(i,"-palette"),style:A({position:"relative"},r)},n)},fQ=c.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return L.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),a_e=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,a=t.onChangeComplete,o=t.disabled,s=c.useRef(),l=c.useRef(),u=c.useRef(n),d=Vt(function(h){var g=sQ({offset:h,targetRef:l,containerRef:s,color:n});u.current=g,r(g)}),f=cQ({color:n,containerRef:s,targetRef:l,calculate:function(){return lQ(n)},onDragChange:d,onDragChangeComplete:function(){return a==null?void 0:a(u.current)},disabledDrag:o}),m=ie(f,2),p=m[0],v=m[1];return L.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:v,onTouchStart:v},L.createElement(dQ,{prefixCls:i},L.createElement(fQ,{x:p.x,y:p.y,ref:l},L.createElement(uQ,{color:n.toRgbString(),prefixCls:i})),L.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},o_e=function(t,n){var r=Ut(t,{value:n}),i=ie(r,2),a=i[0],o=i[1],s=c.useMemo(function(){return rp(a)},[a]);return[s,o]},s_e=function(t){var n=t.colors,r=t.children,i=t.direction,a=i===void 0?"to right":i,o=t.type,s=t.prefixCls,l=c.useMemo(function(){return n.map(function(u,d){var f=rp(u);return o==="alpha"&&d===n.length-1&&(f=new Qs(f.setA(1))),f.toRgbString()}).join(",")},[n,o]);return L.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},l_e=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,a=t.onChange,o=t.onChangeComplete,s=t.color,l=t.type,u=c.useRef(),d=c.useRef(),f=c.useRef(s),m=function(C){return l==="hue"?C.getHue():C.a*100},p=Vt(function(x){var C=sQ({offset:x,targetRef:d,containerRef:u,color:s,type:l});f.current=C,a(m(C))}),v=cQ({color:s,targetRef:d,containerRef:u,calculate:function(){return lQ(s,l)},onDragChange:p,onDragChangeComplete:function(){o(m(f.current))},direction:"x",disabledDrag:i}),h=ie(v,2),g=h[0],w=h[1],b=L.useMemo(function(){if(l==="hue"){var x=s.toHsb();x.s=1,x.b=1,x.a=1;var C=new Qs(x);return C}return s},[s,l]),y=L.useMemo(function(){return r.map(function(x){return"".concat(x.color," ").concat(x.percent,"%")})},[r]);return L.createElement("div",{ref:u,className:ne("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:w,onTouchStart:w},L.createElement(dQ,{prefixCls:n},L.createElement(fQ,{x:g.x,y:g.y,ref:d},L.createElement(uQ,{size:"small",color:b.toHexString(),prefixCls:n})),L.createElement(s_e,{colors:y,type:l,prefixCls:n})))};function c_e(e){return c.useMemo(function(){var t=e||{},n=t.slider;return[n||l_e]},[e])}var u_e=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],d_e=c.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,a=i===void 0?n_e:i,o=e.onChange,s=e.onChangeComplete,l=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,p=e.disabled,v=p===void 0?!1:p,h=e.components,g=c_e(h),w=ie(g,1),b=w[0],y=o_e(r||r_e,n),x=ie(y,2),C=x[0],S=x[1],k=c.useMemo(function(){return C.setA(1).toRgbString()},[C]),_=function(z,R){n||S(z),o==null||o(z,R)},$=function(z){return new Qs(C.setHue(z))},E=function(z){return new Qs(C.setA(z/100))},T=function(z){_($(z),{type:"hue",value:z})},M=function(z){_(E(z),{type:"alpha",value:z})},j=function(z){s&&s($(z))},I=function(z){s&&s(E(z))},N=ne("".concat(a,"-panel"),l,U({},"".concat(a,"-panel-disabled"),v)),O={prefixCls:a,disabled:v,color:C},D=L.createElement(L.Fragment,null,L.createElement(a_e,Ee({onChange:_},O,{onChangeComplete:s})),L.createElement("div",{className:"".concat(a,"-slider-container")},L.createElement("div",{className:ne("".concat(a,"-slider-group"),U({},"".concat(a,"-slider-group-disabled-alpha"),m))},L.createElement(b,Ee({},O,{type:"hue",colors:u_e,min:0,max:359,value:C.getHue(),onChange:T,onChangeComplete:j})),!m&&L.createElement(b,Ee({},O,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:k}],min:0,max:100,value:C.a*100,onChange:M,onChangeComplete:I}))),L.createElement(JR,{color:C.toRgbString(),prefixCls:a})));return L.createElement("div",{className:N,style:u,ref:t},typeof d=="function"?d(D):D)});const Uh=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",f_e=(e,t)=>e?Uh(e,t):"";let fo=function(){function e(t){Kn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:a,percent:o}=i;return{color:new e(a),percent:o}}),this.metaColor=new Qs(this.colors[0].color.metaColor)):this.metaColor=new Qs(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Yn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return f_e(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var m_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},p_e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:m_e}))},Js=c.forwardRef(p_e),mQ=L.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,o=e.children,s=e.isActive,l=e.role,u=e.classNames,d=e.styles,f=L.useState(s||r),m=ie(f,2),p=m[0],v=m[1];return L.useEffect(function(){(r||s)&&v(!0)},[r,s]),p?L.createElement("div",{ref:t,className:ne("".concat(n,"-content"),U(U({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:a,role:l},L.createElement("div",{className:ne("".concat(n,"-content-box"),u==null?void 0:u.body),style:d==null?void 0:d.body},o)):null});mQ.displayName="PanelContent";var v_e=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],pQ=L.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,a=e.isActive,o=e.onItemClick,s=e.forceRender,l=e.className,u=e.classNames,d=u===void 0?{}:u,f=e.styles,m=f===void 0?{}:f,p=e.prefixCls,v=e.collapsible,h=e.accordion,g=e.panelKey,w=e.extra,b=e.header,y=e.expandIcon,x=e.openMotion,C=e.destroyInactivePanel,S=e.children,k=ut(e,v_e),_=v==="disabled",$=w!=null&&typeof w!="boolean",E=U(U(U({onClick:function(){o==null||o(g)},onKeyDown:function(D){(D.key==="Enter"||D.keyCode===qe.ENTER||D.which===qe.ENTER)&&(o==null||o(g))},role:h?"tab":"button"},"aria-expanded",a),"aria-disabled",_),"tabIndex",_?-1:0),T=typeof y=="function"?y(e):L.createElement("i",{className:"arrow"}),M=T&&L.createElement("div",Ee({className:"".concat(p,"-expand-icon")},["header","icon"].includes(v)?E:{}),T),j=ne("".concat(p,"-item"),U(U({},"".concat(p,"-item-active"),a),"".concat(p,"-item-disabled"),_),l),I=ne(i,"".concat(p,"-header"),U({},"".concat(p,"-collapsible-").concat(v),!!v),d.header),N=A({className:I,style:m.header},["header","icon"].includes(v)?{}:E);return L.createElement("div",Ee({},k,{ref:t,className:j}),L.createElement("div",N,r&&M,L.createElement("span",Ee({className:"".concat(p,"-header-text")},v==="header"?E:{}),b),$&&L.createElement("div",{className:"".concat(p,"-extra")},w)),L.createElement(ti,Ee({visible:a,leavedClassName:"".concat(p,"-content-hidden")},x,{forceRender:s,removeOnLeave:C}),function(O,D){var F=O.className,z=O.style;return L.createElement(mQ,{ref:D,prefixCls:p,className:F,classNames:d,style:z,styles:m,isActive:a,forceRender:s,role:h?"tabpanel":void 0},S)}))}),h_e=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],g_e=function(t,n){var r=n.prefixCls,i=n.accordion,a=n.collapsible,o=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var p=f.children,v=f.label,h=f.key,g=f.collapsible,w=f.onItemClick,b=f.destroyInactivePanel,y=ut(f,h_e),x=String(h??m),C=g??a,S=b??o,k=function(E){C!=="disabled"&&(s(E),w==null||w(E))},_=!1;return i?_=l[0]===x:_=l.indexOf(x)>-1,L.createElement(pQ,Ee({},y,{prefixCls:r,key:x,panelKey:x,isActive:_,accordion:i,openMotion:u,expandIcon:d,header:v,collapsible:C,onItemClick:k,destroyInactivePanel:S}),p)})},b_e=function(t,n,r){if(!t)return null;var i=r.prefixCls,a=r.accordion,o=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),p=t.props,v=p.header,h=p.headerClass,g=p.destroyInactivePanel,w=p.collapsible,b=p.onItemClick,y=!1;a?y=u[0]===m:y=u.indexOf(m)>-1;var x=w??o,C=function(_){x!=="disabled"&&(l(_),b==null||b(_))},S={key:m,panelKey:m,header:v,headerClass:h,isActive:y,prefixCls:i,destroyInactivePanel:g??s,openMotion:d,accordion:a,children:t.props.children,onItemClick:C,expandIcon:f,collapsible:x};return typeof t.type=="string"?t:(Object.keys(S).forEach(function(k){typeof S[k]>"u"&&delete S[k]}),L.cloneElement(t,S))};function y_e(e,t,n){return Array.isArray(e)?g_e(e,n):Wr(t).map(function(r,i){return b_e(r,i,n)})}function w_e(e){var t=e;if(!Array.isArray(t)){var n=mt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var x_e=L.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,a=i===void 0?!1:i,o=e.style,s=e.accordion,l=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,p=e.activeKey,v=e.defaultActiveKey,h=e.onChange,g=e.items,w=ne(r,l),b=Ut([],{value:p,onChange:function($){return h==null?void 0:h($)},defaultValue:v,postState:w_e}),y=ie(b,2),x=y[0],C=y[1],S=function($){return C(function(){if(s)return x[0]===$?[]:[$];var E=x.indexOf($),T=E>-1;return T?x.filter(function(M){return M!==$}):[].concat(Fe(x),[$])})};An(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var k=y_e(g,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:a,onItemClick:S,activeKey:x});return L.createElement("div",Ee({ref:t,className:w,style:o,role:s?"tablist":void 0},er(e,{aria:!0,data:!0})),k)});const ZR=Object.assign(x_e,{Panel:pQ});ZR.Panel;const S_e=c.forwardRef((e,t)=>{const{getPrefixCls:n}=c.useContext(xt),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n("collapse",r),s=ne({[`${o}-no-arrow`]:!a},i);return c.createElement(ZR.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))}),C1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),C_e=e=>({animationDuration:e,animationFillMode:"both"}),k_e=e=>({animationDuration:e,animationFillMode:"both"}),ck=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${a}${e}-enter, + ${a}${e}-appear + `]:Object.assign(Object.assign({},C_e(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},k_e(r)),{animationPlayState:"paused"}),[` + ${a}${e}-enter${e}-enter-active, + ${a}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},__e=new on("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),$_e=new on("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),eM=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[ck(r,__e,$_e,e.motionDurationMid,t),{[` + ${i}${r}-enter, + ${i}${r}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},E_e=new on("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P_e=new on("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),T_e=new on("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),O_e=new on("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I_e=new on("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),R_e=new on("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),M_e=new on("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N_e=new on("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),D_e={"move-up":{inKeyframes:M_e,outKeyframes:N_e},"move-down":{inKeyframes:E_e,outKeyframes:P_e},"move-left":{inKeyframes:T_e,outKeyframes:O_e},"move-right":{inKeyframes:I_e,outKeyframes:R_e}},Np=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=D_e[t];return[ck(r,i,a,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},uk=new on("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),dk=new on("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),fk=new on("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),mk=new on("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),j_e=new on("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),F_e=new on("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),A_e=new on("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),L_e=new on("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),B_e={"slide-up":{inKeyframes:uk,outKeyframes:dk},"slide-down":{inKeyframes:fk,outKeyframes:mk},"slide-left":{inKeyframes:j_e,outKeyframes:F_e},"slide-right":{inKeyframes:A_e,outKeyframes:L_e}},Ll=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=B_e[t];return[ck(r,i,a,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},tM=new on("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),z_e=new on("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),RF=new on("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),MF=new on("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),H_e=new on("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),V_e=new on("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),W_e=new on("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),U_e=new on("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),q_e=new on("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),G_e=new on("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K_e=new on("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Y_e=new on("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),X_e={zoom:{inKeyframes:tM,outKeyframes:z_e},"zoom-big":{inKeyframes:RF,outKeyframes:MF},"zoom-big-fast":{inKeyframes:RF,outKeyframes:MF},"zoom-left":{inKeyframes:W_e,outKeyframes:U_e},"zoom-right":{inKeyframes:q_e,outKeyframes:G_e},"zoom-up":{inKeyframes:H_e,outKeyframes:V_e},"zoom-down":{inKeyframes:K_e,outKeyframes:Y_e}},yv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=X_e[t];return[ck(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Q_e=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:p,colorTextDisabled:v,fontSizeLG:h,lineHeight:g,lineHeightLG:w,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:C,motionDurationSlow:S,fontSizeIcon:k,contentPadding:_,fontHeight:$,fontHeightLG:E}=e,T=`${ae(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},mn(e)),{backgroundColor:i,border:T,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:T,"&:first-child":{[` + &, + & > ${t}-header`]:{borderRadius:`${ae(l)} ${ae(l)} 0 0`}},"&:last-child":{[` + &, + & > ${t}-header`]:{borderRadius:`0 0 ${ae(l)} ${ae(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:g,cursor:"pointer",transition:`all ${S}, visibility 0s`},Va(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},jf()),{fontSize:k,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:T,[`& > ${t}-content-box`]:{padding:_},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:w,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:E,marginInlineStart:e.calc(x).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${ae(l)} ${ae(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:v,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},J_e=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Z_e=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[` + > ${t}-item:last-child, + > ${t}-item:last-child ${t}-header + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},e$e=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},t$e=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),n$e=sn("Collapse",e=>{const t=Kt(e,{collapseHeaderPaddingSM:`${ae(e.paddingXS)} ${ae(e.paddingSM)}`,collapseHeaderPaddingLG:`${ae(e.padding)} ${ae(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Q_e(t),Z_e(t),e$e(t),J_e(t),C1(t)]},t$e),r$e=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=c.useContext(xt),{prefixCls:a,className:o,rootClassName:s,style:l,bordered:u=!0,ghost:d,size:f,expandIconPosition:m="start",children:p,expandIcon:v}=e,h=Br(T=>{var M;return(M=f??T)!==null&&M!==void 0?M:"middle"}),g=n("collapse",a),w=n(),[b,y,x]=n$e(g),C=c.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),S=v??(i==null?void 0:i.expandIcon),k=c.useCallback(function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=typeof S=="function"?S(T):c.createElement(Js,{rotate:T.isActive?r==="rtl"?-90:90:void 0,"aria-label":T.isActive?"expanded":"collapsed"});return qr(M,()=>{var j;return{className:ne((j=M==null?void 0:M.props)===null||j===void 0?void 0:j.className,`${g}-arrow`)}})},[S,g]),_=ne(`${g}-icon-position-${C}`,{[`${g}-borderless`]:!u,[`${g}-rtl`]:r==="rtl",[`${g}-ghost`]:!!d,[`${g}-${h}`]:h!=="middle"},i==null?void 0:i.className,o,s,y,x),$=Object.assign(Object.assign({},Mp(w)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),E=c.useMemo(()=>p?Wr(p).map((T,M)=>{var j,I;const N=T.props;if(N!=null&&N.disabled){const O=(j=T.key)!==null&&j!==void 0?j:String(M),D=Object.assign(Object.assign({},_n(T.props,["disabled"])),{key:O,collapsible:(I=N.collapsible)!==null&&I!==void 0?I:"disabled"});return qr(T,D)}return T}):null,[p]);return b(c.createElement(ZR,Object.assign({ref:t,openMotion:$},_n(e,["rootClassName"]),{expandIcon:k,prefixCls:g,className:_,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),E))}),i$e=Object.assign(r$e,{Panel:S_e}),oa=e=>e instanceof fo?e:new fo(e),Ow=e=>Math.round(Number(e||0)),nM=e=>Ow(e.toHsb().a*100),Iw=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,oa(r)}return n.a=1,oa(n)},vQ=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Fe(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(oa),t)),hQ=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),o=new Qs(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},NF=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},a$e=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[a]=la("ColorPicker"),[,o]=Gr(),[s]=Ut(uE(n),{value:uE(n),postState:uE}),l=`${t}-presets`,u=c.useMemo(()=>s.reduce((m,p,v)=>{const{defaultOpen:h=!0}=p;return h&&m.push(NF(p,v)),m},[]),[s]),d=m=>{i==null||i(m)},f=s.map((m,p)=>{var v;return{key:NF(m,p),label:L.createElement("div",{className:`${l}-label`},m==null?void 0:m.label),children:L.createElement("div",{className:`${l}-items`},Array.isArray(m==null?void 0:m.colors)&&((v=m.colors)===null||v===void 0?void 0:v.length)>0?m.colors.map((h,g)=>L.createElement(JR,{key:`preset-${g}-${h.toHexString()}`,color:oa(h).toRgbString(),prefixCls:t,className:ne(`${l}-color`,{[`${l}-color-checked`]:h.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:hQ(h,o.colorBgElevated)}),onClick:()=>d(h)})):L.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return L.createElement("div",{className:l},L.createElement(i$e,{defaultActiveKey:u,ghost:!0,items:f}))},gQ=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Kt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},bQ=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(i=e.contentLineHeight)!==null&&i!==void 0?i:Pw(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:Pw(l),m=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:Pw(u),p=hQ(new fo(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},o$e=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:jf(),"> a":{color:"currentColor"},"&:not(:disabled)":Va(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${a} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},yQ=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),s$e=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),l$e=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),c$e=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),rM=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},yQ(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),u$e=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},c$e(e))}),d$e=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),pk=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?d$e:u$e;return Object.assign(Object.assign({},a(e)),yQ(e.componentCls,t,n))},vk=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},pk(e,r,i))}),hk=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},pk(e,r,i))}),gk=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),bk=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},pk(e,n,r))}),qu=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},pk(e,r,i,n))}),f$e=e=>{const{componentCls:t}=e;return Cf.reduce((n,r)=>{const i=e[`${r}6`],a=e[`${r}1`],o=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],u=e[`${r}7`],d=`0 ${ae(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:d},vk(e,e.colorTextLightSolid,i,{background:o},{background:u})),hk(e,i,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),gk(e)),bk(e,a,{background:s},{background:l})),qu(e,i,"link",{color:o},{color:u})),qu(e,i,"text",{color:o,background:a},{color:u,background:l}))})},{})},m$e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},vk(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),gk(e)),bk(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),qu(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),rM(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),p$e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},hk(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),gk(e)),bk(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),qu(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),rM(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),v$e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},vk(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),hk(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gk(e)),bk(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),qu(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),qu(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),rM(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),h$e=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:m$e(e),[`${t}-color-primary`]:p$e(e),[`${t}-color-dangerous`]:v$e(e)},f$e(e))},g$e=e=>Object.assign(Object.assign(Object.assign(Object.assign({},hk(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),qu(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),vk(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),qu(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),iM=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:i,height:r,padding:`${ae(l)} ${ae(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:s$e(e)},{[`${n}${n}-round${t}`]:l$e(e)}]},b$e=e=>{const t=Kt(e,{fontSize:e.contentFontSize});return iM(t,e.componentCls)},y$e=e=>{const t=Kt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return iM(t,`${e.componentCls}-sm`)},w$e=e=>{const t=Kt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return iM(t,`${e.componentCls}-lg`)},x$e=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},S$e=sn("Button",e=>{const t=gQ(e);return[o$e(t),b$e(t),y$e(t),w$e(t),x$e(t),h$e(t),g$e(t),Jke(t)]},bQ,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function C$e(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function k$e(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Af(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},C$e(e,r,t)),k$e(n,r,t))}}function _$e(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function $$e(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function E$e(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_$e(e,t)),$$e(e.componentCls,t))}}const P$e=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},T$e=Ff(["Button","compact"],e=>{const t=gQ(e);return[Af(t),E$e(t),P$e(t)]},bQ);var O$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a;const{loading:o=!1,prefixCls:s,color:l,variant:u,type:d,danger:f=!1,shape:m="default",size:p,styles:v,disabled:h,className:g,rootClassName:w,children:b,icon:y,iconPosition:x="start",ghost:C=!1,block:S=!1,htmlType:k="button",classNames:_,style:$={},autoInsertSpace:E,autoFocus:T}=e,M=O$e(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),j=d||"default",[I,N]=c.useMemo(()=>{if(l&&u)return[l,u];const xe=R$e[j]||[];return f?["danger",xe[1]]:xe},[d,l,u,f]),D=I==="danger"?"dangerous":I,{getPrefixCls:F,direction:z,button:R}=c.useContext(xt),H=(n=E??(R==null?void 0:R.autoInsertSpace))!==null&&n!==void 0?n:!0,V=F("btn",s),[B,W,q]=S$e(V),Q=c.useContext(Ur),G=h??Q,X=c.useContext(aQ),re=c.useMemo(()=>I$e(o),[o]),[K,Y]=c.useState(re.loading),[Z,J]=c.useState(!1),ee=c.useRef(null),te=Yl(t,ee),le=c.Children.count(b)===1&&!y&&!oE(N),oe=c.useRef(!0);L.useEffect(()=>(oe.current=!1,()=>{oe.current=!0}),[]),c.useEffect(()=>{let xe=null;re.delay>0?xe=setTimeout(()=>{xe=null,Y(!0)},re.delay):Y(re.loading);function ye(){xe&&(clearTimeout(xe),xe=null)}return ye},[re]),c.useEffect(()=>{if(!ee.current||!H)return;const xe=ee.current.textContent||"";le&&CT(xe)?Z||J(!0):Z&&J(!1)}),c.useEffect(()=>{T&&ee.current&&ee.current.focus()},[]);const de=L.useCallback(xe=>{var ye;if(K||G){xe.preventDefault();return}(ye=e.onClick)===null||ye===void 0||ye.call(e,xe)},[e.onClick,K,G]),{compactSize:pe,compactItemClassnames:we}=ol(V,z),fe={large:"lg",small:"sm",middle:void 0},ge=Br(xe=>{var ye,Te;return(Te=(ye=p??pe)!==null&&ye!==void 0?ye:X)!==null&&Te!==void 0?Te:xe}),ue=ge&&(r=fe[ge])!==null&&r!==void 0?r:"",ce=K?"loading":y,$e=_n(M,["navigate"]),se=ne(V,W,q,{[`${V}-${m}`]:m!=="default"&&m,[`${V}-${j}`]:j,[`${V}-dangerous`]:f,[`${V}-color-${D}`]:D,[`${V}-variant-${N}`]:N,[`${V}-${ue}`]:ue,[`${V}-icon-only`]:!b&&b!==0&&!!ce,[`${V}-background-ghost`]:C&&!oE(N),[`${V}-loading`]:K,[`${V}-two-chinese-chars`]:Z&&H&&!K,[`${V}-block`]:S,[`${V}-rtl`]:z==="rtl",[`${V}-icon-end`]:x==="end"},we,g,w,R==null?void 0:R.className),ve=Object.assign(Object.assign({},R==null?void 0:R.style),$),he=ne(_==null?void 0:_.icon,(i=R==null?void 0:R.classNames)===null||i===void 0?void 0:i.icon),_e=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),((a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.icon)||{}),Se=y&&!K?L.createElement(kT,{prefixCls:V,className:he,style:_e},y):typeof o=="object"&&o.icon?L.createElement(kT,{prefixCls:V,className:he,style:_e},o.icon):L.createElement(Qke,{existIcon:!!y,prefixCls:V,loading:K,mount:oe.current}),Pe=b||b===0?Xke(b,le&&H):null;if($e.href!==void 0)return B(L.createElement("a",Object.assign({},$e,{className:ne(se,{[`${V}-disabled`]:G}),href:G?void 0:$e.href,style:ve,onClick:de,ref:te,tabIndex:G?-1:0}),Se,Pe));let De=L.createElement("button",Object.assign({},M,{type:k,className:se,style:ve,onClick:de,disabled:G,ref:te}),Se,Pe,we&&L.createElement(T$e,{prefixCls:V}));return oE(N)||(De=L.createElement(S1,{component:"Button",disabled:K},De)),B(De)}),dn=M$e;dn.Group=Kke;dn.__ANT_BUTTON=!0;function dE(e){return!!(e!=null&&e.then)}const wQ=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:u,actionFn:d}=e,f=c.useRef(!1),m=c.useRef(null),[p,v]=Sf(!1),h=function(){a==null||a.apply(void 0,arguments)};c.useEffect(()=>{let b=null;return o&&(b=setTimeout(()=>{var y;(y=m.current)===null||y===void 0||y.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[]);const g=b=>{dE(b)&&(v(!0),b.then(function(){v(!1,!0),h.apply(void 0,arguments),f.current=!1},y=>{if(v(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(y)}))},w=b=>{if(f.current)return;if(f.current=!0,!d){h();return}let y;if(s){if(y=d(b),u&&!dE(y)){f.current=!1,h(b);return}}else if(d.length)y=d(a),f.current=!1;else if(y=d(),!dE(y)){h();return}g(y)};return c.createElement(dn,Object.assign({},oQ(t),{onClick:w,loading:p,prefixCls:r},i,{ref:m}),n)},k1=L.createContext({}),{Provider:xQ}=k1,DF=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:l}=c.useContext(k1);return i?L.createElement(wQ,{isSilent:r,actionFn:s,close:function(){o==null||o.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},jF=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:l}=c.useContext(k1);return L.createElement(wQ,{isSilent:n,type:o||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},a)};var SQ=c.createContext(null),FF=[];function N$e(e,t){var n=c.useState(function(){if(!ya())return null;var v=document.createElement("div");return v}),r=ie(n,1),i=r[0],a=c.useRef(!1),o=c.useContext(SQ),s=c.useState(FF),l=ie(s,2),u=l[0],d=l[1],f=o||(a.current?void 0:function(v){d(function(h){var g=[v].concat(Fe(h));return g})});function m(){i.parentElement||document.body.appendChild(i),a.current=!0}function p(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),a.current=!1}return nn(function(){return e?o?o(m):m():p(),p},[e]),nn(function(){u.length&&(u.forEach(function(v){return v()}),d(FF))},[u]),[i,f]}var fE;function CQ(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";ek(` +#`.concat(t,`::-webkit-scrollbar { +`).concat(d,` +`).concat(f,` +}`),t)}catch(v){console.error(v),i=l,a=u}}document.body.appendChild(n);var m=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,p=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),mT(t),{width:m,height:p}}function AF(e){return typeof document>"u"?0:(fE===void 0&&(fE=CQ()),fE.width)}function _T(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:CQ(e)}function D$e(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var j$e="rc-util-locker-".concat(Date.now()),LF=0;function F$e(e){var t=!!e,n=c.useState(function(){return LF+=1,"".concat(j$e,"_").concat(LF)}),r=ie(n,1),i=r[0];nn(function(){if(t){var a=_T(document.body).width,o=D$e();ek(` +html body { + overflow-y: hidden; + `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",` +}`),i)}else mT(i);return function(){mT(i)}},[t,i])}var A$e=!1;function L$e(e){return A$e}var BF=function(t){return t===!1?!1:!ya()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},_1=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,l=c.useState(n),u=ie(l,2),d=u[0],f=u[1],m=d||n;c.useEffect(function(){(o||n)&&f(n)},[n,o]);var p=c.useState(function(){return BF(i)}),v=ie(p,2),h=v[0],g=v[1];c.useEffect(function(){var T=BF(i);g(T??null)});var w=N$e(m&&!h),b=ie(w,2),y=b[0],x=b[1],C=h??y;F$e(r&&n&&ya()&&(C===y||C===document.body));var S=null;if(s&&Gs(s)&&t){var k=s;S=k.ref}var _=Yl(S,t);if(!m||!ya()||h===void 0)return null;var $=C===!1||L$e(),E=s;return t&&(E=c.cloneElement(s,{ref:_})),c.createElement(SQ.Provider,{value:x},$?E:ki.createPortal(E,C))}),kQ=c.createContext({});function B$e(){var e=A({},lf);return e.useId}var zF=0,HF=B$e();const yk=HF?function(t){var n=HF();return t||n}:function(t){var n=c.useState("ssr-id"),r=ie(n,2),i=r[0],a=r[1];return c.useEffect(function(){var o=zF;zF+=1,a("rc_unique_".concat(o))},[]),t||i};function VF(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function WF(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function z$e(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=WF(i),n.top+=WF(i,!0),n}const H$e=c.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var V$e={width:0,height:0,overflow:"hidden",outline:"none"},W$e={outline:"none"},_Q=L.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,o=e.ariaId,s=e.footer,l=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,p=e.bodyProps,v=e.modalRender,h=e.onMouseDown,g=e.onMouseUp,w=e.holderRef,b=e.visible,y=e.forceRender,x=e.width,C=e.height,S=e.classNames,k=e.styles,_=L.useContext(kQ),$=_.panel,E=Yl(w,$),T=c.useRef(),M=c.useRef();L.useImperativeHandle(t,function(){return{focus:function(){var V;(V=T.current)===null||V===void 0||V.focus({preventScroll:!0})},changeActive:function(V){var B=document,W=B.activeElement;V&&W===M.current?T.current.focus({preventScroll:!0}):!V&&W===T.current&&M.current.focus({preventScroll:!0})}}});var j={};x!==void 0&&(j.width=x),C!==void 0&&(j.height=C);var I=s?L.createElement("div",{className:ne("".concat(n,"-footer"),S==null?void 0:S.footer),style:A({},k==null?void 0:k.footer)},s):null,N=a?L.createElement("div",{className:ne("".concat(n,"-header"),S==null?void 0:S.header),style:A({},k==null?void 0:k.header)},L.createElement("div",{className:"".concat(n,"-title"),id:o},a)):null,O=c.useMemo(function(){return mt(l)==="object"&&l!==null?l:l?{closeIcon:u??L.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,u,n]),D=er(O,!0),F=mt(l)==="object"&&l.disabled,z=l?L.createElement("button",Ee({type:"button",onClick:d,"aria-label":"Close"},D,{className:"".concat(n,"-close"),disabled:F}),O.closeIcon):null,R=L.createElement("div",{className:ne("".concat(n,"-content"),S==null?void 0:S.content),style:k==null?void 0:k.content},z,N,L.createElement("div",Ee({className:ne("".concat(n,"-body"),S==null?void 0:S.body),style:A(A({},m),k==null?void 0:k.body)},p),f),I);return L.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?o:null,"aria-modal":"true",ref:E,style:A(A({},i),j),className:ne(n,r),onMouseDown:h,onMouseUp:g},L.createElement("div",{ref:T,tabIndex:0,style:W$e},L.createElement(H$e,{shouldUpdate:b||y},v?v(R):R)),L.createElement("div",{tabIndex:0,ref:M,style:V$e}))}),$Q=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,p=c.useRef(),v=c.useState(),h=ie(v,2),g=h[0],w=h[1],b={};g&&(b.transformOrigin=g);function y(){var x=z$e(p.current);w(m&&(m.x||m.y)?"".concat(m.x-x.left,"px ").concat(m.y-x.top,"px"):"")}return c.createElement(ti,{visible:o,onVisibleChanged:f,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:u,removeOnLeave:l,ref:p},function(x,C){var S=x.className,k=x.style;return c.createElement(_Q,Ee({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:C,style:A(A(A({},k),i),b),className:ne(a,S)}))})});$Q.displayName="Content";var U$e=function(t){var n=t.prefixCls,r=t.style,i=t.visible,a=t.maskProps,o=t.motionName,s=t.className;return c.createElement(ti,{key:"mask",visible:i,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,u){var d=l.className,f=l.style;return c.createElement("div",Ee({ref:u,style:A(A({},f),r),className:ne("".concat(n,"-mask"),d,s)},a))})},q$e=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,a=t.visible,o=a===void 0?!1:a,s=t.keyboard,l=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,p=t.wrapProps,v=t.onClose,h=t.afterOpenChange,g=t.afterClose,w=t.transitionName,b=t.animation,y=t.closable,x=y===void 0?!0:y,C=t.mask,S=C===void 0?!0:C,k=t.maskTransitionName,_=t.maskAnimation,$=t.maskClosable,E=$===void 0?!0:$,T=t.maskStyle,M=t.maskProps,j=t.rootClassName,I=t.classNames,N=t.styles,O=c.useRef(),D=c.useRef(),F=c.useRef(),z=c.useState(o),R=ie(z,2),H=R[0],V=R[1],B=yk();function W(){dT(D.current,document.activeElement)||(O.current=document.activeElement)}function q(){if(!dT(D.current,document.activeElement)){var te;(te=F.current)===null||te===void 0||te.focus()}}function Q(te){if(te)q();else{if(V(!1),S&&O.current&&d){try{O.current.focus({preventScroll:!0})}catch{}O.current=null}H&&(g==null||g())}h==null||h(te)}function G(te){v==null||v(te)}var X=c.useRef(!1),re=c.useRef(),K=function(){clearTimeout(re.current),X.current=!0},Y=function(){re.current=setTimeout(function(){X.current=!1})},Z=null;E&&(Z=function(le){X.current?X.current=!1:D.current===le.target&&G(le)});function J(te){if(l&&te.keyCode===qe.ESC){te.stopPropagation(),G(te);return}o&&te.keyCode===qe.TAB&&F.current.changeActive(!te.shiftKey)}c.useEffect(function(){o&&(V(!0),W())},[o]),c.useEffect(function(){return function(){clearTimeout(re.current)}},[]);var ee=A(A(A({zIndex:i},f),N==null?void 0:N.wrapper),{},{display:H?null:"none"});return c.createElement("div",Ee({className:ne("".concat(r,"-root"),j)},er(t,{data:!0})),c.createElement(U$e,{prefixCls:r,visible:S&&o,motionName:VF(r,k,_),style:A(A({zIndex:i},T),N==null?void 0:N.mask),maskProps:M,className:I==null?void 0:I.mask}),c.createElement("div",Ee({tabIndex:-1,onKeyDown:J,className:ne("".concat(r,"-wrap"),m,I==null?void 0:I.wrapper),ref:D,onClick:Z,style:ee},p),c.createElement($Q,Ee({},t,{onMouseDown:K,onMouseUp:Y,ref:F,closable:x,ariaId:B,prefixCls:r,visible:o&&H,onClose:G,onVisibleChanged:Q,motionName:VF(r,w,b)}))))},aM=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,a=t.destroyOnClose,o=a===void 0?!1:a,s=t.afterClose,l=t.panelRef,u=c.useState(n),d=ie(u,2),f=d[0],m=d[1],p=c.useMemo(function(){return{panel:l}},[l]);return c.useEffect(function(){n&&m(!0)},[n]),!i&&o&&!f?null:c.createElement(kQ.Provider,{value:p},c.createElement(_1,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},c.createElement(q$e,Ee({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),m(!1)}}))))};aM.displayName="Dialog";var Fd="RC_FORM_INTERNAL_HOOKS",lr=function(){An(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Gu=c.createContext({getFieldValue:lr,getFieldsValue:lr,getFieldError:lr,getFieldWarning:lr,getFieldsError:lr,isFieldsTouched:lr,isFieldTouched:lr,isFieldValidating:lr,isFieldsValidating:lr,resetFields:lr,setFields:lr,setFieldValue:lr,setFieldsValue:lr,validateFields:lr,submit:lr,getInternalHooks:function(){return lr(),{dispatch:lr,initEntityValue:lr,registerField:lr,useSubscribe:lr,setInitialValues:lr,destroyForm:lr,setCallbacks:lr,registerWatch:lr,getFields:lr,setValidateMessages:lr,setPreserve:lr,getInitialValue:lr}}}),g0=c.createContext(null);function $T(e){return e==null?[]:Array.isArray(e)?e:[e]}function G$e(e){return e&&!!e._init}function ET(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var PT=ET();function K$e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Y$e(e,t,n){if(q2())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&u0(i,n.prototype),i}function TT(e){var t=typeof Map=="function"?new Map:void 0;return TT=function(r){if(r===null||!K$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Y$e(r,arguments,bf(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),u0(i,r)},TT(e)}var X$e=/%[sdj%]/g,Q$e=function(){};function OT(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function J$e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function _i(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||J$e(t)&&typeof e=="string"&&!e)}function Z$e(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,Fe(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function UF(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?i.push(mo(a.messages[f].max,t.fullField,t.max)):s&&l&&(dt.max)&&i.push(mo(a.messages[f].range,t.fullField,t.min,t.max))},EQ=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||_i(n,o||t.type))&&i.push(mo(a.messages.required,t.fullField))},Qb;const sEe=function(){if(Qb)return Qb;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(o,"$")),d=function(S){return S&&S.exact?s:new RegExp("(?:".concat(t(S)).concat(n).concat(t(S),")|(?:").concat(t(S)).concat(o).concat(t(S),")"),"g")};d.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?u:new RegExp("".concat(t(C)).concat(o).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,v=d.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(p,"|").concat(v,"|").concat(h).concat(g).concat(w,")").concat(b).concat(y);return Qb=new RegExp("(?:^".concat(x,"$)"),"i"),Qb};var YF={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},qh={integer:function(t){return qh.number(t)&&parseInt(t,10)===t},float:function(t){return qh.number(t)&&!qh.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return mt(t)==="object"&&!qh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(YF.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(sEe())},hex:function(t){return typeof t=="string"&&!!t.match(YF.hex)}},lEe=function(t,n,r,i,a){if(t.required&&n===void 0){EQ(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?qh[s](n)||i.push(mo(a.messages.types[s],t.fullField,t.type)):s&&mt(n)!==t.type&&i.push(mo(a.messages.types[s],t.fullField,t.type))},cEe=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(mo(a.messages.whitespace,t.fullField))};const Nn={required:EQ,whitespace:cEe,type:lEe,range:oEe,enum:iEe,pattern:aEe};var uEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n)&&!t.required)return r();Nn.required(t,n,i,o,a)}r(o)},dEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Nn.required(t,n,i,o,a,"array"),n!=null&&(Nn.type(t,n,i,o,a),Nn.range(t,n,i,o,a))}r(o)},fEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n)&&!t.required)return r();Nn.required(t,n,i,o,a),n!==void 0&&Nn.type(t,n,i,o,a)}r(o)},mEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n,"date")&&!t.required)return r();if(Nn.required(t,n,i,o,a),!_i(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Nn.type(t,l,i,o,a),l&&Nn.range(t,l.getTime(),i,o,a)}}r(o)},pEe="enum",vEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n)&&!t.required)return r();Nn.required(t,n,i,o,a),n!==void 0&&Nn[pEe](t,n,i,o,a)}r(o)},hEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n)&&!t.required)return r();Nn.required(t,n,i,o,a),n!==void 0&&(Nn.type(t,n,i,o,a),Nn.range(t,n,i,o,a))}r(o)},gEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n)&&!t.required)return r();Nn.required(t,n,i,o,a),n!==void 0&&(Nn.type(t,n,i,o,a),Nn.range(t,n,i,o,a))}r(o)},bEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n)&&!t.required)return r();Nn.required(t,n,i,o,a),n!==void 0&&Nn.type(t,n,i,o,a)}r(o)},yEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),_i(n)&&!t.required)return r();Nn.required(t,n,i,o,a),n!==void 0&&(Nn.type(t,n,i,o,a),Nn.range(t,n,i,o,a))}r(o)},wEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n)&&!t.required)return r();Nn.required(t,n,i,o,a),n!==void 0&&Nn.type(t,n,i,o,a)}r(o)},xEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n,"string")&&!t.required)return r();Nn.required(t,n,i,o,a),_i(n,"string")||Nn.pattern(t,n,i,o,a)}r(o)},SEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n)&&!t.required)return r();Nn.required(t,n,i,o,a),_i(n)||Nn.type(t,n,i,o,a)}r(o)},CEe=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":mt(n);Nn.required(t,n,i,o,a,s),r(o)},kEe=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(_i(n,"string")&&!t.required)return r();Nn.required(t,n,i,o,a,"string"),_i(n,"string")||(Nn.type(t,n,i,o,a),Nn.range(t,n,i,o,a),Nn.pattern(t,n,i,o,a),t.whitespace===!0&&Nn.whitespace(t,n,i,o,a))}r(o)},mE=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(_i(n,o)&&!t.required)return r();Nn.required(t,n,i,s,a,o),_i(n,o)||Nn.type(t,n,i,s,a)}r(s)};const yg={string:kEe,method:bEe,number:yEe,boolean:fEe,regexp:SEe,integer:gEe,float:hEe,array:dEe,object:wEe,enum:vEe,pattern:xEe,date:mEe,url:mE,hex:mE,email:mE,required:CEe,any:uEe};var $1=function(){function e(t){Kn(this,e),U(this,"rules",null),U(this,"_messages",PT),this.define(t)}return Yn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(mt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=KF(ET(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function u(v){var h=[],g={};function w(y){if(Array.isArray(y)){var x;h=(x=h).concat.apply(x,Fe(y))}else h.push(y)}for(var b=0;b0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(k)?k:[k];!s.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&g.message!==void 0&&(_=[].concat(g.message));var $=_.map(GF(g,o));if(s.first&&$.length)return p[g.field]=1,h($);if(!w)h($);else{if(g.required&&!v.value)return g.message!==void 0?$=[].concat(g.message).map(GF(g,o)):s.error&&($=[s.error(g,mo(s.messages.required,g.field))]),h($);var E={};g.defaultField&&Object.keys(v.value).map(function(j){E[j]=g.defaultField}),E=A(A({},E),v.rule.fields);var T={};Object.keys(E).forEach(function(j){var I=E[j],N=Array.isArray(I)?I:[I];T[j]=N.map(b.bind(null,j))});var M=new e(T);M.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),M.validate(v.value,v.rule.options||s,function(j){var I=[];$&&$.length&&I.push.apply(I,Fe($)),j&&j.length&&I.push.apply(I,Fe(j)),h(I.length?I:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,v.value,y,v.source,s);else if(g.validator){try{x=g.validator(g,v.value,y,v.source,s)}catch(k){var C,S;(C=(S=console).error)===null||C===void 0||C.call(S,k),s.suppressValidatorError||setTimeout(function(){throw k},0),y(k.message)}x===!0?y():x===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?y(x):x instanceof Error&&y(x.message)}x&&x.then&&x.then(function(){return y()},function(k){return y(k)})},function(v){u(v)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!yg.hasOwnProperty(n.type))throw new Error(mo("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?yg.required:yg[this.getType(n)]||void 0}}]),e}();U($1,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");yg[t]=n});U($1,"warning",Q$e);U($1,"messages",PT);U($1,"validators",yg);var Qa="'${name}' is not a valid ${type}",PQ={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Qa,method:Qa,array:Qa,object:Qa,number:Qa,date:Qa,boolean:Qa,integer:Qa,float:Qa,regexp:Qa,email:Qa,url:Qa,hex:Qa},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},XF=$1;function _Ee(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var QF="CODE_LOGIC_ERROR";function IT(e,t,n,r,i){return RT.apply(this,arguments)}function RT(){return RT=Oi(Tn().mark(function e(t,n,r,i,a){var o,s,l,u,d,f,m,p,v;return Tn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=A({},r),delete o.ruleIndex,XF.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(QF)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),u=new XF(U({},t,[o])),d=Am(PQ,i.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(U({},t,n),A({},i)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(w,b){var y=w.message,x=y===QF?d.default:y;return c.isValidElement(x)?c.cloneElement(x,{key:"error_".concat(b)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(w,b){return IT("".concat(t,".").concat(b),w,l,i,a)}));case 21:return m=g.sent,g.abrupt("return",m.reduce(function(w,b){return[].concat(Fe(w),Fe(b))},[]));case 23:return p=A(A({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),v=f.map(function(w){return typeof w=="string"?_Ee(w,p):w}),g.abrupt("return",v);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),RT.apply(this,arguments)}function $Ee(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(d,f){var m=d.validator,p=A(A({},d),{},{ruleIndex:f});return m&&(p.validator=function(v,h,g){var w=!1,b=function(){for(var C=arguments.length,S=new Array(C),k=0;k2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return TQ(t,r,n)})}function TQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function TEe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||mt(e)!=="object"||mt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Fe(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function OEe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&mt(t.target)==="object"&&e in t.target?t.target[e]:t}function ZF(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(Fe(e.slice(0,n)),[i],Fe(e.slice(n,t)),Fe(e.slice(t+1,r))):a<0?[].concat(Fe(e.slice(0,t)),Fe(e.slice(t+1,n+1)),[i],Fe(e.slice(n+1,r))):e}var IEe=["name"],Do=[];function pE(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var oM=function(e){Io(n,e);var t=ps(n);function n(r){var i;if(Kn(this,n),i=t.call(this,r),U(It(i),"state",{resetCount:0}),U(It(i),"cancelRegisterFunc",null),U(It(i),"mounted",!1),U(It(i),"touched",!1),U(It(i),"dirty",!1),U(It(i),"validatePromise",void 0),U(It(i),"prevValidating",void 0),U(It(i),"errors",Do),U(It(i),"warnings",Do),U(It(i),"cancelRegister",function(){var l=i.props,u=l.preserve,d=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,u,Xr(f)),i.cancelRegisterFunc=null}),U(It(i),"getNamePath",function(){var l=i.props,u=l.name,d=l.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(Fe(m),Fe(u)):[]}),U(It(i),"getRules",function(){var l=i.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),U(It(i),"refresh",function(){i.mounted&&i.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),U(It(i),"metaCache",null),U(It(i),"triggerMetaEvent",function(l){var u=i.props.onMetaChange;if(u){var d=A(A({},i.getMeta()),{},{destroy:l});is(i.metaCache,d)||u(d),i.metaCache=d}else i.metaCache=null}),U(It(i),"onStoreChange",function(l,u,d){var f=i.props,m=f.shouldUpdate,p=f.dependencies,v=p===void 0?[]:p,h=f.onReset,g=d.store,w=i.getNamePath(),b=i.getValue(l),y=i.getValue(g),x=u&&ip(u,w);switch(d.type==="valueUpdate"&&d.source==="external"&&!is(b,y)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Do,i.warnings=Do,i.triggerMetaEvent()),d.type){case"reset":if(!u||x){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Do,i.warnings=Do,i.triggerMetaEvent(),h==null||h(),i.refresh();return}break;case"remove":{if(m&&pE(m,l,g,b,y,d)){i.reRender();return}break}case"setField":{var C=d.data;if(x){"touched"in C&&(i.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(i.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(i.errors=C.errors||Do),"warnings"in C&&(i.warnings=C.warnings||Do),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in C&&ip(u,w,!0)){i.reRender();return}if(m&&!w.length&&pE(m,l,g,b,y,d)){i.reRender();return}break}case"dependenciesUpdate":{var S=v.map(Xr);if(S.some(function(k){return ip(d.relatedFields,k)})){i.reRender();return}break}default:if(x||(!v.length||w.length||m)&&pE(m,l,g,b,y,d)){i.reRender();return}break}m===!0&&i.reRender()}),U(It(i),"validateRules",function(l){var u=i.getNamePath(),d=i.getValue(),f=l||{},m=f.triggerName,p=f.validateOnly,v=p===void 0?!1:p,h=Promise.resolve().then(Oi(Tn().mark(function g(){var w,b,y,x,C,S,k;return Tn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(i.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(w=i.props,b=w.validateFirst,y=b===void 0?!1:b,x=w.messageVariables,C=w.validateDebounce,S=i.getRules(),m&&(S=S.filter(function(E){return E}).filter(function(E){var T=E.validateTrigger;if(!T)return!0;var M=$T(T);return M.includes(m)})),!(C&&m)){$.next=10;break}return $.next=8,new Promise(function(E){setTimeout(E,C)});case 8:if(i.validatePromise===h){$.next=10;break}return $.abrupt("return",[]);case 10:return k=$Ee(u,d,S,l,y,x),k.catch(function(E){return E}).then(function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Do;if(i.validatePromise===h){var T;i.validatePromise=null;var M=[],j=[];(T=E.forEach)===null||T===void 0||T.call(E,function(I){var N=I.rule.warningOnly,O=I.errors,D=O===void 0?Do:O;N?j.push.apply(j,Fe(D)):M.push.apply(M,Fe(D))}),i.errors=M,i.warnings=j,i.triggerMetaEvent(),i.reRender()}}),$.abrupt("return",k);case 13:case"end":return $.stop()}},g)})));return v||(i.validatePromise=h,i.dirty=!0,i.errors=Do,i.warnings=Do,i.triggerMetaEvent(),i.reRender()),h}),U(It(i),"isFieldValidating",function(){return!!i.validatePromise}),U(It(i),"isFieldTouched",function(){return i.touched}),U(It(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,u=l.getInternalHooks(Fd),d=u.getInitialValue;return d(i.getNamePath())!==void 0}),U(It(i),"getErrors",function(){return i.errors}),U(It(i),"getWarnings",function(){return i.warnings}),U(It(i),"isListField",function(){return i.props.isListField}),U(It(i),"isList",function(){return i.props.isList}),U(It(i),"isPreserve",function(){return i.props.preserve}),U(It(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),U(It(i),"getOnlyChild",function(l){if(typeof l=="function"){var u=i.getMeta();return A(A({},i.getOnlyChild(l(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var d=Wr(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),U(It(i),"getValue",function(l){var u=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return Ti(l||u(!0),d)}),U(It(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,d=u.name,f=u.trigger,m=u.validateTrigger,p=u.getValueFromEvent,v=u.normalize,h=u.valuePropName,g=u.getValueProps,w=u.fieldContext,b=m!==void 0?m:w.validateTrigger,y=i.getNamePath(),x=w.getInternalHooks,C=w.getFieldsValue,S=x(Fd),k=S.dispatch,_=i.getValue(),$=g||function(I){return U({},h,I)},E=l[f],T=d!==void 0?$(_):{},M=A(A({},l),T);M[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var I,N=arguments.length,O=new Array(N),D=0;D=0&&E<=T.length?(d.keys=[].concat(Fe(d.keys.slice(0,E)),[d.id],Fe(d.keys.slice(E))),y([].concat(Fe(T.slice(0,E)),[$],Fe(T.slice(E))))):(d.keys=[].concat(Fe(d.keys),[d.id]),y([].concat(Fe(T),[$]))),d.id+=1},remove:function($){var E=C(),T=new Set(Array.isArray($)?$:[$]);T.size<=0||(d.keys=d.keys.filter(function(M,j){return!T.has(j)}),y(E.filter(function(M,j){return!T.has(j)})))},move:function($,E){if($!==E){var T=C();$<0||$>=T.length||E<0||E>=T.length||(d.keys=ZF(d.keys,$,E),y(ZF(T,$,E)))}}},k=b||[];return Array.isArray(k)||(k=[]),r(k.map(function(_,$){var E=d.keys[$];return E===void 0&&(d.keys[$]=d.id,E=d.keys[$],d.id+=1),{name:$,key:E,isListField:!0}}),S,g)})))}function REe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var IQ="__@field_split__";function vE(e){return e.map(function(t){return"".concat(mt(t),":").concat(t)}).join(IQ)}var sm=function(){function e(){Kn(this,e),U(this,"kvs",new Map)}return Yn(e,[{key:"set",value:function(n,r){this.kvs.set(vE(n),r)}},{key:"get",value:function(n){return this.kvs.get(vE(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(vE(n))}},{key:"map",value:function(n){return Fe(this.kvs.entries()).map(function(r){var i=ie(r,2),a=i[0],o=i[1],s=a.split(IQ);return n({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=ie(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),MEe=["name"],NEe=Yn(function e(t){var n=this;Kn(this,e),U(this,"formHooked",!1),U(this,"forceRootUpdate",void 0),U(this,"subscribable",!0),U(this,"store",{}),U(this,"fieldEntities",[]),U(this,"initialValues",{}),U(this,"callbacks",{}),U(this,"validateMessages",null),U(this,"preserve",null),U(this,"lastValidatePromise",null),U(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),U(this,"getInternalHooks",function(r){return r===Fd?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(An(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),U(this,"useSubscribe",function(r){n.subscribable=r}),U(this,"prevWithoutPreserves",null),U(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=Am(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=va(o,l,Ti(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),U(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new sm;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),U(this,"getInitialValue",function(r){var i=Ti(n.initialValues,r);return r.length?Am(i):i}),U(this,"setCallbacks",function(r){n.callbacks=r}),U(this,"setValidateMessages",function(r){n.validateMessages=r}),U(this,"setPreserve",function(r){n.preserve=r}),U(this,"watchList",[]),U(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),U(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),U(this,"timeoutId",null),U(this,"warningUnhooked",function(){}),U(this,"updateStore",function(r){n.store=r}),U(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),U(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new sm;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),U(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=Xr(a);return i.get(o)||{INVALIDATE_NAME_PATH:Xr(a)}})}),U(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&mt(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return l.forEach(function(d){var f,m,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var v,h;if((v=(h=d).isList)!==null&&v!==void 0&&v.call(h))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!o)u.push(p);else{var g="getMeta"in d?d.getMeta():null;o(g)&&u.push(p)}}),JF(n.store,u.map(Xr))}),U(this,"getFieldValue",function(r){n.warningUnhooked();var i=Xr(r);return Ti(n.store,i)}),U(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Xr(r[o]),errors:[],warnings:[]}})}),U(this,"getFieldError",function(r){n.warningUnhooked();var i=Xr(r),a=n.getFieldsError([i])[0];return a.errors}),U(this,"getFieldWarning",function(r){n.warningUnhooked();var i=Xr(r),a=n.getFieldsError([i])[0];return a.warnings}),U(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new sm,a=n.getFieldEntities(!0);a.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=i.get(d)||new Set;f.add({entity:l,value:u}),i.set(d,f)}});var o=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),p=n.getInitialValue(m);if(p!==void 0)An(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var v=i.get(m);if(v&&v.size>1)An(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=n.getFieldValue(m),g=d.isListField();!g&&(!r.skipExist||h===void 0)&&n.updateStore(va(n.store,m,Fe(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var u=i.get(l);if(u){var d;(d=s).push.apply(d,Fe(Fe(u).map(function(f){return f.entity})))}})):s=a,o(s)}),U(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Am(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Xr);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(va(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),U(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=ut(o,MEe),u=Xr(s);a.push(u),"value"in l&&n.updateStore(va(n.store,u,l.value)),n.notifyObservers(i,[u],{type:"setField",data:o})}),n.notifyWatch(a)}),U(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=A(A({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),U(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Ti(n.store,a);o===void 0&&n.updateStore(va(n.store,a,i))}}),U(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),U(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var u=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(f){return!TQ(f.getNamePath(),i)})){var d=n.store;n.updateStore(va(d,i,u,!0)),n.notifyObservers(d,[i],{type:"remove"}),n.triggerDependenciesUpdate(d,i)}}n.notifyWatch([i])}}),U(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),U(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=A(A({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),U(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(Fe(a))}),a}),U(this,"updateValue",function(r,i){var a=Xr(r),o=n.store;n.updateStore(va(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var u=JF(n.store,[a]);l(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Fe(s)))}),U(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=Am(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),U(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),U(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new sm;n.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=Xr(d);o.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m})})});var s=function l(u){var d=o.get(u)||new Set;d.forEach(function(f){if(!i.has(f)){i.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),l(m))}})};return s(r),a}),U(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new sm;i.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),o.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=o.filter(function(u){var d=u.name;return ip(r,d)});l.length&&a(l,o)}}),U(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(Xr):[],u=[],d=String(Date.now()),f=new Set,m=o||{},p=m.recursive,v=m.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(v&&!b.isFieldDirty())){var y=b.getNamePath();if(f.add(y.join(d)),!s||ip(l,y,p)){var x=b.validateRules(A({validateMessages:A(A({},PQ),n.validateMessages)},o));u.push(x.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var S,k=[],_=[];return(S=C.forEach)===null||S===void 0||S.call(C,function($){var E=$.rule.warningOnly,T=$.errors;E?_.push.apply(_,Fe(T)):k.push.apply(k,Fe(T))}),k.length?Promise.reject({name:y,errors:k,warnings:_}):{name:y,errors:k,warnings:_}}))}}});var h=REe(u);n.lastValidatePromise=h,h.catch(function(b){return b}).then(function(b){var y=b.map(function(x){var C=x.name;return C});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,b)});var g=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var y=b.filter(function(x){return x&&x.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:y,outOfDate:n.lastValidatePromise!==h})});g.catch(function(b){return b});var w=l.filter(function(b){return f.has(b.join(d))});return n.triggerOnFieldsChange(w),g}),U(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function lM(e){var t=c.useRef(),n=c.useState({}),r=ie(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new NEe(a);t.current=o.getForm()}return[t.current]}var DT=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),RQ=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=c.useContext(DT),s=c.useRef({});return c.createElement(DT.Provider,{value:A(A({},o),{},{validateMessages:A(A({},o.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),o.triggerFormChange(u,d)},triggerFormFinish:function(u,d){i&&i(u,{values:d,forms:s.current}),o.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=A(A({},s.current),{},U({},u,d))),o.registerForm(u,d)},unregisterForm:function(u){var d=A({},s.current);delete d[u],s.current=d,o.unregisterForm(u)}})},a)},DEe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],jEe=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,p=m===void 0?"onChange":m,v=t.onValuesChange,h=t.onFieldsChange,g=t.onFinish,w=t.onFinishFailed,b=t.clearOnDestroy,y=ut(t,DEe),x=c.useRef(null),C=c.useContext(DT),S=lM(o),k=ie(S,1),_=k[0],$=_.getInternalHooks(Fd),E=$.useSubscribe,T=$.setInitialValues,M=$.setCallbacks,j=$.setValidateMessages,I=$.setPreserve,N=$.destroyForm;c.useImperativeHandle(n,function(){return A(A({},_),{},{nativeElement:x.current})}),c.useEffect(function(){return C.registerForm(r,_),function(){C.unregisterForm(r)}},[C,_,r]),j(A(A({},C.validateMessages),f)),M({onValuesChange:v,onFieldsChange:function(W){if(C.triggerFormChange(r,W),h){for(var q=arguments.length,Q=new Array(q>1?q-1:0),G=1;G{}}),NQ=c.createContext(null),DQ=e=>{const t=_n(e,["prefixCls"]);return c.createElement(RQ,Object.assign({},t))},cM=c.createContext({prefixCls:""}),ni=c.createContext({}),AEe=e=>{let{children:t,status:n,override:r}=e;const i=c.useContext(ni),a=c.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return c.createElement(ni.Provider,{value:a},t)},jQ=c.createContext(void 0),Zs=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=L.createElement(AEe,{override:!0,status:!0},i)),t&&(i=L.createElement(Wke,null,i)),i};function Dp(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function tA(e){const{closable:t,closeIcon:n}=e||{};return L.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function nA(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{i&&Object.keys(i).forEach(a=>{i[a]!==void 0&&(e[a]=i[a])})}),e}const LEe={};function uM(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:LEe;const r=tA(e),i=tA(t),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,o=L.useMemo(()=>Object.assign({closeIcon:L.createElement(vs,null)},n),[n]),s=L.useMemo(()=>r===!1?!1:r?nA(o,i,r):i===!1?!1:i?nA(o,i):o.closable?o:!1,[r,i,o]);return L.useMemo(()=>{if(s===!1)return[!1,null,a];const{closeIconRender:l}=o,{closeIcon:u}=s;let d=u;if(d!=null){l&&(d=l(u));const f=er(s,!0);Object.keys(f).length&&(d=L.isValidElement(d)?L.cloneElement(d,f):L.createElement("span",Object.assign({},f),d))}return[!0,d,a]},[s,o])}var FQ=function(t){if(ya()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},BEe=function(t,n){if(!FQ(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function jT(e,t){return!Array.isArray(e)&&t!==void 0?BEe(e,t):FQ(e)}const zEe=()=>ya()&&window.document.documentElement,wk=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=ne({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=ne({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=c.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return c.createElement("span",{className:ne(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},HEe=new on("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),xk=e=>({height:e,lineHeight:ae(e)}),ap=e=>Object.assign({width:e},xk(e)),VEe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:HEe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),hE=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},xk(e)),WEe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ap(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ap(i)),[`${t}${t}-sm`]:Object.assign({},ap(a))}},UEe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},hE(t,s)),[`${r}-lg`]:Object.assign({},hE(i,s)),[`${r}-sm`]:Object.assign({},hE(a,s))}},rA=e=>Object.assign({width:e},xk(e)),qEe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},rA(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},rA(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},gE=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},bE=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},xk(e)),GEe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},bE(r,s))},gE(e,r,n)),{[`${n}-lg`]:Object.assign({},bE(i,s))}),gE(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},bE(a,s))}),gE(e,a,`${n}-sm`))},KEe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:p,borderRadius:v,titleHeight:h,blockRadius:g,paragraphLiHeight:w,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ap(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ap(u)),[`${n}-sm`]:Object.assign({},ap(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:h,background:f,borderRadius:g,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:b}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${i}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},GEe(e)),WEe(e)),UEe(e)),qEe(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${r}, + ${i} > li, + ${n}, + ${a}, + ${o}, + ${s} + `]:Object.assign({},VEe(e))}}},YEe=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},xv=sn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Kt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[KEe(r)]},YEe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),XEe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=c.useContext(xt),l=s("skeleton",t),[u,d,f]=xv(l),m=_n(e,["prefixCls","className"]),p=ne(l,`${l}-element`,{[`${l}-active`]:i},n,r,d,f);return u(c.createElement("div",{className:p},c.createElement(wk,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},m))))},QEe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=c.useContext(xt),l=s("skeleton",t),[u,d,f]=xv(l),m=_n(e,["prefixCls"]),p=ne(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,d,f);return u(c.createElement("div",{className:p},c.createElement(wk,Object.assign({prefixCls:`${l}-button`,size:o},m))))},JEe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",ZEe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=c.useContext(xt),s=o("skeleton",t),[l,u,d]=xv(s),f=ne(s,`${s}-element`,{[`${s}-active`]:a},n,r,u,d);return l(c.createElement("div",{className:f},c.createElement("div",{className:ne(`${s}-image`,n),style:i},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:JEe,className:`${s}-image-path`})))))},e3e=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=c.useContext(xt),l=s("skeleton",t),[u,d,f]=xv(l),m=_n(e,["prefixCls"]),p=ne(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,d,f);return u(c.createElement("div",{className:p},c.createElement(wk,Object.assign({prefixCls:`${l}-input`,size:o},m))))},t3e=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=c.useContext(xt),l=s("skeleton",t),[u,d,f]=xv(l),m=ne(l,`${l}-element`,{[`${l}-active`]:a},d,n,r,f);return u(c.createElement("div",{className:m},c.createElement("div",{className:ne(`${l}-image`,n),style:i},o)))},n3e=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},r3e=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=Fe(new Array(i)).map((o,s)=>c.createElement("li",{key:s,style:{width:n3e(s,e)}}));return c.createElement("ul",{className:ne(t,n),style:r},a)},i3e=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return c.createElement("h3",{className:ne(t,n),style:Object.assign({width:r},i)})};function yE(e){return e&&typeof e=="object"?e:{}}function a3e(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function o3e(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function s3e(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const rd=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:p,skeleton:v}=c.useContext(xt),h=m("skeleton",t),[g,w,b]=xv(h);if(n||!("loading"in e)){const y=!!s,x=!!l,C=!!u;let S;if(y){const $=Object.assign(Object.assign({prefixCls:`${h}-avatar`},a3e(x,C)),yE(s));S=c.createElement("div",{className:`${h}-header`},c.createElement(wk,Object.assign({},$)))}let k;if(x||C){let $;if(x){const T=Object.assign(Object.assign({prefixCls:`${h}-title`},o3e(y,C)),yE(l));$=c.createElement(i3e,Object.assign({},T))}let E;if(C){const T=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},s3e(y,x)),yE(u));E=c.createElement(r3e,Object.assign({},T))}k=c.createElement("div",{className:`${h}-content`},$,E)}const _=ne(h,{[`${h}-with-avatar`]:y,[`${h}-active`]:d,[`${h}-rtl`]:p==="rtl",[`${h}-round`]:f},v==null?void 0:v.className,r,i,w,b);return g(c.createElement("div",{className:_,style:Object.assign(Object.assign({},v==null?void 0:v.style),a)},S,k))}return o??null};rd.Button=QEe;rd.Avatar=XEe;rd.Input=e3e;rd.Image=ZEe;rd.Node=t3e;function iA(){}const l3e=c.createContext({add:iA,remove:iA});function AQ(e){const t=c.useContext(l3e),n=c.useRef(null);return Vt(i=>{if(i){const a=e?i.querySelector(e):i;t.add(a),n.current=a}else t.remove(n.current)})}const aA=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=c.useContext(k1);return L.createElement(dn,Object.assign({onClick:n},e),t)},oA=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=c.useContext(k1);return L.createElement(dn,Object.assign({},oQ(n),{loading:e,onClick:i},t),r)};function LQ(e,t){return L.createElement("span",{className:`${e}-close-x`},t||L.createElement(vs,{className:`${e}-close-icon`}))}const BQ=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:u}=e,[d]=la("Modal",dX()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),p={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:o},v=L.useMemo(()=>p,Fe(Object.values(p)));let h;return typeof u=="function"||typeof u>"u"?(h=L.createElement(L.Fragment,null,L.createElement(aA,null),L.createElement(oA,null)),typeof u=="function"&&(h=u(h,{OkBtn:oA,CancelBtn:aA})),h=L.createElement(xQ,{value:v},h)):h=u,L.createElement(VR,{disabled:!1},h)},c3e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},u3e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},d3e=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},FT=(e,t)=>d3e(e,t),f3e=(e,t,n)=>({[`@media (min-width: ${ae(t)})`]:Object.assign({},FT(e,n))}),m3e=()=>({}),p3e=()=>({}),v3e=sn("Grid",c3e,m3e),zQ=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),h3e=sn("Grid",e=>{const t=Kt(e,{gridColumns:24}),n=zQ(t);return delete n.xs,[u3e(t),FT(t,""),FT(t,"-xs"),Object.keys(n).map(r=>f3e(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},p3e);function sA(e){return{position:e,inset:0}}const HQ=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},sA("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},sA("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:eM(e)}]},g3e=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ae(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},mn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ae(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ae(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Va(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ae(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + ${t}-body, + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},b3e=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},y3e=e=>{const{componentCls:t}=e,n=zQ(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${ae(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Fe(r))}}},VQ=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Kt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},WQ=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ae(e.padding)} ${ae(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ae(e.paddingXS)} ${ae(e.padding)}`:0,footerBorderTop:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ae(e.padding*2)} ${ae(e.padding*2)} ${ae(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),UQ=sn("Modal",e=>{const t=VQ(e);return[g3e(t),b3e(t),HQ(t),yv(t,"zoom"),y3e(t)]},WQ,{unitless:{titleLineHeight:!0}});var w3e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{AT={x:e.pageX,y:e.pageY},setTimeout(()=>{AT=null},100)};zEe()&&document.documentElement.addEventListener("click",x3e,!0);const qQ=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=c.useContext(xt),o=Q=>{const{onCancel:G}=e;G==null||G(Q)},s=Q=>{const{onOk:G}=e;G==null||G(Q)},{prefixCls:l,className:u,rootClassName:d,open:f,wrapClassName:m,centered:p,getContainer:v,focusTriggerAfterClose:h=!0,style:g,visible:w,width:b=520,footer:y,classNames:x,styles:C,children:S,loading:k}=e,_=w3e(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),E=r(),T=Ln($),[M,j,I]=UQ($,T),N=ne(m,{[`${$}-centered`]:!!p,[`${$}-wrap-rtl`]:i==="rtl"}),O=y!==null&&!k?c.createElement(BQ,Object.assign({},e,{onOk:s,onCancel:o})):null,[D,F,z]=uM(Dp(e),Dp(a),{closable:!0,closeIcon:c.createElement(vs,{className:`${$}-close-icon`}),closeIconRender:Q=>LQ($,Q)}),R=AQ(`.${$}-content`),[H,V]=hs("Modal",_.zIndex),[B,W]=c.useMemo(()=>b&&typeof b=="object"?[void 0,b]:[b,void 0],[b]),q=c.useMemo(()=>{const Q={};return W&&Object.keys(W).forEach(G=>{const X=W[G];X!==void 0&&(Q[`--${$}-${G}-width`]=typeof X=="number"?`${X}px`:X)}),Q},[W]);return M(c.createElement(Zs,{form:!0,space:!0},c.createElement(w1.Provider,{value:V},c.createElement(aM,Object.assign({width:B},_,{zIndex:H,getContainer:v===void 0?n:v,prefixCls:$,rootClassName:ne(j,d,I,T),footer:O,visible:f??w,mousePosition:(t=_.mousePosition)!==null&&t!==void 0?t:AT,onClose:o,closable:D&&{disabled:z,closeIcon:F},closeIcon:F,focusTriggerAfterClose:h,transitionName:Mi(E,"zoom",e.transitionName),maskTransitionName:Mi(E,"fade",e.maskTransitionName),className:ne(j,u,a==null?void 0:a.className),style:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.style),g),q),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),x),{wrapper:ne(N,x==null?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),C),panelRef:R}),k?c.createElement(rd,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):S))))},S3e=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Ks()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ae(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${ae(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, + ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},C3e=Ff(["Modal","confirm"],e=>{const t=VQ(e);return[S3e(t)]},WQ,{order:-1e3});var k3e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ib,Fe(Object.values(b))),x=c.createElement(c.Fragment,null,c.createElement(DF,null),c.createElement(jF,null)),C=e.title!==void 0&&e.title!==null,S=`${a}-body`;return c.createElement("div",{className:`${a}-body-wrapper`},c.createElement("div",{className:ne(S,{[`${S}-has-title`]:C})},f,c.createElement("div",{className:`${a}-paragraph`},C&&c.createElement("span",{className:`${a}-title`},e.title),c.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?c.createElement(xQ,{value:y},c.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(x,{OkBtn:jF,CancelBtn:DF}):x)):l,c.createElement(C3e,{prefixCls:t}))}const _3e=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:u=!1,onConfirm:d,styles:f}=e,m=`${a}-confirm`,p=e.width||416,v=e.style||{},h=e.mask===void 0?!0:e.mask,g=e.maskClosable===void 0?!1:e.maskClosable,w=ne(m,`${m}-${e.type}`,{[`${m}-rtl`]:i==="rtl"},e.className),[,b]=Gr(),y=c.useMemo(()=>n!==void 0?n:b.zIndexPopupBase+XR,[n,b]);return c.createElement(qQ,Object.assign({},e,{className:w,wrapClassName:ne({[`${m}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:"",footer:null,transitionName:Mi(s||"","zoom",e.transitionName),maskTransitionName:Mi(s||"","fade",e.maskTransitionName),mask:h,maskClosable:g,style:v,styles:Object.assign({body:l,mask:r},f),width:p,zIndex:y,closable:u}),c.createElement(GQ,Object.assign({},e,{confirmPrefixCls:m})))},KQ=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return c.createElement(Jt,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},c.createElement(_3e,Object.assign({},e)))},Ad=[];let YQ="";function XQ(){return YQ}const $3e=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,o=dX(),s=c.useContext(xt),l=XQ()||s.getPrefixCls(),u=r||`${l}-modal`;let d=i;return d===!1&&(d=void 0),L.createElement(KQ,Object.assign({},e,{rootPrefixCls:l,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:d}))};function E1(e){const t=GR(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,a;function o(){for(var d,f=arguments.length,m=new Array(f),p=0;pg==null?void 0:g.triggerCancel)){var h;(d=e.onCancel)===null||d===void 0||(h=d).call.apply(h,[e,()=>{}].concat(Fe(m.slice(1))))}for(let g=0;g{const f=t.getPrefixCls(void 0,XQ()),m=t.getIconPrefixCls(),p=t.getTheme(),v=L.createElement($3e,Object.assign({},d));a=ok()(L.createElement(Jt,{prefixCls:f,iconPrefixCls:m,theme:p},t.holderRender?t.holderRender(v):v),n)})}function l(){for(var d=arguments.length,f=new Array(d),m=0;m{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),s(r)}return s(r),Ad.push(l),{destroy:l,update:u}}function QQ(e){return Object.assign(Object.assign({},e),{type:"warning"})}function JQ(e){return Object.assign(Object.assign({},e),{type:"info"})}function ZQ(e){return Object.assign(Object.assign({},e),{type:"success"})}function eJ(e){return Object.assign(Object.assign({},e),{type:"error"})}function tJ(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function E3e(e){let{rootPrefixCls:t}=e;YQ=t}var P3e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,{afterClose:r,config:i}=e,a=P3e(e,["afterClose","config"]);const[o,s]=c.useState(!0),[l,u]=c.useState(i),{direction:d,getPrefixCls:f}=c.useContext(xt),m=f("modal"),p=f(),v=()=>{var b;r(),(b=l.afterClose)===null||b===void 0||b.call(l)},h=function(){var b;s(!1);for(var y=arguments.length,x=new Array(y),C=0;C_==null?void 0:_.triggerCancel)){var k;(b=l.onCancel)===null||b===void 0||(k=b).call.apply(k,[l,()=>{}].concat(Fe(x.slice(1))))}};c.useImperativeHandle(t,()=>({destroy:h,update:b=>{u(y=>Object.assign(Object.assign({},y),b))}}));const g=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[w]=la("Modal",rs.Modal);return c.createElement(KQ,Object.assign({prefixCls:m,rootPrefixCls:p},l,{close:h,open:o,afterClose:v,okText:l.okText||(g?w==null?void 0:w.okText:w==null?void 0:w.justOkText),direction:l.direction||d,cancelText:l.cancelText||(w==null?void 0:w.cancelText)},a))},O3e=c.forwardRef(T3e);let lA=0;const I3e=c.memo(c.forwardRef((e,t)=>{const[n,r]=Ske();return c.useImperativeHandle(t,()=>({patchElement:r}),[]),c.createElement(c.Fragment,null,n)}));function nJ(){const e=c.useRef(null),[t,n]=c.useState([]);c.useEffect(()=>{t.length&&(Fe(t).forEach(o=>{o()}),n([]))},[t]);const r=c.useCallback(a=>function(s){var l;lA+=1;const u=c.createRef();let d;const f=new Promise(g=>{d=g});let m=!1,p;const v=c.createElement(O3e,{key:`modal-${lA}`,config:a(s),ref:u,afterClose:()=>{p==null||p()},isSilent:()=>m,onConfirm:g=>{d(g)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(v),p&&Ad.push(p),{destroy:()=>{function g(){var w;(w=u.current)===null||w===void 0||w.destroy()}u.current?g():n(w=>[].concat(Fe(w),[g]))},update:g=>{function w(){var b;(b=u.current)===null||b===void 0||b.update(g)}u.current?w():n(b=>[].concat(Fe(b),[w]))},then:g=>(m=!0,f.then(g))}},[]);return[c.useMemo(()=>({info:r(JQ),success:r(ZQ),error:r(eJ),warning:r(QQ),confirm:r(tJ)}),[]),c.createElement(I3e,{key:"modal-holder",ref:e})]}const R3e=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new on("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new on("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new on("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new on("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},M3e=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],N3e={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},D3e=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[N3e[t]]:{value:0,_skip_check_:!0}}}}},j3e=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},F3e=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},j3e(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},F3e(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},M3e.map(n=>D3e(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},rJ=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:p,notificationMarginEdge:v,notificationProgressBg:h,notificationProgressHeight:g,fontSize:w,lineHeight:b,width:y,notificationIconSize:x,colorText:C}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:m,borderRadius:o,boxShadow:r,[S]:{padding:p,width:y,maxWidth:`calc(100vw - ${ae(e.calc(v).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:i,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:w,color:C},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:w},[`${S}-icon`]:{position:"absolute",fontSize:x,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${S}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Va(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${ae(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:h},"&::-webkit-progress-value":{borderRadius:o,background:h}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},L3e=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new on("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},mn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-btn`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:Object.assign({},rJ(e))}}]},iJ=e=>({zIndexPopup:e.zIndexPopupBase+XR+50,width:384}),aJ=e=>{const t=e.paddingMD,n=e.paddingLG;return Kt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},oJ=sn("Notification",e=>{const t=aJ(e);return[L3e(t),R3e(t),A3e(t)]},iJ),B3e=Ff(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=aJ(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},rJ(n)),{width:n.width,maxWidth:`calc(100vw - ${ae(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},iJ);var z3e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,icon:n,type:r,message:i,description:a,btn:o,role:s="alert"}=e;let l=null;return n?l=c.createElement("span",{className:`${t}-icon`},n):r&&(l=c.createElement(H3e[r]||null,{className:ne(`${t}-icon`,`${t}-icon-${r}`)})),c.createElement("div",{className:ne({[`${t}-with-icon`]:l}),role:s},l,c.createElement("div",{className:`${t}-message`},i),c.createElement("div",{className:`${t}-description`},a),o&&c.createElement("div",{className:`${t}-btn`},o))},V3e=e=>{const{prefixCls:t,className:n,icon:r,type:i,message:a,description:o,btn:s,closable:l=!0,closeIcon:u,className:d}=e,f=z3e(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:m}=c.useContext(xt),p=t||m("notification"),v=`${p}-notice`,h=Ln(p),[g,w,b]=oJ(p,h);return g(c.createElement("div",{className:ne(`${v}-pure-panel`,w,n,b,h)},c.createElement(B3e,{prefixCls:p}),c.createElement(YR,Object.assign({},f,{prefixCls:p,eventKey:"pure",duration:null,closable:l,className:ne({notificationClassName:d}),closeIcon:dM(p,u),content:c.createElement(sJ,{prefixCls:v,icon:r,type:i,message:a,description:o,btn:s})}))))};function W3e(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function U3e(e){return{motionName:`${e}-fade`}}var q3e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=Ln(n),[i,a,o]=oJ(n,r);return i(L.createElement(XX,{classNames:{list:ne(a,o,r)}},t))},X3e=(e,t)=>{let{prefixCls:n,key:r}=t;return L.createElement(Y3e,{prefixCls:n,key:r},e)},Q3e=L.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:l,stack:u,duration:d,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:p,getPopupContainer:v,notification:h,direction:g}=c.useContext(xt),[,w]=Gr(),b=i||p("notification"),y=_=>W3e(_,n??cA,r??cA),x=()=>ne({[`${b}-rtl`]:s??g==="rtl"}),C=()=>U3e(b),[S,k]=QX({prefixCls:b,style:y,className:x,motion:C,closable:!0,closeIcon:dM(b),duration:d??G3e,getContainer:()=>(a==null?void 0:a())||(v==null?void 0:v())||document.body,maxCount:o,pauseOnHover:f,showProgress:m,onAllRemoved:l,renderNotifications:X3e,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:w.margin}});return L.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:b,notification:h})),k});function lJ(e){const t=L.useRef(null);return Xl(),[L.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:p,description:v,icon:h,type:g,btn:w,className:b,style:y,role:x="alert",closeIcon:C,closable:S}=s,k=q3e(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),_=dM(m,typeof C<"u"?C:f==null?void 0:f.closeIcon);return u(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:K3e},k),{content:L.createElement(sJ,{prefixCls:m,icon:h,type:g,message:p,description:v,btn:w,role:x}),className:ne(g&&`${m}-${g}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),closeIcon:_,closable:S??!!_}))},a={open:r,destroy:s=>{var l,u;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),a},[]),L.createElement(Q3e,Object.assign({key:"notification-holder"},e,{ref:t}))]}function cJ(e){return lJ(e)}const rS=L.createContext({}),uJ=L.createContext({message:{},notification:{},modal:{}}),J3e=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},Z3e=()=>({}),e4e=sn("App",J3e,Z3e),t4e=()=>L.useContext(uJ),fM=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:a,notification:o,style:s,component:l="div"}=e,{direction:u,getPrefixCls:d}=c.useContext(xt),f=d("app",t),[m,p,v]=e4e(f),h=ne(p,f,r,i,v,{[`${f}-rtl`]:u==="rtl"}),g=c.useContext(rS),w=L.useMemo(()=>({message:Object.assign(Object.assign({},g.message),a),notification:Object.assign(Object.assign({},g.notification),o)}),[a,o,g.message,g.notification]),[b,y]=nQ(w.message),[x,C]=cJ(w.notification),[S,k]=nJ(),_=L.useMemo(()=>({message:b,notification:x,modal:S}),[b,x,S]);Xl()(!(v&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const $=l===!1?L.Fragment:l,E={className:h,style:s};return m(L.createElement(uJ.Provider,{value:_},L.createElement(rS.Provider,{value:w},L.createElement($,Object.assign({},l===!1?void 0:E),k,y,C,n))))};fM.useApp=t4e;function dJ(e){return t=>c.createElement(Jt,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const id=(e,t,n,r,i)=>dJ(o=>{const{prefixCls:s,style:l}=o,u=c.useRef(null),[d,f]=c.useState(0),[m,p]=c.useState(0),[v,h]=Ut(!1,{value:o.open}),{getPrefixCls:g}=c.useContext(xt),w=g(r||"select",s);c.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(S=>{const k=S[0].target;f(k.offsetHeight+8),p(k.offsetWidth)}),C=setInterval(()=>{var S;const k=i?`.${i(w)}`:`.${w}-dropdown`,_=(S=u.current)===null||S===void 0?void 0:S.querySelector(k);_&&(clearInterval(C),x.observe(_))},10);return()=>{clearInterval(C),x.disconnect()}}},[]);let b=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:v,visible:v,getPopupContainer:()=>u.current});n&&(b=n(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:d,position:"relative",minWidth:m};return c.createElement("div",{ref:u,style:y},c.createElement(e,Object.assign({},b)))}),Sk=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Ck=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return c.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),o==null||o(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:c.createElement("span",{className:ne(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},n4e=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,u=L.useMemo(function(){if(mt(i)==="object")return i.clearIcon;if(a)return a},[i,a]),d=L.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:d,clearIcon:L.createElement(Ck,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},fJ=c.createContext(null);function mM(){return c.useContext(fJ)}function r4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=ie(t,2),r=n[0],i=n[1],a=c.useRef(null),o=function(){window.clearTimeout(a.current)};c.useEffect(function(){return o},[]);var s=function(u,d){o(),a.current=window.setTimeout(function(){i(u),d&&d()},e)};return[r,s,o]}function mJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function i4e(e,t,n,r){var i=c.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(l)&&u!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function a4e(e){return e&&![qe.ESC,qe.SHIFT,qe.BACKSPACE,qe.TAB,qe.WIN_KEY,qe.ALT,qe.META,qe.WIN_KEY_RIGHT,qe.CTRL,qe.SEMICOLON,qe.EQUALS,qe.CAPS_LOCK,qe.CONTEXT_MENU,qe.F1,qe.F2,qe.F3,qe.F4,qe.F5,qe.F6,qe.F7,qe.F8,qe.F9,qe.F10,qe.F11,qe.F12].includes(e)}var o4e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],lm=void 0;function s4e(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,p=e.display,v=e.order,h=e.component,g=h===void 0?"div":h,w=ut(e,o4e),b=o&&!p;function y(_){l(u,_)}c.useEffect(function(){return function(){y(null)}},[]);var x=a&&i!==lm?a(i):m,C;r||(C={opacity:b?0:1,height:b?0:lm,overflowY:b?"hidden":lm,order:o?v:lm,pointerEvents:b?"none":lm,position:b?"absolute":lm});var S={};b&&(S["aria-hidden"]=!0);var k=c.createElement(g,Ee({className:ne(!r&&n,d),style:A(A({},C),f)},S,w,{ref:t}),x);return o&&(k=c.createElement(Ci,{onResize:function($){var E=$.offsetWidth;y(E)},disabled:s},k)),k}var wg=c.forwardRef(s4e);wg.displayName="Item";function l4e(e){if(typeof MessageChannel>"u")tn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function c4e(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],l4e(function(){ki.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function ph(e,t){var n=c.useState(t),r=ie(n,2),i=r[0],a=r[1],o=Vt(function(s){e(function(){a(s)})});return[i,o]}var iS=L.createContext(null),u4e=["component"],d4e=["className"],f4e=["className"],m4e=function(t,n){var r=c.useContext(iS);if(!r){var i=t.component,a=i===void 0?"div":i,o=ut(t,u4e);return c.createElement(a,Ee({},o,{ref:n}))}var s=r.className,l=ut(r,d4e),u=t.className,d=ut(t,f4e);return c.createElement(iS.Provider,{value:null},c.createElement(wg,Ee({ref:n,className:ne(s,u)},l,d)))},pJ=c.forwardRef(m4e);pJ.displayName="RawItem";var p4e=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],vJ="responsive",hJ="invalidate";function v4e(e){return"+ ".concat(e.length," ...")}function h4e(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,p=e.className,v=e.maxCount,h=e.renderRest,g=e.renderRawRest,w=e.suffix,b=e.component,y=b===void 0?"div":b,x=e.itemComponent,C=e.onVisibleChange,S=ut(e,p4e),k=f==="full",_=c4e(),$=ph(_,null),E=ie($,2),T=E[0],M=E[1],j=T||0,I=ph(_,new Map),N=ie(I,2),O=N[0],D=N[1],F=ph(_,0),z=ie(F,2),R=z[0],H=z[1],V=ph(_,0),B=ie(V,2),W=B[0],q=B[1],Q=ph(_,0),G=ie(Q,2),X=G[0],re=G[1],K=c.useState(null),Y=ie(K,2),Z=Y[0],J=Y[1],ee=c.useState(null),te=ie(ee,2),le=te[0],oe=te[1],de=c.useMemo(function(){return le===null&&k?Number.MAX_SAFE_INTEGER:le||0},[le,T]),pe=c.useState(!1),we=ie(pe,2),fe=we[0],ge=we[1],ue="".concat(r,"-item"),ce=Math.max(R,W),$e=v===vJ,se=a.length&&$e,ve=v===hJ,he=se||typeof v=="number"&&a.length>v,_e=c.useMemo(function(){var nt=a;return se?T===null&&k?nt=a:nt=a.slice(0,Math.min(a.length,j/d)):typeof v=="number"&&(nt=a.slice(0,v)),nt},[a,d,T,v,se]),Se=c.useMemo(function(){return se?a.slice(de+1):a.slice(_e.length)},[a,_e,se,de]),Pe=c.useCallback(function(nt,rt){var it;return typeof l=="function"?l(nt):(it=l&&(nt==null?void 0:nt[l]))!==null&&it!==void 0?it:rt},[l]),De=c.useCallback(o||function(nt){return nt},[o]);function xe(nt,rt,it){le===nt&&(rt===void 0||rt===Z)||(oe(nt),it||(ge(ntj){xe(be-1,nt-Oe-X+W);break}}w&&je(0)+X>j&&J(null)}},[j,O,W,X,Pe,_e]);var He=fe&&!!Se.length,Be={};Z!==null&&se&&(Be={position:"absolute",left:Z,top:0});var ct={prefixCls:ue,responsive:se,component:x,invalidate:ve},Ve=s?function(nt,rt){var it=Pe(nt,rt);return c.createElement(iS.Provider,{key:it,value:A(A({},ct),{},{order:rt,item:nt,itemKey:it,registerSize:Te,display:rt<=de})},s(nt,rt))}:function(nt,rt){var it=Pe(nt,rt);return c.createElement(wg,Ee({},ct,{order:rt,key:it,item:nt,renderItem:De,itemKey:it,registerSize:Te,display:rt<=de}))},Ye,Ne={order:He?de:Number.MAX_SAFE_INTEGER,className:"".concat(ue,"-rest"),registerSize:Ie,display:He};if(g)g&&(Ye=c.createElement(iS.Provider,{value:A(A({},ct),Ne)},g(Se)));else{var Ae=h||v4e;Ye=c.createElement(wg,Ee({},ct,Ne),typeof Ae=="function"?Ae(Se):Ae)}var et=c.createElement(y,Ee({className:ne(!ve&&r,p),style:m,ref:t},S),_e.map(Ve),he?Ye:null,w&&c.createElement(wg,Ee({},ct,{responsive:$e,responsiveDisabled:!se,order:de,className:"".concat(ue,"-suffix"),registerSize:ke,display:!0,style:Be}),w));return $e&&(et=c.createElement(Ci,{onResize:ye,disabled:!se},et)),et}var zs=c.forwardRef(h4e);zs.displayName="Overflow";zs.Item=pJ;zs.RESPONSIVE=vJ;zs.INVALIDATE=hJ;var g4e=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,p=t.value,v=t.maxLength,h=t.onKeyDown,g=t.onMouseDown,w=t.onChange,b=t.onPaste,y=t.onCompositionStart,x=t.onCompositionEnd,C=t.onBlur,S=t.open,k=t.attrs,_=o||c.createElement("input",null),$=_,E=$.ref,T=$.props,M=T.onKeyDown,j=T.onChange,I=T.onMouseDown,N=T.onCompositionStart,O=T.onCompositionEnd,D=T.onBlur,F=T.style;return"maxLength"in _.props,_=c.cloneElement(_,A(A(A({type:"search"},T),{},{id:a,ref:ri(n,E),disabled:s,tabIndex:l,autoComplete:d||"off",autoFocus:u,className:ne("".concat(i,"-selection-search-input"),(r=_)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":S?m:void 0},k),{},{value:f?p:"",maxLength:v,readOnly:!f,unselectable:f?null:"on",style:A(A({},F),{},{opacity:f?null:0}),onKeyDown:function(R){h(R),M&&M(R)},onMouseDown:function(R){g(R),I&&I(R)},onChange:function(R){w(R),j&&j(R)},onCompositionStart:function(R){y(R),N&&N(R)},onCompositionEnd:function(R){x(R),O&&O(R)},onPaste:b,onBlur:function(R){C(R),D&&D(R)}})),_},gJ=c.forwardRef(g4e);function bJ(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var b4e=typeof window<"u"&&window.document&&window.document.documentElement,y4e=b4e;function w4e(e){return e!=null}function x4e(e){return!e&&e!==0}function uA(e){return["string","number"].includes(mt(e))}function yJ(e){var t=void 0;return e&&(uA(e.title)?t=e.title.toString():uA(e.label)&&(t=e.label.toString())),t}function S4e(e,t){y4e?c.useLayoutEffect(e,t):c.useEffect(e,t)}function C4e(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var dA=function(t){t.preventDefault(),t.stopPropagation()},k4e=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,p=t.autoFocus,v=t.autoComplete,h=t.activeDescendantId,g=t.tabIndex,w=t.removeIcon,b=t.maxTagCount,y=t.maxTagTextLength,x=t.maxTagPlaceholder,C=x===void 0?function(ee){return"+ ".concat(ee.length," ...")}:x,S=t.tagRender,k=t.onToggleOpen,_=t.onRemove,$=t.onInputChange,E=t.onInputPaste,T=t.onInputKeyDown,M=t.onInputMouseDown,j=t.onInputCompositionStart,I=t.onInputCompositionEnd,N=t.onInputBlur,O=c.useRef(null),D=c.useState(0),F=ie(D,2),z=F[0],R=F[1],H=c.useState(!1),V=ie(H,2),B=V[0],W=V[1],q="".concat(r,"-selection"),Q=a||f==="multiple"&&s===!1||f==="tags"?o:"",G=f==="tags"||f==="multiple"&&s===!1||m&&(a||B);S4e(function(){R(O.current.scrollWidth)},[Q]);var X=function(te,le,oe,de,pe){return c.createElement("span",{title:yJ(te),className:ne("".concat(q,"-item"),U({},"".concat(q,"-item-disabled"),oe))},c.createElement("span",{className:"".concat(q,"-item-content")},le),de&&c.createElement(Ck,{className:"".concat(q,"-item-remove"),onMouseDown:dA,onClick:pe,customizeIcon:w},"×"))},re=function(te,le,oe,de,pe,we){var fe=function(ue){dA(ue),k(!a)};return c.createElement("span",{onMouseDown:fe},S({label:le,value:te,disabled:oe,closable:de,onClose:pe,isMaxTag:!!we}))},K=function(te){var le=te.disabled,oe=te.label,de=te.value,pe=!d&&!le,we=oe;if(typeof y=="number"&&(typeof oe=="string"||typeof oe=="number")){var fe=String(we);fe.length>y&&(we="".concat(fe.slice(0,y),"..."))}var ge=function(ce){ce&&ce.stopPropagation(),_(te)};return typeof S=="function"?re(de,we,le,pe,ge):X(te,we,le,pe,ge)},Y=function(te){if(!i.length)return null;var le=typeof C=="function"?C(te):C;return typeof S=="function"?re(void 0,le,!1,!1,void 0,!0):X({title:le},le,!1)},Z=c.createElement("div",{className:"".concat(q,"-search"),style:{width:z},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},c.createElement(gJ,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:p,autoComplete:v,editable:G,activeDescendantId:h,value:Q,onKeyDown:T,onMouseDown:M,onChange:$,onPaste:E,onCompositionStart:j,onCompositionEnd:I,onBlur:N,tabIndex:g,attrs:er(t,!0)}),c.createElement("span",{ref:O,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},Q," ")),J=c.createElement(zs,{prefixCls:"".concat(q,"-overflow"),data:i,renderItem:K,renderRest:Y,suffix:Z,itemKey:C4e,maxCount:b});return c.createElement("span",{className:"".concat(q,"-wrap")},J,!i.length&&!Q&&c.createElement("span",{className:"".concat(q,"-placeholder")},u))},_4e=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,p=t.placeholder,v=t.tabIndex,h=t.showSearch,g=t.searchValue,w=t.activeValue,b=t.maxLength,y=t.onInputKeyDown,x=t.onInputMouseDown,C=t.onInputChange,S=t.onInputPaste,k=t.onInputCompositionStart,_=t.onInputCompositionEnd,$=t.onInputBlur,E=t.title,T=c.useState(!1),M=ie(T,2),j=M[0],I=M[1],N=d==="combobox",O=N||h,D=m[0],F=g||"";N&&w&&!j&&(F=w),c.useEffect(function(){N&&I(!1)},[N,w]);var z=d!=="combobox"&&!f&&!h?!1:!!F,R=E===void 0?yJ(D):E,H=c.useMemo(function(){return D?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},p)},[D,z,p,r]);return c.createElement("span",{className:"".concat(r,"-selection-wrap")},c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(gJ,{ref:a,prefixCls:r,id:i,open:f,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:O,activeDescendantId:u,value:F,onKeyDown:y,onMouseDown:x,onChange:function(B){I(!0),C(B)},onPaste:S,onCompositionStart:k,onCompositionEnd:_,onBlur:$,tabIndex:v,attrs:er(t,!0),maxLength:N?b:void 0})),!N&&D?c.createElement("span",{className:"".concat(r,"-selection-item"),title:R,style:z?{visibility:"hidden"}:void 0},D.label):null,H)},$4e=function(t,n){var r=c.useRef(null),i=c.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,p=t.onSearch,v=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,w=t.onInputBlur,b=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(R){r.current.focus(R)},blur:function(){r.current.blur()}}});var y=mJ(0),x=ie(y,2),C=x[0],S=x[1],k=function(R){var H=R.which,V=r.current instanceof HTMLTextAreaElement;!V&&o&&(H===qe.UP||H===qe.DOWN)&&R.preventDefault(),g&&g(R),H===qe.ENTER&&s==="tags"&&!i.current&&!o&&(v==null||v(R.target.value)),!(V&&!o&&~[qe.UP,qe.DOWN,qe.LEFT,qe.RIGHT].indexOf(H))&&a4e(H)&&h(!0)},_=function(){S(!0)},$=c.useRef(null),E=function(R){p(R,!0,i.current)!==!1&&h(!0)},T=function(){i.current=!0},M=function(R){i.current=!1,s!=="combobox"&&E(R.target.value)},j=function(R){var H=R.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var V=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(V,$.current)}$.current=null,E(H)},I=function(R){var H=R.clipboardData,V=H==null?void 0:H.getData("text");$.current=V||""},N=function(R){var H=R.target;if(H!==r.current){var V=document.body.style.msTouchAction!==void 0;V?setTimeout(function(){r.current.focus()}):r.current.focus()}},O=function(R){var H=C();R.target!==r.current&&!H&&!(s==="combobox"&&d)&&R.preventDefault(),(s!=="combobox"&&(!l||!H)||!o)&&(o&&m!==!1&&p("",!0,!1),h())},D={inputRef:r,onInputKeyDown:k,onInputMouseDown:_,onInputChange:j,onInputPaste:I,onInputCompositionStart:T,onInputCompositionEnd:M,onInputBlur:w},F=s==="multiple"||s==="tags"?c.createElement(k4e,Ee({},t,D)):c.createElement(_4e,Ee({},t,D));return c.createElement("div",{ref:b,className:"".concat(a,"-selector"),onClick:N,onMouseDown:O},f&&c.createElement("div",{className:"".concat(a,"-prefix")},f),F)},E4e=c.forwardRef($4e);function P4e(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,u=l===void 0?0:l,d=i.y,f=d===void 0?0:d,m=c.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],h=n.points[1],g=v[0],w=v[1],b=h[0],y=h[1];g===b||!["t","b"].includes(g)?p.top=f:g==="t"?p.top=0:p.bottom=0,w===y||!["l","r"].includes(w)?p.left=u:w==="l"?p.left=0:p.right=0}return c.createElement("div",{ref:m,className:ne("".concat(t,"-arrow"),o),style:p},s)}function T4e(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?c.createElement(ti,Ee({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return c.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),s)})}):null}var O4e=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),I4e=c.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,p=e.arrow,v=e.arrowPos,h=e.align,g=e.motion,w=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,C=e.portal,S=e.zIndex,k=e.onMouseEnter,_=e.onMouseLeave,$=e.onPointerEnter,E=e.onPointerDownCapture,T=e.ready,M=e.offsetX,j=e.offsetY,I=e.offsetR,N=e.offsetB,O=e.onAlign,D=e.onPrepare,F=e.stretch,z=e.targetWidth,R=e.targetHeight,H=typeof n=="function"?n():n,V=l||u,B=(y==null?void 0:y.length)>0,W=c.useState(!y||!B),q=ie(W,2),Q=q[0],G=q[1];if(nn(function(){!Q&&B&&o&&G(!0)},[Q,B,o]),!Q)return null;var X="auto",re={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(T||!l){var K,Y=h.points,Z=h.dynamicInset||((K=h._experimental)===null||K===void 0?void 0:K.dynamicInset),J=Z&&Y[0][1]==="r",ee=Z&&Y[0][0]==="b";J?(re.right=I,re.left=X):(re.left=M,re.right=X),ee?(re.bottom=N,re.top=X):(re.top=j,re.bottom=X)}var te={};return F&&(F.includes("height")&&R?te.height=R:F.includes("minHeight")&&R&&(te.minHeight=R),F.includes("width")&&z?te.width=z:F.includes("minWidth")&&z&&(te.minWidth=z)),l||(te.pointerEvents="none"),c.createElement(C,{open:b||V,getContainer:y&&function(){return y(o)},autoDestroy:x},c.createElement(T4e,{prefixCls:i,open:l,zIndex:S,mask:m,motion:w}),c.createElement(Ci,{onResize:O,disabled:!l},function(le){return c.createElement(ti,Ee({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:D,onEnterPrepare:D,visible:l,onVisibleChanged:function(de){var pe;g==null||(pe=g.onVisibleChanged)===null||pe===void 0||pe.call(g,de),s(de)}}),function(oe,de){var pe=oe.className,we=oe.style,fe=ne(i,pe,r);return c.createElement("div",{ref:ri(le,t,de),className:fe,style:A(A(A(A({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},re),te),we),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:k,onMouseLeave:_,onPointerEnter:$,onClick:f,onPointerDownCapture:E},p&&c.createElement(P4e,{prefixCls:i,arrow:p,arrowPos:v,align:h}),c.createElement(O4e,{cache:!l&&!d},H))})}))}),R4e=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Gs(n),a=c.useCallback(function(s){c0(t,r?r(s):s)},[r]),o=Yl(a,nd(n));return i?c.cloneElement(n,{ref:o}):n}),fA=c.createContext(null);function mA(e){return e?Array.isArray(e)?e:[e]:[]}function M4e(e,t,n,r){return c.useMemo(function(){var i=mA(n??t),a=mA(r??t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function N4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function D4e(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function vh(e){return b0(parseFloat(e),0)}function vA(e,t){var n=A({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=P1(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,u=i.borderLeftWidth,d=i.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,p=r.clientHeight,v=r.offsetWidth,h=r.clientWidth,g=vh(s),w=vh(l),b=vh(u),y=vh(d),x=b0(Math.round(f.width/v*1e3)/1e3),C=b0(Math.round(f.height/m*1e3)/1e3),S=(v-h-b-y)*x,k=(m-p-g-w)*C,_=g*C,$=w*C,E=b*x,T=y*x,M=0,j=0;if(a==="clip"){var I=vh(o);M=I*x,j=I*C}var N=f.x+E-M,O=f.y+_-j,D=N+f.width+2*M-E-T-S,F=O+f.height+2*j-_-$-k;n.left=Math.max(n.left,N),n.top=Math.max(n.top,O),n.right=Math.min(n.right,D),n.bottom=Math.min(n.bottom,F)}}),n}function hA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function gA(e,t){var n=t||[],r=ie(n,2),i=r[0],a=r[1];return[hA(e.width,i),hA(e.height,a)]}function bA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function cm(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function Zc(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function j4e(e,t,n,r,i,a,o){var s=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=ie(s,2),u=l[0],d=l[1],f=c.useRef(0),m=c.useMemo(function(){return t?LT(t):[]},[t]),p=c.useRef({}),v=function(){p.current={}};e||v();var h=Vt(function(){if(t&&n&&e){let un=function(ii,ai){var qi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce,cl=W.x+ii,ul=W.y+ai,Hn=cl+J,Wt=ul+Z,Mt=Math.max(cl,qi.left),rr=Math.max(ul,qi.top),ln=Math.min(Hn,qi.right),hr=Math.min(Wt,qi.bottom);return Math.max(0,(ln-Mt)*(hr-rr))},vr=function(){yt=W.y+it,zt=yt+Z,$t=W.x+rt,ze=$t+J};var bt=un,Yt=vr,b,y,x,C,S=t,k=S.ownerDocument,_=P1(S),$=_.getComputedStyle(S),E=$.width,T=$.height,M=$.position,j=S.style.left,I=S.style.top,N=S.style.right,O=S.style.bottom,D=S.style.overflow,F=A(A({},i[r]),a),z=k.createElement("div");(b=S.parentElement)===null||b===void 0||b.appendChild(z),z.style.left="".concat(S.offsetLeft,"px"),z.style.top="".concat(S.offsetTop,"px"),z.style.position=M,z.style.height="".concat(S.offsetHeight,"px"),z.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var R;if(Array.isArray(n))R={x:n[0],y:n[1],width:0,height:0};else{var H,V,B=n.getBoundingClientRect();B.x=(H=B.x)!==null&&H!==void 0?H:B.left,B.y=(V=B.y)!==null&&V!==void 0?V:B.top,R={x:B.x,y:B.y,width:B.width,height:B.height}}var W=S.getBoundingClientRect();W.x=(y=W.x)!==null&&y!==void 0?y:W.left,W.y=(x=W.y)!==null&&x!==void 0?x:W.top;var q=k.documentElement,Q=q.clientWidth,G=q.clientHeight,X=q.scrollWidth,re=q.scrollHeight,K=q.scrollTop,Y=q.scrollLeft,Z=W.height,J=W.width,ee=R.height,te=R.width,le={left:0,top:0,right:Q,bottom:G},oe={left:-Y,top:-K,right:X-Y,bottom:re-K},de=F.htmlRegion,pe="visible",we="visibleFirst";de!=="scroll"&&de!==we&&(de=pe);var fe=de===we,ge=vA(oe,m),ue=vA(le,m),ce=de===pe?ue:ge,$e=fe?ue:ce;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var se=S.getBoundingClientRect();S.style.left=j,S.style.top=I,S.style.right=N,S.style.bottom=O,S.style.overflow=D,(C=S.parentElement)===null||C===void 0||C.removeChild(z);var ve=b0(Math.round(J/parseFloat(E)*1e3)/1e3),he=b0(Math.round(Z/parseFloat(T)*1e3)/1e3);if(ve===0||he===0||l0(n)&&!bv(n))return;var _e=F.offset,Se=F.targetOffset,Pe=gA(W,_e),De=ie(Pe,2),xe=De[0],ye=De[1],Te=gA(R,Se),Ie=ie(Te,2),ke=Ie[0],je=Ie[1];R.x-=ke,R.y-=je;var He=F.points||[],Be=ie(He,2),ct=Be[0],Ve=Be[1],Ye=bA(Ve),Ne=bA(ct),Ae=cm(R,Ye),et=cm(W,Ne),nt=A({},F),rt=Ae.x-et.x+xe,it=Ae.y-et.y+ye,be=un(rt,it),Oe=un(rt,it,ue),Ce=cm(R,["t","l"]),Re=cm(W,["t","l"]),Ke=cm(R,["b","r"]),Xe=cm(W,["b","r"]),lt=F.overflow||{},tt=lt.adjustX,Qe=lt.adjustY,Ge=lt.shiftX,st=lt.shiftY,pt=function(ai){return typeof ai=="boolean"?ai:ai>=0},yt,zt,$t,ze;vr();var me=pt(Qe),Me=Ne[0]===Ye[0];if(me&&Ne[0]==="t"&&(zt>$e.bottom||p.current.bt)){var We=it;Me?We-=Z-ee:We=Ce.y-Xe.y-ye;var wt=un(rt,We),Ze=un(rt,We,ue);wt>be||wt===be&&(!fe||Ze>=Oe)?(p.current.bt=!0,it=We,ye=-ye,nt.points=[Zc(Ne,0),Zc(Ye,0)]):p.current.bt=!1}if(me&&Ne[0]==="b"&&(yt<$e.top||p.current.tb)){var Le=it;Me?Le+=Z-ee:Le=Ke.y-Re.y-ye;var ot=un(rt,Le),ht=un(rt,Le,ue);ot>be||ot===be&&(!fe||ht>=Oe)?(p.current.tb=!0,it=Le,ye=-ye,nt.points=[Zc(Ne,0),Zc(Ye,0)]):p.current.tb=!1}var Et=pt(tt),Rt=Ne[1]===Ye[1];if(Et&&Ne[1]==="l"&&(ze>$e.right||p.current.rl)){var Ct=rt;Rt?Ct-=J-te:Ct=Ce.x-Xe.x-xe;var at=un(Ct,it),kt=un(Ct,it,ue);at>be||at===be&&(!fe||kt>=Oe)?(p.current.rl=!0,rt=Ct,xe=-xe,nt.points=[Zc(Ne,1),Zc(Ye,1)]):p.current.rl=!1}if(Et&&Ne[1]==="r"&&($t<$e.left||p.current.lr)){var At=rt;Rt?At+=J-te:At=Ke.x-Re.x-xe;var Dt=un(At,it),en=un(At,it,ue);Dt>be||Dt===be&&(!fe||en>=Oe)?(p.current.lr=!0,rt=At,xe=-xe,nt.points=[Zc(Ne,1),Zc(Ye,1)]):p.current.lr=!1}vr();var vn=Ge===!0?0:Ge;typeof vn=="number"&&($tue.right&&(rt-=ze-ue.right-xe,R.x>ue.right-vn&&(rt+=R.x-ue.right+vn)));var bn=st===!0?0:st;typeof bn=="number"&&(ytue.bottom&&(it-=zt-ue.bottom-ye,R.y>ue.bottom-bn&&(it+=R.y-ue.bottom+bn)));var Sr=W.x+rt,pr=Sr+J,nr=W.y+it,Kr=nr+Z,gn=R.x,Bt=gn+te,jt=R.y,xn=jt+ee,Ft=Math.max(Sr,gn),Nt=Math.min(pr,Bt),hn=(Ft+Nt)/2,Rn=hn-Sr,dr=Math.max(nr,jt),Ue=Math.min(Kr,xn),vt=(dr+Ue)/2,_t=vt-nr;o==null||o(t,nt);var dt=se.right-W.x-(rt+W.width),Je=se.bottom-W.y-(it+W.height);ve===1&&(rt=Math.round(rt),dt=Math.round(dt)),he===1&&(it=Math.round(it),Je=Math.round(Je));var gt={ready:!0,offsetX:rt/ve,offsetY:it/he,offsetR:dt/ve,offsetB:Je/he,arrowX:Rn/ve,arrowY:_t/he,scaleX:ve,scaleY:he,align:nt};d(gt)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&h()})},w=function(){d(function(y){return A(A({},y),{},{ready:!1})})};return nn(w,[r]),nn(function(){e||w()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function F4e(e,t,n,r,i){nn(function(){if(e&&t&&n){let m=function(){r(),i()};var f=m,a=t,o=n,s=LT(a),l=LT(o),u=P1(o),d=new Set([u].concat(Fe(s),Fe(l)));return d.forEach(function(p){p.addEventListener("scroll",m,{passive:!0})}),u.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",m),u.removeEventListener("resize",m)})}}},[e,t,n])}function A4e(e,t,n,r,i,a,o,s){var l=c.useRef(e);l.current=e;var u=c.useRef(!1);c.useEffect(function(){if(t&&r&&(!i||a)){var f=function(){u.current=!1},m=function(g){var w;l.current&&!o(((w=g.composedPath)===null||w===void 0||(w=w.call(g))===null||w===void 0?void 0:w[0])||g.target)&&!u.current&&s(!1)},p=P1(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0);var v=tS(n);return v&&(v.addEventListener("mousedown",m,!0),v.addEventListener("contextmenu",m,!0)),function(){p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0),v&&(v.removeEventListener("mousedown",m,!0),v.removeEventListener("contextmenu",m,!0))}}},[t,n,r,i,a]);function d(){u.current=!0}return d}var L4e=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function B4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_1,t=c.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,p=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,h=n.mouseEnterDelay,g=n.mouseLeaveDelay,w=g===void 0?.1:g,b=n.focusDelay,y=n.blurDelay,x=n.mask,C=n.maskClosable,S=C===void 0?!0:C,k=n.getPopupContainer,_=n.forceRender,$=n.autoDestroy,E=n.destroyPopupOnHide,T=n.popup,M=n.popupClassName,j=n.popupStyle,I=n.popupPlacement,N=n.builtinPlacements,O=N===void 0?{}:N,D=n.popupAlign,F=n.zIndex,z=n.stretch,R=n.getPopupClassNameFromAlign,H=n.fresh,V=n.alignPoint,B=n.onPopupClick,W=n.onPopupAlign,q=n.arrow,Q=n.popupMotion,G=n.maskMotion,X=n.popupTransitionName,re=n.popupAnimation,K=n.maskTransitionName,Y=n.maskAnimation,Z=n.className,J=n.getTriggerDOMNode,ee=ut(n,L4e),te=$||E||!1,le=c.useState(!1),oe=ie(le,2),de=oe[0],pe=oe[1];nn(function(){pe(Sk())},[]);var we=c.useRef({}),fe=c.useContext(fA),ge=c.useMemo(function(){return{registerSubPopup:function(Mt,rr){we.current[Mt]=rr,fe==null||fe.registerSubPopup(Mt,rr)}}},[fe]),ue=yk(),ce=c.useState(null),$e=ie(ce,2),se=$e[0],ve=$e[1],he=c.useRef(null),_e=Vt(function(Wt){he.current=Wt,l0(Wt)&&se!==Wt&&ve(Wt),fe==null||fe.registerSubPopup(ue,Wt)}),Se=c.useState(null),Pe=ie(Se,2),De=Pe[0],xe=Pe[1],ye=c.useRef(null),Te=Vt(function(Wt){l0(Wt)&&De!==Wt&&(xe(Wt),ye.current=Wt)}),Ie=c.Children.only(o),ke=(Ie==null?void 0:Ie.props)||{},je={},He=Vt(function(Wt){var Mt,rr,ln=De;return(ln==null?void 0:ln.contains(Wt))||((Mt=tS(ln))===null||Mt===void 0?void 0:Mt.host)===Wt||Wt===ln||(se==null?void 0:se.contains(Wt))||((rr=tS(se))===null||rr===void 0?void 0:rr.host)===Wt||Wt===se||Object.values(we.current).some(function(hr){return(hr==null?void 0:hr.contains(Wt))||Wt===hr})}),Be=pA(a,Q,re,X),ct=pA(a,G,Y,K),Ve=c.useState(m||!1),Ye=ie(Ve,2),Ne=Ye[0],Ae=Ye[1],et=f??Ne,nt=Vt(function(Wt){f===void 0&&Ae(Wt)});nn(function(){Ae(f||!1)},[f]);var rt=c.useRef(et);rt.current=et;var it=c.useRef([]);it.current=[];var be=Vt(function(Wt){var Mt;nt(Wt),((Mt=it.current[it.current.length-1])!==null&&Mt!==void 0?Mt:et)!==Wt&&(it.current.push(Wt),p==null||p(Wt))}),Oe=c.useRef(),Ce=function(){clearTimeout(Oe.current)},Re=function(Mt){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ce(),rr===0?be(Mt):Oe.current=setTimeout(function(){be(Mt)},rr*1e3)};c.useEffect(function(){return Ce},[]);var Ke=c.useState(!1),Xe=ie(Ke,2),lt=Xe[0],tt=Xe[1];nn(function(Wt){(!Wt||et)&&tt(!0)},[et]);var Qe=c.useState(null),Ge=ie(Qe,2),st=Ge[0],pt=Ge[1],yt=c.useState(null),zt=ie(yt,2),$t=zt[0],ze=zt[1],me=function(Mt){ze([Mt.clientX,Mt.clientY])},Me=j4e(et,se,V&&$t!==null?$t:De,I,O,D,W),We=ie(Me,11),wt=We[0],Ze=We[1],Le=We[2],ot=We[3],ht=We[4],Et=We[5],Rt=We[6],Ct=We[7],at=We[8],kt=We[9],At=We[10],Dt=M4e(de,l,u,d),en=ie(Dt,2),vn=en[0],bn=en[1],Sr=vn.has("click"),pr=bn.has("click")||bn.has("contextMenu"),nr=Vt(function(){lt||At()}),Kr=function(){rt.current&&V&&pr&&Re(!1)};F4e(et,De,se,nr,Kr),nn(function(){nr()},[$t,I]),nn(function(){et&&!(O!=null&&O[I])&&nr()},[JSON.stringify(D)]);var gn=c.useMemo(function(){var Wt=D4e(O,a,kt,V);return ne(Wt,R==null?void 0:R(kt))},[kt,R,O,a,V]);c.useImperativeHandle(r,function(){return{nativeElement:ye.current,popupElement:he.current,forceAlign:nr}});var Bt=c.useState(0),jt=ie(Bt,2),xn=jt[0],Ft=jt[1],Nt=c.useState(0),hn=ie(Nt,2),Rn=hn[0],dr=hn[1],Ue=function(){if(z&&De){var Mt=De.getBoundingClientRect();Ft(Mt.width),dr(Mt.height)}},vt=function(){Ue(),nr()},_t=function(Mt){tt(!1),At(),v==null||v(Mt)},dt=function(){return new Promise(function(Mt){Ue(),pt(function(){return Mt})})};nn(function(){st&&(At(),st(),pt(null))},[st]);function Je(Wt,Mt,rr,ln){je[Wt]=function(hr){var $n;ln==null||ln(hr),Re(Mt,rr);for(var fr=arguments.length,_a=new Array(fr>1?fr-1:0),pb=1;pb1?rr-1:0),hr=1;hr1?rr-1:0),hr=1;hr1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=wJ(n,!1),o=a.label,s=a.value,l=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(p){if(m||!(l in p)){var v=p[s];i.push({key:yA(p,i.length),groupOption:m,data:p,label:p[o],value:v})}else{var h=p[u];h===void 0&&r&&(h=p.label),i.push({key:yA(p,i.length),group:!0,data:p,label:h}),d(p[l],!0)}})}return d(e,!1),i}function zT(e){var t=A({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return An(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var q4e=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,u){var d=AR(u),f=d[0],m=d.slice(1);if(!f)return[l];var p=l.split(f);return i=i||p.length>1,p.reduce(function(v,h){return[].concat(Fe(v),Fe(s(h,m)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r<"u"?o.slice(0,r):o:null},pM=c.createContext(null);function G4e(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return c.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(mt(a))?a:o}).join(", ")),n.length>r?", ...":null)}var K4e=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Y4e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],HT=function(t){return t==="tags"||t==="multiple"},vM=c.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,p=e.notFoundContent,v=p===void 0?"Not Found":p,h=e.onClear,g=e.mode,w=e.disabled,b=e.loading,y=e.getInputElement,x=e.getRawInputElement,C=e.open,S=e.defaultOpen,k=e.onDropdownVisibleChange,_=e.activeValue,$=e.onActiveValueChange,E=e.activeDescendantId,T=e.searchValue,M=e.autoClearSearchValue,j=e.onSearch,I=e.onSearchSplit,N=e.tokenSeparators,O=e.allowClear,D=e.prefix,F=e.suffixIcon,z=e.clearIcon,R=e.OptionList,H=e.animation,V=e.transitionName,B=e.dropdownStyle,W=e.dropdownClassName,q=e.dropdownMatchSelectWidth,Q=e.dropdownRender,G=e.dropdownAlign,X=e.placement,re=e.builtinPlacements,K=e.getPopupContainer,Y=e.showAction,Z=Y===void 0?[]:Y,J=e.onFocus,ee=e.onBlur,te=e.onKeyUp,le=e.onKeyDown,oe=e.onMouseDown,de=ut(e,K4e),pe=HT(g),we=(o!==void 0?o:pe)||g==="combobox",fe=A({},de);Y4e.forEach(function(Bt){delete fe[Bt]}),u==null||u.forEach(function(Bt){delete fe[Bt]});var ge=c.useState(!1),ue=ie(ge,2),ce=ue[0],$e=ue[1];c.useEffect(function(){$e(Sk())},[]);var se=c.useRef(null),ve=c.useRef(null),he=c.useRef(null),_e=c.useRef(null),Se=c.useRef(null),Pe=c.useRef(!1),De=r4e(),xe=ie(De,3),ye=xe[0],Te=xe[1],Ie=xe[2];c.useImperativeHandle(t,function(){var Bt,jt;return{focus:(Bt=_e.current)===null||Bt===void 0?void 0:Bt.focus,blur:(jt=_e.current)===null||jt===void 0?void 0:jt.blur,scrollTo:function(Ft){var Nt;return(Nt=Se.current)===null||Nt===void 0?void 0:Nt.scrollTo(Ft)},nativeElement:se.current||ve.current}});var ke=c.useMemo(function(){var Bt;if(g!=="combobox")return T;var jt=(Bt=d[0])===null||Bt===void 0?void 0:Bt.value;return typeof jt=="string"||typeof jt=="number"?String(jt):""},[T,g,d]),je=g==="combobox"&&typeof y=="function"&&y()||null,He=typeof x=="function"&&x(),Be=Yl(ve,He==null||(n=He.props)===null||n===void 0?void 0:n.ref),ct=c.useState(!1),Ve=ie(ct,2),Ye=Ve[0],Ne=Ve[1];nn(function(){Ne(!0)},[]);var Ae=Ut(!1,{defaultValue:S,value:C}),et=ie(Ae,2),nt=et[0],rt=et[1],it=Ye?nt:!1,be=!v&&m;(w||be&&it&&g==="combobox")&&(it=!1);var Oe=be?!1:it,Ce=c.useCallback(function(Bt){var jt=Bt!==void 0?Bt:!it;w||(rt(jt),it!==jt&&(k==null||k(jt)))},[w,it,rt,k]),Re=c.useMemo(function(){return(N||[]).some(function(Bt){return[` +`,`\r +`].includes(Bt)})},[N]),Ke=c.useContext(pM)||{},Xe=Ke.maxCount,lt=Ke.rawValues,tt=function(jt,xn,Ft){if(!(pe&&BT(Xe)&&(lt==null?void 0:lt.size)>=Xe)){var Nt=!0,hn=jt;$==null||$(null);var Rn=q4e(jt,N,BT(Xe)?Xe-lt.size:void 0),dr=Ft?null:Rn;return g!=="combobox"&&dr&&(hn="",I==null||I(dr),Ce(!1),Nt=!1),j&&ke!==hn&&j(hn,{source:xn?"typing":"effect"}),Nt}},Qe=function(jt){!jt||!jt.trim()||j(jt,{source:"submit"})};c.useEffect(function(){!it&&!pe&&g!=="combobox"&&tt("",!1,!1)},[it]),c.useEffect(function(){nt&&w&&rt(!1),w&&!Pe.current&&Te(!1)},[w]);var Ge=mJ(),st=ie(Ge,2),pt=st[0],yt=st[1],zt=c.useRef(!1),$t=function(jt){var xn=pt(),Ft=jt.key,Nt=Ft==="Enter";if(Nt&&(g!=="combobox"&&jt.preventDefault(),it||Ce(!0)),yt(!!ke),Ft==="Backspace"&&!xn&&pe&&!ke&&d.length){for(var hn=Fe(d),Rn=null,dr=hn.length-1;dr>=0;dr-=1){var Ue=hn[dr];if(!Ue.disabled){hn.splice(dr,1),Rn=Ue;break}}Rn&&f(hn,{type:"remove",values:[Rn]})}for(var vt=arguments.length,_t=new Array(vt>1?vt-1:0),dt=1;dt1?xn-1:0),Nt=1;Nt1?Rn-1:0),Ue=1;Ue"u"?"undefined":mt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const SJ=function(e,t,n,r){var i=c.useRef(!1),a=c.useRef(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var s=c.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(a.current),i.current=!1):(!f||i.current)&&o(),!i.current&&f}};function ePe(e,t,n,r,i,a,o){var s=c.useRef(0),l=c.useRef(null),u=c.useRef(null),d=c.useRef(!1),f=SJ(t,n,r,i);function m(b,y){if(tn.cancel(l.current),!f(!1,y)){var x=b;if(!x._virtualHandled)x._virtualHandled=!0;else return;s.current+=y,u.current=y,wA||x.preventDefault(),l.current=tn(function(){var C=d.current?10:1;o(s.current*C,!1),s.current=0})}}function p(b,y){o(y,!0),wA||b.preventDefault()}var v=c.useRef(null),h=c.useRef(null);function g(b){if(e){tn.cancel(h.current),h.current=tn(function(){v.current=null},2);var y=b.deltaX,x=b.deltaY,C=b.shiftKey,S=y,k=x;(v.current==="sx"||!v.current&&C&&x&&!y)&&(S=x,k=0,v.current="sx");var _=Math.abs(S),$=Math.abs(k);v.current===null&&(v.current=a&&_>$?"x":"y"),v.current==="y"?m(b,k):p(b,S)}}function w(b){e&&(d.current=b.detail===u.current)}return[g,w]}function tPe(e,t,n,r){var i=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=ie(i,2),o=a[0],s=a[1],l=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=o.get(d),p=o.get(f);if(m===void 0||p===void 0)for(var v=e.length,h=s.length;h0&&arguments[0]!==void 0?arguments[0]:!1;d();var v=function(){s.current.forEach(function(g,w){if(g&&g.offsetParent){var b=vg(g),y=b.offsetHeight,x=getComputedStyle(b),C=x.marginTop,S=x.marginBottom,k=xA(C),_=xA(S),$=y+k+_;l.current.get(w)!==$&&l.current.set(w,$)}}),o(function(g){return g+1})};p?v():u.current=tn(v)}function m(p,v){var h=e(p);s.current.get(h),v?(s.current.set(h,v),f()):s.current.delete(h)}return c.useEffect(function(){return d},[]),[m,f,l.current,a]}var SA=14/15;function iPe(e,t,n){var r=c.useRef(!1),i=c.useRef(0),a=c.useRef(0),o=c.useRef(null),s=c.useRef(null),l,u=function(p){if(r.current){var v=Math.ceil(p.touches[0].pageX),h=Math.ceil(p.touches[0].pageY),g=i.current-v,w=a.current-h,b=Math.abs(g)>Math.abs(w);b?i.current=v:a.current=h;var y=n(b,b?g:w,!1,p);y&&p.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){b?g*=SA:w*=SA;var x=Math.floor(b?g:w);(!n(b,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,l()},f=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(p.touches[0].pageX),a.current=Math.ceil(p.touches[0].pageY),o.current=p.target,o.current.addEventListener("touchmove",u,{passive:!1}),o.current.addEventListener("touchend",d,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",u),o.current.removeEventListener("touchend",d))},nn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var aPe=10;function oPe(e,t,n,r,i,a,o,s){var l=c.useRef(),u=c.useState(null),d=ie(u,2),f=d[0],m=d[1];return nn(function(){if(f&&f.times=0;I-=1){var N=i(t[I]),O=n.get(N);if(O===void 0){b=!0;break}if(j-=O,j<=0)break}switch(C){case"top":x=k-g;break;case"bottom":x=_-w+g;break;default:{var D=e.current.scrollTop,F=D+w;kF&&(y="bottom")}}x!==null&&o(x),x!==f.lastTop&&(b=!0)}b&&m(A(A({},f),{},{times:f.times+1,targetAlign:y,lastTop:x}))}},[f,e.current]),function(p){if(p==null){s();return}if(tn.cancel(l.current),typeof p=="number")o(p);else if(p&&mt(p)==="object"){var v,h=p.align;"index"in p?v=p.index:v=t.findIndex(function(b){return i(b)===p.key});var g=p.offset,w=g===void 0?0:g;m({times:0,index:v,offset:w,originAlign:h})}}}function CA(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var kA=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,p=e.thumbStyle,v=c.useState(!1),h=ie(v,2),g=h[0],w=h[1],b=c.useState(null),y=ie(b,2),x=y[0],C=y[1],S=c.useState(null),k=ie(S,2),_=k[0],$=k[1],E=!r,T=c.useRef(),M=c.useRef(),j=c.useState(!1),I=ie(j,2),N=I[0],O=I[1],D=c.useRef(),F=function(){clearTimeout(D.current),O(!0),D.current=setTimeout(function(){O(!1)},3e3)},z=a-f||0,R=f-d||0,H=c.useMemo(function(){if(i===0||z===0)return 0;var K=i/z;return K*R},[i,z,R]),V=function(Y){Y.stopPropagation(),Y.preventDefault()},B=c.useRef({top:H,dragging:g,pageY:x,startTop:_});B.current={top:H,dragging:g,pageY:x,startTop:_};var W=function(Y){w(!0),C(CA(Y,u)),$(B.current.top),o(),Y.stopPropagation(),Y.preventDefault()};c.useEffect(function(){var K=function(ee){ee.preventDefault()},Y=T.current,Z=M.current;return Y.addEventListener("touchstart",K,{passive:!1}),Z.addEventListener("touchstart",W,{passive:!1}),function(){Y.removeEventListener("touchstart",K),Z.removeEventListener("touchstart",W)}},[]);var q=c.useRef();q.current=z;var Q=c.useRef();Q.current=R,c.useEffect(function(){if(g){var K,Y=function(ee){var te=B.current,le=te.dragging,oe=te.pageY,de=te.startTop;tn.cancel(K);var pe=T.current.getBoundingClientRect(),we=f/(u?pe.width:pe.height);if(le){var fe=(CA(ee,u)-oe)*we,ge=de;!E&&u?ge-=fe:ge+=fe;var ue=q.current,ce=Q.current,$e=ce?ge/ce:0,se=Math.ceil($e*ue);se=Math.max(se,0),se=Math.min(se,ue),K=tn(function(){l(se,u)})}},Z=function(){w(!1),s()};return window.addEventListener("mousemove",Y,{passive:!0}),window.addEventListener("touchmove",Y,{passive:!0}),window.addEventListener("mouseup",Z,{passive:!0}),window.addEventListener("touchend",Z,{passive:!0}),function(){window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",Z),window.removeEventListener("touchend",Z),tn.cancel(K)}}},[g]),c.useEffect(function(){return F(),function(){clearTimeout(D.current)}},[i]),c.useImperativeHandle(t,function(){return{delayHidden:F}});var G="".concat(n,"-scrollbar"),X={position:"absolute",visibility:N?null:"hidden"},re={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(X.height=8,X.left=0,X.right=0,X.bottom=0,re.height="100%",re.width=d,E?re.left=H:re.right=H):(X.width=8,X.top=0,X.bottom=0,E?X.right=0:X.left=0,re.width="100%",re.height=d,re.top=H),c.createElement("div",{ref:T,className:ne(G,U(U(U({},"".concat(G,"-horizontal"),u),"".concat(G,"-vertical"),!u),"".concat(G,"-visible"),N)),style:A(A({},X),m),onMouseDown:V,onMouseMove:F},c.createElement("div",{ref:M,className:ne("".concat(G,"-thumb"),U({},"".concat(G,"-thumb-moving"),g)),style:A(A({},re),p),onMouseDown:W}))}),sPe=20;function _A(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,sPe),Math.floor(n)}var lPe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],cPe=[],uPe={overflowY:"auto",overflowAnchor:"none"};function dPe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,p=e.virtual,v=e.direction,h=e.scrollWidth,g=e.component,w=g===void 0?"div":g,b=e.onScroll,y=e.onVirtualScroll,x=e.onVisibleChange,C=e.innerProps,S=e.extraRender,k=e.styles,_=ut(e,lPe),$=c.useCallback(function(me){return typeof m=="function"?m(me):me==null?void 0:me[m]},[m]),E=rPe($),T=ie(E,4),M=T[0],j=T[1],I=T[2],N=T[3],O=!!(p!==!1&&a&&o),D=c.useMemo(function(){return Object.values(I.maps).reduce(function(me,Me){return me+Me},0)},[I.id,I.maps]),F=O&&d&&(Math.max(o*d.length,D)>a||!!h),z=v==="rtl",R=ne(r,U({},"".concat(r,"-rtl"),z),i),H=d||cPe,V=c.useRef(),B=c.useRef(),W=c.useRef(),q=c.useState(0),Q=ie(q,2),G=Q[0],X=Q[1],re=c.useState(0),K=ie(re,2),Y=K[0],Z=K[1],J=c.useState(!1),ee=ie(J,2),te=ee[0],le=ee[1],oe=function(){le(!0)},de=function(){le(!1)},pe={getKey:$};function we(me){X(function(Me){var We;typeof me=="function"?We=me(Me):We=me;var wt=Ve(We);return V.current.scrollTop=wt,wt})}var fe=c.useRef({start:0,end:H.length}),ge=c.useRef(),ue=Z4e(H,$),ce=ie(ue,1),$e=ce[0];ge.current=$e;var se=c.useMemo(function(){if(!O)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};if(!F){var me;return{scrollHeight:((me=B.current)===null||me===void 0?void 0:me.offsetHeight)||0,start:0,end:H.length-1,offset:void 0}}for(var Me=0,We,wt,Ze,Le=H.length,ot=0;ot=G&&We===void 0&&(We=ot,wt=Me),Ct>G+a&&Ze===void 0&&(Ze=ot),Me=Ct}return We===void 0&&(We=0,wt=0,Ze=Math.ceil(a/o)),Ze===void 0&&(Ze=H.length-1),Ze=Math.min(Ze+1,H.length-1),{scrollHeight:Me,start:We,end:Ze,offset:wt}},[F,O,G,H,N,a]),ve=se.scrollHeight,he=se.start,_e=se.end,Se=se.offset;fe.current.start=he,fe.current.end=_e;var Pe=c.useState({width:0,height:a}),De=ie(Pe,2),xe=De[0],ye=De[1],Te=function(Me){ye({width:Me.offsetWidth,height:Me.offsetHeight})},Ie=c.useRef(),ke=c.useRef(),je=c.useMemo(function(){return _A(xe.width,h)},[xe.width,h]),He=c.useMemo(function(){return _A(xe.height,ve)},[xe.height,ve]),Be=ve-a,ct=c.useRef(Be);ct.current=Be;function Ve(me){var Me=me;return Number.isNaN(ct.current)||(Me=Math.min(Me,ct.current)),Me=Math.max(Me,0),Me}var Ye=G<=0,Ne=G>=Be,Ae=Y<=0,et=Y>=h,nt=SJ(Ye,Ne,Ae,et),rt=function(){return{x:z?-Y:Y,y:G}},it=c.useRef(rt()),be=Vt(function(me){if(y){var Me=A(A({},rt()),me);(it.current.x!==Me.x||it.current.y!==Me.y)&&(y(Me),it.current=Me)}});function Oe(me,Me){var We=me;Me?(ki.flushSync(function(){Z(We)}),be()):we(We)}function Ce(me){var Me=me.currentTarget.scrollTop;Me!==G&&we(Me),b==null||b(me),be()}var Re=function(Me){var We=Me,wt=h?h-xe.width:0;return We=Math.max(We,0),We=Math.min(We,wt),We},Ke=Vt(function(me,Me){Me?(ki.flushSync(function(){Z(function(We){var wt=We+(z?-me:me);return Re(wt)})}),be()):we(function(We){var wt=We+me;return wt})}),Xe=ePe(O,Ye,Ne,Ae,et,!!h,Ke),lt=ie(Xe,2),tt=lt[0],Qe=lt[1];iPe(O,V,function(me,Me,We,wt){var Ze=wt;return nt(me,Me,We)?!1:!Ze||!Ze._virtualHandled?(Ze&&(Ze._virtualHandled=!0),tt({preventDefault:function(){},deltaX:me?Me:0,deltaY:me?0:Me}),!0):!1}),nn(function(){function me(We){var wt=Ye&&We.detail<0,Ze=Ne&&We.detail>0;O&&!wt&&!Ze&&We.preventDefault()}var Me=V.current;return Me.addEventListener("wheel",tt,{passive:!1}),Me.addEventListener("DOMMouseScroll",Qe,{passive:!0}),Me.addEventListener("MozMousePixelScroll",me,{passive:!1}),function(){Me.removeEventListener("wheel",tt),Me.removeEventListener("DOMMouseScroll",Qe),Me.removeEventListener("MozMousePixelScroll",me)}},[O,Ye,Ne]),nn(function(){if(h){var me=Re(Y);Z(me),be({x:me})}},[xe.width,h]);var Ge=function(){var Me,We;(Me=Ie.current)===null||Me===void 0||Me.delayHidden(),(We=ke.current)===null||We===void 0||We.delayHidden()},st=oPe(V,H,I,o,$,function(){return j(!0)},we,Ge);c.useImperativeHandle(t,function(){return{nativeElement:W.current,getScrollInfo:rt,scrollTo:function(Me){function We(wt){return wt&&mt(wt)==="object"&&("left"in wt||"top"in wt)}We(Me)?(Me.left!==void 0&&Z(Re(Me.left)),st(Me.top)):st(Me)}}}),nn(function(){if(x){var me=H.slice(he,_e+1);x(me,H)}},[he,_e,H]);var pt=tPe(H,$,I,o),yt=S==null?void 0:S({start:he,end:_e,virtual:F,offsetX:Y,offsetY:Se,rtl:z,getSize:pt}),zt=Q4e(H,he,_e,h,Y,M,f,pe),$t=null;a&&($t=A(U({},l?"height":"maxHeight",a),uPe),O&&($t.overflowY="hidden",h&&($t.overflowX="hidden"),te&&($t.pointerEvents="none")));var ze={};return z&&(ze.dir="rtl"),c.createElement("div",Ee({ref:W,style:A(A({},u),{},{position:"relative"}),className:R},ze,_),c.createElement(Ci,{onResize:Te},c.createElement(w,{className:"".concat(r,"-holder"),style:$t,ref:V,onScroll:Ce,onMouseEnter:Ge},c.createElement(xJ,{prefixCls:r,height:ve,offsetX:Y,offsetY:Se,scrollWidth:h,onInnerResize:j,ref:B,innerProps:C,rtl:z,extra:yt},zt))),F&&ve>a&&c.createElement(kA,{ref:Ie,prefixCls:r,scrollOffset:G,scrollRange:ve,rtl:z,onScroll:Oe,onStartMove:oe,onStopMove:de,spinSize:He,containerSize:xe.height,style:k==null?void 0:k.verticalScrollBar,thumbStyle:k==null?void 0:k.verticalScrollBarThumb}),F&&h>xe.width&&c.createElement(kA,{ref:ke,prefixCls:r,scrollOffset:Y,scrollRange:h,rtl:z,onScroll:Oe,onStartMove:oe,onStopMove:de,spinSize:je,containerSize:xe.width,horizontal:!0,style:k==null?void 0:k.horizontalScrollBar,thumbStyle:k==null?void 0:k.horizontalScrollBarThumb}))}var kk=c.forwardRef(dPe);kk.displayName="List";function fPe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var mPe=["disabled","title","children","style","className"];function $A(e){return typeof e=="string"||typeof e=="number"}var pPe=function(t,n){var r=mM(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,p=c.useContext(pM),v=p.maxCount,h=p.flattenOptions,g=p.onActiveValue,w=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,C=p.fieldNames,S=p.virtual,k=p.direction,_=p.listHeight,$=p.listItemHeight,E=p.optionRender,T="".concat(i,"-item"),M=Nc(function(){return h},[o,h],function(Y,Z){return Z[0]&&Y[1]!==Z[1]}),j=c.useRef(null),I=c.useMemo(function(){return s&&BT(v)&&(x==null?void 0:x.size)>=v},[s,v,x==null?void 0:x.size]),N=function(Z){Z.preventDefault()},O=function(Z){var J;(J=j.current)===null||J===void 0||J.scrollTo(typeof Z=="number"?{index:Z}:Z)},D=c.useCallback(function(Y){return l==="combobox"?!1:x.has(Y)},[l,Fe(x).toString(),x.size]),F=function(Z){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=M.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;V(Z);var ee={source:J?"keyboard":"mouse"},te=M[Z];if(!te){g(null,-1,ee);return}g(te.value,Z,ee)};c.useEffect(function(){B(w!==!1?F(0):-1)},[M.length,u]);var W=c.useCallback(function(Y){return l==="combobox"?String(Y).toLowerCase()===u.toLowerCase():x.has(Y)},[l,u,Fe(x).toString(),x.size]);c.useEffect(function(){var Y=setTimeout(function(){if(!s&&o&&x.size===1){var J=Array.from(x)[0],ee=M.findIndex(function(te){var le=te.data;return le.value===J});ee!==-1&&(B(ee),O(ee))}});if(o){var Z;(Z=j.current)===null||Z===void 0||Z.scrollTo(void 0)}return function(){return clearTimeout(Y)}},[o,u]);var q=function(Z){Z!==void 0&&b(Z,{selected:!x.has(Z)}),s||d(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(Z){var J=Z.which,ee=Z.ctrlKey;switch(J){case qe.N:case qe.P:case qe.UP:case qe.DOWN:{var te=0;if(J===qe.UP?te=-1:J===qe.DOWN?te=1:fPe()&&ee&&(J===qe.N?te=1:J===qe.P&&(te=-1)),te!==0){var le=F(H+te,te);O(le),B(le,!0)}break}case qe.TAB:case qe.ENTER:{var oe,de=M[H];de&&!(de!=null&&(oe=de.data)!==null&&oe!==void 0&&oe.disabled)&&!I?q(de.value):q(void 0),o&&Z.preventDefault();break}case qe.ESC:d(!1),o&&Z.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Z){O(Z)}}}),M.length===0)return c.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(T,"-empty"),onMouseDown:N},f);var Q=Object.keys(C).map(function(Y){return C[Y]}),G=function(Z){return Z.label};function X(Y,Z){var J=Y.group;return{role:J?"presentation":"option",id:"".concat(a,"_list_").concat(Z)}}var re=function(Z){var J=M[Z];if(!J)return null;var ee=J.data||{},te=ee.value,le=J.group,oe=er(ee,!0),de=G(J);return J?c.createElement("div",Ee({"aria-label":typeof de=="string"&&!le?de:null},oe,{key:Z},X(J,Z),{"aria-selected":W(te)}),te):null},K={role:"listbox",id:"".concat(a,"_list")};return c.createElement(c.Fragment,null,S&&c.createElement("div",Ee({},K,{style:{height:0,width:0,overflow:"hidden"}}),re(H-1),re(H),re(H+1)),c.createElement(kk,{itemKey:"key",ref:j,data:M,height:_,itemHeight:$,fullHeight:!1,onMouseDown:N,onScroll:m,virtual:S,direction:k,innerProps:S?null:K},function(Y,Z){var J=Y.group,ee=Y.groupOption,te=Y.data,le=Y.label,oe=Y.value,de=te.key;if(J){var pe,we=(pe=te.title)!==null&&pe!==void 0?pe:$A(le)?le.toString():void 0;return c.createElement("div",{className:ne(T,"".concat(T,"-group"),te.className),title:we},le!==void 0?le:de)}var fe=te.disabled,ge=te.title;te.children;var ue=te.style,ce=te.className,$e=ut(te,mPe),se=_n($e,Q),ve=D(oe),he=fe||!ve&&I,_e="".concat(T,"-option"),Se=ne(T,_e,ce,U(U(U(U({},"".concat(_e,"-grouped"),ee),"".concat(_e,"-active"),H===Z&&!he),"".concat(_e,"-disabled"),he),"".concat(_e,"-selected"),ve)),Pe=G(Y),De=!y||typeof y=="function"||ve,xe=typeof Pe=="number"?Pe:Pe||oe,ye=$A(xe)?xe.toString():void 0;return ge!==void 0&&(ye=ge),c.createElement("div",Ee({},er(se),S?{}:X(Y,Z),{"aria-selected":W(oe),className:Se,title:ye,onMouseMove:function(){H===Z||he||B(Z)},onClick:function(){he||q(oe)},style:ue}),c.createElement("div",{className:"".concat(_e,"-content")},typeof E=="function"?E(Y,{index:Z}):xe),c.isValidElement(y)||ve,De&&c.createElement(Ck,{className:"".concat(T,"-option-state"),customizeIcon:y,customizeIconProps:{value:oe,disabled:he,isSelected:ve}},ve?"✓":null))}))},vPe=c.forwardRef(pPe);const hPe=function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var m;return A(A({},f),{},{label:(m=o.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return l.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,l},[e,t]),i=c.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function wE(e,t){return bJ(e).join("").toUpperCase().includes(t)}const gPe=function(e,t,n,r,i){return c.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(p,v){return i?wE(v[i],d):v[a]?wE(v[o!=="children"?o:"label"],d):wE(v[s],d)},m=u?function(p){return zT(p)}:function(p){return p};return e.forEach(function(p){if(p[a]){var v=f(n,m(p));if(v)l.push(p);else{var h=p[a].filter(function(g){return f(n,m(g))});h.length&&l.push(A(A({},p),{},U({},a,h)))}return}f(n,m(p))&&l.push(p)}),l},[e,r,i,n,t])};var EA=0,bPe=ya();function yPe(){var e;return bPe?(e=EA,EA+=1):e="TEST_OR_SSR",e}function bM(e){var t=c.useState(),n=ie(t,2),r=n[0],i=n[1];return c.useEffect(function(){i("rc_select_".concat(yPe()))},[]),e||r}var wPe=["children","value"],xPe=["children"];function SPe(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=ut(r,wPe);return A({key:n,value:a!==void 0?a:n,children:i},o)}function CJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Wr(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,u=ut(s,xPe);return t||!a?SPe(n):A(A({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},u),{},{options:CJ(l)})}).filter(function(n){return n})}var CPe=function(t,n,r,i,a){return c.useMemo(function(){var o=t,s=!t;s&&(o=CJ(n));var l=new Map,u=new Map,d=function(p,v,h){h&&typeof h=="string"&&p.set(v[h],v)},f=function m(p){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h0?Ce(Xe.options):Xe.options}):Xe})},xe=c.useMemo(function(){return b?De(Pe):Pe},[Pe,b,K]),ye=c.useMemo(function(){return U4e(xe,{fieldNames:G,childrenAsData:q})},[xe,G,q]),Te=function(Re){var Ke=le(Re);if(we(Ke),R&&(Ke.length!==ce.length||Ke.some(function(tt,Qe){var Ge;return((Ge=ce[Qe])===null||Ge===void 0?void 0:Ge.value)!==(tt==null?void 0:tt.value)}))){var Xe=z?Ke:Ke.map(function(tt){return tt.value}),lt=Ke.map(function(tt){return zT($e(tt.value))});R(W?Xe:Xe[0],W?lt:lt[0])}},Ie=c.useState(null),ke=ie(Ie,2),je=ke[0],He=ke[1],Be=c.useState(0),ct=ie(Be,2),Ve=ct[0],Ye=ct[1],Ne=_!==void 0?_:r!=="combobox",Ae=c.useCallback(function(Ce,Re){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xe=Ke.source,lt=Xe===void 0?"keyboard":Xe;Ye(Re),o&&r==="combobox"&&Ce!==null&<==="keyboard"&&He(String(Ce))},[o,r]),et=function(Re,Ke,Xe){var lt=function(){var me,Me=$e(Re);return[z?{label:Me==null?void 0:Me[G.label],value:Re,key:(me=Me==null?void 0:Me.key)!==null&&me!==void 0?me:Re}:Re,zT(Me)]};if(Ke&&p){var tt=lt(),Qe=ie(tt,2),Ge=Qe[0],st=Qe[1];p(Ge,st)}else if(!Ke&&v&&Xe!=="clear"){var pt=lt(),yt=ie(pt,2),zt=yt[0],$t=yt[1];v(zt,$t)}},nt=PA(function(Ce,Re){var Ke,Xe=W?Re.selected:!0;Xe?Ke=W?[].concat(Fe(ce),[Ce]):[Ce]:Ke=ce.filter(function(lt){return lt.value!==Ce}),Te(Ke),et(Ce,Xe),r==="combobox"?He(""):(!HT||m)&&(Y(""),He(""))}),rt=function(Re,Ke){Te(Re);var Xe=Ke.type,lt=Ke.values;(Xe==="remove"||Xe==="clear")&<.forEach(function(tt){et(tt.value,!1,Xe)})},it=function(Re,Ke){if(Y(Re),He(null),Ke.source==="submit"){var Xe=(Re||"").trim();if(Xe){var lt=Array.from(new Set([].concat(Fe(ve),[Xe])));Te(lt),et(Xe,!0),Y("")}return}Ke.source!=="blur"&&(r==="combobox"&&Te(Re),d==null||d(Re))},be=function(Re){var Ke=Re;r!=="tags"&&(Ke=Re.map(function(lt){var tt=ee.get(lt);return tt==null?void 0:tt.value}).filter(function(lt){return lt!==void 0}));var Xe=Array.from(new Set([].concat(Fe(ve),Fe(Ke))));Te(Xe),Xe.forEach(function(lt){et(lt,!0)})},Oe=c.useMemo(function(){var Ce=E!==!1&&g!==!1;return A(A({},Z),{},{flattenOptions:ye,onActiveValue:Ae,defaultActiveFirstOption:Ne,onSelect:nt,menuItemSelectedIcon:$,rawValues:ve,fieldNames:G,virtual:Ce,direction:T,listHeight:j,listItemHeight:N,childrenAsData:q,maxCount:H,optionRender:S})},[H,Z,ye,Ae,Ne,nt,$,ve,G,E,g,T,j,N,q,S]);return c.createElement(pM.Provider,{value:Oe},c.createElement(vM,Ee({},V,{id:B,prefixCls:a,ref:t,omitDomProps:_Pe,mode:r,displayValues:se,onDisplayValuesChange:rt,direction:T,searchValue:K,onSearch:it,autoClearSearchValue:m,onSearchSplit:be,dropdownMatchSelectWidth:g,OptionList:vPe,emptyOptions:!ye.length,activeValue:je,activeDescendantId:"".concat(B,"_list_").concat(Ve)})))}),yM=EPe;yM.Option=gM;yM.OptGroup=hM;function el(e,t,n){return ne({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Vc=(e,t)=>t||e,PPe=()=>{const[,e]=Gr(),[t]=la("Empty"),r=new rn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),c.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),c.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),c.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),c.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},TPe=()=>{const[,e]=Gr(),[t]=la("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:l}=c.useMemo(()=>({borderColor:new rn(n).onBackground(a).toHexString(),shadowColor:new rn(r).onBackground(a).toHexString(),contentColor:new rn(i).onBackground(a).toHexString()}),[n,r,i,a]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:o},c.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},OPe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},IPe=sn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Kt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[OPe(i)]});var RPe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l;const{className:u,rootClassName:d,prefixCls:f,image:m=kJ,description:p,children:v,imageStyle:h,style:g,classNames:w,styles:b}=e,y=RPe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:x,direction:C,empty:S}=c.useContext(xt),k=x("empty",f),[_,$,E]=IPe(k),[T]=la("Empty"),M=typeof p<"u"?p:T==null?void 0:T.description,j=typeof M=="string"?M:"empty";let I=null;return typeof m=="string"?I=c.createElement("img",{alt:j,src:m}):I=m,_(c.createElement("div",Object.assign({className:ne($,E,k,S==null?void 0:S.className,{[`${k}-normal`]:m===_J,[`${k}-rtl`]:C==="rtl"},u,d,(t=S==null?void 0:S.classNames)===null||t===void 0?void 0:t.root,w==null?void 0:w.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=S==null?void 0:S.styles)===null||n===void 0?void 0:n.root),S==null?void 0:S.style),b==null?void 0:b.root),g)},y),c.createElement("div",{className:ne(`${k}-image`,(r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.image,w==null?void 0:w.image),style:Object.assign(Object.assign(Object.assign({},h),(i=S==null?void 0:S.styles)===null||i===void 0?void 0:i.image),b==null?void 0:b.image)},I),M&&c.createElement("div",{className:ne(`${k}-description`,(a=S==null?void 0:S.classNames)===null||a===void 0?void 0:a.description,w==null?void 0:w.description),style:Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.description),b==null?void 0:b.description)},M),v&&c.createElement("div",{className:ne(`${k}-footer`,(s=S==null?void 0:S.classNames)===null||s===void 0?void 0:s.footer,w==null?void 0:w.footer),style:Object.assign(Object.assign({},(l=S==null?void 0:S.styles)===null||l===void 0?void 0:l.footer),b==null?void 0:b.footer)},v)))};pc.PRESENTED_IMAGE_DEFAULT=kJ;pc.PRESENTED_IMAGE_SIMPLE=_J;const O1=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(xt),r=n("empty");switch(t){case"Table":case"List":return L.createElement(pc,{image:pc.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return L.createElement(pc,{image:pc.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return L.createElement(pc,null)}},Wc=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=c.useContext(xt),s=c.useContext(jQ),l=o==null?void 0:o.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(i=(r=s??l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const d=oCe.includes(u);return[u,d]},MPe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function wM(e,t){return e||MPe(t)}const TA=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},NPe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},mn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + ${i}${s}bottomLeft, + ${a}${s}bottomLeft + `]:{animationName:uk},[` + ${i}${s}topLeft, + ${a}${s}topLeft, + ${i}${s}topRight, + ${a}${s}topRight + `]:{animationName:fk},[`${o}${s}bottomLeft`]:{animationName:dk},[` + ${o}${s}topLeft, + ${o}${s}topRight + `]:{animationName:mk},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},TA(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ha),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},TA(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Ll(e,"slide-up"),Ll(e,"slide-down"),Np(e,"move-up"),Np(e,"move-down")]},$J=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:ae(t),itemLineHeight:ae(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},DPe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},EJ=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},jf()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},jPe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=DPe(e),s=t?`${n}-${t}`:"",l=$J(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},EJ(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ae(r)} 0`,lineHeight:ae(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ae(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ae(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item, + ${n}-prefix + ${n}-selection-wrap + `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:ae(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function xE(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[jPe(e,t),i]}const FPe=e=>{const{componentCls:t}=e,n=Kt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Kt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[xE(e),xE(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},xE(r,"lg")]};function SE(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},mn(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{display:"block",padding:0,lineHeight:ae(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-search, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ae(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:ae(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ae(r)}`,"&:after":{display:"none"}}}}}}}function APe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[SE(e),SE(Kt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ae(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},SE(Kt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const LPe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:p,colorBgContainer:v,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:w,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,C=s*2,S=r*2,k=Math.min(i-C,i-S),_=Math.min(a-C,a-S),$=Math.min(o-C,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:v,clearBg:v,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:k,multipleItemHeightSM:_,multipleItemHeightLG:$,multipleSelectorBgDisabled:g,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:s}},PJ=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ae(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},OA=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},PJ(e,t))}),BPe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},PJ(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),OA(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),OA(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),TJ=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ae(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},IA=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},TJ(e,t))}),zPe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},TJ(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),IA(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),IA(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),HPe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),VPe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},BPe(e)),zPe(e)),HPe(e))}),WPe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},UPe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},qPe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},WPe(e)),UPe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ha),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ha),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},jf()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},GPe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},qPe(e),APe(e),FPe(e),NPe(e),{[`${t}-rtl`]:{direction:"rtl"}},Af(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xM=sn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Kt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[GPe(r),VPe(r)]},LPe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var KPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},YPe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:KPe}))},SM=c.forwardRef(YPe),XPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},QPe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:XPe}))},I1=c.forwardRef(QPe),JPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},ZPe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:JPe}))},_k=c.forwardRef(ZPe);function $k(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;const p=n??c.createElement(Ql,null),v=b=>t===null&&!s&&!f?null:c.createElement(c.Fragment,null,u!==!1&&b,s&&d);let h=null;if(t!==void 0)h=v(t);else if(a)h=v(c.createElement(Xs,{spin:!0}));else{const b=`${l}-suffix`;h=y=>{let{open:x,showSearch:C}=y;return v(x&&C?c.createElement(_k,{className:b}):c.createElement(I1,{className:b}))}}let g=null;r!==void 0?g=r:o?g=c.createElement(SM,null):g=null;let w=null;return i!==void 0?w=i:w=c.createElement(vs,null),{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:w}}function CM(e,t){return t!==void 0?t:e!==null}var eTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:p,disabled:v,notFoundContent:h,status:g,builtinPlacements:w,dropdownMatchSelectWidth:b,popupMatchSelectWidth:y,direction:x,style:C,allowClear:S,variant:k,dropdownStyle:_,transitionName:$,tagRender:E,maxCount:T,prefix:M}=e,j=eTe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:I,getPrefixCls:N,renderEmpty:O,direction:D,virtual:F,popupMatchSelectWidth:z,popupOverflow:R,select:H}=c.useContext(xt),[,V]=Gr(),B=m??(V==null?void 0:V.controlHeight),W=N("select",r),q=N(),Q=x??D,{compactSize:G,compactItemClassnames:X}=ol(W,Q),[re,K]=Wc("select",k,i),Y=Ln(W),[Z,J,ee]=xM(W,Y),te=c.useMemo(()=>{const{mode:je}=e;if(je!=="combobox")return je===OJ?"combobox":je},[e.mode]),le=te==="multiple"||te==="tags",oe=CM(e.suffixIcon,e.showArrow),de=(n=y??b)!==null&&n!==void 0?n:z,{status:pe,hasFeedback:we,isFormItemInput:fe,feedbackIcon:ge}=c.useContext(ni),ue=Vc(pe,g);let ce;h!==void 0?ce=h:te==="combobox"?ce=null:ce=(O==null?void 0:O("Select"))||c.createElement(O1,{componentName:"Select"});const{suffixIcon:$e,itemIcon:se,removeIcon:ve,clearIcon:he}=$k(Object.assign(Object.assign({},j),{multiple:le,hasFeedback:we,feedbackIcon:ge,showSuffixIcon:oe,prefixCls:W,componentName:"Select"})),_e=S===!0?{clearIcon:he}:S,Se=_n(j,["suffixIcon","itemIcon"]),Pe=ne(l||u,{[`${W}-dropdown-${Q}`]:Q==="rtl"},o,ee,Y,J),De=Br(je=>{var He;return(He=p??G)!==null&&He!==void 0?He:je}),xe=c.useContext(Ur),ye=v??xe,Te=ne({[`${W}-lg`]:De==="large",[`${W}-sm`]:De==="small",[`${W}-rtl`]:Q==="rtl",[`${W}-${re}`]:K,[`${W}-in-form-item`]:fe},el(W,ue,we),X,H==null?void 0:H.className,a,o,ee,Y,J),Ie=c.useMemo(()=>f!==void 0?f:Q==="rtl"?"bottomRight":"bottomLeft",[f,Q]),[ke]=hs("SelectLike",_==null?void 0:_.zIndex);return Z(c.createElement(yM,Object.assign({ref:t,virtual:F,showSearch:H==null?void 0:H.showSearch},Se,{style:Object.assign(Object.assign({},H==null?void 0:H.style),C),dropdownMatchSelectWidth:de,transitionName:Mi(q,"slide-up",$),builtinPlacements:wM(w,R),listHeight:d,listItemHeight:B,mode:te,prefixCls:W,placement:Ie,direction:Q,prefix:M,suffixIcon:$e,menuItemSelectedIcon:se,removeIcon:ve,allowClear:_e,notFoundContent:ce,className:Te,getPopupContainer:s||I,dropdownClassName:Pe,disabled:ye,dropdownStyle:Object.assign(Object.assign({},_),{zIndex:ke}),maxCount:le?T:void 0,tagRender:le?E:void 0})))},Uc=c.forwardRef(tTe),nTe=id(Uc,"dropdownAlign");Uc.SECRET_COMBOBOX_MODE_DO_NOT_USE=OJ;Uc.Option=gM;Uc.OptGroup=hM;Uc._InternalPanelDoNotUseOrYouWillBeFired=nTe;const jp=["xxl","xl","lg","md","sm","xs"],rTe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),iTe=e=>{const t=e,n=[].concat(jp).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},i),{[a]:d}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function kM(){const[,e]=c.useReducer(t=>t+1,0);return e}function _M(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=c.useRef({}),n=kM(),r=IJ();return nn(()=>{const i=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const VT=c.createContext({}),aTe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,borderRadius:m,borderRadiusLG:p,borderRadiusSM:v,lineWidth:h,lineType:g}=e,w=(b,y,x)=>({width:b,height:b,borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`&${n}-icon`]:{fontSize:y,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${ae(h)} ${g} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),w(o,u,m)),{"&-lg":Object.assign({},w(s,d,p)),"&-sm":Object.assign({},w(l,f,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},oTe=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},sTe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+o)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:u,groupOverlapping:-l,groupBorderColor:d}},RJ=sn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Kt(e,{avatarBg:n,avatarColor:t});return[aTe(r),oTe(r)]},sTe);var lTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const[n,r]=c.useState(1),[i,a]=c.useState(!1),[o,s]=c.useState(!0),l=c.useRef(null),u=c.useRef(null),d=ri(t,l),{getPrefixCls:f,avatar:m}=c.useContext(xt),p=c.useContext(VT),v=()=>{if(!u.current||!l.current)return;const X=u.current.offsetWidth,re=l.current.offsetWidth;if(X!==0&&re!==0){const{gap:K=4}=e;K*2{a(!0)},[]),c.useEffect(()=>{s(!0),r(1)},[e.src]),c.useEffect(v,[e.gap]);const h=()=>{const{onError:X}=e;(X==null?void 0:X())!==!1&&s(!1)},{prefixCls:g,shape:w,size:b,src:y,srcSet:x,icon:C,className:S,rootClassName:k,alt:_,draggable:$,children:E,crossOrigin:T}=e,M=lTe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),j=Br(X=>{var re,K;return(K=(re=b??(p==null?void 0:p.size))!==null&&re!==void 0?re:X)!==null&&K!==void 0?K:"default"}),I=Object.keys(typeof j=="object"?j||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),N=_M(I),O=c.useMemo(()=>{if(typeof j!="object")return{};const X=jp.find(K=>N[K]),re=j[X];return re?{width:re,height:re,fontSize:re&&(C||E)?re/2:18}:{}},[N,j]),D=f("avatar",g),F=Ln(D),[z,R,H]=RJ(D,F),V=ne({[`${D}-lg`]:j==="large",[`${D}-sm`]:j==="small"}),B=c.isValidElement(y),W=w||(p==null?void 0:p.shape)||"circle",q=ne(D,V,m==null?void 0:m.className,`${D}-${W}`,{[`${D}-image`]:B||y&&o,[`${D}-icon`]:!!C},H,F,S,k,R),Q=typeof j=="number"?{width:j,height:j,fontSize:C?j/2:18}:{};let G;if(typeof y=="string"&&o)G=c.createElement("img",{src:y,draggable:$,srcSet:x,onError:h,alt:_,crossOrigin:T});else if(B)G=y;else if(C)G=C;else if(i||n!==1){const X=`scale(${n})`,re={msTransform:X,WebkitTransform:X,transform:X};G=c.createElement(Ci,{onResize:v},c.createElement("span",{className:`${D}-string`,ref:u,style:Object.assign({},re)},E))}else G=c.createElement("span",{className:`${D}-string`,style:{opacity:0},ref:u},E);return delete M.onError,delete M.gap,z(c.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Q),O),m==null?void 0:m.style),M.style),className:q,ref:d}),G))},MJ=c.forwardRef(cTe),aS=e=>e?typeof e=="function"?e():e:null;function $M(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,o=e.className,s=e.style;return c.createElement("div",{className:ne("".concat(n,"-content"),o),style:s},c.createElement("div",{className:ne("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var um={shiftX:64,adjustY:1},dm={adjustX:1,shiftY:!0},jo=[0,0],uTe={left:{points:["cr","cl"],overflow:dm,offset:[-4,0],targetOffset:jo},right:{points:["cl","cr"],overflow:dm,offset:[4,0],targetOffset:jo},top:{points:["bc","tc"],overflow:um,offset:[0,-4],targetOffset:jo},bottom:{points:["tc","bc"],overflow:um,offset:[0,4],targetOffset:jo},topLeft:{points:["bl","tl"],overflow:um,offset:[0,-4],targetOffset:jo},leftTop:{points:["tr","tl"],overflow:dm,offset:[-4,0],targetOffset:jo},topRight:{points:["br","tr"],overflow:um,offset:[0,-4],targetOffset:jo},rightTop:{points:["tl","tr"],overflow:dm,offset:[4,0],targetOffset:jo},bottomRight:{points:["tr","br"],overflow:um,offset:[0,4],targetOffset:jo},rightBottom:{points:["bl","br"],overflow:dm,offset:[4,0],targetOffset:jo},bottomLeft:{points:["tl","bl"],overflow:um,offset:[0,4],targetOffset:jo},leftBottom:{points:["br","bl"],overflow:dm,offset:[-4,0],targetOffset:jo}},dTe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],fTe=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,p=t.children,v=t.onVisibleChange,h=t.afterVisibleChange,g=t.transitionName,w=t.animation,b=t.motion,y=t.placement,x=y===void 0?"right":y,C=t.align,S=C===void 0?{}:C,k=t.destroyTooltipOnHide,_=k===void 0?!1:k,$=t.defaultVisible,E=t.getTooltipContainer,T=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,j=t.id,I=t.showArrow,N=I===void 0?!0:I,O=t.classNames,D=t.styles,F=ut(t,dTe),z=c.useRef(null);c.useImperativeHandle(n,function(){return z.current});var R=A({},F);"visible"in t&&(R.popupVisible=t.visible);var H=function(){return c.createElement($M,{key:"content",prefixCls:m,id:j,bodyClassName:O==null?void 0:O.body,overlayInnerStyle:A(A({},T),D==null?void 0:D.body)},M)};return c.createElement(T1,Ee({popupClassName:ne(r,O==null?void 0:O.root),prefixCls:m,popup:H,action:a,builtinPlacements:uTe,popupPlacement:x,ref:z,popupAlign:S,getPopupContainer:E,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:w,popupMotion:b,defaultPopupVisible:$,autoDestroy:_,mouseLeaveDelay:u,popupStyle:A(A({},d),D==null?void 0:D.root),mouseEnterDelay:s,arrow:N},R),p)};const mTe=c.forwardRef(fTe);function Ek(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),u=i-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-u,m=d,p=2*i-s,v=l,h=2*i-a,g=o,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),y=`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,x=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${p} ${v} A ${r} ${r} 0 0 0 ${h} ${g} Z')`;return{arrowShadowWidth:w,arrowPath:x,arrowPolygon:y}}const NJ=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},DJ=8;function Pk(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?DJ:r}}function Jb(e,t){return e?t:{}}function EM(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},NJ(e,t,i)),{"&:before":{background:t}})]},Jb(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Jb(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Jb(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Jb(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function pTe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const RA={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},vTe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},hTe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function jJ(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(RA).forEach(u=>{const d=r&&vTe[u]||RA[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,hTe.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const m=Pk({contentRadius:a,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal*2-s;break}f.overflow=pTe(u,m,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const gTe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:p}=e,v=t(o).add(p).add(m).equal(),h=t(o).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:h,minHeight:l,padding:`${ae(e.calc(d).div(2).equal())} ${ae(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,DJ)}},[`${n}-content`]:{position:"relative"}}),nk(e,(g,w)=>{let{darkColor:b}=w;return{[`&${n}-${g}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},EM(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},bTe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Pk({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ek(Kt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),FJ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return sn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=Kt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[gTe(s),yv(r,"zoom-big-fast")]},bTe,{resetStyle:!1,injectStyle:t})(e)},yTe=Cf.map(e=>`${e}-inverse`),wTe=["success","processing","error","default","warning"];function Tk(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Fe(yTe),Fe(Cf)).includes(e):Cf.includes(e)}function xTe(e){return wTe.includes(e)}function AJ(e,t){const n=Tk(t),r=ne({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const STe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=c.useContext(xt),l=s("tooltip",t),[u,d,f]=FJ(l),m=AJ(l,a),p=m.arrowStyle,v=Object.assign(Object.assign({},o),m.overlayStyle),h=ne(d,f,l,`${l}-pure`,`${l}-placement-${r}`,n,m.className);return u(c.createElement("div",{className:h,style:p},c.createElement("div",{className:`${l}-arrow`}),c.createElement($M,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:v}),i)))};var CTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,openClassName:u,getTooltipContainer:d,color:f,overlayInnerStyle:m,children:p,afterOpenChange:v,afterVisibleChange:h,destroyTooltipOnHide:g,arrow:w=!0,title:b,overlay:y,builtinPlacements:x,arrowPointAtCenter:C=!1,autoAdjustOverflow:S=!0}=e,k=!!w,[,_]=Gr(),{getPopupContainer:$,getPrefixCls:E,direction:T,tooltip:M}=c.useContext(xt),j=Xl(),I=c.useRef(null),N=()=>{var Se;(Se=I.current)===null||Se===void 0||Se.forceAlign()};c.useImperativeHandle(t,()=>{var Se;return{forceAlign:N,forcePopupAlign:()=>{j.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:(Se=I.current)===null||Se===void 0?void 0:Se.nativeElement}});const[O,D]=Ut(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=!b&&!y&&b!==0,z=Se=>{var Pe,De;D(F?!1:Se),F||((Pe=e.onOpenChange)===null||Pe===void 0||Pe.call(e,Se),(De=e.onVisibleChange)===null||De===void 0||De.call(e,Se))},R=c.useMemo(()=>{var Se,Pe;let De=C;return typeof w=="object"&&(De=(Pe=(Se=w.pointAtCenter)!==null&&Se!==void 0?Se:w.arrowPointAtCenter)!==null&&Pe!==void 0?Pe:C),x||jJ({arrowPointAtCenter:De,autoAdjustOverflow:S,arrowWidth:k?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0})},[C,w,x,_]),H=c.useMemo(()=>b===0?b:y||b||"",[y,b]),V=c.createElement(Zs,{space:!0},typeof H=="function"?H():H),{getPopupContainer:B,placement:W="top",mouseEnterDelay:q=.1,mouseLeaveDelay:Q=.1,overlayStyle:G,rootClassName:X,overlayClassName:re,styles:K,classNames:Y}=e,Z=CTe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),J=E("tooltip",l),ee=E(),te=e["data-popover-inject"];let le=O;!("open"in e)&&!("visible"in e)&&F&&(le=!1);const oe=c.isValidElement(p)&&!qX(p)?p:c.createElement("span",null,p),de=oe.props,pe=!de.className||typeof de.className=="string"?ne(de.className,u||`${J}-open`):de.className,[we,fe,ge]=FJ(J,!te),ue=AJ(J,f),ce=ue.arrowStyle,$e=ne(re,{[`${J}-rtl`]:T==="rtl"},ue.className,X,fe,ge,M==null?void 0:M.className,(i=M==null?void 0:M.classNames)===null||i===void 0?void 0:i.root,Y==null?void 0:Y.root),se=ne((a=M==null?void 0:M.classNames)===null||a===void 0?void 0:a.body,Y==null?void 0:Y.body),[ve,he]=hs("Tooltip",Z.zIndex),_e=c.createElement(mTe,Object.assign({},Z,{zIndex:ve,showArrow:k,placement:W,mouseEnterDelay:q,mouseLeaveDelay:Q,prefixCls:J,classNames:{root:$e,body:se},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ce),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),M==null?void 0:M.style),G),K==null?void 0:K.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=M==null?void 0:M.styles)===null||s===void 0?void 0:s.body),m),K==null?void 0:K.body),ue.overlayStyle)},getTooltipContainer:B||d||$,ref:I,builtinPlacements:R,overlay:V,visible:le,onVisibleChange:z,afterVisibleChange:v??h,arrowContent:c.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:Mi(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),le?qr(oe,{className:pe}):oe);return we(c.createElement(w1.Provider,{value:he},_e))}),sa=kTe;sa._InternalPanelDoNotUseOrYouWillBeFired=STe;const _Te=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:p,innerContentPadding:v,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},mn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-inner-content`]:{color:n,padding:v}})},EM(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},$Te=e=>{const{componentCls:t}=e;return{[t]:Cf.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},ETe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,p=m/2,v=m/2-t,h=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},Ek(e)),Pk({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?`${p}px ${h}px ${v}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${h}px`:0})},LJ=sn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Kt(e,{popoverBg:t,popoverColor:n});return[_Te(r),$Te(r),yv(r,"zoom-big")]},ETe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var PTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:c.createElement(c.Fragment,null,t&&c.createElement("div",{className:`${r}-title`},t),n&&c.createElement("div",{className:`${r}-inner-content`},n))},TTe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:o,content:s,children:l}=e,u=aS(o),d=aS(s),f=ne(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return c.createElement("div",{className:f,style:i},c.createElement("div",{className:`${n}-arrow`}),c.createElement($M,Object.assign({},e,{className:t,prefixCls:n}),l||c.createElement(BJ,{prefixCls:n,title:u,content:d})))},OTe=e=>{const{prefixCls:t,className:n}=e,r=PTe(e,["prefixCls","className"]),{getPrefixCls:i}=c.useContext(xt),a=i("popover",t),[o,s,l]=LJ(a);return o(c.createElement(TTe,Object.assign({},r,{prefixCls:a,hashId:s,className:ne(n,l)})))};var ITe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o,s;const{prefixCls:l,title:u,content:d,overlayClassName:f,placement:m="top",trigger:p="hover",children:v,mouseEnterDelay:h=.1,mouseLeaveDelay:g=.1,onOpenChange:w,overlayStyle:b={},styles:y,classNames:x}=e,C=ITe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:S,getPrefixCls:k}=c.useContext(xt),_=k("popover",l),[$,E,T]=LJ(_),M=k(),j=ne(f,E,T,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.root,x==null?void 0:x.root),I=ne((r=S==null?void 0:S.classNames)===null||r===void 0?void 0:r.body,x==null?void 0:x.body),[N,O]=Ut(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),D=(V,B)=>{O(V,!0),w==null||w(V,B)},F=V=>{V.keyCode===qe.ESC&&D(!1,V)},z=V=>{D(V)},R=aS(u),H=aS(d);return $(c.createElement(sa,Object.assign({placement:m,trigger:p,mouseEnterDelay:h,mouseLeaveDelay:g},C,{prefixCls:_,classNames:{root:j,body:I},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(o=S==null?void 0:S.styles)===null||o===void 0?void 0:o.root),S==null?void 0:S.style),b),y==null?void 0:y.root),body:Object.assign(Object.assign({},(s=S==null?void 0:S.styles)===null||s===void 0?void 0:s.body),y==null?void 0:y.body)},ref:t,open:N,onOpenChange:z,overlay:R||H?c.createElement(BJ,{prefixCls:_,title:R,content:H}):null,transitionName:Mi(M,"zoom-big",C.transitionName),"data-popover-inject":!0}),qr(v,{onKeyDown:V=>{var B,W;c.isValidElement(v)&&((W=v==null?void 0:(B=v.props).onKeyDown)===null||W===void 0||W.call(B,V)),F(V)}})))}),Lf=RTe;Lf._InternalPanelDoNotUseOrYouWillBeFired=OTe;const MA=e=>{const{size:t,shape:n}=c.useContext(VT),r=c.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return c.createElement(VT.Provider,{value:r},e.children)},MTe=e=>{var t,n,r,i;const{getPrefixCls:a,direction:o}=c.useContext(xt),{prefixCls:s,className:l,rootClassName:u,style:d,maxCount:f,maxStyle:m,size:p,shape:v,maxPopoverPlacement:h,maxPopoverTrigger:g,children:w,max:b}=e,y=a("avatar",s),x=`${y}-group`,C=Ln(y),[S,k,_]=RJ(y,C),$=ne(x,{[`${x}-rtl`]:o==="rtl"},_,C,l,u,k),E=Wr(w).map((j,I)=>qr(j,{key:`avatar-key-${I}`})),T=(b==null?void 0:b.count)||f,M=E.length;if(T&&T{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:a,textFontSizeSM:o,statusSize:s,dotSize:l,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:m,calc:p}=e,v=`${r}-scroll-number`,h=nk(e,(g,w)=>{let{darkColor:b}=w;return{[`&${t} ${t}-color-${g}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:ae(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(d).div(2).equal(),boxShadow:`0 0 0 ${ae(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:o,lineHeight:ae(f),borderRadius:p(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ae(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ae(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:LTe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:NTe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}}}),h),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:DTe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:jTe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:FTe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:ATe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${t}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[v]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${v}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},zJ=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,a=t,o=n,s=e.colorTextLightSolid,l=e.colorError,u=e.colorErrorHover;return Kt(e,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:l,badgeColorHover:u,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},HJ=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},zTe=sn("Badge",e=>{const t=zJ(e);return BTe(t)},HJ),HTe=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=e,o=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=nk(e,(u,d)=>{let{darkColor:f}=d;return{[`&${o}-color-${u}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[o]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"absolute",top:r,padding:`0 ${ae(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ae(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${o}-text`]:{color:e.badgeTextColor},[`${o}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${ae(a(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},VTe=sn(["Badge","Ribbon"],e=>{const t=zJ(e);return HTe(t)},HJ),WTe=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:o,placement:s="end",rootClassName:l}=e,{getPrefixCls:u,direction:d}=c.useContext(xt),f=u("ribbon",n),m=`${f}-wrapper`,[p,v,h]=VTe(f,m),g=Tk(i,!1),w=ne(f,`${f}-placement-${s}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${i}`]:g},t),b={},y={};return i&&!g&&(b.background=i,y.color=i),p(c.createElement("div",{className:ne(m,l,v,h)},a,c.createElement("div",{className:ne(w,v),style:Object.assign(Object.assign({},b),r)},c.createElement("span",{className:`${f}-text`},o),c.createElement("div",{className:`${f}-corner`,style:y}))))},NA=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),c.createElement("span",{style:a,className:ne(`${t}-only-unit`,{current:r})},n)};function UTe(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const qTe=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[o,s]=c.useState(i),[l,u]=c.useState(a),d=()=>{s(i),u(a)};c.useEffect(()=>{const p=setTimeout(d,1e3);return()=>clearTimeout(p)},[i]);let f,m;if(o===i||Number.isNaN(i)||Number.isNaN(o))f=[c.createElement(NA,Object.assign({},e,{key:i,current:!0}))],m={transition:"none"};else{f=[];const p=i+10,v=[];for(let b=i;b<=p;b+=1)v.push(b);const h=lb%10===o);f=(h<0?v.slice(0,g+1):v.slice(g)).map((b,y)=>{const x=b%10;return c.createElement(NA,Object.assign({},e,{key:b,value:x,offset:h<0?y-g:y,current:y===g}))}),m={transform:`translateY(${-UTe(o,i,h)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:d},f)};var GTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:l,component:u="sup",children:d}=e,f=GTe(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=c.useContext(xt),p=m("scroll-number",n),v=Object.assign(Object.assign({},f),{"data-show":l,style:o,className:ne(p,i,a),title:s});let h=r;if(r&&Number(r)%1===0){const g=String(r).split("");h=c.createElement("bdi",null,g.map((w,b)=>c.createElement(qTe,{prefixCls:p,count:Number(r),value:w,key:g.length-b})))}return o!=null&&o.borderColor&&(v.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),d?qr(d,g=>({className:ne(`${p}-custom-component`,g==null?void 0:g.className,a)})):c.createElement(u,Object.assign({},v,{ref:t}),h)});var YTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i,a,o;const{prefixCls:s,scrollNumberPrefixCls:l,children:u,status:d,text:f,color:m,count:p=null,overflowCount:v=99,dot:h=!1,size:g="default",title:w,offset:b,style:y,className:x,rootClassName:C,classNames:S,styles:k,showZero:_=!1}=e,$=YTe(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:E,direction:T,badge:M}=c.useContext(xt),j=E("badge",s),[I,N,O]=zTe(j),D=p>v?`${v}+`:p,F=D==="0"||D===0,z=p===null||F&&!_,R=(d!=null||m!=null)&&z,H=h&&!F,V=H?"":D,B=c.useMemo(()=>(V==null||V===""||F&&!_)&&!H,[V,F,_,H]),W=c.useRef(p);B||(W.current=p);const q=W.current,Q=c.useRef(V);B||(Q.current=V);const G=Q.current,X=c.useRef(H);B||(X.current=H);const re=c.useMemo(()=>{if(!b)return Object.assign(Object.assign({},M==null?void 0:M.style),y);const oe={marginTop:b[1]};return T==="rtl"?oe.left=parseInt(b[0],10):oe.right=-parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},oe),M==null?void 0:M.style),y)},[T,b,y,M==null?void 0:M.style]),K=w??(typeof q=="string"||typeof q=="number"?q:void 0),Y=B||!f?null:c.createElement("span",{className:`${j}-status-text`},f),Z=!q||typeof q!="object"?void 0:qr(q,oe=>({style:Object.assign(Object.assign({},re),oe.style)})),J=Tk(m,!1),ee=ne(S==null?void 0:S.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${j}-status-dot`]:R,[`${j}-status-${d}`]:!!d,[`${j}-color-${m}`]:J}),te={};m&&!J&&(te.color=m,te.background=m);const le=ne(j,{[`${j}-status`]:R,[`${j}-not-a-wrapper`]:!u,[`${j}-rtl`]:T==="rtl"},x,C,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,N,O);if(!u&&R){const oe=re.color;return I(c.createElement("span",Object.assign({},$,{className:le,style:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.root),(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),re)}),c.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.indicator),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.indicator),te)}),f&&c.createElement("span",{style:{color:oe},className:`${j}-status-text`},f)))}return I(c.createElement("span",Object.assign({ref:t},$,{className:le,style:Object.assign(Object.assign({},(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),k==null?void 0:k.root)}),u,c.createElement(ti,{visible:!B,motionName:`${j}-zoom`,motionAppear:!1,motionDeadline:1e3},oe=>{let{className:de}=oe;var pe,we;const fe=E("scroll-number",l),ge=X.current,ue=ne(S==null?void 0:S.indicator,(pe=M==null?void 0:M.classNames)===null||pe===void 0?void 0:pe.indicator,{[`${j}-dot`]:ge,[`${j}-count`]:!ge,[`${j}-count-sm`]:g==="small",[`${j}-multiple-words`]:!ge&&G&&G.toString().length>1,[`${j}-status-${d}`]:!!d,[`${j}-color-${m}`]:J});let ce=Object.assign(Object.assign(Object.assign({},k==null?void 0:k.indicator),(we=M==null?void 0:M.styles)===null||we===void 0?void 0:we.indicator),re);return m&&!J&&(ce=ce||{},ce.background=m),c.createElement(KTe,{prefixCls:fe,show:!B,motionClassName:de,className:ue,count:G,title:K,style:ce,key:"scrollNumber"},Z)}),Y))}),Lo=XTe;Lo.Ribbon=WTe;var QTe=qe.ESC,JTe=qe.TAB;function ZTe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=c.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},l=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),o.current=!0,!0):!1},u=function(f){switch(f.keyCode){case QTe:s();break;case JTe:{var m=!1;o.current||(m=l()),m?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),i&&tn(l,3),function(){window.removeEventListener("keydown",u),o.current=!1}):function(){o.current=!1}},[t])}var e6e=c.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=c.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=ri(t,nd(a));return L.createElement(L.Fragment,null,r&&L.createElement("div",{className:"".concat(i,"-arrow")}),L.cloneElement(a,{ref:Gs(a)?o:void 0}))}),fm={adjustX:1,adjustY:1},mm=[0,0],t6e={topLeft:{points:["bl","tl"],overflow:fm,offset:[0,-4],targetOffset:mm},top:{points:["bc","tc"],overflow:fm,offset:[0,-4],targetOffset:mm},topRight:{points:["br","tr"],overflow:fm,offset:[0,-4],targetOffset:mm},bottomLeft:{points:["tl","bl"],overflow:fm,offset:[0,4],targetOffset:mm},bottom:{points:["tc","bc"],overflow:fm,offset:[0,4],targetOffset:mm},bottomRight:{points:["tr","br"],overflow:fm,offset:[0,4],targetOffset:mm}},n6e=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function r6e(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,p=m===void 0?t6e:m,v=e.getPopupContainer,h=e.showAction,g=e.hideAction,w=e.overlayClassName,b=e.overlayStyle,y=e.visible,x=e.trigger,C=x===void 0?["hover"]:x,S=e.autoFocus,k=e.overlay,_=e.children,$=e.onVisibleChange,E=ut(e,n6e),T=L.useState(),M=ie(T,2),j=M[0],I=M[1],N="visible"in e?y:j,O=L.useRef(null),D=L.useRef(null),F=L.useRef(null);L.useImperativeHandle(t,function(){return O.current});var z=function(X){I(X),$==null||$(X)};ZTe({visible:N,triggerRef:F,onVisibleChange:z,autoFocus:S,overlayRef:D});var R=function(X){var re=e.onOverlayClick;I(!1),re&&re(X)},H=function(){return L.createElement(e6e,{ref:D,overlay:k,prefixCls:o,arrow:i})},V=function(){return typeof k=="function"?H:H()},B=function(){var X=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!re},W=function(){var X=e.openClassName;return X!==void 0?X:"".concat(o,"-open")},q=L.cloneElement(_,{className:ne((n=_.props)===null||n===void 0?void 0:n.className,N&&W()),ref:Gs(_)?ri(F,nd(_)):void 0}),Q=g;return!Q&&C.indexOf("contextMenu")!==-1&&(Q=["click"]),L.createElement(T1,Ee({builtinPlacements:p},E,{prefixCls:o,ref:O,popupClassName:ne(w,U({},"".concat(o,"-show-arrow"),i)),popupStyle:b,action:C,showAction:h,hideAction:Q,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:N,stretch:B()?"minWidth":"",popup:V(),onPopupVisibleChange:z,onPopupClick:R,getPopupContainer:v}),q)}const VJ=L.forwardRef(r6e),i6e=e=>typeof e!="object"&&typeof e!="function"||e===null;var WJ=c.createContext(null);function UJ(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function qJ(e){var t=c.useContext(WJ);return UJ(t,e)}var a6e=["children","locked"],tl=c.createContext(null);function o6e(e,t){var n=A({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function y0(e){var t=e.children,n=e.locked,r=ut(e,a6e),i=c.useContext(tl),a=Nc(function(){return o6e(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!is(o[1],s[1],!0))});return c.createElement(tl.Provider,{value:a},t)}var s6e=[],GJ=c.createContext(null);function Ik(){return c.useContext(GJ)}var KJ=c.createContext(s6e);function Sv(e){var t=c.useContext(KJ);return c.useMemo(function(){return e!==void 0?[].concat(Fe(t),[e]):t},[t,e])}var YJ=c.createContext(null),PM=c.createContext({});function DA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(bv(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function l6e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Fe(e.querySelectorAll("*")).filter(function(r){return DA(r,t)});return DA(e,t)&&n.unshift(e),n}var WT=qe.LEFT,UT=qe.RIGHT,qT=qe.UP,Rw=qe.DOWN,Mw=qe.ENTER,XJ=qe.ESC,hh=qe.HOME,gh=qe.END,jA=[qT,Rw,WT,UT];function c6e(e,t,n,r){var i,a="prev",o="next",s="children",l="parent";if(e==="inline"&&r===Mw)return{inlineTrigger:!0};var u=U(U({},qT,a),Rw,o),d=U(U(U(U({},WT,n?o:a),UT,n?a:o),Rw,s),Mw,s),f=U(U(U(U(U(U({},qT,a),Rw,o),Mw,s),XJ,l),WT,n?s:l),UT,n?l:s),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},p=(i=m["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(p){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function u6e(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function d6e(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function TM(e,t){var n=l6e(e,!0);return n.filter(function(r){return t.has(r)})}function FA(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=TM(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var GT=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(UJ(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function f6e(e,t,n,r,i,a,o,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var m=function(){tn.cancel(d.current)};return c.useEffect(function(){return function(){m()}},[]),function(p){var v=p.which;if([].concat(jA,[Mw,XJ,hh,gh]).includes(v)){var h=a(),g=GT(h,r),w=g,b=w.elements,y=w.key2element,x=w.element2key,C=y.get(t),S=d6e(C,b),k=x.get(S),_=c6e(e,o(k,!0).length===1,n,v);if(!_&&v!==hh&&v!==gh)return;(jA.includes(v)||[hh,gh].includes(v))&&p.preventDefault();var $=function(D){if(D){var F=D,z=D.querySelector("a");z!=null&&z.getAttribute("href")&&(F=z);var R=x.get(D);s(R),m(),d.current=tn(function(){f.current===R&&F.focus()})}};if([hh,gh].includes(v)||_.sibling||!S){var E;!S||e==="inline"?E=i.current:E=u6e(S);var T,M=TM(E,b);v===hh?T=M[0]:v===gh?T=M[M.length-1]:T=FA(E,b,S,_.offset),$(T)}else if(_.inlineTrigger)l(k);else if(_.offset>0)l(k,!0),m(),d.current=tn(function(){g=GT(h,r);var O=S.getAttribute("aria-controls"),D=document.getElementById(O),F=FA(D,g.elements);$(F)},5);else if(_.offset<0){var j=o(k,!0),I=j[j.length-2],N=y.get(I);l(I,!1),$(N)}}u==null||u(p)}}function m6e(e){Promise.resolve().then(e)}var OM="__RC_UTIL_PATH_SPLIT__",AA=function(t){return t.join(OM)},p6e=function(t){return t.split(OM)},KT="rc-menu-more";function v6e(){var e=c.useState({}),t=ie(e,2),n=t[1],r=c.useRef(new Map),i=c.useRef(new Map),a=c.useState([]),o=ie(a,2),s=o[0],l=o[1],u=c.useRef(0),d=c.useRef(!1),f=function(){d.current||n({})},m=c.useCallback(function(y,x){var C=AA(x);i.current.set(C,y),r.current.set(y,C),u.current+=1;var S=u.current;m6e(function(){S===u.current&&f()})},[]),p=c.useCallback(function(y,x){var C=AA(x);i.current.delete(C),r.current.delete(y)},[]),v=c.useCallback(function(y){l(y)},[]),h=c.useCallback(function(y,x){var C=r.current.get(y)||"",S=p6e(C);return x&&s.includes(S[0])&&S.unshift(KT),S},[s]),g=c.useCallback(function(y,x){return y.filter(function(C){return C!==void 0}).some(function(C){var S=h(C,!0);return S.includes(x)})},[h]),w=function(){var x=Fe(r.current.keys());return s.length&&x.push(KT),x},b=c.useCallback(function(y){var x="".concat(r.current.get(y)).concat(OM),C=new Set;return Fe(i.current.keys()).forEach(function(S){S.startsWith(x)&&C.add(i.current.get(S))}),C},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:p,refreshOverflowKeys:v,isSubPathKey:g,getKeyPath:h,getKeys:w,getSubPathKeys:b}}function Gh(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(x){return!m.current&&!x&&g(!0),y==null?void 0:y(x)},h?null:c.createElement(y0,{mode:a,locked:!m.current},c.createElement(ti,Ee({visible:w},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var C=x.className,S=x.style;return c.createElement(IM,{id:t,className:C,style:S},i)}))}var R6e=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],M6e=["active"],N6e=c.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,a=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,p=e.popupStyle,v=e.onClick,h=e.onMouseEnter,g=e.onMouseLeave,w=e.onTitleClick,b=e.onTitleMouseEnter,y=e.onTitleMouseLeave,x=ut(e,R6e),C=qJ(a),S=c.useContext(tl),k=S.prefixCls,_=S.mode,$=S.openKeys,E=S.disabled,T=S.overflowDisabled,M=S.activeKey,j=S.selectedKeys,I=S.itemIcon,N=S.expandIcon,O=S.onItemClick,D=S.onOpenChange,F=S.onActive,z=c.useContext(PM),R=z._internalRenderSubMenuItem,H=c.useContext(YJ),V=H.isSubPathKey,B=Sv(),W="".concat(k,"-submenu"),q=E||o,Q=c.useRef(),G=c.useRef(),X=u??I,re=d??N,K=$.includes(a),Y=!T&&K,Z=V(j,a),J=QJ(a,q,b,y),ee=J.active,te=ut(J,M6e),le=c.useState(!1),oe=ie(le,2),de=oe[0],pe=oe[1],we=function(Te){q||pe(Te)},fe=function(Te){we(!0),h==null||h({key:a,domEvent:Te})},ge=function(Te){we(!1),g==null||g({key:a,domEvent:Te})},ue=c.useMemo(function(){return ee||(_!=="inline"?de||V([M],a):!1)},[_,ee,M,de,a,V]),ce=JJ(B.length),$e=function(Te){q||(w==null||w({key:a,domEvent:Te}),_==="inline"&&D(a,!K))},se=Gh(function(ye){v==null||v(oS(ye)),O(ye)}),ve=function(Te){_!=="inline"&&D(a,Te)},he=function(){F(a)},_e=C&&"".concat(C,"-popup"),Se=c.createElement("div",Ee({role:"menuitem",style:ce,className:"".concat(W,"-title"),tabIndex:q?null:-1,ref:Q,title:typeof i=="string"?i:null,"data-menu-id":T&&C?null:C,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":_e,"aria-disabled":q,onClick:$e,onFocus:he},te),i,c.createElement(ZJ,{icon:_!=="horizontal"?re:void 0,props:A(A({},e),{},{isOpen:Y,isSubMenu:!0})},c.createElement("i",{className:"".concat(W,"-arrow")}))),Pe=c.useRef(_);if(_!=="inline"&&B.length>1?Pe.current="vertical":Pe.current=_,!T){var De=Pe.current;Se=c.createElement(O6e,{mode:De,prefixCls:W,visible:!s&&Y&&_!=="inline",popupClassName:f,popupOffset:m,popupStyle:p,popup:c.createElement(y0,{mode:De==="horizontal"?"vertical":De},c.createElement(IM,{id:_e,ref:G},l)),disabled:q,onVisibleChange:ve},Se)}var xe=c.createElement(zs.Item,Ee({ref:t,role:"none"},x,{component:"li",style:n,className:ne(W,"".concat(W,"-").concat(_),r,U(U(U(U({},"".concat(W,"-open"),Y),"".concat(W,"-active"),ue),"".concat(W,"-selected"),Z),"".concat(W,"-disabled"),q)),onMouseEnter:fe,onMouseLeave:ge}),Se,!T&&c.createElement(I6e,{id:_e,open:Y,keyPath:B},l));return R&&(xe=R(xe,e,{selected:Z,active:ue,open:Y,disabled:q})),c.createElement(y0,{onItemClick:se,mode:_==="horizontal"?"vertical":_,itemIcon:X,expandIcon:re},xe)}),Rk=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Sv(n),a=RM(r,i),o=Ik();c.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=c.createElement(N6e,Ee({ref:t},e),a),c.createElement(KJ.Provider,{value:i},s)});function MM(e){var t=e.className,n=e.style,r=c.useContext(tl),i=r.prefixCls,a=Ik();return a?null:c.createElement("li",{role:"separator",className:ne("".concat(i,"-item-divider"),t),style:n})}var D6e=["className","title","eventKey","children"],j6e=c.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=ut(e,D6e),o=c.useContext(tl),s=o.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",Ee({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:ne(l,n)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),NM=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Sv(n),a=RM(r,i),o=Ik();return o?a:c.createElement(j6e,Ee({ref:t},_n(e,["warnKey"])),a)}),F6e=["label","children","key","type","extra"];function YT(e,t,n){var r=t.item,i=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&mt(s)==="object"){var u=s,d=u.label,f=u.children,m=u.key,p=u.type,v=u.extra,h=ut(u,F6e),g=m??"tmp-".concat(l);return f||p==="group"?p==="group"?c.createElement(i,Ee({key:g},h,{title:d}),YT(f,t,n)):c.createElement(a,Ee({key:g},h,{title:d}),YT(f,t,n)):p==="divider"?c.createElement(o,Ee({key:g},h)):c.createElement(r,Ee({key:g},h,{extra:v}),d,(!!v||v===0)&&c.createElement("span",{className:"".concat(n,"-item-extra")},v))}return null}).filter(function(s){return s})}function BA(e,t,n,r,i){var a=e,o=A({divider:MM,item:R1,group:NM,submenu:Rk},r);return t&&(a=YT(t,o,i)),RM(a,n)}var A6e=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],pd=[],L6e=c.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,a=i===void 0?"rc-menu":i,o=r.rootClassName,s=r.style,l=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,p=r.direction,v=r.id,h=r.mode,g=h===void 0?"vertical":h,w=r.inlineCollapsed,b=r.disabled,y=r.disabledOverflow,x=r.subMenuOpenDelay,C=x===void 0?.1:x,S=r.subMenuCloseDelay,k=S===void 0?.1:S,_=r.forceSubMenuRender,$=r.defaultOpenKeys,E=r.openKeys,T=r.activeKey,M=r.defaultActiveFirst,j=r.selectable,I=j===void 0?!0:j,N=r.multiple,O=N===void 0?!1:N,D=r.defaultSelectedKeys,F=r.selectedKeys,z=r.onSelect,R=r.onDeselect,H=r.inlineIndent,V=H===void 0?24:H,B=r.motion,W=r.defaultMotions,q=r.triggerSubMenuAction,Q=q===void 0?"hover":q,G=r.builtinPlacements,X=r.itemIcon,re=r.expandIcon,K=r.overflowedIndicator,Y=K===void 0?"...":K,Z=r.overflowedIndicatorPopupClassName,J=r.getPopupContainer,ee=r.onClick,te=r.onOpenChange,le=r.onKeyDown;r.openAnimation,r.openTransitionName;var oe=r._internalRenderMenuItem,de=r._internalRenderSubMenuItem,pe=r._internalComponents,we=ut(r,A6e),fe=c.useMemo(function(){return[BA(m,f,pd,pe,a),BA(m,f,pd,{},a)]},[m,f,pe]),ge=ie(fe,2),ue=ge[0],ce=ge[1],$e=c.useState(!1),se=ie($e,2),ve=se[0],he=se[1],_e=c.useRef(),Se=g6e(v),Pe=p==="rtl",De=Ut($,{value:E,postState:function(Bt){return Bt||pd}}),xe=ie(De,2),ye=xe[0],Te=xe[1],Ie=function(Bt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function xn(){Te(Bt),te==null||te(Bt)}jt?ki.flushSync(xn):xn()},ke=c.useState(ye),je=ie(ke,2),He=je[0],Be=je[1],ct=c.useRef(!1),Ve=c.useMemo(function(){return(g==="inline"||g==="vertical")&&w?["vertical",w]:[g,!1]},[g,w]),Ye=ie(Ve,2),Ne=Ye[0],Ae=Ye[1],et=Ne==="inline",nt=c.useState(Ne),rt=ie(nt,2),it=rt[0],be=rt[1],Oe=c.useState(Ae),Ce=ie(Oe,2),Re=Ce[0],Ke=Ce[1];c.useEffect(function(){be(Ne),Ke(Ae),ct.current&&(et?Te(He):Ie(pd))},[Ne,Ae]);var Xe=c.useState(0),lt=ie(Xe,2),tt=lt[0],Qe=lt[1],Ge=tt>=ue.length-1||it!=="horizontal"||y;c.useEffect(function(){et&&Be(ye)},[ye]),c.useEffect(function(){return ct.current=!0,function(){ct.current=!1}},[]);var st=v6e(),pt=st.registerPath,yt=st.unregisterPath,zt=st.refreshOverflowKeys,$t=st.isSubPathKey,ze=st.getKeyPath,me=st.getKeys,Me=st.getSubPathKeys,We=c.useMemo(function(){return{registerPath:pt,unregisterPath:yt}},[pt,yt]),wt=c.useMemo(function(){return{isSubPathKey:$t}},[$t]);c.useEffect(function(){zt(Ge?pd:ue.slice(tt+1).map(function(gn){return gn.key}))},[tt,Ge]);var Ze=Ut(T||M&&((n=ue[0])===null||n===void 0?void 0:n.key),{value:T}),Le=ie(Ze,2),ot=Le[0],ht=Le[1],Et=Gh(function(gn){ht(gn)}),Rt=Gh(function(){ht(void 0)});c.useImperativeHandle(t,function(){return{list:_e.current,focus:function(Bt){var jt,xn=me(),Ft=GT(xn,Se),Nt=Ft.elements,hn=Ft.key2element,Rn=Ft.element2key,dr=TM(_e.current,Nt),Ue=ot??(dr[0]?Rn.get(dr[0]):(jt=ue.find(function(dt){return!dt.props.disabled}))===null||jt===void 0?void 0:jt.key),vt=hn.get(Ue);if(Ue&&vt){var _t;vt==null||(_t=vt.focus)===null||_t===void 0||_t.call(vt,Bt)}}}});var Ct=Ut(D||[],{value:F,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?pd:[Bt]}}),at=ie(Ct,2),kt=at[0],At=at[1],Dt=function(Bt){if(I){var jt=Bt.key,xn=kt.includes(jt),Ft;O?xn?Ft=kt.filter(function(hn){return hn!==jt}):Ft=[].concat(Fe(kt),[jt]):Ft=[jt],At(Ft);var Nt=A(A({},Bt),{},{selectedKeys:Ft});xn?R==null||R(Nt):z==null||z(Nt)}!O&&ye.length&&it!=="inline"&&Ie(pd)},en=Gh(function(gn){ee==null||ee(oS(gn)),Dt(gn)}),vn=Gh(function(gn,Bt){var jt=ye.filter(function(Ft){return Ft!==gn});if(Bt)jt.push(gn);else if(it!=="inline"){var xn=Me(gn);jt=jt.filter(function(Ft){return!xn.has(Ft)})}is(ye,jt,!0)||Ie(jt,!0)}),bn=function(Bt,jt){var xn=jt??!ye.includes(Bt);vn(Bt,xn)},Sr=f6e(it,ot,Pe,Se,_e,me,ze,ht,bn,le);c.useEffect(function(){he(!0)},[]);var pr=c.useMemo(function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:de}},[oe,de]),nr=it!=="horizontal"||y?ue:ue.map(function(gn,Bt){return c.createElement(y0,{key:gn.key,overflowDisabled:Bt>tt},gn)}),Kr=c.createElement(zs,Ee({id:v,ref:_e,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:R1,className:ne(a,"".concat(a,"-root"),"".concat(a,"-").concat(it),l,U(U({},"".concat(a,"-inline-collapsed"),Re),"".concat(a,"-rtl"),Pe),o),dir:p,style:s,role:"menu",tabIndex:d,data:nr,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var jt=Bt.length,xn=jt?ue.slice(-jt):null;return c.createElement(Rk,{eventKey:KT,title:Y,disabled:Ge,internalPopupClose:jt===0,popupClassName:Z},xn)},maxCount:it!=="horizontal"||y?zs.INVALIDATE:zs.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){Qe(Bt)},onKeyDown:Sr},we));return c.createElement(PM.Provider,{value:pr},c.createElement(WJ.Provider,{value:Se},c.createElement(y0,{prefixCls:a,rootClassName:o,mode:it,openKeys:ye,rtl:Pe,disabled:b,motion:ve?B:null,defaultMotions:ve?W:null,activeKey:ot,onActive:Et,onInactive:Rt,selectedKeys:kt,inlineIndent:V,subMenuOpenDelay:C,subMenuCloseDelay:k,forceSubMenuRender:_,builtinPlacements:G,triggerSubMenuAction:Q,getPopupContainer:J,itemIcon:X,expandIcon:re,onItemClick:en,onOpenChange:vn},c.createElement(YJ.Provider,{value:wt},Kr),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(GJ.Provider,{value:We},ce)))))}),Cv=L6e;Cv.Item=R1;Cv.SubMenu=Rk;Cv.ItemGroup=NM;Cv.Divider=MM;var B6e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},z6e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:B6e}))},H6e=c.forwardRef(z6e),V6e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},W6e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:V6e}))},Ku=c.forwardRef(W6e);const tZ=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),U6e=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:l,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:ae(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:u,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},nZ=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:i,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},rZ=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],iZ=sn("Layout",e=>[U6e(e)],nZ,{deprecatedTokens:rZ}),q6e=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:p,lightTriggerColor:v,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:ae(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ae(m)} ${ae(m)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${ae(m)} 0 0 ${ae(m)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:v,background:h},[`${t}-zero-width-trigger`]:{color:v,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},G6e=sn(["Layout","Sider"],e=>[q6e(e)],nZ,{deprecatedTokens:rZ});var K6e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i!Number.isNaN(Number.parseFloat(e))&&isFinite(e),Mk=c.createContext({}),X6e=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),aZ=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:p,breakpoint:v,onCollapse:h,onBreakpoint:g}=e,w=K6e(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=c.useContext(tZ),[y,x]=c.useState("collapsed"in e?e.collapsed:o),[C,S]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&x(e.collapsed)},[e.collapsed]);const k=(X,re)=>{"collapsed"in e||x(X),h==null||h(X,re)},{getPrefixCls:_,direction:$}=c.useContext(xt),E=_("layout-sider",n),[T,M,j]=G6e(E),I=c.useRef(null);I.current=X=>{S(X.matches),g==null||g(X.matches),y!==X.matches&&k(X.matches,"responsive")},c.useEffect(()=>{function X(K){return I.current(K)}let re;if(typeof window<"u"){const{matchMedia:K}=window;if(K&&v&&v in zA){re=K(`screen and (max-width: ${zA[v]})`);try{re.addEventListener("change",X)}catch{re.addListener(X)}X(re)}}return()=>{try{re==null||re.removeEventListener("change",X)}catch{re==null||re.removeListener(X)}}},[v]),c.useEffect(()=>{const X=X6e("ant-sider-");return b.addSider(X),()=>b.removeSider(X)},[]);const N=()=>{k(!y,"clickTrigger")},O=_n(w,["collapsed"]),D=y?m:f,F=Y6e(D)?`${D}px`:String(D),z=parseFloat(String(m||0))===0?c.createElement("span",{onClick:N,className:ne(`${E}-zero-width-trigger`,`${E}-zero-width-trigger-${d?"right":"left"}`),style:p},i||c.createElement(H6e,null)):null,R=$==="rtl"==!d,B={expanded:R?c.createElement(Js,null):c.createElement(Ku,null),collapsed:R?c.createElement(Ku,null):c.createElement(Js,null)}[y?"collapsed":"expanded"],W=i!==null?z||c.createElement("div",{className:`${E}-trigger`,onClick:N,style:{width:F}},i||B):null,q=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),Q=ne(E,`${E}-${s}`,{[`${E}-collapsed`]:!!y,[`${E}-has-trigger`]:u&&i!==null&&!z,[`${E}-below`]:!!C,[`${E}-zero-width`]:parseFloat(F)===0},r,M,j),G=c.useMemo(()=>({siderCollapsed:y}),[y]);return T(c.createElement(Mk.Provider,{value:G},c.createElement("aside",Object.assign({className:Q},O,{style:q,ref:t}),c.createElement("div",{className:`${E}-children`},a),u||C&&z?W:null)))});var Q6e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},J6e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:Q6e}))},Nk=c.forwardRef(J6e);const sS=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Z6e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,dashed:r}=e,i=Z6e(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=c.useContext(xt),o=a("menu",t),s=ne({[`${o}-item-divider-dashed`]:!!r},n);return c.createElement(MM,Object.assign({className:s},i))},sZ=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:o,extra:s}=e,{prefixCls:l,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=c.useContext(sS),p=y=>{const x=r==null?void 0:r[0],C=c.createElement("span",{className:ne(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||c.isValidElement(r)&&r.type==="span")&&r&&y&&u&&typeof x=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},x.charAt(0)):C},{siderCollapsed:v}=c.useContext(Mk);let h=a;typeof a>"u"?h=u?r:"":a===!1&&(h="");const g={title:h};!v&&!m&&(g.title=null,g.open=!1);const w=Wr(r).length;let b=c.createElement(R1,Object.assign({},_n(e,["title","icon","danger"]),{className:ne({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(i?w+1:w)===1},n),title:typeof a=="string"?a:void 0}),qr(i,{className:ne(c.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(m));return f||(b=c.createElement(sa,Object.assign({},g,{placement:d==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),b)),b};var eOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{children:n}=e,r=eOe(e,["children"]),i=c.useContext(lS),a=c.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=ixe(n),s=Yl(t,o?nd(n):null);return c.createElement(lS.Provider,{value:a},c.createElement(Zs,{space:!0},o?c.cloneElement(n,{ref:s}):n))}),tOe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ae(a)} ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + > ${t}-item-active, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},nOe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ae(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ae(n)})`}}}}},HA=e=>Object.assign({},Ys(e)),VA=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:l,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:p,motionEaseInOut:v,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:w,itemHoverColor:b,lineType:y,colorSplit:x,itemDisabledColor:C,dangerItemColor:S,dangerItemHoverColor:k,dangerItemSelectedColor:_,dangerItemActiveBg:$,dangerItemSelectedBg:E,popupBg:T,itemHoverBg:M,itemActiveBg:j,menuSubMenuBg:I,horizontalItemSelectedColor:N,horizontalItemSelectedBg:O,horizontalItemBorderRadius:D,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},HA(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},HA(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:j}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:j}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:I},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${ae(d)} solid transparent`,transition:`border-color ${p} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:d,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:d,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ae(m)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ae(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${h}`,`opacity ${w} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${v}`,`opacity ${w} ${v}`].join(",")}}}}}},WA=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:u}=e,d=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ae(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ae(n)},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:d}}},rOe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:v,collapsedWidth:h,collapsedIconSize:g}=e,w={height:r,lineHeight:ae(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},WA(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},WA(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${ae(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, + > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ae(e.calc(g).div(2).equal())} - ${ae(u)})`,textOverflow:"clip",[` + ${t}-submenu-arrow, + ${t}-submenu-expand-icon + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:ae(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ha),{paddingInline:p})}}]},UA=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},jf()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},qA=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ae(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ae(o)})`}}}}},iOe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:p,menuArrowSize:v,menuArrowOffset:h,lineType:g,groupTitleLineHeight:w,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},Ks()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),Ks()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ae(s)} ${ae(l)}`,fontSize:b,lineHeight:w,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),UA(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ae(e.calc(r).mul(2).equal())} ${ae(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},UA(e)),qA(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),qA(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ae(h)})`},"&::after":{transform:`rotate(45deg) translateX(${ae(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ae(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ae(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ae(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},aOe=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:p,lineWidthBold:v,controlItemBgActive:h,colorBgTextHover:g,controlHeightLG:w,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:C,fontSize:S,controlHeightSM:k,fontSizeLG:_,colorTextLightSolid:$,colorErrorHover:E}=e,T=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,j=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,I=new rn($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:d,itemBg:d,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:T,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:p,activeBarBorderWidth:M,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:w,groupTitleLineHeight:b,collapsedWidth:w*2,popupBg:y,itemMarginBlock:x,itemPaddingInline:C,horizontalLineHeight:`${w*1.15}px`,iconSize:S,iconMarginInlineEnd:k-S,collapsedIconSize:_,groupTitleFontSize:S,darkItemDisabledColor:new rn($).setA(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:$,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:a,itemWidth:T?`calc(100% + ${M}px)`:`calc(100% - ${j*2}px)`}},oOe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return sn("Menu",i=>{const{colorBgElevated:a,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:p,darkDangerItemSelectedBg:v,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:w,darkItemDisabledColor:b,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:C,popupBg:S,darkPopupBg:k}=i,_=i.calc(s).div(7).mul(5).equal(),$=Kt(i,{menuArrowSize:_,menuHorizontalHeight:i.calc(o).mul(1.15).equal(),menuArrowOffset:i.calc(_).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:S}),E=Kt($,{itemColor:l,itemHoverColor:w,groupTitleColor:g,itemSelectedColor:m,itemBg:d,popupBg:k,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:u,dangerItemHoverColor:y,dangerItemSelectedColor:x,dangerItemActiveBg:C,dangerItemSelectedBg:v,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:p});return[iOe($),tOe($),rOe($),VA($,"light"),VA(E,"dark"),nOe($),C1($),Ll($,"slide-up"),Ll($,"slide-down"),yv($,"zoom-big")]},aOe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},cZ=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,o=c.useContext(sS),{prefixCls:s,inlineCollapsed:l,theme:u}=o,d=Sv();let f;if(!r)f=l&&!d.length&&i&&typeof i=="string"?c.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):c.createElement("span",{className:`${s}-title-content`},i);else{const v=c.isValidElement(i)&&i.type==="span";f=c.createElement(c.Fragment,null,qr(r,{className:ne(c.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),v?i:c.createElement("span",{className:`${s}-title-content`},i))}const m=c.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[p]=hs("Menu");return c.createElement(sS.Provider,{value:m},c.createElement(Rk,Object.assign({},_n(e,["icon"]),{title:f,popupClassName:ne(s,n,`${s}-${a||u}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var sOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const r=c.useContext(lS),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:l}=c.useContext(xt),u=a(),{prefixCls:d,className:f,style:m,theme:p="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:g,siderCollapsed:w,rootClassName:b,mode:y,selectable:x,onClick:C,overflowedIndicatorPopupClassName:S}=e,k=sOe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_=_n(k,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:y});const $=Vt(function(){var V;C==null||C.apply(void 0,arguments),(V=i.onClick)===null||V===void 0||V.call(i)}),E=i.mode||y,T=x??i.selectable,M=g??w,j={horizontal:{motionName:`${u}-slide-up`},inline:Mp(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),N=Ln(I),[O,D,F]=oOe(I,N,!r),z=ne(`${I}-${p}`,l==null?void 0:l.className,f),R=c.useMemo(()=>{var V,B;if(typeof v=="function"||CE(v))return v||null;if(typeof i.expandIcon=="function"||CE(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||CE(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const W=(V=v??(i==null?void 0:i.expandIcon))!==null&&V!==void 0?V:l==null?void 0:l.expandIcon;return qr(W,{className:ne(`${I}-submenu-expand-icon`,c.isValidElement(W)?(B=W.props)===null||B===void 0?void 0:B.className:void 0)})},[v,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,I]),H=c.useMemo(()=>({prefixCls:I,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:p,mode:E,disableMenuItemTitleTooltip:h}),[I,M,s,h,p]);return O(c.createElement(lS.Provider,{value:null},c.createElement(sS.Provider,{value:H},c.createElement(Cv,Object.assign({getPopupContainer:o,overflowedIndicator:c.createElement(Nk,null),overflowedIndicatorPopupClassName:ne(I,`${I}-${p}`,S),mode:E,selectable:T,onClick:$},_,{inlineCollapsed:M,style:Object.assign(Object.assign({},l==null?void 0:l.style),m),className:z,prefixCls:I,direction:s,defaultMotions:j,expandIcon:R,ref:t,rootClassName:ne(b,D,i.rootClassName,F,N),_internalComponents:lOe})))))}),Bf=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(Mk);return c.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),c.createElement(cOe,Object.assign({ref:n},e,r))});Bf.Item=sZ;Bf.SubMenu=cZ;Bf.Divider=oZ;Bf.ItemGroup=NM;const uOe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},dOe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:p,controlPaddingHorizontal:v,colorBgElevated:h}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:uk},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:fk},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:dk},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:mk}}},EM(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},mn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Va(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ae(u)} ${ae(v)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ae(u)} ${ae(v)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Va(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ae(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ae(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Ll(e,"slide-up"),Ll(e,"slide-down"),Np(e,"move-up"),Np(e,"move-down"),yv(e,"zoom-big")]]},fOe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Pk({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ek(e)),mOe=sn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Kt(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[dOe(a),uOe(a)]},fOe,{resetStyle:!1}),Dk=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:l,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:m,open:p,onOpenChange:v,visible:h,onVisibleChange:g,mouseEnterDelay:w=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:x="",overlay:C,transitionName:S}=e,{getPopupContainer:k,getPrefixCls:_,direction:$,dropdown:E}=c.useContext(xt);Xl();const T=c.useMemo(()=>{const J=_();return S!==void 0?S:x.includes("top")?`${J}-slide-down`:`${J}-slide-up`},[_,x,S]),M=c.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:$==="rtl"?"bottomRight":"bottomLeft",[x,$]),j=_("dropdown",i),I=Ln(j),[N,O,D]=mOe(j,I),[,F]=Gr(),z=c.Children.only(i6e(a)?c.createElement("span",null,a):a),R=qr(z,{className:ne(`${j}-trigger`,{[`${j}-rtl`]:$==="rtl"},z.props.className),disabled:(t=z.props.disabled)!==null&&t!==void 0?t:s}),H=s?[]:o,V=!!(H!=null&&H.includes("contextMenu")),[B,W]=Ut(!1,{value:p??h}),q=Vt(J=>{v==null||v(J,{source:"trigger"}),g==null||g(J),W(J)}),Q=ne(d,f,O,D,I,E==null?void 0:E.className,{[`${j}-rtl`]:$==="rtl"}),G=jJ({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:y,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),X=c.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(v==null||v(!1,{source:"menu"}),W(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),re=()=>{let J;return n!=null&&n.items?J=c.createElement(Bf,Object.assign({},n)):typeof C=="function"?J=C():J=C,l&&(J=l(J)),J=c.Children.only(typeof J=="string"?c.createElement("span",null,J):J),c.createElement(lZ,{prefixCls:`${j}-menu`,rootClassName:ne(D,I),expandIcon:c.createElement("span",{className:`${j}-menu-submenu-arrow`},c.createElement(Js,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:ee=>{}},J)},[K,Y]=hs("Dropdown",m==null?void 0:m.zIndex);let Z=c.createElement(VJ,Object.assign({alignPoint:V},_n(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:b,visible:B,builtinPlacements:G,arrow:!!r,overlayClassName:Q,prefixCls:j,getPopupContainer:u||k,transitionName:T,trigger:H,overlay:re,placement:M,onVisibleChange:q,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),m),{zIndex:K})}),R);return K&&(Z=c.createElement(w1.Provider,{value:Y},Z)),N(Z)},pOe=id(Dk,"align",void 0,"dropdown",e=>e),vOe=e=>c.createElement(pOe,Object.assign({},e),c.createElement("span",null));Dk._InternalPanelDoNotUseOrYouWillBeFired=vOe;var uZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yi,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",d="week",f="month",m="quarter",p="year",v="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var N=["th","st","nd","rd"],O=I%100;return"["+I+(N[(O-20)%10]||N[O]||N[0])+"]"}},y=function(I,N,O){var D=String(I);return!D||D.length>=N?I:""+Array(N+1-D.length).join(O)+I},x={s:y,z:function(I){var N=-I.utcOffset(),O=Math.abs(N),D=Math.floor(O/60),F=O%60;return(N<=0?"+":"-")+y(D,2,"0")+":"+y(F,2,"0")},m:function I(N,O){if(N.date()1)return I(R[0])}else{var H=N.name;S[H]=N,F=H}return!D&&F&&(C=F),F||!D&&C},E=function(I,N){if(_(I))return I.clone();var O=typeof N=="object"?N:{};return O.date=I,O.args=arguments,new M(O)},T=x;T.l=$,T.i=_,T.w=function(I,N){return E(I,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var M=function(){function I(O){this.$L=$(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[k]=!0}var N=I.prototype;return N.parse=function(O){this.$d=function(D){var F=D.date,z=D.utc;if(F===null)return new Date(NaN);if(T.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var R=F.match(g);if(R){var H=R[2]-1||0,V=(R[7]||"0").substring(0,3);return z?new Date(Date.UTC(R[1],H,R[3]||1,R[4]||0,R[5]||0,R[6]||0,V)):new Date(R[1],H,R[3]||1,R[4]||0,R[5]||0,R[6]||0,V)}}return new Date(F)}(O),this.init()},N.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},N.$utils=function(){return T},N.isValid=function(){return this.$d.toString()!==h},N.isSame=function(O,D){var F=E(O);return this.startOf(D)<=F&&F<=this.endOf(D)},N.isAfter=function(O,D){return E(O)25){var d=o(this).startOf(r).add(1,r).date(u),f=o(this).endOf(n);if(d.isBefore(f))return 1}var m=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(m,n,!0);return p<0?o(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(hZ);var bOe=hZ.exports;const DM=qn(bOe);var gZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yi,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(gZ);var yOe=gZ.exports;const wOe=qn(yOe);var bZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yi,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var u=this.$utils(),d=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(d)}}})})(bZ);var xOe=bZ.exports;const yZ=qn(xOe);var wZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(w){this[g]=+w}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var b=w.match(/([+-]|\d\d)/g),y=60*b[1]+(+b[2]||0);return y===0?0:b[0]==="+"?-y:y}(g)}],m=function(g){var w=l[g];return w&&(w.indexOf?w:w.s.concat(w.f))},p=function(g,w){var b,y=l.meridiem;if(y){for(var x=1;x<=24;x+=1)if(g.indexOf(y(x,0,w))>-1){b=x>12;break}}else b=g===(w?"pm":"PM");return b},v={A:[s,function(g){this.afternoon=p(g,!1)}],a:[s,function(g){this.afternoon=p(g,!0)}],Q:[i,function(g){this.month=3*(g-1)+1}],S:[i,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[a,d("day")],Do:[s,function(g){var w=l.ordinal,b=g.match(/\d+/);if(this.day=b[0],w)for(var y=1;y<=31;y+=1)w(y).replace(/\[|\]/g,"")===g&&(this.day=y)}],w:[o,d("week")],ww:[a,d("week")],M:[o,d("month")],MM:[a,d("month")],MMM:[s,function(g){var w=m("months"),b=(m("monthsShort")||w.map(function(y){return y.slice(0,3)})).indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(g){var w=m("months").indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function h(g){var w,b;w=g,b=l&&l.formats;for(var y=(g=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,T,M){var j=M&&M.toUpperCase();return T||b[M]||n[M]||b[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,N,O){return N||O.slice(1)})})).match(r),x=y.length,C=0;C-1)return new Date((F==="X"?1e3:1)*D);var H=h(F)(D),V=H.year,B=H.month,W=H.day,q=H.hours,Q=H.minutes,G=H.seconds,X=H.milliseconds,re=H.zone,K=H.week,Y=new Date,Z=W||(V||B?1:Y.getDate()),J=V||Y.getFullYear(),ee=0;V&&!B||(ee=B>0?B-1:Y.getMonth());var te,le=q||0,oe=Q||0,de=G||0,pe=X||0;return re?new Date(Date.UTC(J,ee,Z,le,oe,de,pe+60*re.offset*1e3)):z?new Date(Date.UTC(J,ee,Z,le,oe,de,pe)):(te=new Date(J,ee,Z,le,oe,de,pe),K&&(te=R(te).week(K).toDate()),te)}catch{return new Date("")}}(S,$,k,b),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),M&&S!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var I=$.length,N=1;N<=I;N+=1){_[1]=$[N-1];var O=b.apply(this,_);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}N===I&&(this.$d=new Date(""))}else x.call(this,C)}}})})(wZ);var SOe=wZ.exports;const xZ=qn(SOe);fn.extend(xZ);fn.extend(yZ);fn.extend(mZ);fn.extend(vZ);fn.extend(DM);fn.extend(wOe);fn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var o=(a||"").replace("Wo","wo");return r.bind(this)(o)}});var COe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},vd=function(t){var n=COe[t];return n||t.split("_")[0]},kOe={getNow:function(){var t=fn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return fn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return fn().locale(vd(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(vd(t)).weekday(0)},getWeek:function(t,n){return n.locale(vd(t)).week()},getShortWeekDays:function(t){return fn().locale(vd(t)).localeData().weekdaysMin()},getShortMonths:function(t){return fn().locale(vd(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(vd(t)).format(r)},parse:function(t,n,r){for(var i=vd(t),a=0;a2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=c.useState([!1,!1]),i=ie(r,2),a=i[0],o=i[1],s=function(d,f){o(function(m){return xg(m,f,d)})},l=c.useMemo(function(){return a.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,a,t,n]);return[l,s]}function PZ(e,t,n,r,i){var a="",o=[];return e&&o.push(i?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),a=o.join(":"),r&&(a+=".SSS"),i&&(a+=" A"),a}function $Oe(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,p=e.yearFormat,v=e.cellYearFormat,h=e.cellQuarterFormat,g=e.dayFormat,w=e.cellDateFormat,b=PZ(t,n,r,i,a);return A(A({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(b),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||b,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:v||"YYYY",cellQuarterFormat:h||"[Q]Q",cellDateFormat:w||g||"D"})}function TZ(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return L.useMemo(function(){return $Oe(e,n,r,i,a,o)},[e,n,r,i,a,o])}function bh(e,t,n){return n??t.some(function(r){return e.includes(r)})}var EOe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function POe(e){var t=Fk(e,EOe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=mt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function TOe(e){return e&&typeof e=="string"}function OZ(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function IZ(e,t,n,r,i){var a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){var l,u,d,f=[a,o,s].some(function(v){return v===!1}),m=[a,o,s].some(function(v){return v===!0}),p=f?!0:!m;a=(l=a)!==null&&l!==void 0?l:p,o=(u=o)!==null&&u!==void 0?u:p,s=(d=s)!==null&&d!==void 0?d:p}return[a,o,s,i]}function RZ(e){var t=e.showTime,n=POe(e),r=ie(n,2),i=r[0],a=r[1],o=t&&mt(t)==="object"?t:{},s=A(A({defaultOpenValue:o.defaultOpenValue||o.defaultValue},i),o),l=s.showMillisecond,u=s.showHour,d=s.showMinute,f=s.showSecond,m=OZ(u,d,f,l),p=IZ(m,u,d,f,l),v=ie(p,3);return u=v[0],d=v[1],f=v[2],[s,A(A({},s),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:l}),s.format,a]}function MZ(e,t,n,r,i){var a=e==="time";if(e==="datetime"||a){for(var o=r,s=kZ(e,i,null),l=s,u=[t,n],d=0;d1&&(o=t.addDate(o,-7)),o}function Si(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function cS(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(o,s){n?r=e[o](r,e[i[s]](n)):r=e[o](r,0)}),r}function MOe(e,t,n,r,i){var a=Vt(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!na(e,t,r,o,s.type)||i&&e.isAfter(o,i)&&!na(e,t,i,o,s.type))});return a}function NOe(e,t,n){return c.useMemo(function(){var r=kZ(e,t,n),i=zf(r),a=i[0],o=mt(a)==="object"&&a.type==="mask"?a.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function DOe(e,t,n){return typeof e[0]=="function"||n?!0:t}function jOe(e,t,n,r){var i=Vt(function(a,o){var s=A({type:t},o);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,u=o&&o.activeIndex===1?"end":"start",d=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,u,{from:s.from}))||{},f=d.disabledHours,m=d.disabledMinutes,p=d.disabledSeconds,v=d.disabledMilliseconds,h=r.disabledHours,g=r.disabledMinutes,w=r.disabledSeconds,b=f||h,y=m||g,x=p||w,C=e.getHour(a),S=e.getMinute(a),k=e.getSecond(a),_=e.getMillisecond(a);if(b&&b().includes(C)||y&&y(C).includes(S)||x&&x(C,S).includes(k)||v&&v(C,S,k).includes(_))return!0}return!1});return i}function ey(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=c.useMemo(function(){var r=e&&zf(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function jZ(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=i===void 0?"date":i,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,u=l===void 0?{}:l,d=e.classNames,f=d===void 0?{}:d,m=e.order,p=m===void 0?!0:m,v=e.components,h=v===void 0?{}:v,g=e.inputRender,w=e.allowClear,b=e.clearIcon,y=e.needConfirm,x=e.multiple,C=e.format,S=e.inputReadOnly,k=e.disabledDate,_=e.minDate,$=e.maxDate,E=e.showTime,T=e.value,M=e.defaultValue,j=e.pickerValue,I=e.defaultPickerValue,N=ey(T),O=ey(M),D=ey(j),F=ey(I),z=a==="date"&&E?"datetime":a,R=z==="time"||z==="datetime",H=R||x,V=y??R,B=RZ(e),W=ie(B,4),q=W[0],Q=W[1],G=W[2],X=W[3],re=TZ(r,Q),K=c.useMemo(function(){return MZ(z,G,X,q,re)},[z,G,X,q,re]),Y=c.useMemo(function(){return A(A({},e),{},{prefixCls:s,locale:re,picker:a,styles:u,classNames:f,order:p,components:A({input:g},h),clearIcon:OOe(s,w,b),showTime:K,value:N,defaultValue:O,pickerValue:D,defaultPickerValue:F},t==null?void 0:t())},[e]),Z=NOe(z,re,C),J=ie(Z,2),ee=J[0],te=J[1],le=DOe(ee,S,x),oe=MOe(n,r,k,_,$),de=jOe(n,a,oe,K),pe=c.useMemo(function(){return A(A({},Y),{},{needConfirm:V,inputReadOnly:le,disabledDate:oe})},[Y,V,le,oe]);return[pe,z,H,ee,te,de]}function FOe(e,t,n){var r=Ut(t,{value:e}),i=ie(r,2),a=i[0],o=i[1],s=L.useRef(e),l=L.useRef(),u=function(){tn.cancel(l.current)},d=Vt(function(){o(s.current),n&&a!==s.current&&n(s.current)}),f=Vt(function(m,p){u(),s.current=m,m||p?d():l.current=tn(d)});return L.useEffect(function(){return u},[]),[a,f]}function FZ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(d){return d})?!1:e,a=FOe(i,t||!1,r),o=ie(a,2),s=o[0],l=o[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(d,f.force)}return[s,u]}function AZ(e){var t=c.useRef();return c.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var a;(a=t.current)===null||a===void 0||a.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function LZ(e,t){return c.useMemo(function(){return e||(t?(An(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ie(n,2),i=r[0],a=r[1];return{label:i,value:a}})):[])},[e,t])}function BM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=c.useRef(t);r.current=t,Jd(function(){if(e)r.current(e);else{var i=tn(function(){r.current(e)},n);return function(){tn.cancel(i)}}},[e])}function BZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=c.useState(0),i=ie(r,2),a=i[0],o=i[1],s=c.useState(!1),l=ie(s,2),u=l[0],d=l[1],f=c.useRef([]),m=c.useRef(null),p=c.useRef(null),v=function(x){m.current=x},h=function(x){return m.current===x},g=function(x){d(x)},w=function(x){return x&&(p.current=x),p.current},b=function(x){var C=f.current,S=new Set(C.filter(function(_){return x[_]||t[_]})),k=C[C.length-1]===0?1:0;return S.size>=2||e[k]?null:k};return BM(u||n,function(){u||(f.current=[],v(null))}),c.useEffect(function(){u&&f.current.push(a)},[u,a]),[u,g,w,a,o,b,f.current,v,h]}function AOe(e,t,n,r,i,a){var o=n[n.length-1],s=function(u,d){var f=ie(e,2),m=f[0],p=f[1],v=A(A({},d),{},{from:_Z(e,n)});return o===1&&t[0]&&m&&!na(r,i,m,u,v.type)&&r.isAfter(m,u)||o===0&&t[1]&&p&&!na(r,i,p,u,v.type)&&r.isAfter(u,p)?!0:a==null?void 0:a(u,v)};return s}function Yh(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var _E=[];function zZ(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:_E,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:_E,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:_E,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,v=o==="time",h=a||0,g=function(D){var F=e.getNow();return v&&(F=cS(e,F)),l[D]||n[D]||F},w=ie(u,2),b=w[0],y=w[1],x=Ut(function(){return g(0)},{value:b}),C=ie(x,2),S=C[0],k=C[1],_=Ut(function(){return g(1)},{value:y}),$=ie(_,2),E=$[0],T=$[1],M=c.useMemo(function(){var O=[S,E][h];return v?O:cS(e,O,d[h])},[v,S,E,h,e,d]),j=function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[k,T][h];z(D);var R=[S,E];R[h]=D,f&&(!na(e,t,S,R[0],o)||!na(e,t,E,R[1],o))&&f(R,{source:F,range:h===1?"end":"start",mode:r})},I=function(D,F){if(s){var z={date:"month",week:"month",month:"year",quarter:"year"},R=z[o];if(R&&!na(e,t,D,F,R))return Yh(e,o,F,-1);if(o==="year"&&D){var H=Math.floor(e.getYear(D)/10),V=Math.floor(e.getYear(F)/10);if(H!==V)return Yh(e,o,F,-1)}}return F},N=c.useRef(null);return nn(function(){if(i&&!l[h]){var O=v?null:e.getNow();if(N.current!==null&&N.current!==h?O=[S,E][h^1]:n[h]?O=h===0?n[0]:I(n[0],n[1]):n[h^1]&&(O=n[h^1]),O){m&&e.isAfter(m,O)&&(O=m);var D=s?Yh(e,o,O,1):O;p&&e.isAfter(D,p)&&(O=s?Yh(e,o,p,-1):p),j(O,"reset")}}},[i,h,n[h]]),c.useEffect(function(){i?N.current=h:N.current=null},[i,h]),nn(function(){i&&l&&l[h]&&j(l[h],"reset")},[i,h]),[M,j]}function HZ(e,t){var n=c.useRef(e),r=c.useState({}),i=ie(r,2),a=i[1],o=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,a({})};return[o,s,o(!0)]}var LOe=[];function VZ(e,t,n){var r=function(o){return o.map(function(s){return Si(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(o,s){for(var l=Math.max(o.length,s.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var u=i.includes(l);(!u||!r)&&o.push({label:jM(l,a),value:l,disabled:u})}return o}function zM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,a=r.hourStep,o=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,m=f===void 0?100:f,p=r.hideDisabledOptions,v=r.disabledTime,h=r.disabledHours,g=r.disabledMinutes,w=r.disabledSeconds,b=c.useMemo(function(){return n||e.getNow()},[n,e]),y=c.useCallback(function(F){var z=(v==null?void 0:v(F))||{};return[z.disabledHours||h||ty,z.disabledMinutes||g||ty,z.disabledSeconds||w||ty,z.disabledMilliseconds||ty]},[v,h,g,w]),x=c.useMemo(function(){return y(b)},[b,y]),C=ie(x,4),S=C[0],k=C[1],_=C[2],$=C[3],E=c.useCallback(function(F,z,R,H){var V=ny(0,23,o,p,F()),B=i?V.map(function(G){return A(A({},G),{},{label:jM(G.value%12||12,2)})}):V,W=function(X){return ny(0,59,l,p,z(X))},q=function(X,re){return ny(0,59,d,p,R(X,re))},Q=function(X,re,K){return ny(0,999,m,p,H(X,re,K),3)};return[B,W,q,Q]},[p,o,i,m,l,d]),T=c.useMemo(function(){return E(S,k,_,$)},[E,S,k,_,$]),M=ie(T,4),j=M[0],I=M[1],N=M[2],O=M[3],D=function(z,R){var H=function(){return j},V=I,B=N,W=O;if(R){var q=y(R),Q=ie(q,4),G=Q[0],X=Q[1],re=Q[2],K=Q[3],Y=E(G,X,re,K),Z=ie(Y,4),J=Z[0],ee=Z[1],te=Z[2],le=Z[3];H=function(){return J},V=ee,B=te,W=le}var oe=zOe(z,H,V,B,W,e);return oe};return[D,j,I,N,O]}function HOe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,a=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=c.useContext(sl),p=m.prefixCls,v=m.locale,h=m.button,g=h===void 0?"button":h,w=d.getNow(),b=zM(d,a,w),y=ie(b,1),x=y[0],C=r==null?void 0:r(t),S=f(w,{type:t}),k=function(){if(!S){var I=x(w);s(I)}},_="".concat(p,"-now"),$="".concat(_,"-btn"),E=i&&c.createElement("li",{className:_},c.createElement("a",{className:ne($,S&&"".concat($,"-disabled")),"aria-disabled":S,onClick:k},n==="date"?v.today:v.now)),T=u&&c.createElement("li",{className:"".concat(p,"-ok")},c.createElement(g,{disabled:l,onClick:o},v.ok)),M=(E||T)&&c.createElement("ul",{className:"".concat(p,"-ranges")},E,T);return!C&&!M?null:c.createElement("div",{className:"".concat(p,"-footer")},C&&c.createElement("div",{className:"".concat(p,"-footer-extra")},C),M)}function KZ(e,t,n){function r(i,a){var o=i.findIndex(function(l){return na(e,t,l,a,n)});if(o===-1)return[].concat(Fe(i),[a]);var s=Fe(i);return s.splice(o,1),s}return r}var Hf=c.createContext(null);function Lk(){return c.useContext(Hf)}function kv(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,a=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,p=e.pickerValue,v=e.onSelect,h=e.prevIcon,g=e.nextIcon,w=e.superPrevIcon,b=e.superNextIcon,y=r.getNow(),x={now:y,values:m,pickerValue:p,prefixCls:n,disabledDate:a,minDate:o,maxDate:s,cellRender:l,hoverValue:u,hoverRangeValue:d,onHover:f,locale:i,generateConfig:r,onSelect:v,panelType:t,prevIcon:h,nextIcon:g,superPrevIcon:w,superNextIcon:b};return[x,y]}var Lu=c.createContext({});function M1(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,a=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,p=e.disabledDate,v=Lk(),h=v.prefixCls,g=v.panelType,w=v.now,b=v.disabledDate,y=v.cellRender,x=v.onHover,C=v.hoverValue,S=v.hoverRangeValue,k=v.generateConfig,_=v.values,$=v.locale,E=v.onSelect,T=p||b,M="".concat(h,"-cell"),j=c.useContext(Lu),I=j.onCellDblClick,N=function(B){return _.some(function(W){return W&&na(k,$,B,W,g)})},O=[],D=0;D1&&arguments[1]!==void 0?arguments[1]:!1;ge(Te),g==null||g(Te),Ie&&ue(Te)},$e=function(Te,Ie){re(Te),Ie&&ce(Ie),ue(Ie,Te)},se=function(Te){if(de(Te),ce(Te),X!==x){var Ie=["decade","year"],ke=[].concat(Ie,["month"]),je={quarter:[].concat(Ie,["quarter"]),week:[].concat(Fe(ke),["week"]),date:[].concat(Fe(ke),["date"])},He=je[x]||ke,Be=He.indexOf(X),ct=He[Be+1];ct&&$e(ct,Te)}},ve=c.useMemo(function(){var ye,Te;if(Array.isArray(k)){var Ie=ie(k,2);ye=Ie[0],Te=Ie[1]}else ye=k;return!ye&&!Te?null:(ye=ye||Te,Te=Te||ye,i.isAfter(ye,Te)?[Te,ye]:[ye,Te])},[k,i]),he=FM(_,$,E),_e=M[K]||eIe[K]||Bk,Se=c.useContext(Lu),Pe=c.useMemo(function(){return A(A({},Se),{},{hideHeader:j})},[Se,j]),De="".concat(I,"-panel"),xe=Fk(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return c.createElement(Lu.Provider,{value:Pe},c.createElement("div",{ref:N,tabIndex:l,className:ne(De,U({},"".concat(De,"-rtl"),a==="rtl"))},c.createElement(_e,Ee({},xe,{showTime:W,prefixCls:I,locale:V,generateConfig:i,onModeChange:$e,pickerValue:fe,onPickerValueChange:function(Te){ce(Te,!0)},value:le[0],onSelect:se,values:le,cellRender:he,hoverRangeValue:ve,hoverValue:S}))))}var $E=c.memo(c.forwardRef(tIe));function nIe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,u=c.useContext(sl),d=u.prefixCls,f=u.generateConfig,m=c.useCallback(function(b,y){return Yh(f,t,b,y)},[f,t]),p=c.useMemo(function(){return m(r,1)},[r,m]),v=function(y){i(m(y,-1))},h={onCellDblClick:function(){a&&o()}},g=t==="time",w=A(A({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?w.hoverRangeValue=l:w.hoverValue=l,n?c.createElement("div",{className:"".concat(d,"-panels")},c.createElement(Lu.Provider,{value:A(A({},h),{},{hideNext:!0})},c.createElement($E,w)),c.createElement(Lu.Provider,{value:A(A({},h),{},{hidePrev:!0})},c.createElement($E,Ee({},w,{pickerValue:p,onPickerValueChange:v})))):c.createElement(Lu.Provider,{value:A({},h)},c.createElement($E,w))}function KA(e){return typeof e=="function"?e():e}function rIe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?c.createElement("div",{className:"".concat(t,"-presets")},c.createElement("ul",null,n.map(function(a,o){var s=a.label,l=a.value;return c.createElement("li",{key:o,onClick:function(){r(KA(l))},onMouseEnter:function(){i(KA(l))},onMouseLeave:function(){i(null)}},s)}))):null}function XZ(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,a=e.range,o=e.multiple,s=e.activeOffset,l=s===void 0?0:s,u=e.placement,d=e.presets,f=e.onPresetHover,m=e.onPresetSubmit,p=e.onFocus,v=e.onBlur,h=e.onPanelMouseDown,g=e.direction,w=e.value,b=e.onSelect,y=e.isInvalid,x=e.defaultOpenValue,C=e.onOk,S=e.onSubmit,k=c.useContext(sl),_=k.prefixCls,$="".concat(_,"-panel"),E=g==="rtl",T=c.useRef(null),M=c.useRef(null),j=c.useState(0),I=ie(j,2),N=I[0],O=I[1],D=c.useState(0),F=ie(D,2),z=F[0],R=F[1],H=function(oe){oe.offsetWidth&&O(oe.offsetWidth)};c.useEffect(function(){if(a){var le,oe=((le=T.current)===null||le===void 0?void 0:le.offsetWidth)||0,de=N-oe;l<=de?R(0):R(l+oe-N)}},[N,l,a]);function V(le){return le.filter(function(oe){return oe})}var B=c.useMemo(function(){return V(zf(w))},[w]),W=r==="time"&&!B.length,q=c.useMemo(function(){return W?V([x]):B},[W,B,x]),Q=W?x:B,G=c.useMemo(function(){return q.length?q.some(function(le){return y(le)}):!0},[q,y]),X=function(){W&&b(x),C(),S()},re=c.createElement("div",{className:"".concat(_,"-panel-layout")},c.createElement(rIe,{prefixCls:_,presets:d,onClick:m,onHover:f}),c.createElement("div",null,c.createElement(nIe,Ee({},e,{value:Q})),c.createElement(HOe,Ee({},e,{showNow:o?!1:i,invalid:G,onSubmit:X}))));t&&(re=t(re));var K="".concat($,"-container"),Y="marginLeft",Z="marginRight",J=c.createElement("div",{onMouseDown:h,tabIndex:-1,className:ne(K,"".concat(_,"-").concat(n,"-panel-container")),style:U(U({},E?Z:Y,z),E?Y:Z,"auto"),onFocus:p,onBlur:v},re);if(a){var ee=jk(u,E),te=SZ(ee,E);J=c.createElement("div",{onMouseDown:h,ref:M,className:ne("".concat(_,"-range-wrapper"),"".concat(_,"-").concat(r,"-range-wrapper"))},c.createElement("div",{ref:T,className:"".concat(_,"-range-arrow"),style:U({},te,l)}),c.createElement(Ci,{onResize:H},J))}return J}function QZ(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,m=e.onBlur,p=e.onInputChange,v=e.onInvalid,h=e.open,g=e.onOpenChange,w=e.onKeyDown,b=e.onChange,y=e.activeHelp,x=e.name,C=e.autoComplete,S=e.id,k=e.value,_=e.invalid,$=e.placeholder,E=e.disabled,T=e.activeIndex,M=e.allHelp,j=e.picker,I=function(V,B){var W=i.locale.parse(a.locale,V,[B]);return W&&i.isValidate(W)?W:null},N=n[0],O=c.useCallback(function(H){return Si(H,{locale:a,format:N,generateConfig:i})},[a,i,N]),D=c.useMemo(function(){return k.map(O)},[k,O]),F=c.useMemo(function(){var H=j==="time"?8:10,V=typeof N=="function"?N(i.getNow()).length:N.length;return Math.max(H,V)+2},[N,j,i]),z=function(V){for(var B=0;B=s&&n<=l)return a;var u=Math.min(Math.abs(n-s),Math.abs(n-l));u0?nt:rt));var Ce=Oe+Ne,Re=rt-nt+1;return String(nt+(Re+Ce-nt)%Re)};switch(Te){case"Backspace":case"Delete":Ie="",ke=He;break;case"ArrowLeft":Ie="",Be(-1);break;case"ArrowRight":Ie="",Be(1);break;case"ArrowUp":Ie="",ke=ct(1);break;case"ArrowDown":Ie="",ke=ct(-1);break;default:isNaN(Number(Te))||(Ie=H+Te,ke=Ie);break}if(Ie!==null&&(V(Ie),Ie.length>=je&&(Be(1),V(""))),ke!==null){var Ve=Y.slice(0,oe)+jM(ke,je)+Y.slice(de);we(Ve.slice(0,o.length))}K({})},Pe=c.useRef();nn(function(){if(!(!j||!o||ue.current)){if(!ee.match(Y)){we(o);return}return J.current.setSelectionRange(oe,de),Pe.current=tn(function(){J.current.setSelectionRange(oe,de)}),function(){tn.cancel(Pe.current)}}},[ee,o,j,Y,q,oe,de,re,we]);var De=o?{onFocus:se,onBlur:he,onKeyDown:Se,onMouseDown:ce,onMouseUp:$e,onPaste:ge}:{};return c.createElement("div",{ref:Z,className:ne(E,U(U({},"".concat(E,"-active"),n&&i),"".concat(E,"-placeholder"),u))},c.createElement($,Ee({ref:J,"aria-invalid":h,autoComplete:"off"},w,{onKeyDown:_e,onBlur:ve},De,{value:Y,onChange:fe})),c.createElement(zk,{type:"suffix",icon:a}),g)}),uIe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],dIe=["index"],fIe=["insetInlineStart","insetInlineEnd"];function mIe(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,a=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,m=e.style,p=e.onClick,v=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var g=e.disabled,w=e.invalid;e.inputReadOnly;var b=e.direction;e.onOpenChange;var y=e.onActiveOffset,x=e.placement,C=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,k=e.tabIndex,_=ut(e,uIe),$=b==="rtl",E=c.useContext(sl),T=E.prefixCls,M=c.useMemo(function(){if(typeof n=="string")return[n];var J=n||{};return[J.start,J.end]},[n]),j=c.useRef(),I=c.useRef(),N=c.useRef(),O=function(ee){var te;return(te=[I,N][ee])===null||te===void 0?void 0:te.current};c.useImperativeHandle(t,function(){return{nativeElement:j.current,focus:function(ee){if(mt(ee)==="object"){var te,le=ee||{},oe=le.index,de=oe===void 0?0:oe,pe=ut(le,dIe);(te=O(de))===null||te===void 0||te.focus(pe)}else{var we;(we=O(ee??0))===null||we===void 0||we.focus()}},blur:function(){var ee,te;(ee=O(0))===null||ee===void 0||ee.blur(),(te=O(1))===null||te===void 0||te.blur()}}});var D=JZ(_),F=c.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),z=QZ(A(A({},e),{},{id:M,placeholder:F})),R=ie(z,1),H=R[0],V=jk(x,$),B=SZ(V,$),W=V==null?void 0:V.toLowerCase().endsWith("right"),q=c.useState({position:"absolute",width:0}),Q=ie(q,2),G=Q[0],X=Q[1],re=Vt(function(){var J=O(l);if(J){var ee=J.nativeElement,te=ee.offsetWidth,le=ee.offsetLeft,oe=ee.offsetParent,de=(oe==null?void 0:oe.offsetWidth)||0,pe=W?de-te-le:le;X(function(we){we.insetInlineStart,we.insetInlineEnd;var fe=ut(we,fIe);return A(A({},fe),{},U({width:te},B,pe))}),y(pe)}});c.useEffect(function(){re()},[l]);var K=i&&(h[0]&&!g[0]||h[1]&&!g[1]),Y=S&&!g[0],Z=S&&!Y&&!g[1];return c.createElement(Ci,{onResize:re},c.createElement("div",Ee({},D,{className:ne(T,"".concat(T,"-range"),U(U(U(U({},"".concat(T,"-focused"),u),"".concat(T,"-disabled"),g.every(function(J){return J})),"".concat(T,"-invalid"),w.some(function(J){return J})),"".concat(T,"-rtl"),$),f),style:m,ref:j,onClick:p,onMouseDown:function(ee){var te=ee.target;te!==I.current.inputElement&&te!==N.current.inputElement&&ee.preventDefault(),C==null||C(ee)}}),r&&c.createElement("div",{className:"".concat(T,"-prefix")},r),c.createElement(JT,Ee({ref:I},H(0),{autoFocus:Y,tabIndex:k,"date-range":"start"})),c.createElement("div",{className:"".concat(T,"-range-separator")},s),c.createElement(JT,Ee({ref:N},H(1),{autoFocus:Z,tabIndex:k,"date-range":"end"})),c.createElement("div",{className:"".concat(T,"-active-bar"),style:G}),c.createElement(zk,{type:"suffix",icon:a}),K&&c.createElement(QT,{icon:i,onClear:v})))}var pIe=c.forwardRef(mIe);function XA(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function iy(e){return e===1?"end":"start"}function vIe(e,t){var n=jZ(e,function(){var Je=e.disabled,gt=e.allowEmpty,bt=XA(Je,!1),Yt=XA(gt,!1);return{disabled:bt,allowEmpty:Yt}}),r=ie(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],u=r[5],d=i.prefixCls,f=i.styles,m=i.classNames,p=i.placement,v=i.defaultValue,h=i.value,g=i.needConfirm,w=i.onKeyDown,b=i.disabled,y=i.allowEmpty,x=i.disabledDate,C=i.minDate,S=i.maxDate,k=i.defaultOpen,_=i.open,$=i.onOpenChange,E=i.locale,T=i.generateConfig,M=i.picker,j=i.showNow,I=i.showToday,N=i.showTime,O=i.mode,D=i.onPanelChange,F=i.onCalendarChange,z=i.onOk,R=i.defaultPickerValue,H=i.pickerValue,V=i.onPickerValueChange,B=i.inputReadOnly,W=i.suffixIcon,q=i.onFocus,Q=i.onBlur,G=i.presets,X=i.ranges,re=i.components,K=i.cellRender,Y=i.dateRender,Z=i.monthCellRender,J=i.onClick,ee=AZ(t),te=FZ(_,k,b,$),le=ie(te,2),oe=le[0],de=le[1],pe=function(gt,bt){(b.some(function(Yt){return!Yt})||!gt)&&de(gt,bt)},we=UZ(T,E,s,!0,!1,v,h,F,z),fe=ie(we,5),ge=fe[0],ue=fe[1],ce=fe[2],$e=fe[3],se=fe[4],ve=ce(),he=BZ(b,y,oe),_e=ie(he,9),Se=_e[0],Pe=_e[1],De=_e[2],xe=_e[3],ye=_e[4],Te=_e[5],Ie=_e[6],ke=_e[7],je=_e[8],He=function(gt,bt){Pe(!0),q==null||q(gt,{range:iy(bt??xe)})},Be=function(gt,bt){Pe(!1),Q==null||Q(gt,{range:iy(bt??xe)})},ct=c.useMemo(function(){if(!N)return null;var Je=N.disabledTime,gt=Je?function(bt){var Yt=iy(xe),un=_Z(ve,Ie,xe);return Je(bt,Yt,{from:un})}:void 0;return A(A({},N),{},{disabledTime:gt})},[N,xe,ve,Ie]),Ve=Ut([M,M],{value:O}),Ye=ie(Ve,2),Ne=Ye[0],Ae=Ye[1],et=Ne[xe]||M,nt=et==="date"&&ct?"datetime":et,rt=nt===M&&nt!=="time",it=GZ(M,et,j,I,!0),be=qZ(i,ge,ue,ce,$e,b,s,Se,oe,u),Oe=ie(be,2),Ce=Oe[0],Re=Oe[1],Ke=AOe(ve,b,Ie,T,E,x),Xe=EZ(ve,u,y),lt=ie(Xe,2),tt=lt[0],Qe=lt[1],Ge=zZ(T,E,ve,Ne,oe,xe,a,rt,R,H,ct==null?void 0:ct.defaultOpenValue,V,C,S),st=ie(Ge,2),pt=st[0],yt=st[1],zt=Vt(function(Je,gt,bt){var Yt=xg(Ne,xe,gt);if((Yt[0]!==Ne[0]||Yt[1]!==Ne[1])&&Ae(Yt),D&&bt!==!1){var un=Fe(ve);Je&&(un[xe]=Je),D(un,Yt)}}),$t=function(gt,bt){return xg(ve,bt,gt)},ze=function(gt,bt){var Yt=ve;gt&&(Yt=$t(gt,xe)),ke(xe);var un=Te(Yt);$e(Yt),Ce(xe,un===null),un===null?pe(!1,{force:!0}):bt||ee.current.focus({index:un})},me=function(gt){var bt,Yt=gt.target.getRootNode();if(!ee.current.nativeElement.contains((bt=Yt.activeElement)!==null&&bt!==void 0?bt:document.activeElement)){var un=b.findIndex(function(vr){return!vr});un>=0&&ee.current.focus({index:un})}pe(!0),J==null||J(gt)},Me=function(){Re(null),pe(!1,{force:!0})},We=c.useState(null),wt=ie(We,2),Ze=wt[0],Le=wt[1],ot=c.useState(null),ht=ie(ot,2),Et=ht[0],Rt=ht[1],Ct=c.useMemo(function(){return Et||ve},[ve,Et]);c.useEffect(function(){oe||Rt(null)},[oe]);var at=c.useState(0),kt=ie(at,2),At=kt[0],Dt=kt[1],en=LZ(G,X),vn=function(gt){Rt(gt),Le("preset")},bn=function(gt){var bt=Re(gt);bt&&pe(!1,{force:!0})},Sr=function(gt){ze(gt)},pr=function(gt){Rt(gt?$t(gt,xe):null),Le("cell")},nr=function(gt){pe(!0),He(gt)},Kr=function(){De("panel")},gn=function(gt){var bt=xg(ve,xe,gt);$e(bt),!g&&!o&&a===nt&&ze(gt)},Bt=function(){pe(!1)},jt=FM(K,Y,Z,iy(xe)),xn=ve[xe]||null,Ft=Vt(function(Je){return u(Je,{activeIndex:xe})}),Nt=c.useMemo(function(){var Je=er(i,!1),gt=_n(i,[].concat(Fe(Object.keys(Je)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return gt},[i]),hn=c.createElement(XZ,Ee({},Nt,{showNow:it,showTime:ct,range:!0,multiplePanel:rt,activeOffset:At,placement:p,disabledDate:Ke,onFocus:nr,onBlur:Be,onPanelMouseDown:Kr,picker:M,mode:et,internalMode:nt,onPanelChange:zt,format:l,value:xn,isInvalid:Ft,onChange:null,onSelect:gn,pickerValue:pt,defaultOpenValue:zf(N==null?void 0:N.defaultOpenValue)[xe],onPickerValueChange:yt,hoverValue:Ct,onHover:pr,needConfirm:g,onSubmit:ze,onOk:se,presets:en,onPresetHover:vn,onPresetSubmit:bn,onNow:Sr,cellRender:jt})),Rn=function(gt,bt){var Yt=$t(gt,bt);$e(Yt)},dr=function(){De("input")},Ue=function(gt,bt){var Yt=Ie.length,un=Ie[Yt-1];if(Yt&&un!==bt&&g&&!y[un]&&!je(un)&&ve[un]){ee.current.focus({index:un});return}De("input"),pe(!0,{inherit:!0}),xe!==bt&&oe&&!g&&o&&ze(null,!0),ye(bt),He(gt,bt)},vt=function(gt,bt){if(pe(!1),!g&&De()==="input"){var Yt=Te(ve);Ce(xe,Yt===null)}Be(gt,bt)},_t=function(gt,bt){gt.key==="Tab"&&ze(null,!0),w==null||w(gt,bt)},dt=c.useMemo(function(){return{prefixCls:d,locale:E,generateConfig:T,button:re.button,input:re.input}},[d,E,T,re.button,re.input]);return nn(function(){oe&&xe!==void 0&&zt(null,M,!1)},[oe,xe,M]),nn(function(){var Je=De();!oe&&Je==="input"&&(pe(!1),ze(null,!0)),!oe&&o&&!g&&Je==="panel"&&(pe(!0),ze())},[oe]),c.createElement(sl.Provider,{value:dt},c.createElement(CZ,Ee({},$Z(i),{popupElement:hn,popupStyle:f.popup,popupClassName:m.popup,visible:oe,onClose:Bt,range:!0}),c.createElement(pIe,Ee({},i,{ref:ee,suffixIcon:W,activeIndex:Se||oe?xe:null,activeHelp:!!Et,allHelp:!!Et&&Ze==="preset",focused:Se,onFocus:Ue,onBlur:vt,onKeyDown:_t,onSubmit:ze,value:Ct,maskFormat:l,onChange:Rn,onInputChange:dr,format:s,inputReadOnly:B,disabled:b,open:oe,onOpenChange:pe,onClick:me,onClear:Me,invalid:tt,onInvalid:Qe,onActiveOffset:Dt}))))}var hIe=c.forwardRef(vIe);function gIe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,a=i===void 0?"×":i,o=e.formatDate,s=e.disabled,l=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function p(g,w){return c.createElement("span",{className:ne("".concat(f,"-item")),title:typeof g=="string"?g:null},c.createElement("span",{className:"".concat(f,"-item-content")},g),!s&&w&&c.createElement("span",{onMouseDown:function(y){y.preventDefault()},onClick:w,className:"".concat(f,"-item-remove")},a))}function v(g){var w=o(g),b=function(x){x&&x.stopPropagation(),r(g)};return p(w,b)}function h(g){var w="+ ".concat(g.length," ...");return p(w)}return c.createElement("div",{className:d},c.createElement(zs,{prefixCls:m,data:n,renderItem:v,renderRest:h,itemKey:function(w){return o(w)},maxCount:l}),!n.length&&c.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var bIe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function yIe(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,m=e.onClick,p=e.onClear,v=e.internalPicker,h=e.value,g=e.onChange,w=e.onSubmit;e.onInputChange;var b=e.multiple,y=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var x=e.disabled,C=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var k=e.onMouseDown;e.required,e["aria-required"];var _=e.autoFocus,$=e.tabIndex,E=e.removeIcon,T=ut(e,bIe),M=S==="rtl",j=c.useContext(sl),I=j.prefixCls,N=c.useRef(),O=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(G){var X;(X=O.current)===null||X===void 0||X.focus(G)},blur:function(){var G;(G=O.current)===null||G===void 0||G.blur()}}});var D=JZ(T),F=function(G){g([G])},z=function(G){var X=h.filter(function(re){return re&&!na(l,s,re,G,v)});g(X),n||w()},R=QZ(A(A({},e),{},{onChange:F}),function(Q){var G=Q.valueTexts;return{value:G[0]||"",active:o}}),H=ie(R,2),V=H[0],B=H[1],W=!!(i&&h.length&&!x),q=b?c.createElement(c.Fragment,null,c.createElement(gIe,{prefixCls:I,value:h,onRemove:z,formatDate:B,maxTagCount:y,disabled:x,removeIcon:E,placeholder:u}),c.createElement("input",{className:"".concat(I,"-multiple-input"),value:h.map(B).join(","),ref:O,readOnly:!0,autoFocus:_,tabIndex:$}),c.createElement(zk,{type:"suffix",icon:a}),W&&c.createElement(QT,{icon:i,onClear:p})):c.createElement(JT,Ee({ref:O},V(),{autoFocus:_,tabIndex:$,suffixIcon:a,clearIcon:W&&c.createElement(QT,{icon:i,onClear:p}),showActiveCls:!1}));return c.createElement("div",Ee({},D,{className:ne(I,U(U(U(U(U({},"".concat(I,"-multiple"),b),"".concat(I,"-focused"),o),"".concat(I,"-disabled"),x),"".concat(I,"-invalid"),C),"".concat(I,"-rtl"),M),d),style:f,ref:N,onClick:m,onMouseDown:function(G){var X,re=G.target;re!==((X=O.current)===null||X===void 0?void 0:X.inputElement)&&G.preventDefault(),k==null||k(G)}}),r&&c.createElement("div",{className:"".concat(I,"-prefix")},r),q)}var wIe=c.forwardRef(yIe);function xIe(e,t){var n=jZ(e),r=ie(n,6),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],u=r[5],d=i,f=d.prefixCls,m=d.styles,p=d.classNames,v=d.order,h=d.defaultValue,g=d.value,w=d.needConfirm,b=d.onChange,y=d.onKeyDown,x=d.disabled,C=d.disabledDate,S=d.minDate,k=d.maxDate,_=d.defaultOpen,$=d.open,E=d.onOpenChange,T=d.locale,M=d.generateConfig,j=d.picker,I=d.showNow,N=d.showToday,O=d.showTime,D=d.mode,F=d.onPanelChange,z=d.onCalendarChange,R=d.onOk,H=d.multiple,V=d.defaultPickerValue,B=d.pickerValue,W=d.onPickerValueChange,q=d.inputReadOnly,Q=d.suffixIcon,G=d.removeIcon,X=d.onFocus,re=d.onBlur,K=d.presets,Y=d.components,Z=d.cellRender,J=d.dateRender,ee=d.monthCellRender,te=d.onClick,le=AZ(t);function oe(Ft){return Ft===null?null:H?Ft:Ft[0]}var de=KZ(M,T,a),pe=FZ($,_,[x],E),we=ie(pe,2),fe=we[0],ge=we[1],ue=function(Nt,hn,Rn){if(z){var dr=A({},Rn);delete dr.range,z(oe(Nt),oe(hn),dr)}},ce=function(Nt){R==null||R(oe(Nt))},$e=UZ(M,T,s,!1,v,h,g,ue,ce),se=ie($e,5),ve=se[0],he=se[1],_e=se[2],Se=se[3],Pe=se[4],De=_e(),xe=BZ([x]),ye=ie(xe,4),Te=ye[0],Ie=ye[1],ke=ye[2],je=ye[3],He=function(Nt){Ie(!0),X==null||X(Nt,{})},Be=function(Nt){Ie(!1),re==null||re(Nt,{})},ct=Ut(j,{value:D}),Ve=ie(ct,2),Ye=Ve[0],Ne=Ve[1],Ae=Ye==="date"&&O?"datetime":Ye,et=GZ(j,Ye,I,N),nt=b&&function(Ft,Nt){b(oe(Ft),oe(Nt))},rt=qZ(A(A({},i),{},{onChange:nt}),ve,he,_e,Se,[],s,Te,fe,u),it=ie(rt,2),be=it[1],Oe=EZ(De,u),Ce=ie(Oe,2),Re=Ce[0],Ke=Ce[1],Xe=c.useMemo(function(){return Re.some(function(Ft){return Ft})},[Re]),lt=function(Nt,hn){if(W){var Rn=A(A({},hn),{},{mode:hn.mode[0]});delete Rn.range,W(Nt[0],Rn)}},tt=zZ(M,T,De,[Ye],fe,je,a,!1,V,B,zf(O==null?void 0:O.defaultOpenValue),lt,S,k),Qe=ie(tt,2),Ge=Qe[0],st=Qe[1],pt=Vt(function(Ft,Nt,hn){if(Ne(Nt),F&&hn!==!1){var Rn=Ft||De[De.length-1];F(Rn,Nt)}}),yt=function(){be(_e()),ge(!1,{force:!0})},zt=function(Nt){!x&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),ge(!0),te==null||te(Nt)},$t=function(){be(null),ge(!1,{force:!0})},ze=c.useState(null),me=ie(ze,2),Me=me[0],We=me[1],wt=c.useState(null),Ze=ie(wt,2),Le=Ze[0],ot=Ze[1],ht=c.useMemo(function(){var Ft=[Le].concat(Fe(De)).filter(function(Nt){return Nt});return H?Ft:Ft.slice(0,1)},[De,Le,H]),Et=c.useMemo(function(){return!H&&Le?[Le]:De.filter(function(Ft){return Ft})},[De,Le,H]);c.useEffect(function(){fe||ot(null)},[fe]);var Rt=LZ(K),Ct=function(Nt){ot(Nt),We("preset")},at=function(Nt){var hn=H?de(_e(),Nt):[Nt],Rn=be(hn);Rn&&!H&&ge(!1,{force:!0})},kt=function(Nt){at(Nt)},At=function(Nt){ot(Nt),We("cell")},Dt=function(Nt){ge(!0),He(Nt)},en=function(Nt){if(ke("panel"),!(H&&Ae!==j)){var hn=H?de(_e(),Nt):[Nt];Se(hn),!w&&!o&&a===Ae&&yt()}},vn=function(){ge(!1)},bn=FM(Z,J,ee),Sr=c.useMemo(function(){var Ft=er(i,!1),Nt=_n(i,[].concat(Fe(Object.keys(Ft)),["onChange","onCalendarChange","style","className","onPanelChange"]));return A(A({},Nt),{},{multiple:i.multiple})},[i]),pr=c.createElement(XZ,Ee({},Sr,{showNow:et,showTime:O,disabledDate:C,onFocus:Dt,onBlur:Be,picker:j,mode:Ye,internalMode:Ae,onPanelChange:pt,format:l,value:De,isInvalid:u,onChange:null,onSelect:en,pickerValue:Ge,defaultOpenValue:O==null?void 0:O.defaultOpenValue,onPickerValueChange:st,hoverValue:ht,onHover:At,needConfirm:w,onSubmit:yt,onOk:Pe,presets:Rt,onPresetHover:Ct,onPresetSubmit:at,onNow:kt,cellRender:bn})),nr=function(Nt){Se(Nt)},Kr=function(){ke("input")},gn=function(Nt){ke("input"),ge(!0,{inherit:!0}),He(Nt)},Bt=function(Nt){ge(!1),Be(Nt)},jt=function(Nt,hn){Nt.key==="Tab"&&yt(),y==null||y(Nt,hn)},xn=c.useMemo(function(){return{prefixCls:f,locale:T,generateConfig:M,button:Y.button,input:Y.input}},[f,T,M,Y.button,Y.input]);return nn(function(){fe&&je!==void 0&&pt(null,j,!1)},[fe,je,j]),nn(function(){var Ft=ke();!fe&&Ft==="input"&&(ge(!1),yt()),!fe&&o&&!w&&Ft==="panel"&&(ge(!0),yt())},[fe]),c.createElement(sl.Provider,{value:xn},c.createElement(CZ,Ee({},$Z(i),{popupElement:pr,popupStyle:m.popup,popupClassName:p.popup,visible:fe,onClose:vn}),c.createElement(wIe,Ee({},i,{ref:le,suffixIcon:Q,removeIcon:G,activeHelp:!!Le,allHelp:!!Le&&Me==="preset",focused:Te,onFocus:gn,onBlur:Bt,onKeyDown:jt,onSubmit:yt,value:Et,maskFormat:l,onChange:nr,onInputChange:Kr,internalPicker:a,format:s,inputReadOnly:q,disabled:x,open:fe,onOpenChange:ge,onClick:zt,onClear:$t,invalid:Xe,onInvalid:function(Nt){Ke(Nt,0)}}))))}var SIe=c.forwardRef(xIe);const ZZ=c.createContext(null),CIe=ZZ.Provider,eee=c.createContext(null),kIe=eee.Provider;var _Ie=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],tee=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,u=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,m=e.title,p=e.onChange,v=ut(e,_Ie),h=c.useRef(null),g=c.useRef(null),w=Ut(u,{value:o}),b=ie(w,2),y=b[0],x=b[1];c.useImperativeHandle(t,function(){return{focus:function(_){var $;($=h.current)===null||$===void 0||$.focus(_)},blur:function(){var _;(_=h.current)===null||_===void 0||_.blur()},input:h.current,nativeElement:g.current}});var C=ne(r,i,U(U({},"".concat(r,"-checked"),y),"".concat(r,"-disabled"),s)),S=function(_){s||("checked"in e||x(_.target.checked),p==null||p({target:A(A({},e),{},{type:f,checked:_.target.checked}),stopPropagation:function(){_.stopPropagation()},preventDefault:function(){_.preventDefault()},nativeEvent:_.nativeEvent}))};return c.createElement("span",{className:C,title:m,style:a,ref:g},c.createElement("input",Ee({},v,{className:"".concat(r,"-input"),ref:h,onChange:S,disabled:s,checked:!!y,type:f})),c.createElement("span",{className:"".concat(r,"-inner")}))});function nee(e){const t=L.useRef(null),n=()=>{tn.cancel(t.current),t.current=null};return[()=>{n(),t.current=tn(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const $Ie=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},mn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},EIe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:p,dotColorDisabled:v,lineType:h,radioColor:g,radioBgColor:w,calc:b}=e,y=`${t}-inner`,C=b(i).sub(b(4).mul(2)),S=b(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},mn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ae(d)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Ys(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:b(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:w,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(C).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},PIe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:p,controlHeightSM:v,paddingXS:h,borderRadius:g,borderRadiusSM:w,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:k,buttonCheckedColorDisabled:_,colorPrimary:$,colorPrimaryHover:E,colorPrimaryActive:T,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:j,buttonSolidCheckedActiveBg:I,calc:N}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:ae(N(n).sub(N(i).mul(2)).equal()),background:f,border:`${ae(i)} ${a} ${o}`,borderBlockStartWidth:N(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:N(i).mul(-1).equal(),insetInlineStart:N(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${ae(i)} ${a} ${o}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:m,lineHeight:ae(N(p).sub(N(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:N(h).sub(i).equal(),paddingBlock:0,lineHeight:ae(N(v).sub(N(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},Ys(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:M,borderColor:M,"&:hover":{color:x,background:j,borderColor:j},"&:active":{color:x,background:I,borderColor:I}},"&-disabled":{color:C,backgroundColor:S,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:_,backgroundColor:k,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},TIe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:p,colorWhite:v}=e,h=4,g=a,w=t?g-h*2:g-(h+i)*2;return{radioSize:g,dotSize:w,dotColorDisabled:l,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:v,radioBgColor:t?s:f}},ree=sn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ae(n)} ${t}`,a=Kt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[$Ie(a),EIe(a),PIe(a)]},TIe,{unitless:{radioSize:!0,dotSize:!0}});var OIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const i=c.useContext(ZZ),a=c.useContext(eee),{getPrefixCls:o,direction:s,radio:l}=c.useContext(xt),u=c.useRef(null),d=ri(t,u),{isFormItemInput:f}=c.useContext(ni),m=O=>{var D,F;(D=e.onChange)===null||D===void 0||D.call(e,O),(F=i==null?void 0:i.onChange)===null||F===void 0||F.call(i,O)},{prefixCls:p,className:v,rootClassName:h,children:g,style:w,title:b}=e,y=OIe(e,["prefixCls","className","rootClassName","children","style","title"]),x=o("radio",p),C=((i==null?void 0:i.optionType)||a)==="button",S=C?`${x}-button`:x,k=Ln(x),[_,$,E]=ree(x,k),T=Object.assign({},y),M=c.useContext(Ur);i&&(T.name=i.name,T.onChange=m,T.checked=e.value===i.value,T.disabled=(n=T.disabled)!==null&&n!==void 0?n:i.disabled),T.disabled=(r=T.disabled)!==null&&r!==void 0?r:M;const j=ne(`${S}-wrapper`,{[`${S}-wrapper-checked`]:T.checked,[`${S}-wrapper-disabled`]:T.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:f,[`${S}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,v,h,$,E,k),[I,N]=nee(T.onClick);return _(c.createElement(S1,{component:"Radio",disabled:T.disabled},c.createElement("label",{className:j,style:Object.assign(Object.assign({},l==null?void 0:l.style),w),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:I},c.createElement(tee,Object.assign({},T,{className:ne(T.className,{[sk]:!C}),type:"radio",prefixCls:S,ref:d,onClick:N})),g!==void 0?c.createElement("span",null,g):null)))},uS=c.forwardRef(IIe),RIe=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(xt),i=yk(),{prefixCls:a,className:o,rootClassName:s,options:l,buttonStyle:u="outline",disabled:d,children:f,size:m,style:p,id:v,optionType:h,name:g=i,defaultValue:w,value:b,block:y=!1,onChange:x,onMouseEnter:C,onMouseLeave:S,onFocus:k,onBlur:_}=e,[$,E]=Ut(w,{value:b}),T=c.useCallback(V=>{const B=$,W=V.target.value;"value"in e||E(W),W!==B&&(x==null||x(V))},[$,E,x]),M=n("radio",a),j=`${M}-group`,I=Ln(M),[N,O,D]=ree(M,I);let F=f;l&&l.length>0&&(F=l.map(V=>typeof V=="string"||typeof V=="number"?c.createElement(uS,{key:V.toString(),prefixCls:M,disabled:d,value:V,checked:$===V},V):c.createElement(uS,{key:`radio-group-value-options-${V.value}`,prefixCls:M,disabled:V.disabled||d,value:V.value,checked:$===V.value,title:V.title,style:V.style,id:V.id,required:V.required},V.label)));const z=Br(m),R=ne(j,`${j}-${u}`,{[`${j}-${z}`]:z,[`${j}-rtl`]:r==="rtl",[`${j}-block`]:y},o,s,O,D,I),H=c.useMemo(()=>({onChange:T,value:$,disabled:d,name:g,optionType:h,block:y}),[T,$,d,g,h,y]);return N(c.createElement("div",Object.assign({},er(e,{aria:!0,data:!0}),{className:R,style:p,onMouseEnter:C,onMouseLeave:S,onFocus:k,onBlur:_,id:v,ref:t}),c.createElement(CIe,{value:H},F)))}),MIe=c.memo(RIe);var NIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n}=c.useContext(xt),{prefixCls:r}=e,i=NIe(e,["prefixCls"]),a=n("radio",r);return c.createElement(kIe,{value:"button"},c.createElement(uS,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},jIe=c.forwardRef(DIe),$v=uS;$v.Button=jIe;$v.Group=MIe;$v.__ANT_RADIO=!0;function N1(e){return Kt(e,{inputAffixPadding:e.paddingXXS})}const D1=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:p,colorPrimary:v,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:w,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:u-i,paddingInlineSM:d-i,paddingInlineLG:f-i,addonBg:m,activeBorderColor:v,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${w}`,warningActiveShadow:`0 0 0 ${h}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},FIe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Hk=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},FIe(Kt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),HM=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),QA=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},HM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),VM=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},HM(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Hk(e))}),QA(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),QA(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),JA=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),iee=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},JA(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),JA(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Hk(e))}})}),WM=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},aee=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),ZA=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},aee(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),UM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aee(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Hk(e))}),ZA(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ZA(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),e9=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),oee=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},e9(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),e9(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),qM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),see=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${ae(t)} ${ae(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},GM=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),j1=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ae(e.paddingBlock)} ${ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},qM(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},see(e)),"&-sm":Object.assign({},GM(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),lee=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},see(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},GM(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ks()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${n}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-select-selector, + & > ${n}-cascader-picker:last-child ${t}, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},AIe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),j1(e)),VM(e)),UM(e)),WM(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},LIe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ae(e.inputAffixPadding)}`}}}},BIe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},j1(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),LIe(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),[u]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},zIe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},mn(e)),lee(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},iee(e)),oee(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},HIe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},VIe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + &-allow-clear > ${t}, + &-affix-wrapper${r}-has-feedback ${t} + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},WIe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},KM=sn("Input",e=>{const t=Kt(e,N1(e));return[AIe(t),VIe(t),BIe(t),zIe(t),HIe(t),WIe(t),Af(t)]},D1,{resetFont:!1}),PE=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",a=$J(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:ae(a.itemLineHeight)}}}]},UIe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Kt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Kt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[PE(i,"small"),PE(e),PE(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},EJ(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},qIe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:p,colorFillSecondary:v}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ae(r),borderRadius:i,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ae(s)} ${l} ${u}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:v}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:m,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},GIe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:p,colorPrimary:v,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:w,colorIcon:b,textHeight:y,motionDurationMid:x,colorIconHover:C,fontWeightStrong:S,cellHeight:k,pickerCellPaddingVertical:_,colorTextDisabled:$,colorText:E,fontSize:T,motionDurationSlow:M,withoutTimeCellHeight:j,pickerQuarterPanelContentHeight:I,borderRadiusSM:N,colorTextLightSolid:O,cellHoverBg:D,timeColumnHeight:F,timeColumnWidth:z,timeCellHeight:R,controlItemBgActive:H,marginXXS:V,pickerDatePanelPaddingHorizontal:B,pickerControlIconMargin:W}=e,q=e.calc(o).mul(7).add(e.calc(B).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:p,outline:"none","&-focused":{borderColor:v},"&-rtl":{[`${t}-prev-icon, + ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:q},"&-header":{display:"flex",padding:`0 ${ae(l)}`,color:h,borderBottom:`${ae(f)} ${m} ${g}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:ae(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:T,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:ae(y),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:v}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${ae(w)} 0`,borderInlineWidth:`${ae(w)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:W,insetInlineStart:W,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${ae(w)} 0`,borderInlineWidth:`${ae(w)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:k,fontWeight:"normal"},th:{height:e.calc(k).add(e.calc(_).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ae(_)} 0`,color:$,cursor:"pointer","&-in-view":{color:E}},qIe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(j).mul(4).equal()},[r]:{padding:`0 ${ae(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},"&-decade-panel":{[r]:{padding:`0 ${ae(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ae(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${ae(l)} ${ae(B)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + &-selected ${r}, + ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:D},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:v},[`&${t}-cell-week`]:{color:new rn(O).setA(.5).toHexString()},[r]:{color:O}}},"&-range-hover td:before":{background:H}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ae(l)} ${ae(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ae(f)} ${m} ${g}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:z,margin:`${ae(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ae(R)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ae(f)} ${m} ${g}`},"&-active":{background:new rn(H).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:V,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(V).mul(2)).equal(),height:R,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(R).div(2).equal(),color:E,lineHeight:ae(R),borderRadius:N,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:D}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:H}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},KIe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ae(r)} ${u} ${d}`,"&-extra":{padding:`0 ${ae(i)}`,lineHeight:ae(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ae(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ae(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ae(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},YIe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},XIe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,l=o*2,u=Math.min(n-s,n-l),d=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new rn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new rn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},QIe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},D1(e)),XIe(e)),Ek(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),JIe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},VM(e)),UM(e)),WM(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},TE=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(i).div(2).equal(),0),o=e.max(e.calc(t).sub(i).sub(a).equal(),0);return{padding:`${ae(a)} ${ae(r)} ${ae(o)}`}},ZIe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},eRe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:a,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:m,fontSizeLG:p,controlHeightSM:v,paddingInlineSM:h,paddingXS:g,marginXS:w,colorTextDescription:b,lineWidthBold:y,colorPrimary:x,motionDurationSlow:C,zIndexPopup:S,paddingXXS:k,sizePopupArrow:_,colorBgElevated:$,borderRadiusLG:E,boxShadowSecondary:T,borderRadiusSM:M,colorSplit:j,cellHoverBg:I,presetsWidth:N,presetsMaxWidth:O,boxShadowPopoverArrow:D,fontHeight:F,fontHeightLG:z,lineHeightLG:R}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},mn(e)),TE(e,r,F,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},qM(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},TE(e,m,z,i)),{[`${t}-input > input`]:{fontSize:p,lineHeight:R}}),"&-small":Object.assign({},TE(e,v,F,h)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:d,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:y,background:x,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ae(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:h}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},mn(e)),GIe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, + &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, + &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:fk},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:uk},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:mk},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:dk},[`${t}-panel > ${t}-time-panel`]:{paddingTop:k},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},NJ(e,$,D)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:E,boxShadow:T,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:N,maxWidth:O,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${ae(a)} ${o} ${j}`,li:Object.assign(Object.assign({},Ha),{borderRadius:M,paddingInline:g,paddingBlock:e.calc(v).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:w},"&:hover":{background:I}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${ae(e.calc(_).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Ll(e,"slide-up"),Ll(e,"slide-down"),Np(e,"move-up"),Np(e,"move-down")]},cee=sn("DatePicker",e=>{const t=Kt(N1(e),YIe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[KIe(t),eRe(t),JIe(t),ZIe(t),UIe(t),Af(e,{focusElCls:`${e.componentCls}-focused`})]},QIe);var tRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},nRe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:tRe}))},YM=c.forwardRef(nRe);const Vk=c.createContext(null);var rRe=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,u=l===void 0?"center":l,d=c.useState(),f=ie(d,2),m=f[0],p=f[1],v=c.useRef(),h=L.useCallback(function(w){return typeof s=="function"?s(w):typeof s=="number"?s:w},[s]);function g(){tn.cancel(v.current)}return c.useEffect(function(){var w={};if(n)if(r){w.width=h(n.width);var b=i?"right":"left";u==="start"&&(w[b]=n[b]),u==="center"&&(w[b]=n[b]+n.width/2,w.transform=i?"translateX(50%)":"translateX(-50%)"),u==="end"&&(w[b]=n[b]+n.width,w.transform="translateX(-100%)")}else w.height=h(n.height),u==="start"&&(w.top=n.top),u==="center"&&(w.top=n.top+n.height/2,w.transform="translateY(-50%)"),u==="end"&&(w.top=n.top+n.height,w.transform="translateY(-100%)");return g(),v.current=tn(function(){p(w)}),g},[n,r,i,u,h]),{style:m}},t9={width:0,height:0,left:0,top:0};function iRe(e,t,n){return c.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||t9,o=a.left+a.width,s=0;sI?(M=E,S.current="x"):(M=T,S.current="y"),t(-M,-M)&&$.preventDefault()}var _=c.useRef(null);_.current={onTouchStart:y,onTouchMove:x,onTouchEnd:C,onWheel:k},c.useEffect(function(){function $(j){_.current.onTouchStart(j)}function E(j){_.current.onTouchMove(j)}function T(j){_.current.onTouchEnd(j)}function M(j){_.current.onWheel(j)}return document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",T,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",E),document.removeEventListener("touchend",T)}},[])}function uee(e){var t=c.useState(0),n=ie(t,2),r=n[0],i=n[1],a=c.useRef(0),o=c.useRef();return o.current=e,Jd(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function sRe(e){var t=c.useRef([]),n=c.useState({}),r=ie(n,2),i=r[1],a=c.useRef(typeof e=="function"?e():e),o=uee(function(){var l=a.current;t.current.forEach(function(u){l=u(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var a9={width:0,height:0,left:0,top:0,right:0};function lRe(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,u=o.rtl,d,f,m;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),c.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,v=p,h=0;hMath.floor(m+t)){v=h-1;break}}for(var w=0,b=p-1;b>=0;b-=1){var y=e.get(s[b].key)||a9;if(y[f]=v?[0,0]:[w,v]},[e,t,r,i,a,m,l,s.map(function(p){return p.key}).join("_"),u])}function o9(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var cRe="TABS_DQ";function dee(e){return String(e).replace(/"/g,cRe)}function XM(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var fee=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),s9=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return mt(i)==="object"&&!c.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?c.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),uRe=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,p=e.rtl,v=e.removeAriaLabel,h=e.onTabClick,g=e.getPopupContainer,w=e.popupClassName,b=c.useState(!1),y=ie(b,2),x=y[0],C=y[1],S=c.useState(null),k=ie(S,2),_=k[0],$=k[1],E=l.icon,T=E===void 0?"More":E,M="".concat(r,"-more-popup"),j="".concat(n,"-dropdown"),I=_!==null?"".concat(M,"-").concat(_):null,N=a==null?void 0:a.dropdownAriaLabel;function O(B,W){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:W,event:B})}var D=c.createElement(Cv,{onClick:function(W){var q=W.key,Q=W.domEvent;h(q,Q),C(!1)},prefixCls:"".concat(j,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[_],"aria-label":N!==void 0?N:"expanded dropdown"},i.map(function(B){var W=B.closable,q=B.disabled,Q=B.closeIcon,G=B.key,X=B.label,re=XM(W,Q,f,q);return c.createElement(R1,{key:G,id:"".concat(M,"-").concat(G),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(G),disabled:q},c.createElement("span",null,X),re&&c.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(Y){Y.stopPropagation(),O(Y,G)}},Q||f.removeIcon||"×"))}));function F(B){for(var W=i.filter(function(re){return!re.disabled}),q=W.findIndex(function(re){return re.key===_})||0,Q=W.length,G=0;GLe?"left":"right"})}),j=ie(M,2),I=j[0],N=j[1],O=n9(0,function(Ze,Le){!T&&h&&h({direction:Ze>Le?"top":"bottom"})}),D=ie(O,2),F=D[0],z=D[1],R=c.useState([0,0]),H=ie(R,2),V=H[0],B=H[1],W=c.useState([0,0]),q=ie(W,2),Q=q[0],G=q[1],X=c.useState([0,0]),re=ie(X,2),K=re[0],Y=re[1],Z=c.useState([0,0]),J=ie(Z,2),ee=J[0],te=J[1],le=sRe(new Map),oe=ie(le,2),de=oe[0],pe=oe[1],we=iRe(y,de,Q[0]),fe=ay(V,T),ge=ay(Q,T),ue=ay(K,T),ce=ay(ee,T),$e=Math.floor(fe)_e?_e:Ze}var Pe=c.useRef(null),De=c.useState(),xe=ie(De,2),ye=xe[0],Te=xe[1];function Ie(){Te(Date.now())}function ke(){Pe.current&&clearTimeout(Pe.current)}oRe(k,function(Ze,Le){function ot(ht,Et){ht(function(Rt){var Ct=Se(Rt+Et);return Ct})}return $e?(T?ot(N,Ze):ot(z,Le),ke(),Ie(),!0):!1}),c.useEffect(function(){return ke(),ye&&(Pe.current=setTimeout(function(){Te(0)},100)),ke},[ye]);var je=lRe(we,se,T?I:F,ge,ue,ce,A(A({},e),{},{tabs:y})),He=ie(je,2),Be=He[0],ct=He[1],Ve=Vt(function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,Le=we.get(Ze)||{width:0,height:0,left:0,right:0,top:0};if(T){var ot=I;s?Le.rightI+se&&(ot=Le.right+Le.width-se):Le.left<-I?ot=-Le.left:Le.left+Le.width>-I+se&&(ot=-(Le.left+Le.width-se)),z(0),N(Se(ot))}else{var ht=F;Le.top<-F?ht=-Le.top:Le.top+Le.height>-F+se&&(ht=-(Le.top+Le.height-se)),N(0),z(Se(ht))}}),Ye=c.useState(),Ne=ie(Ye,2),Ae=Ne[0],et=Ne[1],nt=c.useState(!1),rt=ie(nt,2),it=rt[0],be=rt[1],Oe=y.filter(function(Ze){return!Ze.disabled}).map(function(Ze){return Ze.key}),Ce=function(Le){var ot=Oe.indexOf(Ae||o),ht=Oe.length,Et=(ot+Le+ht)%ht,Rt=Oe[Et];et(Rt)},Re=function(Le){var ot=Le.code,ht=s&&T,Et=Oe[0],Rt=Oe[Oe.length-1];switch(ot){case"ArrowLeft":{T&&Ce(ht?1:-1);break}case"ArrowRight":{T&&Ce(ht?-1:1);break}case"ArrowUp":{Le.preventDefault(),T||Ce(-1);break}case"ArrowDown":{Le.preventDefault(),T||Ce(1);break}case"Home":{Le.preventDefault(),et(Et);break}case"End":{Le.preventDefault(),et(Rt);break}case"Enter":case"Space":{Le.preventDefault(),v(Ae,Le);break}case"Backspace":case"Delete":{var Ct=Oe.indexOf(Ae),at=y.find(function(At){return At.key===Ae}),kt=XM(at==null?void 0:at.closable,at==null?void 0:at.closeIcon,u,at==null?void 0:at.disabled);kt&&(Le.preventDefault(),Le.stopPropagation(),u.onEdit("remove",{key:Ae,event:Le}),Ct===Oe.length-1?Ce(-1):Ce(1));break}}},Ke={};T?Ke[s?"marginRight":"marginLeft"]=m:Ke.marginTop=m;var Xe=y.map(function(Ze,Le){var ot=Ze.key;return c.createElement(fRe,{id:i,prefixCls:b,key:ot,tab:Ze,style:Le===0?void 0:Ke,closable:Ze.closable,editable:u,active:ot===o,focus:ot===Ae,renderWrapper:p,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:Oe.length,currentPosition:Le+1,onClick:function(Et){v(ot,Et)},onKeyDown:Re,onFocus:function(){it||et(ot),Ve(ot),Ie(),k.current&&(s||(k.current.scrollLeft=0),k.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(){be(!0)},onMouseUp:function(){be(!1)}})}),lt=function(){return pe(function(){var Le,ot=new Map,ht=(Le=_.current)===null||Le===void 0?void 0:Le.getBoundingClientRect();return y.forEach(function(Et){var Rt,Ct=Et.key,at=(Rt=_.current)===null||Rt===void 0?void 0:Rt.querySelector('[data-node-key="'.concat(dee(Ct),'"]'));if(at){var kt=mRe(at,ht),At=ie(kt,4),Dt=At[0],en=At[1],vn=At[2],bn=At[3];ot.set(Ct,{width:Dt,height:en,left:vn,top:bn})}}),ot})};c.useEffect(function(){lt()},[y.map(function(Ze){return Ze.key}).join("_")]);var tt=uee(function(){var Ze=pm(x),Le=pm(C),ot=pm(S);B([Ze[0]-Le[0]-ot[0],Ze[1]-Le[1]-ot[1]]);var ht=pm(E);Y(ht);var Et=pm($);te(Et);var Rt=pm(_);G([Rt[0]-ht[0],Rt[1]-ht[1]]),lt()}),Qe=y.slice(0,Be),Ge=y.slice(ct+1),st=[].concat(Fe(Qe),Fe(Ge)),pt=we.get(o),yt=rRe({activeTabOffset:pt,horizontal:T,indicator:g,rtl:s}),zt=yt.style;c.useEffect(function(){Ve()},[o,he,_e,o9(pt),o9(we),T]),c.useEffect(function(){tt()},[s]);var $t=!!st.length,ze="".concat(b,"-nav-wrap"),me,Me,We,wt;return T?s?(Me=I>0,me=I!==_e):(me=I<0,Me=I!==he):(We=F<0,wt=F!==he),c.createElement(Ci,{onResize:tt},c.createElement("div",{ref:Yl(t,x),role:"tablist","aria-orientation":T?"horizontal":"vertical",className:ne("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Ie()}},c.createElement(s9,{ref:C,position:"left",extra:l,prefixCls:b}),c.createElement(Ci,{onResize:tt},c.createElement("div",{className:ne(ze,U(U(U(U({},"".concat(ze,"-ping-left"),me),"".concat(ze,"-ping-right"),Me),"".concat(ze,"-ping-top"),We),"".concat(ze,"-ping-bottom"),wt)),ref:k},c.createElement(Ci,{onResize:tt},c.createElement("div",{ref:_,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(I,"px, ").concat(F,"px)"),transition:ye?"none":void 0}},Xe,c.createElement(fee,{ref:E,prefixCls:b,locale:d,editable:u,style:A(A({},Xe.length===0?void 0:Ke),{},{visibility:$t?"hidden":null})}),c.createElement("div",{className:ne("".concat(b,"-ink-bar"),U({},"".concat(b,"-ink-bar-animated"),a.inkBar)),style:zt}))))),c.createElement(dRe,Ee({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:b,tabs:st,className:!$t&&ve,tabMoving:!!ye})),c.createElement(s9,{ref:S,position:"right",extra:l,prefixCls:b})))}),mee=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:ne(n,o&&"".concat(n,"-active"),r),ref:t},l)}),pRe=["renderTabBar"],vRe=["label","key"],hRe=function(t){var n=t.renderTabBar,r=ut(t,pRe),i=c.useContext(Vk),a=i.tabs;if(n){var o=A(A({},r),{},{panes:a.map(function(s){var l=s.label,u=s.key,d=ut(s,vRe);return c.createElement(mee,Ee({tab:l,key:u,tabKey:u},d))})});return n(o,l9)}return c.createElement(l9,r)},gRe=["key","forceRender","style","className","destroyInactiveTabPane"],bRe=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=c.useContext(Vk),l=s.prefixCls,u=s.tabs,d=i.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:ne("".concat(l,"-content-holder"))},c.createElement("div",{className:ne("".concat(l,"-content"),"".concat(l,"-content-").concat(a),U({},"".concat(l,"-content-animated"),d))},u.map(function(m){var p=m.key,v=m.forceRender,h=m.style,g=m.className,w=m.destroyInactiveTabPane,b=ut(m,gRe),y=p===r;return c.createElement(ti,Ee({key:p,visible:y,forceRender:v,removeOnLeave:!!(o||w),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(x,C){var S=x.style,k=x.className;return c.createElement(mee,Ee({},b,{prefixCls:f,id:n,tabKey:p,animated:d,active:y,style:A(A({},h),S),className:ne(g,k),ref:C}))})})))};function yRe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=A({inkBar:!0},mt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var wRe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],c9=0,xRe=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,p=m===void 0?"top":m,v=e.tabBarGutter,h=e.tabBarStyle,g=e.tabBarExtraContent,w=e.locale,b=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,C=e.onChange,S=e.onTabClick,k=e.onTabScroll,_=e.getPopupContainer,$=e.popupClassName,E=e.indicator,T=ut(e,wRe),M=c.useMemo(function(){return(o||[]).filter(function(ee){return ee&&mt(ee)==="object"&&"key"in ee})},[o]),j=s==="rtl",I=yRe(f),N=c.useState(!1),O=ie(N,2),D=O[0],F=O[1];c.useEffect(function(){F(Sk())},[]);var z=Ut(function(){var ee;return(ee=M[0])===null||ee===void 0?void 0:ee.key},{value:l,defaultValue:u}),R=ie(z,2),H=R[0],V=R[1],B=c.useState(function(){return M.findIndex(function(ee){return ee.key===H})}),W=ie(B,2),q=W[0],Q=W[1];c.useEffect(function(){var ee=M.findIndex(function(le){return le.key===H});if(ee===-1){var te;ee=Math.max(0,Math.min(q,M.length-1)),V((te=M[ee])===null||te===void 0?void 0:te.key)}Q(ee)},[M.map(function(ee){return ee.key}).join("_"),H,q]);var G=Ut(null,{value:n}),X=ie(G,2),re=X[0],K=X[1];c.useEffect(function(){n||(K("rc-tabs-".concat(c9)),c9+=1)},[]);function Y(ee,te){S==null||S(ee,te);var le=ee!==H;V(ee),le&&(C==null||C(ee))}var Z={id:re,activeKey:H,animated:I,tabPosition:p,rtl:j,mobile:D},J=A(A({},Z),{},{editable:d,locale:w,more:b,tabBarGutter:v,onTabClick:Y,onTabScroll:k,extra:g,style:h,panes:null,getPopupContainer:_,popupClassName:$,indicator:E});return c.createElement(Vk.Provider,{value:{tabs:M,prefixCls:i}},c.createElement("div",Ee({ref:t,id:n,className:ne(i,"".concat(i,"-").concat(p),U(U(U({},"".concat(i,"-mobile"),D),"".concat(i,"-editable"),d),"".concat(i,"-rtl"),j),a)},T),c.createElement(hRe,Ee({},J,{renderTabBar:x})),c.createElement(bRe,Ee({destroyInactiveTabPane:y},Z,{animated:I}))))});const SRe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function CRe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},SRe),{motionName:Mi(e,"switch")})),n}var kRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function $Re(e,t){if(e)return e;const n=Wr(t).map(r=>{if(c.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=kRe(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return _Re(n)}const ERe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Ll(e,"slide-up"),Ll(e,"slide-down")]]},PRe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ae(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},Ys(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ae(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ae(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadiusLG)} 0 0 ${ae(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},TRe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},mn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ae(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ha),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ae(e.paddingXXS)} ${ae(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ORe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ae(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},IRe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadius)} ${ae(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ae(e.borderRadius)} ${ae(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadius)} ${ae(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadius)} 0 0 ${ae(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},RRe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Va(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn`]:Object.assign({},Ys(e)),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},MRe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ae(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ae(e.marginXS)},marginLeft:{_skip_check_:!0,value:ae(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},NRe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:ae(e.paddingXS),background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},Va(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),RRe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Va(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},DRe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},jRe=sn("Tabs",e=>{const t=Kt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ae(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ae(e.horizontalItemGutter)}`});return[IRe(t),MRe(t),ORe(t),TRe(t),PRe(t),NRe(t),ERe(t)]},DRe),FRe=()=>null;var ARe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,a,o,s,l,u,d,f;const{type:m,className:p,rootClassName:v,size:h,onEdit:g,hideAdd:w,centered:b,addIcon:y,removeIcon:x,moreIcon:C,more:S,popupClassName:k,children:_,items:$,animated:E,style:T,indicatorSize:M,indicator:j}=e,I=ARe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:N}=I,{direction:O,tabs:D,getPrefixCls:F,getPopupContainer:z}=c.useContext(xt),R=F("tabs",N),H=Ln(R),[V,B,W]=jRe(R,H);let q;m==="editable-card"&&(q={onEdit:(Z,J)=>{let{key:ee,event:te}=J;g==null||g(Z==="add"?te:ee,Z)},removeIcon:(t=x??(D==null?void 0:D.removeIcon))!==null&&t!==void 0?t:c.createElement(vs,null),addIcon:(y??(D==null?void 0:D.addIcon))||c.createElement(YM,null),showAdd:w!==!0});const Q=F(),G=Br(h),X=$Re($,_),re=CRe(R,E),K=Object.assign(Object.assign({},D==null?void 0:D.style),T),Y={align:(n=j==null?void 0:j.align)!==null&&n!==void 0?n:(r=D==null?void 0:D.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=j==null?void 0:j.size)!==null&&i!==void 0?i:M)!==null&&a!==void 0?a:(o=D==null?void 0:D.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:D==null?void 0:D.indicatorSize};return V(c.createElement(xRe,Object.assign({direction:O,getPopupContainer:z},I,{items:X,className:ne({[`${R}-${G}`]:G,[`${R}-card`]:["card","editable-card"].includes(m),[`${R}-editable-card`]:m==="editable-card",[`${R}-centered`]:b},D==null?void 0:D.className,p,v,B,W,H),popupClassName:ne(k,B,W,H),style:K,editable:q,more:Object.assign({icon:(f=(d=(u=(l=D==null?void 0:D.more)===null||l===void 0?void 0:l.icon)!==null&&u!==void 0?u:D==null?void 0:D.moreIcon)!==null&&d!==void 0?d:C)!==null&&f!==void 0?f:c.createElement(Nk,null),transitionName:`${Q}-slide-up`},S),prefixCls:R,animated:re,indicator:Y})))};QM.TabPane=FRe;var LRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=LRe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=c.useContext(xt),o=a("card",t),s=ne(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return c.createElement("div",Object.assign({},i,{className:s}))},BRe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ae(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},Ks()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ha),{[` + > ${n}-typography, + > ${n}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},zRe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${ae(i)} 0 0 0 ${n}, + 0 ${ae(i)} 0 0 ${n}, + ${ae(i)} ${ae(i)} 0 0 ${n}, + ${ae(i)} 0 0 0 ${n} inset, + 0 ${ae(i)} 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},HRe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},Ks()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ae(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:ae(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${a}`}}})},VRe=e=>Object.assign(Object.assign({margin:`${ae(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ks()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ha),"&-description":{color:e.colorTextDescription}}),WRe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${ae(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ae(e.padding)} ${ae(i)}`}}},URe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},qRe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:BRe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},Ks()),[`${t}-grid`]:zRe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:HRe(e),[`${t}-meta`]:VRe(e)}),[`${t}-bordered`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:WRe(e),[`${t}-loading`]:URe(e),[`${t}-rtl`]:{direction:"rtl"}}},GRe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${ae(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},KRe=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},YRe=sn("Card",e=>{const t=Kt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[qRe(t),GRe(t)]},KRe);var u9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},n.map((i,a)=>{const o=`action-${a}`;return c.createElement("li",{style:{width:`${100/n.length}%`},key:o},c.createElement("span",null,i))}))},QRe=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:l={},title:u,loading:d,bordered:f=!0,size:m,type:p,cover:v,actions:h,tabList:g,children:w,activeTabKey:b,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:C,tabProps:S={},classNames:k,styles:_}=e,$=u9(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:E,direction:T,card:M}=c.useContext(xt),j=de=>{var pe;(pe=e.onTabChange)===null||pe===void 0||pe.call(e,de)},I=de=>{var pe;return ne((pe=M==null?void 0:M.classNames)===null||pe===void 0?void 0:pe[de],k==null?void 0:k[de])},N=de=>{var pe;return Object.assign(Object.assign({},(pe=M==null?void 0:M.styles)===null||pe===void 0?void 0:pe[de]),_==null?void 0:_[de])},O=c.useMemo(()=>{let de=!1;return c.Children.forEach(w,pe=>{(pe==null?void 0:pe.type)===pee&&(de=!0)}),de},[w]),D=E("card",n),[F,z,R]=YRe(D),H=c.createElement(rd,{loading:!0,active:!0,paragraph:{rows:4},title:!1},w),V=b!==void 0,B=Object.assign(Object.assign({},S),{[V?"activeKey":"defaultActiveKey"]:V?b:y,tabBarExtraContent:x});let W;const q=Br(m),Q=!q||q==="default"?"large":q,G=g?c.createElement(QM,Object.assign({size:Q},B,{className:`${D}-head-tabs`,onChange:j,items:g.map(de=>{var{tab:pe}=de,we=u9(de,["tab"]);return Object.assign({label:pe},we)})})):null;if(u||o||G){const de=ne(`${D}-head`,I("header")),pe=ne(`${D}-head-title`,I("title")),we=ne(`${D}-extra`,I("extra")),fe=Object.assign(Object.assign({},s),N("header"));W=c.createElement("div",{className:de,style:fe},c.createElement("div",{className:`${D}-head-wrapper`},u&&c.createElement("div",{className:pe,style:N("title")},u),o&&c.createElement("div",{className:we,style:N("extra")},o)),G)}const X=ne(`${D}-cover`,I("cover")),re=v?c.createElement("div",{className:X,style:N("cover")},v):null,K=ne(`${D}-body`,I("body")),Y=Object.assign(Object.assign({},l),N("body")),Z=c.createElement("div",{className:K,style:Y},d?H:w),J=ne(`${D}-actions`,I("actions")),ee=h!=null&&h.length?c.createElement(XRe,{actionClasses:J,actionStyle:N("actions"),actions:h}):null,te=_n($,["onTabChange"]),le=ne(D,M==null?void 0:M.className,{[`${D}-loading`]:d,[`${D}-bordered`]:f,[`${D}-hoverable`]:C,[`${D}-contain-grid`]:O,[`${D}-contain-tabs`]:g==null?void 0:g.length,[`${D}-${q}`]:q,[`${D}-type-${p}`]:!!p,[`${D}-rtl`]:T==="rtl"},r,i,z,R),oe=Object.assign(Object.assign({},M==null?void 0:M.style),a);return F(c.createElement("div",Object.assign({ref:t},te,{className:le,style:oe}),W,re,Z,ee))});var JRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=JRe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(xt),l=s("card",t),u=ne(`${l}-meta`,n),d=r?c.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?c.createElement("div",{className:`${l}-meta-title`},i):null,m=a?c.createElement("div",{className:`${l}-meta-description`},a):null,p=f||m?c.createElement("div",{className:`${l}-meta-detail`},f,m):null;return c.createElement("div",Object.assign({},o,{className:u}),d,p)},JM=QRe;JM.Grid=pee;JM.Meta=ZRe;function eMe(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,u=l===void 0?void 0:l,d,f=!1,m=0;function p(){d&&clearTimeout(d)}function v(g){var w=g||{},b=w.upcomingOnly,y=b===void 0?!1:b;p(),f=!y}function h(){for(var g=arguments.length,w=new Array(g),b=0;be?s?(m=Date.now(),a||(d=setTimeout(u?S:C,e))):C():a!==!0&&(d=setTimeout(u?S:C,u===void 0?e-x:e))}return h.cancel=v,h}function tMe(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return eMe(e,t,{debounceMode:a!==!1})}var Ev=c.createContext({}),op="__rc_cascader_search_mark__",nMe=function(t,n,r){var i=r.label,a=i===void 0?"":i;return n.some(function(o){return String(o[a]).toLowerCase().includes(t.toLowerCase())})},rMe=function(t,n,r,i){return n.map(function(a){return a[i.label]}).join(" / ")},iMe=function(t,n,r,i,a,o){var s=a.filter,l=s===void 0?nMe:s,u=a.render,d=u===void 0?rMe:u,f=a.limit,m=f===void 0?50:f,p=a.sort;return c.useMemo(function(){var v=[];if(!t)return[];function h(g,w){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;g.forEach(function(y){if(!(!p&&m!==!1&&m>0&&v.length>=m)){var x=[].concat(Fe(w),[y]),C=y[r.children],S=b||y.disabled;if((!C||C.length===0||o)&&l(t,x,{label:r.label})){var k;v.push(A(A({},y),{},(k={disabled:S},U(k,r.label,d(t,x,i,r)),U(k,op,x),U(k,r.children,void 0),k)))}C&&h(y[r.children],x,S)}})}return h(n,[]),p&&v.sort(function(g,w){return p(g[op],w[op],t,r)}),m!==!1&&m>0?v.slice(0,m):v},[t,n,r,i,d,o,l,p,m])},ZM="__RC_CASCADER_SPLIT__",vee="SHOW_PARENT",hee="SHOW_CHILD";function Hs(e){return e.join(ZM)}function Fp(e){return e.map(Hs)}function aMe(e){return e.split(ZM)}function gee(e){var t=e||{},n=t.label,r=t.value,i=t.children,a=r||"value";return{label:n||"label",value:a,key:a,children:i||"children"}}function Xh(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function oMe(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function bee(e,t){return e.map(function(n){var r;return(r=n[op])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function sMe(e){return Array.isArray(e)&&Array.isArray(e[0])}function dS(e){return e?sMe(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function yee(e,t,n){var r=new Set(e),i=t();return e.filter(function(a){var o=i[a],s=o?o.parent:null,l=o?o.children:null;return o&&o.node.disabled?!0:n===hee?!(l&&l.some(function(u){return u.key&&r.has(u.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function Ap(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,a=[],o=function(){var u,d,f,m=e[s],p=(u=i)===null||u===void 0?void 0:u.findIndex(function(h){var g=h[n.value];return r?String(g)===String(m):g===m}),v=p!==-1?(d=i)===null||d===void 0?void 0:d[p]:null;a.push({value:(f=v==null?void 0:v[n.value])!==null&&f!==void 0?f:m,index:p,option:v}),i=v==null?void 0:v[n.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,p){for(var v=xee(f?f.pos:"0",p),h=F1(m[a],v),g,w=0;w1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,u=a||l,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),dMe(e,function(p){var v=p.node,h=p.index,g=p.pos,w=p.key,b=p.parentPos,y=p.level,x=p.nodes,C={node:v,nodes:x,index:h,key:w,pos:g,level:y},S=F1(w,g);d[g]=C,f[S]=C,C.parent=d[b],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,m)},{externalGetKey:u,childrenPropName:o,fieldNames:s}),i&&i(m),m}function Sg(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Ma(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&u===0,dragOverGapTop:l===e&&u===-1,dragOverGapBottom:l===e&&u===1};return m}function li(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,p=e.eventKey,v=A(A({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:p});return"props"in v||Object.defineProperty(v,"props",{get:function(){return An(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}const fMe=function(e,t){var n=c.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=c.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=A1(e,{fieldNames:t,initWrapper:function(a){return A(A({},a),{},{pathKeyEntities:{}})},processEntity:function(a,o){var s=a.nodes.map(function(l){return l[t.value]}).join(ZM);o.pathKeyEntities[s]=a,a.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function Cee(e,t){var n=c.useMemo(function(){return t||[]},[t]),r=fMe(n,e),i=c.useCallback(function(a){var o=r();return a.map(function(s){var l=o[s].nodes;return l.map(function(u){return u[e.value]})})},[r,e]);return[n,r,i]}function mMe(e){return c.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&mt(e)==="object"&&(t=A(A({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function kee(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function pMe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function vMe(e,t,n,r){for(var i=new Set(e),a=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var m=f.key,p=f.node,v=f.children,h=v===void 0?[]:v;i.has(m)&&!r(p)&&h.filter(function(g){return!r(g.node)}).forEach(function(g){i.add(g.key)})})}for(var l=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,p=f.node;if(!(r(p)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(m.key);return}var v=!0,h=!1;(m.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var w=g.key,b=i.has(w);v&&!b&&(v=!1),!h&&(b||a.has(w))&&(h=!0)}),v&&i.add(m.key),h&&a.add(m.key),l.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(kee(a,i))}}function hMe(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(m){var p=m.key,v=m.node,h=m.children,g=h===void 0?[]:h;!a.has(p)&&!o.has(p)&&!i(v)&&g.filter(function(w){return!i(w.node)}).forEach(function(w){a.delete(w.key)})})}o=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var p=m.parent,v=m.node;if(!(i(v)||!m.parent||u.has(m.parent.key))){if(i(m.parent.node)){u.add(p.key);return}var h=!0,g=!1;(p.children||[]).filter(function(w){return!i(w.node)}).forEach(function(w){var b=w.key,y=a.has(b);h&&!y&&(h=!1),!g&&(y||o.has(b))&&(g=!0)}),h||a.delete(p.key),g&&o.add(p.key),u.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(kee(o,a))}}function Zo(e,t,n,r){var i=[],a;r?a=r:a=pMe;var o=new Set(e.filter(function(d){var f=!!Ma(n,d);return f||i.push(d),f})),s=new Map,l=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,p=s.get(m);p||(p=new Set,s.set(m,p)),p.add(f),l=Math.max(l,m)}),An(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=vMe(o,s,l,a):u=hMe(o,t.halfCheckedKeys,s,l,a),u}function _ee(e,t,n,r,i,a,o,s){return function(l){if(!e)t(l);else{var u=Hs(l),d=Fp(n),f=Fp(r),m=d.includes(u),p=i.some(function(S){return Hs(S)===u}),v=n,h=i;if(p&&!m)h=i.filter(function(S){return Hs(S)!==u});else{var g=m?d.filter(function(S){return S!==u}):[].concat(Fe(d),[u]),w=a(),b;if(m){var y=Zo(g,{checked:!1,halfCheckedKeys:f},w);b=y.checkedKeys}else{var x=Zo(g,!0,w);b=x.checkedKeys}var C=yee(b,a,s);v=o(C)}t([].concat(Fe(h),Fe(v)))}}}function $ee(e,t,n,r,i){return c.useMemo(function(){var a=i(t),o=ie(a,2),s=o[0],l=o[1];if(!e||!t.length)return[s,[],l];var u=Fp(s),d=n(),f=Zo(u,!0,d),m=f.checkedKeys,p=f.halfCheckedKeys;return[r(m),r(p),l]},[e,t,n,r,i])}var gMe=c.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function bMe(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,a=e.disabled,o=e.onClick,s=e.disableCheckbox,l=c.useContext(Ev),u=l.checkable,d=typeof u!="boolean"?u:null;return c.createElement("span",{className:ne("".concat(n),(t={},U(t,"".concat(n,"-checked"),r),U(t,"".concat(n,"-indeterminate"),!r&&i),U(t,"".concat(n,"-disabled"),a||s),t)),onClick:o},d)}var Eee="__cascader_fix_label__";function yMe(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,a=e.prevValuePath,o=e.onToggleOpen,s=e.onSelect,l=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,m=e.isSelectable,p=e.disabled,v="".concat(t,"-menu"),h="".concat(t,"-menu-item"),g=c.useContext(Ev),w=g.fieldNames,b=g.changeOnSelect,y=g.expandTrigger,x=g.expandIcon,C=g.loadingIcon,S=g.dropdownMenuColumnStyle,k=g.optionRender,_=y==="hover",$=function(M){return p||M},E=c.useMemo(function(){return r.map(function(T){var M,j=T.disabled,I=T.disableCheckbox,N=T[op],O=(M=T[Eee])!==null&&M!==void 0?M:T[w.label],D=T[w.value],F=Xh(T,w),z=N?N.map(function(W){return W[w.value]}):[].concat(Fe(a),[D]),R=Hs(z),H=f.includes(R),V=u.has(R),B=d.has(R);return{disabled:j,label:O,value:D,isLeaf:F,isLoading:H,checked:V,halfChecked:B,option:T,disableCheckbox:I,fullPath:z,fullPathKey:R}})},[r,u,w,d,f,a]);return c.createElement("ul",{className:v,role:"menu"},E.map(function(T){var M,j=T.disabled,I=T.label,N=T.value,O=T.isLeaf,D=T.isLoading,F=T.checked,z=T.halfChecked,R=T.option,H=T.fullPath,V=T.fullPathKey,B=T.disableCheckbox,W=function(){if(!$(j)){var X=Fe(H);_&&O&&X.pop(),l(X)}},q=function(){m(R)&&!$(j)&&s(H,O)},Q;return typeof R.title=="string"?Q=R.title:typeof I=="string"&&(Q=I),c.createElement("li",{key:V,className:ne(h,(M={},U(M,"".concat(h,"-expand"),!O),U(M,"".concat(h,"-active"),i===N||i===V),U(M,"".concat(h,"-disabled"),$(j)),U(M,"".concat(h,"-loading"),D),M)),style:S,role:"menuitemcheckbox",title:Q,"aria-checked":F,"data-path-key":V,onClick:function(){W(),!B&&(!n||O)&&q()},onDoubleClick:function(){b&&o(!1)},onMouseEnter:function(){_&&W()},onMouseDown:function(X){X.preventDefault()}},n&&c.createElement(bMe,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:z,disabled:$(j)||B,disableCheckbox:B,onClick:function(X){B||(X.stopPropagation(),q())}}),c.createElement("div",{className:"".concat(h,"-content")},k?k(R):I),!D&&x&&!O&&c.createElement("div",{className:"".concat(h,"-expand-icon")},x),D&&C&&c.createElement("div",{className:"".concat(h,"-loading-icon")},C))}))}var wMe=function(t,n){var r=c.useContext(Ev),i=r.values,a=i[0],o=c.useState([]),s=ie(o,2),l=s[0],u=s[1];return c.useEffect(function(){t||u(a||[])},[n,a]),[l,u]};const xMe=function(e,t,n,r,i,a,o){var s=o.direction,l=o.searchValue,u=o.toggleOpen,d=o.open,f=s==="rtl",m=c.useMemo(function(){for(var S=-1,k=t,_=[],$=[],E=r.length,T=bee(t,n),M=function(D){var F=k.findIndex(function(z,R){return(T[R]?Hs(T[R]):z[n.value])===r[D]});if(F===-1)return 1;S=F,_.push(S),$.push(r[D]),k=k[S][n.children]},j=0;j1){var k=v.slice(0,-1);b(k)}else u(!1)},C=function(){var k,_=((k=g[h])===null||k===void 0?void 0:k[n.children])||[],$=_.find(function(T){return!T.disabled});if($){var E=[].concat(Fe(v),[$[n.value]]);b(E)}};c.useImperativeHandle(e,function(){return{onKeyDown:function(k){var _=k.which;switch(_){case qe.UP:case qe.DOWN:{var $=0;_===qe.UP?$=-1:_===qe.DOWN&&($=1),$!==0&&y($);break}case qe.LEFT:{if(l)break;f?C():x();break}case qe.RIGHT:{if(l)break;f?x():C();break}case qe.BACKSPACE:{l||x();break}case qe.ENTER:{if(v.length){var E=g[h],T=(E==null?void 0:E[op])||[];T.length?a(T.map(function(M){return M[n.value]}),T[T.length-1]):a(v,g[h])}break}case qe.ESC:u(!1),d&&k.stopPropagation()}},onKeyUp:function(){}}})};var Pee=c.forwardRef(function(e,t){var n,r,i,a=e.prefixCls,o=e.multiple,s=e.searchValue,l=e.toggleOpen,u=e.notFoundContent,d=e.direction,f=e.open,m=e.disabled,p=c.useRef(null),v=d==="rtl",h=c.useContext(Ev),g=h.options,w=h.values,b=h.halfValues,y=h.fieldNames,x=h.changeOnSelect,C=h.onSelect,S=h.searchOptions,k=h.dropdownPrefixCls,_=h.loadData,$=h.expandTrigger,E=k||a,T=c.useState([]),M=ie(T,2),j=M[0],I=M[1],N=function(ee){if(!(!_||s)){var te=Ap(ee,g,y),le=te.map(function(pe){var we=pe.option;return we}),oe=le[le.length-1];if(oe&&!Xh(oe,y)){var de=Hs(ee);I(function(pe){return[].concat(Fe(pe),[de])}),_(le)}}};c.useEffect(function(){j.length&&j.forEach(function(J){var ee=aMe(J),te=Ap(ee,g,y,!0).map(function(oe){var de=oe.option;return de}),le=te[te.length-1];(!le||le[y.children]||Xh(le,y))&&I(function(oe){return oe.filter(function(de){return de!==J})})})},[g,j,y]);var O=c.useMemo(function(){return new Set(Fp(w))},[w]),D=c.useMemo(function(){return new Set(Fp(b))},[b]),F=wMe(o,f),z=ie(F,2),R=z[0],H=z[1],V=function(ee){H(ee),N(ee)},B=function(ee){if(m)return!1;var te=ee.disabled,le=Xh(ee,y);return!te&&(le||x||o)},W=function(ee,te){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;C(ee),!o&&(te||x&&($==="hover"||le))&&l(!1)},q=c.useMemo(function(){return s?S:g},[s,S,g]),Q=c.useMemo(function(){for(var J=[{options:q}],ee=q,te=bee(ee,y),le=function(){var pe=R[oe],we=ee.find(function(ge,ue){return(te[ue]?Hs(te[ue]):ge[y.value])===pe}),fe=we==null?void 0:we[y.children];if(!(fe!=null&&fe.length))return 1;ee=fe,J.push({options:fe})},oe=0;oe":w,y=n.loadingIcon,x=n.direction,C=n.notFoundContent,S=C===void 0?"Not Found":C,k=n.disabled,_=!!l,$=Ut(u,{value:d,postState:dS}),E=ie($,2),T=E[0],M=E[1],j=c.useMemo(function(){return gee(f)},[JSON.stringify(f)]),I=Cee(j,s),N=ie(I,3),O=N[0],D=N[1],F=N[2],z=wee(O,j),R=$ee(_,T,D,F,z),H=ie(R,3),V=H[0],B=H[1],W=H[2],q=Vt(function(Y){if(M(Y),p){var Z=dS(Y),J=Z.map(function(le){return Ap(le,O,j).map(function(oe){return oe.option})}),ee=_?Z:Z[0],te=_?J:J[0];p(ee,te)}}),Q=_ee(_,q,V,B,W,D,F,v),G=Vt(function(Y){Q(Y)}),X=c.useMemo(function(){return{options:O,fieldNames:j,values:V,halfValues:B,changeOnSelect:m,onSelect:G,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:h,expandTrigger:g,expandIcon:b,loadingIcon:y,dropdownMenuColumnStyle:void 0}},[O,j,V,B,m,G,l,h,g,b,y]),re="".concat(i,"-panel"),K=!O.length;return c.createElement(Ev.Provider,{value:X},c.createElement("div",{className:ne(re,(t={},U(t,"".concat(re,"-rtl"),x==="rtl"),U(t,"".concat(re,"-empty"),K),t),o),style:a},K?S:c.createElement(Pee,{prefixCls:i,searchValue:"",multiple:_,toggleOpen:CMe,open:!0,direction:x,disabled:k})))}var kMe=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],L1=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,a=e.fieldNames,o=e.defaultValue,s=e.value,l=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,m=e.autoClearSearchValue,p=m===void 0?!0:m,v=e.searchValue,h=e.onSearch,g=e.showSearch,w=e.expandTrigger,b=e.options,y=e.dropdownPrefixCls,x=e.loadData,C=e.popupVisible,S=e.open,k=e.popupClassName,_=e.dropdownClassName,$=e.dropdownMenuColumnStyle,E=e.dropdownStyle,T=e.popupPlacement,M=e.placement,j=e.onDropdownVisibleChange,I=e.onPopupVisibleChange,N=e.expandIcon,O=N===void 0?">":N,D=e.loadingIcon,F=e.children,z=e.dropdownMatchSelectWidth,R=z===void 0?!1:z,H=e.showCheckedStrategy,V=H===void 0?vee:H,B=e.optionRender,W=ut(e,kMe),q=bM(n),Q=!!f,G=Ut(o,{value:s,postState:dS}),X=ie(G,2),re=X[0],K=X[1],Y=c.useMemo(function(){return gee(a)},[JSON.stringify(a)]),Z=Cee(Y,b),J=ie(Z,3),ee=J[0],te=J[1],le=J[2],oe=Ut("",{value:v,postState:function(nt){return nt||""}}),de=ie(oe,2),pe=de[0],we=de[1],fe=function(nt,rt){we(nt),rt.source!=="blur"&&h&&h(nt)},ge=mMe(g),ue=ie(ge,2),ce=ue[0],$e=ue[1],se=iMe(pe,ee,Y,y||i,$e,l||Q),ve=wee(ee,Y),he=$ee(Q,re,te,le,ve),_e=ie(he,3),Se=_e[0],Pe=_e[1],De=_e[2],xe=c.useMemo(function(){var et=Fp(Se),nt=yee(et,te,V);return[].concat(Fe(De),Fe(le(nt)))},[Se,te,le,De,V]),ye=lMe(xe,ee,Y,Q,d),Te=Vt(function(et){if(K(et),u){var nt=dS(et),rt=nt.map(function(Oe){return Ap(Oe,ee,Y).map(function(Ce){return Ce.option})}),it=Q?nt:nt[0],be=Q?rt:rt[0];u(it,be)}}),Ie=_ee(Q,Te,Se,Pe,De,te,le,V),ke=Vt(function(et){(!Q||p)&&we(""),Ie(et)}),je=function(nt,rt){if(rt.type==="clear"){Te([]);return}var it=rt.values[0],be=it.valueCells;ke(be)},He=S!==void 0?S:C,Be=_||k,ct=M||T,Ve=function(nt){j==null||j(nt),I==null||I(nt)},Ye=c.useMemo(function(){return{options:ee,fieldNames:Y,values:Se,halfValues:Pe,changeOnSelect:l,onSelect:ke,checkable:f,searchOptions:se,dropdownPrefixCls:y,loadData:x,expandTrigger:w,expandIcon:O,loadingIcon:D,dropdownMenuColumnStyle:$,optionRender:B}},[ee,Y,Se,Pe,l,ke,f,se,y,x,w,O,D,$,B]),Ne=!(pe?se:ee).length,Ae=pe&&$e.matchInputWidth||Ne?{}:{minWidth:"auto"};return c.createElement(Ev.Provider,{value:Ye},c.createElement(vM,Ee({},W,{ref:t,id:q,prefixCls:i,autoClearSearchValue:p,dropdownMatchSelectWidth:R,dropdownStyle:A(A({},Ae),E),displayValues:ye,onDisplayValuesChange:je,mode:Q?"multiple":void 0,searchValue:pe,onSearch:fe,showSearch:ce,OptionList:SMe,emptyOptions:Ne,open:He,dropdownClassName:Be,placement:ct,onDropdownVisibleChange:Ve,getRawInputElement:function(){return F}})))});L1.SHOW_PARENT=vee;L1.SHOW_CHILD=hee;L1.Panel=Tee;function Oee(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=c.useContext(xt),a=t||r,o=n("select",e),s=n("cascader",e);return[o,s,a,i]}function Iee(e,t){return c.useMemo(()=>t?c.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const Ree=(e,t,n)=>{let r=n;n||(r=t?c.createElement(Ku,null):c.createElement(Js,null));const i=c.createElement("span",{className:`${e}-menu-item-loading-icon`},c.createElement(Xs,{spin:!0}));return c.useMemo(()=>[r,i],[r])},_Me=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},mn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},mn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Ys(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + ${n}:not(${n}-disabled), + ${t}:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` + ${n}-checked:not(${n}-disabled), + ${t}-checked:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Wk(e,t){const n=Kt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[_Me(n)]}const Mee=sn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Wk(n,e)]}),Nee=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=` + &${r}-expand ${r}-expand-icon, + ${r}-loading-icon +`;return[Wk(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Ha),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},$Me=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Nee(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Af(e)]},Dee=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},jee=sn("Cascader",e=>[$Me(e)],Dee),EMe=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Nee(e),{display:"inline-flex",border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},PMe=PX(["Cascader","Panel"],e=>EMe(e),Dee);function TMe(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,disabled:l}=e,u=c.useContext(Ur),d=l??u,[f,m,p,v]=Oee(t,o),h=Ln(m),[g,w,b]=jee(m,h);PMe(m);const y=p==="rtl",[x,C]=Ree(f,y,s),S=a||(v==null?void 0:v("Cascader"))||c.createElement(O1,{componentName:"Cascader"}),k=Iee(m,r);return g(c.createElement(Tee,Object.assign({},e,{checkable:k,prefixCls:m,className:ne(n,w,i,b,h),notFoundContent:S,direction:p,expandIcon:x,loadingIcon:C,disabled:d})))}var OMe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);il===0?[s]:[].concat(Fe(o),[t,s]),[]),i=[];let a=0;return r.forEach((o,s)=>{const l=a+o.length;let u=e.slice(a,l);a=l,s%2===1&&(u=c.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},u)),i.push(u)}),i}const NMe=(e,t,n,r)=>{const i=[],a=e.toLowerCase();return t.forEach((o,s)=>{s!==0&&i.push(" / ");let l=o[r.label];const u=typeof l;(u==="string"||u==="number")&&(l=MMe(String(l),a,n)),i.push(l)}),i},Pv=c.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:a,className:o,rootClassName:s,multiple:l,bordered:u=!0,transitionName:d,choiceTransitionName:f="",popupClassName:m,dropdownClassName:p,expandIcon:v,placement:h,showSearch:g,allowClear:w=!0,notFoundContent:b,direction:y,getPopupContainer:x,status:C,showArrow:S,builtinPlacements:k,style:_,variant:$}=e,E=OMe(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),T=_n(E,["suffixIcon"]),{getPopupContainer:M,getPrefixCls:j,popupOverflow:I,cascader:N}=c.useContext(xt),{status:O,hasFeedback:D,isFormItemInput:F,feedbackIcon:z}=c.useContext(ni),R=Vc(O,C),[H,V,B,W]=Oee(r,y),q=B==="rtl",Q=j(),G=Ln(H),[X,re,K]=xM(H,G),Y=Ln(V),[Z]=jee(V,Y),{compactSize:J,compactItemClassnames:ee}=ol(H,y),[te,le]=Wc("cascader",$,u),oe=b||(W==null?void 0:W("Cascader"))||c.createElement(O1,{componentName:"Cascader"}),de=ne(m||p,`${V}-dropdown`,{[`${V}-dropdown-rtl`]:B==="rtl"},s,G,Y,re,K),pe=c.useMemo(()=>{if(!g)return g;let ye={render:NMe};return typeof g=="object"&&(ye=Object.assign(Object.assign({},ye),g)),ye},[g]),we=Br(ye=>{var Te;return(Te=i??J)!==null&&Te!==void 0?Te:ye}),fe=c.useContext(Ur),ge=a??fe,[ue,ce]=Ree(H,q,v),$e=Iee(V,l),se=CM(e.suffixIcon,S),{suffixIcon:ve,removeIcon:he,clearIcon:_e}=$k(Object.assign(Object.assign({},e),{hasFeedback:D,feedbackIcon:z,showSuffixIcon:se,multiple:l,prefixCls:H,componentName:"Cascader"})),Se=c.useMemo(()=>h!==void 0?h:q?"bottomRight":"bottomLeft",[h,q]),Pe=w===!0?{clearIcon:_e}:w,[De]=hs("SelectLike",(n=T.dropdownStyle)===null||n===void 0?void 0:n.zIndex),xe=c.createElement(L1,Object.assign({prefixCls:H,className:ne(!r&&V,{[`${H}-lg`]:we==="large",[`${H}-sm`]:we==="small",[`${H}-rtl`]:q,[`${H}-${te}`]:le,[`${H}-in-form-item`]:F},el(H,R,D),ee,N==null?void 0:N.className,o,s,G,Y,re,K),disabled:ge,style:Object.assign(Object.assign({},N==null?void 0:N.style),_)},T,{builtinPlacements:wM(k,I),direction:B,placement:Se,notFoundContent:oe,allowClear:Pe,showSearch:pe,expandIcon:ue,suffixIcon:ve,removeIcon:he,loadingIcon:ce,checkable:$e,dropdownClassName:de,dropdownPrefixCls:r||V,dropdownStyle:Object.assign(Object.assign({},T.dropdownStyle),{zIndex:De}),choiceTransitionName:Mi(Q,"",f),transitionName:Mi(Q,"slide-up",d),getPopupContainer:x||M,ref:t}));return Z(X(xe))}),DMe=id(Pv,"dropdownAlign",e=>_n(e,["visible"]));Pv.SHOW_PARENT=RMe;Pv.SHOW_CHILD=IMe;Pv.Panel=TMe;Pv._InternalPanelDoNotUseOrYouWillBeFired=DMe;const Fee=L.createContext(null);var jMe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,rootClassName:a,children:o,indeterminate:s=!1,style:l,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,p=jMe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:h,checkbox:g}=c.useContext(xt),w=c.useContext(Fee),{isFormItemInput:b}=c.useContext(ni),y=c.useContext(Ur),x=(n=(w==null?void 0:w.disabled)||m)!==null&&n!==void 0?n:y,C=c.useRef(p.value),S=c.useRef(null),k=ri(t,S);c.useEffect(()=>{w==null||w.registerValue(p.value)},[]),c.useEffect(()=>{if(!f)return p.value!==C.current&&(w==null||w.cancelValue(C.current),w==null||w.registerValue(p.value),C.current=p.value),()=>w==null?void 0:w.cancelValue(p.value)},[p.value]),c.useEffect(()=>{var F;!((F=S.current)===null||F===void 0)&&F.input&&(S.current.input.indeterminate=s)},[s]);const _=v("checkbox",r),$=Ln(_),[E,T,M]=Mee(_,$),j=Object.assign({},p);w&&!f&&(j.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),w.toggleOption&&w.toggleOption({label:o,value:p.value})},j.name=w.name,j.checked=w.value.includes(p.value));const I=ne(`${_}-wrapper`,{[`${_}-rtl`]:h==="rtl",[`${_}-wrapper-checked`]:j.checked,[`${_}-wrapper-disabled`]:x,[`${_}-wrapper-in-form-item`]:b},g==null?void 0:g.className,i,a,M,$,T),N=ne({[`${_}-indeterminate`]:s},sk,T),[O,D]=nee(j.onClick);return E(c.createElement(S1,{component:"Checkbox",disabled:x},c.createElement("label",{className:I,style:Object.assign(Object.assign({},g==null?void 0:g.style),l),onMouseEnter:u,onMouseLeave:d,onClick:O},c.createElement(tee,Object.assign({},j,{onClick:D,prefixCls:_,className:N,disabled:x,ref:k})),o!==void 0&&c.createElement("span",null,o))))},Aee=c.forwardRef(FMe);var AMe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:l,onChange:u}=e,d=AMe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=c.useContext(xt),[p,v]=c.useState(d.value||n||[]),[h,g]=c.useState([]);c.useEffect(()=>{"value"in d&&v(d.value||[])},[d.value]);const w=c.useMemo(()=>i.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),[i]),b=N=>{g(O=>O.filter(D=>D!==N))},y=N=>{g(O=>[].concat(Fe(O),[N]))},x=N=>{const O=p.indexOf(N.value),D=Fe(p);O===-1?D.push(N.value):D.splice(O,1),"value"in d||v(D),u==null||u(D.filter(F=>h.includes(F)).sort((F,z)=>{const R=w.findIndex(V=>V.value===F),H=w.findIndex(V=>V.value===z);return R-H}))},C=f("checkbox",a),S=`${C}-group`,k=Ln(C),[_,$,E]=Mee(C,k),T=_n(d,["value","disabled"]),M=i.length?w.map(N=>c.createElement(Aee,{prefixCls:C,key:N.value.toString(),disabled:"disabled"in N?N.disabled:d.disabled,value:N.value,checked:p.includes(N.value),onChange:N.onChange,className:`${S}-item`,style:N.style,title:N.title,id:N.id,required:N.required},N.label)):r,j={toggleOption:x,value:p,disabled:d.disabled,name:d.name,registerValue:y,cancelValue:b},I=ne(S,{[`${S}-rtl`]:m==="rtl"},o,s,E,k,$);return _(c.createElement("div",Object.assign({className:I,style:l},T,{ref:t}),c.createElement(Fee.Provider,{value:j},M)))}),Bl=Aee;Bl.Group=LMe;Bl.__ANT_CHECKBOX=!0;const Lee=c.createContext({});var BMe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=c.useContext(xt),{gutter:i,wrap:a}=c.useContext(Lee),{prefixCls:o,span:s,order:l,offset:u,push:d,pull:f,className:m,children:p,flex:v,style:h}=e,g=BMe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",o),[b,y,x]=h3e(w),C={};let S={};zMe.forEach($=>{let E={};const T=e[$];typeof T=="number"?E.span=T:typeof T=="object"&&(E=T||{}),delete g[$],S=Object.assign(Object.assign({},S),{[`${w}-${$}-${E.span}`]:E.span!==void 0,[`${w}-${$}-order-${E.order}`]:E.order||E.order===0,[`${w}-${$}-offset-${E.offset}`]:E.offset||E.offset===0,[`${w}-${$}-push-${E.push}`]:E.push||E.push===0,[`${w}-${$}-pull-${E.pull}`]:E.pull||E.pull===0,[`${w}-rtl`]:r==="rtl"}),E.flex&&(S[`${w}-${$}-flex`]=!0,C[`--${w}-${$}-flex`]=d9(E.flex))});const k=ne(w,{[`${w}-${s}`]:s!==void 0,[`${w}-order-${l}`]:l,[`${w}-offset-${u}`]:u,[`${w}-push-${d}`]:d,[`${w}-pull-${f}`]:f},m,S,y,x),_={};if(i&&i[0]>0){const $=i[0]/2;_.paddingLeft=$,_.paddingRight=$}return v&&(_.flex=d9(v),a===!1&&!_.minWidth&&(_.minWidth=0)),b(c.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},_),h),C),className:k,ref:t}),p))});var HMe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{i()},[JSON.stringify(e),t]),n}const od=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:u}=e,d=HMe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=c.useContext(xt),[p,v]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[h,g]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),w=f9(i,h),b=f9(r,h),y=c.useRef(l),x=IJ();c.useEffect(()=>{const D=x.subscribe(F=>{g(F);const z=y.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&v(F)});return()=>x.unsubscribe(D)},[]);const C=()=>{const D=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((z,R)=>{if(typeof z=="object")for(let H=0;H0?E[0]/-2:void 0;j&&(M.marginLeft=j,M.marginRight=j);const[I,N]=E;M.rowGap=N;const O=c.useMemo(()=>({gutter:[I,N],wrap:u}),[I,N,u]);return k(c.createElement(Lee.Provider,{value:O},c.createElement("div",Object.assign({},d,{className:T,style:Object.assign(Object.assign({},M),o),ref:t}),s)))}),VMe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{borderBlockStart:`${ae(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ae(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ae(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ae(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ae(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ae(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${ae(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},WMe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),UMe=sn("Divider",e=>{const t=Kt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[VMe(t)]},WMe,{unitless:{orientationMargin:!0}});var qMe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=c.useContext(xt),{prefixCls:i,type:a="horizontal",orientation:o="center",orientationMargin:s,className:l,rootClassName:u,children:d,dashed:f,variant:m="solid",plain:p,style:v}=e,h=qMe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),g=t("divider",i),[w,b,y]=UMe(g),x=!!d,C=o==="left"&&s!=null,S=o==="right"&&s!=null,k=ne(g,r==null?void 0:r.className,b,y,`${g}-${a}`,{[`${g}-with-text`]:x,[`${g}-with-text-${o}`]:x,[`${g}-dashed`]:!!f,[`${g}-${m}`]:m!=="solid",[`${g}-plain`]:!!p,[`${g}-rtl`]:n==="rtl",[`${g}-no-default-orientation-margin-left`]:C,[`${g}-no-default-orientation-margin-right`]:S},l,u),_=c.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},C&&{marginLeft:_}),S&&{marginRight:_});return w(c.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)},h,{role:"separator"}),d&&a!=="vertical"&&c.createElement("span",{className:`${g}-inner-text`,style:$},d)))};var m9=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},ml=function(t){return t!==void 0?"".concat(t,"px"):void 0};function KMe(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,a=e.motionName,o=e.onMotionStart,s=e.onMotionEnd,l=e.direction,u=e.vertical,d=u===void 0?!1:u,f=c.useRef(null),m=c.useState(r),p=ie(m,2),v=p[0],h=p[1],g=function(N){var O,D=i(N),F=(O=n.current)===null||O===void 0?void 0:O.querySelectorAll(".".concat(t,"-item"))[D];return(F==null?void 0:F.offsetParent)&&F},w=c.useState(null),b=ie(w,2),y=b[0],x=b[1],C=c.useState(null),S=ie(C,2),k=S[0],_=S[1];nn(function(){if(v!==r){var I=g(v),N=g(r),O=m9(I,d),D=m9(N,d);h(r),x(O),_(D),I&&N?o():s()}},[r]);var $=c.useMemo(function(){if(d){var I;return ml((I=y==null?void 0:y.top)!==null&&I!==void 0?I:0)}return ml(l==="rtl"?-(y==null?void 0:y.right):y==null?void 0:y.left)},[d,l,y]),E=c.useMemo(function(){if(d){var I;return ml((I=k==null?void 0:k.top)!==null&&I!==void 0?I:0)}return ml(l==="rtl"?-(k==null?void 0:k.right):k==null?void 0:k.left)},[d,l,k]),T=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},M=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},j=function(){x(null),_(null),s()};return!y||!k?null:c.createElement(ti,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:T,onAppearActive:M,onVisibleChanged:j},function(I,N){var O=I.className,D=I.style,F=A(A({},D),{},{"--thumb-start-left":$,"--thumb-start-width":ml(y==null?void 0:y.width),"--thumb-active-left":E,"--thumb-active-width":ml(k==null?void 0:k.width),"--thumb-start-top":$,"--thumb-start-height":ml(y==null?void 0:y.height),"--thumb-active-top":E,"--thumb-active-height":ml(k==null?void 0:k.height)}),z={ref:ri(f,N),style:F,className:ne("".concat(t,"-thumb"),O)};return c.createElement("div",z)})}var YMe=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function XMe(e){if(typeof e.title<"u")return e.title;if(mt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function QMe(e){return e.map(function(t){if(mt(t)==="object"&&t!==null){var n=XMe(t);return A(A({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var JMe=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,a=t.checked,o=t.label,s=t.title,l=t.value,u=t.name,d=t.onChange,f=t.onFocus,m=t.onBlur,p=t.onKeyDown,v=t.onKeyUp,h=t.onMouseDown,g=function(b){i||d(b,l)};return c.createElement("label",{className:ne(r,U({},"".concat(n,"-item-disabled"),i)),onMouseDown:h},c.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:a,onChange:g,onFocus:f,onBlur:m,onKeyDown:p,onKeyUp:v}),c.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":a},o))},ZMe=c.forwardRef(function(e,t){var n,r,i=e.prefixCls,a=i===void 0?"rc-segmented":i,o=e.direction,s=e.vertical,l=e.options,u=l===void 0?[]:l,d=e.disabled,f=e.defaultValue,m=e.value,p=e.name,v=e.onChange,h=e.className,g=h===void 0?"":h,w=e.motionName,b=w===void 0?"thumb-motion":w,y=ut(e,YMe),x=c.useRef(null),C=c.useMemo(function(){return ri(x,t)},[x,t]),S=c.useMemo(function(){return QMe(u)},[u]),k=Ut((n=S[0])===null||n===void 0?void 0:n.value,{value:m,defaultValue:f}),_=ie(k,2),$=_[0],E=_[1],T=c.useState(!1),M=ie(T,2),j=M[0],I=M[1],N=function(Z,J){E(J),v==null||v(J)},O=_n(y,["children"]),D=c.useState(!1),F=ie(D,2),z=F[0],R=F[1],H=c.useState(!1),V=ie(H,2),B=V[0],W=V[1],q=function(){W(!0)},Q=function(){W(!1)},G=function(){R(!1)},X=function(Z){Z.key==="Tab"&&R(!0)},re=function(Z){var J=S.findIndex(function(oe){return oe.value===$}),ee=S.length,te=(J+Z+ee)%ee,le=S[te];le&&(E(le.value),v==null||v(le.value))},K=function(Z){switch(Z.key){case"ArrowLeft":case"ArrowUp":re(-1);break;case"ArrowRight":case"ArrowDown":re(1);break}};return c.createElement("div",Ee({role:"radiogroup","aria-label":"segmented control",tabIndex:d?void 0:0},O,{className:ne(a,(r={},U(r,"".concat(a,"-rtl"),o==="rtl"),U(r,"".concat(a,"-disabled"),d),U(r,"".concat(a,"-vertical"),s),r),g),ref:C}),c.createElement("div",{className:"".concat(a,"-group")},c.createElement(KMe,{vertical:s,prefixCls:a,value:$,containerRef:x,motionName:"".concat(a,"-").concat(b),direction:o,getValueIndex:function(Z){return S.findIndex(function(J){return J.value===Z})},onMotionStart:function(){I(!0)},onMotionEnd:function(){I(!1)}}),S.map(function(Y){var Z;return c.createElement(JMe,Ee({},Y,{name:p,key:Y.value,prefixCls:a,className:ne(Y.className,"".concat(a,"-item"),(Z={},U(Z,"".concat(a,"-item-selected"),Y.value===$&&!j),U(Z,"".concat(a,"-item-focused"),B&&z&&Y.value===$),Z)),checked:Y.value===$,onChange:N,onFocus:q,onBlur:Q,onKeyDown:K,onKeyUp:X,onMouseDown:G,disabled:!!d||!!Y.disabled}))})))}),eNe=ZMe;function p9(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function v9(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const tNe=Object.assign({overflow:"hidden"},Ha),nNe=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Va(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${ae(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},v9(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},Ys(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:ae(n),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`},tNe),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},v9(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${ae(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:ae(r),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:ae(i),padding:`0 ${ae(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),p9(`&-disabled ${t}-item`,e)),p9(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},rNe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}},iNe=sn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Kt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[nNe(r)]},rNe);var h9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=yk(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:l="middle",style:u,vertical:d,name:f=n}=e,m=h9(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:p,direction:v,segmented:h}=c.useContext(xt),g=p("segmented",r),[w,b,y]=iNe(g),x=Br(l),C=c.useMemo(()=>s.map(_=>{if(aNe(_)){const{icon:$,label:E}=_,T=h9(_,["icon","label"]);return Object.assign(Object.assign({},T),{label:c.createElement(c.Fragment,null,c.createElement("span",{className:`${g}-item-icon`},$),E&&c.createElement("span",null,E))})}return _}),[s,g]),S=ne(i,a,h==null?void 0:h.className,{[`${g}-block`]:o,[`${g}-sm`]:x==="small",[`${g}-lg`]:x==="large",[`${g}-vertical`]:d},b,y),k=Object.assign(Object.assign({},h==null?void 0:h.style),u);return w(c.createElement(eNe,Object.assign({},m,{name:f,className:S,style:k,options:C,ref:t,prefixCls:g,direction:v,vertical:d})))}),Bee=oNe,zee=L.createContext({}),Hee=L.createContext({}),Vee=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const a=n.toHsb();a.a=0;const o=oa(a);o.cleared=!0,r(o)}};return L.createElement("div",{className:`${t}-clear`,onClick:i})};var Bu;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(Bu||(Bu={}));var sNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},lNe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:sNe}))},Wee=c.forwardRef(lNe);function ZT(){return typeof BigInt=="function"}function Uee(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Zd(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(s).concat(r)}}function eN(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Ld(e){var t=String(e);if(eN(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&tN(t)?t.length-t.indexOf(".")-1:0}function Uk(e){var t=String(e);if(eN(e)){if(e>Number.MAX_SAFE_INTEGER)return String(ZT()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Zd("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),uNe=function(){function e(t){if(Kn(this,e),U(this,"origin",""),U(this,"number",void 0),U(this,"empty",void 0),Uee(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Yn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Uk(this.number):this.origin}}]),e}();function Cs(e){return ZT()?new cNe(e):new uNe(e)}function Dw(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=Zd(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),u="".concat(a).concat(o);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=Cs(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return Dw(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?u:"".concat(u).concat(l)}function dNe(e){return!!(e.addonBefore||e.addonAfter)}function fNe(e){return!!(e.prefix||e.suffix||e.allowClear)}function g9(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function fS(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=g9(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=g9(t,e,r),n(i);return}n(i)}}function nN(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var rN=L.forwardRef(function(e,t){var n,r,i,a=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,p=e.style,v=e.disabled,h=e.readOnly,g=e.focused,w=e.triggerFocus,b=e.allowClear,y=e.value,x=e.handleReset,C=e.hidden,S=e.classes,k=e.classNames,_=e.dataAttrs,$=e.styles,E=e.components,T=e.onClear,M=o??a,j=(E==null?void 0:E.affixWrapper)||"span",I=(E==null?void 0:E.groupWrapper)||"span",N=(E==null?void 0:E.wrapper)||"span",O=(E==null?void 0:E.groupAddon)||"span",D=c.useRef(null),F=function(te){var le;(le=D.current)!==null&&le!==void 0&&le.contains(te.target)&&(w==null||w())},z=fNe(e),R=c.cloneElement(M,{value:y,className:ne((n=M.props)===null||n===void 0?void 0:n.className,!z&&(k==null?void 0:k.variant))||null}),H=c.useRef(null);if(L.useImperativeHandle(t,function(){return{nativeElement:H.current||D.current}}),z){var V=null;if(b){var B=!v&&!h&&y,W="".concat(s,"-clear-icon"),q=mt(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";V=L.createElement("button",{type:"button",onClick:function(te){x==null||x(te),T==null||T()},onMouseDown:function(te){return te.preventDefault()},className:ne(W,U(U({},"".concat(W,"-hidden"),!B),"".concat(W,"-has-suffix"),!!u))},q)}var Q="".concat(s,"-affix-wrapper"),G=ne(Q,U(U(U(U(U({},"".concat(s,"-disabled"),v),"".concat(Q,"-disabled"),v),"".concat(Q,"-focused"),g),"".concat(Q,"-readonly"),h),"".concat(Q,"-input-with-clear-btn"),u&&b&&y),S==null?void 0:S.affixWrapper,k==null?void 0:k.affixWrapper,k==null?void 0:k.variant),X=(u||b)&&L.createElement("span",{className:ne("".concat(s,"-suffix"),k==null?void 0:k.suffix),style:$==null?void 0:$.suffix},V,u);R=L.createElement(j,Ee({className:G,style:$==null?void 0:$.affixWrapper,onClick:F},_==null?void 0:_.affixWrapper,{ref:D}),l&&L.createElement("span",{className:ne("".concat(s,"-prefix"),k==null?void 0:k.prefix),style:$==null?void 0:$.prefix},l),R,X)}if(dNe(e)){var re="".concat(s,"-group"),K="".concat(re,"-addon"),Y="".concat(re,"-wrapper"),Z=ne("".concat(s,"-wrapper"),re,S==null?void 0:S.wrapper,k==null?void 0:k.wrapper),J=ne(Y,U({},"".concat(Y,"-disabled"),v),S==null?void 0:S.group,k==null?void 0:k.groupWrapper);R=L.createElement(I,{className:J,ref:H},L.createElement(N,{className:Z},d&&L.createElement(O,{className:K},d),R,f&&L.createElement(O,{className:K},f)))}return L.cloneElement(R,{className:ne((r=R.props)===null||r===void 0?void 0:r.className,m)||null,style:A(A({},(i=R.props)===null||i===void 0?void 0:i.style),p),hidden:C})}),mNe=["show"];function qee(e,t){return c.useMemo(function(){var n={};t&&(n.show=mt(t)==="object"&&t.formatter?t.formatter:!!t),n=A(A({},n),e);var r=n,i=r.show,a=ut(r,mNe);return A(A({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var pNe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],vNe=c.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,p=e.className,v=e.maxLength,h=e.suffix,g=e.showCount,w=e.count,b=e.type,y=b===void 0?"text":b,x=e.classes,C=e.classNames,S=e.styles,k=e.onCompositionStart,_=e.onCompositionEnd,$=ut(e,pNe),E=c.useState(!1),T=ie(E,2),M=T[0],j=T[1],I=c.useRef(!1),N=c.useRef(!1),O=c.useRef(null),D=c.useRef(null),F=function(ce){O.current&&nN(O.current,ce)},z=Ut(e.defaultValue,{value:e.value}),R=ie(z,2),H=R[0],V=R[1],B=H==null?"":String(H),W=c.useState(null),q=ie(W,2),Q=q[0],G=q[1],X=qee(w,g),re=X.max||v,K=X.strategy(B),Y=!!re&&K>re;c.useImperativeHandle(t,function(){var ue;return{focus:F,blur:function(){var $e;($e=O.current)===null||$e===void 0||$e.blur()},setSelectionRange:function($e,se,ve){var he;(he=O.current)===null||he===void 0||he.setSelectionRange($e,se,ve)},select:function(){var $e;($e=O.current)===null||$e===void 0||$e.select()},input:O.current,nativeElement:((ue=D.current)===null||ue===void 0?void 0:ue.nativeElement)||O.current}}),c.useEffect(function(){N.current&&(N.current=!1),j(function(ue){return ue&&f?!1:ue})},[f]);var Z=function(ce,$e,se){var ve=$e;if(!I.current&&X.exceedFormatter&&X.max&&X.strategy($e)>X.max){if(ve=X.exceedFormatter($e,{max:X.max}),$e!==ve){var he,_e;G([((he=O.current)===null||he===void 0?void 0:he.selectionStart)||0,((_e=O.current)===null||_e===void 0?void 0:_e.selectionEnd)||0])}}else if(se.source==="compositionEnd")return;V(ve),O.current&&fS(O.current,ce,r,ve)};c.useEffect(function(){if(Q){var ue;(ue=O.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,Fe(Q))}},[Q]);var J=function(ce){Z(ce,ce.target.value,{source:"change"})},ee=function(ce){I.current=!1,Z(ce,ce.currentTarget.value,{source:"compositionEnd"}),_==null||_(ce)},te=function(ce){o&&ce.key==="Enter"&&!N.current&&(N.current=!0,o(ce)),s==null||s(ce)},le=function(ce){ce.key==="Enter"&&(N.current=!1),l==null||l(ce)},oe=function(ce){j(!0),i==null||i(ce)},de=function(ce){N.current&&(N.current=!1),j(!1),a==null||a(ce)},pe=function(ce){V(""),F(),O.current&&fS(O.current,ce,r)},we=Y&&"".concat(d,"-out-of-range"),fe=function(){var ce=_n(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return L.createElement("input",Ee({autoComplete:n},ce,{onChange:J,onFocus:oe,onBlur:de,onKeyDown:te,onKeyUp:le,className:ne(d,U({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:S==null?void 0:S.input,ref:O,size:m,type:y,onCompositionStart:function(se){I.current=!0,k==null||k(se)},onCompositionEnd:ee}))},ge=function(){var ce=Number(re)>0;if(h||X.show){var $e=X.showFormatter?X.showFormatter({value:B,count:K,maxLength:re}):"".concat(K).concat(ce?" / ".concat(re):"");return L.createElement(L.Fragment,null,X.show&&L.createElement("span",{className:ne("".concat(d,"-show-count-suffix"),U({},"".concat(d,"-show-count-has-suffix"),!!h),C==null?void 0:C.count),style:A({},S==null?void 0:S.count)},$e),h)}return null};return L.createElement(rN,Ee({},$,{prefixCls:d,className:ne(p,we),handleReset:pe,value:B,focused:M,triggerFocus:F,suffix:ge(),disabled:f,classes:x,classNames:C,styles:S}),fe())});function hNe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var a=r[i];return typeof a=="function"?a.bind(r):a}}):e}function gNe(e,t){var n=c.useRef(null);function r(){try{var a=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,a),u=s.substring(o);n.current={start:a,end:o,value:s,beforeTxt:l,afterTxt:u}}catch{}}function i(){if(e&&n.current&&t)try{var a=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,u=o.start,d=a.length;if(a.startsWith(s))d=s.length;else if(a.endsWith(l))d=a.length-n.current.afterTxt.length;else{var f=s[u-1],m=a.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(p){An(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,i]}var bNe=function(){var t=c.useState(!1),n=ie(t,2),r=n[0],i=n[1];return nn(function(){i(Sk())},[]),r},yNe=200,wNe=600;function xNe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,a=e.downDisabled,o=e.onStep,s=c.useRef(),l=c.useRef([]),u=c.useRef();u.current=o;var d=function(){clearTimeout(s.current)},f=function(y,x){y.preventDefault(),d(),u.current(x);function C(){u.current(x),s.current=setTimeout(C,yNe)}s.current=setTimeout(C,wNe)};c.useEffect(function(){return function(){d(),l.current.forEach(function(b){return tn.cancel(b)})}},[]);var m=bNe();if(m)return null;var p="".concat(t,"-handler"),v=ne(p,"".concat(p,"-up"),U({},"".concat(p,"-up-disabled"),i)),h=ne(p,"".concat(p,"-down"),U({},"".concat(p,"-down-disabled"),a)),g=function(){return l.current.push(tn(d))},w={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return c.createElement("div",{className:"".concat(p,"-wrap")},c.createElement("span",Ee({},w,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":i,className:v}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",Ee({},w,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:h}),r||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function b9(e){var t=typeof e=="number"?Uk(e):Zd(e).fullStr,n=t.includes(".");return n?Zd(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const SNe=function(){var e=c.useRef(0),t=function(){tn.cancel(e.current)};return c.useEffect(function(){return t},[]),function(n){t(),e.current=tn(function(){n()})}};var CNe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],kNe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],y9=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},w9=function(t){var n=Cs(t);return n.isInvalidate()?null:n},_Ne=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.min,o=e.max,s=e.step,l=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,p=e.upHandler,v=e.downHandler,h=e.keyboard,g=e.changeOnWheel,w=g===void 0?!1:g,b=e.controls,y=b===void 0?!0:b;e.classNames;var x=e.stringMode,C=e.parser,S=e.formatter,k=e.precision,_=e.decimalSeparator,$=e.onChange,E=e.onInput,T=e.onPressEnter,M=e.onStep,j=e.changeOnBlur,I=j===void 0?!0:j,N=e.domRef,O=ut(e,CNe),D="".concat(n,"-input"),F=c.useRef(null),z=c.useState(!1),R=ie(z,2),H=R[0],V=R[1],B=c.useRef(!1),W=c.useRef(!1),q=c.useRef(!1),Q=c.useState(function(){return Cs(d??u)}),G=ie(Q,2),X=G[0],re=G[1];function K(Ve){d===void 0&&re(Ve)}var Y=c.useCallback(function(Ve,Ye){if(!Ye)return k>=0?k:Math.max(Ld(Ve),Ld(l))},[k,l]),Z=c.useCallback(function(Ve){var Ye=String(Ve);if(C)return C(Ye);var Ne=Ye;return _&&(Ne=Ne.replace(_,".")),Ne.replace(/[^\w.-]+/g,"")},[C,_]),J=c.useRef(""),ee=c.useCallback(function(Ve,Ye){if(S)return S(Ve,{userTyping:Ye,input:String(J.current)});var Ne=typeof Ve=="number"?Uk(Ve):Ve;if(!Ye){var Ae=Y(Ne,Ye);if(tN(Ne)&&(_||Ae>=0)){var et=_||".";Ne=Dw(Ne,et,Ae)}}return Ne},[S,Y,_]),te=c.useState(function(){var Ve=u??d;return X.isInvalidate()&&["string","number"].includes(mt(Ve))?Number.isNaN(Ve)?"":Ve:ee(X.toString(),!1)}),le=ie(te,2),oe=le[0],de=le[1];J.current=oe;function pe(Ve,Ye){de(ee(Ve.isInvalidate()?Ve.toString(!1):Ve.toString(!Ye),Ye))}var we=c.useMemo(function(){return w9(o)},[o,k]),fe=c.useMemo(function(){return w9(a)},[a,k]),ge=c.useMemo(function(){return!we||!X||X.isInvalidate()?!1:we.lessEquals(X)},[we,X]),ue=c.useMemo(function(){return!fe||!X||X.isInvalidate()?!1:X.lessEquals(fe)},[fe,X]),ce=gNe(F.current,H),$e=ie(ce,2),se=$e[0],ve=$e[1],he=function(Ye){return we&&!Ye.lessEquals(we)?we:fe&&!fe.lessEquals(Ye)?fe:null},_e=function(Ye){return!he(Ye)},Se=function(Ye,Ne){var Ae=Ye,et=_e(Ae)||Ae.isEmpty();if(!Ae.isEmpty()&&!Ne&&(Ae=he(Ae)||Ae,et=!0),!m&&!f&&et){var nt=Ae.toString(),rt=Y(nt,Ne);return rt>=0&&(Ae=Cs(Dw(nt,".",rt)),_e(Ae)||(Ae=Cs(Dw(nt,".",rt,!0)))),Ae.equals(X)||(K(Ae),$==null||$(Ae.isEmpty()?null:y9(x,Ae)),d===void 0&&pe(Ae,Ne)),Ae}return X},Pe=SNe(),De=function Ve(Ye){if(se(),J.current=Ye,de(Ye),!W.current){var Ne=Z(Ye),Ae=Cs(Ne);Ae.isNaN()||Se(Ae,!0)}E==null||E(Ye),Pe(function(){var et=Ye;C||(et=Ye.replace(/。/g,".")),et!==Ye&&Ve(et)})},xe=function(){W.current=!0},ye=function(){W.current=!1,De(F.current.value)},Te=function(Ye){De(Ye.target.value)},Ie=function(Ye){var Ne;if(!(Ye&&ge||!Ye&&ue)){B.current=!1;var Ae=Cs(q.current?b9(l):l);Ye||(Ae=Ae.negate());var et=(X||Cs(0)).add(Ae.toString()),nt=Se(et,!1);M==null||M(y9(x,nt),{offset:q.current?b9(l):l,type:Ye?"up":"down"}),(Ne=F.current)===null||Ne===void 0||Ne.focus()}},ke=function(Ye){var Ne=Cs(Z(oe)),Ae;Ne.isNaN()?Ae=Se(X,Ye):Ae=Se(Ne,Ye),d!==void 0?pe(X,!1):Ae.isNaN()||pe(Ae,!1)},je=function(){B.current=!0},He=function(Ye){var Ne=Ye.key,Ae=Ye.shiftKey;B.current=!0,q.current=Ae,Ne==="Enter"&&(W.current||(B.current=!1),ke(!1),T==null||T(Ye)),h!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ne)&&(Ie(Ne==="Up"||Ne==="ArrowUp"),Ye.preventDefault())},Be=function(){B.current=!1,q.current=!1};c.useEffect(function(){if(w&&H){var Ve=function(Ae){Ie(Ae.deltaY<0),Ae.preventDefault()},Ye=F.current;if(Ye)return Ye.addEventListener("wheel",Ve,{passive:!1}),function(){return Ye.removeEventListener("wheel",Ve)}}});var ct=function(){I&&ke(!1),V(!1),B.current=!1};return Jd(function(){X.isInvalidate()||pe(X,!1)},[k,S]),Jd(function(){var Ve=Cs(d);re(Ve);var Ye=Cs(Z(oe));(!Ve.equals(Ye)||!B.current||S)&&pe(Ve,B.current)},[d]),Jd(function(){S&&ve()},[oe]),c.createElement("div",{ref:N,className:ne(n,r,U(U(U(U(U({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),X.isNaN()),"".concat(n,"-out-of-range"),!X.isInvalidate()&&!_e(X))),style:i,onFocus:function(){V(!0)},onBlur:ct,onKeyDown:He,onKeyUp:Be,onCompositionStart:xe,onCompositionEnd:ye,onBeforeInput:je},y&&c.createElement(xNe,{prefixCls:n,upNode:p,downNode:v,upDisabled:ge,downDisabled:ue,onStep:Ie}),c.createElement("div",{className:"".concat(D,"-wrap")},c.createElement("input",Ee({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},O,{ref:ri(F,t),className:D,value:oe,onChange:Te,disabled:f,readOnly:m}))))}),$Ne=c.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=i===void 0?"rc-input-number":i,o=e.value,s=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,p=ut(e,kNe),v=c.useRef(null),h=c.useRef(null),g=c.useRef(null),w=function(y){g.current&&nN(g.current,y)};return c.useImperativeHandle(t,function(){return hNe(g.current,{focus:w,nativeElement:v.current.nativeElement||h.current})}),c.createElement(rN,{className:f,triggerFocus:w,prefixCls:a,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},c.createElement(_Ne,Ee({prefixCls:a,disabled:n,ref:g,domRef:h,className:m==null?void 0:m.input},p)))});const ENe=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},D1(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new rn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},x9=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const a=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},PNe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:p,colorTextDescription:v,motionDurationMid:h,handleHoverColor:g,handleOpacity:w,paddingInline:b,paddingBlock:y,handleBg:x,handleActiveBg:C,colorTextDisabled:S,borderRadiusSM:k,borderRadiusLG:_,controlWidth:$,handleBorderColor:E,filledHandleBg:T,lineHeightLG:M,calc:j}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),j1(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:i}),VM(e,{[`${t}-handler-wrap`]:{background:x,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${E}`}}})),UM(e,{[`${t}-handler-wrap`]:{background:T,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:x}}})),WM(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:M,borderRadius:_,[`input${t}-input`]:{height:j(s).sub(j(n).mul(2)).equal(),padding:`${ae(m)} ${ae(p)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:k,[`input${t}-input`]:{height:j(l).sub(j(n).mul(2)).equal(),padding:`${ae(f)} ${ae(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},mn(e)),lee(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:k}}},iee(e)),oee(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{width:"100%",padding:`${ae(y)} ${ae(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),qM(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:w,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${h}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:v,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ae(n)} ${r} ${E}`,transition:`all ${h} linear`,"&:active":{background:C},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},jf()),{color:v,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},x9(e,"lg")),x9(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:S}})}]},TNe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:a,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ae(n)} 0`}},j1(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ae(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${ae(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},ONe=sn("InputNumber",e=>{const t=Kt(e,N1(e));return[PNe(t),TNe(t),Af(t)]},ENe,{unitless:{handleOpacity:!0}});var INe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=c.useContext(xt),i=c.useRef(null);c.useImperativeHandle(t,()=>i.current);const{className:a,rootClassName:o,size:s,disabled:l,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:p,bordered:v,readOnly:h,status:g,controls:w,variant:b}=e,y=INe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),x=n("input-number",u),C=Ln(x),[S,k,_]=ONe(x,C),{compactSize:$,compactItemClassnames:E}=ol(x,r);let T=c.createElement(Wee,{className:`${x}-handler-up-inner`}),M=c.createElement(I1,{className:`${x}-handler-down-inner`});const j=typeof w=="boolean"?w:void 0;typeof w=="object"&&(T=typeof w.upIcon>"u"?T:c.createElement("span",{className:`${x}-handler-up-inner`},w.upIcon),M=typeof w.downIcon>"u"?M:c.createElement("span",{className:`${x}-handler-down-inner`},w.downIcon));const{hasFeedback:I,status:N,isFormItemInput:O,feedbackIcon:D}=c.useContext(ni),F=Vc(N,g),z=Br(X=>{var re;return(re=s??$)!==null&&re!==void 0?re:X}),R=c.useContext(Ur),H=l??R,[V,B]=Wc("inputNumber",b,v),W=I&&c.createElement(c.Fragment,null,D),q=ne({[`${x}-lg`]:z==="large",[`${x}-sm`]:z==="small",[`${x}-rtl`]:r==="rtl",[`${x}-in-form-item`]:O},k),Q=`${x}-group`,G=c.createElement($Ne,Object.assign({ref:i,disabled:H,className:ne(_,C,a,o,E),upHandler:T,downHandler:M,prefixCls:x,readOnly:h,controls:j,prefix:m,suffix:W||p,addonBefore:d&&c.createElement(Zs,{form:!0,space:!0},d),addonAfter:f&&c.createElement(Zs,{form:!0,space:!0},f),classNames:{input:q,variant:ne({[`${x}-${V}`]:B},el(x,F,I)),affixWrapper:ne({[`${x}-affix-wrapper-sm`]:z==="small",[`${x}-affix-wrapper-lg`]:z==="large",[`${x}-affix-wrapper-rtl`]:r==="rtl",[`${x}-affix-wrapper-without-controls`]:w===!1},k),wrapper:ne({[`${Q}-rtl`]:r==="rtl"},k),groupWrapper:ne({[`${x}-group-wrapper-sm`]:z==="small",[`${x}-group-wrapper-lg`]:z==="large",[`${x}-group-wrapper-rtl`]:r==="rtl",[`${x}-group-wrapper-${V}`]:B},el(`${x}-group-wrapper`,F,I),k)}},y));return S(G)}),jc=Gee,RNe=e=>c.createElement(Jt,{theme:{components:{InputNumber:{handleVisible:!0}}}},c.createElement(Gee,Object.assign({},e)));jc._InternalPanelDoNotUseOrYouWillBeFired=RNe;const ef=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:a,className:o,formatter:s}=e;const l=`${t}-steppers`,[u,d]=c.useState(i);return c.useEffect(()=>{Number.isNaN(i)||d(i)},[i]),L.createElement(jc,{className:ne(l,o),min:n,max:r,value:u,formatter:s,size:"small",onChange:f=>{i||d(f||0),a==null||a(f)}})},MNe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[a,o]=c.useState(oa(n||"#000"));c.useEffect(()=>{n&&o(n)},[n]);const s=l=>{const u=a.toHsb();u.a=(l||0)/100;const d=oa(u);n||o(d),r==null||r(d)};return L.createElement(ef,{value:nM(a),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},NNe=e=>{const{getPrefixCls:t,direction:n}=c.useContext(xt),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[s,l]=KM(o),u=ne(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,i),d=c.useContext(ni),f=c.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(c.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(ni.Provider,{value:f},e.children)))},Kee=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:L.createElement(Ql,null)}),t};function Yee(e,t){const n=c.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function DNe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var jNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:p,className:v,style:h,styles:g,rootClassName:w,onChange:b,classNames:y,variant:x}=e,C=jNe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:k,input:_}=L.useContext(xt),$=S("input",r),E=c.useRef(null),T=Ln($),[M,j,I]=KM($,T),{compactSize:N,compactItemClassnames:O}=ol($,k),D=Br(J=>{var ee;return(ee=o??N)!==null&&ee!==void 0?ee:J}),F=L.useContext(Ur),z=s??F,{status:R,hasFeedback:H,feedbackIcon:V}=c.useContext(ni),B=Vc(R,a),W=DNe(e)||!!H;c.useRef(W);const q=Yee(E,!0),Q=J=>{q(),l==null||l(J)},G=J=>{q(),u==null||u(J)},X=J=>{q(),b==null||b(J)},re=(H||d)&&L.createElement(L.Fragment,null,d,H&&V),K=Kee(f??(_==null?void 0:_.allowClear)),[Y,Z]=Wc("input",x,i);return M(L.createElement(vNe,Object.assign({ref:ri(t,E),prefixCls:$,autoComplete:_==null?void 0:_.autoComplete},C,{disabled:z,onBlur:Q,onFocus:G,style:Object.assign(Object.assign({},_==null?void 0:_.style),h),styles:Object.assign(Object.assign({},_==null?void 0:_.styles),g),suffix:re,allowClear:K,className:ne(v,w,I,T,O,_==null?void 0:_.className),onChange:X,addonBefore:p&&L.createElement(Zs,{form:!0,space:!0},p),addonAfter:m&&L.createElement(Zs,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},y),_==null?void 0:_.classNames),{input:ne({[`${$}-sm`]:D==="small",[`${$}-lg`]:D==="large",[`${$}-rtl`]:k==="rtl"},y==null?void 0:y.input,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.input,j),variant:ne({[`${$}-${Y}`]:Z},el($,B)),affixWrapper:ne({[`${$}-affix-wrapper-sm`]:D==="small",[`${$}-affix-wrapper-lg`]:D==="large",[`${$}-affix-wrapper-rtl`]:k==="rtl"},j),wrapper:ne({[`${$}-group-rtl`]:k==="rtl"},j),groupWrapper:ne({[`${$}-group-wrapper-sm`]:D==="small",[`${$}-group-wrapper-lg`]:D==="large",[`${$}-group-wrapper-rtl`]:k==="rtl",[`${$}-group-wrapper-${Y}`]:Z},el(`${$}-group-wrapper`,B,H),j)})})))}),FNe=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},ANe=sn(["Input","OTP"],e=>{const t=Kt(e,N1(e));return[FNe(t)]},D1);var LNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,s=LNe(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof o=="string"?o:n,u=v=>{r(a,v.target.value)},d=c.useRef(null);c.useImperativeHandle(t,()=>d.current);const f=()=>{tn(()=>{var v;const h=(v=d.current)===null||v===void 0?void 0:v.input;document.activeElement===h&&h&&h.select()})},m=v=>{const{key:h,ctrlKey:g,metaKey:w}=v;h==="ArrowLeft"?i(a-1):h==="ArrowRight"?i(a+1):h==="z"&&(g||w)&&v.preventDefault(),f()},p=v=>{v.key==="Backspace"&&!n&&i(a-1),f()};return c.createElement(qk,Object.assign({type:o===!0?"password":"text"},s,{ref:d,value:l,onInput:u,onFocus:f,onKeyDown:m,onKeyUp:p,onMouseDown:f,onMouseUp:f}))});var zNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:l,variant:u,disabled:d,status:f,autoFocus:m,mask:p,type:v,onInput:h,inputMode:g}=e,w=zNe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:b,direction:y}=c.useContext(xt),x=b("otp",n),C=er(w,{aria:!0,data:!0,attr:!0}),S=Ln(x),[k,_,$]=ANe(x,S),E=Br(W=>i??W),T=c.useContext(ni),M=Vc(T.status,f),j=c.useMemo(()=>Object.assign(Object.assign({},T),{status:M,hasFeedback:!1,feedbackIcon:null}),[T,M]),I=c.useRef(null),N=c.useRef({});c.useImperativeHandle(t,()=>({focus:()=>{var W;(W=N.current[0])===null||W===void 0||W.focus()},blur:()=>{var W;for(let q=0;ql?l(W):W,[D,F]=c.useState(oy(O(a||"")));c.useEffect(()=>{o!==void 0&&F(oy(o))},[o]);const z=Vt(W=>{F(W),h&&h(W),s&&W.length===r&&W.every(q=>q)&&W.some((q,Q)=>D[Q]!==q)&&s(W.join(""))}),R=Vt((W,q)=>{let Q=Fe(D);for(let X=0;X=0&&!Q[X];X-=1)Q.pop();const G=O(Q.map(X=>X||" ").join(""));return Q=oy(G).map((X,re)=>X===" "&&!Q[re]?Q[re]:X),Q}),H=(W,q)=>{var Q;const G=R(W,q),X=Math.min(W+q.length,r-1);X!==W&&G[W]!==void 0&&((Q=N.current[X])===null||Q===void 0||Q.focus()),z(G)},V=W=>{var q;(q=N.current[W])===null||q===void 0||q.focus()},B={variant:u,disabled:d,status:M,mask:p,type:v,inputMode:g};return k(c.createElement("div",Object.assign({},C,{ref:I,className:ne(x,{[`${x}-sm`]:E==="small",[`${x}-lg`]:E==="large",[`${x}-rtl`]:y==="rtl"},$,_)}),c.createElement(ni.Provider,{value:j},Array.from({length:r}).map((W,q)=>{const Q=`otp-${q}`,G=D[q]||"";return c.createElement(BNe,Object.assign({ref:X=>{N.current[q]=X},key:Q,index:q,size:E,htmlSize:1,className:`${x}-input`,onChange:H,value:G,onActiveChange:V,autoFocus:q===0&&m},B))}))))});var VNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},WNe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:VNe}))},Xee=c.forwardRef(WNe),UNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},qNe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:UNe}))},Gk=c.forwardRef(qNe),GNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ie?c.createElement(Gk,null):c.createElement(Xee,null),YNe={click:"onClick",hover:"onMouseOver"},XNe=c.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=KNe}=e,o=c.useContext(Ur),s=n??o,l=typeof i=="object"&&i.visible!==void 0,[u,d]=c.useState(()=>l?i.visible:!1),f=c.useRef(null);c.useEffect(()=>{l&&d(i.visible)},[l,i]);const m=Yee(f),p=()=>{var E;if(s)return;u&&m();const T=!u;d(T),typeof i=="object"&&((E=i.onVisibleChange)===null||E===void 0||E.call(i,T))},v=E=>{const T=YNe[r]||"",M=a(u),j={[T]:p,className:`${E}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault()},onMouseUp:I=>{I.preventDefault()}};return c.cloneElement(c.isValidElement(M)?M:c.createElement("span",null,M),j)},{className:h,prefixCls:g,inputPrefixCls:w,size:b}=e,y=GNe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=c.useContext(xt),C=x("input",w),S=x("input-password",g),k=i&&v(S),_=ne(S,h,{[`${S}-${b}`]:!!b}),$=Object.assign(Object.assign({},_n(y,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:_,prefixCls:C,suffix:k});return b&&($.size=b),c.createElement(qk,Object.assign({ref:ri(t,f)},$))});var QNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:s=!1,addonAfter:l,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:p,onCompositionEnd:v}=e,h=QNe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:w}=c.useContext(xt),b=c.useRef(!1),y=g("input-search",n),x=g("input",r),{compactSize:C}=ol(y,w),S=Br(H=>{var V;return(V=a??C)!==null&&V!==void 0?V:H}),k=c.useRef(null),_=H=>{H!=null&&H.target&&H.type==="click"&&f&&f(H.target.value,H,{source:"clear"}),m==null||m(H)},$=H=>{var V;document.activeElement===((V=k.current)===null||V===void 0?void 0:V.input)&&H.preventDefault()},E=H=>{var V,B;f&&f((B=(V=k.current)===null||V===void 0?void 0:V.input)===null||B===void 0?void 0:B.value,H,{source:"input"})},T=H=>{b.current||u||E(H)},M=typeof s=="boolean"?c.createElement(_k,null):null,j=`${y}-button`;let I;const N=s||{},O=N.type&&N.type.__ANT_BUTTON===!0;O||N.type==="button"?I=qr(N,Object.assign({onMouseDown:$,onClick:H=>{var V,B;(B=(V=N==null?void 0:N.props)===null||V===void 0?void 0:V.onClick)===null||B===void 0||B.call(V,H),E(H)},key:"enterButton"},O?{className:j,size:S}:{})):I=c.createElement(dn,{className:j,type:s?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:$,onClick:E,loading:u,icon:M},s),l&&(I=[I,qr(l,{key:"addonAfter"})]);const D=ne(y,{[`${y}-rtl`]:w==="rtl",[`${y}-${S}`]:!!S,[`${y}-with-button`]:!!s},i),F=Object.assign(Object.assign({},h),{className:D,prefixCls:x,type:"search"}),z=H=>{b.current=!0,p==null||p(H)},R=H=>{b.current=!1,v==null||v(H)};return c.createElement(qk,Object.assign({ref:ri(k,t),onPressEnter:T},F,{size:S,onCompositionStart:z,onCompositionEnd:R,addonAfter:I,suffix:o,onChange:_,disabled:d}))});var ZNe=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,e5e=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],IE={},Ja;function t5e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&IE[n])return IE[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=e5e.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(IE[n]=l),l}function n5e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ja||(Ja=document.createElement("textarea"),Ja.setAttribute("tab-index","-1"),Ja.setAttribute("aria-hidden","true"),Ja.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ja)),e.getAttribute("wrap")?Ja.setAttribute("wrap",e.getAttribute("wrap")):Ja.removeAttribute("wrap");var i=t5e(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Ja.setAttribute("style","".concat(l,";").concat(ZNe)),Ja.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Ja.scrollHeight;if(s==="border-box"?m+=o:s==="content-box"&&(m-=a),n!==null||r!==null){Ja.value=" ";var p=Ja.scrollHeight-a;n!==null&&(u=p*n,s==="border-box"&&(u=u+a+o),m=Math.max(u,m)),r!==null&&(d=p*r,s==="border-box"&&(d=d+a+o),f=m>d?"":"hidden",m=Math.min(d,m))}var v={height:m,overflowY:f,resize:"none"};return u&&(v.minHeight=u),d&&(v.maxHeight=d),v}var r5e=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],RE=0,ME=1,NE=2,i5e=c.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=ut(n,r5e),p=Ut(i,{value:a,postState:function(W){return W??""}}),v=ie(p,2),h=v[0],g=v[1],w=function(W){g(W.target.value),f==null||f(W)},b=c.useRef();c.useImperativeHandle(t,function(){return{textArea:b.current}});var y=c.useMemo(function(){return o&&mt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),x=ie(y,2),C=x[0],S=x[1],k=!!o,_=function(){try{if(document.activeElement===b.current){var W=b.current,q=W.selectionStart,Q=W.selectionEnd,G=W.scrollTop;b.current.setSelectionRange(q,Q),b.current.scrollTop=G}}catch{}},$=c.useState(NE),E=ie($,2),T=E[0],M=E[1],j=c.useState(),I=ie(j,2),N=I[0],O=I[1],D=function(){M(RE)};nn(function(){k&&D()},[a,C,S,k]),nn(function(){if(T===RE)M(ME);else if(T===ME){var B=n5e(b.current,!1,C,S);M(NE),O(B)}else _()},[T]);var F=c.useRef(),z=function(){tn.cancel(F.current)},R=function(W){T===NE&&(s==null||s(W),o&&(z(),F.current=tn(function(){D()})))};c.useEffect(function(){return z},[]);var H=k?N:null,V=A(A({},u),H);return(T===RE||T===ME)&&(V.overflowY="hidden",V.overflowX="hidden"),c.createElement(Ci,{onResize:R,disabled:!(o||s)},c.createElement("textarea",Ee({},m,{ref:b,style:V,className:ne(r,l,U({},"".concat(r,"-disabled"),d)),disabled:d,value:h,onChange:w})))}),a5e=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],o5e=L.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,p=e.prefixCls,v=p===void 0?"rc-textarea":p,h=e.showCount,g=e.count,w=e.className,b=e.style,y=e.disabled,x=e.hidden,C=e.classNames,S=e.styles,k=e.onResize,_=e.onClear,$=e.onPressEnter,E=e.readOnly,T=e.autoSize,M=e.onKeyDown,j=ut(e,a5e),I=Ut(r,{value:i,defaultValue:r}),N=ie(I,2),O=N[0],D=N[1],F=O==null?"":String(O),z=L.useState(!1),R=ie(z,2),H=R[0],V=R[1],B=L.useRef(!1),W=L.useState(null),q=ie(W,2),Q=q[0],G=q[1],X=c.useRef(null),re=c.useRef(null),K=function(){var ye;return(ye=re.current)===null||ye===void 0?void 0:ye.textArea},Y=function(){K().focus()};c.useImperativeHandle(t,function(){var xe;return{resizableTextArea:re.current,focus:Y,blur:function(){K().blur()},nativeElement:((xe=X.current)===null||xe===void 0?void 0:xe.nativeElement)||K()}}),c.useEffect(function(){V(function(xe){return!y&&xe})},[y]);var Z=L.useState(null),J=ie(Z,2),ee=J[0],te=J[1];L.useEffect(function(){if(ee){var xe;(xe=K()).setSelectionRange.apply(xe,Fe(ee))}},[ee]);var le=qee(g,h),oe=(n=le.max)!==null&&n!==void 0?n:u,de=Number(oe)>0,pe=le.strategy(F),we=!!oe&&pe>oe,fe=function(ye,Te){var Ie=Te;!B.current&&le.exceedFormatter&&le.max&&le.strategy(Te)>le.max&&(Ie=le.exceedFormatter(Te,{max:le.max}),Te!==Ie&&te([K().selectionStart||0,K().selectionEnd||0])),D(Ie),fS(ye.currentTarget,ye,s,Ie)},ge=function(ye){B.current=!0,d==null||d(ye)},ue=function(ye){B.current=!1,fe(ye,ye.currentTarget.value),f==null||f(ye)},ce=function(ye){fe(ye,ye.target.value)},$e=function(ye){ye.key==="Enter"&&$&&$(ye),M==null||M(ye)},se=function(ye){V(!0),a==null||a(ye)},ve=function(ye){V(!1),o==null||o(ye)},he=function(ye){D(""),Y(),fS(K(),ye,s)},_e=m,Se;le.show&&(le.showFormatter?Se=le.showFormatter({value:F,count:pe,maxLength:oe}):Se="".concat(pe).concat(de?" / ".concat(oe):""),_e=L.createElement(L.Fragment,null,_e,L.createElement("span",{className:ne("".concat(v,"-data-count"),C==null?void 0:C.count),style:S==null?void 0:S.count},Se)));var Pe=function(ye){var Te;k==null||k(ye),(Te=K())!==null&&Te!==void 0&&Te.style.height&&G(!0)},De=!T&&!h&&!l;return L.createElement(rN,{ref:X,value:F,allowClear:l,handleReset:he,suffix:_e,prefixCls:v,classNames:A(A({},C),{},{affixWrapper:ne(C==null?void 0:C.affixWrapper,U(U({},"".concat(v,"-show-count"),h),"".concat(v,"-textarea-allow-clear"),l))}),disabled:y,focused:H,className:ne(w,we&&"".concat(v,"-out-of-range")),style:A(A({},b),Q&&!De?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:x,readOnly:E,onClear:_},L.createElement(i5e,Ee({},j,{autoSize:T,maxLength:u,onKeyDown:$e,onChange:ce,onFocus:se,onBlur:ve,onCompositionStart:ge,onCompositionEnd:ue,className:ne(C==null?void 0:C.textarea),style:A(A({},S==null?void 0:S.textarea),{},{resize:b==null?void 0:b.resize}),disabled:y,prefixCls:v,onResize:Pe,ref:re,readOnly:E})))}),s5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:u,classNames:d,rootClassName:f,className:m,style:p,styles:v,variant:h}=e,g=s5e(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:w,direction:b,textArea:y}=c.useContext(xt),x=Br(o),C=c.useContext(Ur),S=s??C,{status:k,hasFeedback:_,feedbackIcon:$}=c.useContext(ni),E=Vc(k,l),T=c.useRef(null);c.useImperativeHandle(t,()=>{var R;return{resizableTextArea:(R=T.current)===null||R===void 0?void 0:R.resizableTextArea,focus:H=>{var V,B;nN((B=(V=T.current)===null||V===void 0?void 0:V.resizableTextArea)===null||B===void 0?void 0:B.textArea,H)},blur:()=>{var H;return(H=T.current)===null||H===void 0?void 0:H.blur()}}});const M=w("input",i),j=Ln(M),[I,N,O]=KM(M,j),[D,F]=Wc("textArea",h,a),z=Kee(u??(y==null?void 0:y.allowClear));return I(c.createElement(o5e,Object.assign({autoComplete:y==null?void 0:y.autoComplete},g,{style:Object.assign(Object.assign({},y==null?void 0:y.style),p),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),v),disabled:S,allowClear:z,className:ne(O,j,m,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:ne({[`${M}-sm`]:x==="small",[`${M}-lg`]:x==="large"},N,d==null?void 0:d.textarea,(n=y==null?void 0:y.classNames)===null||n===void 0?void 0:n.textarea),variant:ne({[`${M}-${D}`]:F},el(M,E)),affixWrapper:ne(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:b==="rtl",[`${M}-affix-wrapper-sm`]:x==="small",[`${M}-affix-wrapper-lg`]:x==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},N)}),prefixCls:M,suffix:_&&c.createElement("span",{className:`${M}-textarea-suffix`},$),ref:T})))}),vi=qk;vi.Group=NNe;vi.Search=JNe;vi.TextArea=Qee;vi.Password=XNe;vi.OTP=HNe;const l5e=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,c5e=e=>l5e.test(`#${e}`),u5e=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[a,o]=c.useState(()=>n?Uh(n.toHexString()):void 0);c.useEffect(()=>{n&&o(Uh(n.toHexString()))},[n]);const s=l=>{const u=l.target.value;o(Uh(u)),c5e(Uh(u,!0))&&(r==null||r(oa(u)))};return L.createElement(vi,{className:i,value:a,prefix:"#",onChange:s,size:"small"})},d5e=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[a,o]=c.useState(oa(n||"#000"));c.useEffect(()=>{n&&o(n)},[n]);const s=(l,u)=>{const d=a.toHsb();d[u]=u==="h"?l:(l||0)/100;const f=oa(d);n||o(f),r==null||r(f)};return L.createElement("div",{className:i},L.createElement(ef,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:i,formatter:l=>Ow(l||0).toString(),onChange:l=>s(Number(l),"h")}),L.createElement(ef,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${Ow(l||0)}%`,onChange:l=>s(Number(l),"s")}),L.createElement(ef,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${Ow(l||0)}%`,onChange:l=>s(Number(l),"b")}))},f5e=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[a,o]=c.useState(oa(n||"#000"));c.useEffect(()=>{n&&o(n)},[n]);const s=(l,u)=>{const d=a.toRgb();d[u]=l||0;const f=oa(d);n||o(f),r==null||r(f)};return L.createElement("div",{className:i},L.createElement(ef,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),L.createElement(ef,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),L.createElement(ef,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},m5e=[Bu.hex,Bu.hsb,Bu.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),p5e=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:a,onChange:o,disabledFormat:s}=e,[l,u]=Ut(Bu.hex,{value:n,onChange:a}),d=`${t}-input`,f=p=>{u(p)},m=c.useMemo(()=>{const p={value:r,prefixCls:t,onChange:o};switch(l){case Bu.hsb:return L.createElement(d5e,Object.assign({},p));case Bu.rgb:return L.createElement(f5e,Object.assign({},p));default:return L.createElement(u5e,Object.assign({},p))}},[l,t,r,o]);return L.createElement("div",{className:`${d}-container`},!s&&L.createElement(Uc,{value:l,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:m5e}),L.createElement("div",{className:d},m),!i&&L.createElement(MNe,{prefixCls:t,value:r,onChange:o}))};function e6(e,t,n){return(e-t)/(n-t)}function iN(e,t,n,r){var i=e6(t,n,r),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function kd(e,t){return Array.isArray(e)?e[t]:e}var Vf=c.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Jee=c.createContext({}),v5e=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],S9=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,a=e.onStartMove,o=e.onDelete,s=e.style,l=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,m=e.onChangeComplete,p=e.onFocus,v=e.onMouseEnter,h=ut(e,v5e),g=c.useContext(Vf),w=g.min,b=g.max,y=g.direction,x=g.disabled,C=g.keyboard,S=g.range,k=g.tabIndex,_=g.ariaLabelForHandle,$=g.ariaLabelledByForHandle,E=g.ariaRequired,T=g.ariaValueTextFormatterForHandle,M=g.styles,j=g.classNames,I="".concat(n,"-handle"),N=function(q){x||a(q,i)},O=function(q){p==null||p(q,i)},D=function(q){v(q,i)},F=function(q){if(!x&&C){var Q=null;switch(q.which||q.keyCode){case qe.LEFT:Q=y==="ltr"||y==="btt"?-1:1;break;case qe.RIGHT:Q=y==="ltr"||y==="btt"?1:-1;break;case qe.UP:Q=y!=="ttb"?1:-1;break;case qe.DOWN:Q=y!=="ttb"?-1:1;break;case qe.HOME:Q="min";break;case qe.END:Q="max";break;case qe.PAGE_UP:Q=2;break;case qe.PAGE_DOWN:Q=-2;break;case qe.BACKSPACE:case qe.DELETE:o(i);break}Q!==null&&(q.preventDefault(),f(Q,i))}},z=function(q){switch(q.which||q.keyCode){case qe.LEFT:case qe.RIGHT:case qe.UP:case qe.DOWN:case qe.HOME:case qe.END:case qe.PAGE_UP:case qe.PAGE_DOWN:m==null||m();break}},R=iN(y,r,w,b),H={};if(i!==null){var V;H={tabIndex:x?null:kd(k,i),role:"slider","aria-valuemin":w,"aria-valuemax":b,"aria-valuenow":r,"aria-disabled":x,"aria-label":kd(_,i),"aria-labelledby":kd($,i),"aria-required":kd(E,i),"aria-valuetext":(V=kd(T,i))===null||V===void 0?void 0:V(r),"aria-orientation":y==="ltr"||y==="rtl"?"horizontal":"vertical",onMouseDown:N,onTouchStart:N,onFocus:O,onMouseEnter:D,onKeyDown:F,onKeyUp:z}}var B=c.createElement("div",Ee({ref:t,className:ne(I,U(U(U({},"".concat(I,"-").concat(i+1),i!==null&&S),"".concat(I,"-dragging"),u),"".concat(I,"-dragging-delete"),d),j.handle),style:A(A(A({},R),s),M.handle)},H,h));return l&&(B=l(B,{index:i,prefixCls:n,value:r,dragging:u,draggingDelete:d})),B}),h5e=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],g5e=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,l=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,m=ut(e,h5e),p=c.useRef({}),v=c.useState(!1),h=ie(v,2),g=h[0],w=h[1],b=c.useState(-1),y=ie(b,2),x=y[0],C=y[1],S=function(T){C(T),w(!0)},k=function(T,M){S(M),f==null||f(T)},_=function(T,M){S(M)};c.useImperativeHandle(t,function(){return{focus:function(T){var M;(M=p.current[T])===null||M===void 0||M.focus()},hideHelp:function(){ki.flushSync(function(){w(!1)})}}});var $=A({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:k,onMouseEnter:_},m);return c.createElement(c.Fragment,null,o.map(function(E,T){var M=u===T;return c.createElement(S9,Ee({ref:function(I){I?p.current[T]=I:delete p.current[T]},dragging:M,draggingDelete:M&&d,style:kd(r,T),key:T,value:E,valueIndex:T},$))}),l&&g&&c.createElement(S9,Ee({key:"a11y"},$,{value:o[x],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),b5e=function(t){var n=t.prefixCls,r=t.style,i=t.children,a=t.value,o=t.onClick,s=c.useContext(Vf),l=s.min,u=s.max,d=s.direction,f=s.includedStart,m=s.includedEnd,p=s.included,v="".concat(n,"-text"),h=iN(d,a,l,u);return c.createElement("span",{className:ne(v,U({},"".concat(v,"-active"),p&&f<=a&&a<=m)),style:A(A({},h),r),onMouseDown:function(w){w.stopPropagation()},onClick:function(){o(a)}},i)},y5e=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,a="".concat(n,"-mark");return r.length?c.createElement("div",{className:a},r.map(function(o){var s=o.value,l=o.style,u=o.label;return c.createElement(b5e,{key:s,prefixCls:a,style:l,value:s,onClick:i},u)})):null},w5e=function(t){var n=t.prefixCls,r=t.value,i=t.style,a=t.activeStyle,o=c.useContext(Vf),s=o.min,l=o.max,u=o.direction,d=o.included,f=o.includedStart,m=o.includedEnd,p="".concat(n,"-dot"),v=d&&f<=r&&r<=m,h=A(A({},iN(u,r,s,l)),typeof i=="function"?i(r):i);return v&&(h=A(A({},h),typeof a=="function"?a(r):a)),c.createElement("span",{className:ne(p,U({},"".concat(p,"-active"),v)),style:h})},x5e=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,a=t.style,o=t.activeStyle,s=c.useContext(Vf),l=s.min,u=s.max,d=s.step,f=c.useMemo(function(){var m=new Set;if(r.forEach(function(v){m.add(v.value)}),i&&d!==null)for(var p=l;p<=u;)m.add(p),p+=d;return Array.from(m)},[l,u,d,i,r]);return c.createElement("div",{className:"".concat(n,"-step")},f.map(function(m){return c.createElement(w5e,{prefixCls:n,key:m,value:m,style:a,activeStyle:o})}))},C9=function(t){var n=t.prefixCls,r=t.style,i=t.start,a=t.end,o=t.index,s=t.onStartMove,l=t.replaceCls,u=c.useContext(Vf),d=u.direction,f=u.min,m=u.max,p=u.disabled,v=u.range,h=u.classNames,g="".concat(n,"-track"),w=e6(i,f,m),b=e6(a,f,m),y=function(k){!p&&s&&s(k,-1)},x={};switch(d){case"rtl":x.right="".concat(w*100,"%"),x.width="".concat(b*100-w*100,"%");break;case"btt":x.bottom="".concat(w*100,"%"),x.height="".concat(b*100-w*100,"%");break;case"ttb":x.top="".concat(w*100,"%"),x.height="".concat(b*100-w*100,"%");break;default:x.left="".concat(w*100,"%"),x.width="".concat(b*100-w*100,"%")}var C=l||ne(g,U(U({},"".concat(g,"-").concat(o+1),o!==null&&v),"".concat(n,"-track-draggable"),s),h.track);return c.createElement("div",{className:C,style:A(A({},x),r),onMouseDown:y,onTouchStart:y})},S5e=function(t){var n=t.prefixCls,r=t.style,i=t.values,a=t.startPoint,o=t.onStartMove,s=c.useContext(Vf),l=s.included,u=s.range,d=s.min,f=s.styles,m=s.classNames,p=c.useMemo(function(){if(!u){if(i.length===0)return[];var h=a??d,g=i[0];return[{start:Math.min(h,g),end:Math.max(h,g)}]}for(var w=[],b=0;bC5e&&d<$.length:!1,S(ee),V(G,ve,ee)},le=function oe(de){de.preventDefault(),document.removeEventListener("mouseup",oe),document.removeEventListener("mousemove",te),D.current&&(D.current.removeEventListener("touchmove",N.current),D.current.removeEventListener("touchend",O.current)),N.current=null,O.current=null,D.current=null,s(ee),b(-1),S(!1)};document.addEventListener("mouseup",le),document.addEventListener("mousemove",te),Q.currentTarget.addEventListener("touchend",le),Q.currentTarget.addEventListener("touchmove",te),N.current=te,O.current=le,D.current=Q.currentTarget},W=c.useMemo(function(){var q=Fe(n).sort(function(K,Y){return K-Y}),Q=Fe($).sort(function(K,Y){return K-Y}),G={};Q.forEach(function(K){G[K]=(G[K]||0)+1}),q.forEach(function(K){G[K]=(G[K]||0)-1});var X=u?1:0,re=Object.values(G).reduce(function(K,Y){return K+Math.abs(Y)},0);return re<=X?$:n},[n,$,u]);return[w,p,C,W,B]}function _5e(e,t,n,r,i,a){var o=c.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),s=c.useCallback(function(p){if(n!==null){var v=e+Math.round((o(p)-e)/n)*n,h=function(y){return(String(y).split(".")[1]||"").length},g=Math.max(h(n),h(t),h(e)),w=Number(v.toFixed(g));return e<=w&&w<=t?w:null}return null},[n,e,t,o]),l=c.useCallback(function(p){var v=o(p),h=r.map(function(b){return b.value});n!==null&&h.push(s(p)),h.push(e,t);var g=h[0],w=t-e;return h.forEach(function(b){var y=Math.abs(v-b);y<=w&&(g=b,w=y)}),g},[e,t,r,n,o,s]),u=function p(v,h,g){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof h=="number"){var b,y=v[g],x=y+h,C=[];r.forEach(function(E){C.push(E.value)}),C.push(e,t),C.push(s(y));var S=h>0?1:-1;w==="unit"?C.push(s(y+S*n)):C.push(s(x)),C=C.filter(function(E){return E!==null}).filter(function(E){return h<0?E<=y:E>=y}),w==="unit"&&(C=C.filter(function(E){return E!==y}));var k=w==="unit"?y:x;b=C[0];var _=Math.abs(b-k);if(C.forEach(function(E){var T=Math.abs(E-k);T<_&&(b=E,_=T)}),b===void 0)return h<0?e:t;if(w==="dist")return b;if(Math.abs(h)>1){var $=Fe(v);return $[g]=b,p($,h-S,g,w)}return b}else{if(h==="min")return e;if(h==="max")return t}},d=function(v,h,g){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v[g],y=u(v,h,g,w);return{value:y,changed:y!==b}},f=function(v){return a===null&&v===0||typeof a=="number"&&v3&&arguments[3]!==void 0?arguments[3]:"unit",b=v.map(l),y=b[g],x=u(b,h,g,w);if(b[g]=x,i===!1){var C=a||0;g>0&&b[g-1]!==y&&(b[g]=Math.max(b[g],b[g-1]+C)),g0;$-=1)for(var E=!0;f(b[$]-b[$-1])&&E;){var T=d(b,-1,$-1);b[$-1]=T.value,E=T.changed}for(var M=b.length-1;M>0;M-=1)for(var j=!0;f(b[M]-b[M-1])&&j;){var I=d(b,-1,M-1);b[M-1]=I.value,j=I.changed}for(var N=0;N=0?D:!1},[D,Pe]),xe=c.useMemo(function(){return Object.keys(X||{}).map(function(Ze){var Le=X[Ze],ot={value:Number(Ze)};return Le&&mt(Le)==="object"&&!c.isValidElement(Le)&&("label"in Le||"style"in Le)?(ot.style=Le.style,ot.label=Le.label):ot.label=Le,ot}).filter(function(Ze){var Le=Ze.label;return Le||typeof Le=="number"}).sort(function(Ze,Le){return Ze.value-Le.value})},[X]),ye=_5e(_e,Se,Pe,xe,N,De),Te=ie(ye,2),Ie=Te[0],ke=Te[1],je=Ut(k,{value:S}),He=ie(je,2),Be=He[0],ct=He[1],Ve=c.useMemo(function(){var Ze=Be==null?[]:Array.isArray(Be)?Be:[Be],Le=ie(Ze,1),ot=Le[0],ht=ot===void 0?_e:ot,Et=Be===null?[]:[ht];if(ce){if(Et=Fe(Ze),$||Be===void 0){var Rt=$>=0?$+1:2;for(Et=Et.slice(0,Rt);Et.length=0&&pe.current.focus(Ze)}Ge(null)},[Qe]);var pt=c.useMemo(function(){return se&&Pe===null?!1:se},[se,Pe]),yt=Vt(function(Ze,Le){Re(Ze,Le),T==null||T(Ye(Ve))}),zt=it!==-1;c.useEffect(function(){if(!zt){var Ze=Ve.lastIndexOf(be);pe.current.focus(Ze)}},[zt]);var $t=c.useMemo(function(){return Fe(Ce).sort(function(Ze,Le){return Ze-Le})},[Ce]),ze=c.useMemo(function(){return ce?[$t[0],$t[$t.length-1]]:[_e,$t[0]]},[$t,ce,_e]),me=ie(ze,2),Me=me[0],We=me[1];c.useImperativeHandle(t,function(){return{focus:function(){pe.current.focus(0)},blur:function(){var Le,ot=document,ht=ot.activeElement;(Le=we.current)!==null&&Le!==void 0&&Le.contains(ht)&&(ht==null||ht.blur())}}}),c.useEffect(function(){p&&pe.current.focus(0)},[]);var wt=c.useMemo(function(){return{min:_e,max:Se,direction:fe,disabled:d,keyboard:m,step:Pe,included:H,includedStart:Me,includedEnd:We,range:ce,tabIndex:ee,ariaLabelForHandle:te,ariaLabelledByForHandle:le,ariaRequired:oe,ariaValueTextFormatterForHandle:de,styles:s||{},classNames:o||{}}},[_e,Se,fe,d,m,Pe,H,Me,We,ce,ee,te,le,oe,de,s,o]);return c.createElement(Vf.Provider,{value:wt},c.createElement("div",{ref:we,className:ne(r,i,U(U(U(U({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),z),"".concat(r,"-horizontal"),!z),"".concat(r,"-with-marks"),xe.length)),style:a,onMouseDown:Xe,id:l},c.createElement("div",{className:ne("".concat(r,"-rail"),o==null?void 0:o.rail),style:A(A({},q),s==null?void 0:s.rail)}),Z!==!1&&c.createElement(S5e,{prefixCls:r,style:B,values:Ve,startPoint:V,onStartMove:pt?yt:void 0}),c.createElement(x5e,{prefixCls:r,marks:xe,dots:re,style:Q,activeStyle:G}),c.createElement(g5e,{ref:pe,prefixCls:r,style:W,values:Ce,draggingIndex:it,draggingDelete:Oe,onStartMove:yt,onOffsetChange:st,onFocus:v,onBlur:h,handleRender:K,activeHandleRender:Y,onChangeComplete:Ae,onDelete:$e?et:void 0}),c.createElement(y5e,{prefixCls:r,marks:xe,onClick:Ke})))});const Zee=c.createContext({}),_9=c.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=c.useRef(null),a=n&&!r,o=c.useRef(null);function s(){tn.cancel(o.current),o.current=null}function l(){o.current=tn(()=>{var u;(u=i.current)===null||u===void 0||u.forceAlign(),o.current=null})}return c.useEffect(()=>(a?l():s(),s),[a,e.title]),c.createElement(sa,Object.assign({ref:ri(i,t)},e,{open:a}))}),P5e=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:l,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:m,handleActiveOutlineColor:p,handleLineWidth:v,handleLineWidthHover:h,motionDurationMid:g}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",height:r,margin:`${ae(o)} ${ae(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ae(a)} ${ae(o)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ae(v)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(v).mul(-1).equal(),insetBlockStart:u(v).mul(-1).equal(),width:u(d).add(u(v).mul(2)).equal(),height:u(d).add(u(v).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ae(v)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` + inset-inline-start ${g}, + inset-block-start ${g}, + width ${g}, + height ${g}, + box-shadow ${g}, + outline ${g} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:u(f).sub(d).div(2).add(h).mul(-1).equal(),insetBlockStart:u(f).sub(d).div(2).add(h).mul(-1).equal(),width:u(f).add(u(h).mul(2)).equal(),height:u(f).add(u(h).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ae(h)} ${m}`,outline:`6px solid ${p}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${ae(v)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` + ${t}-dot + `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${ae(v)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` + ${t}-mark-text, + ${t}-dot + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},ete=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,l=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",p=s(r).mul(3).sub(i).div(2).equal(),v=s(i).sub(r).div(2).equal(),h=t?{borderWidth:`${ae(v)} 0`,transform:`translateY(${ae(s(v).mul(-1).equal())})`}:{borderWidth:`0 ${ae(v)}`,transform:`translateX(${ae(e.calc(v).mul(-1).equal())})`};return{[l]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},h),[`${n}-handle`]:{[f]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:s(r).mul(3).add(t?0:o).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},T5e=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},ete(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},O5e=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},ete(e,!1)),{height:"100%"})}},I5e=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,a=e.lineWidth+1*1.5,o=e.colorPrimary,s=new rn(o).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:o,handleActiveOutlineColor:s,handleColorDisabled:new rn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},R5e=sn("Slider",e=>{const t=Kt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[P5e(t),T5e(t),O5e(t)]},I5e);function DE(){const[e,t]=c.useState(!1),n=c.useRef(null),r=()=>{tn.cancel(n.current)},i=a=>{r(),a?t(a):n.current=tn(()=>{t(a)})};return c.useEffect(()=>r,[]),[e,i]}var M5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const tte=L.forwardRef((e,t)=>{var n,r,i,a,o,s,l,u,d,f;const{prefixCls:m,range:p,className:v,rootClassName:h,style:g,disabled:w,tooltipPrefixCls:b,tipFormatter:y,tooltipVisible:x,getTooltipPopupContainer:C,tooltipPlacement:S,tooltip:k={},onChangeComplete:_,classNames:$,styles:E}=e,T=M5e(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:M}=e,{direction:j,slider:I,getPrefixCls:N,getPopupContainer:O}=L.useContext(xt),D=L.useContext(Ur),F=w??D,{handleRender:z,direction:R}=L.useContext(Zee),V=(R||j)==="rtl",[B,W]=DE(),[q,Q]=DE(),G=Object.assign({},k),{open:X,placement:re,getPopupContainer:K,prefixCls:Y,formatter:Z}=G,J=X??x,ee=(B||q)&&J!==!1,te=N5e(Z,y),[le,oe]=DE(),de=Pe=>{_==null||_(Pe),oe(!1)},pe=(Pe,De)=>Pe||(De?V?"left":"right":"top"),we=N("slider",m),[fe,ge,ue]=R5e(we),ce=ne(v,I==null?void 0:I.className,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.root,$==null?void 0:$.root,h,{[`${we}-rtl`]:V,[`${we}-lock`]:le},ge,ue);V&&!T.vertical&&(T.reverse=!T.reverse),L.useEffect(()=>{const Pe=()=>{tn(()=>{Q(!1)},1)};return document.addEventListener("mouseup",Pe),()=>{document.removeEventListener("mouseup",Pe)}},[]);const $e=p&&!J,se=z||((Pe,De)=>{const{index:xe}=De,ye=Pe.props;function Te(He,Be,ct){var Ve,Ye,Ne,Ae;ct&&((Ye=(Ve=T)[He])===null||Ye===void 0||Ye.call(Ve,Be)),(Ae=(Ne=ye)[He])===null||Ae===void 0||Ae.call(Ne,Be)}const Ie=Object.assign(Object.assign({},ye),{onMouseEnter:He=>{W(!0),Te("onMouseEnter",He)},onMouseLeave:He=>{W(!1),Te("onMouseLeave",He)},onMouseDown:He=>{Q(!0),oe(!0),Te("onMouseDown",He)},onFocus:He=>{var Be;Q(!0),(Be=T.onFocus)===null||Be===void 0||Be.call(T,He),Te("onFocus",He,!0)},onBlur:He=>{var Be;Q(!1),(Be=T.onBlur)===null||Be===void 0||Be.call(T,He),Te("onBlur",He,!0)}}),ke=L.cloneElement(Pe,Ie),je=(!!J||ee)&&te!==null;return $e?ke:L.createElement(_9,Object.assign({},G,{prefixCls:N("tooltip",Y??b),title:te?te(De.value):"",open:je,placement:pe(re??S,M),key:xe,classNames:{root:`${we}-tooltip`},getPopupContainer:K||C||O}),ke)}),ve=$e?(Pe,De)=>{const xe=L.cloneElement(Pe,{style:Object.assign(Object.assign({},Pe.props.style),{visibility:"hidden"})});return L.createElement(_9,Object.assign({},G,{prefixCls:N("tooltip",Y??b),title:te?te(De.value):"",open:te!==null&&ee,placement:pe(re??S,M),key:"tooltip",classNames:{root:`${we}-tooltip`},getPopupContainer:K||C||O,draggingDelete:De.draggingDelete}),xe)}:void 0,he=Object.assign(Object.assign(Object.assign(Object.assign({},(r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.root),I==null?void 0:I.style),E==null?void 0:E.root),g),_e=Object.assign(Object.assign({},(i=I==null?void 0:I.styles)===null||i===void 0?void 0:i.tracks),E==null?void 0:E.tracks),Se=ne((a=I==null?void 0:I.classNames)===null||a===void 0?void 0:a.tracks,$==null?void 0:$.tracks);return fe(L.createElement(E5e,Object.assign({},T,{classNames:Object.assign({handle:ne((o=I==null?void 0:I.classNames)===null||o===void 0?void 0:o.handle,$==null?void 0:$.handle),rail:ne((s=I==null?void 0:I.classNames)===null||s===void 0?void 0:s.rail,$==null?void 0:$.rail),track:ne((l=I==null?void 0:I.classNames)===null||l===void 0?void 0:l.track,$==null?void 0:$.track)},Se?{tracks:Se}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(u=I==null?void 0:I.styles)===null||u===void 0?void 0:u.handle),E==null?void 0:E.handle),rail:Object.assign(Object.assign({},(d=I==null?void 0:I.styles)===null||d===void 0?void 0:d.rail),E==null?void 0:E.rail),track:Object.assign(Object.assign({},(f=I==null?void 0:I.styles)===null||f===void 0?void 0:f.track),E==null?void 0:E.track)},Object.keys(_e).length?{tracks:_e}:{}),step:T.step,range:p,className:ce,style:he,disabled:F,ref:t,prefixCls:we,handleRender:se,activeHandleRender:ve,onChangeComplete:de})))});var D5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,colors:n,type:r,color:i,range:a=!1,className:o,activeIndex:s,onActive:l,onDragStart:u,onDragChange:d,onKeyDelete:f}=e,m=D5e(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},m),{track:!1}),v=c.useMemo(()=>`linear-gradient(90deg, ${n.map(S=>`${S.color} ${S.percent}%`).join(", ")})`,[n]),h=c.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),g=Vt(u),w=Vt(d),b=c.useMemo(()=>({onDragStart:g,onDragChange:w}),[]),y=Vt((C,S)=>{const{onFocus:k,style:_,className:$,onKeyDown:E}=C.props,T=Object.assign({},_);return r==="gradient"&&(T.background=vQ(n,S.value)),c.cloneElement(C,{onFocus:M=>{l==null||l(S.index),k==null||k(M)},style:T,className:ne($,{[`${t}-slider-handle-active`]:s===S.index}),onKeyDown:M=>{(M.key==="Delete"||M.key==="Backspace")&&f&&f(S.index),E==null||E(M)}})}),x=c.useMemo(()=>({direction:"ltr",handleRender:y}),[]);return c.createElement(Zee.Provider,{value:x},c.createElement(Jee.Provider,{value:b},c.createElement(tte,Object.assign({},p,{className:ne(o,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:v},handle:h?{background:h}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},j5e=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=o=>n(o[0]),a=o=>r(o[0]);return c.createElement(nte,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:a}))};function $9(e){return Fe(e).sort((t,n)=>t.percent-n.percent)}const F5e=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:o,onGradientDragging:s,colors:l}=e,u=n==="gradient",d=c.useMemo(()=>l.map(w=>({percent:w.percent,color:w.color.toRgbString()})),[l]),f=c.useMemo(()=>d.map(w=>w.percent),[d]),m=c.useRef(d),p=w=>{let{rawValues:b,draggingIndex:y,draggingValue:x}=w;if(b.length>d.length){const C=vQ(d,x),S=Fe(d);S.splice(y,0,{percent:x,color:C}),m.current=S}else m.current=d;s(!0),r(new fo($9(m.current)),!0)},v=w=>{let{deleteIndex:b,draggingIndex:y,draggingValue:x}=w,C=Fe(m.current);b!==-1?C.splice(b,1):(C[y]=Object.assign(Object.assign({},C[y]),{percent:x}),C=$9(C)),r(new fo(C),!0)},h=w=>{const b=Fe(d);b.splice(w,1);const y=new fo(b);r(y),i(y)},g=w=>{i(new fo(d)),o>=w.length&&a(w.length-1),s(!1)};return u?c.createElement(nte,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:g,disabled:!1,type:"gradient",activeIndex:o,onActive:a,onDragStart:p,onDragChange:v,onKeyDelete:h}):null},A5e=c.memo(F5e);var L5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const e=c.useContext(zee),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:a,value:o,disabledAlpha:s,onChange:l,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:m}=e,p=L5e(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),v=L.useMemo(()=>o.cleared?[{percent:0,color:new fo("")},{percent:100,color:new fo("")}]:o.getColors(),[o]),h=!o.isGradient(),[g,w]=L.useState(o);nn(()=>{var I;h||w((I=v[f])===null||I===void 0?void 0:I.color)},[m,f]);const b=L.useMemo(()=>{var I;return h?o:m?g:(I=v[f])===null||I===void 0?void 0:I.color},[o,f,h,g,m]),[y,x]=L.useState(b),[C,S]=L.useState(0),k=y!=null&&y.equals(b)?b:y;nn(()=>{x(b)},[C,b==null?void 0:b.toHexString()]);const _=(I,N)=>{let O=oa(I);if(o.cleared){const F=O.toRgb();if(!F.r&&!F.g&&!F.b&&N){const{type:z,value:R=0}=N;O=new fo({h:z==="hue"?R:0,s:1,b:1,a:z==="alpha"?R/100:1})}else O=Iw(O)}if(t==="single")return O;const D=Fe(v);return D[f]=Object.assign(Object.assign({},D[f]),{color:O}),new fo(D)},$=(I,N,O)=>{const D=_(I,O);x(D.isGradient()?D.getColors()[f].color:D),l(D,N)},E=(I,N)=>{d(_(I,N)),S(O=>O+1)},T=I=>{l(_(I))};let M=null;const j=r.length>1;return(a||j)&&(M=L.createElement("div",{className:`${i}-operation`},j&&L.createElement(Bee,{size:"small",options:r,value:t,onChange:n}),L.createElement(Vee,Object.assign({prefixCls:i,value:o,onChange:I=>{l(I),u==null||u()}},p)))),L.createElement(L.Fragment,null,M,L.createElement(A5e,Object.assign({},e,{colors:v})),L.createElement(d_e,{prefixCls:i,value:k==null?void 0:k.toHsb(),disabledAlpha:s,onChange:(I,N)=>{$(I,!0,N)},onChangeComplete:(I,N)=>{E(I,N)},components:B5e}),L.createElement(p5e,Object.assign({value:b,onChange:T,prefixCls:i,disabledAlpha:s},p)))},P9=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=c.useContext(Hee);return Array.isArray(n)?L.createElement(a$e,{value:t,presets:n,prefixCls:e,onChange:r}):null},z5e=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:p,onActive:v,format:h,onFormatChange:g,gradientDragging:w,onGradientDragging:b,disabledFormat:y}=e,x=`${t}-inner`,C=L.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:o,allowClear:s,disabledAlpha:l,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:p,onActive:v,format:h,onFormatChange:g,gradientDragging:w,onGradientDragging:b,disabledFormat:y}),[t,i,a,o,s,l,u,d,f,m,p,v,h,g,w,b,y]),S=L.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),k=L.createElement("div",{className:`${x}-content`},L.createElement(E9,null),Array.isArray(n)&&L.createElement(GMe,null),L.createElement(P9,null));return L.createElement(zee.Provider,{value:C},L.createElement(Hee.Provider,{value:S},L.createElement("div",{className:x},typeof r=="function"?r(k,{components:{Picker:E9,Presets:P9}}):k)))};var H5e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{color:n,prefixCls:r,open:i,disabled:a,format:o,className:s,showText:l,activeIndex:u}=e,d=H5e(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,m=`${f}-text`,p=`${m}-cell`,[v]=la("ColorPicker"),h=L.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return v.transparent;if(n.isGradient())return n.getColors().map((y,x)=>{const C=u!==-1&&u!==x;return L.createElement("span",{key:x,className:ne(p,C&&`${p}-inactive`)},y.color.toRgbString()," ",y.percent,"%")});const w=n.toHexString().toUpperCase(),b=nM(n);switch(o){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return b<100?`${w.slice(0,7)},${b}%`:w}},[n,o,l,u]),g=c.useMemo(()=>n.cleared?L.createElement(Vee,{prefixCls:r}):L.createElement(JR,{prefixCls:r,color:n.toCssString()}),[n,r]);return L.createElement("div",Object.assign({ref:t,className:ne(f,s,{[`${f}-active`]:i,[`${f}-disabled`]:a})},er(d)),g,l&&L.createElement("div",{className:m},h))});function W5e(e,t,n){const[r]=la("ColorPicker"),[i,a]=Ut(e,{value:t}),[o,s]=c.useState("single"),[l,u]=c.useMemo(()=>{const h=(Array.isArray(n)?n:[n]).filter(y=>y);h.length||h.push("single");const g=new Set(h),w=[],b=(y,x)=>{g.has(y)&&w.push({label:x,value:y})};return b("single",r.singleColor),b("gradient",r.gradientColor),[w,g]},[n]),[d,f]=c.useState(null),m=Vt(h=>{f(h),a(h)}),p=c.useMemo(()=>{const h=oa(i||"");return h.equals(d)?d:h},[i,d]),v=c.useMemo(()=>{var h;return u.has(o)?o:(h=l[0])===null||h===void 0?void 0:h.value},[u,o,l]);return c.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,m,v,s,l]}const rte=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),T9=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:a,colorFillSecondary:o}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},rte("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${ae(a)} ${o}`,borderRadius:"inherit"}})}},U5e=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:a,marginXXS:o,paddingXXS:s,controlHeightSM:l,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:p,lineWidth:v}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${ae(a)}`,marginInlineStart:o},[`${t}-format-select${n}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(o).equal(),fontSize:r,lineHeight:ae(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:o,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:o,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${ae(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:ae(e.calc(l).sub(e.calc(v).mul(2)).equal())},[`${n}-input-prefix`]:{color:m}}}}}},q5e=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:a,colorBgElevated:o,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:u}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:a},[`${t}-handler`]:{width:u,height:u,border:`${ae(l)} solid ${o}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},G5e=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:a,fontSizeSM:o,colorText:s,lineHeightSM:l,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:p,paddingXS:v,fontHeightSM:h}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:h,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${ae(v)} 0`},"&-label":{fontSize:o,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(u).mul(4)).equal(),height:e.calc(a).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${ae(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:o,color:r}}}},K5e=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:a,colorPickerHandlerSizeSM:o,colorPickerSliderHeight:s,marginSM:l,marginXS:u}=e,d=e.calc(o).sub(e.calc(a).mul(2).equal()).equal(),f=e.calc(o).add(e.calc(a).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[rte(ae(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:o,height:o,border:`${ae(a)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:u,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},t6=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${n}`,outline:0}),Y5e=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},O9=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:a,colorSplit:o,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${ae(a)} solid ${o}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},X5e=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:a,colorErrorOutline:o,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},t6(e,n,o))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},t6(e,r,s))}}},Q5e=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:a,borderRadius:o,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:u,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:o},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:ae(a)}}}},J5e=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:a,colorBgElevated:o,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:m,controlHeight:p,controlHeightSM:v,colorBgTextActive:h,colorPickerPresetColorSize:g,colorPickerPreviewSize:w,lineWidth:b,colorBorder:y,paddingXXS:x,fontSize:C,colorPrimaryHover:S,controlOutline:k}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${ae(m)} 0 ${ae(f)}`}},[`${n}-panel`]:Object.assign({},q5e(e))},K5e(e)),T9(e,w)),U5e(e)),G5e(e)),O9(e,g,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:d,border:`${ae(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:o,padding:e.calc(x).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(x).sub(b)).equal(),fontSize:C,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},t6(e,i,k)),"&-disabled":{color:s,background:u,cursor:"not-allowed","&:hover":{borderColor:h},[`${n}-trigger-text`]:{color:s}}},O9(e,v)),T9(e,v)),X5e(e)),Q5e(e))},Y5e(e))},Af(e,{focusElCls:`${n}-trigger-active`})]},Z5e=sn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=Kt(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[J5e(i)]});var e8e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:a,allowClear:o=!1,presets:s,children:l,trigger:u="click",open:d,disabled:f,placement:m="bottomLeft",arrow:p=!0,panelRender:v,showText:h,style:g,className:w,size:b,rootClassName:y,prefixCls:x,styles:C,disabledAlpha:S=!1,onFormatChange:k,onChange:_,onClear:$,onOpenChange:E,onChangeComplete:T,getPopupContainer:M,autoAdjustOverflow:j=!0,destroyTooltipOnHide:I,disabledFormat:N}=e,O=e8e(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:D,direction:F,colorPicker:z}=c.useContext(xt),R=c.useContext(Ur),H=f??R,[V,B]=Ut(!1,{value:d,postState:Ie=>!H&&Ie,onChange:E}),[W,q]=Ut(i,{value:i,defaultValue:a,onChange:k}),Q=D("color-picker",x),[G,X,re,K,Y]=W5e(r,n,t),Z=c.useMemo(()=>nM(G)<100,[G]),[J,ee]=L.useState(null),te=Ie=>{if(T){let ke=oa(Ie);S&&Z&&(ke=Iw(Ie)),T(ke)}},le=(Ie,ke)=>{let je=oa(Ie);S&&Z&&(je=Iw(je)),X(je),ee(null),_&&_(je,je.toCssString()),ke||te(je)},[oe,de]=L.useState(0),[pe,we]=L.useState(!1),fe=Ie=>{if(K(Ie),Ie==="single"&&G.isGradient())de(0),le(new fo(G.getColors()[0].color)),ee(G);else if(Ie==="gradient"&&!G.isGradient()){const ke=Z?Iw(G):G;le(new fo(J||[{percent:0,color:ke},{percent:100,color:ke}]))}},{status:ge}=L.useContext(ni),{compactSize:ue,compactItemClassnames:ce}=ol(Q,F),$e=Br(Ie=>{var ke;return(ke=b??ue)!==null&&ke!==void 0?ke:Ie}),se=Ln(Q),[ve,he,_e]=Z5e(Q,se),Se={[`${Q}-rtl`]:F},Pe=ne(y,_e,se,Se),De=ne(el(Q,ge),{[`${Q}-sm`]:$e==="small",[`${Q}-lg`]:$e==="large"},ce,z==null?void 0:z.className,Pe,w,he),xe=ne(Q,Pe),ye={open:V,trigger:u,placement:m,arrow:p,rootClassName:y,getPopupContainer:M,autoAdjustOverflow:j,destroyTooltipOnHide:I},Te=Object.assign(Object.assign({},z==null?void 0:z.style),g);return ve(L.createElement(Lf,Object.assign({style:C==null?void 0:C.popup,styles:{body:C==null?void 0:C.popupOverlayInner},onOpenChange:Ie=>{(!Ie||!H)&&B(Ie)},content:L.createElement(Zs,{form:!0},L.createElement(z5e,{mode:re,onModeChange:fe,modeOptions:Y,prefixCls:Q,value:G,allowClear:o,disabled:H,disabledAlpha:S,presets:s,panelRender:v,format:W,onFormatChange:q,onChange:le,onChangeComplete:te,onClear:$,activeIndex:oe,onActive:de,gradientDragging:pe,onGradientDragging:we,disabledFormat:N})),classNames:{root:xe}},ye),l||L.createElement(V5e,Object.assign({activeIndex:V?oe:-1,open:V,className:De,style:Te,prefixCls:Q,disabled:H,showText:h,format:W},O,{color:G}))))},t8e=id(aN,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);aN._InternalPanelDoNotUseOrYouWillBeFired=t8e;var n8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},r8e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:n8e}))},ite=c.forwardRef(r8e),i8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},a8e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:i8e}))},ate=c.forwardRef(a8e),o8e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},s8e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:o8e}))},l8e=c.forwardRef(s8e);function c8e(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function u8e(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function ote(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=$k(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[c.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[d8e,f8e]=["week","WeekPicker"],[m8e,p8e]=["month","MonthPicker"],[v8e,h8e]=["year","YearPicker"],[g8e,b8e]=["quarter","QuarterPicker"],[ste,I9]=["time","TimePicker"],y8e=e=>c.createElement(dn,Object.assign({size:"small",type:"primary"},e));function lte(e){return c.useMemo(()=>Object.assign({button:y8e},e),[e])}var w8e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ic.forwardRef((n,r)=>{var i;const{prefixCls:a,getPopupContainer:o,components:s,className:l,style:u,placement:d,size:f,disabled:m,bordered:p=!0,placeholder:v,popupClassName:h,dropdownClassName:g,status:w,rootClassName:b,variant:y,picker:x}=n,C=w8e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=c.useRef(null),{getPrefixCls:k,direction:_,getPopupContainer:$,rangePicker:E}=c.useContext(xt),T=k("picker",a),{compactSize:M,compactItemClassnames:j}=ol(T,_),I=k(),[N,O]=Wc("rangePicker",y,p),D=Ln(T),[F,z,R]=cee(T,D),[H]=ote(n,T),V=lte(s),B=Br(ee=>{var te;return(te=f??M)!==null&&te!==void 0?te:ee}),W=c.useContext(Ur),q=m??W,Q=c.useContext(ni),{hasFeedback:G,status:X,feedbackIcon:re}=Q,K=c.createElement(c.Fragment,null,x===ste?c.createElement(ate,null):c.createElement(ite,null),G&&re);c.useImperativeHandle(r,()=>S.current);const[Y]=la("Calendar",Jx),Z=Object.assign(Object.assign({},Y),n.locale),[J]=hs("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return F(c.createElement(Zs,{space:!0},c.createElement(hIe,Object.assign({separator:c.createElement("span",{"aria-label":"to",className:`${T}-separator`},c.createElement(l8e,null)),disabled:q,ref:S,placement:d,placeholder:u8e(Z,x,v),suffixIcon:K,prevIcon:c.createElement("span",{className:`${T}-prev-icon`}),nextIcon:c.createElement("span",{className:`${T}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${T}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${T}-super-next-icon`}),transitionName:`${I}-slide-up`,picker:x},C,{className:ne({[`${T}-${B}`]:B,[`${T}-${N}`]:O},el(T,Vc(X,w),G),z,j,l,E==null?void 0:E.className,R,D,b),style:Object.assign(Object.assign({},E==null?void 0:E.style),u),locale:Z.lang,prefixCls:T,getPopupContainer:o||$,generateConfig:e,components:V,direction:_,classNames:{popup:ne(z,h||g,R,D,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:J})},allowClear:H}))))});var S8e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const t=(l,u)=>{const d=u===I9?"timePicker":"datePicker";return c.forwardRef((m,p)=>{var v;const{prefixCls:h,getPopupContainer:g,components:w,style:b,className:y,rootClassName:x,size:C,bordered:S,placement:k,placeholder:_,popupClassName:$,dropdownClassName:E,disabled:T,status:M,variant:j,onCalendarChange:I}=m,N=S8e(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:O,direction:D,getPopupContainer:F,[d]:z}=c.useContext(xt),R=O("picker",h),{compactSize:H,compactItemClassnames:V}=ol(R,D),B=c.useRef(null),[W,q]=Wc("datePicker",j,S),Q=Ln(R),[G,X,re]=cee(R,Q);c.useImperativeHandle(p,()=>B.current);const K={showToday:!0},Y=l||m.picker,Z=O(),{onSelect:J,multiple:ee}=N,te=J&&l==="time"&&!ee,le=(Pe,De,xe)=>{I==null||I(Pe,De,xe),te&&J(Pe)},[oe,de]=ote(m,R),pe=lte(w),we=Br(Pe=>{var De;return(De=C??H)!==null&&De!==void 0?De:Pe}),fe=c.useContext(Ur),ge=T??fe,ue=c.useContext(ni),{hasFeedback:ce,status:$e,feedbackIcon:se}=ue,ve=c.createElement(c.Fragment,null,Y==="time"?c.createElement(ate,null):c.createElement(ite,null),ce&&se),[he]=la("DatePicker",Jx),_e=Object.assign(Object.assign({},he),m.locale),[Se]=hs("DatePicker",(v=m.popupStyle)===null||v===void 0?void 0:v.zIndex);return G(c.createElement(Zs,{space:!0},c.createElement(SIe,Object.assign({ref:B,placeholder:c8e(_e,Y,_),suffixIcon:ve,placement:k,prevIcon:c.createElement("span",{className:`${R}-prev-icon`}),nextIcon:c.createElement("span",{className:`${R}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${R}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${R}-super-next-icon`}),transitionName:`${Z}-slide-up`,picker:l,onCalendarChange:le},K,N,{locale:_e.lang,className:ne({[`${R}-${we}`]:we,[`${R}-${W}`]:q},el(R,Vc($e,M),ce),X,V,z==null?void 0:z.className,y,re,Q,x),style:Object.assign(Object.assign({},z==null?void 0:z.style),b),prefixCls:R,getPopupContainer:g||F,generateConfig:e,components:pe,direction:D,disabled:ge,classNames:{popup:ne(X,re,Q,x,$||E)},styles:{popup:Object.assign(Object.assign({},m.popupStyle),{zIndex:Se})},allowClear:oe,removeIcon:de}))))})},n=t(),r=t(d8e,f8e),i=t(m8e,p8e),a=t(v8e,h8e),o=t(g8e,b8e),s=t(ste,I9);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:o}},cte=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=C8e(e),s=x8e(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=o,l},as=cte(kOe),k8e=id(as,"popupAlign",void 0,"picker");as._InternalPanelDoNotUseOrYouWillBeFired=k8e;const _8e=id(as.RangePicker,"popupAlign",void 0,"picker");as._InternalRangePanelDoNotUseOrYouWillBeFired=_8e;as.generatePicker=cte;var R9=c.createContext(null),ute=c.createContext({}),$8e=["prefixCls","className","containerRef"],E8e=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,a=ut(t,$8e),o=c.useContext(ute),s=o.panel,l=Yl(s,i);return c.createElement("div",Ee({className:ne("".concat(n,"-content"),r),role:"dialog",ref:l},er(t,{aria:!0}),{"aria-modal":"true"},a))};function M9(e){return typeof e=="string"&&String(Number(e))===e?(An(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var N9={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function P8e(e,t){var n,r,i,a=e.prefixCls,o=e.open,s=e.placement,l=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,p=e.classNames,v=e.rootClassName,h=e.rootStyle,g=e.zIndex,w=e.className,b=e.id,y=e.style,x=e.motion,C=e.width,S=e.height,k=e.children,_=e.mask,$=e.maskClosable,E=e.maskMotion,T=e.maskClassName,M=e.maskStyle,j=e.afterOpenChange,I=e.onClose,N=e.onMouseEnter,O=e.onMouseOver,D=e.onMouseLeave,F=e.onClick,z=e.onKeyDown,R=e.onKeyUp,H=e.styles,V=e.drawerRender,B=c.useRef(),W=c.useRef(),q=c.useRef();c.useImperativeHandle(t,function(){return B.current});var Q=function(ge){var ue=ge.keyCode,ce=ge.shiftKey;switch(ue){case qe.TAB:{if(ue===qe.TAB){if(!ce&&document.activeElement===q.current){var $e;($e=W.current)===null||$e===void 0||$e.focus({preventScroll:!0})}else if(ce&&document.activeElement===W.current){var se;(se=q.current)===null||se===void 0||se.focus({preventScroll:!0})}}break}case qe.ESC:{I&&m&&(ge.stopPropagation(),I(ge));break}}};c.useEffect(function(){if(o&&f){var fe;(fe=B.current)===null||fe===void 0||fe.focus({preventScroll:!0})}},[o]);var G=c.useState(!1),X=ie(G,2),re=X[0],K=X[1],Y=c.useContext(R9),Z;typeof u=="boolean"?Z=u?{}:{distance:0}:Z=u||{};var J=(n=(r=(i=Z)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:Y==null?void 0:Y.pushDistance)!==null&&n!==void 0?n:180,ee=c.useMemo(function(){return{pushDistance:J,push:function(){K(!0)},pull:function(){K(!1)}}},[J]);c.useEffect(function(){if(o){var fe;Y==null||(fe=Y.push)===null||fe===void 0||fe.call(Y)}else{var ge;Y==null||(ge=Y.pull)===null||ge===void 0||ge.call(Y)}},[o]),c.useEffect(function(){return function(){var fe;Y==null||(fe=Y.pull)===null||fe===void 0||fe.call(Y)}},[]);var te=_&&c.createElement(ti,Ee({key:"mask"},E,{visible:o}),function(fe,ge){var ue=fe.className,ce=fe.style;return c.createElement("div",{className:ne("".concat(a,"-mask"),ue,p==null?void 0:p.mask,T),style:A(A(A({},ce),M),H==null?void 0:H.mask),onClick:$&&o?I:void 0,ref:ge})}),le=typeof x=="function"?x(s):x,oe={};if(re&&J)switch(s){case"top":oe.transform="translateY(".concat(J,"px)");break;case"bottom":oe.transform="translateY(".concat(-J,"px)");break;case"left":oe.transform="translateX(".concat(J,"px)");break;default:oe.transform="translateX(".concat(-J,"px)");break}s==="left"||s==="right"?oe.width=M9(C):oe.height=M9(S);var de={onMouseEnter:N,onMouseOver:O,onMouseLeave:D,onClick:F,onKeyDown:z,onKeyUp:R},pe=c.createElement(ti,Ee({key:"panel"},le,{visible:o,forceRender:d,onVisibleChanged:function(ge){j==null||j(ge)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(fe,ge){var ue=fe.className,ce=fe.style,$e=c.createElement(E8e,Ee({id:b,containerRef:ge,prefixCls:a,className:ne(w,p==null?void 0:p.content),style:A(A({},y),H==null?void 0:H.content)},er(e,{aria:!0}),de),k);return c.createElement("div",Ee({className:ne("".concat(a,"-content-wrapper"),p==null?void 0:p.wrapper,ue),style:A(A(A({},oe),ce),H==null?void 0:H.wrapper)},er(e,{data:!0})),V?V($e):$e)}),we=A({},h);return g&&(we.zIndex=g),c.createElement(R9.Provider,{value:ee},c.createElement("div",{className:ne(a,"".concat(a,"-").concat(s),v,U(U({},"".concat(a,"-open"),o),"".concat(a,"-inline"),l)),style:we,tabIndex:-1,ref:B,onKeyDown:Q},te,c.createElement("div",{tabIndex:0,ref:W,style:N9,"aria-hidden":"true","data-sentinel":"start"}),pe,c.createElement("div",{tabIndex:0,ref:q,style:N9,"aria-hidden":"true","data-sentinel":"end"})))}var T8e=c.forwardRef(P8e),O8e=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,a=i===void 0?"rc-drawer":i,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,u=l===void 0?!0:l,d=t.keyboard,f=d===void 0?!0:d,m=t.width,p=m===void 0?378:m,v=t.mask,h=v===void 0?!0:v,g=t.maskClosable,w=g===void 0?!0:g,b=t.getContainer,y=t.forceRender,x=t.afterOpenChange,C=t.destroyOnClose,S=t.onMouseEnter,k=t.onMouseOver,_=t.onMouseLeave,$=t.onClick,E=t.onKeyDown,T=t.onKeyUp,M=t.panelRef,j=c.useState(!1),I=ie(j,2),N=I[0],O=I[1],D=c.useState(!1),F=ie(D,2),z=F[0],R=F[1];nn(function(){R(!0)},[]);var H=z?r:!1,V=c.useRef(),B=c.useRef();nn(function(){H&&(B.current=document.activeElement)},[H]);var W=function(re){var K;if(O(re),x==null||x(re),!re&&B.current&&!((K=V.current)!==null&&K!==void 0&&K.contains(B.current))){var Y;(Y=B.current)===null||Y===void 0||Y.focus({preventScroll:!0})}},q=c.useMemo(function(){return{panel:M}},[M]);if(!y&&!N&&!H&&C)return null;var Q={onMouseEnter:S,onMouseOver:k,onMouseLeave:_,onClick:$,onKeyDown:E,onKeyUp:T},G=A(A({},t),{},{open:H,prefixCls:a,placement:s,autoFocus:u,keyboard:f,width:p,mask:h,maskClosable:w,inline:b===!1,afterOpenChange:W,ref:V},Q);return c.createElement(ute.Provider,{value:q},c.createElement(_1,{open:H||y||N,autoDestroy:!1,getContainer:b,autoLock:h&&(H||N)},c.createElement(T8e,G)))};const dte=e=>{var t,n;const{prefixCls:r,title:i,footer:a,extra:o,loading:s,onClose:l,headerStyle:u,bodyStyle:d,footerStyle:f,children:m,classNames:p,styles:v}=e,{drawer:h}=c.useContext(xt),g=c.useCallback(C=>c.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},C),[l]),[w,b]=uM(Dp(e),Dp(h),{closable:!0,closeIconRender:g}),y=c.useMemo(()=>{var C,S;return!i&&!w?null:c.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(C=h==null?void 0:h.styles)===null||C===void 0?void 0:C.header),u),v==null?void 0:v.header),className:ne(`${r}-header`,{[`${r}-header-close-only`]:w&&!i&&!o},(S=h==null?void 0:h.classNames)===null||S===void 0?void 0:S.header,p==null?void 0:p.header)},c.createElement("div",{className:`${r}-header-title`},b,i&&c.createElement("div",{className:`${r}-title`},i)),o&&c.createElement("div",{className:`${r}-extra`},o))},[w,b,o,u,r,i]),x=c.useMemo(()=>{var C,S;if(!a)return null;const k=`${r}-footer`;return c.createElement("div",{className:ne(k,(C=h==null?void 0:h.classNames)===null||C===void 0?void 0:C.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(S=h==null?void 0:h.styles)===null||S===void 0?void 0:S.footer),f),v==null?void 0:v.footer)},a)},[a,f,r]);return c.createElement(c.Fragment,null,y,c.createElement("div",{className:ne(`${r}-body`,p==null?void 0:p.body,(t=h==null?void 0:h.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=h==null?void 0:h.styles)===null||n===void 0?void 0:n.body),d),v==null?void 0:v.body)},s?c.createElement(rd,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):m),x)},I8e=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},fte=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),mte=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},fte({opacity:e},{opacity:1})),R8e=(e,t)=>[mte(.7,t),fte({transform:I8e(e)},{transform:"none"})],M8e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:mte(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:R8e(i,n)}),{})}}},N8e=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:p,lineType:v,colorSplit:h,marginXS:g,colorIcon:w,colorIconHover:b,colorBgTextHover:y,colorBgTextActive:x,colorText:C,fontWeightStrong:S,footerPaddingBlock:k,footerPaddingInline:_,calc:$}=e,E=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:C,"&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${E}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${E}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${E}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${E}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ae(u)} ${ae(d)}`,fontSize:f,lineHeight:m,borderBottom:`${ae(p)} ${v} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:$(f).add(l).equal(),height:$(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:g,color:w,fontWeight:S,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:b,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:x}},Va(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${ae(k)} ${ae(_)}`,borderTop:`${ae(p)} ${v} ${h}`},"&-rtl":{direction:"rtl"}}}},D8e=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),pte=sn("Drawer",e=>{const t=Kt(e,{});return[N8e(t),M8e(t)]},D8e);var vte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:n,height:r,size:i="default",mask:a=!0,push:o=j8e,open:s,afterOpenChange:l,onClose:u,prefixCls:d,getContainer:f,style:m,className:p,visible:v,afterVisibleChange:h,maskStyle:g,drawerStyle:w,contentWrapperStyle:b}=e,y=vte(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:x,getPrefixCls:C,direction:S,drawer:k}=c.useContext(xt),_=C("drawer",d),[$,E,T]=pte(_),M=f===void 0&&x?()=>x(document.body):f,j=ne({"no-mask":!a,[`${_}-rtl`]:S==="rtl"},t,E,T),I=c.useMemo(()=>n??(i==="large"?736:378),[n,i]),N=c.useMemo(()=>r??(i==="large"?736:378),[r,i]),O={motionName:Mi(_,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},D=q=>({motionName:Mi(_,`panel-motion-${q}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),F=AQ(),[z,R]=hs("Drawer",y.zIndex),{classNames:H={},styles:V={}}=y,{classNames:B={},styles:W={}}=k||{};return $(c.createElement(Zs,{form:!0,space:!0},c.createElement(w1.Provider,{value:R},c.createElement(O8e,Object.assign({prefixCls:_,onClose:u,maskMotion:O,motion:D},y,{classNames:{mask:ne(H.mask,B.mask),content:ne(H.content,B.content),wrapper:ne(H.wrapper,B.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},V.mask),g),W.mask),content:Object.assign(Object.assign(Object.assign({},V.content),w),W.content),wrapper:Object.assign(Object.assign(Object.assign({},V.wrapper),b),W.wrapper)},open:s??v,mask:a,push:o,width:I,height:N,style:Object.assign(Object.assign({},k==null?void 0:k.style),m),className:ne(k==null?void 0:k.className,p),rootClassName:j,getContainer:M,afterOpenChange:l??h,panelRef:F,zIndex:z}),c.createElement(dte,Object.assign({prefixCls:_},y,{onClose:u}))))))},F8e=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,a=vte(e,["prefixCls","style","className","placement"]),{getPrefixCls:o}=c.useContext(xt),s=o("drawer",t),[l,u,d]=pte(s),f=ne(s,`${s}-pure`,`${s}-${i}`,u,d,r);return l(c.createElement("div",{className:f,style:n},c.createElement(dte,Object.assign({prefixCls:s},a))))};hte._InternalPanelDoNotUseOrYouWillBeFired=F8e;function mS(e){return["small","middle","large"].includes(e)}function D9(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const gte=L.createContext({latestIndex:0}),A8e=gte.Provider,L8e=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=c.useContext(gte);return r==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:a},r),n{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=c.useContext(xt),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:f,children:m,direction:p="horizontal",prefixCls:v,split:h,style:g,wrap:w=!1,classNames:b,styles:y}=e,x=B8e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,S]=Array.isArray(l)?l:[l,l],k=mS(S),_=mS(C),$=D9(S),E=D9(C),T=Wr(m,{keepEmpty:!0}),M=u===void 0&&p==="horizontal"?"center":u,j=a("space",v),[I,N,O]=rQ(j),D=ne(j,o==null?void 0:o.className,N,`${j}-${p}`,{[`${j}-rtl`]:s==="rtl",[`${j}-align-${M}`]:M,[`${j}-gap-row-${S}`]:k,[`${j}-gap-col-${C}`]:_},d,f,O),F=ne(`${j}-item`,(r=b==null?void 0:b.item)!==null&&r!==void 0?r:(i=o==null?void 0:o.classNames)===null||i===void 0?void 0:i.item);let z=0;const R=T.map((B,W)=>{var q,Q;B!=null&&(z=W);const G=(B==null?void 0:B.key)||`${F}-${W}`;return c.createElement(L8e,{className:F,key:G,index:W,split:h,style:(q=y==null?void 0:y.item)!==null&&q!==void 0?q:(Q=o==null?void 0:o.styles)===null||Q===void 0?void 0:Q.item},B)}),H=c.useMemo(()=>({latestIndex:z}),[z]);if(T.length===0)return null;const V={};return w&&(V.flexWrap="wrap"),!_&&E&&(V.columnGap=C),!k&&$&&(V.rowGap=S),I(c.createElement("div",Object.assign({ref:t,className:D,style:Object.assign(Object.assign(Object.assign({},V),o==null?void 0:o.style),g)},x),c.createElement(A8e,{value:H},R)))}),zl=z8e;zl.Compact=qke;var H8e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(xt),{prefixCls:i,type:a="default",danger:o,disabled:s,loading:l,onClick:u,htmlType:d,children:f,className:m,menu:p,arrow:v,autoFocus:h,overlay:g,trigger:w,align:b,open:y,onOpenChange:x,placement:C,getPopupContainer:S,href:k,icon:_=c.createElement(Nk,null),title:$,buttonsRender:E=X=>X,mouseEnterDelay:T,mouseLeaveDelay:M,overlayClassName:j,overlayStyle:I,destroyPopupOnHide:N,dropdownRender:O}=e,D=H8e(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",i),z=`${F}-button`,R={menu:p,arrow:v,autoFocus:h,align:b,disabled:s,trigger:s?[]:w,onOpenChange:x,getPopupContainer:S||t,mouseEnterDelay:T,mouseLeaveDelay:M,overlayClassName:j,overlayStyle:I,destroyPopupOnHide:N,dropdownRender:O},{compactSize:H,compactItemClassnames:V}=ol(F,r),B=ne(z,V,m);"overlay"in e&&(R.overlay=g),"open"in e&&(R.open=y),"placement"in e?R.placement=C:R.placement=r==="rtl"?"bottomLeft":"bottomRight";const W=c.createElement(dn,{type:a,danger:o,disabled:s,loading:l,onClick:u,htmlType:d,href:k,title:$},f),q=c.createElement(dn,{type:a,danger:o,icon:_}),[Q,G]=E([W,q]);return c.createElement(zl.Compact,Object.assign({className:B,size:H,block:!0},D),Q,c.createElement(Dk,Object.assign({},R),G))};bte.__ANT_BUTTON=!0;const Bp=Dk;Bp.Button=bte;const yte=["wrap","nowrap","wrap-reverse"],wte=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],xte=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],V8e=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&yte.includes(n)}},W8e=(e,t)=>{const n={};return xte.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},U8e=(e,t)=>{const n={};return wte.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function q8e(e,t){return ne(Object.assign(Object.assign(Object.assign({},V8e(e,t)),W8e(e,t)),U8e(e,t)))}const G8e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},K8e=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Y8e=e=>{const{componentCls:t}=e,n={};return yte.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},X8e=e=>{const{componentCls:t}=e,n={};return xte.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},Q8e=e=>{const{componentCls:t}=e,n={};return wte.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},J8e=()=>({}),Z8e=sn("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Kt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[G8e(i),K8e(i),Y8e(i),X8e(i),Q8e(i)]},J8e,{resetStyle:!1});var eDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,children:l,vertical:u=!1,component:d="div"}=e,f=eDe(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:p,getPrefixCls:v}=L.useContext(xt),h=v("flex",n),[g,w,b]=Z8e(h),y=u??(m==null?void 0:m.vertical),x=ne(i,r,m==null?void 0:m.className,h,w,b,q8e(h,e),{[`${h}-rtl`]:p==="rtl",[`${h}-gap-${s}`]:mS(s),[`${h}-vertical`]:y}),C=Object.assign(Object.assign({},m==null?void 0:m.style),a);return o&&(C.flex=o),s&&!mS(s)&&(C.gap=s),g(L.createElement(d,Object.assign({ref:t,className:x,style:C},_n(f,["justify","wrap","align"])),l))});function pS(e){const[t,n]=c.useState(e);return c.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const tDe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, + opacity ${e.motionDurationFast} ${e.motionEaseInOut}, + transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},nDe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),j9=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},rDe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},mn(e)),nDe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},j9(e,e.controlHeightSM)),"&-large":Object.assign({},j9(e,e.controlHeightLG))})}},iDe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:a,labelRequiredMarkColor:o,labelColor:s,labelFontSize:l,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:m}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:tM,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},F9=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},aDe=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Rs=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ste=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Rs(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},oDe=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + ${r}-col-24${n}-label, + ${r}-col-xl-24${n}-label`]:Rs(e)}},[`@media (max-width: ${ae(e.screenXSMax)})`]:[Ste(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Rs(e)}}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Rs(e)}}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Rs(e)}}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Rs(e)}}}}},sDe=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, + ${n}-col-24${t}-label, + ${n}-col-xl-24${t}-label`]:Rs(e),[`@media (max-width: ${ae(e.screenXSMax)})`]:[Ste(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Rs(e)}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Rs(e)}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Rs(e)}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Rs(e)}}}},lDe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Cte=(e,t)=>Kt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),oN=sn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Cte(e,n);return[rDe(r),iDe(r),tDe(r),F9(r,r.componentCls),F9(r,r.formItemCls),aDe(r),oDe(r),sDe(r),C1(r),tM]},lDe,{order:-1e3}),A9=[];function jE(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const kte=e=>{let{help:t,helpStatus:n,errors:r=A9,warnings:i=A9,className:a,fieldId:o,onVisibleChanged:s}=e;const{prefixCls:l}=c.useContext(cM),u=`${l}-item-explain`,d=Ln(l),[f,m,p]=oN(l,d),v=c.useMemo(()=>Mp(l),[l]),h=pS(r),g=pS(i),w=c.useMemo(()=>t!=null?[jE(t,"help",n)]:[].concat(Fe(h.map((x,C)=>jE(x,"error","error",C))),Fe(g.map((x,C)=>jE(x,"warning","warning",C)))),[t,n,h,g]),b=c.useMemo(()=>{const x={};return w.forEach(C=>{let{key:S}=C;x[S]=(x[S]||0)+1}),w.map((C,S)=>Object.assign(Object.assign({},C),{key:x[C.key]>1?`${C.key}-fallback-${S}`:C.key}))},[w]),y={};return o&&(y.id=`${o}_help`),f(c.createElement(ti,{motionDeadline:v.motionDeadline,motionName:`${l}-show-help`,visible:!!b.length,onVisibleChanged:s},x=>{const{className:C,style:S}=x;return c.createElement("div",Object.assign({},y,{className:ne(u,C,p,d,a,m),style:S,role:"alert"}),c.createElement(rk,Object.assign({keys:b},Mp(l),{motionName:`${l}-show-help-item`,component:!1}),k=>{const{key:_,error:$,errorStatus:E,className:T,style:M}=k;return c.createElement("div",{key:_,className:ne(T,{[`${u}-${E}`]:E}),style:M},$)}))}))},cDe=["parentNode"],uDe="form_item";function kg(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function _te(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:cDe.includes(n)?`${uDe}_${n}`:n}function $te(e,t,n,r,i,a){let o=r;return a!==void 0?o=a:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||i&&n.validated)&&(o="success"),o}function L9(e){return kg(e).join("_")}function B9(e,t){const n=t.getFieldInstance(e),r=N2(n);if(r)return r;const i=_te(kg(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function Ete(e){const[t]=lM(),n=c.useRef({}),r=c.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const o=L9(i);a?n.current[o]=a:delete n.current[o]}},scrollToField:function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=B9(i,r);o&&K2e(o,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:i=>{var a;const o=B9(i,r);o&&((a=o.focus)===null||a===void 0||a.call(o))},getFieldInstance:i=>{const a=L9(i);return n.current[a]}}),[e,t]);return[r]}var dDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=c.useContext(Ur),{getPrefixCls:r,direction:i,form:a}=c.useContext(xt),{prefixCls:o,className:s,rootClassName:l,size:u,disabled:d=n,form:f,colon:m,labelAlign:p,labelWrap:v,labelCol:h,wrapperCol:g,hideRequiredMark:w,layout:b="horizontal",scrollToFirstError:y,requiredMark:x,onFinishFailed:C,name:S,style:k,feedbackIcons:_,variant:$}=e,E=dDe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),T=Br(u),M=c.useContext(sX),j=c.useMemo(()=>x!==void 0?x:w?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[w,x,a]),I=m??(a==null?void 0:a.colon),N=r("form",o),O=Ln(N),[D,F,z]=oN(N,O),R=ne(N,`${N}-${b}`,{[`${N}-hide-required-mark`]:j===!1,[`${N}-rtl`]:i==="rtl",[`${N}-${T}`]:T},z,O,F,a==null?void 0:a.className,s,l),[H]=Ete(f),{__INTERNAL__:V}=H;V.name=S;const B=c.useMemo(()=>({name:S,labelAlign:p,labelCol:h,labelWrap:v,wrapperCol:g,vertical:b==="vertical",colon:I,requiredMark:j,itemRef:V.itemRef,form:H,feedbackIcons:_}),[S,p,h,g,b,I,j,H,_]),W=c.useRef(null);c.useImperativeHandle(t,()=>{var G;return Object.assign(Object.assign({},H),{nativeElement:(G=W.current)===null||G===void 0?void 0:G.nativeElement})});const q=(G,X)=>{if(G){let re={block:"nearest"};typeof G=="object"&&(re=Object.assign(Object.assign({},re),G)),H.scrollToField(X,re),re.focus&&H.focusField(X)}},Q=G=>{if(C==null||C(G),G.errorFields.length){const X=G.errorFields[0].name;if(y!==void 0){q(y,X);return}a&&a.scrollToFirstError!==void 0&&q(a.scrollToFirstError,X)}};return D(c.createElement(jQ.Provider,{value:$},c.createElement(VR,{disabled:d},c.createElement(xf.Provider,{value:T},c.createElement(DQ,{validateMessages:M},c.createElement(Dc.Provider,{value:B},c.createElement(wv,Object.assign({id:S},E,{name:S,onFinishFailed:Q,form:H,ref:W,style:Object.assign(Object.assign({},a==null?void 0:a.style),k),className:R}))))))))},mDe=c.forwardRef(fDe);function pDe(e){if(typeof e=="function")return e;const t=Wr(e);return t.length<=1?t[0]:t}const Pte=()=>{const{status:e,errors:t=[],warnings:n=[]}=c.useContext(ni);return{status:e,errors:t,warnings:n}};Pte.Context=ni;function vDe(e){const[t,n]=c.useState(e),r=c.useRef(null),i=c.useRef([]),a=c.useRef(!1);c.useEffect(()=>(a.current=!1,()=>{a.current=!0,tn.cancel(r.current),r.current=null}),[]);function o(s){a.current||(r.current===null&&(i.current=[],r.current=tn(()=>{r.current=null,n(l=>{let u=l;return i.current.forEach(d=>{u=d(u)}),u})})),i.current.push(s))}return[t,o]}function hDe(){const{itemRef:e}=c.useContext(Dc),t=c.useRef({});function n(r,i){const a=i&&typeof i=="object"&&nd(i),o=r.join("_");return(t.current.name!==o||t.current.originRef!==a)&&(t.current.name=o,t.current.originRef=a,t.current.ref=ri(e(r),a)),t.current.ref}return n}const gDe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},bDe=Ff(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Cte(e,n);return[gDe(r)]});var yDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:l,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:p,label:v}=e,h=`${t}-item`,g=c.useContext(Dc),w=c.useMemo(()=>{let I=Object.assign({},i||g.wrapperCol||{});return v===null&&!r&&!i&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(O=>{const D=O?[O]:[],F=Ti(g.labelCol,D),z=typeof F=="object"?F:{},R=Ti(I,D),H=typeof R=="object"?R:{};"span"in z&&!("offset"in H)&&z.spanyDe(g,["labelCol","wrapperCol"]),[g]),x=c.useRef(null),[C,S]=c.useState(0);nn(()=>{u&&x.current?S(x.current.clientHeight):S(0)},[u]);const k=c.createElement("div",{className:`${h}-control-input`},c.createElement("div",{className:`${h}-control-input-content`},a)),_=c.useMemo(()=>({prefixCls:t,status:n}),[t,n]),$=m!==null||o.length||s.length?c.createElement(cM.Provider,{value:_},c.createElement(kte,{fieldId:f,errors:o,warnings:s,help:d,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:p})):null,E={};f&&(E.id=`${f}_extra`);const T=u?c.createElement("div",Object.assign({},E,{className:`${h}-extra`,ref:x}),u):null,M=$||T?c.createElement("div",{className:`${h}-additional`,style:m?{minHeight:m+C}:{}},$,T):null,j=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:k,errorList:$,extra:T}):c.createElement(c.Fragment,null,k,M);return c.createElement(Dc.Provider,{value:y},c.createElement(Ri,Object.assign({},w,{className:b}),j),c.createElement(bDe,{prefixCls:t}))};var SDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},CDe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:SDe}))},kDe=c.forwardRef(CDe),_De=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:a,colon:o,required:s,requiredMark:l,tooltip:u,vertical:d}=e;var f;const[m]=la("Form"),{labelAlign:p,labelCol:v,labelWrap:h,colon:g}=c.useContext(Dc);if(!n)return null;const w=i||v||{},b=a||p,y=`${t}-item-label`,x=ne(y,b==="left"&&`${y}-left`,w.className,{[`${y}-wrap`]:!!h});let C=n;const S=o===!0||g!==!1&&o!==!1;S&&!d&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const _=$De(u);if(_){const{icon:M=c.createElement(kDe,null)}=_,j=_De(_,["icon"]),I=c.createElement(sa,Object.assign({},j),c.cloneElement(M,{className:`${t}-item-tooltip`,title:"",onClick:N=>{N.preventDefault()},tabIndex:null}));C=c.createElement(c.Fragment,null,C,I)}const $=l==="optional",E=typeof l=="function";E?C=l(C,{required:!!s}):$&&!s&&(C=c.createElement(c.Fragment,null,C,c.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((f=rs.Form)===null||f===void 0?void 0:f.optional))));const T=ne({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:$||E,[`${t}-item-no-colon`]:!S});return c.createElement(Ri,Object.assign({},w,{className:x}),c.createElement("label",{htmlFor:r,className:T,title:typeof n=="string"?n:""},C))},PDe={success:gv,warning:y1,error:Ql,validating:Xs};function Tte(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:o,meta:s,noStyle:l}=e;const u=`${o}-item`,{feedbackIcons:d}=c.useContext(Dc),f=$te(n,r,s,null,!!i,a),{isFormItemInput:m,status:p,hasFeedback:v,feedbackIcon:h}=c.useContext(ni),g=c.useMemo(()=>{var w;let b;if(i){const x=i!==!0&&i.icons||d,C=f&&((w=x==null?void 0:x({status:f,errors:n,warnings:r}))===null||w===void 0?void 0:w[f]),S=f&&PDe[f];b=C!==!1&&S?c.createElement("span",{className:ne(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},C||c.createElement(S,null)):null}const y={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:b,isFormItemInput:!0};return l&&(y.status=(f??p)||"",y.isFormItemInput=m,y.hasFeedback=!!(i??v),y.feedbackIcon=i!==void 0?y.feedbackIcon:h),y},[f,i,l,m,p]);return c.createElement(ni.Provider,{value:g},t)}var TDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(T&&k.current){const z=getComputedStyle(k.current);I(parseInt(z.marginBottom,10))}},[T,M]);const N=z=>{z||I(null)},D=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const R=z?_:u.errors,H=z?$:u.warnings;return $te(R,H,u,"",!!d,l)}(),F=ne(y,n,r,{[`${y}-with-help`]:E||_.length||$.length,[`${y}-has-feedback`]:D&&d,[`${y}-has-success`]:D==="success",[`${y}-has-warning`]:D==="warning",[`${y}-has-error`]:D==="error",[`${y}-is-validating`]:D==="validating",[`${y}-hidden`]:f,[`${y}-${w}`]:w});return c.createElement("div",{className:F,style:i,ref:k},c.createElement(od,Object.assign({className:`${y}-row`},_n(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),c.createElement(EDe,Object.assign({htmlFor:p},e,{requiredMark:x,required:v??h,prefixCls:t,vertical:S})),c.createElement(xDe,Object.assign({},e,u,{errors:_,warnings:$,prefixCls:t,status:D,help:a,marginBottom:j,onErrorVisibleChanged:N}),c.createElement(NQ.Provider,{value:g},c.createElement(Tte,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:D},m)))),!!j&&c.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-j}}))}const IDe="__SPLIT__";function RDe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],o=t[i];return a===o||typeof a=="function"||typeof o=="function"})}const MDe=c.memo(e=>{let{children:t}=e;return t},(e,t)=>RDe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function z9(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function NDe(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:l,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:p,hidden:v,help:h,layout:g}=e,{getPrefixCls:w}=c.useContext(xt),{name:b}=c.useContext(Dc),y=pDe(l),x=typeof y=="function",C=c.useContext(NQ),{validateTrigger:S}=c.useContext(Gu),k=p!==void 0?p:S,_=t!=null,$=w("form",a),E=Ln($),[T,M,j]=oN($,E);Xl();const I=c.useContext(g0),N=c.useRef(null),[O,D]=vDe({}),[F,z]=Sf(()=>z9()),R=G=>{const X=I==null?void 0:I.getKey(G.name);if(z(G.destroy?z9():G,!0),n&&h!==!1&&C){let re=G.name;if(G.destroy)re=N.current||re;else if(X!==void 0){const[K,Y]=X;re=[K].concat(Fe(Y)),N.current=re}C(G,re)}},H=(G,X)=>{D(re=>{const K=Object.assign({},re),Z=[].concat(Fe(G.name.slice(0,-1)),Fe(X)).join(IDe);return G.destroy?delete K[Z]:K[Z]=G,K})},[V,B]=c.useMemo(()=>{const G=Fe(F.errors),X=Fe(F.warnings);return Object.values(O).forEach(re=>{G.push.apply(G,Fe(re.errors||[])),X.push.apply(X,Fe(re.warnings||[]))}),[G,X]},[O,F.errors,F.warnings]),W=hDe();function q(G,X,re){return n&&!v?c.createElement(Tte,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:V,warnings:B,noStyle:!0},G):c.createElement(ODe,Object.assign({key:"row"},e,{className:ne(r,j,E,M),prefixCls:$,fieldId:X,isRequired:re,errors:V,warnings:B,meta:F,onSubItemMetaChange:H,layout:g}),G)}if(!_&&!x&&!i)return T(q(y));let Q={};return typeof d=="string"?Q.label=d:t&&(Q.label=String(t)),f&&(Q=Object.assign(Object.assign({},Q),f)),T(c.createElement(sM,Object.assign({},e,{messageVariables:Q,trigger:m,validateTrigger:k,onMetaChange:R}),(G,X,re)=>{const K=kg(t).length&&X?X.name:[],Y=_te(K,b),Z=u!==void 0?u:!!(s!=null&&s.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const le=te(re);return(le==null?void 0:le.required)&&!(le!=null&&le.warningOnly)}return!1})),J=Object.assign({},G);let ee=null;if(Array.isArray(y)&&_)ee=y;else if(!(x&&(!(o||i)||_))){if(!(i&&!x&&!_))if(c.isValidElement(y)){const te=Object.assign(Object.assign({},y.props),J);if(te.id||(te.id=Y),h||V.length>0||B.length>0||e.extra){const de=[];(h||V.length>0)&&de.push(`${Y}_help`),e.extra&&de.push(`${Y}_extra`),te["aria-describedby"]=de.join(" ")}V.length>0&&(te["aria-invalid"]="true"),Z&&(te["aria-required"]="true"),Gs(y)&&(te.ref=W(K,y)),new Set([].concat(Fe(kg(m)),Fe(kg(k)))).forEach(de=>{te[de]=function(){for(var pe,we,fe,ge,ue,ce=arguments.length,$e=new Array(ce),se=0;se{var{prefixCls:t,children:n}=e,r=DDe(e,["prefixCls","children"]);const{getPrefixCls:i}=c.useContext(xt),a=i("form",t),o=c.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return c.createElement(OQ,Object.assign({},r),(s,l,u)=>c.createElement(cM.Provider,{value:o},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),l,{errors:u.errors,warnings:u.warnings})))};function FDe(){const{form:e}=c.useContext(Dc);return e}const Lr=mDe;Lr.Item=Ote;Lr.List=jDe;Lr.ErrorList=kte;Lr.useForm=Ete;Lr.useFormInstance=FDe;Lr.useWatch=MQ;Lr.Provider=DQ;Lr.create=()=>{};function Ite(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function ADe(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Pl(e,t,n,r){var i=Xg.unstable_batchedUpdates?function(o){Xg.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var B1=c.createContext(null),LDe=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,m=t.transform,p=t.count,v=t.scale,h=t.minScale,g=t.maxScale,w=t.closeIcon,b=t.onActive,y=t.onClose,x=t.onZoomIn,C=t.onZoomOut,S=t.onRotateRight,k=t.onRotateLeft,_=t.onFlipX,$=t.onFlipY,E=t.onReset,T=t.toolbarRender,M=t.zIndex,j=t.image,I=c.useContext(B1),N=s.rotateLeft,O=s.rotateRight,D=s.zoomIn,F=s.zoomOut,z=s.close,R=s.left,H=s.right,V=s.flipX,B=s.flipY,W="".concat(a,"-operations-operation");c.useEffect(function(){var le=function(de){de.keyCode===qe.ESC&&y()};return n&&window.addEventListener("keydown",le),function(){window.removeEventListener("keydown",le)}},[n]);var q=function(oe,de){oe.preventDefault(),oe.stopPropagation(),b(de)},Q=c.useCallback(function(le){var oe=le.type,de=le.disabled,pe=le.onClick,we=le.icon;return c.createElement("div",{key:oe,className:ne(W,"".concat(a,"-operations-operation-").concat(oe),U({},"".concat(a,"-operations-operation-disabled"),!!de)),onClick:pe},we)},[W,a]),G=u?Q({icon:R,onClick:function(oe){return q(oe,-1)},type:"prev",disabled:f===0}):void 0,X=u?Q({icon:H,onClick:function(oe){return q(oe,1)},type:"next",disabled:f===p-1}):void 0,re=Q({icon:B,onClick:$,type:"flipY"}),K=Q({icon:V,onClick:_,type:"flipX"}),Y=Q({icon:N,onClick:k,type:"rotateLeft"}),Z=Q({icon:O,onClick:S,type:"rotateRight"}),J=Q({icon:F,onClick:C,type:"zoomOut",disabled:v<=h}),ee=Q({icon:D,onClick:x,type:"zoomIn",disabled:v===g}),te=c.createElement("div",{className:"".concat(a,"-operations")},re,K,Y,Z,J,ee);return c.createElement(ti,{visible:n,motionName:r},function(le){var oe=le.className,de=le.style;return c.createElement(_1,{open:!0,getContainer:i??document.body},c.createElement("div",{className:ne("".concat(a,"-operations-wrapper"),oe,o),style:A(A({},de),{},{zIndex:M})},w===null?null:c.createElement("button",{className:"".concat(a,"-close"),onClick:y},w||z),u&&c.createElement(c.Fragment,null,c.createElement("div",{className:ne("".concat(a,"-switch-left"),U({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(we){return q(we,-1)}},R),c.createElement("div",{className:ne("".concat(a,"-switch-right"),U({},"".concat(a,"-switch-right-disabled"),f===p-1)),onClick:function(we){return q(we,1)}},H)),c.createElement("div",{className:"".concat(a,"-footer")},d&&c.createElement("div",{className:"".concat(a,"-progress")},l?l(f+1,p):"".concat(f+1," / ").concat(p)),T?T(te,A(A({icons:{prevIcon:G,nextIcon:X,flipYIcon:re,flipXIcon:K,rotateLeftIcon:Y,rotateRightIcon:Z,zoomOutIcon:J,zoomInIcon:ee},actions:{onActive:b,onFlipY:$,onFlipX:_,onRotateLeft:k,onRotateRight:S,onZoomOut:C,onZoomIn:x,onReset:E,onClose:y},transform:m},I?{current:f,total:p}:{}),{},{image:j})):te)))})},sy={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function BDe(e,t,n,r){var i=c.useRef(null),a=c.useRef([]),o=c.useState(sy),s=ie(o,2),l=s[0],u=s[1],d=function(v){u(sy),is(sy,l)||r==null||r({transform:sy,action:v})},f=function(v,h){i.current===null&&(a.current=[],i.current=tn(function(){u(function(g){var w=g;return a.current.forEach(function(b){w=A(A({},w),b)}),i.current=null,r==null||r({transform:w,action:h}),w})})),a.current.push(A(A({},l),v))},m=function(v,h,g,w,b){var y=e.current,x=y.width,C=y.height,S=y.offsetWidth,k=y.offsetHeight,_=y.offsetLeft,$=y.offsetTop,E=v,T=l.scale*v;T>n?(T=n,E=n/l.scale):Tr){if(t>0)return U({},e,a);if(t<0&&ir)return U({},e,t<0?a:-a);return{}}function Rte(e,t,n,r){var i=Ite(),a=i.width,o=i.height,s=null;return e<=a&&t<=o?s={x:0,y:0}:(e>a||t>o)&&(s=A(A({},H9("x",n,e,a)),H9("y",r,t,o))),s}var zm=1,zDe=1;function HDe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,u=i.x,d=i.y,f=c.useState(!1),m=ie(f,2),p=m[0],v=m[1],h=c.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),g=function(C){!t||C.button!==0||(C.preventDefault(),C.stopPropagation(),h.current={diffX:C.pageX-u,diffY:C.pageY-d,transformX:u,transformY:d},v(!0))},w=function(C){n&&p&&a({x:C.pageX-h.current.diffX,y:C.pageY-h.current.diffY},"move")},b=function(){if(n&&p){v(!1);var C=h.current,S=C.transformX,k=C.transformY,_=u!==S&&d!==k;if(!_)return;var $=e.current.offsetWidth*l,E=e.current.offsetHeight*l,T=e.current.getBoundingClientRect(),M=T.left,j=T.top,I=s%180!==0,N=Rte(I?E:$,I?$:E,M,j);N&&a(A({},N),"dragRebound")}},y=function(C){if(!(!n||C.deltaY==0)){var S=Math.abs(C.deltaY/100),k=Math.min(S,zDe),_=zm+k*r;C.deltaY>0&&(_=zm/_),o(_,"wheel",C.clientX,C.clientY)}};return c.useEffect(function(){var x,C,S,k;if(t){S=Pl(window,"mouseup",b,!1),k=Pl(window,"mousemove",w,!1);try{window.top!==window.self&&(x=Pl(window.top,"mouseup",b,!1),C=Pl(window.top,"mousemove",w,!1))}catch{}}return function(){var _,$,E,T;(_=S)===null||_===void 0||_.remove(),($=k)===null||$===void 0||$.remove(),(E=x)===null||E===void 0||E.remove(),(T=C)===null||T===void 0||T.remove()}},[n,p,u,d,s,t]),{isMoving:p,onMouseDown:g,onMouseMove:w,onMouseUp:b,onWheel:y}}function VDe(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function Mte(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=c.useState(n?"loading":"normal"),a=ie(i,2),o=a[0],s=a[1],l=c.useRef(!1),u=o==="error";c.useEffect(function(){var p=!0;return VDe(t).then(function(v){!v&&p&&s("error")}),function(){p=!1}},[t]),c.useEffect(function(){n&&!l.current?s("loading"):u&&s("normal")},[t]);var d=function(){s("normal")},f=function(v){l.current=!1,o==="loading"&&v!==null&&v!==void 0&&v.complete&&(v.naturalWidth||v.naturalHeight)&&(l.current=!0,d())},m=u&&r?{src:r}:{onLoad:d,src:t};return[f,m,o]}function vS(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function WDe(e,t,n,r){var i=vS(e,n),a=vS(t,r);if(i===0&&a===0)return[e.x,e.y];var o=i/(i+a),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function UDe(e,t,n,r,i,a,o){var s=i.rotate,l=i.scale,u=i.x,d=i.y,f=c.useState(!1),m=ie(f,2),p=m[0],v=m[1],h=c.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),g=function(C){h.current=A(A({},h.current),C)},w=function(C){if(t){C.stopPropagation(),v(!0);var S=C.touches,k=S===void 0?[]:S;k.length>1?g({point1:{x:k[0].clientX,y:k[0].clientY},point2:{x:k[1].clientX,y:k[1].clientY},eventType:"touchZoom"}):g({point1:{x:k[0].clientX-u,y:k[0].clientY-d},eventType:"move"})}},b=function(C){var S=C.touches,k=S===void 0?[]:S,_=h.current,$=_.point1,E=_.point2,T=_.eventType;if(k.length>1&&T==="touchZoom"){var M={x:k[0].clientX,y:k[0].clientY},j={x:k[1].clientX,y:k[1].clientY},I=WDe($,E,M,j),N=ie(I,2),O=N[0],D=N[1],F=vS(M,j)/vS($,E);o(F,"touchZoom",O,D,!0),g({point1:M,point2:j,eventType:"touchZoom"})}else T==="move"&&(a({x:k[0].clientX-$.x,y:k[0].clientY-$.y},"move"),g({eventType:"move"}))},y=function(){if(n){if(p&&v(!1),g({eventType:"none"}),r>l)return a({x:0,y:0,scale:r},"touchZoom");var C=e.current.offsetWidth*l,S=e.current.offsetHeight*l,k=e.current.getBoundingClientRect(),_=k.left,$=k.top,E=s%180!==0,T=Rte(E?S:C,E?C:S,_,$);T&&a(A({},T),"dragRebound")}};return c.useEffect(function(){var x;return n&&t&&(x=Pl(window,"touchmove",function(C){return C.preventDefault()},{passive:!1})),function(){var C;(C=x)===null||C===void 0||C.remove()}},[n,t]),{isTouching:p,onTouchStart:w,onTouchMove:b,onTouchEnd:y}}var qDe=["fallback","src","imgRef"],GDe=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],KDe=function(t){var n=t.fallback,r=t.src,i=t.imgRef,a=ut(t,qDe),o=Mte({src:r,fallback:n}),s=ie(o,2),l=s[0],u=s[1];return L.createElement("img",Ee({ref:function(f){i.current=f,l(f)}},a,u))},Nte=function(t){var n=t.prefixCls,r=t.src,i=t.alt,a=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,u=t.onClose,d=t.visible,f=t.icons,m=f===void 0?{}:f,p=t.rootClassName,v=t.closeIcon,h=t.getContainer,g=t.current,w=g===void 0?0:g,b=t.count,y=b===void 0?1:b,x=t.countRender,C=t.scaleStep,S=C===void 0?.5:C,k=t.minScale,_=k===void 0?1:k,$=t.maxScale,E=$===void 0?50:$,T=t.transitionName,M=T===void 0?"zoom":T,j=t.maskTransitionName,I=j===void 0?"fade":j,N=t.imageRender,O=t.imgCommonProps,D=t.toolbarRender,F=t.onTransform,z=t.onChange,R=ut(t,GDe),H=c.useRef(),V=c.useContext(B1),B=V&&y>1,W=V&&y>=1,q=c.useState(!0),Q=ie(q,2),G=Q[0],X=Q[1],re=BDe(H,_,E,F),K=re.transform,Y=re.resetTransform,Z=re.updateTransform,J=re.dispatchZoomChange,ee=HDe(H,l,d,S,K,Z,J),te=ee.isMoving,le=ee.onMouseDown,oe=ee.onWheel,de=UDe(H,l,d,_,K,Z,J),pe=de.isTouching,we=de.onTouchStart,fe=de.onTouchMove,ge=de.onTouchEnd,ue=K.rotate,ce=K.scale,$e=ne(U({},"".concat(n,"-moving"),te));c.useEffect(function(){G||X(!0)},[G]);var se=function(){Y("close")},ve=function(){J(zm+S,"zoomIn")},he=function(){J(zm/(zm+S),"zoomOut")},_e=function(){Z({rotate:ue+90},"rotateRight")},Se=function(){Z({rotate:ue-90},"rotateLeft")},Pe=function(){Z({flipX:!K.flipX},"flipX")},De=function(){Z({flipY:!K.flipY},"flipY")},xe=function(){Y("reset")},ye=function(Be){var ct=w+Be;!Number.isInteger(ct)||ct<0||ct>y-1||(X(!1),Y(Be<0?"prev":"next"),z==null||z(ct,w))},Te=function(Be){!d||!B||(Be.keyCode===qe.LEFT?ye(-1):Be.keyCode===qe.RIGHT&&ye(1))},Ie=function(Be){d&&(ce!==1?Z({x:0,y:0,scale:1},"doubleClick"):J(zm+S,"doubleClick",Be.clientX,Be.clientY))};c.useEffect(function(){var He=Pl(window,"keydown",Te,!1);return function(){He.remove()}},[d,B,w]);var ke=L.createElement(KDe,Ee({},O,{width:t.width,height:t.height,imgRef:H,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(K.x,"px, ").concat(K.y,"px, 0) scale3d(").concat(K.flipX?"-":"").concat(ce,", ").concat(K.flipY?"-":"").concat(ce,", 1) rotate(").concat(ue,"deg)"),transitionDuration:(!G||pe)&&"0s"},fallback:o,src:r,onWheel:oe,onMouseDown:le,onDoubleClick:Ie,onTouchStart:we,onTouchMove:fe,onTouchEnd:ge,onTouchCancel:ge})),je=A({url:r,alt:i},a);return L.createElement(L.Fragment,null,L.createElement(aM,Ee({transitionName:M,maskTransitionName:I,closable:!1,keyboard:!0,prefixCls:n,onClose:u,visible:d,classNames:{wrapper:$e},rootClassName:p,getContainer:h},R,{afterClose:se}),L.createElement("div",{className:"".concat(n,"-img-wrapper")},N?N(ke,A({transform:K,image:je},V?{current:w}:{})):ke)),L.createElement(LDe,{visible:d,transform:K,maskTransitionName:I,closeIcon:v,getContainer:h,prefixCls:n,rootClassName:p,icons:m,countRender:x,showSwitch:B,showProgress:W,current:w,count:y,scale:ce,minScale:_,maxScale:E,toolbarRender:D,onActive:ye,onZoomIn:ve,onZoomOut:he,onRotateRight:_e,onRotateLeft:Se,onFlipX:Pe,onFlipY:De,onClose:u,onReset:xe,zIndex:R.zIndex!==void 0?R.zIndex+1:void 0,image:je}))},n6=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function YDe(e){var t=c.useState({}),n=ie(t,2),r=n[0],i=n[1],a=c.useCallback(function(s,l){return i(function(u){return A(A({},u),{},U({},s,l))}),function(){i(function(u){var d=A({},u);return delete d[s],d})}},[]),o=c.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(u){["src"].concat(Fe(n6)).includes(u)&&(l[u]=s[u])}),{data:l}}):Object.keys(r).reduce(function(s,l){var u=r[l],d=u.canPreview,f=u.data;return d&&s.push({data:f,id:l}),s},[])},[e,r]);return[o,a,!!e]}var XDe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],QDe=["src"],JDe=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,a=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,u=t.preview,d=t.fallback,f=mt(u)==="object"?u:{},m=f.visible,p=f.onVisibleChange,v=f.getContainer,h=f.current,g=f.movable,w=f.minScale,b=f.maxScale,y=f.countRender,x=f.closeIcon,C=f.onChange,S=f.onTransform,k=f.toolbarRender,_=f.imageRender,$=ut(f,XDe),E=YDe(l),T=ie(E,3),M=T[0],j=T[1],I=T[2],N=Ut(0,{value:h}),O=ie(N,2),D=O[0],F=O[1],z=c.useState(!1),R=ie(z,2),H=R[0],V=R[1],B=((n=M[D])===null||n===void 0?void 0:n.data)||{},W=B.src,q=ut(B,QDe),Q=Ut(!!m,{value:m,onChange:function(pe,we){p==null||p(pe,we,D)}}),G=ie(Q,2),X=G[0],re=G[1],K=c.useState(null),Y=ie(K,2),Z=Y[0],J=Y[1],ee=c.useCallback(function(de,pe,we,fe){var ge=I?M.findIndex(function(ue){return ue.data.src===pe}):M.findIndex(function(ue){return ue.id===de});F(ge<0?0:ge),re(!0),J({x:we,y:fe}),V(!0)},[M,I]);c.useEffect(function(){X?H||F(0):V(!1)},[X]);var te=function(pe,we){F(pe),C==null||C(pe,we)},le=function(){re(!1),J(null)},oe=c.useMemo(function(){return{register:j,onPreview:ee}},[j,ee]);return c.createElement(B1.Provider,{value:oe},a,c.createElement(Nte,Ee({"aria-hidden":!X,movable:g,visible:X,prefixCls:i,closeIcon:x,onClose:le,mousePosition:Z,imgCommonProps:q,src:W,fallback:d,icons:s,minScale:w,maxScale:b,getContainer:v,current:D,count:M.length,countRender:y,onTransform:S,toolbarRender:k,imageRender:_,onChange:te},$)))},V9=0;function ZDe(e,t){var n=c.useState(function(){return V9+=1,String(V9)}),r=ie(n,1),i=r[0],a=c.useContext(B1),o={data:t,canPreview:e};return c.useEffect(function(){if(a)return a.register(i,o)},[]),c.useEffect(function(){a&&a.register(i,o)},[e,t]),i}var eje=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],tje=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],sN=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,o=a===void 0?"rc-image":a,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,u=t.placeholder,d=t.fallback,f=t.width,m=t.height,p=t.style,v=t.preview,h=v===void 0?!0:v,g=t.className,w=t.onClick,b=t.onError,y=t.wrapperClassName,x=t.wrapperStyle,C=t.rootClassName,S=ut(t,eje),k=u&&u!==!0,_=mt(h)==="object"?h:{},$=_.src,E=_.visible,T=E===void 0?void 0:E,M=_.onVisibleChange,j=M===void 0?i:M,I=_.getContainer,N=I===void 0?void 0:I,O=_.mask,D=_.maskClassName,F=_.movable,z=_.icons,R=_.scaleStep,H=_.minScale,V=_.maxScale,B=_.imageRender,W=_.toolbarRender,q=ut(_,tje),Q=$??n,G=Ut(!!T,{value:T,onChange:j}),X=ie(G,2),re=X[0],K=X[1],Y=Mte({src:n,isCustomPlaceholder:k,fallback:d}),Z=ie(Y,3),J=Z[0],ee=Z[1],te=Z[2],le=c.useState(null),oe=ie(le,2),de=oe[0],pe=oe[1],we=c.useContext(B1),fe=!!h,ge=function(){K(!1),pe(null)},ue=ne(o,y,C,U({},"".concat(o,"-error"),te==="error")),ce=c.useMemo(function(){var he={};return n6.forEach(function(_e){t[_e]!==void 0&&(he[_e]=t[_e])}),he},n6.map(function(he){return t[he]})),$e=c.useMemo(function(){return A(A({},ce),{},{src:Q})},[Q,ce]),se=ZDe(fe,$e),ve=function(_e){var Se=ADe(_e.target),Pe=Se.left,De=Se.top;we?we.onPreview(se,Q,Pe,De):(pe({x:Pe,y:De}),K(!0)),w==null||w(_e)};return c.createElement(c.Fragment,null,c.createElement("div",Ee({},S,{className:ue,onClick:fe?ve:w,style:A({width:f,height:m},x)}),c.createElement("img",Ee({},ce,{className:ne("".concat(o,"-img"),U({},"".concat(o,"-img-placeholder"),u===!0),g),style:A({height:m},p),ref:J},ee,{width:f,height:m,onError:b})),te==="loading"&&c.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},u),O&&fe&&c.createElement("div",{className:ne("".concat(o,"-mask"),D),style:{display:(p==null?void 0:p.display)==="none"?"none":void 0}},O)),!we&&fe&&c.createElement(Nte,Ee({"aria-hidden":!re,visible:re,prefixCls:l,onClose:ge,mousePosition:de,src:Q,alt:r,imageInfo:{width:f,height:m},fallback:d,getContainer:N,icons:z,movable:F,scaleStep:R,minScale:H,maxScale:V,rootClassName:C,imageRender:B,imgCommonProps:ce,toolbarRender:W},q)))};sN.PreviewGroup=JDe;var nje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},rje=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:nje}))},ije=c.forwardRef(rje),aje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},oje=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:aje}))},sje=c.forwardRef(oje),lje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},cje=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:lje}))},W9=c.forwardRef(cje),uje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},dje=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:uje}))},fje=c.forwardRef(dje),mje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},pje=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:mje}))},vje=c.forwardRef(pje);const r6=e=>({position:e||"absolute",inset:0}),hje=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new rn("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},Ha),{padding:`0 ${ae(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},gje=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:a,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,m=new rn(n).setA(.1),p=m.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ae(o)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},bje=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new rn(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},yje=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},r6()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},r6()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[gje(e),bje(e)]}]},wje=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},hje(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},r6())}}},xje=e=>{const{previewCls:t}=e;return{[`${t}-root`]:yv(e,"zoom"),"&":eM(e,!0)}},Sje=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new rn(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new rn(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new rn(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),Dte=sn("Image",e=>{const t=`${e.componentCls}-preview`,n=Kt(e,{previewCls:t,modalMaskBg:new rn("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[wje(n),yje(n),HQ(Kt(n,{componentCls:t})),xje(n)]},Sje);var Cje=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=Cje(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=c.useContext(xt),a=i("image",t),o=`${a}-preview`,s=i(),l=Ln(a),[u,d,f]=Dte(a,l),[m]=hs("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=c.useMemo(()=>{var v;if(n===!1)return n;const h=typeof n=="object"?n:{},g=ne(d,f,l,(v=h.rootClassName)!==null&&v!==void 0?v:"");return Object.assign(Object.assign({},h),{transitionName:Mi(s,"zoom",h.transitionName),maskTransitionName:Mi(s,"fade",h.maskTransitionName),rootClassName:g,zIndex:m})},[n]);return u(c.createElement(sN.PreviewGroup,Object.assign({preview:p,previewPrefixCls:o,icons:jte},r)))};var U9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:o}=e,s=U9(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:u=rs,getPopupContainer:d,image:f}=c.useContext(xt),m=l("image",n),p=l(),v=u.Image||rs.Image,h=Ln(m),[g,w,b]=Dte(m,h),y=ne(a,w,b,h),x=ne(i,w,f==null?void 0:f.className),[C]=hs("ImagePreview",typeof r=="object"?r.zIndex:void 0),S=c.useMemo(()=>{var _;if(r===!1)return r;const $=typeof r=="object"?r:{},{getContainer:E,closeIcon:T,rootClassName:M}=$,j=U9($,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:c.createElement("div",{className:`${m}-mask-info`},c.createElement(Gk,null),v==null?void 0:v.preview),icons:jte},j),{rootClassName:ne(y,M),getContainer:E??d,transitionName:Mi(p,"zoom",$.transitionName),maskTransitionName:Mi(p,"fade",$.maskTransitionName),zIndex:C,closeIcon:T??((_=f==null?void 0:f.preview)===null||_===void 0?void 0:_.closeIcon)})},[r,v,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),k=Object.assign(Object.assign({},f==null?void 0:f.style),o);return g(c.createElement(sN,Object.assign({prefixCls:m,preview:S,rootClassName:y,className:x,style:k},s)))};Fte.PreviewGroup=kje;function _je(e,t,n){return typeof n=="boolean"?n:e.length?!0:Wr(t).some(i=>i.type===aZ)}var Ate=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ic.forwardRef((o,s)=>c.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},o)))}const lN=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=Ate(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=c.useContext(xt),l=s("layout",n),[u,d,f]=iZ(l),m=r?`${l}-${r}`:l;return u(c.createElement(a,Object.assign({className:ne(n||m,i,d,f),ref:t},o)))}),$je=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(xt),[r,i]=c.useState([]),{prefixCls:a,className:o,rootClassName:s,children:l,hasSider:u,tagName:d,style:f}=e,m=Ate(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=_n(m,["suffixCls"]),{getPrefixCls:v,layout:h}=c.useContext(xt),g=v("layout",a),w=_je(r,l,u),[b,y,x]=iZ(g),C=ne(g,{[`${g}-has-sider`]:w,[`${g}-rtl`]:n==="rtl"},h==null?void 0:h.className,o,s,y,x),S=c.useMemo(()=>({siderHook:{addSider:k=>{i(_=>[].concat(Fe(_),[k]))},removeSider:k=>{i(_=>_.filter($=>$!==k))}}}),[]);return b(c.createElement(tZ.Provider,{value:S},c.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},h==null?void 0:h.style),f)},p),l)))}),Eje=Kk({tagName:"div",displayName:"Layout"})($je),Pje=Kk({suffixCls:"header",tagName:"header",displayName:"Header"})(lN),Tje=Kk({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(lN),Oje=Kk({suffixCls:"content",tagName:"main",displayName:"Content"})(lN),Hl=Eje;Hl.Header=Pje;Hl.Footer=Tje;Hl.Content=Oje;Hl.Sider=aZ;Hl._InternalSiderContext=Mk;const Lte=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var Ije={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Rje=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:Ije}))},q9=c.forwardRef(Rje),Mje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Nje=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:Mje}))},G9=c.forwardRef(Nje),Bte={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Dje=[10,20,50,100],jje=function(t){var n=t.pageSizeOptions,r=n===void 0?Dje:n,i=t.locale,a=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,p=t.sizeChangerRender,v=L.useState(""),h=ie(v,2),g=h[0],w=h[1],b=function(){return!g||Number.isNaN(g)?void 0:Number(g)},y=typeof f=="function"?f:function(M){return"".concat(M," ").concat(i.items_per_page)},x=function(j){w(j.target.value)},C=function(j){s||g===""||(w(""),!(j.relatedTarget&&(j.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||j.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(l==null||l(b())))},S=function(j){g!==""&&(j.keyCode===qe.ENTER||j.type==="click")&&(w(""),l==null||l(b()))},k=function(){return r.some(function(j){return j.toString()===o.toString()})?r:r.concat([o]).sort(function(j,I){var N=Number.isNaN(Number(j))?0:Number(j),O=Number.isNaN(Number(I))?0:Number(I);return N-O})},_="".concat(u,"-options");if(!m&&!l)return null;var $=null,E=null,T=null;return m&&p&&($=p({disabled:d,size:o,onSizeChange:function(j){a==null||a(Number(j))},"aria-label":i.page_size,className:"".concat(_,"-size-changer"),options:k().map(function(M){return{label:y(M),value:M}})})),l&&(s&&(T=typeof s=="boolean"?L.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:d,className:"".concat(_,"-quick-jumper-button")},i.jump_to_confirm):L.createElement("span",{onClick:S,onKeyUp:S},s)),E=L.createElement("div",{className:"".concat(_,"-quick-jumper")},i.jump_to,L.createElement("input",{disabled:d,type:"text",value:g,onChange:x,onKeyUp:S,onBlur:C,"aria-label":i.page}),i.page,T)),L.createElement("li",{className:_},$,E)},wh=function(t){var n,r=t.rootPrefixCls,i=t.page,a=t.active,o=t.className,s=t.showTitle,l=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=ne(f,"".concat(f,"-").concat(i),(n={},U(n,"".concat(f,"-active"),a),U(n,"".concat(f,"-disabled"),!i),n),o),p=function(){l(i)},v=function(w){u(w,l,i)},h=d(i,"page",L.createElement("a",{rel:"nofollow"},i));return h?L.createElement("li",{title:s?String(i):null,className:m,onClick:p,onKeyDown:v,tabIndex:0},h):null},Fje=function(t,n,r){return r};function K9(){}function Y9(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function hd(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Aje=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,s=t.className,l=t.current,u=t.defaultCurrent,d=u===void 0?1:u,f=t.total,m=f===void 0?0:f,p=t.pageSize,v=t.defaultPageSize,h=v===void 0?10:v,g=t.onChange,w=g===void 0?K9:g,b=t.hideOnSinglePage,y=t.align,x=t.showPrevNextJumpers,C=x===void 0?!0:x,S=t.showQuickJumper,k=t.showLessItems,_=t.showTitle,$=_===void 0?!0:_,E=t.onShowSizeChange,T=E===void 0?K9:E,M=t.locale,j=M===void 0?Bte:M,I=t.style,N=t.totalBoundaryShowSizeChanger,O=N===void 0?50:N,D=t.disabled,F=t.simple,z=t.showTotal,R=t.showSizeChanger,H=R===void 0?m>O:R,V=t.sizeChangerRender,B=t.pageSizeOptions,W=t.itemRender,q=W===void 0?Fje:W,Q=t.jumpPrevIcon,G=t.jumpNextIcon,X=t.prevIcon,re=t.nextIcon,K=L.useRef(null),Y=Ut(10,{value:p,defaultValue:h}),Z=ie(Y,2),J=Z[0],ee=Z[1],te=Ut(1,{value:l,defaultValue:d,postState:function(kt){return Math.max(1,Math.min(kt,hd(void 0,J,m)))}}),le=ie(te,2),oe=le[0],de=le[1],pe=L.useState(oe),we=ie(pe,2),fe=we[0],ge=we[1];c.useEffect(function(){ge(oe)},[oe]);var ue=Math.max(1,oe-(k?3:5)),ce=Math.min(hd(void 0,J,m),oe+(k?3:5));function $e(at,kt){var At=at||L.createElement("button",{type:"button","aria-label":kt,className:"".concat(i,"-item-link")});return typeof at=="function"&&(At=L.createElement(at,A({},t))),At}function se(at){var kt=at.target.value,At=hd(void 0,J,m),Dt;return kt===""?Dt=kt:Number.isNaN(Number(kt))?Dt=fe:kt>=At?Dt=At:Dt=Number(kt),Dt}function ve(at){return Y9(at)&&at!==oe&&Y9(m)&&m>0}var he=m>J?S:!1;function _e(at){(at.keyCode===qe.UP||at.keyCode===qe.DOWN)&&at.preventDefault()}function Se(at){var kt=se(at);switch(kt!==fe&&ge(kt),at.keyCode){case qe.ENTER:xe(kt);break;case qe.UP:xe(kt-1);break;case qe.DOWN:xe(kt+1);break}}function Pe(at){xe(se(at))}function De(at){var kt=hd(at,J,m),At=oe>kt&&kt!==0?kt:oe;ee(at),ge(At),T==null||T(oe,at),de(At),w==null||w(At,at)}function xe(at){if(ve(at)&&!D){var kt=hd(void 0,J,m),At=at;return at>kt?At=kt:at<1&&(At=1),At!==fe&&ge(At),de(At),w==null||w(At,J),At}return oe}var ye=oe>1,Te=oe2?At-2:0),en=2;enm?m:oe*J])),Oe=null,Ce=hd(void 0,J,m);if(b&&m<=J)return null;var Re=[],Ke={rootPrefixCls:i,onClick:xe,onKeyPress:Be,showTitle:$,itemRender:q,page:-1},Xe=oe-1>0?oe-1:0,lt=oe+1=pt*2&&oe!==3&&(Re[0]=L.cloneElement(Re[0],{className:ne("".concat(i,"-item-after-jump-prev"),Re[0].props.className)}),Re.unshift(rt)),Ce-oe>=pt*2&&oe!==Ce-2){var Ze=Re[Re.length-1];Re[Re.length-1]=L.cloneElement(Ze,{className:ne("".concat(i,"-item-before-jump-next"),Ze.props.className)}),Re.push(Oe)}Me!==1&&Re.unshift(L.createElement(wh,Ee({},Ke,{key:1,page:1}))),We!==Ce&&Re.push(L.createElement(wh,Ee({},Ke,{key:Ce,page:Ce})))}var Le=Ae(Xe);if(Le){var ot=!ye||!Ce;Le=L.createElement("li",{title:$?j.prev_page:null,onClick:Ie,tabIndex:ot?null:0,onKeyDown:ct,className:ne("".concat(i,"-prev"),U({},"".concat(i,"-disabled"),ot)),"aria-disabled":ot},Le)}var ht=et(lt);if(ht){var Et,Rt;F?(Et=!Te,Rt=ye?0:null):(Et=!Te||!Ce,Rt=Et?null:0),ht=L.createElement("li",{title:$?j.next_page:null,onClick:ke,tabIndex:Rt,onKeyDown:Ve,className:ne("".concat(i,"-next"),U({},"".concat(i,"-disabled"),Et)),"aria-disabled":Et},ht)}var Ct=ne(i,s,(n={},U(n,"".concat(i,"-start"),y==="start"),U(n,"".concat(i,"-center"),y==="center"),U(n,"".concat(i,"-end"),y==="end"),U(n,"".concat(i,"-simple"),F),U(n,"".concat(i,"-disabled"),D),n));return L.createElement("ul",Ee({className:Ct,style:I,ref:K},it),be,Le,F?st:Re,ht,L.createElement(jje,{locale:j,rootPrefixCls:i,disabled:D,selectPrefixCls:o,changeSize:De,pageSize:J,pageSizeOptions:B,quickGo:he?xe:null,goButton:Ge,showSizeChanger:H,sizeChangerRender:V}))};const Lje=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Bje=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),input:Object.assign(Object.assign({},GM(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},zje=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${ae(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ae(e.inputOutlineOffset)} 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Hje=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ae(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ae(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},j1(e)),HM(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Hk(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Vje=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ae(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Wje=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Vje(e)),Hje(e)),zje(e)),Bje(e)),Lje(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Uje=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Va(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ys(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ys(e))}}}},zte=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},D1(e)),Hte=e=>Kt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},N1(e)),qje=sn("Pagination",e=>{const t=Hte(e);return[Wje(t),Uje(t)]},zte),Gje=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Kje=Ff(["Pagination","bordered"],e=>{const t=Hte(e);return[Gje(t)]},zte);function X9(e){return c.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Yje=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:l,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,p=Yje(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:v}=_M(u),[,h]=Gr(),{getPrefixCls:g,direction:w,pagination:b={}}=c.useContext(xt),y=g("pagination",n),[x,C,S]=qje(y),k=Br(s),_=k==="small"||!!(v&&!k&&u),[$]=la("Pagination",lX),E=Object.assign(Object.assign({},$),l),[T,M]=X9(d),[j,I]=X9(b.showSizeChanger),N=T??j,O=M??I,D=f||Uc,F=c.useMemo(()=>m?m.map(W=>Number(W)):void 0,[m]),z=W=>{var q;const{disabled:Q,size:G,onSizeChange:X,"aria-label":re,className:K,options:Y}=W,{className:Z,onChange:J}=O||{},ee=(q=Y.find(te=>String(te.value)===String(G)))===null||q===void 0?void 0:q.value;return c.createElement(D,Object.assign({disabled:Q,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:te=>te.parentNode,"aria-label":re,options:Y},O,{value:ee,onChange:(te,le)=>{X==null||X(te),J==null||J(te,le)},size:_?"small":"middle",className:ne(K,Z)}))},R=c.useMemo(()=>{const W=c.createElement("span",{className:`${y}-item-ellipsis`},"•••"),q=c.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},w==="rtl"?c.createElement(Js,null):c.createElement(Ku,null)),Q=c.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},w==="rtl"?c.createElement(Ku,null):c.createElement(Js,null)),G=c.createElement("a",{className:`${y}-item-link`},c.createElement("div",{className:`${y}-item-container`},w==="rtl"?c.createElement(G9,{className:`${y}-item-link-icon`}):c.createElement(q9,{className:`${y}-item-link-icon`}),W)),X=c.createElement("a",{className:`${y}-item-link`},c.createElement("div",{className:`${y}-item-container`},w==="rtl"?c.createElement(q9,{className:`${y}-item-link-icon`}):c.createElement(G9,{className:`${y}-item-link-icon`}),W));return{prevIcon:q,nextIcon:Q,jumpPrevIcon:G,jumpNextIcon:X}},[w,y]),H=g("select",r),V=ne({[`${y}-${t}`]:!!t,[`${y}-mini`]:_,[`${y}-rtl`]:w==="rtl",[`${y}-bordered`]:h.wireframe},b==null?void 0:b.className,i,a,C,S),B=Object.assign(Object.assign({},b==null?void 0:b.style),o);return x(c.createElement(c.Fragment,null,h.wireframe&&c.createElement(Kje,{prefixCls:y}),c.createElement(Aje,Object.assign({},R,p,{style:B,prefixCls:y,selectPrefixCls:H,className:V,locale:E,pageSizeOptions:F,showSizeChanger:N,sizeChangerRender:z}))))},hS=100,Vte=hS/5,Wte=hS/2-Vte/2,FE=Wte*2*Math.PI,Q9=50,J9=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return c.createElement("circle",{className:ne(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Wte,cx:Q9,cy:Q9,strokeWidth:Vte,style:n})},Qje=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[o,s]=c.useState(!1);nn(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!o)return null;const u={strokeDashoffset:`${FE/4}`,strokeDasharray:`${FE*l/100} ${FE*(100-l)/100}`};return c.createElement("span",{className:ne(i,`${r}-progress`,l<=0&&a)},c.createElement("svg",{viewBox:`0 0 ${hS} ${hS}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},c.createElement(J9,{dotClassName:r,hasCircleCls:!0}),c.createElement(J9,{dotClassName:r,style:u})))};function Jje(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return c.createElement(c.Fragment,null,c.createElement("span",{className:ne(i,n>0&&a)},c.createElement("span",{className:ne(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>c.createElement("i",{className:`${t}-dot-item`,key:o})))),c.createElement(Qje,{prefixCls:t,percent:n}))}function Zje(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&c.isValidElement(n)?qr(n,{className:ne(n.props.className,i),percent:r}):c.createElement(Jje,{prefixCls:t,percent:r})}const eFe=new on("antSpinMove",{to:{opacity:1}}),tFe=new on("antRotate",{to:{transform:"rotate(405deg)"}}),nFe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:eFe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:tFe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},rFe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},iFe=sn("Spin",e=>{const t=Kt(e,{spinDotDefault:e.colorTextDescription});return[nFe(t)]},rFe),aFe=200,Z9=[[30,.05],[70,.03],[96,.01]];function oFe(e,t){const[n,r]=c.useState(0),i=c.useRef(null),a=t==="auto";return c.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{clearInterval(i.current)}),[a,e]),a?n:t}var sFe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s="default",tip:l,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:p,percent:v}=e,h=sFe(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:w,spin:b}=c.useContext(xt),y=g("spin",n),[x,C,S]=iFe(y),[k,_]=c.useState(()=>r&&!lFe(r,i)),$=oFe(k,v);c.useEffect(()=>{if(r){const O=tMe(i,()=>{_(!0)});return O(),()=>{var D;(D=O==null?void 0:O.cancel)===null||D===void 0||D.call(O)}}_(!1)},[i,r]);const E=c.useMemo(()=>typeof f<"u"&&!m,[f,m]),T=ne(y,b==null?void 0:b.className,{[`${y}-sm`]:s==="small",[`${y}-lg`]:s==="large",[`${y}-spinning`]:k,[`${y}-show-text`]:!!l,[`${y}-rtl`]:w==="rtl"},a,!m&&o,C,S),M=ne(`${y}-container`,{[`${y}-blur`]:k}),j=(t=p??(b==null?void 0:b.indicator))!==null&&t!==void 0?t:Ute,I=Object.assign(Object.assign({},b==null?void 0:b.style),d),N=c.createElement("div",Object.assign({},h,{style:I,className:T,"aria-live":"polite","aria-busy":k}),c.createElement(Zje,{prefixCls:y,indicator:j,percent:$}),l&&(E||m)?c.createElement("div",{className:`${y}-text`},l):null);return x(E?c.createElement("div",Object.assign({},h,{className:ne(`${y}-nested-loading`,u,C,S)}),k&&c.createElement("div",{key:"loading"},N),c.createElement("div",{className:M,key:"container"},f)):m?c.createElement("div",{className:ne(`${y}-fullscreen`,{[`${y}-fullscreen-show`]:k},o,C,S)},N):N)};qc.setDefaultIndicator=e=>{Ute=e};function cFe(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let Vo=null,Bd=e=>e(),w0=[],x0={};function eL(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=x0,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const uFe=L.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=c.useContext(xt),a=x0.prefixCls||i("message"),o=c.useContext(rS),[s,l]=tQ(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return L.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),l}),dFe=L.forwardRef((e,t)=>{const[n,r]=L.useState(eL),i=()=>{r(eL)};L.useEffect(i,[]);const a=GR(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),u=L.createElement(uFe,{ref:t,sync:i,messageConfig:n});return L.createElement(Jt,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(u):u)});function Yk(){if(!Vo){const e=document.createDocumentFragment(),t={fragment:e};Vo=t,Bd(()=>{ok()(L.createElement(dFe,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,Yk())})}}),e)});return}Vo.instance&&(w0.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Bd(()=>{const r=Vo.instance.open(Object.assign(Object.assign({},x0),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Bd(()=>{Vo==null||Vo.instance.destroy(e.key)});break;default:Bd(()=>{var r;const i=(r=Vo.instance)[t].apply(r,Fe(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),w0=[])}function fFe(e){x0=Object.assign(Object.assign({},x0),e),Bd(()=>{var t;(t=Vo==null?void 0:Vo.sync)===null||t===void 0||t.call(Vo)})}function mFe(e){const t=QR(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return w0.push(i),()=>{r?Bd(()=>{r()}):i.skipped=!0}});return Yk(),t}function pFe(e,t){const n=QR(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return w0.push(a),()=>{i?Bd(()=>{i()}):a.skipped=!0}});return Yk(),n}const vFe=e=>{w0.push({type:"destroy",key:e}),Yk()},hFe=["success","info","warning","error","loading"],gFe={open:mFe,destroy:vFe,config:fFe,useMessage:nQ,_InternalPanelDoNotUseOrYouWillBeFired:pke},jn=gFe;hFe.forEach(e=>{jn[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:l}=e,u=bFe(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=c.useContext(xt),f=d(),m=t||d("modal"),p=Ln(f),[v,h,g]=UQ(m,p),w=`${m}-confirm`;let b={};return a?b={closable:i??!1,title:"",footer:"",children:c.createElement(GQ,Object.assign({},e,{prefixCls:m,confirmPrefixCls:w,rootPrefixCls:f,content:s}))}:b={closable:i??!0,title:o,footer:l!==null&&c.createElement(BQ,Object.assign({},e)),children:s},v(c.createElement(_Q,Object.assign({prefixCls:m,className:ne(h,`${m}-pure-panel`,a&&w,a&&`${w}-${a}`,n,g,p)},u,{closeIcon:LQ(m,r),closable:i},b)))},wFe=dJ(yFe);function qte(e){return E1(QQ(e))}const Co=qQ;Co.useModal=nJ;Co.info=function(t){return E1(JQ(t))};Co.success=function(t){return E1(ZQ(t))};Co.error=function(t){return E1(eJ(t))};Co.warning=qte;Co.warn=qte;Co.confirm=function(t){return E1(tJ(t))};Co.destroyAll=function(){for(;Ad.length;){const t=Ad.pop();t&&t()}};Co.config=E3e;Co._InternalPanelDoNotUseOrYouWillBeFired=wFe;let Ps=null,jw=e=>e(),gS=[],S0={};function tL(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}=S0,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:o}}const xFe=L.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=c.useContext(xt),a=S0.prefixCls||i("notification"),o=c.useContext(rS),[s,l]=lJ(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.notification));return L.useEffect(r,[]),L.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),l}),SFe=L.forwardRef((e,t)=>{const[n,r]=L.useState(tL),i=()=>{r(tL)};L.useEffect(i,[]);const a=GR(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),u=L.createElement(xFe,{ref:t,sync:i,notificationConfig:n});return L.createElement(Jt,{prefixCls:o,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(u):u)});function cN(){if(!Ps){const e=document.createDocumentFragment(),t={fragment:e};Ps=t,jw(()=>{ok()(L.createElement(SFe,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,cN())})}}),e)});return}Ps.instance&&(gS.forEach(e=>{switch(e.type){case"open":{jw(()=>{Ps.instance.open(Object.assign(Object.assign({},S0),e.config))});break}case"destroy":jw(()=>{Ps==null||Ps.instance.destroy(e.key)});break}}),gS=[])}function CFe(e){S0=Object.assign(Object.assign({},S0),e),jw(()=>{var t;(t=Ps==null?void 0:Ps.sync)===null||t===void 0||t.call(Ps)})}function Gte(e){gS.push({type:"open",config:e}),cN()}const kFe=e=>{gS.push({type:"destroy",key:e}),cN()},_Fe=["success","info","warning","error"],$Fe={open:Gte,destroy:kFe,config:CFe,useNotification:cJ,_InternalPanelDoNotUseOrYouWillBeFired:V3e},Kte=$Fe;_Fe.forEach(e=>{Kte[e]=t=>Gte(Object.assign(Object.assign({},t),{type:e}))});var EFe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},PFe=function(){var t=c.useRef([]),n=c.useRef(null);return c.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},nL=0,TFe=ya();function OFe(){var e;return TFe?(e=nL,nL+=1):e="TEST_OR_SSR",e}const IFe=function(e){var t=c.useState(),n=ie(t,2),r=n[0],i=n[1];return c.useEffect(function(){i("rc_progress_".concat(OFe()))},[]),e||r};var rL=function(t){var n=t.bg,r=t.children;return c.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function iL(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var RFe=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&mt(r)==="object",p=m?"#FFF":void 0,v=d/2,h=c.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:v,cy:v,stroke:p,strokeLinecap:l,strokeWidth:u,opacity:s===0?0:1,style:o,ref:t});if(!m)return h;var g="".concat(i,"-conic"),w=f?"".concat(180+f/2,"deg"):"0deg",b=iL(r,(360-f)/360),y=iL(r,1),x="conic-gradient(from ".concat(w,", ").concat(b.join(", "),")"),C="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(y.join(", "),")");return c.createElement(c.Fragment,null,c.createElement("mask",{id:g},h),c.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(g,")")},c.createElement(rL,{bg:C},c.createElement(rL,{bg:x}))))}),Qh=100,AE=function(t,n,r,i,a,o,s,l,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-o)/360),p=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],v=(100-i)/100*n;u==="round"&&i!==100&&(v+=d/2,v>=n&&(v=n-.01));var h=Qh/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+f,transform:"rotate(".concat(a+m+p,"deg)"),transformOrigin:"".concat(h,"px ").concat(h,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},MFe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function aL(e){var t=e??[];return Array.isArray(t)?t:[t]}var NFe=function(t){var n=A(A({},EFe),t),r=n.id,i=n.prefixCls,a=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,u=l===void 0?0:l,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,p=n.style,v=n.className,h=n.strokeColor,g=n.percent,w=ut(n,MFe),b=Qh/2,y=IFe(r),x="".concat(y,"-gradient"),C=b-o/2,S=Math.PI*2*C,k=u>0?90+u/2:-90,_=S*((360-u)/360),$=mt(a)==="object"?a:{count:a,gap:2},E=$.count,T=$.gap,M=aL(g),j=aL(h),I=j.find(function(H){return H&&mt(H)==="object"}),N=I&&mt(I)==="object",O=N?"butt":m,D=AE(S,_,0,100,k,u,d,f,O,o),F=PFe(),z=function(){var V=0;return M.map(function(B,W){var q=j[W]||j[j.length-1],Q=AE(S,_,V,B,k,u,d,q,O,o);return V+=B,c.createElement(RFe,{key:W,color:q,ptg:B,radius:C,prefixCls:i,gradientId:x,style:Q,strokeLinecap:O,strokeWidth:o,gapDegree:u,ref:function(X){F[W]=X},size:Qh})}).reverse()},R=function(){var V=Math.round(E*(M[0]/100)),B=100/E,W=0;return new Array(E).fill(null).map(function(q,Q){var G=Q<=V-1?j[0]:f,X=G&&mt(G)==="object"?"url(#".concat(x,")"):void 0,re=AE(S,_,W,B,k,u,d,G,"butt",o,T);return W+=(_-re.strokeDashoffset+T)*100/_,c.createElement("circle",{key:Q,className:"".concat(i,"-circle-path"),r:C,cx:b,cy:b,stroke:X,strokeWidth:o,opacity:1,style:re,ref:function(Y){F[Q]=Y}})})};return c.createElement("svg",Ee({className:ne("".concat(i,"-circle"),v),viewBox:"0 0 ".concat(Qh," ").concat(Qh),style:p,id:r,role:"presentation"},w),!E&&c.createElement("circle",{className:"".concat(i,"-circle-trail"),r:C,cx:b,cy:b,stroke:f,strokeLinecap:O,strokeWidth:s||o,style:D}),E?R():z())};function zu(e){return!e||e<0?0:e>100?100:e}function bS(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const DFe=e=>{let{percent:t,success:n,successPercent:r}=e;const i=zu(bS({success:n,successPercent:r}));return[i,zu(zu(t)-i)]},jFe=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||np.green,n||null]},Xk=(e,t,n)=>{var r,i,a,o;let s=-1,l=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=d??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=u||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return[s,l]},FFe=3,AFe=e=>FFe/e*100,LFe=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:o=120,type:s,children:l,success:u,size:d=o,steps:f}=e,[m,p]=Xk(d,"circle");let{strokeWidth:v}=e;v===void 0&&(v=Math.max(AFe(m),6));const h={width:m,height:p,fontSize:m*.15+6},g=c.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),w=DFe(e),b=i||s==="dashboard"&&"bottom"||void 0,y=Object.prototype.toString.call(e.strokeColor)==="[object Object]",x=jFe({success:u,strokeColor:e.strokeColor}),C=ne(`${t}-inner`,{[`${t}-circle-gradient`]:y}),S=c.createElement(NFe,{steps:f,percent:f?w[1]:w,strokeWidth:v,trailWidth:v,strokeColor:f?x[1]:x,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:g,gapPosition:b}),k=m<=20,_=c.createElement("div",{className:C,style:h},S,!k&&l);return k?c.createElement(sa,{title:l},_):_},yS="--progress-line-stroke-color",Yte="--progress-percent",oL=e=>{const t=e?"100%":"-100%";return new on(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},BFe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${yS})`]},height:"100%",width:`calc(1 / var(${Yte}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ae(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:oL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:oL(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},zFe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},HFe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},VFe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},WFe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),UFe=sn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Kt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[BFe(n),zFe(n),HFe(n),VFe(n)]},WFe);var qFe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},KFe=(e,t)=>{const{from:n=np.blue,to:r=np.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=qFe(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=GFe(a),l=`linear-gradient(${i}, ${s})`;return{background:l,[yS]:l}}const o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[yS]:o}},YFe=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:u=null,percentPosition:d,success:f}=e,{align:m,type:p}=d,v=o&&typeof o!="string"?KFe(o,n):{[yS]:o,background:o},h=s==="square"||s==="butt"?0:void 0,g=i??[-1,a||(i==="small"?6:8)],[w,b]=Xk(g,"line",{strokeWidth:a}),y={backgroundColor:u||void 0,borderRadius:h},x=Object.assign(Object.assign({width:`${zu(r)}%`,height:b,borderRadius:h},v),{[Yte]:zu(r)/100}),C=bS(e),S={width:`${zu(C)}%`,height:b,borderRadius:h,backgroundColor:f==null?void 0:f.strokeColor},k={width:w<0?"100%":w},_=c.createElement("div",{className:`${t}-inner`,style:y},c.createElement("div",{className:ne(`${t}-bg`,`${t}-bg-${p}`),style:x},p==="inner"&&l),C!==void 0&&c.createElement("div",{className:`${t}-success-bg`,style:S})),$=p==="outer"&&m==="start",E=p==="outer"&&m==="end";return p==="outer"&&m==="center"?c.createElement("div",{className:`${t}-layout-bottom`},_,l):c.createElement("div",{className:`${t}-outer`,style:k},$&&l,_,E&&l)},XFe=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:o=null,prefixCls:s,children:l}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[m,p]=Xk(f,"step",{steps:n,strokeWidth:i}),v=m/n,h=new Array(n);for(let g=0;g{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:o,percent:s=0,size:l="default",showInfo:u=!0,type:d="line",status:f,format:m,style:p,percentPosition:v={}}=e,h=QFe(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:w="outer"}=v,b=Array.isArray(o)?o[0]:o,y=typeof o=="string"||Array.isArray(o)?o:void 0,x=c.useMemo(()=>{if(b){const z=typeof b=="string"?b:Object.values(b)[0];return new rn(z).isLight()}return!1},[o]),C=c.useMemo(()=>{var z,R;const H=bS(e);return parseInt(H!==void 0?(z=H??0)===null||z===void 0?void 0:z.toString():(R=s??0)===null||R===void 0?void 0:R.toString(),10)},[s,e.success,e.successPercent]),S=c.useMemo(()=>!JFe.includes(f)&&C>=100?"success":f||"normal",[f,C]),{getPrefixCls:k,direction:_,progress:$}=c.useContext(xt),E=k("progress",n),[T,M,j]=UFe(E),I=d==="line",N=I&&!a,O=c.useMemo(()=>{if(!u)return null;const z=bS(e);let R;const H=m||(B=>`${B}%`),V=I&&x&&w==="inner";return w==="inner"||m||S!=="exception"&&S!=="success"?R=H(zu(s),zu(z)):S==="exception"?R=I?c.createElement(Ql,null):c.createElement(vs,null):S==="success"&&(R=I?c.createElement(gv,null):c.createElement(SM,null)),c.createElement("span",{className:ne(`${E}-text`,{[`${E}-text-bright`]:V,[`${E}-text-${g}`]:N,[`${E}-text-${w}`]:N}),title:typeof R=="string"?R:void 0},R)},[u,s,C,S,d,E,m]);let D;d==="line"?D=a?c.createElement(XFe,Object.assign({},e,{strokeColor:y,prefixCls:E,steps:typeof a=="object"?a.count:a}),O):c.createElement(YFe,Object.assign({},e,{strokeColor:b,prefixCls:E,direction:_,percentPosition:{align:g,type:w}}),O):(d==="circle"||d==="dashboard")&&(D=c.createElement(LFe,Object.assign({},e,{strokeColor:b,prefixCls:E,progressStatus:S}),O));const F=ne(E,`${E}-status-${S}`,{[`${E}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${E}-inline-circle`]:d==="circle"&&Xk(l,"circle")[0]<=20,[`${E}-line`]:N,[`${E}-line-align-${g}`]:N,[`${E}-line-position-${w}`]:N,[`${E}-steps`]:a,[`${E}-show-info`]:u,[`${E}-${l}`]:typeof l=="string",[`${E}-rtl`]:_==="rtl"},$==null?void 0:$.className,r,i,M,j);return T(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},$==null?void 0:$.style),p),className:F,role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},_n(h,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))});function Tl(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=G2(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var Tv,z1;function Ia(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function nc(e,t){return(e>>>t&1)!=0}function Za(e){if(!e)throw new Error("Assertion error")}var Ol=function(){function e(t,n){Kn(this,e),U(this,"modeBits",void 0),U(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Yn(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();Tv=Ol;U(Ol,"NUMERIC",new Tv(1,[10,12,14]));U(Ol,"ALPHANUMERIC",new Tv(2,[9,11,13]));U(Ol,"BYTE",new Tv(4,[8,16,16]));U(Ol,"KANJI",new Tv(8,[8,10,12]));U(Ol,"ECI",new Tv(7,[0,0,0]));var Qo=Yn(function e(t,n){Kn(this,e),U(this,"ordinal",void 0),U(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});z1=Qo;U(Qo,"LOW",new z1(0,1));U(Qo,"MEDIUM",new z1(1,0));U(Qo,"QUARTILE",new z1(2,3));U(Qo,"HIGH",new z1(3,2));var tf=function(){function e(t,n,r){if(Kn(this,e),U(this,"mode",void 0),U(this,"numChars",void 0),U(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return Yn(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=Tl(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;Ia(o,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(Ol.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var o=[],s=0;s>>9)*1335;var o=(r<<10|i)^21522;Za(o>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,nc(o,s));this.setFunctionModule(8,7,nc(o,6)),this.setFunctionModule(8,8,nc(o,7)),this.setFunctionModule(7,8,nc(o,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,nc(o,l));for(var u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,nc(o,u));for(var d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,nc(o,d));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var i=this.version<<12|n;Za(i>>>18==0);for(var a=0;a<18;a++){var o=nc(i,a),s=this.size-11+a%3,l=Math.floor(a/3);this.setFunctionModule(s,l,o),this.setFunctionModule(l,s,o)}}}},{key:"drawFinderPattern",value:function(n,r){for(var i=-4;i<=4;i++)for(var a=-4;a<=4;a++){var o=Math.max(Math.abs(a),Math.abs(i)),s=n+a,l=r+i;0<=s&&s=l)&&g.push(C[x])})},b=0;b=1;i-=2){i==6&&(i=5);for(var a=0;a>>3],7-(r&7)),r++)}}Za(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r5&&n++):(this.finderPenaltyAddHistory(a,o),i||(n+=this.finderPenaltyCountPatterns(o)*e.PENALTY_N3),i=this.modules[r][s],a=1);n+=this.finderPenaltyTerminateAndCount(i,a,o)*e.PENALTY_N3}for(var l=0;l5&&n++):(this.finderPenaltyAddHistory(d,f),u||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),u=this.modules[m][l],d=1);n+=this.finderPenaltyTerminateAndCount(u,d,f)*e.PENALTY_N3}for(var p=0;p0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(i&&n[0]>=r*4&&n[6]>=r?1:0)+(i&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,i){var a=r;return n&&(this.finderPenaltyAddHistory(a,i),a=0),a+=this.size,this.finderPenaltyAddHistory(a,i),this.finderPenaltyCountPatterns(i)}},{key:"finderPenaltyAddHistory",value:function(n,r){var i=n;r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}],[{key:"encodeText",value:function(n,r){var i=tf.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=tf.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");var l,u;for(l=i;;l++){var d=e.getNumDataCodewords(l,r)*8,f=tf.getTotalBits(n,l);if(f<=d){u=f;break}if(l>=a)throw new RangeError("Data too long")}for(var m=r,p=0,v=[Qo.MEDIUM,Qo.QUARTILE,Qo.HIGH];p>>3]|=E<<7-(T&7)}),new e(l,m,$,o)}},{key:"getNumRawDataModules",value:function(n){if(ne.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var i=Math.floor(n/7)+2;r-=(25*i-10)*i-55,n>=7&&(r-=36)}return Za(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],i=0;i>>8||r>>>8)throw new RangeError("Byte out of range");for(var i=0,a=7;a>=0;a--)i=i<<1^(i>>>7)*285,i^=(r>>>a&1)*n;return Za(i>>>8==0),i}}]),e}();U(Gc,"MIN_VERSION",1);U(Gc,"MAX_VERSION",40);U(Gc,"PENALTY_N1",3);U(Gc,"PENALTY_N2",3);U(Gc,"PENALTY_N3",40);U(Gc,"PENALTY_N4",10);U(Gc,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);U(Gc,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var ZFe={L:Qo.LOW,M:Qo.MEDIUM,Q:Qo.QUARTILE,H:Qo.HIGH},Xte=128,Qte="L",Jte="#FFFFFF",Zte="#000000",ene=!1,tne=1,eAe=4,tAe=0,nAe=.1;function nne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,i){var a=null;r.forEach(function(o,s){if(!o&&a!==null){n.push("M".concat(a+t," ").concat(i+t,"h").concat(s-a,"v1H").concat(a+t,"z")),a=null;return}if(s===r.length-1){if(!o)return;a===null?n.push("M".concat(s+t,",").concat(i+t," h1v1H").concat(s+t,"z")):n.push("M".concat(a+t,",").concat(i+t," h").concat(s+1-a,"v1H").concat(a+t,"z"));return}o&&a===null&&(a=s)})}),n.join("")}function rne(e,t){return e.slice().map(function(n,r){return r=t.y+t.h?n:n.map(function(i,a){return a=t.x+t.w?i:!1})})}function rAe(e,t,n,r){if(r==null)return null;var i=e.length+n*2,a=Math.floor(t*nAe),o=i/t,s=(r.width||a)*o,l=(r.height||a)*o,u=r.x==null?e.length/2-s/2:r.x*o,d=r.y==null?e.length/2-l/2:r.y*o,f=r.opacity==null?1:r.opacity,m=null;if(r.excavate){var p=Math.floor(u),v=Math.floor(d),h=Math.ceil(s+u-p),g=Math.ceil(l+d-v);m={x:p,y:v,w:h,h:g}}var w=r.crossOrigin;return{x:u,y:d,h:l,w:s,excavation:m,opacity:f,crossOrigin:w}}function iAe(e,t){return t!=null?Math.floor(t):e?eAe:tAe}var aAe=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function ine(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,a=e.marginSize,o=e.imageSettings,s=e.size,l=c.useMemo(function(){var v=tf.makeSegments(t);return Gc.encodeSegments(v,ZFe[n],r)},[t,n,r]),u=c.useMemo(function(){var v=l.getModules(),h=iAe(i,a),g=v.length+h*2,w=rAe(v,s,h,o);return{cells:v,margin:h,numCells:g,calculatedImageSettings:w}},[l,s,o,i,a]),d=u.cells,f=u.margin,m=u.numCells,p=u.calculatedImageSettings;return{qrcode:l,margin:f,cells:d,numCells:m,calculatedImageSettings:p}}var oAe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],ane=L.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?Xte:i,o=t.level,s=o===void 0?Qte:o,l=t.bgColor,u=l===void 0?Jte:l,d=t.fgColor,f=d===void 0?Zte:d,m=t.includeMargin,p=m===void 0?ene:m,v=t.minVersion,h=v===void 0?tne:v,g=t.marginSize,w=t.style,b=t.imageSettings,y=ut(t,oAe),x=b==null?void 0:b.src,C=c.useRef(null),S=c.useRef(null),k=c.useCallback(function(F){C.current=F,typeof n=="function"?n(F):n&&(n.current=F)},[n]),_=c.useState(!1),$=ie(_,2),E=$[1],T=ine({value:r,level:s,minVersion:h,includeMargin:p,marginSize:g,imageSettings:b,size:a}),M=T.margin,j=T.cells,I=T.numCells,N=T.calculatedImageSettings;c.useEffect(function(){if(C.current!=null){var F=C.current,z=F.getContext("2d");if(!z)return;var R=j,H=S.current,V=N!=null&&H!==null&&H.complete&&H.naturalHeight!==0&&H.naturalWidth!==0;V&&N.excavation!=null&&(R=rne(j,N.excavation));var B=window.devicePixelRatio||1;F.height=F.width=a*B;var W=a/I*B;z.scale(W,W),z.fillStyle=u,z.fillRect(0,0,I,I),z.fillStyle=f,aAe?z.fill(new Path2D(nne(R,M))):j.forEach(function(q,Q){q.forEach(function(G,X){G&&z.fillRect(X+M,Q+M,1,1)})}),N&&(z.globalAlpha=N.opacity),V&&z.drawImage(H,N.x+M,N.y+M,N.w,N.h)}}),c.useEffect(function(){E(!1)},[x]);var O=A({height:a,width:a},w),D=null;return x!=null&&(D=L.createElement("img",{src:x,key:x,style:{display:"none"},onLoad:function(){E(!0)},ref:S,crossOrigin:N==null?void 0:N.crossOrigin})),L.createElement(L.Fragment,null,L.createElement("canvas",Ee({style:O,height:a,width:a,ref:k,role:"img"},y)),D)});ane.displayName="QRCodeCanvas";var sAe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],one=L.forwardRef(function(t,n){var r=t.value,i=t.size,a=i===void 0?Xte:i,o=t.level,s=o===void 0?Qte:o,l=t.bgColor,u=l===void 0?Jte:l,d=t.fgColor,f=d===void 0?Zte:d,m=t.includeMargin,p=m===void 0?ene:m,v=t.minVersion,h=v===void 0?tne:v,g=t.title,w=t.marginSize,b=t.imageSettings,y=ut(t,sAe),x=ine({value:r,level:s,minVersion:h,includeMargin:p,marginSize:w,imageSettings:b,size:a}),C=x.margin,S=x.cells,k=x.numCells,_=x.calculatedImageSettings,$=S,E=null;b!=null&&_!=null&&(_.excavation!=null&&($=rne(S,_.excavation)),E=L.createElement("image",{href:b.src,height:_.h,width:_.w,x:_.x+C,y:_.y+C,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));var T=nne($,C);return L.createElement("svg",Ee({height:a,width:a,viewBox:"0 0 ".concat(k," ").concat(k),ref:n,role:"img"},y),!!g&&L.createElement("title",null,g),L.createElement("path",{fill:u,d:"M0,0 h".concat(k,"v").concat(k,"H0z"),shapeRendering:"crispEdges"}),L.createElement("path",{fill:f,d:T,shapeRendering:"crispEdges"}),E)});one.displayName="QRCodeSVG";var lAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},cAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:lAe}))},uAe=c.forwardRef(cAe),dAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},fAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:dAe}))},mAe=c.forwardRef(fAe),pAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},vAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:pAe}))},hAe=c.forwardRef(vAe),gAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},bAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:gAe}))},yAe=c.forwardRef(bAe),wAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},xAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:wAe}))},SAe=c.forwardRef(xAe),CAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M348 676.1C250 619.4 184 513.4 184 392c0-181.1 146.9-328 328-328s328 146.9 328 328c0 121.4-66 227.4-164 284.1V792c0 17.7-14.3 32-32 32H380c-17.7 0-32-14.3-32-32V676.1zM392 888h240c4.4 0 8 3.6 8 8v32c0 17.7-14.3 32-32 32H416c-17.7 0-32-14.3-32-32v-32c0-4.4 3.6-8 8-8z"}}]},name:"bulb",theme:"filled"},kAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:CAe}))},_Ae=c.forwardRef(kAe),$Ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},EAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:$Ae}))},PAe=c.forwardRef(EAe),TAe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},OAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:TAe}))},IAe=c.forwardRef(OAe),RAe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},MAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:RAe}))},NAe=c.forwardRef(MAe),DAe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},jAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:DAe}))},FAe=c.forwardRef(jAe),AAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},LAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:AAe}))},BAe=c.forwardRef(LAe),zAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},HAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:zAe}))},VAe=c.forwardRef(HAe),WAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},UAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:WAe}))},sne=c.forwardRef(UAe),qAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},GAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:qAe}))},KAe=c.forwardRef(GAe),YAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},XAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:YAe}))},lne=c.forwardRef(XAe),QAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},JAe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:QAe}))},ZAe=c.forwardRef(JAe),e9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},t9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:e9e}))},n9e=c.forwardRef(t9e),r9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},i9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:r9e}))},a9e=c.forwardRef(i9e),o9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},s9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:o9e}))},l9e=c.forwardRef(s9e),c9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},u9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:c9e}))},cne=c.forwardRef(u9e),d9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},f9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:d9e}))},m9e=c.forwardRef(f9e),p9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},v9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:p9e}))},h9e=c.forwardRef(v9e),g9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},b9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:g9e}))},y9e=c.forwardRef(b9e),w9e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},x9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:w9e}))},S9e=c.forwardRef(x9e),C9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},k9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:C9e}))},_9e=c.forwardRef(k9e),$9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},E9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:$9e}))},P9e=c.forwardRef(E9e),T9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},O9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:T9e}))},I9e=c.forwardRef(O9e),R9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},M9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:R9e}))},une=c.forwardRef(M9e),N9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},D9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:N9e}))},j9e=c.forwardRef(D9e),F9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},A9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:F9e}))},L9e=c.forwardRef(A9e),B9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},z9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:B9e}))},H9e=c.forwardRef(z9e),V9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},W9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:V9e}))},U9e=c.forwardRef(W9e),q9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},G9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:q9e}))},K9e=c.forwardRef(G9e),Y9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},X9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:Y9e}))},dne=c.forwardRef(X9e),Q9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},J9e=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:Q9e}))},Z9e=c.forwardRef(J9e),eLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},tLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:eLe}))},nLe=c.forwardRef(tLe),rLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},iLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:rLe}))},aLe=c.forwardRef(iLe),oLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},sLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:oLe}))},fne=c.forwardRef(sLe),lLe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},cLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:lLe}))},uLe=c.forwardRef(cLe),dLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},fLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:dLe}))},mLe=c.forwardRef(fLe),pLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"},vLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:pLe}))},hLe=c.forwardRef(vLe),gLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},bLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:gLe}))},yLe=c.forwardRef(bLe),wLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},xLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:wLe}))},SLe=c.forwardRef(xLe),CLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},kLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:CLe}))},mne=c.forwardRef(kLe),_Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},$Le=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:_Le}))},ELe=c.forwardRef($Le),PLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},TLe=function(t,n){return c.createElement(Ht,Ee({},t,{ref:n,icon:PLe}))},i6=c.forwardRef(TLe);const OLe=L.createElement(qc,null);function ILe(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:a}=e;const o=L.createElement(L.Fragment,null,L.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&L.createElement(dn,{type:"link",icon:L.createElement(yLe,null),onClick:r},n==null?void 0:n.refresh)),s=L.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:o,loading:OLe,scanned:s};return(i??(f=>l[f.status]))({status:a,locale:n,onRefresh:r})}const RLe=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${ae(n)} ${r} ${i}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},MLe=e=>({QRCodeMaskBackgroundColor:new rn(e.colorBgContainer).setA(.96).toRgbString()}),NLe=sn("QRCode",e=>{const t=Kt(e,{QRCodeTextColor:e.colorText});return RLe(t)},MLe);var DLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i;const[,a]=Gr(),{value:o,type:s="canvas",icon:l="",size:u=160,iconSize:d,color:f=a.colorText,errorLevel:m="M",status:p="active",bordered:v=!0,onRefresh:h,style:g,className:w,rootClassName:b,prefixCls:y,bgColor:x="transparent",statusRender:C}=e,S=DLe(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:k}=c.useContext(xt),_=k("qrcode",y),[$,E,T]=NLe(_),M={src:l,x:void 0,y:void 0,height:typeof d=="number"?d:(t=d==null?void 0:d.height)!==null&&t!==void 0?t:40,width:typeof d=="number"?d:(n=d==null?void 0:d.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},j=er(S,!0),I=_n(S,Object.keys(j)),N=Object.assign({value:o,size:u,level:m,bgColor:x,fgColor:f,style:{width:g==null?void 0:g.width,height:g==null?void 0:g.height},imageSettings:l?M:void 0},j),[O]=la("QRCode");if(!o)return null;const D=ne(_,w,b,E,T,{[`${_}-borderless`]:!v}),F=Object.assign(Object.assign({backgroundColor:x},g),{width:(r=g==null?void 0:g.width)!==null&&r!==void 0?r:u,height:(i=g==null?void 0:g.height)!==null&&i!==void 0?i:u});return $(L.createElement("div",Object.assign({},I,{className:D,style:F}),p!=="active"&&L.createElement("div",{className:`${_}-mask`},L.createElement(ILe,{prefixCls:_,locale:O,status:p,onRefresh:h,statusRender:C})),s==="canvas"?L.createElement(ane,Object.assign({},N)):L.createElement(one,Object.assign({},N))))};function FLe(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,a=e.characterRender,o=e.index,s=e.count,l=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,m=e.onClick,p=function(C){f(C,o)},v=function(C){m(C,o)},h=function(C){C.keyCode===qe.ENTER&&m(C,o)},g=o+1,w=new Set([r]);l===0&&o===0&&d?w.add("".concat(r,"-focused")):u&&l+.5>=g&&lo?"true":"false","aria-posinset":o+1,"aria-setsize":s,tabIndex:n?-1:0},L.createElement("div",{className:"".concat(r,"-first")},b),L.createElement("div",{className:"".concat(r,"-second")},b)));return a&&(y=a(y,e)),y}const ALe=L.forwardRef(FLe);function LLe(){var e=c.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function BLe(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function zLe(e){var t,n,r=e.ownerDocument,i=r.body,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function HLe(e){var t=zLe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=BLe(r),t.left}var VLe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function WLe(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,a=e.defaultValue,o=e.value,s=e.count,l=s===void 0?5:s,u=e.allowHalf,d=u===void 0?!1:u,f=e.allowClear,m=f===void 0?!0:f,p=e.keyboard,v=p===void 0?!0:p,h=e.character,g=h===void 0?"★":h,w=e.characterRender,b=e.disabled,y=e.direction,x=y===void 0?"ltr":y,C=e.tabIndex,S=C===void 0?0:C,k=e.autoFocus,_=e.onHoverChange,$=e.onChange,E=e.onFocus,T=e.onBlur,M=e.onKeyDown,j=e.onMouseLeave,I=ut(e,VLe),N=LLe(),O=ie(N,2),D=O[0],F=O[1],z=L.useRef(null),R=function(){if(!b){var he;(he=z.current)===null||he===void 0||he.focus()}};L.useImperativeHandle(t,function(){return{focus:R,blur:function(){if(!b){var he;(he=z.current)===null||he===void 0||he.blur()}}}});var H=Ut(a||0,{value:o}),V=ie(H,2),B=V[0],W=V[1],q=Ut(null),Q=ie(q,2),G=Q[0],X=Q[1],re=function(he,_e){var Se=x==="rtl",Pe=he+1;if(d){var De=D(he),xe=HLe(De),ye=De.clientWidth;(Se&&_e-xe>ye/2||!Se&&_e-xe0&&!Se||_e===qe.RIGHT&&B>0&&Se?(K(B-Pe),he.preventDefault()):_e===qe.LEFT&&B{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ae(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},GLe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),KLe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),qLe(e)),GLe(e))}},YLe=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),XLe=sn("Rate",e=>{const t=Kt(e,{});return[KLe(t)]},YLe);var QLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=c.createElement(mne,null),disabled:l}=e,u=QLe(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),d=(C,S)=>{let{index:k}=S;return o?c.createElement(sa,{title:o[k]},C):C},{getPrefixCls:f,direction:m,rate:p}=c.useContext(xt),v=f("rate",n),[h,g,w]=XLe(v),b=Object.assign(Object.assign({},p==null?void 0:p.style),a),y=c.useContext(Ur),x=l??y;return h(c.createElement(ULe,Object.assign({ref:t,character:s,characterRender:d,disabled:x},u,{className:ne(r,i,g,w,p==null?void 0:p.className),style:b,prefixCls:v,direction:m})))});var JLe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],pne=c.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,a=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,p=e.onChange,v=e.onKeyDown,h=ut(e,JLe),g=Ut(!1,{value:o,defaultValue:s}),w=ie(g,2),b=w[0],y=w[1];function x(_,$){var E=b;return l||(E=_,y(E),p==null||p(E,$)),E}function C(_){_.which===qe.LEFT?x(!1,_):_.which===qe.RIGHT&&x(!0,_),v==null||v(_)}function S(_){var $=x(!b,_);m==null||m($,_)}var k=ne(i,a,(n={},U(n,"".concat(i,"-checked"),b),U(n,"".concat(i,"-disabled"),l),n));return c.createElement("button",Ee({},h,{type:"button",role:"switch","aria-checked":b,disabled:l,className:k,ref:t,onKeyDown:C,onClick:S}),u,c.createElement("span",{className:"".concat(i,"-inner")},c.createElement("span",{className:"".concat(i,"-inner-checked")},d),c.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});pne.displayName="Switch";const ZLe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,u=`${t}-inner`,d=ae(l(s).add(l(r).mul(2)).equal()),f=ae(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:ae(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ae(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},e7e=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},t7e=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ae(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},n7e=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,calc:s}=e,l=`${t}-inner`,u=ae(s(o).add(s(r).mul(2)).equal()),d=ae(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},r7e=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ae(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Va(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},i7e=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=2,l=a-s*2,u=o-s*2;return{trackHeight:a,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new rn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},a7e=sn("Switch",e=>{const t=Kt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[r7e(t),n7e(t),t7e(t),e7e(t),ZLe(t)]},i7e);var o7e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:l,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:p}=e,v=o7e(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,g]=Ut(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:w,direction:b,switch:y}=c.useContext(xt),x=c.useContext(Ur),C=(i??x)||a,S=w("switch",n),k=c.createElement("div",{className:`${S}-handle`},a&&c.createElement(Xs,{className:`${S}-loading-icon`})),[_,$,E]=a7e(S),T=Br(r),M=ne(y==null?void 0:y.className,{[`${S}-small`]:T==="small",[`${S}-loading`]:a,[`${S}-rtl`]:b==="rtl"},o,s,$,E),j=Object.assign(Object.assign({},y==null?void 0:y.style),l),I=function(){g(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return _(c.createElement(S1,{component:"Switch"},c.createElement(pne,Object.assign({},v,{checked:h,onChange:I,prefixCls:S,className:M,style:j,disabled:C,ref:t,loadingIcon:k}))))}),vne=s7e;vne.__ANT_SWITCH=!0;var uc={},H1="rc-table-internal-hook";function dN(e){var t=c.createContext(void 0),n=function(i){var a=i.value,o=i.children,s=c.useRef(a);s.current=a;var l=c.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=ie(l,1),d=u[0];return nn(function(){ki.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(a)})})},[a]),c.createElement(t.Provider,{value:d},o)};return{Context:t,Provider:n,defaultValue:e}}function Wi(e,t){var n=Vt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(p){m[p]=f[p]}),m}),r=c.useContext(e==null?void 0:e.Context),i=r||{},a=i.listeners,o=i.getValue,s=c.useRef();s.current=n(r?o():e==null?void 0:e.defaultValue);var l=c.useState({}),u=ie(l,2),d=u[1];return nn(function(){if(!r)return;function f(m){var p=n(m);is(s.current,p,!0)||d({})}return a.add(f),function(){a.delete(f)}},[r]),s.current}function l7e(){var e=c.createContext(null);function t(){return c.useContext(e)}function n(i,a){var o=Gs(i),s=function(u,d){var f=o?{ref:d}:{},m=c.useRef(0),p=c.useRef(u),v=t();return v!==null?c.createElement(i,Ee({},u,f)):((!a||a(p.current,u))&&(m.current+=1),p.current=u,c.createElement(e.Provider,{value:m.current},c.createElement(i,Ee({},u,f))))};return o?c.forwardRef(s):s}function r(i,a){var o=Gs(i),s=function(u,d){var f=o?{ref:d}:{};return t(),c.createElement(i,Ee({},u,f))};return o?c.memo(c.forwardRef(s),a):c.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var fN=l7e(),hne=fN.makeImmutable,Ov=fN.responseImmutable,c7e=fN.useImmutableMark,Ca=dN(),gne=c.createContext({renderWithProps:!1}),u7e="RC_TABLE_KEY";function d7e(e){return e==null?[]:Array.isArray(e)?e:[e]}function Qk(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},a=i.key,o=i.dataIndex,s=a||d7e(o).join("-")||u7e;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function o6(e){return e!=null}function f7e(e){return typeof e=="number"&&!Number.isNaN(e)}function m7e(e){return e&&mt(e)==="object"&&!Array.isArray(e)&&!c.isValidElement(e)}function p7e(e,t,n,r,i,a){var o=c.useContext(gne),s=c7e(),l=Nc(function(){if(o6(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Ti(e,u),f=d,m=void 0;if(i){var p=i(d,e,n);m7e(p)?(f=p.children,m=p.props,o.renderWithProps=!0):f=p}return[f,m]},[s,e,r,t,i,n],function(u,d){if(a){var f=ie(u,2),m=f[1],p=ie(d,2),v=p[1];return a(v,m)}return o.renderWithProps?!0:!is(u,d,!0)});return l}function v7e(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function h7e(e,t){return Wi(Ca,function(n){var r=v7e(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var g7e=function(t){var n=t.ellipsis,r=t.rowType,i=t.children,a,o=n===!0?{showTitle:!0}:n;return o&&(o.showTitle||r==="header")&&(typeof i=="string"||typeof i=="number"?a=i.toString():c.isValidElement(i)&&typeof i.props.children=="string"&&(a=i.props.children)),a};function b7e(e){var t,n,r,i,a,o,s,l,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,p=e.prefixCls,v=e.className,h=e.align,g=e.record,w=e.render,b=e.dataIndex,y=e.renderIndex,x=e.shouldCellUpdate,C=e.index,S=e.rowType,k=e.colSpan,_=e.rowSpan,$=e.fixLeft,E=e.fixRight,T=e.firstFixLeft,M=e.lastFixLeft,j=e.firstFixRight,I=e.lastFixRight,N=e.appendNode,O=e.additionalProps,D=O===void 0?{}:O,F=e.isSticky,z="".concat(p,"-cell"),R=Wi(Ca,["supportSticky","allColumnsFixedLeft","rowHoverable"]),H=R.supportSticky,V=R.allColumnsFixedLeft,B=R.rowHoverable,W=p7e(g,b,y,d,w,x),q=ie(W,2),Q=q[0],G=q[1],X={},re=typeof $=="number"&&H,K=typeof E=="number"&&H;re&&(X.position="sticky",X.left=$),K&&(X.position="sticky",X.right=E);var Y=(t=(n=(r=G==null?void 0:G.colSpan)!==null&&r!==void 0?r:D.colSpan)!==null&&n!==void 0?n:k)!==null&&t!==void 0?t:1,Z=(i=(a=(o=G==null?void 0:G.rowSpan)!==null&&o!==void 0?o:D.rowSpan)!==null&&a!==void 0?a:_)!==null&&i!==void 0?i:1,J=h7e(C,Z),ee=ie(J,2),te=ee[0],le=ee[1],oe=Vt(function(ce){var $e;g&&le(C,C+Z-1),D==null||($e=D.onMouseEnter)===null||$e===void 0||$e.call(D,ce)}),de=Vt(function(ce){var $e;g&&le(-1,-1),D==null||($e=D.onMouseLeave)===null||$e===void 0||$e.call(D,ce)});if(Y===0||Z===0)return null;var pe=(s=D.title)!==null&&s!==void 0?s:g7e({rowType:S,ellipsis:f,children:Q}),we=ne(z,v,(l={},U(U(U(U(U(U(U(U(U(U(l,"".concat(z,"-fix-left"),re&&H),"".concat(z,"-fix-left-first"),T&&H),"".concat(z,"-fix-left-last"),M&&H),"".concat(z,"-fix-left-all"),M&&V&&H),"".concat(z,"-fix-right"),K&&H),"".concat(z,"-fix-right-first"),j&&H),"".concat(z,"-fix-right-last"),I&&H),"".concat(z,"-ellipsis"),f),"".concat(z,"-with-append"),N),"".concat(z,"-fix-sticky"),(re||K)&&F&&H),U(l,"".concat(z,"-row-hover"),!G&&te)),D.className,G==null?void 0:G.className),fe={};h&&(fe.textAlign=h);var ge=A(A(A(A({},G==null?void 0:G.style),X),fe),D.style),ue=Q;return mt(ue)==="object"&&!Array.isArray(ue)&&!c.isValidElement(ue)&&(ue=null),f&&(M||j)&&(ue=c.createElement("span",{className:"".concat(z,"-content")},ue)),c.createElement(u,Ee({},G,D,{className:we,style:ge,title:pe,scope:m,onMouseEnter:B?oe:void 0,onMouseLeave:B?de:void 0,colSpan:Y!==1?Y:null,rowSpan:Z!==1?Z:null}),N,ue)}const Iv=c.memo(b7e);function mN(e,t,n,r,i){var a=n[e]||{},o=n[t]||{},s,l;a.fixed==="left"?s=r.left[i==="rtl"?t:e]:o.fixed==="right"&&(l=r.right[i==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,p=n[t+1],v=n[e-1],h=p&&!p.fixed||v&&!v.fixed||n.every(function(x){return x.fixed==="left"});if(i==="rtl"){if(s!==void 0){var g=v&&v.fixed==="left";m=!g&&h}else if(l!==void 0){var w=p&&p.fixed==="right";f=!w&&h}}else if(s!==void 0){var b=p&&p.fixed==="left";u=!b&&h}else if(l!==void 0){var y=v&&v.fixed==="right";d=!y&&h}return{fixLeft:s,fixRight:l,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var bne=c.createContext({});function y7e(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=i===void 0?1:i,o=e.rowSpan,s=e.align,l=Wi(Ca,["prefixCls","direction"]),u=l.prefixCls,d=l.direction,f=c.useContext(bne),m=f.scrollColumnIndex,p=f.stickyOffsets,v=f.flattenColumns,h=n+a-1,g=h+1===m?a+1:a,w=mN(n,n+g-1,v,p,d);return c.createElement(Iv,Ee({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:o,render:function(){return r}},w))}var w7e=["children"];function x7e(e){var t=e.children,n=ut(e,w7e);return c.createElement("tr",n,t)}function Jk(e){var t=e.children;return t}Jk.Row=x7e;Jk.Cell=y7e;function S7e(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=Wi(Ca,"prefixCls"),a=r.length-1,o=r[a],s=c.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o!=null&&o.scrollbar?a:null}},[o,r,a,n]);return c.createElement(bne.Provider,{value:s},c.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const ly=Ov(S7e);var yne=Jk;function C7e(e){return null}function k7e(e){return null}function wne(e,t,n,r,i,a,o){e.push({record:t,indent:n,index:o});var s=a(t),l=i==null?void 0:i.has(s);if(t&&Array.isArray(t[r])&&l)for(var u=0;u1?T-1:0),j=1;j=1)),style:A(A({},n),w==null?void 0:w.style)}),v.map(function($,E){var T=$.render,M=$.dataIndex,j=$.className,I=_ne(m,$,E,l,i),N=I.key,O=I.fixedInfo,D=I.appendCellNode,F=I.additionalCellProps;return c.createElement(Iv,Ee({className:j,ellipsis:$.ellipsis,align:$.align,scope:$.rowScope,component:$.rowScope?f:d,prefixCls:p,key:N,record:r,index:i,renderIndex:a,dataIndex:M,render:T,shouldCellUpdate:$.shouldCellUpdate},O,{appendNode:D,additionalProps:F}))})),k;if(y&&(x.current||b)){var _=g(r,i,l+1,b);k=c.createElement(Cne,{expanded:b,className:ne("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(l+1),C),prefixCls:p,component:u,cellComponent:d,colSpan:v.length,isEmpty:!1},_)}return c.createElement(c.Fragment,null,S,k)}const P7e=Ov(E7e);function T7e(e){var t=e.columnKey,n=e.onColumnResize,r=c.useRef();return c.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),c.createElement(Ci,{data:t},c.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},c.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function O7e(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return c.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},c.createElement(Ci.Collection,{onBatchResize:function(a){a.forEach(function(o){var s=o.data,l=o.size;r(s,l.offsetWidth)})}},n.map(function(i){return c.createElement(T7e,{key:i,columnKey:i,onColumnResize:r})})))}function I7e(e){var t=e.data,n=e.measureColumnWidth,r=Wi(Ca,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,a=r.getComponent,o=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=xne(t,d,u,l),p=c.useRef({renderWithProps:!1}),v=a(["body","wrapper"],"tbody"),h=a(["body","row"],"tr"),g=a(["body","cell"],"td"),w=a(["body","cell"],"th"),b;t.length?b=m.map(function(x,C){var S=x.record,k=x.indent,_=x.index,$=l(S,C);return c.createElement(P7e,{key:$,rowKey:$,record:S,index:C,renderIndex:_,rowComponent:h,cellComponent:g,scopeCellComponent:w,indent:k})}):b=c.createElement(Cne,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:h,cellComponent:g,colSpan:s.length,isEmpty:!0},f);var y=Qk(s);return c.createElement(gne.Provider,{value:p.current},c.createElement(v,{className:"".concat(i,"-tbody")},n&&c.createElement(O7e,{prefixCls:i,columnsKey:y,onColumnResize:o}),b))}const R7e=Ov(I7e);var M7e=["expandable"],_g="RC_TABLE_INTERNAL_COL_DEFINE";function N7e(e){var t=e.expandable,n=ut(e,M7e),r;return"expandable"in e?r=A(A({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var D7e=["columnType"];function $ne(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=Wi(Ca,["tableLayout"]),a=i.tableLayout,o=[],s=r||n.length,l=!1,u=s-1;u>=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,p=void 0;if(f&&(m=f[_g],a==="auto"&&(p=f.minWidth)),d||p||m||l){var v=m||{};v.columnType;var h=ut(v,D7e);o.unshift(c.createElement("col",Ee({key:u,style:{width:d,minWidth:p}},h))),l=!0}}return c.createElement("colgroup",null,o)}var j7e=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function F7e(e,t){return c.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:o,prefixCls:d,key:p[h]},w,{additionalProps:b,rowType:"header"}))}))};function B7e(e){var t=[];function n(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var u=s,d=o.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},p=1,v=f.children;return v&&v.length>0&&(p=n(v,u,l+1).reduce(function(h,g){return h+g},0),m.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=p,m.colEnd=m.colStart+p-1,t[l].push(m),u+=p,p});return d}n(e,0);for(var r=t.length,i=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function H7e(e,t,n){return c.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(m){var p=cL(t,m.width);p?r+=p:i+=1});var a=Math.max(t,n),o=Math.max(a-r,i),s=i,l=o/i,u=0,d=e.map(function(m){var p=A({},m),v=cL(t,p.width);if(v)p.width=v;else{var h=Math.floor(l);p.width=s===1?o:h,o-=h,s-=1}return u+=p.width,p});if(u0?A(A({},t),{},{children:Ene(n)}):t})}function s6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&mt(n)==="object"}).reduce(function(n,r,i){var a=r.fixed,o=a===!0?"left":a,s="".concat(t,"-").concat(i),l=r.children;return l&&l.length>0?[].concat(Fe(n),Fe(s6(l,s).map(function(u){return A({fixed:o},u)}))):[].concat(Fe(n),[A(A({key:s},r),{},{fixed:o})])},[])}function U7e(e){return e.map(function(t){var n=t.fixed,r=ut(t,W7e),i=n;return n==="left"?i="right":n==="right"&&(i="left"),A({fixed:i},r)})}function q7e(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,p=e.direction,v=e.expandRowByClick,h=e.columnWidth,g=e.fixed,w=e.scrollWidth,b=e.clientWidth,y=c.useMemo(function(){var M=r||pN(i)||[];return Ene(M.slice())},[r,i]),x=c.useMemo(function(){if(a){var M=y.slice();if(!M.includes(uc)){var j=m||0;j>=0&&(j||g==="left"||!g)&&M.splice(j,0,uc),g==="right"&&M.splice(y.length,0,uc)}var I=M.indexOf(uc);M=M.filter(function(F,z){return F!==uc||z===I});var N=y[I],O;g?O=g:O=N?N.fixed:null;var D=U(U(U(U(U(U({},_g,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",O),"className","".concat(n,"-row-expand-icon-cell")),"width",h),"render",function(z,R,H){var V=l(R,H),B=o.has(V),W=f?f(R):!0,q=d({prefixCls:n,expanded:B,expandable:W,record:R,onExpand:u});return v?c.createElement("span",{onClick:function(G){return G.stopPropagation()}},q):q});return M.map(function(F){return F===uc?D:F})}return y.filter(function(F){return F!==uc})},[a,y,l,o,d,p]),C=c.useMemo(function(){var M=x;return t&&(M=t(M)),M.length||(M=[{render:function(){return null}}]),M},[t,x,p]),S=c.useMemo(function(){return p==="rtl"?U7e(s6(C)):s6(C)},[C,p,w]),k=c.useMemo(function(){for(var M=-1,j=S.length-1;j>=0;j-=1){var I=S[j].fixed;if(I==="left"||I===!0){M=j;break}}if(M>=0)for(var N=0;N<=M;N+=1){var O=S[N].fixed;if(O!=="left"&&O!==!0)return!0}var D=S.findIndex(function(R){var H=R.fixed;return H==="right"});if(D>=0)for(var F=D;F=D-s?b(function(F){return A(A({},F),{},{isHiddenScrollBar:!0})}):b(function(F){return A(A({},F),{},{isHiddenScrollBar:!1})})}})},j=function(N){b(function(O){return A(A({},O),{},{scrollLeft:N/f*m||0})})};return c.useImperativeHandle(n,function(){return{setScrollLeft:j,checkScrollBarVisible:M}}),c.useEffect(function(){var I=Pl(document.body,"mouseup",$,!1),N=Pl(document.body,"mousemove",T,!1);return M(),function(){I.remove(),N.remove()}},[p,S]),c.useEffect(function(){var I=Pl(l,"scroll",M,!1),N=Pl(window,"resize",M,!1);return function(){I.remove(),N.remove()}},[l]),c.useEffect(function(){w.isHiddenScrollBar||b(function(I){var N=a.current;return N?A(A({},I),{},{scrollLeft:N.scrollLeft/N.scrollWidth*N.clientWidth}):I})},[w.isHiddenScrollBar]),f<=m||!p||w.isHiddenScrollBar?null:c.createElement("div",{style:{height:AF(),width:m,bottom:s},className:"".concat(d,"-sticky-scroll")},c.createElement("div",{onMouseDown:E,ref:v,className:ne("".concat(d,"-sticky-scroll-bar"),U({},"".concat(d,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(w.scrollLeft,"px, 0, 0)")}}))};const eBe=c.forwardRef(Z7e);var Tne="rc-table",tBe=[],nBe={};function rBe(){return"No Data"}function iBe(e,t){var n=A({rowKey:"key",prefixCls:Tne,emptyText:rBe},e),r=n.prefixCls,i=n.className,a=n.rowClassName,o=n.style,s=n.data,l=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,p=n.footer,v=n.summary,h=n.caption,g=n.id,w=n.showHeader,b=n.components,y=n.emptyText,x=n.onRow,C=n.onHeaderRow,S=n.onScroll,k=n.internalHooks,_=n.transformColumns,$=n.internalRefs,E=n.tailor,T=n.getContainerWidth,M=n.sticky,j=n.rowHoverable,I=j===void 0?!0:j,N=s||tBe,O=!!N.length,D=k===H1,F=c.useCallback(function(dt,Je){return Ti(b,dt)||Je},[b]),z=c.useMemo(function(){return typeof l=="function"?l:function(dt){var Je=dt&&dt[l];return Je}},[l]),R=F(["body"]),H=X7e(),V=ie(H,3),B=V[0],W=V[1],q=V[2],Q=G7e(n,N,z),G=ie(Q,6),X=G[0],re=G[1],K=G[2],Y=G[3],Z=G[4],J=G[5],ee=u==null?void 0:u.x,te=c.useState(0),le=ie(te,2),oe=le[0],de=le[1],pe=q7e(A(A(A({},n),X),{},{expandable:!!X.expandedRowRender,columnTitle:X.columnTitle,expandedKeys:K,getRowKey:z,onTriggerExpand:J,expandIcon:Y,expandIconColumnIndex:X.expandIconColumnIndex,direction:f,scrollWidth:D&&E&&typeof ee=="number"?ee:null,clientWidth:oe}),D?_:null),we=ie(pe,4),fe=we[0],ge=we[1],ue=we[2],ce=we[3],$e=ue??ee,se=c.useMemo(function(){return{columns:fe,flattenColumns:ge}},[fe,ge]),ve=c.useRef(),he=c.useRef(),_e=c.useRef(),Se=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:ve.current,scrollTo:function(Je){var gt;if(_e.current instanceof HTMLElement){var bt=Je.index,Yt=Je.top,un=Je.key;if(f7e(Yt)){var vr;(vr=_e.current)===null||vr===void 0||vr.scrollTo({top:Yt})}else{var ii,ai=un??z(N[bt]);(ii=_e.current.querySelector('[data-row-key="'.concat(ai,'"]')))===null||ii===void 0||ii.scrollIntoView()}}else(gt=_e.current)!==null&>!==void 0&>.scrollTo&&_e.current.scrollTo(Je)}}});var Pe=c.useRef(),De=c.useState(!1),xe=ie(De,2),ye=xe[0],Te=xe[1],Ie=c.useState(!1),ke=ie(Ie,2),je=ke[0],He=ke[1],Be=Pne(new Map),ct=ie(Be,2),Ve=ct[0],Ye=ct[1],Ne=Qk(ge),Ae=Ne.map(function(dt){return Ve.get(dt)}),et=c.useMemo(function(){return Ae},[Ae.join("_")]),nt=J7e(et,ge,f),rt=u&&o6(u.y),it=u&&o6($e)||!!X.fixed,be=it&&ge.some(function(dt){var Je=dt.fixed;return Je}),Oe=c.useRef(),Ce=Q7e(M,r),Re=Ce.isSticky,Ke=Ce.offsetHeader,Xe=Ce.offsetSummary,lt=Ce.offsetScroll,tt=Ce.stickyClassName,Qe=Ce.container,Ge=c.useMemo(function(){return v==null?void 0:v(N)},[v,N]),st=(rt||Re)&&c.isValidElement(Ge)&&Ge.type===Jk&&Ge.props.fixed,pt,yt,zt;rt&&(yt={overflowY:O?"scroll":"auto",maxHeight:u.y}),it&&(pt={overflowX:"auto"},rt||(yt={overflowY:"hidden"}),zt={width:$e===!0?"auto":$e,minWidth:"100%"});var $t=c.useCallback(function(dt,Je){bv(ve.current)&&Ye(function(gt){if(gt.get(dt)!==Je){var bt=new Map(gt);return bt.set(dt,Je),bt}return gt})},[]),ze=Y7e(),me=ie(ze,2),Me=me[0],We=me[1];function wt(dt,Je){Je&&(typeof Je=="function"?Je(dt):Je.scrollLeft!==dt&&(Je.scrollLeft=dt,Je.scrollLeft!==dt&&setTimeout(function(){Je.scrollLeft=dt},0)))}var Ze=Vt(function(dt){var Je=dt.currentTarget,gt=dt.scrollLeft,bt=f==="rtl",Yt=typeof gt=="number"?gt:Je.scrollLeft,un=Je||nBe;if(!We()||We()===un){var vr;Me(un),wt(Yt,he.current),wt(Yt,_e.current),wt(Yt,Pe.current),wt(Yt,(vr=Oe.current)===null||vr===void 0?void 0:vr.setScrollLeft)}var ii=Je||he.current;if(ii){var ai=D&&E&&typeof $e=="number"?$e:ii.scrollWidth,qi=ii.clientWidth;if(ai===qi){Te(!1),He(!1);return}bt?(Te(-Yt0)):(Te(Yt>0),He(Yt1?g-I:0,O=A(A(A({},_),u),{},{flex:"0 0 ".concat(I,"px"),width:"".concat(I,"px"),marginRight:N,pointerEvents:"auto"}),D=c.useMemo(function(){return f?M<=1:E===0||M===0||M>1},[M,E,f]);D?O.visibility="hidden":f&&(O.height=m==null?void 0:m(M));var F=D?function(){return null}:p,z={};return(M===0||E===0)&&(z.rowSpan=1,z.colSpan=1),c.createElement(Iv,Ee({className:ne(h,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:x,record:l,index:a,renderIndex:s,dataIndex:v,render:F,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:S,additionalProps:A(A({},k),{},{style:O},z)}))}var lBe=["data","index","className","rowKey","style","extra","getHeight"],cBe=c.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,a=e.rowKey,o=e.style,s=e.extra,l=e.getHeight,u=ut(e,lBe),d=n.record,f=n.indent,m=n.index,p=Wi(Ca,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),v=p.scrollX,h=p.flattenColumns,g=p.prefixCls,w=p.fixColumn,b=p.componentWidth,y=Wi(vN,["getComponent"]),x=y.getComponent,C=Sne(d,a,r,f),S=x(["body","row"],"div"),k=x(["body","cell"],"div"),_=C.rowSupportExpand,$=C.expanded,E=C.rowProps,T=C.expandedRowRender,M=C.expandedRowClassName,j;if(_&&$){var I=T(d,r,f+1,$),N=kne(M,d,r,f),O={};w&&(O={style:U({},"--virtual-width","".concat(b,"px"))});var D="".concat(g,"-expanded-row-cell");j=c.createElement(S,{className:ne("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(f+1),N)},c.createElement(Iv,{component:k,prefixCls:g,className:ne(D,U({},"".concat(D,"-fixed"),w)),additionalProps:O},I))}var F=A(A({},o),{},{width:v});s&&(F.position="absolute",F.pointerEvents="none");var z=c.createElement(S,Ee({},E,u,{"data-row-key":a,ref:_?null:t,className:ne(i,"".concat(g,"-row"),E==null?void 0:E.className,U({},"".concat(g,"-row-extra"),s)),style:A(A({},F),E==null?void 0:E.style)}),h.map(function(R,H){return c.createElement(sBe,{key:H,component:k,rowInfo:C,column:R,colIndex:H,indent:f,index:r,renderIndex:m,record:d,inverse:s,getHeight:l})}));return _?c.createElement("div",{ref:t},z,j):z}),mL=Ov(cBe),uBe=c.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=Wi(Ca,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=i.flattenColumns,o=i.onColumnResize,s=i.getRowKey,l=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,f=i.scrollX,m=i.direction,p=Wi(vN),v=p.sticky,h=p.scrollY,g=p.listItemHeight,w=p.getComponent,b=p.onScroll,y=c.useRef(),x=xne(n,d,l,s),C=c.useMemo(function(){var j=0;return a.map(function(I){var N=I.width,O=I.key;return j+=N,[O,N,j]})},[a]),S=c.useMemo(function(){return C.map(function(j){return j[2]})},[C]);c.useEffect(function(){C.forEach(function(j){var I=ie(j,2),N=I[0],O=I[1];o(N,O)})},[C]),c.useImperativeHandle(t,function(){var j,I={scrollTo:function(O){var D;(D=y.current)===null||D===void 0||D.scrollTo(O)},nativeElement:(j=y.current)===null||j===void 0?void 0:j.nativeElement};return Object.defineProperty(I,"scrollLeft",{get:function(){var O;return((O=y.current)===null||O===void 0?void 0:O.getScrollInfo().x)||0},set:function(O){var D;(D=y.current)===null||D===void 0||D.scrollTo({left:O})}}),I});var k=function(I,N){var O,D=(O=x[N])===null||O===void 0?void 0:O.record,F=I.onCell;if(F){var z,R=F(D,N);return(z=R==null?void 0:R.rowSpan)!==null&&z!==void 0?z:1}return 1},_=function(I){var N=I.start,O=I.end,D=I.getSize,F=I.offsetY;if(O<0)return null;for(var z=a.filter(function(Y){return k(Y,N)===0}),R=N,H=function(Z){if(z=z.filter(function(J){return k(J,Z)===0}),!z.length)return R=Z,1},V=N;V>=0&&!H(V);V-=1);for(var B=a.filter(function(Y){return k(Y,O)!==1}),W=O,q=function(Z){if(B=B.filter(function(J){return k(J,Z)!==1}),!B.length)return W=Math.max(Z-1,O),1},Q=O;Q1})&&G.push(Z)},re=R;re<=W;re+=1)X(re);var K=G.map(function(Y){var Z=x[Y],J=s(Z.record,Y),ee=function(oe){var de=Y+oe-1,pe=s(x[de].record,de),we=D(J,pe);return we.bottom-we.top},te=D(J);return c.createElement(mL,{key:Y,data:Z,rowKey:J,index:Y,style:{top:-F+te.top},extra:!0,getHeight:ee})});return K},$=c.useMemo(function(){return{columnsOffset:S}},[S]),E="".concat(u,"-tbody"),T=w(["body","wrapper"]),M={};return v&&(M.position="sticky",M.bottom=0,mt(v)==="object"&&v.offsetScroll&&(M.bottom=v.offsetScroll)),c.createElement(Ine.Provider,{value:$},c.createElement(kk,{fullHeight:!1,ref:y,prefixCls:"".concat(E,"-virtual"),styles:{horizontalScrollBar:M},className:E,height:h,itemHeight:g||24,data:x,itemKey:function(I){return s(I.record)},component:T,scrollWidth:f,direction:m,onVirtualScroll:function(I){var N,O=I.x;r({currentTarget:(N=y.current)===null||N===void 0?void 0:N.nativeElement,scrollLeft:O})},onScroll:b,extraRender:_},function(j,I,N){var O=s(j.record,I);return c.createElement(mL,{data:j,rowKey:O,index:I,style:N.style})}))}),dBe=Ov(uBe),fBe=function(t,n){var r=n.ref,i=n.onScroll;return c.createElement(dBe,{ref:r,data:t,onScroll:i})};function mBe(e,t){var n=e.data,r=e.columns,i=e.scroll,a=e.sticky,o=e.prefixCls,s=o===void 0?Tne:o,l=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=i||{},p=m.x,v=m.y;typeof p!="number"&&(p=1),typeof v!="number"&&(v=500);var h=Vt(function(b,y){return Ti(d,b)||y}),g=Vt(f),w=c.useMemo(function(){return{sticky:a,scrollY:v,listItemHeight:u,getComponent:h,onScroll:g}},[a,v,u,h,g]);return c.createElement(vN.Provider,{value:w},c.createElement(Rv,Ee({},e,{className:ne(l,"".concat(s,"-virtual")),scroll:A(A({},i),{},{x:p}),components:A(A({},d),{},{body:n!=null&&n.length?fBe:void 0}),columns:r,internalHooks:H1,tailor:!0,ref:t})))}var pBe=c.forwardRef(mBe);function Rne(e){return hne(pBe,e)}Rne();const vBe=e=>null,hBe=e=>null;var hN=c.createContext(null),Mne=c.createContext({}),gBe=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function oc(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function gN(e){return e.split("-")}function xBe(e,t){var n=[],r=Ma(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(o){var s=o.key,l=o.children;n.push(s),i(l)})}return i(r.children),n}function SBe(e){if(e.parent){var t=gN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function CBe(e){var t=gN(e.pos);return Number(t[t.length-1])===0}function hL(e,t,n,r,i,a,o,s,l,u){var d,f=e.clientX,m=e.clientY,p=e.target.getBoundingClientRect(),v=p.top,h=p.height,g=(u==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-f),w=(g-12)/r,b=l.filter(function(O){var D;return(D=s[O])===null||D===void 0||(D=D.children)===null||D===void 0?void 0:D.length}),y=Ma(s,n.eventKey);if(m-1.5?a({dragNode:j,dropNode:I,dropPosition:1})?E=1:N=!1:a({dragNode:j,dropNode:I,dropPosition:0})?E=0:a({dragNode:j,dropNode:I,dropPosition:1})?E=1:N=!1:a({dragNode:j,dropNode:I,dropPosition:1})?E=1:N=!1,{dropPosition:E,dropLevelOffset:T,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:$,dropContainerKey:E===0?null:((d=y.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:N}}function gL(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function LE(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(mt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return An(!1,"`checkedKeys` is not an array or an object"),null;return t}function l6(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=Ma(t,i);if(a){n.add(i);var o=a.parent,s=a.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(i){r(i)}),Fe(n)}function kBe(e){const[t,n]=c.useState(null);return[c.useCallback((a,o,s)=>{const l=t??a,u=Math.min(l||0,a),d=Math.max(l||0,a),f=o.slice(u,d+1).map(v=>e(v)),m=f.some(v=>!s.has(v)),p=[];return f.forEach(v=>{m?(s.has(v)||p.push(v),s.add(v)):(s.delete(v),p.push(v))}),n(m?d:null),p},[t]),a=>{n(a)}]}const su={},c6="SELECT_ALL",u6="SELECT_INVERT",d6="SELECT_NONE",bL=[],Nne=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Fe(n),Fe(Nne(e,r[e]))))}),n},_Be=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:o,onSelect:s,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:p,selections:v,fixed:h,renderCell:g,hideSelectAll:w,checkStrictly:b=!0}=t||{},{prefixCls:y,data:x,pageData:C,getRecordByKey:S,getRowKey:k,expandType:_,childrenColumnName:$,locale:E,getPopupContainer:T}=e,M=Xl(),[j,I]=kBe(Y=>Y),[N,O]=Ut(r||i||bL,{value:r}),D=c.useRef(new Map),F=c.useCallback(Y=>{if(n){const Z=new Map;Y.forEach(J=>{let ee=S(J);!ee&&D.current.has(J)&&(ee=D.current.get(J)),Z.set(J,ee)}),D.current=Z}},[S,n]);c.useEffect(()=>{F(N)},[N]);const z=c.useMemo(()=>Nne($,C),[$,C]),{keyEntities:R}=c.useMemo(()=>{if(b)return{keyEntities:null};let Y=x;if(n){const Z=new Set(z.map((ee,te)=>k(ee,te))),J=Array.from(D.current).reduce((ee,te)=>{let[le,oe]=te;return Z.has(le)?ee:ee.concat(oe)},[]);Y=[].concat(Fe(Y),Fe(J))}return A1(Y,{externalGetKey:k,childrenPropName:$})},[x,k,b,$,n,z]),H=c.useMemo(()=>{const Y=new Map;return z.forEach((Z,J)=>{const ee=k(Z,J),te=(a?a(Z):null)||{};Y.set(ee,te)}),Y},[z,k,a]),V=c.useCallback(Y=>{const Z=k(Y);let J;return H.has(Z)?J=H.get(k(Y)):J=a?a(Y):void 0,!!(J!=null&&J.disabled)},[H,k]),[B,W]=c.useMemo(()=>{if(b)return[N||[],[]];const{checkedKeys:Y,halfCheckedKeys:Z}=Zo(N,!0,R,V);return[Y||[],Z]},[N,b,R,V]),q=c.useMemo(()=>{const Y=p==="radio"?B.slice(0,1):B;return new Set(Y)},[B,p]),Q=c.useMemo(()=>p==="radio"?new Set:new Set(W),[W,p]);c.useEffect(()=>{t||O(bL)},[!!t]);const G=c.useCallback((Y,Z)=>{let J,ee;F(Y),n?(J=Y,ee=Y.map(te=>D.current.get(te))):(J=[],ee=[],Y.forEach(te=>{const le=S(te);le!==void 0&&(J.push(te),ee.push(le))})),O(J),o==null||o(J,ee,{type:Z})},[O,S,o,n]),X=c.useCallback((Y,Z,J,ee)=>{if(s){const te=J.map(le=>S(le));s(S(Y),Z,te,ee)}G(J,"single")},[s,S,G]),re=c.useMemo(()=>!v||w?null:(v===!0?[c6,u6,d6]:v).map(Z=>Z===c6?{key:"all",text:E.selectionAll,onSelect(){G(x.map((J,ee)=>k(J,ee)).filter(J=>{const ee=H.get(J);return!(ee!=null&&ee.disabled)||q.has(J)}),"all")}}:Z===u6?{key:"invert",text:E.selectInvert,onSelect(){const J=new Set(q);C.forEach((te,le)=>{const oe=k(te,le),de=H.get(oe);de!=null&&de.disabled||(J.has(oe)?J.delete(oe):J.add(oe))});const ee=Array.from(J);u&&(M.deprecated(!1,"onSelectInvert","onChange"),u(ee)),G(ee,"invert")}}:Z===d6?{key:"none",text:E.selectNone,onSelect(){d==null||d(),G(Array.from(q).filter(J=>{const ee=H.get(J);return ee==null?void 0:ee.disabled}),"none")}}:Z).map(Z=>Object.assign(Object.assign({},Z),{onSelect:function(){for(var J,ee,te=arguments.length,le=new Array(te),oe=0;oe{var Z;if(!t)return Y.filter(Se=>Se!==su);let J=Fe(Y);const ee=new Set(q),te=z.map(k).filter(Se=>!H.get(Se).disabled),le=te.every(Se=>ee.has(Se)),oe=te.some(Se=>ee.has(Se)),de=()=>{const Se=[];le?te.forEach(De=>{ee.delete(De),Se.push(De)}):te.forEach(De=>{ee.has(De)||(ee.add(De),Se.push(De))});const Pe=Array.from(ee);l==null||l(!le,Pe.map(De=>S(De)),Se.map(De=>S(De))),G(Pe,"all"),I(null)};let pe,we;if(p!=="radio"){let Se;if(re){const Te={getPopupContainer:T,items:re.map((Ie,ke)=>{const{key:je,text:He,onSelect:Be}=Ie;return{key:je??ke,onClick:()=>{Be==null||Be(te)},label:He}})};Se=c.createElement("div",{className:`${y}-selection-extra`},c.createElement(Bp,{menu:Te,getPopupContainer:T},c.createElement("span",null,c.createElement(I1,null))))}const Pe=z.map((Te,Ie)=>{const ke=k(Te,Ie),je=H.get(ke)||{};return Object.assign({checked:ee.has(ke)},je)}).filter(Te=>{let{disabled:Ie}=Te;return Ie}),De=!!Pe.length&&Pe.length===z.length,xe=De&&Pe.every(Te=>{let{checked:Ie}=Te;return Ie}),ye=De&&Pe.some(Te=>{let{checked:Ie}=Te;return Ie});we=c.createElement(Bl,{checked:De?xe:!!z.length&&le,indeterminate:De?!xe&&ye:!le&&oe,onChange:de,disabled:z.length===0||De,"aria-label":Se?"Custom selection":"Select all",skipGroup:!0}),pe=!w&&c.createElement("div",{className:`${y}-selection`},we,Se)}let fe;p==="radio"?fe=(Se,Pe,De)=>{const xe=k(Pe,De),ye=ee.has(xe),Te=H.get(xe);return{node:c.createElement($v,Object.assign({},Te,{checked:ye,onClick:Ie=>{var ke;Ie.stopPropagation(),(ke=Te==null?void 0:Te.onClick)===null||ke===void 0||ke.call(Te,Ie)},onChange:Ie=>{var ke;ee.has(xe)||X(xe,!0,[xe],Ie.nativeEvent),(ke=Te==null?void 0:Te.onChange)===null||ke===void 0||ke.call(Te,Ie)}})),checked:ye}}:fe=(Se,Pe,De)=>{var xe;const ye=k(Pe,De),Te=ee.has(ye),Ie=Q.has(ye),ke=H.get(ye);let je;return _==="nest"?je=Ie:je=(xe=ke==null?void 0:ke.indeterminate)!==null&&xe!==void 0?xe:Ie,{node:c.createElement(Bl,Object.assign({},ke,{indeterminate:je,checked:Te,skipGroup:!0,onClick:He=>{var Be;He.stopPropagation(),(Be=ke==null?void 0:ke.onClick)===null||Be===void 0||Be.call(ke,He)},onChange:He=>{var Be;const{nativeEvent:ct}=He,{shiftKey:Ve}=ct,Ye=te.findIndex(Ae=>Ae===ye),Ne=B.some(Ae=>te.includes(Ae));if(Ve&&b&&Ne){const Ae=j(Ye,te,ee),et=Array.from(ee);f==null||f(!Te,et.map(nt=>S(nt)),Ae.map(nt=>S(nt))),G(et,"multiple")}else{const Ae=B;if(b){const et=Te?vl(Ae,ye):oc(Ae,ye);X(ye,!Te,et,ct)}else{const et=Zo([].concat(Fe(Ae),[ye]),!0,R,V),{checkedKeys:nt,halfCheckedKeys:rt}=et;let it=nt;if(Te){const be=new Set(nt);be.delete(ye),it=Zo(Array.from(be),{checked:!1,halfCheckedKeys:rt},R,V).checkedKeys}X(ye,!Te,it,ct)}}I(Te?null:Ye),(Be=ke==null?void 0:ke.onChange)===null||Be===void 0||Be.call(ke,He)}})),checked:Te}};const ge=(Se,Pe,De)=>{const{node:xe,checked:ye}=fe(Se,Pe,De);return g?g(ye,Pe,De,xe):xe};if(!J.includes(su))if(J.findIndex(Se=>{var Pe;return((Pe=Se[_g])===null||Pe===void 0?void 0:Pe.columnType)==="EXPAND_COLUMN"})===0){const[Se,...Pe]=J;J=[Se,su].concat(Fe(Pe))}else J=[su].concat(Fe(J));const ue=J.indexOf(su);J=J.filter((Se,Pe)=>Se!==su||Pe===ue);const ce=J[ue-1],$e=J[ue+1];let se=h;se===void 0&&(($e==null?void 0:$e.fixed)!==void 0?se=$e.fixed:(ce==null?void 0:ce.fixed)!==void 0&&(se=ce.fixed)),se&&ce&&((Z=ce[_g])===null||Z===void 0?void 0:Z.columnType)==="EXPAND_COLUMN"&&ce.fixed===void 0&&(ce.fixed=se);const ve=ne(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:v&&p==="checkbox"}),he=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(we):t.columnTitle:pe,_e={fixed:se,width:m,className:`${y}-selection-column`,title:he(),render:ge,onCell:t.onCell,[_g]:{className:ve}};return J.map(Se=>Se===su?_e:Se)},[k,z,t,B,q,Q,m,re,_,H,f,X,V]),q]};function $Be(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function EBe(e,t){return c.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(i,a){return n[a]?n[a]:Reflect.get(i,a)}}):$Be(r,n)})}function PBe(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return c.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:ne(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function TBe(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let a=r;if(i){const o=getComputedStyle(i),s=parseInt(o.borderLeftWidth,10),l=parseInt(o.borderRightWidth,10);a=r-s-l}return a}}const Yu=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Mv(e,t){return t?`${t}-${e}`:`${e}`}const Zk=(e,t)=>typeof e=="function"?e(t):e,OBe=(e,t)=>{const n=Zk(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function IBe(e){const t=c.useRef(e),n=kM();return[()=>t.current,r=>{t.current=r,n()}]}var RBe=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*i;break;case 1:a.bottom=0,a.left=-r*i;break;case 0:a.bottom=0,a.left=i;break}return L.createElement("div",{style:a})};function Dne(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function MBe(e,t){var n=c.useState(!1),r=ie(n,2),i=r[0],a=r[1];nn(function(){if(i)return e(),function(){t()}},[i]),nn(function(){return a(!0),function(){a(!1)}},[])}var NBe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],DBe=c.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=ut(e,NBe),m=c.useState(!0),p=ie(m,2),v=p[0],h=p[1],g=c.useContext(hN),w=g.prefixCls,b=a&&o!=="hide";nn(function(){a&&b!==v&&h(b)},[a]);var y=function(){a&&s()},x=c.useRef(!1),C=function(){a&&!x.current&&(x.current=!0,l())};MBe(y,C);var S=function(_){b===_&&C()};return a?c.createElement(ti,Ee({ref:t,visible:v},i,{motionAppear:o==="show",onVisibleChanged:S}),function(k,_){var $=k.className,E=k.style;return c.createElement("div",{ref:_,className:ne("".concat(w,"-treenode-motion"),$),style:E},a.map(function(T){var M=Object.assign({},(Dne(T.data),T.data)),j=T.title,I=T.key,N=T.isStart,O=T.isEnd;delete M.children;var D=Sg(I,d);return c.createElement(C0,Ee({},M,D,{title:j,active:u,data:T.data,key:I,isStart:N,isEnd:O}))}))}):c.createElement(C0,Ee({domRef:t,className:n,style:r},f,{active:u}))});function jBe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,o){var s=new Map;a.forEach(function(u){s.set(u,!0)});var l=o.filter(function(u){return!s.has(u)});return l.length===1?l[0]:null}return n ").concat(t);return t}var BBe=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,p=e.dragOverNodeKey,v=e.dropPosition,h=e.motion,g=e.height,w=e.itemHeight,b=e.virtual,y=e.scrollWidth,x=e.focusable,C=e.activeItem,S=e.focused,k=e.tabIndex,_=e.onKeyDown,$=e.onFocus,E=e.onBlur,T=e.onActiveChange,M=e.onListChangeStart,j=e.onListChangeEnd,I=ut(e,FBe),N=c.useRef(null),O=c.useRef(null);c.useImperativeHandle(t,function(){return{scrollTo:function(ge){N.current.scrollTo(ge)},getIndentWidth:function(){return O.current.offsetWidth}}});var D=c.useState(i),F=ie(D,2),z=F[0],R=F[1],H=c.useState(r),V=ie(H,2),B=V[0],W=V[1],q=c.useState(r),Q=ie(q,2),G=Q[0],X=Q[1],re=c.useState([]),K=ie(re,2),Y=K[0],Z=K[1],J=c.useState(null),ee=ie(J,2),te=ee[0],le=ee[1],oe=c.useRef(r);oe.current=r;function de(){var fe=oe.current;W(fe),X(fe),Z([]),le(null),j()}nn(function(){R(i);var fe=jBe(z,i);if(fe.key!==null)if(fe.add){var ge=B.findIndex(function(he){var _e=he.key;return _e===fe.key}),ue=SL(yL(B,r,fe.key),b,g,w),ce=B.slice();ce.splice(ge+1,0,xL),X(ce),Z(ue),le("show")}else{var $e=r.findIndex(function(he){var _e=he.key;return _e===fe.key}),se=SL(yL(r,B,fe.key),b,g,w),ve=r.slice();ve.splice($e+1,0,xL),X(ve),Z(se),le("hide")}else B!==r&&(W(r),X(r))},[i,r]),c.useEffect(function(){m||de()},[m]);var pe=h?G:r,we={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:v,keyEntities:d};return c.createElement(c.Fragment,null,S&&C&&c.createElement("span",{style:wL,"aria-live":"assertive"},LBe(C)),c.createElement("div",null,c.createElement("input",{style:wL,disabled:x===!1||f,tabIndex:x!==!1?k:null,onKeyDown:_,onFocus:$,onBlur:E,value:"",onChange:ABe,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(n,"-indent")},c.createElement("div",{ref:O,className:"".concat(n,"-indent-unit")}))),c.createElement(kk,Ee({},I,{data:pe,itemKey:CL,height:g,fullHeight:!1,virtual:b,itemHeight:w,scrollWidth:y,prefixCls:"".concat(n,"-list"),ref:N,role:"tree",onVisibleChange:function(ge){ge.every(function(ue){return CL(ue)!==_f})&&de()}}),function(fe){var ge=fe.pos,ue=Object.assign({},(Dne(fe.data),fe.data)),ce=fe.title,$e=fe.key,se=fe.isStart,ve=fe.isEnd,he=F1($e,ge);delete ue.key,delete ue.children;var _e=Sg(he,we);return c.createElement(DBe,Ee({},ue,_e,{title:ce,active:!!C&&$e===C.key,pos:ge,data:fe.data,isStart:se,isEnd:ve,motion:h,motionNodes:$e===_f?Y:null,motionType:te,onMotionStart:M,onMotionEnd:de,treeNodeRequiredProps:we,onMouseMove:function(){T(null)}}))}))}),zBe=10,e_=function(e){Io(n,e);var t=ps(n);function n(){var r;Kn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,p=f.dropPosition,v=f.dropTargetKey,h=f.dropTargetPos,g=f.dropAllowed;if(g){var w=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),v!==null){var b=A(A({},Sg(v,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===v,data:Ma(r.state.keyEntities,v).node}),y=m.includes(v);An(!y,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var x=gN(h),C={event:s,node:li(b),dragNode:r.dragNodeProps?li(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:p!==0,dropPosition:p+Number(x[x.length-1])};d||w==null||w(C),r.dragNodeProps=null}}}),U(It(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),U(It(r),"triggerExpandActionExpand",function(s,l){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=l.expanded,p=l.key,v=l.isLeaf;if(!(v||s.shiftKey||s.metaKey||s.ctrlKey)){var h=f.filter(function(w){return w.key===p})[0],g=li(A(A({},Sg(p,r.getTreeNodeRequiredProps())),{},{data:h.data}));r.setExpandedKeys(m?vl(d,p):oc(d,p)),r.onNodeExpand(s,g)}}),U(It(r),"onNodeClick",function(s,l){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),d==null||d(s,l)}),U(It(r),"onNodeDoubleClick",function(s,l){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),d==null||d(s,l)}),U(It(r),"onNodeSelect",function(s,l){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,p=r.props,v=p.onSelect,h=p.multiple,g=l.selected,w=l[m.key],b=!g;b?h?u=oc(u,w):u=[w]:u=vl(u,w);var y=u.map(function(x){var C=Ma(f,x);return C?C.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),v==null||v(u,{event:"select",selected:b,node:l,selectedNodes:y,nativeEvent:s.nativeEvent})}),U(It(r),"onNodeCheck",function(s,l,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,p=d.halfCheckedKeys,v=r.props,h=v.checkStrictly,g=v.onCheck,w=l.key,b,y={event:"check",node:l,checked:u,nativeEvent:s.nativeEvent};if(h){var x=u?oc(m,w):vl(m,w),C=vl(p,w);b={checked:x,halfChecked:C},y.checkedNodes=x.map(function(T){return Ma(f,T)}).filter(Boolean).map(function(T){return T.node}),r.setUncontrolledState({checkedKeys:x})}else{var S=Zo([].concat(Fe(m),[w]),!0,f),k=S.checkedKeys,_=S.halfCheckedKeys;if(!u){var $=new Set(k);$.delete(w);var E=Zo(Array.from($),{checked:!1,halfCheckedKeys:_},f);k=E.checkedKeys,_=E.halfCheckedKeys}b=k,y.checkedNodes=[],y.checkedNodesPositions=[],y.halfCheckedKeys=_,k.forEach(function(T){var M=Ma(f,T);if(M){var j=M.node,I=M.pos;y.checkedNodes.push(j),y.checkedNodesPositions.push({node:j,pos:I})}}),r.setUncontrolledState({checkedKeys:k},!1,{halfCheckedKeys:_})}g==null||g(b,y)}),U(It(r),"onNodeLoad",function(s){var l,u=s.key,d=r.state.keyEntities,f=Ma(d,u);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var m=new Promise(function(p,v){r.setState(function(h){var g=h.loadedKeys,w=g===void 0?[]:g,b=h.loadingKeys,y=b===void 0?[]:b,x=r.props,C=x.loadData,S=x.onLoad;if(!C||w.includes(u)||y.includes(u))return null;var k=C(s);return k.then(function(){var _=r.state.loadedKeys,$=oc(_,u);S==null||S($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(E){return{loadingKeys:vl(E.loadingKeys,u)}}),p()}).catch(function(_){if(r.setState(function(E){return{loadingKeys:vl(E.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=zBe){var $=r.state.loadedKeys;An(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:oc($,u)}),p()}v(_)}),{loadingKeys:oc(y,u)}})});return m.catch(function(){}),m}}),U(It(r),"onNodeMouseEnter",function(s,l){var u=r.props.onMouseEnter;u==null||u({event:s,node:l})}),U(It(r),"onNodeMouseLeave",function(s,l){var u=r.props.onMouseLeave;u==null||u({event:s,node:l})}),U(It(r),"onNodeContextMenu",function(s,l){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:l}))}),U(It(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,u=new Array(l),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(p){if(r.props.hasOwnProperty(p)){f=!1;return}d=!0,m[p]=s[p]}),d&&(!l||f)&&r.setState(A(A({},m),u))}}),U(It(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Yn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,o=i.itemScrollOffset,s=o===void 0?0:o;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,o=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,u=i.activeKey,d=i.dropLevelOffset,f=i.dropContainerKey,m=i.dropTargetKey,p=i.dropPosition,v=i.dragOverNodeKey,h=i.indent,g=this.props,w=g.prefixCls,b=g.className,y=g.style,x=g.showLine,C=g.focusable,S=g.tabIndex,k=S===void 0?0:S,_=g.selectable,$=g.showIcon,E=g.icon,T=g.switcherIcon,M=g.draggable,j=g.checkable,I=g.checkStrictly,N=g.disabled,O=g.motion,D=g.loadData,F=g.filterTreeNode,z=g.height,R=g.itemHeight,H=g.scrollWidth,V=g.virtual,B=g.titleRender,W=g.dropIndicatorRender,q=g.onContextMenu,Q=g.onScroll,G=g.direction,X=g.rootClassName,re=g.rootStyle,K=er(this.props,{aria:!0,data:!0}),Y;M&&(mt(M)==="object"?Y=M:typeof M=="function"?Y={nodeDraggable:M}:Y={});var Z={prefixCls:w,selectable:_,showIcon:$,icon:E,switcherIcon:T,draggable:Y,draggingNodeKey:l,checkable:j,checkStrictly:I,disabled:N,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:p,dragOverNodeKey:v,indent:h,direction:G,dropIndicatorRender:W,loadData:D,filterTreeNode:F,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return c.createElement(hN.Provider,{value:Z},c.createElement("div",{className:ne(w,b,X,U(U(U({},"".concat(w,"-show-line"),x),"".concat(w,"-focused"),a),"".concat(w,"-active-focused"),u!==null)),style:re},c.createElement(BBe,Ee({ref:this.listRef,prefixCls:w,style:y,data:o,disabled:N,selectable:_,checkable:!!j,motion:O,dragging:l!==null,height:z,itemHeight:R,virtual:V,focusable:C,focused:a,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:q,onScroll:Q,scrollWidth:H},this.getTreeNodeRequiredProps(),K))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s={prevProps:i};function l(k){return!o&&i.hasOwnProperty(k)||o&&o[k]!==i[k]}var u,d=a.fieldNames;if(l("fieldNames")&&(d=Lp(i.fieldNames),s.fieldNames=d),l("treeData")?u=i.treeData:l("children")&&(An(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=See(i.children)),u){s.treeData=u;var f=A1(u,{fieldNames:d});s.keyEntities=A(U({},_f,jne),f.keyEntities)}var m=s.keyEntities||a.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!o&&i.defaultExpandParent?l6(i.expandedKeys,m):i.expandedKeys;else if(!o&&i.defaultExpandAll){var p=A({},m);delete p[_f];var v=[];Object.keys(p).forEach(function(k){var _=p[k];_.children&&_.children.length&&v.push(_.key)}),s.expandedKeys=v}else!o&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?l6(i.defaultExpandedKeys,m):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var h=OE(u||a.treeData,s.expandedKeys||a.expandedKeys,d);s.flattenNodes=h}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=gL(i.selectedKeys,i):!o&&i.defaultSelectedKeys&&(s.selectedKeys=gL(i.defaultSelectedKeys,i))),i.checkable){var g;if(l("checkedKeys")?g=LE(i.checkedKeys)||{}:!o&&i.defaultCheckedKeys?g=LE(i.defaultCheckedKeys)||{}:u&&(g=LE(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),g){var w=g,b=w.checkedKeys,y=b===void 0?[]:b,x=w.halfCheckedKeys,C=x===void 0?[]:x;if(!i.checkStrictly){var S=Zo(y,!0,m);y=S.checkedKeys,C=S.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=C}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(c.Component);U(e_,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:RBe,allowDrop:function(){return!0},expandAction:!1});U(e_,"TreeNode",C0);const HBe=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:a,borderRadius:o,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},VBe=new on("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),WBe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),UBe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ae(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),qBe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},mn(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Ys(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:VBe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:ae(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},WBe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},UBe(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ae(t.calc(a).div(2).equal())} !important`}})}},Fne=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Kt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[qBe(e,a),HBe(a)]},Ane=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},GBe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Ane(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},KBe=sn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Wk(`${n}-checkbox`,e)},Fne(n,e),C1(e)]},GBe),kL=4;function YBe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:-n*i+kL,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=i+kL;break}return L.createElement("div",{style:l,className:`${r}-drop-indicator`})}const Lne=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:l}=r;if(l)return c.isValidElement(a)?a:c.createElement(Xs,{className:`${t}-switcher-loading-icon`});let u;if(i&&typeof i=="object"&&(u=i.showLeafIcon),o){if(!i)return null;if(typeof u!="boolean"&&u){const m=typeof u=="function"?u(r):u,p=`${t}-switcher-line-custom-icon`;return c.isValidElement(m)?qr(m,{className:ne(m.props.className||"",p)}):m}return u?c.createElement(cne,{className:`${t}-switcher-line-icon`}):c.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return c.isValidElement(f)?qr(f,{className:ne(f.props.className||"",d)}):f!==void 0?f:i?s?c.createElement(nLe,{className:`${t}-switcher-line-icon`}):c.createElement(mLe,{className:`${t}-switcher-line-icon`}):c.createElement(IAe,{className:d})},Bne=L.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:o}=L.useContext(xt),{prefixCls:s,className:l,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:p=!1,children:v,checkable:h=!1,selectable:g=!0,draggable:w,motion:b,style:y}=e,x=r("tree",s),C=r(),S=b??Object.assign(Object.assign({},Mp(C)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:h,selectable:g,showIcon:u,motion:S,blockNode:p,showLine:!!d,dropIndicatorRender:YBe}),[_,$,E]=KBe(x),[,T]=Gr(),M=T.paddingXS/2+(((n=T.Tree)===null||n===void 0?void 0:n.titleHeight)||T.controlHeightSM),j=L.useMemo(()=>{if(!w)return!1;let N={};switch(typeof w){case"function":N.nodeDraggable=w;break;case"object":N=Object.assign({},w);break}return N.icon!==!1&&(N.icon=N.icon||L.createElement(U9e,null)),N},[w]),I=N=>L.createElement(Lne,{prefixCls:x,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:N,showLine:d});return _(L.createElement(e_,Object.assign({itemHeight:M,ref:t,virtual:a},k,{style:Object.assign(Object.assign({},o==null?void 0:o.style),y),prefixCls:x,className:ne({[`${x}-icon-hide`]:!u,[`${x}-block-node`]:p,[`${x}-unselectable`]:!g,[`${x}-rtl`]:i==="rtl"},o==null?void 0:o.className,l,$,E),direction:i,checkable:h&&L.createElement("span",{className:`${x}-checkbox-inner`}),selectable:g,switcherIcon:I,draggable:j}),v))}),_L=0,BE=1,$L=2;function bN(e,t,n){const{key:r,children:i}=n;function a(o){const s=o[r],l=o[i];t(s,o)!==!1&&bN(l||[],t,n)}e.forEach(a)}function XBe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:a}=e;const o=[];let s=_L;if(r&&r===i)return[r];if(!r||!i)return[];function l(u){return u===r||u===i}return bN(t,u=>{if(s===$L)return!1;if(l(u)){if(o.push(u),s===_L)s=BE;else if(s===BE)return s=$L,!1}else s===BE&&o.push(u);return n.includes(u)},Lp(a)),o}function zE(e,t,n){const r=Fe(t),i=[];return bN(e,(a,o)=>{const s=r.indexOf(a);return s!==-1&&(i.push(o),r.splice(s,1)),!!r.length},Lp(n)),i}var EL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=EL(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=c.useRef(null),s=c.useRef(null),l=()=>{const{keyEntities:_}=A1(PL(a));let $;return n?$=Object.keys(_):r?$=l6(a.expandedKeys||i||[],_):$=a.expandedKeys||i||[],$},[u,d]=c.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=c.useState(()=>l());c.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),c.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const p=(_,$)=>{var E;return"expandedKeys"in a||m(_),(E=a.onExpand)===null||E===void 0?void 0:E.call(a,_,$)},v=(_,$)=>{var E;const{multiple:T,fieldNames:M}=a,{node:j,nativeEvent:I}=$,{key:N=""}=j,O=PL(a),D=Object.assign(Object.assign({},$),{selected:!0}),F=(I==null?void 0:I.ctrlKey)||(I==null?void 0:I.metaKey),z=I==null?void 0:I.shiftKey;let R;T&&F?(R=_,o.current=N,s.current=R,D.selectedNodes=zE(O,R,M)):T&&z?(R=Array.from(new Set([].concat(Fe(s.current||[]),Fe(XBe({treeData:O,expandedKeys:f,startKey:N,endKey:o.current,fieldNames:M}))))),D.selectedNodes=zE(O,R,M)):(R=[N],o.current=N,s.current=R,D.selectedNodes=zE(O,R,M)),(E=a.onSelect)===null||E===void 0||E.call(a,R,D),"selectedKeys"in a||d(R)},{getPrefixCls:h,direction:g}=c.useContext(xt),{prefixCls:w,className:b,showIcon:y=!0,expandAction:x="click"}=a,C=EL(a,["prefixCls","className","showIcon","expandAction"]),S=h("tree",w),k=ne(`${S}-directory`,{[`${S}-directory-rtl`]:g==="rtl"},b);return c.createElement(Bne,Object.assign({icon:QBe,ref:t,blockNode:!0},C,{showIcon:y,expandAction:x,prefixCls:S,className:k,expandedKeys:f,selectedKeys:u,onSelect:v,onExpand:p}))},ZBe=c.forwardRef(JBe),yN=Bne;yN.DirectoryTree=ZBe;yN.TreeNode=C0;const TL=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?c.createElement("div",{className:`${r}-filter-dropdown-search`},c.createElement(vi,{prefix:c.createElement(_k,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},eze=e=>{const{keyCode:t}=e;t===qe.ENTER&&e.stopPropagation()},tze=c.forwardRef((e,t)=>c.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:eze,ref:t},e.children));function sp(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(Fe(t),Fe(sp(i))))}),t}function nze(e){return e.some(t=>{let{children:n}=t;return n})}function zne(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Hne(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o}=e;return t.map((s,l)=>{const u=String(s.value);if(s.children)return{key:u||l,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:Hne({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o})};const d=i?Bl:$v,f={key:s.value!==void 0?u:l,label:c.createElement(c.Fragment,null,c.createElement(d,{checked:r.includes(u)}),c.createElement("span",null,s.text))};return a.trim()?typeof o=="function"?o(a,s)?f:null:zne(a,s.text)?f:null:f})}function HE(e){return e||[]}const rze=e=>{var t,n,r,i;const{tablePrefixCls:a,prefixCls:o,column:s,dropdownPrefixCls:l,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:p=!1,filterState:v,triggerFilter:h,locale:g,children:w,getPopupContainer:b,rootClassName:y}=e,{filterResetToDefaultFilteredValue:x,defaultFilteredValue:C,filterDropdownProps:S={},filterDropdownOpen:k,filterDropdownVisible:_,onFilterDropdownVisibleChange:$,onFilterDropdownOpenChange:E}=s,[T,M]=c.useState(!1),j=!!(v&&(!((t=v.filteredKeys)===null||t===void 0)&&t.length||v.forceFiltered)),I=fe=>{var ge;M(fe),(ge=S.onOpenChange)===null||ge===void 0||ge.call(S,fe),E==null||E(fe),$==null||$(fe)},N=(i=(r=(n=S.open)!==null&&n!==void 0?n:k)!==null&&r!==void 0?r:_)!==null&&i!==void 0?i:T,O=v==null?void 0:v.filteredKeys,[D,F]=IBe(HE(O)),z=fe=>{let{selectedKeys:ge}=fe;F(ge)},R=(fe,ge)=>{let{node:ue,checked:ce}=ge;z(f?{selectedKeys:fe}:{selectedKeys:ce&&ue.key?[ue.key]:[]})};c.useEffect(()=>{T&&z({selectedKeys:HE(O)})},[O]);const[H,V]=c.useState([]),B=fe=>{V(fe)},[W,q]=c.useState(""),Q=fe=>{const{value:ge}=fe.target;q(ge)};c.useEffect(()=>{T||q("")},[T]);const G=fe=>{const ge=fe!=null&&fe.length?fe:null;if(ge===null&&(!v||!v.filteredKeys)||is(ge,v==null?void 0:v.filteredKeys,!0))return null;h({column:s,key:u,filteredKeys:ge})},X=()=>{I(!1),G(D())},re=function(){let{confirm:fe,closeDropdown:ge}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};fe&&G([]),ge&&I(!1),q(""),F(x?(C||[]).map(ue=>String(ue)):[])},K=function(){let{closeDropdown:fe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};fe&&I(!1),G(D())},Y=(fe,ge)=>{ge.source==="trigger"&&(fe&&O!==void 0&&F(HE(O)),I(fe),!fe&&!s.filterDropdown&&d&&X())},Z=ne({[`${l}-menu-without-submenu`]:!nze(s.filters||[])}),J=fe=>{if(fe.target.checked){const ge=sp(s==null?void 0:s.filters).map(ue=>String(ue));F(ge)}else F([])},ee=fe=>{let{filters:ge}=fe;return(ge||[]).map((ue,ce)=>{const $e=String(ue.value),se={title:ue.text,key:ue.value!==void 0?$e:String(ce)};return ue.children&&(se.children=ee({filters:ue.children})),se})},te=fe=>{var ge;return Object.assign(Object.assign({},fe),{text:fe.title,value:fe.key,children:((ge=fe.children)===null||ge===void 0?void 0:ge.map(ue=>te(ue)))||[]})};let le;const{direction:oe,renderEmpty:de}=c.useContext(xt);if(typeof s.filterDropdown=="function")le=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:fe=>z({selectedKeys:fe}),selectedKeys:D(),confirm:K,clearFilters:re,filters:s.filters,visible:N,close:()=>{I(!1)}});else if(s.filterDropdown)le=s.filterDropdown;else{const fe=D()||[],ge=()=>{var ce;const $e=(ce=de==null?void 0:de("Table.filter"))!==null&&ce!==void 0?ce:c.createElement(pc,{image:pc.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return $e;if(m==="tree")return c.createElement(c.Fragment,null,c.createElement(TL,{filterSearch:p,value:W,onChange:Q,tablePrefixCls:a,locale:g}),c.createElement("div",{className:`${a}-filter-dropdown-tree`},f?c.createElement(Bl,{checked:fe.length===sp(s.filters).length,indeterminate:fe.length>0&&fe.lengthtypeof p=="function"?p(W,te(he)):zne(W,he.title):void 0})));const se=Hne({filters:s.filters||[],filterSearch:p,prefixCls:o,filteredKeys:D(),filterMultiple:f,searchValue:W}),ve=se.every(he=>he===null);return c.createElement(c.Fragment,null,c.createElement(TL,{filterSearch:p,value:W,onChange:Q,tablePrefixCls:a,locale:g}),ve?$e:c.createElement(Bf,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:Z,onSelect:z,onDeselect:z,selectedKeys:fe,getPopupContainer:b,openKeys:H,onOpenChange:B,items:se}))},ue=()=>x?is((C||[]).map(ce=>String(ce)),fe,!0):fe.length===0;le=c.createElement(c.Fragment,null,ge(),c.createElement("div",{className:`${o}-dropdown-btns`},c.createElement(dn,{type:"link",size:"small",disabled:ue(),onClick:()=>re()},g.filterReset),c.createElement(dn,{type:"primary",size:"small",onClick:X},g.filterConfirm)))}s.filterDropdown&&(le=c.createElement(lZ,{selectable:void 0},le)),le=c.createElement(tze,{className:`${o}-dropdown`},le);const we=Lte({trigger:["click"],placement:oe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let fe;return typeof s.filterIcon=="function"?fe=s.filterIcon(j):s.filterIcon?fe=s.filterIcon:fe=c.createElement(I9e,null),c.createElement("span",{role:"button",tabIndex:-1,className:ne(`${o}-trigger`,{active:j}),onClick:ge=>{ge.stopPropagation()}},fe)})(),getPopupContainer:b},Object.assign(Object.assign({},S),{rootClassName:ne(y,S.rootClassName),open:N,onOpenChange:Y,dropdownRender:()=>typeof(S==null?void 0:S.dropdownRender)=="function"?S.dropdownRender(le):le}));return c.createElement("div",{className:`${o}-column`},c.createElement("span",{className:`${a}-column-title`},w),c.createElement(Bp,Object.assign({},we)))},m6=(e,t,n)=>{let r=[];return(e||[]).forEach((i,a)=>{var o;const s=Mv(a,n);if(i.filters||"filterDropdown"in i||"onFilter"in i)if("filteredValue"in i){let l=i.filteredValue;"filterDropdown"in i||(l=(o=l==null?void 0:l.map(String))!==null&&o!==void 0?o:l),r.push({column:i,key:Yu(i,s),filteredKeys:l,forceFiltered:i.filtered})}else r.push({column:i,key:Yu(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(Fe(r),Fe(m6(i.children,t,s))))}),r};function Vne(e,t,n,r,i,a,o,s,l){return n.map((u,d)=>{const f=Mv(d,s),{filterOnClose:m=!0,filterMultiple:p=!0,filterMode:v,filterSearch:h}=u;let g=u;if(g.filters||g.filterDropdown){const w=Yu(g,f),b=r.find(y=>{let{key:x}=y;return w===x});g=Object.assign(Object.assign({},g),{title:y=>c.createElement(rze,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:w,filterState:b,filterOnClose:m,filterMultiple:p,filterMode:v,filterSearch:h,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:l},Zk(u.title,y))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:Vne(e,t,g.children,r,i,a,o,f,l)})),g})}const OL=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:i,column:a}=n;const o=r,{filters:s,filterDropdown:l}=a;if(l)t[o]=i||null;else if(Array.isArray(i)){const u=sp(s);t[o]=u.filter(d=>i.includes(String(d)))}else t[o]=null}),t},p6=(e,t,n)=>t.reduce((i,a)=>{const{column:{onFilter:o,filters:s},filteredKeys:l}=a;return o&&l&&l.length?i.map(u=>Object.assign({},u)).filter(u=>l.some(d=>{const f=sp(s),m=f.findIndex(v=>String(v)===String(d)),p=m!==-1?f[m]:d;return u[n]&&(u[n]=p6(u[n],t,n)),o(p,u)})):i},e),Wne=e=>e.flatMap(t=>"children"in t?[t].concat(Fe(Wne(t.children||[]))):[t]),ize=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Xl();const l=c.useMemo(()=>Wne(r||[]),[r]),[u,d]=c.useState(()=>m6(l,!0)),f=c.useMemo(()=>{const h=m6(l,!1);if(h.length===0)return h;let g=!0;if(h.forEach(w=>{let{filteredKeys:b}=w;b!==void 0&&(g=!1)}),g){const w=(l||[]).map((b,y)=>Yu(b,Mv(y)));return u.filter(b=>{let{key:y}=b;return w.includes(y)}).map(b=>{const y=l[w.findIndex(x=>x===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),y),forceFiltered:y.filtered})})}return h},[l,u]),m=c.useMemo(()=>OL(f),[f]),p=h=>{const g=f.filter(w=>{let{key:b}=w;return b!==h.key});g.push(h),d(g),i(OL(g),g)};return[h=>Vne(t,n,h,f,o,p,a,void 0,s),f,m]},aze=(e,t,n)=>{const r=c.useRef({});function i(a){var o;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,m)=>{const p=n(f,m);l.set(p,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var s=u;const l=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return(o=r.current.kvMap)===null||o===void 0?void 0:o.get(a)}return[i]};var oze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const a=e[i];typeof a!="function"&&(n[i]=a)}),n}function lze(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,a=oze(r,["total"]),[o,s]=c.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Une})),l=Lte(o,a,{total:i>0?i:e}),u=Math.ceil((i||e)/l.pageSize);l.current>u&&(l.current=u||1);const d=(m,p)=>{s({current:m??1,pageSize:p||l.pageSize})},f=(m,p)=>{var v;n&&((v=n.onChange)===null||v===void 0||v.call(n,m,p)),d(m,p),t(m,p||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:f}),d]}const Fw="ascend",VE="descend",wS=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,IL=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,cze=(e,t)=>t?e[e.indexOf(t)+1]:e[0],v6=(e,t,n)=>{let r=[];const i=(a,o)=>{r.push({column:a,key:Yu(a,o),multiplePriority:wS(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,o)=>{const s=Mv(o,n);a.children?("sortOrder"in a&&i(a,s),r=[].concat(Fe(r),Fe(v6(a.children,t,s)))):a.sorter&&("sortOrder"in a?i(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:Yu(a,s),multiplePriority:wS(a),sortOrder:a.defaultSortOrder}))}),r},qne=(e,t,n,r,i,a,o,s)=>(t||[]).map((u,d)=>{const f=Mv(d,s);let m=u;if(m.sorter){const p=m.sortDirections||i,v=m.showSorterTooltip===void 0?o:m.showSorterTooltip,h=Yu(m,f),g=n.find($=>{let{key:E}=$;return E===h}),w=g?g.sortOrder:null,b=cze(p,w);let y;if(u.sortIcon)y=u.sortIcon({sortOrder:w});else{const $=p.includes(Fw)&&c.createElement(FAe,{className:ne(`${e}-column-sorter-up`,{active:w===Fw})}),E=p.includes(VE)&&c.createElement(NAe,{className:ne(`${e}-column-sorter-down`,{active:w===VE})});y=c.createElement("span",{className:ne(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!($&&E)})},c.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},$,E))}const{cancelSort:x,triggerAsc:C,triggerDesc:S}=a||{};let k=x;b===VE?k=S:b===Fw&&(k=C);const _=typeof v=="object"?Object.assign({title:k},v):{title:k};m=Object.assign(Object.assign({},m),{className:ne(m.className,{[`${e}-column-sort`]:w}),title:$=>{const E=`${e}-column-sorters`,T=c.createElement("span",{className:`${e}-column-title`},Zk(u.title,$)),M=c.createElement("div",{className:E},T,y);return v?typeof v!="boolean"&&(v==null?void 0:v.target)==="sorter-icon"?c.createElement("div",{className:`${E} ${e}-column-sorters-tooltip-target-sorter`},T,c.createElement(sa,Object.assign({},_),y)):c.createElement(sa,Object.assign({},_),M):M},onHeaderCell:$=>{var E;const T=((E=u.onHeaderCell)===null||E===void 0?void 0:E.call(u,$))||{},M=T.onClick,j=T.onKeyDown;T.onClick=O=>{r({column:u,key:h,sortOrder:b,multiplePriority:wS(u)}),M==null||M(O)},T.onKeyDown=O=>{O.keyCode===qe.ENTER&&(r({column:u,key:h,sortOrder:b,multiplePriority:wS(u)}),j==null||j(O))};const I=OBe(u.title,{}),N=I==null?void 0:I.toString();return w?T["aria-sort"]=w==="ascend"?"ascending":"descending":T["aria-label"]=N||"",T.className=ne(T.className,`${e}-column-has-sorters`),T.tabIndex=0,u.ellipsis&&(T.title=(I??"").toString()),T}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:qne(e,m.children,n,r,i,a,o,f)})),m}),RL=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},ML=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(RL);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},RL(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},h6=(e,t,n)=>{const r=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),i=e.slice(),a=r.filter(o=>{let{column:{sorter:s},sortOrder:l}=o;return IL(s)&&l});return a.length?i.sort((o,s)=>{for(let l=0;l{const s=o[n];return s?Object.assign(Object.assign({},o),{[n]:h6(s,t,n)}):o}):i},uze=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o}=e,[s,l]=c.useState(v6(n,!0)),u=(h,g)=>{const w=[];return h.forEach((b,y)=>{const x=Mv(y,g);if(w.push(Yu(b,x)),Array.isArray(b.children)){const C=u(b.children,x);w.push.apply(w,Fe(C))}}),w},d=c.useMemo(()=>{let h=!0;const g=v6(n,!1);if(!g.length){const x=u(n);return s.filter(C=>{let{key:S}=C;return x.includes(S)})}const w=[];function b(x){h?w.push(x):w.push(Object.assign(Object.assign({},x),{sortOrder:null}))}let y=null;return g.forEach(x=>{y===null?(b(x),x.sortOrder&&(x.multiplePriority===!1?h=!1:y=!0)):(y&&x.multiplePriority!==!1||(h=!1),b(x))}),w},[n,s]),f=c.useMemo(()=>{var h,g;const w=d.map(b=>{let{column:y,sortOrder:x}=b;return{column:y,order:x}});return{sortColumns:w,sortColumn:(h=w[0])===null||h===void 0?void 0:h.column,sortOrder:(g=w[0])===null||g===void 0?void 0:g.order}},[d]),m=h=>{let g;h.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?g=[h]:g=[].concat(Fe(d.filter(w=>{let{key:b}=w;return b!==h.key})),[h]),l(g),o(ML(g),g)};return[h=>qne(t,h,d,m,r,i,a),d,f,()=>ML(d)]},Gne=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=Zk(r.title,t),"children"in i&&(i.children=Gne(i.children,t)),i}),dze=e=>[c.useCallback(n=>Gne(n,e),[e])],fze=One((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),mze=Rne((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),pze=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:l}=e,u=`${ae(n)} ${r} ${i}`,d=(f,m,p)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ae(l(m).mul(-1).equal())} + ${ae(l(l(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ae(l(o).mul(-1).equal())} ${ae(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ae(n)} 0 ${ae(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},vze=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Ha),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},hze=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},gze=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:p,paddingXXS:v,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:w,expandIconScale:b,calc:y}=e,x=`${ae(i)} ${o} ${s}`,C=y(v).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},UR(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:ae(g),background:l,border:x,borderRadius:d,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:w,insetInlineEnd:C,insetInlineStart:C,height:i},"&::after":{top:C,bottom:C,insetInlineStart:w,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ae(y(f).mul(-1).equal())} ${ae(y(m).mul(-1).equal())}`,padding:`${ae(f)} ${ae(m)}`}}}},bze=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:p,tablePaddingHorizontal:v,borderRadius:h,motionDurationSlow:g,colorTextDescription:w,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:S,controlItemBgHover:k,controlItemBgActive:_,boxShadowSecondary:$,filterDropdownMenuBg:E,calc:T}=e,M=`${n}-dropdown`,j=`${t}-filter-dropdown`,I=`${n}-tree`,N=`${ae(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:T(o).mul(-1).equal(),marginInline:`${ae(o)} ${ae(T(v).div(2).mul(-1).equal())}`,padding:`0 ${ae(o)}`,color:m,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:w,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[j]:Object.assign(Object.assign({},mn(e)),{minWidth:i,backgroundColor:C,borderRadius:h,boxShadow:$,overflow:"hidden",[`${M}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${ae(s)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${j}-tree`]:{paddingBlock:`${ae(s)} 0`,paddingInline:s,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:k},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_}}},[`${j}-search`]:{padding:s,borderBottom:N,"&-input":{input:{minWidth:a},[r]:{color:x}}},[`${j}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${j}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ae(T(s).sub(u).equal())} ${ae(s)}`,overflow:"hidden",borderTop:N}})}},{[`${n}-dropdown ${j}, ${j}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},yze=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:a,tableBg:o,zIndexTableSticky:s,calc:l}=e,u=r;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:a,background:o},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after, + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}},wze=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${ae(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},xze=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ae(n)} ${ae(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ae(n)} ${ae(n)}`}}}}},Sze=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Cze=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:p,calc:v}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:v(u).add(i).add(v(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:v(u).add(v(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:v(u).add(i).add(v(a).div(4)).add(v(o).mul(2)).equal()}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column, + ${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:v(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ae(v(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},kze=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(a,o,s,l)=>({[`${t}${t}-${a}`]:{fontSize:l,[` + ${t}-title, + ${t}-footer, + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${ae(o)} ${ae(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ae(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ae(r(o).mul(-1).equal())} ${ae(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ae(r(o).mul(-1).equal()),marginInline:`${ae(r(n).sub(s).equal())} ${ae(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ae(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},_ze=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},$ze=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${ae(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ae(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},NL=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${ae(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${ae(i(n).mul(-1).equal())} 0 ${r}`}}}},Eze=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${ae(r)} ${i} ${a}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + & > ${t}-row, + & > div:not(${t}-row) > ${t}-row + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ae(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},Pze=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:l,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:p,tableHeaderBg:v,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:w,calc:b}=e,y=`${ae(o)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Ks()),{[t]:Object.assign(Object.assign({},mn(e)),{fontSize:u,background:d,borderRadius:`${ae(f)} ${ae(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ae(f)} ${ae(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${ae(r)} ${ae(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ae(r)} ${ae(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:v,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:ae(b(r).mul(-1).equal()),marginInline:`${ae(b(a).sub(i).equal())} + ${ae(b(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:v,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${ae(r)} ${ae(i)}`,color:g,background:w}})}},Tze=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:l,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:p,colorTextPlaceholder:v,fontSize:h,fontSizeSM:g,lineHeight:w,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:C,controlInteractiveSize:S}=e,k=new rn(i).onBackground(n).toHexString(),_=new rn(a).onBackground(n).toHexString(),$=new rn(t).onBackground(n).toHexString(),E=new rn(y),T=new rn(x),M=S/2-b,j=M*2+b*3;return{headerBg:$,headerColor:r,headerSortActiveBg:k,headerSortHoverBg:_,bodySortBg:$,rowHoverBg:$,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:$,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:f,fixedHeaderSortActiveBg:k,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:v,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*w-b*3)/2-Math.ceil((g*1.4-b*3)/2),headerIconColor:E.clone().setA(E.a*C).toRgbString(),headerIconHoverColor:T.clone().setA(T.a*C).toRgbString(),expandIconHalfInner:M,expandIconSize:j,expandIconScale:S/j}},DL=2,Oze=sn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:p,cellPaddingBlock:v,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:w,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:C,footerColor:S,headerBorderRadius:k,cellFontSize:_,cellFontSizeMD:$,cellFontSizeSM:E,headerSplitColor:T,fixedHeaderSortActiveBg:M,headerFilterHoverBg:j,filterDropdownBg:I,expandIconBg:N,selectionColumnWidth:O,stickyScrollBarBg:D,calc:F}=e,z=Kt(e,{tableFontSize:_,tableBg:r,tableRadius:k,tablePaddingVertical:v,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:w,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:C,tableHeaderCellSplitColor:T,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:u,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:j,tableFilterDropdownBg:I,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:DL,zIndexTableSticky:F(DL).add(1).equal({unit:!1}),tableFontSizeMiddle:$,tableFontSizeSmall:E,tableSelectionColumnWidth:O,tableExpandIconBg:N,tableExpandColumnWidth:F(i).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:t,tableScrollBg:n});return[Pze(z),wze(z),NL(z),_ze(z),bze(z),pze(z),xze(z),gze(z),NL(z),hze(z),Cze(z),yze(z),$ze(z),vze(z),kze(z),Sze(z),Eze(z)]},Tze,{unitless:{expandIconScale:!0}}),Ize=[],Rze=(e,t)=>{var n,r;const{prefixCls:i,className:a,rootClassName:o,style:s,size:l,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:p,rowKey:v="key",rowClassName:h,columns:g,children:w,childrenColumnName:b,onChange:y,getPopupContainer:x,loading:C,expandIcon:S,expandable:k,expandedRowRender:_,expandIconColumnIndex:$,indentSize:E,scroll:T,sortDirections:M,locale:j,showSorterTooltip:I={target:"full-header"},virtual:N}=e;Xl();const O=c.useMemo(()=>g||pN(w),[g,w]),D=c.useMemo(()=>O.some(Qe=>Qe.responsive),[O]),F=_M(D),z=c.useMemo(()=>{const Qe=new Set(Object.keys(F).filter(Ge=>F[Ge]));return O.filter(Ge=>!Ge.responsive||Ge.responsive.some(st=>Qe.has(st)))},[O,F]),R=_n(e,["className","style","columns"]),{locale:H=rs,direction:V,table:B,renderEmpty:W,getPrefixCls:q,getPopupContainer:Q}=c.useContext(xt),G=Br(l),X=Object.assign(Object.assign({},H.Table),j),re=f||Ize,K=q("table",i),Y=q("dropdown",d),[,Z]=Gr(),J=Ln(K),[ee,te,le]=Oze(K,J),oe=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:$},k),{expandIcon:(n=k==null?void 0:k.expandIcon)!==null&&n!==void 0?n:(r=B==null?void 0:B.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:de="children"}=oe,pe=c.useMemo(()=>re.some(Qe=>Qe==null?void 0:Qe[de])?"nest":_||k!=null&&k.expandedRowRender?"row":null,[re]),we={body:c.useRef(null)},fe=TBe(K),ge=c.useRef(null),ue=c.useRef(null);EBe(t,()=>Object.assign(Object.assign({},ue.current),{nativeElement:ge.current}));const ce=c.useMemo(()=>typeof v=="function"?v:Qe=>Qe==null?void 0:Qe[v],[v]),[$e]=aze(re,de,ce),se={},ve=function(Qe,Ge){let st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var pt,yt,zt,$t;const ze=Object.assign(Object.assign({},se),Qe);st&&((pt=se.resetPagination)===null||pt===void 0||pt.call(se),!((yt=ze.pagination)===null||yt===void 0)&&yt.current&&(ze.pagination.current=1),m&&((zt=m.onChange)===null||zt===void 0||zt.call(m,1,($t=ze.pagination)===null||$t===void 0?void 0:$t.pageSize))),T&&T.scrollToFirstRowOnChange!==!1&&we.body.current&&Q2e(0,{getContainer:()=>we.body.current}),y==null||y(ze.pagination,ze.filters,ze.sorter,{currentDataSource:p6(h6(re,ze.sorterStates,de),ze.filterStates,de),action:Ge})},he=(Qe,Ge)=>{ve({sorter:Qe,sorterStates:Ge},"sort",!1)},[_e,Se,Pe,De]=uze({prefixCls:K,mergedColumns:z,onSorterChange:he,sortDirections:M||["ascend","descend"],tableLocale:X,showSorterTooltip:I}),xe=c.useMemo(()=>h6(re,Se,de),[re,Se]);se.sorter=De(),se.sorterStates=Se;const ye=(Qe,Ge)=>{ve({filters:Qe,filterStates:Ge},"filter",!0)},[Te,Ie,ke]=ize({prefixCls:K,locale:X,dropdownPrefixCls:Y,mergedColumns:z,onFilterChange:ye,getPopupContainer:x||Q,rootClassName:ne(o,J)}),je=p6(xe,Ie,de);se.filters=ke,se.filterStates=Ie;const He=c.useMemo(()=>{const Qe={};return Object.keys(ke).forEach(Ge=>{ke[Ge]!==null&&(Qe[Ge]=ke[Ge])}),Object.assign(Object.assign({},Pe),{filters:Qe})},[Pe,ke]),[Be]=dze(He),ct=(Qe,Ge)=>{ve({pagination:Object.assign(Object.assign({},se.pagination),{current:Qe,pageSize:Ge})},"paginate")},[Ve,Ye]=lze(je.length,ct,m);se.pagination=m===!1?{}:sze(Ve,m),se.resetPagination=Ye;const Ne=c.useMemo(()=>{if(m===!1||!Ve.pageSize)return je;const{current:Qe=1,total:Ge,pageSize:st=Une}=Ve;return je.lengthst?je.slice((Qe-1)*st,Qe*st):je:je.slice((Qe-1)*st,Qe*st)},[!!m,je,Ve==null?void 0:Ve.current,Ve==null?void 0:Ve.pageSize,Ve==null?void 0:Ve.total]),[Ae,et]=_Be({prefixCls:K,data:je,pageData:Ne,getRowKey:ce,getRecordByKey:$e,expandType:pe,childrenColumnName:de,locale:X,getPopupContainer:x||Q},p),nt=(Qe,Ge,st)=>{let pt;return typeof h=="function"?pt=ne(h(Qe,Ge,st)):pt=ne(h),ne({[`${K}-row-selected`]:et.has(ce(Qe,Ge))},pt)};oe.__PARENT_RENDER_ICON__=oe.expandIcon,oe.expandIcon=oe.expandIcon||S||PBe(X),pe==="nest"&&oe.expandIconColumnIndex===void 0?oe.expandIconColumnIndex=p?1:0:oe.expandIconColumnIndex>0&&p&&(oe.expandIconColumnIndex-=1),typeof oe.indentSize!="number"&&(oe.indentSize=typeof E=="number"?E:15);const rt=c.useCallback(Qe=>Be(Ae(Te(_e(Qe)))),[_e,Te,Ae]);let it,be;if(m!==!1&&(Ve!=null&&Ve.total)){let Qe;Ve.size?Qe=Ve.size:Qe=G==="small"||G==="middle"?"small":void 0;const Ge=yt=>c.createElement(Xje,Object.assign({},Ve,{className:ne(`${K}-pagination ${K}-pagination-${yt}`,Ve.className),size:Qe})),st=V==="rtl"?"left":"right",{position:pt}=Ve;if(pt!==null&&Array.isArray(pt)){const yt=pt.find(ze=>ze.includes("top")),zt=pt.find(ze=>ze.includes("bottom")),$t=pt.every(ze=>`${ze}`=="none");!yt&&!zt&&!$t&&(be=Ge(st)),yt&&(it=Ge(yt.toLowerCase().replace("top",""))),zt&&(be=Ge(zt.toLowerCase().replace("bottom","")))}else be=Ge(st)}let Oe;typeof C=="boolean"?Oe={spinning:C}:typeof C=="object"&&(Oe=Object.assign({spinning:!0},C));const Ce=ne(le,J,`${K}-wrapper`,B==null?void 0:B.className,{[`${K}-wrapper-rtl`]:V==="rtl"},a,o,te),Re=Object.assign(Object.assign({},B==null?void 0:B.style),s),Ke=typeof(j==null?void 0:j.emptyText)<"u"?j.emptyText:(W==null?void 0:W("Table"))||c.createElement(O1,{componentName:"Table"}),Xe=N?mze:fze,lt={},tt=c.useMemo(()=>{const{fontSize:Qe,lineHeight:Ge,lineWidth:st,padding:pt,paddingXS:yt,paddingSM:zt}=Z,$t=Math.floor(Qe*Ge);switch(G){case"middle":return zt*2+$t+st;case"small":return yt*2+$t+st;default:return pt*2+$t+st}},[Z,G]);return N&&(lt.listItemHeight=tt),ee(c.createElement("div",{ref:ge,className:Ce,style:Re},c.createElement(qc,Object.assign({spinning:!1},Oe),it,c.createElement(Xe,Object.assign({},lt,R,{ref:ue,columns:z,direction:V,expandable:oe,prefixCls:K,className:ne({[`${K}-middle`]:G==="middle",[`${K}-small`]:G==="small",[`${K}-bordered`]:u,[`${K}-empty`]:re.length===0},le,J,te),data:Ne,rowKey:ce,rowClassName:nt,emptyText:Ke,internalHooks:H1,internalRefs:we,transformColumns:rt,getContainerWidth:fe})),be)))},Mze=c.forwardRef(Rze),Nze=(e,t)=>{const n=c.useRef(0);return n.current+=1,c.createElement(Mze,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Ro=c.forwardRef(Nze);Ro.SELECTION_COLUMN=su;Ro.EXPAND_COLUMN=uc;Ro.SELECTION_ALL=c6;Ro.SELECTION_INVERT=u6;Ro.SELECTION_NONE=d6;Ro.Column=vBe;Ro.ColumnGroup=hBe;Ro.Summary=yne;const Dze=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},mn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},wN=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Kt(e,{tagFontSize:i,tagLineHeight:ae(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},xN=e=>({defaultBg:new rn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Kne=sn("Tag",e=>{const t=wN(e);return Dze(t)},xN);var jze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,style:r,className:i,checked:a,onChange:o,onClick:s}=e,l=jze(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=c.useContext(xt),f=w=>{o==null||o(!a),s==null||s(w)},m=u("tag",n),[p,v,h]=Kne(m),g=ne(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},d==null?void 0:d.className,i,v,h);return p(c.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:g,onClick:f})))}),Aze=e=>nk(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Lze=Ff(["Tag","preset"],e=>{const t=wN(e);return Aze(t)},xN);function Bze(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const cy=(e,t,n)=>{const r=Bze(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},zze=Ff(["Tag","status"],e=>{const t=wN(e);return[cy(t,"success","Success"),cy(t,"processing","Info"),cy(t,"error","Error"),cy(t,"warning","Warning")]},xN);var Hze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:l,onClose:u,bordered:d=!0,visible:f}=e,m=Hze(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:v,tag:h}=c.useContext(xt),[g,w]=c.useState(!0),b=_n(m,["closeIcon","closable"]);c.useEffect(()=>{f!==void 0&&w(f)},[f]);const y=Tk(l),x=xTe(l),C=y||x,S=Object.assign(Object.assign({backgroundColor:l&&!C?l:void 0},h==null?void 0:h.style),a),k=p("tag",n),[_,$,E]=Kne(k),T=ne(k,h==null?void 0:h.className,{[`${k}-${l}`]:C,[`${k}-has-color`]:l&&!C,[`${k}-hidden`]:!g,[`${k}-rtl`]:v==="rtl",[`${k}-borderless`]:!d},r,i,$,E),M=F=>{F.stopPropagation(),u==null||u(F),!F.defaultPrevented&&w(!1)},[,j]=uM(Dp(e),Dp(h),{closable:!1,closeIconRender:F=>{const z=c.createElement("span",{className:`${k}-close-icon`,onClick:M},F);return KR(F,z,R=>({onClick:H=>{var V;(V=R==null?void 0:R.onClick)===null||V===void 0||V.call(R,H),M(H)},className:ne(R==null?void 0:R.className,`${k}-close-icon`)}))}}),I=typeof m.onClick=="function"||o&&o.type==="a",N=s||null,O=N?c.createElement(c.Fragment,null,N,o&&c.createElement("span",null,o)):o,D=c.createElement("span",Object.assign({},b,{ref:t,className:T,style:S}),O,j,y&&c.createElement(Lze,{key:"preset",prefixCls:k}),x&&c.createElement(zze,{key:"status",prefixCls:k}));return _(I?c.createElement(S1,{component:"Tag"},D):D)}),Yne=Vze;Yne.CheckableTag=Fze;const Wze=e=>{const t=e!=null&&e.algorithm?yf(e.algorithm):yf(b1),n=Object.assign(Object.assign({},Rp),e==null?void 0:e.token);return qY(n,{override:e==null?void 0:e.token},t,tk)};function Uze(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const qze=(e,t)=>{const n=t??b1(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Uze(t??e)),hX(r)),{controlHeight:i}),vX(Object.assign(Object.assign({},n),{controlHeight:i})))},Fo=(e,t)=>new rn(e).setA(t).toRgbString(),vm=(e,t)=>new rn(e).lighten(t).toHexString(),Gze=e=>{const t=wf(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Kze=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Fo(r,.85),colorTextSecondary:Fo(r,.65),colorTextTertiary:Fo(r,.45),colorTextQuaternary:Fo(r,.25),colorFill:Fo(r,.18),colorFillSecondary:Fo(r,.12),colorFillTertiary:Fo(r,.08),colorFillQuaternary:Fo(r,.04),colorBgSolid:Fo(r,.95),colorBgSolidHover:Fo(r,1),colorBgSolidActive:Fo(r,.9),colorBgElevated:vm(n,12),colorBgContainer:vm(n,8),colorBgLayout:vm(n,0),colorBgSpotlight:vm(n,26),colorBgBlur:Fo(r,.04),colorBorder:vm(n,26),colorBorderSecondary:vm(n,19)}},Yze=(e,t)=>{const n=Object.keys(BR).map(i=>{const a=wf(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((o,s,l)=>(o[`${i}-${l+1}`]=a[l],o[`${i}${l+1}`]=a[l],o),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t??b1(e);return Object.assign(Object.assign(Object.assign({},r),n),pX(e,{generateColorPalettes:Gze,generateNeutralColorPalettes:Kze}))};function Xze(){const[e,t,n]=Gr();return{theme:e,token:t,hashId:n}}const Vr={defaultSeed:p0.token,useToken:Xze,defaultAlgorithm:b1,darkAlgorithm:Yze,compactAlgorithm:qze,getDesignToken:Wze,defaultConfig:p0,_internalContext:zR};var Qze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ic.createElement(Zze,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),$f=c.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,o=Qze(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Wc("timePicker",i,a),l=c.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return c.createElement(Jze,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),Xne=id($f,"popupAlign",void 0,"picker");$f._InternalPanelDoNotUseOrYouWillBeFired=Xne;$f.RangePicker=eHe;$f._InternalPanelDoNotUseOrYouWillBeFired=Xne;const tHe=function(e){var t=c.useRef({valueLabels:new Map});return c.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(a){var o=a.value,s=a.label,l=s??n.get(o);return r.set(o,l),A(A({},a),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var nHe=function(t,n,r,i){return c.useMemo(function(){var a=function(p){return p.map(function(v){var h=v.value;return h})},o=a(t),s=a(n),l=o.filter(function(m){return!i[m]}),u=o,d=s;if(r){var f=Zo(o,!0,i);u=f.checkedKeys,d=f.halfCheckedKeys}return[Array.from(new Set([].concat(Fe(l),Fe(u)))),d]},[t,n,r,i])},rHe=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},iHe=function(t){var n=t||{},r=n.label,i=n.value,a=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:a||"children"}},g6=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},aHe=function(t,n){var r=[],i=function a(o){o.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),a(l))})};return i(t),r},jL=function(t){return t==null};const oHe=function(e,t){return c.useMemo(function(){var n=A1(e,{fieldNames:t,initWrapper:function(i){return A(A({},i),{},{valueEntities:new Map})},processEntity:function(i,a){var o=i.node[t.value];a.valueEntities.set(o,i)}});return n},[e,t])};var SN=function(){return null},sHe=["children","value"];function Qne(e){return Wr(e).map(function(t){if(!c.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,a=i.children,o=i.value,s=ut(i,sHe),l=A({key:r,value:o},s),u=Qne(a);return u.length&&(l.children=u),l}).filter(function(t){return t})}function b6(e){if(!e)return e;var t=A({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return An(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function lHe(e,t,n,r,i,a){var o=null,s=null;function l(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(p,v){var h="".concat(f,"-").concat(v),g=p[a.value],w=n.includes(g),b=u(p[a.children]||[],h,w),y=c.createElement(SN,p,b.map(function(C){return C.node}));if(t===g&&(o=y),w){var x={pos:h,node:y,children:b};return m||s.push(x),x}return null}).filter(function(p){return p})}s||(s=[],u(r),s.sort(function(d,f){var m=d.node.props.value,p=f.node.props.value,v=n.indexOf(m),h=n.indexOf(p);return v-h}))}Object.defineProperty(e,"triggerNode",{get:function(){return An(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return An(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(d){var f=d.node;return f})}})}var cHe=function(t,n,r){var i=r.fieldNames,a=r.treeNodeFilterProp,o=r.filterTreeNode,s=i.children;return c.useMemo(function(){if(!n||o===!1)return t;var l=typeof o=="function"?o:function(d,f){return String(f[a]).toUpperCase().includes(n.toUpperCase())},u=function d(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(p,v){var h=v[s],g=m||l(n,b6(v)),w=d(h||[],g);return(g||w.length)&&p.push(A(A({},v),{},U({isLeaf:void 0},s,w))),p},[])};return u(t)},[t,n,s,a,o])};function FL(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function uHe(e,t){var n=t.id,r=t.pId,i=t.rootPId,a=new Map,o=[];return e.forEach(function(s){var l=s[n],u=A(A({},s),{},{key:s.key||l});a.set(l,u)}),a.forEach(function(s){var l=s[r],u=a.get(l);u?(u.children=u.children||[],u.children.push(s)):(l===i||i===null)&&o.push(s)}),o}function dHe(e,t,n){return c.useMemo(function(){if(e){if(n){var r=A({id:"id",pId:"pId",rootPId:null},mt(n)==="object"?n:{});return uHe(e,r)}return e}return Qne(t)},[t,n,e])}var Jne=c.createContext(null),Zne=c.createContext(null),fHe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},mHe=function(t,n){var r=mM(),i=r.prefixCls,a=r.multiple,o=r.searchValue,s=r.toggleOpen,l=r.open,u=r.notFoundContent,d=c.useContext(Zne),f=d.virtual,m=d.listHeight,p=d.listItemHeight,v=d.listItemScrollOffset,h=d.treeData,g=d.fieldNames,w=d.onSelect,b=d.dropdownMatchSelectWidth,y=d.treeExpandAction,x=d.treeTitleRender,C=d.onPopupScroll,S=d.leftMaxCount,k=d.leafCountOnly,_=d.valueEntities,$=c.useContext(Jne),E=$.checkable,T=$.checkedKeys,M=$.halfCheckedKeys,j=$.treeExpandedKeys,I=$.treeDefaultExpandAll,N=$.treeDefaultExpandedKeys,O=$.onTreeExpand,D=$.treeIcon,F=$.showTreeIcon,z=$.switcherIcon,R=$.treeLine,H=$.treeNodeFilterProp,V=$.loadData,B=$.treeLoadedKeys,W=$.treeMotion,q=$.onTreeLoad,Q=$.keyEntities,G=c.useRef(),X=Nc(function(){return h},[l,h],function(He,Be){return Be[0]&&He[1]!==Be[1]}),re=c.useMemo(function(){return E?{checked:T,halfChecked:M}:null},[E,T,M]);c.useEffect(function(){if(l&&!a&&T.length){var He;(He=G.current)===null||He===void 0||He.scrollTo({key:T[0]})}},[l]);var K=function(Be){Be.preventDefault()},Y=function(Be,ct){var Ve=ct.node;E&&g6(Ve)||(w(Ve.key,{selected:!T.includes(Ve.key)}),a||s(!1))},Z=c.useState(N),J=ie(Z,2),ee=J[0],te=J[1],le=c.useState(null),oe=ie(le,2),de=oe[0],pe=oe[1],we=c.useMemo(function(){return j?Fe(j):o?de:ee},[ee,de,j,o]),fe=function(Be){te(Be),pe(Be),O&&O(Be)},ge=String(o).toLowerCase(),ue=function(Be){return ge?String(Be[H]).toLowerCase().includes(ge):!1};c.useEffect(function(){o&&pe(aHe(h,g))},[o]);var ce=c.useState(function(){return new Map}),$e=ie(ce,2),se=$e[0],ve=$e[1];c.useEffect(function(){S&&ve(new Map)},[S]);function he(He){var Be=He[g.value];if(!se.has(Be)){var ct=_.get(Be),Ve=(ct.children||[]).length===0;if(Ve)se.set(Be,!1);else{var Ye=ct.children.filter(function(Ae){return!Ae.node.disabled&&!Ae.node.disableCheckbox&&!T.includes(Ae.node[g.value])}),Ne=Ye.length;se.set(Be,Ne>S)}}return se.get(Be)}var _e=Vt(function(He){var Be=He[g.value];return T.includes(Be)||S===null?!1:S<=0?!0:k&&S?he(He):!1}),Se=function He(Be){var ct=Tl(Be),Ve;try{for(ct.s();!(Ve=ct.n()).done;){var Ye=Ve.value;if(!(Ye.disabled||Ye.selectable===!1)){if(o){if(ue(Ye))return Ye}else return Ye;if(Ye[g.children]){var Ne=He(Ye[g.children]);if(Ne)return Ne}}}}catch(Ae){ct.e(Ae)}finally{ct.f()}return null},Pe=c.useState(null),De=ie(Pe,2),xe=De[0],ye=De[1],Te=Q[xe];c.useEffect(function(){if(l){var He=null,Be=function(){var Ve=Se(X);return Ve?Ve[g.value]:null};!a&&T.length&&!o?He=T[0]:He=Be(),ye(He)}},[l,o]),c.useImperativeHandle(n,function(){var He;return{scrollTo:(He=G.current)===null||He===void 0?void 0:He.scrollTo,onKeyDown:function(ct){var Ve,Ye=ct.which;switch(Ye){case qe.UP:case qe.DOWN:case qe.LEFT:case qe.RIGHT:(Ve=G.current)===null||Ve===void 0||Ve.onKeyDown(ct);break;case qe.ENTER:{if(Te){var Ne=_e(Te.node),Ae=(Te==null?void 0:Te.node)||{},et=Ae.selectable,nt=Ae.value,rt=Ae.disabled;et!==!1&&!rt&&!Ne&&Y(null,{node:{key:xe},selected:!T.includes(nt)})}break}case qe.ESC:s(!1)}},onKeyUp:function(){}}});var Ie=Nc(function(){return!o},[o,j||ee],function(He,Be){var ct=ie(He,1),Ve=ct[0],Ye=ie(Be,2),Ne=Ye[0],Ae=Ye[1];return Ve!==Ne&&!!(Ne||Ae)}),ke=Ie?V:null;if(X.length===0)return c.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:K},u);var je={fieldNames:g};return B&&(je.loadedKeys=B),we&&(je.expandedKeys=we),c.createElement("div",{onMouseDown:K},Te&&l&&c.createElement("span",{style:fHe,"aria-live":"assertive"},Te.node.value),c.createElement(Mne.Provider,{value:{nodeDisabled:_e}},c.createElement(e_,Ee({ref:G,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:X,height:m,itemHeight:p,itemScrollOffset:v,virtual:f!==!1&&b!==!1,multiple:a,icon:D,showIcon:F,switcherIcon:z,showLine:R,loadData:ke,motion:W,activeKey:xe,checkable:E,checkStrictly:!0,checkedKeys:re,selectedKeys:E?[]:T,defaultExpandAll:I,titleRender:x},je,{onActiveChange:ye,onSelect:Y,onCheck:Y,onExpand:fe,onLoad:q,filterTreeNode:ue,expandAction:y,onScroll:C}))))},pHe=c.forwardRef(mHe),CN="SHOW_ALL",kN="SHOW_PARENT",t_="SHOW_CHILD";function AL(e,t,n,r){var i=new Set(e);return t===t_?e.filter(function(a){var o=n[a];return!o||!o.children||!o.children.some(function(s){var l=s.node;return i.has(l[r.value])})||!o.children.every(function(s){var l=s.node;return g6(l)||i.has(l[r.value])})}):t===kN?e.filter(function(a){var o=n[a],s=o?o.parent:null;return!s||g6(s.node)||!i.has(s.key)}):e}var vHe=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function hHe(e){return!e||mt(e)!=="object"}var gHe=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,a=e.value,o=e.defaultValue,s=e.onChange,l=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,m=e.onSearch,p=e.autoClearSearchValue,v=p===void 0?!0:p,h=e.filterTreeNode,g=e.treeNodeFilterProp,w=g===void 0?"value":g,b=e.showCheckedStrategy,y=e.treeNodeLabelProp,x=e.multiple,C=e.treeCheckable,S=e.treeCheckStrictly,k=e.labelInValue,_=e.maxCount,$=e.fieldNames,E=e.treeDataSimpleMode,T=e.treeData,M=e.children,j=e.loadData,I=e.treeLoadedKeys,N=e.onTreeLoad,O=e.treeDefaultExpandAll,D=e.treeExpandedKeys,F=e.treeDefaultExpandedKeys,z=e.onTreeExpand,R=e.treeExpandAction,H=e.virtual,V=e.listHeight,B=V===void 0?200:V,W=e.listItemHeight,q=W===void 0?20:W,Q=e.listItemScrollOffset,G=Q===void 0?0:Q,X=e.onDropdownVisibleChange,re=e.dropdownMatchSelectWidth,K=re===void 0?!0:re,Y=e.treeLine,Z=e.treeIcon,J=e.showTreeIcon,ee=e.switcherIcon,te=e.treeMotion,le=e.treeTitleRender,oe=e.onPopupScroll,de=ut(e,vHe),pe=bM(n),we=C&&!S,fe=C||S,ge=S||k,ue=fe||x,ce=Ut(o,{value:a}),$e=ie(ce,2),se=$e[0],ve=$e[1],he=c.useMemo(function(){return C?b||t_:CN},[b,C]),_e=c.useMemo(function(){return iHe($)},[JSON.stringify($)]),Se=Ut("",{value:d!==void 0?d:f,postState:function(me){return me||""}}),Pe=ie(Se,2),De=Pe[0],xe=Pe[1],ye=function(me){xe(me),m==null||m(me)},Te=dHe(T,M,E),Ie=oHe(Te,_e),ke=Ie.keyEntities,je=Ie.valueEntities,He=c.useCallback(function(ze){var me=[],Me=[];return ze.forEach(function(We){je.has(We)?Me.push(We):me.push(We)}),{missingRawValues:me,existRawValues:Me}},[je]),Be=cHe(Te,De,{fieldNames:_e,treeNodeFilterProp:w,filterTreeNode:h}),ct=c.useCallback(function(ze){if(ze){if(y)return ze[y];for(var me=_e._title,Me=0;MeQe)){var wt=Ye(ze);if(ve(wt),v&&xe(""),s){var Ze=ze;we&&(Ze=We.map(function(Dt){var en=je.get(Dt);return en?en.node[_e.value]:Dt}));var Le=me||{triggerValue:void 0,selected:void 0},ot=Le.triggerValue,ht=Le.selected,Et=Ze;if(S){var Rt=rt.filter(function(Dt){return!Ze.includes(Dt.value)});Et=[].concat(Fe(Et),Fe(Rt))}var Ct=Ye(Et),at={preValue:nt,triggerValue:ot},kt=!0;(S||Me==="selection"&&!ht)&&(kt=!1),lHe(at,ot,ze,Te,kt,_e),fe?at.checked=ht:at.selected=ht;var At=ge?Ct:Ct.map(function(Dt){return Dt.value});s(ue?At:At[0],ge?null:Ct.map(function(Dt){return Dt.label}),at)}}}),st=c.useCallback(function(ze,me){var Me,We=me.selected,wt=me.source,Ze=ke[ze],Le=Ze==null?void 0:Ze.node,ot=(Me=Le==null?void 0:Le[_e.value])!==null&&Me!==void 0?Me:ze;if(!ue)Ge([ot],{selected:!0,triggerValue:ot},"option");else{var ht=We?[].concat(Fe(it),[ot]):Ce.filter(function(en){return en!==ot});if(we){var Et=He(ht),Rt=Et.missingRawValues,Ct=Et.existRawValues,at=Ct.map(function(en){return je.get(en).key}),kt;if(We){var At=Zo(at,!0,ke);kt=At.checkedKeys}else{var Dt=Zo(at,{checked:!1,halfCheckedKeys:Re},ke);kt=Dt.checkedKeys}ht=[].concat(Fe(Rt),Fe(kt.map(function(en){return ke[en].node[_e.value]})))}Ge(ht,{selected:We,triggerValue:ot},wt||"option")}We||!ue?l==null||l(ot,b6(Le)):u==null||u(ot,b6(Le))},[He,je,ke,_e,ue,it,Ge,we,l,u,Ce,Re,_]),pt=c.useCallback(function(ze){if(X){var me={};Object.defineProperty(me,"documentClickClose",{get:function(){return An(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),X(ze,me)}},[X]),yt=FL(function(ze,me){var Me=ze.map(function(We){return We.value});if(me.type==="clear"){Ge(Me,{},"selection");return}me.values.length&&st(me.values[0].value,{selected:!1,source:"selection"})}),zt=c.useMemo(function(){return{virtual:H,dropdownMatchSelectWidth:K,listHeight:B,listItemHeight:q,listItemScrollOffset:G,treeData:Be,fieldNames:_e,onSelect:st,treeExpandAction:R,treeTitleRender:le,onPopupScroll:oe,leftMaxCount:_===void 0?null:_-tt.length,leafCountOnly:he==="SHOW_CHILD"&&!S&&!!C,valueEntities:je}},[H,K,B,q,G,Be,_e,st,R,le,oe,_,tt.length,he,S,C,je]),$t=c.useMemo(function(){return{checkable:fe,loadData:j,treeLoadedKeys:I,onTreeLoad:N,checkedKeys:Ce,halfCheckedKeys:Re,treeDefaultExpandAll:O,treeExpandedKeys:D,treeDefaultExpandedKeys:F,onTreeExpand:z,treeIcon:Z,treeMotion:te,showTreeIcon:J,switcherIcon:ee,treeLine:Y,treeNodeFilterProp:w,keyEntities:ke}},[fe,j,I,N,Ce,Re,O,D,F,z,Z,te,J,ee,Y,w,ke]);return c.createElement(Zne.Provider,{value:zt},c.createElement(Jne.Provider,{value:$t},c.createElement(vM,Ee({ref:t},de,{id:pe,prefixCls:i,mode:ue?"multiple":void 0,displayValues:tt,onDisplayValuesChange:yt,searchValue:De,onSearch:ye,OptionList:pHe,emptyOptions:!Te.length,onDropdownVisibleChange:pt,dropdownMatchSelectWidth:K}))))}),V1=gHe;V1.TreeNode=SN;V1.SHOW_ALL=CN;V1.SHOW_PARENT=kN;V1.SHOW_CHILD=t_;const bHe=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${ae(e.paddingXS)} ${ae(e.calc(e.paddingXS).div(2).equal())}`},Fne(n,Kt(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},Wk(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function yHe(e,t,n){return sn("TreeSelect",r=>{const i=Kt(r,{treePrefixCls:t});return[bHe(i)]},Ane)(e,n)}var wHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,size:i,disabled:a,bordered:o=!0,className:s,rootClassName:l,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:m,placement:p,notFoundContent:v,switcherIcon:h,treeLine:g,getPopupContainer:w,popupClassName:b,dropdownClassName:y,treeIcon:x=!1,transitionName:C,choiceTransitionName:S="",status:k,treeExpandAction:_,builtinPlacements:$,dropdownMatchSelectWidth:E,popupMatchSelectWidth:T,allowClear:M,variant:j,dropdownStyle:I,tagRender:N,maxCount:O,showCheckedStrategy:D,treeCheckStrictly:F}=e,z=wHe(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:R,getPrefixCls:H,renderEmpty:V,direction:B,virtual:W,popupMatchSelectWidth:q,popupOverflow:Q}=c.useContext(xt),[,G]=Gr(),X=m??(G==null?void 0:G.controlHeightSM)+(G==null?void 0:G.paddingXXS),re=H(),K=H("select",r),Y=H("select-tree",r),Z=H("tree-select",r),{compactSize:J,compactItemClassnames:ee}=ol(K,B),te=Ln(K),le=Ln(Z),[oe,de,pe]=xM(K,te),[we]=yHe(Z,Y,le),[fe,ge]=Wc("treeSelect",j,o),ue=ne(b||y,`${Z}-dropdown`,{[`${Z}-dropdown-rtl`]:B==="rtl"},l,pe,te,le,de),ce=!!(u||d),$e=c.useMemo(()=>{if(!(O&&(D==="SHOW_ALL"&&!F||D==="SHOW_PARENT")))return O},[O,D,F]),se=CM(e.suffixIcon,e.showArrow),ve=(n=T??E)!==null&&n!==void 0?n:q,{status:he,hasFeedback:_e,isFormItemInput:Se,feedbackIcon:Pe}=c.useContext(ni),De=Vc(he,k),{suffixIcon:xe,removeIcon:ye,clearIcon:Te}=$k(Object.assign(Object.assign({},z),{multiple:ce,showSuffixIcon:se,hasFeedback:_e,feedbackIcon:Pe,prefixCls:K,componentName:"TreeSelect"})),Ie=M===!0?{clearIcon:Te}:M;let ke;v!==void 0?ke=v:ke=(V==null?void 0:V("Select"))||c.createElement(O1,{componentName:"Select"});const je=_n(z,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),He=c.useMemo(()=>p!==void 0?p:B==="rtl"?"bottomRight":"bottomLeft",[p,B]),Be=Br(nt=>{var rt;return(rt=i??J)!==null&&rt!==void 0?rt:nt}),ct=c.useContext(Ur),Ve=a??ct,Ye=ne(!r&&Z,{[`${K}-lg`]:Be==="large",[`${K}-sm`]:Be==="small",[`${K}-rtl`]:B==="rtl",[`${K}-${fe}`]:ge,[`${K}-in-form-item`]:Se},el(K,De,_e),ee,s,l,pe,te,le,de),Ne=nt=>c.createElement(Lne,{prefixCls:Y,switcherIcon:h,treeNodeProps:nt,showLine:g}),[Ae]=hs("SelectLike",I==null?void 0:I.zIndex),et=c.createElement(V1,Object.assign({virtual:W,disabled:Ve},je,{dropdownMatchSelectWidth:ve,builtinPlacements:wM($,Q),ref:t,prefixCls:K,className:Ye,listHeight:f,listItemHeight:X,treeCheckable:u&&c.createElement("span",{className:`${K}-tree-checkbox-inner`}),treeLine:!!g,suffixIcon:xe,multiple:ce,placement:He,removeIcon:ye,allowClear:Ie,switcherIcon:Ne,showTreeIcon:x,notFoundContent:ke,getPopupContainer:w||R,treeMotion:null,dropdownClassName:ue,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:Ae}),choiceTransitionName:Mi(re,"",S),transitionName:Mi(re,"slide-up",C),treeExpandAction:_,tagRender:ce?N:void 0,maxCount:$e,showCheckedStrategy:D,treeCheckStrictly:F}));return oe(we(et))},SHe=c.forwardRef(xHe),Wf=SHe,CHe=id(Wf,"dropdownAlign",e=>_n(e,["visible"]));Wf.TreeNode=SN;Wf.SHOW_ALL=CN;Wf.SHOW_PARENT=kN;Wf.SHOW_CHILD=t_;Wf._InternalPanelDoNotUseOrYouWillBeFired=CHe;const kHe=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},_He=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + h${r}&, + div&-h${r}, + div&-h${r} > textarea, + h${r} + `]=kHe(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},$He=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},UR(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},EHe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Zx[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),PHe=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ae(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},THe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),OHe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),IHe=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},_He(e)),{[` + & + h1${t}, + & + h2${t}, + & + h3${t}, + & + h4${t}, + & + h5${t} + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),EHe(e)),$He(e)),{[` + ${t}-expand, + ${t}-collapse, + ${t}-edit, + ${t}-copy + `]:Object.assign(Object.assign({},UR(e)),{marginInlineStart:e.marginXXS})}),PHe(e)),THe(e)),OHe()),{"&-rtl":{direction:"rtl"}})}},RHe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),ere=sn("Typography",e=>[IHe(e)],RHe),MHe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:p=c.createElement(ZAe,null)}=e,v=c.useRef(null),h=c.useRef(!1),g=c.useRef(null),[w,b]=c.useState(l);c.useEffect(()=>{b(l)},[l]),c.useEffect(()=>{var I;if(!((I=v.current)===null||I===void 0)&&I.resizableTextArea){const{textArea:N}=v.current.resizableTextArea;N.focus();const{length:O}=N.value;N.setSelectionRange(O,O)}},[]);const y=I=>{let{target:N}=I;b(N.value.replace(/[\n\r]/g,""))},x=()=>{h.current=!0},C=()=>{h.current=!1},S=I=>{let{keyCode:N}=I;h.current||(g.current=N)},k=()=>{u(w.trim())},_=I=>{let{keyCode:N,ctrlKey:O,altKey:D,metaKey:F,shiftKey:z}=I;g.current!==N||h.current||O||D||F||z||(N===qe.ENTER?(k(),f==null||f()):N===qe.ESC&&d())},$=()=>{k()},[E,T,M]=ere(t),j=ne(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${m}`]:!!m},r,T,M);return E(c.createElement("div",{className:j,style:i},c.createElement(Qee,{ref:v,maxLength:o,value:w,onChange:y,onKeyDown:S,onKeyUp:_,onCompositionStart:x,onCompositionEnd:C,onBlur:$,"aria-label":n,rows:1,autoSize:s}),p!==null?qr(p,{className:`${t}-edit-content-confirm`}):null))};var NHe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=LL[t.format]||LL.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),o.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=FHe("message"in t?t.message:jHe),window.prompt(r,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(a):o.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var LHe=AHe;const BHe=qn(LHe);var zHe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(d){try{u(r.next(d))}catch(f){o(f)}}function l(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?a(d.value):i(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})};const HHe=e=>{let{copyConfig:t,children:n}=e;const[r,i]=c.useState(!1),[a,o]=c.useState(!1),s=c.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),c.useEffect(()=>l,[]);const d=Vt(f=>zHe(void 0,void 0,void 0,function*(){var m;f==null||f.preventDefault(),f==null||f.stopPropagation(),o(!0);try{const p=typeof t.text=="function"?yield t.text():t.text;BHe(p||cFe(n,!0).join("")||"",u),o(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(m=t.onCopy)===null||m===void 0||m.call(t,f)}catch(p){throw o(!1),p}}));return{copied:r,copyLoading:a,onClick:d}};function WE(e,t){return c.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const VHe=e=>{const t=c.useRef(void 0);return c.useEffect(()=>{t.current=e}),t.current},WHe=(e,t,n)=>c.useMemo(()=>e===!0?{title:t??n}:c.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var UHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:o,children:s,direction:l,style:u}=e,d=UHe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,typography:p}=c.useContext(xt),v=l??m,h=o?ri(t,o):t,g=f("typography",n),[w,b,y]=ere(g),x=ne(g,p==null?void 0:p.className,{[`${g}-rtl`]:v==="rtl"},i,a,b,y),C=Object.assign(Object.assign({},p==null?void 0:p.style),u);return w(c.createElement(r,Object.assign({className:x,style:C,ref:h},d),s))});function BL(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function UE(e,t,n){return e===!0||e===void 0?t:e||n&&t}function qHe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const _N=e=>["string","number"].includes(typeof e),GHe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:l,loading:u}=e;const d=BL(a),f=BL(o),{copied:m,copy:p}=r??{},v=n?m:p,h=UE(d[n?1:0],v),g=typeof h=="string"?h:v;return c.createElement(sa,{title:h},c.createElement("button",{type:"button",className:ne(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":g,tabIndex:s},n?UE(f[1],c.createElement(SM,null),!0):UE(f[0],u?c.createElement(Xs,null):c.createElement(VAe,null),!0)))},uy=c.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=c.useRef(null);return c.useImperativeHandle(t,()=>({isExceed:()=>{const a=i.current;return a.scrollHeight>a.clientHeight},getHeight:()=>i.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),KHe=e=>e.reduce((t,n)=>t+(_N(n)?String(n).length:1),0);function zL(e,t){let n=0;const r=[];for(let i=0;it){const u=t-n;return r.push(String(a).slice(0,u)),r}r.push(a),n=l}return e}const qE=0,GE=1,KE=2,YE=3,HL=4,dy={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function YHe(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>Wr(r),[r]),d=c.useMemo(()=>KHe(u),[r]),f=c.useMemo(()=>i(u,!1),[r]),[m,p]=c.useState(null),v=c.useRef(null),h=c.useRef(null),g=c.useRef(null),w=c.useRef(null),b=c.useRef(null),[y,x]=c.useState(!1),[C,S]=c.useState(qE),[k,_]=c.useState(0),[$,E]=c.useState(null);nn(()=>{S(t&&n&&d?GE:qE)},[n,r,a,t,u]),nn(()=>{var I,N,O,D;if(C===GE){S(KE);const F=h.current&&getComputedStyle(h.current).whiteSpace;E(F)}else if(C===KE){const F=!!(!((I=g.current)===null||I===void 0)&&I.isExceed());S(F?YE:HL),p(F?[0,d]:null),x(F);const z=((N=g.current)===null||N===void 0?void 0:N.getHeight())||0,R=a===1?0:((O=w.current)===null||O===void 0?void 0:O.getHeight())||0,H=((D=b.current)===null||D===void 0?void 0:D.getHeight())||0,V=Math.max(z,R+H);_(V+1),l(F)}},[C]);const T=m?Math.ceil((m[0]+m[1])/2):0;nn(()=>{var I;const[N,O]=m||[0,0];if(N!==O){const F=(((I=v.current)===null||I===void 0?void 0:I.getHeight())||0)>k;let z=T;O-N===1&&(z=F?N:O),p(F?[N,z]:[z,O])}},[m,T]);const M=c.useMemo(()=>{if(!t)return i(u,!1);if(C!==YE||!m||m[0]!==m[1]){const I=i(u,!1);return[HL,qE].includes(C)?I:c.createElement("span",{style:Object.assign(Object.assign({},dy),{WebkitLineClamp:a})},I)}return i(o?u:zL(u,m[0]),y)},[o,C,m,u].concat(Fe(s))),j={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,M,C===KE&&c.createElement(c.Fragment,null,c.createElement(uy,{style:Object.assign(Object.assign(Object.assign({},j),dy),{WebkitLineClamp:a}),ref:g},f),c.createElement(uy,{style:Object.assign(Object.assign(Object.assign({},j),dy),{WebkitLineClamp:a-1}),ref:w},f),c.createElement(uy,{style:Object.assign(Object.assign(Object.assign({},j),dy),{WebkitLineClamp:1}),ref:b},i([],!0))),C===YE&&m&&m[0]!==m[1]&&c.createElement(uy,{style:Object.assign(Object.assign({},j),{top:400}),ref:v},i(zL(u,T),!0)),C===GE&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const XHe=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:c.createElement(sa,Object.assign({open:n?void 0:!1},i),r)};var QHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,className:i,style:a,type:o,disabled:s,children:l,ellipsis:u,editable:d,copyable:f,component:m,title:p}=e,v=QHe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:h,direction:g}=c.useContext(xt),[w]=la("Text"),b=c.useRef(null),y=c.useRef(null),x=h("typography",r),C=_n(v,["mark","code","delete","underline","strong","keyboard","italic"]),[S,k]=WE(d),[_,$]=Ut(!1,{value:k.editing}),{triggerType:E=["icon"]}=k,T=Ie=>{var ke;Ie&&((ke=k.onStart)===null||ke===void 0||ke.call(k)),$(Ie)},M=VHe(_);nn(()=>{var Ie;!_&&M&&((Ie=y.current)===null||Ie===void 0||Ie.focus())},[_]);const j=Ie=>{Ie==null||Ie.preventDefault(),T(!0)},I=Ie=>{var ke;(ke=k.onChange)===null||ke===void 0||ke.call(k,Ie),T(!1)},N=()=>{var Ie;(Ie=k.onCancel)===null||Ie===void 0||Ie.call(k),T(!1)},[O,D]=WE(f),{copied:F,copyLoading:z,onClick:R}=HHe({copyConfig:D,children:l}),[H,V]=c.useState(!1),[B,W]=c.useState(!1),[q,Q]=c.useState(!1),[G,X]=c.useState(!1),[re,K]=c.useState(!0),[Y,Z]=WE(u,{expandable:!1,symbol:Ie=>Ie?w==null?void 0:w.collapse:w==null?void 0:w.expand}),[J,ee]=Ut(Z.defaultExpanded||!1,{value:Z.expanded}),te=Y&&(!J||Z.expandable==="collapsible"),{rows:le=1}=Z,oe=c.useMemo(()=>te&&(Z.suffix!==void 0||Z.onEllipsis||Z.expandable||S||O),[te,Z,S,O]);nn(()=>{Y&&!oe&&(V(jT("webkitLineClamp")),W(jT("textOverflow")))},[oe,Y]);const[de,pe]=c.useState(te),we=c.useMemo(()=>oe?!1:le===1?B:H,[oe,B,H]);nn(()=>{pe(we&&te)},[we,te]);const fe=te&&(de?G:q),ge=te&&le===1&&de,ue=te&&le>1&&de,ce=(Ie,ke)=>{var je;ee(ke.expanded),(je=Z.onExpand)===null||je===void 0||je.call(Z,Ie,ke)},[$e,se]=c.useState(0),ve=Ie=>{let{offsetWidth:ke}=Ie;se(ke)},he=Ie=>{var ke;Q(Ie),q!==Ie&&((ke=Z.onEllipsis)===null||ke===void 0||ke.call(Z,Ie))};c.useEffect(()=>{const Ie=b.current;if(Y&&de&&Ie){const ke=qHe(Ie);G!==ke&&X(ke)}},[Y,de,l,ue,re,$e]),c.useEffect(()=>{const Ie=b.current;if(typeof IntersectionObserver>"u"||!Ie||!de||!te)return;const ke=new IntersectionObserver(()=>{K(!!Ie.offsetParent)});return ke.observe(Ie),()=>{ke.disconnect()}},[de,te]);const _e=WHe(Z.tooltip,k.text,l),Se=c.useMemo(()=>{if(!(!Y||de))return[k.text,l,p,_e.title].find(_N)},[Y,de,p,_e.title,fe]);if(_)return c.createElement(MHe,{value:(n=k.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:I,onCancel:N,onEnd:k.onEnd,prefixCls:x,className:i,style:a,direction:g,component:m,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const Pe=()=>{const{expandable:Ie,symbol:ke}=Z;return Ie?c.createElement("button",{type:"button",key:"expand",className:`${x}-${J?"collapse":"expand"}`,onClick:je=>ce(je,{expanded:!J}),"aria-label":J?w.collapse:w==null?void 0:w.expand},typeof ke=="function"?ke(J):ke):null},De=()=>{if(!S)return;const{icon:Ie,tooltip:ke,tabIndex:je}=k,He=Wr(ke)[0]||(w==null?void 0:w.edit),Be=typeof He=="string"?He:"";return E.includes("icon")?c.createElement(sa,{key:"edit",title:ke===!1?"":He},c.createElement("button",{type:"button",ref:y,className:`${x}-edit`,onClick:j,"aria-label":Be,tabIndex:je},Ie||c.createElement(lne,{role:"button"}))):null},xe=()=>O?c.createElement(GHe,Object.assign({key:"copy"},D,{prefixCls:x,copied:F,locale:w,onCopy:R,loading:z,iconOnly:l==null})):null,ye=Ie=>[Ie&&Pe(),De(),xe()],Te=Ie=>[Ie&&!J&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ZHe),Z.suffix,ye(Ie)];return c.createElement(Ci,{onResize:ve,disabled:!te},Ie=>c.createElement(XHe,{tooltipProps:_e,enableEllipsis:te,isEllipsis:fe},c.createElement(tre,Object.assign({className:ne({[`${x}-${o}`]:o,[`${x}-disabled`]:s,[`${x}-ellipsis`]:Y,[`${x}-ellipsis-single-line`]:ge,[`${x}-ellipsis-multiple-line`]:ue},i),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ue?le:void 0}),component:m,ref:ri(Ie,b,t),direction:g,onClick:E.includes("text")?j:void 0,"aria-label":Se==null?void 0:Se.toString(),title:p},C),c.createElement(YHe,{enableMeasure:te&&!de,text:l,rows:le,width:$e,onEllipsis:he,expanded:J,miscDeps:[F,J,z,S,O,w]},(ke,je)=>JHe(e,c.createElement(c.Fragment,null,ke.length>0&&je&&!J&&Se?c.createElement("span",{key:"show-content","aria-hidden":!0},ke):ke,Te(je)))))))});var eVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n,rel:r}=e,i=eVe(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,c.createElement(n_,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),nVe=c.forwardRef((e,t)=>c.createElement(n_,Object.assign({ref:t},e,{component:"div"})));var rVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{ellipsis:n}=e,r=rVe(e,["ellipsis"]);const i=c.useMemo(()=>n&&typeof n=="object"?_n(n,["expandable","rows"]):n,[n]);return c.createElement(n_,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},aVe=c.forwardRef(iVe);var oVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{level:n=1}=e,r=oVe(e,["level"]),i=sVe.includes(n)?`h${n}`:"h1";return c.createElement(n_,Object.assign({ref:t},r,{component:i}))}),Ba=tre;Ba.Text=aVe;Ba.Link=tVe;Ba.Title=lVe;Ba.Paragraph=nVe;const XE=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(An(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function cVe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function VL(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function uVe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var a=e.data[i];if(Array.isArray(a)){a.forEach(function(o){n.append("".concat(i,"[]"),o)});return}n.append(i,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(cVe(e,t),VL(t)):e.onSuccess(VL(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var dVe=function(){var e=Oi(Tn().mark(function t(n,r){var i,a,o,s,l,u,d,f;return Tn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:u=function(){return u=Oi(Tn().mark(function h(g){return Tn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise(function(y){g.file(function(x){r(x)?(g.fullPath&&!x.webkitRelativePath&&(Object.defineProperties(x,{webkitRelativePath:{writable:!0}}),x.webkitRelativePath=g.fullPath.replace(/^\//,""),Object.defineProperties(x,{webkitRelativePath:{writable:!1}})),y(x)):y(null)})}));case 1:case"end":return b.stop()}},h)})),u.apply(this,arguments)},l=function(h){return u.apply(this,arguments)},s=function(){return s=Oi(Tn().mark(function h(g){var w,b,y,x,C;return Tn().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:w=g.createReader(),b=[];case 2:return k.next=5,new Promise(function(_){w.readEntries(_,function(){return _([])})});case 5:if(y=k.sent,x=y.length,x){k.next=9;break}return k.abrupt("break",12);case 9:for(C=0;C{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ae(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${t}-disabled):hover, + &-hover:not(${t}-disabled) + `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ae(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},gVe=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Ks()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},Ha),{padding:`0 ${ae(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + ${l}:focus-visible, + &.picture ${l} + `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},bVe=e=>{const{componentCls:t}=e,n=new on("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new on("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:eM(e)},n,r]},yVe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + ${o}${o}-picture, + ${o}${o}-picture-card, + ${o}${o}-picture-circle + `]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Ha),{width:r,height:r,lineHeight:ae(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${ae(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Ip[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ip.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},wVe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` + ${t}-wrapper${t}-picture-card-wrapper, + ${t}-wrapper${t}-picture-circle-wrapper + `]:Object.assign(Object.assign({},Ks()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ae(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ae(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ae(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + ${n}-eye, + ${n}-download, + ${n}-delete + `]:{zIndex:10,width:r,margin:`0 ${ae(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ae(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ae(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},xVe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},SVe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},mn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},CVe=e=>({actionsColor:e.colorTextDescription}),kVe=sn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:a}=e,o=Kt(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[SVe(o),hVe(o),yVe(o),wVe(o),gVe(o),bVe(o),xVe(o),C1(o)]},CVe);function fy(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function my(e,t){const n=Fe(t),r=n.findIndex(i=>{let{uid:a}=i;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function ZE(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function _Ve(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const $Ve=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},nre=e=>e.indexOf("image/")===0,EVe=e=>{if(e.type&&!e.thumbUrl)return nre(e.type);const t=e.thumbUrl||e.url||"",n=$Ve(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},tu=200;function PVe(e){return new Promise(t=>{if(!e.type||!nre(e.type)){t("");return}const n=document.createElement("canvas");n.width=tu,n.height=tu,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${tu}px; height: ${tu}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=tu,l=tu,u=0,d=0;a>o?(l=o*(tu/a),d=-(l-s)/2):(s=a*(tu/o),u=-(s-l)/2),r.drawImage(i,u,d,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const TVe=c.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:a,listType:o,file:s,items:l,progress:u,iconRender:d,actionIconRender:f,itemRender:m,isImgUrl:p,showPreviewIcon:v,showRemoveIcon:h,showDownloadIcon:g,previewIcon:w,removeIcon:b,downloadIcon:y,extra:x,onPreview:C,onDownload:S,onClose:k}=e;var _,$;const{status:E}=s,[T,M]=c.useState(E);c.useEffect(()=>{E!=="removed"&&M(E)},[E]);const[j,I]=c.useState(!1);c.useEffect(()=>{const J=setTimeout(()=>{I(!0)},300);return()=>{clearTimeout(J)}},[]);const N=d(s);let O=c.createElement("div",{className:`${n}-icon`},N);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(T==="uploading"||!s.thumbUrl&&!s.url){const J=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:T!=="uploading"});O=c.createElement("div",{className:J},N)}else{const J=p!=null&&p(s)?c.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):N,ee=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(s)});O=c.createElement("a",{className:ee,onClick:te=>C(s,te),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},J)}const D=ne(`${n}-list-item`,`${n}-list-item-${T}`),F=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,z=(typeof h=="function"?h(s):h)?f((typeof b=="function"?b(s):b)||c.createElement(sne,null),()=>k(s),n,a.removeFile,!0):null,R=(typeof g=="function"?g(s):g)&&T==="done"?f((typeof y=="function"?y(s):y)||c.createElement(KAe,null),()=>S(s),n,a.downloadFile):null,H=o!=="picture-card"&&o!=="picture-circle"&&c.createElement("span",{key:"download-delete",className:ne(`${n}-list-item-actions`,{picture:o==="picture"})},R,z),V=typeof x=="function"?x(s):x,B=V&&c.createElement("span",{className:`${n}-list-item-extra`},V),W=ne(`${n}-list-item-name`),q=s.url?c.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:s.name},F,{href:s.url,onClick:J=>C(s,J)}),s.name,B):c.createElement("span",{key:"view",className:W,onClick:J=>C(s,J),title:s.name},s.name,B),Q=(typeof v=="function"?v(s):v)&&(s.url||s.thumbUrl)?c.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:J=>C(s,J),title:a.previewFile},typeof w=="function"?w(s):w||c.createElement(Gk,null)):null,G=(o==="picture-card"||o==="picture-circle")&&T!=="uploading"&&c.createElement("span",{className:`${n}-list-item-actions`},Q,T==="done"&&R,z),{getPrefixCls:X}=c.useContext(xt),re=X(),K=c.createElement("div",{className:D},O,q,H,G,j&&c.createElement(ti,{motionName:`${re}-fade`,visible:T==="uploading",motionDeadline:2e3},J=>{let{className:ee}=J;const te="percent"in s?c.createElement(uN,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return c.createElement("div",{className:ne(`${n}-list-item-progress`,ee)},te)})),Y=s.response&&typeof s.response=="string"?s.response:((_=s.error)===null||_===void 0?void 0:_.statusText)||(($=s.error)===null||$===void 0?void 0:$.message)||a.uploadError,Z=T==="error"?c.createElement(sa,{title:Y,getPopupContainer:J=>J.parentNode},K):K;return c.createElement("div",{className:ne(`${n}-list-item-container`,r),style:i,ref:t},m?m(Z,s,l,{download:S.bind(null,s),preview:C.bind(null,s),remove:k.bind(null,s)}):Z)}),OVe=(e,t)=>{const{listType:n="text",previewFile:r=PVe,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:u=EVe,prefixCls:d,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:p=!0,showDownloadIcon:v=!1,removeIcon:h,previewIcon:g,downloadIcon:w,extra:b,progress:y={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:C=!0,itemRender:S,disabled:k}=e,_=kM(),[$,E]=c.useState(!1),T=["picture-card","picture-circle"].includes(n);c.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(B=>{!(B.originFileObj instanceof File||B.originFileObj instanceof Blob)||B.thumbUrl!==void 0||(B.thumbUrl="",r==null||r(B.originFileObj).then(W=>{B.thumbUrl=W||"",_()}))})},[n,f,r]),c.useEffect(()=>{E(!0)},[]);const M=(B,W)=>{if(i)return W==null||W.preventDefault(),i(B)},j=B=>{typeof a=="function"?a(B):B.url&&window.open(B.url)},I=B=>{o==null||o(B)},N=B=>{if(l)return l(B,n);const W=B.status==="uploading";if(n.startsWith("picture")){const q=n==="picture"?c.createElement(Xs,null):s.uploading,Q=u!=null&&u(B)?c.createElement(uLe,null):c.createElement(S9e,null);return W?q:Q}return W?c.createElement(Xs,null):c.createElement(fne,null)},O=(B,W,q,Q,G)=>{const X={type:"text",size:"small",title:Q,onClick:re=>{var K,Y;W(),c.isValidElement(B)&&((Y=(K=B.props).onClick)===null||Y===void 0||Y.call(K,re))},className:`${q}-list-item-action`};return G&&(X.disabled=k),c.isValidElement(B)?c.createElement(dn,Object.assign({},X,{icon:qr(B,Object.assign(Object.assign({},B.props),{onClick:()=>{}}))})):c.createElement(dn,Object.assign({},X),c.createElement("span",null,B))};c.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:j}));const{getPrefixCls:D}=c.useContext(xt),F=D("upload",d),z=D(),R=ne(`${F}-list`,`${F}-list-${n}`),H=c.useMemo(()=>_n(Mp(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),V=Object.assign(Object.assign({},T?{}:H),{motionDeadline:2e3,motionName:`${F}-${T?"animate-inline":"animate"}`,keys:Fe(f.map(B=>({key:B.uid,file:B}))),motionAppear:$});return c.createElement("div",{className:R},c.createElement(rk,Object.assign({},V,{component:!1}),B=>{let{key:W,file:q,className:Q,style:G}=B;return c.createElement(TVe,{key:W,locale:s,prefixCls:F,className:Q,style:G,file:q,items:f,progress:y,listType:n,isImgUrl:u,showPreviewIcon:m,showRemoveIcon:p,showDownloadIcon:v,removeIcon:h,previewIcon:g,downloadIcon:w,extra:b,iconRender:N,actionIconRender:O,itemRender:S,onPreview:M,onDownload:j,onClose:I})}),x&&c.createElement(ti,Object.assign({},V,{visible:C,forceRender:!0}),B=>{let{className:W,style:q}=B;return qr(x,Q=>({className:ne(Q.className,W),style:Object.assign(Object.assign(Object.assign({},q),{pointerEvents:W?"none":void 0}),Q.style)}))}))},IVe=c.forwardRef(OVe);var RVe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(d){try{u(r.next(d))}catch(f){o(f)}}function l(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?a(d.value):i(d.value).then(s,l)}u((r=r.apply(e,[])).next())})};const Jh=`__LIST_IGNORE_${Date.now()}__`,MVe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:m,locale:p,iconRender:v,isImageUrl:h,progress:g,prefixCls:w,className:b,type:y="select",children:x,style:C,itemRender:S,maxCount:k,data:_={},multiple:$=!1,hasControlInside:E=!0,action:T="",accept:M="",supportServerRender:j=!0,rootClassName:I}=e,N=c.useContext(Ur),O=m??N,[D,F]=Ut(r||[],{value:n,postState:ye=>ye??[]}),[z,R]=c.useState("drop"),H=c.useRef(null),V=c.useRef(null);c.useMemo(()=>{const ye=Date.now();(n||[]).forEach((Te,Ie)=>{!Te.uid&&!Object.isFrozen(Te)&&(Te.uid=`__AUTO__${ye}_${Ie}__`)})},[n]);const B=(ye,Te,Ie)=>{let ke=Fe(Te),je=!1;k===1?ke=ke.slice(-1):k&&(je=ke.length>k,ke=ke.slice(0,k)),ki.flushSync(()=>{F(ke)});const He={file:ye,fileList:ke};Ie&&(He.event=Ie),(!je||ye.status==="removed"||ke.some(Be=>Be.uid===ye.uid))&&ki.flushSync(()=>{u==null||u(He)})},W=(ye,Te)=>RVe(void 0,void 0,void 0,function*(){const{beforeUpload:Ie,transformFile:ke}=e;let je=ye;if(Ie){const He=yield Ie(ye,Te);if(He===!1)return!1;if(delete ye[Jh],He===Jh)return Object.defineProperty(ye,Jh,{value:!0,configurable:!0}),!1;typeof He=="object"&&He&&(je=He)}return ke&&(je=yield ke(je)),je}),q=ye=>{const Te=ye.filter(je=>!je.file[Jh]);if(!Te.length)return;const Ie=Te.map(je=>fy(je.file));let ke=Fe(D);Ie.forEach(je=>{ke=my(je,ke)}),Ie.forEach((je,He)=>{let Be=je;if(Te[He].parsedFile)je.status="uploading";else{const{originFileObj:ct}=je;let Ve;try{Ve=new File([ct],ct.name,{type:ct.type})}catch{Ve=new Blob([ct],{type:ct.type}),Ve.name=ct.name,Ve.lastModifiedDate=new Date,Ve.lastModified=new Date().getTime()}Ve.uid=je.uid,Be=Ve}B(Be,ke)})},Q=(ye,Te,Ie)=>{try{typeof ye=="string"&&(ye=JSON.parse(ye))}catch{}if(!ZE(Te,D))return;const ke=fy(Te);ke.status="done",ke.percent=100,ke.response=ye,ke.xhr=Ie;const je=my(ke,D);B(ke,je)},G=(ye,Te)=>{if(!ZE(Te,D))return;const Ie=fy(Te);Ie.status="uploading",Ie.percent=ye.percent;const ke=my(Ie,D);B(Ie,ke,ye)},X=(ye,Te,Ie)=>{if(!ZE(Ie,D))return;const ke=fy(Ie);ke.error=ye,ke.response=Te,ke.status="error";const je=my(ke,D);B(ke,je)},re=ye=>{let Te;Promise.resolve(typeof i=="function"?i(ye):i).then(Ie=>{var ke;if(Ie===!1)return;const je=_Ve(ye,D);je&&(Te=Object.assign(Object.assign({},ye),{status:"removed"}),D==null||D.forEach(He=>{const Be=Te.uid!==void 0?"uid":"name";He[Be]===Te[Be]&&!Object.isFrozen(He)&&(He.status="removed")}),(ke=H.current)===null||ke===void 0||ke.abort(Te),B(Te,je))})},K=ye=>{R(ye.type),ye.type==="drop"&&(d==null||d(ye))};c.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:Q,onProgress:G,onError:X,fileList:D,upload:H.current,nativeElement:V.current}));const{getPrefixCls:Y,direction:Z,upload:J}=c.useContext(xt),ee=Y("upload",w),te=Object.assign(Object.assign({onBatchStart:q,onError:X,onProgress:G,onSuccess:Q},e),{data:_,multiple:$,action:T,accept:M,supportServerRender:j,prefixCls:ee,disabled:O,beforeUpload:W,onChange:void 0,hasControlInside:E});delete te.className,delete te.style,(!x||O)&&delete te.id;const le=`${ee}-wrapper`,[oe,de,pe]=kVe(ee,le),[we]=la("Upload",rs.Upload),{showRemoveIcon:fe,showPreviewIcon:ge,showDownloadIcon:ue,removeIcon:ce,previewIcon:$e,downloadIcon:se,extra:ve}=typeof a=="boolean"?{}:a,he=typeof fe>"u"?!O:fe,_e=(ye,Te)=>a?c.createElement(IVe,{prefixCls:ee,listType:o,items:D,previewFile:f,onPreview:s,onDownload:l,onRemove:re,showRemoveIcon:he,showPreviewIcon:ge,showDownloadIcon:ue,removeIcon:ce,previewIcon:$e,downloadIcon:se,iconRender:v,extra:ve,locale:Object.assign(Object.assign({},we),p),isImageUrl:h,progress:g,appendAction:ye,appendActionVisible:Te,itemRender:S,disabled:O}):ye,Se=ne(le,b,I,de,pe,J==null?void 0:J.className,{[`${ee}-rtl`]:Z==="rtl",[`${ee}-picture-card-wrapper`]:o==="picture-card",[`${ee}-picture-circle-wrapper`]:o==="picture-circle"}),Pe=Object.assign(Object.assign({},J==null?void 0:J.style),C);if(y==="drag"){const ye=ne(de,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:D.some(Te=>Te.status==="uploading"),[`${ee}-drag-hover`]:z==="dragover",[`${ee}-disabled`]:O,[`${ee}-rtl`]:Z==="rtl"});return oe(c.createElement("span",{className:Se,ref:V},c.createElement("div",{className:ye,style:Pe,onDrop:K,onDragOver:K,onDragLeave:K},c.createElement(y6,Object.assign({},te,{ref:H,className:`${ee}-btn`}),c.createElement("div",{className:`${ee}-drag-container`},x))),_e()))}const De=ne(ee,`${ee}-select`,{[`${ee}-disabled`]:O,[`${ee}-hidden`]:!x}),xe=c.createElement("div",{className:De},c.createElement(y6,Object.assign({},te,{ref:H})));return oe(o==="picture-card"||o==="picture-circle"?c.createElement("span",{className:Se,ref:V},_e(xe,!!x)):c.createElement("span",{className:Se,ref:V},xe,_e()))},rre=c.forwardRef(MVe);var NVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{style:n,height:r,hasControlInside:i=!1}=e,a=NVe(e,["style","height","hasControlInside"]);return c.createElement(rre,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),r_=rre;r_.Dragger=DVe;r_.LIST_IGNORE=Jh;const jVe=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,children:i,size:a,style:o={}}=e,s=ne(`${n}-panel`,{[`${n}-panel-hidden`]:a===0},r),l=a!==void 0;return L.createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},o),{flexBasis:l?a:"auto",flexGrow:l?0:1})},i)}),FVe=()=>null;var AVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);iWr(e).filter(c.isValidElement).map(n=>{const{props:r}=n,{collapsible:i}=r,a=AVe(r,["collapsible"]);return Object.assign(Object.assign({},a),{collapsible:LVe(i)})}),[e])}function zVe(e,t){return c.useMemo(()=>{const n=[];for(let r=0;r0||p.start&&s===0&&o>0,g=p.start&&s>0||d.end&&o===0&&s>0;n[r]={resizable:v,startCollapsible:!!h,endCollapsible:!!g}}return n},[t,e])}function Aw(e){return Number(e.slice(0,-1))/100}function e3(e){return typeof e=="string"&&e.endsWith("%")}function HVe(e,t){const n=e.map(v=>v.size),r=e.length,i=t||0,a=v=>v*i,[o,s]=L.useState(()=>e.map(v=>v.defaultSize)),l=L.useMemo(()=>{var v;const h=[];for(let g=0;g{let v=[],h=0;for(let w=0;ww+(b||0),0);if(g>1||!h){const w=1/g;v=v.map(b=>b===void 0?0:b*w)}else{const w=(1-g)/h;v=v.map(b=>b===void 0?w:b)}return v},[l,i]),d=L.useMemo(()=>u.map(a),[u,i]),f=L.useMemo(()=>e.map(v=>e3(v.min)?Aw(v.min):(v.min||0)/i),[e,i]),m=L.useMemo(()=>e.map(v=>e3(v.max)?Aw(v.max):(v.max||i)/i),[e,i]);return[L.useMemo(()=>t?d:l,[d,t]),d,u,f,m,s]}function VVe(e,t,n,r,i){const a=e.map(y=>[y.min,y.max]),o=r||0,s=y=>y*o;function l(y,x){return typeof y=="string"?s(Aw(y)):y??x}const[u,d]=c.useState([]),f=c.useRef([]),[m,p]=c.useState(null),v=()=>n.map(s);return[y=>{d(v()),p({index:y,confirmed:!1})},(y,x)=>{var C;let S=null;if((!m||!m.confirmed)&&x!==0){if(x>0)S=y,p({index:y,confirmed:!0});else for(let N=y;N>=0;N-=1)if(u[N]>0&&t[N].resizable){S=N,p({index:N,confirmed:!0});break}}const k=(C=S??(m==null?void 0:m.index))!==null&&C!==void 0?C:y,_=Fe(u),$=k+1,E=l(a[k][0],0),T=l(a[$][0],0),M=l(a[k][1],o),j=l(a[$][1],o);let I=x;return _[k]+IM&&(I=M-_[k]),_[$]-I>j&&(I=_[$]-j),_[k]+=I,_[$]-=I,i(_),_},()=>{p(null)},(y,x)=>{const C=v(),S=x==="start"?y:y+1,k=x==="start"?y+1:y,_=C[S],$=C[k];if(_!==0&&$!==0)C[S]=0,C[k]+=_,f.current[y]=_;else{const E=_+$,T=l(a[S][0],0),M=l(a[S][1],o),j=l(a[k][0],0),I=l(a[k][1],o),N=Math.max(T,E-I),D=(Math.min(M,E-j)-N)/2,F=f.current[y],z=E-F;F&&F<=I&&F>=j&&z<=M&&z>=T?(C[k]=F,C[S]=z):(C[S]-=D,C[k]+=D)}return i(C),C},m==null?void 0:m.index]}function t3(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const WVe=e=>{const{prefixCls:t,vertical:n,index:r,active:i,ariaNow:a,ariaMin:o,ariaMax:s,resizable:l,startCollapsible:u,endCollapsible:d,onOffsetStart:f,onOffsetUpdate:m,onOffsetEnd:p,onCollapse:v,lazy:h,containerSize:g}=e,w=`${t}-bar`,[b,y]=c.useState(null),[x,C]=c.useState(0),S=n?0:x,k=n?x:0,_=O=>{l&&O.currentTarget&&(y([O.pageX,O.pageY]),f(r))},$=O=>{if(l&&O.touches.length===1){const D=O.touches[0];y([D.pageX,D.pageY]),f(r)}},E=O=>{const D=g*a/100,F=D+O,z=Math.max(0,g*o/100),R=Math.min(g,g*s/100);return Math.max(z,Math.min(R,F))-D},T=Vt((O,D)=>{const F=E(n?D:O);C(F)}),M=Vt(()=>{m(r,S,k),C(0)});L.useEffect(()=>{if(b){const O=R=>{const{pageX:H,pageY:V}=R,B=H-b[0],W=V-b[1];h?T(B,W):m(r,B,W)},D=()=>{h&&M(),y(null),p()},F=R=>{if(R.touches.length===1){const H=R.touches[0],V=H.pageX-b[0],B=H.pageY-b[1];h?T(V,B):m(r,V,B)}},z=()=>{h&&M(),y(null),p()};return window.addEventListener("touchmove",F),window.addEventListener("touchend",z),window.addEventListener("mousemove",O),window.addEventListener("mouseup",D),()=>{window.removeEventListener("mousemove",O),window.removeEventListener("mouseup",D),window.removeEventListener("touchmove",F),window.removeEventListener("touchend",z)}}},[b,h,n,r,g,a,o,s]);const j={[`--${w}-preview-offset`]:`${x}px`},I=n?Wee:Ku,N=n?I1:Js;return L.createElement("div",{className:w,role:"separator","aria-valuenow":t3(a),"aria-valuemin":t3(o),"aria-valuemax":t3(s)},h&&L.createElement("div",{className:ne(`${w}-preview`,{[`${w}-preview-active`]:!!x}),style:j}),L.createElement("div",{className:ne(`${w}-dragger`,{[`${w}-dragger-disabled`]:!l,[`${w}-dragger-active`]:i}),onMouseDown:_,onTouchStart:$}),u&&L.createElement("div",{className:ne(`${w}-collapse-bar`,`${w}-collapse-bar-start`),onClick:()=>v(r,"start")},L.createElement(I,{className:ne(`${w}-collapse-icon`,`${w}-collapse-start`)})),d&&L.createElement("div",{className:ne(`${w}-collapse-bar`,`${w}-collapse-bar-end`),onClick:()=>v(r,"end")},L.createElement(N,{className:ne(`${w}-collapse-icon`,`${w}-collapse-end`)})))},UVe=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},py={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},qVe=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:i,splitTriggerSize:a,controlItemBgHover:o,controlItemBgActive:s,controlItemBgActiveHover:l,prefixCls:u}=e,d=`${t}-bar`,f=`${t}-mask`,m=`${t}-panel`,p=e.calc(a).div(2).equal(),v=`${u}-bar-preview-offset`,h={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:Object.assign(Object.assign(Object.assign({},mn(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${d}`]:{flex:"none",position:"relative",userSelect:"none",[`${d}-dragger`]:Object.assign(Object.assign({},py),{zIndex:1,"&::before":Object.assign({content:'""',background:o},py),"&::after":Object.assign({content:'""',background:n},py),[`&:hover:not(${d}-dragger-active)`]:{"&::before":{background:s}},"&-active":{zIndex:2,"&::before":{background:l}},[`&-disabled${d}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:o}},"&::after":{display:"none"}}}),[`${d}-collapse-bar`]:Object.assign(Object.assign({},py),{zIndex:e.zIndexPopupBase,background:o,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:s},"&:active":{background:l}}),"&:hover, &:active":{[`${d}-collapse-bar`]:{opacity:1}}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${d}`]:{width:0,[`${d}-preview`]:Object.assign(Object.assign({height:"100%",width:i},h),{[`&${d}-preview-active`]:{display:"block",transform:`translateX(var(--${v}))`}}),[`${d}-dragger`]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:i},"&::after":{height:r,width:i}},[`${d}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:p},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:p},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${d}`]:{height:0,[`${d}-preview`]:Object.assign(Object.assign({height:i,width:"100%"},h),{[`&${d}-preview-active`]:{display:"block",transform:`translateY(var(--${v}))`}}),[`${d}-dragger`]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:i},"&::after":{width:r,height:i}},[`${d}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:p,transform:"translateX(-50%)"},"&-end":{top:p,bottom:"auto",transform:"translateX(-50%)"}}}},[m]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),UVe(e))}},GVe=e=>{var t;const n=e.splitBarSize||2,r=e.splitTriggerSize||6,i=e.resizeSpinnerSize||20,a=(t=e.splitBarDraggableSize)!==null&&t!==void 0?t:i;return{splitBarSize:n,splitTriggerSize:r,splitBarDraggableSize:a,resizeSpinnerSize:i}},KVe=sn("Splitter",e=>[qVe(e)],GVe),YVe=e=>{const{prefixCls:t,className:n,style:r,layout:i="horizontal",children:a,rootClassName:o,onResizeStart:s,onResize:l,onResizeEnd:u,lazy:d}=e,{getPrefixCls:f,direction:m,splitter:p}=L.useContext(xt),v=f("splitter",t),h=Ln(v),[g,w,b]=KVe(v,h),y=i==="vertical",x=m==="rtl",C=!y&&x,S=BVe(a),[k,_]=c.useState(),$=K=>{const{offsetWidth:Y,offsetHeight:Z}=K,J=y?Z:Y;J!==0&&_(J)},[E,T,M,j,I,N]=HVe(S,k),O=zVe(S,T),[D,F,z,R,H]=VVe(S,O,M,k,N),V=Vt(K=>{D(K),s==null||s(T)}),B=Vt((K,Y)=>{const Z=F(K,Y);l==null||l(Z)}),W=Vt(()=>{z(),u==null||u(T)}),q=Vt((K,Y)=>{const Z=R(K,Y);l==null||l(Z),u==null||u(Z)}),Q=ne(v,n,`${v}-${i}`,{[`${v}-rtl`]:x},o,p==null?void 0:p.className,b,h,w),G=`${v}-mask`,X=L.useMemo(()=>{const K=[];let Y=0;for(let Z=0;Z{const Z=L.createElement(jVe,Object.assign({},K,{prefixCls:v,size:E[Y]}));let J=null;const ee=O[Y];if(ee){const te=(X[Y-1]||0)+j[Y],le=(X[Y+1]||100)-I[Y+1],oe=(X[Y-1]||0)+I[Y],de=(X[Y+1]||100)-j[Y+1];J=L.createElement(WVe,{lazy:d,index:Y,active:H===Y,prefixCls:v,vertical:y,resizable:ee.resizable,ariaNow:X[Y]*100,ariaMin:Math.max(te,le)*100,ariaMax:Math.min(oe,de)*100,startCollapsible:ee.startCollapsible,endCollapsible:ee.endCollapsible,onOffsetStart:V,onOffsetUpdate:(pe,we,fe)=>{let ge=y?fe:we;C&&(ge=-ge),B(pe,ge)},onOffsetEnd:W,onCollapse:q,containerSize:k||0})}return L.createElement(L.Fragment,{key:`split-panel-${Y}`},Z,J)}),typeof H=="number"&&L.createElement("div",{"aria-hidden":!0,className:ne(G,`${G}-${i}`)}))))},Lw=YVe;Lw.Panel=FVe;let ci;const ire=f1()(m1(w2(p1(e=>({currentMember:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberInfo:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(t){e({currentMember:t})},setMemberInfo(t){e({memberInfo:t})},setMemberResult:t=>{e({memberResult:t})},resetMembers:()=>e({currentMember:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}},memberInfo:{uid:"",nickname:"",avatar:"",description:"",user:{uid:"",avatar:""}}})})),{name:cve}))),are=f1()(m1(w2(p1(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:lve})));async function XVe(e){return or("/api/v1/member/query",{method:"GET",params:{orgUid:e,client:On}})}async function QVe(){return or("/api/v1/user/profile",{method:"GET",params:{client:On}})}function JVe(){const[e,t]=c.useState(!1),[n,r]=c.useState(!1),[i,a]=c.useState(!1),[o,s]=c.useState(!1),l=c.useRef(!1),u=c.useRef(null),d=c.useRef(void 0),{userInfo:f,setUserInfo:m}=s0(b=>({userInfo:b.userInfo,setUserInfo:b.setUserInfo})),{memberInfo:p,setMemberInfo:v}=ire(b=>({memberInfo:b.memberInfo,setMemberInfo:b.setMemberInfo})),h=are(b=>b.currentOrg);c.useEffect(()=>{t(!1),r(!1),a(!1),s(!1),f!=null&&f.currentRoles&&f.currentRoles.forEach(b=>{switch(b.name){case rve:t(!0);break;case ive:r(!0);break;case ave:a(!0);break;case ove:s(!0);break}})},[f==null?void 0:f.currentRoles]);const g=c.useCallback(async()=>{if(!l.current&&h!=null&&h.uid){l.current=!0;try{u.current&&(clearTimeout(u.current),u.current=null),ci.destroy(),ci.loading("正在加载用户信息...");const b=await QVe();console.log("getProfile response",b.data),b.data.code===200?(ci.destroy(),m(b.data.data)):(ci.destroy(),ci.error("加载用户信息失败"))}catch(b){ci.destroy(),ci.error("加载用户信息失败"),console.error("Failed to refresh user info:",b)}finally{u.current=setTimeout(()=>{l.current=!1},500)}}},[h==null?void 0:h.uid,m]),w=c.useCallback(async()=>{if(h!=null&&h.uid)try{const b=await XVe(h==null?void 0:h.uid);console.log("refreshMemberInfo memberResponse:",b.data),b.data.code===200&&v(b.data.data)}catch(b){console.error("Failed to fetch member info:",b)}},[h==null?void 0:h.uid,v]);return c.useEffect(()=>{d.current!==(h==null?void 0:h.uid)&&(d.current=h==null?void 0:h.uid,g(),w())},[h,g]),c.useEffect(()=>()=>{u.current&&clearTimeout(u.current),ci.destroy()},[]),{userInfo:f,setUserInfo:m,memberInfo:p,setMemberInfo:v,refreshUserInfo:g,hasRoleAgent:o,hasRoleSuper:e,hasRoleAdmin:n,hasRoleMember:i}}const vy=e=>{switch(e){case"en":return{locale:"en",antdLocale:OD};case"zh-cn":return{locale:"zh-cn",antdLocale:Qme};case"zh-tw":return{locale:"zh-tw",antdLocale:mpe};case"ja":return{locale:"ja",antdLocale:Ope};case"ko":return{locale:"ko",antdLocale:Gpe};default:return{locale:"en",antdLocale:OD}}},Kc=c.createContext({}),ZVe=({children:e})=>{const[t,n]=c.useState(!1),r=M2(b=>b.accessToken),{userInfo:i,setUserInfo:a,hasRoleAgent:o,hasRoleSuper:s,hasRoleAdmin:l,hasRoleMember:u}=JVe(),d=c.useMemo(()=>!!r&&r.trim().length>0,[r]),{themeMode:f,setThemeMode:m,isDarkMode:p}=ohe(),[v,h]=c.useState(()=>{const b=localStorage.getItem(Db);return vy(b||VP())}),g=b=>{const y=vy(b);h(y),localStorage.setItem(Db,y.locale)};c.useEffect(()=>{if(!localStorage.getItem(Db)){const b=VP();g(b)}},[]);const w=()=>{m(p?"light":"dark")};return P.jsx(Kc.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:d,isDarkMode:p,themeMode:f,setThemeMode:m,toggleDarkMode:w,locale:v,setLocale:b=>{const y=vy(b.locale);h(y),localStorage.setItem(Db,y.locale)},changeLocale:g,userInfo:i,setUserInfo:a,hasRoleAgent:o,hasRoleSuper:s,hasRoleAdmin:l,hasRoleMember:u},children:e})},eWe={"app.logout":"Logout","navBar.lang":"Language","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","app.copyright.produced":"Product of Weiyu","app.preview.down.block":"Download this page to local project","app.welcome.link.fetch-blocks":"Get all blocks","app.welcome.link.block-list":"Based on block development, quickly build standard pages","theme.light":"Light","theme.dark":"Dark","theme.system":"Auto","setting.lang":"Languages","setting.theme":"Theme",slogan:"Conversation as a Service",captcha:"Captcha",title:"Hello!",subtitle:"How can I help you?","tabs.home":"Home","tabs.messages":"Messages","tabs.help":"Help","tabs.news":"News","settings.themeColor":"Theme Color","settings.title":"Title","settings.subtitle":"Subtitle","settings.embedCode":"Embed Code","settings.copyCode":"Copy Code","settings.copied":"Code copied to clipboard!","settings.position":"Position","settings.bottomRight":"Bottom Right","settings.bottomLeft":"Bottom Left","settings.bottomMargin":"Bottom Margin","settings.rightMargin":"Right Margin","settings.leftMargin":"Left Margin","settings.tabsVisibility":"Tabs Visibility","bubble.title":"Need help?","bubble.subtitle":"I am an AI customer service, always at your service.","settings.button":"Button","settings.button.title":"Button Title","settings.button.subtitle":"Button Subtitle","settings.button.icon":"Button Icon","settings.button.url":"Button URL","settings.bubbleMessage":"Bubble Message","settings.showBubble":"Show Bubble Message","settings.bubbleIcon":"Bubble Icon","settings.bubbleTitle":"Bubble Title","settings.bubbleSubtitle":"Bubble Subtitle","settings.navbar":"Navbar","settings.navbar.title":"Navbar Title","settings.navbar.subtitle":"Navbar Subtitle","settings.chatConfig":"Chat Configuration","settings.orgId":"Organization ID","settings.type":"Type","settings.agentId":"Agent ID","settings.support":"Technical Support","settings.showSupport":"Show Technical Support Text","settings.reset":"Reset Configuration","i18n.app.title":"Weiyu","i18n.app.support":"Provide Technical Support","i18n.app.url":"https://www.weiyuai.cn","i18n.loading":"Loading...","i18n.load.nomore":"No more","i18n.faq":"FAQ","i18n.rate":"Rate","i18n.input.placeholder":"Please enter content","i18n.load.more":"Load more","i18n.typing":"The other party is typing...","i18n.guess.faq":"Guess you want to ask","i18n.hot.faq":"Hot questions","i18n.change.faq":"Change","i18n.file.assistant":"File Assistant","i18n.thread.content.image":"Image","i18n.thread.content.file":"File","i18n.system.notification":"System Notification","i18n.top.tip":"Default top tip","i18n.leavemsg.tip":"No customer service online, please leave contact information","i18n.welcome.tip":"Hello, how can I help you?","i18n.reenter.tip":"Continue conversation","i18n.queue.tip":"In queue...","i18n.queue.message.template":"Current queue number: {0}, estimated waiting time: {1} minutes","i18n.under.development":"Under development...","i18n.user.description":"Default user description","i18n.robot.nickname":"Default robot","i18n.robot.description":"Default robot description","i18n.robot.noreply":"No corresponding answer found","i18n.robot.agent.assistant.nickname":"Customer Service Assistant","i18n.llm.prompt":"You are a smart and helpful AI, you can give useful, detailed, and polite answers to human questions","i18n.agent.nickname":"Default customer service","i18n.agent.description":"Default customer service description","i18n.workgroup.nickname":"Default skill group","i18n.workgroup.description":"Default skill group description","i18n.contact":"Ask for contact information","i18n.thanks":"Thanks","i18n.welcome":"Greeting","i18n.bye":"Goodbye","i18n.contact.title":"If convenient, please provide your contact number, I will call you to communicate, which is more intuitive","i18n.contact.content":"If convenient, please provide your contact number, I will call you to communicate, which is more intuitive","i18n.thanks.title":"Thank you for visiting, welcome to come again","i18n.thanks.content":"Thank you for visiting, welcome to come again","i18n.welcome.title":"Hello, how can I help you","i18n.welcome.content":"Hello, how can I help you","i18n.bye.title":"Your satisfaction is always our goal, if you have any questions, please feel free to contact us","i18n.bye.content":"Your satisfaction is always our goal, if you have any questions, please feel free to contact us","i18n.vip.api":"VIP interface, no permission, please contact: weiyuai.cn","i18n.faq.category.demo.1":"FAQ Category Demo1","i18n.faq.category.demo.2":"FAQ Category Demo2","i18n.faq.demo.title.1":"FAQ Text Demo1","i18n.faq.demo.content.1":"FAQ Text Demo1","i18n.faq.demo.title.2":"FAQ Image Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"Quick Button Text Demo1","i18n.quick.button.demo.content.1":"Quick Button Text Demo1","i18n.quick.button.demo.title.2":"Quick Button Link Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to human service","i18n.auto.closed":"Session automatically closed","i18n.agent.closed":"Customer service closed the session","i18n.agent.offline":"Customer service is offline","i18n.auto.close.tip":"The session has ended, thank you for your consultation, have a nice day!","i18n.agent.close.tip":"The session has ended, thank you for your consultation, have a nice day!","chat.menu.copy":"Copy","chat.menu.delete":"Delete","chat.menu.forward":"Forward","chat.menu.reply":"Reply","chat.menu.quote":"Quote","chat.menu.recall":"Recall","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.message.type.unsupported":"This type is not supported","chat.message.send.failed":"Send failed","chat.message.transferring":"Transferring...","chat.faq.title":"FAQ","app.title":"Weiyu","app.new.conversation":"New Conversation","nav.system":"System Entrance","nav.development":"System Development","nav.modules":"Module Development","nav.system.admin":"Admin Backend","nav.system.agent":"Customer Service Client","nav.system.visitor":"Visitor Session","nav.system.workflow":"Workflow","nav.system.notebase":"Knowledge Base","nav.system.kanban":"Kanban","nav.development.javadoc":"Java Documentation","nav.development.apidoc":"API Documentation","nav.development.knife4j":"Knife4j Documentation","nav.development.druid":"Druid","nav.development.docs":"Product Documentation","nav.development.web":"Web","nav.modules.team":"Team","nav.modules.service":"Customer Service","nav.modules.kbase":"Knowledge Base","nav.modules.ai":"Artificial Intelligence","nav.modules.ticket":"Ticket","nav.modules.social":"Social","nav.modules.voc":"Voice of Customer","nav.modules.plugins.kanban":"Kanban Plugin","menu.edit":"Edit","menu.delete":"Delete","sidebar.newConversation":"New Conversation","sidebar.newConversation.tooltip":"New Conversation","chat.recording":"Recording...","chat.placeholder":"Enter message...","language.zh":"Simplified Chinese","language.en":"English","language.zh-TW":"Traditional Chinese"},tWe={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},nWe={...eWe,...tWe},rWe={"app.logout":"登出","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题",slogan:"对话即服务",captcha:"验证码",title:"您好!",subtitle:"请问有什么可以帮您?","tabs.home":"首页","tabs.messages":"消息","tabs.help":"帮助","tabs.news":"新闻","settings.themeColor":"主题颜色","settings.title":"标题","settings.subtitle":"副标题","settings.embedCode":"嵌入代码","settings.copyCode":"复制代码","settings.copied":"代码已复制到剪贴板!","settings.position":"位置","settings.bottomRight":"右下角","settings.bottomLeft":"左下角","settings.bottomMargin":"底部边距","settings.rightMargin":"右侧边距","settings.leftMargin":"左侧边距","settings.tabsVisibility":"标签页显示","bubble.title":"需要帮助吗?","bubble.subtitle":"我是AI客服,随时为您服务。","settings.button":"按钮","settings.button.title":"按钮标题","settings.button.subtitle":"按钮副标题","settings.button.icon":"按钮图标","settings.button.url":"按钮链接","settings.bubbleMessage":"气泡消息","settings.showBubble":"显示气泡消息","settings.bubbleIcon":"气泡图标","settings.bubbleTitle":"气泡标题","settings.bubbleSubtitle":"气泡副标题","settings.navbar":"导航栏","settings.navbar.title":"导航栏标题","settings.navbar.subtitle":"导航栏副标题","settings.chatConfig":"聊天参数","settings.orgId":"组织ID","settings.type":"类型","settings.agentId":"客服ID","settings.support":"技术支持","settings.showSupport":"显示技术支持文本","settings.reset":"重置配置","i18n.app.title":"微语","i18n.app.support":"提供技术支持","i18n.app.url":"https://www.weiyuai.cn","i18n.loading":"加载中...","i18n.load.nomore":"没有更多了","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.load.more":"加载更多","i18n.typing":"对方正在输入...","i18n.guess.faq":"猜你相问","i18n.hot.faq":"热门问题","i18n.change.faq":"换一换","i18n.file.assistant":"文件助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.system.notification":"系统通知","i18n.top.tip":"默认置顶语","i18n.leavemsg.tip":"当前无客服在线,请留下联系方式","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.queue.tip":"排队中...","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"客服助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.description":"默认技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.contact.title":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临,欢迎再来","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好,有什么可以帮您的","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.agent.offline":"客服不在线","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","chat.menu.copy":"复制","chat.menu.delete":"删除","chat.menu.forward":"转发","chat.menu.reply":"回复","chat.menu.quote":"引用","chat.menu.recall":"撤回","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.message.type.unsupported":"暂不支持此类型","chat.message.send.failed":"发送失败","chat.message.transferring":"转接中...","chat.faq.title":"常见问题","app.title":"微语","app.new.conversation":"新会话","nav.system":"系统入口","nav.development":"系统开发","nav.modules":"模块开发","nav.system.admin":"管理后台","nav.system.agent":"客服客户端","nav.system.visitor":"访客会话","nav.system.workflow":"工作流","nav.system.notebase":"知识库","nav.system.kanban":"看板","nav.development.javadoc":"Java文档","nav.development.apidoc":"API文档","nav.development.knife4j":"Knife4j文档","nav.development.druid":"Druid","nav.development.docs":"产品文档","nav.development.web":"Web","nav.modules.team":"团队","nav.modules.service":"客服","nav.modules.kbase":"知识库","nav.modules.ai":"人工智能","nav.modules.ticket":"工单","nav.modules.social":"社交","nav.modules.voc":"客户之声","nav.modules.plugins.kanban":"看板插件","menu.edit":"编辑","menu.delete":"删除","sidebar.newConversation":"新建会话","sidebar.newConversation.tooltip":"新建会话","chat.recording":"录音中...","chat.placeholder":"输入消息...","language.zh":"简体中文","language.en":"English","language.zh-TW":"繁體中文"},iWe={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复/知识库","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},aWe={...rWe,...iWe},oWe={"app.logout":"登出","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题",slogan:"对话即服务",captcha:"验证码","bubble.title":"您好!","bubble.subtitle":"有什麼可以幫您的嗎?","tabs.home":"首頁","tabs.messages":"消息","tabs.help":"幫助","tabs.news":"新聞","settings.themeColor":"主題顏色","settings.title":"標題","settings.subtitle":"副標題","settings.position":"位置","settings.bottomRight":"右下角","settings.bottomLeft":"左下角","settings.bottomMargin":"底部邊距","settings.rightMargin":"右側邊距","settings.leftMargin":"左側邊距","settings.button":"按鈕","settings.button.title":"按鈕標題","settings.button.subtitle":"按鈕副標題","settings.button.icon":"按鈕圖標","settings.button.url":"按鈕連結","settings.bubbleMessage":"氣泡消息","settings.showBubble":"顯示氣泡","settings.bubbleIcon":"氣泡圖標","settings.bubbleTitle":"氣泡標題","settings.bubbleSubtitle":"氣泡副標題","settings.tabsVisibility":"標籤頁顯示","settings.embedCode":"嵌入代碼","settings.copyCode":"複製代碼","settings.navbar":"導航欄","settings.navbar.title":"導航欄標題","settings.navbar.subtitle":"導航欄副標題",title:"在線客服",subtitle:"有什麼可以幫您的嗎?","settings.chatConfig":"聊天参数","settings.orgId":"组织ID","settings.type":"類型","settings.agentId":"客服ID","settings.support":"技術支持","settings.showSupport":"顯示技術支持文本","settings.reset":"重置配置","i18n.app.title":"微語","i18n.app.support":"提供技術支持","i18n.app.url":"https://www.weiyuai.cn","i18n.loading":"加載中...","i18n.load.nomore":"沒有更多了","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.load.more":"加载更多","i18n.typing":"对方正在输入...","i18n.guess.faq":"猜你相问","i18n.hot.faq":"热门问题","i18n.change.faq":"换一换","i18n.file.assistant":"文件助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.system.notification":"系統通知","i18n.top.tip":"默認置顶語","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.queue.tip":"排隊中...","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"客服助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.description":"預設技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.contact.title":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨,歡迎再來","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好,有什麼可以幫您的","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.agent.offline":"客服離線","i18n.auto.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","i18n.agent.close.tip":"会话已结束,感谢您的咨询,祝您生活愉快!","chat.menu.copy":"複製","chat.menu.delete":"刪除","chat.menu.forward":"轉發","chat.menu.reply":"回覆","chat.menu.quote":"引用","chat.menu.recall":"撤回","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.message.type.unsupported":"暫不支持此類型","chat.message.send.failed":"發送失敗","chat.message.transferring":"轉接中...","chat.faq.title":"常見問題","app.title":"微語","app.new.conversation":"新會話","nav.system":"系統入口","nav.development":"系統開發","nav.modules":"模組開發","nav.system.admin":"管理後台","nav.system.agent":"客服客戶端","nav.system.visitor":"訪客會話","nav.system.workflow":"工作流","nav.system.notebase":"知識庫","nav.system.kanban":"看板","nav.development.javadoc":"Java文檔","nav.development.apidoc":"API文檔","nav.development.knife4j":"Knife4j文檔","nav.development.druid":"Druid","nav.development.docs":"產品文檔","nav.development.web":"Web","nav.modules.team":"團隊","nav.modules.service":"客服","nav.modules.kbase":"知識庫","nav.modules.ai":"人工智能","nav.modules.ticket":"工單","nav.modules.social":"社交","nav.modules.voc":"客戶之聲","nav.modules.plugins.kanban":"看板插件","menu.edit":"編輯","menu.delete":"刪除","sidebar.newConversation":"新建會話","sidebar.newConversation.tooltip":"新建會話","chat.recording":"錄音中...","chat.placeholder":"輸入消息...","language.zh":"简体中文","language.en":"English","language.zh-TW":"繁體中文"},sWe={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},lWe={...oWe,...sWe},n3={en:nWe,"zh-cn":aWe,"zh-tw":lWe};/** + * @remix-run/router v1.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uWe(){return Math.random().toString(36).substr(2,8)}function UL(e,t){return{usr:e.state,key:e.key,idx:t}}function k0(e,t,n,r){return n===void 0&&(n=null),Rr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sd(t):t,{state:n,key:t&&t.key||r||uWe()})}function W1(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function sd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dWe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=si.Pop,l=null,u=d();u==null&&(u=0,o.replaceState(Rr({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){s=si.Pop;let g=d(),w=g==null?null:g-u;u=g,l&&l({action:s,location:h.location,delta:w})}function m(g,w){s=si.Push;let b=k0(h.location,g,w);u=d()+1;let y=UL(b,u),x=h.createHref(b);try{o.pushState(y,"",x)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(x)}a&&l&&l({action:s,location:h.location,delta:1})}function p(g,w){s=si.Replace;let b=k0(h.location,g,w);u=d();let y=UL(b,u),x=h.createHref(b);o.replaceState(y,"",x),a&&l&&l({action:s,location:h.location,delta:0})}function v(g){let w=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof g=="string"?g:W1(g);return b=b.replace(/ $/,"%20"),Fn(w,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,w)}let h={get action(){return s},get location(){return e(i,o)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(WL,f),l=g,()=>{i.removeEventListener(WL,f),l=null}},createHref(g){return t(i,g)},createURL:v,encodeLocation(g){let w=v(g);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:p,go(g){return o.go(g)}};return h}var cr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cr||(cr={}));const fWe=new Set(["lazy","caseSensitive","path","id","index","children"]);function mWe(e){return e.index===!0}function xS(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(Fn(i.index!==!0||!i.children,"Cannot specify children on an index route"),Fn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),mWe(i)){let l=Rr({},i,t(i),{id:s});return r[s]=l,l}else{let l=Rr({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=xS(i.children,t,o,r)),l}})}function _d(e,t,n){return n===void 0&&(n="/"),Bw(e,t,n,!1)}function Bw(e,t,n,r){let i=typeof t=="string"?sd(t):t,a=U1(i.pathname||"/",n);if(a==null)return null;let o=ore(e);vWe(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Fn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Hu([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(Fn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ore(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:SWe(u,a.index),routesMeta:d})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of sre(a.path))i(a,o,l)}),t}function sre(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=sre(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function vWe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:CWe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hWe=/^:[\w-]+$/,gWe=3,bWe=2,yWe=1,wWe=10,xWe=-2,qL=e=>e==="*";function SWe(e,t){let n=e.split("/"),r=n.length;return n.some(qL)&&(r+=xWe),t&&(r+=bWe),n.filter(i=>!qL(i)).reduce((i,a)=>i+(hWe.test(a)?gWe:a===""?yWe:wWe),r)}function CWe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function kWe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:m,isOptional:p}=d;if(m==="*"){let h=s[f]||"";o=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}const v=s[f];return p&&!v?u[m]=void 0:u[m]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function _We(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function $We(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function U1(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function EWe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?sd(e):e;return{pathname:n?n.startsWith("/")?n:PWe(n,t):t,search:OWe(r),hash:IWe(i)}}function PWe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function r3(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cre(e,t){let n=lre(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ure(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=sd(e):(i=Rr({},e),Fn(!i.pathname||!i.pathname.includes("?"),r3("?","pathname","search",i)),Fn(!i.pathname||!i.pathname.includes("#"),r3("#","pathname","hash",i)),Fn(!i.search||!i.search.includes("#"),r3("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let l=EWe(i,s),u=o&&o!=="/"&&o.endsWith("/"),d=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Hu=e=>e.join("/").replace(/\/\/+/g,"/"),TWe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OWe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,IWe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class SS{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function i_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const dre=["post","put","patch","delete"],RWe=new Set(dre),MWe=["get",...dre],NWe=new Set(MWe),DWe=new Set([301,302,303,307,308]),jWe=new Set([307,308]),i3={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},FWe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},xh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AWe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),fre="remix-router-transitions";function LWe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Fn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let be=e.detectErrorBoundary;i=Oe=>({hasErrorBoundary:be(Oe)})}else i=AWe;let a={},o=xS(e.routes,i,void 0,a),s,l=e.basename||"/",u=e.dataStrategy||VWe,d=e.patchRoutesOnNavigation,f=Rr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,p=new Set,v=null,h=null,g=null,w=e.hydrationData!=null,b=_d(o,e.history.location,l),y=null;if(b==null&&!d){let be=Oa(404,{pathname:e.history.location.pathname}),{matches:Oe,route:Ce}=i7(o);b=Oe,y={[Ce.id]:be}}b&&!e.hydrationData&&et(b,o,e.history.location.pathname).active&&(b=null);let x;if(b)if(b.some(be=>be.route.lazy))x=!1;else if(!b.some(be=>be.route.loader))x=!0;else if(f.v7_partialHydration){let be=e.hydrationData?e.hydrationData.loaderData:null,Oe=e.hydrationData?e.hydrationData.errors:null;if(Oe){let Ce=b.findIndex(Re=>Oe[Re.route.id]!==void 0);x=b.slice(0,Ce+1).every(Re=>!x6(Re.route,be,Oe))}else x=b.every(Ce=>!x6(Ce.route,be,Oe))}else x=e.hydrationData!=null;else if(x=!1,b=[],f.v7_partialHydration){let be=et(null,o,e.history.location.pathname);be.active&&be.matches&&(b=be.matches)}let C,S={historyAction:e.history.action,location:e.history.location,matches:b,initialized:x,navigation:i3,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},k=si.Pop,_=!1,$,E=!1,T=new Map,M=null,j=!1,I=!1,N=[],O=new Set,D=new Map,F=0,z=-1,R=new Map,H=new Set,V=new Map,B=new Map,W=new Set,q=new Map,Q=new Map,G;function X(){if(m=e.history.listen(be=>{let{action:Oe,location:Ce,delta:Re}=be;if(G){G(),G=void 0;return}zp(Q.size===0||Re!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ke=He({currentLocation:S.location,nextLocation:Ce,historyAction:Oe});if(Ke&&Re!=null){let Xe=new Promise(lt=>{G=lt});e.history.go(Re*-1),je(Ke,{state:"blocked",location:Ce,proceed(){je(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:Ce}),Xe.then(()=>e.history.go(Re))},reset(){let lt=new Map(S.blockers);lt.set(Ke,xh),Y({blockers:lt})}});return}return te(Oe,Ce)}),n){rUe(t,T);let be=()=>iUe(t,T);t.addEventListener("pagehide",be),M=()=>t.removeEventListener("pagehide",be)}return S.initialized||te(si.Pop,S.location,{initialHydration:!0}),C}function re(){m&&m(),M&&M(),p.clear(),$&&$.abort(),S.fetchers.forEach((be,Oe)=>Se(Oe)),S.blockers.forEach((be,Oe)=>ke(Oe))}function K(be){return p.add(be),()=>p.delete(be)}function Y(be,Oe){Oe===void 0&&(Oe={}),S=Rr({},S,be);let Ce=[],Re=[];f.v7_fetcherPersist&&S.fetchers.forEach((Ke,Xe)=>{Ke.state==="idle"&&(W.has(Xe)?Re.push(Xe):Ce.push(Xe))}),[...p].forEach(Ke=>Ke(S,{deletedFetchers:Re,viewTransitionOpts:Oe.viewTransitionOpts,flushSync:Oe.flushSync===!0})),f.v7_fetcherPersist&&(Ce.forEach(Ke=>S.fetchers.delete(Ke)),Re.forEach(Ke=>Se(Ke)))}function Z(be,Oe,Ce){var Re,Ke;let{flushSync:Xe}=Ce===void 0?{}:Ce,lt=S.actionData!=null&&S.navigation.formMethod!=null&&Ts(S.navigation.formMethod)&&S.navigation.state==="loading"&&((Re=be.state)==null?void 0:Re._isRedirect)!==!0,tt;Oe.actionData?Object.keys(Oe.actionData).length>0?tt=Oe.actionData:tt=null:lt?tt=S.actionData:tt=null;let Qe=Oe.loaderData?n7(S.loaderData,Oe.loaderData,Oe.matches||[],Oe.errors):S.loaderData,Ge=S.blockers;Ge.size>0&&(Ge=new Map(Ge),Ge.forEach((yt,zt)=>Ge.set(zt,xh)));let st=_===!0||S.navigation.formMethod!=null&&Ts(S.navigation.formMethod)&&((Ke=be.state)==null?void 0:Ke._isRedirect)!==!0;s&&(o=s,s=void 0),j||k===si.Pop||(k===si.Push?e.history.push(be,be.state):k===si.Replace&&e.history.replace(be,be.state));let pt;if(k===si.Pop){let yt=T.get(S.location.pathname);yt&&yt.has(be.pathname)?pt={currentLocation:S.location,nextLocation:be}:T.has(be.pathname)&&(pt={currentLocation:be,nextLocation:S.location})}else if(E){let yt=T.get(S.location.pathname);yt?yt.add(be.pathname):(yt=new Set([be.pathname]),T.set(S.location.pathname,yt)),pt={currentLocation:S.location,nextLocation:be}}Y(Rr({},Oe,{actionData:tt,loaderData:Qe,historyAction:k,location:be,initialized:!0,navigation:i3,revalidation:"idle",restoreScrollPosition:Ae(be,Oe.matches||S.matches),preventScrollReset:st,blockers:Ge}),{viewTransitionOpts:pt,flushSync:Xe===!0}),k=si.Pop,_=!1,E=!1,j=!1,I=!1,N=[]}async function J(be,Oe){if(typeof be=="number"){e.history.go(be);return}let Ce=w6(S.location,S.matches,l,f.v7_prependBasename,be,f.v7_relativeSplatPath,Oe==null?void 0:Oe.fromRouteId,Oe==null?void 0:Oe.relative),{path:Re,submission:Ke,error:Xe}=KL(f.v7_normalizeFormMethod,!1,Ce,Oe),lt=S.location,tt=k0(S.location,Re,Oe&&Oe.state);tt=Rr({},tt,e.history.encodeLocation(tt));let Qe=Oe&&Oe.replace!=null?Oe.replace:void 0,Ge=si.Push;Qe===!0?Ge=si.Replace:Qe===!1||Ke!=null&&Ts(Ke.formMethod)&&Ke.formAction===S.location.pathname+S.location.search&&(Ge=si.Replace);let st=Oe&&"preventScrollReset"in Oe?Oe.preventScrollReset===!0:void 0,pt=(Oe&&Oe.flushSync)===!0,yt=He({currentLocation:lt,nextLocation:tt,historyAction:Ge});if(yt){je(yt,{state:"blocked",location:tt,proceed(){je(yt,{state:"proceeding",proceed:void 0,reset:void 0,location:tt}),J(be,Oe)},reset(){let zt=new Map(S.blockers);zt.set(yt,xh),Y({blockers:zt})}});return}return await te(Ge,tt,{submission:Ke,pendingError:Xe,preventScrollReset:st,replace:Oe&&Oe.replace,enableViewTransition:Oe&&Oe.viewTransition,flushSync:pt})}function ee(){if(se(),Y({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){te(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}te(k||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:E===!0})}}async function te(be,Oe,Ce){$&&$.abort(),$=null,k=be,j=(Ce&&Ce.startUninterruptedRevalidation)===!0,Ne(S.location,S.matches),_=(Ce&&Ce.preventScrollReset)===!0,E=(Ce&&Ce.enableViewTransition)===!0;let Re=s||o,Ke=Ce&&Ce.overrideNavigation,Xe=_d(Re,Oe,l),lt=(Ce&&Ce.flushSync)===!0,tt=et(Xe,Re,Oe.pathname);if(tt.active&&tt.matches&&(Xe=tt.matches),!Xe){let{error:$t,notFoundMatches:ze,route:me}=Be(Oe.pathname);Z(Oe,{matches:ze,loaderData:{},errors:{[me.id]:$t}},{flushSync:lt});return}if(S.initialized&&!I&&YWe(S.location,Oe)&&!(Ce&&Ce.submission&&Ts(Ce.submission.formMethod))){Z(Oe,{matches:Xe},{flushSync:lt});return}$=new AbortController;let Qe=hm(e.history,Oe,$.signal,Ce&&Ce.submission),Ge;if(Ce&&Ce.pendingError)Ge=[$d(Xe).route.id,{type:cr.error,error:Ce.pendingError}];else if(Ce&&Ce.submission&&Ts(Ce.submission.formMethod)){let $t=await le(Qe,Oe,Ce.submission,Xe,tt.active,{replace:Ce.replace,flushSync:lt});if($t.shortCircuited)return;if($t.pendingActionResult){let[ze,me]=$t.pendingActionResult;if(so(me)&&i_(me.error)&&me.error.status===404){$=null,Z(Oe,{matches:$t.matches,loaderData:{},errors:{[ze]:me.error}});return}}Xe=$t.matches||Xe,Ge=$t.pendingActionResult,Ke=a3(Oe,Ce.submission),lt=!1,tt.active=!1,Qe=hm(e.history,Qe.url,Qe.signal)}let{shortCircuited:st,matches:pt,loaderData:yt,errors:zt}=await oe(Qe,Oe,Xe,tt.active,Ke,Ce&&Ce.submission,Ce&&Ce.fetcherSubmission,Ce&&Ce.replace,Ce&&Ce.initialHydration===!0,lt,Ge);st||($=null,Z(Oe,Rr({matches:pt||Xe},r7(Ge),{loaderData:yt,errors:zt})))}async function le(be,Oe,Ce,Re,Ke,Xe){Xe===void 0&&(Xe={}),se();let lt=tUe(Oe,Ce);if(Y({navigation:lt},{flushSync:Xe.flushSync===!0}),Ke){let Ge=await nt(Re,Oe.pathname,be.signal);if(Ge.type==="aborted")return{shortCircuited:!0};if(Ge.type==="error"){let st=$d(Ge.partialMatches).route.id;return{matches:Ge.partialMatches,pendingActionResult:[st,{type:cr.error,error:Ge.error}]}}else if(Ge.matches)Re=Ge.matches;else{let{notFoundMatches:st,error:pt,route:yt}=Be(Oe.pathname);return{matches:st,pendingActionResult:[yt.id,{type:cr.error,error:pt}]}}}let tt,Qe=Zh(Re,Oe);if(!Qe.route.action&&!Qe.route.lazy)tt={type:cr.error,error:Oa(405,{method:be.method,pathname:Oe.pathname,routeId:Qe.route.id})};else if(tt=(await ce("action",S,be,[Qe],Re,null))[Qe.route.id],be.signal.aborted)return{shortCircuited:!0};if(zd(tt)){let Ge;return Xe&&Xe.replace!=null?Ge=Xe.replace:Ge=ZL(tt.response.headers.get("Location"),new URL(be.url),l)===S.location.pathname+S.location.search,await ue(be,tt,!0,{submission:Ce,replace:Ge}),{shortCircuited:!0}}if(_u(tt))throw Oa(400,{type:"defer-action"});if(so(tt)){let Ge=$d(Re,Qe.route.id);return(Xe&&Xe.replace)!==!0&&(k=si.Push),{matches:Re,pendingActionResult:[Ge.route.id,tt]}}return{matches:Re,pendingActionResult:[Qe.route.id,tt]}}async function oe(be,Oe,Ce,Re,Ke,Xe,lt,tt,Qe,Ge,st){let pt=Ke||a3(Oe,Xe),yt=Xe||lt||o7(pt),zt=!j&&(!f.v7_partialHydration||!Qe);if(Re){if(zt){let at=de(st);Y(Rr({navigation:pt},at!==void 0?{actionData:at}:{}),{flushSync:Ge})}let Ct=await nt(Ce,Oe.pathname,be.signal);if(Ct.type==="aborted")return{shortCircuited:!0};if(Ct.type==="error"){let at=$d(Ct.partialMatches).route.id;return{matches:Ct.partialMatches,loaderData:{},errors:{[at]:Ct.error}}}else if(Ct.matches)Ce=Ct.matches;else{let{error:at,notFoundMatches:kt,route:At}=Be(Oe.pathname);return{matches:kt,loaderData:{},errors:{[At.id]:at}}}}let $t=s||o,[ze,me]=XL(e.history,S,Ce,yt,Oe,f.v7_partialHydration&&Qe===!0,f.v7_skipActionErrorRevalidation,I,N,O,W,V,H,$t,l,st);if(ct(Ct=>!(Ce&&Ce.some(at=>at.route.id===Ct))||ze&&ze.some(at=>at.route.id===Ct)),z=++F,ze.length===0&&me.length===0){let Ct=ye();return Z(Oe,Rr({matches:Ce,loaderData:{},errors:st&&so(st[1])?{[st[0]]:st[1].error}:null},r7(st),Ct?{fetchers:new Map(S.fetchers)}:{}),{flushSync:Ge}),{shortCircuited:!0}}if(zt){let Ct={};if(!Re){Ct.navigation=pt;let at=de(st);at!==void 0&&(Ct.actionData=at)}me.length>0&&(Ct.fetchers=pe(me)),Y(Ct,{flushSync:Ge})}me.forEach(Ct=>{De(Ct.key),Ct.controller&&D.set(Ct.key,Ct.controller)});let Me=()=>me.forEach(Ct=>De(Ct.key));$&&$.signal.addEventListener("abort",Me);let{loaderResults:We,fetcherResults:wt}=await $e(S,Ce,ze,me,be);if(be.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Me),me.forEach(Ct=>D.delete(Ct.key));let Ze=hy(We);if(Ze)return await ue(be,Ze.result,!0,{replace:tt}),{shortCircuited:!0};if(Ze=hy(wt),Ze)return H.add(Ze.key),await ue(be,Ze.result,!0,{replace:tt}),{shortCircuited:!0};let{loaderData:Le,errors:ot}=t7(S,Ce,We,st,me,wt,q);q.forEach((Ct,at)=>{Ct.subscribe(kt=>{(kt||Ct.done)&&q.delete(at)})}),f.v7_partialHydration&&Qe&&S.errors&&(ot=Rr({},S.errors,ot));let ht=ye(),Et=Te(z),Rt=ht||Et||me.length>0;return Rr({matches:Ce,loaderData:Le,errors:ot},Rt?{fetchers:new Map(S.fetchers)}:{})}function de(be){if(be&&!so(be[1]))return{[be[0]]:be[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function pe(be){return be.forEach(Oe=>{let Ce=S.fetchers.get(Oe.key),Re=Sh(void 0,Ce?Ce.data:void 0);S.fetchers.set(Oe.key,Re)}),new Map(S.fetchers)}function we(be,Oe,Ce,Re){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");De(be);let Ke=(Re&&Re.flushSync)===!0,Xe=s||o,lt=w6(S.location,S.matches,l,f.v7_prependBasename,Ce,f.v7_relativeSplatPath,Oe,Re==null?void 0:Re.relative),tt=_d(Xe,lt,l),Qe=et(tt,Xe,lt);if(Qe.active&&Qe.matches&&(tt=Qe.matches),!tt){he(be,Oe,Oa(404,{pathname:lt}),{flushSync:Ke});return}let{path:Ge,submission:st,error:pt}=KL(f.v7_normalizeFormMethod,!0,lt,Re);if(pt){he(be,Oe,pt,{flushSync:Ke});return}let yt=Zh(tt,Ge),zt=(Re&&Re.preventScrollReset)===!0;if(st&&Ts(st.formMethod)){fe(be,Oe,Ge,yt,tt,Qe.active,Ke,zt,st);return}V.set(be,{routeId:Oe,path:Ge}),ge(be,Oe,Ge,yt,tt,Qe.active,Ke,zt,st)}async function fe(be,Oe,Ce,Re,Ke,Xe,lt,tt,Qe){se(),V.delete(be);function Ge(Dt){if(!Dt.route.action&&!Dt.route.lazy){let en=Oa(405,{method:Qe.formMethod,pathname:Ce,routeId:Oe});return he(be,Oe,en,{flushSync:lt}),!0}return!1}if(!Xe&&Ge(Re))return;let st=S.fetchers.get(be);ve(be,nUe(Qe,st),{flushSync:lt});let pt=new AbortController,yt=hm(e.history,Ce,pt.signal,Qe);if(Xe){let Dt=await nt(Ke,Ce,yt.signal);if(Dt.type==="aborted")return;if(Dt.type==="error"){he(be,Oe,Dt.error,{flushSync:lt});return}else if(Dt.matches){if(Ke=Dt.matches,Re=Zh(Ke,Ce),Ge(Re))return}else{he(be,Oe,Oa(404,{pathname:Ce}),{flushSync:lt});return}}D.set(be,pt);let zt=F,ze=(await ce("action",S,yt,[Re],Ke,be))[Re.route.id];if(yt.signal.aborted){D.get(be)===pt&&D.delete(be);return}if(f.v7_fetcherPersist&&W.has(be)){if(zd(ze)||so(ze)){ve(be,lu(void 0));return}}else{if(zd(ze))if(D.delete(be),z>zt){ve(be,lu(void 0));return}else return H.add(be),ve(be,Sh(Qe)),ue(yt,ze,!1,{fetcherSubmission:Qe,preventScrollReset:tt});if(so(ze)){he(be,Oe,ze.error);return}}if(_u(ze))throw Oa(400,{type:"defer-action"});let me=S.navigation.location||S.location,Me=hm(e.history,me,pt.signal),We=s||o,wt=S.navigation.state!=="idle"?_d(We,S.navigation.location,l):S.matches;Fn(wt,"Didn't find any matches after fetcher action");let Ze=++F;R.set(be,Ze);let Le=Sh(Qe,ze.data);S.fetchers.set(be,Le);let[ot,ht]=XL(e.history,S,wt,Qe,me,!1,f.v7_skipActionErrorRevalidation,I,N,O,W,V,H,We,l,[Re.route.id,ze]);ht.filter(Dt=>Dt.key!==be).forEach(Dt=>{let en=Dt.key,vn=S.fetchers.get(en),bn=Sh(void 0,vn?vn.data:void 0);S.fetchers.set(en,bn),De(en),Dt.controller&&D.set(en,Dt.controller)}),Y({fetchers:new Map(S.fetchers)});let Et=()=>ht.forEach(Dt=>De(Dt.key));pt.signal.addEventListener("abort",Et);let{loaderResults:Rt,fetcherResults:Ct}=await $e(S,wt,ot,ht,Me);if(pt.signal.aborted)return;pt.signal.removeEventListener("abort",Et),R.delete(be),D.delete(be),ht.forEach(Dt=>D.delete(Dt.key));let at=hy(Rt);if(at)return ue(Me,at.result,!1,{preventScrollReset:tt});if(at=hy(Ct),at)return H.add(at.key),ue(Me,at.result,!1,{preventScrollReset:tt});let{loaderData:kt,errors:At}=t7(S,wt,Rt,void 0,ht,Ct,q);if(S.fetchers.has(be)){let Dt=lu(ze.data);S.fetchers.set(be,Dt)}Te(Ze),S.navigation.state==="loading"&&Ze>z?(Fn(k,"Expected pending action"),$&&$.abort(),Z(S.navigation.location,{matches:wt,loaderData:kt,errors:At,fetchers:new Map(S.fetchers)})):(Y({errors:At,loaderData:n7(S.loaderData,kt,wt,At),fetchers:new Map(S.fetchers)}),I=!1)}async function ge(be,Oe,Ce,Re,Ke,Xe,lt,tt,Qe){let Ge=S.fetchers.get(be);ve(be,Sh(Qe,Ge?Ge.data:void 0),{flushSync:lt});let st=new AbortController,pt=hm(e.history,Ce,st.signal);if(Xe){let ze=await nt(Ke,Ce,pt.signal);if(ze.type==="aborted")return;if(ze.type==="error"){he(be,Oe,ze.error,{flushSync:lt});return}else if(ze.matches)Ke=ze.matches,Re=Zh(Ke,Ce);else{he(be,Oe,Oa(404,{pathname:Ce}),{flushSync:lt});return}}D.set(be,st);let yt=F,$t=(await ce("loader",S,pt,[Re],Ke,be))[Re.route.id];if(_u($t)&&($t=await EN($t,pt.signal,!0)||$t),D.get(be)===st&&D.delete(be),!pt.signal.aborted){if(W.has(be)){ve(be,lu(void 0));return}if(zd($t))if(z>yt){ve(be,lu(void 0));return}else{H.add(be),await ue(pt,$t,!1,{preventScrollReset:tt});return}if(so($t)){he(be,Oe,$t.error);return}Fn(!_u($t),"Unhandled fetcher deferred data"),ve(be,lu($t.data))}}async function ue(be,Oe,Ce,Re){let{submission:Ke,fetcherSubmission:Xe,preventScrollReset:lt,replace:tt}=Re===void 0?{}:Re;Oe.response.headers.has("X-Remix-Revalidate")&&(I=!0);let Qe=Oe.response.headers.get("Location");Fn(Qe,"Expected a Location header on the redirect Response"),Qe=ZL(Qe,new URL(be.url),l);let Ge=k0(S.location,Qe,{_isRedirect:!0});if(n){let ze=!1;if(Oe.response.headers.has("X-Remix-Reload-Document"))ze=!0;else if($N.test(Qe)){const me=e.history.createURL(Qe);ze=me.origin!==t.location.origin||U1(me.pathname,l)==null}if(ze){tt?t.location.replace(Qe):t.location.assign(Qe);return}}$=null;let st=tt===!0||Oe.response.headers.has("X-Remix-Replace")?si.Replace:si.Push,{formMethod:pt,formAction:yt,formEncType:zt}=S.navigation;!Ke&&!Xe&&pt&&yt&&zt&&(Ke=o7(S.navigation));let $t=Ke||Xe;if(jWe.has(Oe.response.status)&&$t&&Ts($t.formMethod))await te(st,Ge,{submission:Rr({},$t,{formAction:Qe}),preventScrollReset:lt||_,enableViewTransition:Ce?E:void 0});else{let ze=a3(Ge,Ke);await te(st,Ge,{overrideNavigation:ze,fetcherSubmission:Xe,preventScrollReset:lt||_,enableViewTransition:Ce?E:void 0})}}async function ce(be,Oe,Ce,Re,Ke,Xe){let lt,tt={};try{lt=await WWe(u,be,Oe,Ce,Re,Ke,Xe,a,i)}catch(Qe){return Re.forEach(Ge=>{tt[Ge.route.id]={type:cr.error,error:Qe}}),tt}for(let[Qe,Ge]of Object.entries(lt))if(XWe(Ge)){let st=Ge.result;tt[Qe]={type:cr.redirect,response:GWe(st,Ce,Qe,Ke,l,f.v7_relativeSplatPath)}}else tt[Qe]=await qWe(Ge);return tt}async function $e(be,Oe,Ce,Re,Ke){let Xe=be.matches,lt=ce("loader",be,Ke,Ce,Oe,null),tt=Promise.all(Re.map(async st=>{if(st.matches&&st.match&&st.controller){let yt=(await ce("loader",be,hm(e.history,st.path,st.controller.signal),[st.match],st.matches,st.key))[st.match.route.id];return{[st.key]:yt}}else return Promise.resolve({[st.key]:{type:cr.error,error:Oa(404,{pathname:st.path})}})})),Qe=await lt,Ge=(await tt).reduce((st,pt)=>Object.assign(st,pt),{});return await Promise.all([ZWe(Oe,Qe,Ke.signal,Xe,be.loaderData),eUe(Oe,Ge,Re)]),{loaderResults:Qe,fetcherResults:Ge}}function se(){I=!0,N.push(...ct()),V.forEach((be,Oe)=>{D.has(Oe)&&O.add(Oe),De(Oe)})}function ve(be,Oe,Ce){Ce===void 0&&(Ce={}),S.fetchers.set(be,Oe),Y({fetchers:new Map(S.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function he(be,Oe,Ce,Re){Re===void 0&&(Re={});let Ke=$d(S.matches,Oe);Se(be),Y({errors:{[Ke.route.id]:Ce},fetchers:new Map(S.fetchers)},{flushSync:(Re&&Re.flushSync)===!0})}function _e(be){return f.v7_fetcherPersist&&(B.set(be,(B.get(be)||0)+1),W.has(be)&&W.delete(be)),S.fetchers.get(be)||FWe}function Se(be){let Oe=S.fetchers.get(be);D.has(be)&&!(Oe&&Oe.state==="loading"&&R.has(be))&&De(be),V.delete(be),R.delete(be),H.delete(be),W.delete(be),O.delete(be),S.fetchers.delete(be)}function Pe(be){if(f.v7_fetcherPersist){let Oe=(B.get(be)||0)-1;Oe<=0?(B.delete(be),W.add(be)):B.set(be,Oe)}else Se(be);Y({fetchers:new Map(S.fetchers)})}function De(be){let Oe=D.get(be);Oe&&(Oe.abort(),D.delete(be))}function xe(be){for(let Oe of be){let Ce=_e(Oe),Re=lu(Ce.data);S.fetchers.set(Oe,Re)}}function ye(){let be=[],Oe=!1;for(let Ce of H){let Re=S.fetchers.get(Ce);Fn(Re,"Expected fetcher: "+Ce),Re.state==="loading"&&(H.delete(Ce),be.push(Ce),Oe=!0)}return xe(be),Oe}function Te(be){let Oe=[];for(let[Ce,Re]of R)if(Re0}function Ie(be,Oe){let Ce=S.blockers.get(be)||xh;return Q.get(be)!==Oe&&Q.set(be,Oe),Ce}function ke(be){S.blockers.delete(be),Q.delete(be)}function je(be,Oe){let Ce=S.blockers.get(be)||xh;Fn(Ce.state==="unblocked"&&Oe.state==="blocked"||Ce.state==="blocked"&&Oe.state==="blocked"||Ce.state==="blocked"&&Oe.state==="proceeding"||Ce.state==="blocked"&&Oe.state==="unblocked"||Ce.state==="proceeding"&&Oe.state==="unblocked","Invalid blocker state transition: "+Ce.state+" -> "+Oe.state);let Re=new Map(S.blockers);Re.set(be,Oe),Y({blockers:Re})}function He(be){let{currentLocation:Oe,nextLocation:Ce,historyAction:Re}=be;if(Q.size===0)return;Q.size>1&&zp(!1,"A router only supports one blocker at a time");let Ke=Array.from(Q.entries()),[Xe,lt]=Ke[Ke.length-1],tt=S.blockers.get(Xe);if(!(tt&&tt.state==="proceeding")&<({currentLocation:Oe,nextLocation:Ce,historyAction:Re}))return Xe}function Be(be){let Oe=Oa(404,{pathname:be}),Ce=s||o,{matches:Re,route:Ke}=i7(Ce);return ct(),{notFoundMatches:Re,route:Ke,error:Oe}}function ct(be){let Oe=[];return q.forEach((Ce,Re)=>{(!be||be(Re))&&(Ce.cancel(),Oe.push(Re),q.delete(Re))}),Oe}function Ve(be,Oe,Ce){if(v=be,g=Oe,h=Ce||null,!w&&S.navigation===i3){w=!0;let Re=Ae(S.location,S.matches);Re!=null&&Y({restoreScrollPosition:Re})}return()=>{v=null,g=null,h=null}}function Ye(be,Oe){return h&&h(be,Oe.map(Re=>pWe(Re,S.loaderData)))||be.key}function Ne(be,Oe){if(v&&g){let Ce=Ye(be,Oe);v[Ce]=g()}}function Ae(be,Oe){if(v){let Ce=Ye(be,Oe),Re=v[Ce];if(typeof Re=="number")return Re}return null}function et(be,Oe,Ce){if(d)if(be){if(Object.keys(be[0].params).length>0)return{active:!0,matches:Bw(Oe,Ce,l,!0)}}else return{active:!0,matches:Bw(Oe,Ce,l,!0)||[]};return{active:!1,matches:null}}async function nt(be,Oe,Ce){if(!d)return{type:"success",matches:be};let Re=be;for(;;){let Ke=s==null,Xe=s||o,lt=a;try{await d({path:Oe,matches:Re,patch:(Ge,st)=>{Ce.aborted||JL(Ge,st,Xe,lt,i)}})}catch(Ge){return{type:"error",error:Ge,partialMatches:Re}}finally{Ke&&!Ce.aborted&&(o=[...o])}if(Ce.aborted)return{type:"aborted"};let tt=_d(Xe,Oe,l);if(tt)return{type:"success",matches:tt};let Qe=Bw(Xe,Oe,l,!0);if(!Qe||Re.length===Qe.length&&Re.every((Ge,st)=>Ge.route.id===Qe[st].route.id))return{type:"success",matches:null};Re=Qe}}function rt(be){a={},s=xS(be,i,void 0,a)}function it(be,Oe){let Ce=s==null;JL(be,Oe,s||o,a,i),Ce&&(o=[...o],Y({}))}return C={get basename(){return l},get future(){return f},get state(){return S},get routes(){return o},get window(){return t},initialize:X,subscribe:K,enableScrollRestoration:Ve,navigate:J,fetch:we,revalidate:ee,createHref:be=>e.history.createHref(be),encodeLocation:be=>e.history.encodeLocation(be),getFetcher:_e,deleteFetcher:Pe,dispose:re,getBlocker:Ie,deleteBlocker:ke,patchRoutes:it,_internalFetchControllers:D,_internalActiveDeferreds:q,_internalSetRoutes:rt},C}function BWe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function w6(e,t,n,r,i,a,o,s){let l,u;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){u=f;break}}else l=t,u=t[t.length-1];let d=ure(i||".",cre(l,a),U1(e.pathname,n)||e.pathname,s==="path");if(i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u){let f=PN(d.search);if(u.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let m=new URLSearchParams(d.search),p=m.getAll("index");m.delete("index"),p.filter(h=>h).forEach(h=>m.append("index",h));let v=m.toString();d.search=v?"?"+v:""}}return r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:Hu([n,d.pathname])),W1(d)}function KL(e,t,n,r){if(!r||!BWe(r))return{path:n};if(r.formMethod&&!JWe(r.formMethod))return{path:n,error:Oa(405,{method:r.formMethod})};let i=()=>({path:n,error:Oa(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=vre(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ts(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,v)=>{let[h,g]=v;return""+p+h+"="+g+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ts(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}Fn(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=S6(r.formData),u=r.formData;else if(r.body instanceof FormData)l=S6(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=e7(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=e7(l)}catch{return i()}let d={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ts(d.formMethod))return{path:n,submission:d};let f=sd(n);return t&&f.search&&PN(f.search)&&l.append("index",""),f.search="?"+l,{path:W1(f),submission:d}}function YL(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function XL(e,t,n,r,i,a,o,s,l,u,d,f,m,p,v,h){let g=h?so(h[1])?h[1].error:h[1].data:void 0,w=e.createURL(t.location),b=e.createURL(i),y=n;a&&t.errors?y=YL(n,Object.keys(t.errors)[0],!0):h&&so(h[1])&&(y=YL(n,h[0]));let x=h?h[1].statusCode:void 0,C=o&&x&&x>=400,S=y.filter((_,$)=>{let{route:E}=_;if(E.lazy)return!0;if(E.loader==null)return!1;if(a)return x6(E,t.loaderData,t.errors);if(zWe(t.loaderData,t.matches[$],_)||l.some(j=>j===_.route.id))return!0;let T=t.matches[$],M=_;return QL(_,Rr({currentUrl:w,currentParams:T.params,nextUrl:b,nextParams:M.params},r,{actionResult:g,actionStatus:x,defaultShouldRevalidate:C?!1:s||w.pathname+w.search===b.pathname+b.search||w.search!==b.search||mre(T,M)}))}),k=[];return f.forEach((_,$)=>{if(a||!n.some(I=>I.route.id===_.routeId)||d.has($))return;let E=_d(p,_.path,v);if(!E){k.push({key:$,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get($),M=Zh(E,_.path),j=!1;m.has($)?j=!1:u.has($)?(u.delete($),j=!0):T&&T.state!=="idle"&&T.data===void 0?j=s:j=QL(M,Rr({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:g,actionStatus:x,defaultShouldRevalidate:C?!1:s})),j&&k.push({key:$,routeId:_.routeId,path:_.path,matches:E,match:M,controller:new AbortController})}),[S,k]}function x6(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function zWe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function mre(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function QL(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function JL(e,t,n,r,i){var a;let o;if(e){let u=r[e];Fn(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),o=u.children}else o=n;let s=t.filter(u=>!o.some(d=>pre(u,d))),l=xS(s,i,[e||"_","patch",String(((a=o)==null?void 0:a.length)||"0")],r);o.push(...l)}function pre(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(a=>pre(n,a))}):!1}async function HWe(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Fn(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";zp(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!fWe.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Rr({},t(i),{lazy:void 0}))}async function VWe(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,a,o)=>Object.assign(i,{[n[o].route.id]:a}),{})}async function WWe(e,t,n,r,i,a,o,s,l,u){let d=a.map(p=>p.route.lazy?HWe(p.route,l,s):void 0),f=a.map((p,v)=>{let h=d[v],g=i.some(b=>b.route.id===p.route.id);return Rr({},p,{shouldLoad:g,resolve:async b=>(b&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(g=!0),g?UWe(t,r,p,h,b,u):Promise.resolve({type:cr.data,result:void 0}))})}),m=await e({matches:f,request:r,params:a[0].params,fetcherKey:o,context:u});try{await Promise.all(d)}catch{}return m}async function UWe(e,t,n,r,i,a){let o,s,l=u=>{let d,f=new Promise((v,h)=>d=h);s=()=>d(),t.signal.addEventListener("abort",s);let m=v=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:a},...v!==void 0?[v]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(h=>m(h)):m())}}catch(v){return{type:"error",result:v}}})();return Promise.race([p,f])};try{let u=n.route[e];if(r)if(u){let d,[f]=await Promise.all([l(u).catch(m=>{d=m}),r]);if(d!==void 0)throw d;o=f}else if(await r,u=n.route[e],u)o=await l(u);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw Oa(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:cr.data,result:void 0};else if(u)o=await l(u);else{let d=new URL(t.url),f=d.pathname+d.search;throw Oa(404,{pathname:f})}Fn(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:cr.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return o}async function qWe(e){let{result:t,type:n}=e;if(hre(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:cr.error,error:d}}return n===cr.error?{type:cr.error,error:new SS(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:cr.data,data:u,statusCode:t.status,headers:t.headers}}if(n===cr.error){if(a7(t)){var r;if(t.data instanceof Error){var i;return{type:cr.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new SS(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:cr.error,error:t,statusCode:i_(t)?t.status:void 0}}if(QWe(t)){var a,o;return{type:cr.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(a7(t)){var s,l;return{type:cr.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:cr.data,data:t}}function GWe(e,t,n,r,i,a){let o=e.headers.get("Location");if(Fn(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!$N.test(o)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);o=w6(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function ZL(e,t,n){if($N.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=U1(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function hm(e,t,n,r){let i=e.createURL(vre(t)).toString(),a={signal:n};if(r&&Ts(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=S6(r.formData):a.body=r.formData}return new Request(i,a)}function S6(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function e7(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function KWe(e,t,n,r,i){let a={},o=null,s,l=!1,u={},d=n&&so(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let m=f.route.id,p=t[m];if(Fn(!zd(p),"Cannot handle redirect results in processLoaderData"),so(p)){let v=p.error;d!==void 0&&(v=d,d=void 0),o=o||{};{let h=$d(e,m);o[h.route.id]==null&&(o[h.route.id]=v)}a[m]=void 0,l||(l=!0,s=i_(p.error)?p.error.status:500),p.headers&&(u[m]=p.headers)}else _u(p)?(r.set(m,p.deferredData),a[m]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(u[m]=p.headers)):(a[m]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(u[m]=p.headers))}),d!==void 0&&n&&(o={[n[0]]:d},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function t7(e,t,n,r,i,a,o){let{loaderData:s,errors:l}=KWe(t,n,r,o);return i.forEach(u=>{let{key:d,match:f,controller:m}=u,p=a[d];if(Fn(p,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(so(p)){let v=$d(e.matches,f==null?void 0:f.route.id);l&&l[v.route.id]||(l=Rr({},l,{[v.route.id]:p.error})),e.fetchers.delete(d)}else if(zd(p))Fn(!1,"Unhandled fetcher revalidation redirect");else if(_u(p))Fn(!1,"Unhandled fetcher deferred data");else{let v=lu(p.data);e.fetchers.set(d,v)}}),{loaderData:s,errors:l}}function n7(e,t,n,r){let i=Rr({},t);for(let a of n){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function r7(e){return e?so(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function $d(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function i7(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Oa(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new SS(e||500,s,new Error(l),!0)}function hy(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(zd(i))return{key:r,result:i}}}function vre(e){let t=typeof e=="string"?sd(e):e;return W1(Rr({},t,{hash:""}))}function YWe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function XWe(e){return hre(e.result)&&DWe.has(e.result.status)}function _u(e){return e.type===cr.deferred}function so(e){return e.type===cr.error}function zd(e){return(e&&e.type)===cr.redirect}function a7(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function QWe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function hre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function JWe(e){return NWe.has(e.toLowerCase())}function Ts(e){return RWe.has(e.toLowerCase())}async function ZWe(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o(m==null?void 0:m.route.id)===s);if(!u)continue;let d=r.find(m=>m.route.id===u.route.id),f=d!=null&&!mre(d,u)&&(i&&i[u.route.id])!==void 0;_u(l)&&f&&await EN(l,n,!1).then(m=>{m&&(t[s]=m)})}}async function eUe(e,t,n){for(let r=0;r(u==null?void 0:u.route.id)===a)&&_u(s)&&(Fn(o,"Expected an AbortController for revalidating fetcher deferred result"),await EN(s,o.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function EN(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:cr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:cr.error,error:i}}return{type:cr.data,data:e.deferredData.data}}}function PN(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Zh(e,t){let n=typeof t=="string"?sd(t).search:t.search;if(e[e.length-1].route.index&&PN(n||""))return e[e.length-1];let r=lre(e);return r[r.length-1]}function o7(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function a3(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tUe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Sh(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function nUe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function lu(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function rUe(e,t){try{let n=e.sessionStorage.getItem(fre);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function iUe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(fre,JSON.stringify(n))}catch(r){zp(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),c.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=ure(u,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Hu([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,a,e])}function oUe(){let{matches:e}=c.useContext(Uf),t=e[e.length-1];return t?t.params:{}}function sUe(e,t,n,r){s_()||Fn(!1);let{navigator:i}=c.useContext(o_),{matches:a}=c.useContext(Uf),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=ON(),d;d=u;let f=d.pathname||"/",m=f;if(l!=="/"){let h=l.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(h.length).join("/")}let p=_d(e,{pathname:m});return fUe(p&&p.map(h=>Object.assign({},h,{params:Object.assign({},s,h.params),pathname:Hu([l,i.encodeLocation?i.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?l:Hu([l,i.encodeLocation?i.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),a,n,r)}function lUe(){let e=hUe(),t=i_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:i},n):null,null)}const cUe=c.createElement(lUe,null);class uUe extends c.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?c.createElement(Uf.Provider,{value:this.props.routeContext},c.createElement(bre.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dUe(e){let{routeContext:t,match:n,children:r}=e,i=c.useContext(a_);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(Uf.Provider,{value:t},r)}function fUe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let d=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||Fn(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,m)=>{let p,v=!1,h=null,g=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,h=f.route.errorElement||cUe,l&&(u<0&&m===0?(v=!0,g=null):u===m&&(v=!0,g=f.route.hydrateFallbackElement||null)));let w=t.concat(o.slice(0,m+1)),b=()=>{let y;return p?y=h:v?y=g:f.route.Component?y=c.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,c.createElement(dUe,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?c.createElement(uUe,{location:n.location,revalidation:n.revalidation,component:h,error:p,children:b(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):b()},null)}var wre=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wre||{}),kS=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(kS||{});function mUe(e){let t=c.useContext(a_);return t||Fn(!1),t}function pUe(e){let t=c.useContext(gre);return t||Fn(!1),t}function vUe(e){let t=c.useContext(Uf);return t||Fn(!1),t}function xre(e){let t=vUe(),n=t.matches[t.matches.length-1];return n.route.id||Fn(!1),n.route.id}function hUe(){var e;let t=c.useContext(bre),n=pUe(kS.UseRouteError),r=xre(kS.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function gUe(){let{router:e}=mUe(wre.UseNavigateStable),t=xre(kS.UseNavigateStable),n=c.useRef(!1);return yre(()=>{n.current=!0}),c.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,CS({fromRouteId:t},a)))},[e,t])}const s7={};function bUe(e,t){s7[t]||(s7[t]=!0,console.warn(t))}const gm=(e,t,n)=>bUe(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function yUe(e,t){e!=null&&e.v7_startTransition||gm("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&gm("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||gm("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||gm("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||gm("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||gm("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function wUe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=si.Pop,navigator:a,static:o=!1,future:s}=e;s_()&&Fn(!1);let l=t.replace(/^\/*/,"/"),u=c.useMemo(()=>({basename:l,navigator:a,static:o,future:CS({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=sd(r));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:v="default"}=r,h=c.useMemo(()=>{let g=U1(d,l);return g==null?null:{location:{pathname:g,search:f,hash:m,state:p,key:v},navigationType:i}},[l,d,f,m,p,v,i]);return h==null?null:c.createElement(o_.Provider,{value:u},c.createElement(TN.Provider,{children:n,value:h}))}new Promise(()=>{});function xUe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:c.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:c.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:c.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _S(){return _S=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function SUe(e,t){let n=C6(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const CUe="6";try{window.__reactRouterVersion=CUe}catch{}function kUe(e,t){return LWe({basename:t==null?void 0:t.basename,future:_S({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:cWe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||_Ue(),routes:e,mapRouteProperties:xUe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function _Ue(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_S({},t,{errors:$Ue(t.errors)})),t}function $Ue(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new SS(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const EUe=c.createContext({isTransitioning:!1}),PUe=c.createContext(new Map),TUe="startTransition",l7=lf[TUe],OUe="flushSync",c7=Mq[OUe];function IUe(e){l7?l7(e):e()}function Ch(e){c7?c7(e):e()}class RUe{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function MUe(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=c.useState(n.state),[o,s]=c.useState(),[l,u]=c.useState({isTransitioning:!1}),[d,f]=c.useState(),[m,p]=c.useState(),[v,h]=c.useState(),g=c.useRef(new Map),{v7_startTransition:w}=r||{},b=c.useCallback(_=>{w?IUe(_):_()},[w]),y=c.useCallback((_,$)=>{let{deletedFetchers:E,flushSync:T,viewTransitionOpts:M}=$;E.forEach(I=>g.current.delete(I)),_.fetchers.forEach((I,N)=>{I.data!==void 0&&g.current.set(N,I.data)});let j=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!M||j){T?Ch(()=>a(_)):b(()=>a(_));return}if(T){Ch(()=>{m&&(d&&d.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let I=n.window.document.startViewTransition(()=>{Ch(()=>a(_))});I.finished.finally(()=>{Ch(()=>{f(void 0),p(void 0),s(void 0),u({isTransitioning:!1})})}),Ch(()=>p(I));return}m?(d&&d.resolve(),m.skipTransition(),h({state:_,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(s(_),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,m,d,g,b]);c.useLayoutEffect(()=>n.subscribe(y),[n,y]),c.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new RUe)},[l]),c.useEffect(()=>{if(d&&o&&n.window){let _=o,$=d.promise,E=n.window.document.startViewTransition(async()=>{b(()=>a(_)),await $});E.finished.finally(()=>{f(void 0),p(void 0),s(void 0),u({isTransitioning:!1})}),p(E)}},[b,o,d,n.window]),c.useEffect(()=>{d&&o&&i.location.key===o.location.key&&d.resolve()},[d,m,i.location,o]),c.useEffect(()=>{!l.isTransitioning&&v&&(s(v.state),u({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),h(void 0))},[l.isTransitioning,v]),c.useEffect(()=>{},[]);let x=c.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,$,E)=>n.navigate(_,{state:$,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(_,$,E)=>n.navigate(_,{replace:!0,state:$,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[n]),C=n.basename||"/",S=c.useMemo(()=>({router:n,navigator:x,static:!1,basename:C}),[n,x,C]),k=c.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return c.useEffect(()=>yUe(r,n.future),[r,n.future]),c.createElement(c.Fragment,null,c.createElement(a_.Provider,{value:S},c.createElement(gre.Provider,{value:i},c.createElement(PUe.Provider,{value:g.current},c.createElement(EUe.Provider,{value:l},c.createElement(wUe,{basename:C,location:i.location,navigationType:i.historyAction,navigator:x,future:k},i.initialized||n.future.v7_partialHydration?c.createElement(NUe,{routes:n.routes,future:n.future,state:i}):t))))),null)}const NUe=c.memo(DUe);function DUe(e){let{routes:t,future:n,state:r}=e;return sUe(t,void 0,r,n)}var u7;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(u7||(u7={}));var d7;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(d7||(d7={}));function q1(e){let t=c.useRef(C6(e)),n=c.useRef(!1),r=ON(),i=c.useMemo(()=>SUe(r.search,n.current?null:t.current),[r.search]),a=qf(),o=c.useCallback((s,l)=>{const u=C6(typeof s=="function"?s(i):s);n.current=!0,a("?"+u,l)},[a,i]);return[i,o]}const jUe=()=>{const e=Di(),[t,n]=c.useState(e.formatMessage({id:"i18n.app.title"}));return c.useEffect(()=>{(async()=>{try{const i=Dwe(),a=jwe();n(i&&a?a:e.formatMessage({id:"i18n.app.title"}))}catch(i){console.error("Failed to load title:",i)}})()},[e]),P.jsxs("div",{children:[P.jsx("h1",{children:t}),P.jsx("p",{children:"对话即服务"}),P.jsx("p",{children:P.jsx("a",{href:"/chat/server",target:"_blank",children:"切换服务器"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/config",target:"_blank",children:"配置"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/home",target:"_blank",children:"首页"})}),P.jsx("p",{children:P.jsx("a",{href:"/chat/?org=df_org_uid&t=0&sid=df_ag_uid&",target:"_blank",children:"演示一对一全屏 chat"})}),P.jsx("p",{children:P.jsx("a",{href:"/chat/?org=df_org_uid&t=1&sid=df_wg_uid&",target:"_blank",children:"演示技能组全屏 chat"})}),P.jsx("p",{children:P.jsx("a",{href:"/chat/?org=df_org_uid&t=2&sid=df_rt_uid&",target:"_blank",children:"演示机器人全屏 chat"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/ticket?org=df_org_uid&t=0&sid=df_ag_uid&",target:"_blank",children:"工单系统"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/feedback?org=df_org_uid&t=0&sid=df_ag_uid&",target:"_blank",children:"意见反馈"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/number?org=df_org_uid",target:"_blank",children:"取号"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/queue?org=df_org_uid",target:"_blank",children:"排队大屏"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/center?org=df_org_uid",target:"_blank",children:"客服中心"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/helpcenter?org=df_org_uid",target:"_blank",children:"帮助中心"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/demo/airline",target:"_blank",children:"航空助手"})}),Ji&&P.jsx("p",{children:P.jsx("a",{href:"/chat/demo/shopping",target:"_blank",children:"电商助手"})})]})};(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(y){try{return y.defaultView&&y.defaultView.frameElement||null}catch{return null}}var t=function(y){for(var x=y,C=e(x);C;)x=C.ownerDocument,C=e(x);return x}(window.document),n=[],r=null,i=null;function a(y){this.time=y.time,this.target=y.target,this.rootBounds=v(y.rootBounds),this.boundingClientRect=v(y.boundingClientRect),this.intersectionRect=v(y.intersectionRect||p()),this.isIntersecting=!!y.intersectionRect;var x=this.boundingClientRect,C=x.width*x.height,S=this.intersectionRect,k=S.width*S.height;C?this.intersectionRatio=Number((k/C).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function o(y,x){var C=x||{};if(typeof y!="function")throw new Error("callback must be a function");if(C.root&&C.root.nodeType!=1&&C.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=y,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(C.rootMargin),this.thresholds=this._initThresholds(C.threshold),this.root=C.root||null,this.rootMargin=this._rootMarginValues.map(function(S){return S.value+S.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return r||(r=function(y,x){!y||!x?i=p():i=h(y,x),n.forEach(function(C){C._checkForIntersections()})}),r},o._resetCrossOriginUpdater=function(){r=null,i=null},o.prototype.observe=function(y){var x=this._observationTargets.some(function(C){return C.element==y});if(!x){if(!(y&&y.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:y,entry:null}),this._monitorIntersections(y.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(y){this._observationTargets=this._observationTargets.filter(function(x){return x.element!=y}),this._unmonitorIntersections(y.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var y=this._queuedEntries.slice();return this._queuedEntries=[],y},o.prototype._initThresholds=function(y){var x=y||[0];return Array.isArray(x)||(x=[x]),x.sort().filter(function(C,S,k){if(typeof C!="number"||isNaN(C)||C<0||C>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return C!==k[S-1]})},o.prototype._parseRootMargin=function(y){var x=y||"0px",C=x.split(/\s+/).map(function(S){var k=/^(-?\d*\.?\d+)(px|%)$/.exec(S);if(!k)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(k[1]),unit:k[2]}});return C[1]=C[1]||C[0],C[2]=C[2]||C[0],C[3]=C[3]||C[1],C},o.prototype._monitorIntersections=function(y){var x=y.defaultView;if(x&&this._monitoringDocuments.indexOf(y)==-1){var C=this._checkForIntersections,S=null,k=null;this.POLL_INTERVAL?S=x.setInterval(C,this.POLL_INTERVAL):(u(x,"resize",C,!0),u(y,"scroll",C,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in x&&(k=new x.MutationObserver(C),k.observe(y,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(y),this._monitoringUnsubscribes.push(function(){var E=y.defaultView;E&&(S&&E.clearInterval(S),d(E,"resize",C,!0)),d(y,"scroll",C,!0),k&&k.disconnect()});var _=this.root&&(this.root.ownerDocument||this.root)||t;if(y!=_){var $=e(y);$&&this._monitorIntersections($.ownerDocument)}}},o.prototype._unmonitorIntersections=function(y){var x=this._monitoringDocuments.indexOf(y);if(x!=-1){var C=this.root&&(this.root.ownerDocument||this.root)||t,S=this._observationTargets.some(function($){var E=$.element.ownerDocument;if(E==y)return!0;for(;E&&E!=C;){var T=e(E);if(E=T&&T.ownerDocument,E==y)return!0}return!1});if(!S){var k=this._monitoringUnsubscribes[x];if(this._monitoringDocuments.splice(x,1),this._monitoringUnsubscribes.splice(x,1),k(),y!=C){var _=e(y);_&&this._unmonitorIntersections(_.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var y=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var x=0;x=0&&E>=0&&{top:C,bottom:S,left:k,right:_,width:$,height:E}||null}function m(y){var x;try{x=y.getBoundingClientRect()}catch{}return x?(x.width&&x.height||(x={top:x.top,right:x.right,bottom:x.bottom,left:x.left,width:x.right-x.left,height:x.bottom-x.top}),x):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function v(y){return!y||"x"in y?y:{top:y.top,y:y.top,bottom:y.bottom,left:y.left,x:y.left,right:y.right,width:y.width,height:y.height}}function h(y,x){var C=x.top-y.top,S=x.left-y.left;return{top:C,left:S,height:x.height,width:x.width,bottom:C+x.height,right:S+x.width}}function g(y,x){for(var C=x;C;){if(C==y)return!0;C=w(C)}return!1}function w(y){var x=y.parentNode;return y.nodeType==9&&y!=t?e(y):(x&&x.assignedSlot&&(x=x.assignedSlot.parentNode),x&&x.nodeType==11&&x.host?x.host:x)}function b(y){return y&&y.nodeType===9}window.IntersectionObserver=o,window.IntersectionObserverEntry=a})();function Sre(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:zw;f7&&f7(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(FUe(t)||(t[r]=a),i=a)}e[i]=!0}return e}function VUe(e){for(let t=0;t/gm),KUe=os(/\${[\w\W]*}/gm),YUe=os(/^data-[\-\w.\u00B7-\uFFFF]/),XUe=os(/^aria-[\-\w]+$/),_re=os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),QUe=os(/^(?:\w+script|data):/i),JUe=os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$re=os(/^html$/i),ZUe=os(/^[a-z][.\w]*(-[.\w]+)+$/i);var y7=Object.freeze({__proto__:null,ARIA_ATTR:XUe,ATTR_WHITESPACE:JUe,CUSTOM_ELEMENT:ZUe,DATA_ATTR:YUe,DOCTYPE_NAME:$re,ERB_EXPR:GUe,IS_ALLOWED_URI:_re,IS_SCRIPT_OR_DATA:QUe,MUSTACHE_EXPR:qUe,TMPLIT_EXPR:KUe});const Ph={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},eqe=function(){return typeof window>"u"?null:window},tqe=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Ere(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eqe();const t=ze=>Ere(ze);if(t.version="3.2.1",t.removed=[],!e||!e.document||e.document.nodeType!==Ph.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:p}=e,v=l.prototype,h=Eh(v,"cloneNode"),g=Eh(v,"remove"),w=Eh(v,"nextSibling"),b=Eh(v,"childNodes"),y=Eh(v,"parentNode");if(typeof o=="function"){const ze=n.createElement("template");ze.content&&ze.content.ownerDocument&&(n=ze.content.ownerDocument)}let x,C="";const{implementation:S,createNodeIterator:k,createDocumentFragment:_,getElementsByTagName:$}=n,{importNode:E}=r;let T={};t.isSupported=typeof Cre=="function"&&typeof y=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:j,TMPLIT_EXPR:I,DATA_ATTR:N,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:z}=y7;let{IS_ALLOWED_URI:R}=y7,H=null;const V=En({},[...v7,...s3,...l3,...c3,...h7]);let B=null;const W=En({},[...g7,...u3,...b7,...by]);let q=Object.seal(kre(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Q=null,G=null,X=!0,re=!0,K=!1,Y=!0,Z=!1,J=!0,ee=!1,te=!1,le=!1,oe=!1,de=!1,pe=!1,we=!0,fe=!1;const ge="user-content-";let ue=!0,ce=!1,$e={},se=null;const ve=En({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let he=null;const _e=En({},["audio","video","img","source","image","track"]);let Se=null;const Pe=En({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",xe="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml";let Te=ye,Ie=!1,ke=null;const je=En({},[De,xe,ye],o3);let He=En({},["mi","mo","mn","ms","mtext"]),Be=En({},["annotation-xml"]);const ct=En({},["title","style","font","a","script"]);let Ve=null;const Ye=["application/xhtml+xml","text/html"],Ne="text/html";let Ae=null,et=null;const nt=n.createElement("form"),rt=function(me){return me instanceof RegExp||me instanceof Function},it=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(et&&et===me)){if((!me||typeof me!="object")&&(me={}),me=wd(me),Ve=Ye.indexOf(me.PARSER_MEDIA_TYPE)===-1?Ne:me.PARSER_MEDIA_TYPE,Ae=Ve==="application/xhtml+xml"?o3:zw,H=ks(me,"ALLOWED_TAGS")?En({},me.ALLOWED_TAGS,Ae):V,B=ks(me,"ALLOWED_ATTR")?En({},me.ALLOWED_ATTR,Ae):W,ke=ks(me,"ALLOWED_NAMESPACES")?En({},me.ALLOWED_NAMESPACES,o3):je,Se=ks(me,"ADD_URI_SAFE_ATTR")?En(wd(Pe),me.ADD_URI_SAFE_ATTR,Ae):Pe,he=ks(me,"ADD_DATA_URI_TAGS")?En(wd(_e),me.ADD_DATA_URI_TAGS,Ae):_e,se=ks(me,"FORBID_CONTENTS")?En({},me.FORBID_CONTENTS,Ae):ve,Q=ks(me,"FORBID_TAGS")?En({},me.FORBID_TAGS,Ae):{},G=ks(me,"FORBID_ATTR")?En({},me.FORBID_ATTR,Ae):{},$e=ks(me,"USE_PROFILES")?me.USE_PROFILES:!1,X=me.ALLOW_ARIA_ATTR!==!1,re=me.ALLOW_DATA_ATTR!==!1,K=me.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=me.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=me.SAFE_FOR_TEMPLATES||!1,J=me.SAFE_FOR_XML!==!1,ee=me.WHOLE_DOCUMENT||!1,oe=me.RETURN_DOM||!1,de=me.RETURN_DOM_FRAGMENT||!1,pe=me.RETURN_TRUSTED_TYPE||!1,le=me.FORCE_BODY||!1,we=me.SANITIZE_DOM!==!1,fe=me.SANITIZE_NAMED_PROPS||!1,ue=me.KEEP_CONTENT!==!1,ce=me.IN_PLACE||!1,R=me.ALLOWED_URI_REGEXP||_re,Te=me.NAMESPACE||ye,He=me.MATHML_TEXT_INTEGRATION_POINTS||He,Be=me.HTML_INTEGRATION_POINTS||Be,q=me.CUSTOM_ELEMENT_HANDLING||{},me.CUSTOM_ELEMENT_HANDLING&&rt(me.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=me.CUSTOM_ELEMENT_HANDLING.tagNameCheck),me.CUSTOM_ELEMENT_HANDLING&&rt(me.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=me.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),me.CUSTOM_ELEMENT_HANDLING&&typeof me.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=me.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(re=!1),de&&(oe=!0),$e&&(H=En({},h7),B=[],$e.html===!0&&(En(H,v7),En(B,g7)),$e.svg===!0&&(En(H,s3),En(B,u3),En(B,by)),$e.svgFilters===!0&&(En(H,l3),En(B,u3),En(B,by)),$e.mathMl===!0&&(En(H,c3),En(B,b7),En(B,by))),me.ADD_TAGS&&(H===V&&(H=wd(H)),En(H,me.ADD_TAGS,Ae)),me.ADD_ATTR&&(B===W&&(B=wd(B)),En(B,me.ADD_ATTR,Ae)),me.ADD_URI_SAFE_ATTR&&En(Se,me.ADD_URI_SAFE_ATTR,Ae),me.FORBID_CONTENTS&&(se===ve&&(se=wd(se)),En(se,me.FORBID_CONTENTS,Ae)),ue&&(H["#text"]=!0),ee&&En(H,["html","head","body"]),H.table&&(En(H,["tbody"]),delete Q.tbody),me.TRUSTED_TYPES_POLICY){if(typeof me.TRUSTED_TYPES_POLICY.createHTML!="function")throw $h('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof me.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $h('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=me.TRUSTED_TYPES_POLICY,C=x.createHTML("")}else x===void 0&&(x=tqe(p,i)),x!==null&&typeof C=="string"&&(C=x.createHTML(""));wa&&wa(me),et=me}},be=En({},[...s3,...l3,...WUe]),Oe=En({},[...c3,...UUe]),Ce=function(me){let Me=y(me);(!Me||!Me.tagName)&&(Me={namespaceURI:Te,tagName:"template"});const We=zw(me.tagName),wt=zw(Me.tagName);return ke[me.namespaceURI]?me.namespaceURI===xe?Me.namespaceURI===ye?We==="svg":Me.namespaceURI===De?We==="svg"&&(wt==="annotation-xml"||He[wt]):!!be[We]:me.namespaceURI===De?Me.namespaceURI===ye?We==="math":Me.namespaceURI===xe?We==="math"&&Be[wt]:!!Oe[We]:me.namespaceURI===ye?Me.namespaceURI===xe&&!Be[wt]||Me.namespaceURI===De&&!He[wt]?!1:!Oe[We]&&(ct[We]||!be[We]):!!(Ve==="application/xhtml+xml"&&ke[me.namespaceURI]):!1},Re=function(me){kh(t.removed,{element:me});try{y(me).removeChild(me)}catch{g(me)}},Ke=function(me,Me){try{kh(t.removed,{attribute:Me.getAttributeNode(me),from:Me})}catch{kh(t.removed,{attribute:null,from:Me})}if(Me.removeAttribute(me),me==="is"&&!B[me])if(oe||de)try{Re(Me)}catch{}else try{Me.setAttribute(me,"")}catch{}},Xe=function(me){let Me=null,We=null;if(le)me=""+me;else{const Le=p7(me,/^[\r\n\t ]+/);We=Le&&Le[0]}Ve==="application/xhtml+xml"&&Te===ye&&(me=''+me+"");const wt=x?x.createHTML(me):me;if(Te===ye)try{Me=new m().parseFromString(wt,Ve)}catch{}if(!Me||!Me.documentElement){Me=S.createDocument(Te,"template",null);try{Me.documentElement.innerHTML=Ie?C:wt}catch{}}const Ze=Me.body||Me.documentElement;return me&&We&&Ze.insertBefore(n.createTextNode(We),Ze.childNodes[0]||null),Te===ye?$.call(Me,ee?"html":"body")[0]:ee?Me.documentElement:Ze},lt=function(me){return k.call(me.ownerDocument||me,me,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},tt=function(me){return me instanceof f&&(typeof me.nodeName!="string"||typeof me.textContent!="string"||typeof me.removeChild!="function"||!(me.attributes instanceof d)||typeof me.removeAttribute!="function"||typeof me.setAttribute!="function"||typeof me.namespaceURI!="string"||typeof me.insertBefore!="function"||typeof me.hasChildNodes!="function")},Qe=function(me){return typeof s=="function"&&me instanceof s};function Ge(ze,me,Me){T[ze]&&gy(T[ze],We=>{We.call(t,me,Me,et)})}const st=function(me){let Me=null;if(Ge("beforeSanitizeElements",me,null),tt(me))return Re(me),!0;const We=Ae(me.nodeName);if(Ge("uponSanitizeElement",me,{tagName:We,allowedTags:H}),me.hasChildNodes()&&!Qe(me.firstElementChild)&&ua(/<[/\w]/g,me.innerHTML)&&ua(/<[/\w]/g,me.textContent)||me.nodeType===Ph.progressingInstruction||J&&me.nodeType===Ph.comment&&ua(/<[/\w]/g,me.data))return Re(me),!0;if(!H[We]||Q[We]){if(!Q[We]&&yt(We)&&(q.tagNameCheck instanceof RegExp&&ua(q.tagNameCheck,We)||q.tagNameCheck instanceof Function&&q.tagNameCheck(We)))return!1;if(ue&&!se[We]){const wt=y(me)||me.parentNode,Ze=b(me)||me.childNodes;if(Ze&&wt){const Le=Ze.length;for(let ot=Le-1;ot>=0;--ot){const ht=h(Ze[ot],!0);ht.__removalCount=(me.__removalCount||0)+1,wt.insertBefore(ht,w(me))}}}return Re(me),!0}return me instanceof l&&!Ce(me)||(We==="noscript"||We==="noembed"||We==="noframes")&&ua(/<\/no(script|embed|frames)/i,me.innerHTML)?(Re(me),!0):(Z&&me.nodeType===Ph.text&&(Me=me.textContent,gy([M,j,I],wt=>{Me=_h(Me,wt," ")}),me.textContent!==Me&&(kh(t.removed,{element:me.cloneNode()}),me.textContent=Me)),Ge("afterSanitizeElements",me,null),!1)},pt=function(me,Me,We){if(we&&(Me==="id"||Me==="name")&&(We in n||We in nt))return!1;if(!(re&&!G[Me]&&ua(N,Me))){if(!(X&&ua(O,Me))){if(!B[Me]||G[Me]){if(!(yt(me)&&(q.tagNameCheck instanceof RegExp&&ua(q.tagNameCheck,me)||q.tagNameCheck instanceof Function&&q.tagNameCheck(me))&&(q.attributeNameCheck instanceof RegExp&&ua(q.attributeNameCheck,Me)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(Me))||Me==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&ua(q.tagNameCheck,We)||q.tagNameCheck instanceof Function&&q.tagNameCheck(We))))return!1}else if(!Se[Me]){if(!ua(R,_h(We,F,""))){if(!((Me==="src"||Me==="xlink:href"||Me==="href")&&me!=="script"&&BUe(We,"data:")===0&&he[me])){if(!(K&&!ua(D,_h(We,F,"")))){if(We)return!1}}}}}}return!0},yt=function(me){return me!=="annotation-xml"&&p7(me,z)},zt=function(me){Ge("beforeSanitizeAttributes",me,null);const{attributes:Me}=me;if(!Me)return;const We={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let wt=Me.length;for(;wt--;){const Ze=Me[wt],{name:Le,namespaceURI:ot,value:ht}=Ze,Et=Ae(Le);let Rt=Le==="value"?ht:zUe(ht);if(We.attrName=Et,We.attrValue=Rt,We.keepAttr=!0,We.forceKeepAttr=void 0,Ge("uponSanitizeAttribute",me,We),Rt=We.attrValue,fe&&(Et==="id"||Et==="name")&&(Ke(Le,me),Rt=ge+Rt),J&&ua(/((--!?|])>)|<\/(style|title)/i,Rt)){Ke(Le,me);continue}if(We.forceKeepAttr||(Ke(Le,me),!We.keepAttr))continue;if(!Y&&ua(/\/>/i,Rt)){Ke(Le,me);continue}Z&&gy([M,j,I],at=>{Rt=_h(Rt,at," ")});const Ct=Ae(me.nodeName);if(pt(Ct,Et,Rt)){if(x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ot)switch(p.getAttributeType(Ct,Et)){case"TrustedHTML":{Rt=x.createHTML(Rt);break}case"TrustedScriptURL":{Rt=x.createScriptURL(Rt);break}}try{ot?me.setAttributeNS(ot,Le,Rt):me.setAttribute(Le,Rt),tt(me)?Re(me):m7(t.removed)}catch{}}}Ge("afterSanitizeAttributes",me,null)},$t=function ze(me){let Me=null;const We=lt(me);for(Ge("beforeSanitizeShadowDOM",me,null);Me=We.nextNode();)Ge("uponSanitizeShadowNode",Me,null),!st(Me)&&(Me.content instanceof a&&ze(Me.content),zt(Me));Ge("afterSanitizeShadowDOM",me,null)};return t.sanitize=function(ze){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=null,We=null,wt=null,Ze=null;if(Ie=!ze,Ie&&(ze=""),typeof ze!="string"&&!Qe(ze))if(typeof ze.toString=="function"){if(ze=ze.toString(),typeof ze!="string")throw $h("dirty is not a string, aborting")}else throw $h("toString is not a function");if(!t.isSupported)return ze;if(te||it(me),t.removed=[],typeof ze=="string"&&(ce=!1),ce){if(ze.nodeName){const ht=Ae(ze.nodeName);if(!H[ht]||Q[ht])throw $h("root node is forbidden and cannot be sanitized in-place")}}else if(ze instanceof s)Me=Xe(""),We=Me.ownerDocument.importNode(ze,!0),We.nodeType===Ph.element&&We.nodeName==="BODY"||We.nodeName==="HTML"?Me=We:Me.appendChild(We);else{if(!oe&&!Z&&!ee&&ze.indexOf("<")===-1)return x&&pe?x.createHTML(ze):ze;if(Me=Xe(ze),!Me)return oe?null:pe?C:""}Me&&le&&Re(Me.firstChild);const Le=lt(ce?ze:Me);for(;wt=Le.nextNode();)st(wt)||(wt.content instanceof a&&$t(wt.content),zt(wt));if(ce)return ze;if(oe){if(de)for(Ze=_.call(Me.ownerDocument);Me.firstChild;)Ze.appendChild(Me.firstChild);else Ze=Me;return(B.shadowroot||B.shadowrootmode)&&(Ze=E.call(r,Ze,!0)),Ze}let ot=ee?Me.outerHTML:Me.innerHTML;return ee&&H["!doctype"]&&Me.ownerDocument&&Me.ownerDocument.doctype&&Me.ownerDocument.doctype.name&&ua($re,Me.ownerDocument.doctype.name)&&(ot=" +`+ot),Z&&gy([M,j,I],ht=>{ot=_h(ot,ht," ")}),x&&pe?x.createHTML(ot):ot},t.setConfig=function(){let ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};it(ze),te=!0},t.clearConfig=function(){et=null,te=!1},t.isValidAttribute=function(ze,me,Me){et||it({});const We=Ae(ze),wt=Ae(me);return pt(We,wt,Me)},t.addHook=function(ze,me){typeof me=="function"&&(T[ze]=T[ze]||[],kh(T[ze],me))},t.removeHook=function(ze){if(T[ze])return m7(T[ze])},t.removeHooks=function(ze){T[ze]&&(T[ze]=[])},t.removeAllHooks=function(){T={}},t}var nqe=Ere();function rqe(e,t=document.body){const n=document.createElement("div");t.appendChild(n);const r=cx.createRoot(n),i=L.cloneElement(e,{onUnmount(){t&&n&&t.removeChild(n)}});return r.render(i),n}function iqe(e,t="click"){const n=c.useRef();return c.useEffect(()=>{const r=i=>{const a=n.current;!a||a.contains(i.target)||e&&e(i)};return document.addEventListener(t,r),()=>{document.removeEventListener(t,r)}},[t,e]),n}function IN(e){const t=c.useRef(null);return c.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function aqe(e){const t=c.useRef(e);return t.current=e,t}function oqe(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)}function sqe(e){return e.offsetHeight}const lqe=5*60*1e3;let w7=0;const d3=(e,t)=>{const n=e.createdAt||Date.now(),r=e.hasTime||n-w7>lqe;return r&&(w7=n),{...e,_id:e._id||t||oqe(),createdAt:n,position:e.position||"left",hasTime:r}};function cqe(e=[]){const t=c.useMemo(()=>e.map(u=>d3(u)),[e]),[n,r]=c.useState(t),i=c.useCallback(u=>{r(d=>[...u,...d])},[]),a=c.useCallback((u,d)=>{r(f=>f.map(m=>m._id===u?d3(d,u):m))},[]),o=c.useCallback(u=>{const d=d3(u);r(f=>[...f,d])},[]),s=c.useCallback(u=>{r(d=>d.filter(f=>f._id!==u))},[]),l=c.useCallback((u=[])=>{r(u)},[]);return{messages:n,prependMsgs:i,appendMsg:o,updateMsg:a,deleteMsg:s,resetList:l}}function Pre({active:e=!1,ref:t,delay:n=300}){const[r,i]=c.useState(!1),[a,o]=c.useState(!1),s=c.useRef(),l=()=>{s.current&&clearTimeout(s.current)};return c.useEffect(()=>(e?(l(),o(e)):(i(e),s.current=setTimeout(()=>{o(e)},n)),l),[e,n]),c.useEffect(()=>{t.current&&sqe(t.current),i(a)},[a,t]),{didMount:a,isShow:r}}class g6t extends L.Component{constructor(t){super(t),this.state={error:null,errorInfo:null}}componentDidCatch(t,n){const{onError:r}=this.props;r&&r(t,n),this.setState({error:t,errorInfo:n})}render(){const{FallbackComponent:t,children:n,...r}=this.props,{error:i,errorInfo:a}=this.state;return a?t?P.jsx(t,{error:i,errorInfo:a,...r}):null:n}}L.createContext({addComponent:()=>{},hasComponent:()=>!1,getComponent:()=>null});const uqe=e=>{const{className:t,src:n,alt:r,url:i,size:a="md",shape:o="circle",children:s}=e,l=i?"a":"span";return P.jsx(l,{className:Qt("Avatar",`Avatar--${a}`,`Avatar--${o}`,t),href:i,children:n?P.jsx("img",{src:n,alt:r}):s})},dqe=e=>{const{className:t,active:n,onClick:r,...i}=e;return P.jsx("div",{className:Qt("Backdrop",t,{active:n}),onClick:r,role:"button",tabIndex:-1,"aria-hidden":!0,...i})},Nv=({content:e})=>{const t=nqe.sanitize(e,{ALLOWED_TAGS:["p","div","span","h1","h2","h3","h4","h5","h6","ul","ol","li","a","strong","em","b","i","img","blockquote","code","pre"],ALLOWED_ATTR:["href","target","src","alt","style","class"]});return P.jsx("div",{className:"RichText",dangerouslySetInnerHTML:{__html:t}})},xd=L.forwardRef((e,t)=>{const{type:n="text",content:r,children:i,isRichText:a=!1,...o}=e,s=()=>r?a?P.jsx(Nv,{content:r}):P.jsx("p",{children:r}):null;return P.jsxs("div",{className:`Bubble ${n}`,"data-type":n,ref:t,...o,children:[s(),i]})}),pi=L.forwardRef((e,t)=>{const{type:n,className:r,spin:i,name:a,...o}=e,s=typeof a=="string"?{"aria-label":a}:{"aria-hidden":!0};return P.jsx("svg",{className:Qt("Icon",{"is-spin":i},r),ref:t,...s,...o,children:P.jsx("use",{xlinkHref:`#icon-${n}`})})});function f3(e){return e&&`Btn--${e}`}const _o=L.forwardRef((e,t)=>{const{className:n,label:r,color:i,variant:a,size:o,icon:s,loading:l,block:u,disabled:d,children:f,onClick:m,...p}=e,v=s||l&&"spinner",h=o||(u?"lg":"");function g(w){!d&&!l&&m&&m(w)}return P.jsxs("button",{className:Qt("Btn",f3(i),f3(a),f3(h),{"Btn--block":u},n),type:"button",disabled:d,onClick:g,ref:t,...p,children:[v&&P.jsx("span",{className:"Btn-icon",children:P.jsx(pi,{type:v,spin:l})}),r||f]})}),fqe={BackBottom:{newMsgOne:"{n} رسالة جديدة",newMsgOther:"{n} رسالة جديدة",bottom:"الأسفل"},Time:{weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),formats:{LT:"HH:mm",lll:"YYYY/M/D HH:mm",WT:"HH:mm dddd",YT:"HH:mm أمس"}},Composer:{send:"إرسال"},SendConfirm:{title:"إرسال صورة",send:"أرسل",cancel:"إلغاء"},RateActions:{up:"التصويت",down:"تصويت سلبي"},Recorder:{hold2talk:"أستمر بالضغط لتتحدث",release2send:"حرر للإرسال",releaseOrSwipe:"حرر للإرسال ، اسحب لأعلى للإلغاء",release2cancel:"حرر للإلغاء"},Search:{search:"يبحث"}},mqe={BackBottom:{newMsgOne:"{n} new message",newMsgOther:"{n} new messages",bottom:"Bottom"},Time:{weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),formats:{LT:"HH:mm",lll:"M/D/YYYY HH:mm",WT:"dddd HH:mm",YT:"Yesterday HH:mm"}},Composer:{send:"Send"},SendConfirm:{title:"Send photo",send:"Send",cancel:"Cancel"},RateActions:{up:"Up vote",down:"Down vote"},Recorder:{hold2talk:"Hold to Talk",release2send:"Release to Send",releaseOrSwipe:"Release to send, swipe up to cancel",release2cancel:"Release to cancel"},Search:{search:"Search"}},pqe={BackBottom:{newMsgOne:"{n} nouveau message",newMsgOther:"{n} nouveau messages",bottom:"Fond"},Time:{weekdays:"Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),formats:{LT:"HH:mm",lll:"D/M/YYYY HH:mm",WT:"dddd HH:mm",YT:"Hier HH:mm"}},Composer:{send:"Envoyer"},SendConfirm:{title:"Envoyer une photo",send:"Envoyer",cancel:"Annuler"},RateActions:{up:"Voter pour",down:"Vote négatif"},Recorder:{hold2talk:"Tenir pour parler",release2send:"Libérer pour envoyer",releaseOrSwipe:"Relâchez pour envoyer, balayez vers le haut pour annuler",release2cancel:"Relâcher pour annuler"},Search:{search:"Chercher"}},vqe={BackBottom:{newMsgOne:"{n}条新消息",newMsgOther:"{n}条新消息",bottom:"回到底部"},Time:{weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),formats:{LT:"HH:mm",lll:"YYYY年M月D日 HH:mm",WT:"dddd HH:mm",YT:"昨天 HH:mm"}},Composer:{send:"发送"},SendConfirm:{title:"发送图片",send:"发送",cancel:"取消"},RateActions:{up:"赞同",down:"反对"},Recorder:{hold2talk:"按住 说话",release2send:"松开 发送",releaseOrSwipe:"松开发送,上滑取消",release2cancel:"松开手指,取消发送"},Search:{search:"搜索"}},x7={"ar-EG":fqe,"fr-FR":pqe,"en-US":mqe,"zh-CN":vqe},Tre="en-US",RN=L.createContext({}),hqe=({locale:e=Tre,locales:t,elderMode:n,children:r})=>P.jsx(RN.Provider,{value:{locale:e,locales:t,elderMode:n},children:r}),MN=()=>c.useContext(RN),Gf=(e,t)=>{const{locale:n,locales:r}=c.useContext(RN);let a={...n&&x7[n]||x7[Tre],...r};return!n&&!r&&t?a=t:e&&(a=a[e]||{}),{locale:n,trans:o=>o?a[o]:a}},gs=L.forwardRef((e,t)=>{const{className:n,size:r,fluid:i,children:a,...o}=e,s=MN();return P.jsx("div",{className:Qt("Card",r&&`Card--${r}`,{"Card--fluid":i},n),"data-fluid":i,"data-elder-mode":s.elderMode,...o,ref:t,children:a})}),gqe={row:"Flex--d-r","row-reverse":"Flex--d-rr",column:"Flex--d-c","column-reverse":"Flex--d-cr"},bqe={nowrap:"Flex--w-n",wrap:"Flex--w-w","wrap-reverse":"Flex--w-wr"},yqe={"flex-start":"Flex--jc-fs","flex-end":"Flex--jc-fe",center:"Flex--jc-c","space-between":"Flex--jc-sb","space-around":"Flex--jc-sa"},wqe={"flex-start":"Flex--ai-fs","flex-end":"Flex--ai-fe",center:"Flex--ai-c"},bo=L.forwardRef((e,t)=>{const{as:n="div",className:r,inline:i,center:a,direction:o,wrap:s,justifyContent:l,justify:u=l,alignItems:d,align:f=d,children:m,...p}=e;return P.jsx(n,{className:Qt("Flex",o&&gqe[o],u&&yqe[u],f&&wqe[f],s&&bqe[s],{"Flex--inline":i,"Flex--center":a},r),ref:t,...p,children:m})}),_0=L.forwardRef((e,t)=>{const{className:n,flex:r,alignSelf:i,order:a,style:o,children:s,...l}=e;return P.jsx("div",{className:Qt("FlexItem",n),style:{...o,flex:r,alignSelf:i,order:a},ref:t,...l,children:s})});L.forwardRef((e,t)=>{const{className:n,aspectRatio:r="square",color:i,image:a,children:o,...s}=e,l={backgroundColor:i||void 0,backgroundImage:typeof a=="string"?`url('${a}')`:void 0};return P.jsx("div",{className:Qt("CardMedia",{"CardMedia--wide":r==="wide","CardMedia--square":r==="square"},n),style:l,...s,ref:t,children:o&&P.jsx(bo,{className:"CardMedia-content",direction:"column",center:!0,children:o})})});const Ore=L.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return P.jsx("div",{className:Qt("CardContent",n),...i,ref:t,children:r})}),NN=L.forwardRef((e,t)=>{const{className:n,title:r,subtitle:i,center:a,children:o,...s}=e;return P.jsxs("div",{className:Qt("CardTitle",{"CardTitle--center":a},n),...s,ref:t,children:[r&&P.jsx("h5",{className:"CardTitle-title",children:r}),o&&typeof o=="string"&&P.jsx("h5",{className:"CardTitle-title",children:o}),i&&P.jsx("p",{className:"CardTitle-subtitle",children:i}),o&&typeof o!="string"&&o]})}),G1=L.forwardRef((e,t)=>{const{className:n,children:r,...i}=e;return P.jsx("div",{className:Qt("CardText",n),...i,ref:t,children:typeof r=="string"?P.jsx("p",{children:r}):r})}),Ire=L.forwardRef((e,t)=>{const{children:n,className:r,direction:i,...a}=e;return P.jsx("div",{className:Qt("CardActions",r,i&&`CardActions--${i}`),...a,ref:t,children:n})}),m3=e=>{const{width:t,children:n}=e;return P.jsx("div",{className:"Carousel-item",style:{width:t},children:n})},Rre=(e,t)=>{e.style.transform=t,e.style.webkitTransform=t},S7=(e,t)=>{e.style.transition=t,e.style.webkitTransition=t},xqe={passiveListener:()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});window.addEventListener("test",null,t)}catch{}return e},smoothScroll:()=>"scrollBehavior"in document.documentElement.style,touch:()=>"ontouchstart"in window};function Kf(e){return xqe[e]()}const Sqe=["TEXTAREA","OPTION","INPUT","SELECT"],Cqe=Kf("touch");L.forwardRef((e,t)=>{const{className:n,startIndex:r=0,draggable:i=!0,duration:a=300,easing:o="ease",threshold:s=20,clickDragThreshold:l=10,loop:u=!0,rtl:d=!1,autoPlay:f=e.autoplay||!1,interval:m=e.autoplaySpeed||4e3,dots:p=e.indicators||!0,onChange:v,children:h}=e,g=L.Children.count(h),w=`${100/g}%`,b=c.useRef(null),y=c.useRef(null),x=c.useRef(null),C=c.useRef({first:!0,wrapWidth:0,hover:!1,startX:0,endX:0,startY:0,canMove:null,pressDown:!1}),S=c.useCallback(K=>u?K%g:Math.max(0,Math.min(K,g-1)),[g,u]),[k,_]=c.useState(S(r)),[$,E]=c.useState(!1),T=c.useCallback(()=>{S7(y.current,`transform ${a}ms ${o}`)},[a,o]),M=()=>{S7(y.current,"transform 0s")},j=K=>{Rre(y.current,`translate3d(${K}px, 0, 0)`)},I=c.useCallback((K,Y)=>{const Z=u?K+1:K,J=(d?1:-1)*Z*C.current.wrapWidth;Y?requestAnimationFrame(()=>{requestAnimationFrame(()=>{T(),j(J)})}):j(J)},[T,u,d]),N=c.useCallback(K=>{if(g<=1)return;const Y=S(K);Y!==k&&_(Y)},[k,g,S]),O=c.useCallback(()=>{if(g<=1)return;let K=k-1;if(u){if(K<0){const Y=C.current,Z=g+1,J=(d?1:-1)*Z*Y.wrapWidth,ee=i?Y.endX-Y.startX:0;M(),j(J+ee),K=g-1}}else K=Math.max(K,0);K!==k&&_(K)},[k,g,i,u,d]),D=c.useCallback(()=>{if(g<=1)return;let K=k+1;if(u){if(K>g-1){K=0;const Z=C.current,J=i?Z.endX-Z.startX:0;M(),j(J)}}else K=Math.min(K,g-1);K!==k&&_(K)},[k,g,i,u]),F=c.useCallback(()=>{!f||C.current.hover||(x.current=setTimeout(()=>{T(),D()},m))},[f,m,T,D]),z=()=>{clearTimeout(x.current)},R=()=>{I(k,!0),F()},H=()=>{const K=C.current,Y=(d?-1:1)*(K.endX-K.startX),Z=Math.abs(Y),J=Y>0&&k-1<0,ee=Y<0&&k+1>g-1;J||ee?u?J?O():D():R():Y>0&&Z>s&&g>1?O():Y<0&&Z>s&&g>1?D():R()},V=()=>{const K=C.current;K.startX=0,K.endX=0,K.startY=0,K.canMove=null,K.pressDown=!1},B=K=>{if(Sqe.includes(K.target.nodeName))return;K.preventDefault(),K.stopPropagation();const Y="touches"in K?K.touches[0]:K,Z=C.current;Z.pressDown=!0,Z.startX=Y.pageX,Z.startY=Y.pageY,z()},W=K=>{K.stopPropagation();const Y="touches"in K?K.touches[0]:K,Z=C.current;if(Z.pressDown){if("touches"in K&&(Z.canMove===null&&(Z.canMove=Math.abs(Z.startY-Y.pageY)l&&E(!0);const le=d?ee+te:te-ee;j(le)}},q=K=>{K.stopPropagation();const Y=C.current;Y.pressDown=!1,E(!1),T(),Y.endX?H():F(),V()},Q=()=>{C.current.hover=!0,z()},G=K=>{const Y=C.current;Y.hover=!1,Y.pressDown&&(Y.pressDown=!1,Y.endX=K.pageX,T(),H(),V()),F()},X=K=>{const{slideTo:Y}=K.currentTarget.dataset;if(Y){const Z=parseInt(Y,10);N(Z)}K.preventDefault()};c.useImperativeHandle(t,()=>({goTo:N,prev:O,next:D,wrapperRef:b}),[N,O,D]),c.useEffect(()=>{function K(){C.current.wrapWidth=b.current.offsetWidth,I(k)}return C.current.first&&K(),window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}},[k,I]),c.useEffect(()=>{v&&!C.current.first&&v(k)},[k,v]),c.useEffect(()=>{C.current.first?(I(k),C.current.first=!1):I(k,!0)},[k,I]),c.useEffect(()=>(F(),()=>{z()}),[f,k,F]);let re;return i?re=Cqe?{onTouchStart:B,onTouchMove:W,onTouchEnd:q}:{onMouseDown:B,onMouseMove:W,onMouseUp:q,onMouseEnter:Q,onMouseLeave:G}:re={onMouseEnter:Q,onMouseLeave:G},P.jsxs("div",{className:Qt("Carousel",{"Carousel--draggable":i,"Carousel--rtl":d,"Carousel--dragging":$},n),ref:b,...re,children:[P.jsxs("div",{className:"Carousel-inner",style:{width:`${u?g+2:g}00%`},ref:y,children:[u&&P.jsx(m3,{width:w,children:L.Children.toArray(h)[g-1]}),L.Children.map(h,(K,Y)=>P.jsx(m3,{width:w,children:K},Y)),u&&P.jsx(m3,{width:w,children:L.Children.toArray(h)[0]})]}),p&&P.jsx("ol",{className:"Carousel-dots",children:L.Children.map(h,(K,Y)=>P.jsx("li",{children:P.jsx("button",{className:Qt("Carousel-dot",{active:k===Y}),type:"button","aria-label":`Go to slide ${Y+1}`,"data-slide-to":Y,onClick:X})},Y))})]})});const kqe=L.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return P.jsxs("label",{className:Qt("Checkbox",n,{"Checkbox--checked":i,"Checkbox--disabled":a}),ref:t,children:[P.jsx("input",{type:"checkbox",className:"Checkbox-input",checked:i,disabled:a,onChange:o,...s}),P.jsx("span",{className:"Checkbox-text",children:r})]})});L.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;function u(d,f){const m=f.target.checked?i.concat(d):i.filter(p=>p!==d);l(m,f)}return P.jsx("div",{className:Qt("CheckboxGroup",{"CheckboxGroup--block":s},n),ref:t,children:r.map(d=>P.jsx(kqe,{label:d.label||d.value,value:d.value,name:a,checked:i.includes(d.value),disabled:"disabled"in d?d.disabled:o,onChange:f=>{u(d.value,f)}},d.value))})});const $6=document,_qe=$6.documentElement,$qe=e=>{const{children:t,onClick:n,mouseEvent:r="mouseup",...i}=e,a=c.useRef(null);function o(s){a.current&&_qe.contains(s.target)&&!a.current.contains(s.target)&&n(s)}return c.useEffect(()=>(r&&$6.addEventListener(r,o),()=>{$6.removeEventListener(r,o)})),P.jsx("div",{ref:a,...i,children:t})},Eqe="//gw.alicdn.com/tfs/TB1fnnLRkvoK1RjSZFDXXXY3pXa-300-250.svg",Pqe="//gw.alicdn.com/tfs/TB1lRjJRbvpK1RjSZPiXXbmwXXa-300-250.svg";L.forwardRef((e,t)=>{const{className:n,type:r,image:i,tip:a,children:o}=e,s=i||(r==="error"?Pqe:Eqe);return P.jsxs(bo,{className:Qt("Empty",n),direction:"column",center:!0,ref:t,children:[P.jsx("img",{className:"Empty-img",src:s,alt:a}),a&&P.jsx("p",{className:"Empty-tip",children:a}),o]})});const Tqe=L.createContext("");L.forwardRef((e,t)=>{const{children:n,...r}=e;return P.jsx("label",{className:"Label",...r,ref:t,children:n})});const ss=L.forwardRef((e,t)=>{const{className:n,icon:r,img:i,...a}=e;return P.jsxs(_o,{className:Qt("IconBtn",n),ref:t,...a,children:[r&&P.jsx(pi,{type:r}),!r&&i&&P.jsx("img",{src:i,alt:""})]})});L.forwardRef((e,t)=>{const{className:n,src:r,lazy:i,fluid:a,children:o,...s}=e,[l,u]=c.useState(i?void 0:r),d=IN(t),f=c.useRef(""),m=c.useRef(!1);return c.useEffect(()=>{if(!i)return;const p=new IntersectionObserver(([v])=>{v.isIntersecting&&(u(f.current),m.current=!0,p.unobserve(v.target))});return d.current&&p.observe(d.current),()=>{p.disconnect()}},[d,i]),c.useEffect(()=>{f.current=r,(!i||m.current)&&u(r)},[i,r]),P.jsx("img",{className:Qt("Image",{"Image--fluid":a},n),src:l,alt:"",ref:d,...s})});function Mre(e){return e.scrollHeight-e.scrollTop-e.offsetHeight}L.forwardRef((e,t)=>{const{className:n,disabled:r,distance:i=0,children:a,onLoadMore:o,onScroll:s,...l}=e,u=IN(t);function d(f){s&&s(f);const m=u.current;if(!m)return;Mre(m)<=i&&o()}return P.jsx("div",{className:Qt("InfiniteScroll",n),role:"feed",onScroll:r?void 0:d,ref:u,...l,children:a})});function Oqe(e,t){return`${`${e}`.length}${t?`/${t}`:""}`}const $0=L.forwardRef((e,t)=>{const{className:n,type:r="text",variant:i,value:a,placeholder:o,rows:s=1,minRows:l=s,maxRows:u=5,maxLength:d,showCount:f=!!d,multiline:m,autoSize:p,onChange:v,...h}=e;let g=s;gu&&(g=u);const[w,b]=c.useState(g),[y,x]=c.useState(21),C=IN(t),S=c.useContext(Tqe),k=i||(S==="light"?"flushed":"outline"),$=m||p||s>1?"textarea":"input";c.useEffect(()=>{if(!C.current)return;const j=getComputedStyle(C.current,null).lineHeight,I=Number(j.replace("px",""));I!==y&&x(I)},[C,y]);const E=c.useCallback(()=>{if(!p||!C.current)return;const j=C.current,I=j.rows;j.rows=l,o&&(j.placeholder="");const N=~~(j.scrollHeight/y);N===I&&(j.rows=N),N>=u&&(j.rows=u,j.scrollTop=j.scrollHeight),b(N{a===""?b(g):E()},[g,E,a]);const T=c.useCallback(j=>{if(E(),v){const I=j.target.value,O=d&&I.length>d?I.substr(0,d):I;v(O,j)}},[d,v,E]),M=P.jsx($,{className:Qt("Input",`Input--${k}`,n),type:r,value:a,placeholder:o,maxLength:d,ref:C,rows:w,onChange:T,...h});return f?P.jsxs("div",{className:Qt("InputWrapper",{"has-counter":f}),children:[M,f&&P.jsx("div",{className:"Input-counter",children:Oqe(a,d)})]}):M}),Nre=L.forwardRef((e,t)=>{const{bordered:n=!1,className:r,children:i}=e;return P.jsx("div",{className:Qt("List",{"List--bordered":n},r),role:"list",ref:t,children:i})}),Dre=L.forwardRef((e,t)=>{const{className:n,as:r="div",content:i,rightIcon:a,children:o,onClick:s,...l}=e;return P.jsxs(r,{className:Qt("ListItem",n),onClick:s,role:"listitem",...l,ref:t,children:[P.jsx("div",{className:"ListItem-content",children:i||o}),a&&P.jsx(pi,{type:a})]})}),Iqe=e=>{const{className:t,content:n,action:r}=e;return P.jsx("div",{className:Qt("Message SystemMessage",t),children:P.jsxs("div",{className:"SystemMessage-inner",children:[P.jsx("span",{children:P.jsx(Nv,{content:n})}),r&&P.jsx("a",{href:"javascript:;",onClick:r.onClick,children:r.text})]})})},Rqe=/YYYY|M|D|dddd|HH|mm/g,jre=24*60*60*1e3,Mqe=jre*7,Nqe=e=>e instanceof Date?e:new Date(e),Dqe=()=>new Date(new Date().setHours(0,0,0,0)),C7=e=>(e<=9?"0":"")+e,jqe=e=>{const t=Dqe().getTime()-e.getTime();return t<0?"LT":ti[a])}const Aqe=({date:e})=>{const{trans:t}=Gf("Time");return P.jsx("time",{className:"Time",dateTime:new Date(e).toJSON(),children:Fqe(e,t())})};function Lqe(){return P.jsx(xd,{type:"typing",children:P.jsxs("div",{className:"Typing","aria-busy":"true",children:[P.jsx("div",{className:"Typing-dot"}),P.jsx("div",{className:"Typing-dot"}),P.jsx("div",{className:"Typing-dot"})]})})}const Bqe=e=>{const{renderMessageContent:t=()=>null,...n}=e,{type:r,content:i,user:a={},_id:o,position:s="left",hasTime:l=!0,createdAt:u}=n,{name:d,avatar:f}=a;if(r==="system"||r===KI||r===Sve||r===zG||r===Rve)return P.jsx(Iqe,{content:i,action:i.action});const m=s==="right"||s==="left";return P.jsxs("div",{className:Qt("Message",s),"data-id":o,"data-type":r,children:[l&&u&&P.jsx("div",{className:"Message-meta",children:P.jsx(Aqe,{date:u})}),P.jsxs("div",{className:"Message-main",children:[m&&f&&P.jsx(uqe,{src:f,alt:d,url:a.url}),P.jsxs("div",{className:"Message-inner",children:[m&&d&&P.jsx("div",{className:"Message-author",children:d}),P.jsx("div",{className:"Message-content",role:"alert","aria-live":"assertive","aria-atomic":"false",children:r==="typing"?P.jsx(Lqe,{}):t(n)})]})]})]})},k7=L.memo(Bqe),nu=({status:e,delay:t=1500,maxDelay:n=1e4,onRetry:r,onChange:i})=>{const[a,o]=c.useState(""),s=c.useRef(),l=c.useRef(),u=c.useCallback(()=>{s.current=setTimeout(()=>{o("loading")},t),l.current=setTimeout(()=>{o("fail")},n)},[t,n]);function d(){s.current&&clearTimeout(s.current),l.current&&clearTimeout(l.current)}c.useEffect(()=>(d(),e==="SENDING"?u():e==="SUCCESS"?o(""):e==="READ"?o("READ"):e==="DELIVERED"?o("DELIVERED"):e==="TIMEOUT"&&o("fail"),d),[e,u]),c.useEffect(()=>{i&&i(a)},[i,a]);function f(){o("loading"),u(),r&&r()}return P.jsxs("div",{className:"MessageStatus","data-status":a,children:[a==="loading"&&P.jsx(pi,{type:"spinner",spin:!0,onClick:f}),a==="fail"&&P.jsx(ss,{icon:"warning-circle-fill",onClick:f}),a==="READ"&&P.jsx("div",{style:{fontSize:12,color:"gray"},children:"已读"}),a==="DELIVERED"&&P.jsx("div",{style:{fontSize:12,color:"gray"},children:"已送达"})]})};let zqe=0;const Hqe=()=>zqe++;function Fre(e="id-"){return c.useRef(`${e}${Hqe()}`).current}const $g=(e,t,n=document.body)=>{n.classList[t?"add":"remove"](e)};function _7(){!document.querySelector(".Modal")&&!document.querySelector(".Popup")&&$g("S--modalOpen",!1)}const DN=L.forwardRef((e,t)=>{const{baseClass:n,active:r,className:i,title:a,showClose:o=!0,autoFocus:s=!0,backdrop:l=!0,height:u,overflow:d,actions:f,vertical:m=!0,btnVariant:p,bgColor:v,children:h,onBackdropClick:g,onClose:w}=e,b=Fre("modal-"),y=e.titleId||b,x=MN(),C=c.useRef(null),{didMount:S,isShow:k}=Pre({active:r,ref:C});if(c.useEffect(()=>{setTimeout(()=>{s&&C.current&&C.current.focus()})},[s]),c.useEffect(()=>{k&&$g("S--modalOpen",k)},[k]),c.useEffect(()=>{!r&&!S&&_7()},[r,S]),c.useImperativeHandle(t,()=>({wrapperRef:C})),c.useEffect(()=>()=>{_7()},[]),!S)return null;const _=n==="Popup";return ki.createPortal(P.jsxs("div",{className:Qt(n,i,{active:k}),tabIndex:-1,"data-elder-mode":x.elderMode,ref:C,children:[l&&P.jsx(dqe,{active:k,onClick:l===!0?g||w:void 0}),P.jsx("div",{className:Qt(`${n}-dialog`,{"pb-safe":_&&!f}),"data-bg-color":v,"data-height":_&&u?u:void 0,role:"dialog","aria-labelledby":y,"aria-modal":!0,children:P.jsxs("div",{className:`${n}-content`,children:[P.jsxs("div",{className:`${n}-header`,children:[P.jsx("h5",{className:`${n}-title`,id:y,children:a}),o&&w&&P.jsx(ss,{className:`${n}-close`,icon:"close",size:"lg",onClick:w,"aria-label":"关闭"})]}),P.jsx("div",{className:Qt(`${n}-body`,{overflow:d}),children:h}),f&&P.jsx("div",{className:`${n}-footer ${n}-footer--${m?"v":"h"}`,"data-variant":p||"round",children:f.map($=>c.createElement(_o,{size:"lg",block:_,variant:p,...$,key:$.label}))})]})})]}),document.body)}),Vqe=L.forwardRef((e,t)=>P.jsx(DN,{baseClass:"Modal",btnVariant:e.vertical===!1?void 0:"outline",ref:t,...e})),$7=e=>e.color==="primary",Wqe=L.forwardRef((e,t)=>{const{className:n,vertical:r,actions:i,...a}=e,{locale:o=""}=Gf(),s=o.includes("zh"),l=r??!s;return Array.isArray(i)&&i.sort((u,d)=>$7(u)?l?-1:1:$7(d)?l?1:-1:0),P.jsx(DN,{baseClass:"Modal",className:Qt("Confirm",n),showClose:!1,btnVariant:"outline",vertical:l,actions:i,ref:t,...a})}),Are=L.forwardRef((e,t)=>P.jsx(DN,{baseClass:"Popup",overflow:!0,ref:t,...e})),Uqe=L.forwardRef((e,t)=>{const{className:n,title:r,logo:i,desc:a,leftContent:o,rightContent:s=[],align:l}=e,u=l==="left",d=u?!0:!i;return P.jsxs("header",{className:Qt("Navbar",{"Navbar--left":u},n),ref:t,children:[P.jsx("div",{className:"Navbar-left",children:o&&P.jsx(ss,{size:"lg",...o})}),P.jsxs("div",{className:"Navbar-main",children:[i&&P.jsx("img",{className:"Navbar-logo",src:i,alt:r}),P.jsxs("div",{className:"Navbar-inner",children:[d&&P.jsx("h2",{className:"Navbar-title",children:r}),P.jsx("div",{className:"Navbar-desc",children:a})]})]}),P.jsx("div",{className:"Navbar-right",children:s.map(f=>P.jsx(ss,{size:"lg",...f},f.mykey))})]})}),$S=L.forwardRef((e,t)=>{const{as:n="div",className:r,align:i,breakWord:a,truncate:o,children:s,...l}=e,u=Number.isInteger(o),d=Qt(i&&`Text--${i}`,{"Text--break":a,"Text--truncate":o===!0,"Text--ellipsis":u},r),f=u?{WebkitLineClamp:o}:null;return P.jsx(n,{className:d,style:f,...l,ref:t,children:s})}),qqe=e=>{const{content:t,closable:n=!0,leftIcon:r="bullhorn",onClick:i,onClose:a}=e;return P.jsxs("div",{className:"Notice",role:"alert","aria-atomic":!0,"aria-live":"assertive",children:[r&&P.jsx(pi,{className:"Notice-icon",type:r}),P.jsx("div",{className:"Notice-content",onClick:i,children:P.jsx($S,{className:"Notice-text",truncate:!0,children:P.jsx(Nv,{content:t})})}),n&&P.jsx(ss,{className:"Notice-close",icon:"close",onClick:a,"aria-label":"关闭通知"})]})},Gqe="Intl"in window&&typeof Intl.NumberFormat.prototype.formatToParts=="function",E7=L.forwardRef((e,t)=>{const{className:n,price:r,currency:i,locale:a,original:o,...s}=e;let l=[];if(a&&i&&Gqe?l=new Intl.NumberFormat(a,{style:"currency",currency:i}).formatToParts(r):l=void 0,!l){const u=".",[d,f]=`${r}`.split(u);l=[{type:"currency",value:i},{type:"integer",value:d},{type:"decimal",value:f&&u},{type:"fraction",value:f}]}return P.jsx("div",{className:Qt("Price",{"Price--original":o},n),ref:t,...s,children:l.map((u,d)=>u.value?P.jsx("span",{className:`Price-${u.type}`,children:u.value},d):null)})});L.forwardRef((e,t)=>{const{className:n,value:r,status:i,...a}=e;return P.jsx("div",{className:Qt("Progress",i&&`Progress--${i}`,n),ref:t,...a,children:P.jsx("div",{className:"Progress-bar",role:"progressbar",style:{width:`${r}%`},"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100})})});const P7=requestAnimationFrame;function Lre({el:e,to:t,duration:n=300,x:r}){let i=0;const a=r?"scrollLeft":"scrollTop",o=e[a],s=Math.round(n/16),l=(t-o)/s;if(!P7){e[a]=t;return}function u(){e[a]+=l,++i{const{distance:n=30,loadingDistance:r=30,maxDistance:i,distanceRatio:a=2,loadMoreText:o="点击加载更多",children:s,onScroll:l,onRefresh:u,renderIndicator:d=z=>z==="active"||z==="loading"?P.jsx(pi,{className:"PullToRefresh-spinner",type:"spinner",spin:!0}):null}=e,f=c.useRef(null),m=c.useRef(null),p=aqe(u),[v,h]=c.useState(0),[g,w]=c.useState("pending"),[b,y]=c.useState(!1),[x,C]=c.useState(!e.onRefresh),S=c.useRef({}),k=c.useRef(g),_=c.useRef(),$=c.useRef(),E=!Kf("touch");c.useEffect(()=>{k.current=g},[g]);const T=z=>{const R=m.current;R&&Rre(R,`translate3d(0px,${z}px,0)`)},M=({y:z,animated:R=!0})=>{const H=f.current;if(!H)return;const V=z==="100%"?H.scrollHeight-H.offsetHeight:z;R?Lre({el:H,to:V,x:!1}):H.scrollTop=V},j=c.useCallback(({animated:z=!0}={})=>{M({y:"100%",animated:z})},[]),I=c.useCallback(()=>{h(0),w("pending"),T(0)},[]),N=c.useCallback(()=>{const z=f.current;if(!(!z||!p.current)){w("loading");try{const R=z.scrollHeight;p.current().then(H=>{const V=()=>{M({y:z.scrollHeight-R-50,animated:!1})};clearTimeout(_.current),clearTimeout($.current),V(),_.current=setTimeout(V,150),$.current=setTimeout(V,250),I(),H&&H.noMore&&C(!0)})}catch(R){console.error(R),I()}}},[p,I]),O=()=>{S.current.startY=0},D=c.useCallback(z=>{const R=z.touches[0].clientY,H=f.current.scrollTop<=0;H?S.current.startY||(S.current.startY=R,w("pull"),y(!1)):S.current.startY=0;const{startY:V}=S.current;if(!H||Ri&&(B=i),B>0&&(z.cancelable&&z.preventDefault(),z.stopPropagation(),T(B),h(B),w(B>=n?"active":"pull"))},[a,i,n]),F=c.useCallback(()=>{y(!0),S.current.startY&&k.current==="active"?N():I()},[N,I]);return c.useEffect(()=>{const z=f.current;!z||E||(x?(z.removeEventListener("touchstart",O),z.removeEventListener("touchmove",D),z.removeEventListener("touchend",F),z.removeEventListener("touchcancel",F)):(z.addEventListener("touchstart",O,Kqe),z.addEventListener("touchmove",D,Yqe),z.addEventListener("touchend",F),z.addEventListener("touchcancel",F)))},[x,F,D,E]),c.useEffect(()=>{g==="loading"&&!E&&T(r)},[r,g,E]),c.useImperativeHandle(t,()=>({scrollTo:M,scrollToEnd:j,wrapperRef:f}),[j]),P.jsx("div",{className:"PullToRefresh",ref:f,onScroll:l,children:P.jsx("div",{className:"PullToRefresh-inner",children:P.jsxs("div",{className:Qt("PullToRefresh-content",{"PullToRefresh-transition":b}),ref:m,children:[P.jsx("div",{className:"PullToRefresh-indicator",children:d(g,v)}),!x&&E&&P.jsxs(bo,{className:"PullToRefresh-fallback",center:!0,children:[d(g,n),P.jsx(_o,{className:"PullToRefresh-loadMore",variant:"text",onClick:N,children:o})]}),L.Children.only(s)]})})})}),Qqe={threshold:[0,.1]},T7=e=>{const{item:t,effect:n,children:r,onIntersect:i}=e,a=c.useRef(null);return c.useEffect(()=>{if(!i)return;const o=new IntersectionObserver(([s])=>{s.intersectionRatio>0&&(i(t,s)||o.unobserve(s.target))},Qqe);return a.current&&o.observe(a.current),()=>{o.disconnect()}},[t,i]),P.jsx("div",{className:Qt("ScrollView-item",{"slide-in-right-item":n==="slide","A-fadeIn":n==="fade"}),ref:a,children:r})},p3=!Kf("touch"),zre=L.forwardRef((e,t)=>{const{className:n,fullWidth:r,scrollX:i=!0,effect:a="slide",data:o,itemKey:s,renderItem:l,onIntersect:u,onScroll:d,children:f,...m}=e,p=c.useRef(null),v=c.useRef(null);function h(){const b=v.current;b.scrollLeft-=b.offsetWidth}function g(){const b=v.current;b.scrollLeft+=b.offsetWidth}const w=c.useCallback((b,y)=>{let x;return s&&(x=typeof s=="function"?s(b,y):b[s]),x||y},[s]);return c.useImperativeHandle(t,()=>({scrollTo:({x:b,y})=>{b!=null&&(v.current.scrollLeft=b),y!=null&&(v.current.scrollTop=y)},wrapperRef:p})),P.jsxs("div",{className:Qt("ScrollView",{"ScrollView--fullWidth":r,"ScrollView--x":i,"ScrollView--hasControls":p3},n),ref:p,...m,children:[p3&&P.jsx(ss,{className:"ScrollView-control",icon:"chevron-left","aria-label":"Previous",onClick:h}),P.jsx("div",{className:"ScrollView-scroller",ref:v,onScroll:d,children:P.jsxs("div",{className:"ScrollView-inner",children:[o.map((b,y)=>P.jsx(T7,{item:b,effect:b.effect||a,onIntersect:u,children:l(b,y)},w(b,y))),f?P.jsx(T7,{item:{},effect:a,onIntersect:u,children:f}):null]})}),p3&&P.jsx(ss,{className:"ScrollView-control",icon:"chevron-right","aria-label":"Next",onClick:g})]})}),Jqe=e=>{const{item:t,index:n,onClick:r}=e;function i(){r(t,n)}return P.jsx("button",{className:Qt("QuickReply",{new:t.isNew,highlight:t.isHighlight}),type:"button","data-code":t.code,"aria-label":`快捷短语: ${t.name},双击发送`,onClick:i,children:P.jsxs("div",{className:"QuickReply-inner",children:[t.icon&&P.jsx(pi,{type:t.icon}),t.img&&P.jsx("img",{className:"QuickReply-img",src:t.img,alt:""}),P.jsx("span",{children:t.name})]})})},Zqe=({items:e=[],visible:t=!0,onClick:n,onScroll:r})=>{const i=c.useRef(null),[a,o]=c.useState(!!r);return c.useLayoutEffect(()=>{let s;return i.current&&(o(!1),i.current.scrollTo({x:0,y:0}),s=setTimeout(()=>{o(!0)},500)),()=>{clearTimeout(s)}},[e]),e.length?P.jsx(zre,{className:"QuickReplies",data:e,itemKey:"name",ref:i,"data-visible":t,onScroll:a?r:void 0,renderItem:(s,l)=>P.jsx(Jqe,{item:s,index:l,onClick:n},s.name)}):null},eGe=L.memo(Zqe),tGe=L.forwardRef((e,t)=>{const{className:n,label:r,checked:i,disabled:a,onChange:o,...s}=e;return P.jsxs("label",{className:Qt("Radio",n,{"Radio--checked":i,"Radio--disabled":a}),ref:t,children:[P.jsx("input",{type:"radio",className:"Radio-input",checked:i,disabled:a,onChange:o,...s}),P.jsx("span",{className:"Radio-text",children:r})]})});L.forwardRef((e,t)=>{const{className:n,options:r,value:i,name:a,disabled:o,block:s,onChange:l}=e;return P.jsx("div",{className:Qt("RadioGroup",{"RadioGroup--block":s},n),ref:t,children:r.map(u=>P.jsx(tGe,{label:u.label||u.value,value:u.value,name:a,checked:i===u.value,disabled:"disabled"in u?u.disabled:o,onChange:d=>{l(u.value,d)}},u.value))})});const yy="up",wy="down",jN=e=>{const{trans:t}=Gf("RateActions",{up:"赞同",down:"反对"}),{upTitle:n=t("up"),downTitle:r=t("down"),onClick:i}=e,[a,o]=c.useState("");function s(d){a||(o(d),i(d))}function l(){s(yy)}function u(){s(wy)}return P.jsxs("div",{className:"RateActions",children:[a!==wy&&P.jsx(ss,{className:Qt("RateBtn",{active:a===yy}),title:n,"data-type":yy,icon:"thumbs-up",onClick:l}),a!==yy&&P.jsx(ss,{className:Qt("RateBtn",{active:a===wy}),title:r,"data-type":wy,icon:"thumbs-down",onClick:u})]})},nGe=L.forwardRef((e,t)=>{const{className:n,onSearch:r,onChange:i,onClear:a,value:o,clearable:s=!0,showSearch:l=!0,...u}=e,[d,f]=c.useState(o||""),{trans:m}=Gf("Search"),p=w=>{f(w),i&&i(w)},v=()=>{f(""),a&&a()},h=w=>{w.keyCode===13&&(r&&r(d,w),w.preventDefault())},g=w=>{r&&r(d,w)};return P.jsxs("div",{className:Qt("Search",n),ref:t,children:[P.jsx(pi,{className:"Search-icon",type:"search"}),P.jsx($0,{className:"Search-input",type:"search",value:d,enterKeyHint:"search",onChange:p,onKeyDown:h,...u}),s&&d&&P.jsx(ss,{className:"Search-clear",icon:"x-circle-fill",onClick:v}),l&&P.jsx(_o,{className:"Search-btn",color:"primary",onClick:g,children:m("search")})]})});L.forwardRef(({className:e,placeholder:t,variant:n="outline",children:r,...i},a)=>P.jsxs("select",{className:Qt("Input Select",`Input--${n}`,e),...i,ref:a,children:[t&&P.jsx("option",{value:"",children:t}),r]}));L.forwardRef((e,t)=>{const{className:n,current:r=0,status:i,inverted:a,children:o,...s}=e,u=L.Children.toArray(o).map((d,f)=>{const m={index:f,active:!1,completed:!1,disabled:!1};return r===f?(m.active=!0,m.status=i):r>f?m.completed=!0:(m.disabled=!a,m.completed=a),L.isValidElement(d)?L.cloneElement(d,{...m,...d.props}):null});return P.jsx("ul",{className:Qt("Stepper",n),ref:t,...s,children:u})});function rGe(e){if(e){const t={success:"check-circle-fill",fail:"warning-circle-fill",abort:"dash-circle-fill"};return P.jsx(pi,{type:t[e]})}return P.jsx("div",{className:"Step-dot"})}L.forwardRef((e,t)=>{const{className:n,active:r=!1,completed:i=!1,disabled:a=!1,status:o,index:s,title:l,subTitle:u,desc:d,children:f,...m}=e;return P.jsxs("li",{className:Qt("Step",{"Step--active":r,"Step--completed":i,"Step--disabled":a},n),ref:t,"data-status":o,...m,children:[P.jsx("div",{className:"Step-icon",children:rGe(o)}),P.jsx("div",{className:"Step-line"}),P.jsxs("div",{className:"Step-content",children:[l&&P.jsxs("div",{className:"Step-title",children:[l&&P.jsx("span",{children:l}),u&&P.jsx("small",{children:u})]}),d&&P.jsx("div",{className:"Step-desc",children:d}),f]})]})});const iGe=e=>{const{active:t,index:n,children:r,onClick:i,...a}=e;function o(s){i(n,s)}return P.jsx("div",{className:"Tabs-navItem",children:P.jsx("button",{className:Qt("Tabs-navLink",{active:t}),type:"button",role:"tab","aria-selected":t,onClick:o,...a,children:P.jsx("span",{children:r})})})},aGe=e=>{const{active:t,children:n,...r}=e;return P.jsx("div",{className:Qt("Tabs-pane",{active:t}),...r,role:"tabpanel",children:n})},oGe=L.forwardRef((e,t)=>{const{className:n,index:r=0,scrollable:i,hideNavIfOnlyOne:a,children:o,onChange:s}=e,[l,u]=c.useState({}),[d,f]=c.useState(r||0),m=c.useRef(d),p=c.useRef(null),v=[],h=[],g=Fre("tabs-");function w(x,C){f(x),s&&s(x,C)}L.Children.forEach(o,(x,C)=>{if(!x)return;const S=d===C,k=`${g}-${C}`;v.push(P.jsx(iGe,{active:S,index:C,onClick:w,"aria-controls":k,tabIndex:S?-1:0,children:x.props.label},k)),x.props.children&&h.push(P.jsx(aGe,{active:S,id:k,children:x.props.children},k))}),c.useEffect(()=>{f(r)},[r]);const b=c.useCallback(()=>{const x=p.current;if(!x)return;const C=x.children[m.current];if(!C)return;const S=C.querySelector("span");if(!S)return;const{offsetWidth:k,offsetLeft:_}=C,{width:$}=S.getBoundingClientRect(),E=Math.max($-16,26),T=_+k/2;u({transform:`translateX(${T-E/2}px)`,width:`${E}px`}),i&&Lre({el:x,to:T-x.offsetWidth/2,x:!0})},[i]);c.useEffect(()=>{const x=p.current;let C;return x&&"ResizeObserver"in window&&(C=new ResizeObserver(b),C.observe(x)),()=>{C&&x&&C.unobserve(x)}},[b]),c.useEffect(()=>{m.current=d,b()},[d,b]);const y=v.length>(a?1:0);return P.jsxs("div",{className:Qt("Tabs",{"Tabs--scrollable":i},n),ref:t,children:[y&&P.jsxs("div",{className:"Tabs-nav",role:"tablist",ref:p,children:[v,P.jsx("span",{className:"Tabs-navPointer",style:l})]}),P.jsx("div",{className:"Tabs-content",children:h})]})}),xy=L.forwardRef(({children:e},t)=>P.jsx("div",{ref:t,children:e})),sGe=L.forwardRef((e,t)=>{const{as:n="span",className:r,color:i,children:a,...o}=e;return P.jsx(n,{className:Qt("Tag",i&&`Tag--${i}`,r),ref:t,...o,children:a})});function lGe(e){switch(e){case"success":return P.jsx(pi,{type:"check-circle"});case"error":return P.jsx(pi,{type:"warning-circle"});case"loading":return P.jsx(pi,{type:"spinner",spin:!0});default:return null}}const cGe=e=>{const{content:t,type:n,duration:r=2e3,onUnmount:i}=e,[a,o]=c.useState(!1);return c.useEffect(()=>{o(!0),r!==-1&&(setTimeout(()=>{o(!1)},r),setTimeout(()=>{i&&i()},r+300))},[r,i]),P.jsx("div",{className:Qt("Toast",{show:a}),"data-type":n,role:"alert","aria-live":"assertive","aria-atomic":"true",children:P.jsxs("div",{className:"Toast-content",role:"presentation",children:[lGe(n),P.jsx("p",{className:"Toast-message",children:t})]})})};function Sy(e,t,n){rqe(P.jsx(cGe,{content:e,type:t,duration:n}))}const lo={show:Sy,success(e,t){Sy(e,"success",t)},fail(e,t){Sy(e,"error",t)},loading(e,t){Sy(e,"loading",t)}},uGe=e=>{const{item:t,onClick:n}=e,{type:r,icon:i,img:a,title:o}=t;return P.jsx("div",{className:"Toolbar-item","data-type":r,children:P.jsxs(_o,{className:"Toolbar-btn",onClick:s=>n(t,s),children:[P.jsxs("span",{className:"Toolbar-btnIcon",children:[i&&P.jsx(pi,{type:i}),a&&P.jsx("img",{className:"Toolbar-img",src:a,alt:""})]}),P.jsx("span",{className:"Toolbar-btnText",children:o})]})})},dGe=e=>{const{items:t,onClick:n}=e;return P.jsx("div",{className:"Toolbar",children:t.map(r=>P.jsx(uGe,{item:r,onClick:n},r.type))})};L.forwardRef((e,t)=>{const{className:n,children:r}=e;return P.jsx("div",{className:Qt("Tree",n),role:"tree",ref:t,children:r})});L.forwardRef((e,t)=>{const{title:n,content:r,link:i,children:a=[],onClick:o,onExpand:s}=e,[l,u]=c.useState(!1),d=a.length>0;function f(){d?(u(!l),s(n,!l)):o({title:n,content:r,link:i})}return P.jsxs("div",{className:"TreeNode",role:"treeitem","aria-expanded":l,ref:t,children:[P.jsxs("div",{className:"TreeNode-title",onClick:f,role:"treeitem","aria-expanded":l,tabIndex:0,children:[P.jsx("span",{className:"TreeNode-title-text",children:n}),d?P.jsx(pi,{className:"TreeNode-title-icon",type:l?"chevron-up":"chevron-down"}):null]}),d?a.map((m,p)=>P.jsx("div",{className:Qt("TreeNode-children",{"TreeNode-children-active":l}),children:P.jsx("div",{className:"TreeNode-title TreeNode-children-title",onClick:()=>o({...m,index:p}),role:"treeitem",children:P.jsx("span",{className:"TreeNode-title-text",children:m.title})})},p)):null]})});function fGe(e){if(!e)return"";const t=Math.floor(e/3600),n=Math.floor((e-t*3600)/60),r=Math.floor(e-t*3600-n*60);let i="";return t>0&&(i+=`${t}:`),i+=`${n}:`,r<10&&(i+="0"),i+=r,i}const mGe=L.forwardRef((e,t)=>{const{className:n,src:r,cover:i,duration:a,onClick:o,onCoverLoad:s,style:l,videoRef:u,children:d,...f}=e,m=c.useRef(null),p=c.useRef(null),v=u||p,[h,g]=c.useState(!1),[w,b]=c.useState(!0);function y(_){g(!0);const $=v.current;$&&($.ended||$.paused?$.play():$.pause()),o&&o(w,_)}function x(){b(!1)}function C(){b(!0)}const S=!h&&!!i,k=S&&!!a;return c.useImperativeHandle(t,()=>({wrapperRef:m})),P.jsxs("div",{className:Qt("Video",`Video--${w?"paused":"playing"}`,n),style:l,ref:m,children:[S&&P.jsx("img",{className:"Video-cover",src:i,onLoad:s,alt:""}),k&&P.jsx("span",{className:"Video-duration",children:fGe(+a)}),P.jsx("video",{className:"Video-video",src:r,ref:v,hidden:S,controls:!0,onPlay:x,onPause:C,onEnded:C,...f,children:d}),S&&P.jsx("button",{className:Qt("Video-playBtn",{paused:w}),type:"button",onClick:y,children:P.jsx("span",{className:"Video-playIcon"})})]})}),pGe=L.forwardRef((e,t)=>{const{fileUrl:n,children:r}=e,[i,a]=c.useState("");return c.useEffect(()=>{const o=n.split("/");a(o[o.length-1])},[n]),P.jsx(gs,{className:"FileCard",size:"xl",ref:t,children:P.jsxs(bo,{children:[P.jsx("div",{className:"FileCard-icon",children:P.jsx(pi,{type:"file"})}),P.jsxs(_0,{children:[P.jsx($S,{truncate:2,breakWord:!0,className:"FileCard-name",children:i}),P.jsx("div",{className:"FileCard-meta",children:r})]})]})})}),Hre=L.forwardRef((e,t)=>{const n=MN(),{className:r,type:i,img:a,name:o,desc:s,tags:l=[],locale:u,currency:d,price:f,count:m,unit:p,action:v,elderMode:h,children:g,originalPrice:w,meta:b,status:y,...x}=e,C=h||n.elderMode,S=i==="order"&&!C,k=i!=="order"&&!C,_={currency:d,locale:u},$=f!=null&&P.jsx(E7,{price:f,..._}),E=P.jsxs("div",{className:"Goods-countUnit",children:[m&&P.jsxs("span",{className:"Goods-count",children:["×",m]}),p&&P.jsx("span",{className:"Goods-unit",children:p})]});return P.jsxs(bo,{className:Qt("Goods",r),"data-type":i,"data-elder-mode":C,ref:t,...x,children:[a&&P.jsx("img",{className:"Goods-img",src:a,alt:o}),P.jsxs(_0,{className:"Goods-main",children:[k&&v&&P.jsx(ss,{className:"Goods-buyBtn",icon:"cart",...v}),P.jsx($S,{as:"h4",truncate:S?2:!0,className:"Goods-name",children:o}),P.jsx($S,{className:"Goods-desc",truncate:C,children:s}),C?P.jsxs(bo,{alignItems:"center",justifyContent:"space-between",children:[$,v&&P.jsx(_o,{size:"sm",...v})]}):P.jsx("div",{className:"Goods-tags",children:l.map(T=>P.jsx(sGe,{color:"primary",children:T.name},T.name))}),k&&P.jsxs(bo,{alignItems:"flex-end",children:[P.jsxs(_0,{children:[$,w&&P.jsx(E7,{price:w,original:!0,..._}),b&&P.jsx("span",{className:"Goods-meta",children:b})]}),E]}),g]}),S&&P.jsxs("div",{className:"Goods-aside",children:[$,E,P.jsx("span",{className:"Goods-status",children:y}),v&&P.jsx(_o,{className:"Goods-detailBtn",...v})]})]})}),vGe=({count:e,onClick:t,onDidMount:n})=>{const{trans:r}=Gf("BackBottom");let i=r("bottom");return e&&(i=r(e===1?"newMsgOne":"newMsgOther").replace("{n}",e)),c.useEffect(()=>{n&&n()},[n]),P.jsx("div",{className:"BackBottom",children:P.jsxs(_o,{className:"slide-in-right-item",onClick:t,children:[i,P.jsx(pi,{type:"chevron-double-down"})]})})};function hGe(e,t=300){let n=!0;return(...r)=>{n&&(n=!1,e(...r),setTimeout(()=>{n=!0},t))}}const O7=Kf("passiveListener")?{passive:!0}:!1;function v3(e,t){const n=Math.max(e.offsetHeight,600);return Mre(e){const{messages:n,isTyping:r,loadMoreText:i,onRefresh:a,onScroll:o,renderBeforeMessageList:s,renderMessageContent:l,onBackBottomShow:u,onBackBottomClick:d}=e,[f,m]=c.useState(!1),[p,v]=c.useState(0),h=c.useRef(f),g=c.useRef(p),w=c.useRef(null),b=c.useRef(null),y=n[n.length-1],x=()=>{v(0),m(!1)},C=c.useCallback($=>{b.current&&(!h.current||$&&$.force)&&(b.current.scrollToEnd($),h.current&&x())},[]),S=()=>{C({animated:!1,force:!0}),d&&d()},k=c.useRef(hGe($=>{v3($,3)?g.current?v3($,.5)&&x():m(!1):m(!0)})),_=$=>{k.current($.target),o&&o($)};return c.useEffect(()=>{g.current=p},[p]),c.useEffect(()=>{h.current=f},[f]),c.useEffect(()=>{const $=b.current,E=$&&$.wrapperRef.current;if(!(!E||!y||y.position==="pop"))if(y.position==="right")C({force:!0});else if(v3(E,2)){const T=!!E.scrollTop;C({animated:T,force:!0})}else v(T=>T+1),m(!0)},[y,C]),c.useEffect(()=>{C()},[r,C]),c.useEffect(()=>{const $=w.current;let E=!1,T=0;function M(){E=!1,T=0}function j(N){const{activeElement:O}=document;O&&O.nodeName==="TEXTAREA"&&(E=!0,T=N.touches[0].clientY)}function I(N){E&&Math.abs(N.touches[0].clientY-T)>20&&(document.activeElement.blur(),M())}return $.addEventListener("touchstart",j,O7),$.addEventListener("touchmove",I,O7),$.addEventListener("touchend",M),$.addEventListener("touchcancel",M),()=>{$.removeEventListener("touchstart",j),$.removeEventListener("touchmove",I),$.removeEventListener("touchend",M),$.removeEventListener("touchcancel",M)}},[]),c.useImperativeHandle(t,()=>({ref:w,scrollToEnd:C}),[C]),P.jsxs("div",{className:"MessageContainer",ref:w,tabIndex:-1,children:[s&&s(),P.jsx(Xqe,{onRefresh:a,onScroll:_,loadMoreText:i,ref:b,children:P.jsxs("div",{className:"MessageList",children:[n.map($=>c.createElement(k7,{...$,renderMessageContent:l,key:$._id})),r&&P.jsx(k7,{type:"typing",_id:"typing"})]})}),f&&P.jsx(vGe,{count:p,onClick:S,onDidMount:u})]})}),Vre=Kf("passiveListener"),bGe=Vre?{passive:!0}:!1,yGe=Vre?{passive:!1}:!1,I7=80,wGe={inited:"hold2talk",recording:"release2send",willCancel:"release2send"};let Th=0,h3=0;const xGe=L.forwardRef((e,t)=>{const{volume:n,onStart:r,onEnd:i,onCancel:a}=e,[o,s]=c.useState("inited"),l=c.useRef(null),{trans:u}=Gf("Recorder"),d=c.useCallback(()=>{const p=Date.now()-Th;i&&i({duration:p})},[i]);c.useImperativeHandle(t,()=>({stop(){s("inited"),d(),Th=0}})),c.useEffect(()=>{const p=l.current;function v(w){w.cancelable&&w.preventDefault(),h3=w.touches[0].pageY,Th=Date.now(),s("recording"),r&&r()}function h(w){if(!Th)return;const b=w.touches[0].pageY,y=h3-b>I7;s(y?"willCancel":"recording")}function g(w){if(!Th)return;const b=w.changedTouches[0].pageY,y=h3-b{p.removeEventListener("touchstart",v),p.removeEventListener("touchmove",h),p.removeEventListener("touchend",g),p.removeEventListener("touchcancel",g)}},[d,a,r]);const f=o==="willCancel",m={transform:`scale(${(n||1)/100+1})`};return P.jsxs("div",{className:Qt("Recorder",{"Recorder--cancel":f}),ref:l,children:[o!=="inited"&&P.jsxs(bo,{className:"RecorderToast",direction:"column",center:!0,children:[P.jsxs("div",{className:"RecorderToast-waves",hidden:o!=="recording",style:m,children:[P.jsx(pi,{className:"RecorderToast-wave-1",type:"hexagon"}),P.jsx(pi,{className:"RecorderToast-wave-2",type:"hexagon"}),P.jsx(pi,{className:"RecorderToast-wave-3",type:"hexagon"})]}),P.jsx(pi,{className:"RecorderToast-icon",type:f?"cancel":"mic"}),P.jsx("span",{children:u(f?"release2cancel":"releaseOrSwipe")})]}),P.jsx("div",{className:"Recorder-btn",role:"button","aria-label":u("hold2talk"),children:P.jsx("span",{children:u(wGe[o])})})]})}),SGe=({onClickOutside:e,children:t})=>P.jsx($qe,{onClick:e,children:t});function CGe(e){const t=c.useRef(!1);c.useEffect(()=>{function n(){e(),t.current=!1}function r(){t.current||(t.current=!0,window.requestAnimationFrame?window.requestAnimationFrame(n):setTimeout(n,66))}return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[e])}const kGe=e=>{const{className:t,active:n,target:r,children:i,onClose:a}=e,o=iqe(a,"mousedown"),{didMount:s,isShow:l}=Pre({active:n,ref:o}),[u,d]=c.useState({}),f=c.useCallback(()=>{if(!o.current)return;const m=r.getBoundingClientRect(),p=o.current.getBoundingClientRect();d({top:`${m.top-p.height}px`,left:`${m.left}px`})},[r,o]);return c.useEffect(()=>{o.current&&(o.current.focus(),f())},[s,f,o]),CGe(f),s?ki.createPortal(P.jsxs("div",{className:Qt("Popover",t,{active:l}),ref:o,style:u,children:[P.jsx("div",{className:"Popover-body",children:i}),P.jsx("svg",{className:"Popover-arrow",viewBox:"0 0 9 5",children:P.jsx("polygon",{points:"0,0 5,5, 9,0"})})]}),document.body):null},Hw=e=>P.jsx("div",{className:"Composer-actions","data-action-icon":e.icon,children:P.jsx(ss,{size:"lg",...e})}),_Ge=e=>{const{item:t,onClick:n}=e;return P.jsx(Hw,{icon:t.icon,img:t.img,"data-icon":t.icon,"data-tooltip":t.title||null,"aria-label":t.title,onClick:n})};function K1(){const e=Di();return{translateString:r=>r==null?r:r&&r.startsWith(jD)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(jD)?Pj(e.formatMessage({id:r}),10):Pj(r,10)}}const Wre=e=>{const{file:t,onCancel:n,onSend:r}=e,[i,a]=c.useState(""),[o,s]=c.useState(""),{translateString:l}=K1();return c.useEffect(()=>{const u=new FileReader;u.onload=m=>{m.target&&a(m.target.result)},u.readAsDataURL(t);const d=t.name.toLowerCase().split(".").pop();console.log("SendConfirm file:",d,t.size);let f="unknown";d==="jpg"||d==="jpeg"||d==="png"||d==="bmp"||d==="gif"?f=Fu:d==="mp4"||d==="avi"||d==="mov"?f=Qg:d==="mp3"||d==="wav"?f=SP:f=Sp,s(f)},[t]),P.jsx(Vqe,{className:"SendConfirm",title:l("i18n.preview.title"),active:!!i,vertical:!1,actions:[{label:l("i18n.cancel"),onClick:n},{label:l("i18n.send"),color:"primary",onClick:r}],children:P.jsxs(bo,{className:"SendConfirm-inner",center:!0,children:[o===Fu&&P.jsx(P.Fragment,{children:P.jsx("img",{src:i,alt:""})}),o===Qg&&P.jsx("div",{style:{width:"80%",height:"80%"},children:P.jsx("video",{controls:!0,style:{width:"100%",height:"100%"},children:P.jsx("source",{src:i,type:"video/mp4"})})}),o===SP&&P.jsx(P.Fragment,{children:P.jsx("audio",{controls:!0,children:P.jsx("source",{src:i,type:"audio/mp3"})})}),o===Sp&&P.jsx(P.Fragment,{children:P.jsxs("div",{className:"SendConfirm-file",children:[P.jsx("i",{className:"iconfont icon-fujian"}),P.jsx("span",{children:t.name})]})})]})})},E0=navigator.userAgent;function $Ge(){return/iPad|iPhone|iPod/.test(E0)}function EGe(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(E0)}function PGe(){return E0.includes("Safari/")||/OS 11_[0-3]\D/.test(E0)}function Ure(){const e=E0.match(/OS (\d+)_/);return e?+e[1]:0}const qre=$Ge();function TGe(){if(qre){if(PGe())return 0;if(Ure()<13)return 1}return 2}function OGe(e,t){const n=TGe();let r;const i=t||e,a=()=>{n!==0&&(n===1?document.body.scrollTop=document.body.scrollHeight:i.scrollIntoView(!1))};e.addEventListener("focus",()=>{setTimeout(a,300),r=setTimeout(a,1e3)}),e.addEventListener("blur",()=>{clearTimeout(r),n&&qre&&setTimeout(()=>{document.body.scrollIntoView()})})}function IGe(e,t){const{items:n}=e.clipboardData;if(n&&n.length)for(let r=0;r{const[i,a]=c.useState(null),o=c.useCallback(u=>{IGe(u,a)},[]),s=c.useCallback(()=>{a(null)},[]),l=c.useCallback(()=>{n&&i&&Promise.resolve(n(i)).then(()=>{a(null)})},[n,i]);return c.useEffect(()=>{if(RGe&&e.current){const u=document.querySelector(".Composer");OGe(e.current,u)}},[e]),P.jsxs("div",{className:Qt({"S--invisible":t}),children:[P.jsx($0,{className:"Composer-input",rows:1,autoSize:!0,enterKeyHint:"send",onPaste:n?o:void 0,ref:e,...r}),i&&P.jsx(Wre,{file:i,onCancel:s,onSend:l})]})},M7=({disabled:e,onClick:t})=>{const{trans:n}=Gf("Composer");return P.jsx("div",{className:"Composer-actions",children:P.jsx(_o,{className:"Composer-sendBtn",disabled:e,onMouseDown:t,color:"primary",children:n("send")})})},N7="S--focusing",MGe=L.forwardRef((e,t)=>{const{text:n="",textOnce:r,inputType:i="text",wideBreakpoint:a,placeholder:o="请输入...",recorder:s={},onInputTypeChange:l,onFocus:u,onBlur:d,onChange:f,onSend:m,onImageSend:p,onAccessoryToggle:v,toolbar:h=[],onToolbarClick:g,rightAction:w,inputOptions:b}=e,[y,x]=c.useState(n),[C,S]=c.useState(""),[k,_]=c.useState(o),[$,E]=c.useState(i||"text"),[T,M]=c.useState(!1),[j,I]=c.useState(""),N=c.useRef(null),O=c.useRef(!1),D=c.useRef(),F=c.useRef(),z=c.useRef(!1),[R,H]=c.useState(!1);c.useEffect(()=>{const oe=a&&window.matchMedia?window.matchMedia(`(min-width: ${a})`):!1;function de(pe){H(pe.matches)}return H(oe&&oe.matches),oe&&oe.addListener(de),()=>{oe&&oe.removeListener(de)}},[a]),c.useEffect(()=>{$g("S--wide",R),R||I("")},[R]),c.useEffect(()=>{z.current&&v&&v(T)},[T,v]),c.useEffect(()=>{r?(S(r),_(r)):(S(""),_(o))},[o,r]),c.useEffect(()=>{z.current=!0},[]),c.useImperativeHandle(t,()=>({setText:x}));const V=c.useCallback(()=>{const oe=$==="voice",de=oe?"text":"voice";if(E(de),oe){const pe=N.current;pe.focus(),pe.selectionStart=pe.selectionEnd=pe.value.length}l&&l(de)},[$,l]),B=c.useCallback(oe=>{clearTimeout(D.current),$g(N7,!0),O.current=!0,u&&u(oe)},[u]),W=c.useCallback(oe=>{D.current=setTimeout(()=>{$g(N7,!1),O.current=!1},0),d&&d(oe)},[d]),q=c.useCallback(()=>{y?(m("text",y),x("")):C&&m("text",C),C&&(S(""),_(o)),O.current&&N.current.focus()},[o,m,y,C]),Q=c.useCallback(oe=>{!oe.shiftKey&&oe.keyCode===13&&(q(),oe.preventDefault())},[q]),G=c.useCallback((oe,de)=>{x(oe),f&&f(oe,de)},[f]),X=c.useCallback(oe=>{q(),oe.preventDefault()},[q]),re=c.useCallback(()=>{M(!T)},[T]),K=c.useCallback(()=>{setTimeout(()=>{M(!1),I("")})},[]),Y=c.useCallback((oe,de)=>{g&&g(oe,de),oe.render&&(F.current=de.currentTarget,I(oe.render))},[g]),Z=c.useCallback(()=>{I("")},[]),J=$==="text",ee=J?"volume-circle":"keyboard-circle",te=h.length>0,le={...b,value:y,inputRef:N,placeholder:k,onFocus:B,onBlur:W,onKeyDown:Q,onChange:G,onImageSend:p};return R?P.jsxs("div",{className:"Composer Composer--lg",children:[te&&h.map(oe=>P.jsx(_Ge,{item:oe,onClick:de=>Y(oe,de)},oe.type)),j&&P.jsx(kGe,{active:!!j,target:F.current,onClose:Z,children:j}),P.jsx("div",{className:"Composer-inputWrap",children:P.jsx(R7,{invisible:!1,...le})}),P.jsx(M7,{onClick:X,disabled:!y})]}):P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"Composer",children:[s.canRecord&&P.jsx(Hw,{className:"Composer-inputTypeBtn","data-icon":ee,icon:ee,onClick:V,"aria-label":J?"切换到语音输入":"切换到键盘输入"}),P.jsxs("div",{className:"Composer-inputWrap",children:[P.jsx(R7,{invisible:!J,...le}),!J&&P.jsx(xGe,{...s})]}),!y&&w&&P.jsx(Hw,{...w}),te&&P.jsx(Hw,{className:Qt("Composer-toggleBtn",{active:T}),icon:"plus-circle",onClick:re,"aria-label":T?"关闭工具栏":"展开工具栏"}),(y||C)&&P.jsx(M7,{onClick:X,disabled:!1})]}),T&&P.jsx(SGe,{onClickOutside:K,children:j||P.jsx(dGe,{items:h,onClick:Y})})]})}),NGe=L.forwardRef((e,t)=>{const{wideBreakpoint:n,locale:r="zh-CN",locales:i,elderMode:a,navbar:o,showTopTip:s,topTipContent:l,renderNavbar:u,loadMoreText:d,renderBeforeMessageList:f,messagesRef:m,onRefresh:p,onScroll:v,messages:h=[],isTyping:g,renderMessageContent:w,onBackBottomShow:b,onBackBottomClick:y,quickReplies:x=[],quickRepliesVisible:C,onQuickReplyClick:S=()=>{},onQuickReplyScroll:k,renderQuickReplies:_,text:$,textOnce:E,placeholder:T,onInputFocus:M,onInputChange:j,onInputBlur:I,onSend:N,onImageSend:O,inputOptions:D,composerRef:F,inputType:z,onInputTypeChange:R,recorder:H,toolbar:V,onToolbarClick:B,onAccessoryToggle:W,rightAction:q,Composer:Q=MGe,hideComposer:G}=e;function X(Y){m&&m.current&&m.current.scrollToEnd({animated:!1,force:!0}),M&&M(Y)}c.useEffect(()=>{const Y=document.documentElement;EGe()&&(Y.dataset.safari="");const Z=Ure();Z&&Z<11&&(Y.dataset.oldIos="")},[]);function re(Y){console.log("url",Y)}function K(){console.log("close")}return P.jsx(hqe,{locale:r,locales:i,elderMode:a,children:P.jsxs("div",{className:"ChatApp","data-elder-mode":a,ref:t,children:[u?u():o&&P.jsx(Uqe,{...o}),s&&P.jsx(qqe,{content:l,onClick:re,onClose:K}),P.jsx(gGe,{ref:m,loadMoreText:d,messages:h,isTyping:g,renderBeforeMessageList:f,renderMessageContent:w,onRefresh:p,onScroll:v,onBackBottomShow:b,onBackBottomClick:y}),P.jsxs("div",{className:"ChatFooter",children:[_?_():P.jsx(eGe,{items:x,visible:C,onClick:S,onScroll:k}),!G&&P.jsx(Q,{wideBreakpoint:n,ref:F,inputType:z,text:$,textOnce:E,inputOptions:D,placeholder:T,onAccessoryToggle:W,recorder:H,toolbar:V,onToolbarClick:B,onInputTypeChange:R,onFocus:X,onChange:j,onBlur:I,onSend:N,onImageSend:O,rightAction:q})]})]})})}),eg={LF:` +`,NULL:"\0"};class vu{constructor(t){const{command:n,headers:r,body:i,binaryBody:a,escapeHeaderValues:o,skipContentLengthHeader:s}=t;this.command=n,this.headers=Object.assign({},r||{}),a?(this._binaryBody=a,this.isBinaryBody=!0):(this._body=i||"",this.isBinaryBody=!1),this.escapeHeaderValues=o||!1,this.skipContentLengthHeader=s||!1}get body(){return!this._body&&this.isBinaryBody&&(this._body=new TextDecoder().decode(this._binaryBody)),this._body||""}get binaryBody(){return!this._binaryBody&&!this.isBinaryBody&&(this._binaryBody=new TextEncoder().encode(this._body)),this._binaryBody}static fromRawFrame(t,n){const r={},i=a=>a.replace(/^\s+|\s+$/g,"");for(const a of t.headers.reverse()){a.indexOf(":");const o=i(a[0]);let s=i(a[1]);n&&t.command!=="CONNECT"&&t.command!=="CONNECTED"&&(s=vu.hdrValueUnEscape(s)),r[o]=s}return new vu({command:t.command,headers:r,binaryBody:t.binaryBody,escapeHeaderValues:n})}toString(){return this.serializeCmdAndHeaders()}serialize(){const t=this.serializeCmdAndHeaders();return this.isBinaryBody?vu.toUnit8Array(t,this._binaryBody).buffer:t+this._body+eg.NULL}serializeCmdAndHeaders(){const t=[this.command];this.skipContentLengthHeader&&delete this.headers["content-length"];for(const n of Object.keys(this.headers||{})){const r=this.headers[n];this.escapeHeaderValues&&this.command!=="CONNECT"&&this.command!=="CONNECTED"?t.push(`${n}:${vu.hdrValueEscape(`${r}`)}`):t.push(`${n}:${r}`)}return(this.isBinaryBody||!this.isBodyEmpty()&&!this.skipContentLengthHeader)&&t.push(`content-length:${this.bodyLength()}`),t.join(eg.LF)+eg.LF+eg.LF}isBodyEmpty(){return this.bodyLength()===0}bodyLength(){const t=this.binaryBody;return t?t.length:0}static sizeOfUTF8(t){return t?new TextEncoder().encode(t).length:0}static toUnit8Array(t,n){const r=new TextEncoder().encode(t),i=new Uint8Array([0]),a=new Uint8Array(r.length+n.length+i.length);return a.set(r),a.set(n,r.length),a.set(i,r.length+n.length),a}static marshall(t){return new vu(t).serialize()}static hdrValueEscape(t){return t.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/:/g,"\\c")}static hdrValueUnEscape(t){return t.replace(/\\r/g,"\r").replace(/\\n/g,` +`).replace(/\\c/g,":").replace(/\\\\/g,"\\")}}const D7=0,Cy=10,ky=13,DGe=58;class jGe{constructor(t,n){this.onFrame=t,this.onIncomingPing=n,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()}parseChunk(t,n=!1){let r;if(typeof t=="string"?r=this._encoder.encode(t):r=new Uint8Array(t),n&&r[r.length-1]!==0){const i=new Uint8Array(r.length+1);i.set(r,0),i[r.length]=0,r=i}for(let i=0;in[0]==="content-length")[0];t?(this._bodyBytesRemaining=parseInt(t[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}_collectBodyNullTerminated(t){if(t===D7){this._retrievedBody();return}this._consumeByte(t)}_collectBodyFixedSize(t){if(this._bodyBytesRemaining--===0){this._retrievedBody();return}this._consumeByte(t)}_retrievedBody(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(t){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",t)}this._initState()}_consumeByte(t){this._token.push(t)}_consumeTokenAsUTF8(){return this._decoder.decode(this._consumeTokenAsRaw())}_consumeTokenAsRaw(){const t=new Uint8Array(this._token);return this._token=[],t}_initState(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}}var vc;(function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED"})(vc=vc||(vc={}));var Ho;(function(e){e[e.ACTIVE=0]="ACTIVE",e[e.DEACTIVATING=1]="DEACTIVATING",e[e.INACTIVE=2]="INACTIVE"})(Ho=Ho||(Ho={}));class ga{constructor(t){this.versions=t}supportedVersions(){return this.versions.join(",")}protocolVersions(){return this.versions.map(t=>`v${t.replace(".","")}.stomp`)}}ga.V1_0="1.0";ga.V1_1="1.1";ga.V1_2="1.2";ga.default=new ga([ga.V1_2,ga.V1_1,ga.V1_0]);function FGe(e,t){e.terminate=function(){const n=()=>{};this.onerror=n,this.onmessage=n,this.onopen=n;const r=new Date,i=Math.random().toString().substring(2,8),a=this.onclose;this.onclose=o=>{const s=new Date().getTime()-r.getTime();t(`Discarded socket (#${i}) closed after ${s}ms, with code/reason: ${o.code}/${o.reason}`)},this.close(),a==null||a.call(e,{code:4001,reason:`Quick discarding socket (#${i}) without waiting for the shutdown sequence.`,wasClean:!1})}}class AGe{constructor(t,n,r){this._client=t,this._webSocket=n,this._connected=!1,this._serverFrameHandlers={CONNECTED:i=>{this.debug(`connected to server ${i.headers.server}`),this._connected=!0,this._connectedVersion=i.headers.version,this._connectedVersion===ga.V1_2&&(this._escapeHeaderValues=!0),this._setupHeartbeat(i.headers),this.onConnect(i)},MESSAGE:i=>{const a=i.headers.subscription,o=this._subscriptions[a]||this.onUnhandledMessage,s=i,l=this,u=this._connectedVersion===ga.V1_2?s.headers.ack:s.headers["message-id"];s.ack=(d={})=>l.ack(u,a,d),s.nack=(d={})=>l.nack(u,a,d),o(s)},RECEIPT:i=>{const a=this._receiptWatchers[i.headers["receipt-id"]];a?(a(i),delete this._receiptWatchers[i.headers["receipt-id"]]):this.onUnhandledReceipt(i)},ERROR:i=>{this.onStompError(i)}},this._counter=0,this._subscriptions={},this._receiptWatchers={},this._partialData="",this._escapeHeaderValues=!1,this._lastServerActivityTS=Date.now(),this.debug=r.debug,this.stompVersions=r.stompVersions,this.connectHeaders=r.connectHeaders,this.disconnectHeaders=r.disconnectHeaders,this.heartbeatIncoming=r.heartbeatIncoming,this.heartbeatOutgoing=r.heartbeatOutgoing,this.splitLargeFrames=r.splitLargeFrames,this.maxWebSocketChunkSize=r.maxWebSocketChunkSize,this.forceBinaryWSFrames=r.forceBinaryWSFrames,this.logRawCommunication=r.logRawCommunication,this.appendMissingNULLonIncoming=r.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=r.discardWebsocketOnCommFailure,this.onConnect=r.onConnect,this.onDisconnect=r.onDisconnect,this.onStompError=r.onStompError,this.onWebSocketClose=r.onWebSocketClose,this.onWebSocketError=r.onWebSocketError,this.onUnhandledMessage=r.onUnhandledMessage,this.onUnhandledReceipt=r.onUnhandledReceipt,this.onUnhandledFrame=r.onUnhandledFrame}get connectedVersion(){return this._connectedVersion}get connected(){return this._connected}start(){const t=new jGe(n=>{const r=vu.fromRawFrame(n,this._escapeHeaderValues);this.logRawCommunication||this.debug(`<<< ${r}`),(this._serverFrameHandlers[r.command]||this.onUnhandledFrame)(r)},()=>{this.debug("<<< PONG")});this._webSocket.onmessage=n=>{if(this.debug("Received data"),this._lastServerActivityTS=Date.now(),this.logRawCommunication){const r=n.data instanceof ArrayBuffer?new TextDecoder().decode(n.data):n.data;this.debug(`<<< ${r}`)}t.parseChunk(n.data,this.appendMissingNULLonIncoming)},this._webSocket.onclose=n=>{this.debug(`Connection closed to ${this._webSocket.url}`),this._cleanUp(),this.onWebSocketClose(n)},this._webSocket.onerror=n=>{this.onWebSocketError(n)},this._webSocket.onopen=()=>{const n=Object.assign({},this.connectHeaders);this.debug("Web Socket Opened..."),n["accept-version"]=this.stompVersions.supportedVersions(),n["heart-beat"]=[this.heartbeatOutgoing,this.heartbeatIncoming].join(","),this._transmit({command:"CONNECT",headers:n})}}_setupHeartbeat(t){if(t.version!==ga.V1_1&&t.version!==ga.V1_2||!t["heart-beat"])return;const[n,r]=t["heart-beat"].split(",").map(i=>parseInt(i,10));if(this.heartbeatOutgoing!==0&&r!==0){const i=Math.max(this.heartbeatOutgoing,r);this.debug(`send PING every ${i}ms`),this._pinger=setInterval(()=>{this._webSocket.readyState===vc.OPEN&&(this._webSocket.send(eg.LF),this.debug(">>> PING"))},i)}if(this.heartbeatIncoming!==0&&n!==0){const i=Math.max(this.heartbeatIncoming,n);this.debug(`check PONG every ${i}ms`),this._ponger=setInterval(()=>{const a=Date.now()-this._lastServerActivityTS;a>i*2&&(this.debug(`did not receive server activity for the last ${a}ms`),this._closeOrDiscardWebsocket())},i)}}_closeOrDiscardWebsocket(){this.discardWebsocketOnCommFailure?(this.debug("Discarding websocket, the underlying socket may linger for a while"),this.discardWebsocket()):(this.debug("Issuing close on the websocket"),this._closeWebsocket())}forceDisconnect(){this._webSocket&&(this._webSocket.readyState===vc.CONNECTING||this._webSocket.readyState===vc.OPEN)&&this._closeOrDiscardWebsocket()}_closeWebsocket(){this._webSocket.onmessage=()=>{},this._webSocket.close()}discardWebsocket(){typeof this._webSocket.terminate!="function"&&FGe(this._webSocket,t=>this.debug(t)),this._webSocket.terminate()}_transmit(t){const{command:n,headers:r,body:i,binaryBody:a,skipContentLengthHeader:o}=t,s=new vu({command:n,headers:r,body:i,binaryBody:a,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:o});let l=s.serialize();if(this.logRawCommunication?this.debug(`>>> ${l}`):this.debug(`>>> ${s}`),this.forceBinaryWSFrames&&typeof l=="string"&&(l=new TextEncoder().encode(l)),typeof l!="string"||!this.splitLargeFrames)this._webSocket.send(l);else{let u=l;for(;u.length>0;){const d=u.substring(0,this.maxWebSocketChunkSize);u=u.substring(this.maxWebSocketChunkSize),this._webSocket.send(d),this.debug(`chunk sent = ${d.length}, remaining = ${u.length}`)}}}dispose(){if(this.connected)try{const t=Object.assign({},this.disconnectHeaders);t.receipt||(t.receipt=`close-${this._counter++}`),this.watchForReceipt(t.receipt,n=>{this._closeWebsocket(),this._cleanUp(),this.onDisconnect(n)}),this._transmit({command:"DISCONNECT",headers:t})}catch(t){this.debug(`Ignoring error during disconnect ${t}`)}else(this._webSocket.readyState===vc.CONNECTING||this._webSocket.readyState===vc.OPEN)&&this._closeWebsocket()}_cleanUp(){this._connected=!1,this._pinger&&(clearInterval(this._pinger),this._pinger=void 0),this._ponger&&(clearInterval(this._ponger),this._ponger=void 0)}publish(t){const{destination:n,headers:r,body:i,binaryBody:a,skipContentLengthHeader:o}=t,s=Object.assign({destination:n},r);this._transmit({command:"SEND",headers:s,body:i,binaryBody:a,skipContentLengthHeader:o})}watchForReceipt(t,n){this._receiptWatchers[t]=n}subscribe(t,n,r={}){r=Object.assign({},r),r.id||(r.id=`sub-${this._counter++}`),r.destination=t,this._subscriptions[r.id]=n,this._transmit({command:"SUBSCRIBE",headers:r});const i=this;return{id:r.id,unsubscribe(a){return i.unsubscribe(r.id,a)}}}unsubscribe(t,n={}){n=Object.assign({},n),delete this._subscriptions[t],n.id=t,this._transmit({command:"UNSUBSCRIBE",headers:n})}begin(t){const n=t||`tx-${this._counter++}`;this._transmit({command:"BEGIN",headers:{transaction:n}});const r=this;return{id:n,commit(){r.commit(n)},abort(){r.abort(n)}}}commit(t){this._transmit({command:"COMMIT",headers:{transaction:t}})}abort(t){this._transmit({command:"ABORT",headers:{transaction:t}})}ack(t,n,r={}){r=Object.assign({},r),this._connectedVersion===ga.V1_2?r.id=t:r["message-id"]=t,r.subscription=n,this._transmit({command:"ACK",headers:r})}nack(t,n,r={}){return r=Object.assign({},r),this._connectedVersion===ga.V1_2?r.id=t:r["message-id"]=t,r.subscription=n,this._transmit({command:"NACK",headers:r})}}class LGe{constructor(t={}){this.stompVersions=ga.default,this.connectionTimeout=0,this.reconnectDelay=5e3,this.heartbeatIncoming=1e4,this.heartbeatOutgoing=1e4,this.splitLargeFrames=!1,this.maxWebSocketChunkSize=8*1024,this.forceBinaryWSFrames=!1,this.appendMissingNULLonIncoming=!1,this.discardWebsocketOnCommFailure=!1,this.state=Ho.INACTIVE;const n=()=>{};this.debug=n,this.beforeConnect=n,this.onConnect=n,this.onDisconnect=n,this.onUnhandledMessage=n,this.onUnhandledReceipt=n,this.onUnhandledFrame=n,this.onStompError=n,this.onWebSocketClose=n,this.onWebSocketError=n,this.logRawCommunication=!1,this.onChangeState=n,this.connectHeaders={},this._disconnectHeaders={},this.configure(t)}get webSocket(){var t;return(t=this._stompHandler)==null?void 0:t._webSocket}get disconnectHeaders(){return this._disconnectHeaders}set disconnectHeaders(t){this._disconnectHeaders=t,this._stompHandler&&(this._stompHandler.disconnectHeaders=this._disconnectHeaders)}get connected(){return!!this._stompHandler&&this._stompHandler.connected}get connectedVersion(){return this._stompHandler?this._stompHandler.connectedVersion:void 0}get active(){return this.state===Ho.ACTIVE}_changeState(t){this.state=t,this.onChangeState(t)}configure(t){Object.assign(this,t)}activate(){const t=()=>{if(this.active){this.debug("Already ACTIVE, ignoring request to activate");return}this._changeState(Ho.ACTIVE),this._connect()};this.state===Ho.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(()=>{t()})):t()}async _connect(){if(await this.beforeConnect(),this._stompHandler){this.debug("There is already a stompHandler, skipping the call to connect");return}if(!this.active){this.debug("Client has been marked inactive, will not attempt to connect");return}this.connectionTimeout>0&&(this._connectionWatcher&&clearTimeout(this._connectionWatcher),this._connectionWatcher=setTimeout(()=>{this.connected||(this.debug(`Connection not established in ${this.connectionTimeout}ms, closing socket`),this.forceDisconnect())},this.connectionTimeout)),this.debug("Opening Web Socket...");const t=this._createWebSocket();this._stompHandler=new AGe(this,t,{debug:this.debug,stompVersions:this.stompVersions,connectHeaders:this.connectHeaders,disconnectHeaders:this._disconnectHeaders,heartbeatIncoming:this.heartbeatIncoming,heartbeatOutgoing:this.heartbeatOutgoing,splitLargeFrames:this.splitLargeFrames,maxWebSocketChunkSize:this.maxWebSocketChunkSize,forceBinaryWSFrames:this.forceBinaryWSFrames,logRawCommunication:this.logRawCommunication,appendMissingNULLonIncoming:this.appendMissingNULLonIncoming,discardWebsocketOnCommFailure:this.discardWebsocketOnCommFailure,onConnect:n=>{if(this._connectionWatcher&&(clearTimeout(this._connectionWatcher),this._connectionWatcher=void 0),!this.active){this.debug("STOMP got connected while deactivate was issued, will disconnect now"),this._disposeStompHandler();return}this.onConnect(n)},onDisconnect:n=>{this.onDisconnect(n)},onStompError:n=>{this.onStompError(n)},onWebSocketClose:n=>{this._stompHandler=void 0,this.state===Ho.DEACTIVATING&&this._changeState(Ho.INACTIVE),this.onWebSocketClose(n),this.active&&this._schedule_reconnect()},onWebSocketError:n=>{this.onWebSocketError(n)},onUnhandledMessage:n=>{this.onUnhandledMessage(n)},onUnhandledReceipt:n=>{this.onUnhandledReceipt(n)},onUnhandledFrame:n=>{this.onUnhandledFrame(n)}}),this._stompHandler.start()}_createWebSocket(){let t;if(this.webSocketFactory)t=this.webSocketFactory();else if(this.brokerURL)t=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions());else throw new Error("Either brokerURL or webSocketFactory must be provided");return t.binaryType="arraybuffer",t}_schedule_reconnect(){this.reconnectDelay>0&&(this.debug(`STOMP: scheduling reconnection in ${this.reconnectDelay}ms`),this._reconnector=setTimeout(()=>{this._connect()},this.reconnectDelay))}async deactivate(t={}){var a;const n=t.force||!1,r=this.active;let i;if(this.state===Ho.INACTIVE)return this.debug("Already INACTIVE, nothing more to do"),Promise.resolve();if(this._changeState(Ho.DEACTIVATING),this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==vc.CLOSED){const o=this._stompHandler.onWebSocketClose;i=new Promise((s,l)=>{this._stompHandler.onWebSocketClose=u=>{o(u),s()}})}else return this._changeState(Ho.INACTIVE),Promise.resolve();return n?(a=this._stompHandler)==null||a.discardWebsocket():r&&this._disposeStompHandler(),i}forceDisconnect(){this._stompHandler&&this._stompHandler.forceDisconnect()}_disposeStompHandler(){this._stompHandler&&this._stompHandler.dispose()}publish(t){this._checkConnection(),this._stompHandler.publish(t)}_checkConnection(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}watchForReceipt(t,n){this._checkConnection(),this._stompHandler.watchForReceipt(t,n)}subscribe(t,n,r={}){return this._checkConnection(),this._stompHandler.subscribe(t,n,r)}unsubscribe(t,n={}){this._checkConnection(),this._stompHandler.unsubscribe(t,n)}begin(t){return this._checkConnection(),this._stompHandler.begin(t)}commit(t){this._checkConnection(),this._stompHandler.commit(t)}abort(t){this._checkConnection(),this._stompHandler.abort(t)}ack(t,n,r={}){this._checkConnection(),this._stompHandler.ack(t,n,r)}nack(t,n,r={}){this._checkConnection(),this._stompHandler.nack(t,n,r)}}async function BGe(e){return or("/visitor/v1/message/query/topic",{method:"GET",params:{...e}})}async function zGe(e){return or("/visitor/v1/message/query/thread/uid",{method:"GET",params:{...e}})}async function HGe(e){if(!(e==null||e===""))return or("/visitor/api/v1/ping",{method:"GET",params:{uid:e,client:On}})}async function VGe(e){return or("/visitor/api/v1/message/unread",{method:"GET",params:{uid:e,client:On}})}async function WGe(e){return or("/visitor/api/v1/message/send",{method:"POST",data:{json:e,client:On}})}async function UGe(e,t){console.log("sendMessageSSE: ",e);const n=`${R2()}/visitor/api/v1/message/sse?message=${e}`,r=new EventSource(n,{withCredentials:!1});r.onopen=i=>{console.log("sendMessageSSE onopen:",i.target)},r.onmessage=i=>{const a=JSON.parse(i.data);if(a.type==$ve){console.log("sendMessageSSE stream end"),Zr.emit(jG),r&&r.close();return}else t(a)},r.onerror=i=>{console.log("sendMessageSSE onerror:",i),r.readyState===EventSource.CLOSED?console.log("sendMessageSSE connection is closed"):console.log("sendMessageSSE Error occurred",i),r.close()},r.addEventListener("customEventName",i=>{console.log("sendMessageSSE Message id is "+i.lastEventId)})}let Li,Ed,hu;const j7=({username:e,topic:t,orgUid:n})=>(console.log("stomp connect:",e,t,n),hu=[],Li=new LGe({brokerURL:Nwe(),connectHeaders:{login:e||""},heartbeatIncoming:10*1e3,heartbeatOutgoing:10*1e3,debug:function(r){Ji&&console.log("stomp debug:",r)}}),Li.onConnect=function(r){console.log("stomp onConnect: ",r),qGe({topic:t,orgUid:n})},Li.onDisconnect=function(r){console.log("stomp onDisconnect:",r),hu=[]},Li.onWebSocketClose=r=>{console.log("stomp onWebSocketClose:",r),hu=[]},Li.onWebSocketError=r=>{console.error("stomp onWebSocketError",r),hu=[]},Li.onStompError=function(r){console.error("stomp onStompError: ",r.headers.message),console.error("stomp Additional details: ",r.body),hu=[]},Li.activate(),Li),qGe=({topic:e,orgUid:t})=>{if(Ed=e.replace(/\//g,"."),console.log("stomp stompSubscribe: ",Ed),Li==null){console.log("stomp stompClient is null");return}hu.includes(Ed)||(hu.push(Ed),Li.subscribe("/topic/"+Ed,n=>{if(n.body){const r=JSON.parse(n.body);if(Vwe(r)){if(console.log("receive self message:",r),Wwe(r)||(r==null?void 0:r.type)===JI&&(lo.success("评价成功"),yw(r),r.content&&r.content.length>0))return;if(r.type===YI){lo.success("留言成功"),yw(r);return}if(r.type===jx||r.type===Ove)return;console.log("receive self message success:",r==null?void 0:r.content),r.status=GI}else{switch(console.log("receive other message:",r),r.type){case QI:case LG:console.log("receive receipt message:",r),yw(r);return;case AG:Zr.emit(eve);return;case _ve:Zr.emit(tve);return;case Eve:Uwe(r);return;case XI:case Mve:case Nve:case Dve:case jve:case Fve:case Ave:return;case Jg:Zr.emit(jG);break;case Lve:window.parent.postMessage({type:qve},"*");break;case Bve:window.parent.postMessage({type:Gve},"*");break;case zve:window.parent.postMessage({type:Kve},"*");break}r.type!==zG&&Fwe(),eKe(t,r)}_2.getState().addMessage(r)}else console.log("empty message");n.ack()},{ack:"client"}))},_c=e=>{if(console.log("stomp stompSendTextMessage:",Ed,e),!GGe()){ZGe(e),console.log("stomp stompClient is null, sendHttpMessage");return}Li.publish({destination:"/app/"+Ed,body:e})},GGe=()=>Li!=null&&(Li==null?void 0:Li.connected),KGe=()=>{console.log("stomp stompDisconnect"),Li!=null&&(Li.deactivate(),hu=[])},YGe=({uid:e,faq:t,thread:n,visitor:r})=>{const i={orgUid:localStorage.getItem(cv)||""},a={uid:e,type:jx,content:JSON.stringify(t),status:Sc,createdAt:yl(),client:On,extra:JSON.stringify(i),thread:n,user:r},o=JSON.stringify(a);_c(o)},XGe=({uid:e,contact:t,content:n,images:r,thread:i,visitor:a})=>{const o={uid:e||"",contact:t,content:n,images:r,orgUid:localStorage.getItem(cv)||""},s={uid:e,type:YI,content:e,status:Sc,createdAt:yl(),client:On,extra:JSON.stringify(o),thread:i,user:a},l=JSON.stringify(s);_c(l)},QGe=({thread:e,visitor:t})=>{const n={orgUid:localStorage.getItem(cv)},r={uid:Qi(),type:uw,content:"",status:Sc,createdAt:yl(),client:On,extra:JSON.stringify(n),thread:e,user:t},i=JSON.stringify(r);_c(i)},JGe=({uid:e,score:t,content:n,thread:r,visitor:i})=>{const a={uid:e,score:t,content:n||"",orgUid:localStorage.getItem(cv)||""},o={uid:Qi(),type:JI,content:e,status:Sc,createdAt:yl(),client:On,extra:JSON.stringify(a),thread:r,user:i},s=JSON.stringify(o);_c(s)},ZGe=async e=>{const t=await WGe(e);if(console.log("sendHttpMessage:",e,t),t.data.code===200){const n=JSON.parse(e);n.content=n.uid,n.type=GI,yw(n),(n==null?void 0:n.type)===JI&&lo.success("评价成功"),(n==null?void 0:n.type)===YI&&lo.success("留言成功")}else lo.fail(t.data.message)},F7=new Set,eKe=(e,t)=>{if(Lwe(t==null?void 0:t.type)){const n=(t==null?void 0:t.uid)||"";if(!F7.has(n)){F7.add(n);const r={orgUid:e},i={uid:Qi(),type:QI,status:Sc,content:t==null?void 0:t.uid,thread:t==null?void 0:t.thread,extra:JSON.stringify(r),client:On,user:{uid:localStorage.getItem(Jm)}};_c(JSON.stringify(i))}}};var E6={exports:{}};(function(e,t){(function(n,r){var i="1.0.39",a="",o="?",s="function",l="undefined",u="object",d="string",f="major",m="model",p="name",v="type",h="vendor",g="version",w="architecture",b="console",y="mobile",x="tablet",C="smarttv",S="wearable",k="embedded",_=500,$="Amazon",E="Apple",T="ASUS",M="BlackBerry",j="Browser",I="Chrome",N="Edge",O="Firefox",D="Google",F="Huawei",z="LG",R="Microsoft",H="Motorola",V="Opera",B="Samsung",W="Sharp",q="Sony",Q="Xiaomi",G="Zebra",X="Facebook",re="Chromium OS",K="Mac OS",Y=" Browser",Z=function(se,ve){var he={};for(var _e in se)ve[_e]&&ve[_e].length%2===0?he[_e]=ve[_e].concat(se[_e]):he[_e]=se[_e];return he},J=function(se){for(var ve={},he=0;he0?De.length===2?typeof De[1]==s?this[De[0]]=De[1].call(this,ye):this[De[0]]=De[1]:De.length===3?typeof De[1]===s&&!(De[1].exec&&De[1].test)?this[De[0]]=ye?De[1].call(this,ye,De[2]):r:this[De[0]]=ye?ye.replace(De[1],De[2]):r:De.length===4&&(this[De[0]]=ye?De[3].call(this,ye.replace(De[1],De[2])):r):this[De]=ye||r;he+=2}},pe=function(se,ve){for(var he in ve)if(typeof ve[he]===u&&ve[he].length>0){for(var _e=0;_e2&&(xe[m]="iPad",xe[v]=x),xe},this.getEngine=function(){var xe={};return xe[p]=r,xe[g]=r,de.call(xe,_e,Pe.engine),xe},this.getOS=function(){var xe={};return xe[p]=r,xe[g]=r,de.call(xe,_e,Pe.os),De&&!xe[p]&&Se&&Se.platform&&Se.platform!="Unknown"&&(xe[p]=Se.platform.replace(/chrome os/i,re).replace(/macos/i,K)),xe},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return _e},this.setUA=function(xe){return _e=typeof xe===d&&xe.length>_?oe(xe,_):xe,this},this.setUA(_e),this};ue.VERSION=i,ue.BROWSER=J([p,g,f]),ue.CPU=J([w]),ue.DEVICE=J([m,h,v,b,y,C,x,S,k]),ue.ENGINE=ue.OS=J([p,g]),e.exports&&(t=e.exports=ue),t.UAParser=ue;var ce=typeof n!==l&&(n.jQuery||n.Zepto);if(ce&&!ce.ua){var $e=new ue;ce.ua=$e.getResult(),ce.ua.get=function(){return $e.getUA()},ce.ua.set=function(se){$e.setUA(se);var ve=$e.getResult();for(var he in ve)ce.ua[he]=ve[he]}}})(typeof window=="object"?window:yi)})(E6,E6.exports);var tKe=E6.exports;const nKe=qn(tKe);var Gre={exports:{}},rKe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",iKe=rKe,aKe=iKe;function Kre(){}function Yre(){}Yre.resetWarningCache=Kre;var oKe=function(){function e(r,i,a,o,s,l){if(l!==aKe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Yre,resetWarningCache:Kre};return n.PropTypes=n,n};Gre.exports=oKe();var sKe=Gre.exports;const mr=qn(sKe),lKe=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Hp(e,t,n){const r=cKe(e),{webkitRelativePath:i}=e,a=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&A7(r,"path",a),A7(r,"relativePath",a),r}function cKe(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=lKe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function A7(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const uKe=[".DS_Store","Thumbs.db"];function dKe(e){return Mf(this,void 0,void 0,function*(){return ES(e)&&fKe(e.dataTransfer)?hKe(e.dataTransfer,e.type):mKe(e)?pKe(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?vKe(e):[]})}function fKe(e){return ES(e)}function mKe(e){return ES(e)&&ES(e.target)}function ES(e){return typeof e=="object"&&e!==null}function pKe(e){return P6(e.target.files).map(t=>Hp(t))}function vKe(e){return Mf(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Hp(n))})}function hKe(e,t){return Mf(this,void 0,void 0,function*(){if(e.items){const n=P6(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(gKe));return L7(Xre(r))}return L7(P6(e.files).map(n=>Hp(n)))})}function L7(e){return e.filter(t=>uKe.indexOf(t.name)===-1)}function P6(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?Xre(n):[n]],[])}function B7(e,t){return Mf(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const o=yield a.getFile();return o.handle=a,Hp(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return Hp(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function bKe(e){return Mf(this,void 0,void 0,function*(){return e.isDirectory?Qre(e):yKe(e)})}function Qre(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function a(){t.readEntries(o=>Mf(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(bKe));i.push(s),a()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),o=>{r(o)})}a()})}function yKe(e){return Mf(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=Hp(r,e.fullPath);t(i)},r=>{n(r)})})})}var g3=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function z7(e){return SKe(e)||xKe(e)||Zre(e)||wKe()}function wKe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xKe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SKe(e){if(Array.isArray(e))return T6(e)}function H7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V7(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:EKe,message:"File type must be ".concat(r)}},W7=function(t){return{code:PKe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},U7=function(t){return{code:TKe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},RKe={code:OKe,message:"Too many files"};function eie(e,t){var n=e.type==="application/x-moz-file"||$Ke(e,t);return[n,n?null:IKe(t)]}function tie(e,t,n){if(Pd(e.size))if(Pd(t)&&Pd(n)){if(e.size>n)return[!1,W7(n)];if(e.sizen)return[!1,W7(n)]}return[!0,null]}function Pd(e){return e!=null}function MKe(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(l){var u=eie(l,n),d=P0(u,1),f=d[0],m=tie(l,r,i),p=P0(m,1),v=p[0],h=s?s(l):null;return f&&v&&!h})}function PS(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function _y(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function q7(e){e.preventDefault()}function NKe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function DKe(e){return e.indexOf("Edge/")!==-1}function jKe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return NKe(e)||DKe(e)}function pl(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZKe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var FN=c.forwardRef(function(e,t){var n=e.children,r=TS(e,HKe),i=oie(r),a=i.open,o=TS(i,VKe);return c.useImperativeHandle(t,function(){return{open:a}},[a]),L.createElement(c.Fragment,null,n(Dr(Dr({},o),{},{open:a})))});FN.displayName="Dropzone";var aie={disabled:!1,getFilesFromEvent:dKe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};FN.defaultProps=aie;FN.propTypes={children:mr.func,accept:mr.objectOf(mr.arrayOf(mr.string)),multiple:mr.bool,preventDropOnDocument:mr.bool,noClick:mr.bool,noKeyboard:mr.bool,noDrag:mr.bool,noDragEventsBubbling:mr.bool,minSize:mr.number,maxSize:mr.number,maxFiles:mr.number,disabled:mr.bool,getFilesFromEvent:mr.func,onFileDialogCancel:mr.func,onFileDialogOpen:mr.func,useFsAccessApi:mr.bool,autoFocus:mr.bool,onDragEnter:mr.func,onDragLeave:mr.func,onDragOver:mr.func,onDrop:mr.func,onDropAccepted:mr.func,onDropRejected:mr.func,onError:mr.func,validator:mr.func};var R6={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function oie(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Dr(Dr({},aie),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,m=t.onDrop,p=t.onDropAccepted,v=t.onDropRejected,h=t.onFileDialogCancel,g=t.onFileDialogOpen,w=t.useFsAccessApi,b=t.autoFocus,y=t.preventDropOnDocument,x=t.noClick,C=t.noKeyboard,S=t.noDrag,k=t.noDragEventsBubbling,_=t.onError,$=t.validator,E=c.useMemo(function(){return LKe(n)},[n]),T=c.useMemo(function(){return AKe(n)},[n]),M=c.useMemo(function(){return typeof g=="function"?g:K7},[g]),j=c.useMemo(function(){return typeof h=="function"?h:K7},[h]),I=c.useRef(null),N=c.useRef(null),O=c.useReducer(eYe,R6),D=b3(O,2),F=D[0],z=D[1],R=F.isFocused,H=F.isFileDialogActive,V=c.useRef(typeof window<"u"&&window.isSecureContext&&w&&FKe()),B=function(){!V.current&&H&&setTimeout(function(){if(N.current){var $e=N.current.files;$e.length||(z({type:"closeDialog"}),j())}},300)};c.useEffect(function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}},[N,H,j,V]);var W=c.useRef([]),q=function($e){I.current&&I.current.contains($e.target)||($e.preventDefault(),W.current=[])};c.useEffect(function(){return y&&(document.addEventListener("dragover",q7,!1),document.addEventListener("drop",q,!1)),function(){y&&(document.removeEventListener("dragover",q7),document.removeEventListener("drop",q))}},[I,y]),c.useEffect(function(){return!r&&b&&I.current&&I.current.focus(),function(){}},[I,b,r]);var Q=c.useCallback(function(ce){_?_(ce):console.error(ce)},[_]),G=c.useCallback(function(ce){ce.preventDefault(),ce.persist(),we(ce),W.current=[].concat(qKe(W.current),[ce.target]),_y(ce)&&Promise.resolve(i(ce)).then(function($e){if(!(PS(ce)&&!k)){var se=$e.length,ve=se>0&&MKe({files:$e,accept:E,minSize:o,maxSize:a,multiple:s,maxFiles:l,validator:$}),he=se>0&&!ve;z({isDragAccept:ve,isDragReject:he,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ce)}}).catch(function($e){return Q($e)})},[i,u,Q,k,E,o,a,s,l,$]),X=c.useCallback(function(ce){ce.preventDefault(),ce.persist(),we(ce);var $e=_y(ce);if($e&&ce.dataTransfer)try{ce.dataTransfer.dropEffect="copy"}catch{}return $e&&f&&f(ce),!1},[f,k]),re=c.useCallback(function(ce){ce.preventDefault(),ce.persist(),we(ce);var $e=W.current.filter(function(ve){return I.current&&I.current.contains(ve)}),se=$e.indexOf(ce.target);se!==-1&&$e.splice(se,1),W.current=$e,!($e.length>0)&&(z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),_y(ce)&&d&&d(ce))},[I,d,k]),K=c.useCallback(function(ce,$e){var se=[],ve=[];ce.forEach(function(he){var _e=eie(he,E),Se=b3(_e,2),Pe=Se[0],De=Se[1],xe=tie(he,o,a),ye=b3(xe,2),Te=ye[0],Ie=ye[1],ke=$?$(he):null;if(Pe&&Te&&!ke)se.push(he);else{var je=[De,Ie];ke&&(je=je.concat(ke)),ve.push({file:he,errors:je.filter(function(He){return He})})}}),(!s&&se.length>1||s&&l>=1&&se.length>l)&&(se.forEach(function(he){ve.push({file:he,errors:[RKe]})}),se.splice(0)),z({acceptedFiles:se,fileRejections:ve,isDragReject:ve.length>0,type:"setFiles"}),m&&m(se,ve,$e),ve.length>0&&v&&v(ve,$e),se.length>0&&p&&p(se,$e)},[z,s,E,o,a,l,m,p,v,$]),Y=c.useCallback(function(ce){ce.preventDefault(),ce.persist(),we(ce),W.current=[],_y(ce)&&Promise.resolve(i(ce)).then(function($e){PS(ce)&&!k||K($e,ce)}).catch(function($e){return Q($e)}),z({type:"reset"})},[i,K,Q,k]),Z=c.useCallback(function(){if(V.current){z({type:"openDialog"}),M();var ce={multiple:s,types:T};window.showOpenFilePicker(ce).then(function($e){return i($e)}).then(function($e){K($e,null),z({type:"closeDialog"})}).catch(function($e){BKe($e)?(j($e),z({type:"closeDialog"})):zKe($e)?(V.current=!1,N.current?(N.current.value=null,N.current.click()):Q(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):Q($e)});return}N.current&&(z({type:"openDialog"}),M(),N.current.value=null,N.current.click())},[z,M,j,w,K,Q,T,s]),J=c.useCallback(function(ce){!I.current||!I.current.isEqualNode(ce.target)||(ce.key===" "||ce.key==="Enter"||ce.keyCode===32||ce.keyCode===13)&&(ce.preventDefault(),Z())},[I,Z]),ee=c.useCallback(function(){z({type:"focus"})},[]),te=c.useCallback(function(){z({type:"blur"})},[]),le=c.useCallback(function(){x||(jKe()?setTimeout(Z,0):Z())},[x,Z]),oe=function($e){return r?null:$e},de=function($e){return C?null:oe($e)},pe=function($e){return S?null:oe($e)},we=function($e){k&&$e.stopPropagation()},fe=c.useMemo(function(){return function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$e=ce.refKey,se=$e===void 0?"ref":$e,ve=ce.role,he=ce.onKeyDown,_e=ce.onFocus,Se=ce.onBlur,Pe=ce.onClick,De=ce.onDragEnter,xe=ce.onDragOver,ye=ce.onDragLeave,Te=ce.onDrop,Ie=TS(ce,WKe);return Dr(Dr(I6({onKeyDown:de(pl(he,J)),onFocus:de(pl(_e,ee)),onBlur:de(pl(Se,te)),onClick:oe(pl(Pe,le)),onDragEnter:pe(pl(De,G)),onDragOver:pe(pl(xe,X)),onDragLeave:pe(pl(ye,re)),onDrop:pe(pl(Te,Y)),role:typeof ve=="string"&&ve!==""?ve:"presentation"},se,I),!r&&!C?{tabIndex:0}:{}),Ie)}},[I,J,ee,te,le,G,X,re,Y,C,S,r]),ge=c.useCallback(function(ce){ce.stopPropagation()},[]),ue=c.useMemo(function(){return function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$e=ce.refKey,se=$e===void 0?"ref":$e,ve=ce.onChange,he=ce.onClick,_e=TS(ce,UKe),Se=I6({accept:E,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:oe(pl(ve,Y)),onClick:oe(pl(he,ge)),tabIndex:-1},se,N);return Dr(Dr({},Se),_e)}},[N,n,s,Y,r]);return Dr(Dr({},F),{},{isFocused:R&&!r,getRootProps:fe,getInputProps:ue,rootRef:I,inputRef:N,open:oe(Z)})}function eYe(e,t){switch(t.type){case"focus":return Dr(Dr({},e),{},{isFocused:!0});case"blur":return Dr(Dr({},e),{},{isFocused:!1});case"openDialog":return Dr(Dr({},R6),{},{isFileDialogActive:!0});case"closeDialog":return Dr(Dr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Dr(Dr({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Dr(Dr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Dr({},R6);default:return e}}function K7(){}const tYe=({onImageSend:e,children:t})=>{const[n,r]=c.useState(null),i=c.useCallback(()=>{console.log("handleImageCancel"),r(null)},[]),a=c.useCallback(()=>{console.log("handleImageSend"),pg(n,u=>{n!=null&&n.type.startsWith("image")?e(u.data.fileUrl,Fu):n!=null&&n.type.startsWith("video/")?e(u.data.fileUrl,Qg):e(u.data.fileUrl,Sp),r(null)})},[n]),o=c.useCallback(u=>{console.log("DropUpload acceptedFiles",u),u.map(d=>{console.log(d),r(d)})},[]),{getRootProps:s,getInputProps:l}=oie({maxFiles:1,onDrop:o,onDropAccepted(u,d){console.log("onDropAccepted",u,d)},onDropRejected(u,d){console.log("onDropRejected",u,d)},noClick:!0});return P.jsxs("div",{...s(),style:{height:"100%"},children:[P.jsx("input",{...l()}),P.jsx(P.Fragment,{children:t}),n&&P.jsx(Wre,{file:n,onCancel:i,onSend:a})]})};async function nYe(e){return or("/visitor/api/v1/init",{method:"POST",data:{...e,client:On}})}async function rYe(e){return or("/visitor/api/v1/thread",{method:"POST",data:{...e,client:On}})}async function iYe(e){return or("/visitor/api/v1/browse",{method:"POST",data:{...e,client:On}})}async function aYe(e){return or("/visitor/api/v1/faq/search",{method:"GET",params:{...e,client:On}})}async function oYe(e){return or("/visitor/api/v1/faq/change",{method:"GET",params:{...e,client:On}})}async function sYe(e){return or("/visitor/api/v1/faq/query/uid",{method:"GET",params:{uid:e,client:On}})}async function lYe(e){return or("/visitor/api/v1/faq/rate/up",{method:"POST",data:{uid:e,client:On}})}async function cYe(e){return or("/visitor/api/v1/faq/rate/down",{method:"POST",data:{uid:e,client:On}})}async function uYe(e){return or("/visitor/api/v1/faq/rate/message/helpful",{method:"POST",data:{uid:e,client:On}})}async function dYe(e){return or("/visitor/api/v1/faq/rate/message/unhelpful",{method:"POST",data:{uid:e,client:On}})}function fYe(e,t,n){var r=this,i=c.useRef(null),a=c.useRef(0),o=c.useRef(null),s=c.useRef([]),l=c.useRef(),u=c.useRef(),d=c.useRef(e),f=c.useRef(!0);d.current=e;var m=typeof window<"u",p=!t&&t!==0&&m;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,h=!("trailing"in n)||!!n.trailing,g="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,b=g?Math.max(+n.maxWait||0,t):null;c.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var y=c.useMemo(function(){var x=function(E){var T=s.current,M=l.current;return s.current=l.current=null,a.current=E,u.current=d.current.apply(M,T)},C=function(E,T){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(E):setTimeout(E,T)},S=function(E){if(!f.current)return!1;var T=E-i.current;return!i.current||T>=t||T<0||g&&E-a.current>=b},k=function(E){return o.current=null,h&&s.current?x(E):(s.current=l.current=null,u.current)},_=function E(){var T=Date.now();if(S(T))return k(T);if(f.current){var M=t-(T-i.current),j=g?Math.min(M,b-(T-a.current)):M;C(E,j)}},$=function(){if(m||w){var E=Date.now(),T=S(E);if(s.current=[].slice.call(arguments),l.current=r,i.current=E,T){if(!o.current&&f.current)return a.current=i.current,C(_,t),v?x(i.current):u.current;if(g)return C(_,t),x(i.current)}return o.current||C(_,t),u.current}};return $.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=l.current=o.current=null},$.isPending=function(){return!!o.current},$.flush=function(){return o.current?k(Date.now()):u.current},$},[v,g,t,b,h,p,m,w]);return y}function mYe(e,t){return e===t}function pYe(e,t,n){var r=mYe,i=c.useRef(e),a=c.useState({})[1],o=fYe(c.useCallback(function(l){i.current=l,a({})},[a]),t,n),s=c.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}function vYe({defaultRate:e,disabled:t,onClick:n}){const[r,i]=c.useState(e||5),a=["很不满意","不满意","一般","满意","非常满意"],o=u=>{t||i(u)},s=u=>{t||i(u)},l=u=>{t||i(u)};return c.useEffect(()=>{n(r)},[r,n]),P.jsxs(P.Fragment,{children:[P.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"5px",marginBottom:"5px"},children:a.map((u,d)=>{const f=d+1<=r;return P.jsxs("div",{style:{padding:"10px",color:f?"orange":"inherit",cursor:"pointer"},onClick:()=>o(d+1),onMouseEnter:()=>s(d+1),onMouseLeave:()=>l(d+1),children:[f?"★":"☆"," "]},d)})}),P.jsx("div",{style:{marginBottom:"20px"},children:a[r-1]})]})}const hYe=({uid:e,content:t,status:n,type:r,thread:i,visitor:a})=>{const[o,s]=c.useState(5),[l,u]=c.useState(""),[d,f]=c.useState(!1);c.useEffect(()=>{if(n===wve){f(!0);let h=null;try{h=JSON.parse(t)}catch{}h&&(s(h.score),u(h.content))}},[t,n]);const m=h=>{console.log("handleRateChange:",h),s(h)},p=(h,g)=>{console.log("handleCommentChange:",h),u(g.target.value)},v=()=>{console.log("handleSubmit:",e,o,l),JGe({uid:e,score:o,content:l,disabled:!1,type:r,thread:i,visitor:a})};return P.jsx("div",{className:"rate-bubble",children:P.jsx(bo,{children:P.jsxs(gs,{fluid:!0,children:[P.jsx(NN,{children:r===BG?"邀请评价":"主动评价"}),P.jsxs(Ore,{children:[P.jsx(vYe,{defaultRate:o,disabled:d,onClick:m}),P.jsx($0,{placeholder:"请输入评价...",value:l,rows:3,onChange:p,style:{marginTop:"8px"}})]}),P.jsx(Ire,{children:P.jsx(_o,{color:"primary",onClick:v,disabled:d,children:d?"已评价":"提交评价"})})]})})})},gYe=({uid:e,content:t,thread:n,visitor:r})=>{console.log("RobotQa",e,t,n,r);const i=a=>{console.log("handleRateClicked:",e,a)};return P.jsx(P.Fragment,{children:P.jsxs(bo,{children:[P.jsx(gs,{fluid:!0,children:P.jsx(G1,{children:t})}),P.jsx(jN,{onClick:i})]})})};function bi(){return bi=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function nf(e){var t=c.useRef({fn:e,curr:void 0}).current;if(t.fn=e,!t.curr){var n=Object.create(null);Object.keys(e).forEach(function(r){n[r]=function(){var i;return(i=t.fn[r]).call.apply(i,[t.fn].concat([].slice.call(arguments)))}}),t.curr=n}return t.curr}function OS(e){return c.useReducer(function(t,n){return bi({},t,typeof n=="function"?n(t):n)},e)}var sie=c.createContext(void 0),sc=typeof window<"u"&&"ontouchstart"in window,M6=function(e,t,n){return Math.max(Math.min(e,n),t)},$y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=0),M6(e,1*(1-n),Math.max(6,t)*(1+n))},N6=typeof window>"u"||/ServerSideRendering/.test(navigator&&navigator.userAgent)?c.useEffect:c.useLayoutEffect;function km(e,t,n){var r=c.useRef(t);r.current=t,c.useEffect(function(){function i(a){r.current(a)}return e&&window.addEventListener(e,i,n),function(){e&&window.removeEventListener(e,i)}},[e])}var bYe=["container"];function yYe(e){var t=e.container,n=t===void 0?document.body:t,r=l_(e,bYe);return ki.createPortal(L.createElement("div",bi({},r)),n)}function wYe(e){return L.createElement("svg",bi({width:"44",height:"44",viewBox:"0 0 768 768"},e),L.createElement("path",{d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))}function xYe(e){return L.createElement("svg",bi({width:"44",height:"44",viewBox:"0 0 768 768"},e),L.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))}function SYe(e){return L.createElement("svg",bi({width:"44",height:"44",viewBox:"0 0 768 768"},e),L.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"}))}function CYe(){return c.useEffect(function(){var e=document.body.style,t=e.overflow;return e.overflow="hidden",function(){e.overflow=t}},[]),null}function Y7(e){var t=e.touches[0],n=t.clientX,r=t.clientY;if(e.touches.length>=2){var i=e.touches[1],a=i.clientX,o=i.clientY;return[(n+a)/2,(r+o)/2,Math.sqrt(Math.pow(a-n,2)+Math.pow(o-r,2))]}return[n,r,0]}var fu=function(e,t,n,r){var i,a=n*t,o=(a-r)/2,s=e;return a<=r?(i=1,s=0):e>0&&o-e<=0?(i=2,s=o):e<0&&o+e<=0&&(i=3,s=-o),[i,s]};function y3(e,t,n,r,i,a,o,s,l,u){o===void 0&&(o=innerWidth/2),s===void 0&&(s=innerHeight/2),l===void 0&&(l=0),u===void 0&&(u=0);var d=fu(e,a,n,innerWidth)[0],f=fu(t,a,r,innerHeight),m=innerWidth/2,p=innerHeight/2;return{x:o-a/i*(o-(m+e))-m+(r/n>=3&&n*a===innerWidth?0:d?l/2:l),y:s-a/i*(s-(p+t))-p+(f[0]?u/2:u),lastCX:o,lastCY:s}}function D6(e,t,n){var r=e%180!=0;return r?[n,t,r]:[t,n,r]}function w3(e,t,n){var r=D6(n,innerWidth,innerHeight),i=r[0],a=r[1],o=0,s=i,l=a,u=e/t*a,d=t/e*i;return e=a?s=u:e>=i&&ti/a?l=d:t/e>=3&&!r[2]?o=((l=d)-a)/2:s=u,{width:s,height:l,x:0,y:o,pause:!0}}function Ey(e,t){var n=t.leading,r=n!==void 0&&n,i=t.maxWait,a=t.wait,o=a===void 0?i||0:a,s=c.useRef(e);s.current=e;var l=c.useRef(0),u=c.useRef(),d=function(){return u.current&&clearTimeout(u.current)},f=c.useCallback(function(){var m=[].slice.call(arguments),p=Date.now();function v(){l.current=p,d(),s.current.apply(null,m)}var h=l.current,g=p-h;if(h===0&&(r&&v(),l.current=p),i!==void 0){if(g>i)return void v()}else g=1&&a&&a())};d()}function d(){l=requestAnimationFrame(u)}}var _Ye={T:0,L:0,W:0,H:0,FIT:void 0},lie=function(){var e=c.useRef(!1);return c.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},$Ye=["className"];function EYe(e){var t=e.className,n=t===void 0?"":t,r=l_(e,$Ye);return L.createElement("div",bi({className:"PhotoView__Spinner "+n},r),L.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},L.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),L.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))}var PYe=["src","loaded","broken","className","onPhotoLoad","loadingElement","brokenElement"];function TYe(e){var t=e.src,n=e.loaded,r=e.broken,i=e.className,a=e.onPhotoLoad,o=e.loadingElement,s=e.brokenElement,l=l_(e,PYe),u=lie();return t&&!r?L.createElement(L.Fragment,null,L.createElement("img",bi({className:"PhotoView__Photo"+(i?" "+i:""),src:t,onLoad:function(d){var f=d.target;u.current&&a({loaded:!0,naturalWidth:f.naturalWidth,naturalHeight:f.naturalHeight})},onError:function(){u.current&&a({broken:!0})},alt:""},l)),!n&&(L.createElement("span",{className:"PhotoView__icon"},o)||L.createElement(EYe,{className:"PhotoView__icon"}))):s?L.createElement("span",{className:"PhotoView__icon"},typeof s=="function"?s({src:t}):s):null}var OYe={naturalWidth:void 0,naturalHeight:void 0,width:void 0,height:void 0,loaded:void 0,broken:!1,x:0,y:0,touched:!1,maskTouched:!1,rotate:0,scale:1,CX:0,CY:0,lastX:0,lastY:0,lastCX:0,lastCY:0,lastScale:1,touchTime:0,touchLength:0,pause:!0,stopRaf:!0,reach:void 0};function IYe(e){var t=e.item,n=t.src,r=t.render,i=t.width,a=i===void 0?0:i,o=t.height,s=o===void 0?0:o,l=t.originRef,u=e.visible,d=e.speed,f=e.easing,m=e.wrapClassName,p=e.className,v=e.style,h=e.loadingElement,g=e.brokenElement,w=e.onPhotoTap,b=e.onMaskTap,y=e.onReachMove,x=e.onReachUp,C=e.onPhotoResize,S=e.isActive,k=e.expose,_=OS(OYe),$=_[0],E=_[1],T=c.useRef(0),M=lie(),j=$.naturalWidth,I=j===void 0?a:j,N=$.naturalHeight,O=N===void 0?s:N,D=$.width,F=D===void 0?a:D,z=$.height,R=z===void 0?s:z,H=$.loaded,V=H===void 0?!n:H,B=$.broken,W=$.x,q=$.y,Q=$.touched,G=$.stopRaf,X=$.maskTouched,re=$.rotate,K=$.scale,Y=$.CX,Z=$.CY,J=$.lastX,ee=$.lastY,te=$.lastCX,le=$.lastCY,oe=$.lastScale,de=$.touchTime,pe=$.touchLength,we=$.pause,fe=$.reach,ge=nf({onScale:function(Ne){return ue($y(Ne))},onRotate:function(Ne){re!==Ne&&(k({rotate:Ne}),E(bi({rotate:Ne},w3(I,O,Ne))))}});function ue(Ne,Ae,et){K!==Ne&&(k({scale:Ne}),E(bi({scale:Ne},y3(W,q,F,R,K,Ne,Ae,et),Ne<=1&&{x:0,y:0})))}var ce=Ey(function(Ne,Ae,et){if(et===void 0&&(et=0),(Q||X)&&S){var nt=D6(re,F,R),rt=nt[0],it=nt[1];if(et===0&&T.current===0){var be=Math.abs(Ne-Y)<=20,Oe=Math.abs(Ae-Z)<=20;if(be&&Oe)return void E({lastCX:Ne,lastCY:Ae});T.current=be?Ae>Z?3:2:1}var Ce,Re=Ne-te,Ke=Ae-le;if(et===0){var Xe=fu(Re+J,K,rt,innerWidth)[0],lt=fu(Ke+ee,K,it,innerHeight);Ce=function(Qe,Ge,st,pt){return Ge&&Qe===1||pt==="x"?"x":st&&Qe>1||pt==="y"?"y":void 0}(T.current,Xe,lt[0],fe),Ce!==void 0&&y(Ce,Ne,Ae,K)}if(Ce==="x"||X)return void E({reach:"x"});var tt=$y(K+(et-pe)/100/2*K,I/F,.2);k({scale:tt}),E(bi({touchLength:et,reach:Ce,scale:tt},y3(W,q,F,R,K,tt,Ne,Ae,Re,Ke)))}},{maxWait:8});function $e(Ne){return!G&&!Q&&(M.current&&E(bi({},Ne,{pause:u})),M.current)}var se,ve,he,_e,Se,Pe,De,xe,ye=(Se=function(Ne){return $e({x:Ne})},Pe=function(Ne){return $e({y:Ne})},De=function(Ne){return M.current&&(k({scale:Ne}),E({scale:Ne})),!Q&&M.current},xe=nf({X:function(Ne){return Se(Ne)},Y:function(Ne){return Pe(Ne)},S:function(Ne){return De(Ne)}}),function(Ne,Ae,et,nt,rt,it,be,Oe,Ce,Re,Ke){var Xe=D6(Re,rt,it),lt=Xe[0],tt=Xe[1],Qe=fu(Ne,Oe,lt,innerWidth),Ge=Qe[0],st=Qe[1],pt=fu(Ae,Oe,tt,innerHeight),yt=pt[0],zt=pt[1],$t=Date.now()-Ke;if($t>=200||Oe!==be||Math.abs(Ce-be)>1){var ze=y3(Ne,Ae,rt,it,be,Oe),me=ze.x,Me=ze.y,We=Ge?st:me!==Ne?me:null,wt=yt?zt:Me!==Ae?Me:null;return We!==null&&Td(Ne,We,xe.X),wt!==null&&Td(Ae,wt,xe.Y),void(Oe!==be&&Td(be,Oe,xe.S))}var Ze=(Ne-et)/$t,Le=(Ae-nt)/$t,ot=Math.sqrt(Math.pow(Ze,2)+Math.pow(Le,2)),ht=!1,Et=!1;(function(Rt,Ct){var at,kt=Rt,At=0,Dt=0,en=function(Sr){at||(at=Sr);var pr=Sr-at,nr=Math.sign(Rt),Kr=-.001*nr,gn=Math.sign(-kt)*Math.pow(kt,2)*2e-4,Bt=kt*pr+(Kr+gn)*Math.pow(pr,2)/2;At+=Bt,at=Sr,nr*(kt+=(Kr+gn)*pr)<=0?bn():Ct(At)?vn():bn()};function vn(){Dt=requestAnimationFrame(en)}function bn(){cancelAnimationFrame(Dt)}vn()})(ot,function(Rt){var Ct=Ne+Rt*(Ze/ot),at=Ae+Rt*(Le/ot),kt=fu(Ct,be,lt,innerWidth),At=kt[0],Dt=kt[1],en=fu(at,be,tt,innerHeight),vn=en[0],bn=en[1];if(At&&!ht&&(ht=!0,Ge?Td(Ct,Dt,xe.X):X7(Dt,Ct+(Ct-Dt),xe.X)),vn&&!Et&&(Et=!0,yt?Td(at,bn,xe.Y):X7(bn,at+(at-bn),xe.Y)),ht&&Et)return!1;var Sr=ht||xe.X(Dt),pr=Et||xe.Y(bn);return Sr&&pr})}),Te=(se=w,ve=function(Ne,Ae){fe||ue(K!==1?1:Math.max(2,I/F),Ne,Ae)},he=c.useRef(0),_e=Ey(function(){he.current=0,se.apply(void 0,[].slice.call(arguments))},{wait:300}),function(){var Ne=[].slice.call(arguments);he.current+=1,_e.apply(void 0,Ne),he.current>=2&&(_e.cancel(),he.current=0,ve.apply(void 0,Ne))});function Ie(Ne,Ae){if(T.current=0,(Q||X)&&S){E({touched:!1,maskTouched:!1,pause:!1,stopRaf:!1,reach:void 0});var et=$y(K,I/F);if(ye(W,q,J,ee,F,R,K,et,oe,re,de),x(Ne,Ae),Y===Ne&&Z===Ae){if(Q)return void Te(Ne,Ae);X&&b(Ne,Ae)}}}function ke(Ne,Ae,et){et===void 0&&(et=0),E({touched:!0,CX:Ne,CY:Ae,lastCX:Ne,lastCY:Ae,lastX:W,lastY:q,lastScale:K,touchLength:et,touchTime:Date.now()})}function je(Ne){E({maskTouched:!0,CX:Ne.clientX,CY:Ne.clientY,lastX:W,lastY:q})}km(sc?void 0:"mousemove",function(Ne){Ne.preventDefault(),ce(Ne.clientX,Ne.clientY)}),km(sc?void 0:"mouseup",function(Ne){Ie(Ne.clientX,Ne.clientY)}),km(sc?"touchmove":void 0,function(Ne){Ne.preventDefault();var Ae=Y7(Ne);ce.apply(void 0,Ae)},{passive:!1}),km(sc?"touchend":void 0,function(Ne){var Ae=Ne.changedTouches[0];Ie(Ae.clientX,Ae.clientY)},{passive:!1}),km("resize",Ey(function(){V&&!Q&&(E(w3(I,O,re)),C())},{maxWait:8})),N6(function(){S&&k(bi({scale:K,rotate:re},ge))},[S]);var He=function(Ne,Ae,et,nt,rt,it,be,Oe,Ce,Re){var Ke=function(me,Me,We,wt,Ze){var Le=c.useRef(!1),ot=OS({lead:!0,scale:We}),ht=ot[0],Et=ht.lead,Rt=ht.scale,Ct=ot[1],at=Ey(function(kt){try{return Ze(!0),Ct({lead:!1,scale:kt}),Promise.resolve()}catch(At){return Promise.reject(At)}},{wait:wt});return N6(function(){Le.current?(Ze(!1),Ct({lead:!0}),at(We)):Le.current=!0},[We]),Et?[me*Rt,Me*Rt,We/Rt]:[me*We,Me*We,1]}(it,be,Oe,Ce,Re),Xe=Ke[0],lt=Ke[1],tt=Ke[2],Qe=function(me,Me,We,wt,Ze){var Le=c.useState(_Ye),ot=Le[0],ht=Le[1],Et=c.useState(0),Rt=Et[0],Ct=Et[1],at=c.useRef(),kt=nf({OK:function(){return me&&Ct(4)}});function At(Dt){Ze(!1),Ct(Dt)}return c.useEffect(function(){if(at.current||(at.current=Date.now()),We){if(function(Dt,en){var vn=Dt&&Dt.current;if(vn&&vn.nodeType===1){var bn=vn.getBoundingClientRect();en({T:bn.top,L:bn.left,W:bn.width,H:bn.height,FIT:vn.tagName==="IMG"?getComputedStyle(vn).objectFit:void 0})}}(Me,ht),me)return Date.now()-at.current<250?(Ct(1),requestAnimationFrame(function(){Ct(2),requestAnimationFrame(function(){return At(3)})}),void setTimeout(kt.OK,wt)):void Ct(4);At(5)}},[me,We]),[Rt,ot]}(Ne,Ae,et,Ce,Re),Ge=Qe[0],st=Qe[1],pt=st.W,yt=st.FIT,zt=innerWidth/2,$t=innerHeight/2,ze=Ge<3||Ge>4;return[ze?pt?st.L:zt:nt+(zt-it*Oe/2),ze?pt?st.T:$t:rt+($t-be*Oe/2),Xe,ze&&yt?Xe*(st.H/pt):lt,Ge===0?tt:ze?pt/(it*Oe)||.01:tt,ze?yt?1:0:1,Ge,yt]}(u,l,V,W,q,F,R,K,d,function(Ne){return E({pause:Ne})}),Be=He[4],ct=He[6],Ve="transform "+d+"ms "+f,Ye={className:p,onMouseDown:sc?void 0:function(Ne){Ne.stopPropagation(),Ne.button===0&&ke(Ne.clientX,Ne.clientY,0)},onTouchStart:sc?function(Ne){Ne.stopPropagation(),ke.apply(void 0,Y7(Ne))}:void 0,onWheel:function(Ne){if(!fe){var Ae=$y(K-Ne.deltaY/100/2,I/F);E({stopRaf:!0}),ue(Ae,Ne.clientX,Ne.clientY)}},style:{width:He[2]+"px",height:He[3]+"px",opacity:He[5],objectFit:ct===4?void 0:He[7],transform:re?"rotate("+re+"deg)":void 0,transition:ct>2?Ve+", opacity "+d+"ms ease, height "+(ct<4?d/2:ct>4?d:0)+"ms "+f:void 0}};return L.createElement("div",{className:"PhotoView__PhotoWrap"+(m?" "+m:""),style:v,onMouseDown:!sc&&S?je:void 0,onTouchStart:sc&&S?function(Ne){return je(Ne.touches[0])}:void 0},L.createElement("div",{className:"PhotoView__PhotoBox",style:{transform:"matrix("+Be+", 0, 0, "+Be+", "+He[0]+", "+He[1]+")",transition:Q||we?void 0:Ve,willChange:S?"transform":void 0}},n?L.createElement(TYe,bi({src:n,loaded:V,broken:B},Ye,{onPhotoLoad:function(Ne){E(bi({},Ne,Ne.loaded&&w3(Ne.naturalWidth||0,Ne.naturalHeight||0,re)))},loadingElement:h,brokenElement:g})):r&&r({attrs:Ye,scale:Be,rotate:re})))}var Q7={x:0,touched:!1,pause:!1,lastCX:void 0,lastCY:void 0,bg:void 0,lastBg:void 0,overlay:!0,minimal:!0,scale:1,rotate:0};function RYe(e){var t=e.loop,n=t===void 0?3:t,r=e.speed,i=e.easing,a=e.photoClosable,o=e.maskClosable,s=o===void 0||o,l=e.maskOpacity,u=l===void 0?1:l,d=e.pullClosable,f=d===void 0||d,m=e.bannerVisible,p=m===void 0||m,v=e.overlayRender,h=e.toolbarRender,g=e.className,w=e.maskClassName,b=e.photoClassName,y=e.photoWrapClassName,x=e.loadingElement,C=e.brokenElement,S=e.images,k=e.index,_=k===void 0?0:k,$=e.onIndexChange,E=e.visible,T=e.onClose,M=e.afterClose,j=e.portalContainer,I=OS(Q7),N=I[0],O=I[1],D=c.useState(0),F=D[0],z=D[1],R=N.x,H=N.touched,V=N.pause,B=N.lastCX,W=N.lastCY,q=N.bg,Q=q===void 0?u:q,G=N.lastBg,X=N.overlay,re=N.minimal,K=N.scale,Y=N.rotate,Z=N.onScale,J=N.onRotate,ee=e.hasOwnProperty("index"),te=ee?_:F,le=ee?$:z,oe=c.useRef(te),de=S.length,pe=S[te],we=typeof n=="boolean"?n:de>n,fe=function(Be,ct){var Ve=c.useReducer(function(et){return!et},!1)[1],Ye=c.useRef(0),Ne=function(et,nt){var rt=c.useRef(et);function it(be){rt.current=be}return c.useMemo(function(){(function(be){Be?(be(Be),Ye.current=1):Ye.current=2})(it)},[et]),[rt.current,it]}(Be),Ae=Ne[1];return[Ne[0],Ye.current,function(){Ve(),Ye.current===2&&(Ae(!1),ct&&ct()),Ye.current=0}]}(E,M),ge=fe[0],ue=fe[1],ce=fe[2];N6(function(){if(ge)return O({pause:!0,x:te*-(innerWidth+20)}),void(oe.current=te);O(Q7)},[ge]);var $e=nf({close:function(Be){J&&J(0),O({overlay:!0,lastBg:Q}),T(Be)},changeIndex:function(Be,ct){ct===void 0&&(ct=!1);var Ve=we?oe.current+(Be-te):Be,Ye=de-1,Ne=M6(Ve,0,Ye),Ae=we?Ve:Ne,et=innerWidth+20;O({touched:!1,lastCX:void 0,lastCY:void 0,x:-et*Ae,pause:ct}),oe.current=Ae,le&&le(we?Be<0?Ye:Be>Ye?0:Be:Ne)}}),se=$e.close,ve=$e.changeIndex;function he(Be){return Be?se():O({overlay:!X})}function _e(){O({x:-(innerWidth+20)*te,lastCX:void 0,lastCY:void 0,pause:!0}),oe.current=te}function Se(Be,ct,Ve,Ye){Be==="x"?function(Ne){if(B!==void 0){var Ae=Ne-B,et=Ae;!we&&(te===0&&Ae>0||te===de-1&&Ae<0)&&(et=Ae/2),O({touched:!0,lastCX:B,x:-(innerWidth+20)*oe.current+et,pause:!1})}else O({touched:!0,lastCX:Ne,x:R,pause:!1})}(ct):Be==="y"&&function(Ne,Ae){if(W!==void 0){var et=u===null?null:M6(u,.01,u-Math.abs(Ne-W)/100/4);O({touched:!0,lastCY:W,bg:Ae===1?et:u,minimal:Ae===1})}else O({touched:!0,lastCY:Ne,bg:Q,minimal:!0})}(Ve,Ye)}function Pe(Be,ct){var Ve=Be-(B??Be),Ye=ct-(W??ct),Ne=!1;if(Ve<-40)ve(te+1);else if(Ve>40)ve(te-1);else{var Ae=-(innerWidth+20)*oe.current;Math.abs(Ye)>100&&re&&f&&(Ne=!0,se()),O({touched:!1,x:Ae,lastCX:void 0,lastCY:void 0,bg:u,overlay:!!Ne||X})}}km("keydown",function(Be){if(E)switch(Be.key){case"ArrowLeft":ve(te-1,!0);break;case"ArrowRight":ve(te+1,!0);break;case"Escape":se()}});var De=function(Be,ct,Ve){return c.useMemo(function(){var Ye=Be.length;return Ve?Be.concat(Be).concat(Be).slice(Ye+ct-1,Ye+ct+2):Be.slice(Math.max(ct-1,0),Math.min(ct+2,Ye+1))},[Be,ct,Ve])}(S,te,we);if(!ge)return null;var xe=X&&!ue,ye=E?Q:G,Te=Z&&J&&{images:S,index:te,visible:E,onClose:se,onIndexChange:ve,overlayVisible:xe,overlay:pe&&pe.overlay,scale:K,rotate:Y,onScale:Z,onRotate:J},Ie=r?r(ue):400,ke=i?i(ue):"cubic-bezier(0.25, 0.8, 0.25, 1)",je=r?r(3):600,He=i?i(3):"cubic-bezier(0.25, 0.8, 0.25, 1)";return L.createElement(yYe,{className:"PhotoView-Portal"+(xe?"":" PhotoView-Slider__clean")+(E?"":" PhotoView-Slider__willClose")+(g?" "+g:""),role:"dialog",onClick:function(Be){return Be.stopPropagation()},container:j},E&&L.createElement(CYe,null),L.createElement("div",{className:"PhotoView-Slider__Backdrop"+(w?" "+w:"")+(ue===1?" PhotoView-Slider__fadeIn":ue===2?" PhotoView-Slider__fadeOut":""),style:{background:ye?"rgba(0, 0, 0, "+ye+")":void 0,transitionTimingFunction:ke,transitionDuration:(H?0:Ie)+"ms",animationDuration:Ie+"ms"},onAnimationEnd:ce}),p&&L.createElement("div",{className:"PhotoView-Slider__BannerWrap"},L.createElement("div",{className:"PhotoView-Slider__Counter"},te+1," / ",de),L.createElement("div",{className:"PhotoView-Slider__BannerRight"},h&&Te&&h(Te),L.createElement(wYe,{className:"PhotoView-Slider__toolbarIcon",onClick:se}))),De.map(function(Be,ct){var Ve=we||te!==0?oe.current-1+ct:te+ct;return L.createElement(IYe,{key:we?Be.key+"/"+Be.src+"/"+Ve:Be.key,item:Be,speed:Ie,easing:ke,visible:E,onReachMove:Se,onReachUp:Pe,onPhotoTap:function(){return he(a)},onMaskTap:function(){return he(s)},wrapClassName:y,className:b,style:{left:(innerWidth+20)*Ve+"px",transform:"translate3d("+R+"px, 0px, 0)",transition:H||V?void 0:"transform "+je+"ms "+He},loadingElement:x,brokenElement:C,onPhotoResize:_e,isActive:oe.current===Ve,expose:O})}),!sc&&p&&L.createElement(L.Fragment,null,(we||te!==0)&&L.createElement("div",{className:"PhotoView-Slider__ArrowLeft",onClick:function(){return ve(te-1,!0)}},L.createElement(xYe,null)),(we||te+1-1){var w=u.slice();return w.splice(g,1,h),void s({images:w})}s(function(b){return{images:b.images.concat(h)}})},remove:function(h){s(function(g){var w=g.images.filter(function(b){return b.key!==h});return{images:w,index:Math.min(w.length-1,f)}})},show:function(h){var g=u.findIndex(function(w){return w.key===h});s({visible:!0,index:g}),r&&r(!0,g,o)}}),p=nf({close:function(){s({visible:!1}),r&&r(!1,f,o)},changeIndex:function(h){s({index:h}),n&&n(h,o)}}),v=c.useMemo(function(){return bi({},o,m)},[o,m]);return L.createElement(sie.Provider,{value:v},t,L.createElement(RYe,bi({images:u,visible:d,index:f,onIndexChange:p.changeIndex,onClose:p.close},i)))}var cie=function(e){var t,n,r=e.src,i=e.render,a=e.overlay,o=e.width,s=e.height,l=e.triggers,u=l===void 0?["onClick"]:l,d=e.children,f=c.useContext(sie),m=(t=function(){return f.nextId()},(n=c.useRef({sign:!1,fn:void 0}).current).sign||(n.sign=!0,n.fn=t()),n.fn),p=c.useRef(null);c.useImperativeHandle(d==null?void 0:d.ref,function(){return p.current}),c.useEffect(function(){return function(){f.remove(m)}},[]);var v=nf({render:function(g){return i&&i(g)},show:function(g,w){f.show(m),function(b,y){if(d){var x=d.props[b];x&&x(y)}}(g,w)}}),h=c.useMemo(function(){var g={};return u.forEach(function(w){g[w]=v.show.bind(null,w)}),g},[]);return c.useEffect(function(){f.update({key:m,src:r,originRef:p,render:v.render,overlay:a,width:o,height:s})},[r]),d?c.Children.only(c.cloneElement(d,bi({},h,{ref:p}))):null};const jYe=({uid:e,vipLevel:t,content:n,onFaqClick:r,onTransferToAgent:i})=>{const[a,o]=c.useState(),[s,l]=c.useState(!1),[u,d]=c.useState("");console.log("FaqQa vipLevel",t),c.useEffect(()=>{let g=null;try{g=JSON.parse(n),console.log("解析后的FAQ内容:",g)}catch(w){console.error("FAQ内容解析错误:",w)}if(g)if(o(g),t==="0"||!g.answerList||g.answerList.length===0)console.log("使用默认answer:",g.answer),d(g.answer);else{const w=parseInt(t,10),b=g.answerList.find(y=>parseInt(y.vipLevel,10)===w);console.log("查找VIP答案:",{当前VIP等级:t,查找结果:b,可用答案列表:g.answerList}),d(b?b.answer:g.answer)}},[n,t]);const f=async g=>{var w,b;if(console.log("handleRateClicked:",e,g),g==="up"){const y=await lYe(a.uid);console.log("rateUp response:",y.data),y&&y.data&&((w=y==null?void 0:y.data)!=null&&w.data)&&l(!1)}else if(g==="down"){const y=await cYe(a.uid);console.log("rateDown response:",y.data),y&&y.data&&((b=y==null?void 0:y.data)!=null&&b.data)&&l(!0)}},m=()=>{i&&i()},p=()=>u?(a==null?void 0:a.type)===Fu?P.jsx(cie,{src:u,children:P.jsx("img",{src:u,alt:""})}):bY(u)?P.jsx("p",{style:{margin:"10px"},children:P.jsx(Nv,{content:u})}):P.jsx(G1,{style:{textAlign:"left"},children:u}):null,v=g=>{r(g,0)},h=()=>!(a!=null&&a.relatedFaqs)||a.relatedFaqs.length===0?(console.log("无相关问题可显示"),null):(console.log("渲染相关问题:",a.relatedFaqs),P.jsxs("div",{style:{marginTop:"10px",borderTop:"1px solid #eee",paddingTop:"10px",textAlign:"left"},children:[P.jsx("div",{style:{fontWeight:"bold",marginBottom:"8px",paddingLeft:"5px"},children:"相关问题:"}),P.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:a.relatedFaqs.map((g,w)=>P.jsx("div",{onClick:()=>v(g),style:{padding:"5px 10px",cursor:"pointer",borderRadius:"4px",backgroundColor:"#f8f8f8",border:"1px solid #eaeaea"},onMouseOver:b=>{b.currentTarget.style.backgroundColor="#f0f0f0"},onMouseOut:b=>{b.currentTarget.style.backgroundColor="#f8f8f8"},children:P.jsx("a",{href:"#",onClick:b=>{b.preventDefault(),console.log("Related FAQ clicked:",g)},style:{color:"#1890ff",textDecoration:"none",display:"block",width:"100%"},children:g.question||"相关问题"})},w))})]}));return P.jsxs(P.Fragment,{children:[P.jsxs(gs,{children:[p(),h()]}),P.jsx(jN,{onClick:f}),s&&P.jsx("div",{style:{marginTop:"10px",textAlign:"center"},children:P.jsx("button",{onClick:m,style:{padding:"5px 15px",backgroundColor:"#1890ff",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"转接人工客服"})})]})},FYe=({uid:e,content:t,status:n,thread:r,visitor:i})=>{const[a,o]=c.useState(""),[s,l]=c.useState(""),[u,d]=c.useState(!1),[f,m]=c.useState([]),p=c.useRef(null);c.useEffect(()=>{if(n===yve){d(!0);let y=null;try{y=JSON.parse(t)}catch{}y&&(o(y.contact),l(y.content))}},[t,n]);const v=y=>{console.log("handleContactChange:",y),o(y)},h=y=>{console.log("handleContentChange:",y),l(y)},g=()=>{var y;(y=p.current)==null||y.click()},w=async y=>{const x=y.target.files;if(x!=null&&x.length)try{const C=x[0];pg(C,S=>{console.log("handleImageChange result:",S),m(k=>[...k,S.data.fileUrl])})}catch(C){console.error("Upload failed:",C)}},b=async()=>{XGe({uid:e,contact:a,content:s,images:f,thread:r,visitor:i})};return P.jsx(P.Fragment,{children:P.jsxs(gs,{children:[P.jsx(NN,{children:P.jsx(Nv,{content:t})}),P.jsxs(Ore,{children:[P.jsx($0,{placeholder:"请输入联系方式...",rows:1,onChange:v,style:{marginTop:"8px"},disabled:u}),P.jsx($0,{placeholder:"请输入留言...",rows:3,onChange:h,style:{marginTop:"8px"},disabled:u}),f.length>0&&P.jsx("div",{style:{marginTop:"8px",display:"flex",gap:"8px"},children:f.map((y,x)=>P.jsx("img",{src:y,alt:`uploaded-${x}`,style:{width:"60px",height:"60px",objectFit:"cover"}},x))})]}),P.jsxs(Ire,{children:[P.jsx("input",{type:"file",ref:p,style:{display:"none"},accept:"image/*",onChange:w,disabled:u}),P.jsxs(zl,{children:[P.jsx(dn,{icon:P.jsx(ELe,{}),onClick:g,disabled:u,children:"上传图片"}),P.jsx(dn,{color:"primary",onClick:b,disabled:u,children:u?"留言成功!":"提交留言"})]})]})]})})};function uie(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tc.useContext(die),LYe=e=>L.createElement(die.Provider,{...e});function BYe(){let e=new Map;return{on(t,n){return e.has(t)?e.get(t).add(n):e.set(t,new Set([n])),this},off(t,n){return e.has(t)&&e.get(t).delete(n),this},emit(t,n){return e.has(t)&&e.get(t).forEach(r=>{r(n)}),this}}}var IS=BYe(),zYe=()=>c.useRef(new Map).current,HYe=()=>{},J7=["resize","contextmenu","click","scroll","blur"],j6={show({event:e,id:t,props:n,position:r}){e.preventDefault&&e.preventDefault(),IS.emit(0).emit(t,{event:e.nativeEvent||e,props:n,position:r})},hideAll(){IS.emit(0)}};function VYe(e){return{show(t){j6.show({...e,...t})},hideAll(){j6.hideAll()}}}function WYe(){let e=new Map,t,n,r,i,a=!1;function o(g){i=Array.from(g.values()),t=-1,r=!0}function s(){i[t].node.focus()}let l=()=>t>=0&&i[t].isSubmenu,u=()=>Array.from(i[t].submenuRefTracker.values());function d(){return t===-1?(f(),!1):!0}function f(){t+10?(t=0,i=g):a=!0,r=!1,s(),!0}return!1}function v(){if(d()&&!r){let g=e.get(n);n.classList.remove("contexify_submenu-isOpen"),i=g.items,n=g.parentNode,g.isRoot&&(r=!0,e.clear()),a||(t=g.focusedIndex,s())}}function h(g){function w(b){for(let y of b)y.isSubmenu&&y.submenuRefTracker&&w(Array.from(y.submenuRefTracker.values())),y.keyMatcher&&y.keyMatcher(g)}w(i)}return{init:o,moveDown:f,moveUp:m,openSubmenu:p,closeSubmenu:v,matchKeys:h}}function T0(e){return typeof e=="function"}function Z7(e){return typeof e=="string"}function UYe(e,t){return c.Children.map(c.Children.toArray(e).filter(Boolean),n=>c.cloneElement(n,t))}function qYe(e){let t={x:e.clientX,y:e.clientY},n=e.changedTouches;return n&&(t.x=n[0].clientX,t.y=n[0].clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function eB(e,t){return T0(e)?e(t):e}function GYe(e,t){return{...e,...T0(t)?t(e):t}}var KYe=({id:e,theme:t,style:n,className:r,children:i,animation:a="fade",preventDefaultOnKeydown:o=!0,disableBoundariesCheck:s=!1,onVisibilityChange:l,...u})=>{let[d,f]=c.useReducer(GYe,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),m=c.useRef(null),p=zYe(),[v]=c.useState(()=>WYe()),h=c.useRef(),g=c.useRef();c.useEffect(()=>(IS.on(e,b).on(0,y),()=>{IS.off(e,b).off(0,y)}),[e,a,s]),c.useEffect(()=>{d.visible?v.init(p):p.clear()},[d.visible,v,p]);function w(j,I){if(m.current&&!s){let{innerWidth:N,innerHeight:O}=window,{offsetWidth:D,offsetHeight:F}=m.current;j+D>N&&(j-=j+D-N),I+F>O&&(I-=I+F-O)}return{x:j,y:I}}c.useEffect(()=>{d.visible&&f(w(d.x,d.y))},[d.visible]),c.useEffect(()=>{function j(N){o&&N.preventDefault()}function I(N){switch(N.key){case"Enter":case" ":v.openSubmenu()||y();break;case"Escape":y();break;case"ArrowUp":j(N),v.moveUp();break;case"ArrowDown":j(N),v.moveDown();break;case"ArrowRight":j(N),v.openSubmenu();break;case"ArrowLeft":j(N),v.closeSubmenu();break;default:v.matchKeys(N);break}}if(d.visible){window.addEventListener("keydown",I);for(let N of J7)window.addEventListener(N,y)}return()=>{window.removeEventListener("keydown",I);for(let N of J7)window.removeEventListener(N,y)}},[d.visible,v,o]);function b({event:j,props:I,position:N}){j.stopPropagation();let O=N||qYe(j),{x:D,y:F}=w(O.x,O.y);ki.flushSync(()=>{f({visible:!0,willLeave:!1,x:D,y:F,triggerEvent:j,propsFromTrigger:I})}),clearTimeout(g.current),!h.current&&T0(l)&&(l(!0),h.current=!0)}function y(j){j!=null&&(j.button===2||j.ctrlKey)&&j.type!=="contextmenu"||(a&&(Z7(a)||"exit"in a&&a.exit)?f(I=>({willLeave:I.visible})):f(I=>({visible:I.visible?!1:I.visible})),g.current=setTimeout(()=>{T0(l)&&l(!1),h.current=!1}))}function x(){d.willLeave&&d.visible&&ki.flushSync(()=>f({visible:!1,willLeave:!1}))}function C(){return Z7(a)?Vw({[`contexify_willEnter-${a}`]:S&&!T,[`contexify_willLeave-${a} contexify_willLeave-'disabled'`]:S&&T}):a&&"enter"in a&&"exit"in a?Vw({[`contexify_willEnter-${a.enter}`]:a.enter&&S&&!T,[`contexify_willLeave-${a.exit} contexify_willLeave-'disabled'`]:a.exit&&S&&T}):null}let{visible:S,triggerEvent:k,propsFromTrigger:_,x:$,y:E,willLeave:T}=d,M=Vw("contexify",r,{[`contexify_theme-${t}`]:t},C());return L.createElement(LYe,{value:p},S&&L.createElement("div",{...u,className:M,onAnimationEnd:x,style:{...n,left:$,top:E,opacity:1},ref:m,role:"menu"},UYe(i,{propsFromTrigger:_,triggerEvent:k})))},YYe=({id:e,children:t,className:n,style:r,triggerEvent:i,data:a,propsFromTrigger:o,keyMatcher:s,onClick:l=HYe,disabled:u=!1,hidden:d=!1,closeOnClick:f=!0,handlerEvent:m="onClick",...p})=>{let v=c.useRef(),h=AYe(),g={id:e,data:a,triggerEvent:i,props:o},w=eB(u,g),b=eB(d,g);function y(k){g.event=k,k.stopPropagation(),w||(f?x():l(g))}function x(){let k=v.current;k.focus(),k.addEventListener("animationend",()=>setTimeout(j6.hideAll),{once:!0}),k.classList.add("contexify_item-feedback"),l(g)}function C(k){k&&!w&&(v.current=k,h.set(k,{node:k,isSubmenu:!1,keyMatcher:!w&&T0(s)&&(_=>{s(_)&&(_.stopPropagation(),_.preventDefault(),g.event=_,x())})}))}function S(k){(k.key==="Enter"||k.key===" ")&&(k.stopPropagation(),g.event=k,x())}return b?null:L.createElement("div",{...p,[m]:y,className:Vw("contexify_item",n,{"contexify_item-disabled":w}),style:r,onKeyDown:S,ref:C,tabIndex:-1,role:"menuitem","aria-disabled":w},L.createElement("div",{className:"contexify_itemContent"},t))};const XYe=({content:e,onFaqClick:t})=>{const{translateString:n}=K1(),[r,i]=c.useState([]);c.useEffect(()=>{let o=null;try{o=JSON.parse(e)}catch{}o&&i(o)},[e]);const a=(o,s)=>{console.log("item",o),t(o,s)};return P.jsx("div",{children:P.jsx(gs,{fluid:!0,children:P.jsxs(bo,{children:[P.jsx("div",{className:"guess-you-aside",children:P.jsx("h1",{children:n("i18n.guess.faq")})}),P.jsx(_0,{children:P.jsx(Nre,{children:r.map((o,s)=>P.jsx(Dre,{content:o.question,as:"a",rightIcon:"chevron-right",onClick:()=>a(o,s)},s))})})]})})})},QYe=({content:e,onFaqClick:t})=>{const{translateString:n}=K1(),[r,i]=c.useState([]);c.useEffect(()=>{let s=null;try{s=JSON.parse(e)}catch{}s&&i(s)},[e]);const a=()=>{console.log("TODO: change faq hot"),lo.success("TODO:"+n("i18n.change.faq"))},o=(s,l)=>{console.log("item",s),t(s,l)};return P.jsx("div",{children:P.jsx(gs,{fluid:!0,children:P.jsxs(bo,{children:[P.jsxs("div",{className:"guess-you-aside",children:[P.jsx("h1",{children:n("i18n.hot.faq")}),Ji&&P.jsx("span",{onClick:a,children:n("i18n.change.faq")})]}),P.jsx(_0,{children:P.jsx(Nre,{children:r.map((s,l)=>P.jsx(Dre,{content:s.question,as:"a",rightIcon:"chevron-right",onClick:()=>o(s,l)},l))})})]})})})},JYe=({content:e,onFaqClick:t})=>{const[n,r]=c.useState([]);c.useEffect(()=>{let a=null;try{a=JSON.parse(e)}catch{}a&&r(a)},[e]);const i=(a,o)=>{console.log("item",a),t(a,o)};return P.jsx("div",{children:P.jsx(zre,{className:"skill-cards",data:n,fullWidth:!0,renderItem:(a,o)=>P.jsxs(gs,{onClick:()=>i(a,o),children:[P.jsx(NN,{children:a.question}),P.jsx(G1,{children:a.answer})]},a.uid)})})},ZYe=()=>{const[e,t]=c.useState(!0),[n,r]=c.useState(!1),[i,a]=c.useState(0);return P.jsx(Are,{className:"OrderSelector",active:e,onClose:()=>{t(!1)},title:"请选择您要咨询的订单",actions:[{label:"没有对应订单"}],children:P.jsxs("div",{children:[P.jsxs(oGe,{index:i,onChange:a,children:[P.jsx(xy,{label:"已购买",children:P.jsxs("div",{children:[P.jsx(nGe,{placeholder:"输入宝贝关键词等",onSearch:o=>{console.log(o)},onClear:()=>{console.log("cancel")}}),P.jsxs(gs,{className:"OrderGroup",children:[P.jsxs("div",{className:"OrderGroup-header",children:[P.jsx("h3",{children:"耐克官方旗舰店最多字数…"}),P.jsx("span",{className:"OrderGroup-status",children:"交易状态"})]}),P.jsx("div",{className:"OrderGroup-list",children:P.jsx(Hre,{type:"order",img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"Air Joden2019限定倒勾棕色高帮篮球鞋最多字…",desc:"颜色分类:棕色;42码",currency:"¥",price:30000.04,count:1,onClick:()=>{r(!0)}})}),P.jsxs("div",{className:"OrderGroup-actions",children:[P.jsx(_o,{size:"sm",children:"订单详情"}),P.jsx(_o,{color:"primary",size:"sm",children:"发送"})]})]})]})}),P.jsx(xy,{label:"购物车",children:P.jsx("p",{children:"内容2"})}),P.jsx(xy,{label:"收藏夹",children:P.jsx("p",{children:"内容3"})}),P.jsx(xy,{label:"足迹",children:P.jsx("p",{children:"内容3"})})]}),P.jsx(Wqe,{active:n,title:"确认要发送吗?",onClose:()=>{r(!1)},actions:[{label:"确认",color:"primary"},{label:"取消"}],children:P.jsx("div",{children:"Content 1"})})]})})};function eXe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const tXe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nXe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rXe={};function tB(e,t){return(rXe.jsx?nXe:tXe).test(e)}const iXe=/[ \t\n\f\r]/g;function aXe(e){return typeof e=="object"?e.type==="text"?nB(e.value):!1:nB(e)}function nB(e){return e.replace(iXe,"")===""}class Y1{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Y1.prototype.property={};Y1.prototype.normal={};Y1.prototype.space=null;function fie(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&uXe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(iB,pXe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!iB.test(a)){let o=a.replace(dXe,mXe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=AN}return new i(r,t)}function mXe(e){return"-"+e.toLowerCase()}function pXe(e){return e.charAt(1).toUpperCase()}const vXe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hXe=fie([vie,pie,bie,yie,lXe],"html"),LN=fie([vie,pie,bie,yie,cXe],"svg");function gXe(e){return e.join(" ").trim()}var wie={},aB=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,bXe=/\n/g,yXe=/^\s*/,wXe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xXe=/^:\s*/,SXe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,CXe=/^[;\s]*/,kXe=/^\s+|\s+$/g,_Xe=` +`,oB="/",sB="*",Od="",$Xe="comment",EXe="declaration",PXe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(v){var h=v.match(bXe);h&&(n+=h.length);var g=v.lastIndexOf(_Xe);r=~g?v.length-g:r+v.length}function a(){var v={line:n,column:r};return function(h){return h.position=new o(v),u(),h}}function o(v){this.start=v,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(v){var h=new Error(t.source+":"+n+":"+r+": "+v);if(h.reason=v,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function l(v){var h=v.exec(e);if(h){var g=h[0];return i(g),e=e.slice(g.length),h}}function u(){l(yXe)}function d(v){var h;for(v=v||[];h=f();)h!==!1&&v.push(h);return v}function f(){var v=a();if(!(oB!=e.charAt(0)||sB!=e.charAt(1))){for(var h=2;Od!=e.charAt(h)&&(sB!=e.charAt(h)||oB!=e.charAt(h+1));)++h;if(h+=2,Od===e.charAt(h-1))return s("End of comment missing");var g=e.slice(2,h-2);return r+=2,i(g),e=e.slice(h),r+=2,v({type:$Xe,comment:g})}}function m(){var v=a(),h=l(wXe);if(h){if(f(),!l(xXe))return s("property missing ':'");var g=l(SXe),w=v({type:EXe,property:lB(h[0].replace(aB,Od)),value:g?lB(g[0].replace(aB,Od)):Od});return l(CXe),w}}function p(){var v=[];d(v);for(var h;h=m();)h!==!1&&(v.push(h),d(v));return v}return u(),p()};function lB(e){return e?e.replace(kXe,Od):Od}var TXe=yi&&yi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wie,"__esModule",{value:!0});var cB=wie.default=IXe,OXe=TXe(PXe);function IXe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,OXe.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}const RXe=cB.default||cB,xie=Sie("end"),BN=Sie("start");function Sie(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function MXe(e){const t=BN(e),n=xie(e);if(t&&n)return{start:t,end:n}}function Eg(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?uB(e.position):"start"in e||"end"in e?uB(e):"line"in e||"column"in e?L6(e):""}function L6(e){return dB(e&&e.line)+":"+dB(e&&e.column)}function uB(e){return L6(e&&e.start)+"-"+L6(e&&e.end)}function dB(e){return e&&typeof e=="number"?e:1}class ca extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Eg(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}ca.prototype.file="";ca.prototype.name="";ca.prototype.reason="";ca.prototype.message="";ca.prototype.stack="";ca.prototype.column=void 0;ca.prototype.line=void 0;ca.prototype.ancestors=void 0;ca.prototype.cause=void 0;ca.prototype.fatal=void 0;ca.prototype.place=void 0;ca.prototype.ruleId=void 0;ca.prototype.source=void 0;const zN={}.hasOwnProperty,NXe=new Map,DXe=/[A-Z]/g,jXe=/-([a-z])/g,FXe=new Set(["table","tbody","thead","tfoot","tr"]),AXe=new Set(["td","th"]),Cie="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function LXe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=GXe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=qXe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?LN:hXe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kie(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function kie(e,t,n){if(t.type==="element")return BXe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return zXe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return VXe(e,t,n);if(t.type==="mdxjsEsm")return HXe(e,t);if(t.type==="root")return WXe(e,t,n);if(t.type==="text")return UXe(e,t)}function BXe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=LN,e.schema=i),e.ancestors.push(t);const a=$ie(e,t.tagName,!1),o=KXe(e,t);let s=VN(e,t);return FXe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!aXe(l):!0})),_ie(e,o,a,t),HN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function zXe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}O0(e,t.position)}function HXe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);O0(e,t.position)}function VXe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=LN,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:$ie(e,t.name,!0),o=YXe(e,t),s=VN(e,t);return _ie(e,o,a,t),HN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function WXe(e,t,n){const r={};return HN(r,VN(e,t)),e.create(t,e.Fragment,r,n)}function UXe(e,t){return t.value}function _ie(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function HN(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function qXe(e,t,n){return r;function r(i,a,o,s){const u=Array.isArray(o.children)?n:t;return s?u(a,o,s):u(a,o)}}function GXe(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=BN(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function KXe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&zN.call(t.properties,i)){const a=XXe(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&AXe.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function YXe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else O0(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else O0(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function VN(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:NXe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Vl(e,e.length,0,t),e):t}const pB={}.hasOwnProperty;function aQe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function cp(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _l=ld(/[A-Za-z]/),po=ld(/[\dA-Za-z]/),lQe=ld(/[#-'*+\--9=?A-Z^-~]/);function B6(e){return e!==null&&(e<32||e===127)}const z6=ld(/\d/),cQe=ld(/[\dA-Fa-f]/),uQe=ld(/[!-/:-@[-`{-~]/);function pn(e){return e!==null&&e<-2}function za(e){return e!==null&&(e<0||e===32)}function Zn(e){return e===-2||e===-1||e===32}const dQe=ld(new RegExp("\\p{P}|\\p{S}","u")),fQe=ld(/\s/);function ld(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function jv(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function xr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return Zn(l)?(e.enter(n),s(l)):t(l)}function s(l){return Zn(l)&&a++o))return;const k=t.events.length;let _=k,$,E;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if($){E=t.events[_][1].end;break}$=!0}for(w(r),S=k;Sy;){const C=n[x];t.containerState=C[1],C[0].exit.call(t,e)}n.length=y}function b(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gQe(e,t,n){return xr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function hB(e){if(e===null||za(e)||fQe(e))return 1;if(dQe(e))return 2}function UN(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[n][1].start};gB(f,-l),gB(m,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ko(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ko(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=Ko(u,UN(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ko(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Ko(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Vl(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n0&&Zn(S)?xr(e,b,"linePrefix",a+1)(S):b(S)}function b(S){return S===null||pn(S)?e.check(bB,h,x)(S):(e.enter("codeFlowValue"),y(S))}function y(S){return S===null||pn(S)?(e.exit("codeFlowValue"),b(S)):(e.consume(S),y)}function x(S){return e.exit("codeFenced"),t(S)}function C(S,k,_){let $=0;return E;function E(N){return S.enter("lineEnding"),S.consume(N),S.exit("lineEnding"),T}function T(N){return S.enter("codeFencedFence"),Zn(N)?xr(S,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):M(N)}function M(N){return N===s?(S.enter("codeFencedFenceSequence"),j(N)):_(N)}function j(N){return N===s?($++,S.consume(N),j):$>=o?(S.exit("codeFencedFenceSequence"),Zn(N)?xr(S,I,"whitespace")(N):I(N)):_(N)}function I(N){return N===null||pn(N)?(S.exit("codeFencedFence"),k(N)):_(N)}}}function TQe(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const C3={name:"codeIndented",tokenize:IQe},OQe={partial:!0,tokenize:RQe};function IQe(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),xr(e,a,"linePrefix",5)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):pn(u)?e.attempt(OQe,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||pn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function RQe(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):pn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):xr(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):pn(o)?i(o):n(o)}}const MQe={name:"codeText",previous:DQe,resolve:NQe,tokenize:jQe};function NQe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Oh(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Oh(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Oh(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Mie(e,t,n,r,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),m):w===null||w===32||w===41||B6(w)?n(w):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(w))}function m(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(e.exit("chunkString"),e.exit(s),m(w)):w===null||w===60||pn(w)?n(w):(e.consume(w),w===92?v:p)}function v(w){return w===60||w===62||w===92?(e.consume(w),p):p(w)}function h(w){return!d&&(w===null||w===41||za(w))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(w)):d999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):pn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||pn(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!Zn(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function Die(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,l):n(m)}function l(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),u(m))}function u(m){return m===o?(e.exit(a),l(o)):m===null?n(m):pn(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),xr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===o||m===null||pn(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:d)}function f(m){return m===o||m===92?(e.consume(m),d):d(m)}}function Pg(e,t){let n;return r;function r(i){return pn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Zn(i)?xr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const WQe={name:"definition",tokenize:qQe},UQe={partial:!0,tokenize:GQe};function qQe(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return Nie.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=cp(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return za(p)?Pg(e,u)(p):u(p)}function u(p){return Mie(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(UQe,f,f)(p)}function f(p){return Zn(p)?xr(e,m,"whitespace")(p):m(p)}function m(p){return p===null||pn(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function GQe(e,t,n){return r;function r(s){return za(s)?Pg(e,i)(s):n(s)}function i(s){return Die(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Zn(s)?xr(e,o,"whitespace")(s):o(s)}function o(s){return s===null||pn(s)?t(s):n(s)}}const KQe={name:"hardBreakEscape",tokenize:YQe};function YQe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return pn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const XQe={name:"headingAtx",resolve:QQe,tokenize:JQe};function QQe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Vl(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function JQe(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||za(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||pn(d)?(e.exit("atxHeading"),t(d)):Zn(d)?xr(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||za(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const ZQe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wB=["pre","script","style","textarea"],eJe={concrete:!0,name:"htmlFlow",resolveTo:rJe,tokenize:iJe},tJe={partial:!0,tokenize:oJe},nJe={partial:!0,tokenize:aJe};function rJe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function iJe(e,t,n){const r=this;let i,a,o,s,l;return u;function u(B){return d(B)}function d(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),m):B===47?(e.consume(B),a=!0,h):B===63?(e.consume(B),i=3,r.interrupt?t:R):_l(B)?(e.consume(B),o=String.fromCharCode(B),g):n(B)}function m(B){return B===45?(e.consume(B),i=2,p):B===91?(e.consume(B),i=5,s=0,v):_l(B)?(e.consume(B),i=4,r.interrupt?t:R):n(B)}function p(B){return B===45?(e.consume(B),r.interrupt?t:R):n(B)}function v(B){const W="CDATA[";return B===W.charCodeAt(s++)?(e.consume(B),s===W.length?r.interrupt?t:M:v):n(B)}function h(B){return _l(B)?(e.consume(B),o=String.fromCharCode(B),g):n(B)}function g(B){if(B===null||B===47||B===62||za(B)){const W=B===47,q=o.toLowerCase();return!W&&!a&&wB.includes(q)?(i=1,r.interrupt?t(B):M(B)):ZQe.includes(o.toLowerCase())?(i=6,W?(e.consume(B),w):r.interrupt?t(B):M(B)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):a?b(B):y(B))}return B===45||po(B)?(e.consume(B),o+=String.fromCharCode(B),g):n(B)}function w(B){return B===62?(e.consume(B),r.interrupt?t:M):n(B)}function b(B){return Zn(B)?(e.consume(B),b):E(B)}function y(B){return B===47?(e.consume(B),E):B===58||B===95||_l(B)?(e.consume(B),x):Zn(B)?(e.consume(B),y):E(B)}function x(B){return B===45||B===46||B===58||B===95||po(B)?(e.consume(B),x):C(B)}function C(B){return B===61?(e.consume(B),S):Zn(B)?(e.consume(B),C):y(B)}function S(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),l=B,k):Zn(B)?(e.consume(B),S):_(B)}function k(B){return B===l?(e.consume(B),l=null,$):B===null||pn(B)?n(B):(e.consume(B),k)}function _(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||za(B)?C(B):(e.consume(B),_)}function $(B){return B===47||B===62||Zn(B)?y(B):n(B)}function E(B){return B===62?(e.consume(B),T):n(B)}function T(B){return B===null||pn(B)?M(B):Zn(B)?(e.consume(B),T):n(B)}function M(B){return B===45&&i===2?(e.consume(B),O):B===60&&i===1?(e.consume(B),D):B===62&&i===4?(e.consume(B),H):B===63&&i===3?(e.consume(B),R):B===93&&i===5?(e.consume(B),z):pn(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(tJe,V,j)(B)):B===null||pn(B)?(e.exit("htmlFlowData"),j(B)):(e.consume(B),M)}function j(B){return e.check(nJe,I,V)(B)}function I(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),N}function N(B){return B===null||pn(B)?j(B):(e.enter("htmlFlowData"),M(B))}function O(B){return B===45?(e.consume(B),R):M(B)}function D(B){return B===47?(e.consume(B),o="",F):M(B)}function F(B){if(B===62){const W=o.toLowerCase();return wB.includes(W)?(e.consume(B),H):M(B)}return _l(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),F):M(B)}function z(B){return B===93?(e.consume(B),R):M(B)}function R(B){return B===62?(e.consume(B),H):B===45&&i===2?(e.consume(B),R):M(B)}function H(B){return B===null||pn(B)?(e.exit("htmlFlowData"),V(B)):(e.consume(B),H)}function V(B){return e.exit("htmlFlow"),t(B)}}function aJe(e,t,n){const r=this;return i;function i(o){return pn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function oJe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(c_,t,n)}}const sJe={name:"htmlText",tokenize:lJe};function lJe(e,t,n){const r=this;let i,a,o;return s;function s(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),l}function l(R){return R===33?(e.consume(R),u):R===47?(e.consume(R),C):R===63?(e.consume(R),y):_l(R)?(e.consume(R),_):n(R)}function u(R){return R===45?(e.consume(R),d):R===91?(e.consume(R),a=0,v):_l(R)?(e.consume(R),b):n(R)}function d(R){return R===45?(e.consume(R),p):n(R)}function f(R){return R===null?n(R):R===45?(e.consume(R),m):pn(R)?(o=f,D(R)):(e.consume(R),f)}function m(R){return R===45?(e.consume(R),p):f(R)}function p(R){return R===62?O(R):R===45?m(R):f(R)}function v(R){const H="CDATA[";return R===H.charCodeAt(a++)?(e.consume(R),a===H.length?h:v):n(R)}function h(R){return R===null?n(R):R===93?(e.consume(R),g):pn(R)?(o=h,D(R)):(e.consume(R),h)}function g(R){return R===93?(e.consume(R),w):h(R)}function w(R){return R===62?O(R):R===93?(e.consume(R),w):h(R)}function b(R){return R===null||R===62?O(R):pn(R)?(o=b,D(R)):(e.consume(R),b)}function y(R){return R===null?n(R):R===63?(e.consume(R),x):pn(R)?(o=y,D(R)):(e.consume(R),y)}function x(R){return R===62?O(R):y(R)}function C(R){return _l(R)?(e.consume(R),S):n(R)}function S(R){return R===45||po(R)?(e.consume(R),S):k(R)}function k(R){return pn(R)?(o=k,D(R)):Zn(R)?(e.consume(R),k):O(R)}function _(R){return R===45||po(R)?(e.consume(R),_):R===47||R===62||za(R)?$(R):n(R)}function $(R){return R===47?(e.consume(R),O):R===58||R===95||_l(R)?(e.consume(R),E):pn(R)?(o=$,D(R)):Zn(R)?(e.consume(R),$):O(R)}function E(R){return R===45||R===46||R===58||R===95||po(R)?(e.consume(R),E):T(R)}function T(R){return R===61?(e.consume(R),M):pn(R)?(o=T,D(R)):Zn(R)?(e.consume(R),T):$(R)}function M(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),i=R,j):pn(R)?(o=M,D(R)):Zn(R)?(e.consume(R),M):(e.consume(R),I)}function j(R){return R===i?(e.consume(R),i=void 0,N):R===null?n(R):pn(R)?(o=j,D(R)):(e.consume(R),j)}function I(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||za(R)?$(R):(e.consume(R),I)}function N(R){return R===47||R===62||za(R)?$(R):n(R)}function O(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function D(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),F}function F(R){return Zn(R)?xr(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):z(R)}function z(R){return e.enter("htmlTextData"),o(R)}}const qN={name:"labelEnd",resolveAll:fJe,resolveTo:mJe,tokenize:pJe},cJe={tokenize:vJe},uJe={tokenize:hJe},dJe={tokenize:gJe};function fJe(e){let t=-1;const n=[];for(;++t=3&&(u===null||pn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Zn(u)?xr(e,s,"whitespace")(u):s(u))}}const Ea={continuation:{tokenize:EJe},exit:TJe,name:"list",tokenize:$Je},kJe={partial:!0,tokenize:OJe},_Je={partial:!0,tokenize:PJe};function $Je(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){const v=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:z6(p)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Ww,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return z6(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(c_,r.interrupt?n:d,e.attempt(kJe,m,f))}function d(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function f(p){return Zn(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function EJe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(c_,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,xr(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Zn(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(_Je,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,xr(e,e.attempt(Ea,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function PJe(e,t,n){const r=this;return xr(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function TJe(e){e.exit(this.containerState.type)}function OJe(e,t,n){const r=this;return xr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!Zn(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const xB={name:"setextUnderline",resolveTo:IJe,tokenize:RJe};function IJe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function RJe(e,t,n){const r=this;let i;return a;function a(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Zn(u)?xr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||pn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const MJe={tokenize:NJe};function NJe(e){const t=this,n=e.attempt(c_,r,e.attempt(this.parser.constructs.flowInitial,i,xr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(LQe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const DJe={resolveAll:Fie()},jJe=jie("string"),FJe=jie("text");function jie(e){return{resolveAll:Fie(e==="text"?AJe:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(d){return u(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const f=i[d];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function QJe(e,t){let n=-1;const r=[];let i;for(;++n0){const Pe=he.tokenStack[he.tokenStack.length-1];(Pe[1]||CB).call(he,void 0,Pe[0])}for(ve.position={start:ru(se.length>0?se[0][1].start:{line:1,column:1,offset:0}),end:ru(se.length>0?se[se.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function pZe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vZe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Bie(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function hZe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bie(e,t);const i={src:jv(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function gZe(e,t){const n={src:jv(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function bZe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function yZe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bie(e,t);const i={href:jv(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function wZe(e,t){const n={href:jv(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xZe(e,t,n){const r=e.all(t),i=n?SZe(n):zie(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function CZe(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=BN(t.children[1]),l=xie(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function PZe(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push($B(t.slice(i),i>0,!1)),a.join("")}function $B(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===kB||a===_B;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===kB||a===_B;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function IZe(e,t){const n={type:"text",value:OZe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function RZe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const MZe={blockquote:lZe,break:cZe,code:uZe,delete:dZe,emphasis:fZe,footnoteReference:mZe,heading:pZe,html:vZe,imageReference:hZe,image:gZe,inlineCode:bZe,linkReference:yZe,link:wZe,listItem:xZe,list:CZe,paragraph:kZe,root:_Ze,strong:$Ze,table:EZe,tableCell:TZe,tableRow:PZe,text:IZe,thematicBreak:RZe,toml:Py,yaml:Py,definition:Py,footnoteDefinition:Py};function Py(){}const Hie=-1,u_=0,RS=1,MS=2,GN=3,KN=4,YN=5,XN=6,Vie=7,Wie=8,EB=typeof self=="object"?self:globalThis,NZe=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case u_:case Hie:return n(o,i);case RS:{const s=n([],i);for(const l of o)s.push(r(l));return s}case MS:{const s=n({},i);for(const[l,u]of o)s[r(l)]=r(u);return s}case GN:return n(new Date(o),i);case KN:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case YN:{const s=n(new Map,i);for(const[l,u]of o)s.set(r(l),r(u));return s}case XN:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case Vie:{const{name:s,message:l}=o;return n(new EB[s](l),i)}case Wie:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new EB[a](o),i)};return r},PB=e=>NZe(new Map,e)(0),bm="",{toString:DZe}={},{keys:jZe}=Object,Ih=e=>{const t=typeof e;if(t!=="object"||!e)return[u_,t];const n=DZe.call(e).slice(8,-1);switch(n){case"Array":return[RS,bm];case"Object":return[MS,bm];case"Date":return[GN,bm];case"RegExp":return[KN,bm];case"Map":return[YN,bm];case"Set":return[XN,bm]}return n.includes("Array")?[RS,n]:n.includes("Error")?[Vie,n]:[MS,n]},Ty=([e,t])=>e===u_&&(t==="function"||t==="symbol"),FZe=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=Ih(o);switch(s){case u_:{let d=o;switch(l){case"bigint":s=Wie,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([Hie],o)}return i([s,d],o)}case RS:{if(l)return i([l,[...o]],o);const d=[],f=i([s,d],o);for(const m of o)d.push(a(m));return f}case MS:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],f=i([s,d],o);for(const m of jZe(o))(e||!Ty(Ih(o[m])))&&d.push([a(m),a(o[m])]);return f}case GN:return i([s,o.toISOString()],o);case KN:{const{source:d,flags:f}=o;return i([s,{source:d,flags:f}],o)}case YN:{const d=[],f=i([s,d],o);for(const[m,p]of o)(e||!(Ty(Ih(m))||Ty(Ih(p))))&&d.push([a(m),a(p)]);return f}case XN:{const d=[],f=i([s,d],o);for(const m of o)(e||!Ty(Ih(m)))&&d.push(a(m));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},TB=(e,{json:t,lossy:n}={})=>{const r=[];return FZe(!(t||n),!!t,new Map,r)(e),r},NS=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?PB(TB(e,t)):structuredClone(e):(e,t)=>PB(TB(e,t));function AZe(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function LZe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function BZe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||AZe,r=e.options.footnoteBackLabel||LZe,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&v.push({type:"text",value:" "});let b=typeof n=="string"?n:n(l,p);typeof b=="string"&&(b={type:"text",value:b}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const g=d[d.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const b=g.children[g.children.length-1];b&&b.type==="text"?b.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...v)}else d.push(...v);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(u,w),s.push(w)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...NS(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const Uie=function(e){if(e==null)return WZe;if(typeof e=="function")return d_(e);if(typeof e=="object")return Array.isArray(e)?zZe(e):HZe(e);if(typeof e=="string")return VZe(e);throw new Error("Expected function, string, or object as test")};function zZe(e){const t=[];let n=-1;for(;++n":""))+")"})}return m;function m(){let p=qie,v,h,g;if((!t||a(l,u,d[d.length-1]||void 0))&&(p=YZe(n(l,d)),p[0]===OB))return p;if("children"in l&&l.children){const w=l;if(w.children&&p[0]!==GZe)for(h=(r?w.children.length:-1)+o,g=d.concat(w);h>-1&&h0&&n.push({type:"text",value:` +`}),n}function IB(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function RB(e,t){const n=QZe(e,t),r=n.one(e,void 0),i=BZe(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function net(e,t){return e&&"run"in e?async function(n,r){const i=RB(n,{file:r,...t});await e.run(i,r)}:function(n,r){return RB(n,{file:r,...e||t})}}function MB(e){if(e)throw e}var Uw=Object.prototype.hasOwnProperty,Kie=Object.prototype.toString,NB=Object.defineProperty,DB=Object.getOwnPropertyDescriptor,jB=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Kie.call(t)==="[object Array]"},FB=function(t){if(!t||Kie.call(t)!=="[object Object]")return!1;var n=Uw.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Uw.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Uw.call(t,i)},AB=function(t,n){NB&&n.name==="__proto__"?NB(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},LB=function(t,n){if(n==="__proto__")if(Uw.call(t,n)){if(DB)return DB(t,n).value}else return;return t[n]},ret=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,u=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const d=u;if(s&&n)throw d;return i(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const gl={basename:oet,dirname:set,extname:cet,join:uet,sep:"/"};function oet(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');X1(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function set(e){if(X1(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function cet(e){X1(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function uet(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function fet(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function X1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const met={cwd:pet};function pet(){return"/"}function U6(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function vet(e){if(typeof e=="string")e=new URL(e);else if(!U6(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return het(e)}function het(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...v]=d;const h=r[m][1];W6(h)&&W6(p)&&(p=_3(!0,h,p)),r[m]=[u,p,...v]}}}}const wet=new QN().freeze();function T3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function O3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function I3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function zB(e){if(!W6(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function HB(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Oy(e){return xet(e)?e:new Yie(e)}function xet(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Cet(e){return typeof e=="string"||ket(e)}function ket(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _et="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",VB=[],WB={allowDangerousHtml:!0},$et=/^(https?|ircs?|mailto|xmpp)$/i,Eet=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function UB(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||VB,l=e.remarkPlugins||VB,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...WB}:WB,d=e.skipHtml,f=e.unwrapDisallowed,m=e.urlTransform||Pet,p=wet().use(sZe).use(l).use(net,u).use(s),v=new Yie;typeof r=="string"&&(v.value=r);for(const b of Eet)Object.hasOwn(e,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+_et+b.id,void 0);const h=p.parse(v);let g=p.runSync(h,v);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),Gie(g,w),LXe(g,{Fragment:P.Fragment,components:a,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function w(b,y,x){if(b.type==="raw"&&x&&typeof y=="number")return d?x.children.splice(y,1):x.children[y]={type:"text",value:b.value},y;if(b.type==="element"){let C;for(C in S3)if(Object.hasOwn(S3,C)&&Object.hasOwn(b.properties,C)){const S=b.properties[C],k=S3[C];(k===null||k.includes(b.tagName))&&(b.properties[C]=m(String(S||""),C,b))}}if(b.type==="element"){let C=t?!t.includes(b.tagName):o?o.includes(b.tagName):!1;if(!C&&n&&typeof y=="number"&&(C=!n(b,y,x)),C&&x&&typeof y=="number")return f&&b.children?x.children.splice(y,1,...b.children):x.children.splice(y,1),y}}}function Pet(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||$et.test(e.slice(0,t))?e:""}const Tet=({uid:e,content:t,thread:n,visitor:r,onQuestionClick:i})=>{const[a,o]=c.useState(""),[s,l]=c.useState(""),[u,d]=c.useState(!1),[f,m]=c.useState([]);c.useEffect(()=>{o(t)},[t]);const p=async h=>{var g,w;if(console.log("handleRateClicked:",e,h,n,r),h==="up"){const b=await uYe(e);console.log("rateMessageHelpful response:",b.data),b&&b.data&&((g=b==null?void 0:b.data)!=null&&g.data)}else if(h==="down"){const b=await dYe(e);console.log("rateMessageUnhelpful response:",b.data),b&&b.data&&((w=b==null?void 0:b.data)!=null&&w.data)}},v=h=>{console.log("Question clicked:",h),i(h.question,h.answer)};return P.jsxs(P.Fragment,{children:[P.jsx(gs,{children:P.jsxs(G1,{style:{textAlign:"left"},children:[P.jsx(UB,{children:a}),s&&P.jsxs("div",{style:{marginTop:"12px"},children:[P.jsx("button",{onClick:()=>d(!u),style:{background:"#e8e8e8",border:"none",borderRadius:"4px",padding:"4px 8px",fontSize:"12px",color:"#666",cursor:"pointer",marginBottom:"8px"},children:u?"收起思考过程":"查看思考过程"}),u&&P.jsx("div",{style:{background:"#f9f9f9",padding:"12px",borderRadius:"8px",fontSize:"14px",color:"#666",whiteSpace:"pre-wrap"},children:P.jsx(UB,{children:s})})]}),f.length>0&&P.jsx("div",{className:"qa-buttons",style:{marginTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:f.map((h,g)=>P.jsx("button",{onClick:()=>v(h),style:{background:"#f5f5f5",border:"none",borderRadius:"18px",padding:"8px 16px",fontSize:"14px",color:"#333",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s"},children:h.question},g))})]})}),P.jsx(jN,{onClick:p})]})},Oet=({content:e,welcomeFaqs:t,orgUid:n,onFaqClick:r})=>{const[i,a]=c.useState(""),[o,s]=c.useState([]),[l,u]=c.useState([]),[d]=c.useState(5),[f,m]=c.useState(0),[p,v]=c.useState(!1),{translateString:h}=K1();c.useEffect(()=>{e&&a(e),t&&(s(t),u(t.slice(0,d)))},[e,t,d]);const g=async()=>{var b,y,x,C,S,k;if(!p)try{v(!0),m(E=>E+1);const _={pageNumber:f,pageSize:d,orgUid:n},$=await oYe(_);console.log("changes FAQs:",_,$.data),$&&$.data&&((y=(b=$==null?void 0:$.data)==null?void 0:b.data)!=null&&y.content)&&((C=(x=$.data)==null?void 0:x.data)!=null&&C.last&&(m(0),jn.info("没有更多数据了,从第一页开始")),u((k=(S=$.data)==null?void 0:S.data)==null?void 0:k.content))}catch(_){console.error("Failed to fetch new FAQs:",_)}finally{v(!1)}},w=b=>{r(b,0)};return P.jsxs(P.Fragment,{children:[P.jsx(gs,{children:P.jsxs(G1,{style:{textAlign:"left"},children:[P.jsx(Nv,{content:i}),o.length>0&&P.jsxs("div",{className:"qa-section",style:{marginTop:"12px"},children:[P.jsxs("div",{className:"qa-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[P.jsx("span",{style:{fontWeight:"500"},children:"常见问题"}),o.length>0&&P.jsxs("button",{onClick:g,disabled:p,style:{background:"transparent",border:"none",color:"#1890ff",cursor:p?"not-allowed":"pointer",fontSize:"14px",display:"flex",alignItems:"center",opacity:p?.7:1},children:["换一批",P.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",style:{marginLeft:"4px",animation:p?"spin 1s linear infinite":"none"},children:P.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4 7.58 4 12C4 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z",fill:"currentColor"})})]})]}),P.jsx("div",{className:"qa-buttons",style:{display:"flex",flexDirection:"column",gap:"8px"},children:l.map((b,y)=>P.jsx("button",{onClick:()=>w(b),style:{background:"#f5f5f5",border:"none",borderRadius:"18px",padding:"8px 16px",fontSize:"14px",color:"#333",cursor:"pointer",textAlign:"left",transition:"background-color 0.2s"},children:h(b.question)},y))})]})]})}),P.jsx("style",{children:` + @keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } + } + `})]})},Iet=({title:e,description:t,typing:n,typingTip:r,isPlayAudio:i,setIsPlayAudio:a,handleMinimize:o,handleMaximize:s,handleClose:l,navbarStyle:u,navbarTheme:d,agent:f})=>P.jsx(P.Fragment,{children:P.jsxs("div",{className:`chat-navbar ${d?`theme-${d}`:""}`,style:u,children:[P.jsxs("div",{className:"chat-navbar-left",children:[P.jsx("img",{src:(f==null?void 0:f.avatar)||"https://cdn.weiyuai.cn/avatars/agent.png",alt:"logo",className:"chat-navbar-logo",onClick:()=>console.log("logo clicked")}),P.jsxs("div",{className:"chat-navbar-info",children:[P.jsx("div",{className:"chat-navbar-title",style:{color:u.color},children:e}),P.jsx("div",{className:"chat-navbar-desc",style:{color:u.color},children:n?r:t})]})]}),P.jsxs("div",{className:"chat-navbar-right",children:[P.jsx("svg",{className:"chat-navbar-icon",viewBox:"0 0 1024 1024",onClick:()=>{localStorage.setItem(Dx,i?"false":"true"),a(!i)},style:{color:u.color},children:i?P.jsx("path",{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l251.733333 192c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l18-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344z",fill:"currentColor"}):P.jsx("path",{d:"M469.333333 106.666667L217.6 298.666667H64c-35.2 0-64 28.8-64 64v298.666666c0 35.2 28.8 64 64 64h153.6l251.733333 192c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM384 761.6L171.733333 597.333333H85.333333V426.666667h86.4l212.266667-164.266667V761.6z m482.133333-326.4l120.533334-120.533333c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0L821.333333 390.4l-120.533333-120.533333c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8l120.533333 120.533333-120.533333 120.533333c-12.8 12.8-12.8 32 0 44.8 6.4 6.4 14.933333 9.6 23.466667 9.6s17.066667-3.2 23.466666-9.6l120.533334-120.533333 120.533333 120.533333c6.4 6.4 14.933333 9.6 23.466667 9.6s17.066667-3.2 23.466666-9.6c12.8-12.8 12.8-32 0-44.8L866.133333 435.2z",fill:"currentColor"})}),P.jsx("svg",{className:"chat-navbar-icon",viewBox:"0 0 1024 1024",onClick:o,style:{color:u.color},children:P.jsx("path",{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z",fill:"currentColor"})}),P.jsx("svg",{className:"chat-navbar-icon",viewBox:"0 0 1024 1024",onClick:s,style:{color:u.color},children:P.jsx("path",{d:"M794.432 983.552H229.568c-104.384 0-189.12-84.736-189.12-189.12V229.568c0-104.384 84.736-189.12 189.12-189.12h564.864c104.384 0 189.12 84.736 189.12 189.12v564.864c0 104.384-84.736 189.12-189.12 189.12zM229.568 131.648c-53.952 0-97.92 43.968-97.92 97.92v564.864c0 53.952 43.968 97.92 97.92 97.92h564.864c53.952 0 97.92-43.968 97.92-97.92V229.568c0-53.952-43.968-97.92-97.92-97.92H229.568z",fill:"currentColor"})}),P.jsx("svg",{className:"chat-navbar-icon",viewBox:"0 0 1024 1024",onClick:l,style:{color:u.color},children:P.jsx("path",{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z",fill:"currentColor"})})]})]})}),Ret=({isDarkMode:e,searchResults:t,isMobile:n,handleFaqClick:r,setShowSearchResults:i,setInputText:a,setPreviewText:o,debouncedPreviewText:s})=>{const l=(u,d)=>d.trim()?u.split(new RegExp(`(${d})`,"gi")).map((m,p)=>m.toLowerCase()===d.toLowerCase()?P.jsx("span",{style:{color:"#ff4d4f"},children:m},p):m):u;return P.jsx(P.Fragment,{children:P.jsx("div",{style:{position:"absolute",bottom:n?"120px":"200px",left:"20px",right:"20px",maxHeight:"200px",overflowY:"auto",backgroundColor:e?"#1f1f1f":"#fff",border:`1px solid ${e?"#333":"#e8e8e8"}`,borderRadius:"4px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",zIndex:1e3},children:t.map((u,d)=>P.jsx("div",{onClick:()=>{r(u,d),i(!1),a(""),o("")},style:{padding:"8px 12px",cursor:"pointer",borderBottom:`1px solid ${e?"#333":"#e8e8e8"}`,color:e?"#fff":"#000"},children:l(u.question,s)},d))})})},Met=({faqs:e,isDarkMode:t,handleFaqClick:n})=>{const r=Di();return P.jsx(P.Fragment,{children:P.jsxs("div",{className:"right-column",style:{color:t?"#fff":"#000",backgroundColor:t?"#141414":"#f5f5f5"},children:[P.jsx("h3",{style:{color:t?"#fff":"#000",padding:"10px",margin:"0"},children:r.formatMessage({id:"chat.faq.title"})}),e.map((i,a)=>P.jsx("div",{className:"faq-item",style:{textAlign:"center",padding:"8px",cursor:"pointer",transition:"background-color 0.3s"},children:P.jsx("p",{onClick:()=>n(i,a),title:i.question,className:"faq-question hover-effect",style:{margin:"0 auto",maxWidth:"80%",color:t?"#fff":"#000"},children:i.question})},a))]})})},Net=({isDarkMode:e,rightIframeUrl:t})=>P.jsx("div",{children:P.jsx("div",{className:"right-column",style:{color:e?"#fff":"#000",backgroundColor:e?"#141414":"#f5f5f5"},children:P.jsx("iframe",{src:t,style:{width:"100%",height:"100%",border:"none",borderRadius:"4px",backgroundColor:"transparent"}})})}),Det=({menuId:e,handleRightClick:t})=>{const n=Di();return P.jsx(P.Fragment,{children:P.jsx(KYe,{id:e,children:P.jsx(YYe,{id:"copy",onClick:t,children:n.formatMessage({id:"chat.menu.copy"})})})})},jet=[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],Fet={100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square","1","2","3","4"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing","shy"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},shaking_face:{id:"shaking_face",name:"Shaking Face",keywords:["dizzy","shock","blurry","earthquake"],skins:[{unified:"1fae8",native:"🫨"}],version:15},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease","covid"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever","covid"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy","cry","tears","sad","grievance"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude","cry"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["2&&(o.children=arguments.length>3?f_.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return qw(e,o,r,i,null)}function qw(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Qie};return i==null&&cn.vnode!=null&&cn.vnode(a),a}function rc(){return{current:null}}function Vp(e){return e.children}function Nl(e,t){this.props=e,this.context=t}function Wp(e,t){if(t==null)return e.__?Wp(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?qw(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=w[d])===null||m&&p.key==m.key&&p.type===m.type)w[d]=void 0;else for(f=0;f{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,r=Math.floor(t/2);return e.font=r+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,i=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(i,0,22),e.fillStyle="#0000FF",e.fillText(i,n,22);const a=e.getImageData(0,0,n,t).data,o=a.length;let s=0;for(;s=o)return!1;const l=n+s/4%n,u=Math.floor(s/4/n),d=e.getImageData(l,u,1,1).data;return!(a[s]!==d[0]||a[s+2]!==d[2]||e.measureText(i).width>=n)}})();var QB={latestVersion:Yet,noCountryFlags:Xet};const G6=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let Ai=null;function Jet(e){Ai||(Ai=Vu.get("frequently")||{});const t=e.id||e;t&&(Ai[t]||(Ai[t]=0),Ai[t]+=1,Vu.set("last",t),Vu.set("frequently",Ai))}function Zet({maxFrequentRows:e,perLine:t}){if(!e)return[];Ai||(Ai=Vu.get("frequently"));let n=[];if(!Ai){Ai={};for(let a in G6.slice(0,t)){const o=G6[a];Ai[o]=t-a,n.push(o)}return n}const r=e*t,i=Vu.get("last");for(let a in Ai)n.push(a);if(n.sort((a,o)=>{const s=Ai[o],l=Ai[a];return s==l?a.localeCompare(o):s-l}),n.length>r){const a=n.slice(r);n=n.slice(0,r);for(let o of a)o!=i&&delete Ai[o];i&&n.indexOf(i)==-1&&(delete Ai[n[n.length-1]],n.splice(-1,1,i)),Vu.set("frequently",Ai)}return n}var uae={add:Jet,get:Zet,DEFAULTS:G6},dae={};dae=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var hc={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Xi=null,Pn=null;const M3={};async function JB(e){if(M3[e])return M3[e];const n=await(await fetch(e)).json();return M3[e]=n,n}let N3=null,fae=null,mae=!1;function m_(e,{caller:t}={}){return N3||(N3=new Promise(n=>{fae=n})),e?ett(e):t&&!mae&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),N3}async function ett(e){mae=!0;let{emojiVersion:t,set:n,locale:r}=e;if(t||(t=hc.emojiVersion.value),n||(n=hc.set.value),r||(r=hc.locale.value),Pn)Pn.categories=Pn.categories.filter(l=>!l.name);else{Pn=(typeof e.data=="function"?await e.data():e.data)||await JB(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Pn.emoticons={},Pn.natives={},Pn.categories.unshift({id:"frequent",emojis:[]});for(const l in Pn.aliases){const u=Pn.aliases[l],d=Pn.emojis[u];d&&(d.aliases||(d.aliases=[]),d.aliases.push(l))}Pn.originalCategories=Pn.categories}if(Xi=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(r=="en"?Xie(dae):await JB(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),e.custom)for(let l in e.custom){l=parseInt(l);const u=e.custom[l],d=e.custom[l-1];if(!(!u.emojis||!u.emojis.length)){u.id||(u.id=`custom_${l+1}`),u.name||(u.name=Xi.categories.custom),d&&!u.icon&&(u.target=d.target||d),Pn.categories.push(u);for(const f of u.emojis)Pn.emojis[f.id]=f}}e.categories&&(Pn.categories=Pn.originalCategories.filter(l=>e.categories.indexOf(l.id)!=-1).sort((l,u)=>{const d=e.categories.indexOf(l.id),f=e.categories.indexOf(u.id);return d-f}));let i=null,a=null;n=="native"&&(i=QB.latestVersion(),a=e.noCountryFlags||QB.noCountryFlags());let o=Pn.categories.length,s=!1;for(;o--;){const l=Pn.categories[o];if(l.id=="frequent"){let{maxFrequentRows:f,perLine:m}=e;f=f>=0?f:hc.maxFrequentRows.value,m||(m=hc.perLine.value),l.emojis=uae.get({maxFrequentRows:f,perLine:m})}if(!l.emojis||!l.emojis.length){Pn.categories.splice(o,1);continue}const{categoryIcons:u}=e;if(u){const f=u[l.id];f&&!l.icon&&(l.icon=f)}let d=l.emojis.length;for(;d--;){const f=l.emojis[d],m=f.id?f:Pn.emojis[f],p=()=>{l.emojis.splice(d,1)};if(!m||e.exceptEmojis&&e.exceptEmojis.includes(m.id)){p();continue}if(i&&m.version>i){p();continue}if(a&&l.id=="flags"&&!att.includes(m.id)){p();continue}if(!m.search){if(s=!0,m.search=","+[[m.id,!1],[m.name,!0],[m.keywords,!1],[m.emoticons,!1]].map(([h,g])=>{if(h)return(Array.isArray(h)?h:[h]).map(w=>(g?w.split(/[-|_|\s]+/):[w]).map(b=>b.toLowerCase())).flat()}).flat().filter(h=>h&&h.trim()).join(","),m.emoticons)for(const h of m.emoticons)Pn.emoticons[h]||(Pn.emoticons[h]=m.id);let v=0;for(const h of m.skins){if(!h)continue;v++;const{native:g}=h;g&&(Pn.natives[g]=m.id,m.search+=`,${g}`);const w=v==1?"":`:skin-tone-${v}:`;h.shortcodes=`:${m.id}:${w}`}}}}s&&up.reset(),fae()}function pae(e,t,n){e||(e={});const r={};for(let i in t)r[i]=vae(i,e,t,n);return r}function vae(e,t,n,r){const i=n[e];let a=r&&r.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return i&&(a!=null&&i.value&&typeof i.value!=typeof a&&(typeof i.value=="boolean"?a=a!="false":a=i.value.constructor(a)),i.transform&&a&&(a=i.transform(a)),(a==null||i.choices&&i.choices.indexOf(a)==-1)&&(a=i.value)),a}const ttt=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let K6=null;function ntt(e){return e.id?e:Pn.emojis[e]||Pn.emojis[Pn.aliases[e]]||Pn.emojis[Pn.natives[e]]}function rtt(){K6=null}async function itt(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await m_(null,{caller:n||"SearchIndex.search"});const r=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,l,u)=>s.trim()&&u.indexOf(s)==l);if(!r.length)return;let i=K6||(K6=Object.values(Pn.emojis)),a,o;for(const s of r){if(!i.length)break;a=[],o={};for(const l of i){if(!l.search)continue;const u=l.search.indexOf(`,${s}`);u!=-1&&(a.push(l),o[l.id]||(o[l.id]=0),o[l.id]+=l.id==s?0:u+1)}i=a}return a.length<2||(a.sort((s,l)=>{const u=o[s.id],d=o[l.id];return u==d?s.id.localeCompare(l.id):u-d}),a.length>t&&(a=a.slice(0,t))),a}var up={search:itt,get:ntt,reset:rtt,SHORTCODES_REGEX:ttt};const att=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function ott(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,r)=>n==t[r])}async function stt(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function ltt(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),r={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(r.skin=t+1),n.src&&(r.src=n.src),e.aliases&&e.aliases.length&&(r.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(r.emoticons=e.emoticons),r}const ctt={activity:{outline:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:St("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:St("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:St("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:St("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:St("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:St("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:St("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[St("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),St("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:St("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[St("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),St("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:St("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[St("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),St("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:St("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[St("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),St("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:St("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[St("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),St("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:St("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:St("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:St("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},utt={loupe:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:St("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:St("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:St("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var LS={categories:ctt,search:utt};function Y6(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){const s=e.shortcodes.match(up.SHORTCODES_REGEX);s&&(t=s[1],s[2]&&(n=s[2]))}if(r||(r=up.get(t||e.native)),!r)return e.fallback;const i=r.skins[n-1]||r.skins[0],a=i.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,i.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${i.unified}.png`:void 0),o=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return St("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?St("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:i.native||i.shortcodes,src:a}):e.set=="native"?St("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:i.native}):St("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${o})`,backgroundSize:`${100*Pn.sheet.cols}% ${100*Pn.sheet.rows}%`,backgroundPosition:`${100/(Pn.sheet.cols-1)*i.x}% ${100/(Pn.sheet.rows-1)*i.y}%`}})})}const dtt=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class hae extends dtt{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,r){if(!this.component)return;const i=vae(t,{[t]:r},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:i}):(this.component.props[t]=i,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const r=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),r&&r.appendChild(this)}}}class ftt extends hae{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var gae={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:hc.set,skin:hc.skin};class bae extends hae{async connectedCallback(){const t=pae(this.props,gae,this);t.element=this,t.ref=n=>{this.component=n},await m_(),!this.disconnected&&lae(St(Y6,{...t}),this)}constructor(t){super(t)}}Bo(bae,"Props",gae);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",bae);var ZB,X6=[],ez=cn.__b,tz=cn.__r,nz=cn.diffed,rz=cn.__c,iz=cn.unmount;function mtt(){var e;for(X6.sort(function(t,n){return t.__v.__b-n.__v.__b});e=X6.pop();)if(e.__P)try{e.__H.__h.forEach(Gw),e.__H.__h.forEach(Q6),e.__H.__h=[]}catch(t){e.__H.__h=[],cn.__e(t,e.__v)}}cn.__b=function(e){ez&&ez(e)},cn.__r=function(e){tz&&tz(e);var t=e.__c.__H;t&&(t.__h.forEach(Gw),t.__h.forEach(Q6),t.__h=[])},cn.diffed=function(e){nz&&nz(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(X6.push(t)!==1&&ZB===cn.requestAnimationFrame||((ZB=cn.requestAnimationFrame)||function(n){var r,i=function(){clearTimeout(a),az&&cancelAnimationFrame(r),setTimeout(n)},a=setTimeout(i,100);az&&(r=requestAnimationFrame(i))})(mtt))},cn.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Gw),n.__h=n.__h.filter(function(r){return!r.__||Q6(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],cn.__e(r,n.__v)}}),rz&&rz(e,t)},cn.unmount=function(e){iz&&iz(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Gw(r)}catch(i){t=i}}),t&&cn.__e(t,n.__v))};var az=typeof requestAnimationFrame=="function";function Gw(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function Q6(e){e.__c=e.__()}function ptt(e,t){for(var n in t)e[n]=t[n];return e}function oz(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function BS(e){this.props=e}(BS.prototype=new Nl).isPureReactComponent=!0,BS.prototype.shouldComponentUpdate=function(e,t){return oz(this.props,e)||oz(this.state,t)};var sz=cn.__b;cn.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),sz&&sz(e)};var vtt=cn.__e;cn.__e=function(e,t,n){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}vtt(e,t,n)};var lz=cn.unmount;function D3(){this.__u=0,this.t=null,this.__b=null}function yae(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Iy(){this.u=null,this.o=null}cn.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),lz&&lz(e)},(D3.prototype=new Nl).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=yae(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__e){var u=r.state.__e;r.__v.__k[0]=function f(m,p,v){return m&&(m.__v=null,m.__k=m.__k&&m.__k.map(function(h){return f(h,p,v)}),m.__c&&m.__c.__P===p&&(m.__e&&v.insertBefore(m.__e,m.__d),m.__c.__e=!0,m.__c.__P=v)),m}(u,u.__c.__P,u.__c.__O)}var d;for(r.setState({__e:r.__b=null});d=r.t.pop();)d.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(o,o)},D3.prototype.componentWillUnmount=function(){this.t=[]},D3.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),o.__c.__H=null),(o=ptt({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(u){return a(u,s,l)})),o}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&q6(Vp,null,e.fallback);return i&&(i.__h=null),[q6(Vp,null,t.__e?null:e.children),i]};var cz=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const i=n.name||Xi.categories[n.id],a=!this.props.unfocused&&n.id==this.state.categoryId;return a&&(t=r),St("button",{"aria-label":i,"aria-selected":a||void 0,title:i,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:n,i:r})},children:this.renderIcon(n)})}),St("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Pn.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class _tt extends BS{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const Ry={rowsPerRender:10};class $tt extends Nl{getInitialState(t=this.props){return{skin:Vu.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=Xi.rtl?"rtl":"ltr",this.refs={menu:rc(),navigation:rc(),scroll:rc(),search:rc(),searchInput:rc(),skinToneButton:rc(),skinToneRadio:rc()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const i in this.nextState)this.props[i]=this.nextState[i],(i==="custom"||i==="categories")&&(n=!0);delete this.nextState;const r=this.getInitialState();if(n)return this.reset(r);this.setState(r)})}componentWillUnmount(){this.unregister()}async reset(t={}){await m_(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Pn;this.refs.categories=new Map;const n=Pn.categories.map(i=>i.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const r=(i,a)=>{const o=[];o.__categoryId=a.id,o.__index=i.length,this.grid.push(o);const s=this.grid.length-1,l=s%Ry.rowsPerRender?{}:rc();return l.index=s,l.posinset=this.grid.setsize+1,i.push(l),o};for(let i of t){const a=[];let o=r(a,i);for(let s of i.emojis)o.length==this.getPerLine()&&(o=r(a,i)),this.grid.setsize+=1,o.push(s);this.refs.categories.set(i.id,{root:rc(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:r}=t,i=()=>{const{width:o}=n.getBoundingClientRect();return Math.floor(o/r)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:i()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(n),this.observers.push(a),i()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const r=this.state.searchResults||this.grid,i=r[t]&&r[t][n];if(i)return up.get(i)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,r=o=>{o!=t.state.categoryId&&t.setState({categoryId:o})},i={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const l of o){const u=l.target.dataset.id;n.set(u,l.intersectionRatio)}const s=[...n];for(const[l,u]of s)if(u){r(l);break}},i);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(r=>{for(const i of r){const a=parseInt(i.target.dataset.index);i.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(Ry.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*Ry.rowsPerRender}px`});for(const{rows:r}of this.refs.categories.values())for(const i of r)i.current&&n.observe(i.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:r,right:i,up:a,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[l,u]=this.state.pos;const d=(()=>{if(l==0&&u==0&&!t.repeat&&(r||a))return null;if(l==-1)return!t.repeat&&(i||o)&&n.selectionStart==n.value.length?[0,0]:null;if(r||i){let f=s[l];const m=r?-1:1;if(u+=m,!f[u]){if(l+=m,f=s[l],!f)return l=r?0:s.length-1,u=r?0:s[l].length-1,[l,u];u=r?f.length-1:0}return[l,u]}if(a||o){l+=a?-1:1;const f=s[l];return f?(f[u]||(u=f.length-1),[l,u]):(l=a?0:s.length-1,u=a?0:s[l].length-1,[l,u])}})();if(d)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:d,keyboard:!0},()=>{this.scrollTo({row:d[0]})})}scrollTo({categoryId:t,row:n}){const r=this.state.searchResults||this.grid;if(!r.length)return;const i=this.refs.scroll.current,a=i.getBoundingClientRect();let o=0;if(n>=0&&(t=r[n].__categoryId),t&&(o=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-i.scrollTop)+1),n>=0)if(!n)o=0;else{const s=r[n].__index,l=o+s*this.props.emojiButtonSize,u=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(li.scrollTop+a.height)o=u-a.height;else return}this.ignoreMouse(),i.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:r}){if(this.props.onEmojiSelect&&(!n&&r&&(n=this.getEmojiByPos(r)),n)){const i=ltt(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&uae.add(i,this.props),this.props.onEmojiSelect(i,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),Vu.set("skin",t)}renderNav(){return St(ktt,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return St("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[St("div",{class:"flex flex-middle flex-grow",children:[St("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:St(Y6,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),St("div",{class:`margin-${this.dir[0]}`,children:t||n?St("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[St("div",{class:"preview-title ellipsis",children:t?t.name:Xi.search_no_results_1}),St("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:Xi.search_no_results_2})]}):St("div",{class:"preview-placeholder color-c",children:Xi.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:r,grid:i}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,l=(t.skins[o-1]||t.skins[0]).native,u=ott(this.state.pos,n),d=n.concat(t.id).join("");return St(_tt,{selected:u,skin:o,size:a,children:St("button",{"aria-label":l,"aria-selected":u||void 0,"aria-posinset":r,"aria-setsize":i.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:f=>this.handleEmojiClick({e:f,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[St("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(r-1)%this.props.emojiButtonColors.length]:void 0}}),St(Y6,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},d)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return St("div",{children:[St("div",{class:"spacer"}),St("div",{class:"flex flex-middle",children:[St("div",{class:"search relative flex-grow",children:[St("input",{type:"search",ref:this.refs.searchInput,placeholder:Xi.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),St("span",{class:"icon loupe flex",children:LS.search.loupe}),this.state.searchResults&&St("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:LS.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?St("div",{class:"category",ref:this.refs.search,children:[St("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Xi.categories.search}),St("div",{children:t.length?t.map((n,r)=>St("div",{class:"flex",children:n.map((i,a)=>this.renderEmojiButton(i,{pos:[r,a],posinset:r*this.props.perLine+a+1,grid:t}))})):St("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&St("a",{onClick:this.props.onAddCustomEmoji,children:Xi.add_custom})})})]}):null}renderCategories(){const{categories:t}=Pn,n=!!this.state.searchResults,r=this.getPerLine();return St("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(i=>{const{root:a,rows:o}=this.refs.categories.get(i.id);return St("div",{"data-id":i.target?i.target.id:i.id,class:"category",ref:a,children:[St("div",{class:`sticky padding-small align-${this.dir[0]}`,children:i.name||Xi.categories[i.id]}),St("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((s,l)=>{const u=s.index-s.index%Ry.rowsPerRender,d=this.state.visibleRows[u],f="current"in s?s:void 0;if(!d&&!f)return null;const m=l*r,p=m+r,v=i.emojis.slice(m,p);return v.length{if(!h)return St("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const w=up.get(h);return this.renderEmojiButton(w,{pos:[s.index,g],posinset:s.posinset+g,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:St("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:St("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Xi.skins.choose,title:Xi.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:St("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return St("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),r=this.base.getBoundingClientRect(),i={};return this.dir=="ltr"?i.right=r.right-n.right-3:i.left=n.left-r.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?i.bottom=r.bottom-n.top+6:(i.top=n.bottom-r.top+3,i.bottom="auto"),St("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Xi.skins.choose,class:"menu hidden","data-position":i.top?"top":"bottom",style:i,children:[...Array(6).keys()].map(a=>{const o=a+1,s=this.state.skin==o;return St("div",{children:[St("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Xi.skins[o],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(o))}}),St("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[St("span",{class:`skin-tone skin-tone-${o}`}),St("span",{class:"margin-small-lr",children:Xi.skins[o]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return St("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&St("div",{class:"padding-lr",children:this.renderSearch()}),St("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:St("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),Bo(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Bo(this,"handleClickOutside",n=>{const{element:r}=this.props;n.target!=r&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),Bo(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),Bo(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),Bo(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Bo(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:r}=n,i=await up.search(r),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!i)return this.setState({searchResults:i,pos:[-1,-1]},a);const o=n.selectionStart==n.value.length?[0,0]:[-1,-1],s=[];s.setsize=i.length;let l=null;for(let u of i)(!s.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=s.length,s.push(l)),l.push(u);this.ignoreMouse(),this.setState({searchResults:s,pos:o},a)}),Bo(this,"handleSearchKeyDown",n=>{const r=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:r,left:!0});break;case"ArrowRight":this.navigate({e:n,input:r,right:!0});break;case"ArrowUp":this.navigate({e:n,input:r,up:!0});break;case"ArrowDown":this.navigate({e:n,input:r,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Bo(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),Bo(this,"handleCategoryClick",({category:n,i:r})=>{this.scrollTo(r==0?{row:-1}:{categoryId:n.id})}),Bo(this,"openSkins",n=>{const{currentTarget:r}=n,i=r.getBoundingClientRect();this.setState({showSkins:i},async()=>{await stt(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class ZN extends ftt{async connectedCallback(){const t=pae(this.props,hc,this);t.element=this,t.ref=n=>{this.component=n},await m_(t),!this.disconnected&&lae(St($tt,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:Xie(wae)})}}Bo(ZN,"Props",hc);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",ZN);var wae={};wae=`:host { + width: min-content; + height: 435px; + min-height: 230px; + border-radius: var(--border-radius); + box-shadow: var(--shadow); + --border-radius: 10px; + --category-icon-size: 18px; + --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; + --font-size: 15px; + --preview-placeholder-size: 21px; + --preview-title-size: 1.1em; + --preview-subtitle-size: .9em; + --shadow-color: 0deg 0% 0%; + --shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14); + display: flex; +} + +[data-theme="light"] { + --em-rgb-color: var(--rgb-color, 34, 36, 39); + --em-rgb-accent: var(--rgb-accent, 34, 102, 237); + --em-rgb-background: var(--rgb-background, 255, 255, 255); + --em-rgb-input: var(--rgb-input, 255, 255, 255); + --em-color-border: var(--color-border, rgba(0, 0, 0, .05)); + --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1)); +} + +[data-theme="dark"] { + --em-rgb-color: var(--rgb-color, 222, 222, 221); + --em-rgb-accent: var(--rgb-accent, 58, 130, 247); + --em-rgb-background: var(--rgb-background, 21, 22, 23); + --em-rgb-input: var(--rgb-input, 0, 0, 0); + --em-color-border: var(--color-border, rgba(255, 255, 255, .1)); + --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2)); +} + +#root { + --color-a: rgb(var(--em-rgb-color)); + --color-b: rgba(var(--em-rgb-color), .65); + --color-c: rgba(var(--em-rgb-color), .45); + --padding: 12px; + --padding-small: calc(var(--padding) / 2); + --sidebar-width: 16px; + --duration: 225ms; + --duration-fast: 125ms; + --duration-instant: 50ms; + --easing: cubic-bezier(.4, 0, .2, 1); + width: 100%; + text-align: left; + border-radius: var(--border-radius); + background-color: rgb(var(--em-rgb-background)); + position: relative; +} + +@media (prefers-reduced-motion) { + #root { + --duration: 0; + --duration-fast: 0; + --duration-instant: 0; + } +} + +#root[data-menu] button { + cursor: auto; +} + +#root[data-menu] .menu button { + cursor: pointer; +} + +:host, #root, input, button { + color: rgb(var(--em-rgb-color)); + font-family: var(--font-family); + font-size: var(--font-size); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + line-height: normal; +} + +*, :before, :after { + box-sizing: border-box; + min-width: 0; + margin: 0; + padding: 0; +} + +.relative { + position: relative; +} + +.flex { + display: flex; +} + +.flex-auto { + flex: none; +} + +.flex-center { + justify-content: center; +} + +.flex-column { + flex-direction: column; +} + +.flex-grow { + flex: auto; +} + +.flex-middle { + align-items: center; +} + +.flex-wrap { + flex-wrap: wrap; +} + +.padding { + padding: var(--padding); +} + +.padding-t { + padding-top: var(--padding); +} + +.padding-lr { + padding-left: var(--padding); + padding-right: var(--padding); +} + +.padding-r { + padding-right: var(--padding); +} + +.padding-small { + padding: var(--padding-small); +} + +.padding-small-b { + padding-bottom: var(--padding-small); +} + +.padding-small-lr { + padding-left: var(--padding-small); + padding-right: var(--padding-small); +} + +.margin { + margin: var(--padding); +} + +.margin-r { + margin-right: var(--padding); +} + +.margin-l { + margin-left: var(--padding); +} + +.margin-small-l { + margin-left: var(--padding-small); +} + +.margin-small-lr { + margin-left: var(--padding-small); + margin-right: var(--padding-small); +} + +.align-l { + text-align: left; +} + +.align-r { + text-align: right; +} + +.color-a { + color: var(--color-a); +} + +.color-b { + color: var(--color-b); +} + +.color-c { + color: var(--color-c); +} + +.ellipsis { + white-space: nowrap; + max-width: 100%; + width: auto; + text-overflow: ellipsis; + overflow: hidden; +} + +.sr-only { + width: 1px; + height: 1px; + position: absolute; + top: auto; + left: -10000px; + overflow: hidden; +} + +a { + cursor: pointer; + color: rgb(var(--em-rgb-accent)); +} + +a:hover { + text-decoration: underline; +} + +.spacer { + height: 10px; +} + +[dir="rtl"] .scroll { + padding-left: 0; + padding-right: var(--padding); +} + +.scroll { + padding-right: 0; + overflow-x: hidden; + overflow-y: auto; +} + +.scroll::-webkit-scrollbar { + width: var(--sidebar-width); + height: var(--sidebar-width); +} + +.scroll::-webkit-scrollbar-track { + border: 0; +} + +.scroll::-webkit-scrollbar-button { + width: 0; + height: 0; + display: none; +} + +.scroll::-webkit-scrollbar-corner { + background-color: rgba(0, 0, 0, 0); +} + +.scroll::-webkit-scrollbar-thumb { + min-height: 20%; + min-height: 65px; + border: 4px solid rgb(var(--em-rgb-background)); + border-radius: 8px; +} + +.scroll::-webkit-scrollbar-thumb:hover { + background-color: var(--em-color-border-over) !important; +} + +.scroll:hover::-webkit-scrollbar-thumb { + background-color: var(--em-color-border); +} + +.sticky { + z-index: 1; + background-color: rgba(var(--em-rgb-background), .9); + -webkit-backdrop-filter: blur(4px); + backdrop-filter: blur(4px); + font-weight: 500; + position: sticky; + top: -1px; +} + +[dir="rtl"] .search input[type="search"] { + padding: 10px 2.2em 10px 2em; +} + +[dir="rtl"] .search .loupe { + left: auto; + right: .7em; +} + +[dir="rtl"] .search .delete { + left: .7em; + right: auto; +} + +.search { + z-index: 2; + position: relative; +} + +.search input, .search button { + font-size: calc(var(--font-size) - 1px); +} + +.search input[type="search"] { + width: 100%; + background-color: var(--em-color-border); + transition-duration: var(--duration); + transition-property: background-color, box-shadow; + transition-timing-function: var(--easing); + border: 0; + border-radius: 10px; + outline: 0; + padding: 10px 2em 10px 2.2em; + display: block; +} + +.search input[type="search"]::-ms-input-placeholder { + color: inherit; + opacity: .6; +} + +.search input[type="search"]::placeholder { + color: inherit; + opacity: .6; +} + +.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration { + -webkit-appearance: none; + -ms-appearance: none; + appearance: none; +} + +.search input[type="search"]:focus { + background-color: rgb(var(--em-rgb-input)); + box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2); +} + +.search .icon { + z-index: 1; + color: rgba(var(--em-rgb-color), .7); + position: absolute; + top: 50%; + transform: translateY(-50%); +} + +.search .loupe { + pointer-events: none; + left: .7em; +} + +.search .delete { + right: .7em; +} + +svg { + fill: currentColor; + width: 1em; + height: 1em; +} + +button { + -webkit-appearance: none; + -ms-appearance: none; + appearance: none; + cursor: pointer; + color: currentColor; + background-color: rgba(0, 0, 0, 0); + border: 0; +} + +#nav { + z-index: 2; + padding-top: 12px; + padding-bottom: 12px; + padding-right: var(--sidebar-width); + position: relative; +} + +#nav button { + color: var(--color-b); + transition: color var(--duration) var(--easing); +} + +#nav button:hover { + color: var(--color-a); +} + +#nav svg, #nav img { + width: var(--category-icon-size); + height: var(--category-icon-size); +} + +#nav[dir="rtl"] .bar { + left: auto; + right: 0; +} + +#nav .bar { + width: 100%; + height: 3px; + background-color: rgb(var(--em-rgb-accent)); + transition: transform var(--duration) var(--easing); + border-radius: 3px 3px 0 0; + position: absolute; + bottom: -12px; + left: 0; +} + +#nav button[aria-selected] { + color: rgb(var(--em-rgb-accent)); +} + +#preview { + z-index: 2; + padding: calc(var(--padding) + 4px) var(--padding); + padding-right: var(--sidebar-width); + position: relative; +} + +#preview .preview-placeholder { + font-size: var(--preview-placeholder-size); +} + +#preview .preview-title { + font-size: var(--preview-title-size); +} + +#preview .preview-subtitle { + font-size: var(--preview-subtitle-size); +} + +#nav:before, #preview:before { + content: ""; + height: 2px; + position: absolute; + left: 0; + right: 0; +} + +#nav[data-position="top"]:before, #preview[data-position="top"]:before { + background: linear-gradient(to bottom, var(--em-color-border), transparent); + top: 100%; +} + +#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before { + background: linear-gradient(to top, var(--em-color-border), transparent); + bottom: 100%; +} + +.category:last-child { + min-height: calc(100% + 1px); +} + +.category button { + font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif; + position: relative; +} + +.category button > * { + position: relative; +} + +.category button .background { + opacity: 0; + background-color: var(--em-color-border); + transition: opacity var(--duration-fast) var(--easing) var(--duration-instant); + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} + +.category button:hover .background { + transition-duration: var(--duration-instant); + transition-delay: 0s; +} + +.category button[aria-selected] .background { + opacity: 1; +} + +.category button[data-keyboard] .background { + transition: none; +} + +.row { + width: 100%; + position: absolute; + top: 0; + left: 0; +} + +.skin-tone-button { + border: 1px solid rgba(0, 0, 0, 0); + border-radius: 100%; +} + +.skin-tone-button:hover { + border-color: var(--em-color-border); +} + +.skin-tone-button:active .skin-tone { + transform: scale(.85) !important; +} + +.skin-tone-button .skin-tone { + transition: transform var(--duration) var(--easing); +} + +.skin-tone-button[aria-selected] { + background-color: var(--em-color-border); + border-top-color: rgba(0, 0, 0, .05); + border-bottom-color: rgba(0, 0, 0, 0); + border-left-width: 0; + border-right-width: 0; +} + +.skin-tone-button[aria-selected] .skin-tone { + transform: scale(.9); +} + +.menu { + z-index: 2; + white-space: nowrap; + border: 1px solid var(--em-color-border); + background-color: rgba(var(--em-rgb-background), .9); + -webkit-backdrop-filter: blur(4px); + backdrop-filter: blur(4px); + transition-property: opacity, transform; + transition-duration: var(--duration); + transition-timing-function: var(--easing); + border-radius: 10px; + padding: 4px; + position: absolute; + box-shadow: 1px 1px 5px rgba(0, 0, 0, .05); +} + +.menu.hidden { + opacity: 0; +} + +.menu[data-position="bottom"] { + transform-origin: 100% 100%; +} + +.menu[data-position="bottom"].hidden { + transform: scale(.9)rotate(-3deg)translateY(5%); +} + +.menu[data-position="top"] { + transform-origin: 100% 0; +} + +.menu[data-position="top"].hidden { + transform: scale(.9)rotate(3deg)translateY(-5%); +} + +.menu input[type="radio"] { + clip: rect(0 0 0 0); + width: 1px; + height: 1px; + border: 0; + margin: 0; + padding: 0; + position: absolute; + overflow: hidden; +} + +.menu input[type="radio"]:checked + .option { + box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent)); +} + +.option { + width: 100%; + border-radius: 6px; + padding: 4px 6px; +} + +.option:hover { + color: #fff; + background-color: rgb(var(--em-rgb-accent)); +} + +.skin-tone { + width: 16px; + height: 16px; + border-radius: 100%; + display: inline-block; + position: relative; + overflow: hidden; +} + +.skin-tone:after { + content: ""; + mix-blend-mode: overlay; + background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0)); + border: 1px solid rgba(0, 0, 0, .8); + border-radius: 100%; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff; +} + +.skin-tone-1 { + background-color: #ffc93a; +} + +.skin-tone-2 { + background-color: #ffdab7; +} + +.skin-tone-3 { + background-color: #e7b98f; +} + +.skin-tone-4 { + background-color: #c88c61; +} + +.skin-tone-5 { + background-color: #a46134; +} + +.skin-tone-6 { + background-color: #5d4437; +} + +[data-index] { + justify-content: space-between; +} + +[data-emoji-set="twitter"] .skin-tone:after { + box-shadow: none; + border-color: rgba(0, 0, 0, .5); +} + +[data-emoji-set="twitter"] .skin-tone-1 { + background-color: #fade72; +} + +[data-emoji-set="twitter"] .skin-tone-2 { + background-color: #f3dfd0; +} + +[data-emoji-set="twitter"] .skin-tone-3 { + background-color: #eed3a8; +} + +[data-emoji-set="twitter"] .skin-tone-4 { + background-color: #cfad8d; +} + +[data-emoji-set="twitter"] .skin-tone-5 { + background-color: #a8805d; +} + +[data-emoji-set="twitter"] .skin-tone-6 { + background-color: #765542; +} + +[data-emoji-set="google"] .skin-tone:after { + box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4); +} + +[data-emoji-set="google"] .skin-tone-1 { + background-color: #f5c748; +} + +[data-emoji-set="google"] .skin-tone-2 { + background-color: #f1d5aa; +} + +[data-emoji-set="google"] .skin-tone-3 { + background-color: #d4b48d; +} + +[data-emoji-set="google"] .skin-tone-4 { + background-color: #aa876b; +} + +[data-emoji-set="google"] .skin-tone-5 { + background-color: #916544; +} + +[data-emoji-set="google"] .skin-tone-6 { + background-color: #61493f; +} + +[data-emoji-set="facebook"] .skin-tone:after { + border-color: rgba(0, 0, 0, .4); + box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff; +} + +[data-emoji-set="facebook"] .skin-tone-1 { + background-color: #f5c748; +} + +[data-emoji-set="facebook"] .skin-tone-2 { + background-color: #f1d5aa; +} + +[data-emoji-set="facebook"] .skin-tone-3 { + background-color: #d4b48d; +} + +[data-emoji-set="facebook"] .skin-tone-4 { + background-color: #aa876b; +} + +[data-emoji-set="facebook"] .skin-tone-5 { + background-color: #916544; +} + +[data-emoji-set="facebook"] .skin-tone-6 { + background-color: #61493f; +} + +`;function Ett(e){const t=c.useRef(null),n=c.useRef(null);return n.current&&n.current.update(e),c.useEffect(()=>(n.current=new ZN({...e,ref:t}),()=>{n.current=null}),[]),L.createElement("div",{ref:t})}const Ptt=({onSelect:e,onClose:t})=>{const[n,r]=c.useState(!0),i=a=>{r(!1),e(a.native)};return P.jsx(Are,{className:"EmojiPicker",active:n,onClose:()=>{r(!1),t()},title:"请选择表情",children:P.jsx("div",{children:P.jsx(Ett,{data:Bet,onEmojiSelect:i})})})},Ttt=({showEmoji:e,setShowEmoji:t,handleEmojiSelect:n})=>P.jsx(P.Fragment,{children:e&&P.jsx(Ptt,{onSelect:n,onClose:()=>t(!1)})}),Ott=({isDarkMode:e,imageInputRef:t,fileInputRef:n,handleImageChange:r,handleFileChange:i})=>P.jsxs(P.Fragment,{children:[e&&P.jsx(zde,{children:P.jsx("link",{rel:"stylesheet",type:"text/css",href:Ji?"./assets/css/chatui/chatui-theme-dark.css":"/chat/assets/css/chatui/chatui-theme-dark.css"})}),P.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:t,onChange:r}),P.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:i})]}),xae=()=>{const e=Di(),t=[{type:"smile",icon:"smile",title:e.formatMessage({id:"chat.toolbar.emoji"})},{type:"image",title:e.formatMessage({id:"chat.toolbar.image"}),icon:"image"},{type:"file",title:e.formatMessage({id:"chat.toolbar.file"}),icon:"file"}],[n,r]=c.useState(t),{isDarkMode:i,themeMode:a,setThemeMode:o,locale:s,changeLocale:l}=c.useContext(Kc),[u,d]=c.useState("zh-cn");console.log("themeMode:",a,"locale: ",s==null?void 0:s.locale,"lang:",u);const[f]=q1(),{translateString:m}=K1(),[p,v]=c.useState(""),[h]=pYe(p,1e3),[g,w]=c.useState("Chat"),[b,y]=c.useState({}),[x,C]=c.useState({}),[S,k]=c.useState({}),[_,$]=c.useState([]),[E,T]=c.useState(!1),[M,j]=c.useState([]),[I,N]=c.useState([]),[O,D]=c.useState(!1),[F,z]=c.useState(""),[R,H]=c.useState(!1),[V,B]=c.useState("i18n.input.placeholder"),[W,q]=c.useState(!1),[Q,G]=c.useState(""),X=c.useRef(null),re=c.useRef(null),K=c.useRef({orgUid:"df_org_uid",type:"1",sid:""}),[Y,Z]=c.useState(0),{messages:J,appendMsg:ee,updateMsg:te,resetList:le}=cqe([]),[oe,de]=c.useState(!1),[pe,we]=c.useState(""),[fe,ge]=c.useState(m("i18n.load.more")),ue=c.useRef(null),ce=c.useRef(null),$e=c.useRef(!1),se=c.useRef(!1),[ve,he]=c.useState(""),[_e,Se]=c.useState(!1),[Pe,De]=c.useState(!1),[xe,ye]=c.useState(!0),[Te,Ie]=c.useState(!1),ke=c.useRef(!1),je=f.get(XD)==="1",He=f.get(GD)||"",Be=f.get(KD)||"",ct=f.get(YD)||"",[Ve,Ye]=c.useState(null),{messageList:Ne,addMessage:Ae,addMessageList:et,updateMessageStatus:nt}=_2(Ue=>({messageList:Ue.messageList,addMessage:Ue.addMessage,addMessageList:Ue.addMessageList,updateMessageStatus:Ue.updateMessageStatus})),{show:rt}=VYe({id:ZD}),it=(Ue,vt)=>{console.log("handleContextMenu:",Ue," item:",vt),Ye(vt),rt({event:Ue,props:{key:vt==null?void 0:vt._id.toString()}})},be=({id:Ue,event:vt,props:_t})=>{switch(console.log("handleRightClick:",Ue,vt,_t),Ue){case"copy":lo.success("复制成功"),navigator.clipboard.writeText(m(Ve==null?void 0:Ve.content));break}},Oe=async()=>{var _t;console.log("shouldPreload: ",je);const Ue=await iYe({orgUid:K.current.orgUid||"",type:K.current.type||"",sid:K.current.sid||"",uid:K.current.uid,nickname:K.current.nickname,avatar:K.current.avatar,referrer:He,url:ct,title:Be,extra:K.current.extra||""});console.log("browse response: ",Ue.data);const vt={username:(_t=K.current)==null?void 0:_t.uid,topic:K.current.uid||"",orgUid:K.current.orgUid||""};j7(vt)},Ce=()=>{const Ue={};for(const Je of f.entries())Ue[Je[0]]=Je[1];if(Ue[jb]){const Je=Ue[jb].toLowerCase();rhe.includes(Je)?(d(Je),l(Je)):console.warn(`Invalid language value: ${Ue[jb]}`)}else d(dw),l(dw);if(Ue[QD]===nhe&&ye(!1),Ue[Fb]){const Je=Ue[Fb].toLowerCase();ihe.includes(Je)?o(Je):console.warn(`Invalid theme value: ${Ue[Fb]}`)}Ue[P$]&&vn(Ue[P$]);const _t=new nKe().getResult();K.current={orgUid:Ue[WD],type:Ue[UD],sid:Ue[qD],uid:localStorage.getItem(Jm)||"",nickname:localStorage.getItem(yP)||"",avatar:localStorage.getItem(Wh)||"",lang:(s==null?void 0:s.locale)||dw,browser:JSON.stringify(_t.browser),os:JSON.stringify(_t.os),device:JSON.stringify(_t.device),referrer:document.referrer,vipLevel:Ue[JD]||"0",extra:""},localStorage.setItem(cv,K.current.orgUid||""),Ue[T$]&&(K.current.uid=Ue[T$]),Ue[O$]&&(K.current.nickname=Ue[O$]),Ue[I$]&&(K.current.avatar=Ue[I$]);const dt={};for(const Je in Ue)[WD,UD,qD,jb,Fb,Yve,Xve,GD,KD,YD,XD,QD,P$,T$,O$,I$,JD].includes(Je)||(dt[Je]=Ue[Je]);K.current.extra=JSON.stringify(dt),console.log("initInfoParams: ",K.current)},Re=async()=>{var vt,_t,dt,Je,gt,bt,Yt,un,vr,ii,ai,qi,cl,ul;const Ue=await nYe(K.current);console.log("initVisitor: ",Ue==null?void 0:Ue.data),Ue&&((vt=Ue==null?void 0:Ue.data)==null?void 0:vt.code)===200?(localStorage.setItem(Jm,((dt=(_t=Ue==null?void 0:Ue.data)==null?void 0:_t.data)==null?void 0:dt.uid)||""),localStorage.setItem(yP,((gt=(Je=Ue==null?void 0:Ue.data)==null?void 0:Je.data)==null?void 0:gt.nickname)||""),localStorage.setItem(Wh,((Yt=(bt=Ue==null?void 0:Ue.data)==null?void 0:bt.data)==null?void 0:Yt.avatar)||""),k({uid:(vr=(un=Ue==null?void 0:Ue.data)==null?void 0:un.data)==null?void 0:vr.uid,nickname:(ai=(ii=Ue==null?void 0:Ue.data)==null?void 0:ii.data)==null?void 0:ai.nickname,avatar:(cl=(qi=Ue==null?void 0:Ue.data)==null?void 0:qi.data)==null?void 0:cl.avatar,type:nve}),Ce(),Ke(!1)):Ue!=null&&Ue.data?(lo.fail(((ul=Ue==null?void 0:Ue.data)==null?void 0:ul.message)||"初始化失败"),localStorage.removeItem(Jm)):lo.fail("初始化失败")},Ke=async Ue=>{var dt,Je,gt,bt,Yt,un,vr,ii,ai,qi,cl,ul;if(je){Oe();return}if(K.current.type===gve){Qe(K.current.sid),Ie(!0);return}const vt={orgUid:K.current.orgUid||"",type:K.current.type||"",sid:K.current.sid||"",uid:K.current.uid,nickname:K.current.nickname,avatar:K.current.avatar,referrer:K.current.referrer,forceAgent:Ue},_t=await rYe(vt);if(console.log("initThread response: ",_t.data),_t.data.code===200){Ue&&(jn.destroy(),jn.success("转人工成功"));const Hn=(dt=_t==null?void 0:_t.data)==null?void 0:dt.data;zwe(Hn)?ke.current=!0:ke.current=!1;const Wt={uid:(Je=Hn==null?void 0:Hn.thread)==null?void 0:Je.uid,topic:(gt=Hn==null?void 0:Hn.thread)==null?void 0:gt.topic,type:(bt=Hn==null?void 0:Hn.thread)==null?void 0:bt.type,state:(Yt=Hn==null?void 0:Hn.thread)==null?void 0:Yt.state,user:(un=Hn==null?void 0:Hn.thread)==null?void 0:un.user};y(Wt),(Wt==null?void 0:Wt.state)===bve&&(H(!0),B("i18n.leavemsg.tip"));const Mt=Hn==null?void 0:Hn.user,rr=[];if(W$(Wt)){const $n=JSON.parse((vr=Hn==null?void 0:Hn.user)==null?void 0:vr.extra);$e.current=($n==null?void 0:$n.llm)||!1}else if((Mt==null?void 0:Mt.type)===FG){const $n={name:m("i18n.transferToAgent"),code:"transferToAgent",type:"transferToAgent"};rr.push($n)}C(Mt),w(m((Mt==null?void 0:Mt.nickname)||""));const ln=JSON.parse(((ii=Hn==null?void 0:Hn.thread)==null?void 0:ii.extra)||"{}");if(console.log("extra welcomeFaqs:",ln.welcomeFaqs),ln.welcomeFaqs&&N(ln.welcomeFaqs),ln.showQuickFaqs&&((ai=ln==null?void 0:ln.quickFaqs)==null||ai.forEach($n=>{const fr={name:m(($n==null?void 0:$n.question)||""),code:$n.uid,type:$n.type,content:m(($n==null?void 0:$n.answer)||"")};rr.push(fr)})),ln.showRateBtn){const $n={name:m("i18n.rate"),code:"rate",type:uw};rr.push($n)}if($(rr),ln.showFaqs){const $n=[];ln.faqs.forEach(fr=>{const _a={question:m(fr.question),answer:m(fr.answer),uid:fr.uid,type:fr.type};$n.push(_a)}),j($n)}if(T((ln==null?void 0:ln.showFaqs)||!1),ln.showRightIframe&&(D(!0),z(ln.rightIframeUrl)),ln.showGuessFaqs){const $n=[];ln.guessFaqs.forEach(fr=>{const _a={question:m(fr.question),answer:m(fr.answer),uid:fr.uid,type:fr.type};$n.push(_a)}),$n.length>0&&ee({_id:Qi(),type:zD,content:JSON.stringify($n),createdAt:Lt().toDate().getTime(),user:{uid:Mt==null?void 0:Mt.uid,nickname:Mt==null?void 0:Mt.nickname,avatar:Mt==null?void 0:Mt.avatar},position:"left"})}if(ln.showHotFaqs){const $n=[];if(ln.hotFaqs.forEach(fr=>{const _a={question:m(fr.question),answer:m(fr.answer),uid:fr.uid,type:fr.type};$n.push(_a)}),console.log("show hot faqs:",$n),$n.length>0){console.log("show hot faqs appendMsg");const _a={uid:Qi(),type:HD,content:JSON.stringify($n),status:BD,createdAt:yl(),client:On,thread:Wt,user:{uid:Mt==null?void 0:Mt.uid,nickname:Mt==null?void 0:Mt.nickname,avatar:Mt==null?void 0:Mt.avatar}};Ae(_a)}}if(ln.showShortcutFaqs){const $n=[];if(ln.shortcutFaqs.forEach(fr=>{const _a={question:m(fr.question),answer:m(fr.answer),code:fr.uid,type:fr.type};$n.push(_a)}),$n.length>0){const _a={uid:Qi(),type:VD,content:JSON.stringify($n),status:BD,createdAt:yl(),client:On,thread:Wt,user:{uid:Mt==null?void 0:Mt.uid,nickname:Mt==null?void 0:Mt.nickname,avatar:Mt==null?void 0:Mt.avatar}};Ae(_a)}}ln.showHistory&&console.log("showHistory: 允许拉取历史消息"),ln.showTopTip&&G((ln==null?void 0:ln.topTip)||""),q((ln==null?void 0:ln.showTopTip)||!1),Ae(Hn);const hr={username:(qi=K.current)==null?void 0:qi.uid,topic:((cl=Hn==null?void 0:Hn.thread)==null?void 0:cl.topic)||"",orgUid:K.current.orgUid||""};j7(hr)}else lo.fail(((ul=_t==null?void 0:_t.data)==null?void 0:ul.message)||"获取信息败")},Xe=()=>{if(Ji){const Ue=[...t];[].forEach(_t=>{Ue.some(dt=>dt.type===_t.type)||Ue.push(_t)}),r(Ue)}},lt=()=>{const Ue=localStorage.getItem(Dx);Ue===null?(localStorage.setItem(Dx,"true"),De(!0)):De(Ue==="true")},tt=async()=>{var _t,dt,Je,gt;if(se.current){console.log("isLoadingMessage.current: ",se.current);return}se.current=!0,jn.loading(m("i18n.loading"));const Ue={pageNumber:Y,pageSize:20,topic:b==null?void 0:b.topic,componentType:ahe},vt=await BGe(Ue);console.log("queryMessagesByThreadTopic: ",vt.data,Ue),vt.data.code===200?(et((dt=(_t=vt==null?void 0:vt.data)==null?void 0:_t.data)==null?void 0:dt.content),(gt=(Je=vt==null?void 0:vt.data)==null?void 0:Je.data)!=null&>.last?ge(""):Z(Y+1),jn.destroy()):(vt.data.code,jn.destroy()),se.current=!1},Qe=async Ue=>{var dt,Je,gt,bt;if(se.current){console.log("isLoadingMessage.current: ",se.current);return}se.current=!0,jn.loading(m("i18n.loading"));const vt={pageNumber:Y,pageSize:20,threadUid:Ue},_t=await zGe(vt);console.log("queryMessagesByThreadUid: ",_t.data,vt),_t.data.code===200?(et((Je=(dt=_t==null?void 0:_t.data)==null?void 0:dt.data)==null?void 0:Je.content),(bt=(gt=_t==null?void 0:_t.data)==null?void 0:gt.data)!=null&&bt.last?ge(""):Z(Y+1),jn.destroy()):(_t.data.code,jn.destroy()),se.current=!1};c.useEffect(()=>(Ce(),Re(),Xe(),lt(),()=>{KGe()}),[]);const Ge=(Ue,vt)=>{if(console.log("handleSend",Ue,vt),R){lo.fail("客服已离线,请通过上方留言框联系我们");return}he(""),Rn(!1),Ue===Sm.toLowerCase()&&vt.trim()?st(vt):lo.fail("暂不支持此类型")},st=Ue=>{var Je;const vt=Qi(),_t={orgUid:K.current.orgUid},dt={uid:vt,type:Sm,content:Ue,status:Sc,createdAt:yl(),client:On,extra:JSON.stringify(_t),thread:b,user:S};ke.current===!0?(console.log("handleSendText: isRobot"),ze(),Ae(dt),UGe(JSON.stringify(dt),function(gt){console.log("sendSseMessage: ",gt),me(),nt(dt==null?void 0:dt.uid,GI),Ae(gt)})):(console.log("handleSendText: isAgent"),Ae(dt),_c(JSON.stringify(dt))),(Je=ue==null?void 0:ue.current)==null||Je.scrollToEnd()},pt=async Ue=>{he(Ue),v(Ue)},yt=Ue=>(console.log("handleImageSend",Ue),pg(Ue,vt=>{Me(vt.data.fileUrl,Fu)}),Promise.resolve()),zt=Ue=>{var _t;console.log("handleImageChange event: ",Ue);const vt=(_t=Ue.target.files)==null?void 0:_t.item(0);vt&&(console.log("handleImageChange file: ",vt),pg(vt,dt=>{Me(dt.data.fileUrl,Fu)}))},$t=Ue=>{var _t;console.log("handleFileChange event: ",Ue);const vt=(_t=Ue.target.files)==null?void 0:_t.item(0);vt&&(console.log("handleFileChange file: ",vt),pg(vt,dt=>{Me(dt.data.fileUrl,Sp)}))},ze=()=>{de(!0),we(m("i18n.typing")),setTimeout(()=>{de(!1),we("")},5e3)},me=()=>{de(!1),we("")},Me=(Ue,vt)=>{var gt;console.log("handleDropSend",Ue);const _t=Qi(),dt={orgUid:K.current.orgUid},Je={uid:_t,type:vt,content:Ue,status:Sc,createdAt:yl(),client:On,extra:JSON.stringify(dt),thread:b,user:S};_c(JSON.stringify(Je)),(gt=ue==null?void 0:ue.current)==null||gt.scrollToEnd()},We=(Ue,vt)=>{if(console.log("handleQuickReplyClick",Ue,vt),Ue.type===uw)QGe({thread:b,visitor:S});else if(Ue.type==="transferToAgent")jn.loading("转接中..."),Ke(!0);else{const _t={uid:Ue.code,type:Ue.type,question:Ue.name,answer:Ue.name};Le(_t,vt)}},wt=(Ue,vt)=>{var _t,dt;console.log("handleToolbarClick",Ue,vt),Ue.type==="smile"?Se(!0):Ue.type==="orderSelector"?ee({_id:Qi(),type:"order-selector",content:{},position:"pop"}):Ue.type==="image"?(_t=X==null?void 0:X.current)==null||_t.click():Ue.type==="file"?(dt=re==null?void 0:re.current)==null||dt.click():re.current&&re.current.click()},Ze=Ue=>{var vt;console.log("handleEmojiSelect",ve,Ue),Se(!1),he(ve+Ue),(vt=ce==null?void 0:ce.current)==null||vt.setText(ve+Ue)},Le=async(Ue,vt)=>{var bt,Yt;console.log("handleFaqClick",vt);const _t=await sYe(Ue.uid);console.log("queryByUid response:",_t.data);const dt=(bt=_t==null?void 0:_t.data)==null?void 0:bt.data;_t.data.code===200?(ee({_id:Qi(),type:Sm,hasTime:!0,createdAt:Lt().toDate().getTime(),content:dt.question,position:"right",user:{avatar:localStorage.getItem(Wh)||""}}),ee({_id:Qi(),type:jx,hasTime:!0,createdAt:Lt().toDate().getTime(),content:JSON.stringify(dt),position:"left",user:{avatar:x.avatar}})):jn.error(_t.data.message);const gt={uid:Qi(),faq:Ue,thread:b,visitor:S};YGe(gt),(Yt=ue==null?void 0:ue.current)==null||Yt.scrollToEnd()},ot=()=>{console.log("handleTransferToAgent"),Ke(!0)},ht=(Ue,vt)=>{console.log("handleStreamQaClick",Ue,vt),ee({_id:Qi(),type:Sm,hasTime:!0,createdAt:Lt().toDate().getTime(),content:Ue,position:"right",user:{avatar:localStorage.getItem(Wh)||""}}),ee({_id:Qi(),type:Jg,hasTime:!0,createdAt:Lt().toDate().getTime(),content:vt,position:"left",user:{avatar:x.avatar}})},Et=Ue=>{const{_id:vt,type:_t,content:dt}=Ue,Je={orgUid:K.current.orgUid},gt={uid:vt.toString(),type:_t,content:dt,status:Sc,createdAt:yl(),client:On,extra:JSON.stringify(Je),thread:b,user:S},bt=JSON.stringify(gt);_c(bt)};c.useEffect(()=>{const Ue=[];Ne.forEach(vt=>{var _t,dt;Ue.push({_id:vt==null?void 0:vt.uid,type:vt==null?void 0:vt.type,status:vt==null?void 0:vt.status,hasTime:!0,createdAt:Lt(vt==null?void 0:vt.createdAt).toDate().getTime(),content:m((vt==null?void 0:vt.content)||""),position:Bwe(vt),user:{avatar:(_t=vt==null?void 0:vt.user)==null?void 0:_t.avatar,name:m((dt=vt==null?void 0:vt.user)==null?void 0:dt.nickname)}})}),le(Ue)},[Ne]);const Rt=Ue=>{var bt;const{_id:vt,type:_t,content:dt,position:Je,status:gt}=Ue;switch(_t){case xve:return P.jsx(Oet,{uid:vt.toString(),content:dt,welcomeFaqs:I,thread:b,visitor:S,orgUid:K.current.orgUid,onFaqClick:Le});case Sm:return P.jsxs(P.Fragment,{children:[P.jsx(xd,{content:dt,isRichText:bY(dt),onContextMenu:()=>it(event,Ue)}),Je==="right"&&P.jsx(nu,{status:gt,onRetry:()=>Et(Ue)})]});case Jg:return P.jsxs(P.Fragment,{children:[P.jsx(Tet,{uid:vt.toString(),content:dt,thread:b,visitor:S,onQuestionClick:ht}),Je==="right"&&P.jsx(nu,{status:gt,onRetry:()=>Et(Ue)})]});case Fu:return P.jsxs(P.Fragment,{children:[P.jsx(xd,{type:"image",onContextMenu:()=>it(event,Ue),children:P.jsx(cie,{src:dt,children:P.jsx("img",{src:dt,alt:""})})}),Je==="right"&&P.jsx(nu,{status:gt,onRetry:()=>Et(Ue)})]});case Sp:return P.jsxs(P.Fragment,{children:[P.jsx(xd,{type:"file",onContextMenu:()=>it(event,Ue),children:P.jsx(pGe,{fileUrl:dt,children:P.jsx(_o,{onClick:()=>Awe(dt),children:"下载文件"})})}),Je==="right"&&P.jsx(nu,{status:gt,onRetry:()=>Et(Ue)})]});case Qg:return P.jsxs(P.Fragment,{children:[P.jsx(xd,{style:{maxWidth:200},onContextMenu:()=>it(event,Ue),children:P.jsx(mGe,{src:Ue.content})}),Je==="right"&&P.jsx(nu,{status:gt,onRetry:()=>Et(Ue)})]});case Cve:return P.jsxs(P.Fragment,{children:[P.jsx(gs,{size:"xl",children:P.jsx(Hre,{img:"//gw.alicdn.com/tfs/TB1p_nirYr1gK0jSZR0XXbP8XXa-300-300.png",name:"这个商品名称非常非常长长到会换行",desc:"商品描述",tags:[{name:"3个月免息"},{name:"4.1折"},{name:"黑卡再省33.96"}],currency:"¥",meta:"7人付款",count:6,unit:"kg",onClick:Yt=>console.log(Yt),action:{onClick(Yt){console.log(Yt),Yt.stopPropagation()}}})}),Je==="right"&&P.jsx(nu,{status:gt,onRetry:()=>Et(Ue)})]});case kve:return P.jsxs(P.Fragment,{children:[R&&P.jsx(P.Fragment,{children:P.jsx(FYe,{uid:vt.toString(),content:dt,status:gt,thread:b,visitor:S})}),!R&&P.jsxs(P.Fragment,{children:[P.jsx(xd,{content:m(dt)}),Je==="right"&&P.jsx(nu,{status:gt})]})]});case jx:return P.jsx(jYe,{uid:vt.toString(),vipLevel:((bt=K==null?void 0:K.current)==null?void 0:bt.vipLevel)||"0",content:dt,thread:b,visitor:S,onFaqClick:Le,onTransferToAgent:ot});case Ive:return P.jsx(gYe,{uid:vt.toString(),content:Hwe(dt),thread:b,visitor:S});case uw:case BG:return P.jsx(hYe,{uid:vt.toString(),content:dt,status:gt,type:_t,thread:b,visitor:S});case zD:return P.jsx(XYe,{content:dt,onFaqClick:Le});case HD:return P.jsx(QYe,{content:dt,onFaqClick:Le});case VD:return P.jsx(JYe,{content:dt,onFaqClick:Le});case"order-selector":return P.jsx(ZYe,{});default:return console.log("renderMessageContent: default",Ue),P.jsxs(P.Fragment,{children:[P.jsx(xd,{content:m(dt)}),Je==="right"&&P.jsx(nu,{status:gt})]})}};c.useEffect(()=>{if((h==null?void 0:h.length)>0&&!R&&!W$(b)){console.log("debouncedPreviewText",h);const Ue={orgUid:K.current.orgUid},vt={uid:Qi(),type:XI,content:h,status:Sc,createdAt:yl(),client:On,extra:JSON.stringify(Ue),thread:b,user:S},_t=JSON.stringify(vt);_c(_t)}Ct(h)},[h,S,b]);const Ct=async Ue=>{var vt,_t,dt;if((h==null?void 0:h.length)>0){const Je={question:Ue,orgUid:K.current.orgUid},gt=await aYe(Je);console.log("handleSearchAutoComplete response:",gt.data),((vt=gt.data)==null?void 0:vt.code)===200&&((dt=(_t=gt.data)==null?void 0:_t.data)==null?void 0:dt.length)>0?(Nt(gt.data.data),Rn(!0)):(Nt([]),Rn(!1))}else Nt([]),Rn(!1)},at=c.useCallback(()=>setInterval(async()=>{var Ue;if(!R&&!W$(b)){const vt=await HGe(S==null?void 0:S.uid);if(((Ue=vt==null?void 0:vt.data)==null?void 0:Ue.data)>0){const dt=await VGe(S==null?void 0:S.uid);if(console.log("autoPingMessage 拉取未读消息",S==null?void 0:S.uid,dt),dt!=null&&dt.data){const Je=dt==null?void 0:dt.data.data;console.log("autoPingMessage 拉取未读消息",S==null?void 0:S.uid,Je),Je==null||Je.forEach(gt=>{Ae(gt)})}}}},1e4),[R,b,S==null?void 0:S.uid,Ae]);c.useEffect(()=>{const Ue=at();return()=>{clearInterval(Ue)}},[at]),c.useEffect(()=>{const Ue=dt=>{var Yt;const Je=JSON.parse(dt),gt=(Yt=Je==null?void 0:Je.uid)==null?void 0:Yt.toString(),bt=J.find(un=>un._id.toString()===gt);bt?te(Je==null?void 0:Je.uid,{type:bt==null?void 0:bt.type,hasTime:bt==null?void 0:bt.hasTime,createdAt:bt==null?void 0:bt.createdAt,content:bt==null?void 0:bt.content,position:bt==null?void 0:bt.position,user:bt==null?void 0:bt.user,status:Je==null?void 0:Je.type}):console.log("handleMessageTypeStatus msg is undefined")},vt=dt=>{var Yt;console.log("handleMessageTypeContent",dt);const Je=JSON.parse(dt),gt=(Yt=Je==null?void 0:Je.uid)==null?void 0:Yt.toString(),bt=J.find(un=>{const vr=un._id.toString();return console.log(`Comparing ${vr} with ${gt}`),vr===gt});bt?(console.log("handleMessageTypeContent msg",Je),te(Je==null?void 0:Je.uid,{_id:bt==null?void 0:bt._id,type:KI,hasTime:bt==null?void 0:bt.hasTime,createdAt:bt==null?void 0:bt.createdAt,content:Je==null?void 0:Je.content,position:bt==null?void 0:bt.position,user:bt==null?void 0:bt.user,status:bt==null?void 0:bt.status})):console.log("handleMessageTypeStatus msg is undefined")},_t=dt=>{console.log("handleHttpError",dt),lo.fail("http error with code: "+dt)};return Zr.on(wP,Ue),Zr.on(xP,vt),Zr.on(Kd,_t),()=>{Zr.off(wP,Ue),Zr.off(xP,vt),Zr.off(Kd,_t)}},[J,te]);const kt=()=>{console.log("handleRecordStart")},At=Ue=>{console.log("handleRecordEnd",Ue)},Dt=()=>{console.log("handleRecordCancel")},[en,vn]=c.useState(""),[bn]=c.useState(""),Sr=f.get("backgroundColor"),pr=f.get("textColor"),nr=()=>i?{backgroundColor:"#333333",textColor:"#ffffff"}:{backgroundColor:"#ffffff",textColor:"#333333"},Kr=()=>{if(en)switch(en.toLowerCase()){case"light":return{backgroundColor:"#ffffff",textColor:"#333333"};case"dark":return{backgroundColor:"#333333",textColor:"#ffffff"};case"blue":return{backgroundColor:"#0066FF",textColor:"#ffffff"};default:return nr()}return nr()},gn=c.useMemo(()=>{const Ue=Kr();return{backgroundColor:Sr||Ue.backgroundColor,color:pr||Ue.textColor}},[Sr,pr]),Bt=()=>{window.parent!==window?window.parent.postMessage({type:Vve},"*"):window.close()},jt=()=>{window.parent!==window&&window.parent.postMessage({type:Wve},"*")},xn=()=>{window.parent!==window&&window.parent.postMessage({type:Uve},"*")},[Ft,Nt]=c.useState([]),[hn,Rn]=c.useState(!1),dr=()=>window.innerWidth<=580;return P.jsxs(P.Fragment,{children:[P.jsx(Ott,{isDarkMode:i,imageInputRef:X,fileInputRef:re,handleImageChange:zt,handleFileChange:$t}),P.jsxs(tYe,{onImageSend:Me,children:[xe&&P.jsx(Iet,{title:g,description:bn,typing:oe,typingTip:pe,agent:x,isPlayAudio:Pe,setIsPlayAudio:De,handleMinimize:xn,handleMaximize:jt,handleClose:Bt,navbarStyle:gn,navbarTheme:en}),P.jsxs("div",{className:"chat-container",style:{position:"relative"},children:[hn&&Ft.length>0&&ve.trim().length>0&&P.jsx(Ret,{isDarkMode:i,searchResults:Ft,isMobile:dr(),handleFaqClick:Le,setShowSearchResults:Rn,setInputText:he,setPreviewText:v,debouncedPreviewText:h}),P.jsx(DYe,{children:P.jsx(NGe,{elderMode:!1,showTopTip:W,topTipContent:Q,loadMoreText:fe,onRefresh:tt,messages:J,isTyping:oe,messagesRef:ue,renderMessageContent:Rt,text:ve,composerRef:ce,inputOptions:{showCount:!1},quickReplies:_,onQuickReplyClick:We,placeholder:m(V),onSend:Ge,onImageSend:yt,onInputChange:pt,toolbar:n,onToolbarClick:wt,wideBreakpoint:"600px",recorder:{canRecord:Ji,volume:.5,onStart:kt,onEnd:At,onCancel:Dt},hideComposer:Te})}),E&&(M==null?void 0:M.length)>0&&P.jsx(Met,{faqs:M,isDarkMode:i,handleFaqClick:Le}),O&&P.jsx(Net,{isDarkMode:i,rightIframeUrl:F}),P.jsx(Det,{menuId:ZD,handleRightClick:be})]}),P.jsx(Ttt,{showEmoji:_e,setShowEmoji:Se,handleEmojiSelect:Ze})]})]})},Itt=()=>P.jsx("h1",{children:"404"}),Rtt=()=>P.jsx("div",{children:"TicketBox"}),Mtt=[{key:"after",label:"售后支持",children:[{key:"chat",label:"在线服务"},{key:"tickets",label:"我的工单"},{key:"tickets-create",label:"提交工单"}]},{key:"before",label:"售前服务",children:[{key:"chat-pre",label:"在线服务"}]}],Ntt=()=>{const e=t=>{console.log("click ",t)};return P.jsx(Bf,{onClick:e,defaultSelectedKeys:["chat"],defaultOpenKeys:["after","before"],mode:"inline",items:Mtt})},Dtt=()=>P.jsxs(P.Fragment,{children:[P.jsx("div",{style:{float:"left"},children:P.jsx(dn,{type:"text",style:{color:"white"},children:"微语客服中心"})}),P.jsx(zl,{}),P.jsx("div",{style:{float:"right"},children:P.jsx(Ok,{size:44})})]}),jtt=()=>{const e=t=>{window.open(t,"_blank")};return P.jsx(P.Fragment,{children:P.jsx("div",{style:{cursor:"pointer",fontSize:15,color:"white"},onClick:()=>e("https:/www.weiyuai.cn"),children:"微语AI"})})},Ftt=()=>P.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:P.jsx("iframe",{src:"/chat/?org=df_org_uid&t=1&sid=df_wg_uid&",width:"100%",height:"100%",frameBorder:"0",style:{boxShadow:"0 0 7px rgba(0, 0, 0, 0.4)",borderRadius:"inherit"}})}),{Header:Att,Footer:Ltt,Sider:Btt,Content:ztt}=Hl,Htt={color:"#fff",height:64,paddingInline:48,lineHeight:"64px",backgroundColor:"#4096ff"},Vtt={textAlign:"center",color:"#fff",backgroundColor:"#0958d9"},Wtt={textAlign:"center",lineHeight:"120px",color:"#fff",backgroundColor:"#1677ff"},Utt={height:20,textAlign:"center",color:"#fff",backgroundColor:"#4096ff"},qtt={overflow:"hidden",with:"100%",height:"100%"},Gtt=()=>P.jsx(P.Fragment,{children:P.jsxs(Hl,{style:qtt,children:[P.jsx(Att,{style:Htt,children:P.jsx(Dtt,{})}),P.jsxs(Hl,{children:[P.jsx(Btt,{width:"15%",style:Wtt,children:P.jsx(Ntt,{})}),P.jsx(ztt,{style:Vtt,children:P.jsx(Ftt,{})})]}),P.jsx(Ltt,{style:Utt,children:P.jsx(jtt,{})})]})}),Ktt=[{title:"技能组",dataIndex:"workgroup"},{title:"提示",dataIndex:"waiting"},{title:"操作",dataIndex:"action"}],Ytt=[{key:"1",workgroup:"技能组1",waiting:"前面有0人,无需等待",action:P.jsx(dn,{type:"primary",children:"取号"})},{key:"2",workgroup:"技能组2",waiting:"前面有3人,大概等待时长20分钟",action:P.jsx(dn,{type:"primary",children:"取号"})}],Xtt=(e,t,n,r)=>{console.log("params",e,t,n,r)},Qtt=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"技能组取号"}),P.jsxs(od,{children:[P.jsx(Ri,{span:4}),P.jsx(Ri,{span:16,children:P.jsx(Ro,{columns:Ktt,dataSource:Ytt,onChange:Xtt,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(Ri,{span:4})]})]}),Jtt=[{title:"客服",dataIndex:"agent"},{title:"提示",dataIndex:"waiting"},{title:"操作",dataIndex:"action"}],Ztt=[{key:"1",agent:"客服1",waiting:"前面有0人,无需等待",action:P.jsx(dn,{type:"primary",children:"取号"})},{key:"2",agent:"客服2",waiting:"前面有3人,大概等待时长20分钟",action:P.jsx(dn,{type:"primary",children:"取号"})}],ent=(e,t,n,r)=>{console.log("params",e,t,n,r)},tnt=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"一对一取号"}),P.jsxs(od,{children:[P.jsx(Ri,{span:4}),P.jsx(Ri,{span:16,children:P.jsx(Ro,{columns:Jtt,dataSource:Ztt,onChange:ent,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(Ri,{span:4})]})]}),nnt=()=>P.jsxs(P.Fragment,{children:[P.jsx("h1",{children:"取号"}),P.jsx(Qtt,{}),P.jsx(tnt,{})]}),rnt=[{title:"技能组",dataIndex:"workgroup"},{title:"下一个",dataIndex:"next"},{title:"队列",dataIndex:"queue"}],int=[{key:"1",workgroup:"技能组1",next:"访客1",queue:"访客2,访客3,访客4"},{key:"2",workgroup:"技能组2",next:"访客5",queue:"访客6,访客7,访客8"}],ant=(e,t,n,r)=>{console.log("params",e,t,n,r)},ont=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"技能组排队队列"}),P.jsxs(od,{children:[P.jsx(Ri,{span:4}),P.jsx(Ri,{span:16,children:P.jsx(Ro,{columns:rnt,dataSource:int,onChange:ant,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(Ri,{span:4})]})]}),snt=[{title:"客服",dataIndex:"agent"},{title:"下一个",dataIndex:"next"},{title:"队列",dataIndex:"queue"}],lnt=[{key:"1",agent:"客服1",next:"访客1",queue:"访客2,访客3,访客4"},{key:"2",agent:"客服2",next:"访客5",queue:"访客6,访客7,访客8"}],cnt=(e,t,n,r)=>{console.log("params",e,t,n,r)},unt=()=>P.jsxs(P.Fragment,{children:[P.jsx("h2",{children:"一对一排队队列"}),P.jsxs(od,{children:[P.jsx(Ri,{span:4}),P.jsx(Ri,{span:16,children:P.jsx(Ro,{columns:snt,dataSource:lnt,onChange:cnt,showSorterTooltip:{target:"sorter-icon"}})}),P.jsx(Ri,{span:4})]})]}),dnt=()=>P.jsxs(P.Fragment,{children:[P.jsx("h1",{children:"排队队列"}),P.jsx(ont,{}),P.jsx(unt,{})]}),{TextArea:fnt}=vi,{Title:mnt,Text:pz}=Ba,pnt=async e=>new Promise(t=>{setTimeout(()=>{console.log("提交反馈数据:",e),t(!0)},1e3)}),vnt=({onClose:e})=>{const[t]=q1(),n=qf(),{isDarkMode:r}=c.useContext(Kc),[i,a]=c.useState(0),[o,s]=c.useState(""),[l,u]=c.useState([]),[d,f]=c.useState(""),[m,p]=c.useState(!1),[v,h]=c.useState(!1),g=t.get("org")||"",w=t.get("t")||"",b=t.get("sid")||"",y=[{id:"variety",text:"市种丰富度"},{id:"usability",text:"使用难易"},{id:"features",text:"功能多样性"},{id:"customization",text:"定制化功能"},{id:"design",text:"界面设计"}],x=_=>{switch(a(_),_){case 1:s("非常不满意");break;case 2:s("不满意");break;case 3:s("一般");break;case 4:s("满意");break;case 5:s("非常满意");break;default:s("")}},C=_=>{u($=>$.includes(_)?$.filter(E=>E!==_):[...$,_])},S=async()=>{if(i===0){jn.warning("请先进行评分");return}h(!0);try{await pnt({orgUid:g,type:w,sid:b,rating:i,tags:l,feedback:d,joinSurvey:m}),jn.success("感谢您的反馈!"),e?e():n(-1)}catch(_){console.error("提交反馈失败:",_),jn.error("提交失败,请稍后重试")}finally{h(!1)}},k=()=>{e?e():n(-1)};return P.jsx("div",{style:{maxWidth:"600px",margin:"0 auto",padding:"20px",height:"100vh",display:"flex",flexDirection:"column",justifyContent:"center"},children:P.jsxs(JM,{style:{width:"100%",borderRadius:"12px",background:r?"#1f1f1f":"rgba(255, 255, 255, 0.8)",backdropFilter:"blur(10px)"},styles:{body:{padding:"24px"}},children:[P.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[P.jsx(mnt,{level:4,style:{margin:0},children:"您是否满意近期的用户体验?"}),P.jsx(dn,{type:"text",icon:P.jsx(vs,{}),onClick:k,style:{border:"none"}})]}),P.jsxs("div",{style:{textAlign:"center",marginBottom:"20px"},children:[P.jsx(a6,{character:P.jsx(mne,{}),value:i,onChange:x,style:{fontSize:"32px",color:"#FFD700"}}),P.jsx("div",{style:{marginTop:"8px",color:r?"#ccc":"#666"},children:o})]}),i>0&&P.jsxs(P.Fragment,{children:[P.jsxs("div",{style:{marginBottom:"20px"},children:[P.jsx(pz,{style:{display:"block",marginBottom:"12px",fontWeight:500},children:"您觉得我们哪些地方做得比较好?"}),P.jsx(od,{gutter:[12,12],children:y.map(_=>P.jsx(Ri,{span:8,children:P.jsx(Yne,{style:{padding:"8px 12px",borderRadius:"4px",cursor:"pointer",width:"100%",textAlign:"center",background:l.includes(_.id)?r?"#177ddc":"#e6f7ff":r?"#303030":"#f5f5f5",color:l.includes(_.id)?r?"#fff":"#1890ff":r?"#d9d9d9":"#333",borderColor:l.includes(_.id)?r?"#177ddc":"#91d5ff":r?"#434343":"#d9d9d9"},onClick:()=>C(_.id),children:_.text})},_.id))})]}),P.jsxs("div",{style:{marginBottom:"20px"},children:[P.jsx(pz,{style:{display:"block",marginBottom:"12px",fontWeight:500},children:"更多反馈"}),P.jsx(fnt,{placeholder:"您的意见对我们至关重要,请留下您的反馈和建议 (选填)",autoSize:{minRows:3,maxRows:6},value:d,onChange:_=>f(_.target.value),style:{borderRadius:"8px",background:r?"#141414":"#fff"}})]}),P.jsx(Bl,{checked:m,onChange:_=>p(_.target.checked),style:{marginBottom:"20px"},children:"我愿意参加后续的有偿调研"}),P.jsx(dn,{type:"primary",block:!0,size:"large",onClick:S,loading:v,style:{height:"48px",borderRadius:"24px",fontWeight:500},children:"提交"})]})]})})};var Da=function(){return Da=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Pi(Fv,--ls):0,qp--,di===10&&(qp=1,v_--),di}function Vs(){return di=ls2||Z6(di)>3?"":" "}function _nt(e,t){for(;--t&&Vs()&&!(di<48||di>102||di>57&&di<65||di>70&&di<97););return g_(e,Yw()+(t<6&&rf()==32&&Vs()==32))}function eO(e){for(;Vs();)switch(di){case e:return ls;case 34:case 39:e!==34&&e!==39&&eO(di);break;case 40:e===41&&eO(e);break;case 92:Vs();break}return ls}function $nt(e,t){for(;Vs()&&e+di!==57;)if(e+di===84&&rf()===47)break;return"/*"+g_(t,ls-1)+"*"+t5(e===47?e:Vs())}function Ent(e){for(;!Z6(rf());)Vs();return g_(e,ls)}function Pnt(e){return Cnt(Xw("",null,null,null,[""],e=Snt(e),0,[0],e))}function Xw(e,t,n,r,i,a,o,s,l){for(var u=0,d=0,f=o,m=0,p=0,v=0,h=1,g=1,w=1,b=0,y="",x=i,C=a,S=r,k=y;g;)switch(v=b,b=Vs()){case 40:if(v!=108&&Pi(k,f-1)==58){Kw(k+=Cn(j3(b),"&","&\f"),"&\f",kae(u?s[u-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:k+=j3(b);break;case 9:case 10:case 13:case 32:k+=knt(v);break;case 92:k+=_nt(Yw()-1,7);continue;case 47:switch(rf()){case 42:case 47:tg(Tnt($nt(Vs(),Yw()),t,n,l),l);break;default:k+="/"}break;case 123*h:s[u++]=wl(k)*w;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:w==-1&&(k=Cn(k,/\f/g,"")),p>0&&wl(k)-f&&tg(p>32?gz(k+";",r,n,f-1,l):gz(Cn(k," ","")+";",r,n,f-2,l),l);break;case 59:k+=";";default:if(tg(S=hz(k,t,n,u,d,i,s,y,x=[],C=[],f,a),a),b===123)if(d===0)Xw(k,t,S,S,x,a,f,s,C);else switch(m===99&&Pi(k,3)===110?100:m){case 100:case 108:case 109:case 115:Xw(e,S,S,r&&tg(hz(e,S,S,0,0,i,s,y,i,x=[],f,C),C),i,C,f,s,r?x:C);break;default:Xw(k,S,S,S,[""],C,0,s,C)}}u=d=p=0,h=w=1,y=k="",f=o;break;case 58:f=1+wl(k),p=v;default:if(h<1){if(b==123)--h;else if(b==125&&h++==0&&xnt()==125)continue}switch(k+=t5(b),b*h){case 38:w=d>0?1:(k+="\f",-1);break;case 44:s[u++]=(wl(k)-1)*w,w=1;break;case 64:rf()===45&&(k+=j3(Vs())),m=rf(),d=f=wl(y=k+=Ent(Yw())),b++;break;case 45:v===45&&wl(k)==2&&(h=0)}}return a}function hz(e,t,n,r,i,a,o,s,l,u,d,f){for(var m=i-1,p=i===0?a:[""],v=$ae(p),h=0,g=0,w=0;h0?p[b]+" "+y:Cn(y,/&\f/g,p[b])))&&(l[w++]=x);return h_(e,t,n,i===0?p_:s,l,u,d,f)}function Tnt(e,t,n,r){return h_(e,t,n,Sae,t5(wnt()),Up(e,2,-2),0,r)}function gz(e,t,n,r,i){return h_(e,t,n,e5,Up(e,0,r),Up(e,r+1,-1),r,i)}function Pae(e,t,n){switch(bnt(e,t)){case 5103:return tr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tr+e+e;case 4789:return Og+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tr+e+Og+e+kr+e+e;case 5936:switch(Pi(e,t+11)){case 114:return tr+e+kr+Cn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tr+e+kr+Cn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tr+e+kr+Cn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return tr+e+kr+e+e;case 6165:return tr+e+kr+"flex-"+e+e;case 5187:return tr+e+Cn(e,/(\w+).+(:[^]+)/,tr+"box-$1$2"+kr+"flex-$1$2")+e;case 5443:return tr+e+kr+"flex-item-"+Cn(e,/flex-|-self/g,"")+(dc(e,/flex-|baseline/)?"":kr+"grid-row-"+Cn(e,/flex-|-self/g,""))+e;case 4675:return tr+e+kr+"flex-line-pack"+Cn(e,/align-content|flex-|-self/g,"")+e;case 5548:return tr+e+kr+Cn(e,"shrink","negative")+e;case 5292:return tr+e+kr+Cn(e,"basis","preferred-size")+e;case 6060:return tr+"box-"+Cn(e,"-grow","")+tr+e+kr+Cn(e,"grow","positive")+e;case 4554:return tr+Cn(e,/([^-])(transform)/g,"$1"+tr+"$2")+e;case 6187:return Cn(Cn(Cn(e,/(zoom-|grab)/,tr+"$1"),/(image-set)/,tr+"$1"),e,"")+e;case 5495:case 3959:return Cn(e,/(image-set\([^]*)/,tr+"$1$`$1");case 4968:return Cn(Cn(e,/(.+:)(flex-)?(.*)/,tr+"box-pack:$3"+kr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tr+e+e;case 4200:if(!dc(e,/flex-|baseline/))return kr+"grid-column-align"+Up(e,t)+e;break;case 2592:case 3360:return kr+Cn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,dc(r.props,/grid-\w+-end/)})?~Kw(e+(n=n[t].value),"span",0)?e:kr+Cn(e,"-start","")+e+kr+"grid-row-span:"+(~Kw(n,"span",0)?dc(n,/\d+/):+dc(n,/\d+/)-+dc(e,/\d+/))+";":kr+Cn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return dc(r.props,/grid-\w+-start/)})?e:kr+Cn(Cn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Cn(e,/(.+)-inline(.+)/,tr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wl(e)-1-t>6)switch(Pi(e,t+1)){case 109:if(Pi(e,t+4)!==45)break;case 102:return Cn(e,/(.+:)(.+)-([^]+)/,"$1"+tr+"$2-$3$1"+Og+(Pi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kw(e,"stretch",0)?Pae(Cn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Cn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,o,s,l,u){return kr+i+":"+a+u+(o?kr+i+"-span:"+(s?l:+l-+a)+u:"")+e});case 4949:if(Pi(e,t+6)===121)return Cn(e,":",":"+tr)+e;break;case 6444:switch(Pi(e,Pi(e,14)===45?18:11)){case 120:return Cn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+tr+(Pi(e,14)===45?"inline-":"")+"box$3$1"+tr+"$2$3$1"+kr+"$2box$3")+e;case 100:return Cn(e,":",":"+kr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Cn(e,"scroll-","scroll-snap-")+e}return e}function HS(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case e5:e.return=Pae(e.value,e.length,n);return;case Cae:return HS([cu(e,{value:Cn(e.value,"@","@"+tr)})],r);case p_:if(e.length)return ynt(n=e.props,function(i){switch(dc(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ym(cu(e,{props:[Cn(i,/:(read-\w+)/,":"+Og+"$1")]})),ym(cu(e,{props:[i]})),J6(e,{props:vz(n,r)});break;case"::placeholder":ym(cu(e,{props:[Cn(i,/:(plac\w+)/,":"+tr+"input-$1")]})),ym(cu(e,{props:[Cn(i,/:(plac\w+)/,":"+Og+"$1")]})),ym(cu(e,{props:[Cn(i,/:(plac\w+)/,kr+"input-$1")]})),ym(cu(e,{props:[i]})),J6(e,{props:vz(n,r)});break}return""})}}var Nnt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},io={ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",npm_package_devDependencies__types_sockjs_client:"^1.5.4",TERM_PROGRAM:"vscode",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",npm_package_dependencies_axios:"^1.7.2",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.2.2",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_package_devDependencies_vite:"^5.2.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_config_shamefully_hoist:"true",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",npm_package_scripts_release:"sh cicd/scripts/build-upload.sh",npm_package_scripts_lint:"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",npm_package_dependencies__ant_design_x:"^1.0.5",TERM_PROGRAM_VERSION:"1.98.2",npm_package_dependencies_dompurify:"^3.1.4",npm_package_devDependencies__vitejs_plugin_react:"^4.2.1",npm_package_scripts_dev:"vite --host --mode dev",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",npm_package_dependencies_uuid:"^9.0.1",npm_package_private:"true",npm_config_registry:"https://registry.npmmirror.com/",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies_react_dom:"^18.2.0",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.6",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_dependencies_react_dropzone:"^14.2.3",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",npm_package_devDependencies__testing_library_react:"^15.0.7",npm_package_devDependencies__types_react:"^18.2.66",COMMAND_MODE:"unix2003",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.5",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",PNPM_SCRIPT_SRC_DIR:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.C5iaXkIvwY/Listeners",npm_package_dependencies_zustand:"^4.5.2",VSCODE_PROFILE_INITIALIZED:"1",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",npm_package_dependencies_styled_components:"^6.1.13",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_eslint:"^8.57.0",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies__typescript_eslint_eslint_plugin:"^7.2.0",npm_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/bin/pnpm.cjs",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_devDependencies__types_react_dom:"^18.2.22",npm_config_frozen_lockfile:"",rvm_prefix:"/Users/ningjinpeng",npm_package_devDependencies__typescript_eslint_parser:"^7.2.0",PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor/node_modules/.bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_package_dependencies_markdown_it:"^14.1.0",npm_package_dependencies__repo_chatui:"workspace:*",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.microsoft.VSCode",npm_package_dependencies_react_contexify:"^6.0.0",npm_config_auto_install_peers:"true",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/visitor",npm_package_dependencies__repo_api:"workspace:*",npm_command:"run-script",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",npm_package_scripts_preview:"vite preview",npm_package_devDependencies_eslint_plugin_react_hooks:"^4.6.0",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",LANG:"zh_CN.UTF-8",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",npm_package_name:"visitor",npm_package_dependencies_react_intl:"^6.6.8",npm_package_scripts_release_quanjing:"sh cicd/scripts/build-quanjing.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_scripts_build:"tsc && vite build --mode prod",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_package_dependencies_react_router_dom:"^6.23.1",npm_package_devDependencies__types_ua_parser_js:"^0.7.39",npm_package_devDependencies__rollup_plugin_alias:"^5.1.0",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_config_node_gyp:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"0",npm_package_version:"0.0.0",npm_package_dependencies_ws:"^8.17.1",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",SHLVL:"3",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_type:"module",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",npm_package_dependencies_react_markdown:"^9.0.1",npm_package_dependencies_mitt:"^3.0.1",npm_config_strict_ssl:"",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",npm_package_dependencies_react_photo_view:"^1.2.6",LOGNAME:"ningjinpeng",npm_lifecycle_script:"tsc && vite build --mode open",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_sockjs_client:"^1.6.1",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",npm_config_user_agent:"pnpm/9.12.3 npm/? node/v20.0.0 darwin arm64",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_dependencies_clsx:"^2.1.1",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies__stomp_stompjs:"^7.0.0",npm_package_dependencies_antd:"^5.23.2",npm_package_devDependencies__types_dompurify:"^3.2.0",COLORTERM:"truecolor",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",NODE_ENV:"production"},Gp=typeof process<"u"&&io!==void 0&&(io.REACT_APP_SC_ATTR||io.SC_ATTR)||"data-styled",Tae="active",Oae="data-styled-version",b_="6.1.13",n5=`/*!sc*/ +`,VS=typeof window<"u"&&"HTMLElement"in window,Dnt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&io!==void 0&&io.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&io.REACT_APP_SC_DISABLE_SPEEDY!==""?io.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&io.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&io!==void 0&&io.SC_DISABLE_SPEEDY!==void 0&&io.SC_DISABLE_SPEEDY!==""&&io.SC_DISABLE_SPEEDY!=="false"&&io.SC_DISABLE_SPEEDY),y_=Object.freeze([]),Kp=Object.freeze({});function jnt(e,t,n){return n===void 0&&(n=Kp),e.theme!==n.theme&&e.theme||t||n.theme}var Iae=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Fnt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ant=/(^-|-$)/g;function bz(e){return e.replace(Fnt,"-").replace(Ant,"")}var Lnt=/(a)(d)/gi,My=52,yz=function(e){return String.fromCharCode(e+(e>25?39:97))};function tO(e){var t,n="";for(t=Math.abs(e);t>My;t=t/My|0)n=yz(t%My)+n;return(yz(t%My)+n).replace(Lnt,"$1-$2")}var F3,Rae=5381,Hm=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Mae=function(e){return Hm(Rae,e)};function Bnt(e){return tO(Mae(e)>>>0)}function znt(e){return e.displayName||e.name||"Component"}function A3(e){return typeof e=="string"&&!0}var Nae=typeof Symbol=="function"&&Symbol.for,Dae=Nae?Symbol.for("react.memo"):60115,Hnt=Nae?Symbol.for("react.forward_ref"):60112,Vnt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Wnt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Unt=((F3={})[Hnt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},F3[Dae]=jae,F3);function wz(e){return("type"in(t=e)&&t.type.$$typeof)===Dae?jae:"$$typeof"in e?Unt[e.$$typeof]:Vnt;var t}var qnt=Object.defineProperty,Gnt=Object.getOwnPropertyNames,xz=Object.getOwnPropertySymbols,Knt=Object.getOwnPropertyDescriptor,Ynt=Object.getPrototypeOf,Sz=Object.prototype;function Fae(e,t,n){if(typeof t!="string"){if(Sz){var r=Ynt(t);r&&r!==Sz&&Fae(e,r,n)}var i=Gnt(t);xz&&(i=i.concat(xz(t)));for(var a=wz(e),o=wz(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var Xnt=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,a=i;t>=a;)if((a<<=1)<0)throw Q1(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var o=i;o=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),a=i+r,o=i;o=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(g+="".concat(w,","))}),l+="".concat(v).concat(h,'{content:"').concat(g,'"}').concat(n5)},d=0;d0?".".concat(t):m},d=l.slice();d.push(function(m){m.type===p_&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(srt,n).replace(r,u))}),o.prefix&&d.push(Mnt),d.push(Ont);var f=function(m,p,v,h){p===void 0&&(p=""),v===void 0&&(v=""),h===void 0&&(h="&"),t=h,n=p,r=new RegExp("\\".concat(n,"\\b"),"g");var g=m.replace(lrt,""),w=Pnt(v||p?"".concat(v," ").concat(p," { ").concat(g," }"):g);o.namespace&&(w=Bae(w,o.namespace));var b=[];return HS(w,Int(d.concat(Rnt(function(y){return b.push(y)})))),b};return f.hash=l.length?l.reduce(function(m,p){return p.name||Q1(15),Hm(m,p.name)},Rae).toString():"",f}var urt=new Lae,rO=crt(),zae=L.createContext({shouldForwardProp:void 0,styleSheet:urt,stylis:rO});zae.Consumer;L.createContext(void 0);function $z(){return c.useContext(zae)}var drt=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=rO);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,i5(this,function(){throw Q1(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=rO),this.name+t.hash},e}(),frt=function(e){return e>="A"&&e<="Z"};function Ez(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,o)){var s=r(a,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,s)}i=Hd(i,o),this.staticRulesId=o}else{for(var l=Hm(this.baseHash,r.hash),u="",d=0;d>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(u,".".concat(p),void 0,this.componentId)),i=Hd(i,p)}}return i},e}(),Wae=L.createContext(void 0);Wae.Consumer;var L3={};function hrt(e,t,n){var r=r5(e),i=e,a=!A3(e),o=t.attrs,s=o===void 0?y_:o,l=t.componentId,u=l===void 0?function(x,C){var S=typeof x!="string"?"sc":bz(x);L3[S]=(L3[S]||0)+1;var k="".concat(S,"-").concat(Bnt(b_+S+L3[S]));return C?"".concat(C,"-").concat(k):k}(t.displayName,t.parentComponentId):l,d=t.displayName,f=d===void 0?function(x){return A3(x)?"styled.".concat(x):"Styled(".concat(znt(x),")")}(e):d,m=t.displayName&&t.componentId?"".concat(bz(t.displayName),"-").concat(t.componentId):t.componentId||u,p=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,v=t.shouldForwardProp;if(r&&i.shouldForwardProp){var h=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;v=function(x,C){return h(x,C)&&g(x,C)}}else v=h}var w=new vrt(n,m,r?i.componentStyle:void 0);function b(x,C){return function(S,k,_){var $=S.attrs,E=S.componentStyle,T=S.defaultProps,M=S.foldedComponentIds,j=S.styledComponentId,I=S.target,N=L.useContext(Wae),O=$z(),D=S.shouldForwardProp||O.shouldForwardProp,F=jnt(k,N,T)||Kp,z=function(q,Q,G){for(var X,re=Da(Da({},Q),{className:void 0,theme:G}),K=0;Ke.$backgroundColor||"#fff"}; + color: ${e=>e.$textColor||"#333"}; + border-bottom: 1px solid #eee; + position: sticky; + top: 0; + z-index: 100; +`,wrt=kn.h1` + margin: 0; + margin-left: 8px; + font-size: 16px; + font-weight: 500; + color: ${e=>e.$textColor||"#333"}; +`,xrt=kn.div` + flex: 1; + overflow-y: auto; + display: flex; + flex-direction: column; + align-items: center; + max-width: 800px; + margin: 0 auto; + width: 100%; +`,Srt=kn.div` + background: #f0f8ff; + padding: 16px 20px; + border-radius: 8px; + margin-bottom: 24px; + width: 100%; + box-sizing: border-box; +`,Crt=kn.input` + width: 100%; + padding: 12px; + border: none; + border-radius: 6px; + background: #fff; + font-size: 14px; + color: #333; + outline: none; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); + box-sizing: border-box; + + &::placeholder { + color: #999; + } +`,krt=kn.div` + display: flex; + gap: 20px; + margin-bottom: 20px; + border-bottom: 1px solid #eee; +`,_rt=kn.div` + padding: 8px 4px; + font-size: 14px; + color: ${e=>e.$active?"#333":"#999"}; + border-bottom: 2px solid ${e=>e.$active?"#0066FF":"transparent"}; + cursor: pointer; +`,$rt=kn.div` + display: flex; + flex-direction: column; + gap: 16px; + margin-bottom: 60px; +`,Ert=kn.div` + display: flex; + align-items: center; + gap: 12px; + padding: 12px 0; + border-bottom: 1px solid #f5f5f5; + cursor: pointer; + + &:hover { + opacity: 0.8; + } +`,Prt=kn.span` + color: ${e=>{switch(e.$index){case 1:return"#ff6b6b";case 2:return"#ff922b";case 3:return"#ffd43b";default:return"#868e96"}}}; + font-weight: 500; +`,Trt=kn.span` + color: #333; + flex: 1; +`,Ort=kn.span` + color: #ccc; +`,Irt=kn.div` + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; + margin-bottom: 24px; + width: 100%; +`,Rrt=kn.div` + background: #f8f9fa; + border-radius: 8px; + padding: 16px; + display: flex; + flex-direction: column; + align-items: center; + gap: 8px; + cursor: pointer; + transition: all 0.2s; + + &:hover { + transform: translateY(-2px); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); + } +`,Mrt=kn.div` + font-size: 14px; + color: #333; + text-align: center; +`,Nrt=kn.div` + font-size: 12px; + color: #666; + text-align: center; +`,Drt=kn.button` + border: none; + background: none; + padding: 8px; + cursor: pointer; + display: flex; + align-items: center; + color: ${e=>e.$textColor||"#333"}; +`,jrt=()=>P.jsx("svg",{viewBox:"0 0 1024 1024",width:"20",height:"20",children:P.jsx("path",{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z",fill:"currentColor"})}),Frt=kn.div` + margin-left: auto; +`,Art=()=>{const e=qf(),[t]=q1(),n=t.get("navbarBg"),r=t.get("navbarText"),[i,a]=c.useState("member"),o={member:["如何查看/导出考勤数据","如何创建企业","如何设置子管理员","法人认证具体如何操作","如何进行年检认证"],admin:["如何添加/删除管理员","如何设置管理员权限","如何查看管理日志","如何批量导入成员","如何设置部门架构"],developer:["如何获取开发者密钥","如何对接第三方系统","如何使用API接口","如何配置开发环境","如何处理常见错误"],school:["如何添加班级","如何管理学生信息","如何发布通知公告","如何查看考勤记录","如何与家长互动"]},s=()=>o[i]||[],l=[{id:"member",label:"成员"},{id:"admin",label:"管理员"},{id:"developer",label:"开发者"},{id:"school",label:"家校"}],u=[{icon:"微语创业版",title:"微语创业版",desc:"小微企业首选"},{icon:"专业版咨询",title:"专业版咨询",desc:"高效协作、灵活开放"},{icon:"微语会议",title:"微语会议",desc:"AI时代的开会方式"}],d=p=>{e(`/helpcategory/${p+1}?category=${encodeURIComponent(u[p].title)}`)},f=p=>{const v=s()[p];e(`/helpdetail/${p+1}?question=${encodeURIComponent(v)}`)},m=()=>{window.parent!==window?window.parent.postMessage({type:"CLOSE_CHAT_WINDOW"},"*"):window.close()};return P.jsxs(brt,{children:[P.jsxs(yrt,{$backgroundColor:n,$textColor:r,children:[P.jsx(wrt,{$textColor:r,children:"帮助中心"}),P.jsx(Frt,{children:P.jsx(Drt,{onClick:m,$textColor:r,children:P.jsx(jrt,{})})})]}),P.jsxs(xrt,{children:[P.jsx(Srt,{children:P.jsx(Crt,{placeholder:"输入关键词,搜索触手可及的服务","aria-label":"搜索帮助"})}),P.jsx(Irt,{children:u.map((p,v)=>P.jsxs(Rrt,{onClick:()=>d(v),children:[P.jsx(Mrt,{children:p.title}),P.jsx(Nrt,{children:p.desc})]},v))}),P.jsx(krt,{children:l.map(p=>P.jsx(_rt,{$active:i===p.id,onClick:()=>a(p.id),children:p.label},p.id))}),P.jsx($rt,{children:s().map((p,v)=>P.jsxs(Ert,{onClick:()=>f(v),children:[P.jsx(Prt,{$index:v+1,children:v+1}),P.jsx(Trt,{children:p}),P.jsx(Ort,{children:"›"})]},v))})]})]})},Lrt=kn.div` + padding: 20px; + max-width: 800px; + margin: 0 auto; + height: 100vh; + display: flex; + flex-direction: column; + overflow-y: auto; + box-sizing: border-box; + padding-bottom: 80px; +`,Brt=kn.div` + display: flex; + align-items: center; + gap: 16px; + margin-bottom: 24px; +`,zrt=kn.button` + background: none; + border: none; + padding: 8px; + cursor: pointer; + color: #666; + display: flex; + align-items: center; + gap: 4px; + font-size: 14px; + transition: color 0.2s; + + &:hover { + color: #0066FF; + } + + svg { + width: 20px; + height: 20px; + } +`,Hrt=kn.h1` + font-size: 24px; + color: #333; + margin: 0; + flex: 1; +`,Vrt=kn.div` + font-size: 16px; + color: #666; + line-height: 1.6; + flex: 1; +`,Wrt=kn.div` + margin-top: 40px; + padding: 20px; + border-top: 1px solid #eee; + display: flex; + flex-direction: column; + align-items: center; + gap: 16px; +`,Urt=kn.div` + display: flex; + gap: 16px; +`,Oz=kn.button` + padding: 8px 24px; + border-radius: 20px; + border: 1px solid ${e=>e.$primary?"#0066FF":"#ddd"}; + background: ${e=>e.$primary?"#0066FF":"#fff"}; + color: ${e=>e.$primary?"#fff":"#666"}; + cursor: pointer; + transition: all 0.2s; + + &:hover { + opacity: 0.8; + } +`,qrt=kn.textarea` + width: 100%; + height: 100px; + padding: 12px; + border: 1px solid #ddd; + border-radius: 8px; + resize: none; + margin-top: 16px; + font-size: 14px; + + &:focus { + outline: none; + border-color: #0066FF; + } +`,Grt=kn.button` + padding: 8px 24px; + border-radius: 20px; + background: #0066FF; + color: #fff; + border: none; + cursor: pointer; + transition: all 0.2s; + + &:hover { + opacity: 0.8; + } +`,Krt=()=>P.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:P.jsx("path",{d:"M19 12H5M12 19l-7-7 7-7",strokeLinecap:"round",strokeLinejoin:"round"})}),Yrt=()=>{const e=qf(),[t]=q1(),n=t.get("question"),[r,i]=c.useState(!1),[a,o]=c.useState(""),s=()=>{const f=t.get("from");e(f==="category"?-1:"/helpcenter")},l=`这是问题 "${n}" 的详细解答... + + 1. 第一步 + 首先,您需要了解这个功能的基本使用方法... + + 2. 重要说明 + 在操作过程中,请注意以下几点重要事项... + + 3. 具体步骤 + - 打开设置页面 + - 找到相关选项 + - 按照提示进行配置 + + 4. 常见问题 + 在使用过程中可能遇到以下问题... + + 5. 注意事项 + 请确保在操作时遵循以下建议... + + 6. 更多帮助 + 如果您需要更多帮助,可以... + `,u=f=>{f?console.log("Helpful feedback submitted"):i(!0)},d=()=>{console.log("Feedback submitted:",a),i(!1),o("")};return P.jsxs(Lrt,{children:[P.jsxs(Brt,{children:[P.jsxs(zrt,{onClick:s,children:[P.jsx(Krt,{}),"返回"]}),P.jsx(Hrt,{children:n})]}),P.jsx(Vrt,{children:l}),P.jsxs(Wrt,{children:[P.jsx("div",{children:"这个答案对您有帮助吗?"}),P.jsxs(Urt,{children:[P.jsx(Oz,{$primary:!0,onClick:()=>u(!0),children:"有帮助"}),P.jsx(Oz,{onClick:()=>u(!1),children:"没帮助"})]}),r&&P.jsxs(P.Fragment,{children:[P.jsx(qrt,{value:a,onChange:f=>o(f.target.value),placeholder:"请告诉我们您遇到了什么问题..."}),P.jsx(Grt,{onClick:d,children:"提交反馈"})]})]})]})},Xrt=kn.div` + padding: 20px; + height: 100vh; + background: #fff; + display: flex; + flex-direction: column; + overflow-y: auto; + box-sizing: border-box; + width: 100%; + align-items: center; +`,Qrt=kn.div` + width: 100%; + max-width: 800px; + display: flex; + flex-direction: column; + align-items: flex-start; +`,Jrt=kn.div` + display: flex; + align-items: center; + gap: 16px; + margin-bottom: 24px; + width: 100%; +`,Zrt=kn.button` + background: none; + border: none; + padding: 8px; + cursor: pointer; + color: #666; + display: flex; + align-items: center; + gap: 4px; + font-size: 14px; + transition: color 0.2s; + + &:hover { + color: #0066FF; + } + + svg { + width: 20px; + height: 20px; + } +`,eit=kn.h1` + font-size: 24px; + color: #333; + margin: 0; + flex: 1; +`,tit=kn.div` + display: flex; + flex-direction: column; + gap: 16px; + margin-bottom: 60px; + width: 100%; +`,nit=kn.div` + display: flex; + align-items: center; + gap: 12px; + padding: 12px 0; + border-bottom: 1px solid #f5f5f5; + cursor: pointer; + + &:hover { + opacity: 0.8; + } +`,rit=kn.span` + color: ${e=>{switch(e.$index){case 1:return"#ff6b6b";case 2:return"#ff922b";case 3:return"#ffd43b";default:return"#868e96"}}}; + font-weight: 500; +`,iit=kn.span` + color: #333; + flex: 1; +`,ait=kn.span` + color: #ccc; +`,oit=()=>P.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:P.jsx("path",{d:"M19 12H5M12 19l-7-7 7-7",strokeLinecap:"round",strokeLinejoin:"round"})}),sit=()=>{const e=qf(),{id:t}=oUe();console.log("HelpCategory id: ",t);const[n]=q1(),r=n.get("category"),i=["如何使用基础功能","如何配置高级设置","常见问题解答","功能使用技巧","系统使用指南","新手入门教程","进阶使用说明","问题排查指南"],a=()=>{e("/helpcenter")},o=s=>{e(`/helpdetail/${s+1}?question=${encodeURIComponent(i[s])}&from=category`)};return P.jsx(Xrt,{children:P.jsxs(Qrt,{children:[P.jsxs(Jrt,{children:[P.jsxs(Zrt,{onClick:a,children:[P.jsx(oit,{}),"返回"]}),P.jsx(eit,{children:r})]}),P.jsx(tit,{children:i.map((s,l)=>P.jsxs(nit,{onClick:()=>o(l),children:[P.jsx(rit,{$index:l+1,children:l+1}),P.jsx(iit,{children:s}),P.jsx(ait,{children:"›"})]},l))})]})})};var lit=A(A({},cX),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const qae={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},aO={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},lit),timePickerLocale:Object.assign({},qae)};aO.lang.ok="确定";const eo="${label}不是一个有效的${type}",cit={locale:"zh-cn",Pagination:Bte,DatePicker:aO,TimePicker:qae,Calendar:aO,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:eo,method:eo,array:eo,object:eo,number:eo,date:eo,boolean:eo,integer:eo,float:eo,regexp:eo,email:eo,url:eo,hex:eo},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}},Eu=()=>{},co=Eu(),Zw=Object,Wn=e=>e===co,Il=e=>typeof e=="function",Fc=(e,t)=>({...e,...t}),uit=e=>Il(e.then),Dy=new WeakMap;let dit=0;const R0=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,a;if(Zw(e)===e&&!r&&n!=RegExp){if(i=Dy.get(e),i)return i;if(i=++dit+"~",Dy.set(e,i),n==Array){for(i="@",a=0;aw_&&typeof window.requestAnimationFrame!=a5,Gae=(e,t)=>{const n=gc.get(e);return[()=>!Wn(t)&&e.get(t)||B3,r=>{if(!Wn(t)){const i=e.get(t);t in jy||(jy[t]=i),n[5](t,Fc(i,r),i||B3)}},n[6],()=>!Wn(t)&&t in jy?jy[t]:!Wn(t)&&e.get(t)||B3]};let sO=!0;const mit=()=>sO,[lO,cO]=w_&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Eu,Eu],pit=()=>{const e=oO&&document.visibilityState;return Wn(e)||e!=="hidden"},vit=e=>(oO&&document.addEventListener("visibilitychange",e),lO("focus",e),()=>{oO&&document.removeEventListener("visibilitychange",e),cO("focus",e)}),hit=e=>{const t=()=>{sO=!0,e()},n=()=>{sO=!1};return lO("online",t),lO("offline",n),()=>{cO("online",t),cO("offline",n)}},git={isOnline:mit,isVisible:pit},bit={initFocus:vit,initReconnect:hit},Iz=!L.useId,M0=!w_||"Deno"in window,yit=e=>fit()?window.requestAnimationFrame(e):setTimeout(e,1),ex=M0?c.useEffect:c.useLayoutEffect,z3=typeof navigator<"u"&&navigator.connection,Rz=!M0&&z3&&(["slow-2g","2g"].includes(z3.effectiveType)||z3.saveData),o5=e=>{if(Il(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?R0(e):"",[e,t]};let wit=0;const uO=()=>++wit,Kae=0,Yae=1,Xae=2,xit=3;var Rh={__proto__:null,ERROR_REVALIDATE_EVENT:xit,FOCUS_EVENT:Kae,MUTATE_EVENT:Xae,RECONNECT_EVENT:Yae};async function Qae(...e){const[t,n,r,i]=e,a=Fc({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const u=a.revalidate!==!1,d=p=>typeof s=="function"?s(p):s!==!1,f=a.throwOnError;if(Il(n)){const p=n,v=[],h=t.keys();for(const g of h)!/^\$(inf|sub)\$/.test(g)&&p(t.get(g)._k)&&v.push(g);return Promise.all(v.map(m))}return m(n);async function m(p){const[v]=o5(p);if(!v)return;const[h,g]=Gae(t,v),[w,b,y,x]=gc.get(t),C=w[v],S=()=>u&&(delete y[v],delete x[v],C&&C[0])?C[0](Xae).then(()=>h().data):h().data;if(e.length<3)return S();let k=r,_;const $=uO();b[v]=[$,0];const E=!Wn(l),T=h(),M=T.data,j=T._c,I=Wn(j)?M:j;if(E&&(l=Il(l)?l(I,M):l,g({data:l,_c:I})),Il(k))try{k=k(I)}catch(O){_=O}if(k&&uit(k))if(k=await k.catch(O=>{_=O}),$!==b[v][0]){if(_)throw _;return k}else _&&E&&d(_)&&(o=!0,k=I,g({data:k,_c:co}));o&&(_||(Il(o)&&(k=o(k,I)),g({data:k,error:co,_c:co}))),b[v][1]=uO();const N=await S();if(g({_c:co}),_){if(f)throw _;return}return o?N:k}}const Mz=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Jae=(e,t)=>{if(!gc.has(e)){const n=Fc(bit,t),r={},i=Qae.bind(co,e);let a=Eu;const o={},s=(d,f)=>{const m=o[d]||[];return o[d]=m,m.push(f),()=>m.splice(m.indexOf(f),1)},l=(d,f,m)=>{e.set(d,f);const p=o[d];if(p)for(const v of p)v(f,m)},u=()=>{if(!gc.has(e)&&(gc.set(e,[r,{},{},{},i,l,s]),!M0)){const d=n.initFocus(setTimeout.bind(co,Mz.bind(co,r,Kae))),f=n.initReconnect(setTimeout.bind(co,Mz.bind(co,r,Yae)));a=()=>{d&&d(),f&&f(),gc.delete(e)}}};return u(),[e,i,u,a]}return[e,gc.get(e)[4]]},Sit=(e,t,n,r,i)=>{const a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Wn(a)&&o>a||setTimeout(r,s,i)},Cit=(e,t)=>R0(e)==R0(t),[s5,kit]=Jae(new Map),Zae=Fc({onLoadingSlow:Eu,onSuccess:Eu,onError:Eu,onErrorRetry:Sit,onDiscarded:Eu,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Rz?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Rz?5e3:3e3,compare:Cit,isPaused:()=>!1,cache:s5,mutate:kit,fallback:{}},git),eoe=(e,t)=>{const n=Fc(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=Fc(i,o))}return n},dO=c.createContext({}),_it=e=>{const{value:t}=e,n=c.useContext(dO),r=Il(t),i=c.useMemo(()=>r?t(n):t,[r,n,t]),a=c.useMemo(()=>r?i:eoe(n,i),[r,n,i]),o=i&&i.provider,s=c.useRef(co);o&&!s.current&&(s.current=Jae(o(a.cache||s5),i));const l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),ex(()=>{if(l)return l[2]&&l[2](),l[3]},[]),c.createElement(dO.Provider,Fc(e,{value:a}))},toe=w_&&window.__SWR_DEVTOOLS_USE__,$it=toe?window.__SWR_DEVTOOLS_USE__:[],Eit=()=>{toe&&(window.__SWR_DEVTOOLS_REACT__=L)},Pit=e=>Il(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],noe=()=>Fc(Zae,c.useContext(dO)),Tit=e=>(t,n,r)=>e(t,n&&((...a)=>{const[o]=o5(t),[,,,s]=gc.get(s5),l=s[o];return Wn(l)?n(...a):(delete s[o],l)}),r),Oit=$it.concat(Tit),Iit=e=>function(...n){const r=noe(),[i,a,o]=Pit(n),s=eoe(r,o);let l=e;const{use:u}=s,d=(u||[]).concat(Oit);for(let f=d.length;f--;)l=d[f](l);return l(i,a||s.fetcher||null,s)},Rit=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};Eit();const Nz=L.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),H3={dedupe:!0},Mit=(e,t,n)=>{const{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:m}=n,[p,v,h,g]=gc.get(r),[w,b]=o5(e),y=c.useRef(!1),x=c.useRef(!1),C=c.useRef(w),S=c.useRef(t),k=c.useRef(n),_=()=>k.current,$=()=>_().isVisible()&&_().isOnline(),[E,T,M,j]=Gae(r,w),I=c.useRef({}).current,N=Wn(o)?n.fallback[w]:o,O=(Z,J)=>{for(const ee in I){const te=ee;if(te==="data"){if(!i(Z[te],J[te])&&(!Wn(Z[te])||!i(q,J[te])))return!1}else if(J[te]!==Z[te])return!1}return!0},D=c.useMemo(()=>{const Z=!w||!t?!1:Wn(s)?_().isPaused()||a?!1:Wn(l)?!0:l:s,J=pe=>{const we=Fc(pe);return delete we._k,Z?{isValidating:!0,isLoading:!0,...we}:we},ee=E(),te=j(),le=J(ee),oe=ee===te?le:J(te);let de=le;return[()=>{const pe=J(E());return O(pe,de)?(de.data=pe.data,de.isLoading=pe.isLoading,de.isValidating=pe.isValidating,de.error=pe.error,de):(de=pe,pe)},()=>oe]},[r,w]),F=FK.useSyncExternalStore(c.useCallback(Z=>M(w,(J,ee)=>{O(ee,J)||Z()}),[r,w]),D[0],D[1]),z=!y.current,R=p[w]&&p[w].length>0,H=F.data,V=Wn(H)?N:H,B=F.error,W=c.useRef(V),q=m?Wn(H)?W.current:H:V,Q=R&&!Wn(B)?!1:z&&!Wn(s)?s:_().isPaused()?!1:a?Wn(V)?!1:l:Wn(V)||l,G=!!(w&&t&&z&&Q),X=Wn(F.isValidating)?G:F.isValidating,re=Wn(F.isLoading)?G:F.isLoading,K=c.useCallback(async Z=>{const J=S.current;if(!w||!J||x.current||_().isPaused())return!1;let ee,te,le=!0;const oe=Z||{},de=!h[w]||!oe.dedupe,pe=()=>Iz?!x.current&&w===C.current&&y.current:w===C.current,we={isValidating:!1,isLoading:!1},fe=()=>{T(we)},ge=()=>{const ce=h[w];ce&&ce[1]===te&&delete h[w]},ue={isValidating:!0};Wn(E().data)&&(ue.isLoading=!0);try{if(de&&(T(ue),n.loadingTimeout&&Wn(E().data)&&setTimeout(()=>{le&&pe()&&_().onLoadingSlow(w,n)},n.loadingTimeout),h[w]=[J(b),uO()]),[ee,te]=h[w],ee=await ee,de&&setTimeout(ge,n.dedupingInterval),!h[w]||h[w][1]!==te)return de&&pe()&&_().onDiscarded(w),!1;we.error=co;const ce=v[w];if(!Wn(ce)&&(te<=ce[0]||te<=ce[1]||ce[1]===0))return fe(),de&&pe()&&_().onDiscarded(w),!1;const $e=E().data;we.data=i($e,ee)?$e:ee,de&&pe()&&_().onSuccess(ee,w,n)}catch(ce){ge();const $e=_(),{shouldRetryOnError:se}=$e;$e.isPaused()||(we.error=ce,de&&pe()&&($e.onError(ce,w,$e),(se===!0||Il(se)&&se(ce))&&$()&&$e.onErrorRetry(ce,w,$e,ve=>{const he=p[w];he&&he[0]&&he[0](Rh.ERROR_REVALIDATE_EVENT,ve)},{retryCount:(oe.retryCount||0)+1,dedupe:!0})))}return le=!1,fe(),!0},[w,r]),Y=c.useCallback((...Z)=>Qae(r,C.current,...Z),[]);if(ex(()=>{S.current=t,k.current=n,Wn(H)||(W.current=H)}),ex(()=>{if(!w)return;const Z=K.bind(co,H3);let J=0;const te=Rit(w,p,(le,oe={})=>{if(le==Rh.FOCUS_EVENT){const de=Date.now();_().revalidateOnFocus&&de>J&&$()&&(J=de+_().focusThrottleInterval,Z())}else if(le==Rh.RECONNECT_EVENT)_().revalidateOnReconnect&&$()&&Z();else{if(le==Rh.MUTATE_EVENT)return K();if(le==Rh.ERROR_REVALIDATE_EVENT)return K(oe)}});return x.current=!1,C.current=w,y.current=!0,T({_k:b}),Q&&(Wn(V)||M0?Z():yit(Z)),()=>{x.current=!0,te()}},[w]),ex(()=>{let Z;function J(){const te=Il(u)?u(E().data):u;te&&Z!==-1&&(Z=setTimeout(ee,te))}function ee(){!E().error&&(d||_().isVisible())&&(f||_().isOnline())?K(H3).then(J):J()}return J(),()=>{Z&&(clearTimeout(Z),Z=-1)}},[u,d,f,w]),c.useDebugValue(q),a&&Wn(V)&&w){if(!Iz&&M0)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,k.current=n,x.current=!1;const Z=g[w];if(!Wn(Z)){const J=Y(Z);Nz(J)}if(Wn(B)){const J=K(H3);Wn(q)||(J.status="fulfilled",J.value=!0),Nz(J)}else throw B}return{mutate:Y,get data(){return I.data=!0,q},get error(){return I.error=!0,B},get isValidating(){return I.isValidating=!0,X},get isLoading(){return I.isLoading=!0,re}}},Nit=Zw.defineProperty(_it,"defaultValue",{value:Zae}),roe=Iit(Mit);function Dz(e){return c.isValidElement(e)&&!ww.isFragment(e)}Number(c.version.split(".")[0])>=19;function Vd(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Vd(e,t.slice(0,-1))?e:ioe(e,t,n,r)}const Dit={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},jit={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},Fit={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},Ait={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},Lit={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Bit={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},zit={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},Hit={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},Vit={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},Wit={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},Uit={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},qit={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},Git={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},Kit={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},Yit={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},Xit={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},Qit={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},Jit={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},Zit={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},eat={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},tat={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},nat={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},rat={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},iat={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},aat={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},oat={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},sat={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},lat={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},cat={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}},uat={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},dat={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},fat={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}};var Xn=function(t,n){return{getMessage:function(i,a){var o=Vd(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(o)return o;var s=t.replace("_","-");if(s==="zh-CN")return a;var l=Ef["zh-CN"];return l?l.getMessage(i,a):a},locale:t}},mat=Xn("mn_MN",Xit),pat=Xn("ar_EG",Dit),dp=Xn("zh_CN",lat),vat=Xn("en_US",Bit),hat=Xn("en_GB",Lit),gat=Xn("vi_VN",sat),bat=Xn("it_IT",Git),yat=Xn("ja_JP",Kit),wat=Xn("es_ES",zit),xat=Xn("ca_ES",jit),Sat=Xn("ru_RU",eat),Cat=Xn("sr_RS",nat),kat=Xn("ms_MY",Qit),_at=Xn("zh_TW",cat),$at=Xn("fr_FR",Vit),Eat=Xn("pt_BR",Zit),Pat=Xn("ko_KR",Yit),Tat=Xn("id_ID",qit),Oat=Xn("de_DE",Ait),Iat=Xn("fa_IR",Hit),Rat=Xn("tr_TR",iat),Mat=Xn("pl_PL",Jit),Nat=Xn("hr_",Uit),Dat=Xn("th_TH",rat),jat=Xn("cs_cz",Fit),Fat=Xn("sk_SK",tat),Aat=Xn("he_IL",Wit),Lat=Xn("uk_UA",aat),Bat=Xn("uz_UZ",oat),zat=Xn("nl_NL",uat),Hat=Xn("ro_RO",dat),Vat=Xn("sv_SE",fat),Ef={"mn-MN":mat,"ar-EG":pat,"zh-CN":dp,"en-US":vat,"en-GB":hat,"vi-VN":gat,"it-IT":bat,"ja-JP":yat,"es-ES":wat,"ca-ES":xat,"ru-RU":Sat,"sr-RS":Cat,"ms-MY":kat,"zh-TW":_at,"fr-FR":$at,"pt-BR":Eat,"ko-KR":Pat,"id-ID":Tat,"de-DE":Oat,"fa-IR":Iat,"tr-TR":Rat,"pl-PL":Mat,"hr-HR":Nat,"th-TH":Dat,"cs-CZ":jat,"sk-SK":Fat,"he-IL":Aat,"uk-UA":Lat,"uz-UZ":Bat,"nl-NL":zat,"ro-RO":Hat,"sv-SE":Vat},Wat=Object.keys(Ef),aoe=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return Wat.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function Hi(e,t){Uat(e)&&(e="100%");var n=qat(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Fy(e){return Math.min(1,Math.max(0,e))}function Uat(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function qat(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ooe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ay(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Wd(e){return e.length===1?"0"+e:String(e)}function Gat(e,t,n){return{r:Hi(e,255)*255,g:Hi(t,255)*255,b:Hi(n,255)*255}}function jz(e,t,n){e=Hi(e,255),t=Hi(t,255),n=Hi(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Kat(e,t,n){var r,i,a;if(e=Hi(e,360),t=Hi(t,100),n=Hi(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=V3(s,o,e+1/3),i=V3(s,o,e),a=V3(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Fz(e,t,n){e=Hi(e,255),t=Hi(t,255),n=Hi(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var fO={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Zat(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=not(e)),typeof e=="object"&&(ic(e.r)&&ic(e.g)&&ic(e.b)?(t=Gat(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ic(e.h)&&ic(e.s)&&ic(e.v)?(r=Ay(e.s),i=Ay(e.v),t=Yat(e.h,r,i),o=!0,s="hsv"):ic(e.h)&&ic(e.s)&&ic(e.l)&&(r=Ay(e.s),a=Ay(e.l),t=Kat(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ooe(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var eot="[-\\+]?\\d+%?",tot="[-\\+]?\\d*\\.\\d+%?",Pu="(?:".concat(tot,")|(?:").concat(eot,")"),W3="[\\s|\\(]+(".concat(Pu,")[,|\\s]+(").concat(Pu,")[,|\\s]+(").concat(Pu,")\\s*\\)?"),U3="[\\s|\\(]+(".concat(Pu,")[,|\\s]+(").concat(Pu,")[,|\\s]+(").concat(Pu,")[,|\\s]+(").concat(Pu,")\\s*\\)?"),xs={CSS_UNIT:new RegExp(Pu),rgb:new RegExp("rgb"+W3),rgba:new RegExp("rgba"+U3),hsl:new RegExp("hsl"+W3),hsla:new RegExp("hsla"+U3),hsv:new RegExp("hsv"+W3),hsva:new RegExp("hsva"+U3),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function not(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(fO[e])e=fO[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=xs.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=xs.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=xs.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=xs.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=xs.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=xs.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=xs.hex8.exec(e),n?{r:no(n[1]),g:no(n[2]),b:no(n[3]),a:Lz(n[4]),format:t?"name":"hex8"}:(n=xs.hex6.exec(e),n?{r:no(n[1]),g:no(n[2]),b:no(n[3]),format:t?"name":"hex"}:(n=xs.hex4.exec(e),n?{r:no(n[1]+n[1]),g:no(n[2]+n[2]),b:no(n[3]+n[3]),a:Lz(n[4]+n[4]),format:t?"name":"hex8"}:(n=xs.hex3.exec(e),n?{r:no(n[1]+n[1]),g:no(n[2]+n[2]),b:no(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ic(e){return!!xs.CSS_UNIT.exec(String(e))}var rot=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Jat(t)),this.originalInput=t;var i=Zat(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=ooe(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Fz(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Fz(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=jz(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=jz(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Az(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Xat(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Hi(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Hi(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Az(this.r,this.g,this.b,!1),n=0,r=Object.entries(fO);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Fy(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Fy(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Fy(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Fy(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,i=1103547991^n,a=0,o;a>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)},l5=yf(function(e){return e}),loe={theme:l5,token:A(A({},N0),Vr==null||(q3=Vr.defaultAlgorithm)===null||q3===void 0?void 0:q3.call(Vr,Vr==null?void 0:Vr.defaultSeed)),hashId:"pro-".concat(soe(JSON.stringify(N0)))},iot=function(){return loe};const aot=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:N0,emptyTheme:l5,hashCode:soe,token:loe,useToken:iot},Symbol.toStringTag,{value:"Module"}));var Ao=function(t,n){return new rot(t).setAlpha(n).toRgbString()},oot=function(){return typeof Vr>"u"||!Vr?aot:Vr},Wl=oot(),tx=Wl.useToken;function ka(e,t){var n,r=c.useContext(K3),i=r.token,a=i===void 0?{}:i,o=c.useContext(K3),s=o.hashed,l=tx(),u=l.token,d=l.hashId,f=c.useContext(K3),m=f.theme,p=c.useContext(Jt.ConfigContext),v=p.getPrefixCls,h=p.csp;return a.layout||(a=A({},u)),a.proComponentsCls=(n=a.proComponentsCls)!==null&&n!==void 0?n:".".concat(v("pro")),a.antCls=".".concat(v()),{wrapSSR:Qx({theme:m,token:a,path:[e],nonce:h==null?void 0:h.nonce},function(){return t(a)}),hashId:s?d:""}}var sot=function(t,n){var r,i,a,o,s,l=A({},t);return A(A({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:Ao(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:A({colorBgHeader:Ao(n.colorBgElevated,.6),colorBgScrollHeader:Ao(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:Ao(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(i=l.header)===null||i===void 0?void 0:i.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=l.header)===null||a===void 0?void 0:a.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:Ao(n.colorTextBase,.95),colorBgRightActionsItemHover:Ao(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:A({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:Ao(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:Ao(n.colorTextBase,.06),colorBgMenuItemHover:Ao(n.colorTextBase,.03),colorBgMenuItemSelected:Ao(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:Ao(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:Ao(n.colorTextBase,.95)},l.sider),pageContainer:A({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((o=l.pageContainer)===null||o===void 0?void 0:o.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},lot=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i1,Z=N.getMessage("form.lightFilter.itemUnit","项");return typeof G=="string"&&G.length>C&&Y?"...".concat(B.length).concat(Z):""},re=X();return P.jsxs("span",{title:typeof G=="string"?G:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Q,P.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof G=="string"?G==null||(W=G.toString())===null||W===void 0||(q=W.substr)===null||q===void 0?void 0:q.call(W,0,C):G}),re]})}return V||m};return j(P.jsxs("span",{className:ne(T,I,"".concat(T,"-").concat((i=(a=t.size)!==null&&a!==void 0?a:_)!==null&&i!==void 0?i:"middle"),U(U(U(U({},"".concat(T,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(T,"-disabled"),u),"".concat(T,"-bordered"),h),"".concat(T,"-allow-clear"),y),p),style:g,ref:D,onClick:function(){var V;t==null||(V=t.onClick)===null||V===void 0||V.call(t)},children:[R(o,l),(l||l===0)&&y&&P.jsx(Ql,{role:"button",title:N.getMessage("form.lightFilter.clear","清除"),className:ne("".concat(T,"-icon"),I,"".concat(T,"-close")),onClick:function(V){u||s==null||s(),V.stopPropagation()},ref:O}),w!==!1?w??P.jsx(I1,{className:ne("".concat(T,"-icon"),I,"".concat(T,"-arrow"))}):null]}))},Yc=L.forwardRef(wot),Ms=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},xot=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Bz=function(t){return t==="*"||t==="x"||t==="X"},zz=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},Sot=function(t,n){return mt(t)!==mt(n)?[String(t),String(n)]:[t,n]},Cot=function(t,n){if(Bz(t)||Bz(n))return 0;var r=Sot(zz(t),zz(n)),i=ie(r,2),a=i[0],o=i[1];return a>o?1:a"u"?h0:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||h0},uoe=function(t,n){var r=c5(_ot(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return Ms(r)},$ot=function(t){return U(U(U({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function Eot(e){return ka("FilterDropdown",function(t){var n=A(A({},t),{},{componentCls:".".concat(e)});return[$ot(n)]})}var Pot=function(t){var n=t.children,r=t.label,i=t.footer,a=t.open,o=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,u=t.visible,d=t.footerRender,f=t.placement,m=c.useContext(Jt.ConfigContext),p=m.getPrefixCls,v=p("pro-core-field-dropdown"),h=Eot(v),g=h.wrapSSR,w=h.hashId,b=uoe(a||u||!1,o||l),y=c.useRef(null);return g(P.jsx(Lf,A(A({placement:f,trigger:["click"]},b),{},{overlayInnerStyle:{padding:0},content:P.jsxs("div",{ref:y,className:ne("".concat(v,"-overlay"),U(U({},"".concat(v,"-overlay-").concat(f),f),"hashId",w)),children:[P.jsx(Jt,{getPopupContainer:function(){return y.current||document.body},children:P.jsx("div",{className:"".concat(v,"-content ").concat(w).trim(),children:n})}),i&&P.jsx(got,A({disabled:s,footerRender:d},i))]}),children:P.jsx("span",{className:"".concat(v,"-label ").concat(w).trim(),children:r})})))},Tot=function(t){return U({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function Oot(e){return ka("LabelIconTip",function(t){var n=A(A({},t),{},{componentCls:".".concat(e)});return[Tot(n)]})}var Iot=L.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,a=c.useContext(Jt.ConfigContext),o=a.getPrefixCls,s=o("pro-core-label-tip"),l=Oot(s),u=l.wrapSSR,d=l.hashId;if(!n&&!i)return P.jsx(P.Fragment,{children:t});var f=typeof n=="string"||L.isValidElement(n)?{title:n}:n,m=(f==null?void 0:f.icon)||P.jsx(K9e,{});return u(P.jsxs("div",{className:ne(s,d),onMouseDown:function(v){return v.stopPropagation()},onMouseLeave:function(v){return v.stopPropagation()},onMouseMove:function(v){return v.stopPropagation()},children:[P.jsx("div",{className:ne("".concat(s,"-title"),d,U({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&P.jsx("div",{className:"".concat(s,"-subtitle ").concat(d).trim(),children:i}),n&&P.jsx(sa,A(A({},f),{},{children:P.jsx("span",{className:"".concat(s,"-icon ").concat(d).trim(),children:m})}))]}))}),doe=L.createContext({}),foe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yi,function(){var n="month",r="quarter";return function(i,a){var o=a.prototype;o.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var s=o.add;o.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):s.bind(this)(u,d)};var l=o.startOf;o.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;if(f.p(u)===r){var p=this.quarter()-1;return m?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return l.bind(this)(u,d)}}})})(foe);var Rot=foe.exports;const Mot=qn(Rot);var Pf=function(t){return t==null};fn.extend(Mot);var moe={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function Vz(e){return Object.prototype.toString.call(e)==="[object Object]"}function Not(e){if(Vz(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(Vz(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var mO=function(t){return!!(t!=null&&t._isAMomentObject)},Wz=function(t,n,r){if(!n)return t;if(fn.isDayjs(t)||mO(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(moe[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},Dot=function e(t,n,r,i,a){var o={};return typeof window>"u"||mt(t)!=="object"||Pf(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=a?[a,s].flat(1):[s],u=Ti(r,l)||"text",d="text",f;typeof u=="string"?d=u:u&&(d=u.valueType,f=u.dateFormat);var m=t[s];if(!(Pf(m)&&i)){if(Not(m)&&!Array.isArray(m)&&!fn.isDayjs(m)&&!mO(m)){o[s]=e(m,n,r,i,l);return}if(Array.isArray(m)){o[s]=m.map(function(p,v){return fn.isDayjs(p)||mO(p)?Wz(p,f||n,d):e(p,n,r,i,[s,"".concat(v)].flat(1))});return}o[s]=Wz(m,f||n,d)}}),o)},Uz=function(t,n){return typeof n=="function"?n(fn(t)):fn(t).format(n)},jot=function(t,n){var r=Array.isArray(t)?t:[],i=ie(r,2),a=i[0],o=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):mt(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var u=a?Uz(a,s):"",d=o?Uz(o,l):"",f=u&&d?"".concat(u," ~ ").concat(d):"";return f};function Qp(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=c.useState(e),i=ie(r,2),a=i[0],o=i[1],s=Fot(e);return c.useEffect(function(){var l=setTimeout(function(){o(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(Fe(n)):void 0),a}function of(e,t,n,r){if(e===t)return!0;if(e&&t&&mt(e)==="object"&&mt(t)==="object"){if(e.constructor!==t.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!of(e[a],t[a],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=Tl(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(a=l.value,!t.has(a[0]))return!1}catch(v){s.e(v)}finally{s.f()}var u=Tl(e.entries()),d;try{for(u.s();!(d=u.n()).done;)if(a=d.value,!of(a[1],t.get(a[0]),n,r))return!1}catch(v){u.e(v)}finally{u.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=Tl(e.entries()),m;try{for(f.s();!(m=f.n()).done;)if(a=m.value,!t.has(a[0]))return!1}catch(v){f.e(v)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(t).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[a]))return!1;for(a=i;a--!==0;){var p=o[a];if(!(n!=null&&n.includes(p))&&!(p==="_owner"&&e.$$typeof)&&!of(e[p],t[p],n,r))return!1}return!0}return e!==e&&t!==t}var Lot=function(t,n,r){return of(t,n,r)};function poe(e,t){var n=c.useRef();return Lot(e,n.current,t)||(n.current=e),n.current}function Bot(e,t,n){c.useEffect(e,poe(t||[],n))}function Ta(e,t){return L.useMemo(e,poe(t))}var Y3=0;function zot(e){var t=c.useRef(null),n=c.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(Y3+=1,Y3.toString())}),r=ie(n,1),i=r[0],a=c.useRef(i),o=function(){var d=Oi(Tn().mark(function f(){var m,p,v,h;return Tn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return(m=t.current)===null||m===void 0||m.abort(),v=new AbortController,t.current=v,w.next=5,Promise.race([(p=e.request)===null||p===void 0?void 0:p.call(e,e.params,e),new Promise(function(b,y){var x;(x=t.current)===null||x===void 0||(x=x.signal)===null||x===void 0||x.addEventListener("abort",function(){y(new Error("aborted"))})})]);case 5:return h=w.sent,w.abrupt("return",h);case 7:case"end":return w.stop()}},f)}));return function(){return d.apply(this,arguments)}}();c.useEffect(function(){return function(){Y3+=1}},[]);var s=roe([a.current,e.params],o,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,u=s.error;return[l||u]}var Hot=function(t){var n=c.useRef();return c.useEffect(function(){n.current=t}),n.current},Vot=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n},voe=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(qz+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var i=63&r[t];n+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return n},US=function(){return typeof window>"u"?Gz():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Gz()};fn.extend(xZ);var Kz=function(t){return!!(t!=null&&t._isAMomentObject)},J1=function e(t,n){return Pf(t)||fn.isDayjs(t)||Kz(t)?Kz(t)?fn(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?fn(t):fn(t,n)},Wot=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function Uot(e){var t={};return Wot.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var qot="valueType request plain renderFormItem render text formItemProps valueEnum",Got="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function hoe(e){var t="".concat(qot," ").concat(Got).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function Kot(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&mt(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var Yot=function(t){var n=t.color,r=t.children;return P.jsx(Lo,{color:n,text:r})},Xc=function(t){return Kot(t)==="map"?t:new Map(Object.entries(t||{}))},Xot={Success:function(t){var n=t.children;return P.jsx(Lo,{status:"success",text:n})},Error:function(t){var n=t.children;return P.jsx(Lo,{status:"error",text:n})},Default:function(t){var n=t.children;return P.jsx(Lo,{status:"default",text:n})},Processing:function(t){var n=t.children;return P.jsx(Lo,{status:"processing",text:n})},Warning:function(t){var n=t.children;return P.jsx(Lo,{status:"warning",text:n})},success:function(t){var n=t.children;return P.jsx(Lo,{status:"success",text:n})},error:function(t){var n=t.children;return P.jsx(Lo,{status:"error",text:n})},default:function(t){var n=t.children;return P.jsx(Lo,{status:"default",text:n})},processing:function(t){var n=t.children;return P.jsx(Lo,{status:"processing",text:n})},warning:function(t){var n=t.children;return P.jsx(Lo,{status:"warning",text:n})}},Av=function e(t,n,r){if(Array.isArray(t))return P.jsx(zl,{split:",",size:2,wrap:!0,children:t.map(function(u,d){return e(u,n,d)})},r);var i=Xc(n);if(!i.has(t)&&!i.has("".concat(t)))return(t==null?void 0:t.label)||t;var a=i.get(t)||i.get("".concat(t));if(!a)return P.jsx(L.Fragment,{children:(t==null?void 0:t.label)||t},r);var o=a.status,s=a.color,l=Xot[o||"Init"];return l?P.jsx(l,{children:a.text},r):s?P.jsx(Yot,{color:s,children:a.text},r):P.jsx(L.Fragment,{children:a.text||a},r)},pO={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=w();r.configure=w,r.stringify=r,r.default=r,t.stringify=r,t.configure=w,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function a(b){return b.length<5e3&&!i.test(b)?`"${b}"`:JSON.stringify(b)}function o(b,y){if(b.length>200||y)return b.sort(y);for(let x=1;xC;)b[S]=b[S-1],S--;b[S]=C}return b}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(b){return s.call(b)!==void 0&&b.length!==0}function u(b,y,x){b.length= 1`)}return x===void 0?1/0:x}function v(b){return b===1?"1 item":`${b} items`}function h(b){const y=new Set;for(const x of b)(typeof x=="string"||typeof x=="number")&&y.add(String(x));return y}function g(b){if(n.call(b,"strict")){const y=b.strict;if(typeof y!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(y)return x=>{let C=`Object can not safely be stringified. Received type ${typeof x}`;throw typeof x!="function"&&(C+=` (${x.toString()})`),new Error(C)}}}function w(b){b={...b};const y=g(b);y&&(b.bigint===void 0&&(b.bigint=!1),"circularValue"in b||(b.circularValue=Error));const x=d(b),C=m(b,"bigint"),S=f(b),k=typeof S=="function"?S:void 0,_=p(b,"maximumDepth"),$=p(b,"maximumBreadth");function E(N,O,D,F,z,R){let H=O[N];switch(typeof H=="object"&&H!==null&&typeof H.toJSON=="function"&&(H=H.toJSON(N)),H=F.call(O,N,H),typeof H){case"string":return a(H);case"object":{if(H===null)return"null";if(D.indexOf(H)!==-1)return x;let V="",B=",";const W=R;if(Array.isArray(H)){if(H.length===0)return"[]";if(_$){const J=H.length-$-1;V+=`${B}"... ${v(J)} not stringified"`}return z!==""&&(V+=` +${W}`),D.pop(),`[${V}]`}let q=Object.keys(H);const Q=q.length;if(Q===0)return"{}";if(_$){const K=Q-$;V+=`${X}"...":${G}"${v(K)} not stringified"`,X=B}return z!==""&&X.length>1&&(V=` +${R}${V} +${W}`),D.pop(),`{${V}}`}case"number":return isFinite(H)?String(H):y?y(H):"null";case"boolean":return H===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(H);default:return y?y(H):void 0}}function T(N,O,D,F,z,R){switch(typeof O=="object"&&O!==null&&typeof O.toJSON=="function"&&(O=O.toJSON(N)),typeof O){case"string":return a(O);case"object":{if(O===null)return"null";if(D.indexOf(O)!==-1)return x;const H=R;let V="",B=",";if(Array.isArray(O)){if(O.length===0)return"[]";if(_$){const re=O.length-$-1;V+=`${B}"... ${v(re)} not stringified"`}return z!==""&&(V+=` +${H}`),D.pop(),`[${V}]`}D.push(O);let W="";z!==""&&(R+=z,B=`, +${R}`,W=" ");let q="";for(const Q of F){const G=T(Q,O[Q],D,F,z,R);G!==void 0&&(V+=`${q}${a(Q)}:${W}${G}`,q=B)}return z!==""&&q.length>1&&(V=` +${R}${V} +${H}`),D.pop(),`{${V}}`}case"number":return isFinite(O)?String(O):y?y(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(O);default:return y?y(O):void 0}}function M(N,O,D,F,z){switch(typeof O){case"string":return a(O);case"object":{if(O===null)return"null";if(typeof O.toJSON=="function"){if(O=O.toJSON(N),typeof O!="object")return M(N,O,D,F,z);if(O===null)return"null"}if(D.indexOf(O)!==-1)return x;const R=z;if(Array.isArray(O)){if(O.length===0)return"[]";if(_$){const Z=O.length-$-1;G+=`${X}"... ${v(Z)} not stringified"`}return G+=` +${R}`,D.pop(),`[${G}]`}let H=Object.keys(O);const V=H.length;if(V===0)return"{}";if(_$){const G=V-$;W+=`${q}"...": "${v(G)} not stringified"`,q=B}return q!==""&&(W=` +${z}${W} +${R}`),D.pop(),`{${W}}`}case"number":return isFinite(O)?String(O):y?y(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(O);default:return y?y(O):void 0}}function j(N,O,D){switch(typeof O){case"string":return a(O);case"object":{if(O===null)return"null";if(typeof O.toJSON=="function"){if(O=O.toJSON(N),typeof O!="object")return j(N,O,D);if(O===null)return"null"}if(D.indexOf(O)!==-1)return x;let F="";const z=O.length!==void 0;if(z&&Array.isArray(O)){if(O.length===0)return"[]";if(_$){const G=O.length-$-1;F+=`,"... ${v(G)} not stringified"`}return D.pop(),`[${F}]`}let R=Object.keys(O);const H=R.length;if(H===0)return"{}";if(_$){const W=H-$;F+=`${V}"...":"${v(W)} not stringified"`}return D.pop(),`{${F}}`}case"number":return isFinite(O)?String(O):y?y(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(O);default:return y?y(O):void 0}}function I(N,O,D){if(arguments.length>1){let F="";if(typeof D=="number"?F=" ".repeat(Math.min(D,10)):typeof D=="string"&&(F=D.slice(0,10)),O!=null){if(typeof O=="function")return E("",{"":N},[],O,F,"");if(Array.isArray(O))return T("",N,[],h(O),F,"")}if(F.length!==0)return M("",N,[],F,"")}return j("",N,[])}return I}})(pO,pO.exports);var Qot=pO.exports;const Jot=qn(Qot),Zot=Jot.configure;var Yz=Zot({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function est(){this.__data__=[],this.size=0}function x_(e,t){return e===t||e!==e&&t!==t}function S_(e,t){for(var n=e.length;n--;)if(x_(e[n][0],t))return n;return-1}var tst=Array.prototype,nst=tst.splice;function rst(e){var t=this.__data__,n=S_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nst.call(t,n,1),--this.size,!0}function ist(e){var t=this.__data__,n=S_(t,e);return n<0?void 0:t[n][1]}function ast(e){return S_(this.__data__,e)>-1}function ost(e,t){var n=this.__data__,r=S_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Qc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=clt}function k_(e){return e!=null&&$oe(e.length)&&!u5(e)}function ult(e){return ud(e)&&k_(e)}function dlt(){return!1}var Eoe=typeof vo=="object"&&vo&&!vo.nodeType&&vo,iH=Eoe&&typeof ra=="object"&&ra&&!ra.nodeType&&ra,flt=iH&&iH.exports===Eoe,aH=flt?Jl.Buffer:void 0,mlt=aH?aH.isBuffer:void 0,v5=mlt||dlt,plt="[object Object]",vlt=Function.prototype,hlt=Object.prototype,Poe=vlt.toString,glt=hlt.hasOwnProperty,blt=Poe.call(Object);function Toe(e){if(!ud(e)||Xf(e)!=plt)return!1;var t=m5(e);if(t===null)return!0;var n=glt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Poe.call(n)==blt}var ylt="[object Arguments]",wlt="[object Array]",xlt="[object Boolean]",Slt="[object Date]",Clt="[object Error]",klt="[object Function]",_lt="[object Map]",$lt="[object Number]",Elt="[object Object]",Plt="[object RegExp]",Tlt="[object Set]",Olt="[object String]",Ilt="[object WeakMap]",Rlt="[object ArrayBuffer]",Mlt="[object DataView]",Nlt="[object Float32Array]",Dlt="[object Float64Array]",jlt="[object Int8Array]",Flt="[object Int16Array]",Alt="[object Int32Array]",Llt="[object Uint8Array]",Blt="[object Uint8ClampedArray]",zlt="[object Uint16Array]",Hlt="[object Uint32Array]",_r={};_r[Nlt]=_r[Dlt]=_r[jlt]=_r[Flt]=_r[Alt]=_r[Llt]=_r[Blt]=_r[zlt]=_r[Hlt]=!0;_r[ylt]=_r[wlt]=_r[Rlt]=_r[xlt]=_r[Mlt]=_r[Slt]=_r[Clt]=_r[klt]=_r[_lt]=_r[$lt]=_r[Elt]=_r[Plt]=_r[Tlt]=_r[Olt]=_r[Ilt]=!1;function Vlt(e){return ud(e)&&$oe(e.length)&&!!_r[Xf(e)]}function h5(e){return function(t){return e(t)}}var Ooe=typeof vo=="object"&&vo&&!vo.nodeType&&vo,Ig=Ooe&&typeof ra=="object"&&ra&&!ra.nodeType&&ra,Wlt=Ig&&Ig.exports===Ooe,Q3=Wlt&&goe.process,Jp=function(){try{var e=Ig&&Ig.require&&Ig.require("util").types;return e||Q3&&Q3.binding&&Q3.binding("util")}catch{}}(),oH=Jp&&Jp.isTypedArray,Ioe=oH?h5(oH):Vlt;function hO(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ult=Object.prototype,qlt=Ult.hasOwnProperty;function Roe(e,t,n){var r=e[t];(!(qlt.call(e,t)&&x_(r,n))||n===void 0&&!(t in e))&&d5(e,t,n)}function Lv(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a-1&&e%1==0&&e0){if(++t>=sct)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Aoe=uct(oct);function dct(e,t){return Aoe(Foe(e,t,joe),e+"")}function fct(e,t,n){if(!ql(n))return!1;var r=typeof t;return(r=="number"?k_(n)&&Moe(t,n.length):r=="string"&&t in n)?x_(n[t],e):!1}function mct(e){return dct(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&fct(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,i=Object.keys(n).reduce(function(s,l){var u=n[l];return Pf(u)||(s[l]=u),s},{});if(Object.keys(i).length<1||typeof window>"u"||mt(t)!=="object"||Pf(t)||t instanceof Blob)return t;var a=Array.isArray(t)?[]:{},o=function s(l,u){var d=Array.isArray(l),f=d?[]:{};return l==null||l===void 0?f:(Object.keys(l).forEach(function(m){var p=function y(x,C){return Array.isArray(x)&&x.forEach(function(S,k){if(S){var _=C==null?void 0:C[k];typeof S=="function"&&(C[k]=S(C,m,l)),mt(S)==="object"&&!Array.isArray(S)&&Object.keys(S).forEach(function($){var E=_==null?void 0:_[$];if(typeof S[$]=="function"&&E){var T=S[$](_[$],m,l);_[$]=mt(T)==="object"?T[$]:T}else mt(S[$])==="object"&&Array.isArray(S[$])&&E&&y(S[$],E)}),mt(S)==="object"&&Array.isArray(S)&&_&&y(S,_)}}),m},v=u?[u,m].flat(1):[m].flat(1),h=l[m],g=Ti(i,v),w=function(){var x,C,S=!1;if(typeof g=="function"){C=g==null?void 0:g(h,m,l);var k=mt(C);k!=="object"&&k!=="undefined"?(x=m,S=!0):x=C}else x=p(g,h);if(Array.isArray(x)){f=va(f,x,h);return}mt(x)==="object"&&!Array.isArray(a)?a=pct(a,x):mt(x)==="object"&&Array.isArray(a)?f=A(A({},f),x):(x!==null||x!==void 0)&&(f=va(f,[x],S?C:h))};if(g&&typeof g=="function"&&w(),!(typeof window>"u")){if(vct(h)){var b=s(h,v);if(Object.keys(b).length<1)return;f=va(f,[m],b);return}w()}}),r?f:l)};return a=Array.isArray(t)&&Array.isArray(a)?Fe(o(t)):voe({},o(t),a),a},$o=function(t){return t===void 0?{}:c5(h0,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function nl(e,t){for(var n=Object.assign({},e),r=0;r"u"||!window.URL)return{};var d=[];o.forEach(function(m,p){d.push({key:p,value:m})}),d=d.reduce(function(m,p){return(m[p.key]=m[p.key]||[]).push(p),m},{}),d=Object.keys(d).map(function(m){var p=d[m];return p.length===1?[m,p[0].value]:[m,p.map(function(v){var h=v.value;return h})]});var f=Rg({},e);return d.forEach(function(m){var p=m[0],v=m[1];f[p]=wct(p,v,{},e)}),f},[t.disabled,e,o]);function l(d){if(!(typeof window>"u"||!window.URL)){var f=gct(d);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),o.toString()!==f.searchParams.toString()&&i({})}}c.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(Rg(Rg({},e),s))},[t.disabled,s]);var u=function(d){l(d)};return c.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var d=function(){i({})};return window.addEventListener("popstate",d),function(){window.removeEventListener("popstate",d)}},[t.disabled]),[s,u]}var yct={true:!0,false:!1};function wct(e,t,n,r){if(!n)return t;var i=n[e],a=t===void 0?r[e]:t;return i===Number?Number(a):i===Boolean||t==="true"||t==="false"?yct[a]:Array.isArray(i)?i.find(function(o){return o==a})||r[e]:a}var Bv=L.createContext({}),xct=["children","Wrapper"],Sct=["children","Wrapper"],Loe=c.createContext({grid:!1,colProps:void 0,rowProps:void 0}),Cct=function(t){var n=t.grid,r=t.rowProps,i=t.colProps;return{grid:!!n,RowWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,u=ut(o,xct);return n?P.jsx(od,A(A(A({gutter:8},r),u),{},{children:s})):l?P.jsx(l,{children:s}):s},ColWrapper:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.children,l=o.Wrapper,u=ut(o,Sct),d=c.useMemo(function(){var f=A(A({},i),u);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[u]);return n?P.jsx(Ri,A(A({},d),{},{children:s})):l?P.jsx(l,{children:s}):s}}},g5=function(t){var n=c.useMemo(function(){return mt(t)==="object"?t:{grid:t}},[t]),r=c.useContext(Loe),i=r.grid,a=r.colProps;return c.useMemo(function(){return Cct({grid:!!(i||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||a,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,i,JSON.stringify([a,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},kct=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],_ct=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],lH={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},$ct=["switch","radioButton","radio","rate"];function b5(e,t){e.displayName="ProFormComponent";var n=function(a){var o=A(A({},a==null?void 0:a.filedConfig),t),s=o.valueType,l=o.customLightMode,u=o.lightFilterLabelFormatter,d=o.valuePropName,f=d===void 0?"value":d,m=o.ignoreWidth,p=o.defaultProps,v=ut(o,kct),h=A(A({},p),a),g=h.label,w=h.tooltip,b=h.placeholder,y=h.width,x=h.bordered,C=h.messageVariables,S=h.ignoreFormItem,k=h.transform,_=h.convertValue,$=h.readonly,E=h.allowClear;h.colSize;var T=h.getFormItemProps,M=h.getFieldProps;h.filedConfig;var j=h.cacheForSwr,I=h.proFieldProps,N=ut(h,_ct),O=s||N.valueType,D=c.useMemo(function(){return m||$ct.includes(O)},[m,O]),F=c.useState(),z=ie(F,2),R=z[1],H=c.useState(),V=ie(H,2),B=V[0],W=V[1],q=L.useContext(Bv),Q=Ta(function(){return{formItemProps:T==null?void 0:T(),fieldProps:M==null?void 0:M()}},[M,T,N.dependenciesValues,B]),G=Ta(function(){var ue=A(A(A(A({},S?Ms({value:N.value}):{}),{},{placeholder:b,disabled:a.disabled},q.fieldProps),Q.fieldProps),N.fieldProps);return ue.style=Ms(ue==null?void 0:ue.style),ue},[S,N.value,N.fieldProps,b,a.disabled,q.fieldProps,Q.fieldProps]),X=Uot(N),re=Ta(function(){return A(A(A(A({},q.formItemProps),X),Q.formItemProps),N.formItemProps)},[Q.formItemProps,q.formItemProps,N.formItemProps,X]),K=Ta(function(){return A(A({messageVariables:C},v),re)},[v,re,C]);Yx(!N.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var Y=c.useContext(Gu),Z=Y.prefixName,J=Ta(function(){var ue,ce=K==null?void 0:K.name;Array.isArray(ce)&&(ce=ce.join("_")),Array.isArray(Z)&&ce&&(ce="".concat(Z.join("."),".").concat(ce));var $e=ce&&"form-".concat((ue=q.formKey)!==null&&ue!==void 0?ue:"","-field-").concat(ce);return $e},[Yz(K==null?void 0:K.name),Z,q.formKey]),ee=Dl(function(){var ue;T||M?W([]):N.renderFormItem&&R([]);for(var ce=arguments.length,$e=new Array(ce),se=0;se0?te.map(function(oe,de){var pe=le==null?void 0:le[de],we=(pe==null?void 0:pe["data-item"])||{};return A(A({},we),oe)}):[]},J=function ee(te){return te.map(function(le,oe){var de,pe=le,we=pe.className,fe=pe.optionType,ge=ut(pe,Nct),ue=le[F],ce=le[R],$e=(de=le[V])!==null&&de!==void 0?de:[];return fe==="optGroup"||le.options?A(A({label:ue},ge),{},{data_title:ue,title:ue,key:ce??"".concat(ue==null?void 0:ue.toString(),"-").concat(oe,"-").concat(US()),children:ee($e)}):A(A({title:ue},ge),{},{data_title:ue,value:ce??oe,key:ce??"".concat(ue==null?void 0:ue.toString(),"-").concat(oe,"-").concat(US()),"data-item":le,className:"".concat(K,"-option ").concat(we||"").trim(),label:(r==null?void 0:r(le))||ue})})};return P.jsx(Uc,A(A({ref:G,className:Y,allowClear:!0,autoClearSearchValue:u,disabled:C,mode:i,showSearch:M,searchValue:q,optionFilterProp:w,optionLabelProp:y,onClear:function(){E==null||E(),k(void 0),M&&Q(void 0)}},N),{},{filterOption:N.filterOption==!1?!1:function(ee,te){var le,oe,de;return N.filterOption&&typeof N.filterOption=="function"?N.filterOption(ee,A(A({},te),{},{label:te==null?void 0:te.data_title})):!!(te!=null&&(le=te.data_title)!==null&&le!==void 0&&le.toString().toLowerCase().includes(ee.toLowerCase())||te!=null&&(oe=te.label)!==null&&oe!==void 0&&oe.toString().toLowerCase().includes(ee.toLowerCase())||te!=null&&(de=te.value)!==null&&de!==void 0&&de.toString().toLowerCase().includes(ee.toLowerCase()))},onSearch:M?function(ee){h&&k(ee),a==null||a(ee),Q(ee)}:void 0,onChange:function(te,le){M&&u&&(k(void 0),a==null||a(""),Q(void 0));for(var oe=arguments.length,de=new Array(oe>2?oe-2:0),pe=2;pe-1&&e%1==0&&e-1&&e%1==0&&e<=Uut}var x5=qut,Gut=em,Kut=x5,Yut=Zl,Xut="[object Arguments]",Qut="[object Array]",Jut="[object Boolean]",Zut="[object Date]",edt="[object Error]",tdt="[object Function]",ndt="[object Map]",rdt="[object Number]",idt="[object Object]",adt="[object RegExp]",odt="[object Set]",sdt="[object String]",ldt="[object WeakMap]",cdt="[object ArrayBuffer]",udt="[object DataView]",ddt="[object Float32Array]",fdt="[object Float64Array]",mdt="[object Int8Array]",pdt="[object Int16Array]",vdt="[object Int32Array]",hdt="[object Uint8Array]",gdt="[object Uint8ClampedArray]",bdt="[object Uint16Array]",ydt="[object Uint32Array]",$r={};$r[ddt]=$r[fdt]=$r[mdt]=$r[pdt]=$r[vdt]=$r[hdt]=$r[gdt]=$r[bdt]=$r[ydt]=!0;$r[Xut]=$r[Qut]=$r[cdt]=$r[Jut]=$r[udt]=$r[Zut]=$r[edt]=$r[tdt]=$r[ndt]=$r[rdt]=$r[idt]=$r[adt]=$r[odt]=$r[sdt]=$r[ldt]=!1;function wdt(e){return Yut(e)&&Kut(e.length)&&!!$r[Gut(e)]}var xdt=wdt;function Sdt(e){return function(t){return e(t)}}var S5=Sdt,YS={exports:{}};YS.exports;(function(e,t){var n=Boe,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(YS,YS.exports);var C5=YS.exports,Cdt=xdt,kdt=S5,vH=C5,hH=vH&&vH.isTypedArray,_dt=hH?kdt(hH):Cdt,k5=_dt,$dt=Out,Edt=y5,Pdt=Mo,Tdt=__,Odt=w5,Idt=k5,Rdt=Object.prototype,Mdt=Rdt.hasOwnProperty;function Ndt(e,t){var n=Pdt(e),r=!n&&Edt(e),i=!n&&!r&&Tdt(e),a=!n&&!r&&!i&&Idt(e),o=n||r||i||a,s=o?$dt(e.length,String):[],l=s.length;for(var u in e)(t||Mdt.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Odt(u,l)))&&s.push(u);return s}var Woe=Ndt,Ddt=Object.prototype;function jdt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ddt;return e===n}var _5=jdt;function Fdt(e,t){return function(n){return e(t(n))}}var Uoe=Fdt,Adt=Uoe,Ldt=Adt(Object.keys,Object),Bdt=Ldt,zdt=_5,Hdt=Bdt,Vdt=Object.prototype,Wdt=Vdt.hasOwnProperty;function Udt(e){if(!zdt(e))return Hdt(e);var t=[];for(var n in Object(e))Wdt.call(e,n)&&n!="constructor"&&t.push(n);return t}var qdt=Udt;function Gdt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ys=Gdt,Kdt=em,Ydt=ys,Xdt="[object AsyncFunction]",Qdt="[object Function]",Jdt="[object GeneratorFunction]",Zdt="[object Proxy]";function eft(e){if(!Ydt(e))return!1;var t=Kdt(e);return t==Qdt||t==Jdt||t==Xdt||t==Zdt}var $5=eft,tft=$5,nft=x5;function rft(e){return e!=null&&nft(e.length)&&!tft(e)}var Hv=rft,ift=Woe,aft=qdt,oft=Hv;function sft(e){return oft(e)?ift(e):aft(e)}var nb=sft,lft=Hoe,cft=nb;function uft(e,t){return e&&lft(e,t,cft)}var qoe=uft;function dft(e){return e}var $_=dft,fft=$_;function mft(e){return typeof e=="function"?e:fft}var Goe=mft,pft=qoe,vft=Goe;function hft(e,t){return e&&pft(e,vft(t))}var E5=hft,gft=Uoe,bft=gft(Object.getPrototypeOf,Object),P5=bft,yft=em,wft=P5,xft=Zl,Sft="[object Object]",Cft=Function.prototype,kft=Object.prototype,Koe=Cft.toString,_ft=kft.hasOwnProperty,$ft=Koe.call(Object);function Eft(e){if(!xft(e)||yft(e)!=Sft)return!1;var t=wft(e);if(t===null)return!0;var n=_ft.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Koe.call(n)==$ft}var Yoe=Eft;function Pft(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}var Wft=Vft,Uft=E_;function qft(e,t){var n=this.__data__,r=Uft(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Gft=qft,Kft=Oft,Yft=Aft,Xft=zft,Qft=Wft,Jft=Gft;function Vv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,m=!0,p=n&uvt?new ovt:void 0;for(a.set(e,t),a.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,Z0t.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,Q0t.default)(r)?(0,Y0t.default)(r,function(i,a){i===!0&&n.push(a),n.push(a+"-"+i)}):(0,G0t.default)(r)&&n.push(r)}),n};eb.default=e1t;var ib={};function t1t(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,vwt.default)(t.default)||{};return n.map(function(i){var a=t[i];return a&&(0,mwt.default)(a,function(o,s){r[s]||(r[s]={}),r[s]=hwt({},r[s],a[s])}),i}),r};ib.default=gwt;var sb={};Object.defineProperty(sb,"__esModule",{value:!0});sb.autoprefix=void 0;var bwt=E5,XH=wwt(bwt),ywt=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Ewt(i,r);function i(){var a,o,s,l;$wt(this,i);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Mwt(i,r);function i(){var a,o,s,l;Rwt(this,i);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[o]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};j5.default=Dwt;Object.defineProperty(Yo,"__esModule",{value:!0});Yo.ReactCSS=Yo.loop=Yo.handleActive=Yo.handleHover=Yo.hover=void 0;var jwt=eb,Fwt=Kv(jwt),Awt=ib,Lwt=Kv(Awt),Bwt=sb,zwt=Kv(Bwt),Hwt=lb,$se=Kv(Hwt),Vwt=cb,Wwt=Kv(Vwt),Uwt=j5,qwt=Kv(Uwt);function Kv(e){return e&&e.__esModule?e:{default:e}}Yo.hover=$se.default;Yo.handleHover=$se.default;Yo.handleActive=Wwt.default;Yo.loop=qwt.default;var Gwt=Yo.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i0){if(++t>=Axt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Hxt=zxt,Vxt=Fxt,Wxt=Hxt,Uxt=Wxt(Vxt),qxt=Uxt,Gxt=$_,Kxt=Ixt,Yxt=qxt;function Xxt(e,t){return Yxt(Kxt(e,t,Gxt),e+"")}var Qxt=Xxt,Jxt=rb,Zxt=Hv,eSt=w5,tSt=ys;function nSt(e,t,n){if(!tSt(n))return!1;var r=typeof t;return(r=="number"?Zxt(n)&&eSt(t,n.length):r=="string"&&t in n)?Jxt(n[t],e):!1}var rSt=nSt,iSt=Qxt,aSt=rSt;function oSt(e){return iSt(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&aSt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++rs?m=1:m=Math.round(f*100/s)/100,n.a!==m)return{h:n.h,s:n.s,l:n.l,a:m,source:"rgb"}}else{var p;if(d<0?p=0:d>o?p=1:p=Math.round(d*100/o)/100,i!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},r4={},pSt=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=r*2,a.height=r*2;var o=a.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,a.width,a.height),o.fillStyle=n,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),a.toDataURL()):null},vSt=function(t,n,r,i){var a="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(r4[a])return r4[a];var o=pSt(t,n,r,i);return r4[a]=o,o};function F0(e){"@babel/helpers - typeof";return F0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F0(e)}function aV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function By(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function JS(e){return JS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},JS(e)}var OSt=function(e){_St(n,e);var t=$St(n);function n(){var r;xSt(this,n);for(var i=arguments.length,a=new Array(i),o=0;oo)f=0;else{var m=-(d*100/o)+100;f=360*m/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var p;if(u<0)p=0;else if(u>a)p=359;else{var v=u*100/a;p=360*v/100}if(r.h!==p)return{h:p,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function ev(e){"@babel/helpers - typeof";return ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ev(e)}function RSt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MSt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ZS(e){return ZS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ZS(e)}var HSt=function(e){FSt(n,e);var t=ASt(n);function n(){var r;RSt(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=t||k<0||f&&_>=a}function w(){var S=i4();if(g(S))return b(S);s=setTimeout(w,h(S))}function b(S){return s=void 0,m&&r?p(S):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function x(){return s===void 0?o:b(i4())}function C(){var S=i4(),k=g(S);if(r=arguments,i=this,l=S,k){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(w,t),p(l)}return s===void 0&&(s=setTimeout(w,t)),o}return C.cancel=y,C.flush=x,C}var Ise=dCt;const fCt=qn(Ise);var mCt=Ise,pCt=ys,vCt="Expected a function";function hCt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(vCt);return pCt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),mCt(e,t,{leading:r,maxWait:t,trailing:i})}var gCt=hCt;const bCt=qn(gCt);var yCt=function(t,n,r){var i=r.getBoundingClientRect(),a=i.width,o=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=s-(r.getBoundingClientRect().left+window.pageXOffset),d=l-(r.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>a&&(u=a),d<0?d=0:d>o&&(d=o);var f=u/a,m=1-d/o;return{h:n.h,s:f,v:m,a:n.a,source:"hsv"}};function tv(e){"@babel/helpers - typeof";return tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tv(e)}function wCt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xCt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function eC(e){return eC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eC(e)}var OCt=function(e){_Ct(n,e);var t=$Ct(n);function n(r){var i;return wCt(this,n),i=t.call(this,r),i.handleChange=function(a){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,yCt(a,i.props.hsl,i.container),a)},i.handleMouseDown=function(a){i.handleChange(a);var o=i.getContainerRenderWindow();o.addEventListener("mousemove",i.handleChange),o.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=bCt(function(a,o,s){a(o,s)},50),i}return SCt(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var i=this.container,a=window;!a.document.contains(i)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var i=this.getContainerRenderWindow();i.removeEventListener("mousemove",this.handleChange),i.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,a=this.props.style||{},o=a.color,s=a.white,l=a.black,u=a.pointer,d=a.circle,f=dd({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), + 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:s,black:l,pointer:u,circle:d}},{custom:!!this.props.style});return L.createElement("div",{style:f.color,ref:function(p){return i.container=p},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},L.createElement("style",null,` + .saturation-white { + background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); + background: linear-gradient(to right, #fff, rgba(255,255,255,0)); + } + .saturation-black { + background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); + background: linear-gradient(to top, #000, rgba(0,0,0,0)); + } + `),L.createElement("div",{style:f.white,className:"saturation-white"},L.createElement("div",{style:f.black,className:"saturation-black"}),L.createElement("div",{style:f.pointer},this.props.pointer?L.createElement(this.props.pointer,this.props):L.createElement("div",{style:f.circle}))))}}]),n}(c.PureComponent||c.Component),ICt=pse,RCt=mse,MCt=Goe,NCt=Mo;function DCt(e,t){var n=NCt(e)?ICt:RCt;return n(e,MCt(t))}var jCt=DCt,FCt=jCt;const ACt=qn(FCt);function tC(e){"@babel/helpers - typeof";return tC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tC(e)}var LCt=/^\s+/,BCt=/\s+$/;function Zt(e,t){if(e=e||"",t=t||{},e instanceof Zt)return e;if(!(this instanceof Zt))return new Zt(e,t);var n=zCt(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Zt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=Rse(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=dV(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=dV(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=uV(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=uV(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return fV(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return UCt(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Mr(this._r,255)*100)+"%",g:Math.round(Mr(this._g,255)*100)+"%",b:Math.round(Mr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Mr(this._r,255)*100)+"%, "+Math.round(Mr(this._g,255)*100)+"%, "+Math.round(Mr(this._b,255)*100)+"%)":"rgba("+Math.round(Mr(this._r,255)*100)+"%, "+Math.round(Mr(this._g,255)*100)+"%, "+Math.round(Mr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:r2t[fV(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+mV(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=Zt(t);r="#"+mV(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Zt(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(YCt,arguments)},brighten:function(){return this._applyModification(XCt,arguments)},darken:function(){return this._applyModification(QCt,arguments)},desaturate:function(){return this._applyModification(qCt,arguments)},saturate:function(){return this._applyModification(GCt,arguments)},greyscale:function(){return this._applyModification(KCt,arguments)},spin:function(){return this._applyModification(JCt,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(t2t,arguments)},complement:function(){return this._applyCombination(ZCt,arguments)},monochromatic:function(){return this._applyCombination(n2t,arguments)},splitcomplement:function(){return this._applyCombination(e2t,arguments)},triad:function(){return this._applyCombination(pV,[3])},tetrad:function(){return this._applyCombination(pV,[4])}};Zt.fromRatio=function(e,t){if(tC(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=ng(e[r]));e=n}return Zt(e,t)};function zCt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=s2t(e)),tC(e)=="object"&&(ac(e.r)&&ac(e.g)&&ac(e.b)?(t=HCt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ac(e.h)&&ac(e.s)&&ac(e.v)?(r=ng(e.s),i=ng(e.v),t=WCt(e.h,r,i),o=!0,s="hsv"):ac(e.h)&&ac(e.s)&&ac(e.l)&&(r=ng(e.s),a=ng(e.l),t=VCt(e.h,r,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Rse(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function HCt(e,t,n){return{r:Mr(e,255)*255,g:Mr(t,255)*255,b:Mr(n,255)*255}}function uV(e,t,n){e=Mr(e,255),t=Mr(t,255),n=Mr(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function dV(e,t,n){e=Mr(e,255),t=Mr(t,255),n=Mr(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,l=r-i;if(o=r===0?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(Zt(r));return a}function n2t(e,t){t=t||6;for(var n=Zt(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(Zt({h:r,s:i,v:a})),a=(a+s)%1;return o}Zt.mix=function(e,t,n){n=n===0?0:n||50;var r=Zt(e).toRgb(),i=Zt(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return Zt(o)};Zt.readability=function(e,t){var n=Zt(e),r=Zt(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Zt.isReadable=function(e,t,n){var r=Zt.readability(e,t),i,a;switch(a=!1,i=l2t(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};Zt.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,l;n=n||{},o=n.includeFallbackColors,s=n.level,l=n.size;for(var u=0;ui&&(i=a,r=Zt(t[u]));return Zt.isReadable(e,r,{level:s,size:l})||!o?r:(n.includeFallbackColors=!1,Zt.mostReadable(e,["#fff","#000"],n))};var $O=Zt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},r2t=Zt.hexNames=i2t($O);function i2t(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Rse(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Mr(e,t){a2t(e)&&(e="100%");var n=o2t(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function F_(e){return Math.min(1,Math.max(0,e))}function ro(e){return parseInt(e,16)}function a2t(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function o2t(e){return typeof e=="string"&&e.indexOf("%")!=-1}function js(e){return e.length==1?"0"+e:""+e}function ng(e){return e<=1&&(e=e*100+"%"),e}function Mse(e){return Math.round(parseFloat(e)*255).toString(16)}function vV(e){return ro(e)/255}var Ss=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ac(e){return!!Ss.CSS_UNIT.exec(e)}function s2t(e){e=e.replace(LCt,"").replace(BCt,"").toLowerCase();var t=!1;if($O[e])e=$O[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ss.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ss.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ss.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ss.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ss.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ss.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ss.hex8.exec(e))?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),a:vV(n[4]),format:t?"name":"hex8"}:(n=Ss.hex6.exec(e))?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),format:t?"name":"hex"}:(n=Ss.hex4.exec(e))?{r:ro(n[1]+""+n[1]),g:ro(n[2]+""+n[2]),b:ro(n[3]+""+n[3]),a:vV(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ss.hex3.exec(e))?{r:ro(n[1]+""+n[1]),g:ro(n[2]+""+n[2]),b:ro(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function l2t(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var hV=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return ACt(n,function(a){if(t[a]&&(r+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var o=/^\d+%$/;o.test(t[a])&&(i+=1)}}),r===i?t:!1},zy=function(t,n){var r=t.hex?Zt(t.hex):Zt(t),i=r.toHsl(),a=r.toHsv(),o=r.toRgb(),s=r.toHex();i.s===0&&(i.h=n||0,a.h=n||0);var l=s==="000000"&&o.a===0;return{hsl:i,hex:l?"transparent":"#".concat(s),rgb:o,hsv:a,oldHue:t.h||n||i.h,source:t.source}},c2t=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Zt(t).isValid()};function nv(e){"@babel/helpers - typeof";return nv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nv(e)}function EO(){return EO=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nC(e){return nC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nC(e)}var y2t=function(t){var n=function(r){p2t(a,r);var i=v2t(a);function a(o){var s;return d2t(this,a),s=i.call(this),s.handleChange=function(l,u){var d=hV(l);if(d){var f=zy(l,l.h||s.state.oldHue);s.setState(f),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,f,u),s.props.onChange&&s.props.onChange(f,u)}},s.handleSwatchHover=function(l,u){var d=hV(l);if(d){var f=zy(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(f,u)}},s.state=Dh({},zy(o.color,0)),s.debounce=fCt(function(l,u,d){l(u,d)},100),s}return f2t(a,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),L.createElement(t,EO({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return Dh({},zy(s.color,l.oldHue))}}]),a}(c.PureComponent||c.Component);return n.propTypes=Dh({},t.propTypes),n.defaultProps=Dh(Dh({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function rv(e){"@babel/helpers - typeof";return rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rv(e)}function w2t(e,t,n){return t=Dse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x2t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S2t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rC(e){return rC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rC(e)}var O2t=1,jse=38,I2t=40,R2t=[jse,I2t],M2t=function(t){return R2t.indexOf(t)>-1},N2t=function(t){return Number(String(t).replace(/%/g,""))},D2t=1,jh=function(e){_2t(n,e);var t=$2t(n);function n(r){var i;return x2t(this,n),i=t.call(this),i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(a){i.setUpdatedValue(a.target.value,a)},i.handleKeyDown=function(a){var o=N2t(a.target.value);if(!isNaN(o)&&M2t(a.keyCode)){var s=i.getArrowOffset(),l=a.keyCode===jse?o+s:o-s;i.setUpdatedValue(l,a)}},i.handleDrag=function(a){if(i.props.dragLabel){var o=Math.round(i.props.value+a.movementX);o>=0&&o<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(o),a)}},i.handleMouseDown=function(a){i.props.dragLabel&&(a.preventDefault(),i.handleDrag(a),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},i.inputId="rc-editable-input-".concat(D2t++),i}return C2t(n,[{key:"componentDidUpdate",value:function(i,a){this.props.value!==this.state.value&&(i.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(i){return w2t({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||O2t}},{key:"setUpdatedValue",value:function(i,a){var o=this.props.label?this.getValueObjectWithLabel(i):i;this.props.onChange&&this.props.onChange(o,a),this.setState({value:i})}},{key:"render",value:function(){var i=this,a=dd({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return L.createElement("div",{style:a.wrap},L.createElement("input",{id:this.inputId,style:a.input,ref:function(s){return i.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?L.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(c.PureComponent||c.Component);function iv(e){"@babel/helpers - typeof";return iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iv(e)}function OO(){return OO=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function iC(e){return iC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},iC(e)}var q2t=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){z2t(a,r);var i=H2t(a);function a(){var o;j2t(this,a);for(var s=arguments.length,l=new Array(s),u=0;u100&&(d.a=100),d.a/=100,n==null||n({h:i==null?void 0:i.h,s:i==null?void 0:i.s,l:i==null?void 0:i.l,a:d.a,source:"rgb"},f))};return L.createElement("div",{style:s.fields,className:"flexbox-fix"},L.createElement("div",{style:s.double},L.createElement(jh,{style:{input:s.input,label:s.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:l})),L.createElement("div",{style:s.single},L.createElement(jh,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),L.createElement("div",{style:s.single},L.createElement(jh,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),L.createElement("div",{style:s.single},L.createElement(jh,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),L.createElement("div",{style:s.alpha},L.createElement(jh,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function L0(e){"@babel/helpers - typeof";return L0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L0(e)}function xV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SV(e){for(var t=1;t-1}function mkt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&Ase()?aN:dkt}var pkt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.old,u=c.useContext(Jt.ConfigContext),d=u.getPrefixCls,f=L.useMemo(function(){return mkt(l)},[l]),m=d("pro-field-color-picker"),p=c.useMemo(function(){return l?"":ne(U({},m,Ase()))},[m,l]);if(i==="read"){var v=P.jsx(f,{value:r,mode:"read",ref:n,className:p,open:!1});return a?a(r,A({mode:i},s),v):v}if(i==="edit"||i==="update"){var h=A({display:"table-cell"},s.style),g=P.jsx(f,A(A({ref:n,presets:[fkt]},s),{},{style:h,className:p}));return o?o(r,A(A({mode:i},s),{},{style:h}),g):g}return null};const vkt=L.forwardRef(pkt);fn.extend(DM);var hkt=function(t,n){return t?typeof n=="function"?n(fn(t)):fn(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},gkt=function(t,n){var r=t.text,i=t.mode,a=t.format,o=t.label,s=t.light,l=t.render,u=t.renderFormItem,d=t.plain,f=t.showTime,m=t.fieldProps,p=t.picker,v=t.bordered,h=t.lightLabel,g=zr(),w=c.useState(!1),b=ie(w,2),y=b[0],x=b[1];if(i==="read"){var C=hkt(r,m.format||a);return l?l(r,A({mode:i},m),P.jsx(P.Fragment,{children:C})):P.jsx(P.Fragment,{children:C})}if(i==="edit"||i==="update"){var S,k=m.disabled,_=m.value,$=m.placeholder,E=$===void 0?g.getMessage("tableForm.selectPlaceholder","请选择"):$,T=J1(_);return s?S=P.jsx(Yc,{label:o,onClick:function(){var j;m==null||(j=m.onOpenChange)===null||j===void 0||j.call(m,!0),x(!0)},style:T?{paddingInlineEnd:0}:void 0,disabled:k,value:T||y?P.jsx(as,A(A(A({picker:p,showTime:f,format:a,ref:n},m),{},{value:T,onOpenChange:function(j){var I;x(j),m==null||(I=m.onOpenChange)===null||I===void 0||I.call(m,j)}},$o(!1)),{},{open:y})):void 0,allowClear:!1,downIcon:T||y?!1:void 0,bordered:v,ref:h}):S=P.jsx(as,A(A(A({picker:p,showTime:f,format:a,placeholder:E},$o(d===void 0?!0:!d)),{},{ref:n},m),{},{value:T})),u?u(r,A({mode:i},m),S):S}return null};const wm=L.forwardRef(gkt);var bkt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,u=zr(),d=o||u.getMessage("tableForm.inputPlaceholder","请输入"),f=c.useCallback(function(w){var b=w??void 0;return!l.stringMode&&typeof b=="string"&&(b=Number(b)),typeof b=="number"&&!Pf(b)&&!Pf(l.precision)&&(b=Number(b.toFixed(l.precision))),b},[l]);if(i==="read"){var m,p={};l!=null&&l.precision&&(p={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var v=new Intl.NumberFormat(void 0,A(A({},p),(l==null?void 0:l.intlProps)||{})).format(Number(r)),h=l!=null&&l.stringMode?P.jsx("span",{children:r}):P.jsx("span",{ref:n,children:(l==null||(m=l.formatter)===null||m===void 0?void 0:m.call(l,v))||v});return a?a(r,A({mode:i},l),h):h}if(i==="edit"||i==="update"){var g=P.jsx(jc,A(A({ref:n,min:0,placeholder:d},nl(l,["onChange","onBlur"])),{},{onChange:function(b){var y;return l==null||(y=l.onChange)===null||y===void 0?void 0:y.call(l,f(b))},onBlur:function(b){var y;return l==null||(y=l.onBlur)===null||y===void 0?void 0:y.call(l,f(b.target.value))}}));return s?s(r,A({mode:i},l),g):g}return null};const ykt=L.forwardRef(bkt);var wkt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.placeholder,s=t.renderFormItem,l=t.fieldProps,u=t.separator,d=u===void 0?"~":u,f=t.separatorWidth,m=f===void 0?30:f,p=l.value,v=l.defaultValue,h=l.onChange,g=l.id,w=zr(),b=Wl.useToken(),y=b.token,x=Ut(function(){return v},{value:p,onChange:h}),C=ie(x,2),S=C[0],k=C[1];if(i==="read"){var _=function(F){var z,R=new Intl.NumberFormat(void 0,A({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(F));return(l==null||(z=l.formatter)===null||z===void 0?void 0:z.call(l,R))||R},$=P.jsxs("span",{ref:n,children:[_(r[0])," ",d," ",_(r[1])]});return a?a(r,A({mode:i},l),$):$}if(i==="edit"||i==="update"){var E=function(){if(Array.isArray(S)){var F=ie(S,2),z=F[0],R=F[1];typeof z=="number"&&typeof R=="number"&&z>R?k([R,z]):z===void 0&&R===void 0&&k(void 0)}},T=function(F,z){var R=Fe(S||[]);R[F]=z===null?void 0:z,k(R)},M=(l==null?void 0:l.placeholder)||o||[w.getMessage("tableForm.inputPlaceholder","请输入"),w.getMessage("tableForm.inputPlaceholder","请输入")],j=function(F){return Array.isArray(M)?M[F]:M},I=zl.Compact||vi.Group,N=zl.Compact?{}:{compact:!0},O=P.jsxs(I,A(A({},N),{},{onBlur:E,children:[P.jsx(jc,A(A({},l),{},{placeholder:j(0),id:g??"".concat(g,"-0"),style:{width:"calc((100% - ".concat(m,"px) / 2)")},value:S==null?void 0:S[0],defaultValue:v==null?void 0:v[0],onChange:function(F){return T(0,F)}})),P.jsx(vi,{style:{width:m,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:y==null?void 0:y.colorBgContainer},placeholder:d,disabled:!0}),P.jsx(jc,A(A({},l),{},{placeholder:j(1),id:g??"".concat(g,"-1"),style:{width:"calc((100% - ".concat(m,"px) / 2)"),borderInlineStart:0},value:S==null?void 0:S[1],defaultValue:v==null?void 0:v[1],onChange:function(F){return T(1,F)}}))]}));return s?s(r,A({mode:i},l),O):O}return null};const xkt=L.forwardRef(wkt);var Lse={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yi,function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,d,f,m){return a.fromToBase(u,d,f,m)}i.en.relativeTime=o,a.fromToBase=function(u,d,f,m,p){for(var v,h,g,w=f.$locale().relativeTime||o,b=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],y=b.length,x=0;x0,S<=C.r||!C.r){S<=1&&x>0&&(C=b[x-1]);var k=w[C.l];p&&(S=p(""+S)),h=typeof k=="string"?k.replace("%d",S):k(S,d,C.l,g);break}}if(d)return h;var _=g?w.future:w.past;return typeof _=="function"?_(h):_.replace("%s",h)},a.to=function(u,d){return s(u,d,this,!0)},a.from=function(u,d){return s(u,d,this)};var l=function(u){return u.$u?i.utc():i()};a.toNow=function(u){return this.to(l(this),u)},a.fromNow=function(u){return this.from(l(this),u)}}})})(Lse);var Skt=Lse.exports;const Ckt=qn(Skt);fn.extend(Ckt);var kkt=function(t,n){var r=t.text,i=t.mode,a=t.plain,o=t.render,s=t.renderFormItem,l=t.format,u=t.fieldProps,d=zr();if(i==="read"){var f=P.jsx(sa,{title:fn(r).format((u==null?void 0:u.format)||l||"YYYY-MM-DD HH:mm:ss"),children:fn(r).fromNow()});return o?o(r,A({mode:i},u),P.jsx(P.Fragment,{children:f})):P.jsx(P.Fragment,{children:f})}if(i==="edit"||i==="update"){var m=d.getMessage("tableForm.selectPlaceholder","请选择"),p=J1(u.value),v=P.jsx(as,A(A(A({ref:n,placeholder:m,showTime:!0},$o(a===void 0?!0:!a)),u),{},{value:p}));return s?s(r,A({mode:i},u),v):v}return null};const _kt=L.forwardRef(kkt);var Bse=L.forwardRef(function(e,t){var n=e.text,r=e.mode,i=e.render,a=e.renderFormItem,o=e.fieldProps,s=e.placeholder,l=e.width,u=zr(),d=s||u.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=P.jsx(Fte,A({ref:t,width:l||32,src:n},o));return i?i(n,A({mode:r},o),f):f}if(r==="edit"||r==="update"){var m=P.jsx(vi,A({ref:t,placeholder:d},o));return a?a(n,A({mode:r},o),m):m}return null}),$kt=function(t,n){var r=t.border,i=r===void 0?!1:r,a=t.children,o=c.useContext(Jt.ConfigContext),s=o.getPrefixCls,l=s("pro-field-index-column"),u=ka("IndexColumn",function(){return U({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),d=u.wrapSSR,f=u.hashId;return d(P.jsx("div",{ref:n,className:ne(l,f,U(U({},"".concat(l,"-border"),i),"top-three",a>3)),children:a}))};const kV=L.forwardRef($kt);var Ekt=["contentRender","numberFormatOptions","numberPopoverRender","open"],Pkt=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],zse=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Tkt={style:"currency",currency:"USD"},Okt={style:"currency",currency:"RUB"},Ikt={style:"currency",currency:"RSD"},Rkt={style:"currency",currency:"MYR"},Mkt={style:"currency",currency:"BRL"},Nkt={default:zse,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":Tkt,"ru-RU":Okt,"ms-MY":Rkt,"sr-RS":Ikt,"pt-BR":Mkt},_V=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",o=n==null?void 0:n.toString().replaceAll(",","");if(typeof o=="string"){var s=Number(o);if(Number.isNaN(s))return o;o=s}if(!o&&o!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var u=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",A(A({},Nkt[t||"zh-Hans-CN"]||zse),{},{maximumFractionDigits:r},i)),d=u.format(o),f=function(w){var b=w.match(/\d+/);if(b){var y=b[0];return w.slice(w.indexOf(y))}else return w},m=f(d),p=d||"",v=ie(p,1),h=v[0];return["+","-"].includes(h)?"".concat(a||"").concat(h).concat(m):"".concat(a||"").concat(m)}catch{return o}},a4=2,Dkt=L.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=ut(e,Ekt),a=Ut(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),o=ie(a,2),s=o[0],l=o[1],u=n==null?void 0:n(A(A({},i),{},{value:s})),d=uoe(u?r:!1);return P.jsx(Lf,A(A({placement:"topLeft"},d),{},{trigger:["focus","click"],content:u,getPopupContainer:function(m){return(m==null?void 0:m.parentElement)||document.body},children:P.jsx(jc,A(A({ref:t},i),{},{value:s,onChange:l}))}))}),jkt=function(t,n){var r,i=t.text,a=t.mode,o=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var u=t.placeholder,d=t.locale,f=t.customSymbol,m=f===void 0?l.customSymbol:f,p=t.numberFormatOptions,v=p===void 0?l==null?void 0:l.numberFormatOptions:p,h=t.numberPopoverRender,g=h===void 0?(l==null?void 0:l.numberPopoverRender)||!1:h,w=ut(t,Pkt),b=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:a4,y=zr();d&&Ef[d]&&(y=Ef[d]);var x=u||y.getMessage("tableForm.inputPlaceholder","请输入"),C=c.useMemo(function(){if(m)return m;if(!(w.moneySymbol===!1||l.moneySymbol===!1))return y.getMessage("moneySymbol","¥")},[m,l.moneySymbol,y,w.moneySymbol]),S=c.useCallback(function($){var E=new RegExp("\\B(?=(\\d{".concat(3+Math.max(b-a4,0),"})+(?!\\d))"),"g"),T=String($).split("."),M=ie(T,2),j=M[0],I=M[1],N=j.replace(E,","),O="";return I&&b>0&&(O=".".concat(I.slice(0,b===void 0?a4:b))),"".concat(N).concat(O)},[b]);if(a==="read"){var k=P.jsx("span",{ref:n,children:_V(d||!1,i,b,v??l.numberFormatOptions,C)});return o?o(i,A({mode:a},l),k):k}if(a==="edit"||a==="update"){var _=P.jsx(Dkt,A(A({contentRender:function(E){if(g===!1||!E.value)return null;var T=_V(C||d||!1,"".concat(S(E.value)),b,A(A({},v),{},{notation:"compact"}),C);return typeof g=="function"?g==null?void 0:g(E,T):T},ref:n,precision:b,formatter:function(E){return E&&C?"".concat(C," ").concat(S(E)):E==null?void 0:E.toString()},parser:function(E){return C&&E?E.replace(new RegExp("\\".concat(C,"\\s?|(,*)"),"g"),""):E},placeholder:x},nl(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function($){var E,T=$.target.value;C&&T&&(T=T.replace(new RegExp("\\".concat(C,"\\s?|(,*)"),"g"),"")),(E=l.onBlur)===null||E===void 0||E.call(l,T)}:void 0}));return s?s(i,A({mode:a},l),_):_}return null};const Hse=L.forwardRef(jkt);var $V=function(t){return t.map(function(n,r){var i;return L.isValidElement(n)?L.cloneElement(n,A(A({key:r},n==null?void 0:n.props),{},{style:A({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):P.jsx(L.Fragment,{children:n},r)})},Fkt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.fieldProps,s=c.useContext(Jt.ConfigContext),l=s.getPrefixCls,u=l("pro-field-option"),d=Wl.useToken(),f=d.token;if(c.useImperativeHandle(n,function(){return{}}),a){var m=a(r,A({mode:i},o),P.jsx(P.Fragment,{}));return!m||(m==null?void 0:m.length)<1||!Array.isArray(m)?null:P.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:$V(m)})}return!r||!Array.isArray(r)?L.isValidElement(r)?r:null:P.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:$V(r)})};const Akt=L.forwardRef(Fkt);var Lkt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],Bkt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=ut(t,Lkt),u=zr(),d=Ut(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),f=ie(d,2),m=f[0],p=f[1];if(i==="read"){var v=P.jsx(P.Fragment,{children:"-"});return r&&(v=P.jsxs(zl,{children:[P.jsx("span",{ref:n,children:m?r:"********"}),P.jsx("a",{onClick:function(){return p(!m)},children:m?P.jsx(Gk,{}):P.jsx(Xee,{})})]})),a?a(r,A({mode:i},s),v):v}if(i==="edit"||i==="update"){var h=P.jsx(vi.Password,A({placeholder:u.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return o?o(r,A({mode:i},s),h):h}return null};const zkt=L.forwardRef(Bkt);var Hkt=/\s/;function Vkt(e){for(var t=e.length;t--&&Hkt.test(e.charAt(t)););return t}var Wkt=/^\s+/;function Ukt(e){return e&&e.slice(0,Vkt(e)+1).replace(Wkt,"")}var qkt="[object Symbol]";function A_(e){return typeof e=="symbol"||ud(e)&&Xf(e)==qkt}var EV=NaN,Gkt=/^[-+]0x[0-9a-f]+$/i,Kkt=/^0b[01]+$/i,Ykt=/^0o[0-7]+$/i,Xkt=parseInt;function aC(e){if(typeof e=="number")return e;if(A_(e))return EV;if(ql(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ql(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ukt(e);var n=Kkt.test(e);return n||Ykt.test(e)?Xkt(e.slice(2),n?2:8):Gkt.test(e)?EV:+e}function Qkt(e){return e===0?null:e>0?"+":"-"}function Jkt(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function Zkt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var e_t=function(t,n){var r=t.text,i=t.prefix,a=t.precision,o=t.suffix,s=o===void 0?"%":o,l=t.mode,u=t.showColor,d=u===void 0?!1:u,f=t.render,m=t.renderFormItem,p=t.fieldProps,v=t.placeholder,h=t.showSymbol,g=zr(),w=v||g.getMessage("tableForm.inputPlaceholder","请输入"),b=c.useMemo(function(){return typeof r=="string"&&r.includes("%")?aC(r.replace("%","")):aC(r)},[r]),y=c.useMemo(function(){return typeof h=="function"?h==null?void 0:h(r):h},[h,r]);if(l==="read"){var x=d?{color:Jkt(b)}:{},C=P.jsxs("span",{style:x,ref:n,children:[i&&P.jsx("span",{children:i}),y&&P.jsxs(c.Fragment,{children:[Qkt(b)," "]}),Zkt(Math.abs(b),a),s&&s]});return f?f(r,A(A({mode:l},p),{},{prefix:i,precision:a,showSymbol:y,suffix:s}),C):C}if(l==="edit"||l==="update"){var S=P.jsx(jc,A({ref:n,formatter:function(_){return _&&i?"".concat(i," ").concat(_).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):_},parser:function(_){return _?_.replace(/.*\s|,/g,""):""},placeholder:w},p));return m?m(r,A({mode:l},p),S):S}return null};const Vse=L.forwardRef(e_t);function t_t(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var n_t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.plain,s=t.renderFormItem,l=t.fieldProps,u=t.placeholder,d=zr(),f=u||d.getMessage("tableForm.inputPlaceholder","请输入"),m=c.useMemo(function(){return typeof r=="string"&&r.includes("%")?aC(r.replace("%","")):aC(r)},[r]);if(i==="read"){var p=P.jsx(uN,A({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:m,steps:o?10:void 0,status:t_t(m)},l));return a?a(m,A({mode:i},l),p):p}if(i==="edit"||i==="update"){var v=P.jsx(jc,A({ref:n,placeholder:f},l));return s?s(r,A({mode:i},l),v):v}return null};const Wse=L.forwardRef(n_t);var r_t=["radioType","renderFormItem","mode","render"],i_t=function(t,n){var r,i,a=t.radioType,o=t.renderFormItem,s=t.mode,l=t.render,u=ut(t,r_t),d=c.useContext(Jt.ConfigContext),f=d.getPrefixCls,m=f("pro-field-radio"),p=zv(u),v=ie(p,3),h=v[0],g=v[1],w=v[2],b=c.useRef(),y=(r=Lr.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);c.useImperativeHandle(n,function(){return A(A({},b.current||{}),{},{fetchData:function(I){return w(I)}})},[w]);var x=ka("FieldRadioRadio",function(j){return U(U(U({},".".concat(m,"-error"),{span:{color:j.colorError}}),".".concat(m,"-warning"),{span:{color:j.colorWarning}}),".".concat(m,"-vertical"),U({},"".concat(j.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),C=x.wrapSSR,S=x.hashId;if(h)return P.jsx(qc,{size:"small"});if(s==="read"){var k=g!=null&&g.length?g==null?void 0:g.reduce(function(j,I){var N;return A(A({},j),{},U({},(N=I.value)!==null&&N!==void 0?N:"",I.label))},{}):void 0,_=P.jsx(P.Fragment,{children:Av(u.text,Xc(u.valueEnum||k))});if(l){var $;return($=l(u.text,A({mode:s},u.fieldProps),_))!==null&&$!==void 0?$:null}return _}if(s==="edit"){var E,T=C(P.jsx($v.Group,A(A({ref:b,optionType:a},u.fieldProps),{},{className:ne((E=u.fieldProps)===null||E===void 0?void 0:E.className,U(U({},"".concat(m,"-error"),(y==null?void 0:y.status)==="error"),"".concat(m,"-warning"),(y==null?void 0:y.status)==="warning"),S,"".concat(m,"-").concat(u.fieldProps.layout||"horizontal")),options:g})));if(o){var M;return(M=o(u.text,A(A({mode:s},u.fieldProps),{},{options:g,loading:h}),T))!==null&&M!==void 0?M:null}return T}return null};const PV=L.forwardRef(i_t);var a_t=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,u=t.picker,d=t.renderFormItem,f=t.plain,m=t.showTime,p=t.lightLabel,v=t.bordered,h=t.fieldProps,g=zr(),w=Array.isArray(r)?r:[],b=ie(w,2),y=b[0],x=b[1],C=L.useState(!1),S=ie(C,2),k=S[0],_=S[1],$=c.useCallback(function(O){if(typeof(h==null?void 0:h.format)=="function"){var D;return h==null||(D=h.format)===null||D===void 0?void 0:D.call(h,O)}return(h==null?void 0:h.format)||s||"YYYY-MM-DD"},[h,s]),E=y?fn(y).format($(fn(y))):"",T=x?fn(x).format($(fn(x))):"";if(i==="read"){var M=P.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[P.jsx("div",{children:E||"-"}),P.jsx("div",{children:T||"-"})]});return l?l(r,A({mode:i},h),P.jsx("span",{children:M})):M}if(i==="edit"||i==="update"){var j=J1(h.value),I;if(a){var N;I=P.jsx(Yc,{label:o,onClick:function(){var D;h==null||(D=h.onOpenChange)===null||D===void 0||D.call(h,!0),_(!0)},style:j?{paddingInlineEnd:0}:void 0,disabled:h.disabled,value:j||k?P.jsx(as.RangePicker,A(A(A({picker:u,showTime:m,format:s},$o(!1)),h),{},{placeholder:(N=h.placeholder)!==null&&N!==void 0?N:[g.getMessage("tableForm.selectPlaceholder","请选择"),g.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var D;_(!1),h==null||(D=h.onClear)===null||D===void 0||D.call(h)},value:j,onOpenChange:function(D){var F;j&&_(D),h==null||(F=h.onOpenChange)===null||F===void 0||F.call(h,D)}})):null,allowClear:!1,bordered:v,ref:p,downIcon:j||k?!1:void 0})}else I=P.jsx(as.RangePicker,A(A(A({ref:n,format:s,showTime:m,placeholder:[g.getMessage("tableForm.selectPlaceholder","请选择"),g.getMessage("tableForm.selectPlaceholder","请选择")]},$o(f===void 0?!0:!f)),h),{},{value:j}));return d?d(r,A({mode:i},h),I):I}return null};const xm=L.forwardRef(a_t);var o_t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=P.jsx(a6,A(A({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return a?a(r,A({mode:i},s),P.jsx(P.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var u=P.jsx(a6,A({allowHalf:!0,ref:n},s));return o?o(r,A({mode:i},s),u):u}return null};const s_t=L.forwardRef(o_t);function l_t(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var i=Math.floor(t/(3600*24)),a=Math.floor(t/3600%24),o=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),o>0&&(n="".concat(o,"分钟").concat(n)),a>0&&(n="".concat(a,"小时").concat(n)),i>0&&(n="".concat(i,"天").concat(n)),r&&(n+="前"),n}var c_t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.placeholder,u=zr(),d=l||u.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var f=l_t(Number(r)),m=P.jsx("span",{ref:n,children:f});return a?a(r,A({mode:i},s),m):m}if(i==="edit"||i==="update"){var p=P.jsx(jc,A({ref:n,min:0,style:{width:"100%"},placeholder:d},s));return o?o(r,A({mode:i},s),p):p}return null};const u_t=L.forwardRef(c_t);var d_t=["mode","render","renderFormItem","fieldProps","emptyText"],f_t=function(t,n){var r=t.mode,i=t.render,a=t.renderFormItem,o=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,u=ut(t,d_t),d=c.useRef(),f=zv(t),m=ie(f,3),p=m[0],v=m[1],h=m[2];if(c.useImperativeHandle(n,function(){return A(A({},d.current||{}),{},{fetchData:function(C){return h(C)}})},[h]),p)return P.jsx(qc,{size:"small"});if(r==="read"){var g=v!=null&&v.length?v==null?void 0:v.reduce(function(x,C){var S;return A(A({},x),{},U({},(S=C.value)!==null&&S!==void 0?S:"",C.label))},{}):void 0,w=P.jsx(P.Fragment,{children:Av(u.text,Xc(u.valueEnum||g))});if(i){var b;return(b=i(u.text,A({mode:r},o),P.jsx(P.Fragment,{children:w})))!==null&&b!==void 0?b:l}return w}if(r==="edit"||r==="update"){var y=P.jsx(Bee,A(A({ref:d},nl(o||{},["allowClear"])),{},{options:v}));return a?a(u.text,A(A({mode:r},o),{},{options:v,loading:p}),y):y}return null};const m_t=L.forwardRef(f_t);var p_t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=r;return a?a(r,A({mode:i},s),P.jsx(P.Fragment,{children:l})):P.jsx(P.Fragment,{children:l})}if(i==="edit"||i==="update"){var u=P.jsx(tte,A(A({ref:n},s),{},{style:A({minWidth:120},s==null?void 0:s.style)}));return o?o(r,A({mode:i},s),u):u}return null};const v_t=L.forwardRef(p_t);var h_t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.light,s=t.label,l=t.renderFormItem,u=t.fieldProps,d=zr(),f=c.useMemo(function(){var g,w;return r==null||"".concat(r).length<1?"-":r?(g=u==null?void 0:u.checkedChildren)!==null&&g!==void 0?g:d.getMessage("switch.open","打开"):(w=u==null?void 0:u.unCheckedChildren)!==null&&w!==void 0?w:d.getMessage("switch.close","关闭")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,r]);if(i==="read")return a?a(r,A({mode:i},u),P.jsx(P.Fragment,{children:f})):f??"-";if(i==="edit"||i==="update"){var m,p=P.jsx(vne,A(A({ref:n,size:o?"small":void 0},nl(u,["value"])),{},{checked:(m=u==null?void 0:u.checked)!==null&&m!==void 0?m:u==null?void 0:u.value}));if(o){var v=u.disabled,h=u.bordered;return P.jsx(Yc,{label:s,disabled:v,bordered:h,downIcon:!1,value:P.jsx("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return l?l(r,A({mode:i},u),p):p}return null};const g_t=L.forwardRef(h_t);var b_t=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=t.emptyText,u=l===void 0?"-":l,d=s||{},f=d.autoFocus,m=d.prefix,p=m===void 0?"":m,v=d.suffix,h=v===void 0?"":v,g=zr(),w=c.useRef();if(c.useImperativeHandle(n,function(){return w.current},[]),c.useEffect(function(){if(f){var S;(S=w.current)===null||S===void 0||S.focus()}},[f]),i==="read"){var b=P.jsxs(P.Fragment,{children:[p,r??u,h]});if(a){var y;return(y=a(r,A({mode:i},s),b))!==null&&y!==void 0?y:u}return b}if(i==="edit"||i==="update"){var x=g.getMessage("tableForm.inputPlaceholder","请输入"),C=P.jsx(vi,A({ref:w,placeholder:x,allowClear:!0},s));return o?o(r,A({mode:i},s),C):C}return null};const y_t=L.forwardRef(b_t);function Use(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r1),a}),Lv(e,Yse(e),n),r&&(n=rx(n,mEt|pEt|vEt,lEt));for(var i=t.length;i--;)sEt(n,t[i]);return n}),gEt=function(t,n){var r=t.text,i=t.fieldProps,a=c.useContext(Jt.ConfigContext),o=a.getPrefixCls,s=o("pro-field-readonly"),l="".concat(s,"-textarea"),u=ka("TextArea",function(){return U({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),d=u.wrapSSR,f=u.hashId;return d(P.jsx("span",A(A({ref:n,className:ne(f,s,l)},hEt(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const bEt=L.forwardRef(gEt);var yEt=function(t,n){var r=t.text,i=t.mode,a=t.render,o=t.renderFormItem,s=t.fieldProps,l=zr();if(i==="read"){var u=P.jsx(bEt,A(A({},t),{},{ref:n}));return a?a(r,A({mode:i},nl(s,["showCount"])),u):u}if(i==="edit"||i==="update"){var d=P.jsx(vi.TextArea,A({ref:n,rows:3,onKeyPress:function(m){m.key==="Enter"&&m.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return o?o(r,A({mode:i},s),d):d}return null};const wEt=L.forwardRef(yEt);var xEt=function(t,n){var r=t.text,i=t.mode,a=t.light,o=t.label,s=t.format,l=t.render,u=t.renderFormItem,d=t.plain,f=t.fieldProps,m=t.lightLabel,p=c.useState(!1),v=ie(p,2),h=v[0],g=v[1],w=zr(),b=(f==null?void 0:f.format)||s||"HH:mm:ss",y=fn.isDayjs(r)||typeof r=="number";if(i==="read"){var x=P.jsx("span",{ref:n,children:r?fn(r,y?void 0:b).format(b):"-"});return l?l(r,A({mode:i},f),P.jsx("span",{children:x})):x}if(i==="edit"||i==="update"){var C,S=f.disabled,k=f.value,_=J1(k,b);if(a){var $;C=P.jsx(Yc,{onClick:function(){var T;f==null||(T=f.onOpenChange)===null||T===void 0||T.call(f,!0),g(!0)},style:_?{paddingInlineEnd:0}:void 0,label:o,disabled:S,value:_||h?P.jsx($f,A(A(A({},$o(!1)),{},{format:s,ref:n},f),{},{placeholder:($=f.placeholder)!==null&&$!==void 0?$:w.getMessage("tableForm.selectPlaceholder","请选择"),value:_,onOpenChange:function(T){var M;g(T),f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,T)},open:h})):null,downIcon:_||h?!1:void 0,allowClear:!1,ref:m})}else C=P.jsx(as.TimePicker,A(A(A({ref:n,format:s},$o(d===void 0?!0:!d)),f),{},{value:_}));return u?u(r,A({mode:i},f),C):C}return null},SEt=function(t,n){var r=t.text,i=t.light,a=t.label,o=t.mode,s=t.lightLabel,l=t.format,u=t.render,d=t.renderFormItem,f=t.plain,m=t.fieldProps,p=zr(),v=c.useState(!1),h=ie(v,2),g=h[0],w=h[1],b=(m==null?void 0:m.format)||l||"HH:mm:ss",y=Array.isArray(r)?r:[],x=ie(y,2),C=x[0],S=x[1],k=fn.isDayjs(C)||typeof C=="number",_=fn.isDayjs(S)||typeof S=="number",$=C?fn(C,k?void 0:b).format(b):"",E=S?fn(S,_?void 0:b).format(b):"";if(o==="read"){var T=P.jsxs("div",{ref:n,children:[P.jsx("div",{children:$||"-"}),P.jsx("div",{children:E||"-"})]});return u?u(r,A({mode:o},m),P.jsx("span",{children:T})):T}if(o==="edit"||o==="update"){var M=J1(m.value,b),j;if(i){var I=m.disabled,N=m.placeholder,O=N===void 0?[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]:N;j=P.jsx(Yc,{onClick:function(){var F;m==null||(F=m.onOpenChange)===null||F===void 0||F.call(m,!0),w(!0)},style:M?{paddingInlineEnd:0}:void 0,label:a,disabled:I,placeholder:O,value:M||g?P.jsx($f.RangePicker,A(A(A({},$o(!1)),{},{format:l,ref:n},m),{},{placeholder:O,value:M,onOpenChange:function(F){var z;w(F),m==null||(z=m.onOpenChange)===null||z===void 0||z.call(m,F)},open:g})):null,downIcon:M||g?!1:void 0,allowClear:!1,ref:s})}else j=P.jsx($f.RangePicker,A(A(A({ref:n,format:l},$o(f===void 0?!0:!f)),m),{},{value:M}));return d?d(r,A({mode:o},m),j):j}return null},CEt=L.forwardRef(SEt);const kEt=L.forwardRef(xEt);var _Et=["radioType","renderFormItem","mode","light","label","render"],$Et=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],EEt=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,a=t.light,o=t.label,s=t.render,l=ut(t,_Et),u=c.useContext(Jt.ConfigContext),d=u.getPrefixCls,f=d("pro-field-tree-select"),m=c.useRef(null),p=c.useState(!1),v=ie(p,2),h=v[0],g=v[1],w=l.fieldProps,b=w.onSearch,y=w.onClear,x=w.onChange,C=w.onBlur,S=w.showSearch,k=w.autoClearSearchValue;w.treeData;var _=w.fetchDataOnSearch,$=w.searchValue,E=ut(w,$Et),T=zr(),M=zv(A(A({},l),{},{defaultKeyWords:$})),j=ie(M,3),I=j[0],N=j[1],O=j[2],D=Ut(void 0,{onChange:b,value:$}),F=ie(D,2),z=F[0],R=F[1];c.useImperativeHandle(n,function(){return A(A({},m.current||{}),{},{fetchData:function(ee){return O(ee)}})});var H=c.useMemo(function(){if(i==="read"){var J=(E==null?void 0:E.fieldNames)||{},ee=J.value,te=ee===void 0?"value":ee,le=J.label,oe=le===void 0?"label":le,de=J.children,pe=de===void 0?"children":de,we=new Map,fe=function ge(ue){if(!(ue!=null&&ue.length))return we;for(var ce=ue.length,$e=0;$e4&&(p+=7),m.add(p,n));return v.diff(h,"week")+1},s.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var l=s.startOf;s.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;return f.p(u)==="isoweek"?m?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(u,d)}}})})(tle);var TEt=tle.exports;const OEt=qn(TEt);var nle={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(f,m){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,v,h){var g=h&&h.toUpperCase();return v||m[h]||n[h]||m[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,b,y){return b||y.slice(1)})})}(l,u===void 0?{}:u);return s.call(this,d)}}})})(nle);var IEt=nle.exports;const REt=qn(IEt);var MEt=["fieldProps"],NEt=["fieldProps"],DEt=["fieldProps"],jEt=["fieldProps"],FEt=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],AEt=["placeholder"];fn.extend(vZ);fn.extend(yZ);fn.extend(OEt);fn.extend(DM);fn.extend(mZ);fn.extend(REt);var LEt=function(t,n,r){var i=hoe(r.fieldProps);return n.type==="progress"?P.jsx(Wse,A(A({},r),{},{text:t,fieldProps:A({status:n.status?n.status:void 0},i)})):n.type==="money"?P.jsx(Hse,A(A({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?P.jsx(Vse,A(A({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?P.jsx(Bse,A(A({},r),{},{text:t,width:n.width})):t},BEt=function(t,n,r,i){var a=r.mode,o=a===void 0?"read":a,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&o==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var u=r.fieldProps,d=r.render;return d?d(t,A({mode:o},u),P.jsx(P.Fragment,{children:l})):P.jsx(P.Fragment,{children:l})}if(delete r.emptyText,mt(n)==="object")return LEt(t,n,r);var f=i&&i[n];if(f){if(delete r.ref,o==="read"){var m;return(m=f.render)===null||m===void 0?void 0:m.call(f,t,A(A({text:t},r),{},{mode:o||"read"}),P.jsx(P.Fragment,{children:t}))}if(o==="update"||o==="edit"){var p;return(p=f.renderFormItem)===null||p===void 0?void 0:p.call(f,t,A({text:t},r),P.jsx(P.Fragment,{children:t}))}}if(n==="money")return P.jsx(Hse,A(A({},r),{},{text:t}));if(n==="date")return P.jsx($a,{isLight:r.light,children:P.jsx(wm,A({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return P.jsx($a,{isLight:r.light,children:P.jsx(wm,A({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var v=r.fieldProps,h=ut(r,MEt);return P.jsx($a,{isLight:r.light,children:P.jsx(xm,A({text:t,format:"YYYY-W",showTime:!0,fieldProps:A({picker:"week"},v)},h))})}if(n==="dateMonthRange"){var g=r.fieldProps,w=ut(r,NEt);return P.jsx($a,{isLight:r.light,children:P.jsx(xm,A({text:t,format:"YYYY-MM",showTime:!0,fieldProps:A({picker:"month"},g)},w))})}if(n==="dateQuarterRange"){var b=r.fieldProps,y=ut(r,DEt);return P.jsx($a,{isLight:r.light,children:P.jsx(xm,A({text:t,format:"YYYY-Q",showTime:!0,fieldProps:A({picker:"quarter"},b)},y))})}if(n==="dateYearRange"){var x=r.fieldProps,C=ut(r,jEt);return P.jsx($a,{isLight:r.light,children:P.jsx(xm,A({text:t,format:"YYYY",showTime:!0,fieldProps:A({picker:"year"},x)},C))})}return n==="dateMonth"?P.jsx($a,{isLight:r.light,children:P.jsx(wm,A({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?P.jsx($a,{isLight:r.light,children:P.jsx(wm,A({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?P.jsx($a,{isLight:r.light,children:P.jsx(wm,A({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?P.jsx(xm,A({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?P.jsx($a,{isLight:r.light,children:P.jsx(wm,A({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?P.jsx($a,{isLight:r.light,children:P.jsx(xm,A({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?P.jsx($a,{isLight:r.light,children:P.jsx(kEt,A({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?P.jsx($a,{isLight:r.light,children:P.jsx(CEt,A({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?P.jsx(_kt,A({text:t},r)):n==="index"?P.jsx(kV,{children:t+1}):n==="indexBorder"?P.jsx(kV,{border:!0,children:t+1}):n==="progress"?P.jsx(Wse,A(A({},r),{},{text:t})):n==="percent"?P.jsx(Vse,A({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?P.jsx(Ok,{src:t,size:22,shape:"circle"}):n==="code"?P.jsx(uH,A({text:t},r)):n==="jsonCode"?P.jsx(uH,A({text:t,language:"json"},r)):n==="textarea"?P.jsx(wEt,A({text:t},r)):n==="digit"?P.jsx(ykt,A({text:t},r)):n==="digitRange"?P.jsx(xkt,A({text:t},r)):n==="second"?P.jsx(u_t,A({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?P.jsx($a,{isLight:r.light,children:P.jsx(Hct,A({text:t},r))}):n==="checkbox"?P.jsx(Yct,A({text:t},r)):n==="radio"?P.jsx(PV,A({text:t},r)):n==="radioButton"?P.jsx(PV,A({radioType:"button",text:t},r)):n==="rate"?P.jsx(s_t,A({text:t},r)):n==="slider"?P.jsx(v_t,A({text:t},r)):n==="switch"?P.jsx(g_t,A({text:t},r)):n==="option"?P.jsx(Akt,A({text:t},r)):n==="password"?P.jsx(zkt,A({text:t},r)):n==="image"?P.jsx(Bse,A({text:t},r)):n==="cascader"?P.jsx(Uct,A({text:t},r)):n==="treeSelect"?P.jsx(PEt,A({text:t},r)):n==="color"?P.jsx(vkt,A({text:t},r)):n==="segmented"?P.jsx(m_t,A({text:t},r)):P.jsx(y_t,A({text:t},r))},zEt=function(t,n){var r,i,a,o,s,l=t.text,u=t.valueType,d=u===void 0?"text":u,f=t.mode,m=f===void 0?"read":f,p=t.onChange,v=t.renderFormItem,h=t.value,g=t.readonly,w=t.fieldProps,b=ut(t,FEt),y=c.useContext(Xu),x=Dl(function(){for(var k,_=arguments.length,$=new Array(_),E=0;E<_;E++)$[E]=arguments[E];w==null||(k=w.onChange)===null||k===void 0||k.call.apply(k,[w].concat($)),p==null||p.apply(void 0,$)}),C=Ta(function(){return(h!==void 0||w)&&A(A({value:h},Ms(w)),{},{onChange:x})},[h,w,x]),S=BEt(m==="edit"?(r=(i=C==null?void 0:C.value)!==null&&i!==void 0?i:l)!==null&&r!==void 0?r:"":(a=l??(C==null?void 0:C.value))!==null&&a!==void 0?a:"",d||"text",Ms(A(A({ref:n},b),{},{mode:g?"read":m,renderFormItem:v?function(k,_,$){_.placeholder;var E=ut(_,AEt),T=v(k,E,$);return L.isValidElement(T)?L.cloneElement(T,A(A({},C),T.props||{})):T}:void 0,placeholder:v?void 0:(o=b==null?void 0:b.placeholder)!==null&&o!==void 0?o:C==null?void 0:C.placeholder,fieldProps:hoe(Ms(A(A({},C),{},{placeholder:v?void 0:(s=b==null?void 0:b.placeholder)!==null&&s!==void 0?s:C==null?void 0:C.placeholder})))})),y.valueTypeMap||{});return P.jsx(L.Fragment,{children:S})},HEt=L.forwardRef(zEt),H5=L.createContext({mode:"edit"}),VEt=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],WEt=function(t){var n=t.fieldProps,r=t.children;t.labelCol,t.label;var i=t.autoFocus;t.isDefaultDom;var a=t.render,o=t.proFieldProps,s=t.renderFormItem,l=t.valueType;t.initialValue;var u=t.onChange,d=t.valueEnum,f=t.params;t.name;var m=t.dependenciesValues,p=t.cacheForSwr,v=p===void 0?!1:p,h=t.valuePropName,g=h===void 0?"value":h,w=ut(t,VEt),b=c.useContext(H5),y=c.useMemo(function(){return m&&w.request?A(A({},f),m||{}):f},[m,f,w.request]),x=Dl(function(){if(n!=null&&n.onChange){for(var k,_=arguments.length,$=new Array(_),E=0;E<_;E++)$[E]=arguments[E];n==null||(k=n.onChange)===null||k===void 0||k.call.apply(k,[n].concat($));return}}),C=c.useMemo(function(){return A(A({autoFocus:i},n),{},{onChange:x})},[i,n,x]),S=c.useMemo(function(){if(r)return L.isValidElement(r)?L.cloneElement(r,A(A({},w),{},{onChange:function(){for(var _=arguments.length,$=new Array(_),E=0;E<_;E++)$[E]=arguments[E];if(n!=null&&n.onChange){var T;n==null||(T=n.onChange)===null||T===void 0||T.call.apply(T,[n].concat($));return}u==null||u.apply(void 0,$)}},(r==null?void 0:r.props)||{})):P.jsx(P.Fragment,{children:r})},[r,n==null?void 0:n.onChange,u,w]);return S||P.jsx(HEt,A(A(A({text:n==null?void 0:n[g],render:a,renderFormItem:s,valueType:l||"text",cacheForSwr:v,fieldProps:C,valueEnum:Qp(d)},o),w),{},{mode:(o==null?void 0:o.mode)||b.mode||"edit",params:y}))},Of=b5(c.memo(WEt,function(e,t){return of(t,e,["onChange","onBlur"])})),UEt=["options","fieldProps","proFieldProps","valueEnum"],qEt=L.forwardRef(function(e,t){var n=e.options,r=e.fieldProps,i=e.proFieldProps,a=e.valueEnum,o=ut(e,UEt);return P.jsx(Of,A({ref:t,valueType:"checkbox",valueEnum:Qp(a,void 0),fieldProps:A({options:n},r),lightProps:A({labelFormatter:function(){return P.jsx(Of,A({ref:t,valueType:"checkbox",mode:"read",valueEnum:Qp(a,void 0),filedConfig:{customLightMode:!0},fieldProps:A({options:n},r),proFieldProps:i},o))}},o.lightProps),proFieldProps:i},o))}),GEt=L.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return P.jsx(Bl,A(A({ref:t},n),{},{children:r}))}),KEt=b5(GEt,{valuePropName:"checked"}),V5=KEt;V5.Group=qEt;var W5=L.createContext({}),YEt=["name","originDependencies","children","ignoreFormListField"],rle=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,a=t.children,o=t.ignoreFormListField,s=ut(t,YEt),l=c.useContext(doe),u=c.useContext(W5),d=c.useMemo(function(){return n.map(function(f){var m,p=[f];return!o&&u.name!==void 0&&(m=u.listName)!==null&&m!==void 0&&m.length&&p.unshift(u.listName),p.flat(1)})},[u.listName,u.name,o,n==null?void 0:n.toString()]);return P.jsx(Lr.Item,A(A({},s),{},{noStyle:!0,shouldUpdate:function(m,p,v){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var h;return(h=s.shouldUpdate)===null||h===void 0?void 0:h.call(s,m,p,v)}return d.some(function(g){return!of(Vd(m,g),Vd(p,g))})},children:function(m){for(var p={},v=0;v div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":U(U(U(U({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function n3t(e){return ka("ProFormGroup",function(t){var n=A(A({},t),{},{componentCls:".".concat(e)});return[t3t(n)]})}var ale=L.forwardRef(function(e,t){var n=L.useContext(Bv),r=n.groupProps,i=A(A({},r),e),a=i.children,o=i.collapsible,s=i.defaultCollapsed,l=i.style,u=i.labelLayout,d=i.title,f=d===void 0?e.label:d,m=i.tooltip,p=i.align,v=p===void 0?"start":p,h=i.direction,g=i.size,w=g===void 0?32:g,b=i.titleStyle,y=i.titleRender,x=i.spaceProps,C=i.extra,S=i.autoFocus,k=Ut(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),_=ie(k,2),$=_[0],E=_[1],T=c.useContext(Jt.ConfigContext),M=T.getPrefixCls,j=g5(e),I=j.ColWrapper,N=j.RowWrapper,O=M("pro-form-group"),D=n3t(O),F=D.wrapSSR,z=D.hashId,R=o&&P.jsx(Js,{style:{marginInlineEnd:8},rotate:$?void 0:90}),H=P.jsx(Iot,{label:R?P.jsxs("div",{children:[R,f]}):f,tooltip:m}),V=c.useCallback(function(X){var re=X.children;return P.jsx(zl,A(A({},x),{},{className:ne("".concat(O,"-container ").concat(z),x==null?void 0:x.className),size:w,align:v,direction:h,style:A({rowGap:0},x==null?void 0:x.style),children:re}))},[v,O,h,z,w,x]),B=y?y(H,e):H,W=c.useMemo(function(){var X=[],re=L.Children.toArray(a).map(function(K,Y){var Z;return L.isValidElement(K)&&K!==null&&K!==void 0&&(Z=K.props)!==null&&Z!==void 0&&Z.hidden?(X.push(K),null):Y===0&&L.isValidElement(K)&&S?L.cloneElement(K,A(A({},K.props),{},{autoFocus:S})):K});return[P.jsx(N,{Wrapper:V,children:re},"children"),X.length>0?P.jsx("div",{style:{display:"none"},children:X}):null]},[a,N,V,S]),q=ie(W,2),Q=q[0],G=q[1];return F(P.jsx(I,{children:P.jsxs("div",{className:ne(O,z,U({},"".concat(O,"-twoLine"),u==="twoLine")),style:l,ref:t,children:[G,(f||m||C)&&P.jsx("div",{className:"".concat(O,"-title ").concat(z).trim(),style:b,onClick:function(){E(!$)},children:C?P.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[B,P.jsx("span",{onClick:function(re){return re.stopPropagation()},children:C})]}):B}),P.jsx("div",{style:{display:o&&$?"none":void 0},children:Q})]})}))});ale.displayName="ProForm-Group";var r3t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],i3t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],a3t=function(t,n){var r=t.fieldProps,i=t.children,a=t.params,o=t.proFieldProps,s=t.mode,l=t.valueEnum,u=t.request,d=t.showSearch,f=t.options,m=ut(t,r3t),p=c.useContext(Bv);return P.jsx(Of,A(A({valueEnum:Qp(l),request:u,params:a,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:A({options:f,mode:s,showSearch:d,getPopupContainer:p.getPopupContainer},r),ref:n,proFieldProps:o},m),{},{children:i}))},o3t=L.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,i=e.params,a=e.proFieldProps,o=e.mode,s=e.valueEnum,l=e.request,u=e.options,d=ut(e,i3t),f=A({options:u,mode:o||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),m=c.useContext(Bv);return P.jsx(Of,A(A({valueEnum:Qp(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:A({getPopupContainer:m.getPopupContainer},f),ref:t,proFieldProps:a},d),{},{children:r}))}),s3t=L.forwardRef(a3t),l3t=o3t,U5=s3t;U5.SearchSelect=l3t;U5.displayName="ProFormComponent";var c3t=function(t){var n=zr(),r=Lr.useFormInstance();if(t.render===!1)return null;var i=t.onSubmit,a=t.render,o=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,u=t.submitButtonProps,d=t.resetButtonProps,f=Wl.useToken(),m=f.token,p=function(){r.submit(),i==null||i()},v=function(){r.resetFields(),o==null||o()},h=l.submitText,g=h===void 0?n.getMessage("tableForm.submit","提交"):h,w=l.resetText,b=w===void 0?n.getMessage("tableForm.reset","重置"):w,y=[];d!==!1&&y.push(c.createElement(dn,A(A({},nl(d,["preventDefault"])),{},{key:"rest",onClick:function(S){var k;d!=null&&d.preventDefault||v(),d==null||(k=d.onClick)===null||k===void 0||k.call(d,S)}}),b)),u!==!1&&y.push(c.createElement(dn,A(A({type:"primary"},nl(u||{},["preventDefault"])),{},{key:"submit",onClick:function(S){var k;u!=null&&u.preventDefault||p(),u==null||(k=u.onClick)===null||k===void 0||k.call(u,S)}}),g));var x=a?a(A(A({},t),{},{form:r,submit:p,reset:v}),y):y;return x?Array.isArray(x)?(x==null?void 0:x.length)<1?null:(x==null?void 0:x.length)===1?x[0]:P.jsx("div",{style:{display:"flex",gap:m.marginXS,alignItems:"center"},children:x}):x:null},u3t=["fieldProps","proFieldProps"],d3t=["fieldProps","proFieldProps"],oC="text",f3t=function(t){var n=t.fieldProps,r=t.proFieldProps,i=ut(t,u3t);return P.jsx(Of,A({valueType:oC,fieldProps:n,filedConfig:{valueType:oC},proFieldProps:r},i))},m3t=function(t){var n=Ut(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=ie(n,2),i=r[0],a=r[1];return P.jsx(Lr.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,u=s.getFieldValue(t.name||[]);return P.jsx(Lf,A(A({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return a(f)},content:P.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,u),t.strengthText?P.jsx("div",{style:{marginTop:10},children:P.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},p3t=function(t){var n=t.fieldProps,r=t.proFieldProps,i=ut(t,d3t),a=c.useState(!1),o=ie(a,2),s=o[0],l=o[1];return n!=null&&n.statusRender&&i.name?P.jsx(m3t,{name:i.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:P.jsx("div",{children:P.jsx(Of,A({valueType:"password",fieldProps:A(A({},nl(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(d){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,d),l(!1)},onClick:function(d){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,d),l(!0)}}),proFieldProps:r,filedConfig:{valueType:oC}},i))})}):P.jsx(Of,A({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:oC}},i))},Lc=f3t;Lc.Password=p3t;Lc.displayName="ProFormComponent";var v3t=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],h3t=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],ix=function(t,n,r){return t===!0?n:Qp(t,n,r)},VV=function(t){return!t||Array.isArray(t)?t:[t]};function g3t(e){var t,n=e.children,r=e.contentRender,i=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,o=e.formRef,s=e.onInit,l=e.form,u=e.loading;e.formComponentType;var d=e.extraUrlParams,f=d===void 0?{}:d,m=e.syncToUrl,p=e.onUrlSearchChange,v=e.onReset,h=e.omitNil,g=h===void 0?!0:h;e.isKeyPressSubmit;var w=e.autoFocusFirstInput,b=w===void 0?!0:w,y=e.grid,x=e.rowProps,C=e.colProps,S=ut(e,v3t),k=Lr.useFormInstance(),_=(Jt==null||(t=Jt.useConfig)===null||t===void 0?void 0:t.call(Jt))||{componentSize:"middle"},$=_.componentSize,E=c.useRef(l||k),T=g5({grid:y,rowProps:x}),M=T.RowWrapper,j=Dl(function(){return k}),I=c.useMemo(function(){return{getFieldsFormatValue:function(H){var V;return a((V=j())===null||V===void 0?void 0:V.getFieldsValue(H),g)},getFieldFormatValue:function(){var H,V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],B=VV(V);if(!B)throw new Error("nameList is require");var W=(H=j())===null||H===void 0?void 0:H.getFieldValue(B),q=B?Xp({},B,W):W;return Vd(a(q,g,B),B)},getFieldFormatValueObject:function(H){var V,B=VV(H),W=(V=j())===null||V===void 0?void 0:V.getFieldValue(B),q=B?Xp({},B,W):W;return a(q,g,B)},validateFieldsReturnFormatValue:function(){var R=Oi(Tn().mark(function V(B){var W,q,Q;return Tn().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(!Array.isArray(B)&&B)){X.next=2;break}throw new Error("nameList must be array");case 2:return X.next=4,(W=j())===null||W===void 0?void 0:W.validateFields(B);case 4:return q=X.sent,Q=a(q,g),X.abrupt("return",Q||{});case 7:case"end":return X.stop()}},V)}));function H(V){return R.apply(this,arguments)}return H}()}},[g,a]),N=c.useMemo(function(){return L.Children.toArray(n).map(function(R,H){return H===0&&L.isValidElement(R)&&b?L.cloneElement(R,A(A({},R.props),{},{autoFocus:b})):R})},[b,n]),O=c.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),D=c.useMemo(function(){if(i!==!1)return P.jsx(c3t,A(A({},O),{},{onReset:function(){var H,V,B=a((H=E.current)===null||H===void 0?void 0:H.getFieldsValue(),g);if(O==null||(V=O.onReset)===null||V===void 0||V.call(O,B),v==null||v(B),m){var W,q=Object.keys(a((W=E.current)===null||W===void 0?void 0:W.getFieldsValue(),!1)).reduce(function(Q,G){return A(A({},Q),{},U({},G,B[G]||void 0))},f);p(ix(m,q||{},"set"))}},submitButtonProps:A({loading:u},O.submitButtonProps)}),"submitter")},[i,O,u,a,g,v,m,f,p]),F=c.useMemo(function(){var R=y?P.jsx(M,{children:N}):N;return r?r(R,D,E.current):R},[y,M,N,r,D]),z=Hot(e.initialValues);return c.useEffect(function(){if(!(m||!e.initialValues||!z||S.request)){var R=of(e.initialValues,z);Yx(R,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? : null "),Yx(R,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),c.useImperativeHandle(o,function(){return A(A({},E.current),I)},[I,E.current]),c.useEffect(function(){var R,H,V=a((R=E.current)===null||R===void 0||(H=R.getFieldsValue)===null||H===void 0?void 0:H.call(R,!0),g);s==null||s(V,A(A({},E.current),I))},[]),P.jsx(doe.Provider,{value:A(A({},I),{},{formRef:E}),children:P.jsx(Jt,{componentSize:S.size||$,children:P.jsxs(Loe.Provider,{value:{grid:y,colProps:C},children:[S.component!==!1&&P.jsx("input",{type:"text",style:{display:"none"}}),F]})})})}var WV=0;function b3t(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,i=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,o=a===void 0?!1:a,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,m=e.groupProps,p=e.dateFormatter,v=p===void 0?"string":p,h=e.formRef;e.onInit;var g=e.form,w=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var b=e.omitNil,y=b===void 0?!0:b,x=e.request,C=e.params,S=e.initialValues,k=e.formKey,_=k===void 0?WV:k;e.readonly;var $=e.onLoadingChange,E=e.loading,T=ut(e,h3t),M=c.useRef({}),j=Ut(!1,{onChange:$,value:E}),I=ie(j,2),N=I[0],O=I[1],D=bct({},{disabled:!r}),F=ie(D,2),z=F[0],R=F[1],H=c.useRef(US());c.useEffect(function(){WV+=0},[]);var V=zot({request:x,params:C,proFieldKey:_}),B=ie(V,1),W=B[0],q=c.useContext(Jt.ConfigContext),Q=q.getPrefixCls,G=Q("pro-form"),X=ka("ProForm",function(fe){return U({},".".concat(G),U({},"> div:not(".concat(fe.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),re=X.wrapSSR,K=X.hashId,Y=c.useState(function(){return r?ix(r,z,"get"):{}}),Z=ie(Y,2),J=Z[0],ee=Z[1],te=c.useRef({}),le=c.useRef({}),oe=Dl(function(fe,ge,ue){return hct(Dot(fe,v,le.current,ge,ue),te.current,ge)});c.useEffect(function(){l||ee({})},[l]);var de=Dl(function(){return A(A({},z),n)});c.useEffect(function(){r&&R(ix(r,de(),"set"))},[n,de,r]);var pe=c.useMemo(function(){if(!(typeof window>"u")&&w&&["DrawerForm"].includes(w))return function(fe){return fe.parentNode||document.body}},[w]),we=Dl(Oi(Tn().mark(function fe(){var ge,ue,ce,$e,se,ve,he;return Tn().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(T.onFinish){Se.next=2;break}return Se.abrupt("return");case 2:if(!N){Se.next=4;break}return Se.abrupt("return");case 4:return Se.prev=4,ce=M==null||(ge=M.current)===null||ge===void 0||(ue=ge.getFieldsFormatValue)===null||ue===void 0?void 0:ue.call(ge),$e=T.onFinish(ce),$e instanceof Promise&&O(!0),Se.next=10,$e;case 10:r&&(he=Object.keys(M==null||(se=M.current)===null||se===void 0||(ve=se.getFieldsFormatValue)===null||ve===void 0?void 0:ve.call(se,void 0,!1)).reduce(function(Pe,De){var xe;return A(A({},Pe),{},U({},De,(xe=ce[De])!==null&&xe!==void 0?xe:void 0))},n),Object.keys(z).forEach(function(Pe){he[Pe]!==!1&&he[Pe]!==0&&!he[Pe]&&(he[Pe]=void 0)}),R(ix(r,he,"set"))),O(!1),Se.next=18;break;case 14:Se.prev=14,Se.t0=Se.catch(4),console.log(Se.t0),O(!1);case 18:case"end":return Se.stop()}},fe,null,[[4,14]])})));return c.useImperativeHandle(h,function(){return M.current},[!W]),!W&&e.request?P.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:P.jsx(qc,{})}):re(P.jsx(H5.Provider,{value:{mode:e.readonly?"read":"edit"},children:P.jsx(coe,{needDeps:!0,children:P.jsx(Bv.Provider,{value:{formRef:M,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:m,formComponentType:w,getPopupContainer:pe,formKey:H.current,setFieldValueType:function(ge,ue){var ce=ue.valueType,$e=ce===void 0?"text":ce,se=ue.dateFormat,ve=ue.transform;Array.isArray(ge)&&(te.current=Xp(te.current,ge,ve),le.current=Xp(le.current,ge,{valueType:$e,dateFormat:se}))}},children:P.jsx(W5.Provider,{value:{},children:P.jsx(Lr,A(A({onKeyPress:function(ge){if(i&&ge.key==="Enter"){var ue;(ue=M.current)===null||ue===void 0||ue.submit()}},autoComplete:"off",form:g},nl(T,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(ge){M.current&&(M.current.nativeElement=ge==null?void 0:ge.nativeElement)},initialValues:o?A(A(A({},S),W),J):A(A(A({},J),S),W),onValuesChange:function(ge,ue){var ce;T==null||(ce=T.onValuesChange)===null||ce===void 0||ce.call(T,oe(ge,!!y),oe(ue,!!y))},className:ne(e.className,G,K),onFinish:we,children:P.jsx(g3t,A(A({transformKey:oe,autoComplete:"off",loading:N,onUrlSearchChange:R},e),{},{formRef:M,initialValues:A(A({},S),W)}))}))})})})}))}var y3t=function(t){return U(U({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),U({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function w3t(e){return ka("LightWrapper",function(t){var n=A(A({},t),{},{componentCls:".".concat(e)});return[y3t(n)]})}var x3t=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],S3t=function(t){var n=t.label,r=t.size,i=t.disabled,a=t.onChange,o=t.className,s=t.style,l=t.children,u=t.valuePropName,d=t.placeholder,f=t.labelFormatter,m=t.bordered,p=t.footerRender,v=t.allowClear,h=t.otherFieldProps,g=t.valueType,w=t.placement,b=ut(t,x3t),y=c.useContext(Jt.ConfigContext),x=y.getPrefixCls,C=x("pro-field-light-wrapper"),S=w3t(C),k=S.wrapSSR,_=S.hashId,$=c.useState(t[u]),E=ie($,2),T=E[0],M=E[1],j=Ut(!1),I=ie(j,2),N=I[0],O=I[1],D=function(){for(var H,V=arguments.length,B=new Array(V),W=0;W{const{token:e}=Vr.useToken(),{isCustomServer:t,setIsCustomServer:n}=c.useContext(Kc),[r]=Ui.useForm(),[i,a]=c.useState(!1),[o,s]=c.useState(""),[l,u]=c.useState("");c.useEffect(()=>{o&&o.length>0&&(r.setFieldsValue({apiUrl:o}),console.log("apiUrl:",o))},[o]),c.useEffect(()=>{if(t){const m=localStorage.getItem(El);m==="true"&&(a(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const p=localStorage.getItem(wc);p&&r.setFieldsValue({apiUrl:Go(p)});const v=localStorage.getItem(xc);v&&r.setFieldsValue({websocketUrl:Go(v)})}},[t]);const d=m=>{if(console.log("handleCustomServerChange e:",m),a(m.target.checked),m.target.checked){const p=localStorage.getItem(wc);p&&r.setFieldsValue({apiUrl:Go(p)});const v=localStorage.getItem(xc);v&&r.setFieldsValue({websocketUrl:Go(v)}),console.log("initData apiUrl:",p,"websocketUrl:",v)}else localStorage.setItem(El,"false")},f=(m,p)=>(console.log("props:",m,p),P.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[P.jsx(dn,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=Go(v.trim());let h=m.form.getFieldValue("websocketUrl");h=Go(h.trim()),v&&v.trim().length>0&&h&&h.trim().length>0?(localStorage.setItem(wc,v),localStorage.setItem(xc,h),localStorage.setItem(El,"true"),jn.success("保存成功")):jn.error("请输入正确的服务器地址")},children:"保存"},"submit"),P.jsx(dn,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(El,"false"),localStorage.setItem(wc,""),localStorage.setItem(xc,""),jn.success("重置成功,已恢复默认云服务器")},children:"重置"},"reset"),P.jsx(dn,{onClick:()=>{window.open("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:"帮助"},"help")]}));return P.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:P.jsxs(Ui,{className:"ant-pro-form-server-main",form:r,submitter:{render:f},children:[P.jsx(V5,{name:"isCustomServerEnabled",fieldProps:{onChange:m=>{console.log("e:",m),d(m)}},children:"是否启用自定义服务器"}),i&&P.jsxs(P.Fragment,{children:[P.jsx(Lc,{name:"apiUrl",label:"API 服务器地址(例如:http://127.0.0.1:9003 或 https://api.bytedesk.com)",fieldProps:{disabled:!i,placeholder:"http://127.0.0.1:9003",onChange:m=>s(m.target.value)}}),P.jsx(Lc,{name:"websocketUrl",label:"WebSocket 服务器地址(例如:ws://127.0.0.1:9003/stomp 或 wss://api.bytedesk.com/stomp)",fieldProps:{disabled:!i,placeholder:"ws://127.0.0.1:9003/stomp",onChange:m=>u(m.target.value)}})]})]})})};async function P3t(e){return or.get("/spring/ai/demo/airline/bookings",{params:{...e,client:On}})}const{Title:T3t}=Ba,O3t=[{title:"预订编号",dataIndex:"bookingNumber",key:"bookingNumber",render:e=>P.jsx("a",{children:e})},{title:"乘客姓名",dataIndex:"name",key:"name"},{title:"航班日期",dataIndex:"date",key:"date"},{title:"预订状态",dataIndex:"bookingStatus",key:"bookingStatus"},{title:"出发地",dataIndex:"from",key:"from"},{title:"目的地",dataIndex:"to",key:"to"},{title:"舱位等级",dataIndex:"bookingClass",key:"bookingClass"}],I3t=()=>{const[e,t]=L.useState([]),n=async()=>{console.log("fetchBookings");const i=await P3t({pageNumber:0,pageSize:10});if(console.log("getBookings:",i),i.status===200){const a=i.data.data.map(o=>({...o,key:o.bookingNumber}));t(a)}else console.error("Failed to fetch bookings")};return c.useEffect(()=>{n()},[]),P.jsxs(P.Fragment,{children:[P.jsx(T3t,{children:"机票预定信息"}),P.jsx(Ro,{columns:O3t,dataSource:e,rowKey:"bookingNumber"})]})},R3t=()=>P.jsx(P.Fragment,{children:P.jsxs(Lw,{style:{width:"100%",boxShadow:"0 0 10px rgba(0, 0, 0, 0.1)"},children:[P.jsx(Lw.Panel,{defaultSize:"30%",min:"20%",max:"70%",children:P.jsx(xae,{})}),P.jsx(Lw.Panel,{children:P.jsx(I3t,{})})]})}),M3t="1.0.5",ole=L.createContext({}),N3t={classNames:{},styles:{},className:"",style:{}},Yv=e=>{const t=L.useContext(ole);return L.useMemo(()=>({...N3t,...t[e]}),[t[e]])};function rl(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r,theme:i}=L.useContext(Jt.ConfigContext);return{theme:i,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r}}const D3t=e=>{const{attachments:t,bubble:n,conversations:r,prompts:i,sender:a,suggestion:o,thoughtChain:s,welcome:l,theme:u,...d}=e,{theme:f}=rl(),m=L.useMemo(()=>({attachments:t,bubble:n,conversations:r,prompts:i,sender:a,suggestion:o,thoughtChain:s,welcome:l}),[t,n,r,i,a,o,s,l]),p=L.useMemo(()=>({...f,...u}),[f,u]);return L.createElement(ole.Provider,{value:m},L.createElement(Jt,Ee({},d,{theme:p})))},ub=L.createContext(null);function UV(e){const{getDropContainer:t,className:n,prefixCls:r,children:i}=e,{disabled:a}=L.useContext(ub),[o,s]=L.useState(),[l,u]=L.useState(null);if(L.useEffect(()=>{const m=t==null?void 0:t();o!==m&&s(m)},[t]),L.useEffect(()=>{if(o){const m=()=>{u(!0)},p=g=>{g.preventDefault()},v=g=>{g.relatedTarget||u(!1)},h=g=>{u(!1),g.preventDefault()};return document.addEventListener("dragenter",m),document.addEventListener("dragover",p),document.addEventListener("dragleave",v),document.addEventListener("drop",h),()=>{document.removeEventListener("dragenter",m),document.removeEventListener("dragover",p),document.removeEventListener("dragleave",v),document.removeEventListener("drop",h)}}},[!!o]),!(t&&o&&!a))return null;const f=`${r}-drop-area`;return ki.createPortal(L.createElement("div",{className:ne(f,n,{[`${f}-on-body`]:o.tagName==="BODY"}),style:{display:l?"block":"none"}},i),o)}function j3t(e,t){const{children:n,upload:r,rootClassName:i}=e,a=L.useRef(null);return L.useImperativeHandle(t,()=>a.current),L.createElement(r_,Ee({},r,{showUploadList:!1,rootClassName:i,ref:a}),n)}const sle=L.forwardRef(j3t),F3t=yf(Vr.defaultAlgorithm),A3t={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},lle=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i,...a}=t;let o={...r,override:i};return o=tk(o),a&&Object.entries(a).forEach(([s,l])=>{const{theme:u,...d}=l;let f=d;u&&(f=lle({...o,...d},{override:d},u)),o[s]=f}),o};function L3t(){const{token:e,hashed:t,theme:n=F3t,override:r,cssVar:i}=L.useContext(Vr._internalContext),[a,o,s]=NR(n,[Vr.defaultSeed,e],{salt:`${M3t}-${t||""}`,override:r,getComputedToken:lle,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:WR,ignore:_X,preserve:A3t}});return[n,s,t?o:"",a,i]}const{genStyleHooks:Xv,genComponentStyleHook:b6t,genSubStyleComponent:y6t}=kX({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=rl();return{iconPrefixCls:t,rootPrefixCls:e()}},useToken:()=>{const[e,t,n,r,i]=L3t();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=rl();return e??{}},layer:{name:"antdx",dependencies:["antd"]}}),B3t=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list-card`,i=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:n(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:n(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:n(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:n(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:i,height:i,lineHeight:1,[`&:not(${r}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:n(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{transition:["opacity","width","margin","padding"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:n(e.paddingSM).mul(-1).equal()}}}}},FO={"&, *":{boxSizing:"border-box"}},z3t=e=>{const{componentCls:t,calc:n,antCls:r}=e,i=`${t}-drop-area`,a=`${t}-placeholder`;return{[i]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...FO,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${a}-inner`]:{display:"none"}},[a]:{padding:0}},"&":{[a]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",background:e.colorBgPlaceholderHover,...FO,[`${r}-upload-wrapper ${r}-upload${r}-upload-btn`]:{padding:0},[`&${a}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${a}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${a}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${a}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${a}-title${a}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${a}-description`]:{}}}}},H3t=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list`,i=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...FO,[r]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(i).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:i,height:i,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${r}-overflow-ping-start ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-end ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${r}-overflow-ping-end ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-start ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},V3t=e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new rn(t).setA(.85).toRgbString()}},cle=Xv("Attachments",e=>{const t=Kt(e,{});return[z3t(t),H3t(t),B3t(t)]},V3t),W3t=e=>e.indexOf("image/")===0,Hy=200;function U3t(e){return new Promise(t=>{if(!e||!e.type||!W3t(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:r,height:i}=n,a=r/i,o=a>1?Hy:Hy*a,s=a>1?Hy/a:Hy,l=document.createElement("canvas");l.width=o,l.height=s,l.style.cssText=`position: fixed; left: 0; top: 0; width: ${o}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(l),l.getContext("2d").drawImage(n,0,0,o,s);const d=l.toDataURL();document.body.removeChild(l),window.URL.revokeObjectURL(n.src),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const r=new FileReader;r.onload=()=>{r.result&&typeof r.result=="string"&&(n.src=r.result)},r.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}function q3t(){return L.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},L.createElement("title",null,"audio"),L.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},L.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})))}function G3t(e){const{percent:t}=e,{token:n}=Vr.useToken();return L.createElement(uN,{type:"circle",percent:t,size:n.fontSizeHeading2*2,strokeColor:"#FFF",trailColor:"rgba(255, 255, 255, 0.3)",format:r=>L.createElement("span",{style:{color:"#FFF"}},(r||0).toFixed(0),"%")})}function K3t(){return L.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},L.createElement("title",null,"video"),L.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},L.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})))}const o4=" ",AO="#8c8c8c",ule=["png","jpg","jpeg","gif","bmp","webp","svg"],Y3t=[{icon:L.createElement(n9e,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:L.createElement(a9e,null),color:AO,ext:ule},{icon:L.createElement(l9e,null),color:AO,ext:["md","mdx"]},{icon:L.createElement(m9e,null),color:"#ff4d4f",ext:["pdf"]},{icon:L.createElement(h9e,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:L.createElement(_9e,null),color:"#1677ff",ext:["doc","docx"]},{icon:L.createElement(P9e,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:L.createElement(K3t,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:L.createElement(q3t,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function qV(e,t){return t.some(n=>e.toLowerCase()===`.${n}`)}function X3t(e){let t=e;const n=["B","KB","MB","GB","TB","PB","EB"];let r=0;for(;t>=1024&&r{const N=u||"",O=N.match(/^(.*)\.[^.]+$/);return O?[O[1],N.slice(O[1].length)]:[N,""]},[u]),S=L.useMemo(()=>qV(C,ule),[C]),k=L.useMemo(()=>p||(m==="uploading"?`${f||0}%`:m==="error"?r.response||o4:d?X3t(d):o4),[m,f]),[_,$]=L.useMemo(()=>{for(const{ext:N,icon:O,color:D}of Y3t)if(qV(C,N))return[O,D];return[L.createElement(y9e,{key:"defaultIcon"}),AO]},[C]),[E,T]=L.useState();L.useEffect(()=>{if(r.originFileObj){let N=!0;return U3t(r.originFileObj).then(O=>{N&&T(O)}),()=>{N=!1}}T(void 0)},[r.originFileObj]);let M=null;const j=r.thumbUrl||r.url||E,I=S&&(r.originFileObj||j);return I?M=L.createElement(L.Fragment,null,L.createElement("img",{alt:"preview",src:j}),m!=="done"&&L.createElement("div",{className:`${g}-img-mask`},m==="uploading"&&f!==void 0&&L.createElement(G3t,{percent:f,prefixCls:g}),m==="error"&&L.createElement("div",{className:`${g}-desc`},L.createElement("div",{className:`${g}-ellipsis-prefix`},k)))):M=L.createElement(L.Fragment,null,L.createElement("div",{className:`${g}-icon`,style:{color:$}},_),L.createElement("div",{className:`${g}-content`},L.createElement("div",{className:`${g}-name`},L.createElement("div",{className:`${g}-ellipsis-prefix`},x??o4),L.createElement("div",{className:`${g}-ellipsis-suffix`},C)),L.createElement("div",{className:`${g}-desc`},L.createElement("div",{className:`${g}-ellipsis-prefix`},k)))),w(L.createElement("div",{className:ne(g,{[`${g}-status-${m}`]:m,[`${g}-type-preview`]:I,[`${g}-type-overview`]:!I},a,b,y),style:o,ref:t},M,!l&&i&&L.createElement("button",{type:"button",className:`${g}-remove`,onClick:()=>{i(r)}},L.createElement(Ql,null))))}const dle=L.forwardRef(Q3t),GV=1;function J3t(e){const{prefixCls:t,items:n,onRemove:r,overflow:i,upload:a,listClassName:o,listStyle:s,itemClassName:l,itemStyle:u}=e,d=`${t}-list`,f=L.useRef(null),[m,p]=L.useState(!1),{disabled:v}=L.useContext(ub);L.useEffect(()=>(p(!0),()=>{p(!1)}),[]);const[h,g]=L.useState(!1),[w,b]=L.useState(!1),y=()=>{const k=f.current;k&&(i==="scrollX"?(g(Math.abs(k.scrollLeft)>=GV),b(k.scrollWidth-k.clientWidth-Math.abs(k.scrollLeft)>=GV)):i==="scrollY"&&(g(k.scrollTop!==0),b(k.scrollHeight-k.clientHeight!==k.scrollTop)))};L.useEffect(()=>{y()},[i]);const x=k=>{const _=f.current;_&&_.scrollTo({left:_.scrollLeft+k*_.clientWidth,behavior:"smooth"})},C=()=>{x(-1)},S=()=>{x(1)};return L.createElement("div",{className:ne(d,{[`${d}-overflow-${e.overflow}`]:i,[`${d}-overflow-ping-start`]:h,[`${d}-overflow-ping-end`]:w},o),ref:f,onScroll:y,style:s},L.createElement(rk,{keys:n.map(k=>({key:k.uid,item:k})),motionName:`${d}-card-motion`,component:!1,motionAppear:m,motionLeave:!0,motionEnter:!0},({key:k,item:_,className:$,style:E})=>L.createElement(dle,{key:k,prefixCls:t,item:_,onRemove:r,className:ne($,l),style:{...E,...u}})),!v&&L.createElement(sle,{upload:a},L.createElement(dn,{className:`${d}-upload-btn`,type:"dashed"},L.createElement(YM,{className:`${d}-upload-btn-icon`}))),i==="scrollX"&&L.createElement(L.Fragment,null,L.createElement(dn,{size:"small",shape:"circle",className:`${d}-prev-btn`,icon:L.createElement(Ku,null),onClick:C}),L.createElement(dn,{size:"small",shape:"circle",className:`${d}-next-btn`,icon:L.createElement(Js,null),onClick:S})))}function Z3t(e,t){const{prefixCls:n,placeholder:r={},upload:i,className:a,style:o}=e,s=`${n}-placeholder`,l=r||{},{disabled:u}=L.useContext(ub),[d,f]=L.useState(!1),m=()=>{f(!0)},p=g=>{g.currentTarget.contains(g.relatedTarget)||f(!1)},v=()=>{f(!1)},h=L.isValidElement(r)?r:L.createElement(Cg,{align:"center",justify:"center",vertical:!0,className:`${s}-inner`},L.createElement(Ba.Text,{className:`${s}-icon`},l.icon),L.createElement(Ba.Title,{className:`${s}-title`,level:5},l.title),L.createElement(Ba.Text,{className:`${s}-description`,type:"secondary"},l.description));return L.createElement("div",{className:ne(s,{[`${s}-drag-in`]:d,[`${s}-disabled`]:u},a),onDragEnter:m,onDragLeave:p,onDrop:v,"aria-hidden":u,style:o},L.createElement(r_.Dragger,Ee({showUploadList:!1},i,{ref:t,style:{padding:0,border:0,background:"transparent"}}),h))}const e4t=L.forwardRef(Z3t);function t4t(e,t){const{prefixCls:n,rootClassName:r,rootStyle:i,className:a,style:o,items:s,children:l,getDropContainer:u,placeholder:d,onChange:f,overflow:m,disabled:p,classNames:v={},styles:h={},...g}=e,{getPrefixCls:w,direction:b}=rl(),y=w("attachment",n),x=Yv("attachments"),{classNames:C,styles:S}=x,k=L.useRef(null),_=L.useRef(null);L.useImperativeHandle(t,()=>({nativeElement:k.current,upload:R=>{var V,B;const H=(B=(V=_.current)==null?void 0:V.nativeElement)==null?void 0:B.querySelector('input[type="file"]');if(H){const W=new DataTransfer;W.items.add(R),H.files=W.files,H.dispatchEvent(new Event("change",{bubbles:!0}))}}}));const[$,E,T]=cle(y),M=ne(E,T),[j,I]=Ut([],{value:s}),N=Vt(R=>{I(R.fileList),f==null||f(R)}),O={...g,fileList:j,onChange:N},D=R=>{const H=j.filter(V=>V.uid!==R.uid);N({file:R,fileList:H})};let F;const z=(R,H,V)=>{const B=typeof d=="function"?d(R):d;return L.createElement(e4t,{placeholder:B,upload:O,prefixCls:y,className:ne(C.placeholder,v.placeholder),style:{...S.placeholder,...h.placeholder,...H==null?void 0:H.style},ref:V})};if(l)F=L.createElement(L.Fragment,null,L.createElement(sle,{upload:O,rootClassName:r,ref:_},l),L.createElement(UV,{getDropContainer:u,prefixCls:y,className:ne(M,r)},z("drop")));else{const R=j.length>0;F=L.createElement("div",{className:ne(y,M,{[`${y}-rtl`]:b==="rtl"},a,r),style:{...i,...o},dir:b||"ltr",ref:k},L.createElement(J3t,{prefixCls:y,items:j,onRemove:D,overflow:m,upload:O,listClassName:ne(C.list,v.list),listStyle:{...S.list,...h.list,...!R&&{display:"none"}},itemClassName:ne(C.item,v.item),itemStyle:{...S.item,...h.item}}),z("inline",R?{style:{display:"none"}}:{},_),L.createElement(UV,{getDropContainer:u||(()=>k.current),prefixCls:y,className:M},z("drop")))}return $(L.createElement(ub.Provider,{value:{disabled:p}},F))}const fle=L.forwardRef(t4t);fle.FileCard=dle;function n4t(e,t){return c.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return new Proxy(r,{get(i,a){return n[a]?n[a]:Reflect.get(i,a)}})})}const mle=c.createContext({}),KV=()=>({height:0}),YV=e=>({height:e.scrollHeight});function r4t(e){const{title:t,onOpenChange:n,open:r,children:i,className:a,style:o,classNames:s={},styles:l={},closable:u,forceRender:d}=e,{prefixCls:f}=c.useContext(mle),m=`${f}-header`;return c.createElement(ti,{motionEnter:!0,motionLeave:!0,motionName:`${m}-motion`,leavedClassName:`${m}-motion-hidden`,onEnterStart:KV,onEnterActive:YV,onLeaveStart:YV,onLeaveActive:KV,visible:r,forceRender:d},({className:p,style:v})=>c.createElement("div",{className:ne(m,p,a),style:{...v,...o}},(u!==!1||t)&&c.createElement("div",{className:ne(`${m}-header`,s.header),style:{...l.header}},c.createElement("div",{className:`${m}-title`},t),u!==!1&&c.createElement("div",{className:`${m}-close`},c.createElement(dn,{type:"text",icon:c.createElement(vs,null),size:"small",onClick:()=>{n==null||n(!r)}}))),i&&c.createElement("div",{className:ne(`${m}-content`,s.content),style:{...l.content}},i)))}const L_=c.createContext(null);function i4t(e,t){const{className:n,action:r,onClick:i,...a}=e,o=c.useContext(L_),{prefixCls:s,disabled:l}=o,u=o[r],d=l??a.disabled??o[`${r}Disabled`];return c.createElement(dn,Ee({type:"text"},a,{ref:t,onClick:f=>{d||(u&&u(),i&&i(f))},className:ne(s,n,{[`${s}-disabled`]:d})}))}const B_=c.forwardRef(i4t);function a4t(e,t){return c.createElement(B_,Ee({icon:c.createElement(BAe,null)},e,{action:"onClear",ref:t}))}const o4t=c.forwardRef(a4t),s4t=c.memo(e=>{const{className:t}=e;return L.createElement("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:t},L.createElement("title",null,"Stop Loading"),L.createElement("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"}),L.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",opacity:"0.45"}),L.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",strokeDasharray:"600 9999999"},L.createElement("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"})))});function l4t(e,t){const{prefixCls:n}=c.useContext(L_),{className:r}=e;return c.createElement(B_,Ee({icon:null,color:"primary",variant:"text",shape:"circle"},e,{className:ne(r,`${n}-loading-button`),action:"onCancel",ref:t}),c.createElement(s4t,{className:`${n}-loading-icon`}))}const XV=c.forwardRef(l4t);function c4t(e,t){return c.createElement(B_,Ee({icon:c.createElement(hAe,null),type:"primary",shape:"circle"},e,{action:"onSend",ref:t}))}const QV=c.forwardRef(c4t),Fh=1e3,Ah=4,ax=140,JV=ax/2,Vy=250,ZV=500,Wy=.8;function u4t({className:e}){return L.createElement("svg",{color:"currentColor",viewBox:`0 0 ${Fh} ${Fh}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:e},L.createElement("title",null,"Speech Recording"),Array.from({length:Ah}).map((t,n)=>{const r=(Fh-ax*Ah)/(Ah-1),i=n*(r+ax),a=Fh/2-Vy/2,o=Fh/2-ZV/2;return L.createElement("rect",{fill:"currentColor",rx:JV,ry:JV,height:Vy,width:ax,x:i,y:a,key:n},L.createElement("animate",{attributeName:"height",values:`${Vy}; ${ZV}; ${Vy}`,keyTimes:"0; 0.5; 1",dur:`${Wy}s`,begin:`${Wy/Ah*n}s`,repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"y",values:`${a}; ${o}; ${a}`,keyTimes:"0; 0.5; 1",dur:`${Wy}s`,begin:`${Wy/Ah*n}s`,repeatCount:"indefinite"}))}))}function d4t(e,t){const{speechRecording:n,onSpeechDisabled:r,prefixCls:i}=c.useContext(L_);let a=null;return n?a=c.createElement(u4t,{className:`${i}-recording-icon`}):r?a=c.createElement(yAe,null):a=c.createElement(SAe,null),c.createElement(B_,Ee({icon:a,color:"primary",variant:"text"},e,{action:"onSpeech",ref:t}))}const f4t=c.forwardRef(d4t),m4t=e=>{const{componentCls:t,calc:n}=e,r=`${t}-header`;return{[t]:{[r]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",[`${r}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},p4t=e=>{const{componentCls:t,padding:n,paddingSM:r,paddingXS:i,lineWidth:a,lineWidthBold:o,calc:s}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:s(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:a},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:o}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:i,width:"100%",paddingBlock:r,paddingInlineStart:n,paddingInlineEnd:r,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},v4t=()=>({}),h4t=Xv("Sender",e=>{const{paddingXS:t,calc:n}=e,r=Kt(e,{SenderContentMaxWidth:`calc(100% - ${ae(n(t).add(32).equal())})`});return[p4t(r),m4t(r)]},v4t);let sC;!sC&&typeof window<"u"&&(sC=window.SpeechRecognition||window.webkitSpeechRecognition);function g4t(e,t){const n=Vt(e),[r,i,a]=L.useMemo(()=>typeof t=="object"?[t.recording,t.onRecordingChange,typeof t.recording=="boolean"]:[void 0,void 0,!1],[t]),[o,s]=L.useState(null);L.useEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let h=null;return navigator.permissions.query({name:"microphone"}).then(g=>{s(g.state),g.onchange=function(){s(this.state)},h=g}),()=>{h&&(h.onchange=null)}}},[]);const l=sC&&o!=="denied",u=L.useRef(null),[d,f]=Ut(!1,{value:r}),m=L.useRef(!1),p=()=>{if(l&&!u.current){const h=new sC;h.onstart=()=>{f(!0)},h.onend=()=>{f(!1)},h.onresult=g=>{var w,b,y;if(!m.current){const x=(y=(b=(w=g.results)==null?void 0:w[0])==null?void 0:b[0])==null?void 0:y.transcript;n(x)}m.current=!1},u.current=h}},v=Vt(h=>{h&&!d||(m.current=h,a?i==null||i(!d):(p(),u.current&&(d?(u.current.stop(),i==null||i(!1)):(u.current.start(),i==null||i(!0)))))});return[l,v,d]}function b4t(e,t,n){return Ti(e,t)||n}const y4t=L.forwardRef((e,t)=>{const{prefixCls:n,styles:r={},classNames:i={},className:a,rootClassName:o,style:s,defaultValue:l,value:u,readOnly:d,submitType:f="enter",onSubmit:m,loading:p,components:v,onCancel:h,onChange:g,actions:w,onKeyPress:b,onKeyDown:y,disabled:x,allowSpeech:C,prefix:S,header:k,onPaste:_,onPasteFile:$,...E}=e,{direction:T,getPrefixCls:M}=rl(),j=M("sender",n),I=L.useRef(null),N=L.useRef(null);n4t(t,()=>{var ge,ue;return{nativeElement:I.current,focus:(ge=N.current)==null?void 0:ge.focus,blur:(ue=N.current)==null?void 0:ue.blur}});const O=Yv("sender"),D=`${j}-input`,[F,z,R]=h4t(j),H=ne(j,O.className,a,o,z,R,{[`${j}-rtl`]:T==="rtl",[`${j}-disabled`]:x}),V=`${j}-actions-btn`,B=`${j}-actions-list`,[W,q]=Ut(l||"",{value:u}),Q=(ge,ue)=>{q(ge),g&&g(ge,ue)},[G,X,re]=g4t(ge=>{Q(`${W} ${ge}`)},C),K=b4t(v,["input"],vi.TextArea),Z={...er(E,{attr:!0,aria:!0,data:!0}),ref:N},J=()=>{W&&m&&!p&&m(W)},ee=()=>{Q("")},te=L.useRef(!1),le=()=>{te.current=!0},oe=()=>{te.current=!1},de=ge=>{const ue=ge.key==="Enter"&&!te.current;switch(f){case"enter":ue&&!ge.shiftKey&&(ge.preventDefault(),J());break;case"shiftEnter":ue&&ge.shiftKey&&(ge.preventDefault(),J());break}b&&b(ge)},pe=ge=>{var ce;const ue=(ce=ge.clipboardData)==null?void 0:ce.files[0];ue&&$&&($(ue),ge.preventDefault()),_==null||_(ge)},we=ge=>{var ue,ce;ge.target!==((ue=I.current)==null?void 0:ue.querySelector(`.${D}`))&&ge.preventDefault(),(ce=N.current)==null||ce.focus()};let fe=L.createElement(Cg,{className:`${B}-presets`},C&&L.createElement(f4t,null),p?L.createElement(XV,null):L.createElement(QV,null));return typeof w=="function"?fe=w(fe,{components:{SendButton:QV,ClearButton:o4t,LoadingButton:XV}}):w&&(fe=w),F(L.createElement("div",{ref:I,className:H,style:{...O.style,...s}},k&&L.createElement(mle.Provider,{value:{prefixCls:j}},k),L.createElement("div",{className:`${j}-content`,onMouseDown:we},S&&L.createElement("div",{className:ne(`${j}-prefix`,O.classNames.prefix,i.prefix),style:{...O.styles.prefix,...r.prefix}},S),L.createElement(K,Ee({},Z,{disabled:x,style:{...O.styles.input,...r.input},className:ne(D,O.classNames.input,i.input),autoSize:{maxRows:8},value:W,onChange:ge=>{Q(ge.target.value,ge),X(!0)},onPressEnter:de,onCompositionStart:le,onCompositionEnd:oe,onKeyDown:y,onPaste:pe,variant:"borderless",readOnly:d})),L.createElement("div",{className:ne(B,O.classNames.actions,i.actions),style:{...O.styles.actions,...r.actions}},L.createElement(L_.Provider,{value:{prefixCls:V,onSend:J,onSendDisabled:!W,onClear:ee,onClearDisabled:!W,onCancel:h,onCancelDisabled:!p,onSpeech:()=>X(!1),onSpeechDisabled:!G,speechRecording:re,disabled:x}},fe)))))}),LO=y4t;LO.Header=r4t;function Uy(e){return typeof e=="string"}const w4t=(e,t,n,r)=>{const[i,a]=c.useState(""),[o,s]=c.useState(1),l=t&&Uy(e);return nn(()=>{a(e),!l&&Uy(e)?s(e.length):Uy(e)&&Uy(i)&&e.indexOf(i)!==0&&s(1)},[e]),c.useEffect(()=>{if(l&&o{s(f=>f+n)},r);return()=>{clearTimeout(d)}}},[o,t,e]),[l?e.slice(0,o):e,l&&o{if(!e)return[!1,0,0,null];let t={step:1,interval:50,suffix:null};return typeof e=="object"&&(t={...t,...e}),[!0,t.step,t.interval,t.suffix]},[e])}const S4t=({prefixCls:e})=>L.createElement("span",{className:`${e}-dot`},L.createElement("i",{className:`${e}-dot-item`,key:"item-1"}),L.createElement("i",{className:`${e}-dot-item`,key:"item-2"}),L.createElement("i",{className:`${e}-dot-item`,key:"item-3"})),C4t=e=>{const{componentCls:t,paddingSM:n,padding:r}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${ae(n)} ${ae(r)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},k4t=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:i,padding:a,calc:o}=e,s=o(n).mul(r).div(2).add(i).equal(),l=`${t}-content`;return{[t]:{[l]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:o(a).mul(1.25).equal()}},[`&-start ${l}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${l}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},_4t=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto"}}},$4t=new on("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),E4t=new on("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),P4t=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:i,colorText:a,calc:o}=e;return{[t]:{display:"flex",columnGap:i,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:E4t,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:r,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:i},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:a,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:o(i).mul(2).add(o(r).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${ae(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:$4t,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},T4t=()=>({}),ple=Xv("Bubble",e=>{const t=Kt(e,{});return[P4t(t),_4t(t),C4t(t),k4t(t)]},T4t),vle=L.createContext({}),O4t=(e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o={},styles:s={},avatar:l,placement:u="start",loading:d=!1,loadingRender:f,typing:m,content:p="",messageRender:v,variant:h="filled",shape:g,onTypingComplete:w,header:b,footer:y,...x}=e,{onUpdate:C}=L.useContext(vle),S=L.useRef(null);L.useImperativeHandle(t,()=>({nativeElement:S.current}));const{direction:k,getPrefixCls:_}=rl(),$=_("bubble",n),E=Yv("bubble"),[T,M,j,I]=x4t(m),[N,O]=w4t(p,T,M,j);L.useEffect(()=>{C==null||C()},[N]);const D=L.useRef(!1);L.useEffect(()=>{!O&&!d?D.current||(D.current=!0,w==null||w()):D.current=!1},[O,d]);const[F,z,R]=ple($),H=ne($,i,E.className,r,z,R,`${$}-${u}`,{[`${$}-rtl`]:k==="rtl",[`${$}-typing`]:O&&!d&&!v&&!I}),V=L.isValidElement(l)?l:L.createElement(Ok,l),B=v?v(N):N;let W;d?W=f?f():L.createElement(S4t,{prefixCls:$}):W=L.createElement(L.Fragment,null,B,O&&I);let q=L.createElement("div",{style:{...E.styles.content,...s.content},className:ne(`${$}-content`,`${$}-content-${h}`,g&&`${$}-content-${g}`,E.classNames.content,o.content)},W);return(b||y)&&(q=L.createElement("div",{className:`${$}-content-wrapper`},b&&L.createElement("div",{className:ne(`${$}-header`,E.classNames.header,o.header),style:{...E.styles.header,...s.header}},b),q,y&&L.createElement("div",{className:ne(`${$}-footer`,E.classNames.footer,o.footer),style:{...E.styles.footer,...s.footer}},y))),F(L.createElement("div",Ee({style:{...E.style,...a},className:H},x,{ref:S}),l&&L.createElement("div",{style:{...E.styles.avatar,...s.avatar},className:ne(`${$}-avatar`,E.classNames.avatar,o.avatar)},V),q))},q5=L.forwardRef(O4t);function I4t(e){const[t,n]=L.useState(e.length),r=L.useMemo(()=>e.slice(0,t),[e,t]),i=L.useMemo(()=>{const o=r[r.length-1];return o?o.key:null},[r]);L.useEffect(()=>{var o;if(!(r.length&&r.every((s,l)=>{var u;return s.key===((u=e[l])==null?void 0:u.key)}))){if(r.length===0)n(1);else for(let s=0;s{o===i&&n(t+1)});return[r,a]}function R4t(e,t){const n=c.useCallback(r=>typeof t=="function"?t(r):t?t[r.role]||{}:{},[t]);return c.useMemo(()=>(e||[]).map((r,i)=>{const a=r.key??`preset_${i}`;return{...n(r),...r,key:a}}),[e,n])}const M4t=1,N4t=(e,t)=>{const{prefixCls:n,rootClassName:r,className:i,items:a,autoScroll:o=!0,roles:s,...l}=e,u=er(l,{attr:!0,aria:!0}),d=c.useRef(null),f=c.useRef({}),{getPrefixCls:m}=rl(),p=m("bubble",n),v=`${p}-list`,[h,g,w]=ple(p),[b,y]=c.useState(!1);c.useEffect(()=>(y(!0),()=>{y(!1)}),[]);const x=R4t(a,s),[C,S]=I4t(x),[k,_]=c.useState(!0),[$,E]=c.useState(0),T=I=>{const N=I.target;_(N.scrollHeight-Math.abs(N.scrollTop)-N.clientHeight<=M4t)};c.useEffect(()=>{o&&d.current&&k&&d.current.scrollTo({top:d.current.scrollHeight})},[$]),c.useEffect(()=>{var I;if(o){const N=(I=C[C.length-2])==null?void 0:I.key,O=f.current[N];if(O){const{nativeElement:D}=O,{top:F,bottom:z}=D.getBoundingClientRect(),{top:R,bottom:H}=d.current.getBoundingClientRect();FR&&(E(B=>B+1),_(!0))}}},[C.length]),c.useImperativeHandle(t,()=>({nativeElement:d.current,scrollTo:({key:I,offset:N,behavior:O="smooth",block:D})=>{if(typeof N=="number")d.current.scrollTo({top:N,behavior:O});else if(I!==void 0){const F=f.current[I];if(F){const z=C.findIndex(R=>R.key===I);_(z===C.length-1),F.nativeElement.scrollIntoView({behavior:O,block:D})}}}}));const M=Vt(()=>{o&&E(I=>I+1)}),j=c.useMemo(()=>({onUpdate:M}),[]);return h(c.createElement(vle.Provider,{value:j},c.createElement("div",Ee({},u,{className:ne(v,r,i,g,w,{[`${v}-reach-end`]:k}),ref:d,onScroll:T}),C.map(({key:I,...N})=>c.createElement(q5,Ee({},N,{key:I,ref:O=>{O?f.current[I]=O:delete f.current[I]},typing:b?N.typing:!1,onTypingComplete:()=>{var O;(O=N.onTypingComplete)==null||O.call(N),S(I)}}))))))},D4t=c.forwardRef(N4t);q5.List=D4t;const hle=L.createContext(null),eW=({children:e})=>{const{prefixCls:t}=L.useContext(hle);return L.createElement("div",{className:ne(`${t}-group-title`)},e&&L.createElement(Ba.Text,null,e))},j4t=e=>{e.stopPropagation()},F4t=e=>{const{prefixCls:t,info:n,className:r,direction:i,onClick:a,active:o,menu:s,...l}=e,u=er(l,{aria:!0,data:!0,attr:!0}),{disabled:d}=n,[f,m]=L.useState(!1),[p,v]=L.useState(!1),h=ne(r,`${t}-item`,{[`${t}-item-active`]:o&&!d},{[`${t}-item-disabled`]:d}),g=()=>{!d&&a&&a(n)},w=b=>{b&&v(!b)};return L.createElement(sa,{title:n.label,open:f&&p,onOpenChange:v,placement:i==="rtl"?"left":"right"},L.createElement("li",Ee({},u,{className:h,onClick:g}),n.icon&&L.createElement("div",{className:`${t}-icon`},n.icon),L.createElement(Ba.Text,{className:`${t}-label`,ellipsis:{onEllipsis:m}},n.label),s&&!d&&L.createElement(Bp,{menu:s,placement:i==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:d,onOpenChange:w},L.createElement(Nk,{onClick:j4t,disabled:d,className:`${t}-menu-icon`}))))},s4="__ungrouped",A4t=(e,t=[])=>{const[n,r,i]=L.useMemo(()=>{if(!e)return[!1,void 0,void 0];let a={sort:void 0,title:void 0};return typeof e=="object"&&(a={...a,...e}),[!0,a.sort,a.title]},[e]);return L.useMemo(()=>{if(!n)return[[{name:s4,data:t,title:void 0}],n];const a=t.reduce((l,u)=>{const d=u.group||s4;return l[d]||(l[d]=[]),l[d].push(u),l},{});return[(r?Object.keys(a).sort(r):Object.keys(a)).map(l=>({name:l===s4?void 0:l,title:i,data:a[l]})),n]},[t,e])},L4t=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${ae(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${ae(e.paddingXS)}`}}}},B4t=()=>({}),z4t=Xv("Conversations",e=>{const t=Kt(e,{});return L4t(t)},B4t),H4t=e=>{const{prefixCls:t,rootClassName:n,items:r,activeKey:i,defaultActiveKey:a,onActiveChange:o,menu:s,styles:l={},classNames:u={},groupable:d,className:f,style:m,...p}=e,v=er(p,{attr:!0,aria:!0,data:!0}),[h,g]=Ut(a,{value:i}),[w,b]=A4t(d,r),{getPrefixCls:y,direction:x}=rl(),C=y("conversations",t),S=Yv("conversations"),[k,_,$]=z4t(C),E=ne(C,S.className,f,n,_,$,{[`${C}-rtl`]:x==="rtl"}),T=M=>{g(M.key),o&&o(M.key)};return k(L.createElement("ul",Ee({},v,{style:{...S.style,...m},className:E}),w.map((M,j)=>{var N;const I=M.data.map((O,D)=>L.createElement(F4t,{key:O.key||`key-${D}`,info:O,prefixCls:C,direction:x,className:ne(u.item,S.classNames.item),style:{...S.styles.item,...l.item},menu:typeof s=="function"?s(O):s,active:h===O.key,onClick:T}));return b?L.createElement("li",{key:M.name||`key-${j}`},L.createElement(hle.Provider,{value:{prefixCls:C}},((N=M.title)==null?void 0:N.call(M,M.name,{components:{GroupTitle:eW}}))||L.createElement(eW,{key:M.name},M.name)),L.createElement("ul",{className:`${C}-list`},I)):I})))},V4t=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(n=>`${n} ${e.motionDurationSlow}`).join(","),border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},W4t=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},U4t=()=>({}),q4t=Xv("Prompts",e=>{const t=Kt(e,{});return[V4t(t),W4t(t)]},U4t),G5=e=>{const{prefixCls:t,title:n,className:r,items:i,onItemClick:a,vertical:o,wrap:s,rootClassName:l,styles:u={},classNames:d={},style:f,...m}=e,{getPrefixCls:p,direction:v}=rl(),h=p("prompts",t),g=Yv("prompts"),[w,b,y]=q4t(h),x=ne(h,g.className,r,l,b,y,{[`${h}-rtl`]:v==="rtl"}),C=ne(`${h}-list`,g.classNames.list,d.list,{[`${h}-list-wrap`]:s},{[`${h}-list-vertical`]:o});return w(L.createElement("div",Ee({},m,{className:x,style:{...f,...g.style}}),n&&L.createElement(Ba.Title,{level:5,className:ne(`${h}-title`,g.classNames.title,d.title),style:{...g.styles.title,...u.title}},n),L.createElement("div",{className:C,style:{...g.styles.list,...u.list}},i==null?void 0:i.map((S,k)=>{const _=S.children&&S.children.length>0;return L.createElement("div",{key:S.key||`key_${k}`,style:{...g.styles.item,...u.item},className:ne(`${h}-item`,g.classNames.item,d.item,{[`${h}-item-disabled`]:S.disabled,[`${h}-item-has-nest`]:_}),onClick:()=>{!_&&a&&a({data:S})}},S.icon&&L.createElement("div",{className:`${h}-icon`},S.icon),L.createElement("div",{className:ne(`${h}-content`,g.classNames.itemContent,d.itemContent),style:{...g.styles.itemContent,...u.itemContent}},S.label&&L.createElement("h6",{className:`${h}-label`},S.label),S.description&&L.createElement("p",{className:`${h}-desc`},S.description),_&&L.createElement(G5,{className:`${h}-nested`,items:S.children,vertical:!0,onItemClick:a,classNames:{list:d.subList,item:d.subItem},styles:{list:u.subList,item:u.subItem}})))}))))},G4t=e=>{const{componentCls:t,calc:n}=e,r=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),i=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(r).add(i).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},K4t=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},Y4t=()=>({}),X4t=Xv("Welcome",e=>{const t=Kt(e,{});return[G4t(t),K4t(t)]},Y4t);function Q4t(e,t){const{prefixCls:n,rootClassName:r,className:i,style:a,variant:o="filled",classNames:s={},styles:l={},icon:u,title:d,description:f,extra:m}=e,{direction:p,getPrefixCls:v}=rl(),h=v("welcome",n),g=Yv("welcome"),[w,b,y]=X4t(h),x=L.useMemo(()=>{if(!u)return null;let k=u;return typeof u=="string"&&u.startsWith("http")&&(k=L.createElement("img",{src:u,alt:"icon"})),L.createElement("div",{className:ne(`${h}-icon`,g.classNames.icon,s.icon),style:l.icon},k)},[u]),C=L.useMemo(()=>d?L.createElement(Ba.Title,{level:4,className:ne(`${h}-title`,g.classNames.title,s.title),style:l.title},d):null,[d]),S=L.useMemo(()=>m?L.createElement("div",{className:ne(`${h}-extra`,g.classNames.extra,s.extra),style:l.extra},m):null,[m]);return w(L.createElement(Cg,{ref:t,className:ne(h,g.className,i,r,b,y,`${h}-${o}`,{[`${h}-rtl`]:p==="rtl"}),style:a},x,L.createElement(Cg,{vertical:!0,className:`${h}-content-wrapper`},m?L.createElement(Cg,{align:"flex-start",className:`${h}-title-wrapper`},C,S):C,f&&L.createElement(Ba.Text,{className:ne(`${h}-description`,g.classNames.description,s.description),style:l.description},f))))}const J4t=L.forwardRef(Q4t);function Z4t(e){const[,t]=L.useState(0),n=L.useRef(typeof e=="function"?e():e),r=L.useCallback(a=>{n.current=typeof a=="function"?a(n.current):a,t(o=>o+1)},[]),i=L.useCallback(()=>n.current,[]);return[n.current,r,i]}function ePt(e){return Array.isArray(e)?e:[e]}function tPt(e){const{defaultMessages:t,agent:n,requestFallback:r,requestPlaceholder:i,parser:a}=e,o=L.useRef(0),[s,l,u]=Z4t(()=>(t||[]).map((h,g)=>({id:`default_${g}`,status:"local",...h}))),d=(h,g)=>{const w={id:`msg_${o.current}`,message:h,status:g};return o.current+=1,w},f=L.useMemo(()=>{const h=[];return s.forEach(g=>{const w=a?a(g.message):g.message,b=ePt(w);b.forEach((y,x)=>{let C=g.id;b.length>1&&(C=`${C}_${x}`),h.push({id:C,message:y,status:g.status})})}),h},[s]),m=h=>h.filter(g=>g.status!=="loading"&&g.status!=="error").map(g=>g.message),p=()=>m(u());return{onRequest:Vt(h=>{if(!n)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let g=null;l(y=>{let x=[...y,d(h,"local")];if(i){let C;typeof i=="function"?C=i(h,{messages:m(x)}):C=i;const S=d(C,"loading");g=S.id,x=[...x,S]}return x});let w=null;const b=(y,x)=>{let C=u().find(S=>S.id===w);return C?l(S=>S.map(k=>k.id===w?{...k,message:y,status:x}:k)):(C=d(y,x),l(S=>[...S.filter(_=>_.id!==g),C]),w=C.id),C};n.request({message:h,messages:p()},{onUpdate:y=>{b(y,"loading")},onSuccess:y=>{b(y,"success")},onError:async y=>{if(r){let x;typeof r=="function"?x=await r(h,{error:y,messages:p()}):x=r,l(C=>[...C.filter(S=>S.id!==g&&S.id!==w),d(x,"error")])}else l(x=>x.filter(C=>C.id!==g&&C.id!==w))}})}),messages:s,parsedMessages:f,setMessages:l}}const nPt=` + +`,rPt=` +`,tW=":",BO=e=>(e??"").trim()!=="";function iPt(){let e="";return new TransformStream({transform(t,n){e+=t;const r=e.split(nPt);r.slice(0,-1).forEach(i=>{BO(i)&&n.enqueue(i)}),e=r[r.length-1]},flush(t){BO(e)&&t.enqueue(e)}})}function aPt(){return new TransformStream({transform(e,t){const r=e.split(rPt).reduce((i,a)=>{const o=a.indexOf(tW);if(o===-1)throw new Error(`The key-value separator "${tW}" is not found in the sse line chunk!`);const s=a.slice(0,o);if(!BO(s))return i;const l=a.slice(o+1);return{...i,[s]:l}},{});Object.keys(r).length!==0&&t.enqueue(r)}})}function nW(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const r=new TextDecoderStream,i=n?t.pipeThrough(r).pipeThrough(n):t.pipeThrough(r).pipeThrough(iPt()).pipeThrough(aPt());return i[Symbol.asyncIterator]=async function*(){const a=this.getReader();for(;;){const{done:o,value:s}=await a.read();if(o)break;s&&(yield s)}},i}const oPt=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:r={},...i}=t;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let a=[e,i];typeof r.onRequest=="function"&&(a=await r.onRequest(...a));let o=await n(...a);if(typeof r.onResponse=="function"){const s=await r.onResponse(o);if(!(s instanceof Response))throw new Error("The options.onResponse must return a Response instance!");o=s}if(!o.ok)throw new Error(`Fetch failed with status ${o.status}`);if(!o.body)throw new Error("The response body is empty.");return o},Id=class Id{constructor(t){Yr(this,"baseURL");Yr(this,"model");Yr(this,"defaultHeaders");Yr(this,"customOptions");Yr(this,"create",async(t,n,r)=>{var a;const i={method:"POST",body:JSON.stringify({model:this.model,...t}),headers:this.defaultHeaders};try{const o=await oPt(this.baseURL,{fetch:this.customOptions.fetch,...i});if(r){await this.customResponseHandler(o,n,r);return}const s=o.headers.get("content-type")||"";switch(s.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(o,n);break;case"application/json":await this.jsonResponseHandler(o,n);break;default:throw new Error(`The response content-type: ${s} is not support!`)}}catch(o){const s=o instanceof Error?o:new Error("Unknown error!");throw(a=n==null?void 0:n.onError)==null||a.call(n,s),s}});Yr(this,"customResponseHandler",async(t,n,r)=>{var a,o;const i=[];for await(const s of nW({readableStream:t.body,transformStream:r}))i.push(s),(a=n==null?void 0:n.onUpdate)==null||a.call(n,s);(o=n==null?void 0:n.onSuccess)==null||o.call(n,i)});Yr(this,"sseResponseHandler",async(t,n)=>{var i,a;const r=[];for await(const o of nW({readableStream:t.body}))r.push(o),(i=n==null?void 0:n.onUpdate)==null||i.call(n,o);(a=n==null?void 0:n.onSuccess)==null||a.call(n,r)});Yr(this,"jsonResponseHandler",async(t,n)=>{var i,a;const r=await t.json();(i=n==null?void 0:n.onUpdate)==null||i.call(n,r),(a=n==null?void 0:n.onSuccess)==null||a.call(n,[r])});const{baseURL:n,model:r,dangerouslyApiKey:i,...a}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=a}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");const n=t.fetch||t.baseURL;return Id.instanceBuffer.has(n)||Id.instanceBuffer.set(n,new Id(t)),Id.instanceBuffer.get(n)}};Yr(Id,"instanceBuffer",new Map);let zO=Id;const sPt=zO.init;let rW=0;class lPt{constructor(t){Yr(this,"config");Yr(this,"requestingMap",{});Yr(this,"request",(t,n)=>{const{request:r}=this.config,{onUpdate:i,onSuccess:a,onError:o}=n,s=rW;rW+=1,this.requestingMap[s]=!0,r==null||r(t,{onUpdate:l=>{this.requestingMap[s]&&i(l)},onSuccess:l=>{this.requestingMap[s]&&(a(l),this.finishRequest(s))},onError:l=>{this.requestingMap[s]&&(o(l),this.finishRequest(s))}})});this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function cPt(e){const{request:t,...n}=e;return L.useMemo(()=>[new lPt({request:t||sPt({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).create,...n})],[])}var uPt=!1;function dPt(e){if(e.sheet)return e.sheet;for(var t=0;t0?Bi(Qv,--Wa):0,av--,fi===10&&(av=1,H_--),fi}function yo(){return fi=Wa2||H0(fi)>3?"":" "}function kPt(e,t){for(;--t&&yo()&&!(fi<48||fi>102||fi>57&&fi<65||fi>70&&fi<97););return db(e,ox()+(t<6&&jl()==32&&yo()==32))}function VO(e){for(;yo();)switch(fi){case e:return Wa;case 34:case 39:e!==34&&e!==39&&VO(fi);break;case 40:e===41&&VO(e);break;case 92:yo();break}return Wa}function _Pt(e,t){for(;yo()&&e+fi!==57;)if(e+fi===84&&jl()===47)break;return"/*"+db(t,Wa-1)+"*"+z_(e===47?e:yo())}function $Pt(e){for(;!H0(jl());)yo();return db(e,Wa)}function EPt(e){return Sle(lx("",null,null,null,[""],e=xle(e),0,[0],e))}function lx(e,t,n,r,i,a,o,s,l){for(var u=0,d=0,f=o,m=0,p=0,v=0,h=1,g=1,w=1,b=0,y="",x=i,C=a,S=r,k=y;g;)switch(v=b,b=yo()){case 40:if(v!=108&&Bi(k,f-1)==58){HO(k+=Jn(sx(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=sx(b);break;case 9:case 10:case 13:case 32:k+=CPt(v);break;case 92:k+=kPt(ox()-1,7);continue;case 47:switch(jl()){case 42:case 47:qy(PPt(_Pt(yo(),ox()),t,n),l);break;default:k+="/"}break;case 123*h:s[u++]=xl(k)*w;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:w==-1&&(k=Jn(k,/\f/g,"")),p>0&&xl(k)-f&&qy(p>32?aW(k+";",r,n,f-1):aW(Jn(k," ","")+";",r,n,f-2),l);break;case 59:k+=";";default:if(qy(S=iW(k,t,n,u,d,i,s,y,x=[],C=[],f),a),b===123)if(d===0)lx(k,t,S,S,x,a,f,s,C);else switch(m===99&&Bi(k,3)===110?100:m){case 100:case 108:case 109:case 115:lx(e,S,S,r&&qy(iW(e,S,S,0,0,i,s,y,i,x=[],f),C),i,C,f,s,r?x:C);break;default:lx(k,S,S,S,[""],C,0,s,C)}}u=d=p=0,h=w=1,y=k="",f=o;break;case 58:f=1+xl(k),p=v;default:if(h<1){if(b==123)--h;else if(b==125&&h++==0&&SPt()==125)continue}switch(k+=z_(b),b*h){case 38:w=d>0?1:(k+="\f",-1);break;case 44:s[u++]=(xl(k)-1)*w,w=1;break;case 64:jl()===45&&(k+=sx(yo())),m=jl(),d=f=xl(y=k+=$Pt(ox())),b++;break;case 45:v===45&&xl(k)==2&&(h=0)}}return a}function iW(e,t,n,r,i,a,o,s,l,u,d){for(var f=i-1,m=i===0?a:[""],p=X5(m),v=0,h=0,g=0;v0?m[w]+" "+b:Jn(b,/&\f/g,m[w])))&&(l[g++]=y);return V_(e,t,n,i===0?K5:s,l,u,d)}function PPt(e,t,n){return V_(e,t,n,gle,z_(xPt()),z0(e,2,-2),0)}function aW(e,t,n,r){return V_(e,t,n,Y5,z0(e,0,r),z0(e,r+1,-1),r)}function fp(e,t){for(var n="",r=X5(e),i=0;i6)switch(Bi(e,t+1)){case 109:if(Bi(e,t+4)!==45)break;case 102:return Jn(e,/(.+:)(.+)-([^]+)/,"$1"+Qn+"$2-$3$1"+lC+(Bi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~HO(e,"stretch")?Cle(Jn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bi(e,t+1)!==115)break;case 6444:switch(Bi(e,xl(e)-3-(~HO(e,"!important")&&10))){case 107:return Jn(e,":",":"+Qn)+e;case 101:return Jn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qn+(Bi(e,14)===45?"inline-":"")+"box$3$1"+Qn+"$2$3$1"+Yi+"$2box$3")+e}break;case 5936:switch(Bi(e,t+11)){case 114:return Qn+e+Yi+Jn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qn+e+Yi+Jn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qn+e+Yi+Jn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qn+e+Yi+e+e}return e}var APt=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Y5:t.return=Cle(t.value,t.length);break;case ble:return fp([Lh(t,{value:Jn(t.value,"@","@"+Qn)})],i);case K5:if(t.length)return wPt(t.props,function(a){switch(yPt(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fp([Lh(t,{props:[Jn(a,/:(read-\w+)/,":"+lC+"$1")]})],i);case"::placeholder":return fp([Lh(t,{props:[Jn(a,/:(plac\w+)/,":"+Qn+"input-$1")]}),Lh(t,{props:[Jn(a,/:(plac\w+)/,":"+lC+"$1")]}),Lh(t,{props:[Jn(a,/:(plac\w+)/,Yi+"input-$1")]})],i)}return""})}},LPt=[APt],kle=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var g=h.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||LPt,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),w=1;w=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zPt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},HPt=!1,VPt=/[A-Z]|^ms/g,WPt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_le=function(t){return t.charCodeAt(1)===45},sW=function(t){return t!=null&&typeof t!="boolean"},l4=RPt(function(e){return _le(e)?e:e.replace(VPt,"-$&").toLowerCase()}),lW=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(WPt,function(r,i,a){return Sl={name:i,styles:a,next:Sl},i})}return zPt[t]!==1&&!_le(t)&&typeof n=="number"&&n!==0?n+"px":n},UPt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function V0(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Sl={name:i.name,styles:i.styles,next:Sl},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Sl={name:o.name,styles:o.styles,next:Sl},o=o.next;var s=a.styles+";";return s}return qPt(e,t,n)}case"function":{if(e!==void 0){var l=Sl,u=n(e);return Sl=l,V0(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function qPt(e,t,n){var r="";if(Array.isArray(n))for(var i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n({app:t` + background: ${e.colorBgLayout}; + min-height: 100vh; + width: 100vw; + display: flex; + align-items: stretch; + justify-content: stretch; + padding: 0; + margin: 0; + overflow: hidden; + `,layout:t` + width: 100%; + min-width: 1000px; + height: 100vh; + border-radius: 0; + display: flex; + background: ${e.colorBgContainer}; + font-family: AlibabaPuHuiTi, ${e.fontFamily}, sans-serif; + box-shadow: none; + + .ant-prompts { + color: ${e.colorText}; + } + `,menu:t` + background: ${e.colorBgLayout}80; + width: 280px; + height: 100%; + display: flex; + flex-direction: column; + border-right: 1px solid ${e.colorBorderSecondary}; + margin-top: 20px; + `,conversations:t` + padding: 0 12px; + flex: 1; + overflow-y: auto; + `,chat:t` + height: 100%; + width: 100%; + max-width: 700px; + margin: 0 auto; + box-sizing: border-box; + display: flex; + flex-direction: column; + padding: ${e.paddingLG}px; + gap: 16px; + `,messages:t` + flex: 1; + `,placeholder:t` + padding-top: 32px; + `,sender:t` + box-shadow: ${e.boxShadow}; + `,logo:t` + display: flex; + height: 72px; + align-items: center; + justify-content: start; + padding: 0 24px; + box-sizing: border-box; + + img { + width: 24px; + height: 24px; + display: inline-block; + } + + span { + display: inline-block; + margin: 0 8px; + font-weight: bold; + color: ${e.colorText}; + font-size: 16px; + } + `,addBtn:t` + background: ${e.colorPrimary}0f; + border: 1px solid ${e.colorPrimary}34; + width: calc(100% - 24px); + margin: 0 12px 24px 12px; + color: ${e.colorText}; + `,appWithNav:t` + height: 100vh; + display: flex; + flex-direction: column; + `,header:t` + display: flex; + align-items: center; + padding: 0 24px; + height: 64px; + line-height: 64px; + `,navMenu:t` + border-bottom: none; + `,desktopNav:t` + flex: 1; + display: flex; + + @media (max-width: 768px) { + display: none; + } + `,mobileNav:t` + display: none; + + @media (max-width: 768px) { + display: flex; + margin-left: auto; + } + `,tools:t` + display: flex; + align-items: center; + gap: 8px; + `})),FTt=({title:e="微语",logoUrl:t="https://cdn.weiyuai.cn/logo.png"})=>{const{styles:n}=mb();return P.jsxs("div",{className:n.logo,onClick:()=>window.open("https://www.weiyuai.cn","_blank"),children:[P.jsx("img",{src:t,draggable:!1,alt:"logo"}),P.jsx("span",{children:e})]})},bW=({conversationsItems:e,activeKey:t,onAddConversation:n,onActiveChange:r,menu:i})=>{const{styles:a}=mb(),o=Di();return P.jsxs("div",{className:a.menu,children:[P.jsx(dn,{onClick:n,type:"link",className:a.addBtn,icon:P.jsx(YM,{}),children:o.formatMessage({id:"sidebar.newConversation"})}),P.jsx(H4t,{items:e,className:a.conversations,activeKey:t,menu:i,onActiveChange:r})]})},yW=[{key:"0",label:"请介绍一下微语?"}],ATt=[{key:"1",label:"Hot Topics",icon:P.jsx(une,{style:{color:"#FF4D4F"}}),description:"What are you interested in?",children:[{key:"1-1",description:"What are the latest features of 微语?"},{key:"1-2",description:"How does 微语 handle data privacy?"},{key:"1-3",description:"Where can I find the documentation for 微语?"}]}],LTt=[{key:"1",description:"Hot Topics",icon:P.jsx(une,{style:{color:"#FF4D4F"}})},{key:"2",description:"Design Guide",icon:P.jsx(hLe,{style:{color:"#1890FF"}})}],BTt={ai:{placement:"start",typing:{step:5,interval:20},styles:{content:{borderRadius:16}}},local:{placement:"end",variant:"shadow"}},zTt=({onPromptsItemClick:e})=>{const{styles:t}=mb();return P.jsxs(zl,{direction:"vertical",size:16,className:t.placeholder,children:[P.jsx(J4t,{variant:"borderless",style:{textAlign:"left"},icon:"https://cdn.weiyuai.cn/logo.png",title:"您好,有什么微语可以帮您的?",description:"企业级多租户即时通讯解决方案,免费开源8件套:企业IM、在线客服、企业知识库/帮助文档、客户之声、工单系统、AI对话、工作流、项目管理"}),P.jsx(G5,{items:ATt,styles:{list:{width:"100%"},item:{flex:1}},onItemClick:e})]})},HTt=({messages:e,content:t,attachedFiles:n,headerOpen:r,isRequesting:i,onSubmit:a,onChange:o,onPromptsItemClick:s,onOpenChange:l,onFileChange:u})=>{const{styles:d}=mb(),f=P.jsx(LO.Header,{title:"Attachments",open:r,onOpenChange:l,styles:{content:{padding:0}},children:P.jsx(fle,{beforeUpload:()=>!1,items:n,onChange:u,placeholder:p=>p==="drop"?{title:"Drop file here"}:{icon:P.jsx(fne,{}),title:"Upload files",description:"Click or drag files to this area to upload"}})}),m=e.map(({id:p,message:v,status:h})=>({key:p,loading:h==="loading",role:h==="local"?"local":"ai",content:v}));return P.jsxs("div",{className:d.chat,children:[P.jsx(q5.List,{items:m.length>0?m:[{content:P.jsx(zTt,{onPromptsItemClick:s}),variant:"borderless"}],roles:BTt,className:d.messages}),P.jsx(G5,{items:LTt,onItemClick:s}),P.jsx(LO,{value:t,header:f,onSubmit:a,allowSpeech:!1,onChange:o,loading:i,className:d.sender})]})};async function VTt(){return or("/kaptcha/api/v1/get",{method:"GET",params:{client:On}})}async function WTt(e,t){return or("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:On}})}const Fle=({onKaptchaChange:e,onKaptchaCheck:t})=>{const n=Di(),[r,i]=c.useState(),[a,o]=c.useState(),s=async()=>{const d=await VTt();d.data.code===200&&(i(d.data.data.captchaUid),o(d.data.data.captchaImage))},l=async(d,f)=>{const m=await WTt(d,f);console.log("checkCaptcha response",m),m.data.code===200?t&&t(!0):t&&t(!1)};c.useEffect(()=>{s()},[]);const u=d=>{e&&(e(r,d.target.value),d.target.value&&d.target.value!==""&&d.target.value.trim().length===4?l(r,d.target.value):t&&t(!1))};return P.jsx(P.Fragment,{children:a&&P.jsxs(P.Fragment,{children:[P.jsx(vi,{onChange:u,prefix:P.jsx(SLe,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),P.jsx("img",{src:a,alt:"captcha",onClick:s})]})})},UTt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Di(),[a,o]=c.useState(!1);return c.useEffect(()=>{if(a)return;const s=localStorage.getItem(oo);if(s)try{const{username:l,remember:u}=JSON.parse(s);l&&(r==null||r(l,!!u),o(!0))}catch(l){console.error("Failed to parse saved credentials:",l)}},[r,a]),P.jsx(P.Fragment,{children:e==="account"&&P.jsxs("div",{children:[P.jsx(Lc,{name:"username",fieldProps:{size:"large",prefix:P.jsx(i6,{className:"prefixIcon"}),onChange:()=>{o(!0)},onClear:()=>{console.log("onClear");const s=localStorage.getItem(oo);if(s)try{const l=JSON.parse(s),{username:u,...d}=l;console.log("username",u),console.log("rest",d),localStorage.setItem(oo,JSON.stringify(d))}catch(l){console.error("Failed to parse saved credentials:",l)}}},placeholder:i.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:P.jsx(yu,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),P.jsx(Lc.Password,{name:"password",fieldProps:{size:"large",prefix:P.jsx(dne,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:P.jsx(yu,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),P.jsx(Ui.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:P.jsx(Fle,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function qTt(e){return or("/auth/v1/login",{method:"POST",data:{...e,client:On}})}async function GTt(e){return or("/auth/v1/send/mobile",{method:"POST",data:{...e,client:On}})}async function KTt(e){return or("/auth/v1/login/mobile",{method:"POST",data:{...e,client:On}})}async function YTt(e,t){return or("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:On}})}async function XTt(e){return or("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:On}})}async function QTt(e){return or("/api/v1/user/logout",{method:"POST",data:{client:On}})}const JTt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=Di(),[a,o]=c.useState(""),[s,l]=c.useState(""),[u,d]=c.useState(!1),[f,m]=c.useState(!1);c.useEffect(()=>{if(f)return;const w=localStorage.getItem(oo);if(w)try{const{mobile:b}=JSON.parse(w);b&&(r==null||r(b),m(!0))}catch(b){console.error("Failed to parse saved credentials:",b)}},[r,f]);const p=async(w,b)=>{o(w),l(b),t&&t(w,b)},v=async w=>{d(w),n&&n(w)},h=[{label:i.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:i.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:i.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:i.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:i.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:i.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:i.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:i.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:i.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:i.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:i.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:i.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:i.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:i.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:i.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:i.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:i.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:i.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:i.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:i.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:i.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:i.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],g=w=>{const b=w.value.includes("-")?w.value.split("-")[0]:w.value;return P.jsxs("div",{children:[P.jsx("span",{role:"img","aria-label":w.label,style:{marginRight:8},children:w.icon}),w.label," (+",b,")"]})};return P.jsx(P.Fragment,{children:e==="mobile"&&P.jsxs(P.Fragment,{children:[P.jsxs(od,{gutter:16,children:[P.jsx(Ri,{span:10,children:P.jsx(U5,{name:"country",options:h,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:g},initialValue:"86"})}),P.jsx(Ri,{span:14,children:P.jsx(Lc,{fieldProps:{size:"large",prefix:P.jsx(aLe,{className:"prefixIcon"}),onChange:()=>{m(!0)},onClear:()=>{console.log("onClear");const w=localStorage.getItem(oo);if(w)try{const b=JSON.parse(w),{mobile:y,...x}=b;console.log("saved:",y,b),localStorage.setItem(oo,JSON.stringify(x))}catch(b){console.error("Failed to parse saved credentials:",b)}}},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:P.jsx(yu,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:P.jsx(yu,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),P.jsx(Ui.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:P.jsx(Fle,{onKaptchaChange:p,onKaptchaCheck:v})}),P.jsx(Tct,{fieldProps:{size:"large",prefix:P.jsx(dne,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!u},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(w,b)=>w?`${b} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:P.jsx(yu,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async w=>{if(console.log("mobile:",w),w&&w.length===11){const y=await GTt({mobile:w,type:dve,captchaUid:a,captchaCode:s,platform:Nx});if(console.log("sendMobileCode:",y.data),y.data.code!==200){ci.error(i.formatMessage({id:y.data.message,defaultMessage:y.data.message}));return}ci.success(i.formatMessage({id:y.data.message,defaultMessage:y.data.message}))}else ci.error("手机号格式错误")}}),P.jsx(KX,{message:P.jsx(yu,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},ZTt=({loginType:e})=>{const t=Di(),n=qf(),r=s0(p=>p.setUserInfo),i=M2(p=>p.setAccessToken),{deviceUid:a,setDeviceUid:o}=s0(p=>({deviceUid:p.deviceUid,setDeviceUid:p.setDeviceUid})),[s,l]=c.useState("login"),[u,d]=c.useState("loading"),f=async p=>{console.log("handleScanLogin values: ",p),ci.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const v=await XTt({...p});console.log("LoginMobileResult scanLogin:",v.data),v.data.code===200?(ci.destroy(),ci.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(v.data.data.user),i(v.data.data.accessToken),n("/chat")):(ci.destroy(),ci.error(v.data.message))},m=async p=>{if(e!="scan")return;const v=await YTt(a,p);if(v.data.code===200){const h=v.data.data;if(console.log("handleScanQuery status: ",h.status),h.status===fve)d("active"),l("deviceUid="+h.deviceUid+"&code="+h.content);else if(h.status===mve)d("scanned");else if(h.status===vve)d("expired");else if(h.status===pve){if(h.receiver===void 0||h.receiver==="")return;const g={mobile:h.receiver,code:h.content,platform:Nx};console.log("login scan info:",g),await f(g)}}else ci.error(v.data.message)};return c.useEffect(()=>{console.log("scan deviceUid:",a),(a===void 0||a==="")&&o(Qi()),m(!0);const p=setInterval(()=>{m(!1)},3e3);return()=>{clearInterval(p)}},[e,a]),P.jsx(P.Fragment,{children:e==="scan"&&P.jsx(P.Fragment,{children:P.jsx(jLe,{style:{margin:"auto"},value:s,status:u,onRefresh:()=>{console.log("onRefresh"),m(!0)}})})})},e6t=()=>{const{token:e}=Vr.useToken(),{isCustomServer:t,setIsCustomServer:n}=c.useContext(Kc),[r]=Ui.useForm(),[i,a]=c.useState(!1),[o,s]=c.useState(""),l=Di(),u=()=>{console.log("switch server"),n(m=>!m)};c.useEffect(()=>{o&&o.length>0&&(r.setFieldsValue({apiUrl:o}),console.log("apiUrl:",o))},[o]),c.useEffect(()=>{if(t){const m=localStorage.getItem(El);m==="true"&&(a(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const p=localStorage.getItem(wc);p&&r.setFieldsValue({apiUrl:Go(p)});const v=localStorage.getItem(xc);v&&r.setFieldsValue({websocketUrl:Go(v)})}},[t]);const d=m=>{if(console.log("handleCustomServerChange e:",m),a(m.target.checked),m.target.checked){const p=localStorage.getItem(wc);p&&r.setFieldsValue({apiUrl:Go(p)});const v=localStorage.getItem(xc);v&&r.setFieldsValue({websocketUrl:Go(v)}),console.log("initData apiUrl:",p,"websocketUrl:",v)}else localStorage.setItem(El,"false")},f=(m,p)=>(console.log("props:",m,p),P.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[P.jsx(dn,{icon:P.jsx(mAe,{}),onClick:u,children:l.formatMessage({id:"server.button.back"})},"back"),P.jsx(dn,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=Go(v.trim());let h=m.form.getFieldValue("websocketUrl");h=Go(h.trim()),v&&v.trim().length>0&&h&&h.trim().length>0?(localStorage.setItem(wc,v),localStorage.setItem(xc,h),localStorage.setItem(El,"true"),ci.success(l.formatMessage({id:"server.save.success"}))):ci.error("请输入正确的服务器地址")},children:l.formatMessage({id:"server.button.save"})},"submit"),P.jsx(dn,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(El,"false"),localStorage.setItem(wc,""),localStorage.setItem(xc,""),ci.success(l.formatMessage({id:"server.reset.success"}))},children:l.formatMessage({id:"server.button.reset"})},"reset"),P.jsx(dn,{onClick:()=>{window.open("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:l.formatMessage({id:"server.button.help"})},"help")]}));return P.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:P.jsxs(Ui,{className:"ant-pro-form-server-main",form:r,submitter:{render:f},children:[P.jsx(V5,{name:"isCustomServerEnabled",fieldProps:{onChange:d},children:l.formatMessage({id:"server.custom.enable"})}),i&&P.jsxs(P.Fragment,{children:[P.jsx(Lc,{name:"apiUrl",label:l.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!i,placeholder:l.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),P.jsx(Lc,{name:"websocketUrl",label:l.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!i,placeholder:l.formatMessage({id:"server.websocket.url.placeholder"})}})]})]})})},t6t=({isModel:e=!1})=>{const t=Di(),[n]=Ui.useForm(),r=qf(),{token:i}=Vr.useToken(),[a,o]=c.useState("/chat/icons/logo.png"),[s,l]=c.useState(""),[u,d]=c.useState(""),[f,m]=c.useState("account"),p=s0(O=>O.setUserInfo),v=M2(O=>O.setAccessToken),{isCustomServer:h,setIsCustomServer:g}=c.useContext(Kc),[w,b]=c.useState(!1),y=O=>{console.log(`onPrivacyProtocolChange checked = ${O.target.checked}`),b(O.target.checked);const D=localStorage.getItem(oo);if(D)try{const{remember:F}=JSON.parse(D);F&&setTimeout(()=>{n.setFieldsValue({remember:F})},0)}catch(F){console.error("Failed to parse saved credentials:",F)}},x=()=>{window.open("https://www.weiyuai.cn/protocol.html")},[C,S]=c.useState(""),k=async(O,D)=>{S(O),n.setFieldValue("captchaCode",D)},_=async O=>{console.log("handleKaptchaCheck:",O)},$=async O=>{if(console.log("handleSubmit values: ",O,f),!w){jn.error("请阅读并同意隐私协议");return}const D="loginLoading";jn.open({key:D,type:"loading",content:t.formatMessage({id:"logging",defaultMessage:"logging..."}),duration:0});const F=localStorage.getItem(oo);let z=!1;if(F)try{z=JSON.parse(F).remember}catch(H){console.error("Failed to parse saved credentials:",H)}localStorage.setItem(oo,JSON.stringify({username:O.username,remember:z}));const R=await qTt({...O});console.log("LoginResult:",R.data),R.data.code===200?(jn.destroy(D),jn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),z&&localStorage.setItem(oo,JSON.stringify({username:O.username,password:O.password,remember:!0})),p(R.data.data.user),v(R.data.data.accessToken),e||r("/chat")):(jn.destroy(D),jn.error(t.formatMessage({id:R.data.message,defaultMessage:R.data.message})))},E=O=>{n.setFieldsValue({mobile:O})},T=async O=>{if(!w){jn.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const D="mobileLoginLoading";jn.open({key:D,type:"loading",content:t.formatMessage({id:"logging",defaultMessage:"logging..."}),duration:0});const F=localStorage.getItem(oo);let z={};if(F)try{z=JSON.parse(F)}catch(H){console.error("Failed to parse saved credentials:",H)}localStorage.setItem(oo,JSON.stringify({...z,mobile:O.mobile}));const R=await KTt({...O});console.log("LoginMobileResult:",R),R.data.code===200?(jn.destroy(D),jn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),p(R.data.data.user),v(R.data.data.accessToken),e||r("/chat")):(jn.destroy(D),jn.error(t.formatMessage({id:R.data.message,defaultMessage:R.data.message})))},M=()=>{console.log("switch server"),g(O=>!O)},j=()=>{if(Ji)return{}},I=(O,D)=>{n.setFieldsValue({username:O,remember:D});const F=localStorage.getItem(oo);if(F&&D)try{const{password:z}=JSON.parse(F);z&&n.setFieldsValue({password:z})}catch(z){console.error("Failed to parse saved credentials:",z)}},N=async()=>{var D,F,z,R,H,V,B;console.log("getConfig");const O=await hY();(D=O==null?void 0:O.custom)!=null&&D.enabled?((F=O==null?void 0:O.custom)!=null&&F.logo?o((z=O==null?void 0:O.custom)==null?void 0:z.logo):o(DD),(R=O==null?void 0:O.custom)!=null&&R.name?l((H=O==null?void 0:O.custom)==null?void 0:H.name):l(t.formatMessage({id:"app.title"})),(V=O==null?void 0:O.custom)!=null&&V.description?d((B=O==null?void 0:O.custom)==null?void 0:B.description):d(t.formatMessage({id:"slogan"}))):(o(DD),l(t.formatMessage({id:"app.title"})),d(t.formatMessage({id:"slogan"}))),vY()};return c.useEffect(()=>{gY(),N()},[]),P.jsx(coe,{hashed:!1,children:P.jsxs("div",{style:{backgroundColor:i.colorBgContainer,textAlign:"center",height:"100%"},children:[!h&&P.jsxs($3t,{form:n,contentStyle:{minWidth:400},logo:P.jsx("img",{alt:"logo",src:a}),title:s,subTitle:u,initialValues:j(),onFinish:async O=>{if(f==="account"){const D={username:O.username,password:O.password,captchaUid:C,captchaCode:O.captchaCode,platform:Nx};await $(D)}else if(f==="mobile"){const D={mobile:O.mobile,code:O.code,captchaUid:C,captchaCode:O.captchaCode,platform:Nx};await T(D)}else console.log("scan login type")},children:[P.jsx(QM,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:P.jsx(UTt,{loginType:f,onKaptchaChange:k,onKaptchaCheck:_,onRememberChange:I})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:P.jsx(JTt,{loginType:f,onKaptchaChange:k,onKaptchaCheck:_,onRememberChange:E})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:P.jsx(ZTt,{loginType:f})}],activeKey:f,onChange:O=>m(O)}),P.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[P.jsx(Bl,{checked:w,onChange:y,children:P.jsx(dn,{size:"small",type:"link",onClick:x,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),P.jsx(dn,{type:"link",style:{float:"right",marginBottom:24},onClick:M,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),h&&P.jsx(e6t,{})]})})},n6t=({isModel:e=!1})=>P.jsx(fM,{children:P.jsx(t6t,{isModel:e})}),r6t=()=>{const e=are(a=>a.deleteOrg),t=ire(a=>a.resetMembers),n=M2(a=>a.removeAccessToken),r=s0(a=>a.resetUserInfo);return{clearStorage:()=>{e(),t(),n(),r()}}};function i6t(){const{clearStorage:e}=r6t(),t=c.useCallback(async()=>{try{const n=await QTt();console.log("logout result:",n.data),e()}catch(n){console.log("logout error:",n)}},[]);return c.useEffect(()=>{const n=function(r){console.log("token过期,强制刷新登录",r),Zr.off($$,n),t()};return Zr.on($$,n),()=>{console.log("un - useEffect mqttDisconnect"),Zr.off($$)}},[]),{doLogout:t}}const a6t=()=>{const e=Di(),[t,n]=c.useState(!1),[r,i]=c.useState(!1),{isLoggedIn:a,userInfo:o}=c.useContext(Kc),{doLogout:s}=i6t(),l=()=>{n(!0)},u=()=>{n(!1)},d=()=>{i(!0)},f=()=>{s(),i(!1)},m=()=>{i(!1)};return a&&o?P.jsxs(P.Fragment,{children:[P.jsx(dn,{type:"text",icon:P.jsx(i6,{}),onClick:d,children:o.nickname}),P.jsx(Co,{title:e.formatMessage({id:"logout.modal.title",defaultMessage:"退出登录"}),open:r,onOk:f,onCancel:m,okText:e.formatMessage({id:"logout.confirm",defaultMessage:"确认退出"}),cancelText:e.formatMessage({id:"logout.cancel",defaultMessage:"取消"}),children:P.jsx("p",{children:e.formatMessage({id:"logout.confirmation",defaultMessage:"确认要退出登录吗?"})})})]}):P.jsxs(P.Fragment,{children:[P.jsx(dn,{type:"primary",icon:P.jsx(i6,{}),onClick:l,children:P.jsx(yu,{id:"login.button",defaultMessage:"登录"})}),P.jsx(Co,{title:e.formatMessage({id:"login.modal.title",defaultMessage:"用户登录"}),open:t,onCancel:u,footer:null,width:500,destroyOnClose:!0,maskClosable:!1,style:{top:20},children:P.jsx(n6t,{isModel:!0})})]})},{Header:o6t}=Hl,s6t=({isDarkMode:e,toggleDarkMode:t,language:n,changeLanguage:r,isMobile:i,onToggleSidebar:a})=>{const o=Di(),[s,l]=c.useState(!1),[u,d]=c.useState(null),[f,m]=c.useState(null),[p]=c.useState(200),v=[{key:"zh-cn",label:o.formatMessage({id:"language.zh"})},{key:"en",label:o.formatMessage({id:"language.en"})},{key:"zh-tw",label:o.formatMessage({id:"language.zh-TW"})}],h=[{key:"system",label:o.formatMessage({id:"nav.system"}),onClick:()=>b("system")},{key:"development",label:o.formatMessage({id:"nav.development"}),onClick:()=>b("development")},{key:"modules",label:o.formatMessage({id:"nav.modules"}),onClick:()=>b("modules")}],g={system:{title:o.formatMessage({id:"nav.system"}),items:[{key:"admin",label:o.formatMessage({id:"nav.system.admin"}),link:"/admin/"},{key:"agent",label:o.formatMessage({id:"nav.system.agent"}),link:"/agent/chat"},{key:"visitor",label:o.formatMessage({id:"nav.system.visitor"}),link:"/chat/demo"},{key:"workflow",label:o.formatMessage({id:"nav.system.workflow"}),link:"/agenticflow/"},{key:"notebase",label:o.formatMessage({id:"nav.system.notebase"}),link:"/notebase/"},{key:"kanban",label:o.formatMessage({id:"nav.system.kanban"}),link:"/kanban/"}]},development:{title:o.formatMessage({id:"nav.development"}),items:[{key:"javadoc",label:o.formatMessage({id:"nav.development.javadoc"}),link:"/apidocs/index.html"},{key:"apidoc",label:o.formatMessage({id:"nav.development.apidoc"}),link:"/swagger-ui/index.html"},{key:"knife4j",label:o.formatMessage({id:"nav.development.knife4j"}),link:"/doc.html"},{key:"druid",label:o.formatMessage({id:"nav.development.druid"}),link:"/druid"},{key:"docs",label:o.formatMessage({id:"nav.development.docs"}),link:"https://www.weiyuai.cn/docs/zh-CN/"},{key:"web",label:o.formatMessage({id:"nav.development.web"}),link:"/web"}]},modules:{title:o.formatMessage({id:"nav.modules"}),items:[{key:"team",label:o.formatMessage({id:"nav.modules.team"}),link:"/team/"},{key:"service",label:o.formatMessage({id:"nav.modules.service"}),link:"/service/"},{key:"kbase",label:o.formatMessage({id:"nav.modules.kbase"}),link:"/kbase/"},{key:"ai",label:o.formatMessage({id:"nav.modules.ai"}),link:"/ai/"},{key:"ticket",label:o.formatMessage({id:"nav.modules.ticket"}),link:"/ticket/"},{key:"social",label:o.formatMessage({id:"nav.modules.social"}),link:"/social/"},{key:"voc",label:o.formatMessage({id:"nav.modules.voc"}),link:"/voc/"},{key:"plugins-kanban",label:o.formatMessage({id:"nav.modules.plugins.kanban"}),link:"/plugins/kanban/"}]}},w=Object.keys(g).flatMap($=>g[$].items.map(E=>({key:E.key,label:P.jsx("a",{href:E.link,target:"_blank",rel:"noopener noreferrer",children:E.label})}))),b=$=>{d(u===$?null:$)},y=$=>{window.open($,"_blank"),d(null)},x=$=>{f&&clearTimeout(f);const E=setTimeout(()=>{d($)},p);m(E)},C=()=>{f&&(clearTimeout(f),m(null))},S=()=>{f&&(clearTimeout(f),m(null)),d(null)},k=$=>{r($)},_={headerStyle:{background:e?"#141414":"#fff",borderBottom:`1px solid ${e?"#303030":"#f0f0f0"}`,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.06)",padding:"0 16px",height:"64px",position:"relative",zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center"},logoStyle:{fontSize:"18px",fontWeight:"bold",cursor:"pointer"},mainNavStyle:{display:"flex",marginLeft:"24px",height:"64px"},mainNavItemStyle:$=>({padding:"0 16px",display:"flex",alignItems:"center",height:"100%",cursor:"pointer",color:$?"#1890ff":e?"#fff":"#000",borderBottom:$?"2px solid #1890ff":"none",transition:"all 0.3s",fontWeight:$?"bold":"normal",position:"relative"}),subMenuStyle:{position:"absolute",top:"64px",left:"auto",minWidth:"200px",background:e?"#1f1f1f":"#fff",boxShadow:"0 6px 16px -8px rgba(0,0,0,0.15)",borderRadius:"4px",padding:"8px 0",display:u?"block":"none",zIndex:1e3,transform:"translateX(-10%)",border:`1px solid ${e?"#303030":"#f0f0f0"}`},subMenuItemsStyle:{display:"flex",flexDirection:"column",gap:"2px"},subMenuItemStyle:{padding:"8px 16px",cursor:"pointer",color:e?"#e0e0e0":"#333",transition:"all 0.3s",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"22px"},overlay:{position:"fixed",top:"64px",left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.45)",zIndex:999,display:u?"block":"none"},sidebarToggle:{display:i?"inline-flex":"none",marginRight:"8px"},rightToolsStyle:{display:"flex",alignItems:"center",gap:"8px"}};return P.jsxs(P.Fragment,{children:[P.jsxs(o6t,{className:"header",style:_.headerStyle,children:[P.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[P.jsx(dn,{type:"text",icon:P.jsx(Z9e,{}),style:_.sidebarToggle,onClick:a}),P.jsx("div",{className:"logo",style:_.logoStyle,children:P.jsx(FTt,{title:o.formatMessage({id:"app.title"})})}),!i&&P.jsx("div",{style:{position:"relative"},onMouseLeave:S,children:P.jsx("div",{style:_.mainNavStyle,children:h.map($=>P.jsxs("div",{style:_.mainNavItemStyle(u===$.key),onClick:$.onClick,onMouseEnter:()=>x($.key),onMouseLeave:C,children:[$.label,u===$.key&&P.jsx("div",{style:_.subMenuStyle,onMouseEnter:()=>{f&&(clearTimeout(f),m(null))},children:P.jsx("div",{style:_.subMenuItemsStyle,children:g[u].items.map(E=>P.jsx("div",{style:_.subMenuItemStyle,onClick:T=>{T.stopPropagation(),y(E.link)},onMouseEnter:T=>{T.currentTarget.style.background=e?"#303030":"#f5f5f5"},onMouseLeave:T=>{T.currentTarget.style.background="transparent"},children:E.label},E.key))})})]},$.key))})})]}),P.jsxs("div",{style:_.rightToolsStyle,children:[i&&P.jsx(Bp,{menu:{items:w,onClick:({key:$})=>{for(const E of Object.keys(g)){const T=g[E].items.find(M=>M.key===$);if(T){window.open(T.link,"_blank");break}}}},trigger:["click"],open:s,onOpenChange:l,children:P.jsx(dn,{type:"text",icon:P.jsx(uAe,{})})}),P.jsx(a6t,{}),P.jsx(Bp,{menu:{items:v,onClick:({key:$})=>k($),selectedKeys:[n]},placement:"bottomRight",children:P.jsx(dn,{type:"text",icon:P.jsx(H9e,{})})}),P.jsx(dn,{type:"text",icon:e?P.jsx(_Ae,{}):P.jsx(PAe,{}),onClick:t})]})]}),P.jsx("div",{style:_.overlay,onClick:()=>d(null)})]})},l6t=()=>{const{isDarkMode:e,toggleDarkMode:t,locale:n,changeLocale:r}=c.useContext(Kc),{styles:i}=mb(),[a,o]=c.useState((n==null?void 0:n.locale)||"zh-cn"),s=Di(),[l,u]=L.useState(!1),[d,f]=L.useState(""),[m,p]=L.useState(yW),[v,h]=L.useState(yW[0].key),[g,w]=L.useState([]),[b,y]=L.useState(!1),[x,C]=c.useState(!0),[S,k]=c.useState(window.innerWidth<=768),[_,$]=c.useState(!1);c.useEffect(()=>{const V=()=>{const B=window.innerWidth<=768;k(B),B||$(!1),window.innerWidth<=1024?C(!1):C(!0)};return window.addEventListener("resize",V),V(),()=>{window.removeEventListener("resize",V)}},[]);const[E]=cPt({request:async({message:V},{onSuccess:B})=>{B(`Mock success return. You said: ${V}`)}}),{onRequest:T,messages:M,setMessages:j}=tPt({agent:E});c.useEffect(()=>{v!==void 0&&j([]);const V=localStorage.getItem("preferred-language");V&&(o(V),r(V))},[v,r,j]);const I=V=>{V&&(T(V),f(""))},N=V=>{console.log("onPromptsItemClick:",V),T(V.data.description)},O=()=>{p([...m,{key:`${m.length}`,label:`${s.formatMessage({id:"app.new.conversation"})} ${m.length}`}]),h(`${m.length}`),S&&$(!1)},D=V=>{h(V),S&&$(!1)},F=V=>w(V.fileList),z=V=>({items:[{label:s.formatMessage({id:"menu.edit"}),key:"edit",icon:P.jsx(lne,{})},{label:s.formatMessage({id:"menu.delete"}),key:"delete",icon:P.jsx(sne,{}),danger:!0}],onClick:B=>{jn.info(`Click ${V.key} - ${B.key}`)}}),R=V=>{o(V),r(V),localStorage.setItem("preferred-language",V)},H={contentContainer:{display:"flex",flex:1,overflow:"hidden"},chatLayout:{height:"calc(100vh - 64px)",overflow:"hidden",background:e?"#141414":"#fff",display:"flex"},sidebarStyle:{background:e?"#1f1f1f":"#f5f5f5",borderRight:`1px solid ${e?"#303030":"#f0f0f0"}`,width:"280px",height:"100%",display:x&&!S?"block":"none"},drawerBodyStyle:{padding:0,height:"100%",background:e?"#1f1f1f":"#f5f5f5"},chatContentStyle:{background:e?"#141414":"#fff",flex:1,display:"flex",justifyContent:"center",height:"100%",overflow:"hidden"},chatContentInner:{width:"100%",maxWidth:"800px",padding:"0 20px",height:"100%"}};return P.jsx(D3t,{theme:{algorithm:e?Vr.darkAlgorithm:Vr.defaultAlgorithm,token:{colorBgContainer:e?"#141414":"#fff",colorBgLayout:e?"#1f1f1f":"#f5f5f5"}},children:P.jsxs(Hl,{className:i.appWithNav,children:[P.jsx(s6t,{isDarkMode:e,toggleDarkMode:t,language:a,changeLanguage:R,isMobile:S,onToggleSidebar:()=>$(!0)}),P.jsx("div",{style:H.contentContainer,children:P.jsxs("div",{className:i.layout,style:H.chatLayout,children:[P.jsx("div",{style:H.sidebarStyle,children:P.jsx(bW,{conversationsItems:m,activeKey:v,onAddConversation:O,onActiveChange:D,menu:z})}),S&&P.jsx(hte,{title:s.formatMessage({id:"app.title"}),placement:"left",closable:!0,onClose:()=>$(!1),open:_,width:280,bodyStyle:H.drawerBodyStyle,children:P.jsx(bW,{conversationsItems:m,activeKey:v,onAddConversation:O,onActiveChange:D,menu:z})}),P.jsx("div",{style:H.chatContentStyle,children:P.jsx("div",{style:H.chatContentInner,children:P.jsx(HTt,{messages:M,content:d,attachedFiles:g,headerOpen:l,recording:b,isRequesting:E.isRequesting(),onSubmit:I,onChange:f,onPromptsItemClick:N,onOpenChange:u,onFileChange:F,onRecordingChange:V=>{jn.info(`Recording: ${V?"Started":"Stopped"}`),y(V)}})})})]})})]})})},c6t=()=>P.jsx(fM,{children:P.jsx(l6t,{})}),u6t=()=>P.jsx("div",{children:P.jsx("h1",{children:"购物商品推荐/退换货演示"})}),Ale=[{path:"/",element:P.jsx(xae,{})},{path:"/home",element:P.jsx(c6t,{})},{path:"/center",element:P.jsx(Gtt,{})},{path:"/ticket",element:P.jsx(Rtt,{})},{path:"/demo",element:P.jsx(jUe,{})},{path:"/number",element:P.jsx(nnt,{})},{path:"/queue",element:P.jsx(dnt,{})},{path:"/feedback",element:P.jsx(vnt,{})},{path:"/helpcenter",element:P.jsx(Art,{})},{path:"/helpcategory/:id",element:P.jsx(sit,{})},{path:"/helpdetail/:id",element:P.jsx(Yrt,{})},{path:"/server",element:P.jsx(E3t,{})},{path:"/demo/airline",element:P.jsx(R3t,{})},{path:"/demo/shopping",element:P.jsx(u6t,{})},{path:"*",element:P.jsx(Itt,{})}],d6t={routes:Ale,basename:"/chat/",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}},f6t=kUe(Ale,d6t),m6t=()=>{const{locale:e}=c.useContext(Kc),t=(e==null?void 0:e.locale)||VP(),n=i=>{document.title=i||n3[t]["i18n.app.title"]},r=async()=>{var i,a;console.log("getConfig");try{const o=await hY();console.log("getConfig config: ",o);const s=(i=o==null?void 0:o.custom)==null?void 0:i.enabled,l=(a=o==null?void 0:o.custom)==null?void 0:a.name;n(s&&l?l:n3[t]["i18n.app.title"]),await vY();const u=R2();console.log("Base URL:",u)}catch(o){console.error("Failed to load config:",o)}};return c.useEffect(()=>{gY(),r()},[]),P.jsx(Bq,{children:P.jsx(vme,{messages:n3[t],locale:t,defaultLocale:"zh-cn",children:P.jsx(MUe,{router:f6t})})})};function p6t(){return P.jsx("div",{className:"App",children:P.jsx(ZVe,{children:P.jsx(m6t,{})})})}cx.createRoot(document.getElementById("root")).render(P.jsx(p6t,{}))});export default v6t(); diff --git a/starter/src/main/resources/templates/chat/icons/custom/logo_1.jpg b/starter/src/main/resources/templates/chat/icons/custom/logo_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4d617f0e9173d3488c1b08a7633bef3281be84b1 GIT binary patch literal 231717 zcmeEuby$?)v-T3wv2@pxOSgcuba!{BNS7c;EgjO`Ez(Gcq;!LHgLDfhq2G)C&UeoD z|M%y)F1QwUU!Is}=AM~*<{?r|MHUl{6b%FdVam%%X@Ee8Mo-@;NWeQ~zF|Ya3+ih* zeRmLuo%ZP)&Zk7o3xoihmzR>z^2t7a3`n3`4V*^~-19wjKvV9f%QR8leDx}RAFZV$ zBpn&ai~DBEfQX|ujmQ#1SNvEfl+vUpXfm@Mi%`CrpAHfl%-4KMYOhZ&*OqS-^X)l& z|I#Ly1Fp?6clB^re~T-BZl}jKX`#(?!Ay$A==BMIM)cogGe7TrhND(^745!|6ki+HT!22UI_wd+UimSYNssG z&pc0OQn`w##9{m{2WL{9V#IMa2iRPHhZgzI(1tP!N~rrSF_QAKWt?O0CtaYUa&YJUfAB>rbFHVEn(Z{R^^FHu;RlZJb%A(~m=K_-^a!Pm+E&vT_E2}4dql2WZz z4>`8NBgYIHF|FMi+2&#-Pey6~pV3Msl7CQT9J*6w-}L^Z4TgpL(*F5g{?{%mkpE3s z%D{vP3nM7Sq%))WYtPJK{|x&g2Db@UJbi9hi#pt%hnwO6Nirs*-k#&>xbP$XJp+{> z57SUO2rkk|KcNc-TbP7M{~f&UKj2VDN9!i-_mOk7CNb#WCsRHDa9~GV`yD)MKYLGs}}k1!Kwe7$%)k!-wW>8oTR^pp#`Jivl0zrx^BoOlf9Sj(?-Ak z!^}|`9N7YVy&I4R*&0Q-d8Q>i&Lj8c{u4fy#{L_qF;feF#H6>qms9CQh6D;H`QsB> zHX{97?Kd1*bL_5{wTmasToH2Ua8e!`LX!3hBcQDg_b6h`P(hs{)9>NCPiI?-`%gp$ za3yFWK`@KWV6PX6@8lu^tw?1P{65N_Rh;oCY0`mAf;HoTC8lTogK>LA=4DptR1j-D zue9Ws61~FdZtg8Q7D$*me=Ib03q38z26*~EXJ5*%0YSg7(~6G~%8-E3U$!vUygtNg zsFGVxOJnVPlBjmq-(%E-ves)w{gBEq&)AwNnlDc1p%lQd4DWy1`PUc!9LAb?V*d-& z)IcWp>L}*y!(Prn^NT0PasmHW{xL*)R?yfOoeYcB7bOV%xz_0n>2N-%W~1Tlz&tT5 z{{|`9IFt;NqegOb2f4s?V7nf-nVE-~FAd{MzS(q;eR`1K--F|Q>I(?xU~wwe`uzlT zmgg1oXCY$_BsT9e%=Ay}UKykVGcPLt6Ja%g3+Oog_1HHULy`o#JD_R=LS15;tc;Mp zwC>lu_I|cc0`%(syVWB4xE|4kH2P?$l*1(1ome!>30=2C=v2U1y_5K8vP9;IiTf}P zpri=@4%|u{`tsh)lyHdLV&iw_?_5i0&9TGcE;Kb!*d1p1{+g2djs4BkN|VR4je5C5 z*PLYQPiA3}d5Y1f=zg5_^*!;)`R97R5Gg zG(>1<(0`P`Y-L^i$Fvt5{vY_tMP?A&8CH}lq$fw_c~On2tkze*~s zqo(k?lnpp(IPz#m9@7y7lx1!E)PEx0Al!{~zy1N)ejztwv+8F>I?hrIK_LHv3=-zZ z1i)dF>-br&B1pF);6(h5YSUJV-Dw>s@y1-B%-w@FErmvYngLsWWFBNJ}sx zWYtc2)(VgUKl)$wX~rOZJ)AVY9EY!m%Nn4!WHf9LMG2h#V}_uVd<+fJn7bMM^d`*; z@+c2XtGE%xj0K`ZBSqB8(L4t$1;3k;+{s6&eu+=^!&U}K;CO<(OFsBeF#x5m*XGf- zQd|epq*`iXT-JF+c@jP5na9GZzFZK+=}g4Zl0zcZHkCdT`?M6ie@h8X3i+lifmLHF zfguCm*b?Je`YFj|ups8V-%OxQL)2S5kA;POj0WkPBiVB~3Kf9c{dY)*s;sH1(Y$cZ z1M__T&uBUZua^Vkhs*?o8dhN;s>*lwg!2Bww2#LA;JvO!RUVY7{%>cDplD9z-UAr` z9>~!Cf(;o4=0>rYqG6HHa6Kn+$se&$n1y{-ZL*oZGeaE-@zgJWo4V7mc@*g;;qbQ{ zaZo9`uQAP*EIQdeD!e4v;YIGhs3K7Cb#1`wmI}*tkCYjmy!ycT5r0RiZ(Nv;kn_Cs z&8v}`5P-2e9vC$zfUXuS$dvf#ztoJ*_Ti}K(It9ZEem;JKh^3(>)G64FlwmA;+yzIV9Q(|7PvEQ>7)9l zj!IA}scrpZvp-2GPWry+xoH;63MWFadGZqm|E8k0tM!JRRP)x`LliSn`?}`owR?GA zn-;gtQa8&1>aAaAMk6{)*IZsM*+-kM*%G52%__ycJ}^Oe-F_+|Rj{uYDKNdckJCG= zSW1Kk;M)w=nxh}`(`I;F@o$Fo=1R~;891N4hTA|aj2aO^afumN=r~mH2jwOvSoC&o zJ_-i8o8e4pMJ&KCeZ|A|0l5Ya|CA|*%v#PK!MU-1L6%0P58rKihmo_~RU4-$?Nq@7 z*-3}^idU%XhVR~c7~2<|bwQ<0q-9=+Mi-qAe$VCx4)nSk=P6rZ3oC@XsSS|%ltnpY z5yG$0Gu>{z3EfibmrD{)zph+~$kHp5DMhU1=~s5=BaUMSF}j;Yvfc}af%Ae&e5*#T z>&qprd{^8ja>Be7xryUc?Deyl-v0T0zW(d+oipeiR07{5Dg^ zNBKog=@z=Eg-aAKixKj|P^VW8!P`yrw&NT~z3RBKn~1MUzV3n56}c&fb)2R!3Gwa% zPSsKr{o=DVQBPU+$NZ?KMXSXvVh`>|&X$97)H$d-XFPMwUEnsaxl-Y0O3cOXz&J|! z%dAOv^i>Bd;##}hDS4^ZDL0KIzI7T(3qL7jMBnsv=rZclYE$A z1-n&9QDT*FDFuj%G}V|VxrBQ~HglqUijBV$&{s<RPrDy%A zh@?|;1B9}dO_7L3i!eY-aheNWP5{njYEs;bDr-+aDJ*+45S1$^)h5gH&dbU?=J#L- z(wZe`8-A|f&K18?UGZF_G2)e(pf-{We~6>wl_n}h2#=!q28v{LdcS&lmx)Ike06}T zjsnxNTU_+fHU-*qVGl8U#(tt)rZR!TU1PJ0vS(+bsqMzh(ltzOVS5TbpVplk>$8iB& zKEf4$9N#pdtM);0=?m8A{MSBhCv_4G**#bMp4uGhxE}U^+q7CdBZlFNW-eqeLPM?n zwsz!z%7id0A7r}lIdK2DqcYJC|spiUk(J+swmuHX8l^vDva(n1Rf z*BE}k=+zBPhp1AB_Yh0h(rup*fx-X)=xQAjmkSYKv{Db1t4?=63I=oKyOY5m#1ur* z{e+PvU5(gnCYZlp7z?R#i;VOcc*KR|#VLr3$yUz8EN7FfB##^vmuI}-Q8stMkgc$= zCtn-2Q9lXTJ|7S?r)db}n!EQClKlRY9SGXIJ;y&$h)jYqM+d(?TxdTnGw{1ke3PgV zHeOp@_&&m+u#&7pmEa6)i587r@QxGpxqlbrk+x1R4?h-u#w~Y-jGN_@32}J6?Ziu7 zc<9cE@MH3>$Naa^{)YZ8`XBSgy3mtHg$8o!8hJ8TOSDZF+7Xl6!Mr`<-3Q$pYK26q zk!=-7mwWmdn>hJ=y!|hhWERU#MGqQ`&b*6qYj===&|u z!mkV>ulj8xkoHwK%bXgEu{SE*T$E`}+3=77C`am@^57&l24V?3l#5;X?`PwzVQFRf z^nix<`n>xaADGR<_7BlX08E;oU2saBC2b;1GTERt|jO=CxvT<{1xsjw}g=#Pf>wjsM_dO zbOvQ#-P@iXfL)5A`YYWFB?Y^>i(5M~2i_4yHD=61=yDsR9wVG~E~Nikj1~p{p)mWK z*G6V$Nlm`}*AsV55=Yis1loN#=5S0>Iz?EbVnco~)K9z4pp1vs`pq*q*BW~Wq zD9Jl0?9`$u8NCqIgnV^kHcTl&aCI5dYUV0GObMq}r6b0WX40!#!I>Ew{4D$~Q6NQN{Pi3!zyjB(1DlW{#wfsfIeA(W zCAysC0B39KZP5#=QhXM9`gNkaD;%b`MA!GNNdw6>S3*VCaRgMEis_nYv4u|IKP?*8 zjOhW(u45w@2TqL1X~`@IfT)y7@nU5HKc~c$@UP$y1^w~XxHGQqde&-tPCHUL`stX) zjeO2v;)Kp{x!(P*nw~9#c+z{+>m;PF+lz6O zsr$+ssqw{=oRt&L?Dxe)W$V+co_aLSE&ATbS*&p zQ=OK&o|dGI&l<6WgbU-Y#=FCc-<*Hoj)zKRPA};2Qa60-s!b=y_cGUAA_QB^(7Pd0 z8R$|;hH{H=SQ9`5IXgTSux(y&Ho;{H$Z4~fwp#;+geUeq`DXj*3aS_KQ z383NaFC*yptfUBrMrc@Cd`Fr@o@CtIEtKC(12Q4aznM@eh*wWQN(2(d@f{pOqpxxk zq-1@B8;#3kFNT$Fb2c~K!>=ym4ht^+h9@~52zZibt~JVmoSy~Iu$hcEnd5o_v^<=Q zZ7x_Anm=}iG+(N!vkEg755&)lPMQg1l0x2AwoRPsG@2Zg(S=#R=Y+(1e$Y7F&kay< zPB>T-f)$--*8Ec3UtSdv0MPuiaGwon)^lm9E)(*wc`($LwF5ZBoi56!CmHQkUKPOFQaD+!&mm#aD*ntcnz8y2=ykbkfyQtAL}85R1QXzPiGe;NQwN>84jE^vpXyNU+G z*c0#9WgBqf;8)qNLe)7xvy>F_= zqt|r1w$`{)KApaRWwiFNH0{cQOE-eARk(czqckQy6#{Aaf0k({r%kz(tlxneT6<0o z+G471SV{osmA(<$UT&eC{91&oU#+Y>Oo-K0;FFnp_fKi?ow9j+0X0#MuIuNW&Q@}& zB*aKg2{fI#;hve>|0yPYy}RX|$o_9xq<^KiBhJ&VS|>=KI{>zSxd#quw*{-SIiEdH zepUa;%ZS<4c;>cYP3ptIZZCy2UJx&S0A1fr*=|GFby>}?-{y%~heVklQfq-m&Ju}J zkNk59o|kl%4`{Wl>JO($GLm~HUpeEZD;1`)G*1Z!Z~M({TeY>YQ_Sa}Qn<{tQBKzL z?DuChd4<$mFfIs(Tq)BAfv4lis#p4fScdd3YRLn>RlN0a!0zpy5tfDuwGHeZJSC7- zd&VpRQ}Of5FQ!;wX*g%V*=XC3vvzVfXQ-sfU$4R8Ge)laJ~$8*{>>bhc~-8l%cAM9 zOMr{@$l6RMQ6t!#>z9b%>nqU<0^g}yzI!U!O-hUdDTSR#N3%kl#XfH<(n)yV|{85GhV z6y`h{5#Pa(9s()D&Un8LeH(B{%={pwocF<==!)&!3oy+=vnb2qjc3S0YgsaKO4?)@ z{YnIJ3`6)ZpZ>8#_B`qj?KC0qZilMz^MoFm?1osnq#xT%$<~%13%(FqG56R{IWQ{t zdQn8W8D~J0r!90X^nQyCY0^ zLzy!$Kk47(aqwnAOG1IC=+VbIag8yo0=ZEvi_Sw=85#2Kf<`J#X#Io}U`2;~4$&TqVw{e6c*Y zJf-J|;G-^y)&ixc3jD(a z7s#r7-;MkidRTN*uI6{X>2|A*Inj(=I#0_lrbHs}-sZE_qS8k+HR{TUQ(7|9(nvS9WG;qpC6KWZse}D*jy|T8x-)Lr zW*p6<)S*FikKt~s-qZ^I-ZXu=EsfX?JF|sbxFv5W3LYm?g;1%dV``{#ZMBWW06hHg zH!||Vm2R{%+|A`>kwllKn@zmr4JHm^73x#4>Oz3Q4GxP-%IC;aBhfwQ4$VfQE5m|M z%kFRK=KWbcY%4(&tm&2DiNa-<`yS+KrDqaFUNd?`r?hBZb zZ^kfm`J(Td3$NiJ79~It~o_n11GyTw#V&|&#q zNt_|2^%l<^EtaaND=kA^US{dklC$@NZi2*dxIh>(*f>v@c}hxwB1U^~)`Qds?1bK^ z1ZJL|6I_Wc^0FOB7nTCysc8y!Ne=N0RdzviaXoPnCyI67GgvK^dPYb_Qv#j1e!(H; zHouq2dbMf(=s-}&lm4Ylfk?4#E8#bw^4}Yk=akx*;#1CCqx@LfS*NR6tB5ly^?|~y zS|!-H=Xd)s+&!0+Rm?-8WEDWyBu;VDOK}sd^67f5`lk0`QO&FB7~T>?Dr>4Y@WhLw z*=qcS827O5n-vkkQ@$pZHGudVF`xLdML#CV9j-o5>4#rGl+oC_+&~cIGXLBb4qKi) zrjP{pWIW@wvg`CvSUWwCNeiXo+zpC=gdvTl8kW4MVa_uT;fT4bmnZ$vt&PrHvnJfs3?z!J%n#FIoCK zLHq{e_e|hTesWuxX5#e8%9LZAs7Wus|8#VKo9);#*6W59RH$g?GZ>B*P zW&(cf{e(+3&dG9=msgSIf@$2FGOP+-6Zq;wbfZ=UrA9+hs@h^yR&#udYoCMqT}$q* zWNwFmnHpFQWZ*O9Y4A*=ye8}sx+-9f1`NK z_t0aa;ib>Gg1FLkkn`|xDJIlU+hgFefm{%M_XTXW1IVt3rOb;p1fW9hhVoac|D!vcB@8`7-*(Jmvb}_lsDtG!@+yd z54tU{JVEtxA+=UA%Wa{=)wwh4k-b7%F7YJCp%J`p{44l5lecsBj9ijLr=pt7uY@_P zUn%gMM)sH9L$S%VtC?_Vc%PLtSf@uUNj0-p5>Nd$(mR#Kmh|u~e&eOIzKbvUiR*)G z>ZSgtmSs8IJFiZ zX?n*1f!WMwPjY|G7bX0I9;=@Vt&J=BT}m;vp)ltmh>fH}j3vRtk9|6roeU1cHb;7d#R;k~#m_zJ9?!15B1JdXMO*ih6LO z?&Fn?6sC$9Z4BTnkq3D$%^%`XIje+$W9V_`y}`jNgNSM+Iz@5hiV6B3i)66DQvJg# zc6!%6@BsH`th6&Yrrn8#wc_m@(ZHE%cjERm4rC4MVB`EV2Qqoa{tsb;1;rDCN$U)* z9`GC5cWau$4o-2tk`~pqU;@4?eR3#Qjr^7Dmpok%ZfI58S<7aM7dS0^sJs+ z&QtFTU9bRS`2h|zGnRzw<|@4 zbC{HOq8{n-8DeRQLK|>BoPV8Y;-uL&@toEW(+IwnmzMk-s;~>Krd?tJxI_`hz+;E4 zNMTqCegQ*r)-DTslRw=6;|D8pI1fzUCN21p@^~6NyX_D~Dl`JqVPe)XqNR19$EGL! zUSLkuz-fa1>`R0d5)H%W;7@7OA(fO;6=#%D>$=h9mG$^PYusV?w@Wu~tesq_Ug1!( zSg+fQJQ22{jQuaO2HCq@sgJ=qnsk!VyOy{f$|n#t4OoNI**M^#7bJ;IrOpMN-s*-D z*$bcTiUI}V3bem2Nx*=7u3j!azk3wtA#2kij1cwL>wTMtJk6chv5k`2g~H=_`8Vl6 zy(Hd#k@nNCbJl4?JCLnoxV>;{+!U2VaU9go>>_}tSs%cEcpv3Is{7vJU(O`5BML*f zjvTwWc1u+hOegI3MVU2loY6KFlfo9URi^7vs@oc21(sle)OCqyNUD{CYszFjUg7 z&gK?G6Cg*~z4oP#kflJHX0l_?;!x;KN{WdVS+T!9V77+b2+R2h zN%Qqs;$+iiIng9~qTRZGE6RHbf)%NCih3KVQkI@Q;NH2<#21~@mwYgmT)|_2Q(lXY z@K7oRPbr9Vb-Pqcy`vBaB-A54$!u=t#JTMv`H{#1v|SiGOqfc(Rq|(2BZ*u(xxhl< zfD0;f#dm82h_DZ#Rrp*O4LE9ABbtq>P9!g-bUT8GcSOV1_sR4<2mO#Z2JEz?DUP$= zaAXHy)aM6$;b*-GN>xU4vQQ6$Y4{m^n+hQwq>z*Ee} zodvyJ08dz$uPvdL_AYt!9e`K#Eo<+_TnqfnE4a zZy8^UFs%?e!?Z!>~w&}0+K}_ZpvgYs?B8TkDx#Goo z6ihgD;>}_h3GbIILvV9uJ+$ISeA`1sKhzQdmDk8l>%xyl`sokMDf>nlEPIy#@%_=> z1`OYDO8Nn!B_Q#f-`T+y0`YlwuA2U zIVBEL($}97v@?|KiVUaKJX28ns5@(>_fT2i;Aj-)km`F9RV8Bh68Ica2W>YcbAePe z{(MpYtrJED{gyqT{uAxSx;dauCvXX|$@+eBo$*ls&4tOJ5NnFwSh?CR?D@68zNpys z37q7BefY!G$4+)l66F#50;c?kTE)jD9jnF>gxVHBt=RIFL!Rn>pbv2l`pF*7;uuRs zc|`(f=(+-MgcaC9=HGdZB?j=GPevn!J)q4_uryq_gC@|^&zEY!YeD@^mzE3KTyCN+ zKQef51#Z-H&XdfbD4s(PEeIO{tjMoRlbf9BI3L~yL%u1|^ou|w~x-TRUVA`nR$~W3P5E3do*q!FH@;_}l z<{>7yUxHin?GUmq8=CK%(*?C5hD!5&+miYO#0|jKBZv5<{y15pq2**)e;S!w?xS~{L zcNm~8-b|OmVfJ#qh)F6k)g2DS1cJ=2;_x3dx>ocF5w7?qTAU#*2NW|RFqGH^pe3b9 zVnu!^V*_z#nbtHPhL<%+D6SQKVL$u}z6%}K6dpwt<(D_kC)HXKxy@Hwg2r38UZu?g zuJ~*3)tQo$c!TZ8ZrMch7=mF7hK=TI>`)VewkzUdQ#)6DJHy40a*X~dfNh+`@~#1B z74iWIM`PX$(H%)53nUkMjJL?O(5&T`!{X}Dl%Cs-$(#aLD7kZitv@U{G zL%6=r^s$EY?yQ<0UV-TBrv|w!WcC8;<@L&5_{K0T@d4^bAmzW3DIca9xVb0#^U${Q zdPMmQxtDXUE0(X9Ggc$?m z8tvY2?NQa%aW@kLuC*AAr}&HNeye91QQifO z*rg2*_r17m7yT8MhY-z<(U9{O0e~99KGzbhO>q^rHWYEJHhWWmcb;Ds#;b z@|K}vehmSmV%sF}dvT+97iy_~x})A%B={Ta^m}lpJRXRHrckGP3A63nE%hl&nr%0E zVboO2a4fRmNX2dJc$dK0mGx9Wnba@C<#1@}ibQ09yqn3oG@cXR-G%hb3xthj8V#v0 zE61-mF*KjGf9vALn1N@K-YY+NR3m-~W4l6A_TLp>U-AyV*@f#1>hpRVv+KRhgke`} z&7HgwBET=|oA0klg6LqIZ7;4{EbL6Qwe%vY=rtM_if@QhB6AS93mzX&c)G-SK0jCs z#08oxdCsMz4___YJ7||ohJs^*hL39;WKGYPfKm_k=DyixPc1BD(QvB6Nu9esLQDgw za^t*Q0p5yy$LF)o2XVdR{SQv1dT3@#mL)&MhxW#5UK7i12Jo7S-f4p0jqH)FAOk&a z?_PKUS}ubg>uL+8_yFYougJr+lLeI3CclJ?J~H5MeL-&FC8ThpC=KvKiGLT3+nN|5 z#DoHrLxjF6_%1;Zk_r(-$p|62caRe0@+~yk8ct=%S+Hm=A*wsVrnPplfnJb9p^Odq z`;3EOLGX(H5+9|+sQFxIhgpA z`MzUjuCj&KLGttXeI4Nn0|qO9TrZusf+UsF#n+Ke-v9DB;8l=roJ?f8-wQz$OeBq( z%$obgsP?AH>KQM0nkN_1x>Y9c>|@KpZPAluQU+Y}tlt%Wb>_j)L~thg2{1?fKyM7n zt~9(UonGda&Ms{O;i{Q_oPgXT5{X79u#Rb>&1a|_);Ipxil#XF<9zY7fV+5Q3+MS$ z86hF<#|uu@mhS;C2fkN7BPjU_It9pa{F4hti*#ihEH0FBo=v_I!V35X_78G0X1N5* zV+2YSdYaP2Q>FR_wdYitrp2~#%2AUvY#f>iU!x}90&P?*u(JmADIaCx!$5^!_ugl@r-UW}eA!of z?88YeNb;p}vQsp~1Tg~>sF)h8X+>^p5qZ9xUo9}F0LYs>RH^nd<@m^=^Orj<9PS`S zd{oj@z2!Y(uUy=(e7+QOji6mOnx z^Y2c9&3%5-u=BZNVuMy0==*Hz2j;n#1crX#oV)yYC*;7Xg(6{5;}py7yXWJ0w;wSHPJ|Q;0Popg?q|du4K+- z*c*{yb*}22Jljp{+EdMdS3`*d1o)MVO_4^SHpT%}%^9nWlx;f1Fk`Eb)#iD{_HX>t zb=B3gf!b)qjF+Q#pGQYr84IkbZr;s6wWI1Y0z_Ff<=>6RJ6J6@G7WOJ50e+>bOuWw zSm1>>Ld>-By>ZqCKql5rFJ`}q1O?2>O5%a63k`LKE#~n(lLFTkiivW1O|3tdUgTON zC#ukGHbTOIMCEBo=xho!l_OQsg=5io;xI8NyMHuI^#auarA*v)v;hg9cW z1LJW*s%2!IFxnaKn@DEDYw8=*0phM_4_eSxvUU164H3(L#6go3mv1RS zGFco2MHk>f>eg@za4OreikQWL?jNFs} z>?Bt&slclj>V1T*loTA8XNGvPn*dA$L5OGw=M=`94_W5KjzVDP0j?lysPjb^y{G!- zl7(UY=PYymim_*l-wALGRZ@ceriLOTArXOtBf7a)N@cXuhMIu8Y%x& z;u=<9OnS3p{s@>F;?tp)auSgCwrO~4MN26U)#cbHLj~u3Q=T)c3=I`xLe)zjO-8YZ z7Kxo-hW|khcjm&F5!OU;NsV-FOH>S_HZX}2(N0o<^9$XYD8o~D?-`kps4m4Z(So9;P1)t`JVu!DWHFw6=fm8@o1>3x^{>Lsmyn;j4DsIy zImA!B3G{;hLjd~@E|@Hh`*i$(RI9irFMjXPfY)e}RZc>s%`sj2MLUWeZz(sLD#(2< zA$hPTC5qU_J;NMIx)a5LCE4dL4MJ5j4z)3Gg3_LU(n&?o*v;`2fYI>4wx75B6m_)E z_lS$DrEtE4(0_aOQYdj}KJW>GcOftOIhES~*0^mQG6@>Z)gg=9ql<`;StGyc9d=oQ z*Oly5PR?rkdN;h@6vJLDY>vvy0^zOO&L^uqkdd$45v@z#l)F9GLw*PD=Tpe6$50qt z^lNyipwk$`nwic&<)NErG^^jV9zf2CqPkwE%c(EBY9^0dWnaw_uD8_Ffz`#nO{G0y z#^WuBl7#U7;R(au=Jy2xa{t@E{*{z;l(OJ13WcE*oHJA*Yi=fUqy(y({P7g!*70Gp zLYn1RF`eg_(zvx*rfD_;epc`%ibtNhf|EcB8N>eXrBihh2$i&4rATAhf4h+F&e8GK zYODWwOElvD?pfCNL3~rzD)0yG+>6<@F}u&`b-f`ATafdQF!>riQ5P+Q4cSR_qt>ZN ztU~|gI??Zc;SIF$Wyt>zA?THhD>|L-`h{a)Yl{c~x?Fz^G>S0gjY+7Se>ROFdOQE< z(ilLI3^ZoTujpyvGKZAZ(tb9&p&r*(|HjNU8Dvg%x@Vf2ppxv_T3p0tqoJ*5Re=dj z9fj*CoiF|Ic0aV%ICM$g*Lb9UyHWs;x7M)z9lmJ|Os``eHl zqm{k=YJ?n8Nq4ajX&mX0IC&>F`$i?l`2l>lT^Kw5x?6HZU6J*z|IpYj1(|-ywy4ye z-uP)14%YJ@-buL5La$kH+P7IQudAk*O*Af9cmy%D7_+7`7^snvheMDHVAp zNM*i~;GFnD9O$Ubz`K@qXz&B??LN-l?TEa$YP#@g zf(|~A&80>a%?cZ$8tOvQt0f>hW|a8Nbq3rt;A?vRgMwp= z>CLmZlG=Db4l+C|aX$RN|mh<}4sgBhNZHnMOEgjq6b|P5T)5 z-B9f9dETFG7vyvG@x4EzbKVb`9J-(00)aEi6UJ3<+SwTpXcKSO_`csUWBHW6G}&iU zM&24+idX3ov`+fX{aMSTv;Ht1z;iG~R#$R~+HBiS`onV`WmC7$R#qF)+g9F!$Y+#( zv*22`f!dA-rX8F@zjKA|dx2cBogG5O$@Zt>m)6EW9qOqUiAY{p4d9FLo8HD8UHY4s zEh?+-kRYG&jLwjmCb^0I2F#CEv%#=T11=k#Nom@E)=Xmypz8duPuZS`SMwHQEQ-xC zVOz|TJFmc~Oy}-P_I>)I?l)J{ma!-eekT@Hy6{_538_SUK}xp-*Yt}SSzmJ}O}Q8n}YjbwZo;Y7&0RBK0wHwgfwuAke(FMJ;Xn z{Zei06ri~fv&xBq02*hu&ii8VJoY$rnDb7y_PO4e<>ns^H<22A<{|swmNN0 zS1QZ)lm|o?nSrX%YEzlg9U2zRk~2fW?az5vt&X^QA+tvf_1Y@LVoXSzLf^rK3RELU z#mF1!O3J!R5TU&%Rsr*lH*?`$dZo3?!}wA4^~XYIcC|v|%+tK&%^(QsT<0M2 zQ8b&8u_)+#X6}rzm(#O0G8T9t*pOdg>cxkkS$~Iy+4cXij^=DyRyh&!yvu9ZcsPS- zqL}X@jWDIKDj|H()sv|zS4!^o%p^(i7`u!+x9=EA-Ufg7zk8P|kIv%{gc&niB&%2U zI1E8{E+r_vkG&3)8BJ-0J@U_TsPvrYQJZv8`w%78em7=_fK~<2Cdxm&ZG7W6CYqMl zkI^7~j*w#RMIKL|I+CBtgQeDqcrDp+QR^aYKP*eZ9XaQd|oqG zMUuXh$@FkF;jUE8z;YOS3M2(Le2RizD?SYf*IaI-O}* zXXFdAnOHjD-hP{FOBVp;AQkDt=;p_Z&s-(=-b9P@t9*}GZ(Q1u{6M*1)qU=u8|na> z`D)DoUDuij00N9+&A_{_Fl)eqtiwR!7((Cknc%Ba7g(cTeg9Yq7j@#NyytO3JZZMk z_^!UR9j1hx1h1G8{LOgGKT<XBT?`BjJy!LUpc<+EB0{G zYB6#`LCv!Yl*W~vlOxE9S-*Wqejwk2aTrK^ZN>$cz7M?A*ar!Su1OUf-ixkEz+1nm#d2tR$S%2C&6#F_FLA znXLj^UCs2d*m3u1-6*>(J)fap&1P6Xqi5Mq?*N@kW`uP_>|QKi+roaB`D(k$?}}fU zyt{T(GjVS{kQ!8>+1XDeG_z0k$8yEC$r<3OJilSudjuHHGa$vgD!i9Fi6Mn+a8yTQ z)er-;JruGnjUeDElqCcGi>P zz*%-06Sydw?~4q%)lLr>rlcRnX!@3`@kgJoCvgC`Y^;jctvJb32w~b92eNzk2j?Iy zhWWi_gCOBJRH;5Ii(jo|b{fb8Vzp_L=tKZHuZV6tJD!DcY&u$R zkmH~hDDw~zxAwmFGll`{*0ifTa!FzN^?41@Xxjk0``YraeZu~(tH#X$6yE5aj2#u4 z&=|@e@5Tf}sc(rF->qQq8KEnn9-=z{E$(pvWYRwi5y4PV9++)@#YxMBZH8KC`GN1% zLNlp0VN~R2os9wReh;!d)D$=Ljhs#epcT_lY8hDsC}#%=HN;OT$u?IeP3SApAfX@N zrg+l`l}bEYUMX^*0=#C_5Yb-x<&o*atDy0`*adFn40;FV8M*8?NX>e7Kw4B!hj|tq z*AcA!?%1QyUPUNTiBF-dkglC_wNNUIm!Vmoc-Mrcy?&NllI~E_MKloW;_j{nY-1o_I-7)RAnN<#^fB7t2IyL-eCk?gP7WUtRi)`8JeYUG_(DOu z2SXGBZX|NV7=J(ck`E5Zx=f8|%=Y^FK5h~2c*cu8MWsT1wvE4o}yh*fo z<-WF?Q4dRVtVScmeNUBs*TI#MtT?qh-Ha&E^s5x83K)5(4copERviG?v}Vi3<7&k-umN9Z@OkUSOD2G0#MSmL3iC3(C$W*bgJn2XpJ?c|Cw3MPcu`% zM9pDFbl7|HW}AszlkuFq&;fRkJ`#6}(^uz*Fco|}IT0}Ms9+Vb)UyNT9Nls$m;_qL z(1ZG02Q8zn?;YMbbvw(1G*<7Y7XPGt#gCZsjhtR8$n(Hb2(B z);f{3+Gos^$u@AJ5@3j>dDaYKwSXz?US9eZ6(N|zI>_rc-;kB$DWn zj3R0WqZp-No_TZxt*EGs$vPqCx_EBCJ>d4k*cMYV0`2ldD#h`bI6(rdGFF3)wnQFw zt%#&zmWaO5Al^iMUn;ckcAT{KbMbv>ks%5$(3=y~+3=nCH=AyD9duCXb4^n?xxM)qt z%v>@iA+-AZ`c~>gJfq6BCgFS&th#si#bI4Jajztr&!kR5NJ7+43F>Lrtoo^P=ELQk z1lOg`axo^-0-U^>iW<)?nD0BvC3%VCO#0M)h+g#sAonldLCbd76VF3UwzR)<%1R6giU-p4MZ!q7ptUdb6hquH%`nb_Ys89qZ^5>bh~r>A z8-tf&Pdb^B=zGxZEvXI_;`!lz_n;HWW)Iwlar&?OFdSK2q~I}OnlPfQ%c1y#rNjyb z&+L)L3Dv3nxu=dH-M&-=&_w<%CpV5b`FqA;cOSG3!OUobDtKs{lbaP$?=js|07y8Q zPt=Xy70EjgTXbGA@JRgfU_(8n$o8BT%Y#P9&SBshem69U5jwStKj-lquR2OizXHep zI~a;$KgC>b_UBN1+$|4C{`P=>LGWDLp?By|Z=z0=Geg{HCc~yxFE4WKdOtNnpX2*4 zIW4(0YR$}~(*AU45Kl-~<^N&nDj1?{n=ak4bl1`iOLuptgn)E|bR*Iw(%oIsuF?o7 z-Q6nP(hcv;^L@Wy_r7ATnKS2{!86wHKXVQRi@$O^20#PU_P!a_vZR0K>D%ZGf(VJO ztc^<>v_Aad9xl5qM}-kBtK`m#^+qE!d3BTExE|*sQxCHk0kdUNK8yGH5H;Hq=m}{X zDj9-#jB^Zsv2BIO*Qt!Zdk~cHK=Jq?N0-porQ98*#(CP|%q-J7`Srs5m$Cc1vit#$ z=-HIZRtg!6)ft=Cigu>&nj(A((4nJTq(iS0mHhpE`gCzZTp{08g=ewaSa!oI>v8K) z0TShaeHj#|m1LvhCR{IRtsMTUGLE;el%{hD`g^kK#pwuf=@DeszgV(li=<=`603I- zftMPmpAxM)kWkEs5?p>r|4!60F@&#gL*{5}8Ih?icmcA;!sx}OBI=ZgDs})arv?i*Gn`ggT zX@`mT6SdU!t^qamnXKciX{7m)R(Lc+uQJiy3qjT;$9cQfhEHl<#;$VAu4n-=8ITlr zVB^5jjTqzu@)cNat}bjf0;K5ilUEV?JL->zi{=}iEA~8=(RS&j`xN%k)Vo(Lja$S^ zU}-oS{W4@lk=?c8Xm-^3u}H^(cd0oMPM^;a^ivj_F648Rt%dC;+t{@@#b74>GKrS7 zR15Vt@8F(Hi8ZyYcnz0!ImyPdK&?zl^rirE3ucT9zh0g{s8`jptc*RJFbzxA;Zolh z!ad60$1I1@Y|hIBEuFC*E?wU$N>AfxdZxR2pfO#>m=G`8=Q$$hD~+>EbCMYmys&b z4`7YO`51P*TC~M@I634&2cMN50@=&`;X8&OTI$rR8bLN_zcFQ38m=FU?8YFG(74o6 zI2;Hb%I049^Tx+p%6(4}yg2+}L9_xXPDvA~RS&&#?)ox(YgG2`hc$`GGW;_0sR(l; z41lXLiln7;;z6hrjeI}b%o!8Q8=DFj{$(*)k{LBCQaDF=13ryXcK6(Zi=1B92-2|n znQby~^xq}Hyc-~!8(?()h9d1l$Rm4ckp?T#ddL7tL5Fk_@%$6J$)2Pq{{x_G zr9tYePs-z2|LM*E`PXm^1@|p*l2u|gqb{yn8ZPVtVD-ou7Nsp;wsmOkfvoKIK;-iK zh04wj*aCc=rsZLR5*_)^)AMGDlMSE8RQnLp!7t|I5th-o=P_!jcroDVz!e1vnV|AR z(KtFC6!?J6PQ{5U9+i^c9Q{Ezz^Z=QWST`)$`eGp0U|h%c>gEw?M_RDfidf2^k->Q~`=6&By zHy;~ld9I3L%HV}KSR3~)nq*0hzH?D!w$0wJWgi=o8JY;H-H;L4UXvcsbmlaZ`7kj@ zBfo?p>^vF6o@=BDC+uw*+ccYn?+O=m574)?SG$$iJ+SZSw@0-1c_=_y%5<@r_X@!B znHtKst|F7LrAVe^G`-2(8t0_AHDCyPtwP;A$@*H*>$Lm1*ej$Ow^`_+sWDF6WwENM z3F*w?K3YF32NNcJAjcY#<~t$(@TaD-hmqJBKN4dAowSlqXLd!Eb!?wgS(qJnvIxn% zS=u5_)~K(}A0j{N`HK;94UfshGVjBd#NS#r{)D%ZWMv&SF~3;3rR=}*$-G~Z;j1)s6^?losP-2JVx7@HZXy5c0HG2*TERr@RsVANKGO4RR|zj(~p zN(XU8?Pb2M>4h5majon(m@E13xA;EZ3~h4u^)?319y@kWg!fr2oD5d|X4auNwD}~u zrnd;*p-)gqR5Sy(TnydiN~*935WTX&N&d=P4#Hm@oR==qJu!1jN<)IYci#l%95=n} zb-wH))ARp)y^sh%nqD3OgvneMixHe7*1%FFJCi1zYP`3&+owGZ>xZEa%}6mYZ3(7t z_H#Suzr>wCS@Xu{qOQsPk=q$iDYBkHriZj44rX4}f(rijsLOt1qSOf?#;6&X{3QW) z?F8=2gD&N_y0=k3K-D{#7hHdCrjY1a#li_0vp|W1%gzuclclKW=4N&<58JudIouZRcMv%C)TjMs^Bw17b zgIyv#Qi^K?Gs1Tiygg)D_uq~O_}7Wtpf@b0gTt~n_DgE)LfJM*Q#c#)r_n8EY}EbD z%7{d_o%~R7-~xUbFvzbVS=DK>8E$JD{eh19hVqm9j8)9Csti-F3bu6V+SagqGHN*X zNNGsr4XMGZhOjBY5;p}P@+4IFLw*;;v~qow{}Wp7hM(VC0gIwu|3wDhBn3U@MX*lDx3aK7TkvB+V!->3 z3m&%63C}>V_`As$(qFQhUd3L+LcqZ~%pND(oU13HiUYJ7)D6q>FT&G}VNPM*7E8eV z!*;$NfB`5{|F^Q}z{+NYRKus@8|zOeDT9dD>mB}O+CfdSrWi0Ii8f+bcq#N+)v%AM zC&8~2$u9tD`O zY$Dsc>d9U&i_LccGT~K3?@y-;sbJzC%#qe*`$rG8LnJ`w%q-sP3MdQHuMRxNKPE7? z0l|0TQ691XGi(xyE8N=M1* zq4~wYI1(#l04S>(zjp;q?bwY=Px_6=b3C^DonQMYDbnMpVN!bE#1DbM zWnlou>afH(_Z~^(>*jSMgUrlm=E!6mas{ahttB(84|-r^YD%E zTheM+a$z}g)LU4m*kL+iISk=eq`$|OGyr@B9TY7Ff$iRAtvdX#tQree2Y^S28c;Pc z_kYdd?GQ2agdx{zQ8CRa4S3!_CcLR|X)Rnl*_L^zIb2wsbT99kAnSWD+Pm{Z+J2aL z|IG*eH+xe=x`+Xh5nYB)u$nda>kiFU@5-^)t=YbT47H_4DDM5RdnAa`Vyi>th$5?AjkL<;ji{lQDo!s=;X~Qb znX<<`yY$1!=YWsJ_@0M3tVNFu8(7Y^hA|FjYps_*hjS{u zn@JTcUeVw~`_i9CT&WjC82f>I$Ft=2v zftGWTBd<#w(K00xVh&ACk7k#nsqj>Vd69;X%^$c-53>59%L;>fl`mXFgD1?P-ws369bsZ zBY->yZp*ctCIocBI4R)>q&Q$IqI^oGUr@`edTS39oUzL;g)_ z_&7827c@5eVAwTbmbX`cq0rKqr$uB{I6vPGM)TK6nLFZkW+)8U)o8&Sg<6(mNoYhw z{ai3VZHYvfvK+tcO^Xxu{m1v~@i(+BJVAD7zyB*g+^iF3N5%BQ(e}E1q&5nAH)iN- zSBTNf@K-M8v}Ah;_Wb?gEqLbSB3i%TbjE@d%xwXPOeLCwWdY=@s{fFtXLQ)VODG!P{%bmdb3u}N}IH3|^S8O)f;(>b>V>C*$G|SU^<-E)_Z?+=F*?afNK4#L zSNIATDI$S(w`iW&MPi9`&1odNZWDuDTDTF`Nzl#N)k1U!a_iWci5U`Bu-~R@G&WDM zL);U?`y4fuv0}fqV!Hz}>x7DLX8HzKG!8rndL$yf2T!7o58V0;Hr4-FFJc0J?Jvfa zG^pH+s_Y?VaP*74Wl9@A&k`SiILxseN1q%=8OVFIfhu3_^1i)Hm_5CGzi_Q(dq>-% zxL%k%J?Yo5*UOb}jtyM4L?D*w0I{s99+|_dt%V^#nR#6$6Y~%-KN9z5Ur^OzN(J?%NGUJ>?!p8IUv^x-QxBXuFi*J1@#bUum3>8iAAxAKF^o`MVJtp?*X06b)|^{7JHBxx z?QFzee_Lrv=IBKzkR}7U7jQF8HS@pk-wuI}XovAWe6psK$F=~G^#n&cU=3fqi6`{x zP%TSpL9~}V(t*j|MnTG%zMF{XdV~D;JK|;2eqgmYhvCBhaHrHl4C#D+xuWsZ!AGk! zO}S6CmQb$ztF3*w(&-o`()xJDH+sd_>e4s*q1G)rq$!IV#9J?xkoU;4_rKs zicD>e@V8G`{lUr;4XlgD9#r61FElsP4VKd(+qRKT#)5r{MGD8$@1@wV(sr$CeqF1- zP4WIlsb2ks#+oZnmczpJIbre=S32_dwl7Lkq`+7tx>HFv7~rwvhkYk`T9w2wO1Z2R zkqeD4lHhn%LPr})8X6trg7t1HstIW=!DiVKa1`jcMH&`+(1#Zgxz!5_yWOE)?AQJca!&1h~2dZ3uopU$0niHkc9oLpMr z*ar5nUqR89XQU$@4l`5TpL2h_Ww}?$$(9dOSa1wvEHSS9G=hs;VK8o0@u|kzUrTFh z8z#6I)xe1vRgOrBR_7hbROSNVw{gwvlbeC}?S!1n=gruKJj4lgm7j#hxKUm3UKe>b z!{Lkg%+2KA=)x6a8mN^UqsGT7Z05GymSa$vhBQ)< zYZ5>v7R^Ganxtc-_e4IXszN)Xqbt$yM#M&p7vK9WNGMulVhrW=DE(kh?Cu_=|=H(HlU}U#YvlViFbp zZ@@sj1R#_IuS>RhO|g4owiDNAz=|Ss(G)aTmTH?+6|Z}=d{aw=!`r*B-xODsn2Edm zbe<_C%VIh`LGm>CqVdkK^Yl7h)CjWP?h&wp)F=m*Bg(I|&4l~+sgEn4iN+WIN5&!? z+l*UvF?=>n!haQpT>1MgH{e-`e|!r(i{eoa@r9Tk(RSGg2Hd@?2!#7G+156L1y{2a zA6BxaKM}ocAn!nUPu1Y*J{mQ*X+gWbuNvFD*t$pfiKZIgT7;K+%z@U5uS6$RgOjDV z_f4dm!kK|GdIr&?#ElWb+TYvUe3=#n%jn&T`!%2mf#e{}7&JkIZ|EO>T}FZkG*wvf z;3tNhR()n;Y9IMvJ2H(`a8Wo5Wj9SS_~+BLx*heBVr5%8ehBb7zgv-sIbXwQ9(m3A zC^c2_5C8V2ENTlxf#6q3M&a`T&`qj%1fw|YI$Hd+P|_HwY<1jfsD>weTDq3Bj^9&yBd) zOj*?xaK-8qO@6hb=!wn@fbhs#CyWe-7?0hg3rOIJsUB@RWp^jsk+TJ2+HZ}>7zC|a zCJkpqdbx6Bb4V>BmlRo0-tZMg4!a~Tf`>>|w}ChRPmm^Ktox#MSy*xJ2yu^!m-qXy zgiVaU23sWcWL%(-_{NsS?DUgpwQ2-(H;zMw?p4 zt#n5aYSDl@EHU(&3{bl~27>IM5$^ zWxXsfztAQvgc~CCmcg7dCZOjEG?(^@0dJj5 zwGbd)GDkxUT$P=wboP{}g#}${gqt0zhaW(Banze0U3;*;%GPB>JchG|#-rpq1B%|0 zJAT#}`>Sa&$yF)L`YOh4zuBS(|Lw&G!D#1gsBz#`jp|q9cM^uqzEm`TTh2m2GGPMfadvcu93&5Q+Fj}G{MmFAp=+~xhZVp^hos-ueUpNHdO|C=62kA zCM6*ei4~qZK7?)M=gSc0oh&fP7RI5>q8$1d^>Q7Vq%17ZG(`&1{fM0}shez$UwN*X z{*vG{GUu`UF;8;I&ND8Ivd`y?aMZWdqz0Fz8ow!|me?_iSie8}#iH}qx ze$S;!R@L06U9kuWBi`B_H&B!rVWW|k&jtPx?9@k5Sw8boZQm>zjC@lWjL9Zp2Qif9 zg~H;Xs!)g)yZt!}K__;==M2AJ!u%%htIqF;wmO2bndle2H<hfzxGU zSCghq4$`_*!OlRR>ylMku_>?)EH19V-hgwuCvPVRw3wJ>C?ZIkqEmFvdf~Js4HATIsFLC44$1vr^>HTm4GG z6pgCNbY5K+fk9u^k9)J#yF1CI8X3R3!UYFDr!Ca+2mPxYO_)zJ;*ZGu!oeylzHvFu zPVrz{mBBegY+N4TMQzhzi;rr~1Cs%+#W!dfs4AXr5mslbjyuK&9;Yw~?vA9*!{0KV z5!UTFjNcgwd2@23)7fl5$Dt~o(Y%kYDlIBHxy;t3tlX0?c|Om7cU>kQB)`Q6OL`-} zkapeQyT1g~$p+*x6{J-My?;v#t;j@~CIiM`p@pWXh){@^80otF-oZ=u`BXNs_A4X2+|g9Os~Q4U`CC)G z1Ux(@)p}o(o@QTc>7b=0w^)F3nhZk$kbRucZpdB${(FR^EpQ_bzbVt_rVoyg$9yG| zhv*+yi8dqq3CT_qnPu;R{1a_~C62`te=3hI4!Ir?9HVVQ~10 zHGxp|(p|a{1-f}*mZjPTL|AUpBU_jlwxB8k2gChK{%o5=7S+2DW#R{rh@(VTI*xV* zXu)>9bO_wb3sBxlCX=symplk8?AzM~nIZ5dJjyMf*&T$N1AlopsCq#X>d7Mrhwv@B z53_GQq~!hb_&aGaX8s$cf{rE{Kf+a|;-us};N!Q&5yFTsMlD7%&Zg5O3}Ohe{#gLk z(bHA&Cxg-rp6pFDnl5{@+BOa%(`YGw)VHrQCTw*r6Zu}{UJKh9XzJZ5w6fgipTi(m zf|Y*!GglR;S(2%Z-zQN#L7S)S-x1J`S;j%iXL(3y5NoMi4fiWrB=`S~ibkzZ`eESQ zO}nYSNw@fc@Hbzm5TyYyGKjNnXBQzocCV7PT)aMw7xxJfR~9t0o9gfgU{&)0N}4@O zNS|xT9xf08j{KjvN1+%0u`-+$aKsMIeKo0c6)F{+{NTDR;)Y?v|4qZfEZ5m1)xrOM z2G|cD1u0jEBR>H4O9%h{PEv@hY_>7fIkiPa#{g7~62~iq5t4&1p*AzvK%_`#d1C*Y5JKYC*)HL^}A^hy@ut_VHC1nAfXXW#c|`*sru$n?Fi$hX5x=) zTv};)F)AwG6_xH}oIrgdkpt@qM>Aa@xk_~2Tzv*;%gAh*rq6}=+dFgmI$m_jh=0&7 zUNv(7z+H@5yCU=4`6Jw9n)f{L#W@`GYeh`u9?=2ipDu?y09%OSFU{TU?G4Rl5!VsF_Rt3>aGZWBs`TV|uUf+I6`Z8pK#>>9{t1=V;ccI$n}R6GQk1XAyD^ zkjRlQ{jpVW?xlY1^2cEH->eQlRA8iH(PEaFBw38%St-cY=@v1EB^$lH%wlH6A4*<; zPTX>bWLTB1d{Y!T7|@CaCm{hEC52$G1}L~Q_ZLVy^<>c$K2F?pS%W3+0u0An<~Vj9 zk?y1o*ncAzD((>~w2^DI?m=UvF?3#sE5zrwxo6uN5E!fGMX+tvCb)dq1yu>_k)7Ez zg4=+@fYqGog+l7YOkc4*x*f!3%OMa!Fp*0-bpCEgWv(sbqRl@a3duvU;L4RJpu|1T zL9tun_w+nnx#br`OZSL&V2LO?KJNQ*32ZhzWFRPEyRoxSY6q78&~(BA?b^+-P`6P< zF{DenG1fd|P@~g?CxTOX$TLSs_COOZphzyAx4X0(+YbDTVayv&OQ->K8Q%s}en{I0 zban*z%kCc&twUIi(Y6k8l?n z^i7O3-Q3B}5`LKLONi`e;bP_;5QQ`|AT)E*SBhjf)Vx?Q`B};=YkS6?UJgC&Q@h-o z63?Gu%eI$q)|fLOgb%zAfTL%RDdzN?^HOcT)8mP{9aqy!bHh=b9&l5p5GJUoj8&tq zm}%R~oZ-6$A_~Iax3A<2RBp+mlGa^&m?Qy-63{i`S<}&#%y&N;wbap;-;AZK;!*Zi_uY7AO zP3g<`*7UQjvWC)G#U->_NS}iieJBUGwz^pD;ra7=0Xv0ypyM9i>#P>mERNB9?8n2z zJ5sg-6_A4CCU$}_u7Bli874p6wIvhLFuVyP_2vjtfP{MJ;oW2UXZ+pGl#aVf;=z)@! zhg`9ToD*}Ki4f22XhSaBhsBR36+>;ISTU%(ydw5^LLTAUY%}zi8xJ&Sr2;L59w@rT zCrc4c6nS4OGm;M-X$|*f-9ZKPrQ|T*i=vcASjdA3-Xc+g z!2>M`GHfFe>U;UAHjR2beURRAHcl^Be?_wMm^Y2|*rawRC3mMezf^`*aqv06v}Ab~ zpL}));7$G6J*+IWH{k@0^wzj*5!R?z*$5BZ{ZIUTkhQ^C2F_8BnzgS^skVVQ1wv+* z)WsMV@rkDg;eW1*)NQHw0s&$mTXQ+ zTlWo|M4p+(T~EP^UEkAC>+onlY?z+J9wB^&#lsHZw;fq&O2AwyTQV-D(KI%}HB}q2hY+WO$4n2wR4B$NGP4#RcU7>J5{0rHX z)+NV1mNj>vY2D6`Y7RKY_#BBr-Mn(N7IC;VSpgJ)^6R7T&fuXoqb@y6-JB;euJAyc z^VWMM`)Uecf{&!%226?{bz6x7>^QjpWeZ2B3F7lD~$+WY0u|oQo zG)ZQ|(=Awhq8`qgxzh5}ndEnGFaqO>M_WYa*ycZ#G$`a{12lDx8*|Xx)YMvrK6}n( z!7!ddPRu+8)?pUKr*3vF5pksoys=7%x)Dm+uL{53KH{2ZI7547XPYnhExRp6Lj6}f z5nLPU)CpgQsFb0f&rg-srYvLq>@;`1J?xa7l9DpZyEZ9DUs-60bXCp>Ezc_7V!?CjX`CaDQWp7%DDy`=2dx}4eO3F;kV2~=$`Ha`0CNeKJ#$ngB!P+}z zo8q>tn<&tRE#RR_e&?JFwLIVgRmMWgK-Sz51?p~_JhkFON(1e5ZrT*z$7nhr35i-` zC{--FE$h(j=|h82Q5I$jIps^Z5eH!b(9JK5zv4b!-Vjl}>@D0ebPi`CV^uopq6ikv zW2sffn?_M6pnCQE3)+T6i9gvoktQzOVsOhTsWo2O*asP_-0WT$=z7(bOiB_0PuTj% z`SB9|`D+{f+xN1KYt4cKxT`yyWw0ECf65vlY`)FRi?W$L;Cf@iEkIX*v)~!V+~hH- zMzfL(w7AF-N9{4=0lnlbtbOR?CeGHELRo7@vli|MCUmohZ_e~ZGg?d@(T->K2Yk%X zQn^&-@I@#H(L(FjVrtt0KSve2XVq|uWHgN{bwZ#1#M@*=E-5j43qxLdsAm$p{3vxX z9^iMkymjcIeCR6)e<>=}q_R-#oElfhDH2gst%jaY;}N|(cvZeGq5DNGTSb5yx;Nvs ztPj6WcPK|zRK~Owh0vnmnKU)%EcOOtlj8Mjq8lVqon0{NbEBRKRhIn%2tA8b?d{T_=qh!k^{veML8x0H$HXK_Tn+>* zZS^^9n8(VY)>|{;O~^fQCgjUKel6n4)+0=x)a^S(Rdgtd8O8ml+>d~5KHsUO2{~$NciCdH3!@E4 zOAYl4rzDhmhN0AF*fE;lJYlY-h`FEb!SOzz%Y4CyJux~E@dh@Y*EnAiW5*v^yv24 z5AHf8hMp~ju}S-ZNWgrAE~SC5!o?pEm>61Cix985NmyAM);VLv4+@utKN*q(d1D_# z+b9RXs%svZwN4J85z&urtU=dqsA}`jpSxE(Jhl*ub198v!DYzKwdV+{zi6KdL!e(9 zxO~i!DOD-`nJ$M$g32Ccx4u9-1^}Zkq+n8dtqomKBV3dZaZukSF$;>tl@T-cx*o zQa5^`!x^{yo6*w2L7CYVWOZuUbYWIUzEJI-isi&#(I88CeXF~RVHLcGB0U++rVD87 zRTRgEHpb;BJ^Ql+qifB!@SO5iU7mvuE`g?99IA!u;*xxvIJTv$22`0x~>*G@J%n zB;S6^c9zGz)v&dLzN8}N>_J4Na!4g3t0G9%+-K5oVpBhKEk=-VtF%>evM`U4lLd2- zE6W@ziXJH+`&LRqB0!KGdhMmH-~R03*}~afNQ`nAxB}2N1s#BHLga>@t!km>Nu!;D zr5NZJquZa9?2@Gidq}xV(+d;Zpbl5edGA?^xA}3mjfF#hh5oMq9$JJ?ab7!&kZ` zC^JQsIjFKi>jNO^DVqLHUb*0{1&qJXZmm(*upN@Y+1fke#m}iTsz2flQHCeTu1$27 z`kLI+I=n9g<4d@hA09uKG~67gSIHQz4jgi_zT^?DQOSAQ8_!PVbGpTuFDvG_@JCjK z2~$FNn96d{%Q@9_f0WaSvDGB)eaFUmKFSGb6G%&tF}CT}#ofvwa0T9V?n> zl1kl+Xi$UGXSK(L&5-9b`ug#U@g$fb|G-n*LI*iGUA5+9#;AHQekd=0<%tq_7Wv}1 z6aWAq9?2yN1osDFM6s$PdGGZ}Qhs0%b1XbsF!5L8yE_K-?iH3_;^ghnm@AvkDqzoX zTBRJRNk>JljWg-Z; zKaF|Bn?qq=13OJZukf_i^maj+QZYIt=m#2vV3yrIBRyw8OHkoCh-%SghA@_C`pcW+ zp4F?)r{s9CSX1X8t(V@hYPqdyKIM$O21kj+GZE3}--`!B!Pat&AOcRb7&iM5hV-{9N17+3^eHX$+eCCR zypuj6L@AH1j4TrlQFbe1s5^>7eo zP2$9~(6XCEl_=1rvWjD9B}Rfl=NL_p?2U3HnEe3ZUGnQ87Z6MsipVZ|l zd9Fee#KwYQYr;PEYjXJv&zT6S;0-6<>^id z>9PckYMHG3oMNY^`4JH6E?r)F9_vXdmnj||0)hQUD9t7C^``K~`X|HWmDo@15GBa< zo2GM9_;@M#1@Uahas z4Z1_R5pP&(6uEQtBe-QAQ;98frU6g{yD(O1$mr`xhIYv$?a?|_pnQ#+ z5Yl7Pzofh|!A-oLUj~YbxgH%g4wwAw{`p4y{VQW>p+YGHj^|ClVp$K=?BiFBr|B?E zj=ZsS)GEGRFC^h+Pn7?XYGFyXhQg#})HNB+<{SUv+WP(?o1qdImZ~`ut_L^ut3zHM zpG5Y9My#CkA3&x1H8vQdxvFCU@C;T>!>`5K8jjsX^ZSXAaQK}~XeF0;{R0Y{uweP| zB{N(hm*=Wl9*$SfO~dH5XkuXzEcUkVLb8I1Hj`rDu|n8t#fC?%X+hJcL_OVeJE!!V zx-p&GILKcIP;jekBa7)5Jmd4%*#VGFu?Sc*<#N5Yc@uP}|9R-RbfHI30 zt$svMb|E%dTR&9^lJitju8W?ch7@jf-t@C5Y|UYCUL7SMM2ONEZL zp11OwguUu{i|nHKj~CP>@zf`@UifG_4Oxgxp7m7q=MSk{ejER@h@U$!u?ApqzyQ|| z!68nxc7<_z0vNJN2?V?^rSco;Jo~NE*hgT3n859-Y#VZHSe$39_N8NSOhx#dPbrI+ z_}<`!uhUh|;8X+mDIlMPeG)Hzdr-~1T(tH*d2;Z&R;bwV6yG8w5T1Llv(QoO^xj!c zE*ZdCE11F{VQ~B-UqXP$jTlf+`U&4y7dX(WIGVF41*rW#z?hKMth3f%r>su-5_9uf zQuqbzhQ%t@&ZTjH=?c4#dUb5azU1YPe5q(I=L@xctyw`}1i;asUME(sTj<;2#7$g= zRyh{jZ6Kps1VlZWJEbGq<>gBN2CrZhX{|?Sm_-|M+cix+&VT8_LhElw@o{@M5E2D4 zUdCVNs3Fx|`@?KR>R*CHM>?}37VBVGB`as|*_L2ZBZ~$R>G;^*klP|92uBF^Y8xB% zA0yJKMNiO~z`?Wy^)@GbA_8Wh`TI+W^HZ!G#w9$U-#bzDQk7TP4Sd6N&d@4EldmxN z0)B(6?I}cop)dn*?7#r_RvdJdJb!+=c2_mE(e|Xf6JQ8Nm+V#jcp#6M*gJx8U!9@W z6U;ICtK`DY0?@M0{;O7z)L<$#a=GAMMQ(I&U>qAhr+nY!w1c5C(>$8s4|uB;0f}*= z=l1E3dejO`z}|GostKN(t4c)Sn_gI6yyI?*@+l1IB7V$swP$x=ajKPo*WxyeC>NW6 zixizM1D#PD%4k}yLR-Q1nf^-i!?1;3EOVEpToy?PFsgR99NPE(^VjMpdooY4(~@A? zEA&`R3!_kL|0dV@6OFb4Y^{!Z2>jjU({RC~tNvCBFp10WN!;|qUB$*rN&)-#V`p=$ z-{CV)nQCRn6jYIJp@Cf0gvQeht)De(J?vJJ60LcNH2am{lCn#@SL=(YR7YAWJhGLV z*dzABJeLk>XE~v~`Z0jZ4A4ci7=E5go@niw>NF>oGf%v% z{*-BU_;(Mc2QMq3XW50*KYONCY|(INXyizQ@N!(@44t?o7i^{Ne?);M=7sC(1NfZ6 z+(L?PcPhIyDyCuo0obStidnsooOD9fhdUT=`L9i%uUQDP&ft1z$%-NjrS4l>#%v?a zYk#8<**F%G%-dE%J)qO(lnN;tW zu$A8wOwU6DtI+UP3f9;z6Pm(an|MgHf7K<)S5)U!4s9??GaG9VYnraCnPfNKeO^{M zv4Z)_x9*3}FL4XE^xfi5`RaCe1in{1A2y#(UoM1PM^NmT@5_OtFfEWn#yW^LvI_S# z5d6@#V~S(Z1u|ocWk|b7-*m{NJc4$&3br@TmYhKhi#IVc7kmg*etF70YIx8 zC$~xA@kYifN{!YDdP!wo3o-23|89PUK1N0iZ&({kc0v$fo6)AB} zEMk)|KfzqdebPhRs2KePOipMf&@|GRn{%lH!b$JsY%gaSvr`arh~AW3cKIE~hDrGL zG=Db8*yykumJJ-=G~LF6CxjNA;w%v<_cNV)UZ(3C9BJX;I9~(#ma8$^BtMO9^@b!$ zNEc?%H@H|fvCxfO&WeDqxsidp(}TK23)HlJWxmpqBbU_SM=;E8|2Bedf~cN!0?%nP zW@+T!D;459DyEoA=M&lMyqPu78>N;dav{t51o&RrY!*euSFy+%mIEBUKQ&q@+^#02 z5p-E1X7a=&GM*S#Lr#X=|j$2zhjWXQv@&llah7cbhf zT`!Ea%_jgP|5c1v2R8m}WEkc%tvLcgDX74?xQ}D3#yq|C(9R2;Mr++VJ0f zxl(wU4Uo9gIq1|_c%hUvrjn$(N|ThGQPZ{o2D4T9H#MQ@qrKr$T>-oUmh2p=J)0|Q zWmZPx6c?@LN3HDtm1p;7DN<`gejSX$kKOySe%T9|uP;`!1Aox3>&%@vfnD^8iDU-h z=-<7QjTCKns*v0j5n%j)R}`Q^V6f$ILo)0zM3ul(yX9XX2>z@qYSxeX28BH$pOcqs}tt@7WQ}#KPN{@1(dFi$Z z0itG($DD6fcaMgv3Rl0<#87OX<*d+xc3JPW`t-KD2A{^+QVy84%bCb7sLMC~!;UuT zXu}}3?x}+`3yytrWaZPad4Fkme>U~TjoH5KPfxpqs)Zw@!;BcJ*$ANS?ZOyT88ISe ze&X`K?jgGX>x+h00>2Lf?45ktQvSO>*-*2ON=d;(=%1N4Okejm1 znxhYxL)kvN&iy(jVDy(X&x4)>d7U=T$>%@2U0IT{VFnUxiajU|2P408#6!eUIa${U zv38sSKopDB*IEPQ#dwW47U(#VM?P)EF;<)jy`8y(pWzc1aTUxt35sUJKz&VhoE2Eg zY4#Yv4@-Jp!i=1cBv`1x$?>ky?FAq;e1#4S`SUMcGlB$b-A$CdeJ zeGN2D`js2>PA(*ABJ&dg2`1gY6s)PamPS={V9e)*8iC2%JLJ=sMucbD)^-@m0j)|x ze8Gz3n;dYPCpCklvGd*p7YyLVNT#etUl{ZN9i_?L_Q*RSnBjxDgEzr7yQZOx*URuw zZ{Us2kM7kfy!pf{R(hF_3>pxqFX4%*G%783@S-_^9a7fC{^FCr4ZCST z+Lr8I)q*`>K(G^E^n_(G0x0L{=)IfuwTm4>t~FxmE{)}PhxmJyN=I;H=&Xw$&acgP zz&*^)6b(+BrGm|<*3A_Lv7AbM4}UQ=o}GCnRlB21EF8+EK78+e{Ppd_ovm|vJN%#8 zhntO;It{(=A|ZBE>SP=)nn>!XRz?~tA|4niQT2)`qC1+?f=mu2@r#hiz1cG4(P>)x zW_Oe^e#I%7?EIl0y#Nty0hITtx>%`{du90EzI(Y}K9;>-Ec)U_xj7z#Q6Dp8rpo!o zeZHOH`{YsK@v|O|b7BTh-C8=(UPgZ3$xOk8YgpDZ4b3vj;ul2xM@aW>59wGtSM$+& ztF^73O+Q01iR>xS?TK-C4JJhcBj^w=+T0LW+Yx;|&|18uWr zH%&BY%`=<8J75oi)cFoB%`ph&;j}Q85&&}<3a3L_KHJivP*@6_?yC_RhinT4P~F+f z!Mq2W%{4$Osu;F3`>;QrM1Fg{?CFHD;BfMLLfgp@kAFqJx=mJVQ)WYzCOl1!E{CCw zqtJt?UVypO$-i}J>)=xnBZ1bf9aBhyy+2i<0qs9DVXBz!0I{ZPjDVNW=Ipl}v^Zm(H_5IWm*F6Xylx4BPC9+Db68V0o#iRRDe*rKYj46vUdw5>UAIf>lKJbS$ByaxW5%M0PgQ{~~0-flDAM!rYn@o@1+ufF# zB60r_#u6$fJu?-l~ zf7FIqZ%6)eK5ccs1UwJ7Z#+E-e82e^IL1)C4eToATI+qU?djtfXW&R4(f-5xNZpuS zHZmTr^ASa?^N* z^Bpn3eYE)>N7vv`=i7!)w%wL(+c>#p+peW$E!$qM6V__A>}9*P+_GC~5P zKlk%I*L^|euXbYJVCguT_s95*KSszf>~N}T<*hD1-WcNgXtjW3Nw|WcUomWbh6dJ> z=*}t*4F6pb0Ud)(Z5)rLtn$p?3Yt1E=_oV?IMoQ8samn94YBXo%*Q|cpgF~0o5FW0 zM0u9SBB|uXl{B=g^CY%s8sHrG(^O8FtV2P`Ag0o9O0Ct^ZYj2?S1(3H1|zIj|GxaN z*%x9#d0X9j#e0K&OP?Vy_(KNH_oKLkgjC*a^ukrgMX(FrDld&XXj!)>WVtHmJpsAY zJB!p1ou>T*b7DLl30{V3q~BcYLs>$)LF~>*c|Au`qPNqEUP9sRH2%m}-{HZMDvWLd zeIE49s^QJwaE)TP2K`db8>W2F6si;hdTup)=>m#xR74rS7v(}>8s3})Gu)=1oOR{f zb@q)2!W!9kjf7^q!>}uL5x2Z1^Vp}R|H;TT!xxW!;BGUC;XFZarEVOH)6F88f`EUHvdGW@%xYx~y^c2@SL;7vIJT!ZJR5Z_ zL*d*)wzFTCw;qkq(1I2PL?aEn{E)X1UV<=QxXz?~E1QNcZ8Xe_|BHx30X!MLRYqx- zW?~QG{-7q}9xCkhQo zP<}01G4=5#2d-_<(F+|o{}OpV8(4Q}5S2cKV&SeLN#=%eFt#L&-Es!KP0gio&v>0# zXExMm{Vm5SeQ!LWz$=99Rz_(^$GtN^cpTX{Ri&e@J3qSfG?6%wQMQVpA@3%z)}*R8 zj6JhCTo#<8LmK0y0X5%{c)AF9yO!vF*^}p|n8Y;<&HTCQ7I-yR4_!%vG8EaUmGojw zS5e9U7n{6&>p_=|O(9{y<`@S8Alto(l(bF91PCi3Vf>Uz+GohEHJAmuhl)lKtJq@D z;ywkHyhqBF9IG z9yqSQW?|H3jlRIH1Rwl@3CoJmrWNBen!1Pe60@L+5rp<^%bV0mL z`-?qXjRJ7{&!AIu1ZawTvZiZ7I$G1tRZ_KXqz)ckNUSyJbo!{AM7JGz_k_iHJzM0V zV$2P!MNZxut?cBuFrhp#R(}?D%dl|%^c|zKm4zu}1J7)S&$j{H|L5l-J5ENq{HvnI z;0gdg0NDfS)BTnB;1Bx`bIyJbIe{;*=ZY4Yaz6t(xW55w8FH@u5~`A&#%2inr1`ie z_Z_hJCZ~lUghg(<%UMoa|#;HUs!l5poEi|)aP zJY<Q{l7<+Dq? z$7f-rkFZzH=%Qx>?=wvIEKCyYNU=?l6a&wK4h!B+D1z_q^`0kLo*S`xqSROmul(j% zCF^FdZ7Am0Q1yV}eAui%hg0f(>3eo>c0|O8=HDw8pi}^FdbTf83k#ra; zNq*#{Hpv)K*6AOUb_&j0eYIK?KwkgU0A`zEy{Qq%8|KOzPOtq(1~PR{IZZv9u{%7GWf)e;OW zNVYl9N)2c}#O5?YD?Uee_I`!bR=%1l(;kyc^0uMdY5%h82-dr^0v;X}Av3D2Bfytp z;`+xFpcQLV*aFf})}26zTLjAx8; zt==S;gf?;#Qe$^sRJOqnRGLByI2;|wIn;+07$e${-(8;tgMFxalxO>T&Mb0+%OUk9 zFm2RaAy}_N*_g7>PYMo+%Y}9Y@o|DdPt$h5z8C>7k-O?Z{nI~!b-{yieqa2=Z+cu? z9MpHX`SLoW@7q+%)f-g*P`{oV_=h6owpXF+qCoN;8K9EPmeq86s|5f&0(pz2gN>Gt zjyMabtFt5)IjkoNbegJ+6V7Uw#m>TWcH)Q`aYv=`G5^U9W!3^vy0<+j5PwDrmwCs+ zR76%|(DvE-pc*3$;>ApF2E{=8hp?B>Xq(2HsJ4z|vpSR&?5JLJ%CTZF^KFa)7C))H zMMqclCA1sE6jpN*jk4~>>+ynpFnF_a%lmGke7T>>uXnVmzGjH%_>MbV!KWa@hh7Mtp{rY@@D1VR-D~HX+AAig zsNTF)W!ar*2!4tO+4Ge@fkz0a&M*Ay$ml;{BWZM3G(KoDq1nt++A1Nf@`jQ^o&O>Y zXh;iPhuJoWtzKkY$KG7{otwuY#(L+fU6lT&c2FjE%>-gwD@a1wF+2dBBst&<#WP^n zEy;uot+GXQtuR!ckR>EAIImJnazMO`oa&DY?TW3UUVzv4^;B)ZKM$}Uev@Ro`@+!k zuWouNGUrH;`ewTESWZ|=4Nr^}oQ)FdxmrmR6Hq>%QDs7-bEi&irhGz7yv)||eB8Qq z=Wx7bNz-Wk7p_X~V|BTh&a-h~-fi|D!6fMqY?h?qK=aX2AE}$xE(Pr~6VQ%tJzz|j zzT4#Jr@IZO=kuVGdJX09AzKux;W>QFu)}K2QU>WQlAOY}sW~{3wPilDMNq$g`tVMP zvUJoM91W4pf>+8lUvzRc$pG5nKIOzB$%RFChX(y(3!nlF9U(~-!(C{vsVQ$zD*Sg1 z1Ow4APwJ6=$#c~P7?a8srCl%o#kCLpryaDLWeVCN!CD+I(+-<-!t4H^lv}0c_1M1l z(+(AtZQl4{u8bn&wVEj8@9~WPMg!_ge^vP{!Lu$L3u+}HS0cdUUf_?@MQH@H!Ils4R3p;IaUKmQzp7Seh8tF z8zNw1Ks{mkOC+gZY}}-tMO*A=BmBp-;Pllf)otSbwoVntQF?b38>{ri(~cS?PZAip z^F|dJRP~KwMFKO3eq7ukwgzPn7;IqJ9y1evbHf%*bN#OkIE|07izUaE%1SD3jxr1TI;c+HH5N5ErKYUl zw@^c*y$nOS5-{plLJ1A3Ax-xY^CLiF#y6a2k^#sd6^AlQ4{?SEK9>4~*x?1m<7C&e zfahq>p%RBn{q3z_Qh&PkUPPUkep8|na~kUnD+`7q3?%MU9qsB7dW#bZ9XgAR)~5FE=I`R-&?H{V71N65-5_7gO-j*eh*)u^$A){2 z{vJ;oaBfwmWLP>wqAcV~%)%toSff!;Y5+rqgeL;tP^&q#N;0ErRJE@QKhw-iGx3S&)?})=)XsjpHRBkn_F3M<>$?hE8k4-$wQCBT4+V}bK&~O@vB0`4^tI`Ob31wEGlkgG)nUl6Rz|!cNCUhn`Qyu#kj%k9tl6ZV z2>?@e4xL&=MPpalou&LS{=t%S&3t*eh>CbFfj2QF^E)1vhoE*Jj)#?Sj@h zRY9xjMk{QVd&C38uT^SruVKo5a^wZ4IV6EOq5#-*T zd%w(Ix?@q@&6JeqL3>$5gss8By}`)Xp2#j+K1MZYF2=Ul8}Y*W^nNFpC+{{b$3rSJ zKB?h$>UaSQK;Y$iop&WaK%&L_{GqfowXnbM_6>8T&y2htJ1-0G-lEssp1gFAlwbfI z5DiE|-xgufjZ=(gUp8EYW@6x8w2;cE>g&6eWKkDii5#-h#v-k4%xQ3qI;@(*9FZ-TYuKPp02&djPs)t1)6>zLFd`MJwip791r|JkHC@sK9&b zAMq*T_TUe%LP?9vv@mq_l`bnY${+uD|0}6-9tw9C6(DjzdGYZ_7U)GSsQ$FZiQ&Od zwoAC0aq;LLO?WIi1Aa`jvw)3Jx$#l5@Z@&+71FI=`?#+(`R=TWR$ zvf;GfxoGld9-%)WrFUGST!Rz4mV=6oT9qpy)7oDflrh-~I=!09$sHN#*74(fLgSu$ zV6qB|Wei_oCvd-_$d26Kwd^zNnMdVIUPaGpYg|h~MoTSIN&n>O(%KaYgkj$H=TFq$ zKxErSZ))+T@g}^RrJOa6rDV(BTO5aZeF$f#0Ah}_$T_m{=jbBCcv(I>#=49v4B{nP z)EaIm#^C~Xw|He{d!BTs-q}vBs8lUY!Y^^F<|N0OM^DfH)xk(BmN?tnrJ{W*yie#% zsbmJ4>dx=-zh*2U`K1T7U^JzkuzV$k6|%<(=`|%4P&MTCwbGi*C*7 zwWkW+HKX4u)m_MHC`(Rf;goI_hV(N-%C(b#r6PYTsUm^jD#qq~Zp=s)?qvhBQl0&v z1)9UzERO+|`O0Ys&zRc{+gqYBWEreIKqF#782|f-I*Ke&%@C$Y!!}3(+fA=rC`8u1{W0Gt4tox ztX6!B$f}hL>61=KFa5YFd{0>uNG9C`jXixG(fF-{cnYPILS9 z-6jvNOiEF+joU>V{ zZvG58=l^a0pE59Ib!bnvBgskG;aVm#R$cN;){!t=tA)c|v3+EP$|?}0c#-+1M62d_ zTjnryxJFJS$@_K;k6?~cu`_*){q+TIP5}nlN|V74+|lWeDgH0Gr*mwMm1Da4ZIjml zRC6ELZl17Tk(y$kC|0wQ7Ymza0WBJ1S>@_yLq9MXtLk>8;T*(I?#!^)8gszg)vs_Z z?}N2;_iM#WJnwHY*(-iY2-?|*hQ86G1zHFZ8O)0U)hF22qfT~N$0Yy(GsLsbbmW1_ zg7Yv~agEzAUdY}~dsJEBJ@W6uia)ep?W{l+P6h9?ZJxd`+-yDMzD+Q^_8&IjKTL?O z(O(B@ls8l-8}NfK-=9|*F5U={jB^?QFz^Dr_%qS9LM3kd)8ORy!ekdExK)}zAbr(8 zqq~Y-hU3ezU5qK{><)fH@xSmJnSWYt%foG9!2}|wY6Z$BU1?ckVPDc1C9E_v5}E6W z=Fh1Wck$~8t9smPN8=Be9ubnF%L7EbTfnTRKr%-$z~_NstB?k{D64p|<^X&74JD|a z{82~7Td%>OqF8cjkL0mxBYenX;=%hz-4^AkMQubl|v zPXV;JRCWb*U);ihR>MeEX0Hbr9$wisM3ou`-iAYpdpw=>hLFFXULHu#Kr~PPj+V?P z+Yw&^OrAwlZ}gxnn-A&JHr{u!LTW7cw;>zbn!2i~SlA0P?QmS*{rBekSi&{lML#xp zysr`6|Z@Qm0b+Yh^>5B`r-J{${Nei2LFuw ztSH@M*5MYN`)t?G1P9FL2{ZMg&)ZQEGfSPS!HyuoP7*%fy=wzjSP=8rmziX+;AZM1 z$I>SAn>iD#J>c@zvI*zck%4t+q5t^rIg|e3k>D2YOAzXAfsAN|&cL!LCRGBjnWYY; zft2F@ceWCy2PwW)r#Md#&xxQ!U*oP1ER|*Th*xsf3^&EatWU0G^G#Jg$tM3iIsdi4 zhKOAD-WyIIYm0SML8s*M85)QKh!fXf&2z-sr%_{X$P?D4Co6FP#*K`ZsU|8c^K+4p z(45uCmb)M?ILrK>Zs|A)4!ALgHU@CUd~^yBgu*oQ5N*qi0PIcnWpA)K{;iK94PfIK zyYO(_{GY8lLIq_en=B<#0XVUR2#Oq|@T*2O{xqVHjR^bmAZgtk8yFDq#bw7k)jYi~ zo%x8sN^Rs^Lp&Cnh)_L7skc?`88emzIZh9Aoxe@uT$5iDCYvPG3fHL1Q`$4Un8IHb z3_FV1+u&&|qwY4IwjfGl(kcWL${9SXjp0F9J1_^ULR#ILUQlBszk&;K+3^VB(F=8W z?ZU^8p?5z=AklN3rMk8q!!@C~>LZ;zRw8N2sNXPP(yf zW~{;q88y0ktLi4yW)u@%-x`@Qawkt(pt330k-I97_7FU)jGe7Mu6hs|I8&*aAfL@wdASp{|gOP(5^J(h@ zO7OQMSNfm74R}Y1BQIQE+rl432IUM=^6Cf*A1%Fp*m`|RR+;!mXn3*C{`P9uid6I% z;8yf9>E{0?E09XPuv@<*4!R>Sp+AI;-q40NJ2KtsIWqIyAuTZ;L5_wres9fZ2tuS< zAX@!Rg`zhC6t%LI>UKZD_Br~~A5DIK`Q-`VCV(Tn>M@K5(OqPK*;q6@hFAW$d}aYh z0W>gsI=!}^G8JyLHpwd4_Mfh)m%`WIUW-YO%C&`C$}!W6R(ljTT)!qN^iT`3J>&c} z>`*3BLTfmOf+s{6?2AGfkTh+8V}OUP5E2Q3ogsa)>d8Y+sgba~o^a~8JF616nnN+i zS{U5#$`RWVUA_+OK{Tc=d?^SC+dNB+9E4&)HpvOhe;3^1Faw9I_WtoLB3KQktHN6) zbJ=(m&0*U~%LO={g^=M3;MKu*WTT3e1@D~$AjqNnWq9pFU_5IdV65pE|KJ~Te(nZ6 z66g-OKFrLvS)2#V!dJht-Roh@BCObsY5wAns_xU*Wpm6c6GSy)L*>pNq4yTe!Jzw8 zkH4qnkA0jr(xthi5N(s8jAS`{7J+^<4KObgPll3jGJcoFdsN{XT-n;X*8*IQ+A6px z_VbXms}*wZINaJ#*yXJg>?PB3s+5EHCKulCRM0ya830uwqP`V(N-%uLxe}n}@SdyV zZ5Bhm(iA`=@B8>-hmt9x^7$Uc$u9@7M-|Mu>VZxtT2#2eK`B}^j#{DV>xaxNQ7fB> zZ{UVxSxmQ(;OGYt{MR{pXbJo0$}6^lBk#+{j-tmg@6U^F1b(b+dd)HBTwHR@H6;#J zZp`4U;%!IB+tS+G;{(L3R@ojV6tFM-7$4#e-ClT`5RkYI$__bN4l!sgObd1rPqhjU zI+yfO)K#;W0MkVJ%{evo-Np zmbu&4;6PM$+u4X@CM3Q*PwC+7^nanDUdGDak|35f?OcAK9Ni{ z2+NcLKPnF4c}i&M|9~iN`%sCEXGj6i9d7tz*nr?Jz|jLZE-(#x?jh6F4N2VJT|T}5 zPTPdbzPWKSe(UX1|2f2U4Y6%n>`zfl8zMdClWCx?;_-5{R4J%c*kOb5R_w-`y;FIRT=t_;vGeszOk<}U(;eg?gzz$C4M18<<2UwB>9xT&ygl~5LKih&kUsN z3XMl=DIZ|ZQE}sIk#@HGFaNW)(VhMEfOyJ;$Ni1*=M%as=t@#Id#gqXj9?plV;fG- z>5HcmYiVp^+v1ptNRVCsp|SeRiX)gXz3 zX@KG>cg3`dM(rhkwBQ!UTH1*+o(2|GPkrm@1#tfMe>=P1PKG6jVFjh&&0S-*=DN*^ z2cB#_#TGq@Nj%3=yrO1_yXA8;(bX^M8UsqgMTZ5EpUz16v+b7r`OIZT^K}n(mNHoP z6-Rq;EFblIRX95Si+8pbY{un&#J<3KBZ-*h){P*ffLm)c-j~(L33Ma36tj_r5Nw!t z%lJ}MPmAzZ@>s}LOKN0IbSM?t{*ij0D~-&CGNq7}7dbf3`d#&hf6MQ)8}i9QWP#tc zM@gb8E?viYYqUSX0)KzQHz17OlW>D=GKJ)kuwSv~x4@`RVCtQ{!B~8EN1S?sknCms zbD6OtKq_;a&a2t#hsZwZ)PQgH;nbg2#iMGSI?li$S<;)KNbeU2PI6B_Wb|;}}I#6u#N+(Acifrd%yrV8(6nBFC_ zwVP^+Mi_i-hz(td5)V6mZmHmLv$Q4NUW24Hhk%j}f^cm4Z|rOD+ucm?fyC?JVb8YHn@37i7x$fp+-IcQw@!Us zrd91EbAAUqVwyFeL=0nay)_6N1znJ)boLr5&@8+JB4Z{=;NqFtwFCw4SzMn~(b)R9 zC5)q)#%(A{2O#1Z6!XOaE)XrQr421pw39PrJ=qQ|HjEg6w&ZQ=of#9lvx!jgoim8H z1cEgNWLC^nMb4IXeTsD~yU6RO|29h7=ByOb*Hm-~j5qR_H3ZrZ<5&AsNe8PACl@)| z5F>trfYjK8ztl9^^w=&F4zWj_kW!QKqaDo_J#M5~fEmZIC{AJdvYI_y0XVn}E4PWs z)DBYQ(YD_Uk*Gr&Q($xy6pk)22OCg9XIsF`@cLb#%rQo8!bctnI8W4t5a@+o&~4`0 zK+$8CNOsSHC+;j?soy5;NyyF;_gX%o%__jnD6TuPnY?dgB4f3^5tQ^^*6T>{d^g2@ zb0np$n^NQDGQl{k+=n3g>LBto$j2kQs%QhPzcMl|15uRY_p-o?O22HknGmv0QL%W zS}z#qGU@&GMZoN8FK} zR6Pl|sW>f_x3w$s_kDWzJaya4@-)iN>=8RAvA z0Qs)>r$C0I%2!-NTDL3H%bDO8tl$T=-~p`XM`~!c)P+#FxMatMi7emTB}%B`StW1a z#`|Fn!8&DYo0fFd_TRY})O9WBUIu0BEwf=qe{W$z5v3KUJzNULyqF67A_Hegg`iwN z9g!TdP7&KfkL)WDzI0|m=XB@EMx1bs=9&1gnAXMh`f3)cQiLy)HB|l@Px|^RQ7BOg zM<{N>(!RRXWXGfAH&FwN9sS(JDKPbei8IgI_Ey?3a|a#TkV?yu`L}Qz|4RT+`_J=( zPIfT=l#i;+#8G*x{O~7JoDS8Q1)uPtD4|V7#ox4MafcybIL{J9BR{2niUR)*Z3Ze8(&JmbARW}^ifr%A4J zpq0?k`6GV+_hx<6D$xTP$pbw~Q*%vExnQL*g{ACX?{wOIY>v5m?B+#I+9X zd1fB2r6GYG_bNPTu`Oy&pjyaUy;xck)0Cy6i_7UhKQ=YEUXv_edB$8mQf1jl>|dqZ zNbz740eymqWzz%{k9!7=T!LSWy-_!DLcEr5G{_N-Z?Rp;AC7e;6e6tfgqu1P=vUYE zNgM%$YuEJ^@cF49;P<{LcbGMW_Y-=caLLqlULIg?tq9KQ(R+_0S308Z(%=`l7xlYb zm*CTS-BB-*%40qWq_MqH^Lg8&VE>*MS(FzTHa~x_(KXYZrdeP6 zLxtI+z`m#+y$l$64zn!!idWm;{dZ~7{L`YHzA7+&dMP7XjwV*zn$o``2k`S#LePt> zx@r7AJC_aM#Yjb;#r!{18GK)jQI6CPTrcCVpLCJ3d2=!}sJ03lYQ`fONYAQ9HW8Na zThUTCwRAbX3vF7k$@w$UOzPUf_!>s=L|U}t4x8rehdn8@zY}f>*9wO&YEM?{s+xKuuZR#MUCIS#*QVtYSm60%q(vD{9k z2ebC9Qn}e~OFZ2_1pi%d>wWQTnSk>4^SLV535LHGj3qzcbxQoBkZQW*C%28yur6}>;9xdin~#NX7O62bd|n-G z?AJo-p9JExK!t?P`Q>`!L56A-rdUm{gWnUzoCQFC6Ex%h!P@r0ds;+pfhlY zP4)yV6fb__q*^4WMW+9Ve4a6k@t!$fL!9yC(v8U$OD052gOJ_9`!J0nSq}}YV8)fb zpSn+-qUF1RFkFc02iER+s0c~2cugg2q;O?hFI@AaR<)(a2j3) z9OH7twc(D%TOMVQ@qaetwTC!Mky(i=u6 zX!?bE%&|AWJ30BzyOs$R4Qso|^d;fk`I&d>d#Gf1d~7Vm zMFF=@N>Bf`e4)ou9#G{s>rKQH-u@*QwAPh59?)ODb&TFOr;xJ+iCYYSa_&JmhHG>Z z!=D;8?Xgygov!RcFcW{vM;t|COe`@tG2g87F*8n*iQ7IO))#Q>G_5L00~oH6oY(25 zxPDtD@iv%G3jkRaFb|i+vJ*=8g6;e%ZSWs6fn@)&SLzO{vZ4OjOC}>;g++5^!uMM? z)$97r_kcu6tjk;TzbLsv(@YUMafAjv;OnOkffqy@%V3YMHtcUq-zrtKC+G&dGl{c+ ziY=qFa-IgQN3MT&k0&`2PL|(n+1oZE3d>mDM2K=}u}K@lH_6-|n+p>vsAAhvOY1ue z;&)d>DpxSfAE(!2{3M3-7w_By;H2Y?@K@s=8Ti5e*zSm~AaMshoGRv#NGQI%UpNih zeF_BfX=ui9XOhSA4`giKFpuTs9O{khCGPG8Lfn4EdE>CTF_qe!^DvUkr8Rs5;>zQ1 zOO{;N-eCH&H(yV;UNU{6{bsI}hkjICERq|XtBaSdUZgiB;_;~r0bp)MlrX*ypCtE- zyz5uA2X2pD0H8MZ%Q;K+bDA>kLRo9Dj(?H)@OA%) z%cyUO_{z{B;7N_53Rlb@7u~*psx_hiCr8OEbZ10Xu2U2Sgqvhi_A#_VO=;J*Sm{>M z=pw8Gxfn-FC2)DU_pr=N(ueXb1nF^SL}c9-m5n>Eg1H3vYH?IU^fP2utajN-4(sTY}mN@or z3Jlg>>gRnX7h1Z}o6+B$;yj#W-npZ^1k(%EuMwNJBnBNJwZ&R#7oOhK)gn_!%65Ly z>f{d#So>Y#ZO;<3^b;{Rz2$T7)%`;F+r@o41q>T^KLR(H@Ji_Bm+8jlTZ_a)b8^o) zwCB&wo4ViQ`;UaYcrk}TX*aL%eeu7)MRYzr_w+kfU$?jeph&r6xU+2lAm@YNFG^nO zH9h67N|nSQ5;e#Y82MwDlOij%y8Ab1NCRSDHHmQ*ioGR zC^X=?bRxTK$sr&d+!s&NpzRsT62n)f%A0%bD)ttY;cBpf#aT)-U<$vmTe!1#fhaD2 zvg~|DbT_*xtk%>ZP`H^UZyX}jvk$twWuxKC`gaK!>h z^BmW-@ly70S)lW#AHz1PA!HE7?s*r~r|RXtp{`mjyW163k9A~GVBNJe^u%YA$D||C z>7JsFug`uV78!H@2YILlJCQ07)0Pg1DWXJ&I@g%zmQr@m%B^0{Tdb&BsPTMPMlZS( z^3C4Vb)&3{r?evRyI7E3H6$%T=s2xI{o{*zMFv#v1k-hQpS2QFaR{Le$wA(retNan zyWADjVFGPB=6-Tne`~-&*+jBjwQZ9n06QpRnC6>3_PYI`YT{&r%3RN9;?apBt^GqG z9j2$9-iPM57q_ROH5=yCas-0tjPrIBARK3FWApgMtoOdt#&M3%yr7OF(YpW|xwsX8 z=_&F)rHvUn>q3wYW8UiklezL9_%f(v5vaOS9q3KG?mza^#FxW13wlwLY@*}Hi6PNi zTXf@*Jqx?IP`d&2*C3hc zr^_-$ps-pACbMwpDjdSsh8d(rfpKisTn1m@KPUzBcmW zeER__rtC}~*#g7#y-T(G6{Nhd4(xSBfwy=ecLAV4T@wYq{yX-j@)QRd(?~!Wzuw-B zz$kri=yn3+3%Ab%I+^lacRimH)hUOA>8;fV`8WODn{KV0^GrK(D-BcQHN&Ila6AgDNu&$q7iKz6_Yo*$#9iyk}K5&53Xj#T)GH0;Yk}M zcHrMO!As)@ml|x*MOF|w*u}{r@;KyZ%*%Tc4j7~VE{^E6u`2XQjA7xXj?n~QO>*N32q#@V01{fsQ| z`C{y00;{EYC*`F@!G7%buc1!hi($Pjgxtb(TVKa?+)^bNk!~Z6-}Ic%*d}=Z^5FOg zCV0Lmo!q+W&#|}64d?3Y*WzSiABI77-dOniB9{Y!m!pjMLSOw*UO*p{RqmR?u}Ht@ zeXG(tUP~LId(Mn^7S-+q@msEye;x&zNxl$ycxjOm@h&j+L;iH=jAePx6-K=HU&v*& z_&iHY*>^Xg@14?jO#VHoOTpKOWdXp!%wsi!={h-pNLnBH{lh+fXrjS2{?7ZnRpJdO z_$B|t@ekIT_GEXgvG8^z0 z#~IOp(^sVL0Y71dZ2u$vojhD?(&gKe&&wg09_jK6W1X5Anig%oO;t;$C>1)#Egos|Ps0#J=q(^F4(|j&rX*QoPFh|# zJ|+WDhXZW5Bbpc(qhf=LFVE4=@FrU$0f-H5Bb;Wf+}g%j>E1ZcBiJ(;qFRa@d_~^t zYlIsbSwd&sGOKAy8PN&aLZzNTun+dX#bsrk%SuT$(kt!FMD*Tm-8El6GPb`AV{JOl zM;X%?dfAl6XMEy!RRbVZ!ak8&gQ38`Z^6)SA=BRtojje8R8FW&|brlyl3(m=^t4$AbR3``ToUOv^@YsF#zp$5U7a|tvZ z=Wh1fYi0se_oJPG%b2&z4fxh|fzvy7vX?ol!!+8Sn0DCbQ!L7O`c4DJxM$u_QJ&iR z!~~bR@GJ=6xgfdoxB{3_d_de|Pp#rMgk;Fe8B_&@U{Ve1d7IE>O|+MTrvK1;sV*#U z|49xy)&hwuap)^L9KLr0HtRPWwo4BQn&7vIH8;{%B)6U$mXN0lGibC>y#Kc-WY#)9 z6XEiwCyd*d0ViIH5`Sc1VevLKz>PH()sVJi=5pYEGA=b@XAG)@y9xEsly%ksusXda zwvDT!VU0Ec;v{I@(t$tci)d%ps+n0*P+KHF?KW3`jo0Ss|c3fl5g@k-DTHR-?2 zZTjvg%+d2CqG|4jVR7LqHv6OMLwfnE+qI58u*=80w{-1S%lawI?fn<+-U8&8G zCh#kU6Qr4>|KTnX-w@^P)#MFOKs77|Y$R1ng?SljoYTxljcv^Pa?DAk_Fq{RK)>4VP zKligSZjN{-&%IkN$;cdHq?3_YZ`bAaN@#y=g~x(fz2=XUDxA^&?Mo1RXsd7iLw3(S znZzw{{y*lgQG)rCxbFc8Iw~ow$)nFpY6RkK(byAMyyaTkkVR@zQVj}Zezr;#D0XRx zOhJBXq+A&;Rm*BM71PLmPEMX(`Ze>yiWX>G=#gmIPI*is6Ks!b1U3L zUp8ir%Pqbbh>3Vs$>5*#nyGD$Cfsq%ZaLk#p(#r&r_|7qH<8P!{Zjd#B}>CCOPk48 zE!H7Yrdm-T{@aYUHx~exZa@Dry9Wdk2h*CT0q&YLW;pC8W;Dpsty7${J0~q$G zc8FJLOVdgV@j|`f7bV{CHi+?)#Juw(Ag?SSuvdn9sS>djm_`+U_RgcvcRZW}UY7<` zv{4!-Q$5q}cDjEq5cCAK3)!2HSbSlT*nK@7=L92;Lw8}9%KO{<&p@y+zv19EHfdmu&PH=q~Wz{VdVUiNGtrv`fiDv$0*u;yIMD zsE3ZaitFQ_12;;QJ182x0bnZV7!D+H_SD{j%+@Z~<^i+p!bBnL2mKfDHoW|%clGv! z7a}6p3|Vhk&b<##4eAD@V^>EA`uO)A7TkX_sE6ZfSnw)dFIl+-d0lm;8fl{*mXM+{ zu_fUSm?=J?_{}z9P#mkeV4hCCoBZ!3{~Xm>PUwu+(=m2Z@L8Vv;HYO-7+0}5Og5#Z z9A_S1W*kcFf6$W*`d}8%w|GYQ_AVgnw}1acQdoELUC+9A3LdA6keZ} zgHI1fXXqA;X7M`i=*PF%djb z4>t9Zu}pepNvA9P{dpPhITbWU8#~8$s%1Frhkw;mt7KOWJ!?vvqwlA=p*x&O(ppaw z%16m1w}REBH2#=eH`&cElefK}9l$M7k&+mIqJx;4(EAdm^xI5lQB7@EYIL&&`=rYo zkag$v;XF1W%FnzZ5i;xF+9a5%064|PBte~XsZlOf-vGYSyubiT-`qv|I*rbM)8gy<(3XiqiR2uQh z5t)74oGXc}hNq^Xr}-X~b-oAHC*Q?%#7EbJZD*dIq*4;E@4BdtGx~gHH)z~4QoWlo zlu$QAo+YjPOE`#UWWM%yg-gqo>KcBk9+^S`3zPJ(qUg3^wc`{e1C7m_6s&v)4S^%|{p<7ZL9OW5V>nA`JDiqg|f zJHvcM?H(Ay7t#&B+$Fb;(3p7_T%fXbe@7s_Ul7%arHnm1BBc3`kc&?Wglqmo zL$EC;s2XPmepA1=!M?nThf=qt^!a>%dtew3R!AMHF3=Vp*5qva`n+*~FJT@;u^jO= zLy{)Z54bFZ=PGj2H8@M3o=Cm_8lbT8WAVOVR$Nr27Yk?S4gF$7Ti2)KC-;+@iI2Z| zSsvDmLx7)UF{YN6@|srcJS(Cm@UU^V3oaNC7$uy~*c~%t3sb*TTH!SKNeSZE#SyYk zvtrpKkhjaa9@chd=9^|4*K>^$+t|b0R+0!!_7mtx`c+(G=^sN&G z7X*hr@m6$$l>0TNFq_A15o3a<_Sp%GQB(97&j2-*Xyr0Q7&_B%0?UF%`_QQFAg!?TTtc zqqH0U6-Eb&j~Qq`%(I0RRJdvqTow01#^qWCW$Q#kP5AKiU2z~+2-)~7%~+#kYsG|p$_;X7+G0tCd&XRkB$Zs3$j5FrFGX`F=b3>) zA-2k~EArMEQTbv;lAA`Cp&!eJYTy9oSsk88*#A#J>9;w4)R8$y{Lm24AIEa7&o&)K zJ*Xljoe&x33<8MlanC8R8XLy%=CS$dfQIs4lwjVb{MJ>wRe3S*LguT1XB%0v)yYHG z#}z-c@ms0I(fU^V&A|7dzf%(T6>2d5VsB4fa13i|1v7s9a`w2#0ev_~?tPHo3bcJM z|F62V6s_5b-zJ~K;gS8;Wm~kK?M~;ak@o$5KkM%%Br+|UcZ3`B1Kh19t?T4Um>!;^ zHL#`B6S_pX1-IZ+phDUr1ns~{23Undd{YU|pcfU>r>Cq#^6j}ZU&JwXt^o9()eGfdXbl(h9+MMu@L8M8;l2lstc%a4dL zpESD}0^=~#&|-G$f(4iubuw3}BZ)yy)RP#R!)v@T3ibv|#1F3iCK#4lOiT}cKf5((3zY}3KRz;NfV0^}Ltw6ZsdL~5q)r`UNAAdgrApP4+ z{5aIvZXZFI`L=VqbuZKVJpCq^NRyCawOxn=Mp(PO8Htm$APvbWtz5<4pGW#z`X|WT z5OBRrNJ@-x1q{Mg{?X^%dG9iwLD7eru_4+7;%>b)w&|L>M$ed~qi6A2Lf=g=9Zj z%ex+V4d2aW{PvJ4gtKABak-{sO11*!YLI)qte~@+02xG0MbuDHW5V2aNYxj-=*41C z={frBI%N+Qx2vvMx#$~nT{F$9X{obQ(vz~E(x3ABGZ|QS6WVLv+4hWA7PKmiltcAA zEIl$m`p7P)Rkw}Dv2XA#CBS!aauB#JATQJJT&={XGJrYeI-A+u`GL@qKP>+a8w6-# z{}9NE94y!`q2L+;`;mDz3+BEh6A;v=OnNq;0K)sJ1|@^<@2N9JO`BM^mvYpUrF_K{%qhfhV*_m{SBC+ z&MNO?^e?(=Bke#Ga%z6>eII6tL8^BO*!Ko0_M4kFg|lCZ1qEf-C}^uYr&|1vrK^f+ zvx~C9-6>KmK}#WcDHIC9T}p8+4#nNwp@rbCMG6#mcXxMpcelwuGY?tcOIB8LbM85N z?_)<^mbZ`sbaz;%t65H4X|@dp!u-f>v1~MzrkAcbF1MpM0vBs}ZnQTM#zfF9Goc6htHuP1n-tf2;@6IbGX!NHp9amz>GGPifA3cV0`+I{65KJ9Lhq60Jv!aHcb1+s?Q8x zcG$kJoGhItr0P~IM;m^uDW@r)qb?qAMX8AT8(f7kHt4*3K4%XqI{&G{f0EEkg(e1( zvXjEnGWc>k3WHa0LD`wnzmYDa2kCo(it4V*Hak?f;U zCVoe4YH9o_r+uT!9L^+f5Nh4&yDGEaCbeoWmR&3AGHj2P1pXez{gXQ>r@|BS(CCR} zNF3G}e9twE)cxr)(B!^Ya%Xf~?PZ1)ss3Fw_~4Fv4OOj__ig1kosj|7dD>~^a{jgL zzEALu*n1$#`&MhUEzN*bLoMIOgAR%Cr=IN5Bw8Z|4B41tz`~Nn_;C_rT-gWX94*;^ z3@@m#^+Y?ek*&+OYP{Su<=E_9S?sKR&}8>lH7$t(VRW$uo+QT9*(=oGNSjEhGWY*C zA>NgV%CS;MAo8l4F)M2}aq*yQ10ctWkLk!GOSFO?Vs}Q zcPJJNg$=k>RJ)Ke&MX2ftP)S+5|-c99RPg4%;!Gw=(zPGGp^o(JO%MX&E)s+S1H-P z)^W-R@#W*!H24&`Qz4xnnbR#jz?SZG>}n>&z0)ber^MOkNmubIc`a)DNUa6%%xZ0Y z5SFQVWlpf@Iw`r=Et{ZtF4TM8%6t+8izRaWGA1+E=rP;nv6~70kodK_TQtQy_%3A? zER|Pc-U~nV2Cj1Pn$&*y9d`(Mi1iS*2JggG8(w^=6x^e zlW&=exi}!vh)OG0VuMvlNiql!T|OZ%hQz&{cgLkZQaGJUbhZnu#FgE!@&9MmHk>`M4R&Mke06on z218)cSDgffAqv#&9u>=m04^?3f?_A{_vDARM)t{n9xEPK)O?jwOCQ6u`0n<4rDN5@w{oqHXMe); z9ky7XaG4j2%Nwl>f@f!Ym&L2aOwFS4%?&9^KQ&>T`qTP0_@p`b26Qy1aXRcGZSy}W zYQuAyjt-~sI*dAGoL$w(CmBapNion`v))@T3!eNC`(n(Es($|d-{FjXM(JsWUy`H! z5OwsgFTbrh1LLCY3=l43HRU?&#OQt7v&d6hex#z}wi2-~C`pVdItqUHV^q-|U8|$m zImV>Rk78e@Wjiox(D5a`U8cr@ET)IC#1YpF=tZ;UE&6oq1lW^~U!2O5J~0PmqL?dC z?;Yg5U&hy1$qjHVn{gc3dP44Z!z3?LE+nOkQCccyal5t79y26CIOFek;-i3j*i>7g z#+T+|7BJMpUlkf#rA}_tpZ-TFC0w+x0>)7mB+kaLe_`}v2yTuw4oUoYDKmu}qV6D{M z6fJh$A?{^$_&UKhEeOTt2JMP$AAzErl=4a5zq-Nig_jE=i588CFcxZ}AC1mn zH&v>yF-yvtfLnjO`bF2bKBb@-9WB}MqKYSbf=Y1A@f+-`E-<1S+xGQk%*d`YPH_>( z=BLlcOuh^$WmKy>UA{p_J*R}8Ig4OtX-&d+ z?4xT7*&Z31ygx`bwa`|S%sEhUN4EfbFy zgu19mOzds*ccXQX|D9wOo$NWAw;|eoeQ?YFgv&8Ne86!x!TOV8%5#uwq(^8hPL?gF z2cF6YotChwcR3?mDfXQB)H|7JbxT*riBZ5 z9fjkOQe&is!|H;nG?c5Xe%_zCBm<-&lkSf+95YPGyU`7yL7kZnwVG+P|aN7nj+fsh2{NM}qRSFzimT3FiK~MIL z*-$o6ri^)z%>3vR9q4E*0n7{_P_3qDQxl&Ur}=? zs21|-t$mZKto@s1mNTs6$`Y>PaF^lBg`cPsD3{TAaSd$58O-xpzx-9Ur`+Ko6^jVO zCq*?q&VE0H%a@5Y;lk#HZPZ7H@kQ!IyI>5u&-3T6+Rzd<2Aoj*$dr2xzuZw=$a7P2 zkQ`b|?5@CLj~H&Hm|2DwB zYuIhN3%e1kd?|uk&-v}6j1l)Q4lT350j|u&XFf?Rlrn-bCM?cYsslHnaVKZThE?MW zP9JQq0~!H@etK)aP(T%S%c%Q-Vn{>F@Mr}4*al{vF68tLkZNf}i{TdJ9BPe(bMVAE ze}ypuTT_@e#o^+y)OBWv?1Ga?xa2#$)}!tcWQK6djdJNIJk{ISzwL3j#kN#{$|wC1 zww}chXh-IEby5mQhHo>240g9n7oeavJDZF;JjpoKbOcbIJ!D!Fj!;$Iw*G{K6=1%A zf$GfizWJ-ie1(6YN-3-b2o5(WSr^P2@b_|gahdB;Dhdp}RrH;2l1Bhpn+UBgku853 z^{b{B(O-k3I~2g6(?oLH&6TwmYyT|+@X3w%#rW2&3tkHLW^9K&VL{sJcVvT6=2!7X zp4;Sh-~vA5#AZld`zxJhe??lUp~;0}{zK2+QWefBZzZLuPH9H~G;d6vAUCQJv(k1q zUsOk;`K%#F7Yqw+3emt^kQn3hUwP4qx`NXOB7<%K;u>l>8ALBA2AfmexVJ?l+2l zYGkR;sYUn6O~E|C zDt}0d0M0$c!Qu=IEebJA?bScdw-n#O_D%pZc6A;bHu{AGz5MlPR**6zZ{J%;Wu_px4rAsIi77R149SnLQQ zGwWzL7CiV}s)b4fnkTtMAHL;8QZ%8tRR&1_2^v9YU*X&rs$H*dz||D)a^onaiMn87 zv-&=MRPz=%jKYow(m=10i!!5s{pdwz0PWrOJUSL@ zjGOh-bfkNYXQID5VA&&0fQECQp+>6`eP~JW@%Ra@S)rENT3>%v%NR=!xv<5YF3Gn9oa~=SiGCh4$ZE`C*S5k|Tnl`mbXAFvy93-O*7- zb&b_b7iAdtu?8beYL>P?mm5>b5W|2y6Yw}3#IP|2V8$d-E+oLHM=Kz(Y+)ux-qpF1 zj36F`e89A#66!*J_AM-0R<#SFulGjoN0qN-yQkOj{A<4n;GCJd$AN{lsaY(f7Z+su zK1ZiVTFEEw`msOMnxdc?3B>E{qAt+)lphTxN_n>rP?WBtX$#>1SE@;fg34z&m=rS; zD5GrVuPwqCumayK=bb2&5k;FOqiEUxSPRJh)sg`F^aQ<0v6%b435WvT96Z`5?CPW* z+b4<482~^0`oCfC34HL=RAvzQ*hFT}i#p5RtyRNJ6hFtshCW>2oJ1%>y~8tx+9i)&k5d)edonJzUw=#mk`VoS!msc=>M$YaueVsT6!Z;X zXzf&`8!0ygImFVb^U;g&#|9BK!j6M=fP9CP0D>T!>ccQHNGFLH1OA!=q?7+7H*2E~9CI$~}Yu*`cwVH_$1VEjFmVO{qe_w6@# zb=MHvav1hd6;ZyA5Ds@#U~eXwP1Ht5%8CtQ>rVh}l21s#g6$R7fkmU0j@u(0iJ9NSMqEH5;96U3si zBlBKR%)C_b6doN|%S}5MDN8h_T>o_jv>PJl9NTa!qWhU`%n;JxGBBk9mrQzFKHDL2 z8YH$*>aZ3mu^N}+E7@GD;H+kT;%tw2X9*1&) zkc`w|GrYfCQW9>&`X2c_JFgQ;EAk#Vr<7~O!FhlYS8nuEn{`_#qXNTv!OuvMy3mCf zh9+V%Ic(nct0KyCy_`i->?Ct!L(=&g~J z{i_u&EPeP+i#GWW5Nmi|^E;5&zz~$MSU?r5K|~Y%P8=&hLoX1bRvSwcFid}qj~|=jIq|O7eFRVi*%*Kte{X zc;vz=HcWmLRYCowSRq20tB_i-1U7tApl0chnHFe{eh(e$?UPJ|@BfOsk_a~W+x<}z z{f;*|-5Pdorf{BUltx2BBRodEadu|sGE|Yxdg)j%DZ=t9Qo z1N0X)|Ft))Q7*LNksM2oii%z4v~-YsSB@bRjn#Ew7(9>F5_7G2fU$rt2LGb1s{gj^ z_I`RHu!0M+Sg2pM(mcWrYw)gDFPg^mgVK#1DJ+ed7o2?^M+E)WJ}ZN08H$!2qG?j( zj#UesA>sD?wjo$~zVqD79?niZ+YxAd>6QzbySE|?adYfqKoUtHf3g=+AY|pK^+LPS z6VDm`p_pujL{p*ZxRiT0Qwim0!Za&i_HTYHLgD~f36sEOnXB{@AGl3;qi8YZ>=Gz>7hDGsu+P^Gm;?+gVLpcgt(HqpwSWZH zN3HLd2h@_eHic%w{*^TbW=J4%vc7X;a4gGP{}lG_;j{Pd#PI%v*wJ1IvEa-4>Q!4+ z?zy5DEm;)FZ_=PJH$Uz#KX8vid~>aK5xbu{VZml_)ny7Os!V={#2CAb`1g(Epwm-R zH1m7j76yjYa=~sR>|j<=*0*d)nDR(NXa~uKb9(&g0D`yM+W}6{y(gaTK4xTJ8P!U* z?jGYA7?e75$faaK!FB8b{p!e^fhz6%jDy?!Q;wbESr73^I4~s(6);JY)BZ2Y?iJ3# z(`a!8O4O1_QEPp;A9&z;REunBr@ac^aaiqkRqycB-UTVtvgHM#l1Lel^}!&nrehB9 zQh3h`5D41XiwS6RwfM{?m_>?tYvr`S3{ai2X?#30M#oajq@rS9SXxbWJnBVG^zNV^ zD1d~LIa^aZaRaz+e!8V#8*N4Uxb*C&pJ`XqXaRsOLpc0D?iz5|5Y8i5G&DNTL-G91 zJ^Te|tjF?ne4q%tK4p6isOwx-oLbea1~1WSPx>$GI{VScM*smFd!0Y-#L~&zldo5p zn^-l>0QL1|sAvUn>8;7{Yl!D;KhW`K-4RDZXq%kU1Fd{5NFycn*a~b|;+K$Yi zcML~k@b#HhQw=xI8kRr1MrA+?o8G^h)Dh3~aCDyv^#YfZ7*Q5sg#A(nMveRU56qVM zaBd8-XF?Za*~Gdf-@%R?^pUl3gW#G+NcBcDi%F|;8$SK-W4ys7d} zJUS_Hz&U%}Vg0&s-J(#=mSlx%-wfAHq|0>lX>+mkuLhl#Vv^I+ERq~-imZ8NhiaAa zpkenG_sfVdj(>0vuh4zVQCBgO<^4BVbT@%8|JA)Iz-6Z83*=z!tmPrwq92DOKmR|2 zbfner{mX&f(D9XPh@#Gz)%$Rb{9#=Jp1c(;Cw~zhKbxCCh`R5VaT-XcjZGrVRdEtw zL6r1^CmRXBuT}pprvQQU2$;Wv+r{|NrIvDyn^}YqZd3(OWZ5c<%|V659Tpm7SrdR@g@sEqk9 zuRfGBie!N+=#hB(%Ht?8m8Zns<&{2;Jr-_M660U8^D37-vScRXe=NfFA7~>n$1yFJ zFRp-R5d`OT>QllBR>^l7!4!c{5c%Y!>OGql<-(EycmIJvMK_pUi*dH#b{?R2x@=eb z+wzXrma}uEOf*93jiJQk;MDR?hvSzmQXI1|Pn!9mkIOSFIs4#%!?kySB2P)9khAir_M(RftiYrxA0$9PPY6qIyY6Z4AnG*eQ-WnfBhT zKrPC{$AWqc_iHfpzi(bey5s&6PP;Rq;;(T?eRX<=FyRt={z*CQ;3MY!fO~-vzUzPB z9JYe;R6p~7z0}plm~iB0Pf;1YWE14I1g)2Tn|A`wg@7K%zH2lF9Zx3v@3d4fpWO~* z%eo9`#RLi{b784-{P|!@auy4o;=lmLLZUhH7%Z+y^s(#lGrvU2t6xdpW^sn`=oL-B zhaW_u)WPo#!OMfg5B?+ctUFMe5CLr(e(N|}FMz8YwE2os=qJ-&T|$kUyo{!!2gl)2 ztXv3YVEYH+_?7rJvj7818SfV7Ek8Ra`fO30l)WvKlMp!*(<83dbdCuP8wq7Tuc6C7 zaG-q}Go$#rhVmJei9guaQoml2+WgR%C>Wm9UGuly)PIo*s|~L->XHMY?%2%4W# z>v7}rZ?6d(zUmkjDY^aVl)cmM|4|U(Py~NqVOHJ#E4Z-?xrS+2PP0{LXv`1FlG5Hf zNud|I@FCd$A-^aL4fo-h4O1W%AXpq}nF;Ks{jOUL^e!_}8x}*QO)`Gru+t}y3KRL?Kh))QbgTatYOL$-jSc_A^O=nY&#*fZBB$Az zNrxe>>z*qMC2eThlD}L6D-+N6N2&RO2q$3}IGS2t*&BeWaCo^apBLxH-6m!gB}5_A z<4AI1OU1k4h7nCQoaUn$O_(=-x$88HBEKkc-hdfXAn_v=qIB225-lt}Wbccs^mhpI z>WcPG&IPhXb1XshpTHGg{HGrv{Nh;zX|q`S@WX7R>Mfb-aqT&p_$R)<9UhvHlvrJ>g=IR@$wqic zxCw>+AmOMC>L}AoI(OZ_jS_eQ`rg5fdy;NcV$s^Mg(d8F1}`6OH1Xr)^z52tdhGN^ z2tIj8_*h`HxTKlA&8WmYRtto}7rMblfl1es;|7`~EJ+|r#$f;VTR(Ls4GP#0b@;^$ zZ*wp^MU=OR;J539AiKi`J3v(=Q1R5R-S8R`pPj+DPEq^osX^ZT{G3`qrr4sefiIF~ zk^AdfyA8NE4i_?w=eU{_N?AYk0}TkaUloL3a*M-s>*LM7rUJ)A@lm34%zm(`oEwK& zJxLBmYpp7gdyI%gJ@Ni+a4{}?nD)YXT=-1QC6s|zERnq5)ROuT_1XmB(3l{comhXR zsMbaZq*dD0pvRM5FSK4kIb=`3QwX@1ZZmyzhh6A&gl{#=u_oj(9~`Jm$?ch^{LJhy z+BOgM0rw}ws~X;di9ivfiK3$*lFjB1AC#_^y+UD-6^J^)e3xcSrz$SyfSr34G1)#C z55Xhjz$|K5IQb32zw+{BgXF zS1sO5({2x)PcE(Zr(+PS;8eEu{$ubLyHG7-eN$IfPBeS}>ct)`e^6vbY&0xDi zquJ7tNLL8uFyKrEX5?`$5Dx5{c+y{H6$WVZt1q2RgPF1C=G!6>o2PsyY=lJcjN4Fr z78FEKA?qW3Ilj`$X=@C9cG0*_9v-F}E~#&j6QxL=HC!$s7PVP+qLR~)an4bVG~OYG ztUX{A-Zta4R>qiL77Ef4&4{LVFFvcZy|KbmtZ~JY&)92>qBro?_g(IyxQ_ey-jaR= zmIXclqEwa+N3A}L_AFZo-kL!<;Qpo8ADo{ovy)sX0odeyEa0ND-)jMCv*~{~FpGMI zi1s2``V{Q-LLfB}>)nIjJJ@N*>SehZ*C-8+qy7UyUZhi=i0x@By)dyr#tnsM3revZ zMwIA&?Q=uo>mulO+<{C>q(tz~p0p@vmT>jICZ3V`s=V4knBp9 zF!l-8ym}b$_vi}v7iz2A5NO%@DK6c*-BKOd9T9^yeQw+)ZeHhsFlqR%Mr8*23&})- zdJ{<2<%@ejy|HHiVflq@J8(|(BhCt-9#l6e*&nJ_E{ICgVjcJ6XYSCo%lBDBQMirC zx{sMYTc(sFzbJJumFRoQGGM>|Nhgv_Jikpp$jk&>=3)txh10LjD}VYmH{_eZV-lk8(+irm8ybBQ5@oWn-NITg(jp_J&EFwVkn!&56bM#xd0b2L* zh!dS%fb(JnN{@5B4v&8wV{kD%L`OrfDF*k^znkD0sXH!k2Q4-GiJ}Q3R=k9C=W~o? zD2#xP*)U`f|M64TWtF&E-spst7@G)#cou?qSv+T*0|s@nvxo!901>)~!4kbM7B2qj z)ivFB6zEj(4sVO5ZdUBg_kGfkU5Kjlg6QgraRVO50tdoHZJRVoEr#SO#wsg1Kz?c< zl;(pzBYxsPzf~=CJ_Q^~C*n%u_eM9;RS%6w_JZoY*lJD@X7d;;qeJJ`NcLlrIf_No z0%JFQTJlC1L9t=xijG4REm!Fg;V_?hA2ed4JEh%P$EOy6FG&pP=i9B}8a`Jl`6MRd zweM`bvvc5V0X!6JvPeU)Re~jaCoh6=&Dv=3S+??Y$%rbEfOE0Y+0;BzYk!E>z1A)~ zO;w+o=6p_I;|9=(DuaTscndW-^7$8H4u0}k$^_DUGDw*W6h$7TO96bj6l=_I=oP9H zE;Z~;w!E;jE_HI88|zOrH3`k>$(NkUo%>cxX^lzghrAyB+2?4YjNkFbv}Kq0Iq4*) zuhtIoXUr(v%RkO`VGl|xZ1m$K%SgMERoD_R4Y)AEjloa+SVNEX!i!VU!P2%_ds1=09HPNwuC`A(f`_C6@v|+Wr1J>e>7cJe)a@I@Vtj)TX9}NH{gFP zy4#5$MbqRHhq!&T5-a3DxD+tsu6w<{{|n9Mt1cWyW;FzjnnYwB!2Ac5pF>?l=s$%J zR?nzJDrMCsQ?&s4`d{V8dbto$bv5ZR-Yz=BCDfJixAKZJcn``U=%XxN&9`Z`_zUJ%#oAp$We@Cpt$hNJ5Fo0wt@} z+3${5JGXrHc6?s<8A{vow#(%*jznTo@cOMRQw{oI9_@)rU+(xHf?aZCHj>R6I#E7w z1#i+TO?AMPa36xMEVU^RQh&RxnSuXvfa~}lf zh%#+$waopl2;DaOBefYoJzm|4LVO!2-uSQcX<^v!8gB@=;qUz870>G~Q7g<@b3+rR zjF#>;a+}FmGBtnInMnM$8x%y;k9a3ssN|7SsJ0GCs~o5R9@na5zxKnm&%1b@>l*bb zx9yEudtWW)bh$Xcgndt~TdGB~Z;Lex?U((T+!sgYOgogYvidu1Bmm0dKxrHbrFHsD z$4DH>C2NE+{@uS6@~`9_V0h|c3J~@ZF@kdD<8t*i>dk3yw#v$==_H*&^WP8Ah+|Iy zJJAT`uu)MA-UQ-_O+~ysS{X-CjPFPbIuc{<_hx+0ENa7HJyCjZ*-+SR`O4}% zBnSaM`6qb#>YQ15!8{cm)Let<1{pSk3l5GOB+s zd;1(rgnSz;|QXXziB}g>2-- z(XvhUSY(ZlC~o<~OTOhTc+5W`CHFsVRhrh zxZhs`gOD-isy!)*7=e5bwIU#x9IbD3=!Em(!w|Oo$3&~tv1LMaRW8PjXE$gNT$jX( za)4ar*tZ-x#I2aV^JQHa^Wh4-X2HclE-MGzGUI6bbd-+-r-B5qh$&3`JyTj8#AYhR zS~OXdcJwF!t4&v&cdz|5IA34Y(jQO)!-yPQ!-#grsAa0_3tg9mb8_f3mxZf56Apx` z=T$QCz_%CTsIt}S-_B%Lo{pAmJf5kvU-M8hY(_4<;03*9at7&G*%GALX<<>x3$t;O zOdK;SJ_!nPV(CiFRaecH&N6nz;=1RNDpN5z%4K41SSv5q0zm7%3a-}UD4!u3f7(i7 z*Q~Dfo`@utc~%0-MZ&^y^}K%AJ4HJNJ;4oIbbNCHZtQU&JV{N32Q?2(pe5`}S0m%2 zI|rZcHME%V*GQ5u6!Vqbk%tb-^g^^h311MP^CEx!{8)r?CSgL$%$n=L-R5@E3LQiq zw?eVIL6e=ib}PDHEN^ycp$DdHUo<}s5ddi;$ihyQqd58XSxIUa;6dJ2LQhB&wiCIV zJmXk9+j`xI;E*aRvk5khqhImb>rDuD*W7>i; z3#B$m&2O>bQ&#t} z7Sy!hAhTpK#|?D(7cKQZ7k2@Kn+x}vf5r@F%tleeYgD=9aPx)QmQU~S6!1d4{>^fv&fR3v$e$u?C4!vXiK06{AXvM-8^iJAD`l3+#AOt)q; zaF4GlNY7Hh_3ghS(>wcd{O6Y$`vi@qr8%D7D>Jod1eRwEo)kwXg(|F)3+5pW!g0ae zp}uAt6XLb!b0u11ubuIFuFqDzPp=cpAr=k-;bHhoU;AiKUarn<`SZ+Oms*_Q*O zUK-<3oEf`?{^`$Gp59o=Nr zp(C(@X_zBBl9#Y!sG<}N3eCj$A@wF3Mqa=ys-F$3KPkBR+0b+-%3u!jASN5Qy0{rxJEwnn zjMZ(01Co^tq2rDxb;9Ux(d@DBdSTijvoZFHrwx>Y_FN!}YeMLU*Bbjw7(vpU0tsWm zr|VE+=QZTV{R*3>_@)LyH)AQi)Lmum0=yH>l#r*J3OSlFW3EZWs4l`Lsk1*#7}Cl$ z(eRky?RI9q0OCTfS88X)-SK=lc^jIG(%ZE=PcjIo@qL5Hf8hYTla^$17sk=5Df@S>4-=0wjmrzf0i3%XJP)AV1Qq_`)97j3B~Cht!2Mz>co&ArF| z2tJmC2;Qz1zct;o9K|cs$nqFV$+3(6XKJW;Q{tKB&O97_xCj4~jY?59Yv%^_u{SD4 z?40-QI=<*9iM|0F!d`!|CTbIkX9wX=m`ZbL^$1;B4FvqH43r{nay23oOhk5%Rmrf_ z_XeYg7+BPj(M*|AR)TbD*U1+-#uy1zwQD2bX^JqGpLc6K0Lul9+Bp364KRWwH#JXpoJ{OM2UQ%gb0$;1c0>omBo0Wuhv8@aou(_A**~XNMtsw zkN?tw$ro}Mi}VOT0NN?q-g+ANyx$_u+P3c6?mOKJ?&se*7(`pGOIIg#$y6uJkCBFG zbG+PxIU&8ErK(#}gxoYUecA|w2?MLIbHkno%csRuj~y~?HwA(|55!{v-Y;@fj_h2R z#@QdRdy`D5Xkd<Fu<;n`F+7gga8LK0= zU6W8dEI%Is*f_j)v!8XSd;o!QUnCe7nabOCnPrqCi$Yj@wM7D6d2V|2uPt(la7dfS zJYp5kFWAt*DnG%Ct1FfLmOP}*{?%}DZawZFP@!P`ETqX**6~c^&|*K=a@;={vljh$ z_0(2vK^rt$=N&7Vt$UGcZ<_^h&4A0};fgbu`6OIw_vdXJlZU68g?-+FqNdF-`;r~> zjs7M%9!-0xoAbV}a(TXed%kXBZL|2Me`6FK{0@sZrW`(6_-iLB!y#F&On%y`f~asx zvLv|n$G1pzPwn^nc*M+}J&&7sQg0_@(>PK*NL(-AqTmIbamZj zlzS?Sp=lQjDy0+=JkYQE9ie5sl!d28=~C_2eaGp>!qb(_YeetxMVAdq=%jF2f||aM z&gHd3ZBCnz&oUttNtB@Abg9jFYqRD_mf-HgzX;6Jg?iVMjO48l!4M%Dn=HMsJrwyZ z_Jr02GX30IaM=aQUy_yxte3?$| z&HQa|9XnUNBixS$QVI-J-l!adbb+gJ!)t?^`k`NPHuz)ljR!kREWH&Ag49tM$d#Qi zuGq@uFXiptcE4ZL{t$%dx@f#$Ar2_!s628Is&pMQq^(aAQX{~_3g6_MFZZLtS5OA6 zLzsm2LyTS_EGC^sgk$<1p~yE$ zUoREkLha+ldK>$I*1B{;yJGpfU#ofyo3<3R%l&sv#?Plh#xjVWGB6<+EAW-g_T`sl z=GbEz{9GA^aq6EwbUqqYApgSa=;qj`w~Ga;hS%&qs->sssFr!g)v;JGeK6k^R4dF{ z8guSadz5#ChxS_(Kwrd;Nz+KA%6VjBGvZ|H?k%DihFDu=sGjFpb-njq#_Fsiifm8~ z*}sbY=h9w6*i@}jxlKwrdMlo@dNr}56u*GK)K6-2ho!R1KX-3@p;Znr?rzZxKri2Rw$R<}&b)Il#@g*mMbVld%;*Ia(-n)dqf5%z9PMOgWS%G|p z`v=@jR%aFB0pPz;YLRKIf2bZ_(pf{*zdLp{@vrLY?XfWJ2omWINAZ zt^JO_5H0!b&a2b4&|8jEj(^h@ob&2N>v3GYlC^ls*|ibZc(Ov*^L1UG{EIQfu+XO| zt9$4@Vrb&<1RsXs+C^%Vf#soffyFujax*cp`h6+`q8#&yWIVZhVbMxt&!hlDkug_!#h9S&3OSV|)ffR-HJ3ExI5OUZ{IE=>GK{F~mx%5w z^W-^?pG^867a#q*8Jw0O*SpNsw-Oxw$B4u=x3}1lxx$RGZ7>Mdn}J#wG9&<>ULDv` zs;M@gPkT34@1qy|6n^t>Y8`A*Pa|DLc~j`e#`_*~W>)*7ypzBK;#hd@xc^;k9N+Zeb-(|L(jqOKU>uS0Ii zpi~kZK9MQFR~P&lGU7KPcl#${0f;ag+##q8z=9ZcVXYp{0Sv&9b_)<1u0M(Z;E zu`j`X4UE~!%-+#`s4{i2IQy$9aL1Qne`tCrfAPqLkn(*^f6og(>q)!xVCE9J-{T&! z-rZ#&VR^$3tyzHtcs2(<j($~`ecBR_oD=FVjkVs9fbCOX z)9`Hca{qQVylj;uL8OtS*z1VlRuMwwL)1PbC|VK~mMVzx3}s$PKWTMf8FA7qU4~VZ zeKSv%|4GE7wpK$aP)r=0(zBzLXp_U|H*^x#^ET6Jc;R!hdeJWNUa(Zbl$F)X=k=LD z(CuDoMUU>$mR!W-HPin;Vny7k9%g1yfpi0+%jO?dp~n-Yp~0h?f4nbob&lc?>5=78BM6gignm_V}xmon<}wlTm!I z)kx4cHP-P~g*@s)G!95%j-_(FX#XQvlC{p2yoI8zy=FUb$S9+V2Zx$bp0# zmj+&1ocgcA>hTvrohN7gtIxY*&aD?lSv_!xcd>@*=Q ze|h)W@c-P!j$bwqGl_ITK!2Bm;-*fKrj=^Zj6 z8ohMme4&yiE`ye8CtHFu`$>&;flxZBJ%Q-NrmKKsO#Sj}Z>;9+?33u=^L@mP)k*DU z_n+%8Ke?BN4`(Wc7`mKaB4yD{u~v&Mi{jv-fPO~1k_S`*;}5;DXFGziAfH0bLB^TA z#+9ZH5x2R(ZAjY3tM+~(q`?G!Nz^4|^3e{2ErG~Av`9x@B=$)<94ZVM@AH9KoVX0D zwx1U^!(`H`{y`n)mFD(>&M>l}5w!zr(}6)|zQ^JrMFOz*m`3?XO*B~hki6w-@^qr9 zt^DaD|KfevW5w}I-jX;AON%>f3X5|4_B?!T+hTqw2IEGh0t972KafG4>StT7D6DBm zqc+IN6~~0=`X{M3g9g62(dUEPXsmLce^rJd@y4d8KN2_H7Al1srK{|Cq}l`W4Np2H zK75M^9wFzFteJz6{Cu?`x$DxBc*}_&XHp%tv7qUEAWOpy?W|b>t;UuvUp3@06)QT- ztWb&b`s1if+*`l9*VFW>Y1%Cs^VgST8MkJ zoIs7r1n^ktoCE*JZvt(hC(Jtbs82hd5#JlTH-|2pJOnH5u^bxje~&5;v`0_EK=*{z zliB~}^`vFPh{7((r`gP}` zO!ai#Z}t}_@Afih&W2me=1ea!<{5(#VW;ea8{C+u;3vfJM+o^NCt!BJC?)nfz0Y44 ztk6jZ&VRQYsF9mNMm~Y}X+f!AP9J-FH9g|~zM?Dpt4>yNw8MU~t8PvMGFbU7(ALd&F_b_4Gw$HNKc z0}@acncA+f6Xntt*O_U5+cS2oUym+Bv9_{}hRnrl18vi<0P;sOmtQc9|Kx_G`Y2-O z`rv*$bR~@=JEpqUFpW@JLaku+u6#-Fi66DIA7q8}d ztSZN%jYjk#QccU`-j6a1W3lWnp==$JL7l)CUpvm2T{uWJ)1cPN)_^yo(W;+JR&R#A zo{wfRU+*7RNV;^r_^Y%8GrZgmW|u$T{7JU>ohf)pl_~aKmCJD+C*X|`QUBk(I?9ev zlpPFmA30KYE3@cYm7`W3s-W0T^oW)NgtbHC&=fTUSLVPiChGP5Avv`DdLU`_uyAms zWwMw}JHLXL5BCptH=~{X8G9Bp*Mz>n;1J6Xc(IRF1E=L=JJ$Mae||$ZgObN8+rGw` zfv-H3hOxY?ujvDjZe+$BJigd#RAZzJ2<%&g1OPqaNXs~%bb zAy=yZYO8ATAi|_Ix@)Z{?Ox%B_}KO#G7UX?O?5TbLki;x=4%tn34DI#H7&fREq zn8%pWa5=YkDM#DV|C-AB#WGrerj`KR`dd#i zRg36TA_4r8`(|tj)rS^KO0af^=tkbCoR0rtj+-SOz*UKEOB&1r^Tf1+*V!yQq2l$q zECckKl4SDS6Pr(ukBEG$*y0gNGIHWH|wvk0F_E2Ww9<;>(hbs9LHbw+;(qHfXTk-kaQyK=0Co;Q6Al1#2Waa&iFU$Oj7%Zxj5%W8zYGQASJd{>o?M0Me#^s8 zWaD{Qs$Ck#g4g$PyIzz`JkHxL{?7N~Lsnhms)V(offeNjzMgg9IPAK87VXOYBF_nS zVK$L}t?H``Qg}5ny;++ND&R>;=+YwseM3!LIav1s&5BS|&t;5|w_K544PId(l6~iW zztg$Wt@ShSJ4|w2Sn_%7<8-ijl4RgivP~P{>(KKs8r!1per%=olAjY=O_Uo=-AC;1 z<-1bk>DBpc!}8j8GAA(2QH8Wus2?aAF~+;fMgTVN&GxRxgFQfGn0OP^zPyhPQ8y7w zg4crcf{B2s_0~sN3f*DO^m&F^Ownko6oO7SF8ra2^(&2v-(Q|lu5_~sb#Dy~ZS1ef zf=?GBwIl#YixAhqOTZ@eR~EsI*#BYcs-o(MmgPZ%y9Rf6g1dVlKyY_=cXuZQcZcBa z?(PH#?hqV;zv15X*86!s=ZkZO*|TSNcXd_u71AnG&CRL)ma>bN{M`2-G*#9-;lw<# z)0aq>vTs&Oq!#M?xeP1lTA^|zXoRw^)FNkTKr;l-4alfyo}91;V%T2ukbXDjwOL0pL3s_Ao3gLU6U!3wtlbK z7=7%3nVoZZS{n9fT~1gOHApiZO0hOro~?SSy1UfiZ#3Iq|9jkQe{b$kG?lr%3%Q;i zcH!xcFU#;?2F{Ev{HNdnq%Jd>;+_CBxgZSwHABKuU4Q#bUo#4=;}h$6y*lYCa!Ooo zsR)(gGg|YgFkkRho`9+n9T?x^g-V_roZuw>gv-pO#G#Eq8M2kY5G)Bl(4)o<`D+`4 zQev&g15#~YEQSX7?j$-Mluf+OZ-^Zku0BxbR+-tDq8tccl%LXw zhJX1T8VQeJv9YmQ`+P^arLo*hdA55B8}fT5P)-}41_?x9ajZ5>RHddDAwIX}5#@)- z>2w0Ezkivp9;gg;;;z#gf#xL3EJ*p{svfvz`GXjMSl1q)^Pr20Hk1zbNaKNg&q5y7 z?`#((Wk|x3?QtDvz|u~Bl&8p#u_%2jfi=@$k5fiXVq`!_WFXy^E1%8H6VpM)g+CBi zUi=H8PIWAv{@n$UJY$>>2DMJQKf-iIki=S8z8&>PcJ(}_`L-fyGZT%p15)Bid}?ik z@bx0f1~+sa1+6uR%kFM7*OHQHZm{t@&A&H}z{D>em&Q2O@BI^NiSM~?z)kpu-jS8w zrY}m5c08aq4MWi~o9+`dpum$M-+1`-wr}RkB|4fSbeNuD4r=kY7oAQ7cRg<}e9KzB z8|t3!e(2m3bbRY1JAy%a6HT0VS*>wIX@(Uo+N ztBa~;bgI>-DG}HW(3yZ(k?H% zEca}_fEYbrz6r>RxIBdjh!$?Rv~j6@f*@RFKeze;1U7l zT(n?&tq4iNY0AO{W@M295%7645{KD##+Bi-=U#>FZR@F)xI9YgL;R1ejcb`<`G~<+ zi6&4_lQFGhv)3usP79?n%~yQdKN+vtUj-uz+@c!kp029-tBF3S7Czj_g}Ta=RHSD>@<}_haM1a zl6J0OMf|B1Jm`QX&6hCK@pzIsEeW!=CxKky zSU-}31tz=UHJ-CcU{$y+6;nBvWiy#8qss&Y? z3zaQ1`Oi;<88M1s@px-Ux$`+%RZEw0cZ0og=n>-Kzh+ss{e6mUL4vfC0zvjwYAArH zoGTd1qT$acusVoM%+ZLyAo6I(4A7FrQGyiDJYq#$7y@;z6Bu}TLU`?Qyziecnc;uQ zM4K9fviF@nC|Q86jeSo9JN@=kT2i;S+dVI#QUd=FEPQ1*8kkLeRbiA)`4z8in);0z zKQ_QwnqYhjB{6$(P+4M z243pvotcPtTyYLk#%IlBT7C(|D11A>5<>@IjsSSzWbTKr$GLaY%f%mZ16rMhiv5sp zMN5Twx#L?4{DOi{@AR*|c@Kgwal>zyzXm6Ys3c}A0A$H}%qf-ggS36J%^5tjX&VdF znyW-~aQPHMq850lqx zfMxjL@nh+0FuQs00d720=jM2_eUcJS$f7IQobNddt)$^dm>QaL@tyqG@g`!YW*4=h zZk0-z&j;fGXEAc7>lI?P{q16KO7FEk%whkLIaw6mvvD26CP`aM5aRiU`ecz6UKkF$ zwZG`hjqjSp>DQC4(>c25(XeQ<4YGf^))X{@AZMb|&Su|kC|SY3p`xY1RKnL5D9T$A|D>8N%+sF-CH+^;C6HWe}5W|?ylRm$6dEe zk};mS{GVq!{(X;VbIF+nDr5lSf%eCZe`EOsvK#Zsdn;bYCiLxM)A|?GN!0ON&2#gh z$9A)Ed-f)U)#Fioyz^zx>EN)`^h%>}jhi=#-gfh;G8|ro4xhD#vlr^9aQ!R4_jjf9 zwB8V7u=U>sc8PC=rNrxveP68+G)Uhm&0j4hEfxdsd5Mp&NC4sjEu~_oKuDVNnK>jr|1Imvn zny|Xn2R0mh>t(VuZwk;t1yIeMWs(+Xms}zeN|b$T7gEd2q7-&r0l{Lz$R*FVWe0Ov zpkf_65(XKE8Liz4H#HD%g^7$eq9uLT2DS}!)<8E1#Jq;+bo2F(mG7Nf3gl^j0T}DH z6AyM?+YL&KfY0*%M_`BR;m_Zf1$s;q*l!y_$=RB8S(n_D2lv4o*#Auivja_u#Kxzzu5IO^Jw(YkS~_a85A8 zLfXxw(%RH`Dd^%U4RXcxl$+!j~a7Rw)YKnws@ht9JR zVI+z1^DEd!cZjftCs^;=HFS9Sfn1N{*-UPQ16@sy@jfWCFzK1*Hi;GJhIf@pEhad- zqv}W~)`f^9^Jyf&@b5&#;>JHW(O6|$iGRQ@ma8$9^?{3dCXc+-XW1-TUy#o^jXM)L zpeD`m0Q4lxOE4dd8CVHJ8DQn*sf7w8v};qzP*&y}JA=89 z>|rRbB*u>`Pl%9B+NVrY*Fmkn-N%{4c0C!~_`QyyN5VDoQmt9lx2?7evrl?~6V2q? z!g@~r+pyzG>|bs!{HKiALk9YTq(6M%#p_q^!A18HEE4gZ6VFT@K(|)=uvFPY#IY>i zPhJ1&W{X1jES#9`z7|__#XXzHy!{E*el;s=`-SA}a|*aYco1+5jAuCMm3DJKga9)d zN2u<7b8ioSEpGq=9-=y~L&A7rb5o-2wLDzNV6?|?#T&#*OdTr1F0Ro;8iKEy?2+*t zpC~m`Mi{K6zT^{Y;*4Ggg-!9_9K6)q(!TF<;o$Cueg^RKOVTSK9MAkH&b355py_`H z%(|L{`f$FJaMa#I03I7=N5&JQQmGzID>^x^=3JJas-JPVw8K1Y&A~HlXTTc5m2BaI z1i-oD!913Kjxd?4XI0Xe#J-h|5gJn9S@)Y$uae3jUBzEjURi$HZD3?G*EvQ0!R@{F zns)K{m8k!0tplT_QcvGk7|;G8Qok_j(qsNjf7Jy251FZagZ5@B&yC^%Fdw#)V{@gE zq&lKXF6TwyLcYVHKY;~vaD`NmBTzIEHwu)gvtdpD+q=tv;=o+JOj(d5+0fUe-T~_> z7!^vX##1=R3z})!b?8B~ngnCrQ_?Ku=`!ZmuKl-$Gzy}&dVAd@R zPfXd_53{LgpZ#q=@7uUPPs5yVW4r>+{TIGtLDpd5?-|i9B9S=pwA!KAd34&u3McF~ z(DC%_RLHDchijVXj$O0{y(hS+#btl_v=9Ndtn>=9f|>ANFf9_J5dfUhR%{eY6c#mG zpGlMsIRQs?k%i|k&`#i(4RrFF3PKqB>OUfYm>}~zpnQN)lurwdw=2mn9-;EE`M72y zaIzMMWdGm9c<`>`V%!>~2L~AYi$}7lsK9~36r-SmQ3T1b0QmZ zel^4S*-Rci&X~2y_&HIZ1u*QLIl*za0C^Jts1tGOJDe4)i$l59Zp4tgdjJ|KC0G8}-{V6T@uxc}G@e z--V{Vnh+S!dd`!`;wI42UaeDDdo=l{Y%L?G2FlH;nA#ff>4w-6=&6-w2A_yZww)md zdE8czYivyM-kmNqxWOOY>n#Zc-%V4!_panv`^PiofQLVf&;Pnme+lJQWt|`^qB|Hc zGQcoMH8V;WXd=3d#aDOyQiAXZ~ICxezq8ATy@+WZOt%w*j4q3T)i?? zM5cxOGtD+@W-46X#P|zQvOkIq(dY1C;kj9G+*<_WFd?qx1-Pa}4={4)k*V$gWCk9a zRX0L#h)a@?W&LGoB@)QCNP0BZrCju&e4#85t6~ZX&X@Sb-#jDaV(IRAZ$yW}zY~vY zagP&4?RSibov=D}UD2yCHT9NnfTYr*U5*q9MeVe~ZJo-jKoZ;GQ1A&Sw)4%vdw-d* zBrl{XmwcV4gDRREM0E@)H}Ws2iTgepc_$-httaAHEb?1OJqYVAW(e=9l~ekhn$~8C z^D}Z_dJ42K#tBv^UhGJPc5ap@OpliEQ%VGO-7u)xIqRCZ2-a?` zA{y77wVU)&ey(Wl)dz%8;!& z8TRHsZMOhtK;d;rpsJ*YL}aN86_e}lBB-`E(03im<5Lh?9~NJ+8tr&lM}yOKWmpBb z_1yhrKaZ#Pu*|f5UfpsRzTH5P#XQxQ(J)rP$&Epw!vO?Ha1NVMgx+BxP!uS8Ec4&& zgW*k_33Q~w@{s=fztf*pmRP&rHo06Ex=vwi(|KD2m0FGWrG8GBqn7wxSRcGhcV@h& zj$0ai>Zdy$(Cc=-+by=p#;gwKQOuWWm_9vaq6VWgf}A4zv;`Q()prdx>7-Y`b0TkD z+B_r)@~!ovsUmu1#euaHyE6GxBQqiVwM71_Lw56~{<`sgF1*Ac&<~6;?|$kdg}JJO z(PtI)o$eJG5|eKL>XJ&J&n1f%p2EJXD2Qa1?#VcBi$C4f(O`4%GuEWqn$NLc(h#@c zV)wDPO9(iTaF2-Pzx2-5q|G4lYW)V`66;{Z6NkA}{S=1ISX$%*f;4t1RajEaI6xui zwL{lruT~omjZE%`4O)Zbh}WnRD<%o@w44y0pmzH)F6V%1d|fE5!XWv;4OG|_zI>KI z!0+ms`c8Q z?$y>k_na8lB1*OWb#c-Vjtw&=8S0-M$q?H1fwRZ;p6AFJUsjL((C_|gVq_r5{VJ(# zUP9oK7-N0-YS!8qcq1%q@R@Xy<+yd+2Yn9kvb{O&gWng9)9w%`o`A>ai!T;}fm6Vp z$ZJr&h`N^7sN;`Af~Yu1JOdxXsA{Q&Z$TovDn>tG&S;uZ^5;Jp3xK;dyQ) z2O2+L!v@uh$v)%s zZU?p^!DQkrnizkXi1s|lCuJV5^GUn#>P*3x5sK%kITUMOc;T}Z$pWVW7b1^p>i(2S zWp$D?MCT|vvNMYHjPxM*UUm-t2&5ra@IZp6!MDUCzL7#Hx>%&Y)F>(5uc*BEsUuxSAnYX8+F?gK(-e)HU&id1;y)SVC48Md;XMipj ze^yNiE1Bk7Ov>Y6BMnK`bFs2SR;+okwp&ngAG$$oG@ad6R<$(#sHP>?0)BMspp37} zp)7)bma}*@1()-h#1o!4bO~CjB^hk)uxX2lJgrmt6cl-|6ZV%guItH~l8v;Bc=7j= zuoOBI!tJO^S$&{zT`^NpI{}w!?olH~>!WEGy7`C1>I zc4WMoQo%0MHZFXU-x+B>IzY2143w{%HE0Y2c2pFaI01cs_qQh$UZoB+2|!h;Vatq7 zas2X}I-WrD$Hrbp4AoFwg@6F7csmpJi}(ZpU~LDpY`8Lww7SD2iVAF%SrVjJ*% zW#iE)Tsxd$+qoA9&oFHVOOwXw4bt;DKH&%bc^lJ;qhIx&&elMcN@A=bG3-}AUSB=k zTA8IcwdD(rV!Ft6*vRutO9=FsfA9gdMuf5X-Tk3D<8=Haso3>(uoeHa+t)>WQ_xav zfl&*oWDBTJ{?+yVnA5H|jjOU9wJO?L$-!3B0E6>eU-<@0QPoea6g;Gjw?0GlssL)? z)VRfR;GX+8%P#{xcJUByFfTkY3I_1C0KYn2O?1AWvMM^90dKy*_!TFB@Q>$uVQx9Z zD9Ze6+?2WyFwxwpL$)J)HGG{c(5n>O%x3U5eeeP!5Bp#uN05E#J0Es8ZGI~&^Lxr2 zHXU$++jziIW{ILN9^|f`I$d=1C8Ao!vHVYW$)fao3qm2A7*`~6{{fYhIzq+(Bw}?W zsq+cONbZDfqAwgjZax9lk?#@`y8@ODjq^kDOu&RA$xrAu&{Z^^?oc>jOe-|Py6RdL z&~Of=1o6#t0!uZ;eQcGRIRu`p>BRnC>-Y~mkHw7k*aE#^J&NDbO5_|3$~QA0+PfKJ zt|4QAc^_9W>G*Wt!55n+Qb*mXi3G9y?qc+RC^gqp#+?(5EX)&IwT9;Wx}S$Bq0`J6 zm*r9F^z<<0iE&EJ`*=1RB+4QaZGn^8kCk1(DLC%-QKc}*3j9IK)k6#jmhb=TKSG>kPI@s)N zO~z5Mxx0!!%bx!#vwznE+5)emc)&A^&gB4sh-zzz&wIIlSA8w3L#o99b?=dXaH!-q z%a3q$8j}6Y73CSLtj{ETi-qM5zTYt#KhSG{T{s!{r||by{7*{jSH;BLk&|^;m5|Jl zaCDjBl1RoN=YY3%^T$}+^VP>z3?a&#B}^BR=_rx_WkHM)dNq-aI%!N&(nu)L+w^(Y zZV5FpDv_UX~Y|AlreVGs|af6-@ignD9}#zA0%w>jS9$0{l@oeGu#JPr`+C$ z!R^PtasjQl0|d}fs{4SNI74bC&frmaJ4f$oiUfjgyA@FNw6z@`_!)(HDLy?qet+Mf z$hg24jrh3aFt4e79Yx0ER#OI&fpn{qvm zo(b#=6PN3tv;BPvKQFj|&WGvw+Kkd^ETQlvli7zH$YmF(0k=$-!j3XqyWCoriv+YP(@?FkeA*&iX4%T(2Eo zp~Z3Jua3UryYW}_cS^Bvwo-~`+9QHZ5DM;uwdx)hpQ&)P3#YgmZ|lM=6-DeYEB7jm z_KIa=w1FvU{OW6pZLItTK~1VSNYC?au%g@Z&_ralrS61R&e{1~@h-9NfbSm)lEIe}MM6A&SKYk6v?&cj^^(g%lrbe6 zu64oybBaW`4aG0Jb9|bN%Yi%?Xd1Pg7mK=I?R??9>*p`F5V-qsM`!1~c%~HetX;p_ zWRZSAmKL3B6bf%k9Zi~ns2htd27Q)<&fVetg$_G0iGZ$2;dSY?6~6l)&69M$ZQv{L z{d9};uO_T%;#Ym=EWp#S;UuW*wDq!CwI`j1S3Vp9S9mR7L@tNtoGWs9GD6ljy!VY5 zYa?~K8l}d_Pv3H-zsWMo;>zELBt43Ir~nWdAVUju%ol&fgw5k-z0|dipwzi#=XWMe z@N7YV75Qeg67oD!Q@{Yi28f?(PvvUkP$&Ej*dzWC9-QV!hzO2H53XEgfI&^}vjr&4 zcm{S93gPMJ3W?-+06+ioFA!GH(ihIe-rK^|Hj2tq!$En@=<%O^dy8h1WNvk47XI$fV^5ffJ<7CI ztF!&wl68Zdjo@2v3Z|A^h*L?ZYEYkis-^-MC!B3xN9X>y`5hP?Y_I)QTe^2+VrpF^ zF=Q7S`bKIji`s)5Zng;z34C7#FbyhwIJdtsW060ZCDlR})TOv?Zy|-?j7u^8R}Y$! z7rXOu|y$1O(_RQ108lkbCP6>pGcaN^4r{u@L)+(+0eMgkGL?9 zU&_Zsndbutbx*8NcLh1;LQELzcsFt5UG+E2N=5jr^*JLRY*Og*YzaZvBxhfL7Y!M#WpARe_67AaE4c zt$rKKSOV^Rj`t!=zL-DT8dkG;G(u^e?}r+(1C?)2Bxq-%Q`~{ROnXL&z_`)W%8C`0q!${C>!_V%@Z8|-z)^NrX3u)heg#xi*@(#{bhn$(8JJgzzOx4$H z2h+^$;;p{R?0(!zjeUMVxj14l_fAk|6pQJsQLeRajn`wP`}EP*@wXKolefqD*!tfM zzkB1u%kvAE{nhi->A()N-3h*rGZ=p|5$t*@FG_=y#-cwc=Tkovz)o`bAe_hTH*?QD z!oT0JkEpMs&<9e~>+jO$2{4FYkT1T`kbczM$n1mrt7#Lzi)gJBF4Mj9RfRM zUVzeqFC8@19)jXfzO5YYG|0pL|1oWX1Ar!>YWV`AkTxt|e~ca{N}r*U5JC~Dhu{ay z1R@FP#z`>>ue@c`&QEHih6aZMl^lNoP0sB!ejY^Fw?;MOLe1H!6X&(7Zo?8@kX?es z%|X(HoDkwsOvaDjD!SMD1L_8SPmA9>8lyK{leGS3{|A`ake zFg@rZorb${(yUh~Jra^I#^nAw`R6lxat)N9OnywjE6=Z){!bINW$h1LuL;9i@ZH8= znzD*)exGY(KeU-uXY;mUG{m~v!_(C5q?C1F9|uk$Za&WZIeptA0hv#B-}o9!fLHX! z5)ky8Gp_dkI38uGo}uGif7oxNdnhH>vP~P4O%QCaBN4wh51>_~@c{U=&dm;eKbNb_ z^>o{>FM&@aBWxU!l|@oo=n(Tc-?@02J?KCk)}1To{e|D8b?l zD{#saM=u)SX9qBXVo?_}^xcPNQpSkbvxZOvUg5L>X=6npAcIR116JVlIFhWBWTwGs zKpAT&4oXofV@I)3hhi%q1M8DerPBWX)DJ^tx$5@Lqzid#zcJ zZDUk|%iaX9&>JBCiEPy3z7XCSsXV7$JVAY>c5^@i4I9r0uUjaKMl8~n`nc2SwfQJX z#0+1}g?H;-&{|oeWV_Dg8^lETj!I3g)$un5bB>VlUVrru&aqXPYV%AQQ?*Vjat}O= z(qiB4qLZYc@pIV0 zG#cCNjxx#)oE@1qZ~mZ}`FAO?s4=?yY;%&k_E*uI?qM4`1=zDMgo`cWLoI!1S-FEc z0T{0zHNOy!Tv6{ENtvxhAVR6}C>8`c-8j#yO^b~+L~*G>jc3k^%|)T(EO{IQ_%Jh0 z`Ph{vSO%1Ig3Y8h8+>a(68&}__~(ZUTk8tqN(XS^@34J}%{VB?WzwIoYf=@pgg;>& z3V+X5J3dh$+~dZi;KNt$_}ydm?OQGcPWSQ)*V$9?ltLkNnoi?5UAyH^s9atac#*bB znsP&IU+4yr!l-)Zg{2{u`xP6@wf)^fuj zjNh#u@_(R{=}C%~q4{_;c~+d+rXfcP=}Qr~kl$CGUixHUrlhEC{$cl}=+$e>utqe< zN<>G*v$@1a_@VJ@8RrI|Fu^M@Z2`xKOn)@U@eiw5PR$|GWXc}2>F4u@^fhE=*O(&3 zXwD5^=5OYk|Avsyy58ahfWyxz9hF8{3VVJa{lt^QZBR7QeVz5k@ZNxV>9W0}Ax7BE zjznvU73R?}Q|u-)qfIW}?co8)Shk(PEZr(dwcK{Jzg4f%=3<-)MK#J|rz<>Xnxg8n ztxwD^$3-M(ISRJz^u>yO4@lXo308@HpTE@@AF&0PaPgKW13kNQzfMK{p`L?rTs~qu z7jL=VRVaxLaS)CIJas&Q?G!A^s#;Iowk;+A1C!9!AS8mosBV<~>(W4FFr(k|7xlgk zD^`dBIR!iQuA%70NhN6^u_c7g zOHefst=Nt9(xxrm*rDCu3Y=~ibt7A5^nr4#^Vuejuj`>)&j;^0I+4*9qIIM%iihAG zVot00W=7HmXwS!oN<#sK3 zOI9VTt)!z@!b1wd=UXazK^__)tPZfqm1X@{0#E<|VVla+P{{T9xm_n63s2{`#)#w| zB3m4e0u0mf{>TIE-@nTXu?y8DOG%${v5FWAQch#Dl&3em5QO?gO~7?$*-7Ap4>%0~ z+?9Tt#-vYp)*L2l2x?*Y11g#s4U^&48KU6Ob&Mkc)Ex*!&r^YDOiN5hJ;HlkP{PT} zjZpgg#>WTK*YFt$?;pvV(dJ#obf^9PJn$h7(Ka+_>#%wA9o-V$ohSMUs+VD2Oee2R zVK^?vh@4JVs+*MkYQmO2t=QMu$c$-2n#J2L}JnMs|ob7y6D1_ocA#++(gZzQsw20^OHvQzJkHlpVYEF$lW_<^*C0vY;DKof|30!&RbpkH zu-{I6f`v)}r`&A5BFL1d5f2+z$`dV#BnIm;#9G!&c7hOB7yOKZ9mq&uNokGZOyrN9 zO_ql-A+-|WY+$;br%>st)hpRag+Zr7c}isg9(DUps6=b9pZ&iI0{?DFw%7J`Ci!t)aT{x7-9oOr_4-%MJuqNL=Otkp z!f?>xOqw_(VJWy${9=yG53DIVFBW_!jKl=xlBB0kJ}}I5?Y3ewZbEFyf(Q{Dg;Ynh zy-<%5#%+B}b)B~ZW7)JZ`&9;Ml0@2|<~SRKsvIhjB>+EdeBepf8bMK``U2)d(!R#T z%tME~yX2^hJ#QNN_@2O14n$4#lU0+c;0md+8k5AGaqNJmV3km{u0xaHGeR+e*4oCJ z3?znc#>gt)8q7Z2#{V;Lk7$@ew=)b5%DDBId%>sb9RW-I)Ye6OC``$n517atT4KvA z03%N@9RSZNVw64!Dn_Leet}i8AUU!o5cG477a)rRZblHs(I+e1DAt)}xvxyt{v$`E zBP=eAdT)~>AQ&`P7@Q%0vvMrpApGa4?$;oqz(TTr`unnr{ssxkj^pCV?h)7uFEIWk zASXt!X?zfRYs}XZP%+Ku#8f|QHazyNSM`J?VyZ7pe)mV)))s6Oi-HOrcav5pvF|fp$CMHVjF(13u|(2da&=Xywo|WXnU3_Q7%=?R zs&EJgG0E#zMo8^HbDiuH*Pl>8q(uw+5`VjIi1A>V(ZYlg(Tw<4yFimimK0-^s%Sh7 zuBz}W;2)$1;z@?HR*&yo!xXB4?zwk*aZb~@GSDA{Mty|Sh?l%rXB@EiW-##2C$u#h#CNTQKCcUh{*e--lQ!gXZjwXk>N>I=r2 ze;I$T4Tdb!Y&$x;Hu|CAo;1%5D#`j&&@jylW%n)EZ~9li4}~}2mimY&_$}J}qpuea z`I1>rBhpYRiWZLLs0WVDfFMn&x*mVT(l0FXjm^H0SaDLWiQX5woF~4dgJq zV$JEo0(9=P^R$+~Y`+|dSai7mv+&->-8#Hq+uyY=cQtA@ ztd082o=oT@>Tu=uBrmU39~CKn?1|0vc9pk+lO=RL)>(t&J=duiRxc)WDVW~d7XTC6 zoKcOIo_tDb6jyZIFSI7l#Kf=g6>!kQ9FH2#b0+25Ep+f{15xm7FE;qX$0k6d*CVWu z@LL-CO?oOb>oY1vPcWWXKv9#v5dPb8&RQ{XnlWQRNQy``GXl+MzF|TmzM(|PjH0gJ+tlsUFQ#1Z-tE`e$M^kK1XZaW75ud0>8Tqt;6*iXVldGMuo5$8@b>-`LFl%3`5Qy z@td{CcI z`iDCjCSXa0DaAq_)EpFE^QuLyLSrs63Qn4@8< zX?^km+y0RdkXK=700=FpWsw9X9VtWxI4I^MklC(*{(@6mx3j(7%uJQXZM6L%%gQtk zaXE_Bd;IN#I7BdYopQv!1fzgMhf779hrUyDjO*}#{BN#U!YPAYyL59}rS|9!(~G8h zA}fOS)7qDJ&#l^ki%D0Av;=ab6VG^j@55mUd*wNi2n+>cU_WNIT%qXx8)|wOBHX7A znRaSGYs~5sF=)Pxn@SI}Yu8hnEKDH6>z#=4*c+CpSv%oMluo->SkM?x2Q9TC*mTUf zL!p`wJPk}~$uPOaBHZHXGL%ELc2Pojp=Ht{@_d6KjzA=X62^fzsR>Vj9KdZSMYt}<{obZQ%h?6m z@yHu<3&qV~q@zVfu`A$XX#|NNHK6p+V;h^yo@R3Zr8U+Us|`CJf~1BU>K;){i3lbM zU-|wnA8wy)W9FdEP+f-Vz9A;l+af{jwG5^9%RlSq`lNz^zyT&hMR_?1I1nfaAHjf9 z(W|+<&L?u#GoBCpeB94MHnmQCXMZnEuFr~7e9AL#UX05$f!<}~EY}-AHe=l)LVrXB z0z?1O{zgm1+^3x7GTElHKW|P^zcPF;NsNah9RO#BZi9}m7E9|6NI%B3H*09M`y`Nh zbY4C=lSCAG{t7QpPwdf3YDkDR^C_Y!kE%=^KA4E+EfH8bc^YpK zDV!7UONX0wuQSpZ4}R7@yJASc*5&@%-RjK=Tt!b(S~KRh5@775#fjDy586*)V4XEf zkN5^UnprSb^azXMob%Cdeg^5FS!n>whg@4`4gmE^?{g)VY0-v+M!-5mjebE@sU@+TGf|XN#3OD*M-!#j5rfKy1e*~$qkNJh0;?>6OqW+i(N%hI@>k_e6=Pm z%ip2k|E`Hn&i24C(#ngRsC8Axe{t@A`aSJBZ-Q9rLSY#aH6MgoR*gfZl~1ZE_tb4b zp~>nGU(bvnCfh;YrXRt$ISPz0*_-3P4LjRjQjkYyI!hS7HGB>Q#2v zA}j@=72rJL>{9&NiSQo>*rZuLne}oQdnG-WZW)e|1UaP!Nny@umf4D8k!a7FBOS9JsRw-oN_(oWSru?$j?Mta_Z<=>qul~wl8V4=%4PrQg zTA3FpGRaYTat5m+Ke6n_Z#pj(A14N`JKr21_ftODF_~Pp4L=x&L|v`W0GUGsWL9Q* zHo_e$10msXWT^RQPn3D> z+T=8My=%F@IhfRYPndc8PzE>J5Pi@@i}^;_bA<%Fe!ZB+(ZQI-q*zE0iBNmgP799fN5=rM0=JQBi5!~0~4#%OHW z`J)4$)si(4i-sJ|V~?fUKtkJ!NYx#U{&-ZFkKKbo-=x%OVh%vVaMa9DrQ$p(g{L*YJTLXbE=WbKG!^|B%%g3TJfGXO+b8JQ5? zS;LzcT%_3@DVQ--284|DfBjYtaV971#>n|Fqa42lLI1g_#~_2&`f853=40{z~=91f9bTS`-8+w24ch1vL?HR->36(7~bB6$w`Z<$0~YNd(*@ zGd<#$XQiU4y8Z^OF{gCIaeY6t>h8h{U5AJ3-j5JD?o4>oEJvI%NzLC>PPCX!8a5;u z97li^sGG!`kj$gAW-J@H2|oDv(wV6F4{7c&Aujcje@BIymbI=ZvwO( zQvfbkGP_w_n}gWPs+tEY0$zsmsip5rW4*`aH{SM8vDRK7I_Pdf2sNzyElM?aQ2pYO z5BqcmA6t=1D}crej%Ut7zzGG|>XD--MUL0w8HW@0=XQ6Bn5*E~d;S<+9+rhI_?!UL zeZmpJH!xj0#Y(VyAfTTFY-T|9;T=jf2c)#IrY~RvQdLpTeoQ|`8oA85TvN*;C0IG(yv@=acPMLS#7=vQm6fO}Ez}=Ti4m9td+zc*9zUd$4ag8nP(n+E z;{3pRBXXcRHKzdn8Ne0!n0~&60Hcxc$zG;9&3Pu@#;})eLVAJzr)gP& zG}ML&WJO3M$?IH`al~~WmOlWdeh8Rc1GF~2K;AF5c(wYQ*KIR!HOiLPX@dE$FXhmE zg{4b6HUVJr^TGa>PIvXlWT}Lm+yH*M<_%}56AcG1LSCa`;~c;0ORd=lycF~n_@{bB&DwX@M;rAy zH#=O{Xy@;XG_fJET%mzD3(%NHgN_)jM5qjHWgQ-Y&@l>s}@<9+k7A zpjx6uk>yIjR5|HDu=69}+ykvcZLyDRonxG-lCZ5Ga<^rvwM8?akjgdu0@QR7?ohR- zBqwwWkR)iK3`TJn$A|G0W3Y69tx_8ND#VP=MklCNbrD^~B|ja(h35hvhTD7%d*&@) z08K>GL=Y}!G-6h)Oea+MxJGa5;4vwXc;sf=)n{_nC?_nFcHpX0ECNS9HyWVFnCG;8 z2aFzptc4pA8QHXO96B%t0yqR9HUTt>XIW`euL4N%~&$ z3vj~a?S_gAk)L}){!;UukX4}$a~+Ou?9}k1yzb?Xt-5H?iBodFe;*!Vs=JVFpCM(s zXmJ6%{>|aj3E#x5egQs`-%E-AH2C#zN72B0*8eTRJ=OV6fDw}T5Q$_>y(Jkhg!5=h z(k0>Ug3SVhkT=}Vj-0_u49kzYKj5P$>yKvmv-{<^qMR;OF+Wy~Vl^F#2(S|?uDATkQ z3%*CLp<)Co{>U-TvWuF94vP@L0f@-vcIy;*8nV%;AJkr}jaALX5`Y^(PydXVU)=wR zpw;I$BTzO>$Q@oqqN4|_y(x_EbF;4@&OE?eoRWv*Lq}*=J0vUKleS3_muD{O3qp?v zRW_|9G6K~B2C%B@4I2`sx-vSoELa1blN@ zoU9xW?)HT5`t|SZMjyE(ey(pJXo*wZ(_L+h^1@{%r{!+TO%pg$OpI6+vm(;0QJB5CQ12JmGTpvqiohqajiE}x5K-=R z4=pg@Pi3YKJ?AyH1DBeR>iV=G+qx83N&4nf=!tBNunn%$MH((91E{UehV;2nipEV= zXmqSU$6F8%M2iZrz5c80P=4pZFU#8a`@3t5Yk>~g)(qNzLQm{~fsW9}pG27{WX6!^ zZ-68a_Fzbg&gvApUeS2wwat|vNQ%gud*RHId1H>0S-@exw=kcP&6%Wl5sG2Z(Vy!s zWD7V5CzodapjPHE6`rJ*MyObt8L$%^5u2Ll0Z{3-~&=5Z>4c^3J;M5IKSud7rl``)_?tkv6?=4Yc<8Ep4UUVwYN@>+wwy{_ zY0+zCt2rxre*sPXf4F+9fT+GGUU*1phi(|UySt^4lsiC_O1VutXQo01B8|jp8 zknVMcOQ7*ZO%D+uf6vA)tvVx^0pwiXo&Wx(i*KyDPF{~$j!yzvA=utbFGkR z{)s|n-H>k-%k@AC=cMV%(nid3Q-R#@p~}4yKXKegl_+fSIy5OeYrfvK&Jq5t_sVIi z`7$^o)}yFujA6b&gf0gKjX?^+%*glUFrhsTJm!=ocDie2msA#3ugNK4p0Hm86lsJ+ z@E=}M6aF)czgap!n8ogOt|9@_Ur6HIyoyw54va zzFDJgf7#cz%h?Q{EDh{ZWhEgZ?<_0+OA{y9g50MC`MDWG=J)v@4{vE;6Q0+XnrDDu z@itz1$=1^#ahY%i?UlFl*Edj%TsKxl6>H8BrUmpDs>?0G}UQh#-9ii)BJq2z=*acNgD78 zJuOfS#W0!8^Kxs4k!;|G9>bsDv;rcfu1ryLvHs_K32N*y z;1#rh)=2ydCX|p+2&je1jg-BB0e#J&1}Ay7=@qxgEMQjapOxkK_R`d2ax1-={_;K| z)9Pl&eA8!pM4CSJxG8Vwg;vJR^)qH{Hb;B0gq|TpL8n( z(nX*6;lq{9T9B?mo;mxEXJ_awK!?>`%P@!uwoya?h+9m;TwXo!tEgjW$CBbG?UX`C;H6H<(eft z3?=Ru{|3A0b9J8^W`ky}ay)&oBYl(7j%UwdJOYYF#RG<{F{{$X0Hfo(I3t#^sX-JF zbme`w>8fp;-f;>m?Z{ZB>ceV+teli8i9lL+8L*vc9hF@F3+4FvJ*;A|Ph_ zjD~z|Sy$~5+-eohe}^sYJ1L7c(OEp#<~-@gilr?k&I?Qq0Y5R~J*45xT23TyDC7;06eHNeYb6T0h! zm%*_rrh28*ib;%PEO2}KbH_GsMt*8w z;6oBdRdg~2Y>RmS6C#YWXX64kgYmL$1|6mLeaRWLD8{J+Si^$$ISzicEQBAU41m7k zW4#0PGT2bP7+=r=E{8hSuIW{=E$t0EO05W$q)EihmCiUZ_*p&d6c|O*7-!G;iFujx z>2Om$UhLO>(d4Soxo-CJ0<3StQvw4k71=oz&uBah&<&AL53Jok{dQyE*${FnO81kL4%A!6~<}l0+?MbV!Sh8$}MTw7tyga)j?a5 z7Lt#sQBJycozOGJpj?+OkM|A7u3s{WNmB)!8Z~N8;X~Sybp4zu{oAphi3CgZfpic+ zpWlkX(cBUhq@vCqZ}i|rB?|SK>kH@VU zP)t7%7Q`3RvUWLC_Sd_q%CA6jgfwRiX1Cgh<( zeAU$>xVP$19}ty!ej71;cJv_egzdQG6VwPrWtCE{yR}sEKi7()5 z+Y)34z@W8lmEibjw50G+$RPKIdK21klaujlWe%k#+~KA7g^BVbw}IH)jrKV}MPTIwPE3$ab1gJHg~BOZn*!67#mhl1H2kvxdcuvr~WedHmQ zWRMT5$`Ukj181Pi0ZF}MWO(g2XNa)^#V6kS2DjPSzbuD2A*;De&GLTxHHUfvV4iqm zbEC=wKh9cfrOyI?WG6A zJF5nX7lcIB08*JjUzh3Gl5XXUs(nLfx9>30(ZCj!S*Q2a) z-*{tM$T(tmyn_|gde?!RN)|$`5L)UjJxw%O)X%)lt`&wuLHptbD};ZIR(z>(uHNYI z*S`U6(kkT=V{JwkQO<^PxURDcTMNQ>eg2}e*nAd=gF6@cuZjc{kiYsrkjh5?EzFZU z!lKBhEmaSL1JK9C*hng^dUm8@&vYnEO8808k8!GPZ3@|@utJlino>?uP1Y&y^2KWr zAoVS)F^Io?^9SruG~OKYbte_zLz5d!o=>w`^QE$i;=VmVq3+bgJ<}F+k>=lw#L0F> z;yra{pO&{Pj1m>(JCJdX{ADHf+89b1k5!sp(8=OaAav#e0e&}@$x9U&8 zhx0BJe+PRm%kd`K&94P;#<5;oa(*9LD!oT-LwdbcPwECa5&Bg68SyI@ovs$^$XlyF zg{}2xBTkMaev&6FUJUvK3OV#* zQVA`mZ9>9kb;c$VE#^=o4lz7Bc#$XfIW^W4Aq$8FgKrdyb;P~_atq{3>VB2JCSU1{ zF724*8|c8Ar=lwI<`;)`;8liWvWZv5-)ViU-Zkm7dLe;b9 zYXj>fMy_U**Z01daa2O9J{ZR*(O&_pM)#ga#2(yufh2^Vv~uL-D0Iy?fvIGn;UYZa ztGn4yxOK@Dt+#>59a1&8xAlGRm!I%keuzO@$U}kU_n(G}VS-W*PWHcl#8(RiQAW|0!e2+$tjIa3K!G-H&6&ECJo%sb}?^6-Q+(!MPGE#E|7+bvB4x}Y62I= z({RvQ2Trj5frHhFA~%4j(Sid59SSDAqwM~7(fs8z!>bv3=bi8(`&`Nz9kz z$*=$tR=--A`-zj-ma96Qe+YCQ` z*nq-(K@-Lc>zpSF^xCi({2(d*T`WnnouDd54o^I;M{`zb$vwyf@CPIM@!W|7kPJWn| zOi4{sR11V9@caiJ!f7-~`f&$#C#xKlfA~U_<_M!H+a%D`+<)Xzg^yRLLaQV*;B#k8 z%`SSt-tKiNco{K=Ma$2kqcMI4EX9~u8jP#F-hkbH03uh@Fg(r|pit(%b3^q1_2O>3 zuPxA}Q+W21rR$tZKAAF{s}+ZJA=_DJRX3mT!eUZ-49LAL`qN^9RUkIU+^;S2JPOB; zT@{BHMOkMA6lQl=s}_L$(Y$%bJh9!9X0u-zIcZnihgR?1)Pbi%$_z&t3@nT;gCwPi z#Qz=?o5;(QJ!|bZ5Pv30QyoBXT9!L5SuCrn!-do=@m=h~;N#ISx1lAf#kmjWsF5HS z#1mr}%~QmoCR`z}jrKzMJ_Rc}qrDs$maJx zrT*@-cVM$$d?kuomR%1FMinvZYncMka#fU#dB00wE-m*kC~8h%htY6>F#pP)UPl;q z@K)Lug#?e$#pyG+irss~o~_KEl>a1?m^l8tvOD?k3&T035H+$~+=(CNpKNbC>Mc4w z470+9bU5NbSNiFL2tfbw2HdKC`DeUZct8?R*R!~Zd|l7O=)@AS{q5$i})Muo(D zL_fdaD^fT~DBC;Z9(2=$B;HD9VUPfIl@MuW?~_W3G-jk2>T0LFauI=rQZS8+fDKF< zflh?K0bh<0aqbo>60+yF6!cnN%Lu}A+;BZ<+OGqO$lXR(UPH)ueYja)Q!jic#Qzb6 z74I?TF|$L8kj`Ua<%G;R=bIkCl-scz!=s5Imj-O({a}U!yEy)c@7`3SLr|mzAZOpw zx1fA9!K|#qqEi@5t%V-Nm-E%`pgv*y4-h__E4zh3^8^<9uaa(kE1n>HL!2Jxs=)t6 zaRET!_feRv2EQ+nao;uNS1lC6!`tCmUL)P|Ckc1 zLW-uZ5^a^|lN|~!7bJukLK2xuH3sw^EUXQGo$=rf>|XE&#FOqc!{R?kPf8`9{u&NZ z_{{Re4Qg@NF6YEaE`h6l_{v2virv#b1_M zew$Jw)e7mEYp@yX97%p{163BIKjUr)L;hE#WAH9Z6sLyzc1oyU%uZ@l(9$wKFZHh} zcH;GvUqH)cgC4=MnMCj4#UY-y7;%Lv$XAQ1&({$jDS&Xqcr}TQPIr>R3KEvOk(A6T zp_lAgKKp@0CzX6fQ(7V#Vb(;b5H0E3kC_CjN$-^m;gy(X)q`$)z7MA;2UC*08`$RZ zNtR_%Fo{-rWb4#VHqCD0s-Lk`TWF@=b8oiem`6Wv9w;_Y8Lw6{&XJ;X0Sx=v5XiM+<&|%dP|2+RBeAK)B6UYVZ2*6; zqlOj6*I*FTLuVpnc68^;M%`Zl+AM#*G1%3$A#jS~tHI%m%gyt1#=#C6$E|A1jTWD- zQBJ#1##j_$yYxZx(%?0j4A6SFVfL)p{=%OXBb${EQ4P2|h&zA@_*;iiFIW7sV5*(kyOeC!Wca2BVN6653+TSoH^7Su=5YK-Xy8we#}r za`Cfze!_7zqK85=^TYzAi9W)Qs6)?5lZ&)f*2CMzm+*qF^{1V zJ!RHgjH;P+C~Cj^CmLY%ZtcmT_Tf-R`yZDF%<;~s#3Ef;v%Zk1S5G*|&h%Mm zvi5gkvU;fR);q)T#ww3^$6$%lQLMam0?-4AM+!W@7bV0AH*ma5FfcPhgCDa$dk8$x z5JP|5$!h<8N%4j=LKNU)m2pqVNL8kfg)&?Diqr;HAi`4p(ZnGIidZ0^Hl81Ru7_IQ z{~_ujRv5hfa2lchjZ{J%-91}eJ^>p->VX~RLnzC=U<{HZDzEa>EuEfy^{^Oaj3|E8 zm)2y8$i>>hnoiABd1jl;bT3aj^)*GbM~J#2^-T7Yee=dMYz|S|axn=NrklE5;(ins zDp^#k&sS@%FeaeYbP2RK@hvC}>g6T$(!j-MF^>y58lvF*~?57i+ych$ohf zvvwkGYr1Tp$_cPCJ?w>;FAGCc0e3AR$PfUPDrE3$rR6f3lFmVx6m8>YRPux|heK|h zX+R@k)Z3+w#dk|`0Wn2ANJ{P90Ws^S{}7<4j%a4pfg$AQ5HQEKkWr9oBE1l#(Q!+M zS*Hc0R8&3pAh61t<=oIwY*-nhJxhj3uu6I9_ZL)uqEnRH)@g}v=XJoiiahz@!Lx{<(&b|{$GQI zm5aX?hU@DEtp?+Y$Vb~8jST0%b5Gg@dp`8EFqCF@+>aYOw;o+895j&MO*oSVO!06T zQ?8N;=WmM>t#@rJ=0q(ZHEI`i_yQjF(|~(=MPuUfL-Pwp1 zJ4B?A4ePREE;JL-T){qt0Jj`GC5Qxra4AfOmL&0)ds;L{88oapm>W!Rvok>q{zc*O zf)|BuhTiE&eEH0=sTt@tI*n<184zm9)OIKvp(Md7$`(g}eXg0T_Gui~Ak!`;cdSu{ zW>4hj6uB|HQjvSxN~c=k6$;hjdvK440G`0JS8cqxY`&Ni$*D%=8ON1vU+TvI3(Q{M zac`^G>*V|u69AT-wOKu>Z$qO9KsE~-=4K9HJD_^$KektSY|Q4md7K_@Y~6Pj{JZRE z(R^Q6l8yW6->I);RC)oyI&3wVCG-kX-~KmK$KPo;p?BBoxP#pA>G?l*f1&=loMz{Z zb~gD^<9l^6jmd4a6uuKOyu`6Q*-58I2`L=H7z_DqL8OH)w8cjv1yAi4hPxV|EBhyk zRtQ`dgin&&Y~~;JK_CF|1a@oU_x5KZ?KfJxGi^VBfh^WJVsS+N$0iBtuX|XIiAHn1 zRe>g40@k+CZ6y1lP)zpPw1KtSodGb#$S%$MXhArU{83zB!i=r;S5;k$MmRuUv+FHP zs-s~=V?U5RyghFBWgz|*SM!HlvLt-SPP;v)rQ1^<{5|duPp~E9FgJY&HrOXcLTSYykw;P{=KNlamK~ew z6;Uter@z&HV%|sfufA2klvSS8LHkVU`?r3C7MKF^a$LAF05B1auVyiuY|5q$ps|P# zQsYWm@V-f>xd2W4Gle}pVAPmlpb1-AX^snej2d^8^+8eJmkcKb38ee>TTMgTTt@OvM=i;}!0IuO<9*k$ zHSWaQrL(-`)W9K-95+`sa%Z>#7`S_9;r)6ub*arZv%AqqCNJf#P2YBvHHB|LUxw)X z{RMVh`AHD9I(n#1PN$KYgOyw2qucIP@7U4r>lOUPe*BjrN3CjhYAOdLz^@bi_!H6k zxyuYHkXi86rI4%o*5CqIGFjfaAMaS=iQW6S8h3y^i1pLS$s2OflLGZGzE$ z-lg4LtEVbfim8)DsbyBwp#PF&z)am)5HCsiaz4|Ne$5L@G*uEhSsa-1sSUtKWI`Y>fs#Wk!bF?k*2 z8elnrE6Lj)y=t5{i1KHp3o3FS{}p#8|HR&70L!SY-PbB3m7+azp51#Zi<}$$K1Vxk3?O#vGVrOjSb zJW&Zi2FB#ioK3Gz|IWJHhy1h}?GQod)9|Ps^wkU~_zuH%QYcM0T9384fjEmw=2JwDo=kID98znhk_ z^p_k~efYRqj+CX3oYa9ckMaLI^VCRr;ftyCzE%N=7=$nv&GwbO>kb+@M9r<-V)s`x z3LWg>?Qv(GnkG+rF<{J>s8bUv%@a(bKnevpZYoNB0&bTGb%-?F@ZZfaY)#Vc_p_SB zJNM|zs=u}{edPzt9mHEs=ygfuP- z9Ysc#uu6&L95e&V6)`FZ3T#F)R1XC6?qkL9yigSrlpw-r;;qVQ8o@J8ffr-F%t_(5ebo)$HTrQ!vm9+W3L z!k|jx;_526ALu)x22)1Ke)~XVD$4QidC>-&D^u5;sQ>Gz<4=-~4N>%|NM$oT*ivLW z0s{Wr=Zs=G4rh(eIw$Br!cU{I#PzEJ&x@UJ^DzLt8y*RPWNPX^Pysa9fw%C=?xE0<3s&i_q7huQTr^+nt{Y=8X>VL+8LmgI3 zN&6H@ifo=6)b-sUzzS9o1Q^%YIyAa`8G?m_I8jI$^d~;F9wikBB9tgPQJ0mINw@?w ze!tHm$_+plz9(ii|4OTR%sr4F#UgRxZ{KjbusruEUEkfhec`vM({XpWOr_fs_%-UG z1k3QZVs!fR$6KM<-!yvg|5kul*@|l*uV+T|W8-h3(3j~ZRP)TXj}(4}iNRrNWDH4W zfCLPSyz4__RKbEJn1(f~{ldWQMbo(7v3L8f z6J=mahx&;l7MUdkV;pFk0h{CsHLSj0rRi^MnJDL2P+sto8+M1=!&9(bQ(0IpHTj4h zE2$kOE~-}=6*Wm4LOQ`U^y8qxy54~l`QodPiM=tj@ju7YG$w0~?98xKYtIa@l=ARe zF;AgN4_W&EKH$v`3>b)Ee~AU3oalk{a+;pgh2|FfW7#~N7!4iB^&QO0o9q)%tXW*Y zMbZBM4l2ja2f!}3`=@~3;|IUGfmC*?J#N~XxvRls#{ka7;#H1&^ruheY%}daT^vj) zDU`j zGElk$xEc$|;))Q-5zj(a-WW$H17_mWgrQkU^;N% zZ&=F`(Rz@D3A^|e^RUWPXAFgB=bWohvRBo#QopRP_D0Z~$zd$FN=9k9Ic zxIjO>?v?9&Tc5|Z$-F4^p%(F^8MmX4Me>eMnTjzr*vf%tSI&Y%2;;{&E)L?KJ2mf0JucT#LPgYOY(>8iLF z5BZ_)NWpn~pQELgzEQ|?XkUdkRgy{(6lkfBvN(LsG*B!&nL<5bWLth-|4R%bj9`M% zvDA>M9VnuaFY^cxr#x?kDV~{K?k4GgM~?w>O?0h!@&LZ=nss7+EI9WY)GH;P3OLomP(i>G0{Au=j7w&C z;=F@7jTJ$WtyPZTJy1UV?2b?+Z=5l?6Y#E_ZO1t;AU%faY9KX|g_O^i;npCX?|EiK zQ7JvVU!zdT)6mu2LWKn!tjH{_vtm6`k5}FMbvz@@BcF^AhedRv$2J**{*z zqBZi-UI3l;HNTx(dAk-MF{}vqwUIK30~Z>auvawX>Le8>pGGpJ_sE4)`#X2T+58Dk z&;!Syl>L0a-6}O?A3HSwSuj`?h1XZ(v(qojjCeViR)Z&=OR{^!ukxRSryEywG$fgz zhWzpv7FcZ|Wb1AuA~aHDPZ2F>TtJ;r_qBY zSJ|;689m+;bG>9>Yfs1Fpdj`}z@SgVW~J!h^`{AOyOVFyk9to)hC4JZ>LMy zMuA}aU;AR3Sfb25Y1!C%7@cRB*Zw;!Qp-Uw28E~iS^LWr~!lw z1E2f@Fn%cmxXpm)ryo&=FBq#NVV&;1MgbD~J1QQ}58?IRpE6#5_EEg<<^-mP@IyA* z0QF*Ees*wee(xo@Aa(N>AblupMrzFmMKMeWcg-bU*>5BGkRoWM2-$;V0B@If?d_=b zc6Cm-fM4f6iuah}`4Z=)m?iER>Q(&2h3fTK=Is-S#E-LkDP!MTv60prQka2s`J9JB zuymtzN+|p7=@6N(r0?=4+V3S3pNJ$C=B-o12cOYiFG$G_o+ga zl}{}PH{U9}i;n99bBNZ5NXM*!H7b+pio~BA^QzlSks36J2TVR269b+!-jY0A{=n-q zQo_%~N&xQIZ%nPgYBEhEb&-6o*mCW;wrScNpWn^D?LuL}@y(${P%wPOg@|2`4I%TZb*XB_o~ACN1I z+qGz$4LqTTum4cVGa#nExF5)!;l=j+pHk53vz;?G(Z{XP19I~oMTNR3^8avbx}F>a zR^xj>dM<~lo*youp{auM1~?jpRY~V_BI$Tr98RRn&D8i26>kRCPx28tTW zb=2?vz@pJiaHcPmwYwb_zHi%%czKjAwILLJ{h>%2>-i|%Yh2&49un$+D3da7kA8-) z#o^yl-hJ(n%!BDda%9xKr6z} z4o`nJ$Nqb*WDgz}=r=zbV{eYLzQdi=0jojt|1MxyECESvME&o63SS)E&Cop$PSfQe z8!+GlL3$K%hp7xmfYnQK}#r*!O@|1g|u)XcCDe9nR@VqIO2SVC|(#3rLfnNk7REs#oJiI6|K@z5?D~J0U zM)_z({5`rk6wL9Upq5T46Js;66i>^-eHA?P9Y2IVJN+9LTOy3lVQ75LuZJ$9{T0RR z!4@EOK>h!KbL~$CSCZXIb!b3Vo6tMHoTkRpaO>Ye8~&Q|DC#N@=>mK{GMkuT)KKQn z@A$1sj6!jZY_ST5tlDdSd7(t3PVWN4Zx$j=%&CZ{ErU$hs1%|6h-Ran5%w!n0W>U= zgk4!}wQ$Kw@#7LlF@S9ajJKPSdA^ATcF;0RwnWhraAM^}B!J`TYIY6qx$+= zpaze)`+0AzxNm1S!rrQZZjg_@x&+}>{)fg2`R4al#sI#q)c;&T(RjF~QnIy+ijDC` z{e8|Gf1}*gDIkdD!TgAx0!XQ=&VUs7OADHI&gjKdC9J zsJZCZ$U!v30K{cwt%hyI>>2fX*-8^cXrrrW;9J1tef$Pz{q;{2E*=pMgAvz#{cMhM z+rt@>_oNrk^qEvqW-V;Fz4TeLUekdk70cG0%?HV z*7@Y){LW;6>^I#Fe_g;R{UabKkp%3*q|qd>RT)lGS+eke%#?NfT2=muBBpDjZzPDz zypy9=0zDsUW9!zo2?w#T!f#*sX2dNR-U|cUhfsp~)3Xu?%S8n=B8bCE+!JOX9mXA25%1mGSWnc> zuJ6d4A7Z7F%LVfkQ845`o{``b|K9OR#ef@qS0da>tC|IHNKcK(VO%FSA6T5QJPjr| zWU7q2qoJMGvumQO7IXTQ>3lFFQzzw$7fwY#10fr4r#qh28`;_2WHv?J&lx94M0Y7j z{=F)=foNTeZ41JJvCl9RyZQb>r$uSZ%+Z;byy7@&zm-3>JD>H9J>5;N(idCRm`FMq z5YM{sU>M4do0tB)m^olEwxm7#MlJP&N;6SoeU1`bWRtTLnIn8z@SGa?Z5qZOMSPP* zKhXfzGeaEwxqTX?Vguk#)RviNQ0i| z+8;&iJt*$#`YBi`MSGvvsXYkwfO2`M8t~_6AjA>Coe^8N>n>j7fsFxq6#m*1yYa>| zi+YgO{20^r2laU6+b@s;JSvT%aSdG^U8fnsudSL`%B9mOM~_+zEnN|xl!*A>OXLuX zKldIsRx~z^e*>E56>;Gn)VG+aM(H&l+ZpH8(UA4B3&wFC;QWrHjo(jrCnMHm9YrV_ z`<=GTf`t2meEPq?Xuwt3WEq}sqhFTEfd0BzkicTSf3-QkzY)ll9;UzkcQ@jco&Bub zoRI;7w!jJp4lEHQxo=EHJMmI#Bx%8*EA8PZZ)e()QGNc z!jxx(8-xIoEYR#I|LuwP;=DM;ps}kt2WUh@C8j?ab?CDCCs1hwff=`T(+TVNgJqj` z#D<_P*=nueu+3*ZFB820(yVDm8UzLx`MfSaC6L%QzvX(yQoYjiAXwr`e zRotUfjR893%&g*Xa7QMYA<>MIsP%0! zl0cWiV=085VU&;9#H+U22zk0n{-0r_DJ^oCj&VIczpi|Q5VFmvlN%k-}n#p1JRQxI@5DZQ> zTH0IRn#;w?znRHx*Os8AGJ3#;QPK$6Q7=&k1Yfz>cIXxz`N*^8v7dkyArt+i*%@`~ zlbokn;y58sBQ{}_OK8t4kS_yw);G>9Ll9F&jZIr?yl@Qz3wX|6q*vijxX)47ME~(~ z-awi=55Qvc1xq#{bL#G={H!B44H)FV7ctPx_xl>xoXSVF|4pL+EE~v7373 zR|wr9V#a&~$WtfLgH)0O3>0^G!^$8tMm_8m*dZ&`J__~0R)S$K&fGz1Rd$4#w2FZ! zAVWP+%2Q8kIhWy;KMjYIH+L$=r<#G82)N&Vg<+?H=+|lS!b54Rl)3&fYhjv&6sR%NLj>3yj1k)KT zO|$z(Zz0seE}oj4cs~b}wYgmuZnD)or!Ws;3|?DP^b;H9%hZdZx(XRuW)OadEd=#4=KRplC-SvoKqNtr|fO zD_>{!YC`J`8xA}%u$iAn*^uY54*wyXHS67;VmF0hsBl1o4bSsd&d!*Tmrb#MH<*Eb?bN$(|!RJoxF0vLPTNC|ygQzD%R;vXiTa)B( z#tD+TlSM8)<|A|BEo?o&%L|1g?&Z73JjK6$S9$$r<6O3LU?#T+>}A)1_PQr1p#l#` z98kBeEl)U7{PwVwLjSh_3zlRV-CZerI=OM7grc3JU#7y&Dye_)xr5oVX|Cn|V}tsy zRn_0R#H z_1cIIo{z9Jh97{cO}t)8K?KPLyvgUKM^MX>h^eDzx5c3;tcY80zA&z5Vr4z2|54>u zqVLM)ulv>lL-~Y93NE89L&FVsVUiDy#&=3#M|U$kH=xZ&{3sn~YKU7D%77QcjVxG2 zWZPyy{@caXnR@-J^uPaw&2BviSxw6+WRJj^WC>0F&Ib~KiT83mlaNPnw)%J{rDNZ3 zE1{a{ChO3%Q_WaPGNPkp?ExfJ0a^S-TIvHOAp8Mqg^j1HJ`LZI&ceHioN;>P`lsC; zG6;X+YZ&VaLH_o=X8$FNARQ8d3(5x0KVa%Fg+XjJJ!S!9LQn6b26S5cI?aO!JJ@fI z38R#$=St?{HvaWs(-GqDb-2n@rq4k#`QBx^&19{;_(vUMH+FQU9Uc(0*vX+pYLKQ zI}Gk1W@58dO1<20tf*@Y8R0@Y-U5`h$Fu0aUB= z4YgXGWEl1=+ud<0PTi<+%cSZ=7Q!wD6IyXOyoED6^}%!;3bXe2c39zI#KD}CmY=dd z@PfW(e8%zZ1j#e}(PSBcXj_1%*9_XVn8-0KqOfQxS-Yfk3(mtK^Uu05PRdpDcs;ce z)P(-V4s9xnmp7aPP~oA#9;7mpoStE3DE5bTqQsipI9U*A^t1(;$ZC9WM}Mb^?Ll8W z4Q*o=r*D6FR$|#TlvKm>)8;RXYj(I9n&T;(;|7s~)xkK9Ub%T`MNH~e4!QObrK!x_ zPj=;QR^MjX>44eY{AAfS>M3==)_;4HL^DTQq3*JK+ipu@5IMw8HD_1_7z6{@a@D{y2oi9r%#JQl83s0sYRY$KKL(tWB!?pl=KK8xI+2Z@|j z5HoeE^o1O>IFb-4_OmglOUFC-wIH}|7{%D+ofH#-x8qWnZ6Se-WlR5>8K+rxIstJ| zhU@j)>jc}+kq&+7|8F6^qtVNkgbQ#a%$mizvAKiPB zS!++*u^8>Pkigh0t~zl<-QsaQsGzloiWhzD_e~xc!s~7}%uIEL>UHGuQuG%&;GsAy z$}4i)wsKSlTE)68iD_n;V)9t_lQ2~9d%A;gKs#3(fu;M0|6xS{U=VpeL>94LiOTc7 ziZ5$ssVMC5AT)aS)uRko8YJRC&s#@8yTkq_CB_A>gLWXcMV=0DibpRjf;bN}m{GN8 z1failK%>cSxg}kSNy5VC-*)!{EZJ>*kM`7l03|`T~BlY;z zwti72@lz?EKEzZSj&OyYf2Z0vgSrO^AArKvKNd(Ul4D8MfbfJ6)Br{SRY6h_FaV@6 z$d>`49u7^E`Rv6;F?~isw7F4d};$)k>A##t36M zq4ukh=Xb}8g{D8&UP;JICMMtBm=Y_nELP-4S_t}^;IiUmU>e8RFwM6`2_c4x5C?us z&aGl(_X65Zvghu|bC8Me{u`cetR1xWsvVr9o$B0-ltu=_LqPvmFPp&1Smr;%PQmvR z!+ta@MJf`+X^3s`EF?$Lm4bH zT!qQPAPMY%L$N3faQc1&D#fe}9{PMFCI`K9B{E-S4D7qG{z>8A?_;`X`k$;k?Iv=B zZx-2>G-YPp-a~v^a`G$y)a;~Gi7b3jNiX~F<)wMqKf8OZfwd(x8^BBI7j~*Qu$=$2~D0Z62{>U94pbj~%%=d*z$ouhe zct#YsHAvEU0L~$Jgo6iuq4tKekn|WwPLh+DlAVPW3VMsl;DV}pfR1{(q zNj-f9g%(>~KjMRL+OYVaM{k#kqU33;ci4!ZNg{rHLi{2FRzS>_Je{8U0W1TAu<7+- zL4YB-9H$srE5xNO_>@5jz#JGerc&a74iiNyPiisy5o4fsq|dpu&p^qt?~vdz%v7H% zMh3QQk~N%&+SV*pk}SB}l>Xx5w|l{29pwxeIO#xZB!{vr94vty2`CH?Atnh0AqF1b z9UUy-gla{Po&@9g?O}QO8&%^a(J!S+~@#wDa6N1;{7*ODlOQ!OwlY6Fn`Cw;ru8I38@YNS#De}A3 zFVMrnm?-sq=1a0jwYY#y?s}*nglDn}xZ3a~8f3w`Ag(90-?ATilJ_W1S84q%L;}1` z7J^Q%)Qb=uiBIWDu0ntNSW6Tf@sK!BS#%+o-Hd{nV=KmOA#j=vDPTUgs+>!%&A)h1 zJer(Y4*t{l4HE9oBO>uRDd-jY6!?b6WIg6$TDFjEHYQqO1A&_6AmE?900{x9eA2c_ z3=Rdmm>WEPsqKIE z8SFQ`*u!LFikWd`z)J9dZFzxsygwrI5KJ;jWojs`7&-|yMU~d$b9uz6?t}*LhYtl8 zsk-}9F2l6eLn1Ch{*1Njv8Bo{1)C{Iz4N*Bz#*&J;Eg_f zxgwT|RME304W$$T*R3uA3T*rfK;N?ln{aHUE;=(lMINj^h`;<;p>0~smZDia(V$uq zJ=D*)B)2B1S;>g4Fu!>ooM}1!#IkFh_;e-$Q`*_}&{~e8{%KGYh!vE6^~*AqztV?% zVwe|~jlik6;IE_mIC+}Ap|uDr=l@n6~9Hq%KZNbpH6F~$^kb@1N2J^s8J zrV896y+eR-MJkg-!?_YgxDa* zw9ktgKK_orkmzUUf>6v4W1y^ML$@Dfu=@L@5-;;HIAFo}KXb7^0W>1;C&w`5rpJ3B zYKe*}V^heE(yN|WX7SrUH*~a8)6f5;rQEtwq!U(QT{@2!c5&U=JV6FIb;GW%`O!XCkhlCXo`;$o!snon z;^-4`+9C;Tmj?z1V9bvJjFMg67G~KXPhsz69yt#OtoHbZJ~L#ocVYlu?tpm0%K#ty zm+r87v6Mnn!CqH?Ouezr6KPjMEM6as*Dl5)dVr*hP$hCp3O-g_zcMuwv%HPV5wL+` zXx?$&hM!&xM3I4OBEu_kOriU+ zaH)BsXlB5FjnsbP$|fc3g;43GoF215TQgLA9CqLRCI-dLiQWfk9TruW{?`XuhyZid z09BPb={01J}BMYWIibB=gagQMaE+8qinoX@)lS=-+ zE^UO}fLl43Il*ul9`P!!s&;z z#79C_#NT~i6Nd!1y0Cd%YzwW?OpmUiM5V=MnT-L20egk zO9QC3;@X?!p_hsh+sz*C0ShLThzxWOHwg7Oa2wW-FJVm%&bs8mG`fwO1Es{TwcS(8 za?KUz(KDAIV1=?t%GJ@7?eQ%))>tPReb*A)OB(d=o1`24-iT76>6(rO^wK2s1W58C z{gx6~=s!H9FjfM#Xp%$Huvy-W=Y*#T^hgiG4DsVM31^&?JH8AI)Wd#^?KtGy?^V;kW@W}&{NlebcL*-4gmrS2!qL_fj(ON6gi^v=}Tb|LI|PU_P9od z^rsk1sJYzi2n-4bCwQg6-6kq6HwjJAPPKMTuvLqdDn$$P>Q6N#8l1l91>g@lIfTyQ zyRm&*j~ef6D^^~9*aY{{B9VM3ztp5TnyW<1fMVhRjBG$V+6_v!9}F;-m3vmjH16*1EMn?gU71*W~W+KWE%K?gOJ= zS$nLSHP@_JRZ{E2pJ`;xPe=ih_cipFTR&@JT3Yy6X++LPiU<*KGtg3tlH%T|ckJp* zfvFU!fuoSn!HpP()ZIXXN%cF;2E=8{tZHUJQPc*{R?Cy~g@&q@Co6IB`@iu{6CFMK zFAC9$e>k##g-e2H4+8h)xT30JOuQF^`1yMgw{vZaWgD|cFa^C+HZ^gJdG=;0foR*I zu+8Mc)Y~~$rHQA40W%$UVJ|Yk`jbk9}Qf_F8uwRrc;oAubXxe6!KHp<@ne8v&ule`^+g=B@@7|L~KuM^KGl zS7;(#NAUq%3k0xvP+WT+XbMq?B%lyXjQxUpRAr=dV@rHNXEdl{oJYF?g!BSjDX0usQ|6z~4-xD`$WSZa|1 zP%Fa~x>csX4s+B1`#N(5W7XdLf+q_hwgJ)}DP_}AZNsYHK+F8~5f(q1p}gC2#$Um) zd}Shpxg!O+FBH-Be)DG~HreAHgvE0R6%6jSG8Jm1d4dZ-y*p8PW(P)M<{{ho*D@b`y^Xn!*KEon1z@6WH6mAI zb%@Guo;94OMo@7RDsFROku>FDAFwn8CZnT$iSQ{r@O5@p#eNJJ=Q}Q%q@^M=YxZ$S-u;_t_cr2i&R-2X^J&1$ z(L^d)hD;$L0^3LMA`1rOzzE$OdlV}Z+P&6sNt4s_D1rq0uN*6?SzLxSbTR|?K&?;2 zcjw3i_LgfB0y2#Rfd?3e>WshJA{q*0n*R_cCZj6*ZHvS_mzN@f&}CNGKSghf-tl)o zd*an>*=Jd3jGF{4bE|MRP^sUyU$9&Qs~XimR~mi)y18#_Egf4KU3eftU?g{L95MHe z3`)eegwUy5y#{ZBg+D@svt}H+j-H{YZ6&$NNt$VgWAOkcC7N=U`F+5lAP)ozcOh=x zgG$J-N<{V(@5tX#$RBa4uLpLlDs%#dQ+VhLCsc*mWnr6xnjz^Gis@gaOAb2Y;?OAf zpR38g0$rZm;*b2geg8BMD^I^8&;1|7`md_q0{~Vqg!PT8TdGB+`=pdj1VDM&f!6?j zHis#qc@e*&g5#*zumZa+S~vj=ef=X8nUmjvm;=6Q8t}&Q_)5FeE+dE`Z&R4ys}Utjkqm1jl;#R2&@3`q8|l}^C;L8xNxTxu zPH2=`Cf#-54$$=wmJl7!OR&Gc5g7A>_D3XvcaJD>{_~RZMvwqQ1DW>{PdXh=HryMv ztBgQhF>SG5@QDk6F3d+j-d`&&dijImf<1?i8C|5LLy)IwS_9gIWQYdL; zW3qSQHcMk%mn#jvY%j90l;v2iST0M&5^?fin2AmN6pnp|t$~%%l5+l4SuLMte|C}* z;if5zF(>o`a3sk=Qr@p!my9H76=`ZoR4lRap`0U%Mf%e?NJqPaNW-z*qC+^CH2=vI zny!`qX}z<5;f@C(qy-HPj`feXaJPG(K9SCqf*Hf{RyvpysXUi~fpCz&=IZczS>s@% z^YFC9gkuEul9O{oaB^J37j~p<*gV{t*~!c6xnVd5@Sinnol z4~pGhfxjU-d_^JieYJqPETTH@i&UDB3^gDrH2uayMmhC2s~2}^&VVv0+$Omo9)2a6 zQ?<-o8R@U6KCs=S{rTj+=l`00Jol(zYeg@c>h$jC$_NhM5ghLMBCZ0A;XEofeF?Wk z13zuL*}rrjS12)tBLmItW{ctWQPCC_t{?K=wuYnKSc3!!y7HF=C)i+f{?h!6zE8&)M6b=8Vam(+4y!bzL~~$OtJeL+SKV zB{$djEkf%@Z9rBysvkbX66Yx*fdnkuQV@N?Wo@(gCfQOs97wOPorX+UJQ5pWy#wV8 z6#g0~&S%)J!g-^BoQ+IsFr}TW7W|UPigAO5REkk5F_^(N3zVMr5@`QGF_bu_gB3#B zfx+!CuXMuAwS%6J<8zKsqE-&?dN)c3N;YozZk5%wv zp&_@p3!w7tnRD2T_ppi=yp>3?>n1N#e*sdbG1aR)g?XBvv4#F|>GlbC>=!UfS7iYk_wDr z<^p_o@BV{Li74zkha%6nL*2yA;T?`Mtmvbgg=JI{w}YQD{w|{; zjeQ($AdP)@B^UBAEWc25&|w;tf6P)?j7u!J!!1A>8?^V^@EN~puE5b8A> z$ni7JKC0%Xd&b6$M0vM}AWfE0oI10S$r;ae-c-kytve^V>u-Hv|Cf*^?i~mHjwv>> zqHsB3vUWwGN2h-+z8&d(^*@DYeejix2YDz0pSfr8>$J-Qb@Az}E|PrLSh!@FOpHfC z>Hj?Imsf^;$|Q4xA!6-0&L+d6@%dc`IDm6!3vf={5t`GD<-{Ts(y3<;h+!n6=I*p% z8_`U_8B9x4J2bF;ao zPO2FuGP1+|T)#lR8xtK#A3yAf(9VRt;d>w9^02DT`9Gv`>oBDQhE9tEA3=E|L?&TQ z*0BAsb>NYnL<}p%?7t?3XY^uR@?X)@>rWfYy5T~%%878(5-o_uA1;DKI@GQDIr(N(l?Xl?${x=&|mMHC!{)XVB}vL>P;b3u3rC$R^^VL_E(yvr69vLR3iPwyHCaME94g4sL$z{BQ0`0m&Dokwb zk@~?VNCQ<~w15q8LO)trG8@V*Qh2!{ zJ0o174$CxMBtmy`etnobcPXaP*N(sdGtQZX0h`DN-?aiGqttn0`WN~Tz=L6b*Cd4a zRx*H`xFeg0x22K7XP+9waCNwEIL2dml3F)JO^4rp^Qn)2kn2-0vLZ{-pGrgAT?@_NC`G|f z!7b_N=_T~yl?urs-r0iJv`vRG_0Cc%51wb2%m?JK2N4YXl;Po&nH1w4L`+t1q4`>H z;Or@ntWq*JE}TG%)9|~*ZH&|vHiwHz000&n%oUN zbN~gO`^SwNu#F?{n$q~M_}yQzzWDAw+>tG}d|GnF5@ZAVz+{}fVMX{`)S?4WIVWOt zH(~V3^k#WXTjsObx!s!TSD!h@4L%1H#B4ryPWz*~vnKvuXQq>{wcP@=-5yS#1#0yW zXel!?DY@Ec<=YbM$4M0B=Y8_G-g3Kr&lTLtdi=hZMLi?TJ~BUbzr#JVb^iSP*dxv| ztmsZrjI3UA>qr|QHmDDDq+VLD+kT@C`#vcmQ_PP@iBnhay67DAtyI(@Qf|ts%mv4iexco< zdV7uBQ#QFfbhaBs$%!BelHR-JFWofOa23}r+~urkw>3@Djc00`R5UBZ?DPr5vJ}o` zciZ;0ImzqA~IP^;0fiI43__Oq~Uf5(a-Uv`-^(_;G(X zXwe1>N%qM?r$j*pTSq&UPRp_Ll8!Q*DYith=g6mFEM>+g5?)YnN`adNbr&H`{u%Tg z3o6$FHMr{hh`J_xc1nejI&Hpk1$T8T>a^4I;MlvAlfFPLjjL)twf9VPXo zj{%##1hj|pdF<}-*po+&#g()a4Rf1F=#*Sq+Pb`=obcwZrswR7C9(!uzHk;%(sE6NY2%CqW(6dmQOC@vVr-ZKuO{g`d2jH=z zI&4!=#hg{c7VCM8>=BmI2OeHIG-q+gt}yS@5`196Cm zJ{plE|NHO3b5a}m-|ieI1l)6=VDx!-a0@nst)2fSGB!Bo+Ax$oL6C zrkf6m_NN!YhjrkppoUfzG zv96sbl|wSAWZBdeC2A5qe0c;O?x8S^M0Ph!OOe(3F>iA{h=2qPw1Fy%QbImWXP~z* zC2@C?M&K^gRR}RB(`^6w2yl)ufghWdti@ritF_prF1D~WGVqS8pY%EPS$2C^=|M3e z(+?XbL_zccM%YoBUblT~7T#wp!|&tnK`J0ee2G-s@N#(y=jV|8@c> zMU9awBXEGFO+H$E$Lm;W?wsS0t;l}p%)$1}Ze}cY$ZOB;z1mC=Tt_I(8MP2`et$`E z*0%ZLXuWjx&E=pJ-o&)@8)yBb-VW6nJudu$G+IU~eJE)>7wZs1rH$wzfs((2u~ z`rX?BG}&uWxf^Z3h+0>J}jWrPen$tUB?3 zI413Xx#;hHyqG*z5BeOEi8xaf6FTOos$aepcu?|r*{<~sDyNds`Y+aU^62%u z^a>D@K`gZfNdXE77HVcg1CFo){)`pZ;Axa>2pLG8)qjePvZgAut z1tkNdA4y8sh`34!|ECUHUv9kHfoMO<5u8W$QCwI4GsP^N1BCxjEy(??oH#<7dzAy zq23y=@czh>R|7RrC|qrMw_-2DbgA66^(>i|>cuX?+?E$<3vA5GZ6n5$%H67n(Y0Oi(u~ds%B1&l}70-v2j;Q;d%awLsO#opi>~ZVqnQB%4_uCbSSrJ zR}=^0!^W7`Y%f|crdb1h@ePqm^#fZ|e>_Qixaw99&${nfrPj2|!3n$h!Q=GfVt?U~ zZZm*f9!ZMyt#-MeC4wF97Uf=I_l5_s#-Juv`a8u{DCIT-tRzLf4+T^K7D3)V8KEBo zrca0*1`;KN>^G*IND_X`8LY=m2c1a?LVwU08cq#4-e_w49wjQPYm3(Owe`g`qf4d9 zPT_5y303JC^QBE8Smg+|gUV?VAdu+Fw2S70_F}b_NMHMK8c5BeU0O3H8P=8C&k*+0 z^oUuCRMun$E%~4x|Fq58&|F8EY`PFW>b$!vlp1{$nyVU1|qdmv4{lBb@f`0=T@q*d>RP$Xq(i>T7-ObD9P#nt@_q{Y73lll@2$Ef zf%5wuVzD-=wX3u|hDVo@V!`5P=yuBZPsY{tmhh+a(i?2EQLwjbhVC8X^CF)Tm7477SZ#ufRJfSLA*)$mi-k#qfE_% z;-VP0NPlZz=!_9&^`!N_n7gi_&N+LS$g*WPyu4c3$#aP_shbnnNfVb5prii(N$*Dk zl$~teA+;C=^d#**E_VSFVxbo)XvpTfDAK4e-%nyM4*#0E{qxy|`he$jW3s{Pk`f*6 z>?i)qX?6&2-H4mb2zDwqQg`Q6nI8w@vNxC-!1h#+*dUczqX7a5wm z+H$|TD|$+lxX)Btgqk~XS94#l(W@5W{qmFf7stow%=-c*PO8WcIeEOxY ze6`_|-WV&m^a(n}RJ6yJnMRV45;Uu9)~YxihMqXzN8p4T2Th~R!6e4cI)hKJa?siP zcIoh&1~-nSsycAyjHC1(>qmTk-O0LE@&O@hDc6^HYnssL@4dztSmnH)D|9BXwws%H zO9$X8trrCaTt6YF|ABYnq55EsKpgSo6j7?<$LaA2dL)4stF0sJ58PuZ!K8fl1kpF! z!+Gj`0^Gd)S68o5op1Xa@9EdOZ=@69+y%S-#jJ@IF6tJA<&6g_UBxFNqwmf36KWc= zq1Tkg1lx0FpIk>fQ>7R89KJj5ZLm&ekGm!`U@Dy`QCwhG!&#XJ!G}(?4viPA=Q6H0 z@5P$UFbqRV(0@ay@mJu=k@(9;r>9FUzf;wvf8cqOWuY!LwU9a*?fm!qe zo9=nx@1HJELxBJ8OL%Rlw4luYBcs*#rwX*S$^xT5yWtRO<@{*QhMF5XyXM z0iRn!@@x@Fr8`da^4ZGBR?dUf&h(X*N^L$8tWQ}PG6=0(A{B0KbvjaMWv{Dg$5~;Z z#r^r9-j>7~dqs$pbi1noveLJs25(C$deJ3V>Tjz3&Nb8y6|Ummsx(cPIHnu4;Q5c2 zk&H2)Qb?ybH||DB;-Xn1>de&IBqLh)y#4kuE|#sBn9F=EN0uu5{-v-l>r0sLDIX!_ zK-;M0c#lByj3kwb_pMpDk-zDw!Y@q=-6zX9)vfA#D<-KQ^W7r<|J)MoC;O+4&jr zg}k^s`-^i8ZwW0YyLvXB4RJTzZr2DS+AZzjCnHT$E;ZqYLM_HS zqIH}~Xfh`0%0By#N}1RXGL7#tgAI=Zcrl{}%-%J>8kwi$O+V~W%SYFR?YT)ttX;#u z1gf;Yb0RULgD?xdi-Q;{E+_?_ze{2N*Lv~&MoBd5MZ<^6twt3{62T{S9Q0_7+6L!R~Akfmt;=9ke0B^q4E)RMuF#NSTXNpVdCJM%Vpl*z1)Whu&q-8}~8 zDtF(vn8K9OhKe+K$*X@1gT0ItSc7QN2E7g`L#4@xI5A8_Nq#}h&=$?j%2x>|4N%qH zuyqvE<59LrmU*JfIh^6cLnP5Us-mPq;>;F*aNf|ZtD0^^MRjhC!TP+Hz4%UvVvoc3 zAIOE51qg1Xq9JNZ`RV9rm(P-!c>DjBujFI(XxS zRU66Rfxm+u<}It;tWp1823$+Cp1c0xl5RaGT}7da|7Q*_Ve<{BM<0jROa0o(23U6B z^qt|4{STbu>;amsAN66&WFdg1wa!aZHv@pb!g@-w}=7V7ua>OnQJ2pwPDxwrwRkX#177Y>2 z5`&e}*;4~J<8V9*7N+z2-4v8xkIk1MbwKh zr3%%;aHSXH?`%A9(OwH7mjzQV8Mh_^8q8t#ab92iyFy~6OZkM=Tilz)&>=wHv)8an z@REty4B)s|GXQ=Qhcr%uc2_>>X%-nZfkpkd|vMj1is_TO+c)-U8hyGa5 zea)QyQ@OKuiNE`HgszFP-|N{SIF_!ic5_nu53%OMJMELE^nXcaam|*l$?74)9eBUOgBi_HE>z6e4POQr?nDhinWQJ3qMwiD77h9B z?^0~*-jMQTO@|){Abg$u+wXn(d$?Yt#ZRqMHOnY6-2ahqyxt8I|N6gA6XG*Jf-|?< zAQrQ1Nr=k|h(!T_SOix*q8*cM;1TL9tkjZtg2H_}h%Db1cmhAf?i^1-Fo5?zQXJva zs3*91;)8$eD!zV8w_S7*c_ArBUh{EU2gT{V828Oar_-00lVLBMpSo`ypa!v#1plzv zn~$q()}ZY3p_xd1fmXLJ{8-=8`4iwhMhXojQdHc2Nl*O|Q1hF@1bdhW_R7?&9h;J&K7upJo^1iY*-!ag!dLlYstA)K$^lY?F z7SD%X5TVXuM25ZIOLB(f*^_0O@H6p&KdRZ$vp!z2Cz~8@LjH|Yk7oRv!BrwBVD%>E zLjaQg`dM906oKSZK?%?)5$cSg(zsguOQ$}Ppv11+q*Kq1vPbY*zFS=^&}o;qUFsG7 z9TgEi5@@V+QW=5@;iqG|Zn8w5Vc^W!aNS!@5K=&|0@d8hrffD@2Y@leTAIWrV*65wr6iBv-Cx$e*r2BeVzUeY|$^D)>&<&?vNxezpb+g{E(k=0RRVB5wJ6ue%e_WLgbo$4Nk zI?1yl`zV)=O1Q7P{yx8i)c{?|hYx2u(~gIxGJWf$y_y1fzAr=nERUDxbea9)lUFY= z=5SDUgy!ETx+rW^ibtk95)AS-4QQrRE18xXcZhQaT{Zjt`(z-M0LuH!PR9gh`Fad< z&T`LERac!fMIbE2-*pj4;bp**<)Z>^yRIlkGFJD7Ywgx>m)k{}biIK*F@ct1b(KX) z#H_l+4|mc9*y5~0&NuaTfC%CD+w-nu!6C;$v7Haou>V75-b;i8Q~3_`K}o3uK2lfN zfY{*#M6VuSa=XOhFr&fVk;gjZxC3b?$GJ?3Bh5k7qsRf;Hv5-Gs98A@O+_$jVaPmX3cg%F~GG6WtO^aFxCr-r!Ido6JgB zRdAMsaA9UHX{6S8pwP)X2e=S&AE5*niGH$Q4|6;fHTj-!9yb&6b6Jq+I#1Pdr}b6o z3UPoXLzwf~WGQH8KdYAi^_Ql@g{ZH`{}KayaagrzUchHaT@``H-2?YtViLLJ!#l4+ zW_m#|&kjvh3aFuA(qa@mCB5^vp3eDiYOT&G?Vee}z1YChU6yf5*vBPUC-d@94 zO;NkDK)UwJBH&qvDEkecom*%Hd$jEGOi3y?*9+q*u*LhsluW5iio1>Dm6dgpUZ~RI zP(Vfo79GJ)wJNQgn(b&1+pN@bc0htQK3^x3{tlAQMZZWNgw zki803lybjs$AK%$-G4SReU=6Vf-E9axs6$`*wy1-ju)HT#oB~J-u8Th6QBu|zMPOK zey1#RZBPYnpYMGSEkA4X{|mfb-s9d|V4qozx*{}^hH0m=i>;1{{1|MG3`&%aK>&Gx zpb`xkOkLEFP;(%?roR47Q!)LwyoZ)#q>JEe!7%JIog9lePB$~`EUa4M(G|pNeR7#I z?KqGydK9V}X4X0ssw|V?j6Ki**&=0R%b1qF>Db$7IOq@9|L09S5J6WUc5jZQ^;BXe z`ZqGo)17_}2=MN1m^GBAvK1XXw;PFwiNo4kgmeFt->Frw8E_TbQU$Vd=Y#Kv1oXau zq=?7y$;ume8@OrZwHk_CwuA&m51RU~ znAF(-Gsd}niIkfl1}-SGiR&i@S$vA(pAlJtdMuLxG ze-d?LUaaJv=IR(IiJ5eQ>M8v1yX}(krDorGhyUyq%Gbp|u zJ3sQ!d{yn}VA%ZTSH78|d}U?ga{Wmj6kIcJh~!KeYm34r(u13CC003GDb8c7xcdIj zGxsJV+2vWHDbb3iwqSD8P1KlM5(PS;XFc8=oNP^R9*KzUa^xsnbAz(g6|bK}q(7(A zwJ~n3P;&G@EE$soP#pF;$hY&O0LFjun;B|w0*|B2fLNYzFg`Td`Z?scD{x61bpwA| zfnOwBP^yD?(FH<*h-&*p)8xrU-XEy8Gc6Uoa82AVkLOMc$m7BS0q|>q12hh)a5D2F zabM&ucl43S>N&1DU!o2Y&Pb3$KCuda!DdA`@;4hX8b8uM_I3>{dq?!PsYLs%MS!jL zFuLZ61eCb#XhFq15~5O;j``k>*bI8ib3e5a3@}D1p5aB`Puywb0o;uvgO`?)Q6G}V z@uYxNX>C#YF>ov}LXgPEc4!!1Qksf2tB{t?&TvP~0!isX^~VXM_ERH9?KjWPLrC2Y zLJnFiIKLlyC4-G}9Pyc!xmP<8btD@+-YC^}$=P~W*lX>!NA&q)4s@ z_k2r}#14q5V^wu<#j+cf#@=zpqBZ2%T!5qmS%VY{(`IcFPLMmBAj64N;*pk{*opKU@7YIqI1w zuk4)!r?m~@k@Ijbt^9xyc<`WU@fzwjK zJYuQ@1_oZk0Er@J(!r9~$30v7Rdj0@0PFJF$nX`};M^Rn$x$Ws854MM9!w zwymO>9f+>Q;_vx&;{wC*0_fYaAge?1%R6G9`;g8P@N8TR97YBkP;jyr|1dwGpsqTj z80@-t!S)=ND>&@@ewBH`w zhI~60u!Tz28Va2*eVLtBO|HwmgOZ);i6Q+84G50{p^rGxV1>bw@!W;BO(I+9ES2nJ z?P*oJ2Yx*8%)RYQnmIhQMpHJGc3t9XHkDR(X52%8MHpHyXyHZw>NqYk_rjI|=Y|oI zh&cv_a~PiaxS5asis7jlz>fS>=wc(XzvPDmQ|Kd0h{|UNT>y}yWnvs;^;_SAXJIlG z(-G~mMP~zMZ6iw=S~JIB!`((dM@5mrFV*4dMxZZ(E}02-rWlA#{)pPp3lx9BB#B4_ zfC46*U?~UTKg0ex|1JCT$-$nC0dP&o;Vv{l@>9oc0*8yma-sxnxZl!Y%{!tk`OKE~ z`9IfIo?l;vb{4NRBov}sA{5zi!YY(P+>_c-6T|dAl2N!Dgc5)UtiU}c^)Ng>^Mj4u zC*hDui|g;7gUyVWZ@)q6S1J)x;jdQoPG;aK5cneoaZkW?wwerN z{0#d1nc+$leEET{bc2{d)UG?zx|5t6^LTL~OdWWS;0swZ>6YtRj!M2t!b-7D@(PTh?vTpxYh8VHr(y<~kRf6XyB0^|P`}R&?F1Z7X2~M$H zAGSHaAwB&zHjkEyx@+f`94K6!>Em);f;5c*8I8XCon|sCO3}OZB!9Vf^iKk+9Tyx+ zC|t@NEl|Gp?D*;0faEH4M&3(kGPzI)4tJ3(2AAyd!C>XxXNieKshC10miCpj2L{+E zOm2CW;fS73spIUsx{{!gER}=RaOTPJ3w>+D`>>C@M9FNpY{8U7t9#+`u~}~0aslQKFtPyYWpC|GgW9E51QE{$t>u*WbPVzo?s) zjok%8{NRtf8Oev3L}{-zgI}-b>)9dbz&pl*6n%&3-y+L4q$|lfX^xP|HOS|XKE4W2 zE`66Afrad$4{8lpbLwCPpc>&5;)UX{re@dSeoEC*F!wkIm_&9WyINcqe@5N8Q`!lZ zGMJV7M4UFNFtNN{yVV1Y3eiT_=*3H#+SzX}FR9tBvZ5`=)HH-E_}XT-S1+b?G`MrP ze!3Pw7_5dRySq@eR9X}~&K93$Gm-o!P`{G%-0Dq*V{~RSB3MIMbrdM2J5-Hl2fl>I zyq!Jf__9XqDcW?!oOd5je3n46atX01*%xf5iSzmQW6vcT%i2B ztaOoPd1#;bly@l&n5>Y}2+kfC2rL+Z0(*jDrq`<%93!X%P~3R|A@NW$D4otwlSo5& zWtU{G_(3|tzG`&P3hg<(pz7{hE>Vl1C~?`PcHwQ8t@O+zX~dAS!RT68DE=lDM&D4} zELE9q^wgO`07NQAe{Ds_mkk$?AKx;Zk?=@AT!IKTJQw+?^c`|H|Gj6)noE>98QK)*y^og?%HbTR8e zx3CCQ^>U;YIG)b<@KAlf$oPZVV!1USgV1J4cYTm6l3inX@9yrwEUnnF55-~a$+?^L zZNV!}VeGc*UZ7wLGn>9yUPYhIQd=Jh^ml!+#@#mQwoWqJlcQiG&i2HMf@cH3qU?5F z%lCNIr(zu0RAxOE=ISDamcu3GwtfUWRv$q_Fl!eyW3-*YfCK`Nge*$G8l4DDafmFp zc_bd6c50vwG@O6{);3K2Ecv$DTYUJ7?C(>aLgJa6uz$ad)avZ^8M8TKFAlsmO73K%;DB53Cbdz3;Vknws*_Q&LwoDa;J* zx^(1FniRBd`?|cYFVth`pW32MBWDh|G2EXn?UJmvolDDA(ogu(WW*XYqiTp7EdH@x>p>e5_jJ(fEy91KOZ=Cs} z3%D;xEV!&feyw8!NMW{AzDkkd*A{J~YIj9UFug)qo(m8U5)c(R?#n}wI?FN9nX!gj z3bO2%^fJ=~u1D{fkAu@+KQ zwoXNCc6xnN>7E~!{;M<5rOoq+cu7SZZH)N<(FUjD9y3K6o2P$nUWz2HcMo6+cgF`o zJ@@DQL94kVsVG32{g1J}m*%Nk0h6ju6v=d_b*TYz1nse4xew+jV7$`x9-aF>6XN5a zLD}(c14FpvpcJF23}r6QBWuY+XQ!MW&Shk5s+a%!L6eJsddCO&5J4U-j;`}XDoQ=# z6Tx;~O9K=yoe5YWjV3{nsDS&^>qnl2*`^Q#F~06A*&j*vqCqrHI6fwJ)*2-r6PZ>u zI2L{7E)Q{Jio?9RO=@IfRNzFPJ)Zg8g=lYTrOHZPQ$Eu9O?k>U(f6?SCU)(UGFn5-^@SNA|Ja5**>2 zgUzZYwd6qpl=D^qdkA|{#i1ns&s9LYU{{>sI&J=QDj~- z<7o-R1v9vEC@s(Qu{@QHSLH-_t>jaO`;yBTEJT^hJT^Zi$_ytXDzB zBtUM$)&Q27-n`ME&@u+0B%^$g&Kh)%KvbAk^B1la#2t96fI)0qc(kii6dWMzOV%<* zW-Zc+fIM$WwCM)k#t>`YP3I=P^d2QhA0Uc?|pz0q$9ix809Nh8HS zo_(5)wbCv|yWC-w$hBu5ui=PZq~ez9Rokl98LCu+eSHR*t0b~=LuO`V{#Z(D7-9!s zbbT#Y_x8Qb&l5zy(}5-%x(ZFAlxB3@KtI4`pL^uGZ8HuBq2l!+nMP?iX>PFj018T^&cv|zVVuIAT122ok39;djE00rL^ z{5+B=kURR($q{UF$_0=1tVjQ>g=#)gTAznpO-o~dlU;zEhlIYJqCyMQY7w4T;#(`5 zN2QBp53_wj!)bzp-FX(KYn9~c32ET1g<9oH4W+;Il{ zAVd2E=%AQ-sjlaphu@%OaSV>1`f<#ulGtS|OVli`ULoX_v%`Nm}eREd+D1G1a@f>6g$#zCozA zQUt>-OK$@?Czm44TGU$PMBN*Z`WO&b0Jz6Gq8HRBLgZkodYDn>jDHVu{Y6%LL7+?7 zI8%nFi#AF!3@ka=kcZA#3p-ZZe5Xxz-} z3u#x1tgC7Aj6;M(35gLz34OS$908Da^9Ei|18IFhwj*v|5CbU2=+ zDHJJzlA*2FOogQpqPB3o863F&igr4T7|B@K`de@Mgk)e8MJl?BEcq~)#Pelh(Oenr zZb9ykDVB^&6%A#wCPdfWzrkEC;pT^X5r^1I*|g}%_3wbBY1iZ`PvBBVf+h#$aKsONG$N-XbYD?P7YnI)HetYI>*q-_~v5V1B0C(sKXnT1m9b}RF{ zNB+$Nb?^lYk)qu-0HqxKqe{Wb|V-jCQbl};4V7eOJ%p$sd8bTyITl;QI2TO1_< z{ymuIQDTIt^lYEy6Fy=wt2o=4s#LC*VWK&ndjYRak~erj86u4uM~QAYx#`T~VLkhp zmJiZKK_NWf@hzwNpk81oE4)G#^Q9|_W>qmmFXK7&tI%TN4O|}zr(Cln(TEP;LN;J` zxEp-9(7LsL$j!Fam|9EeeO%m|9Sz>^V(_DrrTl$rNS52} zDbYt*#H{2bw??zZn zB^x2pr0O1b?GBiyfM9~nT3#gGGDd@*l{mXa2hE>^Eld5?EFVt1vf=eLucRyrtA4{Vc(xQL~wj8H5LcntNUuo~+; z;j>GXmDg;AQHvy4OVO&{o>B}4wIx)b1CA9MS73dBtmB{B7Kg>Gj#IzD(xKu`%icFV zRFPBV)tldmjuSjq5vX!Iyo3Yto*6}^s#P>!bDN!`ypsqLt>1F(5`CVu&|}N!eY@Lz z5*T^TonFjJvHMUmy{C@o(?kGH>@p@7D_vi~E*`16E0k_Q$%E=g3J0jSSd*?`Lk%OM z2p(;N0!}~2=-iN5D9kL&Mi=izZ=L#n!EVKbf5813_B)Vf?z@7%Mr%O^qAPwjtK~Zx z?$_p6NuFM2YshD!LvLftxK2Y)gtKp4LU~ch5-~6e$JeFJrMWL^A2fU@U64RZ_D*7f zcGu?S%{SJ5qL&$CI*-=oHU8zRxLPLXdW>h?2g|!PIaSVOch<^^X{;(n3iqsaVm(5A zd!;Q=Va>7p7^DTE!I`l^|CUUDWNEJ^N3Y~R6f@6WD$5xth*s5Zfqz`1ZYF=K3#nG&LFXvIf- z_6$L7NIj^Y*hi4~^oGx-7=tz%(yYwaSJZUR!Fr=WP=O5;o8i5B^jg|HC2g&Yl1IoD zgi@~r09TZ?Z!T-F+MXi1gMI|~B?jhvNuefAS!!p!G@_zr$IxB3sjgR#Mv3JDD;|II zpKuGqo>dJ^hM4GZX^Eh3ODg$&8Mw9j_;CEw68LP!pEL}^1=~Ag0w{I`73wy4eQl4@ z{vZRoa0#73X;AX`Po4Pd`&iLBYa7Y@NWf@iMVqvW2O8Gp$C6r9=_Y?On6@ejqAz1r zo0+g48z{vC=DncQrqZbA>m(U~x=NKpzPwvYys$Fv<(kdFk%%4hcaT zBoqXs8!p`~A>G}bO6R3J6lpFk4T7|E*M9zXXLo1!4`!U<59fP%<2mO!=RB~*+C+k% z%(ghNHQ-Qx`1H59lym=|8IRCp#`|9f`0)590rCO24>96IxSU@o5T& ze-I~fZb`V9De=l&bHbj%WZ$9~PnkH(u{S{x2)NBE6%eAxw2F^4Aee2bB&o0h=e;lW znwcWM_$lvKEEz~jP%Dii_B0mp*S%A5tWK;@3Fwvil7( z)P`Pw6^V+8#)PxjBrfoGs{7e2?_A&Ga#lD>HgP?V%}@BNnrOg-nmsOEVOLwjKecus zdbjbHo}c{=y__pg5^dCuIzKwuJzQo=?b_h&<!gPe z3uc7;XneDNqc-C)nPc=5eSHNEZEA5_PB@Kf647{#vljZn6qZo!s#W9h9J9_-l~39} za@mbj)J$-z{GNx@%^blUw=+FxjqW;Wbpl?ChDb6Y-|mPtxi4a6p_2`rSb*M z@DuZv=xFL1Te^$;AP}o>`-%q=p;-Jx*UK&NJ&%6fY+@`fceJ=k;_MC%K{b=k-L3 zjfRRr%71*PC|Oq5wFRh$MQiG|m0R*P3)&4X7>>LA)T92sL8x7bPM?!3^6_fUD9s+| zY=)YoQ2qGI6eTF*h&$@TiHVX`DC*|JSz&Mgu#L&OO7#7W3nWqO5*q z{pK!`+`Sq9Py(Ej7Gd+Q%P+);k|W_5aYJiyL&!j+*Z#V5s}QAHpaai14*+i`dfEI4 zoz;ZUH{s{SboC9&bVIL&7s{==E?&ihW>GlPZk)2-LVYolL0-d8hPBnSx2asYur&C*@j3 zsA?_;XJr)Nd%x^Fb)3^lwE1K8zLhcvgtMvtSsqLAiVrEg58eweeYD%0XE5SNC@<;; zGYC^XR5A-Z5@{asDS{Ikq5Sz1P!HPbS%2e&MtnG)5uvO$OTawt%==f$gJ8v>gd8%_ zGV?#p?WhJH7MheTG#RZ$_3LMr2m-wwaU~AE+Iik?zJUeh+ZQ8_i|1AudJ6&nAJPYf z4rXuI4%{}w34z{V^yPCArlz50h&*W_3XD!?zS)e%KiXQV_>+>a9SyZ^&f5g%h*uO>*>xy=#5q^z+ zH>`jJSt+BZyZDwwVQJdPFP<1>G9OX-b}kVubj-g4rO~Xt>nNQqts)XsVuoifdUgDPto=0ZJ9m%}KfSvm^;%_zjkhH$&C9NmNSS+MjxMmyq87qR&3h;y$ zH4P9H?fg2E5Ehkp3|^c`mH7Oyd`0R`(nsDM4c4!k2$W-3$H1-o`+A1y$rc)PL`Y+T z&pKH2`Yl&4MStl9JO-M=_Al?@WeePC9&KOKP$kDBbGODv=6c#!A#8KD zA}G58>g-l2I~E^(Oed?3Nno>yu)tE^PnqXB=!H^Ob@Sa?)1ly?V(IqQY*yWYhm!A< zsa+f;(M3+_-=Zulu9RQm&y9X9jZ?DyCEezaitS(79%QWmuTucxu9q`MQytM)V~PIx zUPu|jNF6>DU#D2M`fEcX)sEZEnE&c6k8Q*i3fHVpQ(~oN!l~OpezAQ&cu<%(E~HU2 z$EQ~_Dt?nrzbZ;gkNXEcee?~AHTg|!tWe2|%~Lf~%FaqbXcw(6!rppT+Lg}b{mk+{ zH9U>J`c9k|R9QhH%;P;}+VZPc-@1VEioFPqot9c(kr!{1d(rTuk*kqE+Pq@C^G>w6Y421|HxA zji*K#&Z~Sx1^JXj&oE2U=L=DX(GXtsuRZ@>A5&XAp29ACZP|tXnD9e4?Ax|ldXav$ zXQ=%2y%xa}#XR4ET8OiO72wtB$PAhr>*G=idXkG)$TE*c8wA^bizGbLm;*++U^)`+ z^kgBDOG!dA>IVjqpy(~7AISRD$j@x&tdnNE`}85?#}I8lLCKg5!gVGbUeZSOTP0?MI8NEoI>I7Lo%{oF|eE6BP;UP?M zqNF|*U(%9y(dp6N;^}`F1HuU5APJmveS>sJS)95XuuEMQNtf@QKigwgk>rp?P73Rx zmYmWt+H1I$8k)#^4k@1#NPQNZ;JFNDjp*(b&!sbc(IzLn%y4jILr<$I1(ll*Z!2!> z%O~NBbN}NMbH!KLLxAD9u%ZCU*oGh$qxXjFtQvi$xG|uV(*bkQKtHITF~cNI#Yoa8 z3!&bo2Tj6V_e#HS)aW~Kx3?oFClAyqJl~Ev$?_3T10UsIu2O00^=%7v>BZ=td_J^0 zZhvy3q~#F?j5oV9?d)ugI=^W2y&!`fd^@^w&#OO2859UqfU#d29Uoyq3Ca_k{z(A? z-DV=CDVvhK^;-uZNwAaT zGJ0GKLlV8Ga(-7v=EtvTcwLJPp6Kh}r@JpS5Z+3a7-6?Cz_$8b3IDrB2kK}HMD1`m z8aziSSEZ_Tv~_|T3~5l9Tu9(Hr%8mx>lfPN#KtUGr-PQe$EqgY?7Zt8e`q4h55(h|D6J;+XgG*k6RKeh+?nT0(c$O-R*e4|QOzr0%al;h zhZQR;)jc);X}uzgRL$4gwIFj@CO~a4-Gjws=#7L|EAX|XrX2*)M3~I#B8^T$41Q6g z7Pj1!=vi}$jrO*ZP~l+e-{5Kr1K`|?hTo7KIfh7Rpji5%u5$@{inco^wNY&FCqr)N zMy1vX<^-^btpkgZ8#$Y_`lJMI&qc$YPe*>GN)St+Za|hN{NeMN%mGV+or53CRVhl#+doVYDv zWqx{W7h(INcuSLm0-A5J`8pDh<+jGg6!_va^d8=WetGOGqbGVtOcR8+BzAi1EzYqF zMzkek@!JS9TG8LTC^Fb;#q}G^$3uor)<856w;ZZQCklr z_o2vP)HY1MCAv@Ftel-zU*Q0-aVjr9;im?$z2piV^4TB%FCI8~pT?zUD zG$&{WeQ6PSa!?>W@<*N0UQnCAj zIA=;YE&lksyO^Z!Pwy=DrVOaAS?5cp+1bc|EZ7*5KF3Y=yZhKcuSM)b)nZepVSkMY z*K|C3^F;Ql>tFn&$ht%h629X^vD1>1Qu3%-WLpw^>+bwy5a%92f?X#6a@+0Qc^m|g z=Vsbyn%NS8IaUGZ?#f%MR{d-8pOFl+%t~2N=dFWW@N0pd(aS9y0Kk03U0iDl-|#04 z*OHfjL;A&{o@`vPC7ByHeT$%{qg-HyLqw2+_ znVDorgW5oK@*@%a=+39tS`jx>a{zzrzoX&V)%d(LJ!HOVKtsMY(shPcM;X6%9%OZ^ zgsb^hSx-XS zROw>m>HR9f)j;*{*}EPKb>dH6qW4^?L0fsIF9SxC^*z_oc%5@^N)S0IK|ll2*ErUx zu&)g2;-5%Q$k}y)CCL-k_OV;~W)-*zT#)`FC)s48doFbpy!<9tPynabH*4YATfY@I zD;50B$4Bu~CufpAg>SA-x+-~>bu&KG^v2|>jp3sfwIcgFw3zCbhU&6FlX-CgxFOh3 zi9o;_Jq`m0MFM35461gVl~-K0-K^u)JP}SG9l`jF9@+o0nLAm;NsfsgH5KY3KGUe{ z$MiBRN@YgX^LaXGzw7DFs0P02;LXPW_b31oA6YpOXFu#cLW*?!HI9beR?R(G z`cJY2n_Ga+veeZnONAbX2)eBxrSt(J1HX#B!7!7CL*3;RL%b&Y{lrZ5vNG5qfbb2% zM#CS^D4OszO<&V>4f}s>;b1VbyC#UZ+vVcseJ$0T^^MN6hG(utz{zwDNpPue&99V_ zbyFGDJsJgq>Xq%~DOwLe{2cjDF9@W_={qGud}``EV#>Imn#J`WC0jF8x;lLa^N6HD zz7g_IDv+4VAv^C1{SHm&F^d@yzoEvfxlt+rz7sI>7VF@gXzg`O83Sn&_n@ zK7ocnpTQV>H1=;WH(aIjGbG+s@Lg^{t^h|VAK_GH6f5>5z0=#Z^(COdKvSIIiQ16) ztJKxKom&A77~`e3lR+@3=JB~36@W!dA3Nee!VTwxw~>WRyHs>@6!*7} zL)vfNJiq;!sqHpQh-91r7{B%z6dOZo4(2pbym`0W>Nycev*376 zkNcq)5CSJeG}FoyuB1IM>(@}y^GiZzU3`GHwTz+RWSJ*43GaA~9zZ2eQ?wG_qG}k5 z6s=3Gz}Fg82VcS!4hTS}yo!&ZFK71w4lO1U%B*l~l$>kcJ9{c#7Iw(-Xf1`i<(vFR zhS)tJ?_w{9E>VeGDIHw))PnVa&OYl{q_*MQvNiM;hPsEtVTigZ_#Zm^EDg2OqtP$+ z`Ez`l0x7&fW0kzL`*84H0a`%`tfXaF z*UIppJX>{M;~Nuf*);s2mI6EVI#{jwL_wr4oeH^5N>}+k+GJaA=lZ@!CDf%4O|RqC z&*i7D3HuOJM37Jpv5Cv`-Pq^m)GvnS;KUNP_h(IqRH5*sv={H2K1o9NlGwSI_A^L4 z^yU_QL~%JN!!Su^8*RcO33mZ^i|aX6l2vrFOvTKFd_YP1@*f}^2kR{d@c{xqzXGr? zc6v<+FSAflBl2)u9$j%%5bfD+wEyKs&^Iwf4||8Ia_LZ6-$h^gP2XFRByuQ6eEeJ0 z-s$#odcOYn?XR-HfG+f*JbVBhVB@*7zbm*$OVa@yXVSg^u4oT*n-ai??4hj)U1fldcO%g|}bKUmv;kMXU(C#iPL-;bf zq$KzK0eh6wbzgmQIrA{^kOL4CeVYCjeh;dpAoxj~(U9S1$GX&uM*_g1MiAJOhW85j z+uqpF3?x9TL$DK_5PB8O8ZUV zt0CLMEnFwe-x#x1^LC>3Bf1yA0KS*#{(inUaN$;k_X=ztBBqa6d{j`8Bh4u zvPBRQQT_l3SrSnPt|HllXZe|}8^P%tcrVIcO#)a_pm4YeOUDk&s1{C1$X_Ld;@XLR z^#1Q-!TiAI|BKz>^4`b^7nuHzmR6vU{bQ$rpNsX|Bo%e{Pp|OhlJ7b|P`DKp-Ag_X zwGy!yoOFL^=FD`+2Y&re%RF94y$+w~^tAw^zzifQ?PH-#0;_IY`9-0ul(4x>Gd}Fn zus)?ivn4=%F;DT9p~>Z6P0>numO!t&Ug4oYqaefdFfYwc%4?s!K>wpAF~nM3AnKab!l8JWxheoh<^h8k zumE@-d#hAf`O@erhAbzaK9>3j6>GDY5nd)CRida%c>?~H(ncp;>vpxSx93{rLC?DD zK+W*)93V!z-C+TKm+C4SP+ftK$#MAEff_+CK%wF1$_$~T12BBDN{q*!@H}LSqLy&y z8udBZlhOhxtkh?ikzA>LUh$K$+zjR=`l|p*SkrbsZHq50gVWZ~pXQOPQ?%CK-sS_B zpC=$owZae3Dx5O-BDFX#o1qKGSV#siM#jAZ2}Mog#uy9L#Cwr@Y@MVV2QDz8l5H%d z{!oN{(fM4lQ6q3frtoh*~r zGW@MX46uIaUp)MPge>Y`tJ8>mhQ;rxal_5{+Xd{R{*) zaRPVF_6Om0nhwmPQ`Aj$-psBaTr!Ec{uvp_5ZM<&RPo}r^_QoMbZl5NQ|xQ6Dc^Z5 zxNQUQxU!-d0|=Bpy2f=?n0X{=drJ)}LpR4pMQR_wvfpEt9_5#CuH{5GqtrsEV9`Y! zR)E7eF#c%{3?i2P!Caf!7UkoyXJFlhZnlX9tC!A?aJ>%FeG`v%6tzbBpQ?=W`R^C+ z1`E~u+$M)m4g@wjN)zADnjJ)9or;+D^T~|xu$j^`-hWmY=QcaaqAm}!_)4(0A0hs) z2wE^Qz1*)vkTZckmcbb<`zRlV`0L5q&z~QG;k=<`_5JW0eH;9NlbGT>64J|rFX5hs zVMn<|D!t@e67IV+*EgK`bIi^PI-f%OmnQm#G?&#OD*GzImQ+d;{Zq-MtJ#C=&)t-1Mv!fEx(0Q*pUs6GY|LC3;&Dd(7?qE7P zoh_CfN*-lT+T^IrQu|jyiA|lx6^72hw|w!BmPe5@$_@Qp-pVf}QuU_bpVAfO?ECu^ zEl*2;|DxO~Fhlq=L(4hJMG`t*TtM`b1HQH3c6r}Rj%m3eq%eN+0`!LdX|XRH)M#ADH}dX%G%l220dnpk)X94OP@f+#5za0TGEg)+4;6h{^BU!1-C-X%OAjTWz?BGkdK$I5Q(N;UJOHD~U7-g{KYlwA8GQa*+E~rO ztp+Bu476cC-^~UlS8aVW0}l)6ip`#Rl2~s&juP zOlvu9%r)u&fnqM@W5xQgV9gAn$5Y)PuX6TxI{v6z8K_`)QqmI+3K@lCyf)t+FbAht z+JEiTYdU!F5Ox(39l}&d z{=PYxgZB+eXgd1K{;)JPrcCL1qRSQf)U^|-K(e7;GIinuy1H!TlGce33I}ZhFNG3; zpASHsy#7X}DK*00Kt`IJT0I5%;XvgNbA%gImV~18N5W_HNjeTToYv=eW_w_eqV1}F zezr|tjPJbR%qwbh#xs}JBxIwH{vgiwzuzl=`l}`q`B+F1%0^M#u28i{$qeO_ zm$C>}8^3ih-Tulk~Lu&UJdddX1x6W*p-|bcH;9 zxgKHTZETH3ff|nAPi{T61lD$g$X;ICES58qLB*+?Zxxg{JYPzAVoUFL}S@`x`z z09O5MBwP0Hs7>;V#s2Yr!0Y>dIG|1nnsl7q{)lr%YNp#kImK`w^h`4r50~m}D*y!iy%??Jl zSnYE{8Fkrr@iJ>_WV$lcD*U67p)ny247#s?M%?tMESK9)WypsC)zb86MDcV&Qw7<@ z#UV2fvO1}TK?i&+zV8Qb0XHYw%~69bJm@6^KNEBLRGpisfG(uHZ)U)HkUdG+Fnk~5 zQqF$PX!#O(Q%YJrG-SF1;5$hmUWZv%4v7j$sKGAU)&mZ2M3n0dh7upM@_8@ zIsDW(pi%U_LObDN1CCvqUZ+eEgEQSi<#H3chIZoQ3+FaQUl)X3)JP;ufRRt-=K& zKBnjO!z0q*2XCY?w>m2nl+aA!pdRyOxObSnEKUbUi1TS2HUVdb9j3%(}= z53YCGCi6Z6Nff;Fp=K8Ic$sH!?apn>rvs6#*}z~4{;x@{pe)`Q1SJyk(}g*C;rhU2 zNOI*gr#9q7@l_pLhBc#d#C_qmi_TJmw{=r)ICJZ0(VgL(y;;}%4DYX%8kuM>eG$*# zlmF)-+0CZk(h^XVZk3rDTN0@h?Jf-_c_REq)aMOA--1^?DkYBEz%nU}9>=6DDk@PO zzXrLgKb|{`v>Td|_Y$X%8U~7%%r(P5bfkMd&m^O95uwVNzq>d|4(?ecR4o}q1UX6_ z`dT2|v-#u6oChK>IM%PK%ZdV<2@S<#q49H? zW#QELSm_$Xzpw3p%a4Q>3&{j9j=S4K+99j2mF{)Z)7oDAC7R|UHGcq&{}`EHu$Ndn z#2KXii;emCJqAOBUjkN4b4{2v4P%e@!k%J;p=zuq9pDWBNH`$Ht{ZjBwF8;oMB290 z{N$#F>NwzRM4NV0Zz!{(K(RTYPWT*&?|UQw7;jnmt;S_W3~Lcxt!cajvYJ6c_J?Ul z${v3`B}&8Ac))yOyRw$tW{qS`p3yKbHipEB_Jr>I-}p~Nmr(i==M_ZIdXR9OZGA20 z6U6@;`Db#3K8|?8pmb*9*}jBf!e8L<7#wOF`OIq@SW~ed_54yX)A8xGncHV1&N;c%$jJuZpP4NtQ+5;=>l__Mb&9miHvbpyIN4S>m}+jXSe2d^a+= zA$4hfcb03l7+zYNx5ulrzUjodflvCJm3N#eYuOKPZ@R0d*&P6$x)Ojzh~H_K;GtUW zEr_tKZkjYycmvTYU~&}DIcD_Xt*}B2nj$HZ{b6dseDT8GwK{7W7lIP_YUDeE(iASI zEXX<8p3Gz!^3enRvF*tHp${{SC(?s9{2Gp~8=)lr4zBu1gjp&lq*m(V(*k*jLNGR= z>8BKvmHJWRO)f`D5a^}6gBN57>aFOmln0S-O86}x!~Nm8_T-vKIB4u~J)?h--)90T zzXybns${>K?k`v6;gnJC^fr~)Nq_B~yw;ADLjw=MB7B5n1cwSR8JMQs%Zqm01w-?q zJJp;3N0ppH%hpJ<*Lym#(!`;1bXntb+44;uiQ z;WQ}Y=SqE~N(Pys_4$14(!t`z&oHnMo5F#6b4GUM^O?gU=icD!RUU|AOi#1sRjl@6 zULpcvTC>}zenddQF46OigqNbOxBryP1(CoHfp-amo&pI7rv)YQ>DtXSDr-O9_GAo7 z>09@pDZQN>NPiKA+pq^w!gIqGH%~(rD3WAt|0jlPAKFR3*mE+fY+4&5a_l^eo?QDZ zZ(?PBwIcKQV+=;IF6?PE2|vEV0-q=;3pmELUSKiCH8X46fZCDg@r zpOh?N22T2pi;mWQo=u|NCXFTD7Ul?xeM%SP9583&(C(XBPHoad0PD!_Mq}vK8xoK( z!Upo=H>SyE2Z!e(x~R&ln{;T5j^F)XjKEqc(mI}?z)$5dpW5`98Mf4_>xW$dQgzD7 zh}@3GphOXxguK`M5vI~#)MZqEf2~4b5HCMbwVo~_%l%n@gtIy1+D;2IWI<{8_9#jQ z3hA+p`B`rH8tHBmnf&b2X|n%l|1{wh59XzuLGxFNQl;3DH$surJ>hJ3zuu6D($|73 zTibNc0g0$M9cq@DH_FylzXP5Mkvrq3izz03kn@TVDh#g<1Y-*mfc3OjJ4Y;eT+nw+ z2i%$>Z4qwpI9KBSFFbhn1+bDbh9oVpNr%^JhhYVD)KLX*j%U{Ijf_oVKJKm5 z#&sLhSJ{WT73Qkh2O17V5~{w_LEr`&7q`f&-yWxRvx*2OWZ6tyB`m}Nli>%iTKXx@ zBfZdDcxK7-phPW*`T6%Fn|M59@uO%o0QZbYlC$GXU7v~1wr7fbR)}ru3mDCv<2lq} z)*i~bNsKV}h`)t7++_5VSrM&-u&%m(ydBhm%FN3ES$-n*`2y$yn1jAoYkqmvedHe%FM_2 zq$<7i&jf0EAPREnXLLv@e_!n4m}Jj)GXy%GmtO0B*~0;qcdh)LqCmxi>(;CZ_}pVZ zSw@;Gz8#Y@l}Y0#*0)yoAm~k!>E31#ICY-FHaw#3-)T^cO8=TJJl(DM`?qcWKm1@D zjxU!2vn{rAJ%o*$PmWT9IhV{)LbanvXaOF)dT&7rg2SWfhGJY2Nj!irI24}R&Osle zluYuv3WD0}a(VhU35bBx=hwBdAyK zX*e%j*#BIa`hqM}sAQt*<*3g#HF3GK12O2XP%)G#nP zVnjI%O>AmclrJ zHzb+373d@pQWI784C_*&P_MRvTrujmza+K4Mx~KiUnx0%oGgV4o}z_kneoT4L6U#; zvla5K63Z%aF8tRM2ia>jI{mWGWt z@uvDY#PvKW-whUbCAgmdl%+w_qB=5>)76p{(T;^_!{?!cf3*5SjP^f>Z8z zJVi^_@!g1F`v346iPF)m(&B36GA>sM5$q0Y`Ci`p#DT>=$fgscq1y}yor2ebN{yGB zOiyX*r4Fov1Cune!4y;JsK!{q;`6nM`3?ARy%TW1y+>^zw66lgoHjK@Jc~hcQyAGE z1V)b^|uwglP_b`yB=uQ zj;1shcmeG3ZiXU8yPI$J``Z_r5vOoC0_n_w>a|jB-EWW4$-w2yHXOSUQkKtexbNNS zVuG)DNBXk%zd^ozqZn>3sa6(Gxm! z`bm%{rO?iSur5XACvNu#FX@95K`ir{6i>@Eo1?xguo8Ur8Z$cJ&YrgD;rmvwsHycI5h*8B zPm$r+!Ob(*W*@&sX*KNl3)hxZ%SprO(;9F}(i^NuNihwmG6B{hJPy63E?vt4`lZWA zLc#{5XphHHAaaR_ zJc2};tyqE<$^ZT@Hoznu+Z=z(6|NYf17cYAf2Qs2G`YF?9}8<#eNmXfqxOqFB7 z1Eyw%QoKFoCbodqkA?=ooeu&%Ea|n81>AV6^ZgjEp|7>UR5EW=Z6r~_xL)?DcyXI zkc6IsD9OYoa!c$Tuhgd50|^Z3ai|-A-=8ODd&WG1#vd5rjiIEm+hz=*+_Y_(ObjkS zyJS@0OrP~N-f!R%j5JYb|0nHzz>tb2y~@U9(U4uhOXRD}6j!s>DUsO{6^aX+ACX@k zsNz3b*wNnW(ytN5SA}}cQd!$uxJictLV;;` zb>MPrIq$c}ir9w!mWc-3z3u;t&E3tOJ(&dbKEZJ|Qp|0-hvQWaSC*DSo||0hjeF>+ zt+2hNv6@AWzwTYytwyWPS{h6vNdJU#fZaEs&swN9B@cA$9sH8^TRXq|fj{C` zJihTMLLhR1$k3*ZKryp)|8QS?mk;nh-AIlp@fDpDXW_(42gyLE5;=kXWIeVYHfhm6 z!F>arI#o5YR{TsNM?KX==Fhp<-(~15u!*nDv55tB4UQUyoM;cVF%%&iy=B9PRorr| z4NzG>{duPAYiiXz5os)b`#rlCxzi3mr6ckf9o4fVA;)iB#o}IfBUuh4Z}{`RG{=pK z1wNRVJ&NfqWk3G;K{j2B&%`TKA)SdylURdVSOTLLq1Gj@GtS24$n$9wUN3PlN~_J> z!4f}+a>5llIJ=aymiOsyeYI}59RHFMK=kjWu`>_0P2d)toVNLs_Wav$`Y_Yj~^5BDK_Xxa#l?>tnuYC>Rujw`d>98TPa0`;d(q5XE!3ShE{?K3Q%x(XI;O-pi{1O7m(<>uyi^gPh1rNTm|rx_cj`XcG8k93I|Yy-hc ze(^;g1>t!v?SLsAG>_xeJYT0s{ipt~+9pjAu(-e0bk^NzQW-#fBe4-G(22p^tfy?C=l`?*lpKt{`da4k672o zeTm!TY6DPUkG?-2$e6qH^(zptSEIvOIneLe=HB=(^iZS_i6GZL4U1A1zX=32Z`3B5 zgL)}8^{f4>AT{`aM8UhDaKaIPfF1o%-S^}tB^xlF3(ic631|de;F9oSd!i8a%8PKS zngO-Z&cD-7pJMGZY!)0zaknGy@KvrGlNyIB6}ve#;UIOZ-W42K@nJaG;#J85M?d{f z`q0+#t0`JO2$-tH0$5l{uZKM%LT~Tj%Q1t5{_l)aw2jOHU^AooFRctx0#OCu#y(kM{0$V9){40yodnDA-by8=qe3X(h=4$5l= zk3AD@!U)1>Pb?6OPVTN&&WI13Y=Ur#@~qeemJFLQk=3na({k4*BpjkrKir)uicEH@UqS`M z!FKuE=`+qt4&0PfGc)W#2t72e&0GD0bxl5w zmc@BqzvaZwe*F8l!99;kGi3V}5%owNp5yDc07Y5#m0`ge$A^-`oulEqi8KOSnVz-! z0#?`C#Cc~j%#yL?LSOV&cS;Id7?ocnMStT2!rLiEJ^rIQuU%r|>G=gkkYmp^)5%8e zU)DfD;GhRM=?V+cS{Ik~>Dj4WJCKCddyXPjnnz=Cr*Z=$ zV_@HjWB%C41NXq&y)6Bpt9L0KL4oJ_UJJ$=XMRqp#k_kH5iZab7V_go^6m?L0%zy)21{l^(&!R7kB`v-$iCB^h9?c_k6@==8Z8s#=YB=eu(Q;&;)&90@l`i~ zu8@v`-+qd|0E3J^QM31PahdeDT8D)Hg_F)|)%)e{TIuGQr9D9!^P8m(%$}vvP~h1~ zv+v$)tfS2`W8n?Xw7LaH*znifDpOjAg0d(GV)r3hvTJX=Wqirq>)xi;Wnfm9$-;k4%515p)l;zf_jHx5_+GFFDLnj)8b!w!5M#2r}CL%3Wav1LOS*T zP$(fE%RdqFQDWszI~L0J7p2PwPV{2EZQg5CmIW$D3{o*FfkE|JnYDC(kt?b^lfagt z%&4{m(_GXu4<=pyMy%J$;8uAk&^mHAD2&_oDU`?I)!|Gr5NtPYe)$hEE0ibF|XN8J~G@v}+OKl=37h5B`K8Xe6+* z3RaAOo0~{WSREB7WjSr%K!0}TMQcG4)AFLHx{Y+Eit^AC_izJ!Xnib?`?}P=P*?c7 z+c+ZiVo#;X=|9|C_qC@-doXExi2Md5zMku_-A{U|Z@C(yNOPy1bofkuAIHd4b%Yst zpmdVGxp0Ep>qm49ohBI;IHJh`G#&DZ?FT-{&MA{2(}3bp-F!Ed%v~*29lkz zB%@yFZ2FDr&P0F~J58ne9lD`a{xst^cPH~Yd<(C+b<~LcYN{iIy9R*GK0283q|)`f zcSx&%51z?_F@~Jd2pkj=J`pm=z4iKqeskp#s9XUF2-Afi2O&pp3Tgcc#3|oO$%|Hf z?E=9esW#!~JZJ;d#ECx%C1tq{pL*Bm06v|Yrn&lPfy$8c!t6M*v8vyZl2hAZ+E>s` z-8bx-_nyTT6V)MpnL|ygGpn;~L*^^3#Fz8CHzjMQwgZ#nIZHPWRL_}t|AVG)4#@L; z-+r>~WgDwjE!$Wv8_Tw}WnSVC#OFP)ees8iPQ`PBgy5QY!qAK8Ld@Ic6tT;{Kf`;D#Wiy=Dk;bEt$&+Z|A=3T^i?a1YSP(rdZ|+sP z+Mp7EQv~qpehBYW8?S0BUC%5L5`IG>3mKpWZ5+bg`Vn<$knhLGWZgK?OC`o2?4A-u z>5NltSE)4qc0*oV*r%ttKI# z^>;dc6TC{}dp(YKc|IIs`)cpA{GNM4R3my$IJK2Y+|t-N6_B6oefbF>m9$z?w5UrmqfO;ncz)F%vOp(}bHRDGB+gZsSzDq+u z2rjCKLfqVu2H3ZK9aaB?!!WNB0Agc4Iv9&UCJRav6(HCK<+@CqM=5gK?kU53{!~Bp zIbkS8VEU70kXWAPJJ153Py0P=SHv9T<9fs4o%k;i(4Jg1 zds3=^1yCQX_Rup!M+_jmTd0m>g8-PI)_E!06*Qzo*op^5JcGpz7t(*L9;Hjvu76 z(Oo#{sq!V3X!0fOvvu$+LMzKqzLt!6PG4#5_`@W%7E#cKPvYZ?r$VgK&gU!tDBtbE?u=mQUzD_vsQ_`|9^EV)UDl$$k8cHyY)vDZ**sW%WN0u+l*Y&T zDBilWWl#V4q&sg8Q`Dq;kvGknTCdv&0Xbkn6vFTeIt4QAd%z6Jj`hpODwn%+}H1sd>yy6``>Vh;VM0ziytIr$u9gp~qtUp*qsLazd=mv2E zjd;HMMPizupK+`IilT7@N&mI+tg;OeR_2;qkf%_?9*~u5K|djjqe8*=k6T8FiK6OoLPf)K#fRuADJke~KyBOLG-Iv|G>MkatP?v^Gg^|S>9vH$%j%T)JP@E%&Dh<-|3Xq@5fb0&Ko z!Y&gFH<$h<7o?*k#ex%4KvOvTG&3;eHM-Q$y1A3jPpWv>xUyZBeH@vcY)4#FLfFzM2M*ZRsMNtol>vt|~8$qqF78 zrq!Vl6&nK)f)@y`zF;MqXH-U~ku7TV$ zJN8YzRT5a`(EGwt3M&w_LqF&J&3+t-i}%acd~tUdvObZ}tWYJr0{OmG~m=crH|p70wcgx6>1`%W93-zlV=AOc*Fedxpr|>LV>X&>}pLWN^L!Q4bZkTl@h& zUWa*~L4bnv*j(^Nh$Nh22W_pQ2F_YE%!{0vOnY?Uy{qWU=*!K<@gNw+LT5fX|87wu zR!fJz-+2G-s%-H7y)0Y)M9{$rAJ5O`G=zSq;Jn&hIGWWx!h`xor8N%v6}J35+N@q_Oo2jXak{Y{dFQ^>spYi770x};rT8H0MhV3Lqjw`#Xf>NfIly zv1Hq6XE*t*)_=8*F9m|y@_R0I5r1g7vaY>eFcW0~eFS~ZjhBIxz|+ru@| z5gL(x8HyR#kz+nwo`#XwRyJVYd%S2I^+dVi6t4E=XK3O(^j z-Kb;|wbD7fKD2lo4Olyl@Nep5!XNfeoALY6D9CFoOf%b?&O54arPCcE)QrsDmBPHC z{Nk7Y_6{d>t(Q_vF=k6g6T z&Oc7~v7W*+lpkQw!+p=@HYcOE97T)Vo=}WBVu)E&nzNRux_=EBS9k+2A8W>t`k*)&o8ma2q|I)Z;`R>sP*>DqC%P42wU9e8VmML zo!x#{1fW#r6NPMjfz)Qrr6jHQ!?*ed+0W}E3f9a5!vO*)XJ8K}tRYCD?IlKS$JR2W z&}%=svhE)IG@E6f1Le@!BT&h^q7OoPN1K0y)*zJ=ycc_sU)u?)==A*8wuEqO*2BDz zRY3nx_r**)??#?X(LyFsQveOJ{T8L03!0n&h$f-kRYx7DK7Y{me^z~n`PV!=UYJm+ zn0xR7$vKqr0EqHo=&z+|48YlHX+H0}=%S3SO8_^u1WCC}B&yW{1XKvnOm`lncs>jp zeJaz+e9z{N0=mFgkgouqWkz|P1bN;U(x@!N%AX`fd}PwSp&EG-g&oUckwFe&%lyBu zG%JPl1NI;N0F*TgfW{+h0Bmk*QUP;ut1=~$U|OdCc|k`x;`%dt6Y+7R+t1&Vke$lK zw;}uAWGx(FmKPLR$7_7i@Z8No;Jsmce8MQ5hK%)d1I;OXLMi@k{E%)vqqXZm1fR&% z%0Y(r&gc1dypsoRg9wzlp5B{wlOxlqzUFzZUMbYBemQ)JcDTR(a(&kHhUeXHHo&+Za1%;%?_>&$rhF^9H{r) z>YGfPTR|~MNMva7_>*!p=4#)p>bkILSix3(` zr&`3nq0Ar2;z9jA!y)f>kXMtoPGIR3N?#5u&8M!$)|(Fg-c^1#pqNKP)%sZt9AN{| zYYhg%#NzKs=h2{eP{E|6Cyoi5U~}Zf5z{r1vt-Ad%8n7X?b%70?h@5vB=?%bRSe-? z3WLK1*M`3U^6w1(ZEw!%=cFd2;+3?R6e#Is@yj81Z%Yo&iv<@%*KWKg;`(rLfF{?&t2l}h)zm5~%C_uQsN zIKgFdq=-ny*zL~9`S#GzN2=Py_H#J@j(Gjw+da>gnOXg)M%$;xCYyivF(e~g(}-BD zfq+N-;%Re6M$FO{_U)Oh@f={*)AieVl!f3u@$P%!Q8DyeJn`F$>A{`zp=@1I`;dKw zP#kQ)QPSp&Y-Q)g7$f4;KUwB9nhqNr?tAS@Zj*VB5$HgJAO}~QDS-+WT5U-36?L{P z{0Fhi^)q908n|wqp*-olTuN;|Mo%OuP}^)oJ0@Z-npPpqJAwP%ILQY&#YI<=tmDg! zCJgZ=dxTlZB!9pQuPG(E7+#4C-lxSauwqCWLeXLzN(3z7Et@MjPJ6v4e@m@e3AM>D zE?Ox?OLSIt%>#2xY;wK~Ux5`fg9%Eg^57qv+RP}Rdg)XhLTNvkuC4Kmkpc@jEz58V zOEQ&m;-Fcat~EAVo0(5vDIyCaV&Fo$IVC}dr3(bR({l)m)&;X8!EE94WO_k?`}Bd) zxL-6daiE_{&i%H>DC0EJxnX?k;_z1rp~H}P*>@Q@p6A> zCBRQXef&9$4QwZO-AG(qx;!TAtPaR0*!-O%AMsz%Q6)^uX@eqDun;2mVF_gx8Vm5Q zxGUmmv#!Udx;uykLgqz! zujZ9=CtmqGZZqa0!r+p;CTE(emkYjeNI(g9I$sSVd`%WFplMM^0NzN(8!nSOfn`JR z-!nx9@#Ks%(%1a9I{$eC80KX_f)1!nsG=AXS-`CM=0@FhMK?PPtaXI5#)U1~(Fw1U zP8^f9a&JBB4re$)-askM?Nbr6F!+%c&{e~b1p19MguF?nK+LfHoM;58w~I_`=b35_;1r@nv)MuC zmmIxgeSpU)rhpr+pXoC`^lq3JpQDrf6DF~82J_?Y#~&HC4V?~2?QMb(OGmr|W*p`|cX+hxu}Pen)V2|S zMB#RBam_#~be==&c|Tjlx!c<|eBW^U&H;q^)qO#n0MUbJ%7JdVozRo`AK#`W6i}1h zX-QdQ(Hfe&5(aTa_S&qH|3bvWe}ZY}oxYGrY-+ozL??Q*??n460wtWyszNIEO8_n+ z=|fS`Y0oS1rr?%xe`CXe2y$rcEh#ho-lu-|52Sy2Ijnlm)ghSjd=tI~m-tG3Fk!~G zSbZ2isS-iI53z6@kFk{lYqpyu^NDMqGxK_&yG*PC$$VZ2AmEfBZ}TzK^K!Cg5F-># zBT)=VMWo~3{1S6=6#Xjp1ne^5^j3@@jipBc*0p-x`C7O`Ft@SW zOC7c?_)nWhRc%#=WKiN(^S_2=O{g>v&!*(C-3Y86g9_w3$Wzpoe@D%G{rl(EAV1Qs z>XSCtBMcB}aPk_`=0?xWqY;RfSqsC=FDl)kS|2_dv^|;sxYkPmy8S80W^;Eo%H5)Lai>GG9$c=6 zbR1mqF)y`0jGF`YH@BoF5u<7H$$$GQr&Jh)EcWE-`gTb*- zSU>K^mDF8EX3!PdiM;F|U2m!_EkBEcm>5No$(Y#$;GG)&0Hnc3itEit$4A>VN1%_l z#LBcCZxV`yC$8bB=1pihGVCWuP?JU)pXTUTHuHwzVI+lsUSsYM1tJ2RrH>2$A{XJ7 z8q>_#>*Bi00b~Uc-S&?^;L}^EZ0@IN^oI4sCOv!by_)wuQ1Q8{mf@&@c5S2DF4#Ra*-Oo^v@UyBZm>mC;1V7 z{19Br;JctSpO>|@e#55VCpIi?Y_q0m)>9vaN9+6|f28?(L2UnG-o=SvyhiN3L` z^COG0ur+=1`51bvU18^z>|peipWJhH$@r@4pitvjW|EH7zBm~9wf!DUy5$k-@;8w` zXx8W-@r^^xad_SV#{1Y=l8pm6j3yrO^v1xSkN1evxVBwp9|UnD#oJ8P^lW7ngfawN zMX(7!5HuqGs^0dhtqcQ^-J`>&i2auq!wzg!E=4?xw z-{@6S&?nYOuQzh?zvx)!kjR#-Cv$Hb8hjy>`xFrzES>pQ@3Q z2x@r!-7j5`8wpj$QW^X6-5B4H%`kqM6Op;>E@;B$RsOKB#qXY$@L> zh@9C|^t15aX(z2S8Kdzjm&q(zMrk%Izj)(S{OaZ(U0A=KjFL7O)enj9Ca1bzS6@O* z5l2xA@RUULqY}VJn$b>3ABLcL$EAm$|F}^B_KVlME(_>@;^SXO1LKtO94cNIE+B@$ z1_g|m(u$-wh@F!}=wG5INo_}v5s&I500 z#`xTUA#FMP{rNtI6Sggl$O1tmvZL!HTHTBI~*0>(bm^PT4#$wCXGZS*gOgLt-Le( zJ8lb$epk=(9dS9>9g(;Iow>QMSTb0E(%3VATSOseG5CVKR!2SYlnB*fSzg|)@ z+K7Q@6K*&zmH@$Q-FLuCLQL;-s^cJ{p!pfdok z6qW!vUY3e}H^y>C84wx+r(QD12QGgtj75}Nwk*6Eph;ayF15fuxqhg7`t$eBN%^`w z)gy#kRw@y%%D-ms(y3qn%%wz};@8Zwb{HV6Sf5ZdiJ>8?phHv7$N@_Fon=c=}3 zYrEMbS-V2vWpTyiSLwd@%Oj=&@!d}Td{WjpSu_mS!bb=ja4%`bMT&ZEHYMKOInNP_ zp*stncDz}0+DPGa#1F$9-ch*Nnv>SmgWJCZgiYGa>G_utS&~nspF;oNw-<2C&JT)Q zV`BFR(`Ux}SHtk0N9Ozu32m=kCjg+Fy8~x*8u+)I1Y@=gF#uM}7zVJCVY$rBV<RvL5Ii=Z#h1cYeF za%94f$_Br-F;qLJ4yCNOY*T@H$E%6N^(idFh^MEmEvie2aekG8Hd)QSOYp}6Ft)}C{`GkqC* z?`_S4(T&vSA_paTS9tAhYi}=b)MZ>Sry(@Jxh7%62s3V_ zv{1r0VfIl3@ADc1o6%9%{TgmLKrn;IN-|Vn3P~}=ZkO-6WG)~L=S%pc`XPNSDcWi2H}Hlv3=-W5%rpPTycs+es&hgkh7QdZ&BMH?c_J7r z9k%Rs#9}O&e;&)Nh_5B<%>Qq%Tk-P)KE&mfsm=0nRnOALHQWu28eL()SL^efIMZ9BMm>qmQ;RqAKf z5A8`>VUcD}c_&&GuyR`CTKoD+1rXs$fX&!s`!CGJ48pTI9Jx3Rp06gyE;YVjyaF&_G${m@F*A3&?!Rcs`k6e&76FTExvv`4YLu*a zi`1g)ts$jIrP=f99X#hf)>0>0Gcis)`R7iScUG1VJ!DMqp;)tsL)3vu#8YCof_Z5N;N6F zcosvtNZxhGlnE79!TOexFmOH($Z3~OmS`#LFrfgr(Z6QA21|Ue)fqfz5~SkX?Rx)7 zym#Wa*v|*@zi2>X?St%hJ~;(>!qN8;Z7S%31$f>mRC=vQ=(OKn0ZIZpYW*iXzyl(; z9MznN{V+1J*Zl52h0IeIa)}=V=y&0BNJ{@s@ z%l{>94{N1=uoe@kRE;0{Cz0hlgUS1>4=!GK*Dd(4uE7lkgSI1f*o6XSG!@`I@jcCM z!kvO+ISoY~0%I_Sk~9g~l0Ng+?QTqmtTLks#*{=IhB`EmiP1ippFAD8qjkfz!>vKA zP1T!0E{$R{$DWQ-Qf&@=ThL;%f4)VvY4gCV@tS#|P@JevB@G3d-2Bm8hWm6GtrLs+ zwZb}Zi===U-ui_11(8-q^z!66ss_QpBgA6!a*JlxG3x9bZnIXUtKk#L zMVDj)tJPvhrOFr-62L>HVOsRJExHPd$5pW*`qAD$Z-(Ih!E}4O=pO`%wCDxvAMX5Q zFSH_JfM!InKBotHAEO_IRx zFsA7@u!#|ursJBG#8Of_C9*)mLGrghA*<8()%0yz^J@NbI}6!IJGil!w)`-c{M))! zD2)&9hVPi{l9Bolh&_7{V@sLSuT~LVZWn6%uJ)wvv!%>gQ#YUR(&vQYNt(#=bazci zB8D?HgO+x8s4%`HrZY8J$A_lO(^0U-a#XKB+nt*2AGn4!-40k1{O^MD0UO={RKV{h ziYx#F8rxc#Bl4#lNMFSxY0|6WoMt%vPc4A&JAeX1sw6jwUi~FhK(fG`S z*l>m(Ow3s{l-7NCAsrld3xk~#Ik^?H0JtYf=7%o{ic;^6ciyyW&XS+RrI)!)X&~vC zP2`tZ;6{yyR@nxVu}w@{9_?>2K@+L)F@7w((!h9y-I8)>tEpt6TCO4}wM!k+@N+A{ z=*I47NizOcqnr3aTpJhk` z{9d8{hSo`9;4Nu#2WY0f^+)=I0HOeJKyv8ydYU8sOI>CHEYY+AGv*L3q-;R&lE|QV zBp!OVns<%8DimiKKAHuNrCPstGbMImRba!ODdgh*y{ zFgsT7h??hH%;&HriB|GX!g^5`)o*!At<;>Ivr#AR8*4bgJaqlHr&q-HK9q2PoUF93 z&k~c|7Ut$ui~2%ZE9L{0N*zv$d&lflprh5``lk3p62T)0Q>oU@jMqaxDhrJa%r@` z>9V2`zn;ly<%ia0Z;y^$f?mybx@w-h@XY91+$o7&Lt)t}pr+BJB`&+6lzlFWt+f zXc~jye*|%jAI&Cx^2b0K1EtC!hCkyDBb>1*bE1 zAfsaZ-&gU~S^kI3h0Z$Q=~9>fOue5}Ndg?y5Wb=I(1+{%N*)Sq)&TxRX#!^7q=;^(H5KP8{1lK~=;Jk4tttMu~Pg z^W72sq9bz2@fiEGW*bs|pF)1>u7W|MPU?jyO^D<92&_x1TGS2_CWGv%6R9MVrtWk0R zhDaj9yT1(Zm8Y|SGU_aE;w^T;d!4AD%qR-8eCD$w_tQ;9cA1m@D3TnR=8jpPMfBaM_s|H8v6n^13A$>uT*?D_sSyNExs*6ODCnE!Em=5dAu&6BSFGAD zx~%o9ze#Y%dD<``TuLrJK8JNu@*nr3dM=R`U|r z{O`Bssm>{}8(83%2w{5s2U#)^?op^dn^DCnN4y9HDDRu4zInH=QXGWhTabn^UBuGmV*^!b!21;3XchATIWn0rLmJuS+Yrq2W z16&v_+UeYv(`6@0*&%c;9%^g-KZE33Z2+2Tnz9mT9=@)@Cxv=AvhE7-1F6v%uzar;wE0I(CMKsdgYHDm+NO()Vs(+pc9>UhyCrxc z2-cas0xSD`kPpSdI1+4qj-QzV$So3K7u%k$uAkJm+xIMhj`qpqhDIy*dveMMf^=_= zvPC=@nHZge`bw$70(=j~&4nVDd%~F%Ic|FCiNZf}ObIm*d}m9%) zt%i{k-kH>ho@xE#s#uHlyK`tZp%Zb9K7{Wy#|`D$Ks^xMIdLjq%DIM`%I9Ep&zw@l zWVRDKwdTWQW*^Fz1EX*7OyzrDS@eAJ#Z9!uJ^Dy_mPE}%st67Jy}9GRqf!UnbP)LC zb>$5`ymUjGoAenOA1N${tF34Am+GIXKv1XVzwbNaX}~6HLQ6w+>$U{ z-3>pL=LsShIIyCj21D(Ba!l?I&=Ee56>-xOaO^ky+=v#;l+l5Gm+sV&pk0zS|?ty^Ms#Yr~_g#fQboF1(qDHt4siyrIQs1E8z@wLaCP$Z(_){h8ROb zTs`!$*8A~N6|q;gggdjG2@K-&Q}C?75=R3#rFV+OnK1Ub^;J_zP`3gx9x;GE+2NBh z%*03rf3T$Pnj8sUv4DbucZJw!mUJ9GCo$sTU3(UDMdP4Ty}P6TWRn1*7?u2FGVoOn zh}L#8OD$RMUMZtVlL)q`U)E>wk`Op|dbqGN|0)92rKGHw$s5eS1MOA9dPoS!fD-+L zJa=s1?!%93#X#CJ^e5C7;Y$)LFKpsx(%dq5vbK1Y1WZsm;*sImQHNTADS7;W^&DcP zdrTntzmDs!+@mmDg2+kDg$4v}+zlw6r~ropI}Z$Xm#BvP$@?4$I)gSv>rQZh8>U77 zNU-oe7_ad7M{)7R+MM6@ZNuVug|@WD$Wak~%=n~7J$%IKv{G%S_B4PY5c*hoH4hSV z#%{;;i)4ooB^RzRfDFNK{mkZ)A}#O&o6g-|RP|y_haW{70;a`&y)0?aK9N?}easig zJF6rP76og+w7JfV^bOZpIw*D2j%alk5q5{OFx!1es!PP_x4gHUKBMDLH>Ebd4KeaV z*puz;PQLMc&fYnU$%CG)QJYNMJx|6KpEf06iDwaxY>YhoM*ui8IRfv7#A_mqI3IA_ zHb;4HAJQy7dK+cZXuE{dz7($@(jr1Tw*pks>D6d$k>8wQ>(@eM@@W?mnVb$AxDYKfh}64_#;LMtoc8Dt;cJu`kOI%LCky)--Y1uK&cChChzt6Ago_e6no;6V6s2< zYxr|ENvL#46Y#|&OJG4-Dr!lwz?dWl#P1y+Xg`u^BX6ceiFxe-K-~-s#P{1j%{Ypx zfEn^rMhz+mFk)ySuJULaBqs(wKzA7EwSS?vnujH2{CQ4x^7kwY?!7)!W-kkS6g;Z} zAx5#nZE&2yT~>LM$l(^`9`z-8J39$vDE!o{DFb1WU?Li4>7E(ZdhB1w%oM=`v$Wo3 zGdlosUF;r7Z_f-H#-{sF$){+wh@QR3qqtJsDzc!@0Xi zv&tyg>C$IUGiPLO(qtqkbc9&U5s$f9pr%&&6pVnP+0HsW zQW%g&Q`tY00PRJJs(!quf2%>?S#BGcCWlOuiO1HJNkLcn!7DCAQSZzLPGCqB#SOqx0>BZ}Z` z6QB!EhNWV~!`v29WDt6IK9&J-M86JdQ=C!GwqJcdWeRA%-CDB9B#6qf5>ZX<@ zj?DWuqi#m{%Sf`PXkc$X_v>$G`^TZ49TviD4L?i}jZq1!tOVUGz$Bo1&as*<0!57a zW6}UV&YfECyy54x*_<>KASdYP{c8i5L*FP`2j$K^pq~)~cJh*OS^He?9~hyP!FEBX zgOpP<2%;$_qm3QW^pbSU3D<+3naZu^M}3yzn9Lg|h=BX(8zq{mN-L|x3aM=l$S)Sx zqVS~CB2K?+Z>pzQKnmAR@#o|_q(R>MlSKwCp|d4V-$o21#f8HxNvUXiIC^W<@@A33 zF4N~jjcKi0y*c5w^B%SeyiQ8nb*~?bZk?2IkvTlcKcr(A=Me-U>=hJc`vRLEKKTaF zb@|_{UQ^i@Tp`a!(6VMvpP1&XAjEUQCgj3j$GrA8zHn~&Y0n|Of!Cfgh0DgMWEUAN zay@x5bBZ!PCAV}748WQ&#>JG}2L3!0on^zHTsO_42HojUokv+2kr8?Z@q+!M87 zISgB~@u@96b`i!FKV9Q@8LRlw=B&)~3<>X+8`klkjHa(IRq`U4E>kg!6>%(BszpAz z6BOM4%@~Y?k4(U7@i)|McyhfJnq}T3@L+_Q8YAB^N>uuaLC+A5ZlBx-yN~dU)1Y`S z2VM#A->qix$>n*i3*9000MHd(bg}A^(9+cFqSd zQ0+61OPQD9#*P<5Hgw#3>lgEO6U`cu%or;=Id^HvWwko8b9k;~!u)Zr_T1`jPjFa9 z<(DIUr-&=R-=zb6vUPD)a0kG5M6^nlnE{-AmmbsXg-_#a zXL-9WDBeM)OJLem)cx#48vNga*8W;+0}TkU^|0EnOSNzY^!Cy5tH8(VTBijbVzX9Y z<5?=0%% zC|PpO%MG?+A0>*<%Omqasu{$*C1`yByKFxQGfRh$sc{i9%R9-zoY75Ir(0ehKV0yu zr^UWNQcppwMjdb;*Tgf3|6>B|UKYe_AR36P39Z%xTXwr3ECHS&-nHVtO*WF9)Qee< z%n)El^Wm2Hgmqv}+i#i_gv;txQVyYA>&?>E@3u>1IXQ=zqR15!kA(Bpnq{b2(F4fa zqTHrLPSE_{9r8iIvpj*6S{+VB(n0ydZN-W=oiQ}CEIZqg)5BH*l_*JF4u@-RoA#&BB-7jDIcc~|131BcMMi&=+L6Dm@zR(B-~F` zxz|VOoxJ`YDydeXv)-KEf}Op%A8Lg`=fDR3A0!bkOYQD$A;dZ_;w^)`Eb1}aOU!TP z+(|G^(J@647Kh8-or4yf+b9Rd!4{4SV{*a(54+}F2cLzPau$Z0xO&eCq>eyuibH^) zgGL$xe*RefSe&?N4OeO~6%)R9$Vt&4ym0U{C9;LJ;D0O#zK}fh2~)s5sS65yDD1D* zh&Ev%-b50H9GK~w0dEXRLCn)m&}$vgp})HcEEST z=I0I<*!+1}xstfwtbaabKm`TD!zt^~! zz+F1~Ye%kY5x(LYMbbeJ4&P(I2;4u|LOw7CG9yb(aI(m>A$^l+fC$|rVh4WU7BPuX zsr>*R9#D{?H^RKr*fXU=95v(PZ^KlVfv(8%LYLS?+b}!zz0?}2?Of_*?k8dULQ{|!dsq0{a0h5r=fxDiAAYtHnqL%%sj*AN`oclTWj!Ri0 zFy|xKB5~+G?1d;nrRyEfbUUTUwD(=*$cgXgaifYGZq`aIUhiq zP({e~^%10CjMQi2DKoj7k62}|=I{-8wRRV5{r4Py`(msUPt@y393K6-{VcFM6T12| zV7*W?t3)mlP_k{j!_y%9N%!pg?|i-x%q9~$MOXR1-9qzMP7s+ide}g+6|mXsi+|Tx zd39IM0aJ--5Rgjoha%u3-V#c8cndmkpb8tRnizE|U(s2>MiR+xQ;n-+xX%D3qPeoD zW3nSh_ls$Y*j95wp`@+B1P5;`9>^!OS^pJeNn4pBr+01j;NY9nfrkPT zfA!nh9K4(Fpu^%%zsqLSXBqPqTDnoxJeaf!9_P z3A2XH4Mj%|Vhw;B?b~A&lQ)ZV>9fm&ENpemKnue&Pj?qd5u*1BfZeE~!T* zz&ko$ieGDp=Npz<7~tKXNe2o5ln{2m@6d-g#alM{wDnmEgvw)(PxW32Tj%5+ z?NGehU1}&<^UX6fIg&#rKr^I|cZ^!qP-?m_KAASzl*){~>&ZbQw z>)oS^=Li3eH419(6$6lAy6`s!0S(*X(bKFg$k?p-3P2SiH{Sq9 zu+#$W+k~t%DmFTJ@9o(6HKXI%?h4gJWrb?otfSMCl*oH~`suwUKRG3)s3-cmaF-8Y ztkI`ClqQ>S&-<~ud>x|{`Q@@1;@aNNny8G2->)Y@CF`u8#J|3kSG}KTW_0W?PI82e zfCQI|i2pzLRahlyp1$LoM&9N`he#<+9S#@XfE^zXp^?=dEM*2qx)5OWns**j@wAuh zCWo##Q*=Hzz#XtW2$c%fPD@*)XzF0k%`p8~mP+2oA|V$Qpq`~(d=V@1F>nh?&G7Ma+XdEnoy1*8AkBj{9+!jm zJEE2&YoX8Oj@Ypfqi8?>^ML`PZeYpCf$|&1Mnr*pK$-Hh7I$pyjpJY{aXjOa3$qKG z!Jdf9vylmunj%dIs-3JJca~~l!3ZfoJM%5`vuBm6nh^)MSa4!UMcV;!&`b92W8QU@ zxoa-))g8x|hP%#z=9p0vj6!F()I~t;JFVGn=UWjvZzLju5L!02gTF8ELTzC5GIH zv7E;!C5SeRP^>$!@5*YSD5(%H4c=>Dp(B}A&YGA>xPT4(qR@|IUA^qe z?wBM5+%mV!QUuE-B;2(!{uMs|qm|wJb9s7fLA-J`*Y41$a9kKowtH>tn{AvRk1&?> z_rMA2FcNBem7l9XjOIHMR|b1xr&Yq6wd958kTz1K(GjE59aTDfwO6$fMh@Q3%6#Uv|s5)KHUAKg3Th}ymc zz6!VrxV1hKy#W`hmWBbdbZ{7rV4X+SJ6It=-r7Ms2%#3exZbguPhs*zr1Fy{&Bn4- z9PXSc`n7?lLyj-DP+S&6G7?*Z9;SbUU%N%Ghb;RCy*X@(dNs5T-cf05#xIxKJSv=O z@#xA*l-v-p{^ri{9Gw}s@^6&NXC!poxyK0nj-9x61I#$OY4;Ir;gD`EhIQ_q>@*So zclJ(O(NsWYS;lJM{eKPjSpD&JYU;@;uFxtx-DyT-~K>*jX zwk9YdLf(~Q;6n26y*nd43G{6qfTMeoqGKJTSfbU@5(V#@(T3v)23bB8$7zj{gWB&q zw1sPJQPA-kL7>M1rF^sqa-YznkDO=suswQ50=`oEf}j^whuuY%Eq@tQ)`d+mv~`S9 z3jM5fTlS~Ff1;_^#2jkx+J5=}(oz|dIO_S~OkzkB&~sqg;fXlXW!eZmk8r$g!8TKy z%Sw^8VNc$iSO1)_7sllKfgO_?74BRnd1uf^6pMW=_ZWN?t46eha&g0oKBpNP9)C-& zcj@~#H?sK&4mQk*=uGY=571m66p3RecId0|^M7myc$+y&edYm+B}8vZoUk4a(ccuxjS$2e~_-RSguA`o{(gcwS$QO*;H|rM~n|bR`XffLVuc% zI;jN4qfcM-qn|ahcr-C_a$tOcYn>>l_wFd>OG)!ur-+*{AU zy=VqROh#(ZidVvGq+TMQ>luq^=!gdBhpswvSo|X4Fav>x!?z=!!IbAX={}jxp1YsE@2z7>YM0~}!NJeo%4EM`NJayo*2BySrU zK$AQt*Hl@GBu+}=-bOSr@pE7D=`(KY{`c$7K0$`@Kv8?s5Dz)f_LImYi+Cjg1R`?) z<@U4oR98y=w6d+l9xxvKpy@tf?@zR1ZP);X@lwf41rBTuTZG=ODlvLG&Zzkr0gwECcfza#6WmvK&Zap4nYuQSQGW1SJiwCk4m|k< z?VD;xdA>S1|N7RQ&~#|0#ac*bi1OuQ$S-@-Sp{uX2X&1f#l@?p^Oyvd?F=rJ#&PgC zJrZOjVz#%B(G? z=#Eh2GNG1f?xz|tIGmwpA+i>y_QjI^%rg-6t?T^L)lY9S74!t*Mby9g%AnV(=v~>E z3D!&&^?=tj8B z`+u+fM&S;KBbP~MA|=OU$R?VAs&tU4s2v#alYR9=XDp-8Cr>a8onlK?=wi3<@5dVc zUIeE4!l0cto`=yN{Do(}RSHSZJCH5tiRrWPbtDrRf4)|XRo);E6Q0R=qM>I=eB_m} z_BYXW{~cPWZ;G%%>$te413L50_HgEh_Z1=n{-OmM$n(iJl#P~lfjkWxtN055Se24U z0^{rKB4~8w60FHK@AW$y*yg)nMh1k0PloE&Txi(8FbkLS7 zYeHKot~!8)oGgk5gp_MBZ}g1Z?smX`$ZS}YAZTbZgZe2a)U2!z&+z;|;_8}|vqWj& zO=w+2@0-*gHFstf@lbTy@{C0A8F;!XC3|sqq`9#Xhjz!f6gCS=Ntg_hnh+WN_I`Xa zx~DsV=q0F~*Te=RwW*~(3GFJM?3_qN9j5AO1etLqQsgUJEy?tuiMpU!Bt!n{n9JMJ ziysx+CA|rh2pQuMX1ila8O#)~dUpg^&N*eNp>BQXBY=hP zYT4;>e)A>XrV}CD0^!`vJ~4YU2HX4FZbe1Odacl``7rKcZ%9i;1Sz$Eu_&@y-KBOhd;boI9s%??;V)A9K=*$-hdHxDsm z2qM53|Gma@dU1L2?EZB1{Q0=>ADoHcauba}*u*d!8_=k&i19Xt>yzo+SnezP+NG`$ z8)S|P+MPquoM^Z)k#jwvf`P!3@ZYZ|=6J#fpvkr7NShruQ3kuD>8cFIiz}ta!&l@g zD!@n&SDl~W>DE%NOg7YR9r~O9^@pZXdmTW?(TwDxyf$9gbH2}*Pmx}2h-@m zOBpBu{Cf+DH-#Q&u>l7%-II8>^u4tv2!*9!}YM4=ukMGVviMBGNx^` zIBB|Rdeq`R<`q@EcMJ!+9bqD^eY%MBEK?qJYFlNupw-z_W;IR$v~?)%cV(S{P8w%+ zwK_K1T3DOn@F^!sB7A5k_K6u?85|g$#gY0pBp@!Ns(39WJ#;~U_?x2O8V+B~$i{X2FHI`*F0x{8pjF_AG{%$As<$Dz<2`k4&oa@N`vLmP)7 zUGdp9#+wH7+UQo)ZpXePVxdweBxti{x!~~iln)jT5AT_*rZPjrpSnjfz4g#C(JY>VDTi7z6msvC2!=O8ed3zBx+ZcFEF6&HVAZ<&~*Z?2a@6fLw{}=2Z-Jinyp~|Z3j$ZF~AMbNqCQ6@WtQ{TN zAw_*+IC*eg6AS*O4T?Ch-~;uMOzJO4P2Ir!@9qHUJv~*M0(6*a-a@Gxq6Dk-!8vS~ z7%T*}a$2)pA1v6=Z5zB19(W}`9T_TQbh<7I^%A0$z8VjRdueV8mlKRQ0c$316 z``6MH2KNQb0HzRvl(?0w`htp zhn2bOOOuF2^@ympaU0$oik_@d4@>rybA)?pj)V#hat#5VoAA;`7`jlhUBKJs3OT#5 z)o(+Z_rKR=ah7}4PNf3ECitrvj8W(B<-a;8%4#E7y#Btp(hX zFX(oi@T$`BMJO{kZOeGY$h4TVlGM%)oW9-hm2$odqe6S3$JiV(J%KJdr!^DNoOF8O zQ+92&AI`S4F+k?9!BpeeOkaM##nfGgGVyG6d6nYSEz*^ehF5IFM6INZ1xKXOZEP-s ztdYa+#dBY&^2oJ4P?hmi{8)l+-S=ut$#8;mmc{?$Jk;8Vkq*lkE`LU`RC79B(*0di z3(3?gP^YUR(1kV0#ftS;jSM0m|GEbA|8j$H5Ocl6=mN)1R?p2ekEL+HlhF-dB{G=x z-vtrJ1C%+tZ-4i)ALE4yv%q%M>gltB^aR8Gx49nr?WjuSd4lX0k0ur-7%Q=h-jfs; z{9#pS^k1;JO-jdvUftrEiXKKCbb*4do`5`)o{!PsXNqW)qpxt-waiIMzzDSM)sErI z-#ySt3S~78Se2b~5S6|FC{W2pyQ6&6A^B5_uZ|slGSk<7FEgEBDf(L`kS~}ENAk*F zLXQ5-%fVybx2B;h@*IM8x4TA@%8_n;U&<0 zQCk4ZcwtprE6btRTjxGWXclg96BBE{9m`0CqjbFc%e=bO3n>FNAO!y8w>`JE23M%r zqAABtrS4vO@275aa~OAoTTz_4xn%mYtC6&+^)9gHP)HvCUj`jiz>Abivjzj&{y%reWAGXJ zV*hd{3=f<9JE#}O5Uv>A-8U!XWHRN8##8zRUFU8`BSCegOY)g^=%M6YD+`u+`(>hj=ulr?Rmq-P-C zqYj8;!w*u2j*CbM4vXiQ+t!&*4aOjlw4-r1vPr9oXFaS2Glgc;?Es-!=us#AReO6W zZ|Efb-Z+h!M(RG^^<*&>T{HAF)O2=fxyro)S={Q0Bmu8>*`S3fd$77>*0mmzHe)^* z&Jo*xqJE{Sc(KJGQ9z z%eQ(pYw#5~MS_(?V?*$XL5ZLA=;llYTeGzS6?VvL&|3e^!?$M{wD~jv&-r> zcSahfZ>`(rR^P2MbCe`3Y*@Z7<|9uW#j=yl`K-7N41|{*W~yRP5{NNzqd?n*QmQqT z#CzrvH+Ll?AlT$mDX(HHNxa`N-y35X3~w3jg$A*&+<`8;2dYO5A??T^hH1)!K_o8+ z4Eb$G6rUkqj=6e0t-bmwp~Ah1@2Aj)+t~8@sAB3j0v^S!<$Cu@GfPjGR#%padPz3P zZUxHT6gXvfwp7_b`jM8B9#3q)gxk&t*;{OCc7$5`mq}I{B9g7Kk$oxtX-) zxboHox?+pPt;zM&E2m?RiO^QUBrZu##{_Jb56jFJa4$mAM3jJUT0B8FJfF7;q`4gt zWnv#7EhPH~k04E8?i>F^a|jtfSanLpC+;dPMF2Y=)K4XJiFuh~Dt%|s+ADa1Gg}v> zH|c|fnuRbXNbapa8*(+@{uNuqK+yu)WsliMUY%z)5E1aGU`U2-6{N@m@hzU@u)~6+ zn0lJ>;LtLeL~O6X*mv+`n4K!#;5U>cdRjlD)2DR?=Y~`0_O+f2(g-7AEO&y+d)8If z`pZ}fQ519;0gv51B+cVjVzYY0!_Ql$#4FgF&6Ai9{cdr!MCzJ-Ry*CXQwBYTbRK^P zL=t32KQ|@Uo}n^|pK>Tj_3wZ7p<28WLm2U?IJA%{H#TQle}t#~2?Jtu(Xao|+LTiS zl%e3g=qvJt>8t*THJ*wzlzC8p?-9FNG*IXNR#{X7|KIfC!lsIc&UprUSg8{o#tYy3 zKCY~7QjhAW0G-IK0pI)NRhrkWK{z$$vnEcEf9Q_wHpdH-V`L>7GLmw*&%n>LZR#J> zXShD|@77XzZUQ)z(vZ4}kahA=hizhk9GQzLOytHtIPDPsK4RUKT`=r33_vw%o(F41 zf$v+28=zXxM5G=bcRG|7D+Er*iYD_#8jJsCgGOt&^NntE`L-Xk&cA_yPP5JOj4o@FL6>ucAyqg(W(nX`aS}8` zC0lvgG7r8_e!mz|#dCOWPEWM15k9E7OWa&ZP_455^p^)_7O4^n%EMy&x8E z3LAz1EO`qTVMAr=?r3ONrwi2ydq1S$Uns0=s`L5~V>*qHY}Zkd3RagW`*|zT2);jM z?QtZ7?4QO_bqG-%!$^;ljQ1+`g<-!b0Rjvp4BLtl(Diz{+m_qaxMt_&Qi#)E3R)Y< zky+bd*8hy2|1ps~A;K)`3>IIBjqg;V5T578rKxCNRi8YCh+OOodx@k=3{!kY;GJ&I z(qT3#YHYP5JC4c)oOuFNiU6dU8}b>f9Ys6qZl(s0<6pyN7f+T|CMXhr6Shvc`M2@? zGw{Bzj}J$`h>E4Zs2h2jJUxJP%X6+Gb!-YRZ}JY!_6VS-E!~a%kL$(P<)PW46%HL)#xDrN)x<~oK+>g$G#LK zQhx+V0bA+%Lmm2oQg~jTHlHAG+5N8~k5G>nbW84P$KfRxebvyWanEx(Z_o#T9*wii z8oJ*b6ZU-@IuTy~yR|3LVqDh4sUX&jyYa8GGO-{`Ig?fb5|$o*6gKg@v_ALe%QBMk z&h6}feowJC_UnIdrH#9skMtAo@CM={uo&CIzM?T(z^}dbZj!fr%b{N=Jk&~KdVmu;p10(fl*%a=voU4-9mgIm{;;XN+)8C;XgmB06#(*uzH!{<@Cs})uE~y| zQFer=hYy2ujcr8~Jhh*peU_l@U)C1-33N1y&9~t;{h6tBv#hr(8c8H8TGWnZ92rEw zr{YbM$&}rP{u+e$)W{2laRz# zL7dAIt-Lh*%+QbYJuU#lo?|bXn2Bo24ljw68Wm5HN}uv|tyQ*AU_Ezjl3iiCAtv~_ zE~K11=J@3cXOVY-;_s(JpK8U-Ned}^i&=kRgJB2Be{S1$VTfVL0KR&GJ@cekJovtO zDD`EL3ci2F-)*l>DPY9^3g*9)x#PcqeLHPT4{OG~*t(70tVV5Wbv%xal}3Ku$?KzLL1Or@eo-&s|lJ zk@H7&BX!m116>ky?{p#co5c&mh96z>2zYmTo(8W~fiA%aYWxw}O*+so_kYR0B}aF+ zqtNlt80^)0P_cmF3opQZZ|g74t`*8NEm$QRQ6lWj}5vM>FlV$5}GWIB^&0RaU4 z0mtzT!XpxD$Ck4okFfFT7zY={D+dtl_VV?S>DcYnD1ft;k$NMT1)7;tx!Sr=q)2Q( zXE~KAWn85YGrMG`ZrieP>s(K-%NcZdMHF!(gb$@%qsGSSY=K*&jN6Xt@Gr$fL%`DO zajm!&RxT!VAZd0k(*s}G024K(VV!{hM4#6c=SskrY#jjiXftn!2!ml1`kr<2`PxzS z0W*qIEr8?sZdNjw<%I!dP995rppx;F_U|Y>h`Y7YUeT0fRcn0h5wCfgR+ znn_9TMQY57C~DtLg(NwsRC;qpSqiNVnGH4Y4VW)bK?(>->K*ednoT*1M}r?3TP%>E z1F(8m>mQytL0ts-lNwzBFn>{>Dm!b~8OwC9m(j9lPA(B&R_0)?U&w%jz3G+y!(VW5rom%qLPb zTsKP{9A(OTYU6O>$$;TcHlI^NM-Gw{;EOcdkfA({ZLb+ofNn$427+y-A-w z6+N87Y+h-=ew(`|-_u9ZI}F(TNEoBeIGdFF08bx)ULz!%W!}D;7E4}bskwf!fE7() zy&jlYPY+FPVR%k#-K8nxC+8qE3+`an1V2uDGSXwk0Kly7dIUTNBFsY5FO-_rvfzsJ zIPp)k6G_!mE@~a)@uA=KRa^PNg%M^M%c3QUiS%FXb;npwao10Ky7np*TI2zDzMT)< zegr)s37-15??oe;9)FR6&Fn^Fa^X(Xl4;|xA5vL_vRk*}0ky%efg_G=;VNx{IlZ@{ z3(I*df1+~`tsO!kgBXCg^A6Oj$pA3Jck5x!&$}N1G6@??8f-{1JR&zvyt#?aoappaP(j>6wZ5o5#V#pUUwu_vb|P}_ps zrgDR&KtxG6QuMmJx-^1t*6{KKyjYh;wd2-7Eb>RwN6`cx1ClF7ig+>xljH$6a5fIk2`$Be`9zp15HtFcu`wNgdR2=Z!nxj4xs2YK)OUc>pdt&d^?76rH!vwY%?klq0Df-Es_|&D3s1*jQ6U9;L6B9MGO*;>^=yF_% zg$CRkwhoeEpg1HnwXX>5>JtI=wp7GmC0iqU12@L44zVV>Rjaj51cxhJ`|hAsUMBuX zZl5+T0W2S#b;IDr5tKshM!rY=Wb0&oEmBQ{WJjy_Q&;W6r>9L>9Ol}|08pmr2u*>v zyB!7WX1Pg-j>@YQLf?Pat^;#zzGU$b6eutpn0;@jZzFAFvfSs_)k^6I{T2FdJl~@$ z<@mJ>H?0dt2EPK(&d0})h6N6eGoN)3RYLRi?=y|dEcKni;>yK**Z-7}6)~^aM#h{M z4&Eeug|H~JY&1Ijc-b5sV@$GhoShkU8#r(BfLK6(s@im`m`=VR_PDKrT`J#9D=OFj zcd6oHXaBbhgeeI4=iggIw+e$e4~CFG`YuPBZo9cwg+)7QKkxAc zwC9~8qLbwGNp+84DQy`-?~Zd!if1Pn2%j!2hG1^KJ%v&k{WUQQe*s&}SqHrh>~KDa zxWWW!A}J$By)E8K(2{BwT_^Z|P|O*v&#@BTaTs2Uv&UkNV{bn^Eu09&uW#&}{=7(H z=UqGktv1Yce?BSuu;m*>Q;(@1MywNoP%mu?PA)F_@h)v(8k3l(BQb~8g&0NDfU@8F)@_l{X}btMmXGjBYbNhQ7gm*>Fp zakxf#z4P0uHlYPg&puf=oFMIv?*m?pU6U3zJqX@Z1~CRR;5riWQo~!wYQZsDbQ{7@p$+5ElcyuZ zPoZPP)-{izGhFTAz9c&lBQ-HFT!HPIh(YY+5SZ*w{04)x1gNM0LxRDgyGW}yu!m5J zuh4y4Kppn&i0`^iI^X{*D8dVLiRaVbRkkgLNRIO~VZ?wBXa)DOZ>B@%%DF zue48i%osZ&NZ(Oy)jD8*S*Ujm6LNVu&eA`Qa+$7-9BTr1{-w*#G~gK&SiJ=lI+z5e zyLWyP+#|}A8D3_`9CK+DRW8;tgg<_Me%;KD6v6`kN02V6CH5xHS}^Hf)qf4{LLYM< zR#ubz0t7~yV@cEksPX+jrci^W5zNI@CL+dx z*|!%9t6nyKL?xebR!UG|+gSlS2i!vO9SQUxsIy~kEA*Mi6Vy(`__|2n#6&!w%G`4q zA(Nq`tYQGQRB1jtJ3m*qi5boILEkeCtqo92Gjv*@&Q(T{9JepSEBE^boA$omZUjG5 zdZ+iH%MFr_>T!lOeVUG1zi*(2WbWi*y}w6R(4>xBzJZ;p%TIs%-is({8Hr}D*Ph)2Tskno1_a*dm=n5hiOyte&w8uDKk-ZF`|Fzqcn75J zEhx&VL>?)~JMHlw9!>%DXyVe`OvaOhxqs2n_q~`n>FI|wmix3Ml^$ENJ)Z43>qZzJvp`CCH^$3a+jk`dQy^=tm2Mwo-i@Y+us!V>Xn< zTRQy>Og&t`66j=Z`((@WN$BQ>)y@4I9X~@X0B3^(y_4YPtwuRgf2oNXczB19cYg|V zKBJ`%Sba4JX>BmmtdMn?oxw%5h4zZN7Z#$fjQVx!l1N)J=JLt?i3lu7FvhfVJ0`Ku zV?pj%rkWqvf6E~uCGu!ZgSc(mfy5T+ENVPc>i~AzR5AUnTudCTEEKxA3j>Vy&7R%^ zmn~rAS}P6VtLd?wB&f=zXk^hR5Ar)bh6y7q+4+Ezg%;iRqU(8-pT4aL>{psKe46!c zf*3m{qNnB2P}Go;bzB12PpUGHVv!xNGCmETCz`Z^@2M)=Ruu>Rq^AT!jNGE;6WHLS z6|4zod@*@&5IQ72F7|DzAI(W{K-F!=7;tC8qf?3in(#9QKmQhCu(iyNw@9H+A#rAD z$$BULO}UlB?Wp-7v3!*h@((+NduTwt%aDKQGZzU_cirn9K)w97;UJe9QZEt#UXcX( z02OQ^7~~KXe^#uQ{55~7s#0?ND_b1nTFS9cJ3J=9wsS*&W?!3U+U{@xIyFyNVA|aM zz_41_0gG6r5{6saadt3h|3KzQSGQT|=VtD`qoN=u-W{8(C3#RDV!{}@#)jVIwFHQj zm#@N`WR^>$G#SA~2)V4~xnIH4Vs^u+czi47#f#df)m}iVz@-OwK}A2hCDXg2wPn&_ zC)JONe+Du{fccrmdUAT+suaNEogEEG=^3zfiv&%~ec?_x&Eov>9)HB*xI&FQ#Q zv`1rmbYVtei-|XvlY@2_fz#@Fw5f_v31nCH$TYViaIQ5`Z+T5Jl(0|89QNc8)s%LMl|qyhu)^$2&IhNUni!Biy8wB@77{B5$S?3T z_{&Aw$fJM$eFIs%_n%a_o&r30r$zb+maNOwzU{p!&1KbE; zae^|>c^94Hs#a6Ktb>7WW^}{L2hKAtrX+x|)>rbD#|<>2BFb{7wip+nCYZR z-#fyOupilQI3l?lhbeaSnKq=l8qwHzY2XXRI#VLW;U+mz*faA&FJj~iAXm_76!sb) z-&3}&Fd~g!S~?wFv1E&pmH@Vo%T;L+&F`m^U+M^)^``AQ{rfm59wfaMbRavL!gexC z2Fj*4fT ztf1`T1)Vwk-4h9XLN+hnn^^i*r}2(_u!RuP%T? z_5`5==6paI(`V#VA0VEC^LG|(%U zNr4a+Yc3n9z%Ch(jTi%v#mFT9^pH%wc218<@z=*1Ill@l?jyR0mv>(3!ny^dQq+sPq?)HaTola_0~?h*j&dgV{R5fuQbHUnZF9wl|)E zxkncE;AMs?N`(=&giWcW4@>NuH0>596RUn*@kzOgxwPmjirbGGB)JIx6nY>uoZ@i2 znfBkKZoy-up<=*~ZFJ2qSM8tZ_f`6%X3mw3na#hBI(Rw`4(G#;Wku3m-{6|Wlnnj^ zkGO7ufXmGiuci`!EjbGN%$XyPZ1DCX6`f@=Fp;Qo8u##0z>wBqb4oDEl| z{>fVUV9T#uABBA;2jte;udEBj9t!CqqhxDGmv=>rC~pZ55MHY;Bss)7VX@(uS^BpB zK}pk4c)9L(Ws$SnSVARfh91g+({e&Zv6r5*gKC9pVkB`+$EmL9ao~zlTT2>{oE6=r znSVlvjP15{Cx()3fqHjdP~J3H;7=9(r{tQ)tG_dA#x@f|tX}Hq-cU0{QcN4UGmwX+ zYndl8f211Gt&y+yc~FPZQwLE7L`NUir5M{eg;1$lv!YZJq$2FU2Nw&FH8k^$`y>5z zeu$k@YZVVC$e5!CbC=KRyo}LO-hTUv`A`y;?+Cu4)bL}SbkWw@t??8B*SMtwOqfKV zqU!qd$5(ZXe~PuudOz%d*IzWcQ(F9XI;S4{^G?km!6oVD!#y;W|AxC^qcZGFZ}(~R z9vR%A!>XbMwiF0J z-Jn?KkPWboE#huA4prYh3{1e=2m~iXO$&B&!K6BJ&d8?W;|*X_gC-8zLDiGtT3D_1 zzoOywjjZD_|ADjV>sJ-=k?GD+#BvAYH!KVXN%U_6oyaY^=2H)VN|sT^84=_pZ_lIE z-kShVU9RH-NLbFPL)3;t8YmTw06B|8{i3~eh4J|YrTlS8UejXhl1C>{&Ug2DCz1^# z3<&@;Qi_$D>$liNR*Kmr=oY2)65eOFpX~f}9SxB>(`uqok6^Jh|M8U5fs(`{lx5si zjaQQLM-+z%ctnR!Z_?u}*IOl;ht!9l`hTL#1<_9H(Yu!vW{RsVpI5u3Dt+*@27OS! zV@lf}nut-Z-!|p$$3-+pk>2qgsmwlVJ~;SDE$N+Y?t_PGF+t6f;m}yz&I#5C-*L_N>#c*YcH0y2qJ7zNZokHOWz+5ZfBV$) z^h<6y&!|#Js-YohZpUb0u^Bg(Mhqhkk3EAp7OP9z*1=6aI~y+a7_{SaT7i1oiZSBn zHMeae57O-D_OOnUOKt|dBT?GSjxm!^mGka@+PR^FCQyznw#e2I6co8`kij^ZKh~KM z{-U@&Ar{15rH6!-@Sj3U)ezBOr*|*`h{6r{2>tK%us8@Vyig{x=fC5xiE!mErFOh< zA}|Ofs4QsSU50}<+40JgV8rsIpLRQv5@~+O(W*SD&e|D;o=j%#VISl3L?TUBwbs2v z96lk~KxJKpKKqiG;tKq$N44cQS_%UBS>Ix(-oToFZlt@3Kj^>yQjgMM0@cB%czy-O zbK_gyOT^i!IYKqpnHA_hT!f-Ph}a7c01Y|ZP*HI87^c$aSr@cvkBK4IY_B^WRe#Xx*nmQ<6jA3dzljsKIB5z zm;`2QWemI6c8l}`>rmqludTTQ)@JW%+wuKvxf~%QMPLEex6wiJ%PO|$@h>udCEd-s zs9S^y0~UJPz^+NU{P;x^E9NJR5J7Q*9^VLVpAUS3wUN(>THECG#6J$gYo;xSr$S+A z?@8=yVz|(8NT2KYqjj6;L5z3$UW{*#1EBx50C*29mpzC111XjY5Kpmq3X!PMoBR5^ zm45s_;n@ged#JvOU$Dwnrsm-=i{{EA7wQlVbRDR{tz~EaC09|dZ*A5F3hJ97bUb)0 z35AYx4sS3?8!UZM7l*iXHwi!9CzpIDe78|38W8|3=aV6jdOg^;hm8ST@_{AwK-_M&m1(N?~N(vwk$`>41nWcchx zL7|nYDGaz;i0<@V4!Bk*MxReIPw7b8cSH2|7R7ImMG{*-&1-(mM~e?Vyw+zFbv_y` zxCw1eWVZUH!`x}vKzR12b@WXhz;SB`&r--Xib7S;my0jt=6?ks$AQ&4}-2KG98L zKm27wukHOFcjw*Q)|@syM(ob*d&k9t5Hh%z!Jr6Yj~Y|q zm`Nx$xJ$v9)WB$gd?T546(NXRw1hh9}4l-kyzVkXkSRpCy>-ZV*@d${x|xWc@8PcfGdZ+1*3X3!*56G zgGvPw0qvhGjRztm0-5n`DGfUP@lo&cm#w6!lw_#n%HK;bdZ(E>m|GMAz6*f zitmEe`=5f{7=nKB2;jj_J%NF6FTv#(opQf|7E+*mLiXV==pK_Jr$*f36DCGoCSEn0 z{;xD?2Zj5m{4d~Q!cKd^7rYIS3DwUiliZ^O4rKOsp7Zhng8Sd+*KLGCzTvOHN$L*- z4svI8_GZ~b`;Rp6U}zb*hcnR@Q8rm6#Dv`a_9~C{J;$owX;<=5+9=5B!(2yA+S8*u z!k$@`mr#$)-5%8Ut;KSUwEa#gRPw%Z^8^KwEngrY_8O0?McSKH@W$FGf_>%Vt+9mZ2f$U6*)1gH{OwYcb39P)G%BWcP2%7n zH*`Q|?48sPiJS(R9R)FP{KfD!o@=Xwu}(nbv3I9{VVx~#4s`+swrx<4tt#D83#0wz zWkZ09!Bv_+@Mloie z%c4GDb$%CuAkdKoJGf2k5*f3={)soxHcObhCZXnk5-!01k8EmW;4&8}GXh}0ReRA@ znJ|s@(73#4N`YCB2jGql2iV9Ruu*`HUaiN6esHp(_5+3Dc1eG@tqSLfYrJ3f2)MPbgJV#w@2(cTZf>6(6N>rzL4# zn`^_?kDmsz1O@CjMq(&xeoVYgs`z=dT#js*Faq}&`V3EF1BO!R#4K?@h=QzT?f}S; z59l=_En)&m`Vao1*cMZ5@D(vhYR3A}GW19wpmY&2FwpPj=b$GuMo86RCNWRV3wNZg z3HK&PQ)~Zxr#4R1I~pYVPb!tEKzH2)f1eDf!Gt%RCaMLVhILM(cffIRJcq#%C}vad zbil=br2gbR(P<-3ye4h0BPOJW8?*>8!xCz04z?w%B;?-Y-og01`^dCkT9kS>7WCb? z(^*3BdCvlFBjJJryoYTfM$DaC5=^0NiNG#6ZA@uFB zBXlk7B{eCo78Biv$Jheezv+E8=*o=O1JnT-Madwx%r8y1F)M9h_LlbRivymSi>!Mf zbRYkHINZYcJ^lH4sHR*fVvYc67x|$!$$_6QuvG`N)fEr(_?k@gUC}}-O@4+V!fS&q zdmg`6wcs<3F?SmKmLVpI;KFMX|Q<>_*~~Q+X!s@wW@yaU1*zN zb2y-_xMtWKkj&wylF$mwSEy&106Lj}8P6OcIG;$R5ic?*#DcI`g76aI8?ZV?2ObB( zO+~wdbCm*M{D7k5k=AU!$VIibs=T}?fkqsT&lgPX>czs(!9CDVwZ?!kJ*3cub>BTs z(Wi83Oy3gdI)u_tev?zEv|Z19E}Yb!Ld_>vy`v^6u9$YeCp9}Fjy-5-m{28c&eU)T z@LVKsWW0dcMT)R9^KolxST)mU?l7NCb`*&HbA^=bv_2mhf;H2hS3)He>9+z?dE-tR zn)q0}o`alWJ5a8h*5x(J>F(A786vyZs~Qa{Y4ZS1H)q5~z|#E+r|66V)*7TpQWf)0 zh}|CpsGWr9l8m4v&}j8ENK_H<3ZUj?k#PwNB+FzqHIrf{Oi{uRqRg5lQn7rFTrxUG zLSTWwL&m_{7A^|H!+6EaA>?=Rv2|62oWrV~_#sy7Pa? z`l_fb|6uEf?(XjHZb1a3yF*$K5NVK>l1^z!>F)0ClJ4&A5cnSc=bWqW;$1A(f}45g zH??Q)`N9!^_vw&sALQYB`*vW2JV5v+%ibqZZ@~hzG1m|>MX5g=ji3Sc>r6|$TL+(R zBQ=ztowjNq{;lj=7X`Zs4y^zq&yobNwEXvkU;5rY{;4m=pO(vaG%_9sC)~p-RKiHP zL!b1ct-&L`Se<2YE=$62WinotPoJcqJ6%-YqO4luj9K^DZHCIVOyXuyZf^#SRPdJn z*7Q=}pCogL53rxy@8o6BSphla z_Ulsu-I=jG(dW*kwb#Mt#2Y4@H%JL!hFIq(wN@QtWq=dGas;DM1KAti&72*$ND4Hr z{>(3`O`~FFb`A?f24^ZTy2Sp78{!Ggx11UBl49$#{K?^e&WCJ!8rsg=`% zI0nxe>$IAL5A6h+uZ?BpC*LpQR4e3ODtCu;A|R`_{rFZ=+LKGGf(Mkyibd&3abU3K z20TP)2v`sj5>Dd9Sv1)>qXrCvfBYN&cgH`etA4B^m&J=lrq5dotJY)t*vG}{X%<{g5T(H_SO*6iupWyalqn4ek1@Cf zn(S%YR74T7*EMsp9c1EvNbH!{oG%0L=@9+~S1&hi?c&LO%)FEU`#np!#pR#s`USc? z&pPep@gnu$^$ohw>S3h-wOHcYZwZxy7~ZGVs3qzIAJE*Pz)Y72am*R(3u=Q#obO*{ ztioi<)lgb!$fa-A*f>`7->SX2iPH$88o3DL)F3o&o6jsaZZehb9g1a-?ie5 z%OCOV-jmD0u$_p0cxL{BtA$ER2TSK9LdTYDD&K-ZrA(=l1p%PcDiVvP5^XrRm|=o3 z>kIsN(4s7JvRatGpqfd$gB`r03@gDXN z@SPp1Hr;H7i+ChAHDQ^*{1?lrdf%vo=X*j7aYd|sNn_;ueCAK5??A1K_{XX;#CsU0 zW?}s&1cal%b)qfgdBc8^mPYvmMz{lGV!ZoWdY^aYmN$6m z!`XHCBj}{NMqQsZrrNL#g+y3fakgbQ=AwwKXf&vQWp@5BGL?+G(Y29&q<7J3KsJfH zhMK9+Kn~7u0#o$((ZVb_pg+^C{I(CSEhNtF$UN2iKQl}Z6gfbM2`)#mw@2B0 z@S}ecDQd!DD9~3w^i!)dTc)n*HAnEL(gCi=eCk9?=3nKRAzfJ)KAPI@9bmM3G4Iy* zZZajC#S$?w2$9b#9ujc3i(tmf>309g8V>3l_j+5#Jb@Dm8sDcev=Y6OGP({_f+L5A zWcq1>5L&E=n5)@zba=dgty}~TIuD8J4qB9Of&QmY4GRvhsDIH=TvF2X=_)U&+uW=#q*?p=UnmJ`+h-tCc+5&w+cFdQj zx*)X|NCj**f3b}N`?DJ^*IpIh_BoYp-rIvK9pELq1V5T9Zi)t%Lbwja;H{GhN2emj z#Op>n;W6>rQa7(o-4A4Lrww^dtK3i>a&HSt#cbSKpo|AfQt=Ied*S$6kfdS6rUc>^#{S2Z8sjlazDm(_7``}0ko9sYZSp< ze`nvZ{JzV2nax>UmUDPWH4>V%dlHT`IkeiSo*GD;Fx&;2!}rLmCjwsF@xbdmCR z>)ew2u3q(P$?43NPsuy(`w~OK|~6!oGG74h4(|WG9ihZKft097()}; zUwL<(Ss!0#a$>Qz4_nMH`@`5$orO0!-b5qp(3sLn!X(33g9W);?8o09Lx{fbn|1#> zz^_(KL-~nBN3&E7@U#9JGH1J7LORW^mJC@E6=}}-h4xcXvVg8^MzOijZwIo3)0a~- z06sxT<)xw{bG@7nB$QODNtcXulANsXE zbAF)(FwJ@83jV49!@RmNgFf?q=Uel)b5CJ?lrH|djk?!r*)D^M}n-u%)c?-J`~ zQfZ|bqOkn8nr?k2W2|zi?I9{Mvk?0ospVmRn&u(?MyfDVV_kYtH3EFxO^YkjQlyq& z4i?;Yy5BP<_CX(~wG+H<>hWp43P;POf-Wc{>cnSOku7N8iRjL4{o=jH=kGyapU3n|#v3&46DC}kfp=ymr zo66)r2vdfxO*2OBJ4|0P0<{j(7ttW`!TroYh;@*3?13Lt0wq`FR6sy(G=*pD3@ddW z7fFo)Hxa*x%S``i3I-5NlBnvw8oTH)^KbTOG5;)9Xhc19d@~�bqyVzIX)?BNAY1 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 +# 自定义图标 diff --git a/starter/src/main/resources/templates/chat/icons/generate_icns.sh b/starter/src/main/resources/templates/chat/icons/generate_icns.sh new file mode 100755 index 0000000000..0d09fd4d1f --- /dev/null +++ b/starter/src/main/resources/templates/chat/icons/generate_icns.sh @@ -0,0 +1,27 @@ + +### + # @Author: jackning 270580156@qq.com + # @Date: 2024-03-27 10:52:01 + # @LastEditors: jackning 270580156@qq.com + # @LastEditTime: 2024-03-27 10:56:19 + # @Description: bytedesk.com https://github.com/Bytedesk/bytedesk + # Please be aware of the BSL license restrictions before installing Bytedesk IM – + # selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. + # 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署SaaS方式销售 + # Business Source License 1.1: https://github.com/Bytedesk/bytedesk/blob/main/LICENSE + # contact: 270580156@qq.com + # 联系:270580156@qq.com + # Copyright (c) 2024 by bytedesk.com, All Rights Reserved. +### +mkdir logo.iconset +sips -z 16 16 logo1024.png --out logo.iconset/icon_16x16.png +sips -z 32 32 logo1024.png --out logo.iconset/icon_16x16@2x.png +sips -z 32 32 logo1024.png --out logo.iconset/icon_32x32.png +sips -z 64 64 logo1024.png --out logo.iconset/icon_32x32@2x.png +sips -z 128 128 logo1024.png --out logo.iconset/icon_128x128.png +sips -z 256 256 logo1024.png --out logo.iconset/icon_128x128@2x.png +sips -z 256 256 logo1024.png --out logo.iconset/icon_256x256.png +sips -z 512 512 logo1024.png --out logo.iconset/icon_256x256@2x.png +sips -z 512 512 logo1024.png --out logo.iconset/icon_512x512.png +sips -z 1024 1024 logo1024.png --out logo.iconset/icon_512x512@2x.png +iconutil -c icns logo.iconset -o icon.icns \ No newline at end of file diff --git a/starter/src/main/resources/templates/chat/icons/icon.icns b/starter/src/main/resources/templates/chat/icons/icon.icns new file mode 100644 index 0000000000000000000000000000000000000000..1cba06d0d842482305adf3c5e5a307b7db9740b0 GIT binary patch literal 273649 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 c5&9eX6S`zBmd*wm_;PkUiRq&%i!dyqzLQxUG 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 SfnHvK(PdMM3+2DvkNhXkPX{9a literal 0 HcmV?d00001 diff --git a/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_16x16.png b/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..dc28d05a81594a061dac60bf5a03063e86a51150 GIT binary patch literal 778 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6-E$sR$z z3=CCj3=9n|3=F@3LJcn%7)lKo7+xhXFj&oCU=S~uvn$XBDB+SC;hE;^%b*2hb1*Qr zXELw=S&Tp|1;h*t%nKM9n1M7SNNfQUTvlKKGlC6LXcAiZiGhL1)zif>#6qw%*f%@a zQN*_Vp7*R}p0h)g>q1y#J50OuxFR)J?(8hM?#ue$V+r@h`Xw4A&x7v#U{or3$Zj&J zD{N&*NS9f{8}HAb()Of(a-8yQ66fc4XLf#{Q~jRf%Bk{M>54a9J9fUEG-DmJZ?f$F!e4Fi*7HEmyOGhx^VP>$th0u2lKciRiZ#uBC>A_R??$?_er(b%8Rnoa#Kz z!@R;}iW;kZG@own5$UT@a~O7U`FzQV`hLY1zJ|CtdJj@$3)_j?9=@H}B>svEe z#HQYy^=|g7FA4KQSFOZd+eF?E9bhH%YeWRrHFMihc9`99|Ibt#D=Kj}M0*9#dUVbS%L? zb6be9@%i(TbLNQIL~oC~wSd`2rbyz3f1Hh#>bystiymAyQ`K~x`aSY{|Le|e5{JJD z`mC9feX-UvHLuX-rk~jK)-6&Kj^+EwOZLsG=P&%-82HlEj>qZ-ZyL{5hb1SEo_oXn zEIDXRrcQ7EA=l8U8{f=-l`*UKTkXkTa~5lDtY`H9$*1>W$wGfn!t!+Wb6Mw<&;$U$ C_eN|0 literal 0 HcmV?d00001 diff --git a/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_16x16@2x.png b/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_16x16@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0af3c984bf7acd4a253ed43f2c0568995d6c08ee GIT binary patch literal 1766 zcmV004R>004l5008;`004mK004C`008P>0026e000+ooVrmw0000) zWmrjOO-%qQ0000800D<-00aO40096102%-Q00003paB2_0000100961paK8{00001 z0000WpaTE|000010000W00000tcGIq000IdNkl3$g7(MsBnd!n-pjH;4 zAgiEIfdEQW@P{U#MiUf>ia}G18sm~E62q_lP*4dGq6tbg7(~%um=IPWxUdzeKq(;m zB3lcTmM$~%-t(M09T=EtktO=2)46k(?|jR--@Vr$MFz}h9Ebqp9pK#n$VK3%jNU}k zI50pRwasGV$6X~^Eyjv9V z%cz-KObG+r==dmde8->Ugd;Zut|Z-1qUfkFg>44DUtiC-Wd9pg0nwr!;4@IJ3xxR* ziDK-F^W)Gl^*NSVnVrAft4Tpa2!`O&+=6JhF%GoL1xDZL;J)523OgFKrrA<+k(@nT z6=2hT9~<_2sJaMblU=4oL#UM4ia?9#@=RV$7~x|4Fc&rC(UyZgcAp4v_F`adZ{G^& z*U7=~o(}R_8T?e{;hW#%Xow}&w%{9DG$2Z^yS6v@@aeDxnzts7t%rQ5U*S%M+NTRj ziwqsy-N9=QhtMX66#pTH17`wc*}az8464a2%Ih5+3>Lf?LD>->Qx-(A`G60XE3(1~ za0^Uu8KS-r4cKjxyX$e3szN|pihr{2jd1A)I|d~nVj9%9lfjbB9{ymMYa4<~EZ3UW*#<)j9Xx-3 z2zyA-MH}OGeD3NvW>1V@;cszVAc3!rLYe__l4)2shaLym#@s8&Vz;6&oum@8i@F<( z=;flI4M+KR`a;td+~->kyh;*|;C5ZV$4ABA0k>tqNH|zo?xztlqXGTssd8E$1#%cl zZM$Fg`nC?d^=JrrxyJt9u#Zfo6n1nlX=Dgv2Ln{ z>eCERZEc%laK4U>CQ%wBqga5Bo((W-SsXFy%5R;acxER^XA#r`1y2L1O zjuB|fZJ9~Z4PZzwHU{XLcjXS1H>=7$OUA-{gJ%iWhK5RNSj!e|^zhv#&xTlYQ$;nQ zwwXirs;S&U)Vc3efJX)z8^TmYDy^ymB3mg7(pv6y$(a5Q?qvZwe$Kl@%;Y-F?^EDl z$rjHRuVjDnJIw$UlkLZpZ-cwK7?d9mY=uiMP_@%mYe%o9k7J@K^VY;rU6;sta-P0b z#(S|4b^?Tw#gQuCe$-C#Bo#m>=gXr* z`1LOzC(Z|HTTpY;3{a=a>H@O42Xj4nlxt5r^(Q67RVvR#47)yRt1ne_LhA6+_-8-I zuZUvmytEW(P*JGnE#aLdF?>EbVm!B$cd)>XWFB#Mu4Ja2IcL z%f9(-3}CNWT4m8Vk~3K=+OiDyzTIF{9|r@vIM~37r~^m_ zwghf5n!Awb@OgpxpEfpZPqu3A^~ZS-iODB<>UANr6(xBswx41-E= znKA)2C%TeROCpr1lN45Y{wE3cKwrmtvzWzZO@)VA5=^I^ywg0L4?1q`!9@eF<@F^T zVz+oH)ulvU2t*N)tq}rPo24abH~Tf``a~;&2Jw29UM!hJ;a1)SD6e!$QCp%fwe83D zT;IPY%vlZ}28;P3YUGRM`ZV0kY+?yh*v^g*vUc;qHir)dy7M0xK@5vUOkrEZ?8;p; z_#mBWj8o@?c^$fej9xn+dYoo6Wlo*2gsC-68BHwzKc46R0G333%%ZMxJ^%m!07*qo IM6N<$g6fG3xBvhE literal 0 HcmV?d00001 diff --git a/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_256x256.png b/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_256x256.png new file mode 100644 index 0000000000000000000000000000000000000000..759a7a3ef605a28ca1ee715cead355813e1ec33f GIT binary patch literal 18802 zcmYIObyQqGuwLBV7K#;j7I!J`?ozC{OL1A;y?Ajbu(-QhaVhT7;_lAl_s)6e{c%qw z$xSlJolJ7)`yy48q|uOxkO2Synyie38UO(GAwmHV;Xe`smr{$51lID4;uip*HXh~0 z1nwhGZYHCq2mpA~007_+0O0AP2z&qldwm_;PkUiRq&%i!dyqzLQxUG z@F61tpu(*IupiQYV-S5j002xL6aeNUh5D~75BmRVp#XU>|1badqU8~hEC3)1kd^qN z;R$t`jnIKRzx+OB*NQ9o1(zuz$_jTNOsZmLDVE4Al6mOriN`ThR>3rq=JR0c9g(6J z*HIS5f>lLr+JFw0Bvh@jIFoTNKe^(vv%a2VU(hvY zU-0!(fvo>Q{pDo#^Yx;v^0A9Y$UaJ$;7We;OeEm9fI7>yi(#u%q5m$|k=U()<;egw<*R!@ zP@0_LMbsPYCI=-~!Zyu%Dx3ezLs#|KAzsI#tFuQ{zo@#2DC27I_yDx$z1k4&%C+9Q ztI+27o%+VEf9*rd;+~MO*$#NQQ^-wffwAV_VYD>vYKNcX8Ui6}XXk$L0vEmg31+L& zw7v;n@BOILnj$g$6FQ73Y)%?J#}+j<(_Z6Sv|}_nO|>1;ClyNJ zMtwJxc{x8_iKIM|^l!$TO!90|G=-<)N?<>@Ula+3G|NQv(=T3q;_W7ld|qq4ZYbsS z$gi~}7jqn_q9G#O-EJPW&8)}p&t8ZA*lZM*60#Lkmp;}dHZGlXH?^HU3vH0*)o()4R2}N!L+#Z9+MuEyjmcppDt^V5tHB^ zL6oInz#BNc-6#Bv4Sf81vs5Opl*09HcgQ4OT<_)~cy^BtgASt!BF`eaYryy`#OpD% z0K>wad*9Zv>z)B+_jC$pYw>J3MWD^EYd1pp01@Q8Z|oPPWHauBk4j18bnNMwMLc2k4^+&B; zJJ`12wK!>UcYg+ti7yx9I6Qv!iz=IeW0z)&tZ;}b_x-u#0cNxee6-ysG=$_s&yU5o zYyH{Bpe@ie3h;vc6^S&{l>HSwn@x2@noCp>yT`(k8EE4o&#J8wMEORPaHQl6JU~IM zVG}Q$h7>Oo!K$v%VecZ2<{-)U&jg;`j2J&FvEId zaOs!gjQ}g;&|u4-A{U7@&Y^OEfjb}ibAl@l{vC||9Dy^?bP>?FKg>Pf#EQ=@Js&kM z{fu@-M4&hHJ}iHd!~EXMA!`U~m31?gv?^|Aq4^4%$Z-KpgkdC^>D2|5ewu1F zKc|`e_HzTuK*P(a^+2XQAKkP-;L6Fb9Xb4I#0s%42>;nB(g2`=nW(v;%h#I`DB62} zciSGXl4+Tg3Kc{0 zJz*fA9)`q+nD;|lDj>{si`DvU$1iI_aIWm>mY02h_CxO0M~{0SJ^q*j%(PjNhUma= zW%MawzcYrx2~_a?*A5k?;Jf^Frj}fB*GduY$ri&i&B^EXLtfMnlOFfKckbXjwr8|t zC6L7L1{b&cdp-R>{oCT9h5>Ey;vR6} zflH=6Y~Uqfejcarz%#QC`D}OEu-AmV3Frjhvn1RW2h*HL{Dg6i4!2&J7Tzt8WAUzb z5xzZ7c=b7Di%;{h@Q$YgA;9CU^I5|x8NiQk(=CUy!G{l6XEW9+~zfw zuxPPnUa&su?W?P%Sy;tRMlXyIm(QNyRKwxRRx=c`umdZJZo?eUIWwn)^&}4&Gxy$l z!1G>zykC9MdU^mWn}zNM&nbjeckY#0TxXJ4t&L{9_lqxR3n-c_!YG3+#&`t7I@)xj zeS{C&`9?H)NPLvRj5h`6jA5vBP>unjHg(JkYIZ7Pi%xyCcpH{d2=v(OcBxFSG`*Qu?%Fy_7WAe8PRC5dEb7|q#VqA_leJUDHzZI;% zJIW!<@Af)p7A*kIZE_q}Op*v}cvw%SH}5@L+=WYCho$$;@eBet7&1Kw9xO7t%!Fm= zK=8wu-p7&i?qtINn|}59T)4!)X^Yi7{pvW&!oZgm!xT3rweBS5IJh*|yoKLbs!y{zN#6dL&074~&LOOK82$DpuI$Iw5w?NDwLRz&ZLvbUx%Tec3&D^@8?+e&n*kb4Az$`QvZWisAGAMhWt?)$WpoY|jdN3~yA#+?+h;zpN1H47TDZ>$ za+h13WvkY3hx{zctw{eueJ-J{OtTm4ikg>3YFx8gU+&n{WQo2(V^3rElRI~MUkg8! zV5H??sUoOVKW0mnE#&^69~g;B_UW*gdZBog7k-+$Vg8Mh>EU6qc3e3@Dd3=qu)fp% zRnuIhAFEt$B0e?0tbx@Hp}4g8vF6=QoU*(rY0GS8G~OM_{9 z(Wgm<>FhyE2to%UF({fmLRBgMg#IG)sp?QyibpSHPlS)bTq^SLvn(ev2>A8++s2wm zz15W|tS1H$SGQCwTil{EwkS_7kp$E>hGxyAWs{us;#9ig-=SlcnpGj55<09F<6rbO z@Y%p1S}nknnRM9FvmTQL(-wdR7KiG|F~whMoZP%=eVW7U-y{_{vUKna`rcaxb!#^K z$^z1X=mfaf$~*pW8+peq^&#;xZTCwJk5?re3jv$4W6Mj=^o|dExvco(9Nq!j*#)`< zB&4&w4Cu8UxiM`VeJlQ-K(Oi10=If~BryaW=^zGsccSb%1_^s@h%dgwfPM~3x@`QI z&O@AIF=l#x@DtmIuXyFH7a$S1d_YsDcxhPvp6r(9Vd~yk@|98V_`drq!%{YBFo}S^ zTERc)cEnPeFGzSM`-*B7&5G)&d~VxVOS$8Tox7~@_~Vg_>XjiVA%sh*$bt{xC%@FfXcu>zs+`)!aSi}wAS5EFC8wi)+cqqRnmXnQT zF_KNL#z+DKgOC1OYW}zrioyHWf9o83(JPPbI|u<^yxmo2)>Oo9^RbXq0320 z0HGe1BoY&)M}u9a7YIY;7UQ!=)Jj-hd`4sz5{kANq60+-Fh<;G{gn$ioG_&VInbTmq zA{_2*4@*V#`gfrtHi~L?rg!vXV#ek_D=;6syR?UhSrfZSjX36As&WlL0sckC^45HP z)!;3DbT~-wS+2~oWvzI&+7jdW<6d~cSjO;I`V~33+uBQhc%nb*BrpdzTbP8>^bq@< z&${)6z6*`e?em+tjOk-_$g^uP>Um>p5ZLtu0lyJps+Yg54 zQy8yfc8Mq__rUk9NjC8NR^L(du7=V1T7R9z^>>?1MwzzO7c#GF9>T|IlWdVT)H1Y} z2)Qtco_ap_VYQa;l>_6BtgWn$EXnrZsW`qg(ik(q7y;ee>+4YQI3I$!eT^LRaccJA zLK)n3dHeOAJzO#Q*UY&7fVOW z-~y8@^Sk9r^}XTnrumcLoI-5vh!iHem*v|fBz_jldu?qHrXWvJLRY)dP?*``sPFrw z>CDgD#h>QTl`NIT;ivAC166`xs+TaykgRj7)-3;v<(0^Qy1J__A3r6w=Rv&B?Xo@6 zKli{v@PCROdpkLzn)Z5Ak4tPvMMJFZ3dG8B83(ymM~_6uGRw3u-$P>Xo^6rNOiJFP zeaDPCA?sQl#Y7I3?Mgo*7?sRIk@BKmzYHx_AGdbUlm{@2lJ-dsf3vT}(TLItP5lN) zeYl;D$G^<=GafoRo5u$T3}QG=X5?<9Hm7{oGjyv6tKN7arBOJAvO&&qGjI2LpmshY zG8UkAeZ7)lgPOOu(xjPoK_y>$EL%`#yfpjwJ~V&Y#Euq5sb|b*C5&nuLfs90dm;sA zY;sx+|IO{~sP2Lfm#gllw4dvm6)D{-Q7)VJ^zaGe z7tgt_>XQaVsJ(g_J<1pp>G?LzQiOF{L8+zyC(l{s02iwT)P%RMXr+elx3YYP&x4sU z^7B>uUFRgI#&eXyTkL}tFFREoXcQ24%R0<}(yi(*$lL`dy5*u{Ai&Fu+v?}O>QuKs z2p0I`%~g{b%Va-Zo-6Cflh~C{pg}>5Zy7uyUDTHNzr)ng?$*W1HlDxPk8q(zR|1%O z0TGj{qE)%q=*j6Nrlj-WgpKpBY4x&HlS|rY`V-Hc-|^(ATeLJomAk79HG?7QT!ay{ zCrMvbts1>77t<4|bD&guo4Q>drxGWXEp)l^@L%tXMbvmU;qEp1wXOp&a1K~^$>-Dj z{Y&PcWP?<}a~I6AP|uDT+^3M?bhlC^EVdzlDRJ8tA;Pzb67F*0dHQMsc?V(5H0J@b zT?8YO15W<@?w;1>e*>@u)KD>*p#-|} zrp1ZBq@K6pFDgLS5F!43dJXn+-ETP3f8I_az1MhlzetftQ28N9zO+BaK%`okhfuKY z)x2-_&gVA33oU>HL1(o=E9f@;jr{b0wZ>j5!fFN|MPCJZ^9MX~uyXCg8jARx(~i{Jm7ca@)sbu2A3pBZyoeat?xI=jt8-B?@I{pK{wT`B z-jHSy9lY<4aUs+|F>SC<3KjHb>WaTO19oC!sa(ifm*ArI*N|>gj}RRj=INP~OU^4E zP&Eer;{u)MGLn5$qyEw@PZG)_qYs1iiBzN{Qn184jB&3T_tEU`>Nxk2Gy&Y7Igj(d z@9N+P_tq+GnYr6fkJ)(hjs4=rwxzs>3w28IhShVfjzw*lf6{6aV|i@}1qA5ONBv|coj?`&EstvoF%4(9vW=CPpQRcJV?a_va;`H#+_ zlPM4YE1n@tK8%#y;uF)7nWZ$-&fxs0mf9Es=?SN0_U zg(#N=v5wzTvjwkeupO%6ZR7=Ea}!XdSk!$ohBFZ)*v#U{DtqteHf=BgTnkAl>|nQI zWu@eY#tNNyayEv%LPp}E9V(*tf&cC)(WRj@eP!_Me`S;Pfddl@0W*|?#y!LoWNwrI zwtMlzcCsis5uFgI@#Y7HZf;(?u{L$}6{jOF?Np&(c zR*6;e;>aTCh{w+Oe}pQL&6~dY%r0gRJ4)8Bxld^08rnM+dgA}4>T;$cYoPMt9lBLV z4IYi`6WcDHDT0!#teQ=2I0OY5_o6QracWP?gNnjqwWFQC4;&(k{$=gZ=Okm|wCF<2 zcF_hNyLq*~`PMr{GQEt+ov$@x=hahMZ*hT_|I0ymSdN`86F$cvH8XLM&ErHyO;x;*w=9WV!RVL4?%qpj|@>^G&ak4 zmj$eh>G(N>^_D~Dtsl@1|7iq=-Jd&)h>&})X1CT7;AG!6Xy9zxaKLRyao`-FV}T<$ zibRRZCgd!Lc`F~1%NA~z41v_a?t&kzc!TbPDAIK{H?ezR#={BPt(B)@ok8(n`W_YT zREe4{gM@b3`(Yi~mG4|qIO8bFefH|ndu_DWdyNcB6|izxFXE07rF?ntKOt_; z(a*;0Y`*baFvgGdzyLpmEcbxQH%zcufb?Of2g9FgR_}o?OcKkV#muaQwW@8JqKp}U zvvg*!d2W_Kz!L`w4#lCo7}C(N4<<9Bt7vGC)#KrW^=)>YqVU)h+A}KU!*wB?>pBix zR{V_ikl4bHY1>6yEU-z>koapatr-j4Kqizi+op-e?K+t%4!kHL9Y!-xU}#^}$GMs8 zF}Ac`xAHo(P4DDY?>1q%LB|l^$?0%{FVxwu{Yk&^+yoj*JkO6Hlt;F*xSstk*apn+ zG}!Ou+TMY%#PuXLVA0?6D@23P{J6!#TUAZeC%2;9#bdE6}$LMTn4)%q_avb>-C2x6Q z>b>-g7ql9&YJ~JR%j;uE{|JZrz9Sg9`5Y^sWkeSc@C!P|*jIJObI!BvisU}4f;UV+ z1GqPRxm|7%B*>Ljrbx*0&jQ5YVO~{hkJ`sl|Hw~&UFlaC?K4Z^J-Z9X$fCU&&=%B} z5)k}N3@a*GB&CV^H)dp^ag*DlJefw-)2SESjMcDqJxT;3R`;^UOQ{!|`ySXHdY4LV z!ceX!fAq>*yx^4V)9)6~9xeK;KcLsj0!5W0#S{eixMR0&=Kisv{&eT;t8wq-FOu6G z8|S8D0GHX<_+(}72(fZbXZJj^7sc0YANoib!+Q7{@uiG8GKy5xIz+Rk_&o&omcz z-9E$9BlSVc;~9=W6e0VBSj3zPHWQr?ZcZa-SZ7~{+HU~h+iw>ETd&?Qxq-o2<9o~P zTTT#-@_lcmNAI>Shqvd0Vws{x24cX@gqOa9FWmNhYQ*fH-w`cc=CDbS#H3$QSSpa{ zo88(gVpxdyer_TA31u23>MNWVa?f|ila@7vU;cR~JSO*_N<+%;@qE4g7_1&7Fxo|ZJw}OO}woH+Wdoqz~2K28oIk@gxj z3^q5k`%4X<+nZm~o5ke8gbZwahe1OOrq3|2?0d=uRQ~DbDd-$rrt>9tZ#`;bX<9g7 zGtF|UiRi?L0QJn0BKb>0P44~S<%K;&IULW=wS`TpKn{iaf!dpr>#ff{WvkD2^4`LxHy_Z>K@O9Fgli=!}GdTH|}rl2v;;M}cu_^nGESPtS96Mh;~w&C~` zL2l9^gfz`Qbsttz@F|A8(~gY-Z){Sm_T%(Fp)ywhk|^1oG(03P8+u25u9wgyMkud* z_(y9o!OIMm1G7c01+yA7jZ1ZXc@Sbw)F6_sCleY~s>mW^!&}PqCxNGNY z?=XrfmEZhni)X7Ua~YK4A~8>1Hu|I%&)n1|ZTO7AP`$Deuz75$w&yc;n?gdHD1f@h z@c7p`GE#_|q7Fn)==U;7czsRTA1ym>xRv#%YGS#?IYxrX31J2Zkls3C8e9ob7j`!& zOaW+ac?>sZ;M|~k;+u>Y%sL+Pg*EUg^S_;%DyV|K-qPwMgI;*QoB#nB->TWR+eLl{ z$iZi{3VnNIW#K{fGoNZuBt|l0Z|R787jHM@J$W+OAGEH$Sr806(+b6tW z@}#lGVwftO0grOaV@1Itgnp4lE4AxEeOBZkj-S5@=}%_)q)8l%`)B_L=+D7#CU+p| z)gc3>*GXIoHKrZ3$a6b8dKv;LmpAGy3y?APNMxgzWIWRAf~Oj9v_3-SU5?dHbhJ-& zgzc^V-1iIy{NP0R)k%5-0<+bf#Be*9%^sDm@e&%!I=N0L+yoBAJwcl&WS&9oy0jj~l_$dNxFqWttGkwP$BZExrk+u;?v z7}Qdm2n!3oNt}t^$s5?lnPZpH3|wufzr(>m>A;lHYN66?iPjVV+#dSjq33VWvS`P- zu2(Dw?|3<~I^1O=PabOvXf|usW!*=x{)6V;EAvqC5rDe8i9jKvrRl2AG_2>B#LgilT-tZ z492Qa$V?>lwaB)X&%dg`TN)rTvg|fc*K?=khZ;PA@{T61^N(1>MjKO-A<7; z!t;R^j#wfRQ=a6ArhCJ(H$|!IRdT#U1&Ffgn%YnWgyd}aWl%%Cw=lJ7VP&`))R^I> z!1$4A*$lQZC$3bR@#1nbhIbN$xaR;#ZhQ)s%kH%PVTkvDClT6~d7@hF`=jX>2~s8Q zcE?oifV4|?7EIw}nk*=RKT@{8PWn(kt=OKYj4G%a{z~lWw^V(V4J&0kwwO2?E8i5X z6fLY)RulO`9b5D1juRHeha_}J&C^v`a>$U-|WQ++OTL@a%uatci?BB~y+mC&ea8gnn}$;ugKjFeXZe894EZ=sv-p2fCho7tcp~7o1@)=mbs^*n_#V+u z%z+Z?^#Yr>eRZdk7yNJB48+MCMoGn~hHbR?84CBr>#i!hoxMsWdS7`N&A%`I( z(wn#43}mO(D}m23irV&G3%Bj_Z}K-6Lfrc)?5+ggPR=}E{|06J0tVQ@Z&mbm zcn)s$JR&eqTy0)q`kD;K=xVp!E81L%y@upa_}kG)FeQxzwiqFWq0r8$fAiz?ri8e4 zpOHqR!2lk0bPJ7-PE6zBO^p+26mETsPbtn!PmV`Qg%QcjuqG(1mWShy?8MS)Qyk@}-i*tuB^R2KA?`blnIe zJ%x}C?lCE-`y#p5B+qYkQXXF`yr_dodKo1oyXas@9YkL1)v$A*QT^7!{R4X)Chl+W z)?9>?2U&i^v-Tek^{X}gVc*w+adR6DyrdvM4j^MN7rgr8y{B?2+FsbZg2{my$6WXImmhg09#b#U*-Fs;yu1%3JP5Xr32pf;_0g?ndwN40&3fVTYgxfb)ptRXgH?`^s7BHK79G5I63D&Rmz9T6u~2r{FDmA7K-XQG-I*%CYyv zX0KPFVth{1uKB7janiV`$s~DNLnPm`Hy&6%G>}+g;lr9!ghuLRa^CLf?GJ7JtTj7+ zQ!(|8LSGZ1yZ6<-lK+$0bFNwT13ivY`x28H1z;;{2x(*z0Fpc0ETchi0V^rHR}bOu+m z)o#!306@iFM}_t@liO&M(M;efWC9~Q`)VthbV`3c^N9DP$|M?e!XL{!S%A)TI&k!^ zS;bR?X@}>=LqYmkVUzW{)2Lp`76X?x6oT_Ib1%tMv|b}(^Oi~2Z=doLWy@ezSm*;e>hg?|&iz$LF zN}OtD2NVU?1tVM}+5w!Q2BiCB=>tfpxz#yuCr`nLtdjhidoveHV9Xj#egE&0yEY zjuO)*e(t|mG*(85tz+<@-48~%%IB>k2woO_5s3X2rJ_%FiDUU*B7MCFgd>?zC7>sF z`V+dHryFmOvMz_;+!C3 zCdy9T$tVY>13_&XM0T*g8&P>p#oXBR{rqXgKWm_X^|f|A6?qskRrR|HhsSuFifkh7 z+ug4I)t(Q}p4{0GGEV*xD=!q!R_QWSpT9nXC2oTJHc%8d?C6CBIYZ|?OX!XWD+lgP zMA}kwDvw<<*~%rTZBn>`6e^@`Xe5vDjyD5l7A0xCHjRxZ5*`om6P&dkO6fFzqGBJj zWL=;u;W}Qk%%eCa`Naa4%@|1eRH+Lk&tu)T&*;M(^B`*?q!}rBZeHH(F)FRC0Xf*HbRKG3{{&=w4U7GLr=zUMjB0y$kaEauzsR+=TS7BC{T3d^CZ4@e59k zudoN=pi0X*;-NSN$b?m1CxWkHKZ3)o&_Mso`qNciiKQ!u`o#i+h@Q+xTLecVgzI5OOl3;&O6nw4qf~2qg^!^=nH!?3XF;h%1I@Y$S^6{OpAe9l0{qHgksQYzz*BLAJ{y{X8-#c_W103x!r!J@QfBsvgyrVRcmy$r@cjmCxg%wL)N6_Yr{H$vMI!6Gq9 zyGAFH@tm0nPXlgo4$C-kH}1sR0N+VNA4$uGI21Ot z|01spz{K_7%-Kmo6qgI`_t2_#>r?wdr`qew%>~GDv5c7^c zSwWIDLaEw00nN8@8aYlITykBKCc~93i;1!HPZ~Ek{UoRv@RYIb>V;Bk^^1Ws=t;Pe z%MBnMhLj^pJXL4OFa02mePyB)GL1UMW}W~-_(6(Tk6 zas!&eXXg6?C-;6a)zK>DAc$DN6Ppp6F6~j(t5?K3!GP6CfKM-Dm2XGqtP@|G0Pr-{ zi7Ev1e?RD~1TcvWj8{r~?|p=|CqiP6>luP%Z{~Vb%!6IsBJ~KEX1qmsd2QWED>DNy z_9iq^pqlRj@kNC_Km8(#G%@e}0%eQmBS%a%y95Gg0Nk@c>#m9^O+z@-C$eAGi?Q&@ zL%gpXtW%aorOqUJJ7o;B`Spd~@o^^<@EVFd=>mEFfz!ayBy;q@R;f|;v|df$bsvc0 z^WCT73Ca7vcAX+aniE1={!=afU)5XRRMjvBbw+GZ^~)zX&p%8D^YKhtQs0!GDI+Xg zte7w;EQtXTlPtdW+6O}N(0VyjZ;)q*DF2rIC#tE88ZX&|6!_9ZJJ4o2Mqnn%kas}4 zZ~T{1(!*7=S;+Gf-Wzd>ny&kEbjkwD*HALL!0@|o+)>Iqjt0JujEcX8V76$GziRVx zc*X?Va^RzaC7tv$q!y4gBpvSx!R358Fxo#yKdrA>DK5c$^0X|I%Fcm5ZZVxC& zTu#V!cK$mILK6wA`79%GqZhb|Su7L5GAL5ZY>ZeGq@1q3?fT?UlMdzeevLPpr9lI@ zu2{&={6#KP?hIg#-9vDr&lH}`;6~Ni5(M7t7C}W@bDh3)^VTu{crd}_QJBnPeal~e zF~|rl+NetoPV1S_X8gLe`GD5_kLUx%`^Ko2e^7k|9rCZQKOMMhJZL@;3a}YO+GnFB znw$R4hgzy6x%ol)`h2q386fCO(C;SKss4l05!Sj{=?X+{k96e zp)!kLRjh{7enSwS(!Ae+m+{qx~vw&B!U@Ke&)dNn_RNfXqhV+eHfyK($=C*tO_P=uPP$<$M5*{U86uTup zXTixydHth5)sD^onhsw*%3jW26s;k2X&TBCX+AEFLl+3QOvVbz5Trw%s!3fQv)LH1 zObYCKf<6}f&+G9|muvv`c%92bcjlH43|XoPY14VPfteHQE@8);cokmY?UiGdd9g_q zOwrfX;N|2P^Of_ywb=`nFpz5*jD7WW7`H9-MVR$OY|#)&Y+S zc4+ytiQEhW_FYjm!;O}dO@-enNtORxKskxc9$Onlkjs}UG3Lk2Tjq}5vTXBh)ULoc z83evKJjSHmv1F;Og8~^#Jp0UrxWrFTVTAYKW6w*WYdUh{?VQLq>-;{=x&pxoUBscP zi_0U2OeZ_~3DWe@lK2~G&6^^FeOo$QoRcIUy~!{$7XtN*DHmtQk`yd!H~PFJI-5^Z zuFZx4(|ozf`EVZUI==jkP~J=fep#-TH^#_N z;T6xcqw2J^aH!*!9+@fb(H(rTJfgfVVD|R%zA}C}x;q@Tp7GF%G0d&;V-<^m;ff&p zxv`V|t~mtQ%nlYe80*(Y8HP4F@(?Bvxy&UTjDrGMxpNgv7j!^I78nw@2gQj0BI!Ig&x z=iH8;1nq3}H`AhqN!z8>F6avlr$Pg%ZeLj*I{42RSh~x591ksJY@4(=F?VF28nAyh zB|?Fa9kTUe6m733uOo7F_v^F%p8t>%I^P^J;NklT1)BSh)OGo(DF;{7c{74| zmlKsvPj+a_cJyY~6_~JeJ(xWksc?pr#WB46iqyNIJg8X+=-(7)Ep622g%tX4>~9WE zA_9$LNJyK<((ZpR$+h%eUU^_^E3Hx6=XiHod4MWfWf9yK*p9vSLJS#1^oWuTUOhJi zdF!pzD@OE8!b`qCIt!SO|GGkVgHIn339*GBHAZQ}EpC#U`p;9926SqGGyqXqm#m&c zZ2$D5_;Jj_o|7{0;c#$?*5uRxPfv*g8WvF)HYNP38NmTwMR^Qk#s0qX4bSRN&qu>I z>v*RO@15+zBeh_@Ep|IN<9phReO!AMI|`GFK6#|Q}`?TFLqoX47CzkBJ%0)b7tr2coG4SxsUr}N89^@yEDS)L7jK!+uAJ?Sj&xs=9CbA%BTam zsK6#@9P(}xkHL(Xc$pU{5zm4i##t+a&qLy@tu4P8X|~W?jSB!glV2eA;W}yGjPFbI z(EN{Gz?ZLQfgQ{TSkw^H!7!wR^~DU`s=}~eg&O#Rhp2$=_mxaWh#78=Otpr!TOMUo zq5r(^=3piiSPB2=yJisp|1M29g6jLNLkkgqg$h*42Nw!iZ5;R2TW2Q zjVXX6J~cNnW(ueh8M@RK_3!B%Z4OdR4T*QyCqp|r)J7R$yJ}EMvqy5nV&NuB$sxj{E zUR9?ShE)gJW@GH*dARE;iN7;CNdCHaEd13HN8gP~PLd|x5?k}fb~Pab5@W;hqmj>? zXYC@ca
          $a&buWbb&)a1{k@-j=1m-fSQznR7jJ}M`#i`oBHX>8ox?iJdj1AEJ4ze7 zK){Kx-BRAS`~idqNdKZA8oaNx>pc@ZEc{Db;`^N$cIL5p;)N&r${g;=&7l~b9%nq5 zT4WTb&qJq2d4st=sS{9s&luG%Gdf8iC{0CbBmMKc@sPVXa-6m|t@;%{mto{pk;aoD z2bnx73}A%t@u_xlgPThaZ!0kOF{7fA5WG!G4{%lkg|~oN~gHeTkRWjdRPJ zf!e<0c+LvfAt4l^h|)JkSRNGAlS)zmp{=(9eB;0 zrp7eO8WmhmkIDzRR(V(ay^ia%Uh5KvUNgLYUHQ6#1?g#oB!d3ksx=oglnfo&I-V?F zJyM~1*0i|zzqB4<+#w&j5kMgJTF0b2vd{^GcS4a3v?s)*!*Z5n3^bP)JgEU9knMl( zuZ)f?E#kaU8&qbY`~|N~YT|#Q<0qshvt@+}_1;Tf%GRZR(pcYHIxyDz#0?SG7@J{s zbVf1sa7H?dNT>$Mx}fdkc0J^DcxjmW07Wm_>ArbtcNRpv*Xl}MANyQ0F2nX!eG1=| zP*CGKx`BZlzYaYAA-JUE5>zC*ysp3=0W6Jp{qDxbN_fSG1G>?WCUGIyrPOhq6;8&E zc`QNW%Omrjwi#GGSLyAE&7^RAAS-6pYB2#z0$Q4h@z>~MnaT`?g2=r0b>UZG4k9UQ z1*+X24QGH6V@wP&IMKWlOsp-zaKsa^@T2G#lx$FKT~vb{JugTxPb-?I3y!fq)moza z@5#RFFR2y1MJ*jcybDWD2935;ij{nJwJd zK?Ql;3^-QN4A;C5#R^; zODa1$sZ0zb!2fUNH+m)fROew<{X9}e!U0v(Tki{wH7qL4umA>W3ZQU_4F@9P2^=a* zUYXyVRQ|CP?g1-U!5saL&j76JYFjHnfcXKPdu=i!Sj~qJs3FV#Pz$euq^!X-;Bhyh zg?8s9eMz;M@+48+PxbgBuiU=-9%%_sNHa``Ya$?7w{Tbgmt|v|0Z?R_zhJj+BV$oc z4^*iuNRZru4?Re(+eMh-CHIHUSHii}HnS@QmkPfpyi!_E3HQi8`h2&c6A}28TN|Zb z@3%9-m&KuCPxNEB>u-7mVab~Jnxrf=WHI4N9)!zv?s=J^JsUwb6u$o1zL^QOR`-$hxDX--g{V$xz9!C~vdN z{<1z%XskYFELY=6y-5!W)@U*4%kFTz>q)P$qXI%|5F;$#&u;k+JLhG+BTy{}NM|h2 zzmn2o>Ll7qRtZ!)fr0u9KQ9Pb~jFa_XDoD{mq zgZ?B_>1RZjJl`P^AAxCPJ?a*&Z(*25jDF94PPkoI4=8&NB*SsJK?46{&xLw zomo?B$)YA*=q&eK1$U zZsiM_boY|Q2S28lH)7`ZmrXOkdsj8VBN+kNs>L(e0z2e6hv3qv8u*THalpI{AESpF z5wl7MeW5LFt_}J1>8}0pD$B^tadM5f)%eO3S{9KAIm@=5EF4RHe=F;`X#Tau`=>N0 z*H&Zdoxmf_{Y}f?pLq(PgUM7dv7nS;6oq6583i>$(--_$rEx04^Brp3Ddw51XAwSq zx?v=5@IYy`vxP!!)fP4Ybz@&r_BIwQ8O6~K15(XkWWfzfC~?16IA>g_B>nuq_KJ14 z2{_WFLp5AEV274S`6Kj`GWd)mLDmCyu70sL8su7{_P-fXKNw%gyF@rLKWq^X14coT zA;jCYmc$8M;dc62a2dJR?O7@QF9NNJbn**F?Q(>2pPtw*dQLd`&AaF~-%>~StMPuj zk`HfJSxb%;=})YXg?*^QZxV)W0z~Yt^;jTgE+oSXwt+jk#F8SqcUNtkY;K+uw+kO} zDB7xEWrUoAng4t*GZ^p}eTkoBkbIc0`g^;8`g|tbsIU0s5Yy>xS|CUrjC5*r20P< zF?_=St)a+yv`C^3O}tQJ=x)BMzfa{(M^WOqD+BnL`&u)MG=GN4f=B{X0?h7+v()sP zV@|zvrfN#9oyy!^8A&HsAHZ6Xr_~73KaYW;h(k+*Gye#fuQfR}^i@+1EVc$b>K1bg>(d*4NkiO2KHg+#qz?#Rmj9!76PZPq$Z(hGVmK=UN~ag>nfW zQXWo~j>-q{rdD2Rr&&OgaUjPmm@dI3HFLhHTgGgUH~8mOgc97N7E93p@GE9adAhOQr9;2phCZSSSO-r_r9K>@iF-lV>Y z99tZJ^TK(H$i2C?K~2$*rWlrXnGpueC@uwVK5_8YseHTO`FJ?8Jg#}@L2bz#j=n0A z$C80@N3)22O^b7g5t4i(i7Tq8r`UdYo`-7xG>XK_{8Rt2+woQ5iUTD+SxAs@MUU8dd-OmX5fmf-m?oZ-Tugdzu*a<=DPnLymN~^S# z1h`aqXiPoVe=Tf6JeBgs7#R3nPT~l^|5IFr|A1V>0bjkQc&6lTBwr-qbjc6FeKayi z02>$%L?HCJyVO`oj(@+|?Tt~M!*#GJ`u zT7&^wSQT=u7bE|QN;>Qg?WfD{Y+;9T3I&^+VuLJ9n&hZ#sGP808o@I)`s$o8-eD2^ z{Vx2?0*o!j9{;#Rg>ZUsV7q^viD+ebVDhVao!k*q`nJu8%3rPi!k2vTl7HCBGTi*K z3z|;C7A1FaEQ7FZsxr{i7dQ5lQ`GIUI`S}$SLtO2`+Oi~en^eSWWTC9#2ccyu~Vad zM~3LHu~?A9Upg-1AgYILGpT+5hWNUv#%hfGuO@TAgQ%#2!t}hv9jN8gou-()5K*%K~tM_z(1l( z;A;@?czgBmQfTqoqWIa<>+;8W3Z<*N!z|+x(v>+ztE5^};%U!vz0hG#RAO)n0#tY2 ze9I_-8h>Wbefm-{J$~N)eb5hr%6p#0j09alv&ekK`A~0!+1`Ev&~Tll{60Y_~>T!(tsT zd7Q}T{KJnr6jg#!-}+8|f@&55>eL4dc&Bh-5$z`IOj{*Q40yS+eu)q2&>{k9m_?3s zc?|OJx`L}^vC00V!`&qnR?Q)6l7rTfU{>t9<;#onita5T9{!s&G$^9-UG`x>fDC?a_e zgQVWhV?XI|BMN1hkl24YPZ57U{hANA9#prt#%v!7HV<*{6B5nc|25I0|)RKlc5?*3kFRF4bqFTChPP_P0G@SRHLjT z5Axc#F}6_IBIBVkmXIY`B8+`RV;Mx*2J`R=i7+At^WJ%%clqc2_kPaj+;h*l=kq!D z-1Gf;GjsO&MwCaLSJp50%jp4e0=c{_fV3GqL2WA&cqwo;&7}$N3}q7+qFCh5uk?`q zZ@UBZRL9evT5;EMVQ~r_*!Nfagpv5`^SW>n8WQJQ znFlf+ut8nCHiHKbu}+4rz`$T1I)f6`A{(6XEXwIVauC??rdsVRI!Wg1z?Hvw@&#I7 zRByin2oL%Xq4WGR1o_8ZFJ)N_YKVOKa(RjY>{J$bA*gc5JlMc%b4t#`Z>KphdZAy0 zK5xGBP19^<+o~4YouK`EmE(Y0$zJQi* zSor}rJiTEbg%rju zCDpV8P_6+_^E=I_A0XG@6@%`@^`~RndQZQI!|tX{9^i3cpiP;vn>Vt5H2v*#t86DP zdf){b30(Tw^2f?eqBZdMr(77)PP_%~-MBgaDtq(rxm!Vp^O%TWo-KZ!0FLM81>udI ztH#c02r$?khyDWDG7yyA*8F)+iLTdIx)gdMFcEx;J4lt(g9$SP8q|S^B;SMP?nGg++L#0FqkzFB2Zx3hEW2s3|G2tc$_)?8YoI z4O8lf(eiWy6t}Wp9)u@BI){`d0KT_mxA=sr~tR%u?G48#K|iAEBg;xlXKx z9H{gDAq=6n{|B$ToPmSFCCtC65pu&)dW5iFd;+Sy;l#pR4}9YZX#~8rmsFMN_hk~- z@MibK))p!>l=kw5JL9dPq;nou(;*8wjrrA9Hk z1kLd(blu_Jm?CD8k6R@w0Cgan{|on}&ZvVl2hU{suDJp^797>{uaDI-DZ&tS8b}MK zVltFotDg|=49z*_vg`EORZP|Q@*kv%p?+QwK<~E_v3KA7?$*#wJfi_(ToFsZ=kTPy ztI4YLF@luo?n_|5Mfbs* zUQjV#OwYYI^yniX(qR{PDCNwWcXyoYQj{^P6MYOjv=+G=H|xB!ygX0hkDa9Q5Pj+c zjMl>o`CH;o>htY&!)ruJgx)GZTTMGHHZEoER%JQa!hg(@tf}RkDc)O5QfE2u%&uqg zf+B9!P{wMQ%_WCK?{?tOj)}@&Nd`hBZx%05!T?TG$TgRjdh_C!WLV!(4Ei(hX^imD zn9|1SQOP$1_{!=6Vk4SqL^00c`l72-#=)KZd#;}~pJ$?otUPAUf`o`obE~0FM>1cO zFt6)^WgvNmcu~7(g(VaLdiN}ZbxE@yv3k+-GN-a(Z7%z+FvA374NQ}blhB-VcoC^+ z@mzX2vnga^>n9=j`!K4gB<|yw)PR*FvOxp7CC!@!dT2~E#lANjS-@pV-Vv!A4Q+OO zY>yz7Ohc^}XB-)JRiz}0d#@Mr5!xDiOUd50i;625yiOy-E9gPrcRsW`5^@7O+4CZS zb&M-zzQJ3kh*doa`s{q!n46o!Ha$P1!prx4I@9j%AjZ6Z!O zdMXER+Z%FIZ)F#=l~an&z66g_%{Oj1vabY?NNYU}ZG=y^tzR(YB9JoY;9CW}<`xGD zTr?UR7C&9cRgM4DLP=TVS`~!uugsLX!ZB!N^+@lY^zT+zixOYZ*OC3NE{=bduR5aZ zB8sFp>BG|E2>c!yGr!NRPNyp$S2SNb%ZkrN?ti6o`kAkI#6c=GYg z<+*m-k#wXDNuyG)&*rg-k^Un%Ru8&5J(N4rd?6CsMOgC~Y;!7@n*LuV4OA*P0i0&( z@_&PKswA;1DH3fOd~gV?O+DuC%=&(B8qvB|C_QRnyKErqw-8)uaCwpVB%wQmsU|M7 zHQw0edi4aF`rdU!5tbABeAaTU`buoCy&`$B#k1{I?N5X7!`f=_WoeX*WOxQz2RlzK zFPOvnP-Y{+l1;lYb~N^d{p!!D?&&{5hK34%`O3CzEbp^p8#U)N)J90D+uSnGJyR_+ SfnHvK(PdMM3+2DvkNhXkPX{9a literal 0 HcmV?d00001 diff --git a/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_256x256@2x.png b/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_256x256@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..1708a02240fa67357feb0503771a1060709a96b4 GIT binary patch literal 42938 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 IM6N<$g6fG3xBvhE literal 0 HcmV?d00001 diff --git a/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_32x32@2x.png b/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_32x32@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ed9f482546e9c47120ac19cf2f852fe4412a5f2 GIT binary patch literal 3916 zcmV-S53}%zP)004R>004l5008;`004mK004C`008P>0026e000+ooVrmw0000) zWmrjOO-%qQ0000800D<-00aO40096102%-Q00003paB2_0000100961paK8{00001 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≪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
          w`R{s0h`J1_83u{ZZC(qP1B&~-(cbO&4ev|5M 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 A1b9unuH%1sN&8 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

          _N) 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 F_J1G@o1p*z literal 0 HcmV?d00001 diff --git a/starter/src/main/resources/templates/chat/icons/logo1024.png b/starter/src/main/resources/templates/chat/icons/logo1024.png new file mode 100644 index 0000000000000000000000000000000000000000..c6ec6b3150ce8487e0723807b5430d23ee618539 GIT binary patch literal 29356 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

          _N) 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 F_J1G@o1p*z literal 0 HcmV?d00001 diff --git a/starter/src/main/resources/templates/chat/icons/logo512.png b/starter/src/main/resources/templates/chat/icons/logo512.png new file mode 100644 index 0000000000000000000000000000000000000000..03703a460f9461d27aa142283051026d560d7abd GIT binary patch literal 36182 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 ByteDesk - +

          J@#qbww&R9Ft<&jeLNrBtb9QbbbV=MvwyntNw@dkS9B}}vbzl8?76iy5Ac=iQN$Z%0tn=es4NunE5CQoR=Pbm6_}J>R)xm^T)!X8l^v`$7JBR zn$L3pW*g~;MB)eTEfcLql&<>vT8bZQ{o9yJykos-1>Q3S$H>Z(Gsh)8K>4nXv;p@+ z%l@3pomMQ&8GCB^FY_GGs!LEP8!2ZVY&*UB!M}K3q(e^nA(Ut&dDZ`Q`st%*;6DZr z{t*O)YQ%U7xn8}n?DNlj$Nw{}PhGw8FsTa3WaH%JJMx((<2Sjw^OU)||4%485GY|H zVe4C?q}A3|6uU8GBXxujE$)xY1- z`3F?+j}=^C;P+JFwC~N|>}&M^@_al?hY=n^0)E*&2=<35Muq?O%LKBQg8sLqy<1o< z{Bq$xR_k5bH5F#n+~a&i+5ehu-~dmo&TP&O>V@l7Kv1}4%el-#>-CexK(gP38s+}4 zOKPf>Q>zo3Sj&bbqf$^uQAH-vF%gnB%6q;2;a&Xy&2r2a(rCUhyRrD~GDip4fp<l2 z6$;<{r#Bh^D~mS2KH_ksiwi$`yi13FhZTRK!lFH9z--q{e$EPrx>cMI7kFIs7YEio z8b6bG{MX%~iF1QM-2y|szCUpJw3Go%3_jGX&aF?L!?^l)Xa089Mgt84oH?GI4Z5Bt zz?a(8&(3!Bt(+)7xkaO0_g{$O`9H`&g)_cq2tR7Je$NA7*}n8Z*M@OB2F^Wk1gH7_ z-Hr`05S&G$@YLEHYm)H*39r0Adp;SXefIq;U1?Nc15NJ)$I+z>sAIAsi-f9NgftZf zU*rp;yXb#KhD8nT80?%7S@M;r;J^W>5^eFW{lt3X_G|fhqb}?(s+d5x(NKlVqth$Y zI}hwce)4TWGi=T6c2wv%>@T9@r2)c=>xYCcPr^WxhXpOy6OxROF|qxC{fqX0%A zR&l@oCn_si@g-FXzayrRKVBupzD=0FSo7Ya-*d^kzmUN4051@E2z&T=GFgHFw0d0A z_-;g9uo3U%HhI6lGmj8Y!sb*yb3ePgU>f1{GKj*C!w}4eWsChw20)o?M=YvX#tOCA zohX1w(-GZo$mG3Pbkvjfzgvd_0sg0hIQZfx7Z5ff*ePa3fVdwr{~HD|7yzG&h=(Zh z)-!;tQlbBi59a|w36QC1ce?W*GG+oXgH_LOItx8~6#VFL|oZYocou5@%+!R0LT0q6xpL5#(RGM+7q~J zv$3g;`N?&)5!A;f$^!qsFd_&2z6_7nUczi2v;IYFHUy6g1Rs=Ewn362FGl5m%lOlr zk{Fo3_fT>9ZzKoDoq9hc?mFF+hy{Rm#0BH zK7qxgedynpbzu7>|M9Q?>_G$$a0-C8S-YS8&;KLHf%t$3AHWzV-0D9X%E)V}akO_xBka>A1X!VcdWGW|)2sJeZ3i|%@;HxzJ!PktB$UXCU7B7FH#z80X#e^yc0$-6_cyz;fGz%g5Y=2F&R*-N|zSedr~sJ`tDEbg=e-rbEGoa zL|E#;Y$6N2zTfX5V@F26uqiXP?!{G%(HUO83qzEBhD6E#T}w#k#_4s_vS?zg~xInR_!6Z&2mSK^CV~%0AiQ{6}e-jKu@ym7 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%0DA>~?<0l;Zz3)KFt$Voram2$0 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%0D(XS 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 literal 0 HcmV?d00001 diff --git a/starter/src/main/resources/templates/chat/icons/icon.ico b/starter/src/main/resources/templates/chat/icons/icon.ico new file mode 100644 index 0000000000000000000000000000000000000000..666944be5f66fd1c6742820b7f07720722b53389 GIT binary patch literal 292774 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 literal 0 HcmV?d00001 diff --git a/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_128x128.png b/starter/src/main/resources/templates/chat/icons/logo.iconset/icon_128x128.png new file mode 100644 index 0000000000000000000000000000000000000000..9f49cb5c6766d7072792acd107e6a1fda240869c GIT binary patch literal 8704 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